| 1 |
2026-06-12 Release Manager |
| 2 |
|
| 3 |
* GCC 15.3.0 released. |
| 4 |
|
| 5 |
2026-05-06 Martin Uecker <[email protected]> |
| 6 |
|
| 7 |
Backported from master: |
| 8 |
2026-03-07 Martin Uecker <[email protected]> |
| 9 |
|
| 10 |
PR c/123856 |
| 11 |
* c-attribs.cc (handle_hardbool_attribute): Fix TYPE_NAME. |
| 12 |
|
| 13 |
2026-03-28 Patrick Palka <[email protected]> |
| 14 |
|
| 15 |
Backported from master: |
| 16 |
2026-02-02 Patrick Palka <[email protected]> |
| 17 |
|
| 18 |
* c-cppbuiltin.cc (c_cpp_builtins): Bump __cpp_deduction_guides to |
| 19 |
202207L for C++23 and later. |
| 20 |
|
| 21 |
2026-03-13 Andrew Pinski <[email protected]> |
| 22 |
|
| 23 |
Backported from master: |
| 24 |
2026-02-12 Andrew Pinski <[email protected]> |
| 25 |
|
| 26 |
PR c/105555 |
| 27 |
* c-common.cc (fold_offsetof): Handle REALPART_EXPR |
| 28 |
and IMAGPART_EXPR. |
| 29 |
|
| 30 |
2026-01-09 Richard Biener <[email protected]> |
| 31 |
|
| 32 |
Backported from master: |
| 33 |
2025-12-18 Richard Biener <[email protected]> |
| 34 |
|
| 35 |
PR c/123156 |
| 36 |
* c-common.cc (c_build_shufflevector): Use ssizetype for the |
| 37 |
permute vector element type. |
| 38 |
|
| 39 |
2025-12-08 Jakub Jelinek <[email protected]> |
| 40 |
|
| 41 |
Backported from master: |
| 42 |
2025-11-25 Jakub Jelinek <[email protected]> |
| 43 |
|
| 44 |
PR middle-end/120052 |
| 45 |
* c-ubsan.cc (ubsan_instrument_bounds): For VLAs use |
| 46 |
1 instead of 0 as first IFN_UBSAN_BOUNDS argument and only |
| 47 |
use the addend without TYPE_MAX_VALUE (TYPE_DOMAIN (type)) |
| 48 |
in the 3rd argument. |
| 49 |
|
| 50 |
2025-12-08 Jakub Jelinek <[email protected]> |
| 51 |
|
| 52 |
Backported from master: |
| 53 |
2025-11-25 Jakub Jelinek <[email protected]> |
| 54 |
|
| 55 |
PR middle-end/122624 |
| 56 |
* c-common.cc (c_common_get_alias_set): Fix up handling of |
| 57 |
BITINT_TYPEs. For unsigned _BitInt(1) always return -1. For other |
| 58 |
unsigned types set TYPE_ALIAS_SET to get_alias_set of corresponding |
| 59 |
signed type and return that. For signed types check if corresponding |
| 60 |
unsigned type has TYPE_ALIAS_SET_KNOWN_P and if so copy its |
| 61 |
TYPE_ALIAS_SET and return that. |
| 62 |
|
| 63 |
2025-10-22 Jakub Jelinek <[email protected]> |
| 64 |
|
| 65 |
Backported from master: |
| 66 |
2025-10-22 Jakub Jelinek <[email protected]> |
| 67 |
|
| 68 |
PR c++/122302 |
| 69 |
* c-common.cc (braced_list_to_string): Call copy_node on RAW_DATA_CST |
| 70 |
before changing RAW_DATA_POINTER and RAW_DATA_LENGTH on it. |
| 71 |
|
| 72 |
2025-10-14 Jakub Jelinek <[email protected]> |
| 73 |
|
| 74 |
Backported from master: |
| 75 |
2025-10-09 Jakub Jelinek <[email protected]> |
| 76 |
|
| 77 |
PR c/122188 |
| 78 |
* c-gimplify.cc (c_gimplify_expr): Also gimplify the second operand |
| 79 |
before the COND_EXPR and use in COND_EXPR result of gimplification. |
| 80 |
|
| 81 |
2025-10-14 Jakub Jelinek <[email protected]> |
| 82 |
|
| 83 |
Backported from master: |
| 84 |
2025-10-08 Jakub Jelinek <[email protected]> |
| 85 |
|
| 86 |
PR c/122188 |
| 87 |
* c-gimplify.cc (c_gimplify_expr): Gimplify CALL_EXPR_ARG (*expr_p, 0) |
| 88 |
instead of calling save_expr on it. |
| 89 |
|
| 90 |
2025-08-08 Release Manager |
| 91 |
|
| 92 |
* GCC 15.2.0 released. |
| 93 |
|
| 94 |
2025-07-11 Jakub Jelinek <[email protected]> |
| 95 |
|
| 96 |
Backported from master: |
| 97 |
2025-07-04 Jakub Jelinek <[email protected]> |
| 98 |
|
| 99 |
PR c/120837 |
| 100 |
* c-common.cc (pointer_int_sum): Rewrite the intop PLUS_EXPR or |
| 101 |
MINUS_EXPR optimization into extension of both intop operands, |
| 102 |
their separate multiplication and then addition/subtraction followed |
| 103 |
by rest of pointer_int_sum handling after the multiplication. |
| 104 |
|
| 105 |
2025-05-07 Jason Merrill <[email protected]> |
| 106 |
|
| 107 |
Backported from master: |
| 108 |
2025-05-03 Jason Merrill <[email protected]> |
| 109 |
|
| 110 |
* c-opts.cc (c_common_post_options): Let plain -Wabi warn |
| 111 |
about changes in a future version. |
| 112 |
|
| 113 |
2025-04-25 Release Manager |
| 114 |
|
| 115 |
* GCC 15.1.0 released. |
| 116 |
|
| 117 |
2025-04-06 Sandra Loosemore <[email protected]> |
| 118 |
|
| 119 |
* c.opt.urls: Regenerate. |
| 120 |
|
| 121 |
2025-04-06 Sandra Loosemore <[email protected]> |
| 122 |
|
| 123 |
PR c/81831 |
| 124 |
* c.opt (Wpsabi): Remove "Undocumented" modifier and add a |
| 125 |
documentation string. |
| 126 |
|
| 127 |
2025-04-03 Jakub Jelinek <[email protected]> |
| 128 |
|
| 129 |
* c.opt.urls: Regenerate. |
| 130 |
|
| 131 |
2025-03-30 Sandra Loosemore <[email protected]> |
| 132 |
|
| 133 |
* c.opt.urls: Regenerate. |
| 134 |
|
| 135 |
2025-03-22 Jakub Jelinek <[email protected]> |
| 136 |
|
| 137 |
* c.opt (Wdeprecated-literal-operator): Use \"\" rather than "" |
| 138 |
in option description. |
| 139 |
|
| 140 |
2025-03-18 Jakub Jelinek <[email protected]> |
| 141 |
|
| 142 |
PR c/116545 |
| 143 |
* c-attribs.cc (c_common_clang_attributes): Add musttail. |
| 144 |
|
| 145 |
2025-03-14 Jakub Jelinek <[email protected]> |
| 146 |
|
| 147 |
PR target/119120 |
| 148 |
* c-gimplify.cc (c_genericize_control_r): Set DECL_NOT_GIMPLE_REG_P |
| 149 |
on {REAL,IMAG}PART_EXPR is_gimple_reg operand at -O0 if it is lhs |
| 150 |
of a MODIFY_EXPR. |
| 151 |
|
| 152 |
2025-03-13 Eric Botcazou <[email protected]> |
| 153 |
|
| 154 |
PR ada/119265 |
| 155 |
* c-ada-spec.cc (dump_ada_node) <INTEGER_TYPE>: Deal with typedefs |
| 156 |
of unsigned __int128. |
| 157 |
|
| 158 |
2025-03-07 Jakub Jelinek <[email protected]> |
| 159 |
|
| 160 |
PR c/117178 |
| 161 |
* c-attribs.cc (handle_nonstring_attribute): Allow the attribute also |
| 162 |
on multi-dimensional arrays with char/signed char/unsigned char |
| 163 |
element type or pointers to such single and multi-dimensional arrays. |
| 164 |
|
| 165 |
2025-03-07 Kees Cook <[email protected]> |
| 166 |
Jakub Jelinek <[email protected]> |
| 167 |
|
| 168 |
PR c/117178 |
| 169 |
* c.opt (Wunterminated-string-initialization): Don't depend on |
| 170 |
-Wc++-compat. |
| 171 |
|
| 172 |
2025-03-05 Marek Polacek <[email protected]> |
| 173 |
|
| 174 |
PR c++/115580 |
| 175 |
* c-common.cc (check_function_arguments): Return early if |
| 176 |
c_inhibit_evaluation_warnings. |
| 177 |
|
| 178 |
2025-02-28 Jakub Jelinek <[email protected]> |
| 179 |
|
| 180 |
* c.opt (Wc++26-extensions): Add CppReason(CPP_W_CXX26_EXTENSIONS). |
| 181 |
* c-cppbuiltin.cc (c_cpp_builtins): Predefine __cpp_pp_embed=202502 |
| 182 |
for C++26. |
| 183 |
|
| 184 |
2025-02-13 Jakub Jelinek <[email protected]> |
| 185 |
|
| 186 |
PR c++/118822 |
| 187 |
PR c++/118833 |
| 188 |
* c-common.h (WHILE_COND_CLEANUP): Change description in comment. |
| 189 |
(FOR_COND_CLEANUP): Likewise. |
| 190 |
* c-gimplify.cc (genericize_c_loop): Adjust for COND_CLEANUP |
| 191 |
being CLEANUP_STMT/TRY_FINALLY_EXPR trailing nesting depth |
| 192 |
instead of actual cleanup. |
| 193 |
|
| 194 |
2025-02-11 Jason Merrill <[email protected]> |
| 195 |
|
| 196 |
PR c++/188574 |
| 197 |
* c-opts.cc (c_common_post_options): Only enable |
| 198 |
-frange-for-ext-temps by default in C++23. |
| 199 |
|
| 200 |
2025-02-07 Jakub Jelinek <[email protected]> |
| 201 |
Jason Merrill <[email protected]> |
| 202 |
|
| 203 |
PR c++/86769 |
| 204 |
* c-common.def (FOR_STMT): Add 2 operands and document them. |
| 205 |
(WHILE_STMT): Likewise. |
| 206 |
* c-common.h (WHILE_COND_PREP, WHILE_COND_CLEANUP): Define. |
| 207 |
(FOR_COND_PREP, FOR_COND_CLEANUP): Define. |
| 208 |
* c-gimplify.cc (genericize_c_loop): Add COND_PREP and COND_CLEANUP |
| 209 |
arguments, handle them if they are non-NULL. |
| 210 |
(genericize_for_stmt, genericize_while_stmt, genericize_do_stmt): |
| 211 |
Adjust callers. |
| 212 |
|
| 213 |
2025-02-07 Thomas Schwinge <[email protected]> |
| 214 |
|
| 215 |
* c-gimplify.cc (c_genericize): Pass 'local_dump_flags' to |
| 216 |
'print_c_tree'. |
| 217 |
* c-pretty-print.cc (c_pretty_printer::statement): Pass |
| 218 |
'dump_flags' to 'dump_generic_node'. |
| 219 |
(c_pretty_printer::c_pretty_printer): Initialize 'dump_flags'. |
| 220 |
(print_c_tree): Add 'dump_flags_t' formal parameter. |
| 221 |
(debug_c_tree): Adjust. |
| 222 |
* c-pretty-print.h (c_pretty_printer): Add 'dump_flags_t |
| 223 |
dump_flags'. |
| 224 |
(c_pretty_printer::c_pretty_printer): Add 'dump_flags_t' formal |
| 225 |
parameter. |
| 226 |
(print_c_tree): Adjust. |
| 227 |
|
| 228 |
2025-01-23 Jakub Jelinek <[email protected]> |
| 229 |
|
| 230 |
* c-common.cc (make_tree_vector_from_ctor): Only use make_tree_vector |
| 231 |
for ctors with <= 16 elements. |
| 232 |
|
| 233 |
2025-01-23 Nathaniel Shead <[email protected]> |
| 234 |
|
| 235 |
PR c++/107741 |
| 236 |
* c-opts.cc (c_common_post_options): Bump ABI version. |
| 237 |
|
| 238 |
2025-01-22 Jakub Jelinek <[email protected]> |
| 239 |
|
| 240 |
* c-common.h (append_ctor_to_tree_vector): Declare. |
| 241 |
* c-common.cc (append_ctor_to_tree_vector): New function. |
| 242 |
(make_tree_vector_from_ctor): Use it. |
| 243 |
|
| 244 |
2025-01-20 Jakub Jelinek <[email protected]> |
| 245 |
|
| 246 |
PR c++/118528 |
| 247 |
* c-common.cc (make_tree_vector_from_ctor): Expand RAW_DATA_CST |
| 248 |
elements from the CONSTRUCTOR to individual INTEGER_CSTs. |
| 249 |
|
| 250 |
2025-01-20 Jakub Jelinek <[email protected]> |
| 251 |
|
| 252 |
PR c++/118509 |
| 253 |
* c-omp.cc (c_finish_omp_for): Handle TARGET_EXPR in first operand |
| 254 |
of COMPOUND_EXPR incr the same as SAVE_EXPR. |
| 255 |
|
| 256 |
2025-01-16 Sandra Loosemore <[email protected]> |
| 257 |
|
| 258 |
* c-attribs.cc (c_common_gnu_attributes): Delete "omp declare |
| 259 |
target block". |
| 260 |
|
| 261 |
2025-01-16 Sandra Loosemore <[email protected]> |
| 262 |
Kwok Cheung Yeung <[email protected]> |
| 263 |
Sandra Loosemore <[email protected]> |
| 264 |
|
| 265 |
PR middle-end/112779 |
| 266 |
PR middle-end/113904 |
| 267 |
* c-common.h (enum c_omp_directive_kind): Add C_OMP_DIR_META. |
| 268 |
(c_omp_expand_variant_construct): Declare. |
| 269 |
* c-gimplify.cc: Include omp-general.h. |
| 270 |
(genericize_omp_metadirective_stmt): New. |
| 271 |
(c_genericize_control_stmt): Add case for OMP_METADIRECTIVE. |
| 272 |
* c-omp.cc (c_omp_directives): Fix entries for metadirective. |
| 273 |
(c_omp_expand_variant_construct_r): New. |
| 274 |
(c_omp_expand_variant_construct): New. |
| 275 |
* c-pragma.cc (omp_pragmas): Add metadirective. |
| 276 |
* c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_METADIRECTIVE. |
| 277 |
|
| 278 |
2025-01-16 Jakub Jelinek <[email protected]> |
| 279 |
|
| 280 |
* c-lex.cc (interpret_float): Use -std=c++23 and -std=gnu++23 |
| 281 |
in diagnostics rather than -std=c++2b and -std=gnu++2b. |
| 282 |
|
| 283 |
2025-01-12 Hans-Peter Nilsson <[email protected]> |
| 284 |
|
| 285 |
PR middle-end/118303 |
| 286 |
* c-pretty-print.cc (c_pretty_printer::primary_expression) <SSA_NAME>: |
| 287 |
Call primary_expression for all SSA_NAME_VAR nodes and instead move the |
| 288 |
DECL_ARTIFICIAL private name stripping to... |
| 289 |
(pp_c_tree_decl_identifier): ...here. |
| 290 |
|
| 291 |
2025-01-02 Paul-Antoine Arras <[email protected]> |
| 292 |
|
| 293 |
* c-attribs.cc: (c_common_gnu_attributes): Rename "omp declare variant |
| 294 |
variant adjust_args" into "omp declare variant variant args" to also |
| 295 |
accommodate append_args. |
| 296 |
|
| 297 |
2024-12-20 Nathaniel Shead <[email protected]> |
| 298 |
|
| 299 |
* c.opt.urls: Regenerate. |
| 300 |
|
| 301 |
2024-12-20 Nathaniel Shead <[email protected]> |
| 302 |
|
| 303 |
* c.opt: New warning '-Wtemplate-names-tu-local'. |
| 304 |
|
| 305 |
2024-12-18 Tobias Burnus <[email protected]> |
| 306 |
|
| 307 |
* c-omp.cc (c_omp_interop_t_p): Handle error_mark_node. |
| 308 |
|
| 309 |
2024-12-18 Jakub Jelinek <[email protected]> |
| 310 |
|
| 311 |
PR c++/110345 |
| 312 |
* c-common.h (attr_aligned_exclusions): Declare. |
| 313 |
(handle_aligned_attribute): Likewise. |
| 314 |
* c-attribs.cc (handle_aligned_attribute): No longer |
| 315 |
static. |
| 316 |
(attr_aligned_exclusions): Use extern instead of static. |
| 317 |
|
| 318 |
2024-12-17 Sandra Loosemore <[email protected]> |
| 319 |
|
| 320 |
PR c/26154 |
| 321 |
* c.opt.urls: Regenerated. |
| 322 |
|
| 323 |
2024-12-16 David Malcolm <[email protected]> |
| 324 |
|
| 325 |
PR sarif-replay/117943 |
| 326 |
* c-format.cc (selftest::test_type_mismatch_range_labels): Use |
| 327 |
dc.m_source_printing. |
| 328 |
* c-opts.cc (c_diagnostic_text_finalizer): Use source-printing |
| 329 |
options from text_output. |
| 330 |
|
| 331 |
2024-12-12 Sandra Loosemore <[email protected]> |
| 332 |
Peter Eisentraut <[email protected]> |
| 333 |
|
| 334 |
PR c/115532 |
| 335 |
* c.opt.urls: Regenerated. |
| 336 |
|
| 337 |
2024-12-12 Alexandre Oliva <[email protected]> |
| 338 |
|
| 339 |
* c.opt (Wtautological-compare): Move to ../common.opt. |
| 340 |
|
| 341 |
2024-12-10 Arsen Arsenović <[email protected]> |
| 342 |
Iain Sandoe <[email protected]> |
| 343 |
|
| 344 |
* c-pretty-print.cc (c_pretty_printer::storage_class_specifier): |
| 345 |
Check that we're looking at a PARM_DECL or VAR_DECL before |
| 346 |
looking at DECL_REGISTER. |
| 347 |
|
| 348 |
2024-12-10 Marek Polacek <[email protected]> |
| 349 |
|
| 350 |
PR c++/117788 |
| 351 |
* c-warn.cc (do_warn_array_compare): Emit a permerror in C++26. |
| 352 |
|
| 353 |
2024-12-09 Matthew Malcomson <[email protected]> |
| 354 |
|
| 355 |
* c-common.cc (builtin_function_validate_nargs, |
| 356 |
check_builtin_function_arguments, |
| 357 |
speculation_safe_value_resolve_call, |
| 358 |
speculation_safe_value_resolve_params, sync_resolve_size, |
| 359 |
sync_resolve_params, get_atomic_generic_size, |
| 360 |
resolve_overloaded_atomic_exchange, |
| 361 |
resolve_overloaded_atomic_compare_exchange, |
| 362 |
resolve_overloaded_atomic_load, resolve_overloaded_atomic_store, |
| 363 |
resolve_overloaded_builtin): Add `complain` boolean parameter |
| 364 |
and determine whether to emit errors based on its value. |
| 365 |
* c-common.h (check_builtin_function_arguments, |
| 366 |
resolve_overloaded_builtin): Mention `complain` boolean |
| 367 |
parameter in declarations. Give it a default of `true`. |
| 368 |
|
| 369 |
2024-12-06 David Malcolm <[email protected]> |
| 370 |
|
| 371 |
* c-attribs.cc: Include "gcc-urlifier.h". |
| 372 |
(positional_argument): Use auto_urlify_attributes. |
| 373 |
* c-common.cc: Include "gcc-urlifier.h". |
| 374 |
(parse_optimize_options): Use auto_urlify_attributes with |
| 375 |
OPT_Wattributes. |
| 376 |
(attribute_fallthrough_p): Use auto_urlify_attributes. |
| 377 |
* c-warn.cc: Include "gcc-urlifier.h". |
| 378 |
(diagnose_mismatched_attributes): Use auto_urlify_attributes. |
| 379 |
|
| 380 |
2024-12-05 Jakub Jelinek <[email protected]> |
| 381 |
|
| 382 |
PR c/107980 |
| 383 |
* c-common.h (enum rid): Add RID_C23_VA_START. |
| 384 |
* c-common.cc (c_common_reswords): Add __builtin_c23_va_start. |
| 385 |
|
| 386 |
2024-11-30 Jakub Jelinek <[email protected]> |
| 387 |
|
| 388 |
* c.opt (Wdeprecated-variadic-comma-omission): New option. |
| 389 |
* c.opt.urls: Regenerate. |
| 390 |
* c-opts.cc (c_common_post_options): Default to |
| 391 |
-Wdeprecated-variadic-comma-omission for C++26 or -Wpedantic. |
| 392 |
|
| 393 |
2024-11-29 Tejas Belagod <[email protected]> |
| 394 |
|
| 395 |
* c-common.cc (convert_vector_to_array_for_subscript): Add |
| 396 |
range-check for target vector types. |
| 397 |
|
| 398 |
2024-11-28 Marek Polacek <[email protected]> |
| 399 |
|
| 400 |
PR c++/113798 |
| 401 |
* c-cppbuiltin.cc (c_cpp_builtins): Predefine |
| 402 |
__cpp_pack_indexing=202311L for C++26. |
| 403 |
|
| 404 |
2024-11-28 Jakub Jelinek <[email protected]> |
| 405 |
|
| 406 |
PR c/117023 |
| 407 |
* c-attribs.cc (handle_nonnull_if_nonzero_attribute): New |
| 408 |
function. |
| 409 |
(c_common_gnu_attributes): Add nonnull_if_nonzero attribute. |
| 410 |
(handle_nonnull_attribute): Fix comment typo. |
| 411 |
* c-common.cc (struct nonnull_arg_ctx): Add other member. |
| 412 |
(check_function_nonnull): Also check nonnull_if_nonzero attributes. |
| 413 |
(check_nonnull_arg): Use different warning wording if pctx->other |
| 414 |
is non-zero. |
| 415 |
(check_function_arguments): Initialize ctx.other. |
| 416 |
|
| 417 |
2024-11-28 Joseph Myers <[email protected]> |
| 418 |
|
| 419 |
PR c/117757 |
| 420 |
* c-gimplify.cc (c_gimplify_expr): Check for error_operand_p |
| 421 |
before calling TYPE_MAIN_VARIANT for shifts. |
| 422 |
|
| 423 |
2024-11-28 David Malcolm <[email protected]> |
| 424 |
|
| 425 |
PR c/82892 |
| 426 |
* c-common.h (get_option_for_builtin_define): New decl. |
| 427 |
* c-cppbuiltin.cc (get_option_for_builtin_define): New. |
| 428 |
* known-headers.cc: Include "opts.h". |
| 429 |
(suggest_missing_option::suggest_missing_option): New. |
| 430 |
(suggest_missing_option::~suggest_missing_option): New. |
| 431 |
* known-headers.h (class suggest_missing_option): New. |
| 432 |
|
| 433 |
2024-11-28 David Malcolm <[email protected]> |
| 434 |
|
| 435 |
PR c++/87850 |
| 436 |
* c-common.cc: Include "gcc-rich-location.h". |
| 437 |
(maybe_emit_indirection_note): New function. |
| 438 |
* c-common.h (maybe_emit_indirection_note): New decl. |
| 439 |
(compatible_types_for_indirection_note_p): New decl. |
| 440 |
|
| 441 |
2024-11-28 David Malcolm <[email protected]> |
| 442 |
|
| 443 |
PR c/104896 |
| 444 |
* c-lex.cc (c_common_lex_availability_macro): Replace "%<%s%>" |
| 445 |
with "%qs" in message wording. |
| 446 |
* c-opts.cc (c_common_handle_option): Likewise. |
| 447 |
* c-warn.cc (warn_parm_array_mismatch): Likewise. |
| 448 |
|
| 449 |
2024-11-27 Florian Weimer <[email protected]> |
| 450 |
|
| 451 |
* c-opts.cc (c_common_post_options): Initialize |
| 452 |
warn_free_labels. |
| 453 |
* c.opt (Wfree-labels): New option. |
| 454 |
* c.opt.urls: Regenerate. |
| 455 |
|
| 456 |
2024-11-27 Jason Merrill <[email protected]> |
| 457 |
|
| 458 |
* c-opts.cc (c_common_post_options): Enable -Warray-compare |
| 459 |
in C++20. |
| 460 |
|
| 461 |
2024-11-26 Jakub Jelinek <[email protected]> |
| 462 |
|
| 463 |
PR middle-end/43374 |
| 464 |
* c-cppbuiltin.cc (builtin_define_decimal_float_constants): Use |
| 465 |
get_max_float. |
| 466 |
|
| 467 |
2024-11-23 Jakub Jelinek <[email protected]> |
| 468 |
|
| 469 |
* c.opt.urls: Regenerate. |
| 470 |
|
| 471 |
2024-11-23 Lewis Hyatt <[email protected]> |
| 472 |
|
| 473 |
* c-indentation.cc (should_warn_for_misleading_indentation): Remove |
| 474 |
comment about -flarge-source-files. |
| 475 |
* c-lex.cc (cb_ident): Change "unsigned int" argument to type |
| 476 |
"location_t". |
| 477 |
(cb_def_pragma): Likewise. |
| 478 |
(cb_define): Likewise. |
| 479 |
(cb_undef): Likewise. |
| 480 |
|
| 481 |
2024-11-22 Andrew Pinski <[email protected]> |
| 482 |
|
| 483 |
PR bootstrap/117737 |
| 484 |
* c-ada-spec.cc (INCLUDE_MEMORY): Remove. |
| 485 |
* c-attribs.cc (INCLUDE_MEMORY): Remove. |
| 486 |
* c-common.cc (INCLUDE_MEMORY): Remove. |
| 487 |
* c-format.cc (INCLUDE_MEMORY): Remove. |
| 488 |
* c-gimplify.cc (INCLUDE_MEMORY): Remove. |
| 489 |
* c-indentation.cc (INCLUDE_MEMORY): Remove. |
| 490 |
* c-opts.cc (INCLUDE_MEMORY): Remove. |
| 491 |
* c-pch.cc (INCLUDE_MEMORY): Remove. |
| 492 |
* c-pragma.cc (INCLUDE_MEMORY): Remove. |
| 493 |
* c-pretty-print.cc (INCLUDE_MEMORY): Remove. |
| 494 |
* c-type-mismatch.cc (INCLUDE_MEMORY): Remove. |
| 495 |
* c-warn.cc (INCLUDE_MEMORY): Remove. |
| 496 |
* known-headers.cc (INCLUDE_MEMORY): Remove. |
| 497 |
* name-hint.h: Remove check of INCLUDE_MEMORY. |
| 498 |
|
| 499 |
2024-11-22 Jakub Jelinek <[email protected]> |
| 500 |
|
| 501 |
PR c++/110137 |
| 502 |
PR middle-end/101480 |
| 503 |
* c.opt (fassume-sane-operators-new-delete): New option. |
| 504 |
|
| 505 |
2024-11-22 Jakub Jelinek <[email protected]> |
| 506 |
|
| 507 |
PR c/117641 |
| 508 |
* c-common.cc (sync_resolve_size): For size 16 with _BitInt |
| 509 |
on targets where TImode isn't supported, use goto incompatible if |
| 510 |
!fetch. |
| 511 |
|
| 512 |
2024-11-22 Tobias Burnus <[email protected]> |
| 513 |
|
| 514 |
* c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_INTEROP. |
| 515 |
|
| 516 |
2024-11-22 Tobias Burnus <[email protected]> |
| 517 |
|
| 518 |
* c-common.h (enum c_omp_region_type): Add C_ORT_INTEROP |
| 519 |
and C_ORT_OMP_INTEROP. |
| 520 |
(c_omp_interop_t_p): New prototype. |
| 521 |
* c-omp.cc (c_omp_interop_t_p): Check whether the type is |
| 522 |
omp_interop_t. |
| 523 |
(c_omp_directives): Uncomment 'interop'. |
| 524 |
* c-pragma.cc (omp_pragmas): Add 'interop'. |
| 525 |
* c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_INTEROP. |
| 526 |
(enum pragma_omp_clause): Add init, use, and destroy clauses. |
| 527 |
|
| 528 |
2024-11-21 Jakub Jelinek <[email protected]> |
| 529 |
|
| 530 |
* c.opt (std=c23, std=gnu23, std=iso9899:2024): Adjust description |
| 531 |
for publication of the ISO/IEC 9899:2024 standard. |
| 532 |
|
| 533 |
2024-11-20 Paul-Antoine Arras <[email protected]> |
| 534 |
|
| 535 |
* c-attribs.cc (c_common_gnu_attributes): Add attribute for adjust_args |
| 536 |
need_device_ptr. |
| 537 |
* c-omp.cc (c_omp_directives): Uncomment dispatch. |
| 538 |
* c-pragma.cc (omp_pragmas): Add dispatch. |
| 539 |
* c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_DISPATCH. |
| 540 |
(enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_NOCONTEXT and |
| 541 |
PRAGMA_OMP_CLAUSE_NOVARIANTS. |
| 542 |
|
| 543 |
2024-11-19 Jakub Jelinek <[email protected]> |
| 544 |
|
| 545 |
PR c/117641 |
| 546 |
* c-common.cc (sync_resolve_size): For size == 16 fetch of |
| 547 |
BITINT_TYPE if TImode isn't supported scalar mode diagnose |
| 548 |
and return 0 if orig_format instead of returning 16. |
| 549 |
|
| 550 |
2024-11-18 David Malcolm <[email protected]> |
| 551 |
|
| 552 |
PR other/116253 |
| 553 |
* c-opts.cc (c_diagnostic_text_finalizer): Use |
| 554 |
text_output.build_indent_prefix for prefix to |
| 555 |
diagnostic_show_locus. |
| 556 |
|
| 557 |
2024-11-17 Jason Merrill <[email protected]> |
| 558 |
|
| 559 |
* c.opt.urls: Regenerate. |
| 560 |
|
| 561 |
2024-11-17 Florian Weimer <[email protected]> |
| 562 |
|
| 563 |
PR c/95445 |
| 564 |
* c-opts.cc (c_common_post_options): Initialize |
| 565 |
warn_deprecated_non_prototype. |
| 566 |
* c.opt (Wdeprecated-non-prototype): New option. |
| 567 |
* c.opt.urls: Regenerate. |
| 568 |
|
| 569 |
2024-11-17 Jason Merrill <[email protected]> |
| 570 |
|
| 571 |
* c-ppoutput.cc (preprocess_file): Don't set directives_only here. |
| 572 |
|
| 573 |
2024-11-17 Jason Merrill <[email protected]> |
| 574 |
|
| 575 |
* c.opt: Add -fsearch-include-path. |
| 576 |
* c-opts.cc (c_common_post_options): Handle it. |
| 577 |
|
| 578 |
2024-11-15 Joseph Myers <[email protected]> |
| 579 |
|
| 580 |
* c-opts.cc (c_common_init_options): Default to C23. |
| 581 |
|
| 582 |
2024-11-15 Florian Weimer <[email protected]> |
| 583 |
|
| 584 |
* c.opt.urls: Regenerate. |
| 585 |
|
| 586 |
2024-11-15 Florian Weimer <[email protected]> |
| 587 |
|
| 588 |
* c-opts.cc (c_common_post_options): Initialize |
| 589 |
warn_missing_parameter_name. |
| 590 |
* c.opt (Wmissing-parameter-name): New. |
| 591 |
|
| 592 |
2024-11-15 Jakub Jelinek <[email protected]> |
| 593 |
|
| 594 |
* c-common.h (enum rid): Add RID_DFLOAT64X. |
| 595 |
* c-common.cc (c_global_trees): Fix comment typo. Add |
| 596 |
dfloat64x_type_node. |
| 597 |
(c_common_nodes_and_builtins): Handle RID_DFLOAT64X. |
| 598 |
* c-cppbuiltin.cc (c_cpp_builtins): Call |
| 599 |
builtin_define_decimal_float_constants also for dfloat64x_type_node |
| 600 |
if non-NULL. |
| 601 |
* c-lex.cc (interpret_float): Handle d64x suffixes. |
| 602 |
* c-pretty-print.cc (pp_c_floating_constant): Print d64x suffixes |
| 603 |
on dfloat64x_type_node typed constants. |
| 604 |
|
| 605 |
2024-11-13 Martin Uecker <[email protected]> |
| 606 |
|
| 607 |
PR c/117059 |
| 608 |
* c.opt (Wzero-as-null-pointer-constant): Enable for C and ObjC. |
| 609 |
|
| 610 |
2024-11-13 Jakub Jelinek <[email protected]> |
| 611 |
|
| 612 |
* c-lex.cc (interpret_float): Subtract 3 or 4 from copylen |
| 613 |
rather than 2 if last character of CPP_N_DFLOAT is a digit. |
| 614 |
|
| 615 |
2024-11-12 Jason Merrill <[email protected]> |
| 616 |
|
| 617 |
* c.opt.urls: Regenerate. |
| 618 |
|
| 619 |
2024-11-11 Jason Merrill <[email protected]> |
| 620 |
|
| 621 |
* c.opt: Add -fmodules with same effect as -fmodules-ts. |
| 622 |
|
| 623 |
2024-11-11 Jakub Jelinek <[email protected]> |
| 624 |
|
| 625 |
* c-common.h (enum rid): Add RID_BUILTIN_OPERATOR_NEW |
| 626 |
and RID_BUILTIN_OPERATOR_DELETE. |
| 627 |
(names_builtin_p): Change return type from bool to int. |
| 628 |
* c-common.cc (c_common_reswords): Add __builtin_operator_new |
| 629 |
and __builtin_operator_delete. |
| 630 |
|
| 631 |
2024-11-07 Paul Iannetta <[email protected]> |
| 632 |
|
| 633 |
* c-pragma.cc (struct pragma_pp_data): Use (struct internal_pragma_handler); |
| 634 |
(c_register_pragma_1): Always register name and space for all pragmas. |
| 635 |
(c_invoke_pragma_handler): Adapt. |
| 636 |
(c_invoke_early_pragma_handler): Likewise. |
| 637 |
(c_pp_invoke_early_pragma_handler): Likewise. |
| 638 |
|
| 639 |
2024-11-01 Jakub Jelinek <[email protected]> |
| 640 |
|
| 641 |
* c.opt (std=c++2b, std=c++23, std=gnu++2b, std=gnu++23): Adjust |
| 642 |
description now that ISO C++ 14882:2024 is published. |
| 643 |
|
| 644 |
2024-10-31 Martin Uecker <[email protected]> |
| 645 |
|
| 646 |
PR c/117145 |
| 647 |
PR c/117245 |
| 648 |
PR c/100420 |
| 649 |
* c-pretty-print.cc (c_pretty_printer::direct_abstract_declarator): |
| 650 |
Detect arrays of unspecified size. |
| 651 |
|
| 652 |
2024-10-30 Joseph Myers <[email protected]> |
| 653 |
|
| 654 |
* c.opt (std=c23, std=gnu23, std=iso9899:2024): Do not mark as |
| 655 |
experimental and incomplete. |
| 656 |
|
| 657 |
2024-10-30 Jakub Jelinek <[email protected]> |
| 658 |
|
| 659 |
PR c/117021 |
| 660 |
* c-common.cc (c_add_case_label): Emit different diagnostics for C |
| 661 |
on case ranges. Diagnose for C using pedwarn conversions of range |
| 662 |
expressions changing value and don't emit further conversion |
| 663 |
diagnostics if the pedwarn has been diagnosed. For empty ranges |
| 664 |
bail out after emitting warning, don't add anything into splay |
| 665 |
trees nor add a CASE_LABEL_EXPR. |
| 666 |
|
| 667 |
2024-10-29 David Malcolm <[email protected]> |
| 668 |
|
| 669 |
PR other/116613 |
| 670 |
* c-format.cc (selftest::test_type_mismatch_range_labels): Update |
| 671 |
for m_printer becoming reference printer. |
| 672 |
(selftest::test_type_mismatch_range_labels): Likewise. |
| 673 |
|
| 674 |
2024-10-29 Jakub Jelinek <[email protected]> |
| 675 |
|
| 676 |
PR c/117313 |
| 677 |
* c-common.cc (complete_array_type): For RAW_DATA_CST elements |
| 678 |
advance curindex by RAW_DATA_LENGTH or one less than that if |
| 679 |
ce->index is non-NULL. Handle even the first element if |
| 680 |
it is RAW_DATA_CST. Formatting fix. |
| 681 |
|
| 682 |
2024-10-29 Jakub Jelinek <[email protected]> |
| 683 |
|
| 684 |
PR c/117030 |
| 685 |
* c-common.cc (c_common_reswords): Add __builtin_stdc_rotate_left |
| 686 |
and __builtin_stdc_rotate_right. |
| 687 |
* c-ubsan.cc (ubsan_instrument_shift): For {L,R}ROTATE_EXPR |
| 688 |
just check if op1 is negative. |
| 689 |
|
| 690 |
2024-10-27 Jakub Jelinek <[email protected]> |
| 691 |
|
| 692 |
* c.opt (warn_trailing_whitespace_kind): Change blank |
| 693 |
to blanks and space to any. |
| 694 |
|
| 695 |
2024-10-25 Jakub Jelinek <[email protected]> |
| 696 |
|
| 697 |
* c-ubsan.cc: Remove trailing whitespace. |
| 698 |
* stub-objc.cc: Likewise. |
| 699 |
* c-pragma.cc: Likewise. |
| 700 |
* c-ppoutput.cc: Likewise. |
| 701 |
* c-indentation.cc: Likewise. |
| 702 |
* c-ada-spec.cc: Likewise. |
| 703 |
* c-opts.cc: Likewise. |
| 704 |
* c-common.cc: Likewise. |
| 705 |
* c-format.cc: Likewise. |
| 706 |
* c-omp.cc: Likewise. |
| 707 |
* c-objc.h: Likewise. |
| 708 |
* c-cppbuiltin.cc: Likewise. |
| 709 |
* c-attribs.cc: Likewise. |
| 710 |
* c-target.def: Likewise. |
| 711 |
* c-common.h: Likewise. |
| 712 |
|
| 713 |
2024-10-24 David Malcolm <[email protected]> |
| 714 |
Gaius Mulley <[email protected]> |
| 715 |
|
| 716 |
PR other/116613 |
| 717 |
* c-ada-spec.cc: Add #define INCLUDE_MEMORY. |
| 718 |
* c-attribs.cc: Likewise. |
| 719 |
* c-common.cc: Likewise. |
| 720 |
* c-format.cc: Likewise. |
| 721 |
* c-gimplify.cc: Likewise. |
| 722 |
* c-indentation.cc: Likewise. |
| 723 |
* c-opts.cc: Likewise. |
| 724 |
* c-pch.cc: Likewise. |
| 725 |
* c-pragma.cc: Likewise. |
| 726 |
* c-pretty-print.cc: Likewise. Add #include "make-unique.h". |
| 727 |
(c_pretty_printer::clone): Use std::unique_ptr and ::make_unique. |
| 728 |
* c-pretty-print.h (c_pretty_printer::clone): Use std::unique_ptr. |
| 729 |
* c-type-mismatch.cc: Add #define INCLUDE_MEMORY. |
| 730 |
* c-warn.cc: Likewise. |
| 731 |
|
| 732 |
2024-10-23 Jakub Jelinek <[email protected]> |
| 733 |
|
| 734 |
* c.opt.urls: Regenerate. |
| 735 |
|
| 736 |
2024-10-23 Jakub Jelinek <[email protected]> |
| 737 |
|
| 738 |
* c.opt (Wleading-whitespace=): New option. |
| 739 |
* c-opts.cc (c_common_post_options): Set cpp_opts->cpp_tabstop |
| 740 |
to global_dc->m_tabstop. |
| 741 |
|
| 742 |
2024-10-22 Jakub Jelinek <[email protected]> |
| 743 |
|
| 744 |
PR c/117230 |
| 745 |
* c-warn.cc (sizeof_pointer_memaccess_warning): Only compare |
| 746 |
TYPE_PRECISION of TREE_TYPE (type) to precision of char if |
| 747 |
TREE_TYPE (type) is integral type. |
| 748 |
|
| 749 |
2024-10-17 Jakub Jelinek <[email protected]> |
| 750 |
|
| 751 |
PR c/117028 |
| 752 |
* c.opt (Wc23-c2y-compat): Add CPP and CppReason parameters. |
| 753 |
* c-opts.cc (set_std_c2y): Use CLK_STDC2Y or CLK_GNUC2Y rather |
| 754 |
than CLK_STDC23 and CLK_GNUC23. Formatting fix. |
| 755 |
* c-lex.cc (interpret_integer): Handle C2Y 0o or 0O prefixed |
| 756 |
and wb/WB/uwb/UWB suffixed octal constants. |
| 757 |
|
| 758 |
2024-10-16 Jakub Jelinek <[email protected]> |
| 759 |
|
| 760 |
* c-opts.cc (c_common_init_options, c_common_handle_option, |
| 761 |
c_common_finish, set_std_c89, set_std_c99, set_std_c11, |
| 762 |
set_std_c17, set_std_c23, set_std_cxx98, set_std_cxx11, |
| 763 |
set_std_cxx14, set_std_cxx17, set_std_cxx20, set_std_cxx23, |
| 764 |
set_std_cxx26): ?: operator formatting fixes. |
| 765 |
|
| 766 |
2024-10-16 Jakub Jelinek <[email protected]> |
| 767 |
|
| 768 |
* c-ppoutput.cc (token_streamer::stream): Add special code to spell |
| 769 |
CPP_EMBED token. |
| 770 |
* c-lex.cc (c_lex_with_flags): Handle CPP_EMBED. Formatting fix. |
| 771 |
* c-common.cc (c_parse_error): Handle CPP_EMBED. |
| 772 |
(braced_list_to_string): Optimize RAW_DATA_CST surrounded by |
| 773 |
INTEGER_CSTs which match some bytes before or after RAW_DATA_CST in |
| 774 |
its owner. |
| 775 |
|
| 776 |
2024-10-15 Qing Zhao <[email protected]> |
| 777 |
|
| 778 |
PR c/116016 |
| 779 |
* c-common.cc: Add new __builtin_counted_by_ref. |
| 780 |
* c-common.h (enum rid): Add RID_BUILTIN_COUNTED_BY_REF. |
| 781 |
|
| 782 |
2024-10-15 Jakub Jelinek <[email protected]> |
| 783 |
|
| 784 |
PR c/117022 |
| 785 |
* c-common.def (FOR_STMT, WHILE_STMT, DO_STMT, BREAK_STMT, |
| 786 |
CONTINUE_STMT, SWITCH_STMT): Add an extra operand, *_NAME |
| 787 |
and document it. |
| 788 |
* c-common.h (bc_hash_map_t): New typedef. |
| 789 |
(struct bc_state): Add bc_hash_map member. |
| 790 |
(WHILE_NAME, DO_NAME, FOR_NAME, BREAK_NAME, CONTINUE_NAME, |
| 791 |
SWITCH_STMT_NAME): Define. |
| 792 |
* c-pretty-print.cc (c_pretty_printer::statement): Print |
| 793 |
BREAK_STMT or CONTINUE_STMT operand if any. |
| 794 |
* c-gimplify.cc (bc_hash_map): New static variable. |
| 795 |
(note_named_bc, release_named_bc): New functions. |
| 796 |
(save_bc_state): Save and clear bc_hash_map. |
| 797 |
(restore_bc_state): Assert NULL and restore bc_hash_map. |
| 798 |
(genericize_c_loop): Add NAME argument, call note_named_bc |
| 799 |
and release_named_bc if non-NULL around the body walk. |
| 800 |
(genericize_for_stmt, genericize_while_stmt, genericize_do_stmt): |
| 801 |
Adjust callers of it. |
| 802 |
(genericize_switch_stmt): Rename break_block variable to blab. |
| 803 |
Call note_named_bc and release_named_bc if SWITCH_STMT_NAME is |
| 804 |
non-NULL around the body walk. |
| 805 |
(genericize_continue_stmt): Handle non-NULL CONTINUE_NAME. |
| 806 |
(genericize_break_stmt): Handle non-NULL BREAK_NAME. |
| 807 |
(c_genericize): Delete and clear bc_hash_map. |
| 808 |
|
| 809 |
2024-10-15 Andrew Pinski <[email protected]> |
| 810 |
|
| 811 |
PR c++/117157 |
| 812 |
* c.opt.urls: Regenerate. |
| 813 |
|
| 814 |
2024-10-15 Jakub Jelinek <[email protected]> |
| 815 |
|
| 816 |
* c.opt (Wtrailing-whitespace=): New option. |
| 817 |
(Wtrailing-whitespace): New alias. |
| 818 |
* c.opt.urls: Regenerate. |
| 819 |
|
| 820 |
2024-10-12 Jakub Jelinek <[email protected]> |
| 821 |
|
| 822 |
* c-lex.cc (c_common_has_attribute, |
| 823 |
c_common_lex_availability_macro): Fix up -Wformat-diag warnings. |
| 824 |
|
| 825 |
2024-10-09 Jason Merrill <[email protected]> |
| 826 |
|
| 827 |
* c-ppoutput.cc (preprocess_file): Set directives_only flag. |
| 828 |
|
| 829 |
2024-10-09 Ken Matsui <[email protected]> |
| 830 |
|
| 831 |
PR preprocessor/89808 |
| 832 |
* c.opt (Wpragma_once_outside_header): Define new option. |
| 833 |
* c.opt.urls: Regenerate. |
| 834 |
|
| 835 |
2024-10-07 Jason Merrill <[email protected]> |
| 836 |
|
| 837 |
* c-ppoutput.cc (preprocess_file): For modules, |
| 838 |
use directives-only scan even with flag_no_output. |
| 839 |
(directives_only_cb): Respect flag_no_output. |
| 840 |
|
| 841 |
2024-10-03 Jason Merrill <[email protected]> |
| 842 |
|
| 843 |
* c-opts.cc (c_common_post_options): Explicit -Wdeprecated enables |
| 844 |
deprecations from later standards. |
| 845 |
|
| 846 |
2024-10-03 Jason Merrill <[email protected]> |
| 847 |
|
| 848 |
* c.opt: Add -Wdeprecated-literal-operator. |
| 849 |
* c-opts.cc (c_common_post_options): Default on in C++23. |
| 850 |
* c.opt.urls: Regenerate. |
| 851 |
|
| 852 |
2024-10-02 Jakub Jelinek <[email protected]> |
| 853 |
|
| 854 |
PR preprocessor/96842 |
| 855 |
* c.opt (Wheader-guard): New option. |
| 856 |
* c.opt.urls: Regenerated. |
| 857 |
* c-ppoutput.cc (init_pp_output): Initialize also cb->get_suggestion. |
| 858 |
|
| 859 |
2024-10-01 Jason Merrill <[email protected]> |
| 860 |
|
| 861 |
* c-cppbuiltin.cc (c_cpp_builtins): Don't define __cpp_concepts |
| 862 |
before C++17. |
| 863 |
|
| 864 |
2024-09-30 David Malcolm <[email protected]> |
| 865 |
|
| 866 |
PR other/116613 |
| 867 |
* c-format.cc (selftest::test_type_mismatch_range_labels): |
| 868 |
Explicitly pass in dc.m_printer to diagnostic_show_locus. |
| 869 |
|
| 870 |
2024-09-27 Jakub Jelinek <[email protected]> |
| 871 |
|
| 872 |
PR libstdc++/116847 |
| 873 |
* c-pch.cc: Include diagnostic.h. |
| 874 |
(c_common_write_pch): Call global_dc->pch_save. |
| 875 |
(c_common_read_pch): Call global_dc->pch_restore. |
| 876 |
|
| 877 |
2024-09-25 Mikael Morin <[email protected]> |
| 878 |
|
| 879 |
PR other/116801 |
| 880 |
* c.opt.urls: Regenerate. |
| 881 |
|
| 882 |
2024-09-25 Marek Polacek <[email protected]> |
| 883 |
|
| 884 |
* c-pretty-print.cc (c_pretty_printer::primary_expression): Use |
| 885 |
TARGET_EXPR accessors. |
| 886 |
(c_pretty_printer::expression): Likewise. |
| 887 |
|
| 888 |
2024-09-24 Jakub Jelinek <[email protected]> |
| 889 |
|
| 890 |
* c.opt.urls: Regenerate. |
| 891 |
|
| 892 |
2024-09-24 Jakub Jelinek <[email protected]> |
| 893 |
|
| 894 |
PR c++/107637 |
| 895 |
* c.opt (frange-for-ext-temps): New option. |
| 896 |
* c-opts.cc (c_common_post_options): Set flag_range_for_ext_temps |
| 897 |
for C++23 or later or for C++11 or later in !flag_iso mode if |
| 898 |
the option wasn't set by user. |
| 899 |
* c-cppbuiltin.cc (c_cpp_builtins): Change __cpp_range_based_for |
| 900 |
value for flag_range_for_ext_temps from 201603L to 202212L in C++17 |
| 901 |
or later. |
| 902 |
* c-omp.cc (c_find_nested_loop_xform_r): Handle CLEANUP_POINT_EXPR |
| 903 |
like TRY_FINALLY_EXPR. |
| 904 |
|
| 905 |
2024-09-20 David Malcolm <[email protected]> |
| 906 |
|
| 907 |
PR other/116613 |
| 908 |
* c-opts.cc: Include "diagnostic-format-text.h". |
| 909 |
(c_diagnostic_finalizer): Rename to... |
| 910 |
(c_diagnostic_text_finalizer): ...this. Convert first param |
| 911 |
from diagnostic_context * to diagnostic_text_output_format & and |
| 912 |
update accordingly. |
| 913 |
(c_common_diagnostics_set_defaults): Update for renamings. |
| 914 |
|
| 915 |
2024-09-19 Marek Polacek <[email protected]> |
| 916 |
|
| 917 |
* c.opt.urls: Regenerate. |
| 918 |
|
| 919 |
2024-09-19 Marek Polacek <[email protected]> |
| 920 |
|
| 921 |
PR c++/116162 |
| 922 |
* c.opt (Wdefaulted-function-deleted): New. |
| 923 |
|
| 924 |
2024-09-12 Jason Merrill <[email protected]> |
| 925 |
|
| 926 |
* c.opt: Add CppReason for Wc++{14,17,20,23}-extensions. |
| 927 |
* c-pragma.cc (handle_pragma_diagnostic_impl): Don't check |
| 928 |
OPT_Wc__23_extensions. |
| 929 |
|
| 930 |
2024-09-12 Jakub Jelinek <[email protected]> |
| 931 |
|
| 932 |
PR c/105863 |
| 933 |
* c.opt (-embed-dir=): New option. |
| 934 |
(-embed-directory): New alias. |
| 935 |
(-embed-directory=): New alias. |
| 936 |
* c-opts.cc (c_common_handle_option): Handle OPT__embed_dir_. |
| 937 |
|
| 938 |
2024-09-09 David Malcolm <[email protected]> |
| 939 |
|
| 940 |
* c-common.cc (c_option_controlling_cpp_diagnostic): Return |
| 941 |
diagnostic_option_id rather than int. |
| 942 |
(c_cpp_diagnostic): Update for renaming of |
| 943 |
diagnostic_override_option_index to diagnostic_set_option_id. |
| 944 |
|
| 945 |
2024-09-09 David Malcolm <[email protected]> |
| 946 |
|
| 947 |
PR other/116613 |
| 948 |
* c-format.cc (selftest::test_type_mismatch_range_labels): Rename |
| 949 |
diagnostic_context's "printer" field to "m_printer". |
| 950 |
(selftest::test_type_mismatch_range_labels): Likewise. |
| 951 |
* c-opts.cc (c_diagnostic_finalizer): Likewise. |
| 952 |
|
| 953 |
2024-09-06 Jason Merrill <[email protected]> |
| 954 |
|
| 955 |
PR c++/46457 |
| 956 |
PR c++/81665 |
| 957 |
* c-attribs.cc (handle_flag_enum_attribute): New. |
| 958 |
(c_common_gnu_attributes): Add it. |
| 959 |
(c_common_clang_attributes, c_common_clang_attribute_table): New. |
| 960 |
* c-common.h: Declare c_common_clang_attribute_table. |
| 961 |
* c-warn.cc (c_do_switch_warnings): Handle flag_enum. |
| 962 |
|
| 963 |
2024-09-03 Qing Zhao <[email protected]> |
| 964 |
|
| 965 |
* c-attribs.cc (handle_counted_by_attribute): Is ignored and issues |
| 966 |
warning with -Wattributes in C++ for now. |
| 967 |
|
| 968 |
2024-09-03 David Malcolm <[email protected]> |
| 969 |
|
| 970 |
* c-ada-spec.cc (dump_ada_node): Prefix all output_buffer fields |
| 971 |
with "m_". |
| 972 |
* c-pretty-print.cc (pp_c_integer_constant): Likewise. |
| 973 |
(pp_c_integer_constant): Likewise. |
| 974 |
(pp_c_floating_constant): Likewise. |
| 975 |
(pp_c_fixed_constant): Likewise. |
| 976 |
|
| 977 |
2024-08-31 Jakub Jelinek <[email protected]> |
| 978 |
|
| 979 |
PR c/116130 |
| 980 |
* c-attribs.cc (c_common_gnu_attributes): Add entries for |
| 981 |
"unsequenced", "reproducible", "unsequenced noptr" and |
| 982 |
"reproducible noptr" attributes. |
| 983 |
(handle_unsequenced_attribute): New function. |
| 984 |
(handle_reproducible_attribute): Likewise. |
| 985 |
* c-common.h (handle_unsequenced_attribute): Declare. |
| 986 |
(handle_reproducible_attribute): Likewise. |
| 987 |
* c-lex.cc (c_common_has_attribute): Return 202311 for standard |
| 988 |
unsequenced and reproducible attributes. |
| 989 |
|
| 990 |
2024-08-28 Jason Merrill <[email protected]> |
| 991 |
|
| 992 |
* c-pragma.cc (handle_pragma_diagnostic_impl): Also handle |
| 993 |
-Wc++23-extensions early. |
| 994 |
* c-lex.cc (interpret_float): Use -Wc++23-extensions for extended |
| 995 |
floating point literal pedwarn. |
| 996 |
|
| 997 |
2024-08-09 Patrick Palka <[email protected]> |
| 998 |
|
| 999 |
* c.opt.urls: Regenerate. |
| 1000 |
|
| 1001 |
2024-08-09 Jakub Jelinek <[email protected]> |
| 1002 |
|
| 1003 |
* c-pragma.cc (c_pp_lookup_pragma): Use ARRAY_SIZE in |
| 1004 |
n_omp_pragmas_simd initializer. |
| 1005 |
(init_pragmas): Likewise. |
| 1006 |
|
| 1007 |
2024-08-08 Jakub Jelinek <[email protected]> |
| 1008 |
|
| 1009 |
PR c++/115744 |
| 1010 |
* c-cppbuiltin.cc (c_cpp_builtins): Change __cpp_constexpr |
| 1011 |
from 202306L to 202406L for C++26. |
| 1012 |
|
| 1013 |
2024-08-07 Patrick Palka <[email protected]> |
| 1014 |
|
| 1015 |
PR c++/116064 |
| 1016 |
* c.opt (Wtemplate-body): New warning. |
| 1017 |
|
| 1018 |
2024-08-02 Marek Polacek <[email protected]> |
| 1019 |
|
| 1020 |
* c.opt (Wdangling-reference): Move from -Wall to -Wextra. |
| 1021 |
|
| 1022 |
2024-07-30 Paul-Antoine Arras <[email protected]> |
| 1023 |
|
| 1024 |
* c-format.cc (gcc_gfc_char_table): Add formats for tree objects. |
| 1025 |
|
| 1026 |
2024-07-23 Andi Kleen <[email protected]> |
| 1027 |
|
| 1028 |
* c-attribs.cc (set_musttail_on_return): New function. |
| 1029 |
* c-common.h (set_musttail_on_return): Declare new function. |
| 1030 |
|
| 1031 |
2024-07-20 Andi Kleen <[email protected]> |
| 1032 |
|
| 1033 |
Revert: |
| 1034 |
2024-07-20 Andi Kleen <[email protected]> |
| 1035 |
|
| 1036 |
* c-attribs.cc (set_musttail_on_return): New function. |
| 1037 |
* c-common.h (set_musttail_on_return): Declare new function. |
| 1038 |
|
| 1039 |
2024-07-20 Andi Kleen <[email protected]> |
| 1040 |
|
| 1041 |
* c-attribs.cc (set_musttail_on_return): New function. |
| 1042 |
* c-common.h (set_musttail_on_return): Declare new function. |
| 1043 |
|
| 1044 |
2024-07-20 Andi Kleen <[email protected]> |
| 1045 |
|
| 1046 |
PR c/83324 |
| 1047 |
* c-attribs.cc (handle_musttail_attribute): Add. |
| 1048 |
* c-common.h (handle_musttail_attribute): Add. |
| 1049 |
|
| 1050 |
2024-07-17 Mark Wielaard <[email protected]> |
| 1051 |
|
| 1052 |
* c.opt.urls: Regenerate. |
| 1053 |
|
| 1054 |
2024-07-14 Alejandro Colomar <[email protected]> |
| 1055 |
|
| 1056 |
PR c/115185 |
| 1057 |
* c.opt: Add -Wunterminated-string-initialization. |
| 1058 |
|
| 1059 |
2024-07-13 David Malcolm <[email protected]> |
| 1060 |
|
| 1061 |
* c-common.cc: Include "tree-pretty-print-markup.h". |
| 1062 |
(binary_op_error): Use pp_markup::element_quoted_type and %e. |
| 1063 |
(check_function_arguments): Add "comp_types" param and pass it to |
| 1064 |
check_function_format. |
| 1065 |
* c-common.h (check_function_arguments): Add "comp_types" param. |
| 1066 |
(check_function_format): Likewise. |
| 1067 |
* c-format.cc: Include "tree-pretty-print-markup.h". |
| 1068 |
(local_pp_element_ptr_node): New. |
| 1069 |
(PP_FORMAT_CHAR_TABLE): Add entry for %e. |
| 1070 |
(struct format_check_context): Add "m_comp_types" field. |
| 1071 |
(check_function_format): Add "comp_types" param and pass it to |
| 1072 |
check_format_info. |
| 1073 |
(check_format_info): Likewise, passing it to format_ctx's ctor. |
| 1074 |
(check_format_arg): Extract m_comp_types from format_ctx and |
| 1075 |
pass it to check_format_info_main. |
| 1076 |
(check_format_info_main): Add "comp_types" param and pass it to |
| 1077 |
arg_parser's ctor. |
| 1078 |
(class argument_parser): Add "m_comp_types" field. |
| 1079 |
(argument_parser::check_argument_type): Pass m_comp_types to |
| 1080 |
check_format_types. |
| 1081 |
(handle_subclass_of_pp_element_p): New. |
| 1082 |
(check_format_types): Add "comp_types" param, and use it to |
| 1083 |
call handle_subclass_of_pp_element_p. |
| 1084 |
(class element_format_substring): New. |
| 1085 |
(class element_expected_type_with_indirection): New. |
| 1086 |
(format_type_warning): Use element_expected_type_with_indirection |
| 1087 |
to unify the if (wanted_type_name) branches, reducing from four |
| 1088 |
emit_warning calls to two. Simplify these further using %e. |
| 1089 |
Doing so also gives suitable colorization of the text within the |
| 1090 |
diagnostics. |
| 1091 |
(init_dynamic_diag_info): Initialize local_pp_element_ptr_node. |
| 1092 |
(selftest::test_type_mismatch_range_labels): Add nullptr for new |
| 1093 |
param of gcc_rich_location label overload. |
| 1094 |
* c-format.h (T_PP_ELEMENT_PTR): New. |
| 1095 |
* c-type-mismatch.cc: Include "diagnostic-highlight-colors.h". |
| 1096 |
(binary_op_rich_location::binary_op_rich_location): Use |
| 1097 |
highlight_colors::lhs and highlight_colors::rhs for the ranges. |
| 1098 |
* c-type-mismatch.h (class binary_op_rich_location): Add comment |
| 1099 |
about highlight_colors. |
| 1100 |
|
| 1101 |
2024-07-10 Marek Polacek <[email protected]> |
| 1102 |
|
| 1103 |
* c-cppbuiltin.cc (c_cpp_builtins): Remove flag_concepts_ts code. |
| 1104 |
* c-opts.cc (c_common_post_options): Likewise. |
| 1105 |
* c.opt: Remove -fconcepts-ts. |
| 1106 |
* c.opt.urls: Regenerate. |
| 1107 |
|
| 1108 |
2024-07-08 David Malcolm <[email protected]> |
| 1109 |
|
| 1110 |
* c-format.cc (format_check_results::format_check_results): New |
| 1111 |
ctor. |
| 1112 |
(struct format_check_context): Add ctor; add "m_" prefix to all |
| 1113 |
fields. |
| 1114 |
(check_format_info): Use above ctors. |
| 1115 |
(check_format_arg): Update for "m_" prefix to |
| 1116 |
format_check_context. |
| 1117 |
|
| 1118 |
2024-07-03 Lewis Hyatt <[email protected]> |
| 1119 |
|
| 1120 |
PR pch/115312 |
| 1121 |
* c-opts.cc (c_common_init): Call c_init_preprocess() before |
| 1122 |
c_finish_options() so that a parser is available to process any |
| 1123 |
includes specified on the command line. |
| 1124 |
|
| 1125 |
2024-06-25 Andrew Pinski <[email protected]> |
| 1126 |
|
| 1127 |
PR c++/115624 |
| 1128 |
* c.opt (Wnrvo): Add Warning property. |
| 1129 |
|
| 1130 |
2024-06-18 David Malcolm <[email protected]> |
| 1131 |
|
| 1132 |
* c-opts.cc: Replace include of "tree-diagnostic.h" with |
| 1133 |
"diagnostic-macro-unwinding.h". |
| 1134 |
|
| 1135 |
2024-06-17 Eric Botcazou <[email protected]> |
| 1136 |
|
| 1137 |
* c-ada-spec.cc (is_float16): New predicate. |
| 1138 |
(dump_ada_node) <REAL_TYPE>: Call it. |
| 1139 |
|
| 1140 |
2024-06-17 Joseph Myers <[email protected]> |
| 1141 |
|
| 1142 |
* c-common.cc (c_sizeof_or_alignof_type): Allow alignof on an |
| 1143 |
incomplete array type for C2Y. |
| 1144 |
|
| 1145 |
2024-06-17 Jakub Jelinek <[email protected]> |
| 1146 |
|
| 1147 |
PR c/115290 |
| 1148 |
* c-warn.cc (do_warn_array_compare): Use %E rather than %D for |
| 1149 |
printing op0 and op1; if those operands aren't decls, also print |
| 1150 |
parens around them. |
| 1151 |
|
| 1152 |
2024-06-12 David Malcolm <[email protected]> |
| 1153 |
|
| 1154 |
* c-ada-spec.cc (dump_ads): Update for fields of pretty_printer |
| 1155 |
becoming private. |
| 1156 |
* c-pretty-print.cc: Likewise throughout. |
| 1157 |
|
| 1158 |
2024-06-12 David Malcolm <[email protected]> |
| 1159 |
|
| 1160 |
* c-ada-spec.cc: Rename pretty_printer "buffer" to "pp" |
| 1161 |
throughout. |
| 1162 |
|
| 1163 |
2024-06-11 Joseph Myers <[email protected]> |
| 1164 |
|
| 1165 |
* c-common.cc (flag_isoc2y): New. |
| 1166 |
(flag_isoc99, flag_isoc11, flag_isoc23): Update comments. |
| 1167 |
* c-common.h (flag_isoc2y): New. |
| 1168 |
(clk_c, flag_isoc23): Update comments. |
| 1169 |
* c-opts.cc (set_std_c2y): New. |
| 1170 |
(c_common_handle_option): Handle OPT_std_c2y and OPT_std_gnu2y. |
| 1171 |
(set_std_c89, set_std_c99, set_std_c11, set_std_c17, set_std_c23): |
| 1172 |
Set flag_isoc2y. |
| 1173 |
(set_std_c23): Update comment. |
| 1174 |
* c.opt (Wc23-c2y-compat, std=c2y, std=gnu2y): New. |
| 1175 |
* c.opt.urls: Regenerate. |
| 1176 |
|
| 1177 |
2024-06-11 Andi Kleen <[email protected]> |
| 1178 |
|
| 1179 |
* c-cppbuiltin.cc (c_cpp_builtins): Define __GXX_CONSTEXPR_ASM__ |
| 1180 |
|
| 1181 |
2024-06-05 Jakub Jelinek <[email protected]> |
| 1182 |
Frederik Harwath <[email protected]> |
| 1183 |
Sandra Loosemore <[email protected]> |
| 1184 |
|
| 1185 |
* c-common.h (c_omp_find_generated_loop): Declare. |
| 1186 |
* c-gimplify.cc (c_genericize_control_stmt): Handle OMP_TILE and |
| 1187 |
OMP_UNROLL. |
| 1188 |
* c-omp.cc (c_finish_omp_for): Handle generated loops. |
| 1189 |
(c_omp_is_loop_iterator): Likewise. |
| 1190 |
(c_find_nested_loop_xform_r, c_omp_find_generated_loop): New |
| 1191 |
functions. |
| 1192 |
(c_omp_check_loop_iv): Handle generated loops. For now sorry |
| 1193 |
on mixing non-rectangular loop with generated loops. |
| 1194 |
(c_omp_check_loop_binding_exprs): For now sorry on mixing |
| 1195 |
imperfect loops with generated loops. |
| 1196 |
(c_omp_directives): Uncomment tile and unroll entries. |
| 1197 |
* c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TILE and |
| 1198 |
PRAGMA_OMP_UNROLL, change PRAGMA_OMP__LAST_ to the latter. |
| 1199 |
(enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FULL and |
| 1200 |
PRAGMA_OMP_CLAUSE_PARTIAL. |
| 1201 |
* c-pragma.cc (omp_pragmas_simd): Add tile and unroll omp pragmas. |
| 1202 |
|
| 1203 |
2024-05-31 Qing Zhao <[email protected]> |
| 1204 |
|
| 1205 |
* c-ubsan.cc (get_bound_from_access_with_size): New function. |
| 1206 |
(ubsan_instrument_bounds): Handle call to .ACCESS_WITH_SIZE. |
| 1207 |
|
| 1208 |
2024-05-31 Qing Zhao <[email protected]> |
| 1209 |
|
| 1210 |
* c-attribs.cc (handle_counted_by_attribute): New function. |
| 1211 |
(attribute_takes_identifier_p): Add counted_by attribute to the list. |
| 1212 |
* c-common.cc (c_flexible_array_member_type_p): ...To this. |
| 1213 |
* c-common.h (c_flexible_array_member_type_p): New prototype. |
| 1214 |
|
| 1215 |
2024-05-31 Martin Uecker <[email protected]> |
| 1216 |
|
| 1217 |
PR tree-optimization/115157 |
| 1218 |
PR tree-optimization/115177 |
| 1219 |
* c-attribs.cc (handle_hardbool_attribute): Set TYPE_CANONICAL |
| 1220 |
for hardbools. |
| 1221 |
|
| 1222 |
2024-05-29 Jason Merrill <[email protected]> |
| 1223 |
|
| 1224 |
PR c++/109753 |
| 1225 |
* c-attribs.cc (handle_optimize_attribute): Set |
| 1226 |
cgraph_node::semantic_interposition. |
| 1227 |
|
| 1228 |
2024-05-29 Oskari Pirhonen <[email protected]> |
| 1229 |
|
| 1230 |
* known-headers.cc (get_stdlib_header_for_name): Add strerror. |
| 1231 |
|
| 1232 |
2024-05-28 David Malcolm <[email protected]> |
| 1233 |
|
| 1234 |
PR bootstrap/115167 |
| 1235 |
* c-format.cc: Replace include of "gcc-rich-location.h" with |
| 1236 |
"c-family/c-type-mismatch.h". |
| 1237 |
* c-type-mismatch.cc: New file, taking material from |
| 1238 |
gcc-rich-location.cc. |
| 1239 |
* c-type-mismatch.h: New file, taking material from |
| 1240 |
gcc-rich-location.h. |
| 1241 |
* c-warn.cc: Replace include of "gcc-rich-location.h" with |
| 1242 |
"c-family/c-type-mismatch.h". |
| 1243 |
|
| 1244 |
2024-05-24 Eric Botcazou <[email protected]> |
| 1245 |
|
| 1246 |
* c-ada-spec.cc (is_cpp_float): New predicate. |
| 1247 |
(dump_number): Deal with more preprocessing floating constants. |
| 1248 |
(dump_ada_macros) <CPP_NUMBER>: Use is_cpp_float. |
| 1249 |
|
| 1250 |
2024-05-23 Eric Botcazou <[email protected]> |
| 1251 |
|
| 1252 |
* c-ada-spec.cc (check_type_name_conflict): Add guard. |
| 1253 |
(is_char_array): Simplify. |
| 1254 |
(dump_ada_array_type): Use strip_array_types. |
| 1255 |
(dump_ada_node) <POINTER_TYPE>: Deal with anonymous array types. |
| 1256 |
(dump_nested_type): Use strip_array_types. |
| 1257 |
|
| 1258 |
2024-05-17 Eric Botcazou <[email protected]> |
| 1259 |
|
| 1260 |
* c-ada-spec.cc (bitfield_used): Move around. |
| 1261 |
(packed_layout): Likewise. |
| 1262 |
(dump_ada_array_type): Do not put "aliased" for a packed layout. |
| 1263 |
|
| 1264 |
2024-05-15 Marek Polacek <[email protected]> |
| 1265 |
|
| 1266 |
DR 1693 |
| 1267 |
PR c++/113760 |
| 1268 |
DR 569 |
| 1269 |
* c.opt (Wextra-semi): Initialize to -1. |
| 1270 |
|
| 1271 |
2024-05-08 Marek Polacek <[email protected]> |
| 1272 |
|
| 1273 |
PR c++/113582 |
| 1274 |
* c-warn.cc (warn_for_unused_label): Don't warn if -Wunused-label has |
| 1275 |
been suppressed for the label. |
| 1276 |
|
| 1277 |
2024-05-07 Andrew Pinski <[email protected]> |
| 1278 |
|
| 1279 |
PR c++/89224 |
| 1280 |
* c-common.cc (convert_vector_to_array_for_subscript): Call build_qualified_type |
| 1281 |
for the inner type. |
| 1282 |
|
| 1283 |
2024-05-07 Jakub Jelinek <[email protected]> |
| 1284 |
|
| 1285 |
PR c++/114459 |
| 1286 |
* c-cppbuiltin.cc (c_cpp_builtins): Predefine |
| 1287 |
__cpp_variadic_friend=202403L for C++26. |
| 1288 |
|
| 1289 |
2024-05-07 Richard Biener <[email protected]> |
| 1290 |
|
| 1291 |
PR middle-end/114931 |
| 1292 |
* c-common.cc (complete_array_type): Set TYPE_STRUCTURAL_EQUALITY_P |
| 1293 |
before probing with type_hash_canon. |
| 1294 |
|
| 1295 |
2024-05-02 Jakub Jelinek <[email protected]> |
| 1296 |
|
| 1297 |
PR c++/114458 |
| 1298 |
* c-cppbuiltin.cc (c_cpp_builtins): Predefine |
| 1299 |
__cpp_deleted_function=202403L for C++26. |
| 1300 |
|
| 1301 |
2024-04-30 Jakub Jelinek <[email protected]> |
| 1302 |
|
| 1303 |
PR c++/114456 |
| 1304 |
* c-cppbuiltin.cc (c_cpp_builtins): Predefine |
| 1305 |
__cpp_structured_bindings for C++26 to 202403L rather than |
| 1306 |
201606L. |
| 1307 |
|
| 1308 |
2024-04-23 Jakub Jelinek <[email protected]> |
| 1309 |
|
| 1310 |
* c-attribs.cc (handle_objc_nullability_attribute): Spelling fix: |
| 1311 |
recognised -> recognized. |
| 1312 |
|
| 1313 |
2024-04-23 Jakub Jelinek <[email protected]> |
| 1314 |
|
| 1315 |
* c.opt (Wstrict-flex-arrays): Spelling fix: inproper -> improper. |
| 1316 |
|
| 1317 |
2024-04-19 Jakub Jelinek <[email protected]> |
| 1318 |
|
| 1319 |
PR c/114780 |
| 1320 |
* c-common.cc (check_function_sentinel): Allow as sentinel any |
| 1321 |
argument of NULLPTR_TYPE. |
| 1322 |
|
| 1323 |
2024-04-13 Mark Wielaard <[email protected]> |
| 1324 |
|
| 1325 |
* c.opt.urls: Regenerate. |
| 1326 |
|
| 1327 |
2024-04-12 Jason Merrill <[email protected]> |
| 1328 |
Patrick Palka <[email protected]> |
| 1329 |
|
| 1330 |
PR c++/113141 |
| 1331 |
* c.opt: Add -Wcast-user-defined. |
| 1332 |
|
| 1333 |
2024-04-05 Marek Polacek <[email protected]> |
| 1334 |
|
| 1335 |
* c-warn.cc (warn_about_parentheses): Remove an #undef. |
| 1336 |
|
| 1337 |
2024-03-27 Jakub Jelinek <[email protected]> |
| 1338 |
|
| 1339 |
PR tree-optimization/114469 |
| 1340 |
* c-common.cc (resolve_overloaded_builtin): For _BitInt result |
| 1341 |
on !extended targets convert result to the _BitInt type before |
| 1342 |
using VIEW_CONVERT_EXPR. |
| 1343 |
|
| 1344 |
2024-03-26 Jakub Jelinek <[email protected]> |
| 1345 |
|
| 1346 |
PR c++/112724 |
| 1347 |
* c-pretty-print.cc (pp_c_cast_expression, |
| 1348 |
c_pretty_printer::expression): Handle EXCESS_PRECISION_EXPR like |
| 1349 |
NOP_EXPR. |
| 1350 |
|
| 1351 |
2024-03-19 Jakub Jelinek <[email protected]> |
| 1352 |
|
| 1353 |
PR c/114364 |
| 1354 |
* c-omp.cc (enum check_loop_binding_expr_ctx): New type. |
| 1355 |
(check_loop_binding_expr): Remove context argument, add ctx |
| 1356 |
argument with check_loop_binding_expr_ctx type at the end. Don't |
| 1357 |
create diagnostic message from multiple pieces. |
| 1358 |
(c_omp_check_loop_binding_exprs): Adjust callers. |
| 1359 |
|
| 1360 |
2024-03-08 Jakub Jelinek <[email protected]> |
| 1361 |
|
| 1362 |
* c-common.cc (resolve_overloaded_atomic_exchange): Instead of setting |
| 1363 |
p1 to VIEW_CONVERT_EXPR<I_type> (*p1), set it to MEM_REF with p1 and |
| 1364 |
(typeof (p1)) 0 operands and I_type type. |
| 1365 |
(resolve_overloaded_atomic_compare_exchange): Similarly for p2. |
| 1366 |
|
| 1367 |
2024-03-05 Mark Wielaard <[email protected]> |
| 1368 |
|
| 1369 |
* c.opt.urls: Regenerate. |
| 1370 |
|
| 1371 |
2024-03-05 Patrick Palka <[email protected]> |
| 1372 |
|
| 1373 |
* c.opt (Wglobal-module): New warning. |
| 1374 |
|
| 1375 |
2024-03-04 Mark Wielaard <[email protected]> |
| 1376 |
|
| 1377 |
* c.opt.urls: Regenerate. |
| 1378 |
|
| 1379 |
2024-02-22 Jakub Jelinek <[email protected]> |
| 1380 |
|
| 1381 |
PR c/114007 |
| 1382 |
* c-lex.cc (c_common_has_attribute): Parse 2 CPP_COLONs with |
| 1383 |
the first one with COLON_SCOPE flag the same as CPP_SCOPE. |
| 1384 |
|
| 1385 |
2024-02-10 Marek Polacek <[email protected]> |
| 1386 |
|
| 1387 |
DR 2237 |
| 1388 |
PR c++/107126 |
| 1389 |
PR c++/97202 |
| 1390 |
* c-opts.cc (c_common_post_options): In C++20 or with -Wc++20-compat, |
| 1391 |
turn on -Wtemplate-id-cdtor. |
| 1392 |
* c.opt (Wtemplate-id-cdtor): New. |
| 1393 |
|
| 1394 |
2024-02-10 Jakub Jelinek <[email protected]> |
| 1395 |
|
| 1396 |
* c-format.cc (gcc_diag_length_specs): Add t and z modifiers. |
| 1397 |
(PP_FORMAT_CHAR_TABLE, gcc_gfc_char_table): Add entries for t and |
| 1398 |
z modifiers. |
| 1399 |
|
| 1400 |
2024-02-10 Jakub Jelinek <[email protected]> |
| 1401 |
|
| 1402 |
* c-ada-spec.cc (dump_template_types): Use HOST_SIZE_T_PRINT_UNSIGNED |
| 1403 |
and casts to fmt_size_t instead of "%lu" and casts to unsigned long. |
| 1404 |
|
| 1405 |
2024-02-01 Lewis Hyatt <[email protected]> |
| 1406 |
|
| 1407 |
PR preprocessor/105608 |
| 1408 |
* c-pch.cc (c_common_read_pch): Adjust line map so that libcpp |
| 1409 |
assigns a location to restored macros which is the same location |
| 1410 |
that triggered the PCH include. |
| 1411 |
|
| 1412 |
2024-01-31 Marek Polacek <[email protected]> |
| 1413 |
|
| 1414 |
* c-opts.cc (c_common_post_options): Add an inform saying that |
| 1415 |
-fconcepts-ts is deprecated and will be removed in GCC 15. |
| 1416 |
|
| 1417 |
2024-01-27 Lewis Hyatt <[email protected]> |
| 1418 |
|
| 1419 |
PR preprocessor/105608 |
| 1420 |
* c-pch.cc (c_common_read_pch): Start a new line map before asking |
| 1421 |
libcpp to restore macros defined prior to reading the PCH, instead |
| 1422 |
of afterward. |
| 1423 |
|
| 1424 |
2024-01-23 Jakub Jelinek <[email protected]> |
| 1425 |
|
| 1426 |
PR c/113518 |
| 1427 |
* c-common.cc (atomic_bitint_fetch_using_cas_loop): Call c_fully_fold |
| 1428 |
on lhs_addr, val and model for C. |
| 1429 |
|
| 1430 |
2024-01-23 Sandra Loosemore <[email protected]> |
| 1431 |
|
| 1432 |
* c.opt: Improve sorting of warning options. |
| 1433 |
|
| 1434 |
2024-01-16 Eric Botcazou <[email protected]> |
| 1435 |
|
| 1436 |
PR ada/113397 |
| 1437 |
* c-ada-spec.cc (check_type_name_conflict): Add guard for the |
| 1438 |
presence of DECL_NAME on a TYPE_DECL. |
| 1439 |
|
| 1440 |
2024-01-11 Julian Brown <[email protected]> |
| 1441 |
|
| 1442 |
* c-pretty-print.cc (c_pretty_printer::postfix_expression, |
| 1443 |
c_pretty_printer::expression): Add OMP_ARRAY_SECTION support. |
| 1444 |
|
| 1445 |
2024-01-09 waffl3x <[email protected]> |
| 1446 |
|
| 1447 |
PR c++/102609 |
| 1448 |
PR c++/102609 |
| 1449 |
C++23 P0847R7 (deducing this) - diagnostics. |
| 1450 |
* c-cppbuiltin.cc (c_cpp_builtins): Define |
| 1451 |
__cpp_explicit_this_parameter=202110L feature test macro. |
| 1452 |
|
| 1453 |
2024-01-09 Jakub Jelinek <[email protected]> |
| 1454 |
|
| 1455 |
PR c/113262 |
| 1456 |
* c-attribs.cc (handle_copy_attribute): Don't use |
| 1457 |
DECL_SOURCE_LOCATION (decl) if decl is not DECL_P, use input_location |
| 1458 |
instead. Formatting fixes. |
| 1459 |
|
| 1460 |
2024-01-09 Julian Brown <[email protected]> |
| 1461 |
|
| 1462 |
* c-common.h (c_omp_address_inspector): Remove static from get_origin |
| 1463 |
and maybe_unconvert_ref methods. |
| 1464 |
* c-omp.cc (c_omp_split_clauses): Support OMP_ARRAY_SECTION. |
| 1465 |
(c_omp_address_inspector::map_supported_p): Handle OMP_ARRAY_SECTION. |
| 1466 |
(c_omp_address_inspector::get_origin): Avoid dereferencing possibly |
| 1467 |
NULL type when processing template decls. |
| 1468 |
(c_omp_address_inspector::maybe_unconvert_ref): Likewise. |
| 1469 |
|
| 1470 |
2024-01-04 David Malcolm <[email protected]> |
| 1471 |
|
| 1472 |
* c.opt.urls: New file, autogenerated by regenerate-opt-urls.py. |
| 1473 |
|
| 1474 |
2023-12-21 Jakub Jelinek <[email protected]> |
| 1475 |
|
| 1476 |
* c.opt (Walloc-size): Enable also for C++ and ObjC++. |
| 1477 |
|
| 1478 |
2023-12-21 Jakub Jelinek <[email protected]> |
| 1479 |
|
| 1480 |
PR sanitizer/113092 |
| 1481 |
* c-ubsan.cc (ubsan_instrument_shift): Workaround for missing |
| 1482 |
ubsan _BitInt support for the shift count. |
| 1483 |
|
| 1484 |
2023-12-20 Florian Weimer <[email protected]> |
| 1485 |
|
| 1486 |
PR c/113050 |
| 1487 |
* c-common.cc (get_atomic_generic_size): Use |
| 1488 |
OPT_Wdiscarded_qualifiers instead of |
| 1489 |
OPT_Wincompatible_pointer_types. |
| 1490 |
|
| 1491 |
2023-12-20 Jakub Jelinek <[email protected]> |
| 1492 |
|
| 1493 |
* c.opt (Wcalloc-transposed-args): New warning. |
| 1494 |
* c-common.h (warn_for_calloc, warn_for_alloc_size): Declare. |
| 1495 |
* c-warn.cc (warn_for_calloc, warn_for_alloc_size): New functions. |
| 1496 |
|
| 1497 |
2023-12-16 Andrew Carlotti <[email protected]> |
| 1498 |
|
| 1499 |
* c-attribs.cc (attr_target_exclusions): Make |
| 1500 |
target/target_clones exclusion target-dependent. |
| 1501 |
(attr_target_clones_exclusions): Ditto, and add target_version. |
| 1502 |
(attr_target_version_exclusions): New. |
| 1503 |
(c_common_attribute_table): Add target_version. |
| 1504 |
(handle_target_version_attribute): New. |
| 1505 |
(handle_target_attribute): Amend comment. |
| 1506 |
(handle_target_clones_attribute): Ditto. |
| 1507 |
|
| 1508 |
2023-12-16 Andrew Carlotti <[email protected]> |
| 1509 |
|
| 1510 |
* c-attribs.cc (attr_always_inline_exclusions): New. |
| 1511 |
(attr_target_exclusions): Ditto. |
| 1512 |
(attr_target_clones_exclusions): Ditto. |
| 1513 |
(c_common_attribute_table): Add new exclusion lists. |
| 1514 |
(handle_noinline_attribute): Remove custom exclusion handling. |
| 1515 |
(handle_always_inline_attribute): Ditto. |
| 1516 |
(handle_target_attribute): Ditto. |
| 1517 |
(handle_target_clones_attribute): Ditto. |
| 1518 |
|
| 1519 |
2023-12-13 Patrick Palka <[email protected]> |
| 1520 |
|
| 1521 |
* c.opt: Add -fdiagnostics-all-candidates. |
| 1522 |
|
| 1523 |
2023-12-13 Jason Merrill <[email protected]> |
| 1524 |
|
| 1525 |
* c-warn.cc (check_address_or_pointer_of_packed_member): |
| 1526 |
Rename to check_address_of_packed_member. |
| 1527 |
(check_and_warn_address_or_pointer_of_packed_member): |
| 1528 |
Rename to check_and_warn_address_of_packed_member. |
| 1529 |
(warn_for_address_or_pointer_of_packed_member): |
| 1530 |
Rename to warn_for_address_of_packed_member. |
| 1531 |
* c-common.h: Adjust. |
| 1532 |
|
| 1533 |
2023-12-13 Jason Merrill <[email protected]> |
| 1534 |
|
| 1535 |
* c-warn.cc (check_address_or_pointer_of_packed_member): |
| 1536 |
Remove warning based on TYPE_PACKED. |
| 1537 |
|
| 1538 |
2023-12-13 Julian Brown <[email protected]> |
| 1539 |
|
| 1540 |
* c-common.h (c_omp_region_type): Add C_ORT_EXIT_DATA, |
| 1541 |
C_ORT_OMP_EXIT_DATA and C_ORT_ACC_TARGET. |
| 1542 |
(omp_addr_token): Add forward declaration. |
| 1543 |
(c_omp_address_inspector): New class. |
| 1544 |
* c-omp.cc (c_omp_adjust_map_clauses): Mark decls addressable here, but |
| 1545 |
do not change any mapping node types. |
| 1546 |
(c_omp_address_inspector::unconverted_ref_origin, |
| 1547 |
c_omp_address_inspector::component_access_p, |
| 1548 |
c_omp_address_inspector::check_clause, |
| 1549 |
c_omp_address_inspector::get_root_term, |
| 1550 |
c_omp_address_inspector::map_supported_p, |
| 1551 |
c_omp_address_inspector::get_origin, |
| 1552 |
c_omp_address_inspector::maybe_unconvert_ref, |
| 1553 |
c_omp_address_inspector::maybe_zero_length_array_section, |
| 1554 |
c_omp_address_inspector::expand_array_base, |
| 1555 |
c_omp_address_inspector::expand_component_selector, |
| 1556 |
c_omp_address_inspector::expand_map_clause): New methods. |
| 1557 |
(omp_expand_access_chain): New function. |
| 1558 |
|
| 1559 |
2023-12-12 Richard Biener <[email protected]> |
| 1560 |
|
| 1561 |
PR ipa/92606 |
| 1562 |
* c-attribs.cc (handle_noicf_attribute): Also allow the |
| 1563 |
attribute on global variables. |
| 1564 |
|
| 1565 |
2023-12-10 Ken Matsui <[email protected]> |
| 1566 |
Patrick Palka <[email protected]> |
| 1567 |
|
| 1568 |
* c-common.cc (c_common_reswords): Remove all mappings of |
| 1569 |
built-in traits. |
| 1570 |
* c-common.h (enum rid): Remove all RID values for built-in |
| 1571 |
traits. |
| 1572 |
|
| 1573 |
2023-12-07 Andrew Pinski <[email protected]> |
| 1574 |
Jakub Jelinek <[email protected]> |
| 1575 |
|
| 1576 |
PR preprocessor/111965 |
| 1577 |
* c-opts.cc (c_common_handle_option) <case OPT_fdebug_cpp>: Set |
| 1578 |
cpp_opts->debug to value rather than 1. |
| 1579 |
|
| 1580 |
2023-12-06 David Malcolm <[email protected]> |
| 1581 |
|
| 1582 |
* c-opts.cc (c_diagnostic_finalizer): Make "diagnostic" param |
| 1583 |
const. |
| 1584 |
|
| 1585 |
2023-12-06 Alexandre Oliva <[email protected]> |
| 1586 |
|
| 1587 |
* c-attribs.cc: Include ipa-strub.h. |
| 1588 |
(handle_strub_attribute): New. |
| 1589 |
(c_common_attribute_table): Add strub. |
| 1590 |
|
| 1591 |
2023-12-05 Richard Sandiford <[email protected]> |
| 1592 |
|
| 1593 |
* c-attribs.cc (c_common_gnu_attribute_table): Add extra |
| 1594 |
braces to work around PR 16333 in older compilers. |
| 1595 |
|
| 1596 |
2023-12-05 Richard Biener <[email protected]> |
| 1597 |
|
| 1598 |
PR c/89270 |
| 1599 |
* c-common.cc (c_common_type_for_size): Consider |
| 1600 |
registered_builtin_types. |
| 1601 |
|
| 1602 |
2023-12-05 Marek Polacek <[email protected]> |
| 1603 |
|
| 1604 |
PR c++/107687 |
| 1605 |
PR c++/110997 |
| 1606 |
* c-cppbuiltin.cc (c_cpp_builtins): Update __cpp_consteval. |
| 1607 |
* c-opts.cc (c_common_post_options): Pre-C++20, unset |
| 1608 |
flag_immediate_escalation. |
| 1609 |
* c.opt (fimmediate-escalation): New option. |
| 1610 |
|
| 1611 |
2023-12-02 Richard Sandiford <[email protected]> |
| 1612 |
|
| 1613 |
* c-common.h (c_common_attribute_table): Replace with... |
| 1614 |
(c_common_gnu_attribute_table): ...this. |
| 1615 |
(c_common_format_attribute_table): Change type to |
| 1616 |
scoped_attribute_specs. |
| 1617 |
* c-attribs.cc (c_common_attribute_table): Replace with... |
| 1618 |
(c_common_gnu_attributes, c_common_gnu_attribute_table): ...these |
| 1619 |
new globals. |
| 1620 |
(c_common_format_attribute_table): Change type to |
| 1621 |
scoped_attribute_specs, using... |
| 1622 |
(c_common_format_attributes): ...this as the underlying array. |
| 1623 |
|
| 1624 |
2023-12-01 Florian Weimer <[email protected]> |
| 1625 |
|
| 1626 |
* c.opt (Wdeclaration-missing-parameter-type): New. |
| 1627 |
|
| 1628 |
2023-11-30 Jakub Jelinek <[email protected]> |
| 1629 |
|
| 1630 |
PR c++/110349 |
| 1631 |
* c-cppbuiltin.cc (c_cpp_builtins): Predefine |
| 1632 |
__cpp_placeholder_variables=202306L for C++26. |
| 1633 |
|
| 1634 |
2023-11-29 Alexandre Oliva <[email protected]> |
| 1635 |
|
| 1636 |
* c-attribs.cc (c_common_attribute_table): Add hardbool. |
| 1637 |
(handle_hardbool_attribute): New. |
| 1638 |
(type_valid_for_vector_size): Reject hardbool. |
| 1639 |
* c-common.cc (convert_and_check): Skip warnings for convert |
| 1640 |
and check for hardbool. |
| 1641 |
(c_hardbool_type_attr_1): New. |
| 1642 |
* c-common.h (c_hardbool_type_attr): New. |
| 1643 |
|
| 1644 |
2023-11-27 Alex Coplan <[email protected]> |
| 1645 |
Iain Sandoe <[email protected]> |
| 1646 |
|
| 1647 |
PR c++/60512 |
| 1648 |
* c-common.cc (struct hf_feature_info): New. |
| 1649 |
(c_common_register_feature): New. |
| 1650 |
(init_has_feature): New. |
| 1651 |
(has_feature_p): New. |
| 1652 |
* c-common.h (c_common_has_feature): New. |
| 1653 |
(c_family_register_lang_features): New. |
| 1654 |
(c_common_register_feature): New. |
| 1655 |
(has_feature_p): New. |
| 1656 |
* c-lex.cc (init_c_lex): Plumb through has_feature callback. |
| 1657 |
(c_common_has_builtin): Generalize and move common part ... |
| 1658 |
(c_common_lex_availability_macro): ... here. |
| 1659 |
(c_common_has_feature): New. |
| 1660 |
* c-ppoutput.cc (init_pp_output): Plumb through has_feature. |
| 1661 |
|
| 1662 |
2023-11-24 Lewis Hyatt <[email protected]> |
| 1663 |
|
| 1664 |
PR pch/112319 |
| 1665 |
* c-ppoutput.cc (cb_read_pch): Reinitialize the frontend parser |
| 1666 |
after loading a PCH. |
| 1667 |
|
| 1668 |
2023-11-24 Tobias Burnus <[email protected]> |
| 1669 |
|
| 1670 |
* c.opt (-Wopenmp): Add missing tailing '.'. |
| 1671 |
|
| 1672 |
2023-11-24 Tobias Burnus <[email protected]> |
| 1673 |
|
| 1674 |
* c.opt (Wopenmp): Add, enable by default. |
| 1675 |
|
| 1676 |
2023-11-23 Marek Polacek <[email protected]> |
| 1677 |
|
| 1678 |
* c-opts.cc: Include "target.h". |
| 1679 |
(c_finish_options): Maybe cpp_define _FORTIFY_SOURCE |
| 1680 |
and _GLIBCXX_ASSERTIONS. |
| 1681 |
|
| 1682 |
2023-11-23 Jakub Jelinek <[email protected]> |
| 1683 |
|
| 1684 |
* c-common.h (enum rid): Add RID_BUILTIN_STDC: New. |
| 1685 |
* c-common.cc (c_common_reswords): Add __builtin_stdc_bit_ceil, |
| 1686 |
__builtin_stdc_bit_floor, __builtin_stdc_bit_width, |
| 1687 |
__builtin_stdc_count_ones, __builtin_stdc_count_zeros, |
| 1688 |
__builtin_stdc_first_leading_one, __builtin_stdc_first_leading_zero, |
| 1689 |
__builtin_stdc_first_trailing_one, __builtin_stdc_first_trailing_zero, |
| 1690 |
__builtin_stdc_has_single_bit, __builtin_stdc_leading_ones, |
| 1691 |
__builtin_stdc_leading_zeros, __builtin_stdc_trailing_ones and |
| 1692 |
__builtin_stdc_trailing_zeros. Move __builtin_assoc_barrier |
| 1693 |
alphabetically earlier. |
| 1694 |
|
| 1695 |
2023-11-23 Jakub Jelinek <[email protected]> |
| 1696 |
|
| 1697 |
PR c++/110348 |
| 1698 |
* c.opt (Wc++26-extensions): New option. |
| 1699 |
* c-cppbuiltin.cc (c_cpp_builtins): For C++26 predefine |
| 1700 |
__cpp_static_assert to 202306L rather than 201411L. |
| 1701 |
|
| 1702 |
2023-11-19 David Malcolm <[email protected]> |
| 1703 |
|
| 1704 |
* c-lex.cc: Include "rich-location.h". |
| 1705 |
|
| 1706 |
2023-11-18 Sebastian Huber <[email protected]> |
| 1707 |
|
| 1708 |
* c-cppbuiltin.cc (c_cpp_builtins): Define |
| 1709 |
__LIBGCC_HAVE_LIBATOMIC for libgcov. |
| 1710 |
|
| 1711 |
2023-11-18 Sebastian Huber <[email protected]> |
| 1712 |
|
| 1713 |
Revert: |
| 1714 |
2021-08-16 Sebastian Huber <[email protected]> |
| 1715 |
|
| 1716 |
* c-cppbuiltin.c (c_cpp_builtins): Define |
| 1717 |
__LIBGCC_GCOV_TYPE_SIZE if flag_building_libgcc is true. |
| 1718 |
|
| 1719 |
2023-11-17 Jakub Jelinek <[email protected]> |
| 1720 |
|
| 1721 |
PR c++/107571 |
| 1722 |
* c-gimplify.cc (genericize_c_loop): For C++ mark IFN_FALLTHROUGH |
| 1723 |
call at the end of loop body as TREE_NOTHROW. |
| 1724 |
|
| 1725 |
2023-11-14 Lewis Hyatt <[email protected]> |
| 1726 |
|
| 1727 |
PR pch/9471 |
| 1728 |
PR pch/47857 |
| 1729 |
* c-opts.cc (c_common_post_options): Set cpp_opts->main_search |
| 1730 |
so libcpp knows it is compiling a header file separately. |
| 1731 |
|
| 1732 |
2023-11-14 David Malcolm <[email protected]> |
| 1733 |
|
| 1734 |
* c-warn.cc (conversion_warning): Update call to |
| 1735 |
global_dc->m_option_enabled to use option_enabled_p. |
| 1736 |
|
| 1737 |
2023-11-14 David Malcolm <[email protected]> |
| 1738 |
|
| 1739 |
* c-common.cc (c_get_substring_location): Use global_dc's |
| 1740 |
file_cache. |
| 1741 |
* c-format.cc (get_corrected_substring): Likewise. |
| 1742 |
* c-indentation.cc (get_visual_column): Add file_cache param. |
| 1743 |
(get_first_nws_vis_column): Likewise. |
| 1744 |
(detect_intervening_unindent): Likewise. |
| 1745 |
(should_warn_for_misleading_indentation): Use global_dc's |
| 1746 |
file_cache. |
| 1747 |
(assert_get_visual_column_succeeds): Add file_cache param. |
| 1748 |
(ASSERT_GET_VISUAL_COLUMN_SUCCEEDS): Likewise. |
| 1749 |
(assert_get_visual_column_fails): Likewise. |
| 1750 |
(define ASSERT_GET_VISUAL_COLUMN_FAILS): Likewise. |
| 1751 |
(selftest::test_get_visual_column): Create and use a temporary |
| 1752 |
file_cache. |
| 1753 |
|
| 1754 |
2023-11-14 Jakub Jelinek <[email protected]> |
| 1755 |
|
| 1756 |
PR c/111309 |
| 1757 |
* c-common.cc (check_builtin_function_arguments): Handle |
| 1758 |
BUILT_IN_{CLZ,CTZ,CLRSB,FFS,PARITY,POPCOUNT}G. |
| 1759 |
* c-gimplify.cc (c_gimplify_expr): If __builtin_c[lt]zg second |
| 1760 |
argument hasn't been folded into constant yet, transform it to one |
| 1761 |
argument call inside of a COND_EXPR which for first argument 0 |
| 1762 |
returns the second argument. |
| 1763 |
|
| 1764 |
2023-11-11 Martin Uecker <[email protected]> |
| 1765 |
|
| 1766 |
PR c/110815 |
| 1767 |
PR c/112428 |
| 1768 |
* c-attribs.cc (build_attr_access_from_parms): Synthesize |
| 1769 |
nonnull attribute for parameters declared with `static`. |
| 1770 |
|
| 1771 |
2023-11-09 Florian Weimer <[email protected]> |
| 1772 |
|
| 1773 |
* c.opt (Wreturn-mismatch): New. |
| 1774 |
|
| 1775 |
2023-11-08 Florian Weimer <[email protected]> |
| 1776 |
|
| 1777 |
* c.opt (fpermissive): Enable for C and ObjC. |
| 1778 |
* c-opts.cc (c_common_post_options): Enable -fpermissive. |
| 1779 |
|
| 1780 |
2023-11-07 Joseph Myers <[email protected]> |
| 1781 |
|
| 1782 |
* c-format.h (T2X_UI): Rename to T23_UI. |
| 1783 |
(T2X_UL): Rename to T23_UL. |
| 1784 |
(T2X_ULL): Rename to T23_ULL. |
| 1785 |
(T2X_US): Rename to T23_US. |
| 1786 |
(T2X_UC): Rename to T23_UC. |
| 1787 |
(T2X_ST): Rename to T23_ST. |
| 1788 |
(T2X_UPD): Rename to T23_UPD. |
| 1789 |
(T2X_UIM): Rename to T23_UIM. |
| 1790 |
(T2X_D32): Rename to T23_D32. |
| 1791 |
(T2X_D64): Rename to T23_D64. |
| 1792 |
(T2X_D128): Rename to T23_D128. |
| 1793 |
(T2X_I8): Rename to T23_I8. |
| 1794 |
(T2X_I16): Rename to T23_I16. |
| 1795 |
(T2X_I32): Rename to T23_I32. |
| 1796 |
(T2X_I64): Rename to T23_I64. |
| 1797 |
(T2X_U8): Rename to T23_U8. |
| 1798 |
(T2X_U16): Rename to T23_U16. |
| 1799 |
(T2X_U32): Rename to T23_U32. |
| 1800 |
(T2X_U64): Rename to T23_U64. |
| 1801 |
(T2X_IF8): Rename to T23_IF8. |
| 1802 |
(T2X_IF16): Rename to T23_IF16. |
| 1803 |
(T2X_IF32): Rename to T23_IF32. |
| 1804 |
(T2X_IF64): Rename to T23_IF64. |
| 1805 |
(T2X_UF8): Rename to T23_UF8. |
| 1806 |
(T2X_UF16): Rename to T23_UF16. |
| 1807 |
(T2X_UF32): Rename to T23_UF32. |
| 1808 |
(T2X_UF64): Rename to T23_UF64. |
| 1809 |
* c-format.cc: Update all uses of T2X_* macros to use T23_*. |
| 1810 |
|
| 1811 |
2023-11-07 Kwok Cheung Yeung <[email protected]> |
| 1812 |
|
| 1813 |
* c-attribs.cc (c_common_attribute_table): Add attribute for |
| 1814 |
indirect functions. |
| 1815 |
* c-pragma.h (enum parma_omp_clause): Add entry for indirect clause. |
| 1816 |
|
| 1817 |
2023-11-07 Joseph Myers <[email protected]> |
| 1818 |
|
| 1819 |
* c-common.cc (flag_isoc2x): Rename to flag_isoc23. |
| 1820 |
(c_common_reswords): Use D_C23 instead of D_C2X. |
| 1821 |
* c-common.h: Refer throughout to C23 instead of C2X in comments. |
| 1822 |
(D_C2X): Rename to D_C23. |
| 1823 |
(flag_isoc2x): Rename to flag_isoc23. |
| 1824 |
* c-cppbuiltin.cc (builtin_define_float_constants): Use |
| 1825 |
flag_isoc23 instead of flag_isoc2x. Refer to C23 instead of C2x |
| 1826 |
in comments. |
| 1827 |
* c-format.cc: Use STD_C23 instead of STD_C2X and flag_isoc23 |
| 1828 |
instead of flag_isoc2x. Refer to C23 instead of C2X in comments. |
| 1829 |
* c-format.h: Use STD_C23 instead of STD_C2X. |
| 1830 |
* c-lex.cc: Use warn_c11_c23_compat instead of warn_c11_c2x_compat |
| 1831 |
and flag_isoc23 instead of flag_isoc2x. Refer to C23 instead of |
| 1832 |
C2X in diagnostics. |
| 1833 |
* c-opts.cc: Use flag_isoc23 instead of flag_isoc2x. Refer to C23 |
| 1834 |
instead of C2X in comments. |
| 1835 |
(set_std_c2x): Rename to set_std_c23. |
| 1836 |
* c.opt (Wc11-c23-compat): Use CPP(cpp_warn_c11_c23_compat) |
| 1837 |
CppReason(CPP_W_C11_C23_COMPAT) Var(warn_c11_c23_compat) instead |
| 1838 |
of CPP(cpp_warn_c11_c2x_compat) CppReason(CPP_W_C11_C2X_COMPAT) |
| 1839 |
Var(warn_c11_c2x_compat). |
| 1840 |
|
| 1841 |
2023-11-06 Joseph Myers <[email protected]> |
| 1842 |
|
| 1843 |
PR c/107954 |
| 1844 |
* c.opt (Wc11-c2x-compat): Rename to Wc11-c23-compat and make into |
| 1845 |
a deprecated alias of Wc11-c23-compat. |
| 1846 |
(std=c2x): Rename to std=c23 and make into a deprecated alias of |
| 1847 |
std=c23. |
| 1848 |
(std=gnu2x): Rename to std=gnu23 and make into a deprecated alias |
| 1849 |
of std=gnu23. |
| 1850 |
(std=iso9899:2024): New option. Alias of std=c23. |
| 1851 |
* c-lex.cc (interpret_float): Use OPT_Wc11_c23_compat instead of |
| 1852 |
OPT_Wc11_c2x_compat. |
| 1853 |
* c-opts.cc (c_common_handle_option): Use OPT_std_c23 instead of |
| 1854 |
OPT_std_c2x and OPT_std_gnu23 instead of OPT_std_gnu2x. |
| 1855 |
|
| 1856 |
2023-11-05 Jakub Jelinek <[email protected]> |
| 1857 |
|
| 1858 |
* c-lex.cc (c_common_has_attribute): Return 1 for omp::directive |
| 1859 |
and omp::sequence with -fopenmp or -fopenmp-simd also for C, not |
| 1860 |
just for C++. Return 1 for omp::decl with -fopenmp or -fopenmp-simd |
| 1861 |
for both C and C++. |
| 1862 |
|
| 1863 |
2023-11-04 David Malcolm <[email protected]> |
| 1864 |
|
| 1865 |
* c-pragma.cc:: (handle_pragma_push_options): Fix missing "GCC" in |
| 1866 |
name of pragma in "junk" message. |
| 1867 |
(handle_pragma_pop_options): Likewise. |
| 1868 |
|
| 1869 |
2023-11-04 David Malcolm <[email protected]> |
| 1870 |
|
| 1871 |
* c-common.cc: Update for changes to diagnostic_context. |
| 1872 |
* c-indentation.cc: Likewise. |
| 1873 |
* c-opts.cc: Likewise. |
| 1874 |
* c-warn.cc: Likewise. |
| 1875 |
|
| 1876 |
2023-11-01 Martin Uecker <[email protected]> |
| 1877 |
|
| 1878 |
PR c/71219 |
| 1879 |
* c.opt (Walloc-size): New option. |
| 1880 |
|
| 1881 |
2023-10-31 David Malcolm <[email protected]> |
| 1882 |
|
| 1883 |
* c-warn.cc (warn_for_multistatement_macros): Update for removal |
| 1884 |
of MACRO_MAP_EXPANSION_POINT_LOCATION. |
| 1885 |
|
| 1886 |
2023-10-27 Lewis Hyatt <[email protected]> |
| 1887 |
|
| 1888 |
PR preprocessor/87299 |
| 1889 |
* c-pragma.cc (init_pragma): Register `#pragma GCC target' and |
| 1890 |
related pragmas in preprocess-only mode, and enable early handling. |
| 1891 |
(c_reset_target_pragmas): New function refactoring code from... |
| 1892 |
(handle_pragma_reset_options): ...here. |
| 1893 |
* c-pragma.h (c_reset_target_pragmas): Declare. |
| 1894 |
|
| 1895 |
2023-10-26 David Malcolm <[email protected]> |
| 1896 |
|
| 1897 |
* c-attribs.cc (c_common_attribute_table): Add |
| 1898 |
"null_terminated_string_arg". |
| 1899 |
(handle_null_terminated_string_arg_attribute): New. |
| 1900 |
|
| 1901 |
2023-10-23 Lewis Hyatt <[email protected]> |
| 1902 |
|
| 1903 |
PR preprocessor/36887 |
| 1904 |
* c-opts.cc (c_common_init_options): Pass new extra hash map |
| 1905 |
argument to cpp_create_reader(). |
| 1906 |
|
| 1907 |
2023-10-20 Marek Polacek <[email protected]> |
| 1908 |
|
| 1909 |
PR c/111884 |
| 1910 |
* c-common.cc (c_common_get_alias_set): Return -1 for char8_t only |
| 1911 |
in C++. |
| 1912 |
|
| 1913 |
2023-10-20 Patrick Palka <[email protected]> |
| 1914 |
|
| 1915 |
* c-warn.cc (check_address_or_pointer_of_packed_member): Handle |
| 1916 |
type-dependent callee of CALL_EXPR. |
| 1917 |
|
| 1918 |
2023-10-20 Alexandre Oliva <[email protected]> |
| 1919 |
|
| 1920 |
* c-attribs.cc (handle_expected_throw_attribute): New. |
| 1921 |
(c_common_attribute_table): Add expected_throw. |
| 1922 |
|
| 1923 |
2023-10-19 Lewis Hyatt <[email protected]> |
| 1924 |
|
| 1925 |
PR c++/89038 |
| 1926 |
* c-pragma.cc (handle_pragma_diagnostic_impl): Handle |
| 1927 |
-Wunknown-pragmas during early processing. |
| 1928 |
|
| 1929 |
2023-10-15 Jakub Jelinek <[email protected]> |
| 1930 |
|
| 1931 |
PR tree-optimization/111800 |
| 1932 |
* c-warn.cc (match_case_to_enum_1): Assert w.get_precision () |
| 1933 |
is smaller or equal to WIDE_INT_MAX_INL_PRECISION rather than |
| 1934 |
w.get_len () is smaller or equal to WIDE_INT_MAX_INL_ELTS. |
| 1935 |
|
| 1936 |
2023-10-12 Jakub Jelinek <[email protected]> |
| 1937 |
|
| 1938 |
PR c/102989 |
| 1939 |
* c-warn.cc (match_case_to_enum_1): Use wi::to_wide just once instead |
| 1940 |
of 3 times, assert get_len () is smaller than WIDE_INT_MAX_INL_ELTS. |
| 1941 |
|
| 1942 |
2023-10-02 David Malcolm <[email protected]> |
| 1943 |
|
| 1944 |
* c-common.cc (maybe_add_include_fixit): Update for renaming of |
| 1945 |
diagnostic_context's show_caret to m_source_printing.enabled. |
| 1946 |
* c-opts.cc (c_common_init_options): Update for renaming of |
| 1947 |
diagnostic_context's colorize_source_p to |
| 1948 |
m_source_printing.colorize_source_p. |
| 1949 |
|
| 1950 |
2023-09-20 Jakub Jelinek <[email protected]> |
| 1951 |
|
| 1952 |
PR c++/111392 |
| 1953 |
* c-omp.cc (c_omp_directives): Add commented out groupprivate |
| 1954 |
directive entry. |
| 1955 |
|
| 1956 |
2023-09-19 Ben Boeckel <[email protected]> |
| 1957 |
|
| 1958 |
* c-opts.cc (c_common_handle_option): Add fdeps_file variable and |
| 1959 |
-fdeps-format=, -fdeps-file=, and -fdeps-target= parsing. |
| 1960 |
* c.opt: Add -fdeps-format=, -fdeps-file=, and -fdeps-target= |
| 1961 |
flags. |
| 1962 |
|
| 1963 |
2023-09-19 Javier Martinez <[email protected]> |
| 1964 |
|
| 1965 |
* c-attribs.cc (handle_hot_attribute): remove warning on |
| 1966 |
RECORD_TYPE and UNION_TYPE when in c_dialect_xx. |
| 1967 |
(handle_cold_attribute): Likewise. |
| 1968 |
|
| 1969 |
2023-09-19 Jakub Jelinek <[email protected]> |
| 1970 |
|
| 1971 |
* c-common.cc (c_common_signed_or_unsigned_type): Return INTEGER_TYPE |
| 1972 |
for signed variant of unsigned _BitInt(1). |
| 1973 |
|
| 1974 |
2023-09-06 Jakub Jelinek <[email protected]> |
| 1975 |
|
| 1976 |
PR c/102989 |
| 1977 |
* c-attribs.cc (type_valid_for_vector_size): Reject vector types |
| 1978 |
with BITINT_TYPE elements even if they have mode precision and |
| 1979 |
suitable size. |
| 1980 |
|
| 1981 |
2023-09-06 Jakub Jelinek <[email protected]> |
| 1982 |
|
| 1983 |
PR c/102989 |
| 1984 |
* c-common.cc (c_common_reswords): Add _BitInt as keyword. |
| 1985 |
(unsafe_conversion_p): Handle BITINT_TYPE like INTEGER_TYPE. |
| 1986 |
(c_common_signed_or_unsigned_type): Handle BITINT_TYPE. |
| 1987 |
(c_common_truthvalue_conversion, c_common_get_alias_set, |
| 1988 |
check_builtin_function_arguments): Handle BITINT_TYPE like |
| 1989 |
INTEGER_TYPE. |
| 1990 |
(sync_resolve_size): Add ORIG_FORMAT argument. If |
| 1991 |
FETCH && !ORIG_FORMAT, type is BITINT_TYPE, return -1 if size isn't |
| 1992 |
one of 1, 2, 4, 8 or 16 or if it is 16 but TImode is not supported. |
| 1993 |
(atomic_bitint_fetch_using_cas_loop): New function. |
| 1994 |
(resolve_overloaded_builtin): Adjust sync_resolve_size caller. If |
| 1995 |
-1 is returned, use atomic_bitint_fetch_using_cas_loop to lower it. |
| 1996 |
Formatting fix. |
| 1997 |
(keyword_begins_type_specifier): Handle RID_BITINT. |
| 1998 |
* c-common.h (enum rid): Add RID_BITINT enumerator. |
| 1999 |
* c-cppbuiltin.cc (c_cpp_builtins): For C call |
| 2000 |
targetm.c.bitint_type_info and predefine __BITINT_MAXWIDTH__ |
| 2001 |
and for -fbuilding-libgcc also __LIBGCC_BITINT_LIMB_WIDTH__ and |
| 2002 |
__LIBGCC_BITINT_ORDER__ macros if _BitInt is supported. |
| 2003 |
* c-lex.cc (interpret_integer): Handle CPP_N_BITINT. |
| 2004 |
* c-pretty-print.cc (c_pretty_printer::simple_type_specifier, |
| 2005 |
c_pretty_printer::direct_abstract_declarator, |
| 2006 |
c_pretty_printer::direct_declarator, c_pretty_printer::declarator): |
| 2007 |
Handle BITINT_TYPE. |
| 2008 |
(pp_c_integer_constant): Handle printing of large precision wide_ints |
| 2009 |
which would buffer overflow digit_buffer. |
| 2010 |
* c-warn.cc (conversion_warning, warnings_for_convert_and_check, |
| 2011 |
warnings_for_convert_and_check): Handle BITINT_TYPE like |
| 2012 |
INTEGER_TYPE. |
| 2013 |
|
| 2014 |
2023-09-06 Jakub Jelinek <[email protected]> |
| 2015 |
|
| 2016 |
PR c/102989 |
| 2017 |
* c-ubsan.cc (ubsan_instrument_shift): Use UBSAN_PRINT_FORCE_INT |
| 2018 |
for type0 type descriptor. |
| 2019 |
|
| 2020 |
2023-09-06 Jakub Jelinek <[email protected]> |
| 2021 |
|
| 2022 |
* c-lex.cc (interpret_float): For C diagnostics on FN and FNx suffixes |
| 2023 |
append " before C2X" to diagnostics text and follow behavior of |
| 2024 |
pedwarn_c11. |
| 2025 |
|
| 2026 |
2023-09-01 Jakub Jelinek <[email protected]> |
| 2027 |
|
| 2028 |
PR c++/111069 |
| 2029 |
* c-opts.cc (c_common_post_options): Change latest_abi_version to 19. |
| 2030 |
|
| 2031 |
2023-08-31 Francois-Xavier Coudert <[email protected]> |
| 2032 |
|
| 2033 |
* c.opt: Change spelling to macOS. |
| 2034 |
|
| 2035 |
2023-08-31 Richard Biener <[email protected]> |
| 2036 |
|
| 2037 |
PR middle-end/111253 |
| 2038 |
* c-pretty-print.cc (c_pretty_printer::primary_expression): |
| 2039 |
Only dump gimple_assign_single_p SSA def RHS. |
| 2040 |
|
| 2041 |
2023-08-25 Sandra Loosemore <[email protected]> |
| 2042 |
|
| 2043 |
* c-common.h (c_omp_check_loop_binding_exprs): Declare. |
| 2044 |
* c-omp.cc: Include tree-iterator.h. |
| 2045 |
(find_binding_in_body): New. |
| 2046 |
(check_loop_binding_expr_r): New. |
| 2047 |
(LOCATION_OR): New. |
| 2048 |
(check_looop_binding_expr): New. |
| 2049 |
(c_omp_check_loop_binding_exprs): New. |
| 2050 |
|
| 2051 |
2023-08-25 Uros Bizjak <[email protected]> |
| 2052 |
|
| 2053 |
* c-format.cc (read_any_format_width): |
| 2054 |
Rename TRUE/FALSE to true/false. |
| 2055 |
|
| 2056 |
2023-08-20 Martin Uecker <[email protected]> |
| 2057 |
|
| 2058 |
* c-format.cc: Fix identation. |
| 2059 |
|
| 2060 |
2023-08-20 Tomas Kalibera <[email protected]> |
| 2061 |
|
| 2062 |
PR c/95130 |
| 2063 |
* c-format.cc: skip default format for printf symbol if |
| 2064 |
explicitly declared by prototype. |
| 2065 |
|
| 2066 |
2023-08-17 Jose E. Marchesi <[email protected]> |
| 2067 |
|
| 2068 |
PR c/106537 |
| 2069 |
* c.opt (Wcompare-distinct-pointer-types): New option. |
| 2070 |
|
| 2071 |
2023-08-14 Jason Merrill <[email protected]> |
| 2072 |
|
| 2073 |
* c-cppbuiltin.cc (c_cpp_builtins): Adjust __cpp_concepts. |
| 2074 |
|
| 2075 |
2023-08-11 Jakub Jelinek <[email protected]> |
| 2076 |
|
| 2077 |
* c-common.cc (c_common_reswords): Add __typeof_unqual |
| 2078 |
and __typeof_unqual__ spellings of typeof_unqual. |
| 2079 |
|
| 2080 |
2023-08-11 Martin Uecker <[email protected]> |
| 2081 |
|
| 2082 |
PR c/84510 |
| 2083 |
* c.opt: Enable warning for C and ObjC. |
| 2084 |
|
| 2085 |
2023-08-05 Martin Uecker <[email protected]> |
| 2086 |
|
| 2087 |
PR c/98536 |
| 2088 |
* c-warn.cc (warn_parm_array_mismatch): Do not warn if more |
| 2089 |
bounds are specified. |
| 2090 |
|
| 2091 |
2023-08-04 Tamar Christina <[email protected]> |
| 2092 |
|
| 2093 |
* c-pragma.h (enum pragma_kind): Add PRAGMA_NOVECTOR. |
| 2094 |
* c-pragma.cc (init_pragma): Use it. |
| 2095 |
|
| 2096 |
2023-08-01 Lewis Hyatt <[email protected]> |
| 2097 |
|
| 2098 |
* c-common.h (c_init_preprocess): Declare new function. |
| 2099 |
* c-opts.cc (c_common_init): Call it. |
| 2100 |
* c-lex.cc (cb_def_pragma): Add a comment. |
| 2101 |
(get_token): New function wrapping cpp_get_token. |
| 2102 |
(c_lex_with_flags): Use the new wrapper function to support |
| 2103 |
obtaining tokens in preprocess_only mode. |
| 2104 |
(lex_string): Likewise. |
| 2105 |
* c-pragma.cc (pragma_diagnostic_lex_normal): Rename to... |
| 2106 |
(pragma_diagnostic_lex): ...this. |
| 2107 |
(pragma_diagnostic_lex_pp): Remove. |
| 2108 |
(handle_pragma_diagnostic_impl): Call pragma_diagnostic_lex () in |
| 2109 |
all modes. |
| 2110 |
(c_pp_invoke_early_pragma_handler): Adapt to support pragma_lex () |
| 2111 |
usage. |
| 2112 |
* c-pragma.h (pragma_lex_discard_to_eol): Declare. |
| 2113 |
|
| 2114 |
2023-07-31 Hamza Mahfooz <[email protected]> |
| 2115 |
|
| 2116 |
PR c/65213 |
| 2117 |
* c.opt (-Wmissing-variable-declarations): New option. |
| 2118 |
|
| 2119 |
2023-07-20 Francois-Xavier Coudert <[email protected]> |
| 2120 |
|
| 2121 |
PR middle-end/77928 |
| 2122 |
* c-common.cc (check_builtin_function_arguments): |
| 2123 |
Handle BUILT_IN_ISEQSIG. |
| 2124 |
|
| 2125 |
2023-07-05 Robin Dapp <[email protected]> |
| 2126 |
Juzhe-Zhong <[email protected]> |
| 2127 |
|
| 2128 |
* c-common.cc (c_common_type_for_mode): Use GET_MODE_PRECISION. |
| 2129 |
|
| 2130 |
2023-06-29 Qing Zhao <[email protected]> |
| 2131 |
|
| 2132 |
PR c/77650 |
| 2133 |
* c.opt: New option -Wflex-array-member-not-at-end. |
| 2134 |
|
| 2135 |
2023-06-28 Jason Merrill <[email protected]> |
| 2136 |
|
| 2137 |
PR c++/110344 |
| 2138 |
* c-cppbuiltin.cc (c_cpp_builtins): Update __cpp_constexpr. |
| 2139 |
|
| 2140 |
2023-06-26 Richard Biener <[email protected]> |
| 2141 |
|
| 2142 |
* c-common.cc (shorten_binary_op): Exit early for VECTOR_TYPE |
| 2143 |
operations. |
| 2144 |
|
| 2145 |
2023-06-23 Marek Polacek <[email protected]> |
| 2146 |
|
| 2147 |
* c-common.h (cxx_dialect): Add cxx26 as a dialect. |
| 2148 |
* c-opts.cc (set_std_cxx26): New. |
| 2149 |
(c_common_handle_option): Set options when -std={c,gnu}++2{c,6} is |
| 2150 |
enabled. |
| 2151 |
(c_common_post_options): Adjust comments. |
| 2152 |
* c.opt: Add options for -std=c++26, std=c++2c, -std=gnu++26, |
| 2153 |
and -std=gnu++2c. |
| 2154 |
(std=c++2b): Mark as Undocumented. |
| 2155 |
(std=c++23): No longer Undocumented. |
| 2156 |
|
| 2157 |
2023-06-21 Alexander Monakov <[email protected]> |
| 2158 |
|
| 2159 |
* c-gimplify.cc (fma_supported_p): New helper. |
| 2160 |
(c_gimplify_expr) [PLUS_EXPR, MINUS_EXPR]: Implement FMA |
| 2161 |
contraction. |
| 2162 |
|
| 2163 |
2023-06-16 Alex Coplan <[email protected]> |
| 2164 |
|
| 2165 |
* c.opt (Welaborated-enum-base): New. |
| 2166 |
|
| 2167 |
2023-06-13 David Malcolm <[email protected]> |
| 2168 |
|
| 2169 |
PR c/84890 |
| 2170 |
* known-headers.cc |
| 2171 |
(suggest_missing_header::~suggest_missing_header): Reword note to |
| 2172 |
avoid negative tone of "forgetting". |
| 2173 |
|
| 2174 |
2023-06-07 Jason Merrill <[email protected]> |
| 2175 |
|
| 2176 |
PR c++/58487 |
| 2177 |
* c.opt: Add -Wnrvo. |
| 2178 |
|
| 2179 |
2023-05-26 Martin Uecker <[email protected]> |
| 2180 |
|
| 2181 |
* c-attribs.cc (build_attr_access_from_parms): Split loop to first |
| 2182 |
record all parameters. |
| 2183 |
|
| 2184 |
2023-05-18 Bernhard Reutner-Fischer <[email protected]> |
| 2185 |
|
| 2186 |
* c-ada-spec.cc (has_static_fields): Use _P() defines from tree.h. |
| 2187 |
(dump_ada_declaration): Ditto. |
| 2188 |
(dump_ada_structure): Ditto. |
| 2189 |
* c-common.cc (unsafe_conversion_p): Ditto. |
| 2190 |
(shorten_compare): Ditto. |
| 2191 |
(pointer_int_sum): Ditto. |
| 2192 |
(c_common_truthvalue_conversion): Ditto. |
| 2193 |
(scalar_to_vector): Ditto. |
| 2194 |
* c-common.h (gnu_vector_type_p): Ditto. |
| 2195 |
* c-omp.cc (c_omp_depend_t_p): Ditto. |
| 2196 |
(c_omp_split_clauses): Ditto. |
| 2197 |
* c-ubsan.cc (ubsan_instrument_division): Ditto. |
| 2198 |
* c-warn.cc (conversion_warning): Ditto. |
| 2199 |
(warnings_for_convert_and_check): Ditto. |
| 2200 |
|
| 2201 |
2023-05-18 Joseph Myers <[email protected]> |
| 2202 |
|
| 2203 |
* c-format.cc (print_char_table): Handle %B like %b. |
| 2204 |
|
| 2205 |
2023-05-15 Joseph Myers <[email protected]> |
| 2206 |
|
| 2207 |
* c-lex.cc (c_common_has_attribute): Use 202311 as |
| 2208 |
__has_c_attribute return for all C2x attributes. |
| 2209 |
|
| 2210 |
2023-05-15 Patrick Palka <[email protected]> |
| 2211 |
|
| 2212 |
* c-cppbuiltin.cc (c_cpp_builtins): Predefine __cpp_auto_cast |
| 2213 |
for C++23. |
| 2214 |
|
| 2215 |
2023-05-01 Marek Polacek <[email protected]> |
| 2216 |
|
| 2217 |
* c-ubsan.cc (ubsan_maybe_instrument_array_ref): Don't copy_node. |
| 2218 |
|
| 2219 |
2023-03-28 David Malcolm <[email protected]> |
| 2220 |
|
| 2221 |
PR c/107002 |
| 2222 |
* c-common.h (check_for_xor_used_as_pow): Add "rhs_loc" param. |
| 2223 |
* c-warn.cc (check_for_xor_used_as_pow): Add "rhs_loc" param. |
| 2224 |
Reject cases where involving macro expansions. |
| 2225 |
|
| 2226 |
2023-03-28 Jason Merrill <[email protected]> |
| 2227 |
|
| 2228 |
PR c++/107163 |
| 2229 |
* c-common.cc (verify_tree): Don't use sequenced handling |
| 2230 |
for COMPONENT_REF. |
| 2231 |
|
| 2232 |
2023-03-17 Jakub Jelinek <[email protected]> |
| 2233 |
|
| 2234 |
PR c/109151 |
| 2235 |
* c-ubsan.cc (ubsan_instrument_division): Handle all scalar integral |
| 2236 |
types rather than just INTEGER_TYPE. |
| 2237 |
|
| 2238 |
2023-03-10 Marek Polacek <[email protected]> |
| 2239 |
|
| 2240 |
PR sanitizer/108060 |
| 2241 |
PR sanitizer/109050 |
| 2242 |
* c-gimplify.cc (ubsan_walk_array_refs_r): For a MODIFY_EXPR, instrument |
| 2243 |
the RHS before the LHS. |
| 2244 |
|
| 2245 |
2023-03-04 Jakub Jelinek <[email protected]> |
| 2246 |
|
| 2247 |
PR c/107465 |
| 2248 |
* c-warn.cc (warn_for_sign_compare): Don't warn for unset bits |
| 2249 |
above innermost zero extension of BIT_NOT_EXPR result. |
| 2250 |
|
| 2251 |
2023-03-04 Jakub Jelinek <[email protected]> |
| 2252 |
|
| 2253 |
PR c/107465 |
| 2254 |
* c-warn.cc (warn_for_sign_compare): If c_common_get_narrower |
| 2255 |
doesn't return a narrower result, use TYPE_UNSIGNED to set unsignedp0 |
| 2256 |
and unsignedp1. For the one BIT_NOT_EXPR case vs. one without, |
| 2257 |
only check for constant in the non-BIT_NOT_EXPR operand, use std::swap |
| 2258 |
to simplify the code, only warn if BIT_NOT_EXPR operand is extended |
| 2259 |
from narrower unsigned, fix up computation of mask for the constant |
| 2260 |
cases and for unsigned other operand case handle differently |
| 2261 |
BIT_NOT_EXPR result being sign vs. zero extended. |
| 2262 |
|
| 2263 |
2023-03-04 Jakub Jelinek <[email protected]> |
| 2264 |
|
| 2265 |
PR c/107846 |
| 2266 |
* c-warn.cc: Include langhooks.h. |
| 2267 |
(maybe_warn_shift_overflow): Set type0 to what TREE_TYPE (op0) |
| 2268 |
promotes to rather than TREE_TYPE (op0) itself, if TREE_TYPE (op0) |
| 2269 |
is narrower than type0 and unsigned, use wi::min_precision with |
| 2270 |
UNSIGNED and fold_convert op0 to type0 before emitting the warning. |
| 2271 |
|
| 2272 |
2023-03-03 Alexandre Oliva <[email protected]> |
| 2273 |
|
| 2274 |
* c-common.cc (c_common_nodes_and_builtins): Take |
| 2275 |
wchar_type_node for wint_type_node when aliased. |
| 2276 |
(c_stddef_cpp_builtins): Define __WINT_TYPE__, when aliased to |
| 2277 |
wchar_t, to the underlying type rather than wchar_t in |
| 2278 |
non-C++. |
| 2279 |
* c-cppbuiltin.cc (type_suffix): Handle wchar_type_node. |
| 2280 |
|
| 2281 |
2023-02-28 Marek Polacek <[email protected]> |
| 2282 |
|
| 2283 |
PR c++/107938 |
| 2284 |
* c-warn.cc (check_address_or_pointer_of_packed_member): Check |
| 2285 |
POINTER_TYPE_P. |
| 2286 |
|
| 2287 |
2023-02-28 Jakub Jelinek <[email protected]> |
| 2288 |
|
| 2289 |
PR sanitizer/108894 |
| 2290 |
* c-common.h (c_strict_flex_array_level_of): Declare. |
| 2291 |
* c-common.cc (c_strict_flex_array_level_of): New function, |
| 2292 |
moved and renamed from c-decl.cc's strict_flex_array_level_of. |
| 2293 |
* c-ubsan.cc (ubsan_instrument_bounds): Fix comment typo. For |
| 2294 |
C check c_strict_flex_array_level_of whether a trailing array |
| 2295 |
should be treated as flexible member like. Handle C [0] arrays. |
| 2296 |
Add 1 + index_off_by_one rather than index_off_by_one to bounds |
| 2297 |
and use tree_int_cst_lt rather than tree_int_cst_le for idx vs. |
| 2298 |
bounds comparison. |
| 2299 |
|
| 2300 |
2023-02-23 Jakub Jelinek <[email protected]> |
| 2301 |
|
| 2302 |
PR translation/108890 |
| 2303 |
* c.opt (fcontracts): Fix description. |
| 2304 |
|
| 2305 |
2023-02-22 Marek Polacek <[email protected]> |
| 2306 |
|
| 2307 |
PR c/108880 |
| 2308 |
* c-gimplify.cc (c_genericize_control_stmt) <case STATEMENT_LIST>: Pass |
| 2309 |
pset to walk_tree_1. |
| 2310 |
(c_genericize): Call walk_tree with an explicit pset. |
| 2311 |
|
| 2312 |
2023-02-18 Martin Uecker <[email protected]> |
| 2313 |
|
| 2314 |
PR c/105660 |
| 2315 |
* c-attribs.cc (append_access_attr): Use order of arguments when |
| 2316 |
construction string. |
| 2317 |
(append_access_attr_idxs): Rename and make static. |
| 2318 |
* c-warn.cc (warn_parm_array_mismatch): Add assertion. |
| 2319 |
|
| 2320 |
2023-02-16 Patrick Palka <[email protected]> |
| 2321 |
|
| 2322 |
* c-common.h: Mechanically drop static from static inline |
| 2323 |
functions via s/^static inline/inline/g. |
| 2324 |
|
| 2325 |
2023-02-01 Jason Merrill <[email protected]> |
| 2326 |
|
| 2327 |
* c.opt: Add -Wno-changes-meaning. |
| 2328 |
|
| 2329 |
2023-01-31 Marek Polacek <[email protected]> |
| 2330 |
|
| 2331 |
PR c++/107593 |
| 2332 |
PR c++/108597 |
| 2333 |
* c-common.h (instantiation_dependent_expression_p): Declare. |
| 2334 |
* c-warn.cc (warn_duplicated_cond_add_or_warn): If the condition |
| 2335 |
is dependent, invalidate the chain. |
| 2336 |
|
| 2337 |
2023-01-26 Marek Polacek <[email protected]> |
| 2338 |
|
| 2339 |
PR c++/105300 |
| 2340 |
* c-pragma.cc (handle_pragma_message): Warn for CPP_STRING_USERDEF. |
| 2341 |
|
| 2342 |
2023-01-18 Marek Polacek <[email protected]> |
| 2343 |
|
| 2344 |
PR c/108424 |
| 2345 |
* c-common.cc (check_case_value): Check INTEGRAL_TYPE_P. |
| 2346 |
|
| 2347 |
2023-01-14 Jakub Jelinek <[email protected]> |
| 2348 |
|
| 2349 |
PR c++/108365 |
| 2350 |
* c-common.h (may_shorten_divmod): New static inline function. |
| 2351 |
|
| 2352 |
2023-01-13 Eric Botcazou <[email protected]> |
| 2353 |
|
| 2354 |
* c-ada-spec.cc (is_float32): New function. |
| 2355 |
(is_float64): Likewise. |
| 2356 |
(is_float128): Tweak. |
| 2357 |
(dump_ada_node) <REAL_TYPE>: Call them to recognize more types. |
| 2358 |
|
| 2359 |
2023-01-12 Lewis Hyatt <[email protected]> |
| 2360 |
|
| 2361 |
PR preprocessor/108244 |
| 2362 |
* c-pragma.cc (c_register_pragma_1): Don't attempt to register any |
| 2363 |
deferred pragmas if -fdirectives-only. |
| 2364 |
(init_pragma): Likewise. |
| 2365 |
|
| 2366 |
2023-01-09 Martin Liska <[email protected]> |
| 2367 |
|
| 2368 |
PR c/107993 |
| 2369 |
* c-attribs.cc (handle_target_clones_attribute): Check for |
| 2370 |
string constant for all target_clone attribute values. |
| 2371 |
|
| 2372 |
2023-01-03 Florian Weimer <[email protected]> |
| 2373 |
|
| 2374 |
* c-cppbuiltin.cc (c_cpp_builtins): Define |
| 2375 |
__LIBGCC_DWARF_CIE_DATA_ALIGNMENT__. |
| 2376 |
|
| 2377 |
2023-01-03 Florian Weimer <[email protected]> |
| 2378 |
|
| 2379 |
Revert: |
| 2380 |
2023-01-03 Florian Weimer <[email protected]> |
| 2381 |
|
| 2382 |
* c-cppbuiltin.cc (__LIBGCC_DWARF_REG_SIZES_CONSTANT__): |
| 2383 |
Define if constant is known. |
| 2384 |
|
| 2385 |
2023-01-03 Florian Weimer <[email protected]> |
| 2386 |
|
| 2387 |
Revert: |
| 2388 |
2023-01-02 Florian Weimer <[email protected]> |
| 2389 |
|
| 2390 |
* c-cppbuiltin.cc (c_cpp_builtins): Define |
| 2391 |
__LIBGCC_DWARF_CIE_DATA_ALIGNMENT__. |
| 2392 |
|
| 2393 |
2023-01-02 Florian Weimer <[email protected]> |
| 2394 |
|
| 2395 |
* c-cppbuiltin.cc (c_cpp_builtins): Define |
| 2396 |
__LIBGCC_DWARF_CIE_DATA_ALIGNMENT__. |
| 2397 |
|
| 2398 |
2023-01-02 Florian Weimer <[email protected]> |
| 2399 |
|
| 2400 |
* c-cppbuiltin.cc (__LIBGCC_DWARF_REG_SIZES_CONSTANT__): |
| 2401 |
Define if constant is known. |
| 2402 |
|
| 2403 |
2022-12-19 Marek Polacek <[email protected]> |
| 2404 |
|
| 2405 |
PR c/98487 |
| 2406 |
* c-format.cc (check_function_format): Use get_attribute_name. |
| 2407 |
|
| 2408 |
2022-12-16 Qing Zhao <[email protected]> |
| 2409 |
|
| 2410 |
* c.opt (Wstrict-flex-arrays): New option. |
| 2411 |
|
| 2412 |
2022-12-02 Andrew MacLeod <[email protected]> |
| 2413 |
|
| 2414 |
* c-attribs.cc (handle_deprecated_attribute): Use type when |
| 2415 |
using TYPE_NAME. |
| 2416 |
|
| 2417 |
2022-12-02 Jakub Jelinek <[email protected]> |
| 2418 |
|
| 2419 |
PR c++/84469 |
| 2420 |
* c-omp.cc (c_omp_is_loop_iterator): For range for with structured |
| 2421 |
binding return TREE_VEC_LENGTH (d->declv) even if decl is equal |
| 2422 |
to any of the structured binding decls. |
| 2423 |
|
| 2424 |
2022-11-30 Iskander Shakirzyanov <[email protected]> |
| 2425 |
Franz Sirl <[email protected]> |
| 2426 |
|
| 2427 |
PR driver/107787 |
| 2428 |
* c-common.cc (fold_offsetof, |
| 2429 |
convert_vector_to_array_for_subscript): Use OPT_Warray_bounds_ |
| 2430 |
instead of OPT_Warray_bounds. |
| 2431 |
|
| 2432 |
2022-11-24 Jakub Jelinek <[email protected]> |
| 2433 |
|
| 2434 |
* c.opt (fcontract-role=, fcontract-semantic=): Terminate descriptions |
| 2435 |
with a dot. |
| 2436 |
|
| 2437 |
2022-11-23 Andrew Pinski <[email protected]> |
| 2438 |
Jakub Jelinek <[email protected]> |
| 2439 |
|
| 2440 |
PR c/107127 |
| 2441 |
* c-gimplify.cc (c_genericize): Use walk_tree_without_duplicates |
| 2442 |
instead of walk_tree for c_genericize_control_r. |
| 2443 |
|
| 2444 |
2022-11-23 Jakub Jelinek <[email protected]> |
| 2445 |
|
| 2446 |
* c.opt (fcontract-assumption-mode=, fcontract-continuation-mode=, |
| 2447 |
fcontract-role=, fcontract-semantic=): Add RejectNegative. |
| 2448 |
(fcontract-build-level=): Terminate description with dot. |
| 2449 |
|
| 2450 |
2022-11-19 Jakub Jelinek <[email protected]> |
| 2451 |
|
| 2452 |
* c-cppbuiltin.cc (c_cpp_builtins): Bump __cpp_constexpr |
| 2453 |
value from 202207L to 202211L. |
| 2454 |
|
| 2455 |
2022-11-19 Jeff Chapman II <[email protected]> |
| 2456 |
Andrew Sutton <[email protected]> |
| 2457 |
Andrew Marmaduke <[email protected]> |
| 2458 |
Michael Lopez <[email protected]> |
| 2459 |
Jason Merrill <[email protected]> |
| 2460 |
|
| 2461 |
* c.opt: Add contracts flags. |
| 2462 |
* c-cppbuiltin.cc (c_cpp_builtins): Add contracts feature-test |
| 2463 |
macros. |
| 2464 |
|
| 2465 |
2022-11-16 Marek Polacek <[email protected]> |
| 2466 |
|
| 2467 |
PR c++/106649 |
| 2468 |
* c-cppbuiltin.cc (c_cpp_builtins): Update value of __cpp_constexpr for |
| 2469 |
C++23. |
| 2470 |
* c-opts.cc (c_common_post_options): Set warn_invalid_constexpr |
| 2471 |
depending on cxx_dialect. |
| 2472 |
* c.opt (Winvalid-constexpr): New option. |
| 2473 |
|
| 2474 |
2022-11-16 Jakub Jelinek <[email protected]> |
| 2475 |
|
| 2476 |
* c-common.def (CONCEPT_DECL): New tree, moved here from |
| 2477 |
cp-tree.def. |
| 2478 |
* c-common.cc (c_common_init_ts): Handle CONCEPT_DECL. |
| 2479 |
* c-attribs.cc (handle_deprecated_attribute): Allow deprecated |
| 2480 |
attribute on CONCEPT_DECL. |
| 2481 |
|
| 2482 |
2022-11-15 Lewis Hyatt <[email protected]> |
| 2483 |
|
| 2484 |
* c-opts.cc (c_finish_options): Use special_fname_builtin () rather |
| 2485 |
than a hard-coded string. |
| 2486 |
|
| 2487 |
2022-11-15 Jakub Jelinek <[email protected]> |
| 2488 |
|
| 2489 |
* c-cppbuiltin.cc (c_cpp_builtins): Bump C++23 |
| 2490 |
__cpp_multidimensional_subscript macro value to 202211L. |
| 2491 |
|
| 2492 |
2022-11-15 Patrick Palka <[email protected]> |
| 2493 |
|
| 2494 |
PR c++/107638 |
| 2495 |
* c-lex.cc (c_common_has_attribute): Return 1 for init_priority |
| 2496 |
iff SUPPORTS_INIT_PRIORITY. |
| 2497 |
|
| 2498 |
2022-11-14 Martin Liska <[email protected]> |
| 2499 |
|
| 2500 |
Revert: |
| 2501 |
2022-11-09 Martin Liska <[email protected]> |
| 2502 |
|
| 2503 |
* c-target.def: Port to RST. |
| 2504 |
|
| 2505 |
2022-11-12 Joseph Myers <[email protected]> |
| 2506 |
|
| 2507 |
* c-common.cc (c_common_reswords): Use D_C2X instead of D_CXXONLY. |
| 2508 |
|
| 2509 |
2022-11-11 Jonathan Wakely <[email protected]> |
| 2510 |
|
| 2511 |
PR c/85487 |
| 2512 |
* c-pragma.cc (handle_pragma_ignore): New function. |
| 2513 |
(init_pragma): Register region and endregion pragmas. |
| 2514 |
|
| 2515 |
2022-11-09 Martin Liska <[email protected]> |
| 2516 |
|
| 2517 |
* c-target.def: Port to RST. |
| 2518 |
|
| 2519 |
2022-11-05 Lewis Hyatt <[email protected]> |
| 2520 |
|
| 2521 |
PR preprocessor/55971 |
| 2522 |
* c-ppoutput.cc (adjust_for_newlines): Update comment. |
| 2523 |
|
| 2524 |
2022-11-03 Jason Merrill <[email protected]> |
| 2525 |
|
| 2526 |
* c-opts.cc (c_common_post_options): -fconcepts no longer implies |
| 2527 |
-fconcepts-ts before C++20. |
| 2528 |
|
| 2529 |
2022-10-28 Joseph Myers <[email protected]> |
| 2530 |
|
| 2531 |
* c-common.cc (def_fn_type): Call build_function_type for |
| 2532 |
zero-argument variable-argument function. |
| 2533 |
(c_common_nodes_and_builtins): Build default_function_type with |
| 2534 |
build_function_type. |
| 2535 |
* c.opt (fallow-parameterless-variadic-functions): Mark as ignored |
| 2536 |
option. |
| 2537 |
|
| 2538 |
2022-10-28 Joseph Myers <[email protected]> |
| 2539 |
|
| 2540 |
PR c/61469 |
| 2541 |
* c-common.h (ENUM_UNDERLYING_TYPE, ENUM_FIXED_UNDERLYING_TYPE_P): |
| 2542 |
New. Moved from cp/cp-tree.h. |
| 2543 |
* c-warn.cc (warnings_for_convert_and_check): Do not consider |
| 2544 |
conversions to enum with underlying type bool to overflow. |
| 2545 |
|
| 2546 |
2022-10-26 Marek Polacek <[email protected]> |
| 2547 |
|
| 2548 |
PR c++/106393 |
| 2549 |
* c.opt (Wdangling-reference): New. |
| 2550 |
|
| 2551 |
2022-10-19 Joseph Myers <[email protected]> |
| 2552 |
|
| 2553 |
* c-format.h (enum format_lengths): Add FMT_LEN_w8, FMT_LEN_w16, |
| 2554 |
FMT_LEN_w32, FMT_LEN_w64, FMT_LEN_wf8, FMT_LEN_wf16, FMT_LEN_wf32 |
| 2555 |
and FMT_LEN_wf64. |
| 2556 |
(NOARGUMENTS, NOLENGTHS): Update definitions. |
| 2557 |
(T_I8, T2X_I8, T_I16, T2X_I16, T_I32, T2X_I32, T_I64, T2X_I64) |
| 2558 |
(T_U8, T2X_U8, T_U16, T2X_U16, T_U32, T2X_U32, T_U64, T2X_U64) |
| 2559 |
(T_IF8, T2X_IF8, T_IF16, T2X_IF16, T_IF32, T2X_IF32, T_IF64) |
| 2560 |
(T2X_IF64, T_UF8, T2X_UF8, T_UF16, T2X_UF16, T_UF32, T2X_UF32) |
| 2561 |
(T_UF64, T2X_UF64): New macros. |
| 2562 |
* c-format.cc (printf_length_specs, scanf_length_specs): Add wN |
| 2563 |
and wfN length modifiers. |
| 2564 |
(print_char_table, scan_char_table): Add entries using wN and wfN |
| 2565 |
length modifiers. |
| 2566 |
|
| 2567 |
2022-10-18 Joseph Myers <[email protected]> |
| 2568 |
|
| 2569 |
PR c/36113 |
| 2570 |
* c-common.cc (c_common_type_for_size): Add fallback to |
| 2571 |
widest_unsigned_literal_type_node or |
| 2572 |
widest_integer_literal_type_node for precision that may not |
| 2573 |
exactly match the precision of those types. |
| 2574 |
|
| 2575 |
2022-10-14 Jakub Jelinek <[email protected]> |
| 2576 |
|
| 2577 |
* c-cppbuiltin.cc (c_cpp_builtins): If bfloat16_type_node, |
| 2578 |
predefine __BFLT16_*__ macros and for C++23 also |
| 2579 |
__STDCPP_BFLOAT16_T__. Predefine bfloat16_type_node related |
| 2580 |
macros for -fbuilding-libgcc. |
| 2581 |
* c-lex.cc (interpret_float): Handle CPP_N_BFLOAT16. |
| 2582 |
|
| 2583 |
2022-10-14 Jakub Jelinek <[email protected]> |
| 2584 |
|
| 2585 |
PR middle-end/323 |
| 2586 |
PR c++/107097 |
| 2587 |
* c-common.def (EXCESS_PRECISION_EXPR): Remove comment part about |
| 2588 |
the tree being specific to C/ObjC. |
| 2589 |
* c-opts.cc (c_common_post_options): Handle flag_excess_precision |
| 2590 |
in C++ the same as in C. |
| 2591 |
* c-lex.cc (interpret_float): Set const_type to excess_precision () |
| 2592 |
even for C++. |
| 2593 |
|
| 2594 |
2022-10-13 Joseph Myers <[email protected]> |
| 2595 |
|
| 2596 |
* c-cppbuiltin.cc (builtin_define_float_constants): Do not use |
| 2597 |
value 2 for *_IS_IEC_60559. |
| 2598 |
|
| 2599 |
2022-10-12 Lewis Hyatt <[email protected]> |
| 2600 |
|
| 2601 |
PR preprocessor/60014 |
| 2602 |
PR preprocessor/60723 |
| 2603 |
* c-ppoutput.cc (class token_streamer): Remove member |
| 2604 |
line_marker_emitted to... |
| 2605 |
(token_streamer::stream): ...a local variable here. Set |
| 2606 |
print.prev_was_system_token on all code paths. |
| 2607 |
|
| 2608 |
2022-10-10 Nathan Sidwell <[email protected]> |
| 2609 |
|
| 2610 |
* c-opts.cc (c_common_post_options): Bump abi to 18. |
| 2611 |
|
| 2612 |
2022-10-10 Marek Polacek <[email protected]> |
| 2613 |
|
| 2614 |
PR c++/106937 |
| 2615 |
* c-pretty-print.cc (pp_c_specifier_qualifier_list): Print only GNU |
| 2616 |
attributes here. |
| 2617 |
(c_pretty_printer::direct_abstract_declarator): Print the standard [[]] |
| 2618 |
attributes here. |
| 2619 |
(pp_c_attributes): Remove. |
| 2620 |
(pp_c_attributes_display): Print the [[]] form if appropriate. Use |
| 2621 |
get_attribute_name. Don't print a trailing space when printing the |
| 2622 |
[[]] form. |
| 2623 |
* c-pretty-print.h (pp_c_attributes): Remove. |
| 2624 |
|
| 2625 |
2022-10-07 Qing Zhao <[email protected]> |
| 2626 |
|
| 2627 |
* c-attribs.cc (handle_strict_flex_array_attribute): New function. |
| 2628 |
(c_common_attribute_table): New item for strict_flex_array. |
| 2629 |
* c.opt: (fstrict-flex-arrays): New option. |
| 2630 |
(fstrict-flex-arrays=): New option. |
| 2631 |
|
| 2632 |
2022-10-07 Martin Liska <[email protected]> |
| 2633 |
|
| 2634 |
* name-hint.h: Use std::move. |
| 2635 |
|
| 2636 |
2022-10-07 Jakub Jelinek <[email protected]> |
| 2637 |
|
| 2638 |
* c-common.cc (attribute_fallthrough_p): Lookup fallthrough attribute |
| 2639 |
only in gnu namespace or as standard attribute, treat fallthrough |
| 2640 |
attributes in other namespaces like any other unknown attribute. |
| 2641 |
|
| 2642 |
2022-10-06 Joseph Myers <[email protected]> |
| 2643 |
|
| 2644 |
* c-common.cc (c_common_reswords): Mark typeof as D_EXT11. Add |
| 2645 |
typeof_unqual. |
| 2646 |
* c-common.h (enum rid): Add RID_TYPEOF_UNQUAL. |
| 2647 |
(D_EXT11): New macro. Values of subsequent macros updated. |
| 2648 |
|
| 2649 |
2022-10-06 Jakub Jelinek <[email protected]> |
| 2650 |
|
| 2651 |
PR c++/106654 |
| 2652 |
* c-attribs.cc (handle_assume_attribute): New function. |
| 2653 |
(c_common_attribute_table): Add entry for assume attribute. |
| 2654 |
* c-lex.cc (c_common_has_attribute): Handle |
| 2655 |
__have_cpp_attribute (assume). |
| 2656 |
|
| 2657 |
2022-10-04 Jakub Jelinek <[email protected]> |
| 2658 |
|
| 2659 |
* c-omp.cc (c_omp_directives): Uncomment begin declare target |
| 2660 |
entry. |
| 2661 |
|
| 2662 |
2022-10-03 Patrick Palka <[email protected]> |
| 2663 |
|
| 2664 |
* c-common.cc (c_common_reswords): Use RID_IS_SAME instead of |
| 2665 |
RID_IS_SAME_AS. |
| 2666 |
|
| 2667 |
2022-10-03 Joseph Myers <[email protected]> |
| 2668 |
|
| 2669 |
* c-cppbuiltin.cc (builtin_define_float_constants): Do not |
| 2670 |
special-case __*_EPSILON__ setting for IBM long double for C2x. |
| 2671 |
|
| 2672 |
2022-09-30 Patrick Palka <[email protected]> |
| 2673 |
|
| 2674 |
* c-common.cc (c_common_reswords): Use cp/cp-trait.def to handle |
| 2675 |
C++ traits. |
| 2676 |
* c-common.h (enum rid): Likewise. |
| 2677 |
|
| 2678 |
2022-09-29 Joseph Myers <[email protected]> |
| 2679 |
|
| 2680 |
* c-lex.cc (c_common_has_attribute): Handle noreturn attribute for |
| 2681 |
C. |
| 2682 |
|
| 2683 |
2022-09-29 Patrick Palka <[email protected]> |
| 2684 |
|
| 2685 |
* c-common.cc (c_common_reswords): Add __remove_cv, |
| 2686 |
__remove_reference and __remove_cvref. |
| 2687 |
* c-common.h (enum rid): Add RID_REMOVE_CV, RID_REMOVE_REFERENCE |
| 2688 |
and RID_REMOVE_CVREF. |
| 2689 |
|
| 2690 |
2022-09-27 Marek Polacek <[email protected]> |
| 2691 |
|
| 2692 |
PR c++/101165 |
| 2693 |
PR c++/106882 |
| 2694 |
* c-cppbuiltin.cc (c_cpp_builtins): Define __cpp_implicit_move. |
| 2695 |
|
| 2696 |
2022-09-27 Marek Polacek <[email protected]> |
| 2697 |
|
| 2698 |
* c-format.cc (c_keywords): Drop nothrow. |
| 2699 |
|
| 2700 |
2022-09-27 Jakub Jelinek <[email protected]> |
| 2701 |
|
| 2702 |
PR c++/106651 |
| 2703 |
* c-cppbuiltin.cc (c_cpp_builtins): Predefine |
| 2704 |
__cpp_static_call_operator=202207L for C++23. |
| 2705 |
|
| 2706 |
2022-09-27 Jakub Jelinek <[email protected]> |
| 2707 |
|
| 2708 |
* c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_ASSUME, |
| 2709 |
PRAGMA_OMP_ASSUMES and PRAGMA_OMP_BEGIN. Rename |
| 2710 |
PRAGMA_OMP_END_DECLARE_TARGET to PRAGMA_OMP_END. |
| 2711 |
* c-pragma.cc (omp_pragmas): Add assumes and begin. |
| 2712 |
For end rename PRAGMA_OMP_END_DECLARE_TARGET to PRAGMA_OMP_END. |
| 2713 |
(omp_pragmas_simd): Add assume. |
| 2714 |
* c-common.h (c_omp_directives): Declare. |
| 2715 |
* c-omp.cc (omp_directives): Rename to ... |
| 2716 |
(c_omp_directives): ... this. No longer static. Uncomment |
| 2717 |
assume, assumes, begin assumes and end assumes entries. |
| 2718 |
In end declare target entry rename PRAGMA_OMP_END_DECLARE_TARGET |
| 2719 |
to PRAGMA_OMP_END. |
| 2720 |
(c_omp_categorize_directive): Adjust for omp_directives to |
| 2721 |
c_omp_directives renaming. |
| 2722 |
|
| 2723 |
2022-09-27 Jakub Jelinek <[email protected]> |
| 2724 |
|
| 2725 |
PR c++/106652 |
| 2726 |
PR c++/85518 |
| 2727 |
* c-common.cc (c_common_reswords): Change _Float{16,32,64,128} and |
| 2728 |
_Float{32,64,128}x flags from D_CONLY to 0. |
| 2729 |
(shorten_binary_op): Punt if common_type returns error_mark_node. |
| 2730 |
(shorten_compare): Likewise. |
| 2731 |
(c_common_nodes_and_builtins): For C++ record _Float{16,32,64,128} |
| 2732 |
and _Float{32,64,128}x builtin types if available. For C++ |
| 2733 |
clear float128t_type_node. |
| 2734 |
* c-cppbuiltin.cc (c_cpp_builtins): Predefine |
| 2735 |
__STDCPP_FLOAT{16,32,64,128}_T__ for C++23 if supported. |
| 2736 |
* c-lex.cc (interpret_float): For q/Q suffixes prefer |
| 2737 |
float128t_type_node over float128_type_node. Allow |
| 2738 |
{f,F}{16,32,64,128} suffixes for C++ if supported with pedwarn |
| 2739 |
for C++20 and older. Allow {f,F}{32,64,128}x suffixes for C++ |
| 2740 |
with pedwarn. Don't call excess_precision_type for C++. |
| 2741 |
|
| 2742 |
2022-09-26 Marek Polacek <[email protected]> |
| 2743 |
|
| 2744 |
PR c++/106656 |
| 2745 |
* c-cppbuiltin.cc (c_cpp_builtins): Update value of __cpp_char8_t |
| 2746 |
for C++20. |
| 2747 |
|
| 2748 |
2022-09-23 Marek Polacek <[email protected]> |
| 2749 |
|
| 2750 |
PR c++/106784 |
| 2751 |
* c-common.cc (c_common_reswords): Add __is_convertible and |
| 2752 |
__is_nothrow_convertible. |
| 2753 |
* c-common.h (enum rid): Add RID_IS_CONVERTIBLE and |
| 2754 |
RID_IS_NOTHROW_CONVERTIBLE. |
| 2755 |
|
| 2756 |
2022-09-22 David Malcolm <[email protected]> |
| 2757 |
|
| 2758 |
PR c/106830 |
| 2759 |
* c-warn.cc (check_for_xor_used_as_pow): Don't try checking |
| 2760 |
values that don't fit in uhwi. |
| 2761 |
|
| 2762 |
2022-09-15 Richard Biener <[email protected]> |
| 2763 |
|
| 2764 |
* c-common.h (build_void_list_node): Remove. |
| 2765 |
* c-common.cc (c_common_nodes_and_builtins): Do not initialize |
| 2766 |
void_list_node. |
| 2767 |
|
| 2768 |
2022-09-09 Jan-Benedict Glaw <[email protected]> |
| 2769 |
|
| 2770 |
* c-format.cc (convert_format_name_to_system_name): Fix warning. |
| 2771 |
|
| 2772 |
2022-09-07 Joseph Myers <[email protected]> |
| 2773 |
|
| 2774 |
* c-common.cc (c_common_reswords): Use D_C2X instead of D_CXXONLY |
| 2775 |
for alignas, alignof, bool, false, static_assert, thread_local and |
| 2776 |
true. |
| 2777 |
|
| 2778 |
2022-09-07 Jakub Jelinek <[email protected]> |
| 2779 |
|
| 2780 |
* c.opt (Winvalid-utf8): Use ObjC instead of objC. Remove |
| 2781 |
" in comments" from description. |
| 2782 |
(Wunicode): New option. |
| 2783 |
|
| 2784 |
2022-09-06 Jakub Jelinek <[email protected]> |
| 2785 |
|
| 2786 |
PR c/106836 |
| 2787 |
* c-omp.cc (c_omp_split_clauses): Handle OMP_CLAUSE_DOACROSS. |
| 2788 |
|
| 2789 |
2022-09-03 Jakub Jelinek <[email protected]> |
| 2790 |
|
| 2791 |
* c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_DOACROSS. |
| 2792 |
* c-omp.cc (c_finish_omp_depobj): Check also for OMP_CLAUSE_DOACROSS |
| 2793 |
clause and diagnose it. Don't handle OMP_CLAUSE_DEPEND_SOURCE and |
| 2794 |
OMP_CLAUSE_DEPEND_SINK. Assert kind is not OMP_CLAUSE_DEPEND_INVALID. |
| 2795 |
|
| 2796 |
2022-09-02 David Malcolm <[email protected]> |
| 2797 |
|
| 2798 |
PR c/90885 |
| 2799 |
* c-common.h (check_for_xor_used_as_pow): New decl. |
| 2800 |
* c-lex.cc (c_lex_with_flags): Add DECIMAL_INT to flags as appropriate. |
| 2801 |
* c-warn.cc (check_for_xor_used_as_pow): New. |
| 2802 |
* c.opt (Wxor-used-as-pow): New. |
| 2803 |
|
| 2804 |
2022-09-01 Jason Merrill <[email protected]> |
| 2805 |
|
| 2806 |
* c-common.cc (c_common_nodes_and_builtins): Set TREE_STRING_FLAG on |
| 2807 |
char8_t. |
| 2808 |
(braced_list_to_string): Check for char-sized elements. |
| 2809 |
|
| 2810 |
2022-09-01 Jakub Jelinek <[email protected]> |
| 2811 |
|
| 2812 |
PR c++/106655 |
| 2813 |
* c.opt (-Winvalid-utf8): New warning. |
| 2814 |
* c-opts.cc (c_common_handle_option) <case OPT_finput_charset_>: |
| 2815 |
Set cpp_opts->cpp_input_charset_explicit. |
| 2816 |
(c_common_post_options): If -finput-charset=UTF-8 is explicit |
| 2817 |
in C++23, enable -Winvalid-utf8 by default and if -pedantic |
| 2818 |
or -pedantic-errors, make it a pedwarn. |
| 2819 |
|
| 2820 |
2022-08-31 Joseph Myers <[email protected]> |
| 2821 |
|
| 2822 |
* c-attribs.cc (handle_deprecated_attribute): Check and pedwarn |
| 2823 |
for LABEL_DECL. |
| 2824 |
* c-common.cc (c_add_case_label): Add argument ATTRS. Call |
| 2825 |
decl_attributes. |
| 2826 |
* c-common.h (do_case, c_add_case_label): Update declarations. |
| 2827 |
* c-lex.cc (c_common_has_attribute): For C, produce a result of |
| 2828 |
201910 for fallthrough and 202106 for maybe_unused. |
| 2829 |
|
| 2830 |
2022-08-26 Marek Polacek <[email protected]> |
| 2831 |
|
| 2832 |
PR c++/81159 |
| 2833 |
* c.opt (Wself-move): New option. |
| 2834 |
|
| 2835 |
2022-08-26 Jakub Jelinek <[email protected]> |
| 2836 |
|
| 2837 |
* c-common.cc (check_builtin_function_arguments): Handle |
| 2838 |
BUILT_IN_ISSIGNALING. |
| 2839 |
|
| 2840 |
2022-08-26 Jakub Jelinek <[email protected]> |
| 2841 |
|
| 2842 |
PR c++/106648 |
| 2843 |
* c-cppbuiltin.cc (c_cpp_builtins): Predefine |
| 2844 |
__cpp_named_character_escapes to 202207L. |
| 2845 |
|
| 2846 |
2022-08-25 Marek Polacek <[email protected]> |
| 2847 |
|
| 2848 |
* c-common.cc (c_common_reswords): Enable nullptr in C2X. |
| 2849 |
(c_common_nodes_and_builtins): Create the built-in node for nullptr. |
| 2850 |
* c-common.h (enum c_tree_index): Add CTI_NULLPTR, CTI_NULLPTR_TYPE. |
| 2851 |
(struct c_common_resword): Resize the disable member. |
| 2852 |
(D_C2X): Add. |
| 2853 |
(nullptr_node): Define. |
| 2854 |
(nullptr_type_node): Define. |
| 2855 |
(NULLPTR_TYPE_P): Define. |
| 2856 |
* c-pretty-print.cc (c_pretty_printer::simple_type_specifier): Handle |
| 2857 |
NULLPTR_TYPE. |
| 2858 |
(c_pretty_printer::direct_abstract_declarator): Likewise. |
| 2859 |
(c_pretty_printer::constant): Likewise. |
| 2860 |
|
| 2861 |
2022-08-16 Tom Honermann <[email protected]> |
| 2862 |
|
| 2863 |
PR c++/106423 |
| 2864 |
* c-opts.cc (c_common_post_options): Disable -Wc++20-compat |
| 2865 |
diagnostics in C++20 and later. |
| 2866 |
* c.opt (Wc++20-compat): Enable hooks for the preprocessor. |
| 2867 |
|
| 2868 |
2022-08-11 Marek Polacek <[email protected]> |
| 2869 |
|
| 2870 |
PR middle-end/102633 |
| 2871 |
* c-gimplify.cc (c_gimplify_expr) <case DECL_EXPR>: Don't call |
| 2872 |
suppress_warning here. |
| 2873 |
|
| 2874 |
2022-08-08 Tom Honermann <[email protected]> |
| 2875 |
|
| 2876 |
PR preprocessor/106426 |
| 2877 |
* c-opts.cc (c_common_post_options): Assign cpp_opts->unsigned_utf8char |
| 2878 |
subject to -fchar8_t, -fsigned-char, and/or -funsigned-char. |
| 2879 |
|
| 2880 |
2022-08-08 Tom Honermann <[email protected]> |
| 2881 |
|
| 2882 |
* c-lex.cc (lex_string, lex_charconst): Use char8_t as the type |
| 2883 |
of CPP_UTF8CHAR and CPP_UTF8STRING when char8_t support is |
| 2884 |
enabled. |
| 2885 |
* c-opts.cc (c_common_post_options): Set flag_char8_t if |
| 2886 |
targeting C2x. |
| 2887 |
|
| 2888 |
2022-07-31 Lewis Hyatt <[email protected]> |
| 2889 |
|
| 2890 |
PR c++/66290 |
| 2891 |
* c-common.h: Rename global done_lexing to |
| 2892 |
override_libcpp_locations. |
| 2893 |
* c-common.cc (c_cpp_diagnostic): Likewise. |
| 2894 |
* c-opts.cc (c_common_finish): Set override_libcpp_locations |
| 2895 |
(formerly done_lexing) immediately prior to calling cpp_finish (). |
| 2896 |
|
| 2897 |
2022-07-27 Lewis Hyatt <[email protected]> |
| 2898 |
|
| 2899 |
* c-ppoutput.cc (token_streamer::stream): Update input_location |
| 2900 |
prior to streaming each token. |
| 2901 |
|
| 2902 |
2022-07-23 Immad Mir <[email protected]> |
| 2903 |
|
| 2904 |
* c-attribs.cc: (c_common_attribute_table): add three new attributes |
| 2905 |
namely: fd_arg, fd_arg_read and fd_arg_write. |
| 2906 |
(handle_fd_arg_attribute): New. |
| 2907 |
|
| 2908 |
2022-07-15 Marek Polacek <[email protected]> |
| 2909 |
|
| 2910 |
PR c++/104477 |
| 2911 |
* c-common.cc (c_common_reswords): Add |
| 2912 |
__reference_constructs_from_temporary and |
| 2913 |
__reference_converts_from_temporary. |
| 2914 |
* c-common.h (enum rid): Add RID_REF_CONSTRUCTS_FROM_TEMPORARY and |
| 2915 |
RID_REF_CONVERTS_FROM_TEMPORARY. |
| 2916 |
|
| 2917 |
2022-07-15 Jonathan Wakely <[email protected]> |
| 2918 |
|
| 2919 |
* c-format.cc (class range_label_for_format_type_mismatch): |
| 2920 |
Adjust to new label_text API. |
| 2921 |
|
| 2922 |
2022-07-11 Lewis Hyatt <[email protected]> |
| 2923 |
|
| 2924 |
PR preprocessor/106252 |
| 2925 |
* c-pragma.cc (handle_pragma_diagnostic_impl): Don't look up the |
| 2926 |
option argument prior to verifying the option was found. |
| 2927 |
|
| 2928 |
2022-07-07 David Malcolm <[email protected]> |
| 2929 |
|
| 2930 |
* c-format.cc (range_label_for_format_type_mismatch::get_text): |
| 2931 |
Update for removal of label_text::maybe_free in favor of automatic |
| 2932 |
memory management. |
| 2933 |
|
| 2934 |
2022-07-06 Lewis Hyatt <[email protected]> |
| 2935 |
|
| 2936 |
PR preprocessor/53920 |
| 2937 |
PR c++/53431 |
| 2938 |
* c-common.cc (c_option_is_from_cpp_diagnostics): New function. |
| 2939 |
* c-common.h (c_option_is_from_cpp_diagnostics): Declare. |
| 2940 |
(c_pp_stream_token): Declare. |
| 2941 |
* c-ppoutput.cc (init_pp_output): Refactor logic about skipping |
| 2942 |
pragmas to... |
| 2943 |
(should_output_pragmas): ...here. New function. |
| 2944 |
(token_streamer::stream): Support handling early pragmas. |
| 2945 |
(do_line_change): Likewise. |
| 2946 |
(c_pp_stream_token): New function. |
| 2947 |
* c-pragma.cc (struct pragma_diagnostic_data): New helper class. |
| 2948 |
(pragma_diagnostic_lex_normal): New function. Moved logic for |
| 2949 |
interpreting GCC diagnostic pragmas here. |
| 2950 |
(pragma_diagnostic_lex_pp): New function for parsing diagnostic pragmas |
| 2951 |
directly from libcpp. |
| 2952 |
(handle_pragma_diagnostic): Refactor into helper function... |
| 2953 |
(handle_pragma_diagnostic_impl): ...here. New function. |
| 2954 |
(handle_pragma_diagnostic_early): New function. |
| 2955 |
(handle_pragma_diagnostic_early_pp): New function. |
| 2956 |
(struct pragma_ns_name): Renamed to... |
| 2957 |
(struct pragma_pp_data): ...this. Add new "early_handler" member. |
| 2958 |
(c_register_pragma_1): Support early pragmas in the preprocessor. |
| 2959 |
(c_register_pragma_with_early_handler): New function. |
| 2960 |
(c_register_pragma): Support the new early handlers in struct |
| 2961 |
internal_pragma_handler. |
| 2962 |
(c_register_pragma_with_data): Likewise. |
| 2963 |
(c_register_pragma_with_expansion): Likewise. |
| 2964 |
(c_register_pragma_with_expansion_and_data): Likewise. |
| 2965 |
(c_invoke_early_pragma_handler): New function. |
| 2966 |
(c_pp_invoke_early_pragma_handler): New function. |
| 2967 |
(init_pragma): Add early pragma support for diagnostic pragmas. |
| 2968 |
* c-pragma.h (struct internal_pragma_handler): Add new early handler |
| 2969 |
members. |
| 2970 |
(c_register_pragma_with_early_handler): Declare. |
| 2971 |
(c_invoke_early_pragma_handler): Declare. |
| 2972 |
(c_pp_invoke_early_pragma_handler): Declare. |
| 2973 |
|
| 2974 |
2022-07-05 Marek Polacek <[email protected]> |
| 2975 |
|
| 2976 |
PR c++/105626 |
| 2977 |
* c-format.cc (check_format_arg): Don't emit -Wformat warnings with |
| 2978 |
u8 strings. |
| 2979 |
|
| 2980 |
2022-07-01 Marek Polacek <[email protected]> |
| 2981 |
|
| 2982 |
PR c++/106111 |
| 2983 |
* c-common.h (enum rid): Update RID_LAST_CXX20. |
| 2984 |
|
| 2985 |
2022-06-30 Jonathan Wakely <[email protected]> |
| 2986 |
|
| 2987 |
* known-headers.cc (get_stdlib_header_for_name): Add <time.h> |
| 2988 |
names. |
| 2989 |
|
| 2990 |
2022-06-24 Jason Merrill <[email protected]> |
| 2991 |
|
| 2992 |
PR c++/87729 |
| 2993 |
PR c++/20423 |
| 2994 |
* c.opt (Woverloaded-virtual): Add levels, include in -Wall. |
| 2995 |
|
| 2996 |
2022-06-18 Jakub Jelinek <[email protected]> |
| 2997 |
|
| 2998 |
* c-ubsan.cc (ubsan_instrument_division, ubsan_instrument_shift): |
| 2999 |
Use flag_sanitize_trap & SANITIZE_??? instead of |
| 3000 |
flag_sanitize_undefined_trap_on_error. If 2 sanitizers are involved |
| 3001 |
and flag_sanitize_trap differs for them, emit __builtin_trap only |
| 3002 |
for the comparison where trap is requested. |
| 3003 |
(ubsan_instrument_vla, ubsan_instrument_return): Use |
| 3004 |
lag_sanitize_trap & SANITIZE_??? instead of |
| 3005 |
flag_sanitize_undefined_trap_on_error. |
| 3006 |
|
| 3007 |
2022-06-13 Jason Merrill <[email protected]> |
| 3008 |
|
| 3009 |
* c-ubsan.cc (ubsan_instrument_return): Use BUILTINS_LOCATION. |
| 3010 |
|
| 3011 |
2022-05-27 Marek Polacek <[email protected]> |
| 3012 |
|
| 3013 |
PR c/90658 |
| 3014 |
* c-attribs.cc (get_priority): Check FUNCTION_DECL. |
| 3015 |
|
| 3016 |
2022-05-27 Jakub Jelinek <[email protected]> |
| 3017 |
|
| 3018 |
* c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ENTER. |
| 3019 |
|
| 3020 |
2022-05-20 David Malcolm <[email protected]> |
| 3021 |
|
| 3022 |
* c-format.cc: Replace uses of "FINAL" and "OVERRIDE" with "final" |
| 3023 |
and "override". |
| 3024 |
* c-pretty-print.h: Likewise. |
| 3025 |
|
| 3026 |
2022-05-18 Marek Polacek <[email protected]> |
| 3027 |
|
| 3028 |
PR c/105131 |
| 3029 |
* c.opt (Wenum-int-mismatch): New. |
| 3030 |
|
| 3031 |
2022-05-18 Marek Polacek <[email protected]> |
| 3032 |
|
| 3033 |
PR c++/105497 |
| 3034 |
* c-warn.cc (c_do_switch_warnings): Don't warn about unhandled |
| 3035 |
enumerator when it was marked with attribute unused. |
| 3036 |
|
| 3037 |
2022-05-18 Eric Botcazou <[email protected]> |
| 3038 |
|
| 3039 |
* c-ada-spec.cc (dump_ada_node) <COMPLEX_TYPE>: Deal with usual |
| 3040 |
floating-point complex types. |
| 3041 |
<POINTER_TYPE>: Do not use limited_with clause if the designated |
| 3042 |
type is a scalar type. |
| 3043 |
|
| 3044 |
2022-05-17 Jakub Jelinek <[email protected]> |
| 3045 |
|
| 3046 |
* c-omp.cc (c_finish_omp_depobj): Handle |
| 3047 |
OMP_CLAUSE_DEPEND_INOUTSET. |
| 3048 |
|
| 3049 |
2022-05-16 Jason Merrill <[email protected]> |
| 3050 |
|
| 3051 |
PR c/105492 |
| 3052 |
* c-attribs.cc (handle_mode_attribute): Don't fix broken typedefs |
| 3053 |
here. |
| 3054 |
|
| 3055 |
2022-05-16 Martin Liska <[email protected]> |
| 3056 |
|
| 3057 |
* c-common.cc (ARRAY_SIZE): Use ARRAY_SIZE. |
| 3058 |
(c_common_nodes_and_builtins): Likewise. |
| 3059 |
* c-format.cc (check_tokens): Likewise. |
| 3060 |
(check_plain): Likewise. |
| 3061 |
* c-pragma.cc (c_pp_lookup_pragma): Likewise. |
| 3062 |
(init_pragma): Likewise. |
| 3063 |
* known-headers.cc (get_string_macro_hint): Likewise. |
| 3064 |
(get_stdlib_header_for_name): Likewise. |
| 3065 |
* c-attribs.cc: Likewise. |
| 3066 |
|
| 3067 |
2022-05-13 Richard Biener <[email protected]> |
| 3068 |
|
| 3069 |
* c-omp.cc: Remove gimple-fold.h include. |
| 3070 |
|
| 3071 |
2022-05-12 Jakub Jelinek <[email protected]> |
| 3072 |
|
| 3073 |
* c-common.h (enum rid): Add RID_OMP_ALL_MEMORY. |
| 3074 |
* c-omp.cc (c_finish_omp_depobj): Don't build_fold_addr_expr |
| 3075 |
if null_pointer_node. |
| 3076 |
|
| 3077 |
2022-05-11 Martin Liska <[email protected]> |
| 3078 |
|
| 3079 |
PR target/105355 |
| 3080 |
* c-opts.cc (c_common_handle_option): Change option name. |
| 3081 |
* c.opt: Remove Joined and use Separate option. |
| 3082 |
|
| 3083 |
2022-05-09 Alex Coplan <[email protected]> |
| 3084 |
|
| 3085 |
* c-common.h (get_dump_info): Delete. |
| 3086 |
* c-gimplify.cc (c_genericize): Get TDI_original dump file info |
| 3087 |
from the global dump_manager instead of the (now obsolete) |
| 3088 |
get_dump_info. |
| 3089 |
* c-opts.cc (original_dump_file): Delete. |
| 3090 |
(original_dump_flags): Delete. |
| 3091 |
(c_common_parse_file): Switch to using global dump_manager to |
| 3092 |
manage the original dump file; fix leak of dump file. |
| 3093 |
(get_dump_info): Delete. |
| 3094 |
|
| 3095 |
2022-05-07 Marek Polacek <[email protected]> |
| 3096 |
|
| 3097 |
PR c++/101833 |
| 3098 |
PR c++/47634 |
| 3099 |
* c-attribs.cc (positional_argument): Pass POS by reference. Deal |
| 3100 |
with FN being either a function declaration or function type. Use |
| 3101 |
maybe_adjust_arg_pos_for_attribute. |
| 3102 |
* c-common.cc (check_function_arguments): Maybe pass FNDECL down to |
| 3103 |
check_function_format. |
| 3104 |
* c-common.h (maybe_adjust_arg_pos_for_attribute): Declare. |
| 3105 |
(positional_argument): Adjust. |
| 3106 |
* c-format.cc (get_constant): Rename to ... |
| 3107 |
(validate_constant): ... this. Take EXPR by reference. Return bool |
| 3108 |
instead of tree. |
| 3109 |
(handle_format_arg_attribute): Don't overwrite FORMAT_NUM_EXPR by the |
| 3110 |
return value of validate_constant. |
| 3111 |
(decode_format_attr): Don't overwrite FORMAT_NUM_EXPR and |
| 3112 |
FIRST_ARG_NUM_EXPR by the return value of validate_constant. |
| 3113 |
(check_function_format): Adjust a parameter name. |
| 3114 |
(handle_format_attribute): Maybe pass FNDECL down to decode_format_attr. |
| 3115 |
|
| 3116 |
2022-05-04 Marek Polacek <[email protected]> |
| 3117 |
|
| 3118 |
* c-warn.cc (warnings_for_convert_and_check): Convert constants of type |
| 3119 |
char to int. |
| 3120 |
|
| 3121 |
2022-04-30 Jason Merrill <[email protected]> |
| 3122 |
|
| 3123 |
PR c/100545 |
| 3124 |
* c-attribs.cc (handle_mode_attribute): Copy attributes, aligned, |
| 3125 |
and typedef. |
| 3126 |
* c-common.cc (set_underlying_type): Add assert. |
| 3127 |
|
| 3128 |
2022-04-26 Patrick Palka <[email protected]> |
| 3129 |
|
| 3130 |
PR c++/105304 |
| 3131 |
* c-common.cc (verify_tree) [restart]: Move up to before the |
| 3132 |
NULL test. |
| 3133 |
|
| 3134 |
2022-04-11 Jakub Jelinek <[email protected]> |
| 3135 |
|
| 3136 |
PR c++/105186 |
| 3137 |
* c-common.cc (c_common_nodes_and_builtins): After registering __int%d |
| 3138 |
and __int%d__ builtin types, initialize corresponding ridpointers |
| 3139 |
entry. |
| 3140 |
|
| 3141 |
2022-03-30 Marek Polacek <[email protected]> |
| 3142 |
|
| 3143 |
PR c++/101030 |
| 3144 |
* c-warn.cc (conversion_warning) <case COND_EXPR>: Don't call |
| 3145 |
conversion_warning when OP1 is null. |
| 3146 |
|
| 3147 |
2022-03-30 Thomas Schwinge <[email protected]> |
| 3148 |
|
| 3149 |
* c.opt (Wc++11-extensions, Wc++14-extensions, Wc++17-extensions) |
| 3150 |
(Wc++20-extensions, Wc++23-extensions): Remove 'LangEnabledBy' |
| 3151 |
option properties. |
| 3152 |
|
| 3153 |
2022-03-30 Thomas Schwinge <[email protected]> |
| 3154 |
|
| 3155 |
* c.opt (Wuse-after-free): Remove. |
| 3156 |
|
| 3157 |
2022-03-30 Thomas Schwinge <[email protected]> |
| 3158 |
|
| 3159 |
* c.opt (Warray-bounds): Remove. |
| 3160 |
|
| 3161 |
2022-03-26 Thomas Schwinge <[email protected]> |
| 3162 |
|
| 3163 |
* c.opt: Properly quote comment. |
| 3164 |
|
| 3165 |
2022-03-25 Eric Botcazou <[email protected]> |
| 3166 |
|
| 3167 |
* c-ada-spec.cc (dump_ada_import): Deal with the "section" attribute |
| 3168 |
(dump_ada_node) <POINTER_TYPE>: Do not modify and pass the name, but |
| 3169 |
the referenced type instead. Deal with the anonymous original type |
| 3170 |
of a typedef'ed type. In the actual access case, follow the chain |
| 3171 |
of external subtypes. |
| 3172 |
<TYPE_DECL>: Tidy up control flow. |
| 3173 |
|
| 3174 |
2022-03-21 Qian Jianhua <[email protected]> |
| 3175 |
|
| 3176 |
* c-ada-spec.cc: Change array length |
| 3177 |
|
| 3178 |
2022-03-19 Arthur Cohen <[email protected]> |
| 3179 |
|
| 3180 |
* c-common.cc (c_family_tests): Call the new tests. |
| 3181 |
* c-common.h (c_diagnostic_tests): Declare. |
| 3182 |
(c_opt_problem_cc_tests): Likewise. |
| 3183 |
|
| 3184 |
2022-03-19 Jakub Jelinek <[email protected]> |
| 3185 |
|
| 3186 |
PR c++/101515 |
| 3187 |
* c-pretty-print.cc (c_fold_indirect_ref_for_warn): For C++ don't |
| 3188 |
return COMPONENT_REFs with FIELD_DECLs whose containing scope can't |
| 3189 |
be printed. |
| 3190 |
|
| 3191 |
2022-03-16 Christophe Lyon <[email protected]> |
| 3192 |
Roger Sayle <[email protected]> |
| 3193 |
|
| 3194 |
PR c/98198 |
| 3195 |
* c-attribs.cc (decl_or_type_attrs): Add error_mark_node check. |
| 3196 |
|
| 3197 |
2022-03-16 Patrick Palka <[email protected]> |
| 3198 |
|
| 3199 |
PR c++/96780 |
| 3200 |
* c.opt: Add -ffold-simple-inlines. |
| 3201 |
|
| 3202 |
2022-03-13 Tobias Burnus <[email protected]> |
| 3203 |
|
| 3204 |
* c-target.def (check_string_object_format_arg): Fix description typo. |
| 3205 |
|
| 3206 |
2022-03-12 Thomas Schwinge <[email protected]> |
| 3207 |
|
| 3208 |
PR other/65095 |
| 3209 |
* c-common.h (c_omp_map_clause_name): Remove. |
| 3210 |
* c-omp.cc (c_omp_map_clause_name): Remove. |
| 3211 |
|
| 3212 |
2022-03-09 Jakub Jelinek <[email protected]> |
| 3213 |
|
| 3214 |
PR c/104711 |
| 3215 |
* c-opts.cc (c_common_post_options): Don't enable |
| 3216 |
-Wshift-negative-value from -Wextra for C++20 or later. |
| 3217 |
* c-ubsan.cc (ubsan_instrument_shift): Adjust comments. |
| 3218 |
* c-warn.cc (maybe_warn_shift_overflow): Use TYPE_OVERFLOW_WRAPS |
| 3219 |
instead of TYPE_UNSIGNED. |
| 3220 |
|
| 3221 |
2022-03-07 Jakub Jelinek <[email protected]> |
| 3222 |
|
| 3223 |
* c-attribs.cc: Fix up duplicated word issue in a comment. |
| 3224 |
|
| 3225 |
2022-03-01 Martin Liska <[email protected]> |
| 3226 |
|
| 3227 |
PR ipa/104533 |
| 3228 |
* c-attribs.cc (handle_target_clones_attribute): Use |
| 3229 |
get_target_clone_attr_len and report warning soon. |
| 3230 |
|
| 3231 |
2022-02-17 Jonathan Wakely <[email protected]> |
| 3232 |
|
| 3233 |
* c-pragma.cc (handle_pragma_pack): Remove parameter name. |
| 3234 |
(handle_pragma_weak): Likewise. |
| 3235 |
(handle_pragma_scalar_storage_order): Likewise. |
| 3236 |
(handle_pragma_redefine_extname): Likewise. |
| 3237 |
(handle_pragma_visibility): Likewise. |
| 3238 |
(handle_pragma_diagnostic): Likewise. |
| 3239 |
(handle_pragma_target): Likewise. |
| 3240 |
(handle_pragma_optimize): Likewise. |
| 3241 |
(handle_pragma_push_options): Likewise. |
| 3242 |
(handle_pragma_pop_options): Likewise. |
| 3243 |
(handle_pragma_reset_options): Likewise. |
| 3244 |
(handle_pragma_message): Likewise. |
| 3245 |
(handle_pragma_float_const_decimal64): Likewise. |
| 3246 |
|
| 3247 |
2022-02-16 Jakub Jelinek <[email protected]> |
| 3248 |
|
| 3249 |
PR c/104531 |
| 3250 |
* c-omp.cc (c_finish_omp_atomic): For MIN_EXPR/MAX_EXPR, try first |
| 3251 |
build_binary_op with LT_EXPR and only if that doesn't return |
| 3252 |
error_mark_node call build_modify_expr. |
| 3253 |
|
| 3254 |
2022-02-16 Jakub Jelinek <[email protected]> |
| 3255 |
|
| 3256 |
PR c/104510 |
| 3257 |
* c-common.cc (shorten_compare): Convert original arguments to |
| 3258 |
the original *restype_ptr when mixing binary and decimal float. |
| 3259 |
|
| 3260 |
2022-02-14 Richard Biener <[email protected]> |
| 3261 |
|
| 3262 |
PR c/104505 |
| 3263 |
* c-pretty-print.cc (c_pretty_printer::postfix_expression): Handle |
| 3264 |
internal function calls. |
| 3265 |
|
| 3266 |
2022-02-11 Richard Biener <[email protected]> |
| 3267 |
|
| 3268 |
* c-attribs.cc (c_common_attribute_table): Add entry for |
| 3269 |
vector_mask. |
| 3270 |
(handle_vector_mask_attribute): New. |
| 3271 |
|
| 3272 |
2022-02-10 Marcel Vollweiler <[email protected]> |
| 3273 |
|
| 3274 |
* c-omp.cc (c_omp_split_clauses): Added OMP_CLAUSE_HAS_DEVICE_ADDR case. |
| 3275 |
* c-pragma.h (enum pragma_kind): Added 5.1 in comment. |
| 3276 |
(enum pragma_omp_clause): Added PRAGMA_OMP_CLAUSE_HAS_DEVICE_ADDR. |
| 3277 |
|
| 3278 |
2022-02-09 Jason Merrill <[email protected]> |
| 3279 |
|
| 3280 |
* c-cppbuiltin.cc (c_cpp_builtins): Update values |
| 3281 |
of __cpp_constexpr and __cpp_concepts for C++20. |
| 3282 |
|
| 3283 |
2022-01-24 Marek Polacek <[email protected]> |
| 3284 |
|
| 3285 |
PR preprocessor/104030 |
| 3286 |
* c.opt (Wbidi-chars): Mark as EnumSet. Also accept =ucn. |
| 3287 |
|
| 3288 |
2022-01-21 Jakub Jelinek <[email protected]> |
| 3289 |
|
| 3290 |
PR c++/104148 |
| 3291 |
* c-common.h (check_function_arguments_recurse): Add for_format |
| 3292 |
arg. |
| 3293 |
* c-common.cc (check_function_nonnull): Pass false to |
| 3294 |
check_function_arguments_recurse's last argument. |
| 3295 |
(check_function_arguments_recurse): Add for_format argument, |
| 3296 |
if true, don't stop on warning_suppressed_p. |
| 3297 |
* c-format.cc (check_format_info): Pass true to |
| 3298 |
check_function_arguments_recurse's last argument. |
| 3299 |
|
| 3300 |
2022-01-19 David Malcolm <[email protected]> |
| 3301 |
|
| 3302 |
* c-common.cc (c_common_c_tests): Rename to... |
| 3303 |
(c_common_cc_tests): ...this. |
| 3304 |
(c_family_tests): Update calls for .c to .cc renaming. |
| 3305 |
* c-common.h (c_format_c_tests): Rename to... |
| 3306 |
(c_format_cc_tests): ...this. |
| 3307 |
(c_indentation_c_tests): Rename to... |
| 3308 |
(c_indentation_cc_tests): ...this. |
| 3309 |
(c_pretty_print_c_tests): Rename to... |
| 3310 |
(c_pretty_print_cc_tests): ...this. |
| 3311 |
* c-format.cc (c_format_c_tests): Rename to... |
| 3312 |
(c_format_cc_tests): ...this. |
| 3313 |
* c-indentation.cc (c_indentation_c_tests): Rename to... |
| 3314 |
(c_indentation_cc_tests): ...this. |
| 3315 |
* c-pretty-print.cc (c_pretty_print_c_tests): Rename to... |
| 3316 |
(c_pretty_print_cc_tests): ...this. |
| 3317 |
|
| 3318 |
2022-01-17 Martin Liska <[email protected]> |
| 3319 |
|
| 3320 |
* c-ada-spec.cc: Rename .c names to .cc. |
| 3321 |
* c-ada-spec.h: Likewise. |
| 3322 |
* c-common.cc (c_build_vec_convert): Likewise. |
| 3323 |
(warning_candidate_p): Likewise. |
| 3324 |
* c-common.h (enum rid): Likewise. |
| 3325 |
(build_real_imag_expr): Likewise. |
| 3326 |
(finish_label_address_expr): Likewise. |
| 3327 |
(c_get_substring_location): Likewise. |
| 3328 |
(c_build_bind_expr): Likewise. |
| 3329 |
(conflict_marker_get_final_tok_kind): Likewise. |
| 3330 |
(c_parse_error): Likewise. |
| 3331 |
(check_missing_format_attribute): Likewise. |
| 3332 |
(invalid_array_size_error): Likewise. |
| 3333 |
(warn_for_multistatement_macros): Likewise. |
| 3334 |
(build_attr_access_from_parms): Likewise. |
| 3335 |
* c-cppbuiltin.cc (c_cpp_builtins): Likewise. |
| 3336 |
* c-format.cc: Likewise. |
| 3337 |
* c-gimplify.cc (c_gimplify_expr): Likewise. |
| 3338 |
* c-indentation.h: Likewise. |
| 3339 |
* c-objc.h (objc_prop_attr_kind_for_rid): Likewise. |
| 3340 |
* c-omp.cc (c_omp_predetermined_mapping): Likewise. |
| 3341 |
* c-opts.cc (c_common_post_options): Likewise. |
| 3342 |
(set_std_cxx23): Likewise. |
| 3343 |
* c-pragma.cc (handle_pragma_redefine_extname): Likewise. |
| 3344 |
* c-pretty-print.h: Likewise. |
| 3345 |
|
| 3346 |
2022-01-17 Martin Liska <[email protected]> |
| 3347 |
|
| 3348 |
* c-ada-spec.c: Moved to... |
| 3349 |
* c-ada-spec.cc: ...here. |
| 3350 |
* c-attribs.c: Moved to... |
| 3351 |
* c-attribs.cc: ...here. |
| 3352 |
* c-common.c: Moved to... |
| 3353 |
* c-common.cc: ...here. |
| 3354 |
* c-cppbuiltin.c: Moved to... |
| 3355 |
* c-cppbuiltin.cc: ...here. |
| 3356 |
* c-dump.c: Moved to... |
| 3357 |
* c-dump.cc: ...here. |
| 3358 |
* c-format.c: Moved to... |
| 3359 |
* c-format.cc: ...here. |
| 3360 |
* c-gimplify.c: Moved to... |
| 3361 |
* c-gimplify.cc: ...here. |
| 3362 |
* c-indentation.c: Moved to... |
| 3363 |
* c-indentation.cc: ...here. |
| 3364 |
* c-lex.c: Moved to... |
| 3365 |
* c-lex.cc: ...here. |
| 3366 |
* c-omp.c: Moved to... |
| 3367 |
* c-omp.cc: ...here. |
| 3368 |
* c-opts.c: Moved to... |
| 3369 |
* c-opts.cc: ...here. |
| 3370 |
* c-pch.c: Moved to... |
| 3371 |
* c-pch.cc: ...here. |
| 3372 |
* c-ppoutput.c: Moved to... |
| 3373 |
* c-ppoutput.cc: ...here. |
| 3374 |
* c-pragma.c: Moved to... |
| 3375 |
* c-pragma.cc: ...here. |
| 3376 |
* c-pretty-print.c: Moved to... |
| 3377 |
* c-pretty-print.cc: ...here. |
| 3378 |
* c-semantics.c: Moved to... |
| 3379 |
* c-semantics.cc: ...here. |
| 3380 |
* c-ubsan.c: Moved to... |
| 3381 |
* c-ubsan.cc: ...here. |
| 3382 |
* c-warn.c: Moved to... |
| 3383 |
* c-warn.cc: ...here. |
| 3384 |
* cppspec.c: Moved to... |
| 3385 |
* cppspec.cc: ...here. |
| 3386 |
* stub-objc.c: Moved to... |
| 3387 |
* stub-objc.cc: ...here. |
| 3388 |
|
| 3389 |
2022-01-15 Martin Sebor <[email protected]> |
| 3390 |
|
| 3391 |
PR c/63272 |
| 3392 |
* c.opt (-Wdangling-pointer): New option. |
| 3393 |
|
| 3394 |
2022-01-15 Martin Sebor <[email protected]> |
| 3395 |
|
| 3396 |
PR tree-optimization/80532 |
| 3397 |
* c.opt (-Wuse-after-free): New options. |
| 3398 |
|
| 3399 |
2022-01-14 David Malcolm <[email protected]> |
| 3400 |
|
| 3401 |
* c-attribs.c (c_common_attribute_table): Add "tainted_args". |
| 3402 |
(handle_tainted_args_attribute): New. |
| 3403 |
|
| 3404 |
2022-01-13 Anthony Sharp <[email protected]> |
| 3405 |
Jason Merrill <[email protected]> |
| 3406 |
|
| 3407 |
PR c++/70417 |
| 3408 |
* c.opt: Added -Wmissing-template-keyword. |
| 3409 |
|
| 3410 |
2022-01-13 Richard Biener <[email protected]> |
| 3411 |
|
| 3412 |
PR c/104002 |
| 3413 |
* c-common.c (c_common_mark_addressable_vec): Handle TARGET_EXPR. |
| 3414 |
|
| 3415 |
2022-01-12 Martin Liska <[email protected]> |
| 3416 |
|
| 3417 |
PR target/103804 |
| 3418 |
* c-attribs.c (handle_optimize_attribute): Do not call |
| 3419 |
cl_optimization_compare if we seen an error. |
| 3420 |
|
| 3421 |
2022-01-11 Jakub Jelinek <[email protected]> |
| 3422 |
|
| 3423 |
PR c/101537 |
| 3424 |
PR c/103881 |
| 3425 |
* c-warn.c (conversion_warning): Handle BIT_AND_EXPR, BIT_IOR_EXPR |
| 3426 |
and BIT_XOR_EXPR. |
| 3427 |
|
| 3428 |
2022-01-10 Richard Biener <[email protected]> |
| 3429 |
|
| 3430 |
PR middle-end/101530 |
| 3431 |
* c-common.c (c_build_shufflevector): Wrap the BIT_FIELD_REF |
| 3432 |
in a TARGET_EXPR to force a temporary. |
| 3433 |
|
| 3434 |
2022-01-06 Marek Polacek <[email protected]> |
| 3435 |
|
| 3436 |
PR c++/103758 |
| 3437 |
* c-pragma.c (handle_pragma_scalar_storage_order): Use %< %> in |
| 3438 |
diagnostic messages. |
| 3439 |
(handle_pragma_diagnostic): Likewise. |
| 3440 |
|
| 3441 |
2022-01-03 Marek Polacek <[email protected]> |
| 3442 |
|
| 3443 |
PR c++/103758 |
| 3444 |
* c-format.c (check_tokens): Accept "decl-specifier*". |
| 3445 |
|
| 3446 |
2022-01-03 Jakub Jelinek <[email protected]> |
| 3447 |
|
| 3448 |
PR c++/103600 |
| 3449 |
* c-attribs.c (handle_non_overlapping_attribute): New function. |
| 3450 |
(c_common_attribute_table): Add "non overlapping" attribute. |
| 3451 |
|
| 3452 |
2021-12-30 Jakub Jelinek <[email protected]> |
| 3453 |
|
| 3454 |
PR c++/103012 |
| 3455 |
* c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Perform |
| 3456 |
cpp_define_unused/cpp_undef calls with forced token locations |
| 3457 |
BUILTINS_LOCATION. |
| 3458 |
|
| 3459 |
2021-12-27 Patrick Palka <[email protected]> |
| 3460 |
|
| 3461 |
PR c++/103700 |
| 3462 |
* c-common.c (pointer_int_sum): When quiet, return |
| 3463 |
error_mark_node for an incomplete pointed-to type and don't |
| 3464 |
call size_in_bytes_loc. |
| 3465 |
|
| 3466 |
2021-12-17 Jason Merrill <[email protected]> |
| 3467 |
|
| 3468 |
PR c++/103681 |
| 3469 |
* c-opts.c (c_common_post_options): Update defaults. |
| 3470 |
|
| 3471 |
2021-12-16 Martin Liska <[email protected]> |
| 3472 |
|
| 3473 |
PR target/103709 |
| 3474 |
* c-pragma.c (handle_pragma_pop_options): Do not check |
| 3475 |
global options modification when an error is seen in parsing |
| 3476 |
of options (pragmas or attributes). |
| 3477 |
|
| 3478 |
2021-12-12 Jonathan Wakely <[email protected]> |
| 3479 |
|
| 3480 |
* known-headers.cc: Define INCLUDE_MEMORY instead of |
| 3481 |
INCLUDE_UNIQUE_PTR. |
| 3482 |
* name-hint.h: Likewise. |
| 3483 |
(class name_hint): Use std::unique_ptr instead of gnu::unique_ptr. |
| 3484 |
|
| 3485 |
2021-12-09 Jakub Jelinek <[email protected]> |
| 3486 |
|
| 3487 |
PR pch/71934 |
| 3488 |
* c-pch.c (c_common_no_more_pch): Pass a temporary void * var |
| 3489 |
with NULL value instead of NULL to host_hooks.gt_pch_use_address. |
| 3490 |
|
| 3491 |
2021-12-03 Jakub Jelinek <[email protected]> |
| 3492 |
|
| 3493 |
PR pch/71934 |
| 3494 |
* c-pch.c (struct c_pch_validity): Remove pch_init member. |
| 3495 |
(pch_init): Don't initialize v.pch_init. |
| 3496 |
(c_common_valid_pch): Don't warn and punt if .text addresses change. |
| 3497 |
|
| 3498 |
2021-12-01 Jason Merrill <[email protected]> |
| 3499 |
|
| 3500 |
PR c++/103310 |
| 3501 |
* c.opt: Add -fconstexpr-fp-except. |
| 3502 |
|
| 3503 |
2021-11-29 Richard Biener <[email protected]> |
| 3504 |
|
| 3505 |
* c-format.c (check_format_string): Remove spurious |
| 3506 |
gcc_unreachable. |
| 3507 |
|
| 3508 |
2021-11-29 Richard Biener <[email protected]> |
| 3509 |
|
| 3510 |
* c-opts.c (c_common_post_options): Remove unreachable return. |
| 3511 |
* c-pragma.c (handle_pragma_target): Likewise. |
| 3512 |
(handle_pragma_optimize): Likewise. |
| 3513 |
|
| 3514 |
2021-11-25 Jakub Jelinek <[email protected]> |
| 3515 |
|
| 3516 |
PR c++/102611 |
| 3517 |
* c-opts.c (c_common_post_options): Enable -Wcomma-subscript by |
| 3518 |
default for C++23 regardless of warn_deprecated. |
| 3519 |
* c-cppbuiltin.c (c_cpp_builtins): Predefine |
| 3520 |
__cpp_multidimensional_subscript=202110L for C++23. |
| 3521 |
|
| 3522 |
2021-11-23 Martin Sebor <[email protected]> |
| 3523 |
|
| 3524 |
PR middle-end/88232 |
| 3525 |
* c.opt: Add -Winfinite-recursion. |
| 3526 |
|
| 3527 |
2021-11-19 Martin Sebor <[email protected]> |
| 3528 |
|
| 3529 |
PR c++/33925 |
| 3530 |
PR c/102867 |
| 3531 |
* c-common.c (decl_with_nonnull_addr_p): Call maybe_nonzero_address |
| 3532 |
and improve handling tof defined symbols. |
| 3533 |
|
| 3534 |
2021-11-19 Martin Liska <[email protected]> |
| 3535 |
|
| 3536 |
Revert: |
| 3537 |
2021-11-18 Martin Liska <[email protected]> |
| 3538 |
|
| 3539 |
* c-gimplify.c (genericize_c_loop): Use option directly. |
| 3540 |
|
| 3541 |
2021-11-18 Matthias Kretz <[email protected]> |
| 3542 |
|
| 3543 |
* c-common.c (c_common_reswords): Add __builtin_assoc_barrier. |
| 3544 |
* c-common.h (enum rid): Add RID_BUILTIN_ASSOC_BARRIER. |
| 3545 |
|
| 3546 |
2021-11-18 Martin Liska <[email protected]> |
| 3547 |
|
| 3548 |
* c-gimplify.c (genericize_c_loop): Use option directly. |
| 3549 |
|
| 3550 |
2021-11-17 Martin Uecker <[email protected]> |
| 3551 |
|
| 3552 |
PR c/91038 |
| 3553 |
PR c/29970 |
| 3554 |
* c-common.c (pointer_int_sum): Make sure pointer expressions |
| 3555 |
are evaluated first when the size expression depends on for |
| 3556 |
variably-modified types. |
| 3557 |
|
| 3558 |
2021-11-17 Marek Polacek <[email protected]> |
| 3559 |
|
| 3560 |
PR preprocessor/103026 |
| 3561 |
* c.opt (Wbidi-chars, Wbidi-chars=): New option. |
| 3562 |
|
| 3563 |
2021-11-16 Jason Merrill <[email protected]> |
| 3564 |
|
| 3565 |
* c-common.c (release_tree_vector): Only cache vecs smaller than |
| 3566 |
16 elements. |
| 3567 |
|
| 3568 |
2021-11-15 Jason Merrill <[email protected]> |
| 3569 |
|
| 3570 |
* c.opt: Add -fimplicit-constexpr. |
| 3571 |
* c-cppbuiltin.c: Define __cpp_implicit_constexpr. |
| 3572 |
* c-opts.c (c_common_post_options): Disable below C++14. |
| 3573 |
|
| 3574 |
2021-11-15 Jakub Jelinek <[email protected]> |
| 3575 |
|
| 3576 |
* c-omp.c (c_omp_split_clauses) <case OMP_CLAUSE_THREAD_LIMIT>: |
| 3577 |
Duplicate to both OMP_TARGET and OMP_TEAMS. |
| 3578 |
|
| 3579 |
2021-11-10 Marek Polacek <[email protected]> |
| 3580 |
|
| 3581 |
PR c++/101940 |
| 3582 |
* c-pragma.c (handle_pragma_diagnostic): Handle #pragma GCC diagnostic |
| 3583 |
ignored_attributes. |
| 3584 |
|
| 3585 |
2021-11-09 David Malcolm <[email protected]> |
| 3586 |
|
| 3587 |
* c-pragma.c (GCC_BAD_AT): New macro. |
| 3588 |
(GCC_BAD2_AT): New macro. |
| 3589 |
(handle_pragma_pack): Use the location of the pertinent token when |
| 3590 |
issuing diagnostics about invalid constants/actions, and trailing |
| 3591 |
junk. |
| 3592 |
(handle_pragma_target): Likewise for non-string "GCC option". |
| 3593 |
(handle_pragma_message): Likewise for trailing junk. |
| 3594 |
|
| 3595 |
2021-11-03 Joseph Myers <[email protected]> |
| 3596 |
|
| 3597 |
PR c/103031 |
| 3598 |
* c-common.c (convert_and_check): Add argument init_const. Call |
| 3599 |
convert_init if init_const. |
| 3600 |
* c-common.h (convert_and_check): Update prototype. |
| 3601 |
(convert_init): New prototype. |
| 3602 |
|
| 3603 |
2021-11-01 David Malcolm <[email protected]> |
| 3604 |
|
| 3605 |
* c-lex.c (c_lex_with_flags): When complaining about non-printable |
| 3606 |
CPP_OTHER tokens, set the "escape on output" flag. |
| 3607 |
|
| 3608 |
2021-10-27 Jakub Jelinek <[email protected]> |
| 3609 |
|
| 3610 |
* c-omp.c (c_omp_check_loop_iv_r): Don't clear 3rd bit for |
| 3611 |
POINTER_PLUS_EXPR. |
| 3612 |
(c_omp_check_nonrect_loop_iv): Handle POINTER_PLUS_EXPR. |
| 3613 |
(c_omp_check_loop_iv): Set kind even if the iterator is non-integral. |
| 3614 |
|
| 3615 |
2021-10-27 Jakub Jelinek <[email protected]> |
| 3616 |
|
| 3617 |
PR c++/102854 |
| 3618 |
* c-common.h (c_omp_check_loop_iv_exprs): Add enum tree_code argument. |
| 3619 |
* c-omp.c (c_omp_check_loop_iv_r): For trees other than decls, |
| 3620 |
TREE_VEC, PLUS_EXPR, MINUS_EXPR, MULT_EXPR, POINTER_PLUS_EXPR or |
| 3621 |
conversions temporarily clear the 3rd bit from d->kind while walking |
| 3622 |
subtrees. |
| 3623 |
(c_omp_check_loop_iv_exprs): Add CODE argument. Or in 4 into data.kind |
| 3624 |
if possibly non-rectangular. |
| 3625 |
|
| 3626 |
2021-10-21 Jakub Jelinek <[email protected]> |
| 3627 |
|
| 3628 |
PR middle-end/64888 |
| 3629 |
* c-omp.c (c_omp_predefined_variable): Return true also for |
| 3630 |
ubsan_create_data created artificial variables. |
| 3631 |
|
| 3632 |
2021-10-14 Joseph Myers <[email protected]> |
| 3633 |
|
| 3634 |
* c-format.c (printf_length_specs, scanf_length_specs) |
| 3635 |
(print_char_table, scan_char_table): Support DFP formats for C2X. |
| 3636 |
* c-format.h (TEX_D32, TEX_D64, TEX_D128): Remove. |
| 3637 |
(T2X_D32, T2X_D64, T2X_D128): New macros. |
| 3638 |
|
| 3639 |
2021-10-14 Kwok Cheung Yeung <[email protected]> |
| 3640 |
|
| 3641 |
* c-omp.c (c_omp_check_context_selector): Rename to |
| 3642 |
omp_check_context_selector and move to omp-general.c. |
| 3643 |
(c_omp_mark_declare_variant): Rename to omp_mark_declare_variant and |
| 3644 |
move to omp-general.c. |
| 3645 |
|
| 3646 |
2021-10-12 Joseph Myers <[email protected]> |
| 3647 |
|
| 3648 |
* c-format.c (print_char_table): Add %b and %B formats. |
| 3649 |
(scan_char_table): Add %b format. |
| 3650 |
* c-format.h (T2X_UI, T2X_UL, T2X_ULL, T2X_US, T2X_UC, T2X_ST) |
| 3651 |
(T2X_UPD, T2X_UIM): New macros. |
| 3652 |
|
| 3653 |
2021-10-12 Jakub Jelinek <[email protected]> |
| 3654 |
|
| 3655 |
* c-omp.c (c_finish_omp_atomic): Use |
| 3656 |
clear_padding_type_may_have_padding_p. |
| 3657 |
|
| 3658 |
2021-10-08 Martin Liska <[email protected]> |
| 3659 |
|
| 3660 |
* c-opts.c (c_common_post_options): Use new macro |
| 3661 |
OPTION_SET_P. |
| 3662 |
|
| 3663 |
2021-10-07 Martin Liska <[email protected]> |
| 3664 |
|
| 3665 |
* c-common.c (parse_optimize_options): Make |
| 3666 |
save_opt_decoded_options a pointer type. |
| 3667 |
|
| 3668 |
2021-10-06 Jakub Jelinek <[email protected]> |
| 3669 |
|
| 3670 |
PR tree-optimization/102571 |
| 3671 |
* c-omp.c (c_finish_omp_atomic): Optimize the case where type has |
| 3672 |
padding, but the non-padding bits are contiguous set of bytes |
| 3673 |
by adjusting the memcmp call arguments instead of emitting |
| 3674 |
__builtin_clear_padding and then comparing all the type's bytes. |
| 3675 |
|
| 3676 |
2021-10-06 Jakub Jelinek <[email protected]> |
| 3677 |
|
| 3678 |
PR c++/102612 |
| 3679 |
* c-cppbuiltin.c (c_cpp_builtins): For -std=c++23 predefine |
| 3680 |
__cpp_constexpr to 202110L rather than 201907L. |
| 3681 |
|
| 3682 |
2021-10-04 Marek Polacek <[email protected]> |
| 3683 |
|
| 3684 |
PR c++/97573 |
| 3685 |
* c-common.h (do_warn_array_compare): Declare. |
| 3686 |
* c-warn.c (do_warn_array_compare): New. |
| 3687 |
* c.opt (Warray-compare): New option. |
| 3688 |
|
| 3689 |
2021-10-02 Iain Sandoe <[email protected]> |
| 3690 |
|
| 3691 |
* c-format.c: Remove a test of TARGET_FORMAT_TYPES with |
| 3692 |
NULL, this is not needed. |
| 3693 |
|
| 3694 |
2021-10-01 Martin Sebor <[email protected]> |
| 3695 |
|
| 3696 |
PR c/102103 |
| 3697 |
* c-common.c (decl_with_nonnull_addr_p): Handle members. |
| 3698 |
Check and perform warning suppression. |
| 3699 |
(c_common_truthvalue_conversion): Enhance warning suppression. |
| 3700 |
|
| 3701 |
2021-10-01 Martin Liska <[email protected]> |
| 3702 |
|
| 3703 |
PR target/102552 |
| 3704 |
* c-common.c (parse_optimize_options): decoded_options[0] is |
| 3705 |
used for program name, so merged_decoded_options should also |
| 3706 |
respect that. |
| 3707 |
|
| 3708 |
2021-10-01 Jakub Jelinek <[email protected]> |
| 3709 |
Richard Biener <[email protected]> |
| 3710 |
|
| 3711 |
PR sanitizer/102515 |
| 3712 |
* c-ubsan.c (ubsan_instrument_division): Check the right |
| 3713 |
flag_sanitize_recover bit, depending on which sanitization |
| 3714 |
is done. Sanitize INT_MIN / -1 under SANITIZE_SI_OVERFLOW |
| 3715 |
rather than SANITIZE_DIVIDE. If both SANITIZE_SI_OVERFLOW |
| 3716 |
and SANITIZE_DIVIDE is enabled, neither check is known |
| 3717 |
to be false and flag_sanitize_recover bits for those two |
| 3718 |
aren't the same, emit both __ubsan_handle_divrem_overflow |
| 3719 |
and __ubsan_handle_divrem_overflow_abort calls. |
| 3720 |
|
| 3721 |
2021-10-01 Martin Liska <[email protected]> |
| 3722 |
|
| 3723 |
* c-common.c (parse_optimize_options): Combine optimize |
| 3724 |
options with what was provided on the command line. |
| 3725 |
|
| 3726 |
2021-10-01 Jakub Jelinek <[email protected]> |
| 3727 |
|
| 3728 |
* c-omp.c (c_omp_split_clauses): Also copy |
| 3729 |
OMP_CLAUSE_ORDER_REPRODUCIBLE. |
| 3730 |
|
| 3731 |
2021-09-27 Martin Liska <[email protected]> |
| 3732 |
|
| 3733 |
* c-opts.c (c_common_init_options_struct): Set also |
| 3734 |
x_flag_default_complex_method. |
| 3735 |
|
| 3736 |
2021-09-22 Jakub Jelinek <[email protected]> |
| 3737 |
|
| 3738 |
* c-omp.c (c_omp_split_clauses): Copy over OMP_CLAUSE_ALLOCATE_ALIGN. |
| 3739 |
|
| 3740 |
2021-09-20 Matthias Kretz <[email protected]> |
| 3741 |
|
| 3742 |
* c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define or |
| 3743 |
undefine __RECIPROCAL_MATH__, __NO_SIGNED_ZEROS__, |
| 3744 |
__NO_TRAPPING_MATH__, __ASSOCIATIVE_MATH__, and |
| 3745 |
__ROUNDING_MATH__ according to the new optimization flags. |
| 3746 |
|
| 3747 |
2021-09-18 Jakub Jelinek <[email protected]> |
| 3748 |
|
| 3749 |
* c-omp.c (c_omp_split_clauses): Split order clause also to |
| 3750 |
distribute construct. Copy over OMP_CLAUSE_ORDER_UNCONSTRAINED. |
| 3751 |
|
| 3752 |
2021-09-17 Jakub Jelinek <[email protected]> |
| 3753 |
|
| 3754 |
* c-omp.c (c_finish_omp_atomic): Avoid creating |
| 3755 |
TARGET_EXPR if test is true, use create_tmp_var_raw instead of |
| 3756 |
create_tmp_var and add a zero initializer to TARGET_EXPRs that |
| 3757 |
had NULL initializer. When omitting operands after v = x, |
| 3758 |
use type of v rather than type of x. Fix type of vtmp |
| 3759 |
TARGET_EXPR. |
| 3760 |
|
| 3761 |
2021-09-13 Jason Merrill <[email protected]> |
| 3762 |
|
| 3763 |
* c.opt: Add -Winterference-size. |
| 3764 |
* c-cppbuiltin.c (cpp_atomic_builtins): Add __GCC_DESTRUCTIVE_SIZE |
| 3765 |
and __GCC_CONSTRUCTIVE_SIZE. |
| 3766 |
|
| 3767 |
2021-09-10 Jakub Jelinek <[email protected]> |
| 3768 |
|
| 3769 |
* c-common.h (c_finish_omp_atomic): Add r and weak arguments. |
| 3770 |
* c-omp.c: Include gimple-fold.h. |
| 3771 |
(c_finish_omp_atomic): Add r and weak arguments. Add support for |
| 3772 |
OpenMP 5.1 atomics. |
| 3773 |
|
| 3774 |
2021-09-09 qing zhao <[email protected]> |
| 3775 |
|
| 3776 |
* c-attribs.c (handle_uninitialized_attribute): New function. |
| 3777 |
(c_common_attribute_table): Add "uninitialized" attribute. |
| 3778 |
|
| 3779 |
2021-09-08 liuhongt <[email protected]> |
| 3780 |
|
| 3781 |
* c-common.c (excess_precision_mode_join): Update below comments. |
| 3782 |
(c_ts18661_flt_eval_method): Set excess_precision_type to |
| 3783 |
EXCESS_PRECISION_TYPE_FLOAT16 when -fexcess-precision=16. |
| 3784 |
* c-cppbuiltin.c (cpp_atomic_builtins): Update below comments. |
| 3785 |
(c_cpp_flt_eval_method_iec_559): Set excess_precision_type to |
| 3786 |
EXCESS_PRECISION_TYPE_FLOAT16 when -fexcess-precision=16. |
| 3787 |
|
| 3788 |
2021-09-07 Marcel Vollweiler <[email protected]> |
| 3789 |
|
| 3790 |
* c-omp.c (c_finish_omp_flush): Handle MEMMODEL_SEQ_CST. |
| 3791 |
|
| 3792 |
2021-09-03 Eric Botcazou <[email protected]> |
| 3793 |
|
| 3794 |
* c-ada-spec.c (dump_ads): Generate pragmas to disable style checks |
| 3795 |
and -gnatwu warning for the package specification. |
| 3796 |
|
| 3797 |
2021-09-01 Iain Sandoe <[email protected]> |
| 3798 |
|
| 3799 |
* c-attribs.c (handle_unavailable_attribute): New. |
| 3800 |
|
| 3801 |
2021-08-30 Jason Merrill <[email protected]> |
| 3802 |
|
| 3803 |
* c.opt: Add -Wmissing-requires. |
| 3804 |
|
| 3805 |
2021-08-25 Lewis Hyatt <[email protected]> |
| 3806 |
|
| 3807 |
PR other/93067 |
| 3808 |
* c-opts.c (c_common_input_charset_cb): New function. |
| 3809 |
(c_common_post_options): Call new function |
| 3810 |
diagnostic_initialize_input_context(). |
| 3811 |
|
| 3812 |
2021-08-20 Tobias Burnus <[email protected]> |
| 3813 |
|
| 3814 |
* c-format.c (gcc_gfc_length_specs): Add 'll' and 'w'. |
| 3815 |
(gcc_gfc_char_table): Add T9L_LL and T9L_ULL to |
| 3816 |
"di" and "u", respecitively; fill with BADLEN to match |
| 3817 |
size of 'types'. |
| 3818 |
(get_init_dynamic_hwi): Split off from ... |
| 3819 |
(init_dynamic_diag_info): ... here. Call it. |
| 3820 |
(init_dynamic_gfc_info): Call it. |
| 3821 |
|
| 3822 |
2021-08-20 Jakub Jelinek <[email protected]> |
| 3823 |
|
| 3824 |
* c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_ERROR. |
| 3825 |
* c-pragma.c (omp_pragmas): Add error directive. |
| 3826 |
* c-omp.c (omp_directives): Uncomment error directive entry. |
| 3827 |
|
| 3828 |
2021-08-18 Jakub Jelinek <[email protected]> |
| 3829 |
|
| 3830 |
* c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_NOTHING. |
| 3831 |
* c-pragma.c (omp_pragmas): Add nothing directive. |
| 3832 |
* c-omp.c (omp_directives): Uncomment nothing directive entry. |
| 3833 |
|
| 3834 |
2021-08-17 Jakub Jelinek <[email protected]> |
| 3835 |
|
| 3836 |
PR c++/101539 |
| 3837 |
* c-common.h (enum rid): Add RID_IS_LAYOUT_COMPATIBLE. |
| 3838 |
* c-common.c (c_common_reswords): Add __is_layout_compatible. |
| 3839 |
|
| 3840 |
2021-08-17 Matt Jacobson <[email protected]> |
| 3841 |
|
| 3842 |
* c-opts.c (c_common_post_options): Default to |
| 3843 |
flag_objc_sjlj_exceptions = 1 only when flag_objc_abi < 2. |
| 3844 |
|
| 3845 |
2021-08-17 Jakub Jelinek <[email protected]> |
| 3846 |
|
| 3847 |
* c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_SCOPE. |
| 3848 |
* c-pragma.c (omp_pragmas): Add scope construct. |
| 3849 |
* c-omp.c (omp_directives): Uncomment scope directive entry. |
| 3850 |
|
| 3851 |
2021-08-16 Sebastian Huber <[email protected]> |
| 3852 |
|
| 3853 |
* c-cppbuiltin.c (c_cpp_builtins): Define |
| 3854 |
__LIBGCC_GCOV_TYPE_SIZE if flag_building_libgcc is true. |
| 3855 |
|
| 3856 |
2021-08-12 Jakub Jelinek <[email protected]> |
| 3857 |
|
| 3858 |
* c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_MASKED. |
| 3859 |
(enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FILTER. |
| 3860 |
* c-pragma.c (omp_pragmas_simd): Add masked construct. |
| 3861 |
* c-common.h (enum c_omp_clause_split): Add C_OMP_CLAUSE_SPLIT_MASKED |
| 3862 |
enumerator. |
| 3863 |
(c_finish_omp_masked): Declare. |
| 3864 |
* c-omp.c (c_finish_omp_masked): New function. |
| 3865 |
(c_omp_split_clauses): Handle combined masked constructs. |
| 3866 |
|
| 3867 |
2021-07-30 Jakub Jelinek <[email protected]> |
| 3868 |
|
| 3869 |
PR c++/101539 |
| 3870 |
* c-common.h (enum rid): Add RID_IS_POINTER_INTERCONVERTIBLE_BASE_OF. |
| 3871 |
* c-common.c (c_common_reswords): Add |
| 3872 |
__is_pointer_interconvertible_base_of. |
| 3873 |
|
| 3874 |
2021-07-29 Richard Biener <[email protected]> |
| 3875 |
|
| 3876 |
PR c/101512 |
| 3877 |
* c-common.c (c_common_mark_addressable_vec): Look through |
| 3878 |
C_MAYBE_CONST_EXPR even if not at the toplevel. |
| 3879 |
|
| 3880 |
2021-07-27 Martin Sebor <[email protected]> |
| 3881 |
|
| 3882 |
PR c/101585 |
| 3883 |
* c-warn.c (warn_parm_ptrarray_mismatch): Use OEP_DECL_NAME. |
| 3884 |
|
| 3885 |
2021-07-23 Jakub Jelinek <[email protected]> |
| 3886 |
|
| 3887 |
* c-lex.c (c_common_has_attribute): Call canonicalize_attr_name also |
| 3888 |
on attr_id. Return 1 for omp::directive or omp::sequence in C++11 |
| 3889 |
and later. |
| 3890 |
|
| 3891 |
2021-07-23 Jakub Jelinek <[email protected]> |
| 3892 |
|
| 3893 |
* c-pragma.h (enum pragma_kind): Add PRAGMA_OMP__START_ and |
| 3894 |
PRAGMA_OMP__LAST_ enumerators. |
| 3895 |
|
| 3896 |
2021-07-21 Thomas Schwinge <[email protected]> |
| 3897 |
Joseph Myers <[email protected]> |
| 3898 |
Cesar Philippidis <[email protected]> |
| 3899 |
|
| 3900 |
* c-pragma.h (pragma_omp_clause): Add 'PRAGMA_OACC_CLAUSE_NOHOST'. |
| 3901 |
|
| 3902 |
2021-07-20 Martin Sebor <[email protected]> |
| 3903 |
|
| 3904 |
* c-common.c (c_build_shufflevector): Adjust by-value argument to |
| 3905 |
by-const-reference. |
| 3906 |
* c-common.h (c_build_shufflevector): Same. |
| 3907 |
|
| 3908 |
2021-07-16 Andrew Pinski <[email protected]> |
| 3909 |
|
| 3910 |
PR c/101453 |
| 3911 |
* c-common.c (parse_optimize_options): Use the correct |
| 3912 |
size for buffer. |
| 3913 |
|
| 3914 |
2021-07-15 Martin Sebor <[email protected]> |
| 3915 |
|
| 3916 |
PR c/101289 |
| 3917 |
PR c/97548 |
| 3918 |
* c-warn.c (warn_parm_array_mismatch): Use OEP_DECL_NAME. |
| 3919 |
|
| 3920 |
2021-07-14 Jason Merrill <[email protected]> |
| 3921 |
|
| 3922 |
* c-opts.c (c_common_post_options): Set -fdelete-dead-exceptions. |
| 3923 |
|
| 3924 |
2021-07-06 Martin Sebor <[email protected]> |
| 3925 |
|
| 3926 |
* c-format.c (gcc_tdiag_char_table): Remove support for %G and %K. |
| 3927 |
(gcc_cdiag_char_table): Same. |
| 3928 |
(gcc_cxxdiag_char_table): Same. |
| 3929 |
|
| 3930 |
2021-07-02 Jakub Jelinek <[email protected]> |
| 3931 |
|
| 3932 |
* c-common.h (enum c_omp_directive_kind): New enum. |
| 3933 |
(struct c_omp_directive): New type. |
| 3934 |
(c_omp_categorize_directive): Declare. |
| 3935 |
* c-omp.c (omp_directives): New variable. |
| 3936 |
(c_omp_categorize_directive): New function. |
| 3937 |
|
| 3938 |
2021-07-01 Eric Botcazou <[email protected]> |
| 3939 |
|
| 3940 |
* c-ada-spec.c (packed_layout): New global variable. |
| 3941 |
(dump_ada_declaration): Set it upon seeing a packed record type. |
| 3942 |
Do not put the "aliased" keyword if it is set. |
| 3943 |
(dump_ada_structure): Add Pack aspect if it is set and clear it. |
| 3944 |
|
| 3945 |
2021-07-01 Eric Botcazou <[email protected]> |
| 3946 |
|
| 3947 |
* c-ada-spec.c (check_name): Rename into... |
| 3948 |
(check_type_name_conflict): ...this. Minor tweak. |
| 3949 |
(dump_ada_function_declaration): Adjust to above renaming. |
| 3950 |
(dump_ada_array_domains): Fix oversight. |
| 3951 |
(dump_ada_declaration): Call check_type_name_conflict for variables. |
| 3952 |
|
| 3953 |
2021-06-25 Martin Sebor <[email protected]> |
| 3954 |
|
| 3955 |
* c-common.c (c_wrap_maybe_const): Remove TREE_NO_WARNING. |
| 3956 |
(c_common_truthvalue_conversion): Replace direct uses of |
| 3957 |
TREE_NO_WARNING with warning_suppressed_p, suppress_warning, and |
| 3958 |
copy_no_warning. |
| 3959 |
(check_function_arguments_recurse): Same. |
| 3960 |
* c-gimplify.c (c_gimplify_expr): Same. |
| 3961 |
* c-warn.c (overflow_warning): Same. |
| 3962 |
(warn_logical_operator): Same. |
| 3963 |
(warn_if_unused_value): Same. |
| 3964 |
(do_warn_unused_parameter): Same. |
| 3965 |
|
| 3966 |
2021-06-24 Jakub Jelinek <[email protected]> |
| 3967 |
|
| 3968 |
* c-common.h (enum c_omp_region_type): Add C_ORT_TARGET and |
| 3969 |
C_ORT_OMP_TARGET. |
| 3970 |
* c-omp.c (c_omp_split_clauses): For OMP_CLAUSE_IN_REDUCTION on |
| 3971 |
combined target constructs also add map (always, tofrom:) clause. |
| 3972 |
|
| 3973 |
2021-06-15 Robin Dapp <[email protected]> |
| 3974 |
|
| 3975 |
* c-attribs.c (common_handle_aligned_attribute): Remove short |
| 3976 |
circuit and dead code. |
| 3977 |
|
| 3978 |
2021-06-14 Jonathan Wakely <[email protected]> |
| 3979 |
|
| 3980 |
PR c++/101052 |
| 3981 |
* known-headers.cc (get_stdlib_header_for_name): Add known |
| 3982 |
headers for EXIT_FAILURE, EXIT_SUCCESS, abort, atexit, calloc, |
| 3983 |
exit, and getenv. |
| 3984 |
|
| 3985 |
2021-06-12 Jason Merrill <[email protected]> |
| 3986 |
|
| 3987 |
* c-attribs.c (handle_unused_attribute): Handle FIELD_DECL. |
| 3988 |
|
| 3989 |
2021-06-11 Jakub Jelinek <[email protected]> |
| 3990 |
|
| 3991 |
PR c++/100974 |
| 3992 |
* c-cppbuiltin.c (c_cpp_builtins): Predefine __cpp_if_consteval for |
| 3993 |
-std=c++2b for P1938R3 consteval if support. |
| 3994 |
|
| 3995 |
2021-06-09 Jason Merrill <[email protected]> |
| 3996 |
|
| 3997 |
PR c++/100879 |
| 3998 |
* c-warn.c (warn_for_sign_compare): Remove C++ enum mismatch |
| 3999 |
warning. |
| 4000 |
|
| 4001 |
2021-06-07 Martin Liska <[email protected]> |
| 4002 |
|
| 4003 |
* c-target.def: Split long lines and replace them |
| 4004 |
with '\n\'. |
| 4005 |
|
| 4006 |
2021-06-04 Martin Sebor <[email protected]> |
| 4007 |
|
| 4008 |
PR c/100783 |
| 4009 |
* c-attribs.c (positional_argument): Bail on erroneous types. |
| 4010 |
|
| 4011 |
2021-06-04 Martin Sebor <[email protected]> |
| 4012 |
|
| 4013 |
* c-warn.c (warn_parm_array_mismatch): Check TREE_PURPOSE to test |
| 4014 |
for element presence. |
| 4015 |
|
| 4016 |
2021-06-03 Eric Botcazou <[email protected]> |
| 4017 |
|
| 4018 |
* c-ada-spec.c (dump_ada_macros): Minor tweaks. |
| 4019 |
(dump_ada_decl_name): Likewise. |
| 4020 |
(dump_anonymous_type_name): Remove parent parameter and adjust. |
| 4021 |
(dump_sloc): Minor tweak. |
| 4022 |
(dump_ada_array_type): Remove type parameter and adjust. |
| 4023 |
(dump_ada_enum_type): Remove parent parameter and adjust. |
| 4024 |
(dump_ada_node): Adjust calls to above functions. |
| 4025 |
(dumped_anonymous_types): New global variable. |
| 4026 |
(dump_nested_types_1): Rename into... |
| 4027 |
(dump_nested_types): ...this. |
| 4028 |
(dump_nested_type): Remove parent and dumped_types parameters. |
| 4029 |
<ARRAY_TYPE>: Replace dumped_types with dumped_anonymous_types. |
| 4030 |
Adjust calls to dump_anonymous_type_name and dump_ada_array_type. |
| 4031 |
(dump_ada_specs): Initialize and free dumped_anonymous_types. |
| 4032 |
|
| 4033 |
2021-06-03 Eric Botcazou <[email protected]> |
| 4034 |
|
| 4035 |
* c-ada-spec.c (pp_ada_tree_identifier): Tidy up. |
| 4036 |
(dump_ada_node) <POINTER_TYPE>: Deal specially with external subtypes. |
| 4037 |
|
| 4038 |
2021-06-03 Eric Botcazou <[email protected]> |
| 4039 |
|
| 4040 |
* c-ada-spec.c (dump_ada_enum_type): Dump a prefix for constants. |
| 4041 |
(htable_t): New typedef. |
| 4042 |
(overloaded_names): Use it. |
| 4043 |
(add_name): New function. |
| 4044 |
(init_overloaded_names): Use add_name to populate the table and add |
| 4045 |
special cases for sigaction and stat. |
| 4046 |
(overloaded_name_p): Rename into... |
| 4047 |
(overloading_index): ...this. Do not initialize overloaded_names table |
| 4048 |
here. Return the index or zero. |
| 4049 |
(dump_ada_declaration): Minor tweaks. Do not skip overloaded functions |
| 4050 |
but add an overloading suffix instead. |
| 4051 |
(dump_ada_specs): Initialize overloaded_names tables here. |
| 4052 |
|
| 4053 |
2021-06-01 Martin Liska <[email protected]> |
| 4054 |
|
| 4055 |
PR other/100759 |
| 4056 |
* c-attribs.c (handle_optimize_attribute): Limit sanity check |
| 4057 |
to a situation where we are not in processing of an optimize |
| 4058 |
pragma. |
| 4059 |
* c-pragma.c (handle_pragma_pop_options): Restore target |
| 4060 |
options. |
| 4061 |
|
| 4062 |
2021-05-31 Indu Bhagat <[email protected]> |
| 4063 |
|
| 4064 |
PR testsuite/100749 |
| 4065 |
* c-pch.c (c_common_valid_pch): Use xstrdup for debug format set names. |
| 4066 |
|
| 4067 |
2021-05-31 Richard Biener <[email protected]> |
| 4068 |
|
| 4069 |
PR c++/88601 |
| 4070 |
* c-common.c: Include tree-vector-builder.h and |
| 4071 |
vec-perm-indices.h. |
| 4072 |
(c_common_reswords): Add __builtin_shufflevector. |
| 4073 |
(c_build_shufflevector): New funtion. |
| 4074 |
* c-common.h (enum rid): Add RID_BUILTIN_SHUFFLEVECTOR. |
| 4075 |
(c_build_shufflevector): Declare. |
| 4076 |
|
| 4077 |
2021-05-28 Jakub Jelinek <[email protected]> |
| 4078 |
|
| 4079 |
PR middle-end/99928 |
| 4080 |
* c-omp.c (c_omp_split_clauses): For reduction clause if combined with |
| 4081 |
target add a map tofrom clause with OMP_CLAUSE_MAP_IMPLICIT. |
| 4082 |
|
| 4083 |
2021-05-28 Tobias Burnus <[email protected]> |
| 4084 |
|
| 4085 |
* c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_AFFINITY. |
| 4086 |
|
| 4087 |
2021-05-25 Martin Liska <[email protected]> |
| 4088 |
|
| 4089 |
PR tree-optimization/92860 |
| 4090 |
PR target/99592 |
| 4091 |
* c-attribs.c (handle_optimize_attribute): Save target node |
| 4092 |
before calling parse_optimize_options and save it in case |
| 4093 |
it changes. |
| 4094 |
* c-pragma.c (handle_pragma_target): Similarly for pragma. |
| 4095 |
(handle_pragma_pop_options): Likewise here. |
| 4096 |
|
| 4097 |
2021-05-25 Martin Liska <[email protected]> |
| 4098 |
|
| 4099 |
* c-attribs.c (handle_no_sanitize_coverage_attribute): New. |
| 4100 |
|
| 4101 |
2021-05-25 Jakub Jelinek <[email protected]> |
| 4102 |
|
| 4103 |
PR middle-end/99928 |
| 4104 |
* c-omp.c (c_omp_split_clauses): Copy reduction to teams when teams is |
| 4105 |
combined with simd and not with taskloop or for. |
| 4106 |
|
| 4107 |
2021-05-21 Jakub Jelinek <[email protected]> |
| 4108 |
|
| 4109 |
PR middle-end/99928 |
| 4110 |
* c-omp.c (c_omp_split_clauses): Set OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT |
| 4111 |
on firstprivate clause copy going to target construct, and for |
| 4112 |
target simd set also OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET bit. |
| 4113 |
|
| 4114 |
2021-05-20 Jonathan Wakely <[email protected]> |
| 4115 |
|
| 4116 |
* c.opt (Wc++11-extensions, Wc++14-extensions) |
| 4117 |
(Wc++17-extensions, Wc++20-extensions, Wc++23-extensions): New |
| 4118 |
options. |
| 4119 |
|
| 4120 |
2021-05-20 Indu Bhagat <[email protected]> |
| 4121 |
|
| 4122 |
* c-lex.c (init_c_lex): Use dwarf_debuginfo_p. |
| 4123 |
|
| 4124 |
2021-05-20 Indu Bhagat <[email protected]> |
| 4125 |
|
| 4126 |
* c-opts.c (c_common_post_options): Adjust access to debug_type_names. |
| 4127 |
* c-pch.c (struct c_pch_validity): Use type uint32_t. |
| 4128 |
(pch_init): Renamed member. |
| 4129 |
(c_common_valid_pch): Adjust access to debug_type_names. |
| 4130 |
|
| 4131 |
2021-05-19 Martin Sebor <[email protected]> |
| 4132 |
|
| 4133 |
PR c/100619 |
| 4134 |
* c-attribs.c (build_attr_access_from_parms): Handle arbitrarily many |
| 4135 |
bounds. |
| 4136 |
|
| 4137 |
2021-05-18 Richard Biener <[email protected]> |
| 4138 |
|
| 4139 |
PR c/100547 |
| 4140 |
* c-attribs.c (type_valid_for_vector_size): Reject too large nunits. |
| 4141 |
Reword existing nunit diagnostic. |
| 4142 |
|
| 4143 |
2021-05-17 Joern Rennecke <[email protected]> |
| 4144 |
|
| 4145 |
* c-common.c (braced_list_to_string): Return CTOR unchanged |
| 4146 |
if host and target character sizes don't match. |
| 4147 |
|
| 4148 |
2021-05-14 Martin Liska <[email protected]> |
| 4149 |
|
| 4150 |
* c.opt: Add Warning keyword for 2 options. |
| 4151 |
|
| 4152 |
2021-05-13 Martin Liska <[email protected]> |
| 4153 |
|
| 4154 |
PR middle-end/100504 |
| 4155 |
* c-attribs.c (handle_target_clones_attribute): Expect a string |
| 4156 |
argument to target_clone argument. |
| 4157 |
|
| 4158 |
2021-05-11 Joseph Myers <[email protected]> |
| 4159 |
|
| 4160 |
* c-lex.c (interpret_float): Handle digit separators for C2X. |
| 4161 |
|
| 4162 |
2021-05-10 Martin Liska <[email protected]> |
| 4163 |
|
| 4164 |
* c-ada-spec.c (print_destructor): Use startswith |
| 4165 |
function instead of strncmp. |
| 4166 |
(dump_ada_declaration): Likewise. |
| 4167 |
* c-common.c (disable_builtin_function): Likewise. |
| 4168 |
(def_builtin_1): Likewise. |
| 4169 |
* c-format.c (check_tokens): Likewise. |
| 4170 |
(check_plain): Likewise. |
| 4171 |
(convert_format_name_to_system_name): Likewise. |
| 4172 |
|
| 4173 |
2021-04-28 Patrick McGehearty <[email protected]> |
| 4174 |
|
| 4175 |
* c-cppbuiltin.c (c_cpp_builtins): Add supporting macros for new |
| 4176 |
complex divide |
| 4177 |
|
| 4178 |
2021-04-26 Thomas Schwinge <[email protected]> |
| 4179 |
Nathan Sidwell <[email protected]> |
| 4180 |
Tom de Vries <[email protected]> |
| 4181 |
Julian Brown <[email protected]> |
| 4182 |
Kwok Cheung Yeung <[email protected]> |
| 4183 |
|
| 4184 |
* c.opt (Wopenacc-parallelism): New. |
| 4185 |
|
| 4186 |
2021-04-19 Thomas Schwinge <[email protected]> |
| 4187 |
|
| 4188 |
* c.opt (fopenacc-kernels=): Remove. |
| 4189 |
|
| 4190 |
2021-04-08 Jakub Jelinek <[email protected]> |
| 4191 |
|
| 4192 |
* c-warn.c (do_warn_double_promotion): Fix comment typo, |
| 4193 |
occured -> occurred. |
| 4194 |
(check_alignment_of_packed_member): Fix a comment typo, |
| 4195 |
memeber -> member. |
| 4196 |
(warn_parm_ptrarray_mismatch): Fix comment typos, os -> of |
| 4197 |
and onless -> unless. |
| 4198 |
(warn_parm_array_mismatch): Fix comment typos, declaratation |
| 4199 |
-> declaration and woud -> would. Fix up comment indentation. |
| 4200 |
|
| 4201 |
2021-04-08 Martin Sebor <[email protected]> |
| 4202 |
|
| 4203 |
PR middle-end/99883 |
| 4204 |
* c.opt (Wmismatched-new-delete): Correct spelling. |
| 4205 |
|
| 4206 |
2021-04-05 Eric Botcazou <[email protected]> |
| 4207 |
|
| 4208 |
* c-ada-spec.c (is_simple_enum): Minor tweaks. |
| 4209 |
(dump_ada_enum_type): Add TYPE and PARENT parameters. For non-simple |
| 4210 |
enumeral types use again the type name for the enumeration constants. |
| 4211 |
(dump_ada_node): Adjust call to dump_ada_enum_type. |
| 4212 |
(dump_nested_type): Likewise. |
| 4213 |
|
| 4214 |
2021-04-01 Jason Merrill <[email protected]> |
| 4215 |
|
| 4216 |
PR c++/98481 |
| 4217 |
* c-opts.c (c_common_post_options): Bump latest_abi_version. |
| 4218 |
|
| 4219 |
2021-03-25 Jakub Jelinek <[email protected]> |
| 4220 |
|
| 4221 |
PR c++/99565 |
| 4222 |
* c-warn.c (do_warn_duplicated_branches): Pass also |
| 4223 |
OEP_ADDRESS_OF_SAME_FIELD to operand_equal_p. |
| 4224 |
|
| 4225 |
2021-03-20 Jakub Jelinek <[email protected]> |
| 4226 |
|
| 4227 |
PR debug/99230 |
| 4228 |
* c-gimplify.c (c_genericize_control_stmt): Handle STATEMENT_LIST. |
| 4229 |
|
| 4230 |
2021-03-05 Eric Botcazou <[email protected]> |
| 4231 |
|
| 4232 |
* c-ada-spec.c (dump_ada_declaration) <TYPE_DECL>: Dump nested types |
| 4233 |
after entering the separate class package, if any. |
| 4234 |
|
| 4235 |
2021-03-04 Richard Biener <[email protected]> |
| 4236 |
|
| 4237 |
* c-pretty-print.c (c_pretty_printer::direct_abstract_declarator): |
| 4238 |
Handle ERROR_MARK. |
| 4239 |
|
| 4240 |
2021-03-04 Jakub Jelinek <[email protected]> |
| 4241 |
|
| 4242 |
PR c/99325 |
| 4243 |
* c-ppoutput.c (print): Change src_line type from int to unsigned. |
| 4244 |
(token_streamer::stream) Likewise. |
| 4245 |
(maybe_print_line_1): Likewise. Don't strcmp src_file if src_loc is |
| 4246 |
UNKNOWN_LOCATION. |
| 4247 |
|
| 4248 |
2021-03-03 Jakub Jelinek <[email protected]> |
| 4249 |
|
| 4250 |
PR c/99324 |
| 4251 |
* c-common.c (build_va_arg): Call c_common_mark_addressable_vec |
| 4252 |
instead of mark_addressable. Fix a comment typo - |
| 4253 |
neutrallly -> neutrally. |
| 4254 |
|
| 4255 |
2021-02-28 Jakub Jelinek <[email protected]> |
| 4256 |
|
| 4257 |
PR c/99304 |
| 4258 |
* c-attribs.c (handle_malloc_attribute): Fix a typo in inform |
| 4259 |
message - refernced -> referenced. Remove superfluous space before |
| 4260 |
closing paren of function calls. |
| 4261 |
|
| 4262 |
2021-02-25 Nathan Sidwell <[email protected]> |
| 4263 |
|
| 4264 |
PR c++/99166 |
| 4265 |
* c.opt (-flang-info-module-cmi): Renamed option. |
| 4266 |
|
| 4267 |
2021-02-19 Nathan Sidwell <[email protected]> |
| 4268 |
|
| 4269 |
* c.opt (flang-info-module-read, flang-info-module-read=): New. |
| 4270 |
|
| 4271 |
2021-02-18 H.J. Lu <[email protected]> |
| 4272 |
|
| 4273 |
PR target/99113 |
| 4274 |
* c-attribs.c (c_common_attribute_table): Add the "retain" |
| 4275 |
attribute. |
| 4276 |
(handle_retain_attribute): New function. |
| 4277 |
|
| 4278 |
2021-02-16 Marek Polacek <[email protected]> |
| 4279 |
|
| 4280 |
PR c++/99062 |
| 4281 |
* c-attribs.c (handle_assume_aligned_attribute): Check that the |
| 4282 |
alignment argument is non-negative. Tweak a warning message. |
| 4283 |
|
| 4284 |
2021-02-12 Martin Sebor <[email protected]> |
| 4285 |
|
| 4286 |
PR c/99055 |
| 4287 |
* c-warn.c (warn_parm_array_mismatch): Free strings returned from |
| 4288 |
print_generic_expr_to_str. |
| 4289 |
|
| 4290 |
2021-02-10 Richard Biener <[email protected]> |
| 4291 |
|
| 4292 |
* c-common.c (parse_optimize_options): Free decoded_options. |
| 4293 |
|
| 4294 |
2021-02-04 emsr <[email protected]> |
| 4295 |
|
| 4296 |
* c-cppbuiltin.c (c_cpp_builtins): __cpp_size_t_suffix=202011L. |
| 4297 |
|
| 4298 |
2021-02-03 Ed Smith-Rowland <[email protected]> |
| 4299 |
|
| 4300 |
* c-cppbuiltin.c (c_cpp_builtins): Define __cpp_size_t_suffix. |
| 4301 |
* c-lex.c (interpret_integer): Set node type for size literal. |
| 4302 |
|
| 4303 |
2021-01-28 Jakub Jelinek <[email protected]> |
| 4304 |
|
| 4305 |
* c.opt (-std=c++2a, -std=c++20, -std=gnu++2a, -std=gnu++20): Remove |
| 4306 |
draft from description. |
| 4307 |
(-std=c++2b): Fix a pasto, 2020 -> 2023. |
| 4308 |
|
| 4309 |
2021-01-26 Paul Fee <[email protected]> |
| 4310 |
|
| 4311 |
* c-common.h (cxx_dialect): Add cxx23 as a dialect. |
| 4312 |
* c.opt: Add options for -std=c++23, std=c++2b, -std=gnu++23 |
| 4313 |
and -std=gnu++2b |
| 4314 |
* c-opts.c (set_std_cxx23): New. |
| 4315 |
(c_common_handle_option): Set options when -std=c++23 is enabled. |
| 4316 |
(c_common_post_options): Adjust comments. |
| 4317 |
(set_std_cxx20): Likewise. |
| 4318 |
|
| 4319 |
2021-01-25 Martin Sebor <[email protected]> |
| 4320 |
|
| 4321 |
PR c++/98646 |
| 4322 |
* c-common.c (check_nonnull_arg): Adjust warning text. |
| 4323 |
|
| 4324 |
2021-01-17 Martin Sebor <[email protected]> |
| 4325 |
|
| 4326 |
* c-pretty-print.c (c_pretty_printer::primary_expression): Don't |
| 4327 |
assume SSA_NAME_IDENTIFIER evaluates to nonzero. |
| 4328 |
|
| 4329 |
2021-01-16 Kwok Cheung Yeung <[email protected]> |
| 4330 |
|
| 4331 |
* c-pragma.h (pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_DETACH. |
| 4332 |
Redefine PRAGMA_OACC_CLAUSE_DETACH. |
| 4333 |
|
| 4334 |
2021-01-15 Jakub Jelinek <[email protected]> |
| 4335 |
|
| 4336 |
PR tree-optimization/98597 |
| 4337 |
* c-pretty-print.c: Include options.h. |
| 4338 |
(c_fold_indirect_ref_for_warn): New function. |
| 4339 |
(print_mem_ref): Use it. If it returns something that has compatible |
| 4340 |
type and is TBAA compatible with zero offset, print it and return, |
| 4341 |
otherwise print it using offsetof syntax or array ref syntax. Fix up |
| 4342 |
printing if MEM_REFs first operand is ADDR_EXPR, or when the first |
| 4343 |
argument has pointer to array type. Print pointers using the standard |
| 4344 |
formatting. |
| 4345 |
|
| 4346 |
2021-01-12 Martin Sebor <[email protected]> |
| 4347 |
|
| 4348 |
PR c/98597 |
| 4349 |
PR c/98592 |
| 4350 |
* c-pretty-print.c (print_mem_ref): Avoid assuming MEM_REF operand |
| 4351 |
has pointer type. Remove redundant code. Avoid calling |
| 4352 |
gimple_canonical_types_compatible_p. |
| 4353 |
|
| 4354 |
2021-01-07 Martin Sebor <[email protected]> |
| 4355 |
|
| 4356 |
PR middle-end/98578 |
| 4357 |
* c-pretty-print.c (print_mem_ref): Strip array from access type. |
| 4358 |
Avoid assuming acces type's size is constant. Correct condition |
| 4359 |
guarding the printing of a parenthesis. |
| 4360 |
|
| 4361 |
2021-01-06 Martin Sebor <[email protected]> |
| 4362 |
|
| 4363 |
PR c++/95768 |
| 4364 |
* c-pretty-print.c (c_pretty_printer::primary_expression): For |
| 4365 |
SSA_NAMEs print VLA names and GIMPLE defining statements. |
| 4366 |
(print_mem_ref): New function. |
| 4367 |
(c_pretty_printer::unary_expression): Call it. |
| 4368 |
|
| 4369 |
2021-01-06 Richard Biener <[email protected]> |
| 4370 |
|
| 4371 |
PR tree-optimization/95582 |
| 4372 |
* c-attribs.c (c_common_attribute_table): Add entry for |
| 4373 |
signed_bool_precision. |
| 4374 |
(handle_signed_bool_precision_attribute): New. |
| 4375 |
|
| 4376 |
2020-12-24 Iain Sandoe <[email protected]> |
| 4377 |
|
| 4378 |
* c.opt: Add -stdlib= option and enumerations for |
| 4379 |
libstdc++ and libc++. |
| 4380 |
|
| 4381 |
2020-12-16 Martin Liska <[email protected]> |
| 4382 |
|
| 4383 |
* c.opt: Remove usage of Report. |
| 4384 |
|
| 4385 |
2020-12-14 Martin Sebor <[email protected]> |
| 4386 |
|
| 4387 |
PR middle-end/98166 |
| 4388 |
PR c++/57111 |
| 4389 |
PR middle-end/98160 |
| 4390 |
* c-attribs.c (maybe_add_noinline): New function. |
| 4391 |
(handle_malloc_attribute): Call it. Use ATTR_FLAG_INTERNAL. |
| 4392 |
Implicitly add attribute noinline to functions not declared inline |
| 4393 |
and warn on those. |
| 4394 |
|
| 4395 |
2020-12-09 Tobias Burnus <[email protected]> |
| 4396 |
|
| 4397 |
* c-pragma.c (omp_pragmas): Add 'allocate'. |
| 4398 |
* c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_ALLOCATE. |
| 4399 |
|
| 4400 |
2020-12-08 Jakub Jelinek <[email protected]> |
| 4401 |
|
| 4402 |
PR c++/98187 |
| 4403 |
* c-pragma.c (omp_pragmas): Remove "master". |
| 4404 |
(omp_pragmas_simd): Add "master". |
| 4405 |
|
| 4406 |
2020-12-07 Marek Polacek <[email protected]> |
| 4407 |
|
| 4408 |
PR c++/98126 |
| 4409 |
* c-common.c (verify_tree_lim_r): New function. |
| 4410 |
(verify_sequence_points): Use it. Use nullptr instead of 0. |
| 4411 |
|
| 4412 |
2020-12-03 Martin Sebor <[email protected]> |
| 4413 |
|
| 4414 |
PR c++/90629 |
| 4415 |
PR middle-end/94527 |
| 4416 |
* c-attribs.c (handle_dealloc_attribute): New function. |
| 4417 |
(handle_malloc_attribute): Handle argument forms of attribute. |
| 4418 |
* c.opt (-Wmismatched-dealloc): New option. |
| 4419 |
(-Wmismatched-new-delete): New option. |
| 4420 |
|
| 4421 |
2020-12-03 Jakub Jelinek <[email protected]> |
| 4422 |
|
| 4423 |
PR libstdc++/93121 |
| 4424 |
* c-common.h (enum rid): Add RID_BUILTIN_BIT_CAST. |
| 4425 |
* c-common.c (c_common_reswords): Add __builtin_bit_cast. |
| 4426 |
|
| 4427 |
2020-12-01 JeanHeyd Meneide <[email protected]> |
| 4428 |
|
| 4429 |
* c-cppbuiltin.c (c_cpp_builtins): Add predefined |
| 4430 |
{__GNUC_EXECUTION_CHARSET_NAME} and |
| 4431 |
_WIDE_EXECUTION_CHARSET_NAME} macros. |
| 4432 |
|
| 4433 |
2020-12-01 Nathan Sidwell <[email protected]> |
| 4434 |
|
| 4435 |
* c-common.c (module, import, export): New internal tokens (with |
| 4436 |
trailing space). |
| 4437 |
* c-common.h (RID__MODULE, RID__IMPORT & RID__EXPORT): Enumerate |
| 4438 |
them. |
| 4439 |
(D_CXX_MODULES, D_CXX_MODULES_FLAGS): Enable them. |
| 4440 |
* c-cppbuiltin.c (c_cpp_builtins): Feature macro. |
| 4441 |
|
| 4442 |
2020-12-01 Nathan Sidwell <[email protected]> |
| 4443 |
|
| 4444 |
* c-opts.c (c_common_init_options): Ask for module dependencies. |
| 4445 |
(c_common_handle_option): Handle -Mmodules -Mno-modules. |
| 4446 |
* c-pch.c (c_common_valid_pch): ... does not play with C++ |
| 4447 |
modules. |
| 4448 |
* c.opt (Mmodules, Mno-modules): New preprocessor dependency |
| 4449 |
options. |
| 4450 |
(fmodules-ts, fmodule-header, fmodule-implicit-inline) |
| 4451 |
(fmodule-only, fmodule-mapper, fmodule-lazy) |
| 4452 |
(fmodule-version-ignore, Winvalid-imported-macros) |
| 4453 |
(flang-info-include-translate, flang-info-include-translate-not): |
| 4454 |
New options |
| 4455 |
|
| 4456 |
2020-11-28 Eric Botcazou <[email protected]> |
| 4457 |
|
| 4458 |
* c-ada-spec.c (dump_nested_type) <RECORD_TYPE>: Remove obsolete code. |
| 4459 |
(dump_ada_structure): Also deal with convention, unchecked union and |
| 4460 |
bit-field for nested types. In the latter case, print an Alignment |
| 4461 |
aspect along with the Pack aspect. |
| 4462 |
|
| 4463 |
2020-11-25 Martin Sebor <[email protected]> |
| 4464 |
|
| 4465 |
PR bootstrap/94982 |
| 4466 |
* c-attribs.c (handle_patchable_function_entry_attribute): Avoid |
| 4467 |
-Wformat-diag. |
| 4468 |
|
| 4469 |
2020-11-24 Martin Sebor <[email protected]> |
| 4470 |
|
| 4471 |
* c-warn.c (warn_parm_array_mismatch): Avoid invalid redeclarations. |
| 4472 |
|
| 4473 |
2020-11-23 Jozef Lawrynowicz <[email protected]> |
| 4474 |
|
| 4475 |
* c-attribs.c (handle_special_var_sec_attribute): New. |
| 4476 |
(handle_noinit_attribute): Remove. |
| 4477 |
(attr_noinit_exclusions): Rename to... |
| 4478 |
(attr_section_exclusions): ...this, and add "persistent" attribute |
| 4479 |
exclusion. |
| 4480 |
(c_common_attribute_table): Add "persistent" attribute. |
| 4481 |
|
| 4482 |
2020-11-21 Aaron Sawdey <[email protected]> |
| 4483 |
|
| 4484 |
* c-pretty-print.c (c_pretty_printer::simple_type_specifier): |
| 4485 |
Treat opaque types like other types. |
| 4486 |
(c_pretty_printer::direct_abstract_declarator): Opaque types are |
| 4487 |
supported types. |
| 4488 |
|
| 4489 |
2020-11-20 Martin Sebor <[email protected]> |
| 4490 |
|
| 4491 |
* c-warn.c (warn_parm_array_mismatch): Bail on invalid redeclarations |
| 4492 |
with fewer arguments. |
| 4493 |
|
| 4494 |
2020-11-20 Martin Sebor <[email protected]> |
| 4495 |
|
| 4496 |
PR middle-end/97879 |
| 4497 |
* c-attribs.c (handle_access_attribute): Handle ATTR_FLAG_INTERNAL. |
| 4498 |
Error out on invalid modes. |
| 4499 |
|
| 4500 |
2020-11-20 Jakub Jelinek <[email protected]> |
| 4501 |
|
| 4502 |
PR libstdc++/88101 |
| 4503 |
* c-common.c (check_builtin_function_arguments): Handle |
| 4504 |
BUILT_IN_CLEAR_PADDING. |
| 4505 |
|
| 4506 |
2020-11-18 Nathan Sidwell <[email protected]> |
| 4507 |
|
| 4508 |
* c-lex.c (c_lex_with_flags): CPP_HEADER_NAMEs can now be seen. |
| 4509 |
|
| 4510 |
2020-11-17 Nathan Sidwell <[email protected]> |
| 4511 |
|
| 4512 |
* c-common.h (enum c_tree_index): Reorder to place lazy fields |
| 4513 |
after newly-added CTI_MODULE_HWM. |
| 4514 |
|
| 4515 |
2020-11-17 Joseph Myers <[email protected]> |
| 4516 |
|
| 4517 |
* c-cppbuiltin.c (builtin_define_float_constants): Define |
| 4518 |
"*_IS_IEC_60559__" macros. |
| 4519 |
|
| 4520 |
2020-11-17 Nathan Sidwell <[email protected]> |
| 4521 |
|
| 4522 |
* c-lex.c: #include "langhooks.h". |
| 4523 |
(cb_undef): Maybe call preprocess_undef lang hook. |
| 4524 |
* c-opts.c (c_common_post_options): Maybe call preprocess_options |
| 4525 |
lang hook. |
| 4526 |
(push_command_line_include): Maybe call preprocess_main_file lang |
| 4527 |
hook. |
| 4528 |
(cb_file_change): Likewise. |
| 4529 |
* c-ppoutput.c: #include "langhooks.h. |
| 4530 |
(scan_translation_unit): Maybe call preprocess_token lang hook. |
| 4531 |
(class do_streamer): New, derive from token_streamer. |
| 4532 |
(directives_only_cb): Data pointer is do_streamer, call |
| 4533 |
preprocess_token lang hook. |
| 4534 |
(scan_translation_unit_directives_only): Use do_streamer. |
| 4535 |
(print_line_1): Move src_line recording to after string output. |
| 4536 |
(cb_undef): Maybe call preprocess_undef lang hook. |
| 4537 |
|
| 4538 |
2020-11-17 Nathan Sidwell <[email protected]> |
| 4539 |
|
| 4540 |
* c-ppoutput.c (scan_translation_unit): Use token_streamer, remove |
| 4541 |
code duplicating that functionality. |
| 4542 |
|
| 4543 |
2020-11-17 Jakub Jelinek <[email protected]> |
| 4544 |
|
| 4545 |
PR c/90628 |
| 4546 |
* c-common.c (check_builtin_function_arguments) |
| 4547 |
<case BUILT_IN_ADD_OVERFLOW>: Diagnose when last argument is pointer |
| 4548 |
to _Atomic. For the TYPE_READONLY case, adjust message to be usable |
| 4549 |
for more builtins and argument positions. |
| 4550 |
|
| 4551 |
2020-11-16 Iain Sandoe <[email protected]> |
| 4552 |
|
| 4553 |
PR objc/97854 |
| 4554 |
* stub-objc.c: Include c-common.h to declare enum rid. |
| 4555 |
|
| 4556 |
2020-11-13 Jakub Jelinek <[email protected]> |
| 4557 |
|
| 4558 |
PR c++/63287 |
| 4559 |
* c-cppbuiltin.c: Include configargs.h. |
| 4560 |
(c_cpp_builtins): For C++11 and later if THREAD_MODEL_SPEC is not |
| 4561 |
defined, predefine __STDCPP_THREADS__ to 1 unless thread_model is |
| 4562 |
"single". |
| 4563 |
|
| 4564 |
2020-11-13 Gergö Barany <[email protected]> |
| 4565 |
Thomas Schwinge <[email protected]> |
| 4566 |
|
| 4567 |
* c.opt (fopenacc-kernels): Add. |
| 4568 |
|
| 4569 |
2020-11-13 Jason Merrill <[email protected]> |
| 4570 |
|
| 4571 |
* c-cppbuiltin.c (c_cpp_builtins): Define __cpp_using_enum. |
| 4572 |
|
| 4573 |
2020-11-13 Piotr H. Dabrowski <[email protected]> |
| 4574 |
|
| 4575 |
PR c++/91318 |
| 4576 |
* c-cppbuiltin.c: c_cpp_builtins_optimize_pragma(): use cpp_define_unused() |
| 4577 |
|
| 4578 |
2020-11-13 Martin Liska <[email protected]> |
| 4579 |
|
| 4580 |
* c-attribs.c (build_attr_access_from_parms): Format properly. |
| 4581 |
|
| 4582 |
2020-11-13 Iain Sandoe <[email protected]> |
| 4583 |
|
| 4584 |
PR objc/90707 |
| 4585 |
* c-common.c (c_common_reswords): null_unspecified, nullable, |
| 4586 |
nonnull, null_resettable: New keywords. |
| 4587 |
* c-common.h (enum rid): RID_NULL_UNSPECIFIED, RID_NULLABLE, |
| 4588 |
RID_NONNULL, RID_NULL_RESETTABLE: New. |
| 4589 |
(OBJC_IS_PATTR_KEYWORD): Include nullability keywords in the |
| 4590 |
ranges accepted for property attributes. |
| 4591 |
* c-attribs.c (handle_objc_nullability_attribute): New. |
| 4592 |
* c-objc.h (enum objc_property_attribute_group): Add |
| 4593 |
OBJC_PROPATTR_GROUP_NULLABLE. |
| 4594 |
(enum objc_property_attribute_kind):Add |
| 4595 |
OBJC_PROPERTY_ATTR_NULL_UNSPECIFIED, OBJC_PROPERTY_ATTR_NULLABLE, |
| 4596 |
OBJC_PROPERTY_ATTR_NONNULL, OBJC_PROPERTY_ATTR_NULL_RESETTABLE. |
| 4597 |
|
| 4598 |
2020-11-13 Iain Sandoe <[email protected]> |
| 4599 |
|
| 4600 |
PR objc/77404 |
| 4601 |
* c-attribs.c (handle_objc_root_class_attribute): New |
| 4602 |
* c-objc.h (objc_start_class_interface): Add a location |
| 4603 |
value for the position of the class name. |
| 4604 |
* c.opt: Add Wobjc-root-class. |
| 4605 |
* stub-objc.c (objc_start_class_interface): Add a location |
| 4606 |
value for the position of the class name. |
| 4607 |
|
| 4608 |
2020-11-12 Joseph Myers <[email protected]> |
| 4609 |
|
| 4610 |
* c-lex.c (c_common_has_attribute): Take argument std_syntax. |
| 4611 |
Allow scope for C. Handle standard attributes for C. Do not |
| 4612 |
accept unscoped attributes if std_syntax and not handled as |
| 4613 |
standard attributes. |
| 4614 |
* c-common.h (c_common_has_attribute): Update prototype. |
| 4615 |
|
| 4616 |
2020-11-12 Nicholas Guriev <[email protected]> |
| 4617 |
|
| 4618 |
PR pch/86674 |
| 4619 |
* c-pch.c (c_common_valid_pch): Use cpp_warning with CPP_W_INVALID_PCH |
| 4620 |
reason to fix -Werror=invalid-pch and -Wno-error=invalid-pch switches. |
| 4621 |
|
| 4622 |
2020-11-11 Patrick Palka <[email protected]> |
| 4623 |
|
| 4624 |
PR c++/88115 |
| 4625 |
* c-opts.c (c_common_post_options): Update latest_abi_version. |
| 4626 |
|
| 4627 |
2020-11-10 Jakub Jelinek <[email protected]> |
| 4628 |
|
| 4629 |
PR c/97748 |
| 4630 |
* c-common.h (warn_if_unused_value): Add quiet argument defaulted |
| 4631 |
to false. |
| 4632 |
* c-warn.c (warn_if_unused_value): Likewise. Pass it down |
| 4633 |
recursively and just return true instead of warning if it is true. |
| 4634 |
Handle COMPLEX_EXPR. |
| 4635 |
|
| 4636 |
2020-11-10 Chung-Lin Tang <[email protected]> |
| 4637 |
|
| 4638 |
* c-common.h (c_omp_adjust_map_clauses): New declaration. |
| 4639 |
* c-omp.c (struct map_clause): Helper type for c_omp_adjust_map_clauses. |
| 4640 |
(c_omp_adjust_map_clauses): New function. |
| 4641 |
|
| 4642 |
2020-11-09 Marek Polacek <[email protected]> |
| 4643 |
|
| 4644 |
DR 1914 |
| 4645 |
* c-common.c (attribute_fallthrough_p): Tweak the warning |
| 4646 |
message. |
| 4647 |
|
| 4648 |
2020-11-09 Patrick Palka <[email protected]> |
| 4649 |
|
| 4650 |
* c-pragma.c (handle_pragma_diagnostic): Split the |
| 4651 |
unknown-option -Wpragmas diagnostic into a warning and a |
| 4652 |
subsequent note containing a spelling suggestion. Avoid |
| 4653 |
computing the suggestion if -Wpragmas warnings are being |
| 4654 |
suppressed. |
| 4655 |
|
| 4656 |
2020-11-09 Patrick Palka <[email protected]> |
| 4657 |
|
| 4658 |
PR testsuite/97117 |
| 4659 |
* c-indentation.c (get_visual_column): Remove location_t |
| 4660 |
parameter. Move the column-tracking diagnostic code from here |
| 4661 |
to ... |
| 4662 |
(should_warn_for_misleading_indentation): ... here, before the |
| 4663 |
early exit for when the loci are not all distinct. Don't pass a |
| 4664 |
location_t argument to get_visual_column. |
| 4665 |
(assert_get_visual_column_succeeds): Don't pass a location_t |
| 4666 |
argument to get_visual_column. |
| 4667 |
(assert_get_visual_column_fails): Likewise. |
| 4668 |
|
| 4669 |
2020-11-08 Iain Sandoe <[email protected]> |
| 4670 |
|
| 4671 |
* c-common.h (OBJC_IS_PATTR_KEYWORD): Add class to the list |
| 4672 |
of keywords accepted in @property attribute contexts. |
| 4673 |
* c-objc.h (enum objc_property_attribute_group): Add |
| 4674 |
OBJC_PROPATTR_GROUP_CLASS. |
| 4675 |
(enum objc_property_attribute_kind): Add |
| 4676 |
OBJC_PROPERTY_ATTR_CLASS. |
| 4677 |
|
| 4678 |
2020-11-07 Iain Sandoe <[email protected]> |
| 4679 |
|
| 4680 |
* c-common.c (c_common_reswords): Add 'atomic' property |
| 4681 |
attribute. |
| 4682 |
* c-common.h (enum rid): Add RID_PROPATOMIC for atomic |
| 4683 |
property attributes. |
| 4684 |
|
| 4685 |
2020-11-07 Iain Sandoe <[email protected]> |
| 4686 |
|
| 4687 |
* c-attribs.c (handle_nsobject_attribute): New. |
| 4688 |
* c.opt: Add WNSObject-attribute. |
| 4689 |
|
| 4690 |
2020-11-06 Iain Sandoe <[email protected]> |
| 4691 |
|
| 4692 |
* c-objc.h (enum objc_property_attribute_group): New |
| 4693 |
(enum objc_property_attribute_kind): New. |
| 4694 |
(OBJC_PROPATTR_GROUP_MASK): New. |
| 4695 |
(struct property_attribute_info): Small class encapsulating |
| 4696 |
parser output from property attributes. |
| 4697 |
(objc_prop_attr_kind_for_rid): New |
| 4698 |
(objc_add_property_declaration): Simplify interface. |
| 4699 |
* stub-objc.c (enum rid): Dummy type. |
| 4700 |
(objc_add_property_declaration): Simplify interface. |
| 4701 |
(objc_prop_attr_kind_for_rid): New. |
| 4702 |
|
| 4703 |
2020-11-06 Nathan Sidwell <[email protected]> |
| 4704 |
|
| 4705 |
* c-ada-spec.c (collect_ada_nodes): Rename |
| 4706 |
DECL_IS_BUILTIN->DECL_IS_UNDECLARED_BUILTIN. |
| 4707 |
(collect_ada_node): Likewise. |
| 4708 |
(dump_forward_type): Likewise. |
| 4709 |
* c-common.c (set_underlying_type): Rename |
| 4710 |
DECL_IS_BUILTIN->DECL_IS_UNDECLARED_BUILTIN. |
| 4711 |
(user_facing_original_type, c_common_finalize_early_debug): Likewise. |
| 4712 |
|
| 4713 |
2020-11-06 Jakub Jelinek <[email protected]> |
| 4714 |
|
| 4715 |
* c-common.c (verify_sequence_points): Remove DEBUG_FUNCTION. |
| 4716 |
|
| 4717 |
2020-11-05 Marek Polacek <[email protected]> |
| 4718 |
|
| 4719 |
PR c++/97675 |
| 4720 |
* c.opt (Wexceptions): New option. |
| 4721 |
|
| 4722 |
2020-11-05 Marek Polacek <[email protected]> |
| 4723 |
|
| 4724 |
PR c++/25814 |
| 4725 |
* c.opt (Wvexing-parse): New option. |
| 4726 |
|
| 4727 |
2020-11-04 Jakub Jelinek <[email protected]> |
| 4728 |
|
| 4729 |
PR c++/97670 |
| 4730 |
* c-omp.c (c_omp_split_clauses): Look through array reductions to find |
| 4731 |
underlying decl to clear in the allocate_head bitmap. |
| 4732 |
|
| 4733 |
2020-11-04 Iain Sandoe <[email protected]> |
| 4734 |
|
| 4735 |
* c-objc.h (objc_non_constant_expr_p): New. |
| 4736 |
* stub-objc.c (objc_non_constant_expr_p): New. |
| 4737 |
|
| 4738 |
2020-11-03 Nathan Sidwell <[email protected]> |
| 4739 |
|
| 4740 |
* c.opt (MQ,MT): Reword description to be make-agnostic. |
| 4741 |
|
| 4742 |
2020-11-02 Nathan Sidwell <[email protected]> |
| 4743 |
|
| 4744 |
* c-opts.c (c_common_post_options): Move var decl to its |
| 4745 |
initialization point. |
| 4746 |
|
| 4747 |
2020-11-01 Iain Sandoe <[email protected]> |
| 4748 |
|
| 4749 |
* c-lex.c (c_lex_with_flags): When combining '@' with a |
| 4750 |
keyword for Objective-C, combine the location ranges too. |
| 4751 |
|
| 4752 |
2020-10-30 Qing Zhao <[email protected]> |
| 4753 |
H.J.Lu <[email protected]> |
| 4754 |
|
| 4755 |
* c-attribs.c (c_common_attribute_table): Add new attribute |
| 4756 |
zero_call_used_regs. |
| 4757 |
(handle_zero_call_used_regs_attribute): New function. |
| 4758 |
|
| 4759 |
2020-10-28 Marek Polacek <[email protected]> |
| 4760 |
|
| 4761 |
PR c++/97573 |
| 4762 |
* c-opts.c (c_common_post_options): In C++20, turn on |
| 4763 |
-Wdeprecated-enum-enum-conversion and |
| 4764 |
-Wdeprecated-enum-float-conversion. |
| 4765 |
* c.opt (Wdeprecated-enum-enum-conversion, |
| 4766 |
Wdeprecated-enum-float-conversion): New options. |
| 4767 |
(Wenum-conversion): Allow for C++ too. |
| 4768 |
|
| 4769 |
2020-10-28 Jakub Jelinek <[email protected]> |
| 4770 |
|
| 4771 |
* c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALLOCATE. |
| 4772 |
* c-omp.c: Include bitmap.h. |
| 4773 |
(c_omp_split_clauses): Handle OMP_CLAUSE_ALLOCATE. |
| 4774 |
|
| 4775 |
2020-10-26 Ville Voutilainen <[email protected]> |
| 4776 |
|
| 4777 |
* c-common.c (__is_nothrow_assignable): New. |
| 4778 |
(__is_nothrow_constructible): Likewise. |
| 4779 |
* c-common.h (RID_IS_NOTHROW_ASSIGNABLE): New. |
| 4780 |
(RID_IS_NOTHROW_CONSTRUCTIBLE): Likewise. |
| 4781 |
|
| 4782 |
2020-10-23 Jan Hubicka <[email protected]> |
| 4783 |
|
| 4784 |
* c-common.c (c_common_finalize_early_debug): Update for new thunk api. |
| 4785 |
|
| 4786 |
2020-10-23 Marek Polacek <[email protected]> |
| 4787 |
|
| 4788 |
PR c++/91741 |
| 4789 |
* c-common.c (verify_tree): Handle PAREN_SIZEOF_EXPR. |
| 4790 |
(c_common_init_ts): Likewise. |
| 4791 |
* c-common.def (PAREN_SIZEOF_EXPR): New tree code. |
| 4792 |
* c-common.h (maybe_warn_sizeof_array_div): Declare. |
| 4793 |
* c-warn.c (sizeof_pointer_memaccess_warning): Unwrap NOP_EXPRs. |
| 4794 |
(maybe_warn_sizeof_array_div): New function. |
| 4795 |
* c.opt (Wsizeof-array-div): New option. |
| 4796 |
|
| 4797 |
2020-10-23 Martin Sebor <[email protected]> |
| 4798 |
|
| 4799 |
PR c/97463 |
| 4800 |
* c-warn.c (warn_parm_ptrarray_mismatch): Move null test earlier. |
| 4801 |
|
| 4802 |
2020-10-22 Martin Liska <[email protected]> |
| 4803 |
|
| 4804 |
PR c/94722 |
| 4805 |
* c-attribs.c (handle_no_stack_protect_function_attribute): New. |
| 4806 |
(handle_stack_protect_attribute): Add error message for a |
| 4807 |
no_stack_protector function. |
| 4808 |
|
| 4809 |
2020-10-22 Martin Liska <[email protected]> |
| 4810 |
|
| 4811 |
* c-cppbuiltin.c (c_cpp_builtins): Use the stack_protector enum. |
| 4812 |
|
| 4813 |
2020-10-22 Jan Hubicka <[email protected]> |
| 4814 |
|
| 4815 |
* c-gimplify.c: Include tree-nested.h |
| 4816 |
(c_genericize): Update for new nested function info. |
| 4817 |
|
| 4818 |
2020-10-14 Martin Sebor <[email protected]> |
| 4819 |
|
| 4820 |
PR c/97413 |
| 4821 |
* c-attribs.c (build_attr_access_from_parms): Wrap chain of VLA |
| 4822 |
bounds in an extra list. |
| 4823 |
|
| 4824 |
2020-10-05 Richard Biener <[email protected]> |
| 4825 |
Jakub Jelinek <[email protected]> |
| 4826 |
|
| 4827 |
PR c++/97197 |
| 4828 |
* c-pretty-print.c: Include langhooks.h. |
| 4829 |
(c_pretty_printer::postfix_expression): Handle TARGET_MEM_REF as |
| 4830 |
expression. |
| 4831 |
(c_pretty_printer::expression): Handle TARGET_MEM_REF as |
| 4832 |
unary_expression. |
| 4833 |
(c_pretty_printer::unary_expression): Handle TARGET_MEM_REF. |
| 4834 |
|
| 4835 |
2020-09-30 Martin Sebor <[email protected]> |
| 4836 |
|
| 4837 |
PR middle-end/97189 |
| 4838 |
* c-attribs.c (append_access_attr): Use the function declaration |
| 4839 |
location for a warning about an attribute access argument. |
| 4840 |
|
| 4841 |
2020-09-29 Marek Polacek <[email protected]> |
| 4842 |
|
| 4843 |
PR c++/94695 |
| 4844 |
* c.opt (Wrange-loop-construct): New option. |
| 4845 |
|
| 4846 |
2020-09-23 Martin Sebor <[email protected]> |
| 4847 |
|
| 4848 |
PR c/97131 |
| 4849 |
* c-warn.c (warn_parm_ptrarray_mismatch): Handle more invalid input. |
| 4850 |
|
| 4851 |
2020-09-23 Marek Polacek <[email protected]> |
| 4852 |
|
| 4853 |
PR c/97125 |
| 4854 |
* c-gimplify.c (c_genericize): Only call do_warn_duplicated_branches_r |
| 4855 |
after loops and other structured control constructs have been lowered. |
| 4856 |
|
| 4857 |
2020-09-22 Jakub Jelinek <[email protected]> |
| 4858 |
|
| 4859 |
* c.opt (Wbuiltin-declaration-mismatch): Fix typo in variable name: |
| 4860 |
warn_builtin_declaraion_mismatch -> warn_builtin_declaration_mismatch. |
| 4861 |
|
| 4862 |
2020-09-21 Marek Polacek <[email protected]> |
| 4863 |
|
| 4864 |
* c.opt (Wctad-maybe-unsupported): New option. |
| 4865 |
|
| 4866 |
2020-09-19 Martin Sebor <[email protected]> |
| 4867 |
|
| 4868 |
PR c/50584 |
| 4869 |
* c-common.h (warn_parm_array_mismatch): Declare new function. |
| 4870 |
(has_attribute): Move declaration of an existing function. |
| 4871 |
(build_attr_access_from_parms): Declare new function. |
| 4872 |
* c-warn.c (parm_array_as_string): Define new function. |
| 4873 |
(plus_one): Define new function. |
| 4874 |
(warn_parm_ptrarray_mismatch): Define new function. |
| 4875 |
(warn_parm_array_mismatch): Define new function. |
| 4876 |
(vla_bound_parm_decl): New function. |
| 4877 |
* c.opt (-Warray-parameter, -Wvla-parameter): New options. |
| 4878 |
* c-pretty-print.c (pp_c_type_qualifier_list): Don't print array type |
| 4879 |
qualifiers here... |
| 4880 |
(c_pretty_printer::direct_abstract_declarator): ...but instead print |
| 4881 |
them in brackets here. Also print [static]. Strip extraneous |
| 4882 |
expressions from VLA bounds. |
| 4883 |
|
| 4884 |
2020-09-19 Martin Sebor <[email protected]> |
| 4885 |
|
| 4886 |
PR c/50584 |
| 4887 |
* c-attribs.c (c_common_attribute_table): Add "arg spec" attribute. |
| 4888 |
(handle_argspec_attribute): New function. |
| 4889 |
(get_argument, get_argument_type): New functions. |
| 4890 |
(append_access_attrs): Add overload. Handle internal attribute |
| 4891 |
representation in addition to external. |
| 4892 |
(handle_access_attribute): Handle internal attribute representation |
| 4893 |
in addition to external. |
| 4894 |
(build_attr_access_from_parms): New function. |
| 4895 |
|
| 4896 |
2020-09-19 Sandra Loosemore <[email protected]> |
| 4897 |
|
| 4898 |
* c-gimplify.c (genericize_c_loop): Rewrite to match |
| 4899 |
c_finish_loop in c-typeck.c. |
| 4900 |
|
| 4901 |
2020-09-19 Sandra Loosemore <[email protected]> |
| 4902 |
|
| 4903 |
* c-common.c (c_block_may_fallthrough): New, split from |
| 4904 |
cxx_block_may_fallthrough in the cp front end. |
| 4905 |
(c_common_init_ts): Move handling of loop and switch-related |
| 4906 |
statements here from the cp front end. |
| 4907 |
* c-common.def (FOR_STMT, WHILE_STMT, DO_STMT): Move here from |
| 4908 |
cp front end. |
| 4909 |
(BREAK_STMT, CONTINUE_STMT, SWITCH_STMT): Likewise. |
| 4910 |
* c-common.h (c_block_may_fallthru): Declare. |
| 4911 |
(bc_state_t): Move here from cp front end. |
| 4912 |
(save_bc_state, restore_bc_state): Declare. |
| 4913 |
(c_genericize_control_stmt): Declare. |
| 4914 |
(WHILE_COND, WHILE_BODY): Likewise. |
| 4915 |
(DO_COND, DO_BODY): Likewise. |
| 4916 |
(FOR_INIT_STMT, FOR_COND, FOR_EXPR, FOR_BODY, FOR_SCOPE): Likewise. |
| 4917 |
(SWITCH_STMT_COND, SWITCH_STMT_BODY): Likewise. |
| 4918 |
(SWITCH_STMT_TYPE, SWITCH_STMT_SCOPE): Likewise. |
| 4919 |
(SWITCH_STMT_ALL_CASES_P, SWITCH_STMT_NO_BREAK_P): Likewise. |
| 4920 |
(LABEL_DECL_BREAK, LABEL_DECL_CONTINUE): Likewise. |
| 4921 |
* c-dump.c (dump_stmt): Copy from cp front end. |
| 4922 |
(c_dump_tree): Move code to handle structured loop and switch |
| 4923 |
tree nodes here from cp front end. |
| 4924 |
* c-gimplify.c: Adjust includes. |
| 4925 |
(enum bc_t, bc_label, begin_bc_block, finish_bc_block): Move from |
| 4926 |
cp front end. |
| 4927 |
(save_bc_state, restore_bc_state): New functions using old code |
| 4928 |
from cp front end. |
| 4929 |
(get_bc_label, expr_loc_or_loc): Move from cp front end. |
| 4930 |
(genericize_c_loop): Move from cp front end. |
| 4931 |
(genericize_for_stmt, genericize_while_stmt): Likewise. |
| 4932 |
(genericize_do_stmt, genericize_switch_stmt): Likewise. |
| 4933 |
(genericize_continue_stmt, genericize_break_stmt): Likewise. |
| 4934 |
(genericize_omp_for_stmt): Likewise. |
| 4935 |
(c_genericize_control_stmt): New function using code split from |
| 4936 |
cp front end. |
| 4937 |
(c_genericize_control_r): New. |
| 4938 |
(c_genericize): Call walk_tree with c_genericize_control_r. |
| 4939 |
* c-pretty-print.c (c_pretty_printer::statement): Move code to handle |
| 4940 |
structured loop and switch tree nodes here from cp front end. |
| 4941 |
|
| 4942 |
2020-09-17 Patrick Palka <[email protected]> |
| 4943 |
|
| 4944 |
PR c/80076 |
| 4945 |
* c-indentation.c (should_warn_for_misleading_indentation): Move |
| 4946 |
declarations of local variables closer to their first use. |
| 4947 |
Handle virtual token locations by resolving them to their |
| 4948 |
respective macro expansion points. If all three tokens are |
| 4949 |
produced from the same macro expansion, then instead use their |
| 4950 |
loci within the macro definition. |
| 4951 |
|
| 4952 |
2020-09-16 Martin Sebor <[email protected]> |
| 4953 |
|
| 4954 |
PR c/78666 |
| 4955 |
PR c/96126 |
| 4956 |
* c-attribs.c (validate_attr_args): New function. |
| 4957 |
(validate_attr_arg): Same. |
| 4958 |
(handle_section_attribute): Call it. Introduce a local variable. |
| 4959 |
(handle_alloc_size_attribute): Same. |
| 4960 |
(handle_alloc_align_attribute): Same. |
| 4961 |
|
| 4962 |
2020-09-14 Jakub Jelinek <[email protected]> |
| 4963 |
|
| 4964 |
* c-attribs.c (handle_optimize_attribute): Adjust |
| 4965 |
cl_optimization_save, cl_optimization_restore and |
| 4966 |
build_optimization_node callers. |
| 4967 |
* c-pragma.c (handle_pragma_optimize): Adjust |
| 4968 |
build_optimization_node caller. |
| 4969 |
(handle_pragma_push_options): Adjust |
| 4970 |
build_optimization_node and build_target_option_node callers. |
| 4971 |
(handle_pragma_pop_options, handle_pragma_reset_options): |
| 4972 |
Adjust cl_optimization_restore callers. |
| 4973 |
|
| 4974 |
2020-08-28 Martin Sebor <[email protected]> |
| 4975 |
|
| 4976 |
* c.opt (Wstringop-overread): New option. |
| 4977 |
|
| 4978 |
2020-08-11 Jakub Jelinek <[email protected]> |
| 4979 |
|
| 4980 |
PR c/96545 |
| 4981 |
* c-common.c (get_atomic_generic_size): Require that first argument's |
| 4982 |
type points to a complete type and use tree_fits_uhwi_p instead of |
| 4983 |
just INTEGER_CST TREE_CODE check for the TYPE_SIZE_UNIT. |
| 4984 |
|
| 4985 |
2020-07-31 Martin Sebor <[email protected]> |
| 4986 |
|
| 4987 |
PR c++/96003 |
| 4988 |
* c-common.c (check_function_arguments_recurse): Return early when |
| 4989 |
no-warning bit is set. |
| 4990 |
|
| 4991 |
2020-07-31 Richard Biener <[email protected]> |
| 4992 |
|
| 4993 |
PR debug/96383 |
| 4994 |
* c-common.h (c_common_finalize_early_debug): Declare. |
| 4995 |
* c-common.c: Include debug.h. |
| 4996 |
(c_common_finalize_early_debug): finalize_early_debug langhook |
| 4997 |
implementation generating debug for extern declarations. |
| 4998 |
|
| 4999 |
2020-07-27 Nathan Sidwell <[email protected]> |
| 5000 |
|
| 5001 |
* c-common.c (try_to_locate_new_include_insertion_point): Use |
| 5002 |
strcmp, not pointer equality. |
| 5003 |
|
| 5004 |
2020-07-25 Martin Sebor <[email protected]> |
| 5005 |
|
| 5006 |
PR c++/96310 |
| 5007 |
* c-common.c (check_nonnull_arg): Print note only when warning was |
| 5008 |
issued. |
| 5009 |
|
| 5010 |
2020-07-22 Tobias Burnus <[email protected]> |
| 5011 |
|
| 5012 |
* c-omp.c (c_finish_omp_critical): Check for no name but |
| 5013 |
nonzero hint provided. |
| 5014 |
|
| 5015 |
2020-07-20 Jason Merrill <[email protected]> |
| 5016 |
|
| 5017 |
* c-cppbuiltin.c (c_cpp_builtins): Update |
| 5018 |
__cpp_nontype_template_args for C++20. |
| 5019 |
|
| 5020 |
2020-07-20 Martin Sebor <[email protected]> |
| 5021 |
|
| 5022 |
PR c/96249 |
| 5023 |
* c.opt: Remove stray text. |
| 5024 |
|
| 5025 |
2020-07-14 Lewis Hyatt <[email protected]> |
| 5026 |
|
| 5027 |
PR other/86904 |
| 5028 |
* c-indentation.c (should_warn_for_misleading_indentation): Get |
| 5029 |
global tabstop from the new source. |
| 5030 |
* c-opts.c (c_common_handle_option): Remove handling of -ftabstop, which |
| 5031 |
is now a common option. |
| 5032 |
* c.opt: Likewise. |
| 5033 |
|
| 5034 |
2020-07-08 Eric Botcazou <[email protected]> |
| 5035 |
|
| 5036 |
* c.opt (Wscalar-storage-order): Add explicit variable. |
| 5037 |
|
| 5038 |
2020-07-07 Nathan Sidwell <[email protected]> |
| 5039 |
|
| 5040 |
* c-opts.c (c_common_post_options): Add 'injecting' arg to |
| 5041 |
cpp_read_main_file. |
| 5042 |
(c_finish_options): Add linemap_line_start calls for builtin and cmd |
| 5043 |
maps. Force token position to line_table's highest line. |
| 5044 |
* c-ppoutput.c (print_line_1): Refactor, print line zero. |
| 5045 |
(cb_define): Always increment source line. |
| 5046 |
|
| 5047 |
2020-07-06 Martin Sebor <[email protected]> |
| 5048 |
|
| 5049 |
PR c++/95984 |
| 5050 |
* c-common.c (check_function_nonnull): Avoid checking syntesized calls |
| 5051 |
to stub lambda objects with null this pointer. |
| 5052 |
(check_nonnull_arg): Handle C++ nullptr. |
| 5053 |
|
| 5054 |
2020-07-02 Jason Merrill <[email protected]> |
| 5055 |
Jakub Jelinek <[email protected]> |
| 5056 |
|
| 5057 |
* c-cppbuiltin.c (c_cpp_builtins): Define __cpp_consteval. |
| 5058 |
|
| 5059 |
2020-06-30 Jakub Jelinek <[email protected]> |
| 5060 |
|
| 5061 |
PR c++/95963 |
| 5062 |
* c-common.c (check_function_arguments_recurse): Don't crash on |
| 5063 |
calls to internal functions. |
| 5064 |
|
| 5065 |
2020-06-28 Martin Sebor <[email protected]> |
| 5066 |
|
| 5067 |
PR c++/86568 |
| 5068 |
* c-common.c (struct nonnull_arg_ctx): Add members. |
| 5069 |
(check_function_nonnull): Use nonnull_arg_ctx as argument. Handle |
| 5070 |
C++ member functions specially. Consider the this pointer implicitly |
| 5071 |
nonnull. |
| 5072 |
(check_nonnull_arg): Use location of argument when available. |
| 5073 |
(check_function_arguments): Use nonnull_arg_ctx as argument. |
| 5074 |
|
| 5075 |
2020-06-27 Jakub Jelinek <[email protected]> |
| 5076 |
|
| 5077 |
PR middle-end/95903 |
| 5078 |
* c-common.c (pointer_int_sum): Use TYPE_OVERFLOW_UNDEFINED instead of |
| 5079 |
!TYPE_UNSIGNED check to see if we can apply distributive law and handle |
| 5080 |
smaller precision intop operands separately. |
| 5081 |
|
| 5082 |
2020-06-26 Marek Polacek <[email protected]> |
| 5083 |
|
| 5084 |
* c-opts.c (c_common_init_options): Default to gnu++17. |
| 5085 |
|
| 5086 |
2020-06-17 Jonathan Wakely <[email protected]> |
| 5087 |
|
| 5088 |
PR c/95378 |
| 5089 |
* c-common.c (get_atomic_generic_size): Check cv-qualifiers in |
| 5090 |
pointer arguments. |
| 5091 |
|
| 5092 |
2020-06-16 Jakub Jelinek <[email protected]> |
| 5093 |
|
| 5094 |
* c-common.h (c_omp_check_loop_iv_exprs): Add an int argument. |
| 5095 |
* c-omp.c (struct c_omp_check_loop_iv_data): Add maybe_nonrect and |
| 5096 |
idx members. |
| 5097 |
(c_omp_is_loop_iterator): New function. |
| 5098 |
(c_omp_check_loop_iv_r): Use it. Add support for silent scanning |
| 5099 |
if outer loop iterator is present. Perform duplicate checking through |
| 5100 |
hash_set in the function rather than expecting caller to do that. |
| 5101 |
Pass NULL instead of d->ppset to walk_tree_1. |
| 5102 |
(c_omp_check_nonrect_loop_iv): New function. |
| 5103 |
(c_omp_check_loop_iv): Use it. Fill in new members, allow |
| 5104 |
non-rectangular loop forms, diagnose multiple associated loops with |
| 5105 |
the same iterator. Pass NULL instead of &pset to walk_tree_1. |
| 5106 |
(c_omp_check_loop_iv_exprs): Likewise. |
| 5107 |
|
| 5108 |
2020-06-10 Martin Liska <[email protected]> |
| 5109 |
|
| 5110 |
PR tree-optimization/92860 |
| 5111 |
* c-attribs.c (handle_optimize_attribute): |
| 5112 |
Save global options and compare it after parsing of function |
| 5113 |
attribute. |
| 5114 |
* c-pragma.c (opt_stack::saved_global_options): New field. |
| 5115 |
(handle_pragma_push_options): Save global_options. |
| 5116 |
(handle_pragma_pop_options): Compare them after pop. |
| 5117 |
|
| 5118 |
2020-06-09 Jakub Jelinek <[email protected]> |
| 5119 |
|
| 5120 |
PR c/95580 |
| 5121 |
* c-pretty-print.c (c_pretty_printer::unary_expression): Handle the |
| 5122 |
case when MEM_REF's first argument has type pointer to incomplete type. |
| 5123 |
|
| 5124 |
2020-06-05 Jason Merrill <[email protected]> |
| 5125 |
|
| 5126 |
* c-pretty-print.c (pp_c_additive_expression): Handle negative |
| 5127 |
operand to POINTER_PLUS_EXPR. |
| 5128 |
|
| 5129 |
2020-06-04 Martin Sebor <[email protected]> |
| 5130 |
|
| 5131 |
PR middle-end/10138 |
| 5132 |
PR middle-end/95136 |
| 5133 |
* c-attribs.c (append_access_attrs): Handle attr_access::none. |
| 5134 |
(handle_access_attribute): Same. |
| 5135 |
|
| 5136 |
2020-06-03 Mark Wielaard <[email protected]> |
| 5137 |
|
| 5138 |
* known-headers.cc (get_cp_stdlib_header_for_string_macro_name): |
| 5139 |
New function. |
| 5140 |
* known-headers.h (get_cp_stdlib_header_for_string_macro_name): |
| 5141 |
New function declaration. |
| 5142 |
|
| 5143 |
2020-06-03 Mark Wielaard <[email protected]> |
| 5144 |
|
| 5145 |
* known-headers.cc (get_string_macro_hint): New function. |
| 5146 |
(get_stdlib_header_for_name): Use get_string_macro_hint. |
| 5147 |
(get_c_stdlib_header_for_string_macro_name): New function. |
| 5148 |
* known-headers.h (get_c_stdlib_header_for_string_macro_name): |
| 5149 |
New function declaration. |
| 5150 |
|
| 5151 |
2020-06-03 Tobias Burnus <[email protected]> |
| 5152 |
|
| 5153 |
* c-common.h (c_omp_predetermined_mapping): Declare. |
| 5154 |
* c-omp.c (c_omp_predetermined_mapping): New. |
| 5155 |
|
| 5156 |
2020-05-22 Mark Wielaard <[email protected]> |
| 5157 |
|
| 5158 |
* known-headers.cc (get_stdlib_header_for_name): Add a new |
| 5159 |
stdlib_hint array for stdbool and stdint. |
| 5160 |
|
| 5161 |
2020-05-22 Mark Wielaard <[email protected]> |
| 5162 |
|
| 5163 |
* known-headers.cc (get_stdlib_header_for_name): Return |
| 5164 |
"<stdbool.h>" for "bool", "true" or "false" when STDLIB_C and |
| 5165 |
flag_isoc99. |
| 5166 |
|
| 5167 |
2020-05-20 Nathan Sidwell <[email protected]> |
| 5168 |
|
| 5169 |
* c-common.c (try_to_locate_new_include_insertion_point): Revert change. |
| 5170 |
|
| 5171 |
* c-common.c (try_to_locate_new_include_insertion_point): Use |
| 5172 |
strcmp to compare filenames. |
| 5173 |
* c-lex.c (init_c_lex): Move declaration to initialization. |
| 5174 |
* c-opts.c (handle_deferred_opts): Move cpp_get_deps call into |
| 5175 |
deferred count loop. |
| 5176 |
|
| 5177 |
2020-05-15 Jason Merrill <[email protected]> |
| 5178 |
|
| 5179 |
* c-opts.c (set_std_cxx20): Set flag_coroutines. |
| 5180 |
|
| 5181 |
2020-05-13 Jason Merrill <[email protected]> |
| 5182 |
|
| 5183 |
* c.opt (std=c++20): Make c++2a the alias. |
| 5184 |
(std=gnu++20): Likewise. |
| 5185 |
* c-common.h (cxx_dialect): Change cxx2a to cxx20. |
| 5186 |
* c-opts.c: Adjust. |
| 5187 |
* c-cppbuiltin.c: Adjust. |
| 5188 |
* c-ubsan.c: Adjust. |
| 5189 |
* c-warn.c: Adjust. |
| 5190 |
|
| 5191 |
2020-05-12 Eric Botcazou <[email protected]> |
| 5192 |
|
| 5193 |
* c-ada-spec.c (dump_ads): Output pragma Warnings ("U"); on entry. |
| 5194 |
|
| 5195 |
2020-05-08 Nathan Sidwell <[email protected]> |
| 5196 |
|
| 5197 |
Reimplement directives only processing. |
| 5198 |
* c-ppoutput.c (token_streamer): Ne. |
| 5199 |
(directives_only_cb): New. Swallow ... |
| 5200 |
(print_lines_directives_only): ... this. |
| 5201 |
(scan_translation_unit_directives_only): Reimplment using the |
| 5202 |
published interface. |
| 5203 |
|
| 5204 |
2020-05-07 Marek Polacek <[email protected]> |
| 5205 |
|
| 5206 |
* c-format.c (badwords): Add "nonstatic". |
| 5207 |
|
| 5208 |
202-05-07 Jakub Jelinek <[email protected]> |
| 5209 |
|
| 5210 |
PR c/94968 |
| 5211 |
* c-common.c (speculation_safe_value_resolve_params): Return false if |
| 5212 |
error_operand_p (val2). |
| 5213 |
(resolve_overloaded_builtin) <case BUILT_IN_SPECULATION_SAFE_VALUE_N>: |
| 5214 |
Remove extraneous semicolon. |
| 5215 |
|
| 5216 |
2020-05-06 qing zhao <[email protected]> |
| 5217 |
|
| 5218 |
PR c/94230 |
| 5219 |
* c-indentation.c (get_visual_column): Add a hint to use the new |
| 5220 |
-flarge-source-files option. |
| 5221 |
|
| 5222 |
2020-05-05 Stefan Schulze Frielinghaus <[email protected]> |
| 5223 |
|
| 5224 |
* c-attribs.c (handle_vector_size_attribute): Add attribute |
| 5225 |
nonnull for argument args in order to silence warning of |
| 5226 |
uninitialized variable usage. Since this is local to the |
| 5227 |
compilation unit and thus cannot be checked at call sides by the |
| 5228 |
compiler, added an assert statement in order to verify this. |
| 5229 |
|
| 5230 |
2020-05-01 H.J. Lu <[email protected]> |
| 5231 |
|
| 5232 |
PR target/93492 |
| 5233 |
* c-attribs.c (handle_patchable_function_entry_attribute): Limit |
| 5234 |
value to USHRT_MAX (65535). |
| 5235 |
|
| 5236 |
2020-04-29 Jakub Jelinek <[email protected]> |
| 5237 |
|
| 5238 |
* c-format.c (PP_FORMAT_CHAR_TABLE): Add %{ and %}. |
| 5239 |
|
| 5240 |
2020-04-27 Jakub Jelinek <[email protected]> |
| 5241 |
|
| 5242 |
PR c/94755 |
| 5243 |
* c-common.c (resolve_overloaded_builtin): Return error_mark_node for |
| 5244 |
fncode == BUILT_IN_NONE before initialization of first_param. |
| 5245 |
|
| 5246 |
2020-04-23 Marek Polacek <[email protected]> |
| 5247 |
|
| 5248 |
PR c++/94733 |
| 5249 |
* c-attribs.c (find_tm_attribute): Use get_attribute_name instead of |
| 5250 |
TREE_PURPOSE. |
| 5251 |
|
| 5252 |
2020-04-14 Patrick Palka <[email protected]> |
| 5253 |
|
| 5254 |
PR c++/85278 |
| 5255 |
* c-pretty-print.c (pp_c_pointer) <case REFERENCE_TYPE>: Print a double |
| 5256 |
ampersand if it's an rvalue reference type. |
| 5257 |
|
| 5258 |
2020-04-13 Martin Sebor <[email protected]> |
| 5259 |
|
| 5260 |
PR c/92326 |
| 5261 |
* c-pretty-print.c (c_pretty_printer::direct_abstract_declarator): Avoid |
| 5262 |
printing array bound for flexible array members. |
| 5263 |
|
| 5264 |
2020-04-13 Iain Sandoe <[email protected]> |
| 5265 |
|
| 5266 |
* c-cppbuiltin.c (c_cpp_builtins): Update coroutines builtin |
| 5267 |
define, per n4861. |
| 5268 |
|
| 5269 |
2020-04-02 Richard Biener <[email protected]> |
| 5270 |
|
| 5271 |
PR c/94392 |
| 5272 |
* c-opts.c (c_common_post_options): Enable -ffinite-loops |
| 5273 |
for -O2 and C++11 or newer. |
| 5274 |
|
| 5275 |
2020-03-28 Patrick Palka <[email protected]> |
| 5276 |
|
| 5277 |
* c.opt: Add -fconcepts-diagnostics-depth. |
| 5278 |
|
| 5279 |
2020-03-27 Martin Sebor <[email protected]> |
| 5280 |
|
| 5281 |
PR c++/94346 |
| 5282 |
* c-attribs.c (handle_copy_attribute): Avoid passing expressions |
| 5283 |
to decl_attributes. Make handling of different kinds of entities |
| 5284 |
more robust. |
| 5285 |
|
| 5286 |
2020-03-27 Martin Sebor <[email protected]> |
| 5287 |
|
| 5288 |
PR c++/94098 |
| 5289 |
* c-attribs.c (handle_access_attribute): Avoid setting TYPE_ATTRIBUTES |
| 5290 |
here. |
| 5291 |
|
| 5292 |
2020-03-23 Jakub Jelinek <[email protected]> |
| 5293 |
|
| 5294 |
PR c++/91993 |
| 5295 |
* c-warn.c (warnings_for_convert_and_check): For expr and/or |
| 5296 |
result being COMPOUND_EXPRs, skip to ultimate rhs. |
| 5297 |
|
| 5298 |
2020-03-20 Richard Sandiford <[email protected]> |
| 5299 |
|
| 5300 |
PR middle-end/94072 |
| 5301 |
* c-common.c (c_common_type_for_mode): Before using a registered |
| 5302 |
built-in type, check that the vectorness of the type matches |
| 5303 |
the vectorness of the mode. |
| 5304 |
|
| 5305 |
2020-03-17 Jakub Jelinek <[email protected]> |
| 5306 |
|
| 5307 |
* c-common.c (resolve_overloaded_builtin): Fix up duplicated word |
| 5308 |
issue in a diagnostic message. |
| 5309 |
|
| 5310 |
2020-03-15 Lewis Hyatt <[email protected]> |
| 5311 |
|
| 5312 |
* c.opt: Avoid redundancy in the help text. |
| 5313 |
|
| 5314 |
2020-03-02 Marek Polacek <[email protected]> |
| 5315 |
|
| 5316 |
PR c++/93958 - add missing -std=gnu++20. |
| 5317 |
* c.opt: Add -std=gnu++20. |
| 5318 |
|
| 5319 |
2020-03-01 Martin Sebor <[email protected]> |
| 5320 |
|
| 5321 |
PR c++/92721 |
| 5322 |
* c-attribs.c (append_access_attrs): Correctly handle attribute. |
| 5323 |
(handle_access_attribute): Same. |
| 5324 |
|
| 5325 |
2020-02-25 Jakub Jelinek <[email protected]> |
| 5326 |
|
| 5327 |
PR c/93858 |
| 5328 |
* c-pragma.c (handle_pragma_diagnostic): Add missing ? after |
| 5329 |
"did you mean" hint in diagnostics. |
| 5330 |
|
| 5331 |
2020-02-15 Jason Merrill <[email protected]> |
| 5332 |
|
| 5333 |
* c.opt: Add -std=c++20. |
| 5334 |
|
| 5335 |
2020-02-14 Eric Botcazou <[email protected]> |
| 5336 |
|
| 5337 |
* c-ada-spec.c: Include bitmap.h. |
| 5338 |
(dump_ada_double_name): Rename into... |
| 5339 |
(dump_anonymous_type_name): ...this. Always use the TYPE_UID. |
| 5340 |
(dump_ada_array_type): Adjust to above renaming. Robustify. |
| 5341 |
(dump_nested_types_1): New function copied from... Add dumped_types |
| 5342 |
parameter and pass it down to dump_nested_type. |
| 5343 |
(dump_nested_types): ...this. Remove parent parameter. Just call |
| 5344 |
dump_nested_types_1 on an automatic bitmap. |
| 5345 |
(dump_nested_type): Add dumped_types parameter. |
| 5346 |
<ARRAY_TYPE>: Do not dump it if already present in dumped_types. |
| 5347 |
Adjust recursive calls and adjust to above renaming. |
| 5348 |
(dump_ada_declaration): Adjust call to dump_nested_types. |
| 5349 |
Tidy up and adjust to above renaming. |
| 5350 |
(dump_ada_specs): Initialize and release bitmap obstack. |
| 5351 |
|
| 5352 |
2020-02-10 Martin Sebor <[email protected]> |
| 5353 |
|
| 5354 |
PR c/93640 |
| 5355 |
* c-attribs.c (handle_access_attribute): Correct off-by-one mistakes. |
| 5356 |
|
| 5357 |
2020-02-10 Jakub Jelinek <[email protected]> |
| 5358 |
|
| 5359 |
PR other/93641 |
| 5360 |
* c-format.c (check_plain): Fix up last argument of strncasecmp. |
| 5361 |
Remove useless extra test. |
| 5362 |
|
| 5363 |
2020-02-03 Julian Brown <[email protected]> |
| 5364 |
Tobias Burnus <[email protected]> |
| 5365 |
|
| 5366 |
* c-cppbuiltin.c (c_cpp_builtins): Update _OPENACC define to 201711. |
| 5367 |
|
| 5368 |
2020-01-29 Jason Merrill <[email protected]> |
| 5369 |
|
| 5370 |
PR c++/89357 |
| 5371 |
* c-attribs.c (check_cxx_fundamental_alignment_constraints): Remove. |
| 5372 |
|
| 5373 |
2020-01-23 Jason Merrill <[email protected]> |
| 5374 |
|
| 5375 |
* c-warn.c (conversion_warning): Change -Wsign-conversion handling. |
| 5376 |
|
| 5377 |
2020-01-23 Martin Sebor <[email protected]> |
| 5378 |
|
| 5379 |
PR c/84919 |
| 5380 |
* c-common.c (check_function_arguments): Avoid overlap checking |
| 5381 |
of sprintf functions. |
| 5382 |
|
| 5383 |
2020-01-22 Jason Merrill <[email protected]> |
| 5384 |
|
| 5385 |
PR testsuite/93391 - PR 40752 test fails with unsigned plain char. |
| 5386 |
PR c++/40752 |
| 5387 |
* c-warn.c (conversion_warning): Check operands only after checking |
| 5388 |
the whole expression. Don't check second operand of + for sign. |
| 5389 |
|
| 5390 |
2020-01-21 Jason Merrill <[email protected]> |
| 5391 |
Manuel López-Ibáñez <[email protected]> |
| 5392 |
|
| 5393 |
PR c++/40752 - useless -Wconversion with short +=. |
| 5394 |
* c.opt (-Warith-conversion): New. |
| 5395 |
* c-warn.c (conversion_warning): Recurse for operands of |
| 5396 |
operators. Only warn about the whole expression with |
| 5397 |
-Warith-conversion. |
| 5398 |
|
| 5399 |
2020-01-21 Jason Merrill <[email protected]> |
| 5400 |
|
| 5401 |
* c-common.c (unsafe_conversion_p): Don't warn, return UNSAFE_SIGN. |
| 5402 |
* c-warn.c (conversion_warning): Warn about UNSAFE_SIGN. |
| 5403 |
|
| 5404 |
2020-01-20 Nathan Sidwell <[email protected]> |
| 5405 |
|
| 5406 |
PR preprocessor/80005 |
| 5407 |
* c-cppbuiltins.c (c_cpp_builtins): Don't define __has_include{,_next}. |
| 5408 |
|
| 5409 |
2020-01-18 Iain Sandoe <[email protected]> |
| 5410 |
|
| 5411 |
* c-common.c (co_await, co_yield, co_return): New. |
| 5412 |
* c-common.h (RID_CO_AWAIT, RID_CO_YIELD, |
| 5413 |
RID_CO_RETURN): New enumeration values. |
| 5414 |
(D_CXX_COROUTINES): Bit to identify coroutines are active. |
| 5415 |
(D_CXX_COROUTINES_FLAGS): Guard for coroutine keywords. |
| 5416 |
* c-cppbuiltin.c (__cpp_coroutines): New cpp define. |
| 5417 |
* c.opt (fcoroutines): New command-line switch. |
| 5418 |
|
| 5419 |
2020-01-10 David Malcolm <[email protected]> |
| 5420 |
|
| 5421 |
* c-format.c (local_event_ptr_node): New. |
| 5422 |
(PP_FORMAT_CHAR_TABLE): Add entry for "%@". |
| 5423 |
(init_dynamic_diag_info): Initialize local_event_ptr_node. |
| 5424 |
* c-format.h (T_EVENT_PTR): New define. |
| 5425 |
|
| 5426 |
2020-01-10 Martin Sebor <[email protected]> |
| 5427 |
|
| 5428 |
PR c/93132 |
| 5429 |
* c-attribs.c (append_access_attrs): Validate against the translated |
| 5430 |
access string rather than the human-readable representation. |
| 5431 |
|
| 5432 |
2020-01-01 Jakub Jelinek <[email protected]> |
| 5433 |
|
| 5434 |
Update copyright years. |
| 5435 |
|
| 5436 |
2019-12-20 Eric Botcazou <[email protected]> |
| 5437 |
|
| 5438 |
* c-ada-spec.h (decl_sloc): Delete. |
| 5439 |
* c-ada-spec.c (decl_sloc): Make static. |
| 5440 |
|
| 5441 |
2019-12-19 Julian Brown <[email protected]> |
| 5442 |
|
| 5443 |
* c-common.h (c_omp_map_clause_name): Add prototype. |
| 5444 |
* c-omp.c (c_omp_map_clause_name): New function. |
| 5445 |
* c-pragma.h (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ATTACH and |
| 5446 |
PRAGMA_OACC_CLAUSE_DETACH. |
| 5447 |
|
| 5448 |
2019-12-19 Julian Brown <[email protected]> |
| 5449 |
Maciej W. Rozycki <[email protected]> |
| 5450 |
Tobias Burnus <[email protected]> |
| 5451 |
Thomas Schwinge <[email protected]> |
| 5452 |
|
| 5453 |
* c-pragma.h (pragma_omp_clause): Add |
| 5454 |
PRAGMA_OACC_CLAUSE_NO_CREATE. |
| 5455 |
|
| 5456 |
2019-12-17 Martin Sebor <[email protected]> |
| 5457 |
|
| 5458 |
PR c++/61339 |
| 5459 |
* c.opt (-Wmismatched-tags, -Wredundant-tags): New options. |
| 5460 |
|
| 5461 |
2019-12-11 David Malcolm <[email protected]> |
| 5462 |
|
| 5463 |
* c-pretty-print.c (c_pretty_printer::clone): New vfunc |
| 5464 |
implementation. |
| 5465 |
* c-pretty-print.h (c_pretty_printer::clone): New vfunc decl. |
| 5466 |
|
| 5467 |
2019-12-09 David Malcolm <[email protected]> |
| 5468 |
|
| 5469 |
* c-format.c (range_label_for_format_type_mismatch::get_text): |
| 5470 |
Replace label_text ctor called with true with label_text::take. |
| 5471 |
|
| 5472 |
2019-12-09 David Malcolm <[email protected]> |
| 5473 |
|
| 5474 |
* c-format.c (selftest::test_type_mismatch_range_labels): Remove |
| 5475 |
initial newline from expected outputs. |
| 5476 |
* c-opts.c (c_diagnostic_finalizer): Add pp_newline call before |
| 5477 |
call to diagnostic_show_locus. |
| 5478 |
|
| 5479 |
2019-12-06 Jakub Jelinek <[email protected]> |
| 5480 |
|
| 5481 |
* c-cppbuiltin.c (c_cpp_builtins): Don't define __cpp_consteval for |
| 5482 |
now. |
| 5483 |
|
| 5484 |
2019-12-05 Marek Polacek <[email protected]> |
| 5485 |
Jakub Jelinek <[email protected]> |
| 5486 |
|
| 5487 |
PR c++/91353 - P1331R2: Allow trivial default init in constexpr contexts. |
| 5488 |
* c-cppbuiltin.c (c_cpp_builtins): Adjust the value of __cpp_constexpr. |
| 5489 |
|
| 5490 |
2019-12-05 Marek Polacek <[email protected]> |
| 5491 |
|
| 5492 |
PR c++/92271 - make __is_same alias for __is_same_as. |
| 5493 |
* c-common.c: Add __is_same, an alias for __is_same_as. |
| 5494 |
|
| 5495 |
2019-12-03 Marek Polacek <[email protected]> |
| 5496 |
|
| 5497 |
PR c++/91363 - P0960R3: Parenthesized initialization of aggregates. |
| 5498 |
* c-cppbuiltin.c (c_cpp_builtins): Predefine |
| 5499 |
__cpp_aggregate_paren_init=201902 for -std=c++2a. |
| 5500 |
|
| 5501 |
2019-11-30 Jan Hubicka <[email protected]> |
| 5502 |
|
| 5503 |
* c-attribs.c (handle_symver_attribute): New function |
| 5504 |
(c_common_attributes): Add symver. |
| 5505 |
|
| 5506 |
2019-11-30 Richard Sandiford <[email protected]> |
| 5507 |
|
| 5508 |
* c-common.c (pointer_int_sum): Use verify_type_context to check |
| 5509 |
whether the target allows pointer arithmetic for the types involved. |
| 5510 |
(c_sizeof_or_alignof_type, c_alignof_expr): Use verify_type_context |
| 5511 |
to check whether the target allows sizeof and alignof operations |
| 5512 |
for the types involved. |
| 5513 |
|
| 5514 |
2019-11-27 Jason Merrill <[email protected]> |
| 5515 |
|
| 5516 |
* c-cppbuiltin.c (c_cpp_builtins): Update __cpp_deduction_guides. |
| 5517 |
|
| 5518 |
2019-11-26 Jakub Jelinek <[email protected]> |
| 5519 |
|
| 5520 |
PR c++/61414 |
| 5521 |
* c-attribs.c (handle_mode_attribute): Add mode attribute to |
| 5522 |
ENUMERAL_TYPEs. |
| 5523 |
|
| 5524 |
2019-11-25 Joseph Myers <[email protected]> |
| 5525 |
|
| 5526 |
PR c/91985 |
| 5527 |
* c-common.c (c_common_type_for_mode): Handle decimal |
| 5528 |
floating-point types being NULL_TREE. |
| 5529 |
* c-format.c (get_format_for_type_1): Handle specified types being |
| 5530 |
NULL_TREE. |
| 5531 |
* c-lex.c (interpret_float): Give an error for decimal |
| 5532 |
floating-point constants when decimal floating-point not |
| 5533 |
supported. |
| 5534 |
|
| 5535 |
2019-11-23 Jakub Jelinek <[email protected]> |
| 5536 |
|
| 5537 |
PR middle-end/83859 |
| 5538 |
* c-attribs.c (append_access_attrs): Avoid buffer overflow. Avoid |
| 5539 |
memory leak. Use XNEWVEC macro. Use auto_diagnostic_group to |
| 5540 |
group warning with inform together. |
| 5541 |
(handle_access_attribute): Formatting fix. |
| 5542 |
|
| 5543 |
2019-11-22 Jakub Jelinek <[email protected]> |
| 5544 |
|
| 5545 |
PR c/90677 |
| 5546 |
* c-common.h (identifier_global_tag): Declare. |
| 5547 |
* c-format.c (get_pointer_to_named_type): Renamed to ... |
| 5548 |
(get_named_type): ... this. Use identifier_global_tag instead of |
| 5549 |
identifier_global_value, handle the return value being a TYPE_P. |
| 5550 |
(init_dynamic_diag_info): Adjust get_pointer_to_named_type callers |
| 5551 |
to call get_named_type instead. Formatting fixes. |
| 5552 |
|
| 5553 |
Implement P1902R1, Missing feature-test macros 2017-2019. |
| 5554 |
* c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_init_captures |
| 5555 |
and __cpp_generic_lambdas for -std=c++2a. Define |
| 5556 |
__cpp_designated_initializers, __cpp_constexpr_in_decltype and |
| 5557 |
__cpp_consteval for -std=c++2a. Remove a FIXME comment about |
| 5558 |
__cpp_concepts for -std=c++2a. |
| 5559 |
|
| 5560 |
2019-11-22 Martin Sebor <[email protected]> |
| 5561 |
|
| 5562 |
PR middle-end/83859 |
| 5563 |
* c-attribs.c (handle_access_attribute): New function. |
| 5564 |
(c_common_attribute_table): Add new attribute. |
| 5565 |
(get_argument_type): New function. |
| 5566 |
(append_access_attrs): New function. |
| 5567 |
(get_nonnull_operand): Rename... |
| 5568 |
(get_attribute_operand): ...to this. |
| 5569 |
* c-common.c (get_nonnull_operand): Rename... |
| 5570 |
(get_attribute_operand): ...to this. |
| 5571 |
|
| 5572 |
2019-11-21 Joseph Myers <[email protected]> |
| 5573 |
|
| 5574 |
* c-attribs.c (handle_fallthrough_attribute): Use pedwarn instead |
| 5575 |
of warning. |
| 5576 |
|
| 5577 |
2019-11-19 Joseph Myers <[email protected]> |
| 5578 |
|
| 5579 |
* c-common.c (attribute_fallthrough_p): In C, use pedwarn not |
| 5580 |
warning for standard attributes mixed with fallthrough attributes. |
| 5581 |
|
| 5582 |
2019-11-15 Joseph Myers <[email protected]> |
| 5583 |
|
| 5584 |
* c-attribs.c (handle_fallthrough_attribute): Remove static. |
| 5585 |
* c-common.h (handle_fallthrough_attribute): Declare. |
| 5586 |
|
| 5587 |
2019-11-15 Joseph Myers <[email protected]> |
| 5588 |
|
| 5589 |
* c-attribs.c (handle_deprecated_attribute): Remove static. |
| 5590 |
* c-common.h (handle_deprecated_attribute): Declare. |
| 5591 |
|
| 5592 |
2019-11-14 Joseph Myers <[email protected]> |
| 5593 |
|
| 5594 |
* c-lex.c (lex_charconst): Make CPP_UTF8CHAR constants unsigned |
| 5595 |
char for C. |
| 5596 |
|
| 5597 |
2019-11-14 Jakub Jelinek <[email protected]> |
| 5598 |
|
| 5599 |
* c-omp.c (c_omp_check_context_selector): Add nvidia to the list of |
| 5600 |
valid vendors. |
| 5601 |
|
| 5602 |
* c-omp.c (c_omp_check_context_selector): Handle name lists |
| 5603 |
containing string literals. Don't diagnose atomic_default_mem_order |
| 5604 |
with multiple props. |
| 5605 |
|
| 5606 |
2019-11-13 Joseph Myers <[email protected]> |
| 5607 |
|
| 5608 |
* c-cppbuiltin.c (builtin_define_float_constants): Also define |
| 5609 |
NORM_MAX constants. Update call to get_max_float. |
| 5610 |
(LAZY_HEX_FP_VALUES_CNT): Update value to include NORM_MAX |
| 5611 |
constants. |
| 5612 |
|
| 5613 |
2019-11-13 Eric Botcazou <[email protected]> |
| 5614 |
|
| 5615 |
* c-ada-spec.c (get_underlying_decl): Do not look through typedefs. |
| 5616 |
(dump_forward_type): Do not generate a declaration for function types. |
| 5617 |
(dump_nested_type) <ARRAY_TYPE>: Do not generate a nested declaration |
| 5618 |
of the component type if it is declared in another file. |
| 5619 |
|
| 5620 |
2019-11-12 Martin Liska <[email protected]> |
| 5621 |
|
| 5622 |
* c-opts.c (c_common_post_options): |
| 5623 |
Use SET_OPTION_IF_UNSET. |
| 5624 |
|
| 5625 |
2019-11-12 Maciej W. Rozycki <[email protected]> |
| 5626 |
Frederik Harwath <[email protected]> |
| 5627 |
|
| 5628 |
gcc/c-family/ |
| 5629 |
* c-pragma.h (pragma_kind): Add PRAGMA_OACC_SERIAL enumeration |
| 5630 |
constant. |
| 5631 |
* c-pragma.c (oacc_pragmas): Add "serial" entry. |
| 5632 |
|
| 5633 |
2019-11-08 Richard Sandiford <[email protected]> |
| 5634 |
|
| 5635 |
* c-common.h (gnu_vector_type_p): New function. |
| 5636 |
* c-common.c (c_build_vec_perm_expr): Require __builtin_shuffle |
| 5637 |
vectors to satisfy gnu_vector_type_p. |
| 5638 |
(c_build_vec_convert): Likewise __builtin_convertvector. |
| 5639 |
(convert_vector_to_array_for_subscript): Likewise when applying |
| 5640 |
implicit vector to array conversion. |
| 5641 |
(scalar_to_vector): Likewise when converting vector-scalar |
| 5642 |
operations to vector-vector operations. |
| 5643 |
|
| 5644 |
2019-11-08 Joseph Myers <[email protected]> |
| 5645 |
|
| 5646 |
* c.opt (Wold-style-definition): Initialize to -1. |
| 5647 |
* c-opts.c (c_common_post_options): Set warn_old_style_definition |
| 5648 |
to flag_isoc2x if not set explicitly. |
| 5649 |
|
| 5650 |
2019-11-07 Joseph Myers <[email protected]> |
| 5651 |
|
| 5652 |
* c-attribs.c (parse_tm_stmt_attr): Handle scoped attributes. |
| 5653 |
|
| 5654 |
2019-11-05 Jason Merrill <[email protected]> |
| 5655 |
|
| 5656 |
* c-opts.c (c_common_post_options): -fconcepts-ts implies |
| 5657 |
-fconcepts. |
| 5658 |
|
| 5659 |
2019-11-04 Kamlesh Kumar <[email protected]> |
| 5660 |
|
| 5661 |
* c-opts.c (c_common_post_options): Update |
| 5662 |
latest_abi_version. |
| 5663 |
|
| 5664 |
2019-11-02 Jakub Jelinek <[email protected]> |
| 5665 |
|
| 5666 |
* c-common.h (c_omp_get_context_selector): Remove. |
| 5667 |
* c-omp.c (c_omp_get_context_selector): Moved to omp-general.c |
| 5668 |
and renamed to omp_get_context_selector. |
| 5669 |
|
| 5670 |
* c-omp.c (c_omp_mark_declare_variant): Use |
| 5671 |
omp_context_selector_set_compare. |
| 5672 |
|
| 5673 |
PR c++/88335 - Implement P1073R3: Immediate functions |
| 5674 |
* c-common.h (enum rid): Add RID_CONSTEVAL. |
| 5675 |
* c-common.c (c_common_reswords): Add consteval. |
| 5676 |
|
| 5677 |
2019-11-01 Martin Sebor <[email protected]> |
| 5678 |
|
| 5679 |
PR middle-end/91679 |
| 5680 |
PR middle-end/91647 |
| 5681 |
PR middle-end/91463 |
| 5682 |
PR middle-end/92312 |
| 5683 |
* c-pretty-print.c (direct_abstract_declarator): Print |
| 5684 |
bound in zero-length arrays. |
| 5685 |
* c.opt (-Wzero-length-bounds): New option. |
| 5686 |
|
| 5687 |
2019-10-30 Nathan Sidwell <[email protected]> |
| 5688 |
|
| 5689 |
* c-cppbuiltin.c (c_cpp_builtins): Add 'L' suffix to feature |
| 5690 |
macros. |
| 5691 |
|
| 5692 |
2019-10-28 Martin Sebor <[email protected]> |
| 5693 |
|
| 5694 |
PR c/66970 |
| 5695 |
* c-common.c (c_common_nodes_and_builtins): Call c_define_builtins |
| 5696 |
even when only preprocessing. |
| 5697 |
* c-common.h (names_builtin_p): Declare new function. |
| 5698 |
* c-lex.c (init_c_lex): Set has_builtin. |
| 5699 |
(c_common_has_builtin): Define a new function. |
| 5700 |
* c-ppoutput.c (init_pp_output): Set has_builtin. |
| 5701 |
|
| 5702 |
2019-10-24 Jakub Jelinek <[email protected]> |
| 5703 |
|
| 5704 |
* c-common.h (c_omp_context_selector_matches): Remove. |
| 5705 |
* c-omp.c (c_omp_context_selector_matches): Remove. |
| 5706 |
* c-attribs.c (c_common_attribute_table): Add |
| 5707 |
"omp declare target {host,nohost,block}" attributes. |
| 5708 |
|
| 5709 |
2019-10-17 JeanHeyd Meneide <[email protected]> |
| 5710 |
|
| 5711 |
* c-lex.c (c_common_has_attribute): Update nodiscard value. |
| 5712 |
|
| 5713 |
2019-10-14 Richard Sandiford <[email protected]> |
| 5714 |
|
| 5715 |
* c-common.h (user_facing_original_type_p): Declare. |
| 5716 |
* c-common.c: Include c-spellcheck.h. |
| 5717 |
(user_facing_original_type_p): New function. |
| 5718 |
|
| 5719 |
2019-10-12 Jakub Jelinek <[email protected]> |
| 5720 |
|
| 5721 |
* c-common.h (c_omp_mark_declare_variant, |
| 5722 |
c_omp_context_selector_matches): Declare. |
| 5723 |
* c-omp.c: Include attribs.h, gimplify.h, cgraph.h, symbol-summary.h |
| 5724 |
and hsa-common.h. |
| 5725 |
(c_omp_get_context_selector): Support second argument NULL. |
| 5726 |
(c_omp_mark_declare_variant, c_omp_context_selector_matches): New |
| 5727 |
functions. |
| 5728 |
* c-attribs.c (c_common_attribute_table): Remove "omp declare variant" |
| 5729 |
attribute, add "omp declare variant base" and |
| 5730 |
"omp declare variant variant" attributes. |
| 5731 |
|
| 5732 |
2019-10-11 Joseph Myers <[email protected]> |
| 5733 |
|
| 5734 |
* c.opt (Wc11-c2x-compat): Add CPP(cpp_warn_c11_c2x_compat) |
| 5735 |
CppReason(CPP_W_C11_C2X_COMPAT). |
| 5736 |
|
| 5737 |
2019-10-11 Joseph Myers <[email protected]> |
| 5738 |
|
| 5739 |
* c-common.c (c_common_reswords): Do not use D_EXT for _Decimal32, |
| 5740 |
_Decimal64 and _Decimal128. |
| 5741 |
|
| 5742 |
2019-10-10 Joseph Myers <[email protected]> |
| 5743 |
|
| 5744 |
* c-cppbuiltin.c (c_cpp_builtins): Do not define macros for DFP |
| 5745 |
types if DFP not supported. |
| 5746 |
|
| 5747 |
2019-10-10 Jakub Jelinek <[email protected]> |
| 5748 |
|
| 5749 |
* c-common.h (c_omp_check_context_selector, |
| 5750 |
c_omp_get_context_selector): Declare. |
| 5751 |
* c-omp.c (c_omp_declare_simd_clauses_to_numbers): Fix spelling |
| 5752 |
in diagnostic message. |
| 5753 |
(c_omp_check_context_selector, c_omp_get_context_selector): New |
| 5754 |
functions. |
| 5755 |
* c-attribs.c (c_common_attribute_table): Add "omp declare variant" |
| 5756 |
attribute. |
| 5757 |
(handle_omp_declare_variant_attribute): New function. |
| 5758 |
|
| 5759 |
2019-10-09 Martin Sebor <[email protected]> |
| 5760 |
|
| 5761 |
PR tree-optimization/90879 |
| 5762 |
* c.opt (-Wstring-compare): New option. |
| 5763 |
|
| 5764 |
2019-10-08 Andrew Sutton <[email protected]> |
| 5765 |
Jason Merrill <[email protected]> |
| 5766 |
|
| 5767 |
Update the concepts implementation to conform to the C++20 |
| 5768 |
specification, improve compile times, and generally clean up |
| 5769 |
the implementation. |
| 5770 |
|
| 5771 |
* c-cppbuiltin.c (c_cpp_builtins): Use new feature test values for |
| 5772 |
concepts when -std=c++2a. Bump __cpp_concepts to 201907. |
| 5773 |
* c.opt: Add -Wconcepts-ts. |
| 5774 |
* c-opts.c (c_common_post_options): Warn when -fconcepts is used |
| 5775 |
with -std=c++2a. Disable warning for -fconcepts in C++20 mode. |
| 5776 |
(set_std_cxx2a): Enable concepts by default. |
| 5777 |
|
| 5778 |
2019-10-08 Joseph Myers <[email protected]> |
| 5779 |
|
| 5780 |
* c-opts.c (c_common_post_options): Set |
| 5781 |
-fno-fp-int-builtin-inexact for C2X. |
| 5782 |
|
| 5783 |
2019-10-05 Jakub Jelinek <[email protected]> |
| 5784 |
|
| 5785 |
PR c++/91369 - Implement P0784R7: constexpr new |
| 5786 |
* c-cppbuiltin.c (c_cpp_builtins): Predefine |
| 5787 |
__cpp_constexpr_dynamic_alloc=201907 for -std=c++2a. |
| 5788 |
|
| 5789 |
2019-10-04 Joseph Myers <[email protected]> |
| 5790 |
|
| 5791 |
PR c/82752 |
| 5792 |
* c-format.c (C_STD_VER): Handle C2x. |
| 5793 |
(C_STD_NAME): Likewise. |
| 5794 |
(strftime_flag_specs): Add 'O' modifier with 'p' flag. |
| 5795 |
(time_char_table): Use separate entry for 'B' and 'b', with 'O' |
| 5796 |
modifier allowed and 'p' flag. |
| 5797 |
* c-format.h (enum format_std_version): Add STD_C2X. |
| 5798 |
(struct format_char_info): Mention 'p' in comment on flags2. |
| 5799 |
|
| 5800 |
2019-10-01 David Malcolm <[email protected]> |
| 5801 |
|
| 5802 |
* c-opts.c (c_diagnostic_finalizer): Temporarily clear prefix when |
| 5803 |
calling diagnostic_show_locus, rather than destroying it afterwards. |
| 5804 |
|
| 5805 |
2019-10-01 Jakub Jelinek <[email protected]> |
| 5806 |
|
| 5807 |
PR c++/91925 |
| 5808 |
* c-warn.c (check_alignment_of_packed_member): Ignore FIELD_DECLs |
| 5809 |
with NULL DECL_FIELD_OFFSET. |
| 5810 |
|
| 5811 |
2019-10-01 Richard Sandiford <[email protected]> |
| 5812 |
|
| 5813 |
* c-pretty-print.c (pp_c_specifier_qualifier_list): If a vector type |
| 5814 |
has a type name, use it in preference to the __vector syntax. |
| 5815 |
|
| 5816 |
2019-09-30 Richard Sandiford <[email protected]> |
| 5817 |
|
| 5818 |
* c-pretty-print.c (pp_c_parameter_type_list): Avoid printing |
| 5819 |
two spaces between a comma and "...". |
| 5820 |
|
| 5821 |
2019-09-27 Jakub Jelinek <[email protected]> |
| 5822 |
|
| 5823 |
PR c++/88203 |
| 5824 |
* c-common.h (c_omp_predefined_variable): Declare. |
| 5825 |
* c-omp.c (c_omp_predefined_variable): New function. |
| 5826 |
(c_omp_predetermined_sharing): Return OMP_CLAUSE_DEFAULT_SHARED |
| 5827 |
for predefined variables. |
| 5828 |
|
| 5829 |
2019-09-27 Richard Sandiford <[email protected]> |
| 5830 |
|
| 5831 |
* c-common.h (build_function_call_vec): Take the original |
| 5832 |
function decl as an optional final parameter. |
| 5833 |
(check_builtin_function_arguments): Take the original function decl. |
| 5834 |
* c-common.c (check_builtin_function_arguments): Likewise. |
| 5835 |
Handle all built-in functions, not just BUILT_IN_NORMAL ones. |
| 5836 |
Use targetm.check_builtin_call to check BUILT_IN_MD functions. |
| 5837 |
|
| 5838 |
2019-09-15 Jason Merrill <[email protected]> |
| 5839 |
|
| 5840 |
* c-warn.c (warn_logical_operator): Strip location wrappers. Don't |
| 5841 |
fold_for_warn in "|| mask" warning. |
| 5842 |
|
| 5843 |
2019-09-10 Martin Liska <[email protected]> |
| 5844 |
|
| 5845 |
* c.opt: Use newly added WarnRemoved. |
| 5846 |
|
| 5847 |
2019-09-09 Martin Liska <[email protected]> |
| 5848 |
|
| 5849 |
* c.opt: Update comment of removed |
| 5850 |
options that are preserved only for backward |
| 5851 |
compatibility. |
| 5852 |
|
| 5853 |
2019-09-06 Martin Liska <[email protected]> |
| 5854 |
|
| 5855 |
PR c++/91125 |
| 5856 |
* c-common.c: Remove definition of flag_use_repository. |
| 5857 |
* c-common.h: Likewise. |
| 5858 |
* c-opts.c (c_common_handle_option): |
| 5859 |
Do not handle OPT_frepo option. |
| 5860 |
* c.opt: Mark the option with Deprecated. |
| 5861 |
|
| 5862 |
2019-09-04 Marek Polacek <[email protected]> |
| 5863 |
|
| 5864 |
* c.opt (fdeduce-init-list): Ignored. |
| 5865 |
|
| 5866 |
2019-09-04 Prathamesh Kulkarni <[email protected]> |
| 5867 |
|
| 5868 |
PR c/78736 |
| 5869 |
* c.opt (Wenum-conversion): New option. |
| 5870 |
|
| 5871 |
2019-09-03 Jozef Lawrynowicz <[email protected]> |
| 5872 |
|
| 5873 |
* c-attribs.c (handle_section_attribute): Call the |
| 5874 |
handle_generic_attribute target hook after performing target |
| 5875 |
independent processing. |
| 5876 |
(handle_noinit_attribute): Likewise. |
| 5877 |
|
| 5878 |
2019-09-03 Ian Lance Taylor <[email protected]> |
| 5879 |
|
| 5880 |
* c-cppbuiltin.c (builtin_define_with_hex_fp_value): Always expand |
| 5881 |
when using -fgo-dump-spec. |
| 5882 |
|
| 5883 |
2019-09-02 Martin Liska <[email protected]> |
| 5884 |
|
| 5885 |
PR c++/91155 |
| 5886 |
* c-common.c (fname_as_string): Use cxx_printable_name for |
| 5887 |
__PRETTY_FUNCTION__ same as was used before r265711. |
| 5888 |
|
| 5889 |
2019-08-28 Marek Polacek <[email protected]> |
| 5890 |
|
| 5891 |
Implement P1152R4: Deprecating some uses of volatile. |
| 5892 |
PR c++/91361 |
| 5893 |
* c-opts.c (c_common_post_options): Enable -Wvolatile by |
| 5894 |
default for C++2a, unless -Wno-deprecated. |
| 5895 |
* c.opt (Wvolatile): New warning. |
| 5896 |
|
| 5897 |
2019-08-28 Marek Polacek <[email protected]> |
| 5898 |
|
| 5899 |
PR c++/91360 - Implement C++20 P1143R2: constinit. |
| 5900 |
* c-common.c (c_common_reswords): Add constinit and __constinit. |
| 5901 |
(keyword_is_decl_specifier): Handle RID_CONSTINIT. |
| 5902 |
* c-common.h (enum rid): Add RID_CONSTINIT, RID_FIRST_CXX20, and |
| 5903 |
RID_LAST_CXX20. |
| 5904 |
(D_CXX20): Define. |
| 5905 |
* c-cppbuiltin.c (c_cpp_builtins): Define __cpp_constinit. |
| 5906 |
* c-format.c (cxx_keywords): Add "constinit". |
| 5907 |
* c.opt (Wc++2a-compat, Wc++20-compat): New options. |
| 5908 |
|
| 5909 |
2019-08-27 Jakub Jelinek <[email protected]> |
| 5910 |
|
| 5911 |
PR c++/91415 |
| 5912 |
* c-common.c (verify_tree): For LSHIFT_EXPR, RSHIFT_EXPR, |
| 5913 |
COMPONENT_REF and ARRAY_REF in cxx_dialect >= cxx17 mode handle it |
| 5914 |
like COMPOUND_EXPR rather than normal expression. |
| 5915 |
|
| 5916 |
2019-08-23 Iain Sandoe <[email protected]> |
| 5917 |
|
| 5918 |
PR pch/61250 |
| 5919 |
* c-lex.c (c_lex_with_flags): Don't call |
| 5920 |
c_common_no_more_pch () from here. |
| 5921 |
|
| 5922 |
2019-08-23 Jakub Jelinek <[email protected]> |
| 5923 |
|
| 5924 |
PR middle-end/91283 |
| 5925 |
* c-common.c (c_ts18661_flt_eval_method): Use flag_excess_precision |
| 5926 |
instead of flag_excess_precision_cmdline. |
| 5927 |
* c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): Likewise. |
| 5928 |
* c-opts.c (c_common_post_options): Likewise. |
| 5929 |
|
| 5930 |
2019-08-22 Martin Sebor <[email protected]> |
| 5931 |
|
| 5932 |
PR middle-end/91490 |
| 5933 |
* c-common.c (braced_list_to_string): Add argument and overload. |
| 5934 |
Handle flexible length arrays and unions. |
| 5935 |
|
| 5936 |
2019-08-21 Eric Botcazou <[email protected]> |
| 5937 |
|
| 5938 |
* c-ada-spec.c (dump_ada_function_declaration): Be prepared for broken |
| 5939 |
function declarations where arguments are missing. Rename variables. |
| 5940 |
|
| 5941 |
2019-08-15 Richard Biener <[email protected]> |
| 5942 |
|
| 5943 |
* c-common.c (c_stddef_cpp_builtins): When the GIMPLE FE is |
| 5944 |
enabled, define __SIZETYPE__. |
| 5945 |
|
| 5946 |
2019-08-14 Christophe Lyon <[email protected]> |
| 5947 |
|
| 5948 |
* c-attribs.c (c_common_attribute_table): Add "noinit" entry. Add |
| 5949 |
exclusion with "section" attribute. |
| 5950 |
(attr_noinit_exclusions): New table. |
| 5951 |
(handle_noinit_attribute): New function. |
| 5952 |
|
| 5953 |
2019-08-13 Richard Sandiford <[email protected]> |
| 5954 |
|
| 5955 |
PR middle-end/91421 |
| 5956 |
* c-common.c (resolve_overloaded_builtin): Use |
| 5957 |
copy_decl_built_in_function. |
| 5958 |
|
| 5959 |
2019-08-13 Martin Sebor <[email protected]> |
| 5960 |
|
| 5961 |
PR c/80619 |
| 5962 |
* c-format.c (printf_length_specs): Set FMT_LEN_w for "w". |
| 5963 |
(asm_fprintf_length_spec): Same. |
| 5964 |
* c-format.h (format_lengths): Add FMT_LEN_w. |
| 5965 |
|
| 5966 |
2019-08-10 Jakub Jelinek <[email protected]> |
| 5967 |
|
| 5968 |
* c-pragma.h (enum pragma_omp_clause): Add |
| 5969 |
PRAGMA_OMP_CLAUSE_DEVICE_TYPE. |
| 5970 |
|
| 5971 |
2019-08-07 Jakub Jelinek <[email protected]> |
| 5972 |
|
| 5973 |
* c-pragma.h (enum pragma_omp_clause): Add |
| 5974 |
PRAGMA_OMP_CLAUSE_USE_DEVICE_ADDR. Set PRAGMA_OACC_CLAUSE_USE_DEVICE |
| 5975 |
equal to PRAGMA_OMP_CLAUSE_USE_DEVICE_PTR instead of being a separate |
| 5976 |
enumeration value. |
| 5977 |
|
| 5978 |
2019-08-05 Marek Polacek <[email protected]> |
| 5979 |
|
| 5980 |
PR c++/91338 - Implement P1161R3: Deprecate a[b,c]. |
| 5981 |
* c-opts.c (c_common_post_options): Enable -Wcomma-subscript by |
| 5982 |
default for C++2a, unless -Wno-deprecated. |
| 5983 |
* c.opt (Wcomma-subscript): New warning. |
| 5984 |
|
| 5985 |
2019-07-20 Jakub Jelinek <[email protected]> |
| 5986 |
|
| 5987 |
* c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_LOOP. |
| 5988 |
(enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_BIND. |
| 5989 |
* c-pragma.c (omp_pragmas_simd): Add PRAGMA_OMP_LOOP entry. |
| 5990 |
* c-common.h (enum c_omp_clause_split): Add C_OMP_CLAUSE_SPLIT_LOOP. |
| 5991 |
* c-omp.c (c_omp_split_clauses): Add support for 4 new combined |
| 5992 |
constructs with the loop construct. |
| 5993 |
|
| 5994 |
2019-07-13 Jakub Jelinek <[email protected]> |
| 5995 |
|
| 5996 |
PR c/91149 |
| 5997 |
* c-omp.c (c_omp_split_clauses): Fix a pasto in |
| 5998 |
OMP_CLAUSE_REDUCTION_TASK handling. |
| 5999 |
|
| 6000 |
2019-07-12 Jakub Jelinek <[email protected]> |
| 6001 |
|
| 6002 |
* c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ORDER. |
| 6003 |
* c-omp.c (c_omp_split_clauses): Handle splitting of OMP_CLAUSE_ORDER. |
| 6004 |
|
| 6005 |
2019-07-09 Martin Sebor <[email protected]> |
| 6006 |
|
| 6007 |
PR c++/61339 |
| 6008 |
* c-opts.c (handle_deferred_opts): Change class-key of PODs to struct |
| 6009 |
and others to class. |
| 6010 |
* c-pretty-print.h: Same. |
| 6011 |
|
| 6012 |
2019-07-09 Martin Sebor <[email protected]> |
| 6013 |
|
| 6014 |
PR c++/61339 |
| 6015 |
* c-format.c (check_argument_type): Change class-key from class to |
| 6016 |
struct and vice versa to match convention and avoid -Wclass-is-pod |
| 6017 |
and -Wstruct-no-pod. |
| 6018 |
* c-pretty-print.h: Same. |
| 6019 |
|
| 6020 |
2019-07-03 Martin Liska <[email protected]> |
| 6021 |
|
| 6022 |
* c-common.c (try_to_locate_new_include_insertion_point): Remove |
| 6023 |
dead assignemts. |
| 6024 |
|
| 6025 |
2019-07-03 Jakub Jelinek <[email protected]> |
| 6026 |
|
| 6027 |
* c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_REDUCTION_INSCAN |
| 6028 |
clauses on OMP_FOR rather than OMP_PARALLEL when OMP_FOR is combined |
| 6029 |
with OMP_PARALLEL. |
| 6030 |
|
| 6031 |
2019-07-02 qing zhao <[email protected]> |
| 6032 |
|
| 6033 |
PR preprocessor/90581 |
| 6034 |
* c-opts.c (c_common_handle_option): Handle -fmax-include-depth. |
| 6035 |
* c.opt: Add new option -fmax-include-depth. |
| 6036 |
|
| 6037 |
2019-06-26 Jason Merrill <[email protected]> |
| 6038 |
|
| 6039 |
PR c++/55442 - memory-hog with highly recursive constexpr. |
| 6040 |
* c.opt (fconstexpr-loop-limit): New. |
| 6041 |
|
| 6042 |
2019-06-25 Jakub Jelinek <[email protected]> |
| 6043 |
|
| 6044 |
PR sanitizer/90954 |
| 6045 |
* c-omp.c (c_finish_omp_atomic): Allow tree_invariant_p in addition |
| 6046 |
to SAVE_EXPR in first operand of a COMPOUND_EXPR. |
| 6047 |
|
| 6048 |
2019-06-25 Jozef Lawrynowicz <[email protected]> |
| 6049 |
|
| 6050 |
* c-common.c (c_common_nodes_and_builtins): Define |
| 6051 |
alternate "__intN__" name for "__intN" types. |
| 6052 |
|
| 6053 |
2019-06-24 Jan Hubicka <[email protected]> |
| 6054 |
|
| 6055 |
* c-common.c (braced_lists_to_strings): Check that |
| 6056 |
type is array or integer prior checking string flag. |
| 6057 |
|
| 6058 |
2019-06-21 Matthew Beliveau <[email protected]> |
| 6059 |
|
| 6060 |
PR c++/90875 - added -Wswitch-outside-range option |
| 6061 |
* c.opt (Wswitch-outside-range): Added new option. |
| 6062 |
* c-warn.c (c_do_switch_warnings): Use OPT_Wswitch-outside-range. |
| 6063 |
|
| 6064 |
2019-06-21 Marek Polacek <[email protected]> |
| 6065 |
|
| 6066 |
PR c++/90953 - ICE with -Wmissing-format-attribute. |
| 6067 |
* c-common.c (check_function_arguments_recurse): Use |
| 6068 |
get_attribute_name. |
| 6069 |
(check_missing_format_attribute): Likewise. |
| 6070 |
|
| 6071 |
2019-06-19 Marek Polacek <[email protected]> |
| 6072 |
|
| 6073 |
PR c++/60364 - noreturn after first decl not diagnosed. |
| 6074 |
* c-attribs.c (handle_noreturn_attribute): No longer static. |
| 6075 |
* c-common.h (handle_noreturn_attribute, attr_noreturn_exclusions): |
| 6076 |
Declare. |
| 6077 |
* c-format.c (check_function_format): Use get_attribute_name. |
| 6078 |
|
| 6079 |
2019-06-19 Martin Sebor <[email protected]> |
| 6080 |
|
| 6081 |
PR translation/90156 |
| 6082 |
* c-format.c (function_format_info::format_type): Adjust type. |
| 6083 |
(function_format_info::is_raw): New member. |
| 6084 |
(decode_format_type): Adjust signature. Handle "raw" diag attributes. |
| 6085 |
(decode_format_attr): Adjust call to decode_format_type. |
| 6086 |
Avoid a redundant call to convert_format_name_to_system_name. |
| 6087 |
Avoid abbreviating the word "arguments" in a diagnostic. |
| 6088 |
(format_warning_substr): New function. |
| 6089 |
(avoid_dollar_number): Quote dollar sign in a diagnostic. |
| 6090 |
(finish_dollar_format_checking): Same. |
| 6091 |
(check_format_info): Same. |
| 6092 |
(struct baltoks_t): New. |
| 6093 |
(c_opers, c_keywords, cxx_keywords, badwords, contrs): New arrays. |
| 6094 |
(maybe_diag_unbalanced_tokens, check_tokens, check_plain): New |
| 6095 |
functions. |
| 6096 |
(check_format_info_main): Call check_plain. Use baltoks_t. Call |
| 6097 |
maybe_diag_unbalanced_tokens. |
| 6098 |
(handle_format_attribute): Spell out the word "arguments" in |
| 6099 |
a diagnostic. |
| 6100 |
|
| 6101 |
2019-06-11 Matthew Beliveau <[email protected]> |
| 6102 |
|
| 6103 |
PR c++/90449 - add -Winaccessible-base option. |
| 6104 |
* c.opt (Winaccessible-base): New option. |
| 6105 |
|
| 6106 |
2019-06-10 Jakub Jelinek <[email protected]> |
| 6107 |
|
| 6108 |
* c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_SCAN. |
| 6109 |
* c-pragma.c (omp_pragmas_simd): Add #pragma omp scan. |
| 6110 |
* c-omp.c (c_omp_split_clauses): Diagnose inscan reductions on |
| 6111 |
combined/composite constructs where it is not allowed. Copy over |
| 6112 |
OMP_CLAUSE_REDUCTION_INSCAN. |
| 6113 |
|
| 6114 |
2019-06-05 Martin Sebor <[email protected]> |
| 6115 |
|
| 6116 |
* c-attribs.c (handle_mode_attribute): Adjust quoting and hyphenation. |
| 6117 |
(handle_alias_ifunc_attribute): Same. |
| 6118 |
(handle_copy_attribute): Same. |
| 6119 |
(handle_weakref_attribute): Same. |
| 6120 |
(handle_nonnull_attribute): Same. |
| 6121 |
* c-warn.c (warn_for_sign_compare): Same. |
| 6122 |
(warn_for_restrict): Same. |
| 6123 |
* c.opt: Same. |
| 6124 |
|
| 6125 |
2019-06-05 Martin Sebor <[email protected]> |
| 6126 |
|
| 6127 |
* c-pragma.c (handle_pragma_weak): Adjust quoting in a diagnostic. |
| 6128 |
* c.opt (-Wformat-diag): Remove a spurious period. |
| 6129 |
|
| 6130 |
2019-05-29 Jakub Jelinek <[email protected]> |
| 6131 |
|
| 6132 |
PR c/90628 |
| 6133 |
* c-common.c (check_builtin_function_arguments) |
| 6134 |
<case BUILTIN_*_OVERFLOW>: Diagnose pointer to const qualified integer |
| 6135 |
as last argument. |
| 6136 |
|
| 6137 |
2019-05-23 Eric Botcazou <[email protected]> |
| 6138 |
|
| 6139 |
* c-ada-spec.c (compare_node): Compare the DECL_UIDs as a last resort. |
| 6140 |
|
| 6141 |
2019-05-22 Martin Liska <[email protected]> |
| 6142 |
|
| 6143 |
PR lto/90500 |
| 6144 |
* c-attribs.c (handle_copy_attribute): Do not copy |
| 6145 |
target_clones attribute. |
| 6146 |
|
| 6147 |
2019-05-21 Eric Botcazou <[email protected]> |
| 6148 |
|
| 6149 |
* c-ada-spec.h (enum cpp_operation): Add IS_ASSIGNMENT_OPERATOR. |
| 6150 |
* c-ada-spec.c (print_assignment_operator): New function. |
| 6151 |
(dump_ada_declaration) <FUNCTION_DECL>: Call it do dump explicit copy |
| 6152 |
assignment operators declared as methods and filter out the others. |
| 6153 |
|
| 6154 |
2019-05-17 Thomas Schwinge <[email protected]> |
| 6155 |
|
| 6156 |
PR c/89433 |
| 6157 |
* c-attribs.c (c_common_attribute_table): Set min_len to -1 for |
| 6158 |
"omp declare target". |
| 6159 |
|
| 6160 |
2019-05-16 Martin Sebor <[email protected]> |
| 6161 |
|
| 6162 |
* c-attribs.c (handle_no_sanitize_attribute): Quote identifiers, |
| 6163 |
keywords, operators, and types in diagnostics. |
| 6164 |
(handle_scalar_storage_order_attribute): Same. |
| 6165 |
(handle_mode_attribute): Same. |
| 6166 |
(handle_visibility_attribute): Same. |
| 6167 |
(handle_assume_aligned_attribute): Same. |
| 6168 |
(handle_no_split_stack_attribute): Same. |
| 6169 |
* c-common.c (shorten_compare): Same. |
| 6170 |
(c_common_truthvalue_conversion): Same. |
| 6171 |
(cb_get_source_date_epoch): Same. |
| 6172 |
* c-lex.c (cb_def_pragma): Quote keywords, operators, and types |
| 6173 |
in diagnostics. |
| 6174 |
(interpret_float): Same. |
| 6175 |
* c-omp.c (c_finish_omp_for): Same. |
| 6176 |
* c-opts.c (c_common_post_options): Same. |
| 6177 |
* c-pch.c (c_common_pch_pragma): Same. |
| 6178 |
* c-pragma.c (pop_alignment): Same. |
| 6179 |
(handle_pragma_pack): Same. |
| 6180 |
(apply_pragma_weak): Same. |
| 6181 |
(handle_pragma_weak): Same. |
| 6182 |
(handle_pragma_scalar_storage_order): Same. |
| 6183 |
(handle_pragma_redefine_extname): Same. |
| 6184 |
(add_to_renaming_pragma_list): Same. |
| 6185 |
(maybe_apply_renaming_pragma): Same. |
| 6186 |
(push_visibility): Same. |
| 6187 |
(handle_pragma_visibility): Same. |
| 6188 |
(handle_pragma_optimize): Same. |
| 6189 |
(handle_pragma_message): Same. |
| 6190 |
* c-warn.c (warn_for_omitted_condop): Same. |
| 6191 |
(lvalue_error): Same. |
| 6192 |
|
| 6193 |
2019-05-15 Richard Biener <[email protected]> |
| 6194 |
|
| 6195 |
PR c/90474 |
| 6196 |
* c-common.c (c_common_mark_addressable_vec): Also mark |
| 6197 |
a COMPOUND_LITERAL_EXPR_DECL addressable similar to |
| 6198 |
c_mark_addressable. |
| 6199 |
|
| 6200 |
2019-05-06 Nathan Sidwell <[email protected]> |
| 6201 |
|
| 6202 |
* c-opts.c (handle_defered_opts): Rename struct deps to struc mkdeps. |
| 6203 |
|
| 6204 |
2019-04-30 Nathan Sidwell <[email protected]> |
| 6205 |
|
| 6206 |
* c-common.c (c_common_init_ts): Use MARK_TS_EXP. Mark SIZEOF_EXPR. |
| 6207 |
|
| 6208 |
2019-04-30 Martin Liska <[email protected]> |
| 6209 |
|
| 6210 |
* c-pragma.c (handle_pragma_diagnostic): Provide hints |
| 6211 |
for unknown options. |
| 6212 |
|
| 6213 |
2019-04-26 Richard Sandiford <[email protected]> |
| 6214 |
|
| 6215 |
* c-warn.c (strict_aliasing_warning): Apply COMPLETE_TYPE_P to |
| 6216 |
the pointer target rather than the pointer itself. |
| 6217 |
|
| 6218 |
2019-04-19 Jakub Jelinek <[email protected]> |
| 6219 |
|
| 6220 |
PR c/89888 |
| 6221 |
* c-common.h (c_add_case_label): Remove orig_type and outside_range_p |
| 6222 |
arguments. |
| 6223 |
(c_do_switch_warnings): Remove outside_range_p argument. |
| 6224 |
* c-common.c (check_case_bounds): Removed. |
| 6225 |
(c_add_case_label): Remove orig_type and outside_range_p arguments. |
| 6226 |
Don't call check_case_bounds. Fold low_value as well as high_value. |
| 6227 |
* c-warn.c (c_do_switch_warnings): Remove outside_range_p argument. |
| 6228 |
Check for case labels outside of range of original type here and |
| 6229 |
adjust them. |
| 6230 |
|
| 6231 |
2019-04-12 Jakub Jelinek <[email protected]> |
| 6232 |
|
| 6233 |
PR translation/90041 |
| 6234 |
* c.opt (-fhandle-exceptions): Use %< and %> around option names |
| 6235 |
in the Warn diagnostics. |
| 6236 |
|
| 6237 |
PR c/89946 |
| 6238 |
* c-attribs.c (handle_patchable_function_entry_attribute): Add |
| 6239 |
function comment. Warn if arguments of the attribute are not positive |
| 6240 |
integer constants. |
| 6241 |
|
| 6242 |
2019-04-09 Eric Botcazou <[email protected]> |
| 6243 |
|
| 6244 |
* c-ada-spec.c (print_destructor): Deal with deleting destructors. |
| 6245 |
(dump_ada_declaration) <FUNCTION_DECL>: Likewise. |
| 6246 |
|
| 6247 |
2019-04-07 Eric Botcazou <[email protected]> |
| 6248 |
|
| 6249 |
* c-ada-spec.c (is_float128): New predicate extracted from... |
| 6250 |
(dump_ada_node) <COMPLEX_TYPE>: Use it to recognize __cfloat128. |
| 6251 |
<REAL_TYPE>: ...here. Call it. |
| 6252 |
|
| 6253 |
2019-04-05 David Malcolm <[email protected]> |
| 6254 |
|
| 6255 |
PR c/89985 |
| 6256 |
* c-warn.c (check_address_or_pointer_of_packed_member): Add |
| 6257 |
auto_diagnostic_group. Guard inform calls by result of |
| 6258 |
warning_at call. |
| 6259 |
|
| 6260 |
2019-04-05 Marek Polacek <[email protected]> |
| 6261 |
|
| 6262 |
PR c++/89973 - -Waddress-of-packed-member ICE with invalid conversion. |
| 6263 |
* c-warn.c (check_address_or_pointer_of_packed_member): Check the type |
| 6264 |
of RHS. |
| 6265 |
|
| 6266 |
2019-04-03 Jason Merrill <[email protected]> |
| 6267 |
|
| 6268 |
PR c++/86586 - -fcompare-debug=-Wsign-compare. |
| 6269 |
* c-warn.c (warn_for_sign_compare): Call fold_for_warn. |
| 6270 |
|
| 6271 |
2019-04-01 Martin Sebor <[email protected]> |
| 6272 |
|
| 6273 |
PR c/89685 |
| 6274 |
* c-attribs.c (handle_copy_attribute): Handle references and |
| 6275 |
non-constant expressions. |
| 6276 |
|
| 6277 |
2019-03-22 Jakub Jelinek <[email protected]> |
| 6278 |
|
| 6279 |
PR c++/87481 |
| 6280 |
* c.opt (-fconstexpr-ops-limit=): New option. |
| 6281 |
|
| 6282 |
2019-03-21 Jakub Jelinek <[email protected]> |
| 6283 |
|
| 6284 |
* c-common.c (per_file_includes_t): Use false as Lazy in hash_set |
| 6285 |
template param. |
| 6286 |
|
| 6287 |
2019-03-19 Martin Sebor <[email protected]> |
| 6288 |
|
| 6289 |
PR tree-optimization/89688 |
| 6290 |
* c-common.c (braced_list_to_string): Make static. |
| 6291 |
(braced_lists_to_strings): Define new function. |
| 6292 |
* c-common.h (braced_list_to_string): Remove. |
| 6293 |
(braced_lists_to_strings): Declare. |
| 6294 |
|
| 6295 |
2019-03-12 Martin Liska <[email protected]> |
| 6296 |
|
| 6297 |
* c-opts.c (c_common_handle_option): Wrap option with %< and %>. |
| 6298 |
|
| 6299 |
2019-03-11 Martin Liska <[email protected]> |
| 6300 |
|
| 6301 |
* c-opts.c (c_common_post_options): Wrap apostrophes |
| 6302 |
in gcc internal format with %'. |
| 6303 |
|
| 6304 |
2019-03-11 Martin Liska <[email protected]> |
| 6305 |
|
| 6306 |
* c-attribs.c (handle_nocf_check_attribute): Wrap an option name |
| 6307 |
in a string format message and fix GNU coding style. |
| 6308 |
* c-common.c (vector_types_convertible_p): Likewise. |
| 6309 |
(c_build_vec_perm_expr): Likewise. |
| 6310 |
* c-indentation.c (get_visual_column): Likewise. |
| 6311 |
* c-opts.c (c_common_handle_option): Likewise. |
| 6312 |
(c_common_post_options): Likewise. |
| 6313 |
(sanitize_cpp_opts): Likewise. |
| 6314 |
* c-pch.c (c_common_pch_pragma): Likewise. |
| 6315 |
* c-pragma.c (handle_pragma_pack): Likewise. |
| 6316 |
|
| 6317 |
2019-03-08 Jakub Jelinek <[email protected]> |
| 6318 |
|
| 6319 |
PR tree-optimization/89550 |
| 6320 |
* c-common.c (c_common_truthvalue_conversion): Only set |
| 6321 |
TREE_NO_WARNING if warning_at returned true. |
| 6322 |
* c-warn.c (overflow_warning, warn_logical_operator): Likewise. |
| 6323 |
|
| 6324 |
2019-02-25 Sandra Loosemore <[email protected]> |
| 6325 |
Martin Sebor <[email protected]> |
| 6326 |
|
| 6327 |
* c.opt (Wmissing-attributes): Clean up doc string. |
| 6328 |
|
| 6329 |
2019-02-25 Jakub Jelinek <[email protected]> |
| 6330 |
|
| 6331 |
PR c/89495 |
| 6332 |
* c-format.c (maybe_read_dollar_number): Compute nargnum in |
| 6333 |
HOST_WIDE_INT type to avoid overflows and change overflow_flag |
| 6334 |
checking. |
| 6335 |
|
| 6336 |
2019-02-22 Richard Biener <[email protected]> |
| 6337 |
|
| 6338 |
* c-pch.c (no_checksum): Remove. |
| 6339 |
(pch_init): Remove assertion that executable_checksum is not |
| 6340 |
all zero. |
| 6341 |
(c_common_valid_pch): Likewise. |
| 6342 |
|
| 6343 |
2019-02-18 Martin Sebor <[email protected]> |
| 6344 |
|
| 6345 |
PR middle-end/89294 |
| 6346 |
* c-common.c (invalid_array_size_error): Handle cst_size_not_constant. |
| 6347 |
|
| 6348 |
2019-02-16 David Malcolm <[email protected]> |
| 6349 |
|
| 6350 |
PR c++/88680 |
| 6351 |
* c-common.c (shorten_compare): Call fold_for_warn on op0 when |
| 6352 |
implementing -Wtype-limits. |
| 6353 |
|
| 6354 |
2019-02-11 Martin Sebor <[email protected]> |
| 6355 |
|
| 6356 |
PR c++/87996 |
| 6357 |
* c-common.c (invalid_array_size_error): New function. |
| 6358 |
(valid_array_size_p): Call it. Handle size as well as type. |
| 6359 |
* c-common.h (valid_constant_size_p): New function. |
| 6360 |
(enum cst_size_error): New type. |
| 6361 |
|
| 6362 |
2019-01-31 David Malcolm <[email protected]> |
| 6363 |
|
| 6364 |
PR c/89122 |
| 6365 |
* known-headers.cc (get_stdlib_header_for_name): Add |
| 6366 |
{FLT|DBL|LDBL}_{MAX|MIN} to "hints" array. |
| 6367 |
|
| 6368 |
2019-01-31 Jakub Jelinek <[email protected]> |
| 6369 |
|
| 6370 |
PR libstdc++/88170 |
| 6371 |
* c-pretty-print.c (pp_c_enumeration_constant): Print always as |
| 6372 |
a C cast in pp_c_flag_gnu_v3 mode. |
| 6373 |
|
| 6374 |
2019-01-29 Jakub Jelinek <[email protected]> |
| 6375 |
|
| 6376 |
PR c/86125 |
| 6377 |
* c-common.c (c_common_nodes_and_builtins): Build type variants for |
| 6378 |
builtin_structptr_types types even for C. |
| 6379 |
|
| 6380 |
2019-01-28 Bernd Edlinger <[email protected]> |
| 6381 |
|
| 6382 |
* c-warn.c (check_address_or_pointer_of_packed_member): Handle the case |
| 6383 |
when rhs is of array type correctly. Fix handling of nested structures. |
| 6384 |
Fix handling of indirect_ref together with nop_expr and/or addr_expr. |
| 6385 |
(check_and_warn_address_or_pointer_of_packed_member): Fix handling of |
| 6386 |
type casts within nested compound expressions. |
| 6387 |
|
| 6388 |
2019-01-22 Jakub Jelinek <[email protected]> |
| 6389 |
|
| 6390 |
PR middle-end/88968 |
| 6391 |
* c-omp.c (c_finish_omp_atomic): For bitfield atomics, update type |
| 6392 |
variable after using BIT_FIELD_REF. |
| 6393 |
|
| 6394 |
2019-01-18 H.J. Lu <[email protected]> |
| 6395 |
|
| 6396 |
PR c/51628 |
| 6397 |
PR c/88664 |
| 6398 |
* c-common.h (warn_for_address_or_pointer_of_packed_member): |
| 6399 |
Remove the boolean argument. |
| 6400 |
* c-warn.c (check_address_of_packed_member): Renamed to ... |
| 6401 |
(check_address_or_pointer_of_packed_member): This. Also |
| 6402 |
warn pointer conversion. |
| 6403 |
(check_and_warn_address_of_packed_member): Renamed to ... |
| 6404 |
(check_and_warn_address_or_pointer_of_packed_member): This. |
| 6405 |
Also warn pointer conversion. |
| 6406 |
(warn_for_address_or_pointer_of_packed_member): Remove the |
| 6407 |
boolean argument. Don't check pointer conversion here. |
| 6408 |
|
| 6409 |
2019-01-15 Richard Sandiford <[email protected]> |
| 6410 |
|
| 6411 |
PR inline-asm/52813 |
| 6412 |
* c.opt (Wdeprecated): Move documentation and variable to common.opt. |
| 6413 |
|
| 6414 |
2019-01-14 Jakub Jelinek <[email protected]> |
| 6415 |
|
| 6416 |
* c-cppbuiltin.c (c_cpp_builtin): Define __cpp_guaranteed_copy_elision |
| 6417 |
and __cpp_nontype_template_parameter_auto. Add a comment that |
| 6418 |
__cpp_template_auto is deprecated. |
| 6419 |
|
| 6420 |
2019-01-14 Tom Honermann <[email protected]> |
| 6421 |
|
| 6422 |
Implement P0482R5, char8_t: A type for UTF-8 characters and strings |
| 6423 |
* c-common.c (c_common_reswords): Add char8_t. |
| 6424 |
(fix_string_type): Use char8_t for the type of u8 string literals. |
| 6425 |
(c_common_get_alias_set): char8_t doesn't alias. |
| 6426 |
(c_common_nodes_and_builtins): Define char8_t as a builtin type in |
| 6427 |
C++. |
| 6428 |
(c_stddef_cpp_builtins): Add __CHAR8_TYPE__. |
| 6429 |
(keyword_begins_type_specifier): Add RID_CHAR8. |
| 6430 |
* c-common.h (rid): Add RID_CHAR8. |
| 6431 |
(c_tree_index): Add CTI_CHAR8_TYPE and CTI_CHAR8_ARRAY_TYPE. |
| 6432 |
Define D_CXX_CHAR8_T and D_CXX_CHAR8_T_FLAGS. |
| 6433 |
Define char8_type_node and char8_array_type_node. |
| 6434 |
* c-cppbuiltin.c (cpp_atomic_builtins): Predefine |
| 6435 |
__GCC_ATOMIC_CHAR8_T_LOCK_FREE. |
| 6436 |
(c_cpp_builtins): Predefine __cpp_char8_t. |
| 6437 |
* c-lex.c (lex_string): Use char8_array_type_node as the type of |
| 6438 |
CPP_UTF8STRING. |
| 6439 |
(lex_charconst): Use char8_type_node as the type of CPP_UTF8CHAR. |
| 6440 |
* c-opts.c: If not otherwise specified, enable -fchar8_t when |
| 6441 |
targeting C++2a. |
| 6442 |
* c.opt: Add the -fchar8_t command line option. |
| 6443 |
|
| 6444 |
2019-01-14 Martin Sebor <[email protected]> |
| 6445 |
|
| 6446 |
PR target/88638 |
| 6447 |
* c-attribs.c (positional_argument): Call valid_format_string_type_p |
| 6448 |
and issue errors if it fails. |
| 6449 |
* c-common.h (valid_format_string_type_p): Declare. |
| 6450 |
* c-format.c (valid_stringptr_type_p): Rename... |
| 6451 |
(valid_format_string_type_p): ...to this and make extern. |
| 6452 |
(handle_format_arg_attribute): Adjust to new name. |
| 6453 |
(check_format_string): Same. |
| 6454 |
|
| 6455 |
2019-01-13 H.J. Lu <[email protected]> |
| 6456 |
|
| 6457 |
* c-warn.c (warn_for_address_or_pointer_of_packed_member): |
| 6458 |
Replace "may may" with "may" in warning message. |
| 6459 |
|
| 6460 |
2019-01-07 Jakub Jelinek <[email protected]> |
| 6461 |
|
| 6462 |
PR c++/85052 |
| 6463 |
* c-common.h (enum rid): Add RID_BUILTIN_CONVERTVECTOR. |
| 6464 |
(c_build_vec_convert): Declare. |
| 6465 |
* c-common.c (c_build_vec_convert): New function. |
| 6466 |
|
| 6467 |
2019-01-04 Martin Sebor <[email protected]> |
| 6468 |
|
| 6469 |
PR c/88546 |
| 6470 |
* c-attribs.c (handle_copy_attribute): Avoid copying attribute leaf. |
| 6471 |
Handle C++ empty throw specification and C11 _Noreturn. |
| 6472 |
(has_attribute): Also handle C11 _Noreturn. |
| 6473 |
|
| 6474 |
2019-01-04 Martin Sebor <[email protected]> |
| 6475 |
|
| 6476 |
PR c/88363 |
| 6477 |
* c-attribs.c (positional_argument): Also accept enumerated types. |
| 6478 |
|
| 6479 |
2019-01-01 Jakub Jelinek <[email protected]> |
| 6480 |
|
| 6481 |
Update copyright years. |
| 6482 |
|
| 6483 |
2018-12-20 H.J. Lu <[email protected]> |
| 6484 |
|
| 6485 |
PR c/51628 |
| 6486 |
* c-common.h (warn_for_address_or_pointer_of_packed_member): New. |
| 6487 |
* c-warn.c (check_alignment_of_packed_member): New function. |
| 6488 |
(check_address_of_packed_member): Likewise. |
| 6489 |
(check_and_warn_address_of_packed_member): Likewise. |
| 6490 |
(warn_for_address_or_pointer_of_packed_member): Likewise. |
| 6491 |
* c.opt: Add -Wno-address-of-packed-member. |
| 6492 |
|
| 6493 |
2018-12-20 David Malcolm <[email protected]> |
| 6494 |
|
| 6495 |
PR c++/87504 |
| 6496 |
* c-warn.c (get_outermost_macro_expansion): New function. |
| 6497 |
(spelled_the_same_p): Use it to unwind the macro expansions, and |
| 6498 |
compare the outermost macro in each nested expansion, rather than |
| 6499 |
the innermost. |
| 6500 |
|
| 6501 |
2018-12-19 David Malcolm <[email protected]> |
| 6502 |
|
| 6503 |
PR c++/87504 |
| 6504 |
* c-common.h (warn_tautological_cmp): Convert 1st param from |
| 6505 |
location_t to const op_location_t &. |
| 6506 |
* c-warn.c (find_array_ref_with_const_idx_r): Call fold_for_warn |
| 6507 |
when testing for INTEGER_CST. |
| 6508 |
(warn_tautological_bitwise_comparison): Convert 1st param from |
| 6509 |
location_t to const op_location_t &; use it to build a |
| 6510 |
binary_op_rich_location, and use this. |
| 6511 |
(spelled_the_same_p): New function. |
| 6512 |
(warn_tautological_cmp): Convert 1st param from location_t to |
| 6513 |
const op_location_t &. Warn for macro expansions if |
| 6514 |
spelled_the_same_p. Use binary_op_rich_location. |
| 6515 |
|
| 6516 |
2018-12-19 David Malcolm <[email protected]> |
| 6517 |
|
| 6518 |
PR c++/43064 |
| 6519 |
PR c++/43486 |
| 6520 |
* c-common.c (unsafe_conversion_p): Fold any location wrapper. |
| 6521 |
(verify_tree): Handle location wrappers. |
| 6522 |
(c_common_truthvalue_conversion): Strip any location wrapper. |
| 6523 |
Handle CONST_DECL. |
| 6524 |
(fold_offsetof): Strip any location wrapper. |
| 6525 |
(complete_array_type): Likewise for initial_value. |
| 6526 |
(convert_vector_to_array_for_subscript): Call fold_for_warn on the |
| 6527 |
index before checking for INTEGER_CST. |
| 6528 |
* c-pretty-print.c (c_pretty_printer::primary_expression): Don't |
| 6529 |
print parentheses around location wrappers. |
| 6530 |
* c-warn.c (warn_logical_operator): Call fold_for_warn on op_right |
| 6531 |
before checking for INTEGER_CST. |
| 6532 |
(warn_tautological_bitwise_comparison): Call |
| 6533 |
tree_strip_any_location_wrapper on lhs, rhs, and bitop's operand |
| 6534 |
before checking for INTEGER_CST. |
| 6535 |
(readonly_error): Strip any location wrapper. |
| 6536 |
(warn_array_subscript_with_type_char): Strip location wrappers |
| 6537 |
before checking for INTEGER_CST. Use the location of the index if |
| 6538 |
available. |
| 6539 |
|
| 6540 |
2018-12-06 Jason Merrill <[email protected]> |
| 6541 |
|
| 6542 |
PR c++/88136 - -Wdeprecated-copy false positives |
| 6543 |
* c.opt (Wdeprecated-copy-dtor): New. |
| 6544 |
(Wdeprecated-copy): Move to -Wextra. |
| 6545 |
|
| 6546 |
2018-11-29 Martin Sebor <[email protected]> |
| 6547 |
|
| 6548 |
PR c/88172 |
| 6549 |
PR testsuite/88208 |
| 6550 |
* c-attribs.c (common_handle_aligned_attribute): Silently avoid setting |
| 6551 |
alignments to values less than the target requires. |
| 6552 |
(has_attribute): For attribute aligned consider both the attribute |
| 6553 |
and the alignment bits. |
| 6554 |
* c-common.c (c_init_attributes): Optionally issue a warning for |
| 6555 |
zero alignment. |
| 6556 |
|
| 6557 |
2018-11-28 Martin Sebor <[email protected]> |
| 6558 |
|
| 6559 |
PR c/88065 |
| 6560 |
PR c/87297 |
| 6561 |
* c-warn.c (sizeof_pointer_memaccess_warning): Bail if source |
| 6562 |
or destination is an error. |
| 6563 |
|
| 6564 |
2018-11-28 Jakub Jelinek <[email protected]> |
| 6565 |
|
| 6566 |
PR c++/88215 |
| 6567 |
* c-ubsan.c: Include langhooks.h. |
| 6568 |
(ubsan_instrument_division): Change gcc_assert that main variants |
| 6569 |
of op0 and op1 types are equal to gcc_checking_assert that the |
| 6570 |
main variants are compatible types. |
| 6571 |
|
| 6572 |
2018-11-27 Eric Botcazou <[email protected]> |
| 6573 |
|
| 6574 |
* c-ada-spec.c: Include stringpool.h. |
| 6575 |
(has_static_fields): Return false for incomplete types. |
| 6576 |
(is_tagged_type): Likewise. |
| 6577 |
(has_nontrivial_methods): Likewise. |
| 6578 |
(dump_ada_node) <INTEGER_TYPE>: Deal specifically with __int128. |
| 6579 |
(struct overloaded_name_hash): New structure. |
| 6580 |
(struct overloaded_name_hasher): Likewise. |
| 6581 |
(overloaded_names): New global variable. |
| 6582 |
(init_overloaded_names): New static function. |
| 6583 |
(overloaded_name_p): New predicate. |
| 6584 |
(dump_ada_declaration) <TYPE_DECL>: Tidy up and set TREE_VISITED |
| 6585 |
on the TYPE_STUB_DECL of the original type of a typedef, if any. |
| 6586 |
<FUNCTION_DECL>: Bail out for an unsupported overloaded name. |
| 6587 |
Remove always-true condition and dump forward types. |
| 6588 |
(dump_ada_specs): Delete overloaded_names. |
| 6589 |
|
| 6590 |
2018-11-20 Martin Sebor <[email protected]> |
| 6591 |
|
| 6592 |
* c-attribs.c (type_for_vector_size): New function. |
| 6593 |
(type_valid_for_vector_size): Same. |
| 6594 |
(handle_vector_size_attribute): Move code to the functions above |
| 6595 |
and call them. |
| 6596 |
(validate_attribute, has_attribute): New functions. |
| 6597 |
* c-common.h (has_attribute): Declare. |
| 6598 |
(rid): Add RID_HAS_ATTRIBUTE_EXPRESSION. |
| 6599 |
* c-common.c (c_common_resword): Same. |
| 6600 |
|
| 6601 |
2018-11-16 Jason Merrill <[email protected]> |
| 6602 |
|
| 6603 |
* c-lex.c (c_common_has_attribute): Handle likely/unlikely. |
| 6604 |
* c-attribs.c (attr_cold_hot_exclusions): Make public. |
| 6605 |
|
| 6606 |
2018-11-16 Jakub Jelinek <[email protected]> |
| 6607 |
|
| 6608 |
PR middle-end/87854 |
| 6609 |
* c-common.c (fix_string_type): Reject string literals larger than |
| 6610 |
TYPE_MAX_VALUE (ssizetype) bytes. |
| 6611 |
|
| 6612 |
2018-11-15 Martin Sebor <[email protected]> |
| 6613 |
|
| 6614 |
PR c++/87541 |
| 6615 |
PR c++/87542 |
| 6616 |
* c-attribs.c (positional_argument): New function. |
| 6617 |
(handle_alloc_size_attribute): Use it and simplify. |
| 6618 |
(handle_alloc_align_attribute): Same. |
| 6619 |
(handle_assume_aligned_attribute): Same. |
| 6620 |
(handle_nonnull_attribute): Same. |
| 6621 |
* c-common.c (check_function_arguments): Pass fntype to |
| 6622 |
check_function_format. |
| 6623 |
* c-common.h (check_function_format): Add an argument. |
| 6624 |
(PosArgFlags, positional_argument): Declare new type and function. |
| 6625 |
* c-format.c (decode_format_attr): Add arguments. |
| 6626 |
(check_format_string, get_constant): Same. |
| 6627 |
(convert_format_name_to_system_name): Adjust. |
| 6628 |
|
| 6629 |
2018-11-15 David Malcolm <[email protected]> |
| 6630 |
|
| 6631 |
PR other/19165 |
| 6632 |
* c-opts.c (c_diagnostic_finalizer): Add diagnostic_t param. |
| 6633 |
|
| 6634 |
2018-11-14 Jakub Jelinek <[email protected]> |
| 6635 |
|
| 6636 |
P1236R1 - Signed integers are two's complement |
| 6637 |
* c-warn.c (maybe_warn_shift_overflow): Don't warn for c++2a. |
| 6638 |
* c-ubsan.c (ubsan_instrument_shift): Make signed shifts |
| 6639 |
with in-range second operand well defined for -std=c++2a. |
| 6640 |
|
| 6641 |
PR other/88007 |
| 6642 |
* c-common.c (parse_optimize_options): Allocate option string from |
| 6643 |
opts_obstack rather than as GC memory. Move the allocation after |
| 6644 |
warning for invalid option. |
| 6645 |
|
| 6646 |
2018-11-13 David Malcolm <[email protected]> |
| 6647 |
|
| 6648 |
* c-common.c (c_get_substring_location): Update for renaming of |
| 6649 |
get_source_location_for_substring to get_location_within_string. |
| 6650 |
* c-lex.c: Replace "source_location" with "location_t". |
| 6651 |
* c-opts.c: Likewise. |
| 6652 |
* c-ppoutput.c: Likewise. |
| 6653 |
|
| 6654 |
2018-11-13 Martin Sebor <[email protected]> |
| 6655 |
|
| 6656 |
PR middle-end/81824 |
| 6657 |
* c-attribs.c (handle_copy_attribute): Exclude inlining attributes. |
| 6658 |
(handle_tls_model_attribute): Improve diagnostics. |
| 6659 |
|
| 6660 |
2018-11-12 Jason Merrill <[email protected]> |
| 6661 |
|
| 6662 |
* c-cppbuiltin.c (c_cpp_builtins): Define |
| 6663 |
__cpp_impl_destroying_delete. |
| 6664 |
|
| 6665 |
* c-cppbuiltin.c (c_cpp_builtins): Change __cpp_explicit_bool to |
| 6666 |
__cpp_conditional_explicit. |
| 6667 |
|
| 6668 |
2018-11-09 Martin Sebor <[email protected]> |
| 6669 |
|
| 6670 |
PR middle-end/81824 |
| 6671 |
* c-attribs.c (handle_copy_attribute): New function. |
| 6672 |
|
| 6673 |
2018-11-09 Martin Sebor <[email protected]> |
| 6674 |
|
| 6675 |
PR c/87795 |
| 6676 |
* c-common.c (check_user_alignment): Use MAX_OFILE_ALIGNMENT. |
| 6677 |
|
| 6678 |
2018-11-08 Jakub Jelinek <[email protected]> |
| 6679 |
|
| 6680 |
* c-common.h (c_finish_omp_taskgroup): Add CLAUSES argument. |
| 6681 |
(c_finish_omp_atomic): Replace bool SEQ_CST argument with |
| 6682 |
enum omp_memory_order MEMORY_ORDER. |
| 6683 |
(c_finish_omp_flush): Add MO argument. |
| 6684 |
(c_omp_depend_t_p, c_finish_omp_depobj): Declare. |
| 6685 |
(c_finish_omp_for): Add FINAL_P argument. |
| 6686 |
* c-omp.c: Include memmodel.h. |
| 6687 |
(c_finish_omp_taskgroup): Add CLAUSES argument. Set |
| 6688 |
OMP_TASKGROUP_CLAUSES to it. |
| 6689 |
(c_finish_omp_atomic): Replace bool SEQ_CST argument with |
| 6690 |
enum omp_memory_order MEMORY_ORDER. Set OMP_ATOMIC_MEMORY_ORDER |
| 6691 |
instead of OMP_ATOMIC_SEQ_CST. |
| 6692 |
(c_omp_depend_t_p, c_finish_omp_depobj): New functions. |
| 6693 |
(c_finish_omp_flush): Add MO argument, if not MEMMODEL_LAST, emit |
| 6694 |
__atomic_thread_fence call with the given value. |
| 6695 |
(check_omp_for_incr_expr): Formatting fixes. |
| 6696 |
(c_finish_omp_for): Add FINAL_P argument. Allow NE_EXPR |
| 6697 |
even in OpenMP loops, diagnose if NE_EXPR and incr expression |
| 6698 |
is not constant expression 1 or -1. Transform NE_EXPR loops |
| 6699 |
with iterators pointers to VLA into LT_EXPR or GT_EXPR loops. |
| 6700 |
(c_omp_check_loop_iv_r): Look for orig decl of C++ range for |
| 6701 |
loops too. |
| 6702 |
(c_omp_split_clauses): Add support for combined |
| 6703 |
#pragma omp parallel master and |
| 6704 |
#pragma omp {,parallel }master taskloop{, simd} constructs. |
| 6705 |
Handle OMP_CLAUSE_IN_REDUCTION. Handle OMP_CLAUSE_REDUCTION_TASK. |
| 6706 |
Handle OMP_CLAUSE_NONTEMPORAL. Handle splitting OMP_CLAUSE_IF |
| 6707 |
also to OMP_SIMD. Copy OMP_CLAUSE_LASTPRIVATE_CONDITIONAL. |
| 6708 |
(c_omp_predetermined_sharing): Don't return |
| 6709 |
OMP_CLAUSE_DEFAULT_SHARED for const qualified decls. |
| 6710 |
* c-pragma.c (omp_pragmas): Add PRAGMA_OMP_DEPOBJ and |
| 6711 |
PRAGMA_OMP_REQUIRES. |
| 6712 |
* c-pragma.h (enum pragma_kind): Likewise. |
| 6713 |
(enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_NONTEMPORAL |
| 6714 |
and PRAGMA_OMP_CLAUSE_{IN,TASK}_REDUCTION. |
| 6715 |
|
| 6716 |
2018-11-08 David Malcolm <[email protected]> |
| 6717 |
|
| 6718 |
* c-format.c (gcc_dump_printf_char_table): Add entry for %f. |
| 6719 |
|
| 6720 |
2018-11-08 David Malcolm <[email protected]> |
| 6721 |
|
| 6722 |
* c-format.c (local_cgraph_node_ptr_node): New variable. |
| 6723 |
(gcc_dump_printf_char_table): Add entry for %C. |
| 6724 |
(get_pointer_to_named_type): New function, taken from the handling |
| 6725 |
code for "gimple *" from... |
| 6726 |
(init_dynamic_diag_info): ...here. Add handling for |
| 6727 |
"cgraph_node *". |
| 6728 |
* c-format.h (T_CGRAPH_NODE): New. |
| 6729 |
|
| 6730 |
2018-10-19 Jason Merrill <[email protected]> |
| 6731 |
|
| 6732 |
* c-cppbuiltin.c (c_cpp_builtins): Add |
| 6733 |
__cpp_nontype_template_parameter_class. |
| 6734 |
|
| 6735 |
2018-10-31 Nathan Sidwell <[email protected]> |
| 6736 |
|
| 6737 |
* c-opts.c (c_finish_options): Force command line macro |
| 6738 |
location. Refactor to avoid repeating main debug hook. |
| 6739 |
(push_command_line_include): Clarify comment. |
| 6740 |
|
| 6741 |
* c-opts.c (c_finish_options): Adjust cpp_force_token_locations call. |
| 6742 |
|
| 6743 |
2018-10-30 Martin Sebor <[email protected]> |
| 6744 |
|
| 6745 |
PR middle-end/87041 |
| 6746 |
* c-format.c (check_format_types): Avoid diagnosing null pointer |
| 6747 |
arguments to printf-family of functions. |
| 6748 |
|
| 6749 |
2018-10-30 Marek Polacek <[email protected]> |
| 6750 |
|
| 6751 |
Implement P0892R2, explicit(bool). |
| 6752 |
* c-cppbuiltin.c (c_cpp_builtins): Define __cpp_explicit_bool. |
| 6753 |
|
| 6754 |
2018-10-29 David Malcolm <[email protected]> |
| 6755 |
|
| 6756 |
* name-hint.h (name_hint::take_deferred): New member function. |
| 6757 |
|
| 6758 |
2018-10-29 David Malcolm <[email protected]> |
| 6759 |
|
| 6760 |
PR c++/56856 |
| 6761 |
* c-common.c (check_function_sentinel): Call fold_for_warn on the |
| 6762 |
argument. |
| 6763 |
(check_function_restrict): Rename param "argarray" to |
| 6764 |
"unfolded_argarray", and make a copy named "argarray", calling |
| 6765 |
fold_for_warn on each argument. |
| 6766 |
(check_function_arguments): Add note about responsibility for |
| 6767 |
folding the arguments. |
| 6768 |
|
| 6769 |
2018-10-17 Joseph Myers <[email protected]> |
| 6770 |
|
| 6771 |
* c-common.c (flag_isoc2x): New variable. |
| 6772 |
* c-common.h (clk_c): Update comment to reference C2X. |
| 6773 |
(flag_isoc99, flag_isoc11): Update comments to reference future |
| 6774 |
standard versions in general. |
| 6775 |
(flag_isoc2x): Declare. |
| 6776 |
* c-opts.c (set_std_c2x): New function. |
| 6777 |
(c_common_handle_option): Handle -std=c2x and -std=gnu2x. |
| 6778 |
(set_std_c89, set_std_c99, set_std_c11, set_std_c17): Set |
| 6779 |
flag_isoc2x to 0. |
| 6780 |
* c.opt (Wc11-c2x-compat, std=c2x, std=gnu2x): New options. |
| 6781 |
|
| 6782 |
2018-10-17 Joseph Myers <[email protected]> |
| 6783 |
|
| 6784 |
* c.opt (std=c17, std=c18, std=gnu17, std=gnu18, std=iso9899:2017) |
| 6785 |
(std=iso9899:2018): Document C17 as published in 2018. |
| 6786 |
|
| 6787 |
2018-10-12 Christophe Lyon <[email protected]> |
| 6788 |
|
| 6789 |
PR c++/87364 |
| 6790 |
* c-pretty-print.c (c_pretty_printer::constant): Fix typo. |
| 6791 |
|
| 6792 |
2018-10-11 Will Wray <[email protected]> |
| 6793 |
|
| 6794 |
PR c++/87364 |
| 6795 |
* c-pretty-print.h (pp_c_type_cast): Prototype. |
| 6796 |
(pp_c_integer_constant): Likewise. |
| 6797 |
* c-pretty-print.c (pp_c_type_cast): No longer static. |
| 6798 |
(pp_c_integer_constant): Likewise. |
| 6799 |
(pp_c_enumeration_constant): Fix loop termination when finding |
| 6800 |
name of constant. No longer returns a value. Call |
| 6801 |
pp_c_integer_constant. |
| 6802 |
(c_pretty_printer::constant): Update for changes to |
| 6803 |
pp_c_enumeration_constant. |
| 6804 |
|
| 6805 |
2018-10-11 Jakub Jelinek <[email protected]> |
| 6806 |
|
| 6807 |
* c-lex.c (c_common_has_attribute): Return 201803 instead of 20180312 |
| 6808 |
for no_unique_address. |
| 6809 |
|
| 6810 |
2018-10-09 David Malcolm <[email protected]> |
| 6811 |
|
| 6812 |
* c-common.c (c_option_controlling_cpp_error): Rename to... |
| 6813 |
(c_option_controlling_cpp_diagnostic): ...this, and convert |
| 6814 |
"reason" from int to enum. |
| 6815 |
(c_cpp_error): Rename to... |
| 6816 |
(c_cpp_diagnostic): ...this, converting level and reason to enums. |
| 6817 |
* c-common.h (c_cpp_error): Rename to... |
| 6818 |
(c_cpp_diagnostic): ...this, converting level and reason to enums. |
| 6819 |
* c-opts.c (c_common_init_options): Update for renaming. |
| 6820 |
|
| 6821 |
2018-10-08 Richard Sandiford <[email protected]> |
| 6822 |
|
| 6823 |
PR c/87286 |
| 6824 |
* c-common.c (vector_types_compatible_elements_p): Use |
| 6825 |
INTEGRAL_TYPE_P instead of checking only for INTEGER_TYPE. |
| 6826 |
|
| 6827 |
2018-10-04 Vinay Kumar <[email protected]> |
| 6828 |
|
| 6829 |
* c-attribs.c (get_priority): Add a warning flag warn_prio_ctor_dtor |
| 6830 |
to generate constructor destructor priority warning. |
| 6831 |
* c.opt (-Wprio-ctor-dtor): New option. |
| 6832 |
|
| 6833 |
2018-10-01 Jason Merrill <[email protected]> |
| 6834 |
|
| 6835 |
* c-lex.c (c_common_has_attribute): Add no_unique_address. |
| 6836 |
|
| 6837 |
2018-10-01 Eric Botcazou <[email protected]> |
| 6838 |
|
| 6839 |
* c-ada-spec.c (get_underlying_decl): Get to the main type variant. |
| 6840 |
(dump_ada_node): Add const keyword. |
| 6841 |
|
| 6842 |
2018-09-25 Martin Liska <[email protected]> |
| 6843 |
|
| 6844 |
* c-common.c (c_common_truthvalue_conversion): |
| 6845 |
Remove Pascal from documentation. |
| 6846 |
|
| 6847 |
2018-09-21 Eric Botcazou <[email protected]> |
| 6848 |
|
| 6849 |
* c-ada-spec.c: Include diagnostic.h. |
| 6850 |
(dump_ada_declaration) <RECORD_TYPE>: Issue a warning on packed layout. |
| 6851 |
|
| 6852 |
2018-09-19 Marek Polacek <[email protected]> |
| 6853 |
|
| 6854 |
* c.opt (Wclass-conversion): New. |
| 6855 |
|
| 6856 |
2018-09-17 David Malcolm <[email protected]> |
| 6857 |
|
| 6858 |
* c-format.c (range_label_for_format_type_mismatch::get_text): |
| 6859 |
Update for new param. |
| 6860 |
|
| 6861 |
2018-09-17 David Malcolm <[email protected]> |
| 6862 |
|
| 6863 |
* c-format.c (format_warning_at_char): Update for introduction of |
| 6864 |
format_string_diagnostic_t. |
| 6865 |
(format_type_warning): Likewise. |
| 6866 |
|
| 6867 |
2018-09-17 Martin Jambor <[email protected]> |
| 6868 |
|
| 6869 |
PR c/63886 |
| 6870 |
* c.opt (Wabsolute-value): New. |
| 6871 |
|
| 6872 |
2018-09-06 Bernd Edlinger <[email protected]> |
| 6873 |
|
| 6874 |
* c-common.c (complete_flexible_array_elts): New helper function. |
| 6875 |
* c-common.h (complete_flexible_array_elts): Declare. |
| 6876 |
|
| 6877 |
2018-09-02 Bernd Edlinger <[email protected]> |
| 6878 |
|
| 6879 |
* c-common.c (braced_list_to_string): Remove eval parameter. |
| 6880 |
Add some more checks. Always create zero-terminated STRING_CST. |
| 6881 |
* c-common.h (braced_list_to_string): Adjust prototype. |
| 6882 |
|
| 6883 |
2018-08-27 David Malcolm <[email protected]> |
| 6884 |
|
| 6885 |
PR 87091 |
| 6886 |
* c-common.c (c_cpp_error): Update for conversion of show_caret_p |
| 6887 |
to a tri-state. |
| 6888 |
(maybe_suggest_missing_token_insertion): Likewise. |
| 6889 |
(maybe_add_include_fixit): Add param "override_location". If set, |
| 6890 |
and source-printing is enabled, then override the rich_location's |
| 6891 |
primary location with that of the insertion point for the fix-it |
| 6892 |
hint, marking it with SHOW_LINES_WITHOUT_RANGE. |
| 6893 |
* c-common.h (extern void maybe_add_include_fixit): Add bool |
| 6894 |
param. |
| 6895 |
* c-format.c (selftest::test_type_mismatch_range_labels): Update |
| 6896 |
for conversion of show_caret_p to a tri-state. |
| 6897 |
* c-warn.c (warn_for_restrict): Likewise. |
| 6898 |
* known-headers.cc |
| 6899 |
(suggest_missing_header::~suggest_missing_header): Update call to |
| 6900 |
maybe_add_include_fixit to suggest overriding the location, as it |
| 6901 |
is for a note. |
| 6902 |
|
| 6903 |
2018-08-27 Martin Liska <[email protected]> |
| 6904 |
|
| 6905 |
* c-common.c (check_function_restrict): Use new function |
| 6906 |
fndecl_built_in_p and remove check for FUNCTION_DECL if |
| 6907 |
possible. |
| 6908 |
(check_builtin_function_arguments): Likewise. |
| 6909 |
(reject_gcc_builtin): Likewise. |
| 6910 |
* c-warn.c (sizeof_pointer_memaccess_warning): Likewise. |
| 6911 |
|
| 6912 |
2018-08-26 Marek Polacek <[email protected]> |
| 6913 |
|
| 6914 |
PR c++/87029, Implement -Wredundant-move. |
| 6915 |
* c.opt (Wredundant-move): New option. |
| 6916 |
|
| 6917 |
2018-08-21 Marek Polacek <[email protected]> |
| 6918 |
|
| 6919 |
PR c++/86981, Implement -Wpessimizing-move. |
| 6920 |
* c.opt (Wpessimizing-move): New option. |
| 6921 |
|
| 6922 |
2018-08-20 David Malcolm <[email protected]> |
| 6923 |
|
| 6924 |
PR other/84889 |
| 6925 |
* c-attribs.c (common_handle_aligned_attribute): Add |
| 6926 |
auto_diagnostic_group instance. |
| 6927 |
* c-indentation.c (warn_for_misleading_indentation): Likewise. |
| 6928 |
* c-opts.c (c_common_post_options): Likewise. |
| 6929 |
* c-warn.c (warn_logical_not_parentheses): Likewise. |
| 6930 |
(warn_duplicated_cond_add_or_warn): Likewise. |
| 6931 |
(warn_for_multistatement_macros): Likewise. |
| 6932 |
|
| 6933 |
2018-08-20 Nathan Sidwell <[email protected]> |
| 6934 |
|
| 6935 |
* c-ada-spec.c (macro_length, dump_ada_macros): Adjust macro parm |
| 6936 |
access. |
| 6937 |
|
| 6938 |
2018-08-17 Nathan Sidwell <[email protected]> |
| 6939 |
|
| 6940 |
* c-cppbuiltin.c (struct lazy_hex_fp_value_struct): Remove macro |
| 6941 |
field. |
| 6942 |
(laxy_hex_fp_value_count): Make unsigned. |
| 6943 |
(lazy_hex_fp_value): Provided with macro & lazy number. Directly |
| 6944 |
manipulate the macro. |
| 6945 |
(builtin_defin_with_hex_fp_value): Adjust callback name, use |
| 6946 |
cpp_define_lazily. |
| 6947 |
|
| 6948 |
2018-08-17 David Malcolm <[email protected]> |
| 6949 |
|
| 6950 |
* c-format.c (enum format_type): Add gcc_dump_printf_format_type. |
| 6951 |
(gcc_dump_printf_length_specs): New. |
| 6952 |
(gcc_dump_printf_flag_pairs): New. |
| 6953 |
(gcc_dump_printf_flag_specs): New. |
| 6954 |
(gcc_dump_printf_char_table): New. |
| 6955 |
(format_types_orig): Add entry for "gcc_dump_printf". |
| 6956 |
(init_dynamic_diag_info): Set up length_char_specs and |
| 6957 |
conversion_specs for gcc_dump_printf_format_type. |
| 6958 |
(handle_format_attribute): Handle gcc_dump_printf_format_type. |
| 6959 |
|
| 6960 |
2018-08-17 Nathan Sidwell <[email protected]> |
| 6961 |
|
| 6962 |
* c-ada-spec.c (macro_length, dump_ada_macros): Constify. |
| 6963 |
|
| 6964 |
* c-ada-spec.c: Don't #include "cpp-id-data.h" |
| 6965 |
* c-cppbuiltin.c: Likewise. |
| 6966 |
|
| 6967 |
2018-08-17 Martin Liska <[email protected]> |
| 6968 |
|
| 6969 |
* c.opt: Remove Warn, Init and Report for options with |
| 6970 |
Ignore/Deprecated flag. Warning is done automatically for |
| 6971 |
Deprecated flags. |
| 6972 |
|
| 6973 |
2018-08-16 David Malcolm <[email protected]> |
| 6974 |
|
| 6975 |
PR c++/70693 |
| 6976 |
* c-common.c (selftest::c_family_tests): Call |
| 6977 |
selftest::c_indentation_c_tests. |
| 6978 |
* c-common.h (selftest::c_indentation_c_tests): New decl. |
| 6979 |
* c-indentation.c: Include "selftest.h". |
| 6980 |
(next_tab_stop): Add "tab_width" param, rather than accessing |
| 6981 |
cpp_opts. |
| 6982 |
(get_visual_column): Likewise. Clarify comment. Bulletproof |
| 6983 |
against reading past the end of the line. |
| 6984 |
(get_first_nws_vis_column): Add "tab_width" param. |
| 6985 |
(detect_intervening_unindent): Likewise. |
| 6986 |
(should_warn_for_misleading_indentation): Read tab width from |
| 6987 |
cpp_opts and pass around. |
| 6988 |
(selftest::test_next_tab_stop): New test. |
| 6989 |
(selftest::assert_get_visual_column_succeeds): New function. |
| 6990 |
(ASSERT_GET_VISUAL_COLUMN_SUCCEEDS): New macro. |
| 6991 |
(selftest::assert_get_visual_column_fails): New function. |
| 6992 |
(ASSERT_GET_VISUAL_COLUMN_FAILS): New macro. |
| 6993 |
(selftest::test_get_visual_column): New test. |
| 6994 |
(selftest::c_indentation_c_tests): New function. |
| 6995 |
|
| 6996 |
2018-08-16 Nathan Sidwell <[email protected]> |
| 6997 |
|
| 6998 |
* c-ada-spec.c (count_ada_macro): Use cpp_user_macro_p. |
| 6999 |
(store_ada_macro): Likewise. |
| 7000 |
* c-ppoutput.c (cb_used_define, dump_macro): Likewise. |
| 7001 |
* c-spellcheck.cc (should-suggest_as_macro_p): Likewise, |
| 7002 |
|
| 7003 |
2018-08-15 David Malcolm <[email protected]> |
| 7004 |
|
| 7005 |
* c-format.c: Include "selftest-diagnostic.h" and |
| 7006 |
"gcc-rich-location.h". |
| 7007 |
(format_warning_at_char): Pass NULL for new label params of |
| 7008 |
format_warning_va. |
| 7009 |
(class indirection_suffix): New class. |
| 7010 |
(class range_label_for_format_type_mismatch): New class. |
| 7011 |
(format_type_warning): Move logic for generating "*" suffix to |
| 7012 |
class indirection_suffix. Create "fmt_label" and "param_label" |
| 7013 |
to show their types, and pass them to the |
| 7014 |
format_warning_at_substring calls. |
| 7015 |
(selftest::test_type_mismatch_range_labels): New test. |
| 7016 |
(selftest::c_format_c_tests): Call it. |
| 7017 |
|
| 7018 |
2018-08-13 Martin Sebor <[email protected]> |
| 7019 |
|
| 7020 |
PR tree-optimization/71625 |
| 7021 |
* c-common.c (braced_list_to_string): New function. |
| 7022 |
* c-common.h (braced_list_to_string): Declare it. |
| 7023 |
|
| 7024 |
2018-08-08 Nathan Sidwell <[email protected]> |
| 7025 |
|
| 7026 |
* c-common.c (try_to_locate_new_include_inertion_point): Use |
| 7027 |
linemap_included_from_linemap. |
| 7028 |
* c-lex.c (fe_file_change): Use linemap_included_from. |
| 7029 |
* c-ppoutput.c (pp_file_change): Likewise. |
| 7030 |
|
| 7031 |
2018-08-01 Martin Sebor <[email protected]> |
| 7032 |
|
| 7033 |
PR tree-optimization/86650 |
| 7034 |
* c-format.c (gcc_tdiag_char_table): Update comment for "%G". |
| 7035 |
(gcc_cdiag_char_table, gcc_cxxdiag_char_table): Same. |
| 7036 |
(init_dynamic_diag_info): Update from "gcall *" to "gimple *". |
| 7037 |
* c-format.h (T89_G): Update to be "gimple *" rather than |
| 7038 |
"gcall *". |
| 7039 |
(local_gcall_ptr_node): Rename... |
| 7040 |
(local_gimple_ptr_node): ...to this. |
| 7041 |
|
| 7042 |
2018-07-31 David Malcolm <[email protected]> |
| 7043 |
|
| 7044 |
* c-format.c (PP_FORMAT_CHAR_TABLE): New macro, based on existing |
| 7045 |
table entries for gcc_diag_char_table, and the 'Z' entry from |
| 7046 |
gcc_tdiag_char_table, changing the "chain" entry for 'Z' from |
| 7047 |
&gcc_tdiag_char_table[0] to &gcc_diag_char_table[0]. |
| 7048 |
(gcc_diag_char_table): Use PP_FORMAT_CHAR_TABLE, implicitly |
| 7049 |
adding missing "Z" for this table. Remove erroneous "G" and "K" |
| 7050 |
entries. |
| 7051 |
(gcc_tdiag_char_table): Use PP_FORMAT_CHAR_TABLE. Remove "v". |
| 7052 |
(gcc_cdiag_char_table): Use PP_FORMAT_CHAR_TABLE. |
| 7053 |
(gcc_cxxdiag_char_table): Use PP_FORMAT_CHAR_TABLE. Remove "v". |
| 7054 |
|
| 7055 |
2018-07-31 Richard Earnshaw <[email protected]> |
| 7056 |
|
| 7057 |
* c-common.c (speculation_safe_resolve_call): New function. |
| 7058 |
(speculation_safe_resolve_params): New function. |
| 7059 |
(speculation_safe_resolve_return): New function. |
| 7060 |
(resolve_overloaded_builtin): Handle __builtin_speculation_safe_value. |
| 7061 |
* c-cppbuiltin.c (c_cpp_builtins): Add pre-define for |
| 7062 |
__HAVE_SPECULATION_SAFE_VALUE. |
| 7063 |
|
| 7064 |
2018-07-20 David Malcolm <[email protected]> |
| 7065 |
|
| 7066 |
* c-common.c (c_cpp_error): Remove redundant "line_table" |
| 7067 |
parameter from call to rich_location::set_range. |
| 7068 |
(maybe_suggest_missing_token_insertion): Likewise. |
| 7069 |
|
| 7070 |
2018-07-20 Martin Sebor <[email protected]> |
| 7071 |
|
| 7072 |
PR middle-end/82063 |
| 7073 |
* c.opt (-Warray-bounds): Remove redundant -Wall. |
| 7074 |
|
| 7075 |
2018-07-20 Martin Sebor <[email protected]> |
| 7076 |
|
| 7077 |
PR middle-end/82063 |
| 7078 |
* c-common.h (c_common_handle_option): Change function argument |
| 7079 |
to HOST_WIDE_INT. |
| 7080 |
* c-opts.c (c_common_init_options): Same. |
| 7081 |
(c_common_handle_option): Same. Remove special handling of |
| 7082 |
OPT_Walloca_larger_than_ and OPT_Wvla_larger_than_. |
| 7083 |
* c.opt (-Walloc-size-larger-than, -Walloca-larger-than): Change |
| 7084 |
options to take a HOST_WIDE_INT argument and accept a byte-size |
| 7085 |
suffix. Initialize. |
| 7086 |
(-Wvla-larger-than): Same. |
| 7087 |
(-Wno-alloc-size-larger-than, -Wno-alloca-larger-than): New. |
| 7088 |
(-Wno-vla-larger-than): Same. |
| 7089 |
|
| 7090 |
2018-07-12 Jakub Jelinek <[email protected]> |
| 7091 |
|
| 7092 |
* c-attribs.c (c_common_attribute_table): Add |
| 7093 |
"omp declare target implicit" attribute. |
| 7094 |
|
| 7095 |
2018-07-12 Richard Biener <[email protected]> |
| 7096 |
|
| 7097 |
PR c/86453 |
| 7098 |
* c-attribs.c (handle_packed_attribute): Do not build a variant |
| 7099 |
type with TYPE_PACKED, instead ignore the attribute if we may |
| 7100 |
not apply to the original type. |
| 7101 |
|
| 7102 |
2018-07-10 Jakub Jelinek <[email protected]> |
| 7103 |
|
| 7104 |
PR c++/86443 |
| 7105 |
* c-omp.c (c_omp_check_loop_iv_r, c_omp_check_loop_iv): Allow declv |
| 7106 |
to contain TREE_LIST for both the original class iterator and the |
| 7107 |
"last" helper var. |
| 7108 |
|
| 7109 |
2018-07-07 Eric Botcazou <[email protected]> |
| 7110 |
|
| 7111 |
* c-ada-spec.c (to_ada_name): Remove index parameter. |
| 7112 |
(pp_ada_tree_identifier): Likewise. |
| 7113 |
(dump_ada_macros): Adjust call to to_ada_name. |
| 7114 |
(struct overloaded_name_hash): Delete. |
| 7115 |
(struct overloaded_name_hasher): Likewise. |
| 7116 |
(overloaded_names): Likewise. |
| 7117 |
(compute_overloading_index): Likewise. |
| 7118 |
(dump_ada_decl_name): Do not call compute_overloading_index and |
| 7119 |
adjust calls to pp_ada_tree_identifier. |
| 7120 |
(dump_ada_double_name): Adjust calls to pp_ada_tree_identifier. |
| 7121 |
(dump_ada_import): Add spc parameter and switch to aspect syntax. |
| 7122 |
(dump_ada_function_declaration): Adjust call to pp_ada_tree_identifier. |
| 7123 |
(dump_ada_enum_type): Remove type and display_convention parameters. |
| 7124 |
Adjust calls to pp_ada_tree_identifier. |
| 7125 |
(dump_ada_node): Likewise and for dump_ada_structure. |
| 7126 |
(dump_nested_type) <ENUMERAL_TYPE>: Adjust call to dump_ada_enum_type |
| 7127 |
and tidy up. |
| 7128 |
<RECORD_TYPE>: Adjust call to dump_ada_structure and switch to aspect |
| 7129 |
syntax. |
| 7130 |
(print_constructor): Adjust call to pp_ada_tree_identifier. |
| 7131 |
(print_destructor): Likewise. |
| 7132 |
(dump_ada_declaration): Switch to aspect syntax. |
| 7133 |
(dump_ada_structure): Likewise and tidy up. Replace display_convention |
| 7134 |
parameter with nested parameter. |
| 7135 |
(dump_ads): Emit pragma Ada_2012 in lieu of pragma Ada_2005. |
| 7136 |
(dump_ada_specs): Do not delete overloaded_names table. |
| 7137 |
|
| 7138 |
2018-07-06 Peter Bergner <[email protected]> |
| 7139 |
|
| 7140 |
PR target/86324 |
| 7141 |
* c-attribs.c (handle_mode_attribute): Call translate_mode_attribute |
| 7142 |
target hook. |
| 7143 |
|
| 7144 |
2018-07-05 Nathan Sidwell <[email protected]> |
| 7145 |
|
| 7146 |
* c-lex.c (fe_file_change): Check SYSTEM_IMPLICIT_EXTERN_C not |
| 7147 |
NO_IMPLICIT_EXTERN_C. |
| 7148 |
|
| 7149 |
2018-06-28 Martin Liska <[email protected]> |
| 7150 |
|
| 7151 |
* cppspec.c: Include opt-suggestions.h. |
| 7152 |
|
| 7153 |
2018-06-20 Chung-Lin Tang <[email protected]> |
| 7154 |
Thomas Schwinge <[email protected]> |
| 7155 |
Cesar Philippidis <[email protected]> |
| 7156 |
|
| 7157 |
* c-pragma.h (enum pragma_omp_clause): Add |
| 7158 |
PRAGMA_OACC_CLAUSE_{FINALIZE,IF_PRESENT}. Remove |
| 7159 |
PRAGMA_OACC_CLAUSE_PRESENT_OR_{COPY,COPYIN,COPYOUT,CREATE}. |
| 7160 |
|
| 7161 |
2018-06-20 Jakub Jelinek <[email protected]> |
| 7162 |
|
| 7163 |
PR c++/86210 |
| 7164 |
* c-common.c (check_nonnull_arg): Use fold_for_warn. Adjust obsolete |
| 7165 |
comment. |
| 7166 |
|
| 7167 |
2018-06-18 Martin Sebor <[email protected]> |
| 7168 |
|
| 7169 |
PR middle-end/85602 |
| 7170 |
* c-warn.c (sizeof_pointer_memaccess_warning): Check for attribute |
| 7171 |
nonstring. |
| 7172 |
|
| 7173 |
2018-06-16 Kugan Vivekanandarajah <[email protected]> |
| 7174 |
|
| 7175 |
* c-common.c (c_common_truthvalue_conversion): Handle ABSU_EXPR. |
| 7176 |
|
| 7177 |
2018-06-13 Jason Merrill <[email protected]> |
| 7178 |
|
| 7179 |
* c-opts.c (c_common_post_options): Warn about useless -Wabi. |
| 7180 |
(c_common_handle_option) [OPT_Wabi_]: Remove flag_abi_compat_version |
| 7181 |
handling. |
| 7182 |
|
| 7183 |
PR c++/86094 - wrong code with defaulted move ctor. |
| 7184 |
* c-opts.c (c_common_post_options): Bump the current ABI version to |
| 7185 |
13. Set warn_abi_version and flag_abi_compat_version to the current |
| 7186 |
version rather than 0. Fix defaulting flag_abi_compat_version from |
| 7187 |
warn_abi_version. |
| 7188 |
|
| 7189 |
2018-06-12 Martin Sebor <[email protected]> |
| 7190 |
|
| 7191 |
PR c/85931 |
| 7192 |
* c-warn.c (sizeof_pointer_memaccess_warning): Avoid warning when |
| 7193 |
sizeof source and destination yields the same value. |
| 7194 |
|
| 7195 |
2018-06-12 Martin Liska <[email protected]> |
| 7196 |
|
| 7197 |
* c.opt: Make MPX-related options as Deprecated. |
| 7198 |
|
| 7199 |
2018-06-08 David Malcolm <[email protected]> |
| 7200 |
|
| 7201 |
* c-pretty-print.c (c_pretty_printer::statement): Use TDF_NONE |
| 7202 |
rather than 0. |
| 7203 |
|
| 7204 |
2018-06-08 Martin Liska <[email protected]> |
| 7205 |
|
| 7206 |
* c-attribs.c (handle_bnd_variable_size_attribute): Remove support |
| 7207 |
for MPX (macros, related functions, fields in cgraph_node, ...). |
| 7208 |
(handle_bnd_legacy): Likewise. |
| 7209 |
(handle_bnd_instrument): Likewise. |
| 7210 |
* c.opt: Likewise. |
| 7211 |
|
| 7212 |
2018-06-06 Jakub Jelinek <[email protected]> |
| 7213 |
|
| 7214 |
PR c++/86068 |
| 7215 |
* c-cppbuiltin.c (c_cpp_builtins): Fix a typo, set |
| 7216 |
__cpp_transactional_memory to 201500 instead of 210500. |
| 7217 |
|
| 7218 |
2018-06-06 Jason Merrill <[email protected]> |
| 7219 |
|
| 7220 |
PR c++/85710 - ICE with -Wmemset-elt-size. |
| 7221 |
* c-warn.c (warn_for_memset): Don't crash on incomplete element type. |
| 7222 |
|
| 7223 |
2018-06-01 Jason Merrill <[email protected]> |
| 7224 |
|
| 7225 |
* c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_deduction_guides to |
| 7226 |
201703. |
| 7227 |
|
| 7228 |
2018-06-01 Eric Botcazou <[email protected]> |
| 7229 |
|
| 7230 |
* c-ada-spec.c (dump_ada_declaration) <TYPE_DECL>: Generate a forward |
| 7231 |
declaration for a typedef independently of whether the declaration of |
| 7232 |
the subtype is generated. |
| 7233 |
|
| 7234 |
2018-05-31 Martin Sebor <[email protected]> |
| 7235 |
|
| 7236 |
PR c/82063 |
| 7237 |
* c.opt (-Wno-alloc-size-larger-than): New option. |
| 7238 |
|
| 7239 |
2018-04-22 David Pagan <[email protected]> |
| 7240 |
|
| 7241 |
PR c/55976 |
| 7242 |
* c-opts.c (c_common_post_options): Set default for warn_return_type |
| 7243 |
for C++/C++ with ObjC extensions only. For C, makes it possible to |
| 7244 |
differentiate between default (no option), -Wreturn-type, and |
| 7245 |
-Wno-return-type. |
| 7246 |
|
| 7247 |
2018-05-29 Jason Merrill <[email protected]> |
| 7248 |
|
| 7249 |
* c.opt (Winit-list-lifetime): New flag. |
| 7250 |
|
| 7251 |
2018-05-28 Bernd Edlinger <[email protected]> |
| 7252 |
|
| 7253 |
* c-lex.c (get_fileinfo): Use splay_tree_compare_strings and |
| 7254 |
splay_tree_delete_pointers. |
| 7255 |
|
| 7256 |
2018-05-26 Jakub Jelinek <[email protected]> |
| 7257 |
|
| 7258 |
PR bootstrap/85921 |
| 7259 |
* c-warn.c (diagnose_mismatched_attributes): Remove unnecessary |
| 7260 |
noinline variable to workaround broken kernel headers. |
| 7261 |
|
| 7262 |
2018-05-18 Jason Merrill <[email protected]> |
| 7263 |
|
| 7264 |
* c.opt (Wdeprecated-copy): New flag. |
| 7265 |
|
| 7266 |
2018-05-17 Martin Liska <[email protected]> |
| 7267 |
|
| 7268 |
* c-warn.c (overflow_warning): Do not use |
| 7269 |
space in between 'G_' and '('. |
| 7270 |
|
| 7271 |
2018-05-09 Jason Merrill <[email protected]> |
| 7272 |
|
| 7273 |
* c-common.c (valid_array_size_p): Add complain parameter. |
| 7274 |
* c-common.h: ...which defaults to true. |
| 7275 |
|
| 7276 |
2018-05-11 Jakub Jelinek <[email protected]> |
| 7277 |
|
| 7278 |
PR c/85696 |
| 7279 |
* c-omp.c (c_omp_predetermined_sharing): Return |
| 7280 |
OMP_CLAUSE_DEFAULT_SHARED for artificial vars with integral type. |
| 7281 |
|
| 7282 |
2018-05-11 Martin Liska <[email protected]> |
| 7283 |
|
| 7284 |
PR sanitizer/85556 |
| 7285 |
* c-attribs.c (handle_no_sanitize_attribute): Iterate all |
| 7286 |
TREE_LIST values. |
| 7287 |
|
| 7288 |
2018-05-10 Jakub Jelinek <[email protected]> |
| 7289 |
|
| 7290 |
PR c++/85662 |
| 7291 |
* c-common.h (fold_offsetof_1): Removed. |
| 7292 |
(fold_offsetof): Add TYPE argument defaulted to size_type_node and |
| 7293 |
CTX argument defaulted to ERROR_MARK. |
| 7294 |
* c-common.c (fold_offsetof_1): Renamed to ... |
| 7295 |
(fold_offsetof): ... this. Remove wrapper function. Add TYPE |
| 7296 |
argument, convert the pointer constant to TYPE and use size_binop |
| 7297 |
with PLUS_EXPR instead of fold_build_pointer_plus if type is not |
| 7298 |
a pointer type. Adjust recursive calls. |
| 7299 |
|
| 7300 |
2018-05-10 Eric Botcazou <[email protected]> |
| 7301 |
|
| 7302 |
PR c++/85400 |
| 7303 |
* c-attribs.c (handle_visibility_attribute): Do not set no_add_attrs. |
| 7304 |
|
| 7305 |
2018-05-07 Nathan Sidwell <[email protected]> |
| 7306 |
|
| 7307 |
* c.opt (ffor-scope): Remove functionality, issue warning. |
| 7308 |
|
| 7309 |
2018-05-03 Nathan Sidwell <[email protected]> |
| 7310 |
|
| 7311 |
* c.opt (ffriend-injection): Remove functionality, issue warning. |
| 7312 |
|
| 7313 |
2018-05-01 David Malcolm <[email protected]> |
| 7314 |
|
| 7315 |
PR c/84258 |
| 7316 |
* c-format.c (struct format_check_results): Add field |
| 7317 |
"number_non_char". |
| 7318 |
(check_format_info): Initialize it, and warn if encountered. |
| 7319 |
(check_format_arg): Distinguish between wide char and |
| 7320 |
everything else when detecting arrays of non-char. |
| 7321 |
|
| 7322 |
2018-04-30 David Malcolm <[email protected]> |
| 7323 |
|
| 7324 |
* c-format.c (get_corrected_substring): Update for |
| 7325 |
location_get_source_line returning a char_span. Use a char_span |
| 7326 |
when handling the prefix of the correction. |
| 7327 |
* c-indentation.c (get_visual_column): Update for |
| 7328 |
location_get_source_line returning a char_span. |
| 7329 |
(get_first_nws_vis_column): Likewise. |
| 7330 |
|
| 7331 |
2018-03-29 David Malcolm <[email protected]> |
| 7332 |
|
| 7333 |
PR c++/84269 |
| 7334 |
* known-headers.cc (get_stdlib_header_for_name): Add various names |
| 7335 |
from <assert.h>, <string.h>, and <memory.h>; add more names from |
| 7336 |
<stdio.h>. |
| 7337 |
|
| 7338 |
2018-03-27 Jakub Jelinek <[email protected]> |
| 7339 |
|
| 7340 |
PR c++/85061 |
| 7341 |
* c-common.c (fold_offsetof_1) <case COMPOUND_EXPR>: Assert that |
| 7342 |
get_base_address of the second operand is a VAR_P, rather than the |
| 7343 |
operand itself, and use gcc_checking_assert instead of gcc_assert. |
| 7344 |
|
| 7345 |
2018-03-23 Marek Polacek <[email protected]> |
| 7346 |
|
| 7347 |
PR c++/85045 |
| 7348 |
* c-pretty-print.c (c_pretty_printer::multiplicative_expression) |
| 7349 |
<case RDIV_EXPR>: Tweak condition. |
| 7350 |
|
| 7351 |
2018-03-20 Eric Botcazou <[email protected]> |
| 7352 |
|
| 7353 |
* c-ada-spec.c (pp_ada_tree_identifier): Deal specifically with _Bool. |
| 7354 |
|
| 7355 |
2018-03-16 Jakub Jelinek <[email protected]> |
| 7356 |
|
| 7357 |
PR c/84909 |
| 7358 |
* c-warn.c (conversion_warning): Replace "to to" with "to" in |
| 7359 |
diagnostics. |
| 7360 |
|
| 7361 |
PR c/84910 |
| 7362 |
* c-warn.c (diagnose_mismatched_attributes): Remove trailing space from |
| 7363 |
diagnostics. |
| 7364 |
|
| 7365 |
2018-03-16 Richard Biener <[email protected]> |
| 7366 |
|
| 7367 |
PR c/84873 |
| 7368 |
* c-gimplify.c (c_gimplify_expr): Revert previous change. Instead |
| 7369 |
unshare the possibly folded expression. |
| 7370 |
|
| 7371 |
2018-03-15 Richard Biener <[email protected]> |
| 7372 |
|
| 7373 |
PR c/84873 |
| 7374 |
* c-gimplify.c (c_gimplify_expr): Do not fold expressions. |
| 7375 |
|
| 7376 |
2018-03-13 Martin Sebor <[email protected]> |
| 7377 |
|
| 7378 |
PR tree-optimization/84725 |
| 7379 |
* c-attribs.c (handle_nonstring_attribute): Allow attribute nonstring |
| 7380 |
with all three narrow character types, including their qualified forms. |
| 7381 |
|
| 7382 |
2018-03-12 Martin Sebor <[email protected]> |
| 7383 |
|
| 7384 |
PR tree-optimization/83456 |
| 7385 |
* c-common.c (check_function_restrict): Return bool. |
| 7386 |
Restore checking of bounded built-in functions. |
| 7387 |
(check_function_arguments): Also return the result |
| 7388 |
of warn_for_restrict. |
| 7389 |
* c-common.c (check_function_restrict): Return bool. |
| 7390 |
* c-warn.c (warn_for_restrict): Return bool. |
| 7391 |
|
| 7392 |
2018-03-02 Marek Polacek <[email protected]> |
| 7393 |
|
| 7394 |
PR c++/84171 |
| 7395 |
* c-warn.c (warn_for_sign_compare): Bail out if any of the operands |
| 7396 |
is erroneous. |
| 7397 |
|
| 7398 |
2018-03-02 Thomas Schwinge <[email protected]> |
| 7399 |
|
| 7400 |
* c-attribs.c (c_common_attribute_table): Remove "cilk simd |
| 7401 |
function". |
| 7402 |
|
| 7403 |
2018-03-01 Marek Polacek <[email protected]> |
| 7404 |
|
| 7405 |
PR c++/84639 |
| 7406 |
* c-attribs.c (common_handle_aligned_attribute): Don't use invalid |
| 7407 |
alignment in computation. |
| 7408 |
|
| 7409 |
2018-02-28 Eric Botcazou <[email protected]> |
| 7410 |
|
| 7411 |
* c-ada-spec.c (dump_ada_node) <NULLPTR_TYPE>: New case. |
| 7412 |
<REAL_TYPE>: Deal specifically with _Float128/__float128. |
| 7413 |
|
| 7414 |
2018-02-28 Eric Botcazou <[email protected]> |
| 7415 |
|
| 7416 |
* c-ada-spec.c (dump_ada_double_name) <ENUMERAL_TYPE>: New case. |
| 7417 |
(is_char_array): Take a type instead of a declaration. |
| 7418 |
(dump_ada_array_type): Likewise. |
| 7419 |
(is_simple_enum): Minor tweak. |
| 7420 |
(dump_ada_enum_type): New function extracted from... |
| 7421 |
(dump_ada_node) <ENUMERAL_TYPE>: ...here. Invoke it. |
| 7422 |
<INTEGER_TYPE>: Remove unreachable code. |
| 7423 |
<RECORD_TYPE>: Likewise. Minor tweaks. |
| 7424 |
(dump_nested_type) <ARRAY_TYPE>: Adjust to above changes. |
| 7425 |
<ENUMERAL_TYPE>: New case. |
| 7426 |
<RECORD_TYPE>: Factor out common code. |
| 7427 |
(dump_ada_declaration) <ARRAY_TYPE>: Adjust to above changes. |
| 7428 |
Minor tweaks. Deal with enumeral types. |
| 7429 |
(dump_ada_structure): Minor tweaks. |
| 7430 |
|
| 7431 |
2018-02-28 Eric Botcazou <[email protected]> |
| 7432 |
|
| 7433 |
* c-ada-spec.c (dump_ada_node) <POINTER_TYPE>: Do not use generic |
| 7434 |
address for incomplete structures. |
| 7435 |
(dump_forward_type): Do not bail out for incomplete structures. |
| 7436 |
(dump_ada_declaration): Do not special-case incomplete structures |
| 7437 |
for subtypes. Dump them as null records for types. |
| 7438 |
|
| 7439 |
2018-02-28 Eric Botcazou <[email protected]> |
| 7440 |
|
| 7441 |
* c-ada-spec.c (dump_ada_import): Use boolean and fix formatting. |
| 7442 |
(is_char_array): Fix formatting. |
| 7443 |
(dump_template_types): Likewise. |
| 7444 |
(dump_generic_ada_node): Rename into... |
| 7445 |
(dump_ada_node): ...this. |
| 7446 |
<POINTER_TYPE>: Remove superfluous space. Use generic address for |
| 7447 |
incomplete structures and not for empty structures. Do not use it |
| 7448 |
when forward declarations are needed. |
| 7449 |
(dump_forward_type): New function. |
| 7450 |
(dump_nested_types): Remove FORWARD parameter. Do not consider |
| 7451 |
TREE_VISITED and do not generate a forward declaration. Only dump |
| 7452 |
original nested types for nested declaration. |
| 7453 |
(dump_nested_type) <POINTER_TYPE>: Call dump_forward_type. |
| 7454 |
<ARRAY_TYPE>: Likewise if the component type is an anonymous pointer. |
| 7455 |
<RECORD_TYPE>: Do not consider TREE_VISITED. |
| 7456 |
(dump_ada_declaration): Use booleans and fix formatting throughout. |
| 7457 |
<TYPE_DECL>: Skip incomplete structures and not empty structures. |
| 7458 |
Call dump_forward_type instead of dump_nested_types for a typedef. |
| 7459 |
Remove superfluous check and adjust call to dump_nested_types. |
| 7460 |
<POINTER_TYPE>: Call dump_forward_type and fall through. |
| 7461 |
(dump_ada_struct_decl): Rename into... |
| 7462 |
(dump_ada_structure): ...this. Do not special-case empty structures. |
| 7463 |
|
| 7464 |
2018-02-27 Martin Sebor <[email protected]> |
| 7465 |
|
| 7466 |
PR c++/83871 |
| 7467 |
* c.opt (-Wmissing-attributes): New option. |
| 7468 |
|
| 7469 |
2018-02-21 Martin Liska <[email protected]> |
| 7470 |
|
| 7471 |
* c.opt (Wcatch-value=): Add IntegerRange. |
| 7472 |
|
| 7473 |
2018-02-15 Jason Merrill <[email protected]> |
| 7474 |
|
| 7475 |
* c-cppbuiltin.c (c_cpp_builtins): Update __cpp_deduction_guides. |
| 7476 |
|
| 7477 |
2018-02-09 Nathan Sidwell <[email protected]> |
| 7478 |
|
| 7479 |
PR c/84293 |
| 7480 |
* c-common.h (strict_aliasing_warning): Drop OTYPE arg, insert LOC |
| 7481 |
arg. |
| 7482 |
* c-warn.c (strict_aliasing_warning): Drop OTYPE arg, require LOC |
| 7483 |
arg. Adjust. |
| 7484 |
|
| 7485 |
2018-02-09 Martin Sebor <[email protected]> |
| 7486 |
|
| 7487 |
PR lto/84212 |
| 7488 |
* c.opt (-Wstringop-overflow, -Warray-bounds): Add LTO. |
| 7489 |
(-Walloc-size-larger-than, -Wformat-truncation=): Same. |
| 7490 |
(-Wmaybe-uninitialized, -Wnonnull, -Wrestrict): Same. |
| 7491 |
(-Wstrict-overflow, -Wsuggest-attribute): Same. |
| 7492 |
(-Wuninitialized): Same. |
| 7493 |
|
| 7494 |
2018-02-09 Eric Botcazou <[email protected]> |
| 7495 |
|
| 7496 |
* c-ada-spec.c (dump_ada_declaration): Do not generate the 'constant' |
| 7497 |
keyword for components. |
| 7498 |
|
| 7499 |
2018-02-02 Paolo Carlini <[email protected]> |
| 7500 |
|
| 7501 |
* c-common.h (DECL_UNNAMED_BIT_FIELD): New. |
| 7502 |
|
| 7503 |
2018-02-02 Julia Koval <[email protected]> |
| 7504 |
|
| 7505 |
* c-common.h (omp_clause_mask): Move to wide_int_bitmask.h. |
| 7506 |
|
| 7507 |
2018-01-29 Marek Polacek <[email protected]> |
| 7508 |
|
| 7509 |
PR c/83966 |
| 7510 |
* c-format.c (check_function_format): Check current_function_decl. |
| 7511 |
|
| 7512 |
2018-01-27 Jakub Jelinek <[email protected]> |
| 7513 |
|
| 7514 |
* c-cppbuiltin.c (c_cpp_builtins): Use ggc_strdup for the fp_suffix |
| 7515 |
argument. |
| 7516 |
(LAZY_HEX_FP_VALUES_CNT): Define. |
| 7517 |
(lazy_hex_fp_values): Allow up to LAZY_HEX_FP_VALUES_CNT lazy hex fp |
| 7518 |
values rather than just 12. |
| 7519 |
(builtin_define_with_hex_fp_value): Likewise. |
| 7520 |
|
| 7521 |
2018-01-18 Boris Kolpackov <[email protected]> |
| 7522 |
|
| 7523 |
PR other/70268 |
| 7524 |
* c.opt (-fmacro-prefix-map): New option. |
| 7525 |
* c-opts.c (c_common_handle_option): Handle it. |
| 7526 |
* c-lex.c (init_c_lex): Set remap_filename cpp callback. |
| 7527 |
* c-ppoutput.c (init_pp_output): Likewise. |
| 7528 |
|
| 7529 |
2018-01-17 David Malcolm <[email protected]> |
| 7530 |
|
| 7531 |
PR c++/83814 |
| 7532 |
* c-common.c (fold_for_warn): Move to c/c-fold.c and cp/expr.c. |
| 7533 |
|
| 7534 |
2018-01-10 Eric Botcazou <[email protected]> |
| 7535 |
|
| 7536 |
* c-ada-spec.c (dump_number): Add FLOAT_P parameter. |
| 7537 |
Skip 'f' and 'F' characters if it is true. |
| 7538 |
(store_ada_macro): Minor tweak. |
| 7539 |
(dump_ada_macros) <CPP_COMMENT>: Likewise. |
| 7540 |
<CPP_WSTRING>: Likewise. |
| 7541 |
<CPP_STRING>: Output '&' in the buffer if not the first string. |
| 7542 |
<CPP_NUMBER>: Adjust calls to dump_number. |
| 7543 |
|
| 7544 |
2018-01-10 David Malcolm <[email protected]> |
| 7545 |
|
| 7546 |
PR c++/43486 |
| 7547 |
* c-common.c: Include "selftest.h". |
| 7548 |
(get_atomic_generic_size): Perform the test for integral type |
| 7549 |
before the range test for any integer constant, fixing indentation |
| 7550 |
of braces. Call fold_for_warn before testing for an INTEGER_CST. |
| 7551 |
(reject_gcc_builtin): Strip any location wrapper from EXPR. |
| 7552 |
(selftest::test_fold_for_warn): New function. |
| 7553 |
(selftest::c_common_c_tests): New function. |
| 7554 |
(selftest::c_family_tests): Call it, and |
| 7555 |
selftest::c_pretty_print_c_tests. |
| 7556 |
* c-common.h (selftest::c_pretty_print_c_tests): New decl. |
| 7557 |
* c-format.c (check_format_arg): Convert VAR_P check to a |
| 7558 |
fold_for_warn. |
| 7559 |
* c-pretty-print.c: Include "selftest.h". |
| 7560 |
(pp_c_cast_expression): Don't print casts for location wrappers. |
| 7561 |
(selftest::assert_c_pretty_printer_output): New function. |
| 7562 |
(ASSERT_C_PRETTY_PRINTER_OUTPUT): New macro. |
| 7563 |
(selftest::test_location_wrappers): New function. |
| 7564 |
(selftest::c_pretty_print_c_tests): New function. |
| 7565 |
* c-warn.c (warn_for_memset): Call fold_for_warn on the arguments. |
| 7566 |
|
| 7567 |
2018-01-03 Richard Sandiford <[email protected]> |
| 7568 |
Alan Hayward <[email protected]> |
| 7569 |
David Sherwood <[email protected]> |
| 7570 |
|
| 7571 |
* c-common.c (c_common_type_for_mode): Handle MODE_VECTOR_BOOL. |
| 7572 |
|
| 7573 |
2018-01-03 Richard Sandiford <[email protected]> |
| 7574 |
Alan Hayward <[email protected]> |
| 7575 |
David Sherwood <[email protected]> |
| 7576 |
|
| 7577 |
* c-ubsan.c (ubsan_instrument_shift): Treat GET_MODE_BITSIZE |
| 7578 |
as polynomial. |
| 7579 |
|
| 7580 |
2018-01-03 Richard Sandiford <[email protected]> |
| 7581 |
Alan Hayward <[email protected]> |
| 7582 |
David Sherwood <[email protected]> |
| 7583 |
|
| 7584 |
* c-common.c (vector_types_convertible_p, c_build_vec_perm_expr) |
| 7585 |
(convert_vector_to_array_for_subscript): Handle polynomial |
| 7586 |
TYPE_VECTOR_SUBPARTS. |
| 7587 |
(c_common_type_for_mode): Check valid_vector_subparts_p. |
| 7588 |
* c-pretty-print.c (pp_c_initializer_list): Handle polynomial |
| 7589 |
VECTOR_CST_NELTS. |
| 7590 |
|
| 7591 |
2018-01-03 Jakub Jelinek <[email protected]> |
| 7592 |
|
| 7593 |
Update copyright years. |
| 7594 |
|
| 7595 |
2017-12-22 Mike Stump <[email protected]> |
| 7596 |
Eric Botcazou <[email protected]> |
| 7597 |
|
| 7598 |
* c-pragma.c (init_pragma): Register pragma GCC unroll. |
| 7599 |
* c-pragma.h (enum pragma_kind): Add PRAGMA_UNROLL. |
| 7600 |
|
| 7601 |
2017-12-22 Alexandre Oliva <[email protected]> |
| 7602 |
|
| 7603 |
PR debug/83527 |
| 7604 |
PR debug/83419 |
| 7605 |
* c-semantics.c (only_debug_stmts_after_p): New. |
| 7606 |
(pop_stmt_list): Clear side effects in debug-only stmt list. |
| 7607 |
Check for single nondebug stmt followed by debug stmts only. |
| 7608 |
|
| 7609 |
2017-12-21 Alexandre Oliva <[email protected]> |
| 7610 |
|
| 7611 |
PR debug/83419 |
| 7612 |
* c-semantics.c (pop_stmt_list): Propagate side effects from |
| 7613 |
single nondebug stmt to container list. |
| 7614 |
|
| 7615 |
2017-12-19 Jakub Jelinek <[email protected]> |
| 7616 |
|
| 7617 |
* known-headers.cc (get_stdlib_header_for_name): Replace Yoda |
| 7618 |
conditions with typical order conditions. |
| 7619 |
|
| 7620 |
2017-12-18 Marek Polacek <[email protected]> |
| 7621 |
|
| 7622 |
* c-warn.c (warn_logical_operator): Return early if -Wlogical-op is |
| 7623 |
not in effect. |
| 7624 |
|
| 7625 |
2017-12-17 Martin Sebor <[email protected]> |
| 7626 |
|
| 7627 |
* c-attribs.c (common_handle_aligned_attribute): Avoid issuing |
| 7628 |
an error for attribute warn_if_not_aligned. |
| 7629 |
|
| 7630 |
2017-12-16 Martin Sebor <[email protected]> |
| 7631 |
|
| 7632 |
PR tree-optimization/78918 |
| 7633 |
* c-common.c (check_function_restrict): Avoid checking built-ins. |
| 7634 |
* c.opt (-Wrestrict): Include in -Wall. |
| 7635 |
|
| 7636 |
2017-12-15 Jakub Jelinek <[email protected]> |
| 7637 |
|
| 7638 |
* c-attribs.c (c_common_attribute_table, |
| 7639 |
c_common_format_attribute_table): Swap affects_type_identity |
| 7640 |
and handler fields, adjust comments. |
| 7641 |
|
| 7642 |
2017-12-14 Bernd Edlinger <[email protected]> |
| 7643 |
|
| 7644 |
* c.opt (Wcast-function-type): New warning option. |
| 7645 |
* c-lex.c (get_fileinfo): Avoid warning. |
| 7646 |
* c-ppoutput.c (scan_translation_unit_directives_only): Remove cast. |
| 7647 |
|
| 7648 |
2017-12-14 Qing Zhao <[email protected]> |
| 7649 |
|
| 7650 |
PR middle_end/79538 |
| 7651 |
* c-cppbuiltin.c (builtin_define_with_hex_fp_value): |
| 7652 |
Adjust the size of buf1 and buf2, add a new buf to avoid |
| 7653 |
format-overflow warning. |
| 7654 |
|
| 7655 |
2017-12-12 Alexandre Oliva <[email protected]> |
| 7656 |
|
| 7657 |
* c-semantics.c (pop_stmt_list): Move begin stmt marker into |
| 7658 |
subsequent statement list. |
| 7659 |
|
| 7660 |
2017-12-07 Martin Sebor <[email protected]> |
| 7661 |
|
| 7662 |
PR c/81544 |
| 7663 |
PR c/81566 |
| 7664 |
* c-attribs.c (attr_aligned_exclusions): New array. |
| 7665 |
(attr_alloc_exclusions, attr_cold_hot_exclusions): Same. |
| 7666 |
(attr_common_exclusions, attr_const_pure_exclusions): Same. |
| 7667 |
(attr_gnu_inline_exclusions, attr_inline_exclusions): Same. |
| 7668 |
(attr_noreturn_exclusions, attr_returns_twice_exclusions): Same. |
| 7669 |
(attr_warn_unused_result_exclusions): Same. |
| 7670 |
(handle_hot_attribute, handle_cold_attribute): Simplify. |
| 7671 |
(handle_const_attribute): Warn on function returning void. |
| 7672 |
(handle_pure_attribute): Same. |
| 7673 |
(handle_aligned_attribute): Diagnose conflicting attribute |
| 7674 |
specifications. |
| 7675 |
* c-warn.c (diagnose_mismatched_attributes): Simplify. |
| 7676 |
|
| 7677 |
2017-12-06 David Malcolm <[email protected]> |
| 7678 |
|
| 7679 |
PR c/83236 |
| 7680 |
* c-common.c (selftest::c_family_tests): Call |
| 7681 |
selftest::c_spellcheck_cc_tests. |
| 7682 |
* c-common.h (selftest::c_spellcheck_cc_tests): New decl. |
| 7683 |
* c-spellcheck.cc: Include "selftest.h". |
| 7684 |
(name_reserved_for_implementation_p): New function. |
| 7685 |
(should_suggest_as_macro_p): New function. |
| 7686 |
(find_closest_macro_cpp_cb): Move the check for NT_MACRO to |
| 7687 |
should_suggest_as_macro_p and call it. |
| 7688 |
(selftest::test_name_reserved_for_implementation_p): New function. |
| 7689 |
(selftest::c_spellcheck_cc_tests): New function. |
| 7690 |
* c-spellcheck.h (name_reserved_for_implementation_p): New decl. |
| 7691 |
|
| 7692 |
2017-12-06 David Malcolm <[email protected]> |
| 7693 |
|
| 7694 |
* c-spellcheck.cc: New file, taken from macro-handling code in |
| 7695 |
spellcheck-tree.c. |
| 7696 |
* c-spellcheck.h: New file, taken from macro-handling code in |
| 7697 |
spellcheck-tree.h. |
| 7698 |
|
| 7699 |
2017-12-01 Jakub Jelinek <[email protected]> |
| 7700 |
|
| 7701 |
* c-attribs.c (c_common_attribute_table): Remove "cilk simd function" |
| 7702 |
attribute. |
| 7703 |
(handle_simd_attribute): Don't check for "cilk simd function" |
| 7704 |
attribute. Reindent, formatting changes. |
| 7705 |
|
| 7706 |
2017-11-30 Julia Koval <[email protected]> |
| 7707 |
|
| 7708 |
* c-common.h (inv_list): Remove. |
| 7709 |
|
| 7710 |
2017-11-28 Jakub Jelinek <[email protected]> |
| 7711 |
|
| 7712 |
PR sanitizer/81275 |
| 7713 |
* c-common.c (c_switch_covers_all_cases_p_1, |
| 7714 |
c_switch_covers_all_cases_p): New functions. |
| 7715 |
* c-common.h (c_switch_covers_all_cases_p): Declare. |
| 7716 |
|
| 7717 |
2017-11-28 Julia Koval <[email protected]> |
| 7718 |
Sebastian Peryt <[email protected]> |
| 7719 |
|
| 7720 |
* array-notation-common.c: Delete. |
| 7721 |
* c-cilkplus.c: Ditto. |
| 7722 |
* c-common.c (_Cilk_spawn, _Cilk_sync, _Cilk_for): Remove. |
| 7723 |
* c-common.def (ARRAY_NOTATION_REF): Remove. |
| 7724 |
* c-common.h (RID_CILK_SPAWN, build_array_notation_expr, |
| 7725 |
build_array_notation_ref, C_ORT_CILK, c_check_cilk_loop, |
| 7726 |
c_validate_cilk_plus_loop, cilkplus_an_parts, |
| 7727 |
cilk_ignorable_spawn_rhs_op, |
| 7728 |
cilk_recognize_spawn): Remove. |
| 7729 |
* c-gimplify.c (CILK_SPAWN_STMT): Remove. |
| 7730 |
* c-omp.c: Remove CILK_SIMD check. |
| 7731 |
* c-pragma.c: Ditto. |
| 7732 |
* c-pragma.h: Remove CILK related pragmas. |
| 7733 |
* c-pretty-print.c (c_pretty_printer::postfix_expression): Remove |
| 7734 |
ARRAY_NOTATION_REF condition. |
| 7735 |
(c_pretty_printer::expression): Ditto. |
| 7736 |
* c.opt (fcilkplus): Remove. |
| 7737 |
* cilk.c: Delete. |
| 7738 |
|
| 7739 |
2017-11-21 Marc Glisse <[email protected]> |
| 7740 |
|
| 7741 |
* c-pretty-print.c (pp_c_additive_expression, |
| 7742 |
c_pretty_printer::expression): Handle POINTER_DIFF_EXPR. |
| 7743 |
|
| 7744 |
2017-11-21 Jakub Jelinek <[email protected]> |
| 7745 |
|
| 7746 |
* c-common.c (get_nonnull_operand): Use tree_to_uhwi. |
| 7747 |
|
| 7748 |
PR c++/83059 |
| 7749 |
* c-common.c (get_atomic_generic_size): Use TREE_INT_CST_LOW |
| 7750 |
instead of tree_to_uhwi, formatting fix. |
| 7751 |
|
| 7752 |
2017-11-20 David Malcolm <[email protected]> |
| 7753 |
|
| 7754 |
PR c/81404 |
| 7755 |
* known-headers.cc: New file, based on material from c/c-decl.c. |
| 7756 |
(suggest_missing_header): Copied as-is. |
| 7757 |
(get_stdlib_header_for_name): New, based on get_c_name_hint but |
| 7758 |
heavily edited to add C++ support. Add some knowledge about |
| 7759 |
<limits.h>, <stdint.h>, and <wchar.h>. |
| 7760 |
* known-headers.h: Likewise. |
| 7761 |
|
| 7762 |
2017-11-20 David Malcolm <[email protected]> |
| 7763 |
|
| 7764 |
* c-common.h (enum lookup_name_fuzzy_kind): Move to name-hint.h. |
| 7765 |
(lookup_name_fuzzy): Likewise. Convert return type from |
| 7766 |
const char * to name_hint. Add location_t param. |
| 7767 |
* name-hint.h: New header. |
| 7768 |
|
| 7769 |
2017-11-19 Jakub Jelinek <[email protected]> |
| 7770 |
|
| 7771 |
PR c/66618 |
| 7772 |
PR c/69960 |
| 7773 |
* c-common.h (c_fully_fold): Add LVAL argument defaulted to false. |
| 7774 |
|
| 7775 |
2017-11-16 Joseph Myers <[email protected]> |
| 7776 |
|
| 7777 |
* c.opt (-std=c17, std=gnu17, -std=iso9899:2017): Refer to 2018 |
| 7778 |
expected publication date of C17. |
| 7779 |
(-std=c18, -std=gnu18, -std=iso9899:2018): New option aliases. |
| 7780 |
|
| 7781 |
2017-11-15 Joseph Myers <[email protected]> |
| 7782 |
|
| 7783 |
PR c/81156 |
| 7784 |
* c-common.c (c_common_reswords): Add __builtin_tgmath. |
| 7785 |
* c-common.h (enum rid): Add RID_BUILTIN_TGMATH. |
| 7786 |
|
| 7787 |
2017-11-10 Martin Sebor <[email protected]> |
| 7788 |
|
| 7789 |
PR c/81117 |
| 7790 |
* c-common.c (catenate_strings): Use memcpy instead of strncpy. |
| 7791 |
* c-warn.c (sizeof_pointer_memaccess_warning): Handle arrays. |
| 7792 |
* c.opt (-Wstringop-truncation): New option. |
| 7793 |
|
| 7794 |
2017-11-06 Martin Liska <[email protected]> |
| 7795 |
|
| 7796 |
PR middle-end/82404 |
| 7797 |
* c-opts.c (c_common_post_options): Set -Wreturn-type for C++ |
| 7798 |
FE. |
| 7799 |
* c.opt: Set default value of warn_return_type. |
| 7800 |
|
| 7801 |
2017-10-31 David Malcolm <[email protected]> |
| 7802 |
|
| 7803 |
* c-common.c (binary_op_error): Update for renaming of |
| 7804 |
error_at_rich_loc. |
| 7805 |
(c_parse_error): Likewise. |
| 7806 |
* c-warn.c (warn_logical_not_parentheses): Likewise for |
| 7807 |
renaming of inform_at_rich_loc. |
| 7808 |
(warn_for_restrict): Likewise for renaming of |
| 7809 |
warning_at_rich_loc_n. |
| 7810 |
|
| 7811 |
2017-10-30 Joseph Myers <[email protected]> |
| 7812 |
|
| 7813 |
* c.opt (std=c17, std=gnu17, std=iso9899:2017): New options. |
| 7814 |
* c-opts.c (set_std_c17): New function. |
| 7815 |
(c_common_init_options): Use gnu17 as default C version. |
| 7816 |
(c_common_handle_option): Handle -std=c17 and -std=gnu17. |
| 7817 |
|
| 7818 |
2017-10-27 Michael Meissner <[email protected]> |
| 7819 |
|
| 7820 |
* c-cppbuiltin.c (mode_has_fma): Add support for PowerPC KFmode. |
| 7821 |
(c_cpp_builtins): If a machine has a fast fma _Float<N> and |
| 7822 |
_Float<N>X variant, define __FP_FAST_FMA<N> and/or |
| 7823 |
__FP_FAST_FMA<N>X. |
| 7824 |
|
| 7825 |
2017-10-23 Marek Polacek <[email protected]> |
| 7826 |
|
| 7827 |
PR c/82681 |
| 7828 |
* c-warn.c (warnings_for_convert_and_check): Fix typos. |
| 7829 |
|
| 7830 |
2017-10-19 Eric Botcazou <[email protected]> |
| 7831 |
|
| 7832 |
* c-common.c (check_builtin_function_arguments): Also check arguments |
| 7833 |
of __builtin_alloca_with_align_and_max. |
| 7834 |
|
| 7835 |
2017-10-17 David Malcolm <[email protected]> |
| 7836 |
|
| 7837 |
* c-format.c (format_warning_at_char): Pass UNKNOWN_LOCATION |
| 7838 |
rather than NULL to format_warning_va. |
| 7839 |
(check_format_types): Likewise when calling format_type_warning. |
| 7840 |
Remove code to extract source_ranges and source_range * in favor |
| 7841 |
of just a location_t. |
| 7842 |
(format_type_warning): Convert source_range * param to a |
| 7843 |
location_t. |
| 7844 |
|
| 7845 |
2017-10-13 Jakub Jelinek <[email protected]> |
| 7846 |
|
| 7847 |
* c-gimplify.c (c_gimplify_expr): Handle [LR]ROTATE_EXPR like |
| 7848 |
[LR]SHIFT_EXPR. |
| 7849 |
|
| 7850 |
2017-10-12 David Malcolm <[email protected]> |
| 7851 |
|
| 7852 |
* c-common.c (enum missing_token_insertion_kind): New enum. |
| 7853 |
(get_missing_token_insertion_kind): New function. |
| 7854 |
(maybe_suggest_missing_token_insertion): New function. |
| 7855 |
* c-common.h (maybe_suggest_missing_token_insertion): New decl. |
| 7856 |
|
| 7857 |
2017-10-11 Nathan Sidwell <[email protected]> |
| 7858 |
|
| 7859 |
* c-opts.c (add_prefixed_path): Change chain to incpath_kind. |
| 7860 |
(c_common_handle_option): Update incpath_kind names. |
| 7861 |
|
| 7862 |
2017-10-11 Martin Liska <[email protected]> |
| 7863 |
|
| 7864 |
PR sanitizer/82490 |
| 7865 |
* c-attribs.c (handle_no_sanitize_attribute): Report directly |
| 7866 |
Wattributes warning. |
| 7867 |
|
| 7868 |
2017-10-10 Richard Sandiford <[email protected]> |
| 7869 |
|
| 7870 |
* c-ada-spec.c (dump_generic_ada_node): Use wi::to_wide when |
| 7871 |
operating on trees as wide_ints. |
| 7872 |
* c-common.c (pointer_int_sum): Likewise. |
| 7873 |
* c-pretty-print.c (pp_c_integer_constant): Likewise. |
| 7874 |
* c-warn.c (match_case_to_enum_1): Likewise. |
| 7875 |
(c_do_switch_warnings): Likewise. |
| 7876 |
(maybe_warn_shift_overflow): Likewise. |
| 7877 |
|
| 7878 |
2017-10-10 Jakub Jelinek <[email protected]> |
| 7879 |
|
| 7880 |
PR c/82437 |
| 7881 |
* c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_wide |
| 7882 |
instead of wide_int::from. |
| 7883 |
|
| 7884 |
2017-10-06 Jakub Jelinek <[email protected]> |
| 7885 |
|
| 7886 |
PR c/82437 |
| 7887 |
* c-warn.c (warn_tautological_bitwise_comparison): Instead of |
| 7888 |
using to_widest use wide_int with the larger of the two precisions. |
| 7889 |
|
| 7890 |
2017-10-05 Bernd Edlinger <[email protected]> |
| 7891 |
|
| 7892 |
* c-pretty-print.c (pp_c_parameter_type_list): Print ... for variadic |
| 7893 |
functions. |
| 7894 |
|
| 7895 |
2017-10-02 Richard Sandiford <[email protected]> |
| 7896 |
|
| 7897 |
* c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_widest |
| 7898 |
when combining the original unconverted comparison operands. |
| 7899 |
|
| 7900 |
2017-09-29 Jakub Jelinek <[email protected]> |
| 7901 |
|
| 7902 |
* c-attribs.c (handle_noipa_attribute): Don't add "stack_protect" |
| 7903 |
attribute. |
| 7904 |
|
| 7905 |
2017-09-29 Eric Botcazou <[email protected]> |
| 7906 |
|
| 7907 |
* c-ada-spec.c (to_ada_name): Add index parameter. |
| 7908 |
(pp_ada_tree_identifier): Likewise. |
| 7909 |
(dump_ada_macros): Adjust call to to_ada_name. |
| 7910 |
(struct overloaded_name_hash): New type. |
| 7911 |
(struct overloaded_name_hasher): Likewise. |
| 7912 |
(overloaded_names): New hash table. |
| 7913 |
(compute_overloading_index): New function. |
| 7914 |
(dump_ada_decl_name): Call it and pass the result to |
| 7915 |
pp_ada_tree_identifier. |
| 7916 |
(dump_ada_double_name): Adjust calls to pp_ada_tree_identifier. |
| 7917 |
(dump_ada_function_declaration): Likewise. |
| 7918 |
(dump_generic_ada_node): Likewise. |
| 7919 |
(print_constructor): Likewise. |
| 7920 |
(print_destructor): Likewise. |
| 7921 |
(dump_ada_specs): Delete overloaded_names table. |
| 7922 |
|
| 7923 |
2017-09-29 Eric Botcazou <[email protected]> |
| 7924 |
|
| 7925 |
* c-ada-spec.c (max_ada_macros): Move around. |
| 7926 |
(store_ada_macro_index): Likewise. |
| 7927 |
(source_file): Rename into... |
| 7928 |
(macro_source_file): ...this. |
| 7929 |
(count_ada_macro): Move around. |
| 7930 |
(store_ada_macro): Likewise. |
| 7931 |
(compare_macro): Likewise. |
| 7932 |
(print_ada_macros): Merge in... |
| 7933 |
(dump_ada_macros): ...this. |
| 7934 |
(source_file_base): Rename into... |
| 7935 |
(current_source_file): ...this. |
| 7936 |
(print_comment): Move around. |
| 7937 |
(dump_ada_nodes): Call dump_ada_declaration directly. |
| 7938 |
(struct with): Change type of limited field to bool. |
| 7939 |
(append_withs): Change type of limited_access parameter to bool. |
| 7940 |
(pp_ada_tree_identifie): Likewise. |
| 7941 |
(dump_ada_decl_nam): Likewise. |
| 7942 |
(dump_generic_ada_node): Likewise. Do not print the return type. |
| 7943 |
(to_ada_name): Change type of space_found parameter to bool. |
| 7944 |
(dump_ada_function_declaration): Return void and change type of |
| 7945 |
parameters to bool. Also print the return type for a function. |
| 7946 |
(print_ada_methods): Rename into... |
| 7947 |
(dump_ada_methods): ...this. |
| 7948 |
(print_ada_declaration): Rename into ... |
| 7949 |
(dump_ada_declaration): ...this. Do not print the return type. |
| 7950 |
(print_ada_struct_decl): Rename into... |
| 7951 |
(dump_ada_struct_decl): ...this. |
| 7952 |
|
| 7953 |
2017-09-29 Jakub Jelinek <[email protected]> |
| 7954 |
|
| 7955 |
* c-attribs.c (handle_packed_attribute): Test DECL_C_BIT_FIELD |
| 7956 |
rather than DECL_INITIAL. |
| 7957 |
(common_handle_aligned_attribute): Likewise. |
| 7958 |
|
| 7959 |
2017-09-20 Alexandre Oliva <[email protected]> |
| 7960 |
|
| 7961 |
* c.opt (gen-decls): Add RejectNegative. |
| 7962 |
|
| 7963 |
2017-09-15 Andrew Sutton <[email protected]> |
| 7964 |
Jakub Jelinek <[email protected]> |
| 7965 |
|
| 7966 |
Add support for -std=c++2a. |
| 7967 |
* c-common.h (cxx_dialect): Add cxx2a as a dialect. |
| 7968 |
* opt.c: Add options for -std=c++2a and -std=gnu++2a. |
| 7969 |
* c-opts.c (set_std_cxx2a): New. |
| 7970 |
(c_common_handle_option): Set options when -std=c++2a is enabled. |
| 7971 |
(c_common_post_options): Adjust comments. |
| 7972 |
(set_std_cxx14, set_std_cxx17): Likewise. |
| 7973 |
|
| 7974 |
2017-09-15 Eric Botcazou <[email protected]> |
| 7975 |
|
| 7976 |
* c-pragma.c (handle_pragma_scalar_storage_order): Expand on error |
| 7977 |
message for non-uniform endianness and issue a warning in C++. |
| 7978 |
|
| 7979 |
2017-09-15 Jakub Jelinek <[email protected]> |
| 7980 |
|
| 7981 |
* c.opt (Wc++1z-compat): Change from option to undocumented alias. |
| 7982 |
(Wc++17-compat): Change from undocumented alias to option. |
| 7983 |
(Wnoexcept-type): Enable by Wc++17-compat instead of Wc++1z-compat, |
| 7984 |
change C++1z to C++17 in description. |
| 7985 |
(std=c++1z, std=gnu++1z): Change from option to undocumented |
| 7986 |
deprecated alias. |
| 7987 |
(std=c++17, std=gnu++17): Change from undocumented alias to option. |
| 7988 |
Adjust description. |
| 7989 |
* c-common.h (enum cxx_dialect): Rename cxx1z to cxx17. |
| 7990 |
* c-opts.c (set_std_cxx1z): Rename to ... |
| 7991 |
(set_std_cxx17): ... this. |
| 7992 |
(c_common_handle_option): Rename OPT_std_c__1z to OPT_std_c__17 |
| 7993 |
and OPT_std_gnu__1z to OPT_std_gnu__17. Adjust set_std_cxx1z |
| 7994 |
caller. |
| 7995 |
(c_common_post_options): Use cxx17 instead of cxx1z. Adjust |
| 7996 |
comments. |
| 7997 |
|
| 7998 |
2017-09-12 H.J. Lu <[email protected]> |
| 7999 |
|
| 8000 |
* c-attribs.c (common_handle_aligned_attribute): Don't warn |
| 8001 |
function alignment if warn_if_not_aligned_p is true. |
| 8002 |
|
| 8003 |
2017-09-12 Nathan Sidwell <[email protected]> |
| 8004 |
|
| 8005 |
* c-common.c (field_decl_cmp, resort_data, resort_field_decl_cmp, |
| 8006 |
resort_sorted_fields): Move to c/c-decl.c. |
| 8007 |
* c-common.h (field_decl_cmp, resort_sorted_fields): Delete. |
| 8008 |
(struct sorted_fields_type): Move to c/c-lang.h. |
| 8009 |
|
| 8010 |
2017-09-09 Jonathan Wakely <[email protected]> |
| 8011 |
|
| 8012 |
PR c++/81852 |
| 8013 |
* c-cppbuiltin.c (c_cpp_builtins): Define __cpp_threadsafe_static_init. |
| 8014 |
|
| 8015 |
2017-09-04 Marek Polacek <[email protected]> |
| 8016 |
|
| 8017 |
PR c/81783 |
| 8018 |
* c-warn.c (warn_tautological_bitwise_comparison): New function. |
| 8019 |
(warn_tautological_cmp): Call it. |
| 8020 |
|
| 8021 |
2017-09-01 Boris Kolpackov <[email protected]> |
| 8022 |
|
| 8023 |
* c-opts.c (c_common_finish): Write dependency information even if |
| 8024 |
there are errors. |
| 8025 |
|
| 8026 |
2017-09-01 Jakub Jelinek <[email protected]> |
| 8027 |
|
| 8028 |
PR c/81887 |
| 8029 |
* c-pragma.c (omp_pragmas): Move "ordered" entry from here to ... |
| 8030 |
(omp_pragmas_simd): ... here. |
| 8031 |
* c-omp.c (c_finish_omp_ordered): If clauses isn't simd clause alone, |
| 8032 |
create new clauses list containing just simd clause. |
| 8033 |
|
| 8034 |
2017-08-30 Richard Sandiford <[email protected]> |
| 8035 |
Alan Hayward <[email protected]> |
| 8036 |
David Sherwood <[email protected]> |
| 8037 |
|
| 8038 |
* c-attribs.c (vector_mode_valid_p) Fold GET_MODE_INNER call |
| 8039 |
into scalar_mode_supported_p call. |
| 8040 |
(handle_mode_attribute): Update call to scalar_mode_supported_p. |
| 8041 |
|
| 8042 |
2017-08-30 Richard Sandiford <[email protected]> |
| 8043 |
Alan Hayward <[email protected]> |
| 8044 |
David Sherwood <[email protected]> |
| 8045 |
|
| 8046 |
* c-common.c (c_common_fixed_point_type_for_size): Use opt_scalar_mode |
| 8047 |
for the mode iterator. |
| 8048 |
|
| 8049 |
2017-08-30 Richard Sandiford <[email protected]> |
| 8050 |
Alan Hayward <[email protected]> |
| 8051 |
David Sherwood <[email protected]> |
| 8052 |
|
| 8053 |
* c-lex.c (interpret_fixed): Use SCALAR_TYPE_MODE. |
| 8054 |
* c-common.c (c_build_vec_perm_expr): Likewise. |
| 8055 |
|
| 8056 |
2017-08-30 Richard Sandiford <[email protected]> |
| 8057 |
Alan Hayward <[email protected]> |
| 8058 |
David Sherwood <[email protected]> |
| 8059 |
|
| 8060 |
* c-common.c (c_common_type_for_mode): Use as_a <scalar_int_mode>. |
| 8061 |
|
| 8062 |
2017-08-30 Richard Sandiford <[email protected]> |
| 8063 |
Alan Hayward <[email protected]> |
| 8064 |
David Sherwood <[email protected]> |
| 8065 |
|
| 8066 |
* c-attribs.c (handle_mode_attribute): Check for a scalar_int_mode |
| 8067 |
before calling targetm.addr_space.valid_pointer_mode. |
| 8068 |
|
| 8069 |
2017-08-30 Richard Sandiford <[email protected]> |
| 8070 |
Alan Hayward <[email protected]> |
| 8071 |
David Sherwood <[email protected]> |
| 8072 |
|
| 8073 |
* c-cppbuiltin.c (c_cpp_builtins): Use opt_scalar_float_mode. |
| 8074 |
|
| 8075 |
2017-08-30 Richard Sandiford <[email protected]> |
| 8076 |
Alan Hayward <[email protected]> |
| 8077 |
David Sherwood <[email protected]> |
| 8078 |
|
| 8079 |
* c-common.c (c_common_fixed_point_type_for_size): Use new mode |
| 8080 |
iterators. |
| 8081 |
* c-cppbuiltin.c (c_cpp_builtins): Likewise. |
| 8082 |
|
| 8083 |
2017-08-30 Richard Sandiford <[email protected]> |
| 8084 |
Alan Hayward <[email protected]> |
| 8085 |
David Sherwood <[email protected]> |
| 8086 |
|
| 8087 |
* c-cppbuiltin.c (mode_has_fma): Prefix mode names with E_ in |
| 8088 |
case statements. |
| 8089 |
|
| 8090 |
2017-08-29 Martin Liska <[email protected]> |
| 8091 |
|
| 8092 |
PR other/39851 |
| 8093 |
* c-common.c (parse_optimize_options): Add argument to function |
| 8094 |
call. |
| 8095 |
* c-pragma.c (handle_pragma_diagnostic): Likewise. |
| 8096 |
|
| 8097 |
2017-08-24 David Malcolm <[email protected]> |
| 8098 |
|
| 8099 |
* c-lex.c (interpret_float): Use token location |
| 8100 |
when building an EXCESS_PRECISION_EXPR. |
| 8101 |
|
| 8102 |
2017-08-21 David Malcolm <[email protected]> |
| 8103 |
|
| 8104 |
* c-common.c (check_function_arguments): Add "arglogs" param; pass |
| 8105 |
it to check_function_format. |
| 8106 |
* c-common.h (check_function_arguments): Add vec<location_t> * |
| 8107 |
param. |
| 8108 |
(check_function_format): Likewise. |
| 8109 |
* c-format.c (struct format_check_context): Add field "arglocs". |
| 8110 |
(check_function_format): Add param "arglocs"; pass it to |
| 8111 |
check_format_info. |
| 8112 |
(check_format_info): Add param "arglocs"; use it to initialize |
| 8113 |
new field of format_ctx. |
| 8114 |
(check_format_arg): Pass format_ctx->arglocs to new param of |
| 8115 |
check_format_info_main. |
| 8116 |
(class argument_parser): New field "arglocs". |
| 8117 |
(argument_parser::argument_parser): Add "arglocs_" param and use |
| 8118 |
it to initialize new field. |
| 8119 |
(argument_parser::check_argument_type): Pass new arglocs field to |
| 8120 |
check_format_types. |
| 8121 |
(check_format_info_main): Add param "arglocs", and use it when |
| 8122 |
constructing arg_parser. |
| 8123 |
(check_format_types): Add param "arglocs"; use it if non-NULL when |
| 8124 |
!EXPR_HAS_LOCATION (cur_param) to get at location information. |
| 8125 |
|
| 8126 |
2017-08-18 H.J. Lu <[email protected]> |
| 8127 |
|
| 8128 |
PR c/53037 |
| 8129 |
* c-attribs.c (handle_warn_if_not_aligned_attribute): New. |
| 8130 |
(c_common_attribute_table): Add warn_if_not_aligned. |
| 8131 |
(handle_aligned_attribute): Renamed to ... |
| 8132 |
(common_handle_aligned_attribute): Remove argument, name, and add |
| 8133 |
argument, warn_if_not_aligned. Handle warn_if_not_aligned. |
| 8134 |
(handle_aligned_attribute): New. |
| 8135 |
* c.opt: Add -Wif-not-aligned and -Wpacked-not-aligned. |
| 8136 |
|
| 8137 |
2017-08-14 Martin Sebor <[email protected]> |
| 8138 |
|
| 8139 |
PR c/81117 |
| 8140 |
* c-attribs.c (c_common_attribute_table): Add nonstring entry. |
| 8141 |
(handle_nonstring_attribute): New function. |
| 8142 |
|
| 8143 |
2017-08-14 Martin Sebor <[email protected]> |
| 8144 |
|
| 8145 |
PR c/81117 |
| 8146 |
* c-format.h (T89_G): New macro. |
| 8147 |
* c-format.c (local_gcall_ptr_node): New variable. |
| 8148 |
(init_dynamic_diag_info): Initialize it. |
| 8149 |
|
| 8150 |
2017-08-11 Martin Liska <[email protected]> |
| 8151 |
|
| 8152 |
* c-opts.c (c_common_post_options): Replace ASM_OUTPUT_DEF with |
| 8153 |
TARGET_SUPPORTS_ALIASES. |
| 8154 |
|
| 8155 |
2017-08-10 David Malcolm <[email protected]> |
| 8156 |
|
| 8157 |
* c-common.c (c_parse_error): Add rich_location * param, using it |
| 8158 |
rather implicitly using input_location. |
| 8159 |
* c-common.h (c_parse_error): Add rich_location * param. |
| 8160 |
|
| 8161 |
2017-08-09 Marek Polacek <[email protected]> |
| 8162 |
|
| 8163 |
* c-common.c (pointer_int_sum): Use true/false instead of 1/0. |
| 8164 |
(c_common_truthvalue_conversion): Likewise. |
| 8165 |
* c-omp.c (c_finish_omp_atomic): Likewise. |
| 8166 |
* c-common.h (build_binary_op): Update declaration. |
| 8167 |
|
| 8168 |
2017-08-08 Martin Liska <[email protected]> |
| 8169 |
|
| 8170 |
* c-ada-spec.c: Include header files. |
| 8171 |
* c-ubsan.c: Likewise. |
| 8172 |
* c-warn.c: Likewise. |
| 8173 |
|
| 8174 |
2017-08-07 Jakub Jelinek <[email protected]> |
| 8175 |
|
| 8176 |
PR c/69389 |
| 8177 |
* c-omp.c (c_finish_omp_atomic): Handle atomics on bitfields. |
| 8178 |
|
| 8179 |
2017-08-07 Eric Botcazou <[email protected]> |
| 8180 |
|
| 8181 |
* c-ada-spec.c (has_nontrivial_methods): Test for FUNCTION_DECL. |
| 8182 |
(print_ada_methods): Likewise. |
| 8183 |
(print_ada_declaration): Likewise. |
| 8184 |
|
| 8185 |
2017-08-07 Martin Liska <[email protected]> |
| 8186 |
|
| 8187 |
* array-notation-common.c: Add new includes. |
| 8188 |
* c-format.c( handle_format_attribute): Canonicalize a format |
| 8189 |
function name. |
| 8190 |
* c-lex.c (c_common_has_attribute): Canonicalize name of an |
| 8191 |
attribute. |
| 8192 |
* c-pretty-print.c: Add new include. |
| 8193 |
|
| 8194 |
2017-08-05 Eric Botcazou <[email protected]> |
| 8195 |
|
| 8196 |
* c-ada-spec.c (has_static_fields): Look only into variables. |
| 8197 |
(print_constructor): Add TYPE parameter and use it for the name. |
| 8198 |
(print_destructor): Likewise. |
| 8199 |
(print_ada_declaration): Adjust to new constructor/destructor names. |
| 8200 |
Adjust calls to print_constructor and print_destructor. |
| 8201 |
(print_ada_struct_decl): Do not test TREE_STATIC on FIELD_DECL. |
| 8202 |
Look only into variables in the final loop. |
| 8203 |
|
| 8204 |
2017-08-01 Eric Botcazou <[email protected]> |
| 8205 |
|
| 8206 |
* c-ada-spec.c (has_static_fields): Look only into fields. |
| 8207 |
(dump_generic_ada_node): Small tweak. |
| 8208 |
(dump_nested_types): Look only into fields. |
| 8209 |
(print_ada_declaration): Look only into methods. Small tweak. |
| 8210 |
(print_ada_struct_decl): Look only into fields. Use DECL_VIRTUAL_P. |
| 8211 |
|
| 8212 |
2017-08-01 Eric Botcazou <[email protected]> |
| 8213 |
|
| 8214 |
* c-ada-spec.c (print_generic_ada_decl): Pass correctly-typed constant. |
| 8215 |
(dump_ada_function_declaration): Likewise. |
| 8216 |
(dump_generic_ada_node): Likewise. |
| 8217 |
(print_ada_declaration): Add support for const-qualified variables. |
| 8218 |
|
| 8219 |
2017-07-31 Martin Liska <[email protected]> |
| 8220 |
|
| 8221 |
PR sanitize/81530 |
| 8222 |
* c-ubsan.c (ubsan_maybe_instrument_array_ref): |
| 8223 |
Guard condition with flag_sanitize_p also with current_function_decl |
| 8224 |
non-null equality. |
| 8225 |
(ubsan_maybe_instrument_reference_or_call): Likewise. |
| 8226 |
|
| 8227 |
2017-07-30 Uros Bizjak <[email protected]> |
| 8228 |
|
| 8229 |
* c-format.c (asm_fprintf_char_table): Add 'z' to format_chars. |
| 8230 |
|
| 8231 |
2017-07-29 Eric Botcazou <[email protected]> |
| 8232 |
|
| 8233 |
* c-ada-spec.c (dump_generic_ada_node): Take into account signedness |
| 8234 |
for enumeral types. |
| 8235 |
(print_ada_declaration): Add missing guard for record types. |
| 8236 |
|
| 8237 |
2017-07-27 Jakub Jelinek <[email protected]> |
| 8238 |
|
| 8239 |
PR c/45784 |
| 8240 |
* c-omp.c (c_finish_omp_for): If the condition is wrapped in |
| 8241 |
rhs of COMPOUND_EXPR(s), skip them and readd their lhs into |
| 8242 |
new COMPOUND_EXPRs around the rhs of the comparison. |
| 8243 |
|
| 8244 |
2017-07-27 Marek Polacek <[email protected]> |
| 8245 |
|
| 8246 |
PR c/81417 |
| 8247 |
* c-warn.c (warn_for_sign_compare): Tweak the warning message. Print |
| 8248 |
the types. |
| 8249 |
|
| 8250 |
2017-07-27 Jakub Jelinek <[email protected]> |
| 8251 |
|
| 8252 |
* c-attribs.c (c_common_attribute_table): Add noipa attribute. |
| 8253 |
(handle_noipa_attribute): New function. |
| 8254 |
|
| 8255 |
2017-07-07 Torsten Duwe <[email protected]> |
| 8256 |
|
| 8257 |
* c-attribs.c (c_common_attribute_table): Add entry for |
| 8258 |
"patchable_function_entry". |
| 8259 |
|
| 8260 |
2017-07-20 Nathan Sidwell <[email protected]> |
| 8261 |
|
| 8262 |
Remove TYPE_METHODS. |
| 8263 |
* c-ada-spec.c (is_tagged_type, has_nontrivial_methods, |
| 8264 |
dump_ada_template, print_ada_methods, |
| 8265 |
print_ada_declaration): Member fns are on TYPE_FIELDS. |
| 8266 |
|
| 8267 |
2017-07-18 Nathan Sidwell <[email protected]> |
| 8268 |
|
| 8269 |
* c-warn.c (warn_for_memset): Use TYPE_{MIN,MAX}_VALUE. |
| 8270 |
|
| 8271 |
2017-07-14 David Malcolm <[email protected]> |
| 8272 |
|
| 8273 |
* c-common.c (try_to_locate_new_include_insertion_point): New |
| 8274 |
function. |
| 8275 |
(per_file_includes_t): New typedef. |
| 8276 |
(added_includes_t): New typedef. |
| 8277 |
(added_includes): New variable. |
| 8278 |
(maybe_add_include_fixit): New function. |
| 8279 |
* c-common.h (maybe_add_include_fixit): New decl. |
| 8280 |
|
| 8281 |
2017-07-10 Martin Sebor <[email protected]> |
| 8282 |
|
| 8283 |
PR other/81345 |
| 8284 |
* c.opt (-Wstringop-overflow): Set defaults in LangEnabledBy. |
| 8285 |
|
| 8286 |
2017-07-06 David Malcolm <[email protected]> |
| 8287 |
|
| 8288 |
* c-common.c (selftest::c_family_tests): New. |
| 8289 |
* c-common.h (selftest::run_c_tests): Move decl to c/c-lang.h. |
| 8290 |
(selftest::c_family_tests): New decl. |
| 8291 |
|
| 8292 |
2017-07-04 Marek Polacek <[email protected]> |
| 8293 |
|
| 8294 |
PR c/81231 |
| 8295 |
* c-common.c (sync_resolve_size): Give error for pointers to incomplete |
| 8296 |
types. |
| 8297 |
|
| 8298 |
2017-07-04 Marek Polacek <[email protected]> |
| 8299 |
|
| 8300 |
* c-warn.c (warn_if_unused_value): Remove WITH_CLEANUP_EXPR handling. |
| 8301 |
|
| 8302 |
2017-06-28 Martin Liska <[email protected]> |
| 8303 |
|
| 8304 |
PR ipa/81128 |
| 8305 |
* c-attribs.c (handle_alias_ifunc_attribute): Append ifunc alias |
| 8306 |
to a function declaration. |
| 8307 |
|
| 8308 |
2017-06-28 Martin Liska <[email protected]> |
| 8309 |
|
| 8310 |
PR driver/79659 |
| 8311 |
* c.opt: Add IntegerRange to various options. |
| 8312 |
|
| 8313 |
2017-06-26 Marek Polacek <[email protected]> |
| 8314 |
|
| 8315 |
PR c/80116 |
| 8316 |
* c-common.h (warn_for_multistatement_macros): Declare. |
| 8317 |
* c-warn.c: Include "c-family/c-indentation.h". |
| 8318 |
(warn_for_multistatement_macros): New function. |
| 8319 |
* c.opt (Wmultistatement-macros): New option. |
| 8320 |
* c-indentation.c (guard_tinfo_to_string): No longer static. |
| 8321 |
Change the parameter type to "enum rid". Handle RID_SWITCH. |
| 8322 |
* c-indentation.h (guard_tinfo_to_string): Declare. |
| 8323 |
|
| 8324 |
2017-06-23 Marc Glisse <[email protected]> |
| 8325 |
|
| 8326 |
* c-common.c (c_common_nodes_and_builtins): Use builtin_structptr_types. |
| 8327 |
|
| 8328 |
2017-06-15 Martin Sebor <[email protected]> |
| 8329 |
|
| 8330 |
PR c++/80560 |
| 8331 |
* c.opt (-Wclass-memaccess): New option. |
| 8332 |
|
| 8333 |
2017-06-14 Boris Kolpackov <[email protected]> |
| 8334 |
|
| 8335 |
* c-opts.c (c_common_finish): Handle '-' special value to -MF. |
| 8336 |
|
| 8337 |
2017-06-13 Marek Polacek <[email protected]> |
| 8338 |
|
| 8339 |
PR objc/80949 |
| 8340 |
* c-warn.c (do_warn_duplicated_branches): Return if any of the |
| 8341 |
branches is null. |
| 8342 |
|
| 8343 |
2017-06-13 Martin Liska <[email protected]> |
| 8344 |
|
| 8345 |
PR sanitize/78204 |
| 8346 |
* c-attribs.c (add_no_sanitize_value): New function. |
| 8347 |
(handle_no_sanitize_attribute): Likewise. |
| 8348 |
(handle_no_sanitize_address_attribute): Use the function. |
| 8349 |
(handle_no_sanitize_thread_attribute): New function. |
| 8350 |
(handle_no_address_safety_analysis_attribute): Use |
| 8351 |
add_no_sanitize_value. |
| 8352 |
(handle_no_sanitize_undefined_attribute): Likewise. |
| 8353 |
* c-common.h: Declare new functions. |
| 8354 |
* c-ubsan.c (ubsan_instrument_division): Use sanitize_flags_p. |
| 8355 |
(ubsan_instrument_shift): Likewise. |
| 8356 |
(ubsan_instrument_bounds): Likewise. |
| 8357 |
(ubsan_maybe_instrument_array_ref): Likewise. |
| 8358 |
(ubsan_maybe_instrument_reference_or_call): Likewise. |
| 8359 |
|
| 8360 |
2017-06-11 Jason Merrill <[email protected]> |
| 8361 |
|
| 8362 |
* c-ada-spec.c, c-pragma.c: Use id_equal. |
| 8363 |
|
| 8364 |
2017-06-04 Marek Polacek <[email protected]> |
| 8365 |
|
| 8366 |
PR c/80919 |
| 8367 |
* c-format.c (matching_type_p): Return false if any of the types |
| 8368 |
requires structural equality. |
| 8369 |
|
| 8370 |
2017-06-02 Martin Sebor <[email protected]> |
| 8371 |
|
| 8372 |
PR c/80892 |
| 8373 |
* c-warn.c (conversion_warning): Use -Wconversion for integer |
| 8374 |
conversion and -Wfloat-conversion for floating one. |
| 8375 |
|
| 8376 |
2017-06-02 Bernd Edlinger <[email protected]> |
| 8377 |
|
| 8378 |
* c.opt (Wsizeof-pointer-div): New warning option. |
| 8379 |
|
| 8380 |
2017-06-01 Volker Reichelt <[email protected]> |
| 8381 |
|
| 8382 |
* c.opt (Wcatch-value): New shortcut for Wcatch-value=1. |
| 8383 |
(Wcatch-value=1): Enable by -Wall. |
| 8384 |
|
| 8385 |
2017-05-30 David Malcolm <[email protected]> |
| 8386 |
|
| 8387 |
* c-format.c (gcc_cxxdiag_char_table): Add 'H' and 'I' to |
| 8388 |
format_chars. |
| 8389 |
* c.opt (fdiagnostics-show-template-tree): New option. |
| 8390 |
(felide-type): New option. |
| 8391 |
|
| 8392 |
2017-05-25 Volker Reichelt <[email protected]> |
| 8393 |
|
| 8394 |
* c.opt (Wcatch-value=): New C++ warning flag. |
| 8395 |
|
| 8396 |
2017-05-24 Nathan Sidwell <[email protected]> |
| 8397 |
|
| 8398 |
* c=common.c (field_decl_cmp, resort_field_decl_cmp): Adjust T |
| 8399 |
const casts to avoid warning. |
| 8400 |
|
| 8401 |
2017-05-24 Martin Sebor <[email protected]> |
| 8402 |
|
| 8403 |
PR c/80731 |
| 8404 |
* c-common.h (unsafe_conversion_p): Add a function argument. |
| 8405 |
* c-common.c (unsafe_conversion_p): Same. |
| 8406 |
Add type names and values to diagnostics. |
| 8407 |
(scalar_to_vector): Adjust. |
| 8408 |
* c-warn.c (constant_expression_error): Add a function argument. |
| 8409 |
Add type names and values to diagnostics. |
| 8410 |
(conversion_warning): Add a function argument. |
| 8411 |
Add type names and values to diagnostics. |
| 8412 |
(warnings_for_convert_and_check): Same. |
| 8413 |
|
| 8414 |
2017-05-19 Jason Merrill <[email protected]> |
| 8415 |
|
| 8416 |
* c-warn.c (match_case_to_enum_1): Don't warn about enums with no |
| 8417 |
enumerators. |
| 8418 |
|
| 8419 |
2017-05-19 Bernd Edlinger <[email protected]> |
| 8420 |
|
| 8421 |
* c-format.c (locus): Move out of function scope, |
| 8422 |
add GTY attribute. |
| 8423 |
|
| 8424 |
2017-05-19 Nathan Sidwell <[email protected]> |
| 8425 |
|
| 8426 |
* c-opts.c (class_dump_file, class_dump_flags): Delete. |
| 8427 |
(c_common_parse_file): Remove class dump handling. |
| 8428 |
(get_dump_info): Likewise. |
| 8429 |
|
| 8430 |
2017-05-19 Richard Biener <[email protected]> |
| 8431 |
|
| 8432 |
PR c++/80593 |
| 8433 |
* c-warn.c (strict_aliasing_warning): Do not warn for accesses |
| 8434 |
to alias-set zero memory. |
| 8435 |
|
| 8436 |
2017-05-18 Bernd Edlinger <[email protected]> |
| 8437 |
|
| 8438 |
* c-format.c (local_tree_type_node): Add GTY attribute. |
| 8439 |
|
| 8440 |
2017-05-18 Marek Polacek <[email protected]> |
| 8441 |
|
| 8442 |
* c-common.c (c_common_type_for_size): Use NULL_TREE instead of 0. |
| 8443 |
(c_common_fixed_point_type_for_size): Likewise. |
| 8444 |
(c_common_type_for_mode): Likewise. |
| 8445 |
(shorten_compare): Likewise. |
| 8446 |
(c_promoting_integer_type_p): Use false/true instead of 0/1. |
| 8447 |
* c-pragma.c (maybe_apply_renaming_pragma): Use NULL_TREE instead of 0. |
| 8448 |
|
| 8449 |
2017-05-18 Marek Polacek <[email protected]> |
| 8450 |
|
| 8451 |
* c-common.c (self_promoting_args_p): Change the return type to bool. |
| 8452 |
Use false/true instead of 0/1. |
| 8453 |
* c-common.h (self_promoting_args_p): Update. |
| 8454 |
|
| 8455 |
2017-05-17 Marek Polacek <[email protected]> |
| 8456 |
|
| 8457 |
* c-common.c: Use NULL_TREE instead of 0 where appropriate. |
| 8458 |
* c-warn.c: Likewise. |
| 8459 |
|
| 8460 |
2017-05-17 Ville Voutilainen <[email protected]> |
| 8461 |
|
| 8462 |
Implement new C++ intrinsics __is_assignable and __is_constructible. |
| 8463 |
* c-common.c (__is_assignable, __is_constructible): New. |
| 8464 |
* c-common.h (RID_IS_ASSIGNABLE, RID_IS_CONSTRUCTIBLE): Likewise. |
| 8465 |
|
| 8466 |
2017-05-17 Martin Liska <[email protected]> |
| 8467 |
|
| 8468 |
* c-common.h: Introduce dump_flags_t type and |
| 8469 |
use it instead of int type. |
| 8470 |
* c-gimplify.c (c_genericize): Likewise. |
| 8471 |
* c-opts.c: Likewise. |
| 8472 |
|
| 8473 |
2017-05-17 Marek Polacek <[email protected]> |
| 8474 |
|
| 8475 |
* c-common.c (c_save_expr): Remove. |
| 8476 |
(c_common_truthvalue_conversion): Remove a call to c_save_expr. |
| 8477 |
* c-common.h (c_save_expr): Remove declaration. |
| 8478 |
|
| 8479 |
2017-05-09 Volker Reichelt <[email protected]> |
| 8480 |
|
| 8481 |
PR c/35441 |
| 8482 |
* c-pretty-print.c (c_pretty_printer::expression): Handle MAX_EXPR, |
| 8483 |
MIN_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, LROTATE_EXPR, RROTATE_EXPR. |
| 8484 |
(c_pretty_printer::postfix_expression): Handle MAX_EXPR, MIN_EXPR. |
| 8485 |
(c_pretty_printer::multiplicative_expression): Handle EXACT_DIV_EXPR, |
| 8486 |
RDIV_EXPR. |
| 8487 |
(pp_c_shift_expression): Handle LROTATE_EXPR, RROTATE_EXPR. |
| 8488 |
|
| 8489 |
2017-05-09 Marek Polacek <[email protected]> |
| 8490 |
|
| 8491 |
PR c/80525 |
| 8492 |
* c-warn.c (unwrap_c_maybe_const): New. |
| 8493 |
(warn_logical_operator): Call it. |
| 8494 |
|
| 8495 |
2017-05-09 Nathan Sidwell <[email protected]> |
| 8496 |
|
| 8497 |
* c-common.c (c_register_builtin_type): Use pushdecl lang_hook. |
| 8498 |
* c-common.h (pushdecl_top_level, pushdecl): Don't declare here. |
| 8499 |
|
| 8500 |
2017-05-08 Martin Sebor <[email protected]> |
| 8501 |
|
| 8502 |
PR translation/80280 |
| 8503 |
* c-format.h (struct format_flag_spec): Add new member. |
| 8504 |
(T89_T): New macro. |
| 8505 |
* c-format.c (local_tree_type_node): New global. |
| 8506 |
(printf_flag_specs, asm_fprintf_flag_spec): Initialize new data. |
| 8507 |
(gcc_diag_flag_specs, scanf_flag_specs, strftime_flag_specs): Ditto. |
| 8508 |
(strfmon_flag_specs): Likewise. |
| 8509 |
(gcc_diag_char_table, gcc_cdiag_char_table): Split up specifiers |
| 8510 |
with distinct quoting properties. |
| 8511 |
(gcc_tdiag_char_table, gcc_cxxdiag_char_table): Same. |
| 8512 |
(flag_chars_t::validate): Add argument and handle bad quoting. |
| 8513 |
(check_format_info_main): Handle quoting problems. |
| 8514 |
(init_dynamic_diag_info): Simplify. |
| 8515 |
|
| 8516 |
2017-05-08 Jason Merrill <[email protected]> |
| 8517 |
|
| 8518 |
* c-opts.c (c_common_post_options): Update defaults for |
| 8519 |
flag_abi_version and flag_abi_compat_version. |
| 8520 |
|
| 8521 |
2017-05-05 David Malcolm <[email protected]> |
| 8522 |
|
| 8523 |
* c-common.c (c_cpp_error): Replace report_diagnostic |
| 8524 |
with diagnostic_report_diagnostic. |
| 8525 |
|
| 8526 |
2017-05-04 Martin Sebor <[email protected]> |
| 8527 |
|
| 8528 |
PR translation/80280 |
| 8529 |
* c-attribs.c (handle_alias_ifunc_attribute): Quote a %D directive. |
| 8530 |
(handle_weakref_attribute): Same. |
| 8531 |
|
| 8532 |
2017-05-03 Nathan Sidwell <[email protected]> |
| 8533 |
|
| 8534 |
Canonicalize canonical type hashing |
| 8535 |
* c-common.c (complete_array_type): Use type_hash_canon. |
| 8536 |
|
| 8537 |
2017-05-01 Xi Ruoyao <[email protected]> |
| 8538 |
|
| 8539 |
PR c++/80038 |
| 8540 |
* c-common.h (cilk_gimplify_call_params_in_spawned_fn): Remove |
| 8541 |
prototype. |
| 8542 |
(cilk_install_body_pedigree_operations): Likewise. |
| 8543 |
* cilk.c (cilk_set_spawn_marker): Mark functions that should be |
| 8544 |
detatched. |
| 8545 |
(cilk_gimplify_call_params_in_spawned_fn): Remove. |
| 8546 |
(cilk_install_body_pedigree_operations): Likewise. |
| 8547 |
(gimplify_cilk_spawn): Add EXPR_STMT and CLEANUP_POINT_EXPR |
| 8548 |
unwrapping. |
| 8549 |
|
| 8550 |
2017-04-27 Jakub Jelinek <[email protected]> |
| 8551 |
|
| 8552 |
PR c++/80534 |
| 8553 |
* c-common.c (complete_array_type): Only hash TYPE_TYPELESS_STORAGE |
| 8554 |
flag on non-aggregate element types. |
| 8555 |
|
| 8556 |
2017-04-25 Bernd Edlinger <[email protected]> |
| 8557 |
|
| 8558 |
* c-common.c (c_type_hasher, type_hash_table): Remove. |
| 8559 |
(c_common_get_alias_set): Remove unreachable code. |
| 8560 |
* c-opts.c (c_common_post_options): Make sure cc1 takes only one file. |
| 8561 |
|
| 8562 |
2017-04-20 Volker Reichelt <[email protected]> |
| 8563 |
|
| 8564 |
* c.opt (Wextra-semi): New C++ warning flag. |
| 8565 |
|
| 8566 |
2017-04-20 Jakub Jelinek <[email protected]> |
| 8567 |
|
| 8568 |
PR middle-end/80423 |
| 8569 |
* c-common.c (complete_array_type): Preserve TYPE_TYPELESS_STORAGE. |
| 8570 |
|
| 8571 |
2017-04-18 Jakub Jelinek <[email protected]> |
| 8572 |
|
| 8573 |
PR middle-end/79788 |
| 8574 |
PR middle-end/80375 |
| 8575 |
* c-common.c (c_common_type_for_mode): Don't handle |
| 8576 |
widest_*_literal_type_node here. |
| 8577 |
c_common_signed_or_unsigned_type): Likewise. |
| 8578 |
(c_common_nodes_and_builtins): Set widest_*_literal_type_node |
| 8579 |
to *intTI_type_node or *intDI_type_node depending on whether |
| 8580 |
TImode is supported by the target or not. |
| 8581 |
|
| 8582 |
2017-04-10 Martin Liska <[email protected]> |
| 8583 |
|
| 8584 |
PR sanitizer/80350 |
| 8585 |
* c-ubsan.c (ubsan_instrument_shift): Evaluate RHS before |
| 8586 |
doing an UBSAN check. |
| 8587 |
|
| 8588 |
2017-04-03 Jonathan Wakely <[email protected]> |
| 8589 |
|
| 8590 |
* c-warn.c (do_warn_double_promotion): Fix typo in comment. |
| 8591 |
|
| 8592 |
2017-03-31 Jakub Jelinek <[email protected]> |
| 8593 |
|
| 8594 |
PR c++/79572 |
| 8595 |
* c-ubsan.h (ubsan_maybe_instrument_reference): Change argument to |
| 8596 |
tree *. |
| 8597 |
* c-ubsan.c (ubsan_maybe_instrument_reference): Likewise. Handle |
| 8598 |
not just NOP_EXPR to REFERENCE_TYPE, but also INTEGER_CST with |
| 8599 |
REFERENCE_TYPE. |
| 8600 |
|
| 8601 |
2017-03-31 David Malcolm <[email protected]> |
| 8602 |
|
| 8603 |
PR documentation/78732 |
| 8604 |
* c.opt (Wendif-labels): Fix description to refer to |
| 8605 |
#else rather than #elif. |
| 8606 |
|
| 8607 |
2017-03-31 Jakub Jelinek <[email protected]> |
| 8608 |
|
| 8609 |
PR libstdc++/80251 |
| 8610 |
* c-common.h (enum rid): Add RID_IS_AGGREGATE. |
| 8611 |
* c-common.c (c_common_reswords): Add __is_aggregate trait. |
| 8612 |
|
| 8613 |
2017-03-27 Jakub Jelinek <[email protected]> |
| 8614 |
|
| 8615 |
PR middle-end/80162 |
| 8616 |
* c-common.c (c_common_mark_addressable_vec): Don't set |
| 8617 |
TREE_ADDRESSABLE on DECL_HARD_REGISTER. |
| 8618 |
|
| 8619 |
2017-03-21 Martin Sebor <[email protected]> |
| 8620 |
|
| 8621 |
PR c++/79548 |
| 8622 |
* c-common.c (set_underlying_type): Mark type used only when |
| 8623 |
original del is declared unused. |
| 8624 |
|
| 8625 |
2017-03-10 David Malcolm <[email protected]> |
| 8626 |
|
| 8627 |
PR translation/79848 |
| 8628 |
* c-format.c (check_format_string): Simplify uses of "%<%s%>" to |
| 8629 |
"%qs". |
| 8630 |
|
| 8631 |
2017-03-10 David Malcolm <[email protected]> |
| 8632 |
|
| 8633 |
PR c/79921 |
| 8634 |
* c-indentation.c (warn_for_misleading_indentation): Remove parens |
| 8635 |
from inform's message, so that xgettext can locate it. |
| 8636 |
|
| 8637 |
2017-03-09 Marek Polacek <[email protected]> |
| 8638 |
|
| 8639 |
PR c++/79962 |
| 8640 |
PR c++/79984 |
| 8641 |
* c-attribs.c (handle_nonnull_attribute): Save the result of default |
| 8642 |
conversion to the attribute list. |
| 8643 |
|
| 8644 |
2017-03-09 Martin Liska <[email protected]> |
| 8645 |
|
| 8646 |
* c-ada-spec.c (macro_length): Increment value instead of a pointer. |
| 8647 |
|
| 8648 |
2017-03-03 Jason Merrill <[email protected]> |
| 8649 |
|
| 8650 |
* c.opt (Wnoexcept-type): New. |
| 8651 |
|
| 8652 |
2017-03-02 Richard Biener <[email protected]> |
| 8653 |
|
| 8654 |
PR c/79756 |
| 8655 |
* c-common.c (c_common_mark_addressable_vec): Look through |
| 8656 |
C_MAYBE_CONST_EXPR. |
| 8657 |
|
| 8658 |
2017-02-28 Martin Liska <[email protected]> |
| 8659 |
|
| 8660 |
* c.opt: Replace space with tabular for options of <number> |
| 8661 |
type. |
| 8662 |
|
| 8663 |
2017-02-28 Martin Liska <[email protected]> |
| 8664 |
|
| 8665 |
* c.opt: Fix --help=option -Q for options which are of |
| 8666 |
an enum type. |
| 8667 |
|
| 8668 |
2017-02-24 Jakub Jelinek <[email protected]> |
| 8669 |
|
| 8670 |
PR c++/79588 |
| 8671 |
* c-common.c (check_function_restrict): New function. |
| 8672 |
(check_function_arguments): Add FNDECL argument. Call |
| 8673 |
check_function_restrict if -Wrestrict. |
| 8674 |
* c-warn.c (warn_for_restrict): Remove ARGS argument, add ARGARRAY |
| 8675 |
and NARGS. Use auto_vec for ARG_POSITIONS, simplify. |
| 8676 |
* c-common.h (check_function_arguments): Add FNDECL argument. |
| 8677 |
(warn_for_restrict): Remove ARGS argument, add ARGARRAY and NARGS. |
| 8678 |
|
| 8679 |
2017-02-24 Eric Botcazou <[email protected]> |
| 8680 |
|
| 8681 |
* c-ada-spec.c (dump_ada_function_declaration): Add comment about the |
| 8682 |
treatment of parameters with pointer-to-tagged type and tidy up. |
| 8683 |
(print_ada_methods): Remove the special treatment of C++ static member |
| 8684 |
functions. |
| 8685 |
|
| 8686 |
2017-02-22 Martin Liska <[email protected]> |
| 8687 |
|
| 8688 |
* c.opt: Replace inequality signs with square brackets |
| 8689 |
for -Wnornalized. |
| 8690 |
|
| 8691 |
2017-02-21 Jakub Jelinek <[email protected]> |
| 8692 |
|
| 8693 |
PR c++/79641 |
| 8694 |
* c-attribs.c (handle_mode_attribute): Use build_qualified_type to |
| 8695 |
preserve quals. |
| 8696 |
|
| 8697 |
2017-02-17 Joseph Myers <[email protected]> |
| 8698 |
|
| 8699 |
* c-cppbuiltin.c (builtin_define_float_constants): Define |
| 8700 |
__DECIMAL_DIG__ to the value for long double. |
| 8701 |
|
| 8702 |
2017-02-15 Marek Polacek <[email protected]> |
| 8703 |
|
| 8704 |
PR c/79515 |
| 8705 |
* c-warn.c (do_warn_double_promotion): Don't warn if an invalid |
| 8706 |
conversion has occured. |
| 8707 |
|
| 8708 |
2017-01-24 David Malcolm <[email protected]> |
| 8709 |
|
| 8710 |
* c-common.c (c_common_reswords): Add "__RTL". |
| 8711 |
* c-common.h (enum rid): Add RID_RTL. |
| 8712 |
|
| 8713 |
2017-01-20 Marek Polacek <[email protected]> |
| 8714 |
|
| 8715 |
PR c/64279 |
| 8716 |
* c-common.h (do_warn_duplicated_branches_r): Declare. |
| 8717 |
* c-gimplify.c (c_genericize): Walk the function tree calling |
| 8718 |
do_warn_duplicated_branches_r. |
| 8719 |
* c-warn.c (expr_from_macro_expansion_r): New. |
| 8720 |
(do_warn_duplicated_branches): New. |
| 8721 |
(do_warn_duplicated_branches_r): New. |
| 8722 |
* c.opt (Wduplicated-branches): New option. |
| 8723 |
|
| 8724 |
2017-01-17 David Malcolm <[email protected]> |
| 8725 |
|
| 8726 |
PR c++/71497 |
| 8727 |
* c-indentation.c (warn_for_misleading_indentation): Use the past |
| 8728 |
subjunctive in the note. |
| 8729 |
|
| 8730 |
2017-01-17 Aldy Hernandez <[email protected]> |
| 8731 |
|
| 8732 |
PR c/79116 |
| 8733 |
* array-notation-common.c (cilkplus_extract_an_triplets): Convert |
| 8734 |
start type to integer_type. |
| 8735 |
|
| 8736 |
2017-01-16 Jakub Jelinek <[email protected]> |
| 8737 |
|
| 8738 |
PR driver/49726 |
| 8739 |
* c.opt (gen-decls): Add Driver flag. |
| 8740 |
|
| 8741 |
2017-01-16 Paolo Carlini <[email protected]> |
| 8742 |
|
| 8743 |
Revert: |
| 8744 |
2017-01-16 Paolo Carlini <[email protected]> |
| 8745 |
|
| 8746 |
PR c++/71737 |
| 8747 |
* c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE. |
| 8748 |
|
| 8749 |
2017-01-16 Paolo Carlini <[email protected]> |
| 8750 |
|
| 8751 |
PR c++/71737 |
| 8752 |
* c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE. |
| 8753 |
|
| 8754 |
2017-01-12 Martin Sebor <[email protected]> |
| 8755 |
|
| 8756 |
(-Wformat-overflow): ...to this. |
| 8757 |
|
| 8758 |
2017-01-11 Martin Sebor <[email protected]> |
| 8759 |
|
| 8760 |
PR c/78768 |
| 8761 |
* c.opt (-Walloca-larger-than, -Wformat-length, -Wformat-truncation): |
| 8762 |
Also enable for LTO. |
| 8763 |
|
| 8764 |
2017-01-10 Jason Merrill <[email protected]> |
| 8765 |
|
| 8766 |
Implement P0195R2, C++17 variadic using. |
| 8767 |
* c-cppbuiltin.c (c_cpp_builtins): Define __cpp_variadic_using. |
| 8768 |
|
| 8769 |
2017-01-09 Jakub Jelinek <[email protected]> |
| 8770 |
|
| 8771 |
PR translation/79019 |
| 8772 |
PR translation/79020 |
| 8773 |
* c.opt (Wnormalized=): Fix typo in description. |
| 8774 |
|
| 8775 |
2017-01-08 Martin Sebor <[email protected]> |
| 8776 |
|
| 8777 |
PR middle-end/77708 |
| 8778 |
* c.opt (-Wformat-truncation): New option. |
| 8779 |
|
| 8780 |
2017-01-06 Alexandre Oliva <[email protected]> |
| 8781 |
|
| 8782 |
* c-pretty-print.c (pp_c_tree_decl_identifier): Convert 16-bit |
| 8783 |
value to unsigned short to fit in 4 hex digits without |
| 8784 |
warnings. |
| 8785 |
|
| 8786 |
2017-01-05 Eric Botcazou <[email protected]> |
| 8787 |
|
| 8788 |
* c.opt (fsso-struct): Add 'native' value. |
| 8789 |
|
| 8790 |
2017-01-05 Martin Liska <[email protected]> |
| 8791 |
|
| 8792 |
PR pch/78970 |
| 8793 |
* c-opts.c (c_common_post_options): Reject '-' filename for a precompiled |
| 8794 |
header. |
| 8795 |
|
| 8796 |
2017-01-04 Marek Polacek <[email protected]> |
| 8797 |
|
| 8798 |
PR c++/64767 |
| 8799 |
* c.opt (Wpointer-compare): New option. |
| 8800 |
|
| 8801 |
2017-01-04 Jakub Jelinek <[email protected]> |
| 8802 |
|
| 8803 |
PR driver/78957 |
| 8804 |
* c.opt (fsso-struct=): Add RejectNegative. |
| 8805 |
|
| 8806 |
2017-01-01 Jakub Jelinek <[email protected]> |
| 8807 |
|
| 8808 |
Update copyright years. |
| 8809 |
|
| 8810 |
2016-12-29 Martin Liska <[email protected]> |
| 8811 |
|
| 8812 |
PR c/78933 |
| 8813 |
* c.opt (strong-eval-order): Add RejectNegative keyword. |
| 8814 |
|
| 8815 |
2016-12-22 Jason Merrill <[email protected]> |
| 8816 |
|
| 8817 |
Implement P0522R0, matching of template template arguments. |
| 8818 |
* c-cppbuiltin.c (c_cpp_builtins): Define |
| 8819 |
__cpp_template_template_args. |
| 8820 |
|
| 8821 |
2016-12-21 Jakub Jelinek <[email protected]> |
| 8822 |
|
| 8823 |
PR bootstrap/78817 |
| 8824 |
* c-common.c (struct nonnull_arg_ctx): New type. |
| 8825 |
(check_function_nonnull): Return bool instead of void. Use |
| 8826 |
nonnull_arg_ctx as context rather than just location_t. |
| 8827 |
(check_nonnull_arg): Adjust for the new context type, set |
| 8828 |
warned_p to true if a warning has been diagnosed. |
| 8829 |
(check_function_arguments): Return bool instead of void. |
| 8830 |
* c-common.h (check_function_arguments): Adjust prototype. |
| 8831 |
|
| 8832 |
2016-12-21 Jason Merrill <[email protected]> |
| 8833 |
|
| 8834 |
* c.opt (-fnew-ttp-matching): New flag. |
| 8835 |
* c-opts.c (c_common_post_options): Default on if -std=c++1z. |
| 8836 |
|
| 8837 |
2016-12-14 Martin Jambor <[email protected]> |
| 8838 |
|
| 8839 |
* c-omp.c: Include omp-general.h instead of omp-low.h. |
| 8840 |
(c_finish_oacc_wait): Adjusted call to find_omp_clause to use its new |
| 8841 |
name. |
| 8842 |
|
| 8843 |
2016-12-14 Martin Sebor <[email protected]> |
| 8844 |
|
| 8845 |
PR c/17308 |
| 8846 |
* c-common.c (check_nonnull_arg): Disable when optimization |
| 8847 |
is enabled. |
| 8848 |
|
| 8849 |
2016-12-12 Marek Polacek <[email protected]> |
| 8850 |
|
| 8851 |
PR c++/78647 |
| 8852 |
* c-common.c (attribute_fallthrough_p): Return false for |
| 8853 |
error_mark_node. |
| 8854 |
|
| 8855 |
2016-12-08 Martin Sebor <[email protected]> |
| 8856 |
|
| 8857 |
PR c/78284 |
| 8858 |
* c.opt (-Walloc-zero, -Walloc-size-larger-than): New options. |
| 8859 |
|
| 8860 |
2016-12-08 Martin Sebor <[email protected]> |
| 8861 |
|
| 8862 |
PR c/78165 |
| 8863 |
* c-pretty-print (pp_c_integer_constant): Avoid formatting type |
| 8864 |
suffix. |
| 8865 |
|
| 8866 |
2016-12-07 Martin Sebor <[email protected]> |
| 8867 |
|
| 8868 |
PR c/53562 |
| 8869 |
PR middle-end/77784 |
| 8870 |
PR middle-end/78149 |
| 8871 |
PR middle-end/78138 |
| 8872 |
* c.opt (-Wstringop-overflow): New option. |
| 8873 |
|
| 8874 |
2016-12-02 Maxim Ostapenko <[email protected]> |
| 8875 |
|
| 8876 |
* c-attribs.c (asan odr indicator): New attribute. |
| 8877 |
(handle_asan_odr_indicator_attribute): New function. |
| 8878 |
|
| 8879 |
2016-11-26 Prathamesh Kulkarni <[email protected]> |
| 8880 |
|
| 8881 |
* c-common.c (c_common_nodes_and_builtins): Remove initialization of |
| 8882 |
ptrdiff_type_node; |
| 8883 |
|
| 8884 |
2016-11-23 James Greenhalgh <[email protected]> |
| 8885 |
|
| 8886 |
* c-common.c (excess_precision_mode_join): New. |
| 8887 |
(c_ts18661_flt_eval_method): New. |
| 8888 |
(c_c11_flt_eval_method): Likewise. |
| 8889 |
(c_flt_eval_method): Likewise. |
| 8890 |
* c-common.h (excess_precision_mode_join): New. |
| 8891 |
(c_flt_eval_method): Likewise. |
| 8892 |
* c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): New. |
| 8893 |
(cpp_iec_559_value): Call it. |
| 8894 |
(c_cpp_builtins): Modify logic for __LIBGCC_*_EXCESS_PRECISION__, |
| 8895 |
call c_flt_eval_method to set __FLT_EVAL_METHOD__ and |
| 8896 |
__FLT_EVAL_METHOD_TS_18661_3__. |
| 8897 |
|
| 8898 |
2016-11-23 James Greenhalgh <[email protected]> |
| 8899 |
|
| 8900 |
* c-opts.c (c_common_post_options): Add logic to handle the default |
| 8901 |
case for -fpermitted-flt-eval-methods. |
| 8902 |
|
| 8903 |
2016-11-23 Paolo Bonzini <[email protected]> |
| 8904 |
|
| 8905 |
* c.opt (Wexpansion-to-defined): New. |
| 8906 |
|
| 8907 |
2016-11-23 Jakub Jelinek <[email protected]> |
| 8908 |
|
| 8909 |
PR target/78451 |
| 8910 |
* c-pragma.c (handle_pragma_target): Don't replace |
| 8911 |
current_target_pragma, but chainon the new args to the current one. |
| 8912 |
|
| 8913 |
2016-11-22 Nathan Sidwell <[email protected]> |
| 8914 |
|
| 8915 |
* array-notation-common.c (cilkplus_extract_an_trplets): Fix |
| 8916 |
indentation and formatting. |
| 8917 |
|
| 8918 |
2016-11-21 Martin Sebor <[email protected]> |
| 8919 |
|
| 8920 |
* c.opt (-fprintf-return-value): Enable by default. |
| 8921 |
|
| 8922 |
2016-11-21 Bernd Edlinger <[email protected]> |
| 8923 |
|
| 8924 |
PR c++/71973 |
| 8925 |
* c.opt (-Wbuiltin-declaration-mismatch): New warning. |
| 8926 |
* c-common.c (c_common_nodes_and_builtins): Initialize |
| 8927 |
const_tm_ptr_type_node. |
| 8928 |
|
| 8929 |
2016-11-16 Marek Polacek <[email protected]> |
| 8930 |
|
| 8931 |
PR c/78285 |
| 8932 |
* c-common.c (c_add_case_label): Turn error_at calls into inform. |
| 8933 |
|
| 8934 |
2016-11-14 Jakub Jelinek <[email protected]> |
| 8935 |
|
| 8936 |
* c-cppbuiltin.c (c_cpp_builtins): Define __cpp_structured_bindings. |
| 8937 |
|
| 8938 |
2016-11-14 Prasad Ghangal <[email protected]> |
| 8939 |
Richard Biener <[email protected]> |
| 8940 |
|
| 8941 |
* c-common.h (c_common_resword): Add RID_GIMPLE, RID_PHI types. |
| 8942 |
* c-common.h (enum rid): Add RID_GIMPLE, RID_PHI. |
| 8943 |
* c.opt (fgimple): New option. |
| 8944 |
|
| 8945 |
2016-11-13 Prathamesh Kulkarni <[email protected]> |
| 8946 |
|
| 8947 |
PR c/35503 |
| 8948 |
* c-common.h (warn_for_restrict): Declare. |
| 8949 |
* c-warn.c: Include gcc-rich-location.h. |
| 8950 |
(warn_for_restrict): New function. |
| 8951 |
* c-format.c (gcc_tdiag_char_table): Add entry for "Z" specifier. |
| 8952 |
(gcc_cdiag_char_table): Likewise. |
| 8953 |
(gcc_cxxdiag_char_table): Likewise. |
| 8954 |
* c.opt (Wrestrict): New option. |
| 8955 |
|
| 8956 |
2016-11-13 Eric Botcazou <[email protected]> |
| 8957 |
|
| 8958 |
* c-ada-spec.c (print_ada_declaration): For typedef declarations, look |
| 8959 |
for nested types only if the type is a record or union and dump SLOC. |
| 8960 |
|
| 8961 |
2016-11-09 Jason Merrill <[email protected]> |
| 8962 |
|
| 8963 |
* c-cppbuiltin.c (c_cpp_builtins): Define __cpp_template_auto. |
| 8964 |
|
| 8965 |
2016-11-09 Jakub Jelinek <[email protected]> |
| 8966 |
|
| 8967 |
* c-ubsan.c (ubsan_instrument_shift): Handle split |
| 8968 |
-fsanitize=shift-base and -fsanitize=shift-exponent. |
| 8969 |
|
| 8970 |
2016-11-07 Jason Merrill <[email protected]> |
| 8971 |
|
| 8972 |
* c.opt (Wc++1z-compat): New. |
| 8973 |
* c-cppbuiltin.c (c_cpp_builtins): Add __cpp_noexcept_function_type. |
| 8974 |
|
| 8975 |
2016-11-07 Martin Liska <[email protected]> |
| 8976 |
|
| 8977 |
* c-warn.c (warn_for_unused_label): Save all labels used |
| 8978 |
in goto or in &label. |
| 8979 |
|
| 8980 |
2016-11-03 Jason Merrill <[email protected]> |
| 8981 |
|
| 8982 |
* c-cppbuiltin.c (c_cpp_builtins): Correct |
| 8983 |
__cpp_inheriting_constructors. |
| 8984 |
|
| 8985 |
2016-11-01 Jason Merrill <[email protected]> |
| 8986 |
|
| 8987 |
* c-cppbuiltin.c (c_cpp_builtins): Update |
| 8988 |
__cpp_inheriting_constructors. |
| 8989 |
|
| 8990 |
* c.opt (-fnew-inheriting-ctors): New. |
| 8991 |
* c-opts.c: Default to on for ABI 11+. |
| 8992 |
|
| 8993 |
2016-10-31 Jakub Jelinek <[email protected]> |
| 8994 |
|
| 8995 |
PR c++/77948 |
| 8996 |
* c.opt (fext-numeric-literals): Add Var and Init. |
| 8997 |
* c-opts.c (c_common_handle_option): Don't clear |
| 8998 |
cpp_opts->ext_numeric_literals for -std=c++{11,14,1z}. |
| 8999 |
(c_common_post_options): Clear it here if not set |
| 9000 |
explicitly. |
| 9001 |
|
| 9002 |
2016-10-28 Aldy Hernandez <[email protected]> |
| 9003 |
|
| 9004 |
PR debug/77773 |
| 9005 |
* c-pretty-print.c (simple_type_specifier): Do not dereference `t' |
| 9006 |
if NULL. |
| 9007 |
|
| 9008 |
2016-10-25 Jakub Jelinek <[email protected]> |
| 9009 |
|
| 9010 |
* c-common.h (enum rid): Add RID_BUILTIN_LAUNDER. |
| 9011 |
* c-common.c (c_common_reswords): Add __builtin_launder. |
| 9012 |
|
| 9013 |
2016-10-24 Bernd Edlinger <[email protected]> |
| 9014 |
|
| 9015 |
* c-common.c (c_common_truthvalue_conversion): Warn for |
| 9016 |
multiplications in boolean context. Fix the quoting of '<<' and '<' |
| 9017 |
in the shift warning. |
| 9018 |
|
| 9019 |
2016-10-20 Bernd Edlinger <[email protected]> |
| 9020 |
|
| 9021 |
* c-common.c (c_common_truthvalue_conversion): Fix the comment. |
| 9022 |
|
| 9023 |
2016-10-20 Jason Merrill <[email protected]> |
| 9024 |
|
| 9025 |
* c-cppbuiltin.c (c_cpp_builtins): Update __cpp_concepts value. |
| 9026 |
|
| 9027 |
2016-10-19 Bernd Edlinger <[email protected]> |
| 9028 |
|
| 9029 |
* c-common.c (c_common_truthvalue_conversion): Warn only for signed |
| 9030 |
integer shift ops in boolean context. |
| 9031 |
|
| 9032 |
2016-10-18 Aldy Hernandez <[email protected]> |
| 9033 |
|
| 9034 |
* c.opt (Walloca): New. |
| 9035 |
(Walloca-larger-than=): New. |
| 9036 |
(Wvla-larger-than=): New. |
| 9037 |
|
| 9038 |
2016-10-17 Marek Polacek <[email protected]> |
| 9039 |
|
| 9040 |
* c-warn.c (find_array_ref_with_const_idx_r): Remove parameter names. |
| 9041 |
Return immediately when finding a match. |
| 9042 |
(warn_tautological_cmp): Remove a boolean variable that is no longer |
| 9043 |
needed. |
| 9044 |
|
| 9045 |
2016-10-17 Marek Polacek <[email protected]> |
| 9046 |
|
| 9047 |
* c-attribs.c: New file. |
| 9048 |
* c-common.c: Move attributes handling to c-attribs.c. |
| 9049 |
(get_nonnull_operand): No longer static. |
| 9050 |
* c-common.h: Move the declarations from c-attribs.c to its own section. |
| 9051 |
|
| 9052 |
2016-10-14 Jason Merrill <[email protected]> |
| 9053 |
|
| 9054 |
* c-cppbuiltin.c (c_cpp_builtins): Define __cpp_aggregate_bases |
| 9055 |
and __cpp_deduction_guides. |
| 9056 |
|
| 9057 |
2016-10-13 Jason Merrill <[email protected]> |
| 9058 |
|
| 9059 |
* c-cppbuiltin.c (c_cpp_builtins): Add __cpp_inline_variables. |
| 9060 |
|
| 9061 |
2016-10-13 Thomas Preud'homme <[email protected]> |
| 9062 |
|
| 9063 |
* c-cppbuiltin.c: Include memmodel.h. |
| 9064 |
* c-opts.c: Likewise. |
| 9065 |
* c-pragma.c: Likewise. |
| 9066 |
* c-warn.c: Likewise. |
| 9067 |
|
| 9068 |
2016-10-12 Jakub Jelinek <[email protected]> |
| 9069 |
|
| 9070 |
* c.opt (Wextra): Add as C/C++/ObjC/ObjC++ option. |
| 9071 |
(Wimplicit-fallthrough=): Enable for these languages by -Wextra. |
| 9072 |
* c-opts.c (sanitize_cpp_opts): Initialize |
| 9073 |
cpp_opts->cpp_warn_implicit_fallthrough. |
| 9074 |
|
| 9075 |
2016-10-11 Marek Polacek <[email protected]> |
| 9076 |
|
| 9077 |
* c-common.c (warning_candidate_p): Change the return type to bool |
| 9078 |
and return true/false instead of 1/0. |
| 9079 |
(vector_mode_valid_p): Likewise. |
| 9080 |
|
| 9081 |
2016-10-11 Marek Polacek <[email protected]> |
| 9082 |
|
| 9083 |
* c-common.c (fold_for_warn): No longer static. |
| 9084 |
(bool_promoted_to_int_p): Likewise. |
| 9085 |
(c_common_get_narrower): Likewise. |
| 9086 |
(constant_expression_warning): Move to c-warn.c. |
| 9087 |
(constant_expression_error): Likewise. |
| 9088 |
(overflow_warning): Likewise. |
| 9089 |
(warn_logical_operator): Likewise. |
| 9090 |
(find_array_ref_with_const_idx_r): Likewise. |
| 9091 |
(warn_tautological_cmp): Likewise. |
| 9092 |
(expr_has_boolean_operands_p): Likewise. |
| 9093 |
(warn_logical_not_parentheses): Likewise. |
| 9094 |
(warn_if_unused_value): Likewise. |
| 9095 |
(strict_aliasing_warning): Likewise. |
| 9096 |
(sizeof_pointer_memaccess_warning): Likewise. |
| 9097 |
(check_main_parameter_types): Likewise. |
| 9098 |
(conversion_warning): Likewise. |
| 9099 |
(warnings_for_convert_and_check): Likewise. |
| 9100 |
(match_case_to_enum_1): Likewise. |
| 9101 |
(match_case_to_enum): Likewise. |
| 9102 |
(c_do_switch_warnings): Likewise. |
| 9103 |
(warn_for_omitted_condop): Likewise. |
| 9104 |
(readonly_error): Likewise. |
| 9105 |
(lvalue_error): Likewise. |
| 9106 |
(invalid_indirection_error): Likewise. |
| 9107 |
(warn_array_subscript_with_type_char): Likewise. |
| 9108 |
(warn_about_parentheses): Likewise. |
| 9109 |
(warn_for_unused_label): Likewise. |
| 9110 |
(warn_for_div_by_zero): Likewise. |
| 9111 |
(warn_for_memset): Likewise. |
| 9112 |
(warn_for_sign_compare): Likewise. |
| 9113 |
(do_warn_double_promotion): Likewise. |
| 9114 |
(do_warn_unused_parameter): Likewise. |
| 9115 |
(record_locally_defined_typedef): Likewise. |
| 9116 |
(maybe_record_typedef_use): Likewise. |
| 9117 |
(maybe_warn_unused_local_typedefs): Likewise. |
| 9118 |
(maybe_warn_bool_compare): Likewise. |
| 9119 |
(maybe_warn_shift_overflow): Likewise. |
| 9120 |
(warn_duplicated_cond_add_or_warn): Likewise. |
| 9121 |
(diagnose_mismatched_attributes): Likewise. |
| 9122 |
* c-common.h: Move the declarations from c-warn.c to its own section. |
| 9123 |
* c-warn.c: New file. |
| 9124 |
|
| 9125 |
2016-10-08 Jason Merrill <[email protected]> |
| 9126 |
|
| 9127 |
* c-common.c (c_common_truthvalue_conversion): Don't distribute |
| 9128 |
into COND_EXPR in C++. |
| 9129 |
|
| 9130 |
2016-10-08 Jakub Jelinek <[email protected]> |
| 9131 |
|
| 9132 |
* c-lex.c (c_lex_with_flags) <case CPP_COMMENT>: For CPP_COMMENT |
| 9133 |
token with PREV_FALLTHROUGH, skip all following CPP_PADDING and |
| 9134 |
CPP_COMMENT tokens and set add_flags to PREV_FALLTHROUGH afterwards. |
| 9135 |
|
| 9136 |
2016-10-07 Jakub Jelinek <[email protected]> |
| 9137 |
|
| 9138 |
Implement LWG2296 helper intrinsic |
| 9139 |
* c-common.h (enum rid): Add RID_ADDRESSOF. |
| 9140 |
* c-common.c (c_common_reswords): Add __builtin_addressof. |
| 9141 |
|
| 9142 |
2016-10-07 Bernd Edlinger <[email protected]> |
| 9143 |
|
| 9144 |
PR c++/77700 |
| 9145 |
* c-common.c (c_common_truthvalue_conversion): Warn also for |
| 9146 |
suspicious enum values in boolean context. |
| 9147 |
|
| 9148 |
2016-10-06 Jakub Jelinek <[email protected]> |
| 9149 |
|
| 9150 |
Implement P0258R2 - helper for C++17 |
| 9151 |
std::has_unique_object_representations trait |
| 9152 |
* c-common.h (enum rid): Add RID_HAS_UNIQUE_OBJ_REPRESENTATIONS. |
| 9153 |
* c-common.c (c_common_reswords): Add |
| 9154 |
__has_unique_object_representations. |
| 9155 |
|
| 9156 |
2016-10-05 Jakub Jelinek <[email protected]> |
| 9157 |
|
| 9158 |
PR sanitizer/66343 |
| 9159 |
* c-ubsan.c (ubsan_instrument_return): Don't call |
| 9160 |
initialize_sanitizer_builtins here. |
| 9161 |
|
| 9162 |
2016-10-05 Bernd Edlinger <[email protected]> |
| 9163 |
|
| 9164 |
* c-common.c (c_common_truthvalue_conversion): Warn also for suspicious |
| 9165 |
conditional expression in boolean context when only one arm is |
| 9166 |
non-boolean. |
| 9167 |
|
| 9168 |
2016-10-05 Jakub Jelinek <[email protected]> |
| 9169 |
|
| 9170 |
PR sanitizer/77823 |
| 9171 |
* c-ubsan.c (ubsan_instrument_shift): Return NULL_TREE if type0 |
| 9172 |
is not integral. |
| 9173 |
|
| 9174 |
* c-common.c (c_common_reswords): Update comment for C++11. |
| 9175 |
|
| 9176 |
2016-10-04 Jason Merrill <[email protected]> |
| 9177 |
|
| 9178 |
* c-common.c (make_tree_vector_from_ctor): New. |
| 9179 |
* c-common.h: Declare it. |
| 9180 |
|
| 9181 |
2016-10-04 Jakub Jelinek <[email protected]> |
| 9182 |
|
| 9183 |
* c-cppbuiltin.c (c_cpp_builtins): Don't define |
| 9184 |
__LIBGCC_JCR_SECTION_NAME__. |
| 9185 |
|
| 9186 |
2016-10-03 Bernd Edlinger <[email protected]> |
| 9187 |
|
| 9188 |
* c-common.c (c_common_truthvalue_conversion): Warn for suspicious |
| 9189 |
left shift in boolean context. |
| 9190 |
|
| 9191 |
2016-09-29 Jakub Jelinek <[email protected]> |
| 9192 |
|
| 9193 |
Implement P0001R1 - C++17 removal of register storage class specifier |
| 9194 |
* c.opt (Wregister): New warning. |
| 9195 |
* c-opts.c (c_common_post_options): Enable -Wregister by |
| 9196 |
default for C++17. |
| 9197 |
|
| 9198 |
2016-09-29 James Greenhalgh <[email protected]> |
| 9199 |
|
| 9200 |
* c-opts.c (c_common_post_options): Remove special case for |
| 9201 |
TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard |
| 9202 |
in C++. |
| 9203 |
|
| 9204 |
2016-09-27 Jakub Jelinek <[email protected]> |
| 9205 |
|
| 9206 |
* c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for |
| 9207 |
-std=c++1z. |
| 9208 |
|
| 9209 |
* c-ada-spec.c (print_ada_declaration): Remove break after return. |
| 9210 |
|
| 9211 |
2016-09-26 Thomas Preud'homme <[email protected]> |
| 9212 |
|
| 9213 |
* c-common.c: Include memmodel.h. |
| 9214 |
|
| 9215 |
2016-09-26 Marek Polacek <[email protected]> |
| 9216 |
|
| 9217 |
* c-lex.c (c_common_has_attribute): Handle attribute fallthrough. |
| 9218 |
|
| 9219 |
2016-09-26 Marek Polacek <[email protected]> |
| 9220 |
|
| 9221 |
PR c/7652 |
| 9222 |
* c-common.c (c_common_attribute_table): Add fallthrough attribute. |
| 9223 |
(handle_fallthrough_attribute): New function. |
| 9224 |
(attribute_fallthrough_p): New function. |
| 9225 |
* c-common.h (attribute_fallthrough_p): Declare. |
| 9226 |
|
| 9227 |
2016-09-24 Marek Polacek <[email protected]> |
| 9228 |
|
| 9229 |
PR c/77490 |
| 9230 |
* c.opt (Wbool-operation): New. |
| 9231 |
|
| 9232 |
2016-09-21 Bernd Edlinger <[email protected]> |
| 9233 |
|
| 9234 |
* c-common.c (c_common_truthvalue_conversion): Inhibit |
| 9235 |
Wint-in-bool-context warning with from_macro_definition_at. |
| 9236 |
Mention the expression will always evaluate to true. |
| 9237 |
|
| 9238 |
2016-09-21 Martin Sebor <[email protected]> |
| 9239 |
|
| 9240 |
PR bootstrap/77676 |
| 9241 |
* c.opt (fprintf-return-value): Temporarily initialize to zero |
| 9242 |
to unblock bootstrap failures. |
| 9243 |
|
| 9244 |
2016-09-21 Jakub Jelinek <[email protected]> |
| 9245 |
|
| 9246 |
PR c++/77651 |
| 9247 |
* c.opt (Waligned-new=): Add RejectNegative. |
| 9248 |
(faligned-new=): Likewise. Spelling fix - change |
| 9249 |
aligned_new_threshhold to aligned_new_threshold. |
| 9250 |
* c-cppbuiltin.c (c_cpp_builtins): Change aligned_new_threshhold |
| 9251 |
to aligned_new_threshold. |
| 9252 |
|
| 9253 |
2016-09-20 Martin Sebor <[email protected]> |
| 9254 |
|
| 9255 |
PR middle-end/49905 |
| 9256 |
* c.opt: Add -Wformat-length and -fprintf-return-value. |
| 9257 |
|
| 9258 |
2016-09-19 Bernd Edlinger <[email protected]> |
| 9259 |
|
| 9260 |
PR c++/77434 |
| 9261 |
* c.opt (Wint-in-bool-context): New warning. |
| 9262 |
* c-common.c (c_common_truthvalue_conversion): Warn on integer |
| 9263 |
constants in boolean context. |
| 9264 |
|
| 9265 |
2016-09-19 Joseph Myers <[email protected]> |
| 9266 |
|
| 9267 |
* c-common.c (max_align_t_align): Also consider alignment of |
| 9268 |
float128_type_node. |
| 9269 |
|
| 9270 |
2016-09-15 Jason Merrill <[email protected]> |
| 9271 |
|
| 9272 |
* c-common.c (check_cxx_fundamental_alignment_constraints): Check |
| 9273 |
DECL_EXTERNAL. |
| 9274 |
|
| 9275 |
2016-09-14 Jason Merrill <[email protected]> |
| 9276 |
|
| 9277 |
* c-common.c (check_cxx_fundamental_alignment_constraints): Don't |
| 9278 |
limit FIELD_DECL, either. |
| 9279 |
|
| 9280 |
2016-09-14 Marek Polacek <[email protected]> |
| 9281 |
|
| 9282 |
* c-common.c (c_common_truthvalue_conversion): Use false instead of 0. |
| 9283 |
* c-common.h (build_unary_op): Change nonconvert parameter type to bool. |
| 9284 |
* c-omp.c (c_finish_omp_atomic): Use false instead of 0. |
| 9285 |
|
| 9286 |
2016-09-13 David Malcolm <[email protected]> |
| 9287 |
|
| 9288 |
* c-common.c (warn_logical_not_parentheses): Replace |
| 9289 |
rich_location::add_fixit_insert calls with add_fixit_insert_before |
| 9290 |
and add_fixit_insert_after, eliminating the "next_loc" calculation. |
| 9291 |
|
| 9292 |
2016-09-13 Jason Merrill <[email protected]> |
| 9293 |
Tom de Vries <[email protected]> |
| 9294 |
|
| 9295 |
PR c++/77427 |
| 9296 |
* c-common.c (set_underlying_type): Don't treat array as builtin type. |
| 9297 |
|
| 9298 |
2016-09-13 Jason Merrill <[email protected]> |
| 9299 |
|
| 9300 |
* c-common.c (check_cxx_fundamental_alignment_constraints): Don't |
| 9301 |
limit types at all. |
| 9302 |
|
| 9303 |
2016-09-12 Jason Merrill <[email protected]> |
| 9304 |
|
| 9305 |
* c-common.c (check_cxx_fundamental_alignment_constraints): Fix |
| 9306 |
bit/byte confusion, allow large alignment for types. |
| 9307 |
|
| 9308 |
2016-09-12 Bernd Edlinger <[email protected]> |
| 9309 |
|
| 9310 |
PR c++/77496 |
| 9311 |
* c-common.c (warn_for_omitted_condop): Also warn for boolean data. |
| 9312 |
|
| 9313 |
2016-09-12 David Malcolm <[email protected]> |
| 9314 |
|
| 9315 |
PR c/72858 |
| 9316 |
* c-format.c (argument_parser::check_argument_type): Add params |
| 9317 |
"type_start" and "conversion_char". Use the former to generate |
| 9318 |
offset_to_type_start and pass it and conversion_char to |
| 9319 |
check_format_types. |
| 9320 |
(check_format_info_main): Capture the start of the type |
| 9321 |
information as "type_start", and pass it an format_char |
| 9322 |
to arg_parser.check_argument_type. |
| 9323 |
(check_format_types): Provide an example in the leading comment. |
| 9324 |
Add params "offset_to_type_start" and "conversion_char"; pass |
| 9325 |
them to format_type_warning calls. |
| 9326 |
(test_get_modifier_for_format_len): Likewise. |
| 9327 |
(matching_type_p): New function. |
| 9328 |
(get_format_for_type): Add param "conversion_char" and move |
| 9329 |
implementation into... |
| 9330 |
(get_format_for_type_1): ...new function, called twice. |
| 9331 |
Use new function matching_type_p rather than checking for |
| 9332 |
TYPE_CANONICAL equality. |
| 9333 |
(get_corrected_substring): New function. |
| 9334 |
(format_type_warning): Provide an example in the leading comment. |
| 9335 |
Add params "offset_to_type_start" and "conversion_char". Replace |
| 9336 |
call to get_format_for_type with call to get_corrected_substring |
| 9337 |
and move rejection of hints for widths/precisions there. |
| 9338 |
(assert_format_for_type_streq): Add param "conversion_char". |
| 9339 |
(ASSERT_FORMAT_FOR_TYPE_STREQ): Add param CONVERSION_CHAR. |
| 9340 |
(test_get_format_for_type_printf): Add conversion chars to the |
| 9341 |
tests, adding coverage for various combinations of integer |
| 9342 |
vs double conversions, and for preserving octal and hexadecimal |
| 9343 |
conversions. |
| 9344 |
(test_get_format_for_type_scanf): Add conversion chars to the |
| 9345 |
tests. |
| 9346 |
|
| 9347 |
2016-09-10 Tom de Vries <[email protected]> |
| 9348 |
|
| 9349 |
PR C/71602 |
| 9350 |
* c-common.c (build_va_arg): Handle more strict |
| 9351 |
targetm.canonical_va_list_type. Replace first argument type error with |
| 9352 |
assert. |
| 9353 |
|
| 9354 |
2016-09-09 Martin Sebor <[email protected]> |
| 9355 |
|
| 9356 |
PR c/77520 |
| 9357 |
PR c/77521 |
| 9358 |
* c-format.c (argument_parser::find_format_char_info): Use %qc |
| 9359 |
format directive unconditionally. |
| 9360 |
|
| 9361 |
2016-09-09 Jason Merrill <[email protected]> |
| 9362 |
|
| 9363 |
Implement C++17 new of over-aligned types. |
| 9364 |
* c.opt: Add -faligned-new and -Waligned-new. |
| 9365 |
* c-common.c (max_align_t_align): Split out from... |
| 9366 |
(cxx_fundamental_alignment_p): ...here. |
| 9367 |
* c-common.h: Declare it. |
| 9368 |
* c-cppbuiltin.c (c_cpp_builtins): Handle aligned new. |
| 9369 |
|
| 9370 |
2016-09-09 Joseph Myers <[email protected]> |
| 9371 |
|
| 9372 |
* c-cppbuiltin.c (builtin_define_type_width): New function. |
| 9373 |
(builtin_define_stdint_macros, c_cpp_builtins): Define type width |
| 9374 |
macros. |
| 9375 |
|
| 9376 |
2016-09-07 David Malcolm <[email protected]> |
| 9377 |
|
| 9378 |
* c-common.c (get_cpp_ttype_from_string_type): Handle being passed |
| 9379 |
a POINTER_TYPE. |
| 9380 |
(substring_loc::get_location): Move to substring-locations.c, |
| 9381 |
keeping implementation as... |
| 9382 |
(c_get_substring_location): New function, from the above, reworked |
| 9383 |
to use accessors rather than member lookup. |
| 9384 |
* c-common.h (class substring_loc): Move to substring-locations.h, |
| 9385 |
replacing with a forward decl. |
| 9386 |
(c_get_substring_location): New decl. |
| 9387 |
* c-format.c: Include "substring-locations.h". |
| 9388 |
(format_warning_va): Move to substring-locations.c. |
| 9389 |
(format_warning_at_substring): Likewise. |
| 9390 |
|
| 9391 |
2016-09-06 Martin Sebor <[email protected]> |
| 9392 |
|
| 9393 |
PR c/77336 |
| 9394 |
* c-format.c (check_function_format): Avoid issuing warnings for |
| 9395 |
functions unless they call format functions with non-constant |
| 9396 |
format strings. |
| 9397 |
|
| 9398 |
2016-09-06 Richard Biener <[email protected]> |
| 9399 |
|
| 9400 |
PR c/77450 |
| 9401 |
* c-common.c (c_common_mark_addressable_vec): Handle |
| 9402 |
COMPOUND_LITERAL_EXPR. |
| 9403 |
|
| 9404 |
2016-09-05 Marek Polacek <[email protected]> |
| 9405 |
|
| 9406 |
PR c/77423 |
| 9407 |
* c-common.c (bool_promoted_to_int_p): New function. |
| 9408 |
(expr_has_boolean_operands_p): New function. |
| 9409 |
(warn_logical_not_parentheses): Return if expr_has_boolean_operands_p. |
| 9410 |
(maybe_warn_bool_compare): Use bool_promoted_to_int_p. |
| 9411 |
|
| 9412 |
2016-09-04 Tom de Vries <[email protected]> |
| 9413 |
|
| 9414 |
revert: |
| 9415 |
2016-08-29 Tom de Vries <[email protected]> |
| 9416 |
|
| 9417 |
* c-common.c (build_va_arg): Replace first argument type error |
| 9418 |
with assert. |
| 9419 |
|
| 9420 |
2016-09-02 Jakub Jelinek <[email protected]> |
| 9421 |
|
| 9422 |
PR c/65467 |
| 9423 |
* c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions. |
| 9424 |
(c_finish_omp_for): Reject _Atomic qualified iterators. |
| 9425 |
|
| 9426 |
2016-09-01 Martin Sebor <[email protected]> |
| 9427 |
|
| 9428 |
* c-ada-spec.c (dump_ada_function_declaration): Increase buffer |
| 9429 |
size to guarantee it fits the output of the formatted function |
| 9430 |
regardless of its arguments. |
| 9431 |
|
| 9432 |
2016-09-01 Marek Polacek <[email protected]> |
| 9433 |
|
| 9434 |
PR c/7652 |
| 9435 |
* c-common.c (resolve_overloaded_builtin): Fix formatting. Add |
| 9436 |
FALLTHRU comments. |
| 9437 |
|
| 9438 |
2016-08-29 Marek Polacek <[email protected]> |
| 9439 |
|
| 9440 |
PR c/77292 |
| 9441 |
* c-common.c (warn_logical_not_parentheses): Don't warn for |
| 9442 |
a comparison or a logical operator. |
| 9443 |
|
| 9444 |
2016-08-29 Tom de Vries <[email protected]> |
| 9445 |
|
| 9446 |
* c-common.c (build_va_arg): Fix type comparison assert. |
| 9447 |
|
| 9448 |
2016-08-29 Tom de Vries <[email protected]> |
| 9449 |
|
| 9450 |
* c-common.c (build_va_arg): Replace first argument type error |
| 9451 |
with assert. |
| 9452 |
|
| 9453 |
2016-08-29 Tom de Vries <[email protected]> |
| 9454 |
|
| 9455 |
PR c/77398 |
| 9456 |
* c-common.c (build_va_arg): Add first argument error. Build va_arg |
| 9457 |
with error_mark_node as va_list instead of with illegal va_list. |
| 9458 |
|
| 9459 |
2016-08-25 Marek Polacek <[email protected]> |
| 9460 |
David Malcolm <[email protected]> |
| 9461 |
|
| 9462 |
* c-common.c (warn_logical_not_parentheses): Print fixit hints. |
| 9463 |
* c-common.h (warn_logical_not_parentheses): Update declaration. |
| 9464 |
|
| 9465 |
2016-08-22 Marek Polacek <[email protected]> |
| 9466 |
|
| 9467 |
PR c++/77321 |
| 9468 |
* c-common.c (warn_for_memset): Check type for null. |
| 9469 |
|
| 9470 |
2016-08-22 Joseph Myers <[email protected]> |
| 9471 |
|
| 9472 |
* c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and |
| 9473 |
_FloatNx types for suffixes for built-in functions. |
| 9474 |
|
| 9475 |
2016-08-19 Joseph Myers <[email protected]> |
| 9476 |
|
| 9477 |
PR c/32187 |
| 9478 |
* c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32) |
| 9479 |
(RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X) |
| 9480 |
(RID_FLOAT128X): New enum rid values. |
| 9481 |
(CASE_RID_FLOATN_NX): New macro. |
| 9482 |
* c-common.c (c_common_reswords): Add _FloatN and _FloatNx |
| 9483 |
keywords. |
| 9484 |
(c_common_type_for_mode): Check for _FloatN and _FloatNx and |
| 9485 |
corresponding complex types. |
| 9486 |
(c_common_nodes_and_builtins): For non-C++, register _FloatN and |
| 9487 |
_FloatNx and corresponding complex types. |
| 9488 |
(keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX. |
| 9489 |
* c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN |
| 9490 |
and _FloatNx types for the widest type for determining |
| 9491 |
DECIMAL_DIG. Define __LDBL_DECIMAL_DIG__ as well as |
| 9492 |
__DECIMAL_DIG__ for long double. Handle FMA_SUFFIX being NULL. |
| 9493 |
(c_cpp_builtins): Call builtin_define_float_constants for _FloatN |
| 9494 |
and _FloatNx types. |
| 9495 |
* c-lex.c (interpret_float): Handle _FloatN and _FloatNx |
| 9496 |
constants. |
| 9497 |
* c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and |
| 9498 |
_FloatNx types. |
| 9499 |
|
| 9500 |
2016-08-18 David Malcolm <[email protected]> |
| 9501 |
|
| 9502 |
* c-opts.c (c_diagnostic_finalizer): Update for change to |
| 9503 |
diagnostic_show_locus. |
| 9504 |
|
| 9505 |
2016-08-18 David Malcolm <[email protected]> |
| 9506 |
|
| 9507 |
* c-common.c: Include "spellcheck.h". |
| 9508 |
(cb_get_suggestion): New function. |
| 9509 |
* c-common.h (cb_get_suggestion): New decl. |
| 9510 |
* c-lex.c (init_c_lex): Initialize cb->get_suggestion to |
| 9511 |
cb_get_suggestion. |
| 9512 |
|
| 9513 |
2016-08-18 Marek Polacek <[email protected]> |
| 9514 |
|
| 9515 |
PR c/71514 |
| 9516 |
* c-common.c (get_atomic_generic_size): Disallow pointer-to-function |
| 9517 |
and pointer-to-VLA. |
| 9518 |
|
| 9519 |
2016-08-16 David Malcolm <[email protected]> |
| 9520 |
|
| 9521 |
PR c/72857 |
| 9522 |
* c-common.c (substring_loc::get_range): Rename to... |
| 9523 |
(substring_loc::get_location): ...this, converting param from a |
| 9524 |
source_range * to a location_t *. Call |
| 9525 |
get_source_location_for_substring rather than |
| 9526 |
get_source_range_for_substring, and pass in m_caret_idx. |
| 9527 |
* c-common.h (substring_loc::substring_loc): Add param "caret_idx". |
| 9528 |
(substring_loc::get_range): Replace with... |
| 9529 |
(substring_loc::get_location): ...this. |
| 9530 |
(substring_loc::set_caret_index): New method. |
| 9531 |
(substring_loc): Add field m_caret_idx. |
| 9532 |
* c-format.c (format_warning_va): Update for above changes. |
| 9533 |
Rename local "substring_loc" to "fmt_substring_loc" to avoid |
| 9534 |
clashing with type name. |
| 9535 |
(format_warning_at_char): Add caret_idx param to substring_loc ctor. |
| 9536 |
(check_argument_type): Likewise. |
| 9537 |
(format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc" |
| 9538 |
Use a copy when emitting warnings, setting the caret index from TYPE. |
| 9539 |
|
| 9540 |
2016-08-16 Eric Botcazou <[email protected]> |
| 9541 |
Arnaud Charlet <[email protected]> |
| 9542 |
|
| 9543 |
* c-ada-spec.c (dump_number): New function. |
| 9544 |
(handle_escape_character): Likewise. |
| 9545 |
(print_ada_macros): Add handling of constant integers and strings. |
| 9546 |
|
| 9547 |
2016-08-12 Marek Polacek <[email protected]> |
| 9548 |
|
| 9549 |
PR c/7652 |
| 9550 |
* c-common.c (scalar_to_vector): Adjust fall through comment. |
| 9551 |
* c-opts.c (c_common_handle_option): Likewise. |
| 9552 |
* c-pragma.c (handle_pragma_pack): Add FALLTHRU. |
| 9553 |
* c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust |
| 9554 |
fall through comment. |
| 9555 |
* cilk.c (extract_free_variables): Add FALLTHRU. |
| 9556 |
|
| 9557 |
2016-08-10 Jason Merrill <[email protected]> |
| 9558 |
|
| 9559 |
* c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr. |
| 9560 |
|
| 9561 |
2016-08-09 Jason Merrill <[email protected]> |
| 9562 |
|
| 9563 |
* c-common.c (c_common_attribute_table): vector_size affects type |
| 9564 |
identity. |
| 9565 |
|
| 9566 |
2016-08-09 Marek Polacek <[email protected]> |
| 9567 |
|
| 9568 |
PR c/7652 |
| 9569 |
* c-ada-spec.c (dump_generic_ada_node): Add return. |
| 9570 |
|
| 9571 |
2016-08-09 Jason Merrill <[email protected]> |
| 9572 |
|
| 9573 |
* c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for |
| 9574 |
C++17 constexpr lambdas. |
| 9575 |
|
| 9576 |
2016-08-08 David Malcolm <[email protected]> |
| 9577 |
|
| 9578 |
PR c/64955 |
| 9579 |
* c-common.h (selftest::c_format_c_tests): New declaration. |
| 9580 |
(selftest::run_c_tests): New declaration. |
| 9581 |
* c-format.c: Include "selftest.h. |
| 9582 |
(format_warning_va): Add param "corrected_substring" and use |
| 9583 |
it to add a replacement fix-it hint. |
| 9584 |
(format_warning_at_substring): Likewise. |
| 9585 |
(format_warning_at_char): Update for new param of |
| 9586 |
format_warning_va. |
| 9587 |
(argument_parser::check_argument_type): Pass "fki" to |
| 9588 |
check_format_types. |
| 9589 |
(check_format_types): Add param "fki" and pass it to |
| 9590 |
format_type_warning. |
| 9591 |
(deref_n_times): New function. |
| 9592 |
(get_modifier_for_format_len): New function. |
| 9593 |
(selftest::test_get_modifier_for_format_len): New function. |
| 9594 |
(get_format_for_type): New function. |
| 9595 |
(format_type_warning): Add param "fki" and use it to attempt |
| 9596 |
to provide hints for argument types when calling |
| 9597 |
format_warning_at_substring. |
| 9598 |
(selftest::get_info): New function. |
| 9599 |
(selftest::assert_format_for_type_streq): New function. |
| 9600 |
(ASSERT_FORMAT_FOR_TYPE_STREQ): New macro. |
| 9601 |
(selftest::test_get_format_for_type_printf): New function. |
| 9602 |
(selftest::test_get_format_for_type_scanf): New function. |
| 9603 |
(selftest::c_format_c_tests): New function. |
| 9604 |
|
| 9605 |
2016-08-08 David Malcolm <[email protected]> |
| 9606 |
|
| 9607 |
PR c/52952 |
| 9608 |
* c-format.c: Include "diagnostic.h". |
| 9609 |
(location_column_from_byte_offset): Delete. |
| 9610 |
(location_from_offset): Delete. |
| 9611 |
(format_warning_va): New function. |
| 9612 |
(format_warning_at_substring): New function. |
| 9613 |
(format_warning_at_char): New function. |
| 9614 |
(check_format_arg): Capture location of format_tree and pass to |
| 9615 |
check_format_info_main. |
| 9616 |
(argument_parser): Add fields "start_of_this_format" and |
| 9617 |
"format_string_cst". |
| 9618 |
(flag_chars_t::validate): Add param "format_string_cst". Convert |
| 9619 |
warning_at call using location_from_offset to call to |
| 9620 |
format_warning_at_char. |
| 9621 |
(argument_parser::argument_parser): Add param "format_string_cst_" |
| 9622 |
and use use it to initialize field "format_string_cst". |
| 9623 |
Initialize new field "start_of_this_format". |
| 9624 |
(argument_parser::read_format_flags): Convert warning_at call |
| 9625 |
using location_from_offset to a call to format_warning_at_char. |
| 9626 |
(argument_parser::read_any_format_left_precision): Likewise. |
| 9627 |
(argument_parser::read_any_format_precision): Likewise. |
| 9628 |
(argument_parser::read_any_other_modifier): Likewise. |
| 9629 |
(argument_parser::find_format_char_info): Likewise, in three places. |
| 9630 |
(argument_parser::parse_any_scan_set): Likewise, in one place. |
| 9631 |
(argument_parser::handle_conversions): Likewise, in two places. |
| 9632 |
(argument_parser::check_argument_type): Add param "fmt_param_loc" |
| 9633 |
and use it to make a substring_loc. Pass the latter to |
| 9634 |
check_format_types. |
| 9635 |
(check_format_info_main): Add params "fmt_param_loc" and |
| 9636 |
"format_string_cst". Convert warning_at calls using |
| 9637 |
location_from_offset to calls to format_warning_at_char. Pass the |
| 9638 |
new params to the arg_parser ctor. Pass "format_string_cst" to |
| 9639 |
flag_chars.validate. Pass "fmt_param_loc" to |
| 9640 |
arg_parser.check_argument_type. |
| 9641 |
(check_format_types): Convert first param from a location_t |
| 9642 |
to a const substring_loc & and rename to "fmt_loc". Attempt |
| 9643 |
to extract the range of the relevant parameter and pass it |
| 9644 |
to format_type_warning. |
| 9645 |
(format_type_warning): Convert first param from a location_t |
| 9646 |
to a const substring_loc & and rename to "fmt_loc". Add |
| 9647 |
params "param_range" and "type". Replace calls to warning_at |
| 9648 |
with calls to format_warning_at_substring. |
| 9649 |
|
| 9650 |
2016-08-08 David Malcolm <[email protected]> |
| 9651 |
|
| 9652 |
* c-format.c (class flag_chars_t): New class. |
| 9653 |
(struct length_modifier): New struct. |
| 9654 |
(class argument_parser): New class. |
| 9655 |
(flag_chars_t::flag_chars_t): New ctor. |
| 9656 |
(flag_chars_t::has_char_p): New method. |
| 9657 |
(flag_chars_t::add_char): New method. |
| 9658 |
(flag_chars_t::validate): New method. |
| 9659 |
(flag_chars_t::get_alloc_flag): New method. |
| 9660 |
(flag_chars_t::assignment_suppression_p): New method. |
| 9661 |
(argument_parser::argument_parser): New ctor. |
| 9662 |
(argument_parser::read_any_dollar): New method. |
| 9663 |
(argument_parser::read_format_flags): New method. |
| 9664 |
(argument_parser::read_any_format_width): New method. |
| 9665 |
(argument_parser::read_any_format_left_precision): New method. |
| 9666 |
(argument_parser::read_any_format_precision): New method. |
| 9667 |
(argument_parser::handle_alloc_chars): New method. |
| 9668 |
(argument_parser::read_any_length_modifier): New method. |
| 9669 |
(argument_parser::read_any_other_modifier): New method. |
| 9670 |
(argument_parser::find_format_char_info): New method. |
| 9671 |
(argument_parser::validate_flag_pairs): New method. |
| 9672 |
(argument_parser::give_y2k_warnings): New method. |
| 9673 |
(argument_parser::parse_any_scan_set): New method. |
| 9674 |
(argument_parser::handle_conversions): New method. |
| 9675 |
(argument_parser::check_argument_type): New method. |
| 9676 |
(check_format_info_main): Introduce classes argument_parser |
| 9677 |
and flag_chars_t, moving the code within the loop into methods |
| 9678 |
of these classes. Make various locals "const". |
| 9679 |
|
| 9680 |
2016-08-05 David Malcolm <[email protected]> |
| 9681 |
|
| 9682 |
* c-common.c: Include "substring-locations.h". |
| 9683 |
(get_cpp_ttype_from_string_type): New function. |
| 9684 |
(g_string_concat_db): New global. |
| 9685 |
(substring_loc::get_range): New method. |
| 9686 |
* c-common.h (g_string_concat_db): New declaration. |
| 9687 |
(class substring_loc): New class. |
| 9688 |
* c-lex.c (lex_string): When concatenating strings, capture the |
| 9689 |
locations of all tokens using a new obstack, and record the |
| 9690 |
concatenation locations within g_string_concat_db. |
| 9691 |
* c-opts.c (c_common_init_options): Construct g_string_concat_db |
| 9692 |
on the ggc-heap. |
| 9693 |
|
| 9694 |
2016-07-29 Marek Polacek <[email protected]> |
| 9695 |
|
| 9696 |
PR c/71926 |
| 9697 |
* c-common.c (c_common_truthvalue_conversion): Use LOCATION for the |
| 9698 |
parentheses warning. |
| 9699 |
|
| 9700 |
PR c/71574 |
| 9701 |
* c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL. |
| 9702 |
|
| 9703 |
2016-07-28 Martin Liska <[email protected]> |
| 9704 |
|
| 9705 |
PR gcov-profile/68025 |
| 9706 |
* c-common.c (handle_no_profile_instrument_function_attribute): |
| 9707 |
|
| 9708 |
2016-07-27 Bernd Edlinger <[email protected]> |
| 9709 |
|
| 9710 |
* c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of |
| 9711 |
BITS_PER_UNIT_LOG. |
| 9712 |
|
| 9713 |
2016-07-25 Jason Merrill <[email protected]> |
| 9714 |
|
| 9715 |
PR c++/65970 |
| 9716 |
* c.opt (fconstexpr-loop-limit): New. |
| 9717 |
|
| 9718 |
2016-07-22 Martin Sebor <[email protected]> |
| 9719 |
|
| 9720 |
PR c++/71675 |
| 9721 |
* c-common.c (resolve_overloaded_builtin): Avoid converting |
| 9722 |
__atomic_compare_exchange_n return type to that of what its |
| 9723 |
first argument points to. |
| 9724 |
|
| 9725 |
2016-07-22 Uros Bizjak <[email protected]> |
| 9726 |
|
| 9727 |
* c-common.c: Use HOST_WIDE_INT_M1U instead of |
| 9728 |
~(unsigned HOST_WIDE_INT) 0. |
| 9729 |
|
| 9730 |
2016-07-22 Martin Liska <[email protected]> |
| 9731 |
|
| 9732 |
PR gcov-profile/69028 |
| 9733 |
PR gcov-profile/62047 |
| 9734 |
* cilk.c (create_cilk_helper_decl): Set location of a new decl |
| 9735 |
to the current_function_decl. |
| 9736 |
|
| 9737 |
2016-07-21 Jason Merrill <[email protected]> |
| 9738 |
|
| 9739 |
PR c++/65168 |
| 9740 |
* c-common.c (c_common_truthvalue_conversion): Check |
| 9741 |
c_inhibit_evaluation_warnings for warning about address of |
| 9742 |
reference. |
| 9743 |
|
| 9744 |
2016-07-20 David Malcolm <[email protected]> |
| 9745 |
|
| 9746 |
* c-common.h (lookup_name_fuzzy): Convert return type from tree to |
| 9747 |
const char *. |
| 9748 |
|
| 9749 |
2016-07-15 Jason Merrill <[email protected]> |
| 9750 |
|
| 9751 |
* c-opts.c (c_common_post_options): Update -fabi-version default to 11. |
| 9752 |
|
| 9753 |
2016-07-15 Jakub Jelinek <[email protected]> |
| 9754 |
|
| 9755 |
PR c/71858 |
| 9756 |
* c-common.h (enum lookup_name_fuzzy_kind): Add |
| 9757 |
FUZZY_LOOKUP_FUNCTION_NAME. |
| 9758 |
|
| 9759 |
2016-07-08 Jason Merrill <[email protected]> |
| 9760 |
|
| 9761 |
P0145: Refining Expression Order for C++. |
| 9762 |
* c.opts (-fargs-in-order): Rename to -fstrong-eval-order. |
| 9763 |
* c-opts.c: Adjust. |
| 9764 |
|
| 9765 |
2016-07-05 Markus Trippelsdorf <[email protected]> |
| 9766 |
|
| 9767 |
PR c++/71214 |
| 9768 |
* c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references. |
| 9769 |
|
| 9770 |
2016-06-29 Thomas Schwinge <[email protected]> |
| 9771 |
|
| 9772 |
* c-pragma.h (enum pragma_kind): Rename |
| 9773 |
PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE. Adjust all |
| 9774 |
users. |
| 9775 |
|
| 9776 |
2016-06-29 Richard Biener <[email protected]> |
| 9777 |
|
| 9778 |
PR middle-end/71002 |
| 9779 |
* c-common.c (c_common_get_alias_set): Remove union type punning case. |
| 9780 |
|
| 9781 |
2016-06-24 Jason Merrill <[email protected]> |
| 9782 |
|
| 9783 |
P0145R2: Refining Expression Order for C++. |
| 9784 |
* c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of |
| 9785 |
MODIFY_EXPR. |
| 9786 |
|
| 9787 |
2016-06-24 Jakub Jelinek <[email protected]> |
| 9788 |
|
| 9789 |
* c-common.c (check_builtin_function_arguments): Require last |
| 9790 |
argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type. |
| 9791 |
Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW |
| 9792 |
if the last argument is pointer to enumerated or boolean type. |
| 9793 |
|
| 9794 |
2016-06-22 David Malcolm <[email protected]> |
| 9795 |
|
| 9796 |
PR c/70339 |
| 9797 |
* c-common.h (enum lookup_name_fuzzy_kind): New enum. |
| 9798 |
(lookup_name_fuzzy): New prototype. |
| 9799 |
|
| 9800 |
2016-06-21 John David Anglin <[email protected]> |
| 9801 |
|
| 9802 |
* c-common.c (get_source_date_epoch): Use int64_t instead of long long. |
| 9803 |
|
| 9804 |
2016-06-14 Jason Merrill <[email protected]> |
| 9805 |
|
| 9806 |
P0145R2: Refining Expression Order for C++. |
| 9807 |
* c.opt (fargs-in-order): New. |
| 9808 |
* c-opts.c (c_common_post_options): Adjust flag_args_in_order. |
| 9809 |
|
| 9810 |
2016-06-13 Jakub Jelinek <[email protected]> |
| 9811 |
|
| 9812 |
PR sanitizer/71498 |
| 9813 |
* c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on |
| 9814 |
all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY. |
| 9815 |
|
| 9816 |
PR preprocessor/71183 |
| 9817 |
* c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch |
| 9818 |
to cb_get_source_date_epoch. |
| 9819 |
|
| 9820 |
2016-06-10 Jakub Jelinek <[email protected]> |
| 9821 |
|
| 9822 |
PR c/68657 |
| 9823 |
* c.opt (Wpsabi): Add Warning flag. |
| 9824 |
|
| 9825 |
2016-06-10 Martin Sebor <[email protected]> |
| 9826 |
|
| 9827 |
PR c/71392 |
| 9828 |
* c-common.c (handle_nonnull_attribute): Accept |
| 9829 |
the nonnull attribute in type-generic builtins. |
| 9830 |
|
| 9831 |
2016-06-09 Martin Sebor <[email protected]> |
| 9832 |
|
| 9833 |
PR c/70883 |
| 9834 |
* c-common.c (builtin_function_validate_nargs): Make text of error |
| 9835 |
message consistent with others like it. |
| 9836 |
|
| 9837 |
2016-06-08 Martin Sebor <[email protected]> |
| 9838 |
Jakub Jelinek <[email protected]> |
| 9839 |
|
| 9840 |
PR c++/70507 |
| 9841 |
PR c/68120 |
| 9842 |
* c-common.c (check_builtin_function_arguments): Handle |
| 9843 |
BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P. |
| 9844 |
|
| 9845 |
2016-06-08 Richard Biener <[email protected]> |
| 9846 |
|
| 9847 |
* c-common.c (parse_optimize_options): Improve diagnostic messages. |
| 9848 |
|
| 9849 |
2016-06-07 Richard Biener <[email protected]> |
| 9850 |
|
| 9851 |
PR c/61564 |
| 9852 |
* c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION |
| 9853 |
options and warn about others. |
| 9854 |
|
| 9855 |
2016-06-01 Eduard Sanou <[email protected]> |
| 9856 |
|
| 9857 |
* c-common.c (get_source_date_epoch): Rename to |
| 9858 |
cb_get_source_date_epoch. |
| 9859 |
* c-common.c (cb_get_source_date_epoch): Use a single generic erorr |
| 9860 |
message when the parsing fails. Use error_at instead of fatal_error. |
| 9861 |
* c-common.h (get_source_date_epoch): Rename to |
| 9862 |
cb_get_source_date_epoch. |
| 9863 |
* c-common.h (cb_get_source_date_epoch): Prototype. |
| 9864 |
* c-common.h (MAX_SOURCE_DATE_EPOCH): Define. |
| 9865 |
* c-common.h (c_omp_region_type): Remove trailing comma. |
| 9866 |
* c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback. |
| 9867 |
* c-lex.c (c_lex_with_flags): Remove initialization of |
| 9868 |
pfile->source_date_epoch. |
| 9869 |
|
| 9870 |
2016-05-30 Jakub Jelinek <[email protected]> |
| 9871 |
|
| 9872 |
PR c++/71349 |
| 9873 |
* c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to |
| 9874 |
C_OMP_CLAUSE_SPLIT_TARGET. Put OMP_CLAUSE_NOWAIT to |
| 9875 |
C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct, |
| 9876 |
instead of C_OMP_CLAUSE_SPLIT_FOR. |
| 9877 |
|
| 9878 |
2016-05-24 Richard Biener <[email protected]> |
| 9879 |
|
| 9880 |
PR middle-end/70434 |
| 9881 |
PR c/69504 |
| 9882 |
* c-common.h (convert_vector_to_pointer_for_subscript): Rename to ... |
| 9883 |
(convert_vector_to_array_for_subscript): ... this. |
| 9884 |
* c-common.c (convert_vector_to_pointer_for_subscript): Use a |
| 9885 |
VIEW_CONVERT_EXPR to an array type. Rename to ... |
| 9886 |
(convert_vector_to_array_for_subscript): ... this. |
| 9887 |
|
| 9888 |
2016-05-12 Marek Polacek <[email protected]> |
| 9889 |
|
| 9890 |
PR c/70756 |
| 9891 |
* c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of |
| 9892 |
size_in_bytes and pass LOC to it. |
| 9893 |
|
| 9894 |
2016-05-11 Mikhail Maltsev <[email protected]> |
| 9895 |
|
| 9896 |
PR c/43651 |
| 9897 |
* c.opt (Wduplicate-decl-specifier): New option. |
| 9898 |
|
| 9899 |
2016-05-11 Marek Polacek <[email protected]> |
| 9900 |
|
| 9901 |
PR c++/71024 |
| 9902 |
* c-common.c (diagnose_mismatched_attributes): New function. |
| 9903 |
* c-common.h (diagnose_mismatched_attributes): Declare. |
| 9904 |
|
| 9905 |
2016-05-04 Marek Polacek <[email protected]> |
| 9906 |
|
| 9907 |
* c.opt (Wdangling-else): New option. |
| 9908 |
|
| 9909 |
2016-05-03 Marek Polacek <[email protected]> |
| 9910 |
|
| 9911 |
PR c/70859 |
| 9912 |
* c-common.c (builtin_function_validate_nargs): Add location |
| 9913 |
parameter. Use it. |
| 9914 |
(check_builtin_function_arguments): Add location and arguments |
| 9915 |
parameters. Use them. |
| 9916 |
* c-common.h (check_builtin_function_arguments): Update declaration. |
| 9917 |
|
| 9918 |
2016-05-03 Richard Biener <[email protected]> |
| 9919 |
|
| 9920 |
* cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not |
| 9921 |
allow call args to gimplify to SSA names. |
| 9922 |
|
| 9923 |
2016-05-03 Marek Polacek <[email protected]> |
| 9924 |
|
| 9925 |
* c-common.h (enum c_omp_region_type): Remove stray comma. |
| 9926 |
|
| 9927 |
2016-05-02 Cesar Philippidis <[email protected]> |
| 9928 |
|
| 9929 |
* c-common.h (enum c_omp_region_type): Define. |
| 9930 |
|
| 9931 |
2016-05-02 Richard Sandiford <[email protected]> |
| 9932 |
|
| 9933 |
* c-common.c (shorten_compare): Use wi::to_wide. |
| 9934 |
|
| 9935 |
2016-04-29 Cesar Philippidis <[email protected]> |
| 9936 |
|
| 9937 |
PR middle-end/70626 |
| 9938 |
* c-common.h (c_oacc_split_loop_clauses): Add boolean argument. |
| 9939 |
* c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate |
| 9940 |
reduction clauses in acc parallel loops. |
| 9941 |
|
| 9942 |
2016-04-29 Marek Polacek <[email protected]> |
| 9943 |
|
| 9944 |
PR c/70852 |
| 9945 |
* c-common.c (warn_for_memset): Check domain before accessing it. |
| 9946 |
|
| 9947 |
2016-04-29 Dominik Vogt <[email protected]> |
| 9948 |
|
| 9949 |
PR/69089 |
| 9950 |
* c-common.c (handle_aligned_attribute): Allow 0 as an argument to the |
| 9951 |
"aligned" attribute. |
| 9952 |
|
| 9953 |
2016-04-28 Jason Merrill <[email protected]> |
| 9954 |
|
| 9955 |
* c-lex.c (c_common_has_attribute): Handle nodiscard. |
| 9956 |
|
| 9957 |
2016-04-28 Eduard Sanou <[email protected]> |
| 9958 |
Matthias Klose <[email protected]> |
| 9959 |
|
| 9960 |
* c-common.c (get_source_date_epoch): New function, gets the environment |
| 9961 |
variable SOURCE_DATE_EPOCH and parses it as long long with error |
| 9962 |
handling. |
| 9963 |
* c-common.h (get_source_date_epoch): Prototype. |
| 9964 |
* c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch. |
| 9965 |
|
| 9966 |
2015-04-27 Ryan Burn <[email protected]> |
| 9967 |
|
| 9968 |
PR c++/69024 |
| 9969 |
PR c++/68997 |
| 9970 |
* cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage. |
| 9971 |
(cilk_recognize_spawn): Renamed from recognize_spawn and change to |
| 9972 |
external linkage. |
| 9973 |
(cilk_detect_and_unwrap): Corresponding changes. |
| 9974 |
(extract_free_variables): Don't extract free variables from |
| 9975 |
AGGR_INIT_EXPR slot. |
| 9976 |
* c-common.h (cilk_ignorable_spawn_rhs_op): Prototype. |
| 9977 |
(cilk_recognize_spawn): Likewise. |
| 9978 |
|
| 9979 |
2016-04-27 Bernd Schmidt <[email protected]> |
| 9980 |
|
| 9981 |
* c.opt (Wmemset-elt-size): New option. |
| 9982 |
* c-common.c (warn_for_memset): New function. |
| 9983 |
* c-common.h (warn_for_memset): Declare. |
| 9984 |
|
| 9985 |
2016-04-25 Jason Merrill <[email protected]> |
| 9986 |
|
| 9987 |
* c-common.c (handle_unused_attribute): Accept CONST_DECL. |
| 9988 |
No longer static. |
| 9989 |
* c-common.h: Declare it. |
| 9990 |
* c-lex.c (c_common_has_attribute): Add maybe_unused. |
| 9991 |
|
| 9992 |
2016-04-22 Jason Merrill <[email protected]> |
| 9993 |
|
| 9994 |
* c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for. |
| 9995 |
|
| 9996 |
2016-04-20 Ilya Verbin <[email protected]> |
| 9997 |
|
| 9998 |
PR c++/69363 |
| 9999 |
* c-cilkplus.c (c_finish_cilk_clauses): Remove function. |
| 10000 |
* c-common.h (c_finish_cilk_clauses): Remove declaration. |
| 10001 |
|
| 10002 |
2016-04-18 Michael Matz <[email protected]> |
| 10003 |
|
| 10004 |
* c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN |
| 10005 |
and SET_DECL_ALIGN. |
| 10006 |
|
| 10007 |
2016-04-17 Eric Botcazou <[email protected]> |
| 10008 |
|
| 10009 |
* c-ada-spec.c (get_underlying_decl): Return the typedef, if any. |
| 10010 |
(dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access |
| 10011 |
to incomplete types. |
| 10012 |
(dump_nested_type): Remove redundant tests and tidy up. |
| 10013 |
(print_ada_declaration): Also set TREE_VISITED on the declaration of |
| 10014 |
a type which is the typedef of an original type. |
| 10015 |
|
| 10016 |
2016-04-15 Marek Polacek <[email protected]> |
| 10017 |
|
| 10018 |
PR c/70651 |
| 10019 |
* c-common.c (build_va_arg): Change two asserts into errors and return |
| 10020 |
error_mark_node. |
| 10021 |
|
| 10022 |
2016-04-13 Marek Polacek <[email protected]> |
| 10023 |
|
| 10024 |
PR c++/70639 |
| 10025 |
* c-indentation.c (should_warn_for_misleading_indentation): Bail out |
| 10026 |
for switch statements, too. |
| 10027 |
|
| 10028 |
2016-03-28 Jason Merrill <[email protected]> |
| 10029 |
|
| 10030 |
* c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for. |
| 10031 |
|
| 10032 |
2016-03-23 Marek Polacek <[email protected]> |
| 10033 |
|
| 10034 |
PR c++/69884 |
| 10035 |
* c.opt (Wignored-attributes): New option. |
| 10036 |
|
| 10037 |
2016-03-22 David Malcolm <[email protected]> |
| 10038 |
|
| 10039 |
PR c/69993 |
| 10040 |
* c-indentation.c (warn_for_misleading_indentation): Rewrite the |
| 10041 |
diagnostic text, reversing the order of the warning and note so |
| 10042 |
that they appear in source order. |
| 10043 |
|
| 10044 |
2016-03-17 Marek Polacek <[email protected]> |
| 10045 |
|
| 10046 |
PR c/69407 |
| 10047 |
* c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch |
| 10048 |
operations. |
| 10049 |
|
| 10050 |
2016-03-14 Jason Merrill <[email protected]> |
| 10051 |
|
| 10052 |
* c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float. |
| 10053 |
|
| 10054 |
* c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for. |
| 10055 |
|
| 10056 |
2016-03-09 Richard Biener <[email protected]> |
| 10057 |
|
| 10058 |
PR c/70143 |
| 10059 |
* c-common.c (strict_aliasing_warning): Add back |
| 10060 |
alias_sets_conflict_p check. |
| 10061 |
|
| 10062 |
2016-03-08 Jason Merrill <[email protected]> |
| 10063 |
|
| 10064 |
* c-opts.c (set_std_cxx1z): Don't enable concepts. |
| 10065 |
|
| 10066 |
2016-03-04 David Malcolm <[email protected]> |
| 10067 |
|
| 10068 |
PR c/68187 |
| 10069 |
* c-indentation.c (get_visual_column): Move code to determine next |
| 10070 |
tab stop to... |
| 10071 |
(next_tab_stop): ...this new function. |
| 10072 |
(line_contains_hash_if): Delete function. |
| 10073 |
(detect_preprocessor_logic): Delete function. |
| 10074 |
(get_first_nws_vis_column): New function. |
| 10075 |
(detect_intervening_unindent): New function. |
| 10076 |
(should_warn_for_misleading_indentation): Replace call to |
| 10077 |
detect_preprocessor_logic with a call to |
| 10078 |
detect_intervening_unindent. |
| 10079 |
|
| 10080 |
2016-03-04 David Malcolm <[email protected]> |
| 10081 |
|
| 10082 |
PR c/68187 |
| 10083 |
* c-indentation.c (should_warn_for_misleading_indentation): When |
| 10084 |
suppressing warnings about cases where the guard and body are on |
| 10085 |
the same column, only use the first non-whitespace column in place |
| 10086 |
of the guard token column when dealing with "else" clauses. |
| 10087 |
When rejecting aligned BODY and NEXT, loosen the requirement |
| 10088 |
from equality with the first non-whitespace of guard to simply |
| 10089 |
that they not be indented relative to it. |
| 10090 |
|
| 10091 |
2016-03-04 Richard Biener <[email protected]> |
| 10092 |
|
| 10093 |
PR c++/70054 |
| 10094 |
* c-common.c (strict_aliasing_warning): Use alias_set_subset_of |
| 10095 |
instead of alias_sets_conflict_p. |
| 10096 |
|
| 10097 |
2016-03-01 Marek Polacek <[email protected]> |
| 10098 |
|
| 10099 |
PR c++/69795 |
| 10100 |
* c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than |
| 10101 |
any DECL. |
| 10102 |
|
| 10103 |
2016-02-22 Martin Sebor <[email protected]> |
| 10104 |
|
| 10105 |
PR middle-end/69780 |
| 10106 |
* c-common.c (check_builtin_function_arguments): Validate and |
| 10107 |
reject invalid arguments to __builtin_alloca_with_align. |
| 10108 |
|
| 10109 |
2016-02-20 Mark Wielaard <[email protected]> |
| 10110 |
|
| 10111 |
PR c/28901 |
| 10112 |
* c.opt (Wunused-const-variable): Turn into Alias for... |
| 10113 |
(Wunused-const-variable=): New option. |
| 10114 |
|
| 10115 |
2016-02-19 Bernd Edlinger <[email protected]> |
| 10116 |
|
| 10117 |
PR c++/69865 |
| 10118 |
* c-opts.c (c_common_post_options): Move call to set_std_cxx14 from |
| 10119 |
here... |
| 10120 |
(c_common_init_options): ...to here. |
| 10121 |
(set_std_cxx98): Initialize flag_isoc94 and flag_isoc99. |
| 10122 |
|
| 10123 |
2016-02-19 Jakub Jelinek <[email protected]> |
| 10124 |
|
| 10125 |
PR c++/69826 |
| 10126 |
* c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE. |
| 10127 |
(init_pragma): Register PRAGMA_CILK_GRAINSIZE even for |
| 10128 |
flag_preprocess_only. |
| 10129 |
|
| 10130 |
2016-02-16 Jakub Jelinek <[email protected]> |
| 10131 |
|
| 10132 |
PR c/69835 |
| 10133 |
* c.opt (Wnonnull-compare): Enable for -Wall. |
| 10134 |
|
| 10135 |
2016-02-15 Jakub Jelinek <[email protected]> |
| 10136 |
|
| 10137 |
PR c++/69797 |
| 10138 |
* c-common.c (sync_resolve_size): Diagnose too few arguments |
| 10139 |
even when params is non-NULL empty vector. |
| 10140 |
|
| 10141 |
2016-02-08 Bernd Schmidt <[email protected]> |
| 10142 |
|
| 10143 |
PR target/60410 |
| 10144 |
* c.opt (fshort-double): Remove. |
| 10145 |
|
| 10146 |
2016-02-05 Martin Sebor <[email protected]> |
| 10147 |
|
| 10148 |
PR c++/69662 |
| 10149 |
* c.opt (Warning options): Update -Wplacement-new to take |
| 10150 |
an optional argument. |
| 10151 |
|
| 10152 |
2016-02-01 Jakub Jelinek <[email protected]> |
| 10153 |
|
| 10154 |
PR preprocessor/69543 |
| 10155 |
PR c/69558 |
| 10156 |
* c-pragma.c (handle_pragma_diagnostic): Pass input_location |
| 10157 |
instead of loc to control_warning_option. |
| 10158 |
|
| 10159 |
2016-02-01 Nathan Sidwell <[email protected]> |
| 10160 |
|
| 10161 |
* c.opt (fopenacc-dim=): New option. |
| 10162 |
|
| 10163 |
2016-01-27 Ryan Burn <[email protected]> |
| 10164 |
|
| 10165 |
PR cilkplus/69267 |
| 10166 |
* cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use |
| 10167 |
gimplify_arg. Removed superfluous post_p argument. |
| 10168 |
* c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed |
| 10169 |
superfluous post_p argument. |
| 10170 |
* c-gimplify.c (c_gimplify_expr): Likewise. |
| 10171 |
|
| 10172 |
2016-01-26 David Malcolm <[email protected]> |
| 10173 |
|
| 10174 |
PR other/69006 |
| 10175 |
* c-opts.c (c_diagnostic_finalizer): Replace invocation of |
| 10176 |
pp_newline_and_flush with pp_flush. |
| 10177 |
|
| 10178 |
2016-01-20 Martin Sebor <[email protected]> |
| 10179 |
|
| 10180 |
PR c/69405 |
| 10181 |
* c-common.c (sync_resolve_size): Avoid printing diagnostic about |
| 10182 |
an incompatible argument when the argument isn't a valid tree node. |
| 10183 |
|
| 10184 |
2016-01-18 Jason Merrill <[email protected]> |
| 10185 |
|
| 10186 |
PR c++/68767 |
| 10187 |
* c-common.c (check_function_arguments_recurse): Fold the whole |
| 10188 |
COND_EXPR, not just the condition. |
| 10189 |
|
| 10190 |
2016-01-18 Tom de Vries <[email protected]> |
| 10191 |
|
| 10192 |
* c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION, |
| 10193 |
classify as loop clause. |
| 10194 |
|
| 10195 |
2016-01-15 Jakub Jelinek <[email protected]> |
| 10196 |
|
| 10197 |
PR bootstrap/68271 |
| 10198 |
* c-pragma.c (c_register_pragma_1): Adjust comment to note that |
| 10199 |
C++ FE no longer has limit on number of pragmas. |
| 10200 |
|
| 10201 |
2015-01-14 Ryan Burn <[email protected]> |
| 10202 |
|
| 10203 |
PR c++/69048 |
| 10204 |
* cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr |
| 10205 |
to add missing cleanup point. |
| 10206 |
|
| 10207 |
2016-01-14 David Malcolm <[email protected]> |
| 10208 |
|
| 10209 |
PR c++/68819 |
| 10210 |
* c-indentation.c (get_visual_column): Add location_t param. |
| 10211 |
Handle the column number being zero by effectively disabling the |
| 10212 |
warning, with an "inform". |
| 10213 |
(should_warn_for_misleading_indentation): Add location_t argument |
| 10214 |
for all uses of get_visual_column. |
| 10215 |
|
| 10216 |
2016-01-10 Patrick Palka <[email protected]> |
| 10217 |
|
| 10218 |
PR c++/69029 |
| 10219 |
* c-indentation.c (should_warn_for_misleading_indentation): |
| 10220 |
Don't warn about do-while statements. |
| 10221 |
|
| 10222 |
2016-01-07 Martin Sebor <[email protected]> |
| 10223 |
|
| 10224 |
PR c/68966 |
| 10225 |
* c-common.c (sync_resolve_size): Reject first argument when it's |
| 10226 |
a pointer to _Bool. |
| 10227 |
|
| 10228 |
2016-01-05 David Malcolm <[email protected]> |
| 10229 |
|
| 10230 |
PR c/69122 |
| 10231 |
* c-indentation.c (get_visual_column): Remove default argument. |
| 10232 |
(should_warn_for_misleading_indentation): For the multiline case, |
| 10233 |
update call to get_visual_column for next_stmt_exploc so that it |
| 10234 |
captures the location of the first non-whitespace character in the |
| 10235 |
relevant line. Don't issue warnings if there is non-whitespace |
| 10236 |
before the next statement. |
| 10237 |
|
| 10238 |
2016-01-04 Jakub Jelinek <[email protected]> |
| 10239 |
|
| 10240 |
Update copyright years. |
| 10241 |
|
| 10242 |
2015-12-21 David Malcolm <[email protected]> |
| 10243 |
|
| 10244 |
* c-common.c (binary_op_error): Convert first param from |
| 10245 |
location_t to rich_location * and use it when emitting an error. |
| 10246 |
* c-common.h (binary_op_error): Convert first param from |
| 10247 |
location_t to rich_location *. |
| 10248 |
|
| 10249 |
2015-12-16 David Malcolm <[email protected]> |
| 10250 |
|
| 10251 |
* c-common.h (conflict_marker_get_final_tok_kind): New prototype. |
| 10252 |
* c-lex.c (conflict_marker_get_final_tok_kind): New function. |
| 10253 |
|
| 10254 |
2015-12-15 Ilya Verbin <[email protected]> |
| 10255 |
|
| 10256 |
* c-common.c (c_common_attribute_table): Handle "omp declare target |
| 10257 |
link" attribute. |
| 10258 |
|
| 10259 |
2015-12-14 Jakub Jelinek <[email protected]> |
| 10260 |
|
| 10261 |
PR c/68833 |
| 10262 |
* c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option. |
| 10263 |
|
| 10264 |
2014-12-12 Tobias Burnus <[email protected]> |
| 10265 |
|
| 10266 |
PR fortran/68815 |
| 10267 |
* c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining |
| 10268 |
specifiers (%d, %i,%u and %c). |
| 10269 |
|
| 10270 |
2015-12-10 David Malcolm <[email protected]> |
| 10271 |
|
| 10272 |
* c.opt (Wmisleading-indentation): Add to -Wall for C and C++. |
| 10273 |
|
| 10274 |
2015-12-08 Jakub Jelinek <[email protected]> |
| 10275 |
|
| 10276 |
PR c/48088 |
| 10277 |
PR c/68657 |
| 10278 |
* c.opt (Wfloat-conversion, Wsign-conversion): Add Warning. |
| 10279 |
* c-pragma.c (handle_pragma_diagnostic): Adjust |
| 10280 |
control_warning_option caller. |
| 10281 |
|
| 10282 |
2015-12-07 David Malcolm <[email protected]> |
| 10283 |
|
| 10284 |
* c-common.c (c_cpp_error): Update for change to |
| 10285 |
rich_location::set_range. |
| 10286 |
|
| 10287 |
2015-12-04 Paolo Bonzini <[email protected]> |
| 10288 |
|
| 10289 |
* c-common.c (maybe_warn_shift_overflow): Warn on all overflows if |
| 10290 |
shifting 1 out of the sign bit. |
| 10291 |
|
| 10292 |
2015-12-04 Kirill Yukhin <[email protected]> |
| 10293 |
|
| 10294 |
* c-common.c (c_common_attribute_table[]): Update max arguments |
| 10295 |
count for "simd" attribute. |
| 10296 |
(handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments. |
| 10297 |
|
| 10298 |
2015-12-03 Jakub Jelinek <[email protected]> |
| 10299 |
|
| 10300 |
PR preprocessor/57580 |
| 10301 |
* c-ppoutput.c (print): Change printed field to bool. |
| 10302 |
Move src_file last for smaller padding. |
| 10303 |
(init_pp_output): Set print.printed to false instead of 0. |
| 10304 |
(scan_translation_unit): Fix up formatting. Set print.printed |
| 10305 |
to true after printing something other than newline. |
| 10306 |
(scan_translation_unit_trad): Set print.printed to true instead of 1. |
| 10307 |
(maybe_print_line_1): Set print.printed to false instead of 0. |
| 10308 |
(print_line_1): Likewise. |
| 10309 |
(do_line_change): Set print.printed to true instead of 1. |
| 10310 |
(cb_define, dump_queued_macros, cb_include, cb_def_pragma, |
| 10311 |
dump_macro): Set print.printed to false after printing newline. |
| 10312 |
|
| 10313 |
2015-12-02 Jason Merrill <[email protected]> |
| 10314 |
|
| 10315 |
* c-common.c (fold_for_warn): New. |
| 10316 |
(warn_logical_operator, warn_tautological_cmp) |
| 10317 |
(check_function_arguments_recurse, maybe_warn_bool_compare): Use it. |
| 10318 |
|
| 10319 |
* c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold) |
| 10320 |
(c_fully_fold_internal, decl_constant_value_for_optimization): |
| 10321 |
Move to c/c-fold.c. |
| 10322 |
* c-common.h: Don't declare decl_constant_value_for_optimization. |
| 10323 |
|
| 10324 |
2015-12-02 Joseph Myers <[email protected]> |
| 10325 |
|
| 10326 |
PR c/68162 |
| 10327 |
* c-common.h (c_build_qualified_type): Add extra default |
| 10328 |
arguments. |
| 10329 |
|
| 10330 |
2015-12-01 Julian Brown <[email protected]> |
| 10331 |
Cesar Philippidis <[email protected]> |
| 10332 |
James Norris <[email protected]> |
| 10333 |
|
| 10334 |
* c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA. |
| 10335 |
* c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA. |
| 10336 |
(pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE. |
| 10337 |
|
| 10338 |
2015-11-30 Eric Botcazou <[email protected]> |
| 10339 |
|
| 10340 |
* c-ada-spec.c (print_ada_macros): Remove redundant blank line. |
| 10341 |
(decl_sloc_common): Delete and move bulk of processing to... |
| 10342 |
(decl_sloc): ...here. |
| 10343 |
(pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE. |
| 10344 |
(dump_ada_double_name): Remove S parameter and compute the suffix. |
| 10345 |
(dump_ada_array_type): Add PARENT parameter. Simplify computation of |
| 10346 |
element type and deal with an anonymous one. |
| 10347 |
(dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro. |
| 10348 |
(dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type |
| 10349 |
and remove reference to QUAL_UNION_TYPE. |
| 10350 |
(dump_nested_types): Make 2 passes on the fields and move bulk to... |
| 10351 |
(dump_nested_type): ...here. New function extracted from above. |
| 10352 |
Generate a full declaration for anonymous element type of arrays. |
| 10353 |
(print_ada_declaration): Really skip anonymous declarations. Remove |
| 10354 |
references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type. |
| 10355 |
Clean up processing of declarations of array types and objects. |
| 10356 |
(print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE. |
| 10357 |
Remove obsolete code and tidy up. |
| 10358 |
|
| 10359 |
2015-11-29 Jan Hubicka <[email protected]> |
| 10360 |
|
| 10361 |
PR c/67581 |
| 10362 |
* c-common.c (handle_transparent_union_attribute): Update |
| 10363 |
also type variants. |
| 10364 |
|
| 10365 |
2015-11-27 Martin Liska <[email protected]> |
| 10366 |
|
| 10367 |
PR c++/68312 |
| 10368 |
* array-notation-common.c (cilkplus_extract_an_triplets): |
| 10369 |
Release vector of vectors. |
| 10370 |
* cilk.c (gimplify_cilk_spawn): Free allocated memory. |
| 10371 |
|
| 10372 |
2015-11-26 Eric Botcazou <[email protected]> |
| 10373 |
|
| 10374 |
PR c++/68527 |
| 10375 |
* c-ada-spec.c (dump_nested_types): Add guard for error_mark_node. |
| 10376 |
(print_ada_struct_decl): Likewise. |
| 10377 |
|
| 10378 |
2015-11-23 Igor Zamyatin <[email protected]> |
| 10379 |
|
| 10380 |
PR c++/68001 |
| 10381 |
* c-gimplify.c (c_gimplify_expr): Stop the process if see an error. |
| 10382 |
* cilk.c (recognize_spawn): Determine location in a more precise |
| 10383 |
way. |
| 10384 |
|
| 10385 |
2015-11-19 Jason Merrill <[email protected]> |
| 10386 |
|
| 10387 |
* c-common.c (shorten_compare): But look through macros from |
| 10388 |
system headers. |
| 10389 |
|
| 10390 |
2015-11-18 Jason Merrill <[email protected]> |
| 10391 |
|
| 10392 |
* c-common.c (shorten_compare): Don't -Wtype-limits if the |
| 10393 |
non-constant operand comes from a macro. |
| 10394 |
|
| 10395 |
2015-11-17 Jason Merrill <[email protected]> |
| 10396 |
|
| 10397 |
PR bootstrap/68346 |
| 10398 |
* c-common.c (warn_tautological_cmp): Fold before checking for |
| 10399 |
constants. |
| 10400 |
|
| 10401 |
2015-11-16 Marek Polacek <[email protected]> |
| 10402 |
|
| 10403 |
PR c++/68362 |
| 10404 |
* c-common.c (check_case_bounds): Fold low and high cases. |
| 10405 |
|
| 10406 |
2015-11-16 Marek Polacek <[email protected]> |
| 10407 |
|
| 10408 |
* c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P. |
| 10409 |
* c-common.c (c_common_get_alias_set): Likewise. |
| 10410 |
(handle_visibility_attribute): Likewise. |
| 10411 |
|
| 10412 |
2015-11-16 Kirill Yukhin <[email protected]> |
| 10413 |
|
| 10414 |
* c-common.c (handle_simd_attribute): New. |
| 10415 |
(struct attribute_spec): Add entry for "simd". |
| 10416 |
(handle_simd_attribute): New. |
| 10417 |
|
| 10418 |
2015-11-13 Kai Tietz <[email protected]> |
| 10419 |
|
| 10420 |
* c-lex.c (interpret_float): Use fold_convert. |
| 10421 |
|
| 10422 |
2015-11-13 David Malcolm <[email protected]> |
| 10423 |
|
| 10424 |
* c-common.c (c_fully_fold_internal): Capture existing souce_range, |
| 10425 |
and store it on the result. |
| 10426 |
* c-opts.c (c_common_init_options): Set |
| 10427 |
global_dc->colorize_source_p. |
| 10428 |
|
| 10429 |
2015-11-12 James Norris <[email protected]> |
| 10430 |
Joseph Myers <[email protected]> |
| 10431 |
|
| 10432 |
* c-pragma.c (oacc_pragmas): Add entry for declare directive. |
| 10433 |
* c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE. |
| 10434 |
(enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and |
| 10435 |
PRAGMA_OACC_CLAUSE_LINK. |
| 10436 |
|
| 10437 |
2015-11-11 Marek Polacek <[email protected]> |
| 10438 |
|
| 10439 |
PR c/68107 |
| 10440 |
PR c++/68266 |
| 10441 |
* c-common.c (valid_array_size_p): New function. |
| 10442 |
* c-common.h (valid_array_size_p): Declare. |
| 10443 |
|
| 10444 |
2015-11-11 Dominique d'Humieres <[email protected]> |
| 10445 |
|
| 10446 |
PR bootstrap/68271 |
| 10447 |
* c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256. |
| 10448 |
|
| 10449 |
2015-11-11 Andrew MacLeod <[email protected]> |
| 10450 |
|
| 10451 |
* array-notation-common.c: Remove unused header files. |
| 10452 |
* c-ada-spec.c: Likewise. |
| 10453 |
* c-cilkplus.c: Likewise. |
| 10454 |
* c-common.c: Likewise. |
| 10455 |
* c-cppbuiltin.c: Likewise. |
| 10456 |
* c-dump.c: Likewise. |
| 10457 |
* c-format.c: Likewise. |
| 10458 |
* c-gimplify.c: Likewise. |
| 10459 |
* c-indentation.c: Likewise. |
| 10460 |
* c-lex.c: Likewise. |
| 10461 |
* c-omp.c: Likewise. |
| 10462 |
* c-opts.c: Likewise. |
| 10463 |
* c-pch.c: Likewise. |
| 10464 |
* c-ppoutput.c: Likewise. |
| 10465 |
* c-pragma.c: Likewise. |
| 10466 |
* c-pretty-print.c: Likewise. |
| 10467 |
* c-semantics.c: Likewise. |
| 10468 |
* c-ubsan.c: Likewise. |
| 10469 |
* cilk.c: Likewise. |
| 10470 |
* stub-objc.c: Likewise. |
| 10471 |
|
| 10472 |
2015-11-09 Thomas Schwinge <[email protected]> |
| 10473 |
Cesar Philippidis <[email protected]> |
| 10474 |
James Norris <[email protected]> |
| 10475 |
Julian Brown <[email protected]> |
| 10476 |
Nathan Sidwell <[email protected]> |
| 10477 |
|
| 10478 |
* c-pragma.c (oacc_pragmas): Add "routine". |
| 10479 |
* c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE. |
| 10480 |
|
| 10481 |
2015-11-08 Eric Botcazou <[email protected]> |
| 10482 |
|
| 10483 |
* c-common.c (c_common_attributes): Add scalar_storage_order. |
| 10484 |
(handle_scalar_storage_order_attribute): New function. |
| 10485 |
* c-pragma.c (global_sso): New variable. |
| 10486 |
(maybe_apply_pragma_scalar_storage_order): New function. |
| 10487 |
(handle_pragma_scalar_storage_order): Likewise. |
| 10488 |
(init_pragma): Register scalar_storage_order. |
| 10489 |
* c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare. |
| 10490 |
* c.opt (Wscalar-storage-order): New warning. |
| 10491 |
(fsso-struct=): New option. |
| 10492 |
|
| 10493 |
2015-11-08 Martin Sebor <[email protected]> |
| 10494 |
|
| 10495 |
* c.opt (Wplacement-new): Add a period to the end of a sentence. |
| 10496 |
|
| 10497 |
2015-11-07 Richard Sandiford <[email protected]> |
| 10498 |
|
| 10499 |
* c-common.c: Don't undef DEF_BUILTIN. |
| 10500 |
|
| 10501 |
2015-11-06 David Malcolm <[email protected]> |
| 10502 |
|
| 10503 |
* c-common.c (c_cpp_error): Convert parameter from location_t to |
| 10504 |
rich_location *. Eliminate the "column_override" parameter and |
| 10505 |
the call to diagnostic_override_column. |
| 10506 |
Update the "done_lexing" clause to set range 0 |
| 10507 |
on the rich_location, rather than overwriting a location_t. |
| 10508 |
* c-common.h (c_cpp_error): Convert parameter from location_t to |
| 10509 |
rich_location *. Eliminate the "column_override" parameter. |
| 10510 |
|
| 10511 |
2015-11-05 Cesar Philippidis <[email protected]> |
| 10512 |
Thomas Schwinge <[email protected]> |
| 10513 |
James Norris <[email protected]> |
| 10514 |
|
| 10515 |
* c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR, |
| 10516 |
AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION |
| 10517 |
clauses with parallel and kernels and loops. |
| 10518 |
* c-pragma.h (enum pragma_omp_clause): Add entries for |
| 10519 |
PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}. |
| 10520 |
* pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS, |
| 10521 |
NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO, |
| 10522 |
INDEPENDENT,SEQ}. |
| 10523 |
(tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}. |
| 10524 |
|
| 10525 |
2015-11-05 Martin Sebor <[email protected]> |
| 10526 |
|
| 10527 |
PR c++/67942 |
| 10528 |
* c.opt (-Wplacement-new): New option. |
| 10529 |
|
| 10530 |
2015-11-05 Jakub Jelinek <[email protected]> |
| 10531 |
|
| 10532 |
* c-common.h (c_finish_omp_atomic): Add TEST argument. |
| 10533 |
(c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes. |
| 10534 |
* c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call |
| 10535 |
save_expr or create_tmp_var* if TEST is true. |
| 10536 |
(c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always. |
| 10537 |
Don't call add_stmt here. |
| 10538 |
(struct c_omp_check_loop_iv_data): New type. |
| 10539 |
(c_omp_check_loop_iv_r, c_omp_check_loop_iv, |
| 10540 |
c_omp_check_loop_iv_exprs): New functions. |
| 10541 |
(c_omp_split_clauses): Adjust for lastprivate being allowed on |
| 10542 |
distribute. |
| 10543 |
(c_omp_declare_simd_clauses_to_numbers): Change |
| 10544 |
OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers. |
| 10545 |
(c_omp_declare_simd_clauses_to_decls): Similarly change those |
| 10546 |
from numbers to PARM_DECLs. |
| 10547 |
|
| 10548 |
2015-11-04 Mikhail Maltsev <[email protected]> |
| 10549 |
|
| 10550 |
* c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use |
| 10551 |
flag_checking. |
| 10552 |
|
| 10553 |
2015-11-03 Bernd Schmidt <[email protected]> |
| 10554 |
|
| 10555 |
PR c++-common/67882 |
| 10556 |
* c-common.h (fold_offsetof_1): Add argument. |
| 10557 |
* c-common.c (fold_offsetof_1): Diagnose more invalid |
| 10558 |
offsetof expressions that reference elements past the end of |
| 10559 |
an array. |
| 10560 |
|
| 10561 |
2015-11-03 Thomas Schwinge <[email protected]> |
| 10562 |
Chung-Lin Tang <[email protected]> |
| 10563 |
|
| 10564 |
* c-pragma.c (oacc_pragmas): Add "atomic". |
| 10565 |
* c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC. |
| 10566 |
|
| 10567 |
2015-10-30 Evgeny Stupachenko <[email protected]> |
| 10568 |
|
| 10569 |
* c-common.c (handle_target_clones_attribute): New. |
| 10570 |
(c_common_attribute_table): Add handle_target_clones_attribute. |
| 10571 |
(handle_always_inline_attribute): Add check on target_clones attribute. |
| 10572 |
(handle_target_attribute): Ditto. |
| 10573 |
|
| 10574 |
2015-10-29 Andrew MacLeod <[email protected]> |
| 10575 |
|
| 10576 |
* array-notation-common.c: Reorder #include's and remove duplicates. |
| 10577 |
* c-ada-spec.c: Likewise. |
| 10578 |
* c-cilkplus.c: Likewise. |
| 10579 |
* c-common.c: Likewise. |
| 10580 |
* c-cppbuiltin.c: Likewise. |
| 10581 |
* c-dump.c: Likewise. |
| 10582 |
* c-format.c: Likewise. |
| 10583 |
* c-gimplify.c: Likewise. |
| 10584 |
* c-indentation.c: Likewise. |
| 10585 |
* c-lex.c: Likewise. |
| 10586 |
* c-omp.c: Likewise. |
| 10587 |
* c-opts.c: Likewise. |
| 10588 |
* c-pch.c: Likewise. |
| 10589 |
* c-ppoutput.c: Likewise. |
| 10590 |
* c-pragma.c: Likewise. |
| 10591 |
* c-pretty-print.c: Likewise. |
| 10592 |
* c-semantics.c: Likewise. |
| 10593 |
* c-ubsan.c: Likewise. |
| 10594 |
* cilk.c: Likewise. |
| 10595 |
* stub-objc.c: Likewise. |
| 10596 |
|
| 10597 |
2015-10-28 Jason Merrill <[email protected]> |
| 10598 |
|
| 10599 |
* c-common.c (pointer_int_sum): Fold the MULT_EXPR. |
| 10600 |
|
| 10601 |
2015-10-27 Thomas Schwinge <[email protected]> |
| 10602 |
James Norris <[email protected]> |
| 10603 |
Cesar Philippidis <[email protected]> |
| 10604 |
|
| 10605 |
PR c/64765 |
| 10606 |
PR c/64880 |
| 10607 |
* c-common.h (c_oacc_split_loop_clauses): Declare function. |
| 10608 |
* c-omp.c (c_oacc_split_loop_clauses): New function. |
| 10609 |
|
| 10610 |
2015-10-21 Martin Sebor <[email protected]> |
| 10611 |
|
| 10612 |
PR driver/68043 |
| 10613 |
* c.opt: End each sentence that describes an option with a period. |
| 10614 |
|
| 10615 |
2015-10-20 Marek Polacek <[email protected]> |
| 10616 |
|
| 10617 |
* array-notation-common.c (is_cilkplus_vector_p): Define. |
| 10618 |
* c-common.h (is_cilkplus_vector_p): Declare. |
| 10619 |
|
| 10620 |
2015-10-20 Marek Polacek <[email protected]> |
| 10621 |
|
| 10622 |
* c.opt (std=gnu++11): Do not describe as experimental. |
| 10623 |
(std=gnu++14): Likewise. |
| 10624 |
|
| 10625 |
2015-10-19 Jason Merrill <[email protected]> |
| 10626 |
|
| 10627 |
* c-cppbuiltin.c (c_cpp_builtins): Define |
| 10628 |
__cpp_nontype_template_args. |
| 10629 |
|
| 10630 |
2015-10-19 Jason Merrill <[email protected]> |
| 10631 |
|
| 10632 |
* c-cppbuiltin.c (c_cpp_builtins): Define |
| 10633 |
__cpp_enumerator_attributes, __cpp_fold_expressions, |
| 10634 |
__cpp_unicode_characters. |
| 10635 |
|
| 10636 |
2015-10-13 Jakub Jelinek <[email protected]> |
| 10637 |
Aldy Hernandez <[email protected]> |
| 10638 |
|
| 10639 |
* c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9, |
| 10640 |
DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11. |
| 10641 |
(c_define_builtins): Likewise. |
| 10642 |
* c-common.h (enum c_omp_clause_split): Add |
| 10643 |
C_OMP_CLAUSE_SPLIT_TASKLOOP. |
| 10644 |
(c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument. |
| 10645 |
(c_finish_omp_for): Add ORIG_DECLV argument. |
| 10646 |
* c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as |
| 10647 |
201511 instead of 201307. |
| 10648 |
* c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set |
| 10649 |
OMP_CRITICAL_CLAUSES to it. |
| 10650 |
(c_finish_omp_ordered): Add CLAUSES argument, set |
| 10651 |
OMP_ORDERED_CLAUSES to it. |
| 10652 |
(c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS |
| 10653 |
to it if OMP_FOR. Clear DECL_INITIAL on the IVs. |
| 10654 |
(c_omp_split_clauses): Handle OpenMP 4.5 combined/composite |
| 10655 |
constructs and new OpenMP 4.5 clauses. Clear |
| 10656 |
OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add |
| 10657 |
verification code. |
| 10658 |
* c-pragma.c (omp_pragmas_simd): Add taskloop. |
| 10659 |
* c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP. |
| 10660 |
(enum pragma_omp_clause): Add |
| 10661 |
PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR} |
| 10662 |
and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}. |
| 10663 |
|
| 10664 |
2015-10-05 Richard Sandiford <[email protected]> |
| 10665 |
|
| 10666 |
* c-lex.c (interpret_float): Use real_equal instead of |
| 10667 |
REAL_VALUES_EQUAL. |
| 10668 |
|
| 10669 |
2015-10-04 Jason Merrill <[email protected]> |
| 10670 |
|
| 10671 |
Implement N4514, C++ Extensions for Transactional Memory. |
| 10672 |
* c-common.c (c_common_reswords): Add C++ TM TS keywords. |
| 10673 |
(c_common_attribute_table): Add transaction_safe_dynamic. |
| 10674 |
transaction_safe now affects type identity. |
| 10675 |
(handle_tm_attribute): Handle transaction_safe_dynamic. |
| 10676 |
* c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT, |
| 10677 |
RID_ATOMIC_CANCEL, RID_SYNCHRONIZED. |
| 10678 |
(OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED. |
| 10679 |
(D_TRANSMEM): New. |
| 10680 |
* c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory. |
| 10681 |
* c-pretty-print.c (pp_c_attributes_display): Don't print |
| 10682 |
transaction_safe in C++. |
| 10683 |
|
| 10684 |
2015-10-02 Marek Polacek <[email protected]> |
| 10685 |
|
| 10686 |
* c.opt (Wduplicated-cond): Don't enable by -Wall anymore. |
| 10687 |
|
| 10688 |
2015-10-02 Marek Polacek <[email protected]> |
| 10689 |
|
| 10690 |
PR c/64249 |
| 10691 |
* c-common.c (warn_duplicated_cond_add_or_warn): New function. |
| 10692 |
* c-common.h (warn_duplicated_cond_add_or_warn): Declare. |
| 10693 |
* c.opt (Wduplicated-cond): New option. |
| 10694 |
|
| 10695 |
2015-10-01 Joseph Myers <[email protected]> |
| 10696 |
|
| 10697 |
* c.opt (std=c11): Do not describe as experimental. |
| 10698 |
(std=gnu11): Likewise. |
| 10699 |
(std=iso9899:2011): Likewise. |
| 10700 |
|
| 10701 |
2015-09-28 Nathan Sidwell <[email protected]> |
| 10702 |
|
| 10703 |
* c-common.c (DEF_FUNCTION_TYPE_VAR_6): New. |
| 10704 |
(DEF_FUNCTION_TYPE_VAR_11): Delete. |
| 10705 |
|
| 10706 |
2015-09-25 Marek Polacek <[email protected]> |
| 10707 |
|
| 10708 |
* c-ubsan.c (ubsan_instrument_division): Remove unnecessary code. |
| 10709 |
(ubsan_instrument_shift): Likewise. |
| 10710 |
|
| 10711 |
2015-09-25 Marek Polacek <[email protected]> |
| 10712 |
|
| 10713 |
PR sanitizer/64906 |
| 10714 |
* c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1. |
| 10715 |
|
| 10716 |
2015-09-24 Patrick Palka <[email protected]> |
| 10717 |
|
| 10718 |
* c-indentation.c (should_warn_for_misleading_indentation): |
| 10719 |
Compare next_stmt_vis_column with guard_line_first_nws instead |
| 10720 |
of with guard_line_vis_column. |
| 10721 |
|
| 10722 |
2015-09-23 Manuel López-Ibáñez <[email protected]> |
| 10723 |
|
| 10724 |
PR c/49654 |
| 10725 |
PR c/49655 |
| 10726 |
* c-pragma.c (handle_pragma_diagnostic): Detect non-warning |
| 10727 |
options and options not valid for the current language. |
| 10728 |
|
| 10729 |
2015-09-22 Patrick Palka <[email protected]> |
| 10730 |
|
| 10731 |
* c-indentation.c (should_warn_for_misleading_indentation): |
| 10732 |
Float out and consolidate the calls to get_visual_column that |
| 10733 |
are passed guard_exploc as an argument. Compare |
| 10734 |
next_stmt_vis_column with guard_line_first_nws instead of with |
| 10735 |
body_line_first_nws. |
| 10736 |
|
| 10737 |
2015-09-22 Nathan Sidwell <[email protected]> |
| 10738 |
|
| 10739 |
* c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates, |
| 10740 |
Wnamespaces): New C++ warnings. |
| 10741 |
|
| 10742 |
2015-09-22 Jason Merrill <[email protected]> |
| 10743 |
|
| 10744 |
* c-common.h (abi_compat_version_crosses): New. |
| 10745 |
(warn_abi_version): Declare. |
| 10746 |
* c-common.c: Define it. |
| 10747 |
* c-opts.c (c_common_post_options): Handle it. |
| 10748 |
flag_abi_compat_version defaults to 8. |
| 10749 |
|
| 10750 |
2015-09-21 Ville Voutilainen <[email protected]> |
| 10751 |
|
| 10752 |
Complete the implementation of N4230, Nested namespace definition. |
| 10753 |
* c-cppbuiltin.c: Add __cpp_namespace_attributes and |
| 10754 |
__cpp_nested_namespace_definitions. |
| 10755 |
|
| 10756 |
2015-09-18 Manuel López-Ibáñez <[email protected]> |
| 10757 |
|
| 10758 |
* c-pragma.c (handle_pragma_diagnostic): Fix wrong return. |
| 10759 |
|
| 10760 |
2015-09-18 Manuel López-Ibáñez <[email protected]> |
| 10761 |
|
| 10762 |
* c-pragma.c (handle_pragma_diagnostic): Use explicit location |
| 10763 |
when warning. |
| 10764 |
* c-pragma.h (pragma_lex): Add optional loc argument. |
| 10765 |
|
| 10766 |
2015-09-16 Mikhail Maltsev <[email protected]> |
| 10767 |
|
| 10768 |
* c-format.c (check_format_arg): Adjust to use common block size in all |
| 10769 |
object pools. |
| 10770 |
|
| 10771 |
2015-09-15 David Malcolm <[email protected]> |
| 10772 |
|
| 10773 |
* c-format.c (location_from_offset): Update for change in |
| 10774 |
signature of location_get_source_line. |
| 10775 |
* c-indentation.c (get_visual_column): Likewise. |
| 10776 |
(line_contains_hash_if): Likewise. |
| 10777 |
|
| 10778 |
2015-09-14 Marek Polacek <[email protected]> |
| 10779 |
|
| 10780 |
* c-opts.c (c_common_post_options): Set C++ standard earlier, before |
| 10781 |
setting various warnings. |
| 10782 |
|
| 10783 |
2015-09-14 Marek Polacek <[email protected]> |
| 10784 |
|
| 10785 |
* c-common.c (warn_for_sign_compare): Cast to unsigned when shifting |
| 10786 |
a negative value. |
| 10787 |
|
| 10788 |
2015-09-11 Mark Wielaard <[email protected]> |
| 10789 |
|
| 10790 |
PR c/28901 |
| 10791 |
* c.opt (Wunused-variable): Option from common.opt. |
| 10792 |
(Wunused-const-variable): New option. |
| 10793 |
|
| 10794 |
2015-09-09 Paolo Carlini <[email protected]> |
| 10795 |
|
| 10796 |
PR c++/53184 |
| 10797 |
* c.opt ([Wsubobject-linkage]): Add. |
| 10798 |
|
| 10799 |
2015-09-03 Martin Sebor <[email protected]> |
| 10800 |
|
| 10801 |
PR c/66516 |
| 10802 |
* c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new |
| 10803 |
functions. |
| 10804 |
* c-common.c (reject_gcc_builtin): Define. |
| 10805 |
|
| 10806 |
2015-09-02 Balaji V. Iyer <[email protected]> |
| 10807 |
|
| 10808 |
PR middle-end/60586 |
| 10809 |
* c-common.h (cilk_gimplify_call_params_in_spawned_fn): New |
| 10810 |
prototype. |
| 10811 |
* c-gimplify.c (c_gimplify_expr): Added a call to the function |
| 10812 |
cilk_gimplify_call_params_in_spawned_fn. |
| 10813 |
* cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function. |
| 10814 |
(gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR |
| 10815 |
unwrapping. |
| 10816 |
|
| 10817 |
2015-08-25 Marek Polacek <[email protected]> |
| 10818 |
|
| 10819 |
PR middle-end/67330 |
| 10820 |
* c-common.c (handle_weak_attribute): Don't check whether the |
| 10821 |
visibility can be changed here. |
| 10822 |
|
| 10823 |
2015-08-22 Manuel López-Ibáñez <[email protected]> |
| 10824 |
|
| 10825 |
* c-lex.c (c_lex_with_flags): Use explicit locations. |
| 10826 |
|
| 10827 |
2015-08-18 Trevor Saunders <[email protected]> |
| 10828 |
|
| 10829 |
* c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h, |
| 10830 |
c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless |
| 10831 |
|
| 10832 |
2015-08-18 Francois-Xavier Coudert <[email protected]> |
| 10833 |
|
| 10834 |
PR middle-end/36757 |
| 10835 |
* c-common.c (check_builtin_function_arguments): Add check |
| 10836 |
for BUILT_IN_SIGNBIT argument. |
| 10837 |
|
| 10838 |
2015-08-18 Paolo Carlini <[email protected]> |
| 10839 |
|
| 10840 |
PR c++/67160 |
| 10841 |
* c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value |
| 10842 |
in c++1z mode. |
| 10843 |
|
| 10844 |
2015-08-17 Marek Polacek <[email protected]> |
| 10845 |
|
| 10846 |
* c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing |
| 10847 |
with whitespaces before qualifier names. |
| 10848 |
|
| 10849 |
2015-08-12 Marek Polacek <[email protected]> |
| 10850 |
|
| 10851 |
PR c++/55095 |
| 10852 |
* c-common.c (maybe_warn_shift_overflow): Properly handle |
| 10853 |
left-shifting 1 into the sign bit. |
| 10854 |
|
| 10855 |
2015-08-09 Manuel López-Ibáñez <[email protected]> |
| 10856 |
|
| 10857 |
* c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy. |
| 10858 |
|
| 10859 |
2015-08-06 Andrew Sutton <[email protected]> |
| 10860 |
Braden Obrzut <[email protected]> |
| 10861 |
Jason Merrill <[email protected]> |
| 10862 |
|
| 10863 |
Add C++ Concepts TS support. |
| 10864 |
* c-common.c (c_common_reswords): Add __is_same_as, concept, requires. |
| 10865 |
* c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES. |
| 10866 |
(D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New. |
| 10867 |
* c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts. |
| 10868 |
* c-opts.c (set_std_cxx1z): Set flag_concepts. |
| 10869 |
* c.opt (fconcepts): New. |
| 10870 |
|
| 10871 |
2015-08-02 Martin Sebor <[email protected]> |
| 10872 |
|
| 10873 |
* c.opt (-Wframe-address): New warning option. |
| 10874 |
|
| 10875 |
2015-08-02 Patrick Palka <[email protected]> |
| 10876 |
|
| 10877 |
* c-indentation.c (should_warn_for_misleading_indentation): |
| 10878 |
Improve heuristics. |
| 10879 |
|
| 10880 |
2015-08-02 Patrick Palka <[email protected]> |
| 10881 |
|
| 10882 |
* c-indentation.c (get_visual_column): Add parameter first_nws, |
| 10883 |
use it. Update comment documenting the function. |
| 10884 |
(is_first_nonwhitespace_on_line): Remove. |
| 10885 |
(should_warn_for_misleading_indentation): Replace usage of |
| 10886 |
of is_first_nonwhitespace_on_line with get_visual_column. |
| 10887 |
|
| 10888 |
2015-08-02 Patrick Palka <[email protected]> |
| 10889 |
|
| 10890 |
* c-indentation.h (struct token_indent_info): Define. |
| 10891 |
(get_token_indent_info): Define. |
| 10892 |
(warn_for_misleading_information): Declare. |
| 10893 |
* c-common.h (warn_for_misleading_information): Remove. |
| 10894 |
* c-identation.c (warn_for_misleading_indentation): |
| 10895 |
Change declaration to take three token_indent_infos. Adjust |
| 10896 |
accordingly. |
| 10897 |
* c-identation.c (should_warn_for_misleading_indentation): |
| 10898 |
Likewise. Bail out early if the body is a compound statement. |
| 10899 |
(guard_tinfo_to_string): Define. |
| 10900 |
|
| 10901 |
2015-07-30 Jason Merrill <[email protected]> |
| 10902 |
|
| 10903 |
* c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print |
| 10904 |
'*' for reference decay. |
| 10905 |
|
| 10906 |
2015-07-30 Marek Polacek <[email protected]> |
| 10907 |
|
| 10908 |
* c-common.c (warn_tautological_cmp): Bail for float types. |
| 10909 |
|
| 10910 |
2015-07-27 Marek Polacek <[email protected]> |
| 10911 |
|
| 10912 |
PR bootstrap/67030 |
| 10913 |
* c-common.c (warn_tautological_cmp): Don't warn for macro expansion. |
| 10914 |
|
| 10915 |
2015-07-27 Marek Polacek <[email protected]> |
| 10916 |
|
| 10917 |
PR c++/66555 |
| 10918 |
PR c/54979 |
| 10919 |
* c-common.c (find_array_ref_with_const_idx_r): New function. |
| 10920 |
(warn_tautological_cmp): New function. |
| 10921 |
* c-common.h (warn_tautological_cmp): Declare. |
| 10922 |
* c.opt (Wtautological-compare): New option. |
| 10923 |
|
| 10924 |
2015-07-23 Marek Polacek <[email protected]> |
| 10925 |
|
| 10926 |
* c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout. |
| 10927 |
(ubsan_instrument_shift): Likewise. |
| 10928 |
|
| 10929 |
2015-07-23 Marek Polacek <[email protected]> |
| 10930 |
|
| 10931 |
PR sanitizer/66908 |
| 10932 |
* c-ubsan.c: Include gimplify.h. |
| 10933 |
(ubsan_instrument_division): Unshare OP0 and OP1. |
| 10934 |
(ubsan_instrument_shift): Likewise. |
| 10935 |
|
| 10936 |
2015-07-20 Marek Polacek <[email protected]> |
| 10937 |
Richard Sandiford <[email protected]> |
| 10938 |
|
| 10939 |
PR c++/55095 |
| 10940 |
* c-common.c (c_fully_fold_internal): Warn about left shift overflows. |
| 10941 |
Use EXPR_LOC_OR_LOC. |
| 10942 |
(maybe_warn_shift_overflow): New function. |
| 10943 |
* c-common.h (maybe_warn_shift_overflow): Declare. |
| 10944 |
* c-opts.c (c_common_post_options): Set warn_shift_overflow. |
| 10945 |
* c.opt (Wshift-overflow): New option. |
| 10946 |
|
| 10947 |
2015-07-16 Martin Liska <[email protected]> |
| 10948 |
|
| 10949 |
* c-format.c (static void check_format_info_main): Use |
| 10950 |
object_allocator instead of pool_allocator. |
| 10951 |
(check_format_arg): Likewise. |
| 10952 |
(check_format_info_main): Likewise. |
| 10953 |
|
| 10954 |
2015-07-15 Andrew MacLeod <[email protected]> |
| 10955 |
|
| 10956 |
* c-opts.c: Remove multiline #include comment. |
| 10957 |
|
| 10958 |
2015-07-12 Aldy Hernandez <[email protected]> |
| 10959 |
|
| 10960 |
* c-common.c: Fix double word typos. |
| 10961 |
|
| 10962 |
2015-07-10 Eric Botcazou <[email protected]> |
| 10963 |
|
| 10964 |
* c-ada-spec.h (cpp_operation): Revert latest change. |
| 10965 |
* c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit |
| 10966 |
constructors and destructors. |
| 10967 |
|
| 10968 |
2015-07-09 Andrew MacLeod <[email protected]> |
| 10969 |
|
| 10970 |
* c-common.h: Adjust includes for flags.h changes. |
| 10971 |
* stub-objc.c: Likewise. |
| 10972 |
|
| 10973 |
2015-07-08 Eric Botcazou <[email protected]> |
| 10974 |
|
| 10975 |
* c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR. |
| 10976 |
* c-ada-spec.c (print_ada_declaration): Skip constexpr constructors. |
| 10977 |
|
| 10978 |
2015-07-08 Jakub Jelinek <[email protected]> |
| 10979 |
|
| 10980 |
* c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses |
| 10981 |
are to be removed, return NULL rather than original clauses list. |
| 10982 |
|
| 10983 |
2015-07-07 Andrew MacLeod <[email protected]> |
| 10984 |
|
| 10985 |
* array-notation-common.c: Adjust includes. |
| 10986 |
* c-ada-spec.c: Likewise. |
| 10987 |
* c-cilkplus.c: Likewise. |
| 10988 |
* c-common.h: Likewise. |
| 10989 |
* c-cppbuiltin.c: Likewise. |
| 10990 |
* c-dump.c: Likewise. |
| 10991 |
* c-format.c: Likewise. |
| 10992 |
* c-gimplify.c: Likewise. |
| 10993 |
* c-indentation.c: Likewise. |
| 10994 |
* c-lex.c: Likewise. |
| 10995 |
* c-omp.c: Likewise. |
| 10996 |
* c-opts.c: Likewise. |
| 10997 |
* c-pch.c: Likewise. |
| 10998 |
* c-ppoutput.c: Likewise. |
| 10999 |
* c-pragma.c: Likewise. |
| 11000 |
* c-pretty-print.c: Likewise. |
| 11001 |
* c-semantics.c: Likewise. |
| 11002 |
* c-ubsan.c: Likewise. |
| 11003 |
* cilk.c: Likewise. |
| 11004 |
* stub-objc.c: Likewise. |
| 11005 |
|
| 11006 |
2015-07-07 Eric Botcazou <[email protected]> |
| 11007 |
|
| 11008 |
* c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR. |
| 11009 |
* c-ada-spec.c (print_ada_declaration): Skip move constructors. |
| 11010 |
|
| 11011 |
2015-07-01 Jason Merrill <[email protected]> |
| 11012 |
|
| 11013 |
* c-common.h (D_CXX11): Rename from D_CXX0X. |
| 11014 |
(RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X. |
| 11015 |
* c-common.c: Adjust. |
| 11016 |
|
| 11017 |
* c-opts.c (c_common_post_options): Default to C++14. |
| 11018 |
|
| 11019 |
* c-opts.c (c_common_post_options): Highest ABI level is now 10. |
| 11020 |
|
| 11021 |
2015-06-30 Edward Smith-Rowland <[email protected]> |
| 11022 |
|
| 11023 |
Implement N4197 - Adding u8 character literals |
| 11024 |
* c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like |
| 11025 |
CPP_CHAR. |
| 11026 |
* c-common.c (c_parse_error): Print CPP_UTF8CHAR and |
| 11027 |
CPP_UTF8CHAR_USERDEF tokens. |
| 11028 |
* c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF |
| 11029 |
and CPP_UTF8CHAR tokens. |
| 11030 |
(lex_charconst): Treat CPP_UTF8CHAR token. |
| 11031 |
|
| 11032 |
2015-06-29 Manuel López-Ibáñez <[email protected]> |
| 11033 |
|
| 11034 |
PR fortran/66605 |
| 11035 |
* c-common.c (do_warn_unused_parameter): Move here. |
| 11036 |
* c-common.h (do_warn_unused_parameter): Declare. |
| 11037 |
|
| 11038 |
2015-06-29 Marek Polacek <[email protected]> |
| 11039 |
|
| 11040 |
PR c/66322 |
| 11041 |
* c-common.c (check_case_bounds): Add bool * parameter. Set |
| 11042 |
OUTSIDE_RANGE_P. |
| 11043 |
(c_add_case_label): Add bool * parameter. Pass it down to |
| 11044 |
check_case_bounds. |
| 11045 |
(c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool |
| 11046 |
warning here. |
| 11047 |
* c-common.h (c_add_case_label, c_do_switch_warnings): Update |
| 11048 |
declarations. |
| 11049 |
|
| 11050 |
2015-06-27 Marek Polacek <[email protected]> |
| 11051 |
|
| 11052 |
* c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P |
| 11053 |
or VECTOR_INTEGER_TYPE_P throughout. |
| 11054 |
* c-gimplify.c: Likewise. |
| 11055 |
|
| 11056 |
2015-06-26 Marek Polacek <[email protected]> |
| 11057 |
|
| 11058 |
* array-notation-common.c (find_rank): Use INDIRECT_REF_P. |
| 11059 |
* c-common.c (c_fully_fold_internal): Likewise. |
| 11060 |
(c_alignof_expr): Likewise. |
| 11061 |
* c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise. |
| 11062 |
* c-ubsan.c (ubsan_instrument_bounds): Likewise. |
| 11063 |
* cilk.c (create_parm_list): Likewise. |
| 11064 |
|
| 11065 |
2015-06-26 Marek Polacek <[email protected]> |
| 11066 |
|
| 11067 |
* c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P. |
| 11068 |
|
| 11069 |
2015-06-25 Andrew MacLeod <[email protected]> |
| 11070 |
|
| 11071 |
* c-common.c: Remove ipa-ref.h and plugin-api.h from include list. |
| 11072 |
* c-gimplify.c: Likewise. |
| 11073 |
* c-pragma.c: Likewise. |
| 11074 |
* c-ubsan.c: Likewise. |
| 11075 |
* cilk.c: Likewise. |
| 11076 |
|
| 11077 |
2015-06-25 Richard Sandiford <[email protected]> |
| 11078 |
|
| 11079 |
* c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than |
| 11080 |
ggc_hasher. |
| 11081 |
|
| 11082 |
2015-06-25 Andrew MacLeod <[email protected]> |
| 11083 |
|
| 11084 |
* cilk.c: Move calls.h after tm.h in the include chain. |
| 11085 |
|
| 11086 |
2015-06-25 Marek Polacek <[email protected]> |
| 11087 |
|
| 11088 |
* array-notation-common.c: Use VAR_P throughout. |
| 11089 |
* c-ada-spec.c: Likewise. |
| 11090 |
* c-common.c: Likewise. |
| 11091 |
* c-format.c: Likewise. |
| 11092 |
* c-gimplify.c: Likewise. |
| 11093 |
* c-omp.c: Likewise. |
| 11094 |
* c-pragma.c: Likewise. |
| 11095 |
* c-pretty-print.c: Likewise. |
| 11096 |
* cilk.c: Likewise. |
| 11097 |
|
| 11098 |
2015-06-25 Marek Polacek <[email protected]> |
| 11099 |
|
| 11100 |
* cilk.c (extract_free_variables): Use is_global_var. |
| 11101 |
|
| 11102 |
2015-06-23 Richard Sandiford <[email protected]> |
| 11103 |
|
| 11104 |
* c-common.c: Don't include target-def.h. |
| 11105 |
|
| 11106 |
2015-06-23 Marek Polacek <[email protected]> |
| 11107 |
|
| 11108 |
* c-common.c (warn_logical_operator): Use tree_int_cst_equal |
| 11109 |
when comparing INTEGER_CSTs. |
| 11110 |
|
| 11111 |
2015-06-22 Pierre-Marie de Rodat <[email protected]> |
| 11112 |
|
| 11113 |
* c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS. |
| 11114 |
* c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL |
| 11115 |
(dump_ada_template): Skip partially specialized types. |
| 11116 |
|
| 11117 |
2015-06-22 Mikhail Maltsev <[email protected]> |
| 11118 |
|
| 11119 |
* c-common.c (scalar_to_vector): Use std::swap instead of manually |
| 11120 |
swapping. |
| 11121 |
|
| 11122 |
2015-06-17 Andrew MacLeod <[email protected]> |
| 11123 |
|
| 11124 |
* array-notation-common.c: Do not include input.h, line-map.h or is-a.h. |
| 11125 |
* c-ada-spec.c: Likewise. |
| 11126 |
* c-cilkplus.c: Likewise. |
| 11127 |
* c-common.c: Likewise. |
| 11128 |
* c-common.h: Likewise. |
| 11129 |
* c-cppbuiltin.c: Likewise. |
| 11130 |
* c-dump.c: Likewise. |
| 11131 |
* c-format.c: Likewise. |
| 11132 |
* c-gimplify.c: Likewise. |
| 11133 |
* c-indentation.c: Likewise. |
| 11134 |
* c-lex.c: Likewise. |
| 11135 |
* c-omp.c: Likewise. |
| 11136 |
* c-opts.c: Likewise. |
| 11137 |
* c-pch.c: Likewise. |
| 11138 |
* c-ppoutput.c: Likewise. |
| 11139 |
* c-pragma.c: Likewise. |
| 11140 |
* c-pretty-print.c: Likewise. |
| 11141 |
* c-semantics.c: Likewise. |
| 11142 |
* c-ubsan.c: Likewise. |
| 11143 |
* cilk.c: Likewise. |
| 11144 |
* stub-objc.c: Likewise. |
| 11145 |
|
| 11146 |
2015-06-13 Patrick Palka <[email protected]> |
| 11147 |
|
| 11148 |
PR c++/65168 |
| 11149 |
* c-common.c (c_common_truthvalue_conversion): Warn when |
| 11150 |
converting an address of a reference to a truth value. |
| 11151 |
|
| 11152 |
2015-06-08 Andrew MacLeod <[email protected]> |
| 11153 |
|
| 11154 |
* array-notation-common.c : Adjust include files. |
| 11155 |
* c-ada-spec.c : Likewise. |
| 11156 |
* c-cilkplus.c : Likewise. |
| 11157 |
* c-common.c : Likewise. |
| 11158 |
* c-common.h : Likewise. |
| 11159 |
* c-cppbuiltin.c : Likewise. |
| 11160 |
* c-dump.c : Likewise. |
| 11161 |
* c-format.c : Likewise. |
| 11162 |
* c-gimplify.c : Likewise. |
| 11163 |
* c-indentation.c : Likewise. |
| 11164 |
* c-lex.c : Likewise. |
| 11165 |
* c-omp.c : Likewise. |
| 11166 |
* c-opts.c : Likewise. |
| 11167 |
* c-pch.c : Likewise. |
| 11168 |
* c-ppoutput.c : Likewise. |
| 11169 |
* c-pragma.c : Likewise. |
| 11170 |
* c-pretty-print.c : Likewise. |
| 11171 |
* c-semantics.c : Likewise. |
| 11172 |
* c-ubsan.c : Likewise. |
| 11173 |
* cilk.c : Likewise. |
| 11174 |
* stub-objc.c : Likewise. |
| 11175 |
|
| 11176 |
2015-06-08 Marek Polacek <[email protected]> |
| 11177 |
|
| 11178 |
PR c/66415 |
| 11179 |
* c-format.c (location_from_offset): Return LOC if LINE is null. |
| 11180 |
|
| 11181 |
2015-06-05 Aldy Hernandez <[email protected]> |
| 11182 |
|
| 11183 |
* c-common.h (c_parse_final_cleanups): New prototype. |
| 11184 |
* c-opts.c (c_common_parse_file): Call c_parse_final_cleanups. |
| 11185 |
|
| 11186 |
2015-06-04 Sriraman Tallam <[email protected]> |
| 11187 |
|
| 11188 |
* c-common.c (noplt): New attribute. |
| 11189 |
(handle_noplt_attribute): New handler. |
| 11190 |
|
| 11191 |
2015-06-04 Andrew MacLeod <[email protected]> |
| 11192 |
|
| 11193 |
* array-notation-common.c: Adjust includes for restructured coretypes.h. |
| 11194 |
* c-ada-spec.c: Likewise. |
| 11195 |
* c-cilkplus.c: Likewise. |
| 11196 |
* c-common.c: Likewise. |
| 11197 |
* c-common.h: Likewise. |
| 11198 |
* c-cppbuiltin.c: Likewise. |
| 11199 |
* c-dump.c: Likewise. |
| 11200 |
* c-format.c: Likewise. |
| 11201 |
* c-gimplify.c: Likewise. |
| 11202 |
* c-indentation.c: Likewise. |
| 11203 |
* c-lex.c: Likewise. |
| 11204 |
* c-omp.c: Likewise. |
| 11205 |
* c-opts.c: Likewise. |
| 11206 |
* c-pch.c: Likewise. |
| 11207 |
* c-ppoutput.c: Likewise. |
| 11208 |
* c-pragma.c: Likewise. |
| 11209 |
* c-pretty-print.c: Likewise. |
| 11210 |
* c-semantics.c: Likewise. |
| 11211 |
* c-ubsan.c: Likewise. |
| 11212 |
* cilk.c: Likewise. |
| 11213 |
* stub-objc.c: Likewise. |
| 11214 |
|
| 11215 |
2015-06-02 David Malcolm <[email protected]> |
| 11216 |
|
| 11217 |
PR c/66220: |
| 11218 |
* c-indentation.c (should_warn_for_misleading_indentation): Use |
| 11219 |
expand_location rather than expand_location_to_spelling_point. |
| 11220 |
Don't warn if the guarding statement is more indented than the |
| 11221 |
next/body stmts. |
| 11222 |
|
| 11223 |
2015-06-02 David Malcolm <[email protected]> |
| 11224 |
|
| 11225 |
* c-indentation.c (warn_for_misleading_indentation): Bail out |
| 11226 |
immediately if -Wmisleading-indentation isn't enabled. |
| 11227 |
|
| 11228 |
2015-06-01 Martin Liska <[email protected]> |
| 11229 |
|
| 11230 |
* c-format.c (check_format_arg):Use new type-based pool allocator. |
| 11231 |
(check_format_info_main) Likewise. |
| 11232 |
|
| 11233 |
2015-05-31 Eric Botcazou <[email protected]> |
| 11234 |
|
| 11235 |
* c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant. |
| 11236 |
(has_nontrivial_methods): Likewise. |
| 11237 |
|
| 11238 |
2015-05-25 Marek Polacek <[email protected]> |
| 11239 |
|
| 11240 |
* c-ubsan.c (ubsan_instrument_shift): Use type0. |
| 11241 |
|
| 11242 |
2015-05-22 Marek Polacek <[email protected]> |
| 11243 |
|
| 11244 |
PR c/47043 |
| 11245 |
* c-common.c (handle_deprecated_attribute): Allow CONST_DECL. |
| 11246 |
|
| 11247 |
2015-05-21 Trevor Saunders <[email protected]> |
| 11248 |
|
| 11249 |
* c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with |
| 11250 |
STACK_GROWS_DOWNWARD. |
| 11251 |
|
| 11252 |
2015-05-21 Trevor Saunders <[email protected]> |
| 11253 |
|
| 11254 |
* c-cppbuiltin.c (c_cpp_builtins): Check the value of |
| 11255 |
STACK_GROWS_DOWNWARD rather than if it is defined. |
| 11256 |
|
| 11257 |
2015-05-21 Manuel López-Ibáñez <[email protected]> |
| 11258 |
|
| 11259 |
PR c/52952 |
| 11260 |
* c-format.c (location_column_from_byte_offset): New. |
| 11261 |
(location_from_offset): New. |
| 11262 |
(struct format_wanted_type): Add offset_loc field. |
| 11263 |
(check_format_info): Move handling of location for extra arguments |
| 11264 |
closer to the point of warning. |
| 11265 |
(check_format_info_main): Pass the result of location_from_offset |
| 11266 |
to warning_at. |
| 11267 |
(format_type_warning): Pass the result of location_from_offset |
| 11268 |
to warning_at. |
| 11269 |
|
| 11270 |
2015-05-20 Marek Polacek <[email protected]> |
| 11271 |
|
| 11272 |
* c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P. |
| 11273 |
|
| 11274 |
2015-05-20 Marek Polacek <[email protected]> |
| 11275 |
|
| 11276 |
* c-ada-spec.c (dump_sloc): Use DECL_P. |
| 11277 |
|
| 11278 |
2015-05-20 Marek Polacek <[email protected]> |
| 11279 |
|
| 11280 |
* c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout. |
| 11281 |
* c-common.c: Likewise. |
| 11282 |
|
| 11283 |
2015-05-19 David Malcolm <[email protected]> |
| 11284 |
|
| 11285 |
* c-common.h (fe_file_change): Strengthen param from |
| 11286 |
const line_map * to const line_map_ordinary *. |
| 11287 |
(pp_file_change): Likewise. |
| 11288 |
* c-lex.c (fe_file_change): Likewise. |
| 11289 |
(cb_define): Use linemap_check_ordinary when invoking |
| 11290 |
SOURCE_LINE. |
| 11291 |
(cb_undef): Likewise. |
| 11292 |
* c-opts.c (c_finish_options): Use linemap_check_ordinary when |
| 11293 |
invoking cb_file_change. |
| 11294 |
(c_finish_options): Likewise. |
| 11295 |
(push_command_line_include): Likewise. |
| 11296 |
(cb_file_change): Strengthen param "new_map" from |
| 11297 |
const line_map * to const line_map_ordinary *. |
| 11298 |
* c-ppoutput.c (cb_define): Likewise for local "map". |
| 11299 |
(pp_file_change): Likewise for param "map" and local "from". |
| 11300 |
|
| 11301 |
2015-05-19 Mikhail Maltsev <[email protected]> |
| 11302 |
|
| 11303 |
* c-common.c (shorten_compare): Use std::swap instead of explicit swaps. |
| 11304 |
|
| 11305 |
2015-05-18 Tom de Vries <[email protected]> |
| 11306 |
|
| 11307 |
* c-common.c (build_va_arg_1): New function. |
| 11308 |
(build_va_arg): Add address operator to va_list operand if necessary. |
| 11309 |
|
| 11310 |
2015-05-15 Mikhail Maltsev <[email protected]> |
| 11311 |
|
| 11312 |
PR c/48956 |
| 11313 |
* c-common.c (int_safely_convertible_to_real_p): Define. |
| 11314 |
(unsafe_conversion_p): Check conversions involving complex types. |
| 11315 |
(conversion_warning): Add new warning message for conversions which |
| 11316 |
discard imaginary component. |
| 11317 |
* c-common.h: (enum conversion_safety): Add new enumerator for such |
| 11318 |
conversions. |
| 11319 |
|
| 11320 |
2015-05-14 Marek Polacek <[email protected]> |
| 11321 |
|
| 11322 |
PR c/66066 |
| 11323 |
PR c/66127 |
| 11324 |
* c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal. |
| 11325 |
(c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with |
| 11326 |
C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and |
| 11327 |
use it. If FOR_INT_CONST, require that all evaluated operands be |
| 11328 |
INTEGER_CSTs. |
| 11329 |
|
| 11330 |
2015-05-12 David Malcolm <[email protected]> |
| 11331 |
|
| 11332 |
* c-common.h (warn_for_misleading_indentation): New prototype. |
| 11333 |
* c-indentation.c: New file. |
| 11334 |
* c.opt (Wmisleading-indentation): New option. |
| 11335 |
|
| 11336 |
2015-05-12 Tom de Vries <[email protected]> |
| 11337 |
|
| 11338 |
PR tree-optimization/66010 |
| 11339 |
* c-common.c (build_va_arg): Don't mark ap addressable unless necessary. |
| 11340 |
|
| 11341 |
2015-05-09 Jason Merrill <[email protected]> |
| 11342 |
|
| 11343 |
* c-opts.c (c_common_post_options): Also clear |
| 11344 |
cpp_opts->cpp_warn_cxx11_compat. |
| 11345 |
|
| 11346 |
* c-common.h (enum cxx_dialect): Add cxx_unset. |
| 11347 |
* c-common.c (cxx_dialect): Initialize to cxx_unset. |
| 11348 |
* c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset. |
| 11349 |
|
| 11350 |
* c.opt (std=c++14): Remove Undocumented flag and experimental warning. |
| 11351 |
(std=gnu++0x): Mark as Undocumented. |
| 11352 |
(std=gnu++1y): Add deprecated message. |
| 11353 |
|
| 11354 |
2015-05-08 Jason Merrill <[email protected]> |
| 11355 |
|
| 11356 |
* c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat. |
| 11357 |
* c-opts.c: Adjust. |
| 11358 |
|
| 11359 |
* c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat. |
| 11360 |
|
| 11361 |
2015-05-08 Marek Polacek <[email protected]> |
| 11362 |
|
| 11363 |
PR c/64918 |
| 11364 |
* c.opt (Woverride-init-side-effects): New option. |
| 11365 |
|
| 11366 |
2015-05-07 Marek Polacek <[email protected]> |
| 11367 |
|
| 11368 |
PR c/65179 |
| 11369 |
* c-common.c (c_fully_fold_internal): Warn when left shifting a |
| 11370 |
negative value. |
| 11371 |
* c.opt (Wshift-negative-value): New option. |
| 11372 |
* c-opts.c (c_common_post_options): Set warn_shift_negative_value |
| 11373 |
when -Wextra and C99/C++11 mode. |
| 11374 |
|
| 11375 |
2015-05-07 Marek Polacek <[email protected]> |
| 11376 |
Martin Uecker <[email protected]> |
| 11377 |
|
| 11378 |
* c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting |
| 11379 |
flexible member array-like members if SANITIZE_BOUNDS_STRICT. |
| 11380 |
|
| 11381 |
2015-05-05 Jason Merrill <[email protected]> |
| 11382 |
|
| 11383 |
* c.opt (Wterminate): New. |
| 11384 |
|
| 11385 |
2015-04-30 Marek Polacek <[email protected]> |
| 11386 |
|
| 11387 |
* c-common.c (maybe_warn_bool_compare): When comparing with 0/1, |
| 11388 |
require that the non-constant be of a boolean type. |
| 11389 |
|
| 11390 |
2015-04-29 Josh Triplett <[email protected]> |
| 11391 |
|
| 11392 |
* c-common.c (handle_section_attribute): Refactor to reduce |
| 11393 |
nesting and distinguish between error cases. |
| 11394 |
|
| 11395 |
2015-04-29 Marek Polacek <[email protected]> |
| 11396 |
|
| 11397 |
PR c/64610 |
| 11398 |
* c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean |
| 11399 |
with 0/1. |
| 11400 |
|
| 11401 |
2015-04-29 Jakub Jelinek <[email protected]> |
| 11402 |
|
| 11403 |
* c-common.h (omp_clause_mask): Unconditionally define as a class. |
| 11404 |
Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of |
| 11405 |
HOST_BITS_PER_WIDE_INT. |
| 11406 |
|
| 11407 |
2015-04-28 Tom de Vries <[email protected]> |
| 11408 |
|
| 11409 |
PR tree-optimization/65887 |
| 11410 |
* c-common.c (build_va_arg): Mark va_arg ap argument as addressable. |
| 11411 |
|
| 11412 |
2015-04-28 Eric Botcazou <[email protected]> |
| 11413 |
Pierre-Marie de Rodat <[email protected]> |
| 11414 |
|
| 11415 |
* c-ada-spec.c (in_function): Delete. |
| 11416 |
(dump_generic_ada_node): Do not change in_function and remove the |
| 11417 |
redundant code dealing with it. |
| 11418 |
(print_ada_declaration): Do not change in_function. Use INDENT_INCR. |
| 11419 |
(print_ada_methods): Output the static member functions in a nested |
| 11420 |
package after the regular methods as well as associated renamings. |
| 11421 |
|
| 11422 |
2015-04-24 Marek Polacek <[email protected]> |
| 11423 |
|
| 11424 |
PR c/65830 |
| 11425 |
* c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative |
| 11426 |
and OPT_Wshift_count_overflow. |
| 11427 |
|
| 11428 |
PR c/63357 |
| 11429 |
* c-common.c (warn_logical_operator): Warn if the operands have the |
| 11430 |
same expressions. |
| 11431 |
|
| 11432 |
2015-04-24 Marek Polacek <[email protected]> |
| 11433 |
|
| 11434 |
PR c/61534 |
| 11435 |
* c-common.c (warn_logical_operator): Bail if either operand comes |
| 11436 |
from a macro expansion. |
| 11437 |
|
| 11438 |
2015-04-10 Bernhard Reutner-Fischer <[email protected]> |
| 11439 |
|
| 11440 |
PR target/55143 |
| 11441 |
* c-common.c (c_default_pointer_mode): Add definition. |
| 11442 |
* c-common.h (c_default_pointer_mode): Add declaration. |
| 11443 |
|
| 11444 |
2015-03-11 Jakub Jelinek <[email protected]> |
| 11445 |
|
| 11446 |
* c-common.c (c_common_nodes_and_builtins): Don't call xstrdup |
| 11447 |
on record_builtin_type argument. |
| 11448 |
|
| 11449 |
2015-03-10 Jakub Jelinek <[email protected]> |
| 11450 |
|
| 11451 |
PR c/65120 |
| 11452 |
* c-common.c (warn_logical_not_parentheses): Don't warn for |
| 11453 |
!x == 0 or !x != 0. |
| 11454 |
|
| 11455 |
2015-03-07 Marek Polacek <[email protected]> |
| 11456 |
|
| 11457 |
PR sanitizer/65280 |
| 11458 |
* c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF |
| 11459 |
before trying to figure out whether we have a flexible array member. |
| 11460 |
|
| 11461 |
2015-03-06 Eric Botcazou <[email protected]> |
| 11462 |
Jonathan Wakely <[email protected]> |
| 11463 |
|
| 11464 |
* c-ada-spec.c (dump_ada_double_name): Fix pasto. |
| 11465 |
|
| 11466 |
2015-03-05 Eric Botcazou <[email protected]> |
| 11467 |
|
| 11468 |
PR ada/65319 |
| 11469 |
* c-ada-spec.c (print_destructor): Remove obsolete code. |
| 11470 |
|
| 11471 |
2015-03-01 Eric Botcazou <[email protected]> |
| 11472 |
|
| 11473 |
* c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX. |
| 11474 |
(dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and |
| 11475 |
DECL_TEMPLATE_RESULT emulations. |
| 11476 |
(dump_ada_template)): Add guard for TYPE_METHODS. |
| 11477 |
|
| 11478 |
2015-02-27 Marek Polacek <[email protected]> |
| 11479 |
|
| 11480 |
PR c/65040 |
| 11481 |
* c.opt (Wformat-signedness): Don't enable by -Wformat=2. |
| 11482 |
|
| 11483 |
2015-02-27 Kai Tietz <[email protected]> |
| 11484 |
|
| 11485 |
PR c/35330 |
| 11486 |
* c-pragma.c (handle_pragma_weak): Do not try to create |
| 11487 |
weak/alias of declarations not being function, or variable |
| 11488 |
declarations. |
| 11489 |
|
| 11490 |
2015-02-24 Thomas Schwinge <[email protected]> |
| 11491 |
|
| 11492 |
PR libgomp/64625 |
| 11493 |
* c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12): |
| 11494 |
Remove macros. |
| 11495 |
(DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros. |
| 11496 |
|
| 11497 |
2015-02-16 Marek Polacek <[email protected]> |
| 11498 |
|
| 11499 |
PR c/65066 |
| 11500 |
* c-format.c (check_format_types): Handle null param. |
| 11501 |
|
| 11502 |
2015-02-13 Marek Polacek <[email protected]> |
| 11503 |
|
| 11504 |
PR c/65040 |
| 11505 |
* c-format.c (check_format_types): Don't warn about different |
| 11506 |
signedness if the original value is in the range of WANTED_TYPE. |
| 11507 |
|
| 11508 |
2015-02-12 Jason Merrill <[email protected]> |
| 11509 |
|
| 11510 |
PR c++/64956 |
| 11511 |
* c-opts.c (c_common_post_options): Change flag_abi_version from 0 |
| 11512 |
to the current highest version. |
| 11513 |
* c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0. |
| 11514 |
|
| 11515 |
2015-02-04 Jakub Jelinek <[email protected]> |
| 11516 |
|
| 11517 |
PR c/64824 |
| 11518 |
PR c/64868 |
| 11519 |
* c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR |
| 11520 |
instead of RDIV_EXPR. Use build_binary_op instead of |
| 11521 |
build2_loc. |
| 11522 |
|
| 11523 |
2015-01-30 Joseph Myers <[email protected]> |
| 11524 |
|
| 11525 |
* c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed |
| 11526 |
to pass input_location as first argument. |
| 11527 |
|
| 11528 |
2015-01-23 Tom de Vries <[email protected]> |
| 11529 |
|
| 11530 |
PR libgomp/64672 |
| 11531 |
* c.opt (fopenacc): Mark as LTO option. |
| 11532 |
|
| 11533 |
2015-01-23 Tom de Vries <[email protected]> |
| 11534 |
|
| 11535 |
PR libgomp/64707 |
| 11536 |
* c.opt (fopenmp): Mark as LTO option. |
| 11537 |
|
| 11538 |
2015-01-21 Jakub Jelinek <[email protected]> |
| 11539 |
|
| 11540 |
PR c/63307 |
| 11541 |
* cilk.c (fill_decls_vec): Only put decls into vector v. |
| 11542 |
(compare_decls): Fix up formatting. |
| 11543 |
|
| 11544 |
2015-01-21 Igor Zamyatin <[email protected]> |
| 11545 |
|
| 11546 |
PR c/63307 |
| 11547 |
* cilk.c: Include vec.h. |
| 11548 |
(struct cilk_decls): New structure. |
| 11549 |
(wrapper_parm_cb): Split this function to... |
| 11550 |
(fill_decls_vec): ...this... |
| 11551 |
(create_parm_list): ...and this. |
| 11552 |
(compare_decls): New function. |
| 11553 |
(for_local_cb): Remove. |
| 11554 |
(wrapper_local_cb): Ditto. |
| 11555 |
(build_wrapper_type): For now first traverse and fill vector of |
| 11556 |
declarations then sort it and then deal with sorted vector. |
| 11557 |
(cilk_outline): Ditto. |
| 11558 |
(declare_one_free_variable): Ditto. |
| 11559 |
|
| 11560 |
2015-01-21 Jason Merrill <[email protected]> |
| 11561 |
|
| 11562 |
PR c++/64629 |
| 11563 |
* c-format.c (check_format_arg): Call decl_constant_value. |
| 11564 |
|
| 11565 |
2015-01-19 Martin Liska <[email protected]> |
| 11566 |
|
| 11567 |
* c-common.c (handle_noicf_attribute): New function. |
| 11568 |
|
| 11569 |
2015-01-15 Thomas Schwinge <[email protected]> |
| 11570 |
Bernd Schmidt <[email protected]> |
| 11571 |
James Norris <[email protected]> |
| 11572 |
Cesar Philippidis <[email protected]> |
| 11573 |
Ilmir Usmanov <[email protected]> |
| 11574 |
Jakub Jelinek <[email protected]> |
| 11575 |
|
| 11576 |
* c.opt (fopenacc): New option. |
| 11577 |
* c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC. |
| 11578 |
* c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12): |
| 11579 |
New macros. |
| 11580 |
* c-common.h (c_finish_oacc_wait): New prototype. |
| 11581 |
* c-omp.c: Include "omp-low.h" and "gomp-constants.h". |
| 11582 |
(c_finish_oacc_wait): New function. |
| 11583 |
* c-pragma.c (oacc_pragmas): New variable. |
| 11584 |
(c_pp_lookup_pragma, init_pragma): Handle it. |
| 11585 |
* c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE, |
| 11586 |
PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA, |
| 11587 |
PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL, |
| 11588 |
PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT. |
| 11589 |
(enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC, |
| 11590 |
PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE, |
| 11591 |
PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN, |
| 11592 |
PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE, |
| 11593 |
PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE, |
| 11594 |
PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE, |
| 11595 |
PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST, |
| 11596 |
PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS, |
| 11597 |
PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT, |
| 11598 |
PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY, |
| 11599 |
PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN, |
| 11600 |
PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT, |
| 11601 |
PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE, |
| 11602 |
PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF, |
| 11603 |
PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR, |
| 11604 |
PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT, |
| 11605 |
PRAGMA_OACC_CLAUSE_WORKER. |
| 11606 |
|
| 11607 |
2015-01-14 Marcos Diaz <[email protected]> |
| 11608 |
|
| 11609 |
* c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__ |
| 11610 |
for the new option fstack-protector_explicit. |
| 11611 |
* c-common.c (c_common_attribute_table): Add stack_protect attribute. |
| 11612 |
(handle_stack_protect_attribute): New function. |
| 11613 |
|
| 11614 |
2015-01-13 Martin Uecker <[email protected]> |
| 11615 |
|
| 11616 |
* c.opt: New option -Warray-bounds=. |
| 11617 |
|
| 11618 |
2015-01-09 Michael Collison <[email protected]> |
| 11619 |
|
| 11620 |
* array-notation-common.c: Include hash-set.h, machmode.h, |
| 11621 |
vec.h, double-int.h, input.h, alias.h, symtab.h, options.h |
| 11622 |
fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h. |
| 11623 |
* c-ada-spec.c: Ditto. |
| 11624 |
* c-cilkplus.c: Ditto. |
| 11625 |
* c-common.c: Include input.h due to flattening of tree.h. |
| 11626 |
Define macro GCC_C_COMMON_C. |
| 11627 |
* c-common.h: Flatten tree.h header files into c-common.h. |
| 11628 |
Remove include of tree-core.h. |
| 11629 |
* c-cppbuiltin.c: Include hash-set.h, machmode.h, |
| 11630 |
vec.h, double-int.h, input.h, alias.h, symtab.h, options.h |
| 11631 |
fold-const.h, wide-int.h, and inchash.h due to |
| 11632 |
flattening of tree.h. |
| 11633 |
* c-dump.c: Ditto. |
| 11634 |
* c-format.c: Flatten tree.h header files into c-common.h. |
| 11635 |
* c-cppbuiltin.c: Include hash-set.h, machmode.h, |
| 11636 |
vec.h, double-int.h, input.h, alias.h, symtab.h, options.h |
| 11637 |
fold-const.h, wide-int.h, and inchash.h due to |
| 11638 |
flattening of tree.h. |
| 11639 |
* c-dump.c: Include hash-set.h, machmode.h, |
| 11640 |
vec.h, double-int.h, input.h, alias.h, symtab.h, options.h |
| 11641 |
fold-const.h, wide-int.h, and inchash.h due to |
| 11642 |
flattening of tree.h. |
| 11643 |
* c-format.c: Include hash-set.h, machmode.h, |
| 11644 |
vec.h, double-int.h, input.h, alias.h, symtab.h, options.h |
| 11645 |
fold-const.h, wide-int.h, inchash.h and real.h due to |
| 11646 |
flattening of tree.h. |
| 11647 |
* c-gimplify.c: Include hash-set.h, machmode.h, |
| 11648 |
vec.h, double-int.h, input.h, alias.h, symtab.h, options.h |
| 11649 |
fold-const.h, wide-int.h, and inchash.h due to |
| 11650 |
flattening of tree.h. |
| 11651 |
* cilk.c: Ditto. |
| 11652 |
* c-lex.c: Ditto. |
| 11653 |
* c-omp.c: Ditto. |
| 11654 |
* c-opts.c: Ditto. |
| 11655 |
* c-pch.c: Ditto. |
| 11656 |
* c-ppoutput.c: Ditto. |
| 11657 |
* c-pragma.c: Ditto. |
| 11658 |
* c-pretty-print.c: Ditto. |
| 11659 |
* c-semantics.c: Ditto. |
| 11660 |
* c-ubsan.c: Ditto. |
| 11661 |
* stub-objc.c: Ditto. |
| 11662 |
|
| 11663 |
2015-01-08 Jason Merrill <[email protected]> |
| 11664 |
|
| 11665 |
* c-ubsan.c (ubsan_maybe_instrument_array_ref): Use |
| 11666 |
do_ubsan_in_current_function. |
| 11667 |
(ubsan_maybe_instrument_reference_or_call): Likewise. |
| 11668 |
* c-ubsan.h: Declare it. |
| 11669 |
|
| 11670 |
2015-01-08 Mike Stump <[email protected]> |
| 11671 |
|
| 11672 |
* c-common.c (c_common_attribute_table): Add no_sanitize_thread. |
| 11673 |
|
| 11674 |
2015-01-07 Marek Polacek <[email protected]> |
| 11675 |
|
| 11676 |
PR c/64440 |
| 11677 |
* c-common.c (c_fully_fold_internal): Warn for division and modulo |
| 11678 |
if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero. |
| 11679 |
|
| 11680 |
2015-01-05 Trevor Saunders <[email protected]> |
| 11681 |
|
| 11682 |
PR c++/31397 |
| 11683 |
* c.opt (Wsuggest-override): New option. |
| 11684 |
|
| 11685 |
2015-01-05 Jakub Jelinek <[email protected]> |
| 11686 |
|
| 11687 |
Update copyright years. |
| 11688 |
|
| 11689 |
2015-01-05 Marek Polacek <[email protected]> |
| 11690 |
|
| 11691 |
PR c/64423 |
| 11692 |
* c-common.c (warn_array_subscript_with_type_char): Add location_t |
| 11693 |
parameter. Use it. |
| 11694 |
* c-common.h (warn_array_subscript_with_type_char): Update |
| 11695 |
declaration. |
| 11696 |
|
| 11697 |
2014-12-20 Edward Smith-Rowland <[email protected]> |
| 11698 |
|
| 11699 |
* c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro. |
| 11700 |
Control macro with flag_sized_deallocation. |
| 11701 |
|
| 11702 |
2014-12-20 Martin Uecker <[email protected]> |
| 11703 |
|
| 11704 |
* c.opt (Wdiscarded-array-qualifiers): New option. |
| 11705 |
|
| 11706 |
2014-12-19 Jakub Jelinek <[email protected]> |
| 11707 |
|
| 11708 |
PR preprocessor/63831 |
| 11709 |
* c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute |
| 11710 |
and __has_cpp_attribute here. |
| 11711 |
* c-ppoutput.c (init_pp_output): Set cb->has_attribute to |
| 11712 |
c_common_has_attribute. |
| 11713 |
* c-common.h (c_common_has_attribute): New prototype. |
| 11714 |
* c-lex.c (init_c_lex): Set cb->has_attribute to |
| 11715 |
c_common_has_attribute instead of cb_has_attribute. |
| 11716 |
(get_token_no_padding): New function. |
| 11717 |
(cb_has_attribute): Renamed to ... |
| 11718 |
(c_common_has_attribute): ... this. No longer static. Use |
| 11719 |
get_token_no_padding, require ()s, don't build TREE_LIST |
| 11720 |
unnecessarily, fix up formatting, adjust diagnostics, call |
| 11721 |
init_attributes. |
| 11722 |
|
| 11723 |
2014-12-15 Jason Merrill <[email protected]> |
| 11724 |
|
| 11725 |
* c.opt (-fsized-deallocation, -Wc++14-compat): New. |
| 11726 |
(-Wsized-deallocation): New. |
| 11727 |
* c-opts.c (c_common_post_options): -fsized-deallocation defaults |
| 11728 |
to on in C++14 and up. |
| 11729 |
|
| 11730 |
2014-12-11 Jason Merrill <[email protected]> |
| 11731 |
|
| 11732 |
* c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr. |
| 11733 |
|
| 11734 |
* c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if |
| 11735 |
we aren't complaining about VLAs. |
| 11736 |
|
| 11737 |
2014-12-06 Marek Polacek <[email protected]> |
| 11738 |
|
| 11739 |
PR tree-optimization/64183 |
| 11740 |
* c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a |
| 11741 |
shift-expression if it is integer_type_node. Use types_compatible_p. |
| 11742 |
|
| 11743 |
2014-11-29 Jakub Jelinek <[email protected]> |
| 11744 |
|
| 11745 |
* c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL |
| 11746 |
last argument from create_tmp_var_raw and create_tmp_var calls. |
| 11747 |
* cilk.c (gimplify_cilk_spawn): Likewise. |
| 11748 |
* c-omp.c (c_finish_omp_atomic): Likewise. |
| 11749 |
|
| 11750 |
2014-11-28 Marek Polacek <[email protected]> |
| 11751 |
|
| 11752 |
* c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR |
| 11753 |
instead of unsigned_type_node. |
| 11754 |
|
| 11755 |
2014-11-28 Marek Polacek <[email protected]> |
| 11756 |
|
| 11757 |
PR c/63862 |
| 11758 |
* c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR |
| 11759 |
to op1_utype. |
| 11760 |
* c-gimplify.c (c_gimplify_expr): Convert right operand of a shift |
| 11761 |
expression to unsigned_type_node. |
| 11762 |
|
| 11763 |
2014-11-20 Mark Wielaard <[email protected]> |
| 11764 |
|
| 11765 |
PR debug/38757 |
| 11766 |
* c-opts.c (set_std_c89): Set lang_hooks.name. |
| 11767 |
(set_std_c99): Likewise. |
| 11768 |
(set_std_c11): Likewise. |
| 11769 |
(set_std_cxx98): Likewise. |
| 11770 |
(set_std_cxx11): Likewise. |
| 11771 |
(set_std_cxx14): Likewise. |
| 11772 |
(set_std_cxx1z): Likewise. |
| 11773 |
|
| 11774 |
2014-11-21 Jakub Jelinek <[email protected]> |
| 11775 |
|
| 11776 |
PR target/63764 |
| 11777 |
* c-common.h (convert_vector_to_pointer_for_subscript): Change |
| 11778 |
return type to bool. |
| 11779 |
* c-common.c: Include gimple-expr.h. |
| 11780 |
(convert_vector_to_pointer_for_subscript): Change return type to |
| 11781 |
bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true |
| 11782 |
and copy it into a TARGET_EXPR and use that instead of *vecp |
| 11783 |
directly. |
| 11784 |
|
| 11785 |
2014-11-19 David Malcolm <[email protected]> |
| 11786 |
|
| 11787 |
Merger of git branch "gimple-classes-v2-option-3". |
| 11788 |
* ChangeLog.gimple-classes: New. |
| 11789 |
* c-gimplify.c (add_block_to_enclosing): Strengthen local "stack" |
| 11790 |
from being just a vec<gimple> to a vec<gbind *>. |
| 11791 |
|
| 11792 |
2014-11-18 Jakub Jelinek <[email protected]> |
| 11793 |
|
| 11794 |
PR sanitizer/63813 |
| 11795 |
* c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type |
| 11796 |
argument to ptype, set type to TREE_TYPE (ptype). Don't call |
| 11797 |
get_pointer_alignment for non-pointers. Use ptype, or if it is |
| 11798 |
reference type, corresponding pointer type, as type of kind |
| 11799 |
argument. |
| 11800 |
(ubsan_maybe_instrument_reference, |
| 11801 |
ubsan_maybe_instrument_member_call): Adjust callers. |
| 11802 |
|
| 11803 |
2014-11-15 Marek Polacek <[email protected]> |
| 11804 |
|
| 11805 |
PR middle-end/63884 |
| 11806 |
* array-notation-common.c (is_sec_implicit_index_fn): Return false |
| 11807 |
for NULL fndecl. |
| 11808 |
(extract_array_notation_exprs): Return for NULL node. |
| 11809 |
|
| 11810 |
2014-11-12 Joseph Myers <[email protected]> |
| 11811 |
|
| 11812 |
* c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and |
| 11813 |
undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state. |
| 11814 |
|
| 11815 |
2014-11-12 Jakub Jelinek <[email protected]> |
| 11816 |
|
| 11817 |
PR c/59708 |
| 11818 |
* c-common.c (check_builtin_function_arguments): Handle |
| 11819 |
BUILT_IN_{ADD,SUB,MUL}_OVERFLOW. |
| 11820 |
|
| 11821 |
2014-11-10 Andi Kleen <[email protected]> |
| 11822 |
|
| 11823 |
PR c/60804 |
| 11824 |
* c-common.h (check_no_cilk): Declare. |
| 11825 |
* cilk.c (get_error_location): New function. |
| 11826 |
(check_no_cilk): Dito. |
| 11827 |
|
| 11828 |
2014-11-10 Andi Kleen <[email protected]> |
| 11829 |
|
| 11830 |
* cilk.c (recognize_spawn): Use expression location |
| 11831 |
for error message. |
| 11832 |
|
| 11833 |
2014-11-10 Paolo Carlini <[email protected]> |
| 11834 |
|
| 11835 |
* c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add. |
| 11836 |
|
| 11837 |
2014-11-10 Edward Smith-Rowland <[email protected]> |
| 11838 |
|
| 11839 |
* c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros; |
| 11840 |
(__cpp_rtti, __cpp_exceptions): New macros for C++98; |
| 11841 |
(__cpp_range_based_for, __cpp_initializer_lists, |
| 11842 |
__cpp_delegating_constructors, __cpp_nsdmi, |
| 11843 |
__cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros |
| 11844 |
for C++11; (__cpp_attribute_deprecated): Remove in favor of |
| 11845 |
__has_cpp_attribute. |
| 11846 |
* c-lex.c (cb_has_attribute): New callback CPP function; |
| 11847 |
(init_c_lex): Set has_attribute callback. |
| 11848 |
|
| 11849 |
2014-11-04 Richard Biener <[email protected]> |
| 11850 |
|
| 11851 |
* c-common.c (shorten_compare): Do not shorten mixed |
| 11852 |
DFP and non-DFP compares. |
| 11853 |
|
| 11854 |
2014-11-01 Edward Smith-Rowland <[email protected]> |
| 11855 |
|
| 11856 |
* g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests. |
| 11857 |
* g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test. |
| 11858 |
Commentary and rearrangement of tests. |
| 11859 |
* g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test. |
| 11860 |
Commentary and rearrangement of tests. |
| 11861 |
* g++.dg/cpp1y/feat-cxx98-neg.C: Ditto. |
| 11862 |
* g++.dg/cpp1y/feat-cxx98.C: Commentary. |
| 11863 |
|
| 11864 |
2014-10-29 Richard Sandiford <[email protected]> |
| 11865 |
|
| 11866 |
* c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant |
| 11867 |
enum from machine_mode. |
| 11868 |
|
| 11869 |
2014-10-28 Andrew MacLeod <[email protected]> |
| 11870 |
|
| 11871 |
* c-common.c: Adjust include files. |
| 11872 |
* c-gimplify.c: Ditto. |
| 11873 |
* cilk.c: Ditto. |
| 11874 |
* c-pragma.c: Ditto. |
| 11875 |
* c-ubsan.c: Ditto. |
| 11876 |
|
| 11877 |
2014-10-27 Andrew MacLeod <[email protected]> |
| 11878 |
|
| 11879 |
* c-gimplify.c: Adjust include files. |
| 11880 |
|
| 11881 |
2014-10-26 Manuel López-Ibáñez <[email protected]> |
| 11882 |
|
| 11883 |
PR c++/53061 |
| 11884 |
* c-opts.c (c_common_diagnostics_set_defaults): Renamed from |
| 11885 |
c_common_initialize_diagnostics. |
| 11886 |
* c-common.h: Likewise. |
| 11887 |
|
| 11888 |
2014-10-24 Marek Polacek <[email protected]> |
| 11889 |
|
| 11890 |
PR c/56980 |
| 11891 |
* c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't |
| 11892 |
print "struct"/"union"/"enum" for typedefed names. |
| 11893 |
|
| 11894 |
2014-10-23 Marek Polacek <[email protected]> |
| 11895 |
|
| 11896 |
* c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR |
| 11897 |
in unsigned type. |
| 11898 |
|
| 11899 |
2014-10-22 Jakub Jelinek <[email protected]> |
| 11900 |
Yury Gribov <[email protected]> |
| 11901 |
|
| 11902 |
* c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift, |
| 11903 |
ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask |
| 11904 |
instead of flag_sanitize_recover as bool flag. |
| 11905 |
|
| 11906 |
2014-10-21 Kirill Yukhin <[email protected]> |
| 11907 |
|
| 11908 |
* cilk.c: Revert previous change. |
| 11909 |
|
| 11910 |
2014-10-20 Igor Zamyatin <[email protected]> |
| 11911 |
|
| 11912 |
PR c/63307 |
| 11913 |
* cilk.c: Include vec.h. |
| 11914 |
(struct cilk_decls): New structure. |
| 11915 |
(wrapper_parm_cb): Split this function to... |
| 11916 |
(fill_decls_vec): ...this... |
| 11917 |
(create_parm_list): ...and this. |
| 11918 |
(compare_decls): New function. |
| 11919 |
(for_local_cb): Remove. |
| 11920 |
(wrapper_local_cb): Ditto. |
| 11921 |
(build_wrapper_type): For now first traverse and fill vector of |
| 11922 |
declarations then sort it and then deal with sorted vector. |
| 11923 |
(cilk_outline): Ditto. |
| 11924 |
(declare_one_free_variable): Ditto. |
| 11925 |
|
| 11926 |
2014-10-17 Marek Polacek <[email protected]> |
| 11927 |
|
| 11928 |
* c-opts.c (c_common_post_options): Set warn_implicit_int. |
| 11929 |
* c.opt (Wimplicit-int): Initialize to -1. |
| 11930 |
|
| 11931 |
2014-10-16 Andrew MacLeod <[email protected]> |
| 11932 |
|
| 11933 |
* c-pragma.c: Adjust include files. |
| 11934 |
* c-semantics.c: Likewise. |
| 11935 |
|
| 11936 |
2014-10-16 DJ Delorie <[email protected]> |
| 11937 |
|
| 11938 |
* c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are |
| 11939 |
multiples of bytes. |
| 11940 |
|
| 11941 |
2014-10-14 Jason Merrill <[email protected]> |
| 11942 |
|
| 11943 |
PR c++/63455 |
| 11944 |
* c-common.h (CPP_PREPARSED_EXPR): New. |
| 11945 |
(N_CP_TTYPES): Adjust. |
| 11946 |
|
| 11947 |
2014-10-15 Marek Polacek <[email protected]> |
| 11948 |
|
| 11949 |
* c-opts.c (c_common_init_options): Make -std=gnu11 the default for C. |
| 11950 |
|
| 11951 |
2014-10-14 DJ Delorie <[email protected]> |
| 11952 |
|
| 11953 |
* c-pretty-print.c (pp_c_integer_constant): Check for all __intN |
| 11954 |
types, not just __int128. |
| 11955 |
* c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN |
| 11956 |
types, not just __int128. |
| 11957 |
(cpp_atomic_builtins): Round pointer sizes up. |
| 11958 |
(type_suffix): Use type precision, not specific types. |
| 11959 |
* c-common.c (c_common_reswords): Remove __int128 special case. |
| 11960 |
(c_common_type_for_size): Check for all __intN types, not just |
| 11961 |
__int128. |
| 11962 |
(c_common_type_for_mode): Likewise. |
| 11963 |
(c_common_signed_or_unsigned_type): Likewise. |
| 11964 |
(c_build_bitfield_integer_type): Likewise. |
| 11965 |
(c_common_nodes_and_builtins): Likewise. |
| 11966 |
(keyword_begins_type_specifier): Likewise. |
| 11967 |
* c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all |
| 11968 |
__intN variants. |
| 11969 |
|
| 11970 |
2014-10-12 Trevor Saunders <[email protected]> |
| 11971 |
|
| 11972 |
* c-common.c: Use hash_table instead of hashtab. |
| 11973 |
|
| 11974 |
2014-10-06 Edward Smith-Rowland <[email protected]> |
| 11975 |
|
| 11976 |
* c-cppbuiltin.c: Move __cpp_attribute_deprecated to the |
| 11977 |
C++11 section. |
| 11978 |
|
| 11979 |
2014-10-03 Marc Glisse <[email protected]> |
| 11980 |
|
| 11981 |
PR c++/54427 |
| 11982 |
PR c++/57198 |
| 11983 |
PR c++/58845 |
| 11984 |
* c-common.c (warn_logical_operator): Punt for vectors. |
| 11985 |
|
| 11986 |
2014-10-01 Edward Smith-Rowland <[email protected]> |
| 11987 |
|
| 11988 |
Implement SD-6: SG10 Feature Test Recommendations |
| 11989 |
* c-cppbuiltin.c (c_cpp_builtins()): Define language feature |
| 11990 |
macros and the __has_header macro. |
| 11991 |
|
| 11992 |
2014-09-30 Jason Merrill <[email protected]> |
| 11993 |
|
| 11994 |
* c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and |
| 11995 |
RID_IS_TRIVIALLY_CONSTRUCTIBLE. |
| 11996 |
* c-common.c (c_common_reswords): Add __is_trivially_copyable. |
| 11997 |
|
| 11998 |
* c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE. |
| 11999 |
* c-common.c (c_common_reswords): Add __is_trivially_copyable. |
| 12000 |
|
| 12001 |
* c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO. |
| 12002 |
* c-common.c (c_common_reswords): Remove __is_convertible_to. |
| 12003 |
|
| 12004 |
2014-09-24 Marek Polacek <[email protected]> |
| 12005 |
|
| 12006 |
PR c/61405 |
| 12007 |
PR c/53874 |
| 12008 |
* c-common.h (struct c_common_resword): Don't define CPP_KEYWORD. |
| 12009 |
|
| 12010 |
2014-09-23 Andi Kleen <[email protected]> |
| 12011 |
|
| 12012 |
* c-common.c (handle_no_reorder_attribute): New function. |
| 12013 |
(c_common_attribute_table): Add no_reorder attribute. |
| 12014 |
|
| 12015 |
2014-09-22 Joseph Myers <[email protected]> |
| 12016 |
|
| 12017 |
* c-cppbuiltin.c (c_cpp_builtins): Define |
| 12018 |
__LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point |
| 12019 |
modes. |
| 12020 |
|
| 12021 |
2014-09-18 Joseph Myers <[email protected]> |
| 12022 |
|
| 12023 |
* c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__ |
| 12024 |
for supported floating-point modes. |
| 12025 |
|
| 12026 |
2014-09-15 Manuel López-Ibáñez <[email protected]> |
| 12027 |
|
| 12028 |
* c.opt (Wpsabi): Use LangEnabledBy. |
| 12029 |
* c-opts.c (c_common_handle_option): Do not handle here. |
| 12030 |
|
| 12031 |
2014-09-12 Joseph Myers <[email protected]> |
| 12032 |
|
| 12033 |
* c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__ |
| 12034 |
macros for floating-point modes. |
| 12035 |
|
| 12036 |
2014-09-11 Marc Glisse <[email protected]> |
| 12037 |
|
| 12038 |
PR target/58757 |
| 12039 |
* c-cppbuiltin.c (builtin_define_float_constants): Correct |
| 12040 |
__*_DENORM_MIN__ without denormals. |
| 12041 |
|
| 12042 |
2014-09-10 Jakub Jelinek <[email protected]> |
| 12043 |
|
| 12044 |
* c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift, |
| 12045 |
ubsan_instrument_vla, ubsan_instrument_return): Adjust |
| 12046 |
ubsan_create_data callers. |
| 12047 |
(ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if |
| 12048 |
index is constant or BIT_AND_EXPR with constant mask and is |
| 12049 |
small enough for the bound. |
| 12050 |
* c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of |
| 12051 |
ARRAY_REF, make sure the inner ARRAY_REF is not walked again. |
| 12052 |
|
| 12053 |
2014-09-09 Manuel López-Ibáñez <[email protected]> |
| 12054 |
|
| 12055 |
* c.opt: Add CppReason to various flags. |
| 12056 |
(Wdate-time): Re-sort. |
| 12057 |
* c-common.c: Include c-common.h earlier. |
| 12058 |
(struct reason_option_codes_t): Delete. |
| 12059 |
(c_option_controlling_cpp_error): Prefix global type and struct |
| 12060 |
with cpp_. |
| 12061 |
|
| 12062 |
2014-09-09 Manuel López-Ibáñez <[email protected]> |
| 12063 |
|
| 12064 |
* c.opt (Wnormalized): New. |
| 12065 |
(Wnormalized=): Use Enum and Reject Negative. |
| 12066 |
* c-opts.c (c_common_handle_option): Do not handle Wnormalized here. |
| 12067 |
|
| 12068 |
2014-09-08 Joseph Myers <[email protected]> |
| 12069 |
|
| 12070 |
* c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa |
| 12071 |
digits of floating-point modes if -fbuilding-libgcc. |
| 12072 |
|
| 12073 |
2014-09-05 Joseph Myers <[email protected]> |
| 12074 |
|
| 12075 |
* c-cppbuiltin.c (c_cpp_builtins): Also define |
| 12076 |
__LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__, |
| 12077 |
__LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__, |
| 12078 |
__LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__, |
| 12079 |
__LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__, |
| 12080 |
__LIBGCC_INIT_ARRAY_SECTION_ASM_OP__, |
| 12081 |
__LIBGCC_STACK_GROWS_DOWNWARD__, |
| 12082 |
__LIBGCC_DONT_USE_BUILTIN_SETJMP__, |
| 12083 |
__LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__, |
| 12084 |
__LIBGCC_DWARF_FRAME_REGISTERS__, |
| 12085 |
__LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__, |
| 12086 |
__LIBGCC_STACK_POINTER_REGNUM__ and |
| 12087 |
__LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc. |
| 12088 |
(builtin_define_with_value): Handle backslash-escaping in string |
| 12089 |
macro values. |
| 12090 |
|
| 12091 |
2014-09-05 Richard Biener <[email protected]> |
| 12092 |
|
| 12093 |
PR middle-end/63148 |
| 12094 |
* c-format.c (check_format_arg): Properly handle |
| 12095 |
effectively signed POINTER_PLUS_EXPR offset. |
| 12096 |
|
| 12097 |
2014-09-04 Manuel López-Ibáñez <[email protected]> |
| 12098 |
|
| 12099 |
* c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels, |
| 12100 |
Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic, |
| 12101 |
(Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var |
| 12102 |
and Init. |
| 12103 |
* c-opts.c (c_common_handle_option): Do not handle here. |
| 12104 |
(sanitize_cpp_opts): Likewise. |
| 12105 |
* c-common.c (struct reason_option_codes_t): Handle |
| 12106 |
CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC. |
| 12107 |
|
| 12108 |
2014-09-03 Marek Polacek <[email protected]> |
| 12109 |
|
| 12110 |
* c.opt (Wlogical-not-parentheses): Enable by -Wall. |
| 12111 |
|
| 12112 |
2014-09-02 Jakub Jelinek <[email protected]> |
| 12113 |
Balaji V. Iyer <[email protected]> |
| 12114 |
Igor Zamyatin <[email protected]> |
| 12115 |
|
| 12116 |
* c-cilkplus.c (cilk_for_number_of_iterations): New function. |
| 12117 |
* c-common.c (c_common_reswords): Added _Cilk_for. |
| 12118 |
* c-common.h (enum rid): Added RID_CILK_FOR. |
| 12119 |
(cilk_for_number_of_iterations): Add declaration. |
| 12120 |
* c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and |
| 12121 |
CILK_FOR. |
| 12122 |
* c-pragma.c (init_pragma): Register "grainsize" pragma. |
| 12123 |
* c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE. |
| 12124 |
|
| 12125 |
2014-08-29 Manuel López-Ibáñez <[email protected]> |
| 12126 |
|
| 12127 |
* c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels, |
| 12128 |
Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs, |
| 12129 |
Wundef): Use CPP, Var and Init. |
| 12130 |
* c-opts.c (c_common_handle_option): Do not handle the above flags here. |
| 12131 |
|
| 12132 |
2014-08-29 Manuel López-Ibáñez <[email protected]> |
| 12133 |
|
| 12134 |
* c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init. |
| 12135 |
* c-opts.c (c_common_handle_option): Do not handle here. |
| 12136 |
|
| 12137 |
2014-08-25 Jason Merrill <[email protected]> |
| 12138 |
|
| 12139 |
* c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for |
| 12140 |
-std=c++14 and -std=gnu++14, rather than the reverse. |
| 12141 |
* c-opts.c (c_common_handle_option): Change OPT_std_c__1y and |
| 12142 |
OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14. |
| 12143 |
* c-common.h (cxx_dialect): Remove cxx1y. |
| 12144 |
|
| 12145 |
2014-08-23 Edward Smith-Rowland <[email protected]> |
| 12146 |
|
| 12147 |
* c-common.h (enum cxx_dialect): Add cxx14. |
| 12148 |
* c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14. |
| 12149 |
* c-ubsan.c (ubsan_instrument_shift): Change comment and logic from |
| 12150 |
cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11. |
| 12151 |
|
| 12152 |
2014-08-22 Jason Merrill <[email protected]> |
| 12153 |
|
| 12154 |
* c.opt (std=gnu++17): Fix alias. |
| 12155 |
|
| 12156 |
2014-08-22 Marek Polacek <[email protected]> |
| 12157 |
|
| 12158 |
PR c++/62199 |
| 12159 |
* c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't |
| 12160 |
check for vector types. Drop LHS argument. |
| 12161 |
* c-common.h (warn_logical_not_parentheses): Adjust. |
| 12162 |
|
| 12163 |
2014-08-22 Manuel López-Ibáñez <[email protected]> |
| 12164 |
|
| 12165 |
* c.opt (Wcomment): Use CPP, Var and LangEnabledBy. |
| 12166 |
(Wmultichar): Likewise. |
| 12167 |
(Wdate-time): Use C-family languages instead of Common. Use CPP |
| 12168 |
and Var. |
| 12169 |
* c-opts.c (c_common_handle_option): Do not handle the above |
| 12170 |
options here. |
| 12171 |
(sanitize_cpp_opts): Likewise. |
| 12172 |
|
| 12173 |
2014-08-21 Manuel López-Ibáñez <[email protected]> |
| 12174 |
|
| 12175 |
PR fortran/44054 |
| 12176 |
* c-opts.c: Include tree-diagnostics.h. |
| 12177 |
(c_diagnostic_finalizer): New. |
| 12178 |
(c_common_initialize_diagnostics): Use it. |
| 12179 |
|
| 12180 |
2014-08-20 Manuel López-Ibáñez <[email protected]> |
| 12181 |
|
| 12182 |
PR preprocessor/51303 |
| 12183 |
* c-common.c (struct reason_option_codes_t option_codes): |
| 12184 |
Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically. |
| 12185 |
|
| 12186 |
2014-08-20 Manuel López-Ibáñez <[email protected]> |
| 12187 |
|
| 12188 |
PR c/60975 |
| 12189 |
PR c/53063 |
| 12190 |
* c.opt (Wvariadic-macros): Use CPP and LangEnabledBy. |
| 12191 |
* c-opts.c (c_common_handle_option): Call cpp_handle_option_auto. |
| 12192 |
(c_common_post_options): Call init_global_opts_from_cpp. |
| 12193 |
(sanitize_cpp_opts): Do not handle Wvariadic-macros here. |
| 12194 |
|
| 12195 |
2014-08-19 Marek Polacek <[email protected]> |
| 12196 |
|
| 12197 |
PR c++/62153 |
| 12198 |
* c-common.c (maybe_warn_bool_compare): New function. |
| 12199 |
* c-common.h (maybe_warn_bool_compare): Declare. |
| 12200 |
* c.opt (Wbool-compare): New option. |
| 12201 |
|
| 12202 |
2014-08-19 Marek Polacek <[email protected]> |
| 12203 |
|
| 12204 |
* c.opt (Wc99-c11-compat): New option. |
| 12205 |
|
| 12206 |
2014-08-19 Marek Polacek <[email protected]> |
| 12207 |
|
| 12208 |
* c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according |
| 12209 |
to warn_c90_c99_compat. |
| 12210 |
* c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize |
| 12211 |
to -1. |
| 12212 |
|
| 12213 |
2014-08-19 Manuel López-Ibáñez <[email protected]> |
| 12214 |
Steven Bosscher <[email protected]> |
| 12215 |
|
| 12216 |
PR c/52952 |
| 12217 |
* c-format.c: Add extra_arg_loc and format_string_loc to struct |
| 12218 |
format_check_results. |
| 12219 |
(check_function_format): Use true and add comment for boolean |
| 12220 |
argument. |
| 12221 |
(finish_dollar_format_checking): Use explicit location when warning. |
| 12222 |
(check_format_info): Likewise. |
| 12223 |
(check_format_arg): Set extra_arg_loc and format_string_loc. |
| 12224 |
(check_format_info_main): Use explicit location when warning. |
| 12225 |
(check_format_types): Pass explicit location. |
| 12226 |
(format_type_warning): Likewise. |
| 12227 |
|
| 12228 |
2014-08-15 Manuel López-Ibáñez <[email protected]> |
| 12229 |
|
| 12230 |
PR fortran/44054 |
| 12231 |
* c-format.c: Handle Fortran flags. |
| 12232 |
|
| 12233 |
2014-08-12 Igor Zamyatin <[email protected]> |
| 12234 |
|
| 12235 |
PR other/61962 |
| 12236 |
* array-notation-common.c (find_rank): Added handling for other |
| 12237 |
types of references. |
| 12238 |
|
| 12239 |
2014-08-10 Marek Polacek <[email protected]> |
| 12240 |
|
| 12241 |
PR c/51849 |
| 12242 |
* c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp. |
| 12243 |
* c.opt (Wc90-c99-compat): Add option. |
| 12244 |
|
| 12245 |
2014-08-07 Trevor Saunders <[email protected]> |
| 12246 |
|
| 12247 |
* c-gimplify.c, cilk.c: Remove includes of pointer-set.h. |
| 12248 |
|
| 12249 |
2014-08-03 Marek Polacek <[email protected]> |
| 12250 |
|
| 12251 |
* c-common.c (check_case_value): Add location_t parameter. Use it. |
| 12252 |
(c_add_case_label): Pass loc to check_case_value. |
| 12253 |
|
| 12254 |
2014-08-02 Trevor Saunders <[email protected]> |
| 12255 |
|
| 12256 |
* cilk.c: Use hash_map instead of pointer_map. |
| 12257 |
|
| 12258 |
2014-08-02 Trevor Saunders <[email protected]> |
| 12259 |
|
| 12260 |
* c-gimplify.c: Use hash_set instead of pointer_set. |
| 12261 |
|
| 12262 |
2014-08-01 Igor Zamyatin <[email protected]> |
| 12263 |
|
| 12264 |
PR middle-end/61455 |
| 12265 |
* array-notation-common.c (extract_array_notation_exprs): Handling |
| 12266 |
of DECL_EXPR added. |
| 12267 |
|
| 12268 |
2014-08-01 Jakub Jelinek <[email protected]> |
| 12269 |
|
| 12270 |
* c-common.h (min_align_of_type): Removed prototype. |
| 12271 |
* c-common.c (min_align_of_type): Removed. |
| 12272 |
* c-ubsan.h (ubsan_maybe_instrument_reference, |
| 12273 |
ubsan_maybe_instrument_member_call): New prototypes. |
| 12274 |
* c-ubsan.c: Include stor-layout.h and builtins.h. |
| 12275 |
(ubsan_maybe_instrument_reference_or_call, |
| 12276 |
ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New |
| 12277 |
functions. |
| 12278 |
|
| 12279 |
2014-07-31 Marc Glisse <[email protected]> |
| 12280 |
|
| 12281 |
PR c++/60517 |
| 12282 |
* c.opt (-Wreturn-local-addr): Move to common.opt. |
| 12283 |
|
| 12284 |
2014-07-30 Jason Merrill <[email protected]> |
| 12285 |
|
| 12286 |
PR c++/61659 |
| 12287 |
PR c++/61687 |
| 12288 |
Revert: |
| 12289 |
* c.opt (-fuse-all-virtuals): New. |
| 12290 |
|
| 12291 |
2014-07-30 Tom Tromey <[email protected]> |
| 12292 |
|
| 12293 |
PR c/59855 |
| 12294 |
* c.opt (Wdesignated-init): New option. |
| 12295 |
* c-common.c (c_common_attribute_table): Add "designated_init". |
| 12296 |
(handle_designated_init): New function. |
| 12297 |
|
| 12298 |
2014-07-24 Marek Polacek <[email protected]> |
| 12299 |
|
| 12300 |
PR c/57653 |
| 12301 |
* c-opts.c (c_finish_options): If -imacros is in effect, return. |
| 12302 |
|
| 12303 |
2014-07-16 Dodji Seketeli <[email protected]> |
| 12304 |
|
| 12305 |
PR preprocessor/60723 - missing system-ness marks for macro tokens |
| 12306 |
* c-ppoutput.c (struct print::prev_was_system_token): New data |
| 12307 |
member. |
| 12308 |
(init_pp_output): Initialize it. |
| 12309 |
(maybe_print_line_1, maybe_print_line, print_line_1, print_line) |
| 12310 |
(do_line_change): Return a flag saying if a line marker was |
| 12311 |
emitted or not. |
| 12312 |
(scan_translation_unit): Detect if the system-ness of the token we |
| 12313 |
are about to emit is different from the one of the previously |
| 12314 |
emitted token. If so, emit a line marker. Avoid emitting useless |
| 12315 |
adjacent line markers. Avoid emitting line markers for tokens |
| 12316 |
originating from the expansion of built-in macros. |
| 12317 |
(scan_translation_unit_directives_only): Adjust. |
| 12318 |
|
| 12319 |
2014-07-15 Marek Polacek <[email protected]> |
| 12320 |
|
| 12321 |
* c-ubsan.c (ubsan_instrument_bounds): Don't instrument if |
| 12322 |
TYPE_MAX_VALUE is NULL. |
| 12323 |
|
| 12324 |
2014-07-14 Jakub Jelinek <[email protected]> |
| 12325 |
|
| 12326 |
PR middle-end/61294 |
| 12327 |
* c.opt (Wmemset-transposed-args): New warning. |
| 12328 |
|
| 12329 |
2014-07-10 Jason Merrill <[email protected]> |
| 12330 |
|
| 12331 |
PR c++/61659 |
| 12332 |
PR c++/61687 |
| 12333 |
* c.opt (-fuse-all-virtuals): New. |
| 12334 |
|
| 12335 |
2014-07-09 Richard Biener <[email protected]> |
| 12336 |
|
| 12337 |
PR c-family/61741 |
| 12338 |
* c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions |
| 12339 |
using unsigned arithmetic if overflow does not wrap instead of |
| 12340 |
if overflow is undefined. |
| 12341 |
|
| 12342 |
2014-07-06 Marek Polacek <[email protected]> |
| 12343 |
|
| 12344 |
PR c/6940 |
| 12345 |
* c.opt (Wsizeof-array-argument): New option. |
| 12346 |
|
| 12347 |
2014-07-03 Jakub Jelinek <[email protected]> |
| 12348 |
|
| 12349 |
* c-ada-spec.c (dump_ada_nodes): Don't call qsort if |
| 12350 |
comments->count <= 1, as comments->entries might be NULL. |
| 12351 |
|
| 12352 |
2014-07-01 Marek Polacek <[email protected]> |
| 12353 |
|
| 12354 |
* c.opt (Wint-conversion): New option. |
| 12355 |
|
| 12356 |
2014-07-01 Marek Polacek <[email protected]> |
| 12357 |
|
| 12358 |
PR c/58286 |
| 12359 |
* c.opt (Wincompatible-pointer-types): New option. |
| 12360 |
|
| 12361 |
2014-06-30 Paolo Carlini <[email protected]> |
| 12362 |
|
| 12363 |
PR c++/51400 |
| 12364 |
* c-common.c (handle_noreturn_attribute, handle_const_attribute): |
| 12365 |
Do not discard TYPE_QUALS of type. |
| 12366 |
|
| 12367 |
2014-06-26 Jason Merrill <[email protected]> |
| 12368 |
|
| 12369 |
* c-common.h (enum cxx_dialect): Add cxx1z. |
| 12370 |
* c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New. |
| 12371 |
* c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it. |
| 12372 |
|
| 12373 |
2014-06-26 Teresa Johnson <[email protected]> |
| 12374 |
|
| 12375 |
* c-common.h (get_dump_info): Declare. |
| 12376 |
* c-gimplify.c (c_genericize): Use saved dump files. |
| 12377 |
* c-opts.c (c_common_parse_file): Begin and end dumps |
| 12378 |
once around parsing invocation. |
| 12379 |
(get_dump_info): New function. |
| 12380 |
|
| 12381 |
2014-06-23 Marek Polacek <[email protected]> |
| 12382 |
Andrew MacLeod <[email protected]> |
| 12383 |
|
| 12384 |
PR c/61553 |
| 12385 |
* c-common.c (get_atomic_generic_size): Don't segfault if the |
| 12386 |
type doesn't have a size. |
| 12387 |
|
| 12388 |
2014-06-20 Marek Polacek <[email protected]> |
| 12389 |
|
| 12390 |
* c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h". |
| 12391 |
(ubsan_walk_array_refs_r): New function. |
| 12392 |
(c_genericize): Instrument array bounds. |
| 12393 |
* c-ubsan.c: Include "internal-fn.h". |
| 12394 |
(ubsan_instrument_division): Mark instrumented arrays as having |
| 12395 |
side effects. Adjust ubsan_type_descriptor call. |
| 12396 |
(ubsan_instrument_shift): Likewise. |
| 12397 |
(ubsan_instrument_vla): Adjust ubsan_type_descriptor call. |
| 12398 |
(ubsan_instrument_bounds): New function. |
| 12399 |
(ubsan_array_ref_instrumented_p): New function. |
| 12400 |
(ubsan_maybe_instrument_array_ref): New function. |
| 12401 |
* c-ubsan.h (ubsan_instrument_bounds): Declare. |
| 12402 |
(ubsan_array_ref_instrumented_p): Declare. |
| 12403 |
(ubsan_maybe_instrument_array_ref): Declare. |
| 12404 |
|
| 12405 |
2014-06-20 Hale Wang <[email protected]> |
| 12406 |
|
| 12407 |
PR lto/61123 |
| 12408 |
* c.opt (fshort-enums): Add to LTO. |
| 12409 |
* c.opt (fshort-wchar): Likewise. |
| 12410 |
|
| 12411 |
2014-06-16 Marek Polacek <[email protected]> |
| 12412 |
|
| 12413 |
PR c/60439 |
| 12414 |
* c.opt (Wswitch-bool): Add Var. |
| 12415 |
|
| 12416 |
2014-06-12 Jakub Jelinek <[email protected]> |
| 12417 |
|
| 12418 |
PR middle-end/61486 |
| 12419 |
* c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in |
| 12420 |
#pragma omp target teams or |
| 12421 |
#pragma omp {,target }teams distribute simd. |
| 12422 |
|
| 12423 |
2014-06-12 Jason Merrill <[email protected]> |
| 12424 |
|
| 12425 |
* c.opt (Wabi=, fabi-compat-version): New. |
| 12426 |
* c-opts.c (c_common_handle_option): Handle -Wabi=. |
| 12427 |
(c_common_post_options): Handle flag_abi_compat_version default. |
| 12428 |
Disallow -fabi-compat-version=1. |
| 12429 |
* c-common.h (abi_version_crosses): New. |
| 12430 |
|
| 12431 |
2014-06-11 Jan Hubicka <[email protected]> |
| 12432 |
|
| 12433 |
* c-common.c (handle_section_attribute): Update handling for |
| 12434 |
section names that are no longer trees. |
| 12435 |
|
| 12436 |
2014-06-10 Jakub Jelinek <[email protected]> |
| 12437 |
|
| 12438 |
PR fortran/60928 |
| 12439 |
* c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK... |
| 12440 |
(omp_pragmas): ... back here. |
| 12441 |
|
| 12442 |
2014-06-05 Marek Polacek <[email protected]> |
| 12443 |
|
| 12444 |
PR c/49706 |
| 12445 |
* c-common.c (warn_logical_not_parentheses): New function. |
| 12446 |
* c-common.h (warn_logical_not_parentheses): Declare. |
| 12447 |
* c.opt (Wlogical-not-parentheses): New option. |
| 12448 |
|
| 12449 |
2014-06-04 Marek Polacek <[email protected]> |
| 12450 |
|
| 12451 |
PR c/30020 |
| 12452 |
* c-common.c (check_case_bounds): Add location parameter. |
| 12453 |
Use it. |
| 12454 |
(c_add_case_label): Pass loc to check_case_bounds. |
| 12455 |
|
| 12456 |
2014-06-03 Marek Polacek <[email protected]> |
| 12457 |
|
| 12458 |
PR c/60439 |
| 12459 |
* c.opt (Wswitch-bool): New option. |
| 12460 |
|
| 12461 |
2014-05-22 Thomas Schwinge <[email protected]> |
| 12462 |
|
| 12463 |
* c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl): |
| 12464 |
Remove prototypes. |
| 12465 |
(record_types_used_by_current_var_decl): Move prototype to where |
| 12466 |
it belongs. |
| 12467 |
|
| 12468 |
* c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6) |
| 12469 |
(DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8) |
| 12470 |
(DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes. |
| 12471 |
|
| 12472 |
2014-05-21 Richard Sandiford <[email protected]> |
| 12473 |
|
| 12474 |
* c-common.h (CTI_VOID_ZERO, void_zero_node): Delete. |
| 12475 |
* c-common.c (c_common_nodes_and_builtins): Don't initialize |
| 12476 |
void_zero_node. |
| 12477 |
* c-pretty-print.c (pp_c_void_constant): New function. |
| 12478 |
(c_pretty_printer::constant, c_pretty_printer::primary_expression) |
| 12479 |
(c_pretty_printer::expression): Handle VOID_CST. |
| 12480 |
* cilk.c (extract_free_variables): Likewise. |
| 12481 |
* c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift) |
| 12482 |
(ubsan_instrument_vla): Use void_node instead of void_zero_node. |
| 12483 |
|
| 12484 |
2014-05-17 Trevor Saunders <[email protected]> |
| 12485 |
|
| 12486 |
* c-common.h (sorted_fields_type): Remove variable_size GTY attribute. |
| 12487 |
* c-pragma.c (push_alignment): Adjust. |
| 12488 |
(handle_pragma_push_options): Likewise. |
| 12489 |
|
| 12490 |
2014-05-09 Marek Polacek <[email protected]> |
| 12491 |
|
| 12492 |
PR c/50459 |
| 12493 |
* c-common.c (check_user_alignment): Return -1 if alignment is error |
| 12494 |
node. |
| 12495 |
(handle_aligned_attribute): Don't call default_conversion on |
| 12496 |
FUNCTION_DECLs. |
| 12497 |
(handle_vector_size_attribute): Likewise. |
| 12498 |
(handle_tm_wrap_attribute): Handle case when wrap_decl is error node. |
| 12499 |
(handle_sentinel_attribute): Call default_conversion and allow even |
| 12500 |
integral types as an argument. |
| 12501 |
|
| 12502 |
2014-05-08 Marek Polacek <[email protected]> |
| 12503 |
|
| 12504 |
PR c/61053 |
| 12505 |
* c-common.c (min_align_of_type): New function factored out from... |
| 12506 |
(c_sizeof_or_alignof_type): ...here. |
| 12507 |
* c-common.h (min_align_of_type): Declare. |
| 12508 |
|
| 12509 |
2014-05-08 Marek Polacek <[email protected]> |
| 12510 |
|
| 12511 |
PR c/61077 |
| 12512 |
* c-common.c (check_main_parameter_types): Warn for _Atomic-qualified |
| 12513 |
parameter type of main. |
| 12514 |
|
| 12515 |
2014-05-07 DJ Delorie <[email protected]> |
| 12516 |
|
| 12517 |
* c-cppbuiltin.c (print_bits_of_hex): New. |
| 12518 |
(builtin_define_type_minmax): Print values using hex so as not to |
| 12519 |
require a pre-computed list of string values. |
| 12520 |
|
| 12521 |
2014-05-06 Kenneth Zadeck <[email protected]> |
| 12522 |
Mike Stump <[email protected]> |
| 12523 |
Richard Sandiford <[email protected]> |
| 12524 |
|
| 12525 |
* c-ada-spec.c: Include wide-int.h. |
| 12526 |
(ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove. |
| 12527 |
(dump_generic_ada_node): Use wide-int interfaces. |
| 12528 |
* c-common.c: Include wide-int-print.h. |
| 12529 |
(shorten_compare): Use wide-int interfaces and tree_int_cst_lt. |
| 12530 |
(pointer_int_sum): Use wide-int interfaces. |
| 12531 |
(c_common_nodes_and_builtins): Use make_int_cst. |
| 12532 |
(match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p. |
| 12533 |
(handle_alloc_size_attribute): Use wide-int interfaces. |
| 12534 |
(get_nonnull_operand): Likewise. |
| 12535 |
* c-format.c (get_constant): Use tree_fits_uhwi_p. |
| 12536 |
* c-lex.c: Include wide-int.h. |
| 12537 |
(narrowest_unsigned_type): Take a widest_int rather than two |
| 12538 |
HOST_WIDE_INTs. |
| 12539 |
(narrowest_signed_type): Likewise. |
| 12540 |
(interpret_integer): Update accordingly. Use wide-int interfaces. |
| 12541 |
(lex_charconst): Use wide-int interfaces. |
| 12542 |
* c-pretty-print.c: Include wide-int.h. |
| 12543 |
(pp_c_integer_constant): Use wide-int interfaces. |
| 12544 |
* cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of |
| 12545 |
INT_CST_LT_UNSIGNED. |
| 12546 |
|
| 12547 |
2014-05-06 Richard Biener <[email protected]> |
| 12548 |
|
| 12549 |
* c-opts.c (c_common_post_options): For -freestanding, |
| 12550 |
-fno-hosted and -fno-builtin disable pattern recognition |
| 12551 |
if not enabled explicitely. |
| 12552 |
|
| 12553 |
2014-05-02 Marek Polacek <[email protected]> |
| 12554 |
|
| 12555 |
* c.opt (Wsizeof-pointer-memaccess): Describe option. |
| 12556 |
|
| 12557 |
2014-05-01 Marek Polacek <[email protected]> |
| 12558 |
|
| 12559 |
PR c/43245 |
| 12560 |
* c.opt (Wdiscarded-qualifiers): Add. |
| 12561 |
|
| 12562 |
2014-04-30 Marek Polacek <[email protected]> |
| 12563 |
|
| 12564 |
* c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform |
| 12565 |
INT_MIN / -1 sanitization only for integer types. |
| 12566 |
|
| 12567 |
2014-04-25 Marek Polacek <[email protected]> |
| 12568 |
|
| 12569 |
PR c/18079 |
| 12570 |
* c-common.c (handle_noinline_attribute): Warn if the attribute |
| 12571 |
conflicts with always_inline attribute. |
| 12572 |
(handle_always_inline_attribute): Warn if the attribute conflicts |
| 12573 |
with noinline attribute. |
| 12574 |
|
| 12575 |
2014-04-25 Marek Polacek <[email protected]> |
| 12576 |
|
| 12577 |
PR c/60156 |
| 12578 |
* c-common.c (check_main_parameter_types): Warn about variadic main. |
| 12579 |
|
| 12580 |
2014-04-24 Mike Stump <[email protected]> |
| 12581 |
|
| 12582 |
* c.opt (Wshadow-ivar): Default to on. |
| 12583 |
|
| 12584 |
2014-04-24 Dimitris Papavasiliou <[email protected]> |
| 12585 |
|
| 12586 |
* c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add. |
| 12587 |
|
| 12588 |
2014-04-23 Marek Polacek <[email protected]> |
| 12589 |
|
| 12590 |
* c-common.c (handle_tm_wrap_attribute): Tweak error message. |
| 12591 |
|
| 12592 |
2014-04-22 Jakub Jelinek <[email protected]> |
| 12593 |
|
| 12594 |
PR sanitizer/60275 |
| 12595 |
* c-ubsan.c (ubsan_instrument_return): Return __builtin_trap () |
| 12596 |
if flag_sanitize_undefined_trap_on_error. |
| 12597 |
(ubsan_instrument_division, ubsan_instrument_shift, |
| 12598 |
ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort () |
| 12599 |
if !flag_sanitize_recover. |
| 12600 |
|
| 12601 |
2014-04-22 Marc Glisse <[email protected]> |
| 12602 |
|
| 12603 |
PR libstdc++/43622 |
| 12604 |
* c-common.c (registered_builtin_types): Make non-static. |
| 12605 |
* c-common.h (registered_builtin_types): Declare. |
| 12606 |
|
| 12607 |
2014-04-14 Richard Biener <[email protected]> |
| 12608 |
Marc Glisse <[email protected]> |
| 12609 |
|
| 12610 |
PR c/60819 |
| 12611 |
* c-common.c (convert_vector_to_pointer_for_subscript): Properly |
| 12612 |
apply may-alias the scalar pointer type when applicable. |
| 12613 |
|
| 12614 |
2014-04-12 Igor Zamyatin <[email protected]> |
| 12615 |
|
| 12616 |
PR middle-end/60467 |
| 12617 |
* cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL |
| 12618 |
as possible argument for Cilk_spawn. |
| 12619 |
|
| 12620 |
2014-04-11 Tobias Burnus <[email protected]> |
| 12621 |
|
| 12622 |
PR c/60194 |
| 12623 |
* c.opt (Wformat-signedness): Add |
| 12624 |
* c-format.c(check_format_types): Use it. |
| 12625 |
|
| 12626 |
2014-04-11 Jason Merrill <[email protected]> |
| 12627 |
|
| 12628 |
PR c++/57926 |
| 12629 |
* c-common.c (sync_resolve_size, get_atomic_generic_size): Call |
| 12630 |
default_conversion for an array argument. |
| 12631 |
|
| 12632 |
2014-04-08 Marek Polacek <[email protected]> |
| 12633 |
|
| 12634 |
PR sanitizer/60745 |
| 12635 |
* c-ubsan.c: Include asan.h. |
| 12636 |
(ubsan_instrument_return): Call initialize_sanitizer_builtins. |
| 12637 |
|
| 12638 |
2014-04-03 Nathan Sidwell <[email protected]> |
| 12639 |
|
| 12640 |
* c.opt (Wnon-virtual-dtor): Auto set when Weffc++. |
| 12641 |
|
| 12642 |
2014-04-02 Marek Polacek <[email protected]> |
| 12643 |
|
| 12644 |
* c-common.h (c_expand_expr): Remove declaration. |
| 12645 |
|
| 12646 |
2014-03-28 Jakub Jelinek <[email protected]> |
| 12647 |
|
| 12648 |
PR c++/60689 |
| 12649 |
* c-common.c (add_atomic_size_parameter): When creating new |
| 12650 |
params vector, push the size argument first. |
| 12651 |
|
| 12652 |
2014-03-26 Jakub Jelinek <[email protected]> |
| 12653 |
|
| 12654 |
* c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift, |
| 12655 |
ubsan_instrument_vla, ubsan_instrument_return): Adjust |
| 12656 |
ubsan_create_data callers. |
| 12657 |
|
| 12658 |
2014-03-22 Jakub Jelinek <[email protected]> |
| 12659 |
|
| 12660 |
PR debug/60603 |
| 12661 |
* c-opts.c (c_finish_options): Restore cb_file_change call to |
| 12662 |
<built-in>. |
| 12663 |
|
| 12664 |
2014-03-13 Jakub Jelinek <[email protected]> |
| 12665 |
|
| 12666 |
PR middle-end/36282 |
| 12667 |
* c-pragma.c (apply_pragma_weak): Only look at |
| 12668 |
TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if |
| 12669 |
DECL_ASSEMBLER_NAME_SET_P (decl). |
| 12670 |
(maybe_apply_pending_pragma_weaks): Exit early if |
| 12671 |
vec_safe_is_empty (pending_weaks) rather than only when |
| 12672 |
!pending_weaks. |
| 12673 |
(maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P, |
| 12674 |
set assembler name back to NULL afterwards. |
| 12675 |
|
| 12676 |
2014-03-11 Jason Merrill <[email protected]> |
| 12677 |
|
| 12678 |
* c.opt: Add -std=gnu++14. |
| 12679 |
|
| 12680 |
2014-03-11 Ian Bolton <[email protected]> |
| 12681 |
|
| 12682 |
* c-opts.c (c_common_post_options): Don't override |
| 12683 |
-ffp-contract=fast if unsafe-math-optimizations is on. |
| 12684 |
|
| 12685 |
2014-03-08 Paulo Matos <[email protected]> |
| 12686 |
|
| 12687 |
* c.opt: Enable LTO FE for fshort-double. |
| 12688 |
|
| 12689 |
2014-03-07 Jason Merrill <[email protected]> |
| 12690 |
|
| 12691 |
* c.opt: Add -std=c++14. |
| 12692 |
|
| 12693 |
2014-03-06 Marek Polacek <[email protected]> |
| 12694 |
|
| 12695 |
PR c/60197 |
| 12696 |
* cilk.c (contains_cilk_spawn_stmt): New function. |
| 12697 |
(contains_cilk_spawn_stmt_walker): Likewise. |
| 12698 |
(recognize_spawn): Give error on invalid use of _Cilk_spawn. |
| 12699 |
* c-common.h (contains_cilk_spawn_stmt): Add declaration. |
| 12700 |
|
| 12701 |
2014-03-03 Jakub Jelinek <[email protected]> |
| 12702 |
|
| 12703 |
* c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD. |
| 12704 |
(init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD |
| 12705 |
even when flag_preprocess_only. |
| 12706 |
|
| 12707 |
2014-02-26 Jason Merrill <[email protected]> |
| 12708 |
|
| 12709 |
PR c++/59231 |
| 12710 |
PR c++/11586 |
| 12711 |
* c-common.c (shorten_compare): Don't check |
| 12712 |
c_inhibit_evaluation_warnings. |
| 12713 |
|
| 12714 |
2014-02-19 Jakub Jelinek <[email protected]> |
| 12715 |
|
| 12716 |
PR c/37743 |
| 12717 |
* c-common.c (c_common_nodes_and_builtins): When initializing |
| 12718 |
c_uint{16,32,64}_type_node, also set corresponding |
| 12719 |
uint{16,32,64}_type_node to the same value. |
| 12720 |
|
| 12721 |
PR c++/60267 |
| 12722 |
* c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma |
| 12723 |
for PRAGMA_IVDEP if flag_preprocess_only. |
| 12724 |
|
| 12725 |
2014-02-12 Jakub Jelinek <[email protected]> |
| 12726 |
|
| 12727 |
PR c/60101 |
| 12728 |
* c-common.c (merge_tlist): If copy is true, call new_tlist, |
| 12729 |
if false, add ADD itself, rather than vice versa. |
| 12730 |
(verify_tree): For COND_EXPR, don't call merge_tlist with non-zero |
| 12731 |
copy. For SAVE_EXPR, only call merge_tlist once. |
| 12732 |
|
| 12733 |
2014-02-08 Jakub Jelinek <[email protected]> |
| 12734 |
|
| 12735 |
PR middle-end/60092 |
| 12736 |
* c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p |
| 12737 |
and tree_to_uhwi. |
| 12738 |
(handle_alloc_align_attribute, handle_assume_aligned_attribute): New |
| 12739 |
functions. |
| 12740 |
(c_common_attribute_table): Add alloc_align and assume_aligned |
| 12741 |
attributes. |
| 12742 |
|
| 12743 |
2014-02-06 Marek Polacek <[email protected]> |
| 12744 |
|
| 12745 |
PR c/60087 |
| 12746 |
* c-common.c (warn_for_sign_compare): Call warning_at with location |
| 12747 |
instead of warning. |
| 12748 |
|
| 12749 |
2014-02-05 Marek Polacek <[email protected]> |
| 12750 |
|
| 12751 |
PR c/53123 |
| 12752 |
* c-omp.c (c_finish_omp_atomic): Remove unreachable return |
| 12753 |
statement. |
| 12754 |
|
| 12755 |
2014-02-04 Marek Polacek <[email protected]> |
| 12756 |
|
| 12757 |
PR c/60036 |
| 12758 |
* c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or |
| 12759 |
SAVE_EXPR. |
| 12760 |
|
| 12761 |
2014-02-03 Marc Glisse <[email protected]> |
| 12762 |
|
| 12763 |
PR c++/53017 |
| 12764 |
PR c++/59211 |
| 12765 |
* c-common.c (handle_aligned_attribute, handle_alloc_size_attribute, |
| 12766 |
handle_vector_size_attribute, handle_nonnull_attribute): Call |
| 12767 |
default_conversion on the attribute argument. |
| 12768 |
(handle_nonnull_attribute): Increment the argument number. |
| 12769 |
|
| 12770 |
2014-01-31 Marek Polacek <[email protected]> |
| 12771 |
|
| 12772 |
PR c/59963 |
| 12773 |
* c-common.c (add_atomic_size_parameter): Pass vNULL to |
| 12774 |
build_function_call_vec. |
| 12775 |
(resolve_overloaded_builtin): Likewise. |
| 12776 |
* c-common.h (build_function_call_vec): Adjust declaration. |
| 12777 |
|
| 12778 |
2014-01-30 Marek Polacek <[email protected]> |
| 12779 |
|
| 12780 |
PR c/59940 |
| 12781 |
* c-common.h (unsafe_conversion_p): Adjust declaration. |
| 12782 |
(warnings_for_convert_and_check): Likewise. |
| 12783 |
(convert_and_check): Likewise. |
| 12784 |
* c-common.c (unsafe_conversion_p): Add location parameter. Call |
| 12785 |
expansion_point_location_if_in_system_header on it. |
| 12786 |
(warnings_for_convert_and_check): Add location parameter. Call |
| 12787 |
expansion_point_location_if_in_system_header on it. Use it. |
| 12788 |
(convert_and_check): Add location parameter. Use it. |
| 12789 |
(conversion_warning): Likewise. |
| 12790 |
(c_add_case_label): Adjust convert_and_check calls. |
| 12791 |
(scalar_to_vector): Adjust unsafe_conversion_p calls. |
| 12792 |
|
| 12793 |
2014-01-24 Balaji V. Iyer <[email protected]> |
| 12794 |
|
| 12795 |
* c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with |
| 12796 |
flag_cilkplus. |
| 12797 |
* c-pragma.c (init_pragma): Likewise. |
| 12798 |
* c.opt: Likewise. |
| 12799 |
|
| 12800 |
2014-01-23 Marek Polacek <[email protected]> |
| 12801 |
|
| 12802 |
PR c/59846 |
| 12803 |
* c-common.c (shorten_compare): Add location_t parameter. |
| 12804 |
* c-common.h (shorten_binary_op): Adjust declaration. |
| 12805 |
|
| 12806 |
2014-01-23 Marek Polacek <[email protected]> |
| 12807 |
|
| 12808 |
PR c/58346 |
| 12809 |
* c-common.c (pointer_to_zero_sized_aggr_p): New function. |
| 12810 |
* c-common.h: Declare it. |
| 12811 |
|
| 12812 |
2014-01-20 Eric Botcazou <[email protected]> |
| 12813 |
|
| 12814 |
* c-ada-spec.h (dump_ada_specs): Revert prototype change. |
| 12815 |
* c-ada-spec.c (dump_ads): Likewise. |
| 12816 |
(cpp_check): Likewise. |
| 12817 |
(dump_ada_specs): Likewise. |
| 12818 |
|
| 12819 |
2014-01-15 Laurent Alfonsi <[email protected]> |
| 12820 |
|
| 12821 |
PR c++/49718 |
| 12822 |
* c-common.c (handle_no_instrument_function_attribute): Allow |
| 12823 |
no_instrument_function attribute in class member |
| 12824 |
definition/declaration. |
| 12825 |
|
| 12826 |
2014-01-15 Jakub Jelinek <[email protected]> |
| 12827 |
|
| 12828 |
PR c/58943 |
| 12829 |
* c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around |
| 12830 |
build_modify_expr with non-NOP_EXPR opcode. Handle return from it |
| 12831 |
being COMPOUND_EXPR. |
| 12832 |
(c_finish_omp_for): Handle incr being COMPOUND_EXPR with first |
| 12833 |
operand a SAVE_EXPR and second MODIFY_EXPR. |
| 12834 |
|
| 12835 |
2014-01-09 Jakub Jelinek <[email protected]> |
| 12836 |
|
| 12837 |
PR target/58115 |
| 12838 |
* c-pch.c (c_common_write_pch): Call |
| 12839 |
prepare_target_option_nodes_for_pch. |
| 12840 |
|
| 12841 |
2014-01-02 Richard Sandiford <[email protected]> |
| 12842 |
|
| 12843 |
Update copyright years |
| 12844 |
|
| 12845 |
2014-01-02 Richard Sandiford <[email protected]> |
| 12846 |
|
| 12847 |
* array-notation-common.c, c-cilkplus.c: Use the standard form for |
| 12848 |
the copyright notice. |
| 12849 |
|
| 12850 |
2013-12-28 Eric Botcazou <[email protected]> |
| 12851 |
|
| 12852 |
* c-ada-spec.c (print_constructor): New function. |
| 12853 |
(print_destructor): Retrieve the origin of the destructor. |
| 12854 |
(print_ada_declaration): Revamp handling of constructors/destructors. |
| 12855 |
|
| 12856 |
2013-12-23 Stuart Hastings <[email protected]> |
| 12857 |
Bill Maddox <[email protected]> |
| 12858 |
Jason Merrill <[email protected]> |
| 12859 |
|
| 12860 |
* c.opt: Add -fdeclone-ctor-dtor. |
| 12861 |
* c-opts.c (c_common_post_options): Default to on iff -Os. |
| 12862 |
|
| 12863 |
2013-12-18 Balaji V. Iyer <[email protected]> |
| 12864 |
|
| 12865 |
* c-common.c (c_common_attribute_table): Added "cilk simd function" |
| 12866 |
attribute. |
| 12867 |
* c-pragma.h (enum pragma_cilk_clause): Remove. |
| 12868 |
(enum pragma_omp_clause): Added the following fields: |
| 12869 |
PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK, |
| 12870 |
PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE, |
| 12871 |
PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE, |
| 12872 |
PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE, |
| 12873 |
PRAGMA_CILK_CLAUSE_UNIFORM. |
| 12874 |
|
| 12875 |
|
| 12876 |
2013-12-11 Balaji V. Iyer <[email protected]> |
| 12877 |
|
| 12878 |
* cilk.c (cilk_outline): Made this function non-static. |
| 12879 |
(gimplify_cilk_spawn): Removed pre_p and post_p arguments. |
| 12880 |
(create_cilk_wrapper): Added a new parameter: a function pointer. |
| 12881 |
(c_install_body_w_frame_cleanup): Remove |
| 12882 |
(extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case. |
| 12883 |
* c-common.h (cilk_outline): New prototype. |
| 12884 |
(gimplify_cilk_spawn): Removed two parameters. |
| 12885 |
(cilk_install_body_with_frame_cleanup): New prototype. |
| 12886 |
* c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and |
| 12887 |
CILK_SPAWN_STMT case. |
| 12888 |
|
| 12889 |
2013-12-11 Bernd Schmidt <[email protected]> |
| 12890 |
|
| 12891 |
* c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR. |
| 12892 |
|
| 12893 |
* c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE. |
| 12894 |
(int_array_type_node): Remove. |
| 12895 |
* c-common.c (c_common_nodes_and_builtins): Don't build it. |
| 12896 |
|
| 12897 |
2013-12-05 Marek Polacek <[email protected]> |
| 12898 |
|
| 12899 |
PR c/52023 |
| 12900 |
* c-common.c (c_sizeof_or_alignof_type): Move a declaration into |
| 12901 |
[ADJUST_FIELD_ALIGN]. |
| 12902 |
|
| 12903 |
2013-12-04 Joseph Myers <[email protected]> |
| 12904 |
|
| 12905 |
PR c/52023 |
| 12906 |
* c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof |
| 12907 |
and check field alignment if set. |
| 12908 |
* c-common.h (c_sizeof_or_alignof_type): Update prototype. |
| 12909 |
(c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type. |
| 12910 |
|
| 12911 |
2013-12-04 Jakub Jelinek <[email protected]> |
| 12912 |
Marek Polacek <[email protected]> |
| 12913 |
|
| 12914 |
* c-gimplify.c (c_gimplify_expr): If doing the integer-overflow |
| 12915 |
sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS. |
| 12916 |
|
| 12917 |
2013-11-29 H.J. Lu <[email protected]> |
| 12918 |
|
| 12919 |
PR c/59309 |
| 12920 |
* cilk.c (gimplify_cilk_spawn): Properly handle function without |
| 12921 |
arguments. |
| 12922 |
|
| 12923 |
2013-11-29 Jakub Jelinek <[email protected]> |
| 12924 |
|
| 12925 |
PR c/59280 |
| 12926 |
* c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE, |
| 12927 |
goto invalid. If it is error_mark_node, don't issue further |
| 12928 |
diagnostics. |
| 12929 |
|
| 12930 |
2013-11-28 Sergey Ostanevich <[email protected]> |
| 12931 |
|
| 12932 |
* c.opt (Wopenmp-simd): New. |
| 12933 |
|
| 12934 |
2013-11-22 Jakub Jelinek <[email protected]> |
| 12935 |
|
| 12936 |
* c-ubsan.h (ubsan_instrument_return): New prototype. |
| 12937 |
* c-ubsan.c (ubsan_instrument_return): New function. |
| 12938 |
|
| 12939 |
2013-11-22 Andrew MacLeod <[email protected]> |
| 12940 |
|
| 12941 |
* c-common.c: Add required include files from gimple.h. |
| 12942 |
* c-gimplify.c: Likewise. |
| 12943 |
* cilk.c: Likewise. |
| 12944 |
|
| 12945 |
2013-11-22 David Malcolm <[email protected]> |
| 12946 |
|
| 12947 |
* c-common.c (unsafe_conversion_p): Remove use of |
| 12948 |
EXPR_LOC_OR_HERE macro. |
| 12949 |
(conversion_warning): Likewise. |
| 12950 |
(warnings_for_convert_and_check): Likewise. |
| 12951 |
(warn_for_collisions_1): Likewise. |
| 12952 |
(shorten_compare): Likewise, and remove use of in_system_header |
| 12953 |
macro, using the location from the former. |
| 12954 |
* c-lex.c (dump_one_header): Remove use of input_filename macro. |
| 12955 |
(cb_def_pragma): Remove use of in_system_header macro. |
| 12956 |
(lex_string): Likewise. |
| 12957 |
* c-pragma.c (handle_pragma_float_const_decimal64): Likewise. |
| 12958 |
|
| 12959 |
2013-11-20 Kenneth Zadeck <[email protected]> |
| 12960 |
Mike Stump <[email protected]> |
| 12961 |
Richard Sandiford <[email protected]> |
| 12962 |
|
| 12963 |
* c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi |
| 12964 |
instead of TREE_INT_CST_LOW, in cases where there is a protecting |
| 12965 |
tree_fits_shwi_p or tree_fits_uhwi_p. |
| 12966 |
(dump_generic_ada_node): Likewise. |
| 12967 |
* c-format.c (check_format_arg): Likewise. |
| 12968 |
* c-pretty-print.c (pp_c_integer_constant): Likewise. |
| 12969 |
|
| 12970 |
2013-11-20 Kenneth Zadeck <[email protected]> |
| 12971 |
|
| 12972 |
* c-common.c (check_function_arguments_recurse): Use tree_to_uhwi. |
| 12973 |
|
| 12974 |
2013-11-19 Joshua J Cogliati <[email protected]> |
| 12975 |
|
| 12976 |
PR c/53001 |
| 12977 |
* c-common.c (unsafe_conversion_p): Make this function |
| 12978 |
return an enumeration with more detail. |
| 12979 |
(conversion_warning): Use the new return type of |
| 12980 |
unsafe_conversion_p to separately warn either about conversions |
| 12981 |
that lower floating point number precision or about the other |
| 12982 |
kinds of conversions. |
| 12983 |
* c-common.h (enum conversion_safety): New enumeration. |
| 12984 |
(unsafe_conversion_p): switching return type to |
| 12985 |
conversion_safety enumeration. |
| 12986 |
* c.opt: Adding new warning -Wfloat-conversion and |
| 12987 |
enabling it with -Wconversion. |
| 12988 |
|
| 12989 |
2013-11-19 Basile Starynkevitch <[email protected]> |
| 12990 |
|
| 12991 |
* c-opts.c: Include plugin.h. |
| 12992 |
(cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE. |
| 12993 |
|
| 12994 |
2013-11-19 Marek Polacek <[email protected]> |
| 12995 |
|
| 12996 |
* c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data |
| 12997 |
call. |
| 12998 |
(ubsan_instrument_shift): Likewise. |
| 12999 |
(ubsan_instrument_vla): Likewise. |
| 13000 |
|
| 13001 |
2013-11-18 Richard Sandiford <[email protected]> |
| 13002 |
|
| 13003 |
* c-common.c (convert_vector_to_pointer_for_subscript): Remove |
| 13004 |
cast to unsigned type. |
| 13005 |
|
| 13006 |
2013-11-18 Richard Sandiford <[email protected]> |
| 13007 |
|
| 13008 |
* c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than |
| 13009 |
tree_low_cst. |
| 13010 |
(complete_array_type): Update comment to refer to tree_to_[su]hwi |
| 13011 |
rather than tree_low_cst. |
| 13012 |
|
| 13013 |
2013-11-18 Richard Sandiford <[email protected]> |
| 13014 |
|
| 13015 |
* c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with |
| 13016 |
tree_to_uhwi throughout. |
| 13017 |
|
| 13018 |
2013-11-18 Richard Sandiford <[email protected]> |
| 13019 |
|
| 13020 |
* c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace |
| 13021 |
tree_low_cst (..., 0) with tree_to_shwi throughout. |
| 13022 |
|
| 13023 |
2013-11-18 Richard Sandiford <[email protected]> |
| 13024 |
|
| 13025 |
* c-ada-spec.c, c-common.c, c-pretty-print.c: Replace |
| 13026 |
host_integerp (..., 1) with tree_fits_uhwi_p throughout. |
| 13027 |
|
| 13028 |
2013-11-18 Richard Sandiford <[email protected]> |
| 13029 |
|
| 13030 |
* c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace |
| 13031 |
host_integerp (..., 0) with tree_fits_shwi_p throughout. |
| 13032 |
|
| 13033 |
2013-11-15 Aldy Hernandez <[email protected]> |
| 13034 |
|
| 13035 |
* c-cilkplus.c: New file. |
| 13036 |
* c-common.c (readonly_error): Add location argument. |
| 13037 |
* c-common.h (readonly_error): Same. |
| 13038 |
(c_finish_cilk_clauses): Protoize. |
| 13039 |
(c_check_cilk_loop): Same. |
| 13040 |
c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes. |
| 13041 |
Do not fail on error_mark_node. |
| 13042 |
Abstract increment canonicalization to here... |
| 13043 |
(c_omp_for_incr_canonicalize_ptr): New. |
| 13044 |
c-pragma.c (init_pragma): Register "simd" pragma. |
| 13045 |
c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD. |
| 13046 |
(enum pragma_cilk_clause): New. |
| 13047 |
|
| 13048 |
2013-11-15 Richard Sandiford <[email protected]> |
| 13049 |
|
| 13050 |
* c-pretty-print.c (pp_c_character_constant): Remove unnecessary |
| 13051 |
wchar_type and host_integerp checks. |
| 13052 |
|
| 13053 |
2013-11-14 Andrew MacLeod <[email protected]> |
| 13054 |
|
| 13055 |
* c-common.c: Likewise. |
| 13056 |
* c-gimplify.c: Likewise. |
| 13057 |
* cilk.c: Likewise. |
| 13058 |
|
| 13059 |
2013-11-14 Diego Novillo <[email protected]> |
| 13060 |
|
| 13061 |
* c-common.c: Include fold-const.h. |
| 13062 |
Include stor-layout.h. |
| 13063 |
Include calls.h. |
| 13064 |
Include stringpool.h. |
| 13065 |
Include attribs.h. |
| 13066 |
Include varasm.h. |
| 13067 |
Include trans-mem.h. |
| 13068 |
* c-cppbuiltin.c: Include stor-layout.h. |
| 13069 |
Include stringpool.h. |
| 13070 |
* c-format.c: Include stringpool.h. |
| 13071 |
* c-lex.c: Include stringpool.h. |
| 13072 |
Include stor-layout.h. |
| 13073 |
* c-pragma.c: Include stringpool.h. |
| 13074 |
Include attribs.h. |
| 13075 |
Include varasm.h. |
| 13076 |
Include gcc-symtab.h. |
| 13077 |
* c-pretty-print.c: Include stor-layout.h. |
| 13078 |
Include attribs.h. |
| 13079 |
* cilk.c: Include stringpool.h. |
| 13080 |
Include calls.h. |
| 13081 |
|
| 13082 |
2013-11-13 Joseph Myers <[email protected]> |
| 13083 |
|
| 13084 |
* c-common.h (enum rid): Add RID_AUTO_TYPE. |
| 13085 |
* c-common.c (c_common_reswords): Add __auto_type. |
| 13086 |
(keyword_begins_type_specifier): Handle RID_AUTO_TYPE. |
| 13087 |
|
| 13088 |
2013-11-12 Andrew MacLeod <[email protected]> |
| 13089 |
|
| 13090 |
* c-common.c: Include gimplify.h. |
| 13091 |
* c-gimplify.c: Likewise. |
| 13092 |
* cilk.c: Likewise. |
| 13093 |
* c-omp.c: Include gimple-expr.h instead of gimple.h. |
| 13094 |
* c-ubsan.c: Don't include gimple.h. |
| 13095 |
|
| 13096 |
2013-11-12 Joseph Myers <[email protected]> |
| 13097 |
|
| 13098 |
* c-common.c (c_common_reswords): Add _Thread_local. |
| 13099 |
|
| 13100 |
2013-11-09 Joseph Myers <[email protected]> |
| 13101 |
|
| 13102 |
* c-common.c (atomic_size_supported_p): New function. |
| 13103 |
(resolve_overloaded_atomic_exchange) |
| 13104 |
(resolve_overloaded_atomic_compare_exchange) |
| 13105 |
(resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): |
| 13106 |
Use it instead of comparing size with a local list of sizes. |
| 13107 |
|
| 13108 |
2013-11-07 Andrew MacLeod <[email protected]> |
| 13109 |
Joseph Myers <[email protected]> |
| 13110 |
|
| 13111 |
* c-common.h (enum rid): Add RID_ATOMIC. |
| 13112 |
* c-common.c (c_common_reswords): Add _Atomic. |
| 13113 |
(sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument. |
| 13114 |
(keyword_is_type_qualifier): Accept RID_ATOMIC. |
| 13115 |
* c-format.c (check_format_types): Check for extra _Atomic |
| 13116 |
qualifiers in format argument. |
| 13117 |
* c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier. |
| 13118 |
(pp_c_type_qualifier_list): Mention _Atomic in comment. |
| 13119 |
|
| 13120 |
2013-11-06 Tobias Burnus <[email protected]> |
| 13121 |
|
| 13122 |
* c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME. |
| 13123 |
|
| 13124 |
2013-11-06 Joseph Myers <[email protected]> |
| 13125 |
|
| 13126 |
* c-opts.c (c_common_post_options): Set -ffp-contract=off in C |
| 13127 |
standards modes. |
| 13128 |
* c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast |
| 13129 |
to mean lack of IEEE 754 support. |
| 13130 |
|
| 13131 |
2013-11-05 Tobias Burnus <[email protected]> |
| 13132 |
|
| 13133 |
* c.opt (-Wdate-time): New option |
| 13134 |
* c-opts.c (sanitize_cpp_opts): Pass on to libcpp. |
| 13135 |
|
| 13136 |
2013-11-05 Joseph Myers <[email protected]> |
| 13137 |
|
| 13138 |
* c-cppbuiltin.c (cpp_iec_559_value): Test |
| 13139 |
flag_excess_precision_cmdline not flag_excess_precision. |
| 13140 |
|
| 13141 |
2013-11-05 Tobias Burnus <[email protected]> |
| 13142 |
|
| 13143 |
* c.opt (fopenmp-simd): New option. |
| 13144 |
* c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ... |
| 13145 |
(omp_pragmas): ... this new struct. |
| 13146 |
(c_pp_lookup_pragma): Also walk omp_pragmas. |
| 13147 |
(init_pragma): Init pragmas for -fopenmp-simd. |
| 13148 |
|
| 13149 |
2013-11-04 Marek Polacek <[email protected]> |
| 13150 |
|
| 13151 |
PR c++/58979 |
| 13152 |
* c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case. |
| 13153 |
|
| 13154 |
2013-11-04 Joseph Myers <[email protected]> |
| 13155 |
|
| 13156 |
* c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value): |
| 13157 |
New functions. |
| 13158 |
(c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX. |
| 13159 |
|
| 13160 |
2013-11-04 Eric Botcazou <[email protected]> |
| 13161 |
|
| 13162 |
* c-ada-spec.h (cpp_operation): Add IS_TRIVIAL. |
| 13163 |
(dump_ada_specs): Adjust prototype of second callback. |
| 13164 |
* c-ada-spec.c (cpp_check): New global variable. |
| 13165 |
(dump_ada_nodes): Remove cpp_check parameter and do not pass it down. |
| 13166 |
(print_generic_ada_decl): Likewise. |
| 13167 |
(has_static_fields): Change return type to bool and add guard. |
| 13168 |
(has_nontrivial_methods): New predicate. |
| 13169 |
(is_tagged_type): Change return type to bool. |
| 13170 |
(separate_class_package): Call has_nontrivial_methods. |
| 13171 |
(pp_ada_tree_identifier): Minor tweaks. |
| 13172 |
(dump_ada_function_declaration): Adjust calls to dump_generic_ada_node. |
| 13173 |
(dump_ada_array_domains): Likewise. |
| 13174 |
(dump_ada_array_type): Likewise. |
| 13175 |
(dump_template_types): Remove cpp_check parameter and do not pass it to |
| 13176 |
dump_generic_ada_node. |
| 13177 |
(dump_ada_template): Likewise. |
| 13178 |
(dump_generic_ada_node): Remove cpp_check parameter and do not pass it |
| 13179 |
recursively. |
| 13180 |
(print_ada_methods): Change return type to integer. Remove cpp_check |
| 13181 |
parameter and do not pass it down. |
| 13182 |
(dump_nested_types): Remove cpp_check parameter and do not pass it to |
| 13183 |
dump_generic_ada_node. |
| 13184 |
(print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before |
| 13185 |
accessing methods. |
| 13186 |
(print_ada_struct_decl): Remove cpp_check parameter and do not pass it |
| 13187 |
down. Use has_nontrivial_methods to recognize C++ classes. Use return |
| 13188 |
value of print_ada_methods. |
| 13189 |
(dump_ads): Rename cpp_check parameter to check and adjust prototype. |
| 13190 |
Set cpp_check to it before invoking dump_ada_nodes. |
| 13191 |
(dump_ada_specs): Likewise. |
| 13192 |
|
| 13193 |
2013-11-03 Marek Polacek <[email protected]> |
| 13194 |
|
| 13195 |
* c-ubsan.c: Don't include hash-table.h. |
| 13196 |
(ubsan_instrument_vla): New function. |
| 13197 |
* c-ubsan.h: Declare it. |
| 13198 |
|
| 13199 |
2013-10-31 David Malcolm <[email protected]> |
| 13200 |
|
| 13201 |
Automated part of renaming of symtab_node_base to symtab_node. |
| 13202 |
|
| 13203 |
Patch autogenerated by rename_symtab.py from |
| 13204 |
https://github.com/davidmalcolm/gcc-refactoring-scripts |
| 13205 |
revision 58bb219cc090b2f4516a9297d868c245495ee622 |
| 13206 |
|
| 13207 |
* c-pragma.c (maybe_apply_pending_pragma_weaks): Rename |
| 13208 |
symtab_node_base to symtab_node. |
| 13209 |
|
| 13210 |
2013-10-31 Edward Smith-Rowland <[email protected]> |
| 13211 |
|
| 13212 |
Implement C++14 digit separators. |
| 13213 |
* c-lex.c (interpret_float): Remove digit separators from scratch string |
| 13214 |
before building real literal. |
| 13215 |
|
| 13216 |
2013-10-30 Jakub Jelinek <[email protected]> |
| 13217 |
|
| 13218 |
* cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC. |
| 13219 |
|
| 13220 |
2013-10-29 Balaji V. Iyer <[email protected]> |
| 13221 |
|
| 13222 |
* c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync |
| 13223 |
fields. |
| 13224 |
(c_define_builtins): Called cilk_init_builtins if Cilk Plus is |
| 13225 |
enabled. |
| 13226 |
* c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC. |
| 13227 |
(insert_cilk_frame): New prototype. |
| 13228 |
(cilk_init_builtins): Likewise. |
| 13229 |
(gimplify_cilk_spawn): Likewise. |
| 13230 |
(c_cilk_install_body_w_frame_cleanup): Likewise. |
| 13231 |
(cilk_detect_spawn_and_unwrap): Likewise. |
| 13232 |
(cilk_set_spawn_marker): Likewise. |
| 13233 |
(build_cilk_sync): Likewise. |
| 13234 |
(build_cilk_spawn): Likewise. |
| 13235 |
* cilk.c: New file. |
| 13236 |
|
| 13237 |
2013-10-29 David Malcolm <[email protected]> |
| 13238 |
|
| 13239 |
Patch autogenerated by refactor_symtab.py from |
| 13240 |
https://github.com/davidmalcolm/gcc-refactoring-scripts |
| 13241 |
revision 58bb219cc090b2f4516a9297d868c245495ee622 |
| 13242 |
|
| 13243 |
* c-gimplify.c (c_genericize): Update for conversion of symtab types |
| 13244 |
to a true class hierarchy. |
| 13245 |
* c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise. |
| 13246 |
|
| 13247 |
2013-10-27 Richard Sandiford <[email protected]> |
| 13248 |
|
| 13249 |
* c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend. |
| 13250 |
|
| 13251 |
2013-10-26 Jeff Law <[email protected]> |
| 13252 |
|
| 13253 |
* c-common.c (c_define_builtins): Remove mudflap support. |
| 13254 |
* c.opt: Ignore and warn for mudflap options. |
| 13255 |
|
| 13256 |
2013-10-24 Tobias Burnus <[email protected]> |
| 13257 |
|
| 13258 |
PR other/33426 |
| 13259 |
* c-pragma.c (init_pragma) Add #pragma ivdep handling. |
| 13260 |
* c-pragma.h (pragma_kind): Add PRAGMA_IVDEP. |
| 13261 |
|
| 13262 |
2013-10-23 Jason Merrill <[email protected]> |
| 13263 |
|
| 13264 |
* c-format.c (gcc_cxxdiag_char_table): Add %X. |
| 13265 |
|
| 13266 |
2013-10-11 Jakub Jelinek <[email protected]> |
| 13267 |
|
| 13268 |
* c-common.h (omp_clause_mask::operator !=): New method. |
| 13269 |
* c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0) |
| 13270 |
instead of if (mask & something) tests everywhere. |
| 13271 |
|
| 13272 |
* c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to |
| 13273 |
201307 instead of 201107. |
| 13274 |
* c-common.c (DEF_FUNCTION_TYPE_8): Define. |
| 13275 |
(c_common_attribute_table): Add "omp declare target" and |
| 13276 |
"omp declare simd" attributes. |
| 13277 |
(handle_omp_declare_target_attribute, |
| 13278 |
handle_omp_declare_simd_attribute): New functions. |
| 13279 |
* c-omp.c: Include c-pragma.h. |
| 13280 |
(c_finish_omp_taskgroup): New function. |
| 13281 |
(c_finish_omp_atomic): Add swapped argument, if true, |
| 13282 |
build the operation first with rhs, lhs arguments and use NOP_EXPR |
| 13283 |
build_modify_expr. |
| 13284 |
(c_finish_omp_for): Add code argument, pass it down to make_code. |
| 13285 |
(c_omp_split_clauses): New function. |
| 13286 |
(c_split_parallel_clauses): Removed. |
| 13287 |
(c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers, |
| 13288 |
c_omp_declare_simd_clauses_to_decls): New functions. |
| 13289 |
* c-common.h (omp_clause_mask): New type. |
| 13290 |
(OMP_CLAUSE_MASK_1): Define. |
| 13291 |
(omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=, |
| 13292 |
omp_clause_mask::operator |=, omp_clause_mask::operator ~, |
| 13293 |
omp_clause_mask::operator |, omp_clause_mask::operator &, |
| 13294 |
omp_clause_mask::operator <<, omp_clause_mask::operator >>, |
| 13295 |
omp_clause_mask::operator ==): New methods. |
| 13296 |
(enum c_omp_clause_split): New. |
| 13297 |
(c_finish_omp_taskgroup): New prototype. |
| 13298 |
(c_finish_omp_atomic): Add swapped argument. |
| 13299 |
(c_finish_omp_for): Add code argument. |
| 13300 |
(c_omp_split_clauses): New prototype. |
| 13301 |
(c_split_parallel_clauses): Removed. |
| 13302 |
(c_omp_declare_simd_clauses_to_numbers, |
| 13303 |
c_omp_declare_simd_clauses_to_decls): New prototypes. |
| 13304 |
* c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs. |
| 13305 |
* c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL, |
| 13306 |
PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION, |
| 13307 |
PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD, |
| 13308 |
PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS. |
| 13309 |
Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS. |
| 13310 |
(enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED, |
| 13311 |
PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE, |
| 13312 |
PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR, |
| 13313 |
PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH, |
| 13314 |
PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP, |
| 13315 |
PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS, |
| 13316 |
PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND, |
| 13317 |
PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS, |
| 13318 |
PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP, |
| 13319 |
PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and |
| 13320 |
PRAGMA_OMP_CLAUSE_UNIFORM. |
| 13321 |
|
| 13322 |
2013-10-09 Marc Glisse <[email protected]> |
| 13323 |
|
| 13324 |
PR tree-optimization/20318 |
| 13325 |
* c-common.c (handle_returns_nonnull_attribute): New function. |
| 13326 |
(c_common_attribute_table): Add returns_nonnull. |
| 13327 |
|
| 13328 |
2013-10-03 Marc Glisse <[email protected]> |
| 13329 |
|
| 13330 |
PR c++/19476 |
| 13331 |
* c.opt (fcheck-new): Move to common.opt. |
| 13332 |
|
| 13333 |
2013-09-25 Marek Polacek <[email protected]> |
| 13334 |
Jakub Jelinek <[email protected]> |
| 13335 |
|
| 13336 |
PR sanitizer/58413 |
| 13337 |
* c-ubsan.c (ubsan_instrument_shift): Don't instrument |
| 13338 |
an expression if we can prove it is correct. |
| 13339 |
(ubsan_instrument_division): Likewise. Remove unnecessary |
| 13340 |
check. |
| 13341 |
|
| 13342 |
2013-09-18 Marek Polacek <[email protected]> |
| 13343 |
|
| 13344 |
PR sanitizer/58411 |
| 13345 |
* c-common.c (handle_no_sanitize_undefined_attribute): New function. |
| 13346 |
Declare it. |
| 13347 |
(struct attribute_spec c_common_att): Add no_sanitize_undefined. |
| 13348 |
|
| 13349 |
2013-09-14 Iain Sandoe <[email protected]> |
| 13350 |
|
| 13351 |
PR target/48094 |
| 13352 |
* c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version, |
| 13353 |
fobjc-gc, freplace-objc-classes): Accept for LTO. |
| 13354 |
|
| 13355 |
2013-09-13 Jacek Caban <[email protected]> |
| 13356 |
|
| 13357 |
* c-target.def: New hook |
| 13358 |
|
| 13359 |
2013-09-09 Paolo Carlini <[email protected]> |
| 13360 |
|
| 13361 |
PR c++/43452 |
| 13362 |
* c.opt (Wdelete-incomplete): Add. |
| 13363 |
|
| 13364 |
2013-09-08 Joern Rennecke <[email protected]> |
| 13365 |
|
| 13366 |
* c-common.c (same_scalar_type_ignoring_signedness): Delete. |
| 13367 |
(vector_types_compatible_elements_p): New function. |
| 13368 |
* c-common.h: (same_scalar_type_ignoring_signedness): Delete |
| 13369 |
declaration. |
| 13370 |
(vector_types_compatible_elements_p): Declare. |
| 13371 |
|
| 13372 |
2013-09-04 Gabriel Dos Reis <[email protected]> |
| 13373 |
|
| 13374 |
* c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now |
| 13375 |
a virtual member function. |
| 13376 |
(pp_simple_type_specifier): Remove. |
| 13377 |
(pp_c_type_specifier): Likewise. |
| 13378 |
* c-pretty-print.c (c_pretty_printer::simple_type_specifier): |
| 13379 |
Rename from pp_c_type_specifier. Adjust. |
| 13380 |
(c_pretty_printer::c_pretty_printer): Do not assign to |
| 13381 |
simple_type_specifier. |
| 13382 |
|
| 13383 |
2013-09-03 Gabriel Dos Reis <[email protected]> |
| 13384 |
|
| 13385 |
* c-pretty-print.h (c_pretty_printer::type_id): Now a virtual |
| 13386 |
member function. |
| 13387 |
(c_pretty_printer::storage_class_specifier): Likewise. |
| 13388 |
(c_pretty_printer::initializer): Likewise. |
| 13389 |
(pp_declaration): Remove. |
| 13390 |
(pp_declaration_specifiers): Likewise. |
| 13391 |
(pp_abstract_declarator): Likewise. |
| 13392 |
(pp_declarator): Likewise. |
| 13393 |
(pp_type_id): Likewise. |
| 13394 |
(pp_statement): Likewise. |
| 13395 |
(pp_constant): Likewise. |
| 13396 |
(pp_id_expression): Likewise. |
| 13397 |
(pp_primary_expression): Likewise. |
| 13398 |
(pp_unary_expression): Likewise. |
| 13399 |
(pp_multiplicative_expression): Likewise. |
| 13400 |
(pp_conditional_expression): Likewise. |
| 13401 |
(pp_assignment_expression): Likewise. |
| 13402 |
(pp_expression): Likewise. |
| 13403 |
(pp_c_type_id): Likewise. |
| 13404 |
(pp_c_storage_class_specifier): Likewise. |
| 13405 |
* c-pretty-print.c (pp_c_type_cast): Tidy. |
| 13406 |
(pp_c_pointer): Likewise. |
| 13407 |
(pp_c_type_specifier): Likewise. |
| 13408 |
(pp_c_parameter_type_list): Likewise. |
| 13409 |
(pp_c_function_definition): Likewise. |
| 13410 |
(pp_c_init_declarator): Likewise. |
| 13411 |
(pp_c_initializer_list): Likewise. |
| 13412 |
(pp_c_constructor_elts): Likewise. |
| 13413 |
(c_pretty_printer::direct_abstract_declarator): Likewise. |
| 13414 |
(c_pretty_printer::declaration_specifiers): Likewise. |
| 13415 |
(c_pretty_printer::primary_expression): Likewise. |
| 13416 |
(c_pretty_printer::postfix_expression): Likewise. |
| 13417 |
(c_pretty_printer::type_id): Rename from pp_c_type_id. |
| 13418 |
(c_pretty_printer::storage_class_specifier): Rename from |
| 13419 |
pp_c_storage_class_specifier. |
| 13420 |
(c_pretty_printer::initializer): Rename from pp_c_initializer. |
| 13421 |
(c_pretty_printer::c_pretty_printer): Do not assign to type_id, |
| 13422 |
storage_class_specifier, initializer, offset_list, flags. |
| 13423 |
|
| 13424 |
2013-08-30 Marek Polacek <[email protected]> |
| 13425 |
|
| 13426 |
* c-ubsan.c: New file. |
| 13427 |
* c-ubsan.h: New file. |
| 13428 |
|
| 13429 |
2013-08-30 Gabriel Dos Reis <[email protected]> |
| 13430 |
|
| 13431 |
* c-pretty-print.h (c_pretty_printer::declaration): Now a virtual |
| 13432 |
member function. |
| 13433 |
(c_pretty_printer::declaration_specifiers): Likewise. |
| 13434 |
(c_pretty_printer::declarator): Likewise. |
| 13435 |
(c_pretty_printer::abstract_declarator): Likewise. |
| 13436 |
(c_pretty_printer::direct_abstract_declarator): Likewise. |
| 13437 |
(c_pretty_printer::direct_declarator): Likewise. |
| 13438 |
(c_pretty_printer::function_specifier): Likewise. |
| 13439 |
(pp_declaration): Adjust. |
| 13440 |
(pp_declaration_specifiers): Likewise. |
| 13441 |
(pp_abstract_declarator): Likewise. |
| 13442 |
(pp_direct_declarator): Likewise. |
| 13443 |
(pp_function_specifier): Likewise. |
| 13444 |
(pp_direct_abstract_declarator): Remove as unused. |
| 13445 |
(pp_c_declaration): Remove. |
| 13446 |
(pp_c_declaration_specifiers): Likewise. |
| 13447 |
(pp_c_declarator): Likewise. |
| 13448 |
(pp_c_direct_declarator): Likewise. |
| 13449 |
(pp_c_function_specifier): Likewise. |
| 13450 |
(pp_c_direct_abstract_declarator): Likewise. |
| 13451 |
* c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename |
| 13452 |
from pp_c_abstract_declarator. Adjust. |
| 13453 |
(c_pretty_printer::direct_abstract_declarator): Rename from |
| 13454 |
pp_c_direct_abstract_declarator. Adjust. |
| 13455 |
(c_pretty_printer::function_specifier): Rename from |
| 13456 |
pp_c_function_specifier. Adjust. |
| 13457 |
(c_pretty_printer::declaration_specifiers): Rename from |
| 13458 |
pp_c_declaration_specifiers. Adjust. |
| 13459 |
(c_pretty_printer::direct_declarator): Rename from |
| 13460 |
pp_c_direct_declarator. Adjust. |
| 13461 |
(c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust. |
| 13462 |
(c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust. |
| 13463 |
(c_pretty_printer::c_pretty_printer): Do not assign to |
| 13464 |
declaration, declaration_specifiers, declarator, |
| 13465 |
direct_declarator, direct_abstract_declarator, function_specifier. |
| 13466 |
|
| 13467 |
2013-08-26 Gabriel Dos Reis <[email protected]> |
| 13468 |
|
| 13469 |
* c-pretty-print.h (c_pretty_printer::unary_expression): Now a |
| 13470 |
virtual member function. |
| 13471 |
(c_pretty_printer::multiplicative_expression): Likewise. |
| 13472 |
(c_pretty_printer::conditional_expression): Likewise. |
| 13473 |
(c_pretty_printer::assignment_expression): Likewise. |
| 13474 |
(c_pretty_printer::expression): Likewise. |
| 13475 |
(pp_unary_expression): Adjust. |
| 13476 |
(pp_multiplicative_expression): Likewise. |
| 13477 |
(pp_assignment_expression): Likewise. |
| 13478 |
(pp_conditional_expression): Likewise. |
| 13479 |
(pp_expression): Likewise. |
| 13480 |
* c-pretty-print.c (c_pretty_printer::unary_expression): Rename |
| 13481 |
from pp_c_unary_expression. Adjust. |
| 13482 |
(c_pretty_printer::multiplicative_expression): Rename from |
| 13483 |
pp_c_multiplicative_expression. Adjust. |
| 13484 |
(c_pretty_printer::conditional_expression): Rename from |
| 13485 |
pp_c_conditional_expression. Adjust. |
| 13486 |
(c_pretty_printer::assignment_expression): Rename from |
| 13487 |
pp_c_assignment_expression. Adjust. |
| 13488 |
(c_pretty_printer::expression): Rename from pp_c_expression. Adjust. |
| 13489 |
(c_pretty_printer::c_pretty_printer): Do not assign to |
| 13490 |
unary_expression, multiplicative_expression, |
| 13491 |
conditional_expression, expression. |
| 13492 |
|
| 13493 |
2013-08-25 Gabriel Dos Reis <[email protected]> |
| 13494 |
|
| 13495 |
* c-pretty-print.h (c_pretty_printer::postfix_expression): Now a |
| 13496 |
virtual member function. |
| 13497 |
(pp_postfix_expression): Adjust. |
| 13498 |
(pp_c_postfix_expression): Remove. |
| 13499 |
* c-pretty-print.c (c_pretty_printer::postfix_expression): Rename |
| 13500 |
from pp_c_postfix_expression. Adjust. |
| 13501 |
(c_pretty_printer::c_pretty_printer): Do not assign to |
| 13502 |
postfix_expression. |
| 13503 |
|
| 13504 |
2013-08-25 Gabriel Dos Reis <[email protected]> |
| 13505 |
|
| 13506 |
* c-pretty-print.h (c_pretty_printer::primary_expression): Now a |
| 13507 |
virtua member function. |
| 13508 |
(pp_primary_expression): Adjust. |
| 13509 |
(pp_c_primary_expression): Remove. |
| 13510 |
* c-pretty-print.c (c_pretty_printer::primary_expression): Rename |
| 13511 |
from pp_c_primary_expression. Adjust. |
| 13512 |
(pp_c_initializer_list): Use pp_primary_expression. |
| 13513 |
(c_pretty_printer::c_pretty_printer): Do not assign to |
| 13514 |
primary_expression. |
| 13515 |
|
| 13516 |
2013-08-25 Gabriel Dos Reis <[email protected]> |
| 13517 |
|
| 13518 |
* c-pretty-print.h (c_pretty_printer::translate_string): Declare. |
| 13519 |
* c-pretty-print.c (M_): Remove. |
| 13520 |
(c_pretty_printer::translate_string): Define. |
| 13521 |
(pp_c_type_specifier): Use it. |
| 13522 |
(pp_c_primary_expression): Likewise. |
| 13523 |
(pp_c_expression): Likewise. |
| 13524 |
|
| 13525 |
2013-08-24 Gabriel Dos Reis <[email protected]> |
| 13526 |
|
| 13527 |
* c-pretty-print.h (c_pretty_printer::id_expression): Now a |
| 13528 |
virtual function. |
| 13529 |
(pp_c_id_expression): Remove. |
| 13530 |
(pp_id_expression): Adjust. |
| 13531 |
* c-pretty-print.c (c_pretty_printer::id_expression): Rename from |
| 13532 |
pp_c_id_expression. Adjust. |
| 13533 |
(pp_c_postfix_expression): Use pp_id_expression. |
| 13534 |
(c_pretty_printer::c_pretty_printer): Do not assign to id_expression. |
| 13535 |
|
| 13536 |
2013-08-24 Gabriel Dos Reis <[email protected]> |
| 13537 |
|
| 13538 |
* c-pretty-print.h (c_pretty_printer::constant): Now a virtual |
| 13539 |
member function. |
| 13540 |
(pp_constant): Adjust. |
| 13541 |
(pp_c_constant): Remove. |
| 13542 |
* c-pretty-print.c (c_pretty_printer::constant): Rename from |
| 13543 |
pp_c_constant. Adjust. |
| 13544 |
(pp_c_constant) |
| 13545 |
(pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant. |
| 13546 |
(c_pretty_printer::c_pretty_printer): Remove assignment to constant. |
| 13547 |
|
| 13548 |
2013-08-22 Gabriel Dos Reis <[email protected]> |
| 13549 |
|
| 13550 |
* c-pretty-print.h (pp_c_pretty_printer_init): Remove. |
| 13551 |
(c_pretty_printer::c_pretty_printer): Declare. |
| 13552 |
* c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from |
| 13553 |
c_pretty_printer_init. Adjust. |
| 13554 |
(print_c_tree): Do not call c_pretty_printer_init. |
| 13555 |
* c-ada-spec.c (dump_ads): Remove call to pp_construct. |
| 13556 |
|
| 13557 |
2013-08-09 Arnaud Charlet <[email protected]> |
| 13558 |
|
| 13559 |
* c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name |
| 13560 |
|
| 13561 |
2013-08-05 Paolo Carlini <[email protected]> |
| 13562 |
|
| 13563 |
PR c++/58080 |
| 13564 |
* c-common.c (pointer_int_sum): Add bool parameter. |
| 13565 |
* c-common.h (pointer_int_sum): Adjust declaration. |
| 13566 |
|
| 13567 |
2013-08-05 Gabriel Dos Reis <[email protected]> |
| 13568 |
|
| 13569 |
* c-pretty-print.c (print_c_tree): Simplify. Use non-static local |
| 13570 |
c_pretty_printer variable. |
| 13571 |
|
| 13572 |
2013-08-04 Gabriel Dos Reis <[email protected]> |
| 13573 |
|
| 13574 |
* c-pretty-print.h (c_pretty_printer): Derive from pretty_printer. |
| 13575 |
(pp_base): Remove. |
| 13576 |
(pp_c_base): Likewise. Adjust users. |
| 13577 |
* c-pretty-print.c (pp_c_maybe_whitespace): Adjust. |
| 13578 |
(pp_c_whitespace): Do not call pp_base. |
| 13579 |
(pp_c_left_paren): Likewise. |
| 13580 |
(pp_c_right_paren): Likewise. |
| 13581 |
(pp_c_left_brace): Likewise. |
| 13582 |
(pp_c_right_brace): Likewise. |
| 13583 |
(pp_c_left_bracket): Likewise. |
| 13584 |
(pp_c_right_bracket): Likewise. |
| 13585 |
(pp_c_dot): Likewise. |
| 13586 |
(pp_c_ampersand): Likewise. |
| 13587 |
(pp_c_star): Likewise. |
| 13588 |
(pp_c_arrow): Likewise. |
| 13589 |
(pp_c_semicolon): Likewise. |
| 13590 |
(pp_c_complement): Likewise. |
| 13591 |
(pp_c_exclamation): Likewise. |
| 13592 |
(pp_c_direct_declarator): Likewise. |
| 13593 |
(pp_c_ws_string): Likewise. |
| 13594 |
(pp_c_identifier): Likewise. |
| 13595 |
(pp_c_statement): Likewise. |
| 13596 |
(print_c_tree): Likewise. |
| 13597 |
|
| 13598 |
2013-08-04 Ed Smith-Rowland <[email protected]> |
| 13599 |
|
| 13600 |
PR c++/58072 |
| 13601 |
* c-common.c (c_parse_error): Catch user-defined literal tokens and |
| 13602 |
provide useful error strings. |
| 13603 |
|
| 13604 |
2013-08-03 Gabriel Dos Reis <[email protected]> |
| 13605 |
|
| 13606 |
* c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty |
| 13607 |
printer functions instead of pp_string or operators and punctuators. |
| 13608 |
(dump_generic_ada_node): Likewise. |
| 13609 |
* c-pretty-print.c (pp_c_type_specifier): Likewise. |
| 13610 |
(pp_c_relational_expression): Likewise. |
| 13611 |
(pp_c_logical_or_expression): Likewise. |
| 13612 |
|
| 13613 |
2013-08-03 Gabriel Dos Reis <[email protected]> |
| 13614 |
|
| 13615 |
* c-ada-spec.c (print_ada_macros): Use specialized pretty printer |
| 13616 |
functions instead of pp_character. |
| 13617 |
(pp_ada_tree_identifier): Likewise. |
| 13618 |
(dump_ada_double_name): Likewise. |
| 13619 |
(dump_ada_function_declaration): Likewise. |
| 13620 |
(dump_ada_array_domains): Likewise. |
| 13621 |
(dump_template_types): Likewise. |
| 13622 |
(dump_generic_ada_node): Likewise. |
| 13623 |
(print_ada_declaration): Likewise. |
| 13624 |
(print_ada_struct_decl): Likewise. |
| 13625 |
* c-pretty-print.c (pp_c_integer_constant): Likewise. |
| 13626 |
|
| 13627 |
2013-07-23 Tom Tromey <[email protected]> |
| 13628 |
|
| 13629 |
* c-common.h (enum rid) <RID_GENERIC>: New constant. |
| 13630 |
* c-common.c (c_common_reswords): Add _Generic. |
| 13631 |
|
| 13632 |
2013-07-21 OndÅej BÃlka <[email protected]> |
| 13633 |
|
| 13634 |
* c-common.c: Fix typos. |
| 13635 |
* c-common.h: Likewise. |
| 13636 |
|
| 13637 |
2013-07-13 Lubos Lunak <[email protected]> |
| 13638 |
|
| 13639 |
PR c++/55203 |
| 13640 |
* c-common.c (c_common_attribute_table): Add warn_unused. |
| 13641 |
(handle_warn_unused_attribute): New. |
| 13642 |
|
| 13643 |
2013-07-10 Jakub Jelinek <[email protected]> |
| 13644 |
|
| 13645 |
* c-ppoutput.c (scan_translation_unit): Call account_for_newlines |
| 13646 |
for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT. |
| 13647 |
|
| 13648 |
2013-07-10 Paolo Carlini <[email protected]> |
| 13649 |
|
| 13650 |
PR c++/57869 |
| 13651 |
* c.opt: Add Wconditionally-supported. |
| 13652 |
|
| 13653 |
2013-07-08 Graham Stott <[email protected]> |
| 13654 |
|
| 13655 |
* array-notation-common.c (length_mismatch_in_expr_p): Delete |
| 13656 |
unused variables l_length and l_node. |
| 13657 |
|
| 13658 |
2013-07-04 Joern Rennecke <[email protected]> |
| 13659 |
|
| 13660 |
PR c/57821 |
| 13661 |
* c-common.c (complete_array_type): Delay folding first index |
| 13662 |
like other indices. When folding, check for index overflow. |
| 13663 |
|
| 13664 |
2013-06-27 Marc Glisse <[email protected]> |
| 13665 |
|
| 13666 |
PR c++/57509 |
| 13667 |
* c-common.h (c_build_vec_perm_expr): New complain argument. |
| 13668 |
* c-common.c (c_build_vec_perm_expr): Likewise. |
| 13669 |
Use save_expr also in C++. |
| 13670 |
|
| 13671 |
2013-06-22 Gabriel Dos Reis <[email protected]> |
| 13672 |
|
| 13673 |
* c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x. |
| 13674 |
* c-cppbuiltin.c (c_cpp_builtins): Likewise. |
| 13675 |
* c-opts.c (c_common_post_options): Likewise. |
| 13676 |
|
| 13677 |
2013-06-21 Balaji V. Iyer <[email protected]> |
| 13678 |
|
| 13679 |
* array-notation-common.c (length_mismatch_in_expr): Changed the |
| 13680 |
parameter type's from a dynamic array to a vec_tree. Also removed |
| 13681 |
the size parameters. |
| 13682 |
* c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per |
| 13683 |
the change above. |
| 13684 |
|
| 13685 |
2013-06-21 Balaji V. Iyer <[email protected]> |
| 13686 |
|
| 13687 |
* c-common.h (struct cilkplus_an_parts): New structure. |
| 13688 |
(struct cilkplus_an_loop_parts): Likewise. |
| 13689 |
(cilkplus_extract_an_triplets): New prototype. |
| 13690 |
(fix_sec_implicit_args): Likewise. |
| 13691 |
* array-notation-common.c (cilkplus_extract_an_triplets): New function. |
| 13692 |
(fix_sec_implicit_args): Likewise. |
| 13693 |
|
| 13694 |
2013-06-20 Balaji V. Iyer <[email protected]> |
| 13695 |
|
| 13696 |
* array-notation-common.c (find_inv_trees): Removed an unwanted |
| 13697 |
typecasting. |
| 13698 |
* c-common.h (struct inv_list::additional_tcodes): Changed type from |
| 13699 |
enum rid to enum tree_code. |
| 13700 |
|
| 13701 |
2013-06-11 Jan Hubicka <[email protected]> |
| 13702 |
|
| 13703 |
* c-common.c (handle_alias_ifunc_attribute): Do not set |
| 13704 |
DECL_EXTERNAL for weakref variables. |
| 13705 |
* c-pragma.c (handle_pragma_weak): Make sure aliases |
| 13706 |
are not declared as external. |
| 13707 |
|
| 13708 |
2013-06-07 Balaji V. Iyer <[email protected]> |
| 13709 |
|
| 13710 |
* array-notation-common.c (length_mismatch_in_expr_p): Moved this |
| 13711 |
function from c/c-array-notation.c. |
| 13712 |
(is_cilkplus_reduce_builtin): Likewise. |
| 13713 |
(find_rank): Likewise. |
| 13714 |
(extract_array_notation_exprs): Likewise. |
| 13715 |
(replace_array_notations): Likewise. |
| 13716 |
(find_inv_trees): Likewise. |
| 13717 |
(replace_inv_trees): Likewise. |
| 13718 |
(contains_array_notation_expr): Likewise. |
| 13719 |
(find_correct_array_notation_type): Likewise. |
| 13720 |
* c-common.h (struct inv_list): Moved this struct from the file |
| 13721 |
c/c-array-notation.c and added a new field called additional tcodes. |
| 13722 |
(length_mismatch_in_expr_p): New prototype. |
| 13723 |
(is_cilkplus_reduce_builtin): Likewise. |
| 13724 |
(find_rank): Likewise. |
| 13725 |
(extract_array_notation_exprs): Likewise. |
| 13726 |
(replace_array_notation): Likewise. |
| 13727 |
(find_inv_trees): Likewise. |
| 13728 |
(replace_inv_trees): Likewise. |
| 13729 |
(find_correct_array_notation_type): Likewise. |
| 13730 |
|
| 13731 |
2013-05-28 Balaji V. Iyer <[email protected]> |
| 13732 |
|
| 13733 |
* c-common.c (c_define_builtins): When cilkplus is enabled, the |
| 13734 |
function array_notation_init_builtins is called. |
| 13735 |
(c_common_init_ts): Added ARRAY_NOTATION_REF as typed. |
| 13736 |
* c-common.def (ARRAY_NOTATION_REF): New tree. |
| 13737 |
* c-common.h (build_array_notation_expr): New function declaration. |
| 13738 |
(build_array_notation_ref): Likewise. |
| 13739 |
(extract_sec_implicit_index_arg): New extern declaration. |
| 13740 |
(is_sec_implicit_index_fn): Likewise. |
| 13741 |
(ARRAY_NOTATION_CHECK): New define. |
| 13742 |
(ARRAY_NOTATION_ARRAY): Likewise. |
| 13743 |
(ARRAY_NOTATION_START): Likewise. |
| 13744 |
(ARRAY_NOTATION_LENGTH): Likewise. |
| 13745 |
(ARRAY_NOTATION_STRIDE): Likewise. |
| 13746 |
* c-pretty-print.c (pp_c_postifix_expression): Added a new case for |
| 13747 |
ARRAY_NOTATION_REF. |
| 13748 |
(pp_c_expression): Likewise. |
| 13749 |
* c.opt (flag_enable_cilkplus): New flag. |
| 13750 |
* array-notation-common.c: New file. |
| 13751 |
|
| 13752 |
2013-05-14 Jakub Jelinek <[email protected]> |
| 13753 |
|
| 13754 |
PR c++/57274 |
| 13755 |
* c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR. |
| 13756 |
|
| 13757 |
2013-05-10 Marc Glisse <[email protected]> |
| 13758 |
|
| 13759 |
* c-common.c (vector_types_convertible_p): No TYPE_PRECISION for |
| 13760 |
vectors. |
| 13761 |
|
| 13762 |
2013-05-07 Han Shen <[email protected]> |
| 13763 |
|
| 13764 |
* c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3". |
| 13765 |
|
| 13766 |
2013-04-29 Senthil Kumar Selvaraj <[email protected]> |
| 13767 |
|
| 13768 |
* c-common.c (check_user_alignment): Emit error for negative values. |
| 13769 |
|
| 13770 |
2013-04-24 Paolo Carlini <[email protected]> |
| 13771 |
|
| 13772 |
* c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y. |
| 13773 |
|
| 13774 |
2013-04-24 Paolo Carlini <[email protected]> |
| 13775 |
|
| 13776 |
* c-cppbuiltin.c (c_cpp_builtins): Do not define |
| 13777 |
__GXX_EXPERIMENTAL_CXX1Y__. |
| 13778 |
|
| 13779 |
2013-04-24 Paolo Carlini <[email protected]> |
| 13780 |
Manuel Lopez-Ibanez <[email protected]> |
| 13781 |
|
| 13782 |
* c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented. |
| 13783 |
* c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns |
| 13784 |
to simply use OPT_Wpointer_arith. |
| 13785 |
(c_sizeof_or_alignof_type): Likewise. |
| 13786 |
|
| 13787 |
2013-04-24 Paolo Carlini <[email protected]> |
| 13788 |
|
| 13789 |
* c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__. |
| 13790 |
|
| 13791 |
2013-04-12 Jakub Jelinek <[email protected]> |
| 13792 |
|
| 13793 |
* c-format.c (gcc_diag_char_table, gcc_tdiag_char_table, |
| 13794 |
gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format |
| 13795 |
specifiers. |
| 13796 |
|
| 13797 |
2013-04-07 Steven Bosscher <[email protected]> |
| 13798 |
|
| 13799 |
* c-pragma.c (add_to_renaming_pragma_list): Fix leading comment. |
| 13800 |
|
| 13801 |
2013-04-03 Paolo Carlini <[email protected]> |
| 13802 |
|
| 13803 |
* c-common.c (pointer_int_sum): Remove dead code. |
| 13804 |
|
| 13805 |
2013-03-09 Richard Sandiford <[email protected]> |
| 13806 |
|
| 13807 |
PR middle-end/56524 |
| 13808 |
* c-common.c (handle_optimize_attribute): Don't call |
| 13809 |
save_optabs_if_changed. |
| 13810 |
|
| 13811 |
2013-03-05 Jakub Jelinek <[email protected]> |
| 13812 |
|
| 13813 |
PR middle-end/56461 |
| 13814 |
* c-pch.c (pch_init): Free target_validity at the end. |
| 13815 |
|
| 13816 |
2013-03-04 Jakub Jelinek <[email protected]> |
| 13817 |
|
| 13818 |
* c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags. |
| 13819 |
|
| 13820 |
2013-02-28 Konstantin Serebryany <[email protected]> |
| 13821 |
Jakub Jelinek <[email protected]> |
| 13822 |
|
| 13823 |
PR sanitizer/56454 |
| 13824 |
* c-common.c (handle_no_sanitize_address_attribute): New function. |
| 13825 |
(c_common_attribute_table): Add no_sanitize_address attribute. |
| 13826 |
(handle_no_address_safety_analysis_attribute): Add |
| 13827 |
no_sanitize_address attribute, not no_address_safety_analysis |
| 13828 |
attribute. |
| 13829 |
|
| 13830 |
2013-02-18 Aldy Hernandez <[email protected]> |
| 13831 |
|
| 13832 |
PR target/52555 |
| 13833 |
* c-common.c (handle_optimize_attribute): Call |
| 13834 |
save_optabs_if_changed. |
| 13835 |
|
| 13836 |
2013-02-18 Jakub Jelinek <[email protected]> |
| 13837 |
Steven Bosscher <[email protected]> |
| 13838 |
|
| 13839 |
PR pch/54117 |
| 13840 |
* c-opts.c (c_common_post_options): If debug info is enabled |
| 13841 |
and non-dwarf*, refuse to load PCH files and when writing PCH |
| 13842 |
file warn. |
| 13843 |
|
| 13844 |
2013-02-05 Jakub Jelinek <[email protected]> |
| 13845 |
|
| 13846 |
PR middle-end/56167 |
| 13847 |
* c-common.c (handle_error_attribute): Fix condition. |
| 13848 |
|
| 13849 |
2013-01-30 Jakub Jelinek <[email protected]> |
| 13850 |
|
| 13851 |
PR c++/55742 |
| 13852 |
* c-common.c (handle_target_attribute): Revert 2012-12-26 change. |
| 13853 |
|
| 13854 |
2013-01-18 Jason Merrill <[email protected]> |
| 13855 |
|
| 13856 |
PR target/54908 |
| 13857 |
* c.opt (-fextern-tls-init): New. |
| 13858 |
* c-opts.c (c_common_post_options): Handle it. |
| 13859 |
|
| 13860 |
2013-01-09 Jakub Jelinek <[email protected]> |
| 13861 |
|
| 13862 |
PR c/48418 |
| 13863 |
* c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and |
| 13864 |
RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST |
| 13865 |
and is either negative or bigger or equal to type precision |
| 13866 |
of the first operand. |
| 13867 |
|
| 13868 |
2012-12-03 Marek Polacek <[email protected]> |
| 13869 |
|
| 13870 |
PR c/55570 |
| 13871 |
* c-common.c (check_user_alignment): Swap order of tests, |
| 13872 |
check TREE_CODE first. |
| 13873 |
|
| 13874 |
2012-11-29 Ed Smith-Rowland <[email protected]> |
| 13875 |
|
| 13876 |
PR c++/52654 |
| 13877 |
* c-common.h (overflow_type): New enum. |
| 13878 |
(build_userdef_literal): Add overflow_type argument. |
| 13879 |
(tree_userdef_literal): Add overflow_type. |
| 13880 |
(USERDEF_LITERAL_OVERFLOW): New access macro. |
| 13881 |
* c-common.c (build_userdef_literal): Add overflow_type |
| 13882 |
argument. |
| 13883 |
* c-lex.c (c_lex_with_flags): Add overflow_type to |
| 13884 |
build_userdef_literal calls. |
| 13885 |
(interpret_integer, interpret_float): Add overflow_type argument. |
| 13886 |
|
| 13887 |
2012-11-28 Richard Biener <[email protected]> |
| 13888 |
|
| 13889 |
PR c/35634 |
| 13890 |
* c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions |
| 13891 |
here and use a type with proper overflow behavior for types that would |
| 13892 |
need to be promoted for the arithmetic. |
| 13893 |
|
| 13894 |
2012-11-23 Jakub Jelinek <[email protected]> |
| 13895 |
|
| 13896 |
PR sanitizer/55435 |
| 13897 |
* c-common.c (handle_no_address_safety_analysis_attribute): New |
| 13898 |
function. |
| 13899 |
(c_common_attribute_table): Add no_address_safety_analysis. |
| 13900 |
|
| 13901 |
2012-11-16 Simon Baldwin <[email protected]> |
| 13902 |
|
| 13903 |
* c.opt: Add f[no-]canonical-system-headers. |
| 13904 |
* c-opts.c (c_common_handle_option): Handle |
| 13905 |
OPT_fcanonical_system_headers. |
| 13906 |
|
| 13907 |
2012-11-09 Ed Smith-Rowland <[email protected]> |
| 13908 |
|
| 13909 |
PR c++/54413 |
| 13910 |
* c-opts.c (c_common_handle_option): Set new flags. |
| 13911 |
* c.opt: Describe new flags. |
| 13912 |
|
| 13913 |
2012-11-09 Jason Merrill <[email protected]> |
| 13914 |
|
| 13915 |
* c.opt (Wabi-tag): New. |
| 13916 |
|
| 13917 |
2012-11-09 Andi Kleen <[email protected]> |
| 13918 |
|
| 13919 |
PR 55139 |
| 13920 |
* c-common.c (get_atomic_generic_size): Mask with |
| 13921 |
MEMMODEL_MASK |
| 13922 |
|
| 13923 |
2012-11-07 Manuel López-Ibáñez <[email protected]> |
| 13924 |
|
| 13925 |
PR c/53063 |
| 13926 |
* c.opt (Wformat): Make it Alias Wformat=1. |
| 13927 |
(Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral, |
| 13928 |
Wformat-security,Wformat-y2k,Wformat-zero-length): Use |
| 13929 |
LangEnabledBy. |
| 13930 |
(Wformat=): RejectNegative. Use LangEnabledBy. |
| 13931 |
(Wnonnull): Use LangEnabledBy. |
| 13932 |
* c-opts.c (c_common_handle_option): Do not handle Wformat here. |
| 13933 |
* c-format.c (set_Wformat): Delete. |
| 13934 |
(decode_format_attr): Replace OPT_Wformat with OPT_Wformat_. |
| 13935 |
(maybe_read_dollar_number): Likewise. |
| 13936 |
(avoid_dollar_number): Likewise. |
| 13937 |
(finish_dollar_format_checking): Likewise. |
| 13938 |
(check_format_info): Likewise. |
| 13939 |
(check_format_info_main): Likewise. |
| 13940 |
(check_format_types): Likewise. |
| 13941 |
(format_type_warning): Likewise. |
| 13942 |
* c-common.c (int): Likewise. |
| 13943 |
(check_function_sentinel): Likewise. |
| 13944 |
* c-common.h (warn_format,set_Wformat): Do not declare here. |
| 13945 |
|
| 13946 |
2012-11-07 Manuel López-Ibáñez <[email protected]> |
| 13947 |
|
| 13948 |
PR c/53063 |
| 13949 |
* c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare, |
| 13950 |
Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros): |
| 13951 |
Use LangEnabledBy. |
| 13952 |
(Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from |
| 13953 |
common.opt. |
| 13954 |
(Wvariadic-macros): Init(1). |
| 13955 |
* c-opts.c (c_common_handle_option): Do not handle them |
| 13956 |
explicitly. |
| 13957 |
(c_common_post_options): Likewise. |
| 13958 |
(sanitize_cpp_opts): warn_unused_macros is now |
| 13959 |
cpp_warn_unused_macros. |
| 13960 |
(push_command_line_include): Likewise. |
| 13961 |
* c-common.c (warn_unknown_pragmas): Do not define. |
| 13962 |
* c-common.h (warn_unknown_pragmas): Do not declare. |
| 13963 |
|
| 13964 |
2012-11-07 Manuel López-Ibáñez <[email protected]> |
| 13965 |
|
| 13966 |
PR c/51294 |
| 13967 |
* c-common.c (conversion_warning): Handle conditional expressions. |
| 13968 |
|
| 13969 |
2012-10-29 Jonathan Wakely <[email protected]> |
| 13970 |
|
| 13971 |
PR c++/54930 |
| 13972 |
* c.opt (Wreturn_local_addr): Define new option. |
| 13973 |
|
| 13974 |
2012-10-25 Jason Merrill <[email protected]> |
| 13975 |
|
| 13976 |
* c.opt (Wvirtual-move-assign): New. |
| 13977 |
|
| 13978 |
* c.opt (Winherited-variadic-ctor): New. |
| 13979 |
|
| 13980 |
2012-10-25 Marc Glisse <[email protected]> |
| 13981 |
|
| 13982 |
PR c++/54427 |
| 13983 |
* c-common.c (scalar_to_vector): Handle VEC_COND_EXPR. |
| 13984 |
|
| 13985 |
2012-10-23 Joseph Myers <[email protected]> |
| 13986 |
|
| 13987 |
* c-common.h (pch_cpp_save_state): Declare. |
| 13988 |
* c-target.def (c_preinclude): New hook. |
| 13989 |
* c-opts.c (done_preinclude): New. |
| 13990 |
(push_command_line_include): Handle default preincluded header. |
| 13991 |
(cb_file_change): Call pch_cpp_save_state when calling |
| 13992 |
push_command_line_include. |
| 13993 |
* c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved) |
| 13994 |
(pch_cpp_save_state): New. |
| 13995 |
(pch_init): Call pch_cpp_save_state conditionally, instead of |
| 13996 |
calling cpp_save_state. |
| 13997 |
|
| 13998 |
2012-10-20 Manuel López-Ibáñez <[email protected]> |
| 13999 |
|
| 14000 |
PR c/53063 |
| 14001 |
PR c/40989 |
| 14002 |
* c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit, |
| 14003 |
Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess, |
| 14004 |
Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point, |
| 14005 |
Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused, |
| 14006 |
Wvolatile-register-var): Add LangEnabledBy or EnabledBy. |
| 14007 |
* c-opts.c (c_common_handle_option): Remove explicit handling from |
| 14008 |
here. |
| 14009 |
(c_common_post_options): Likewise. |
| 14010 |
|
| 14011 |
2012-10-18 Eric Botcazou <[email protected]> |
| 14012 |
|
| 14013 |
* c-ada-spec.c (LOCATION_COL): Delete. |
| 14014 |
(compare_location): New function. |
| 14015 |
(compare_node): Use it. |
| 14016 |
(compare_comment): Likewise. |
| 14017 |
|
| 14018 |
2012-10-16 Manuel López-Ibáñez <[email protected]> |
| 14019 |
|
| 14020 |
PR c/53063 |
| 14021 |
PR c/40989 |
| 14022 |
* c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy. |
| 14023 |
* c-opts.c (c_common_handle_option): Do not set them here. Add |
| 14024 |
comment. |
| 14025 |
(c_common_post_options): Likewise. |
| 14026 |
|
| 14027 |
2012-10-16 Eric Botcazou <[email protected]> |
| 14028 |
|
| 14029 |
* c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define. |
| 14030 |
(dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially. |
| 14031 |
Remove POINTER_TYPE handling, add large unsigned handling and use |
| 14032 |
ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers. |
| 14033 |
|
| 14034 |
2012-10-12 Jakub Jelinek <[email protected]> |
| 14035 |
|
| 14036 |
PR c/54381 |
| 14037 |
* c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype. |
| 14038 |
* c-common.c (sizeof_pointer_memaccess_warning): Take array of 3 |
| 14039 |
locs and array of 3 trees instead of just single loc and single |
| 14040 |
sizeof_arg tree. Handle __builtin___*_chk builtins too, and |
| 14041 |
also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins. |
| 14042 |
For *cmp* builtins that take two sources strings report warnings |
| 14043 |
about first and second source, not about destination and source. |
| 14044 |
|
| 14045 |
2012-10-12 Marc Glisse <[email protected]> |
| 14046 |
|
| 14047 |
PR c++/53055 |
| 14048 |
* c-common.h (enum ref_operator) [RO_ARROW_STAR]: New. |
| 14049 |
|
| 14050 |
2012-10-11 Eric Botcazou <[email protected]> |
| 14051 |
|
| 14052 |
* c-ada-spec.c (dump_ada_template): Bail out for template declarations |
| 14053 |
declaring something coming from another file. |
| 14054 |
|
| 14055 |
2012-10-10 Arnaud Charlet <[email protected]> |
| 14056 |
|
| 14057 |
PR ada/54845 |
| 14058 |
* c-ada-spec.c (print_ada_struct_decl): Increase buf size. |
| 14059 |
|
| 14060 |
2012-10-09 Paolo Carlini <[email protected]> |
| 14061 |
|
| 14062 |
PR c++/54194 |
| 14063 |
* c-common.c (warn_about_parentheses): Add location_t parameter; |
| 14064 |
use EXPR_LOC_OR_LOC. |
| 14065 |
* c-common.h: Update declaration. |
| 14066 |
|
| 14067 |
2012-10-09 Marc Glisse <[email protected]> |
| 14068 |
|
| 14069 |
PR c++/54427 |
| 14070 |
* c-common.c (scalar_to_vector): Moved from c-typeck.c. Support |
| 14071 |
more operations. Make error messages optional. |
| 14072 |
* c-common.h (enum stv_conv): Moved from c-typeck.c. |
| 14073 |
(scalar_to_vector): Declare. |
| 14074 |
|
| 14075 |
2012-10-08 Jason Merrill <[email protected]> |
| 14076 |
|
| 14077 |
* c-common.c (c_common_reswords): Add thread_local. |
| 14078 |
|
| 14079 |
2012-10-08 Dodji Seketeli <[email protected]> |
| 14080 |
|
| 14081 |
PR c++/53528 C++11 attribute support |
| 14082 |
* c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare |
| 14083 |
new functions. |
| 14084 |
* c-common.c (check_cxx_fundamental_alignment_constraints): New |
| 14085 |
static function. |
| 14086 |
(handle_aligned_attribute): In choose strictest alignment |
| 14087 |
among many. Use new check_cxx_fundamental_alignment_constraints. |
| 14088 |
(handle_transparent_union_attribute): In c++11 attribute syntax, |
| 14089 |
don't look through typedefs. |
| 14090 |
|
| 14091 |
2012-10-04 Arnaud Charlet <[email protected]> |
| 14092 |
|
| 14093 |
* c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW. |
| 14094 |
* c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition |
| 14095 |
out of dumpfile.h. |
| 14096 |
|
| 14097 |
2012-09-25 Dehao Chen <[email protected]> |
| 14098 |
|
| 14099 |
PR middle-end/54645 |
| 14100 |
* c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data |
| 14101 |
map when read in the pch. |
| 14102 |
|
| 14103 |
2012-09-18 Arnaud Charlet <[email protected]> |
| 14104 |
|
| 14105 |
* c-ada-spec.c: Style fixes. |
| 14106 |
|
| 14107 |
2012-09-18 Thomas Quinot <[email protected]> |
| 14108 |
|
| 14109 |
* c.opt (-fada-spec-parent): Define new command line switch. |
| 14110 |
* c-ada-spec.c (get_ada_package): When -fada-spec-parent |
| 14111 |
is specified, generate binding spec as a child of the specified unit. |
| 14112 |
|
| 14113 |
2012-09-13 Paolo Carlini <[email protected]> |
| 14114 |
Manuel López-Ibáñez <[email protected]> |
| 14115 |
|
| 14116 |
PR c++/53210 |
| 14117 |
* c.opt ([Winit-self]): Enabled by -Wall in C++. |
| 14118 |
|
| 14119 |
2012-08-23 Arnaud Charlet <[email protected]> |
| 14120 |
|
| 14121 |
* c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only |
| 14122 |
for pointers, and add missing Convention C pragma. |
| 14123 |
(print_ada_struct_decl): Add missing aliased keyword. |
| 14124 |
(dump_ads): Add pragma Ada_2005 and Style_Checks (Off). |
| 14125 |
|
| 14126 |
2012-08-17 Jakub Jelinek <[email protected]> |
| 14127 |
|
| 14128 |
* c-common.c (sizeof_pointer_memaccess_warning): New function. |
| 14129 |
* c.opt (-Wsizeof-pointer-memaccess): Add new option. |
| 14130 |
* c-opts.c (c_common_handle_option): Enable it for -Wall. |
| 14131 |
* c-common.h (sizeof_pointer_memaccess_warning): Add prototype. |
| 14132 |
* c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def. |
| 14133 |
|
| 14134 |
2012-08-10 Richard Guenther <[email protected]> |
| 14135 |
|
| 14136 |
* c-pretty-print.c (pp_c_expression): Handle anonymous SSA names. |
| 14137 |
|
| 14138 |
2012-08-07 Steven Bosscher <[email protected]> |
| 14139 |
|
| 14140 |
* c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush |
| 14141 |
instead of separate pp_newline and pp_flush. |
| 14142 |
(print_c_tree): Likewise. |
| 14143 |
|
| 14144 |
2012-07-26 Richard Henderson <[email protected]> |
| 14145 |
|
| 14146 |
* c-common.c (handle_hot_attribute): Allow labels. |
| 14147 |
(handle_cold_attribute): Likewise. |
| 14148 |
|
| 14149 |
2012-07-20 Jakub Jelinek <[email protected]> |
| 14150 |
|
| 14151 |
PR c++/28656 |
| 14152 |
* c-common.c (check_function_nonnull): Handle multiple nonnull |
| 14153 |
attributes properly. |
| 14154 |
|
| 14155 |
2012-07-16 Steven Bosscher <[email protected]> |
| 14156 |
|
| 14157 |
* c-gimplify.c: Include dumpfile.h instead of tree-dump.h. |
| 14158 |
* c-ada-spec.c: Likewise. |
| 14159 |
* c-dump.c (dump_stmt): Move to cp/dump.c, the only user. |
| 14160 |
|
| 14161 |
2012-07-14 Steven Bosscher <[email protected]> |
| 14162 |
|
| 14163 |
* c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define. |
| 14164 |
Remove code conditional on it. |
| 14165 |
|
| 14166 |
2012-07-11 Steven Bosscher <[email protected]> |
| 14167 |
|
| 14168 |
* c-gimplify.c: Do not include basic-block.h. |
| 14169 |
* c-common.c: Do not include linfuncs.h. |
| 14170 |
|
| 14171 |
2012-07-08 Steven Bosscher <[email protected]> |
| 14172 |
|
| 14173 |
* c-common.h: Include tree.h. |
| 14174 |
|
| 14175 |
2012-07-02 Jason Merrill <[email protected]> |
| 14176 |
|
| 14177 |
PR c++/53524 |
| 14178 |
* c-common.c (get_priority): Call default_conversion. |
| 14179 |
|
| 14180 |
2012-07-01 Uros Bizjak <[email protected]> |
| 14181 |
|
| 14182 |
* c-pch.c (c_common_write_pch): Remove unused variables. |
| 14183 |
|
| 14184 |
2012-06-29 Steven Bosscher <[email protected]> |
| 14185 |
|
| 14186 |
* cppspec.c: Moved from gcc/ to here. |
| 14187 |
|
| 14188 |
2012-06-27 Kai Tietz <[email protected]> |
| 14189 |
|
| 14190 |
PR preprocessor/37215 |
| 14191 |
* c-ppoutput.c (preprocess_file): Check for nonempty buffer. |
| 14192 |
|
| 14193 |
2012-06-21 Steven Bosscher <[email protected]> |
| 14194 |
|
| 14195 |
* c-common.h (c_common_print_pch_checksum): Remove. |
| 14196 |
* c-pch.c: Do not include output.h. |
| 14197 |
(CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME. |
| 14198 |
(asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined. |
| 14199 |
(asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined. |
| 14200 |
(struct c_pch_header): Remove. |
| 14201 |
(get_ident): Update gpch version. |
| 14202 |
(pch_init): Do not print executable_checksum to asm_out_file. |
| 14203 |
Do not fail if there is no asm_out_file to read back from. Set |
| 14204 |
asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined. |
| 14205 |
(c_common_write_pch): Verify that nothing was written to asm_out_file |
| 14206 |
since pch_init was called. Do not write a c_pch_header, and do not |
| 14207 |
copy from asm_out_file to the PCH. |
| 14208 |
(c_common_read_pch): Do not read a c_pch_header, and do not restore |
| 14209 |
the content of asm_out_file from the PCH. |
| 14210 |
(c_common_print_pch_checksum): Remove. |
| 14211 |
* c-opts.c (c_common_init): Print out executable_checksum directly. |
| 14212 |
|
| 14213 |
2012-06-19 Steven Bosscher <[email protected]> |
| 14214 |
|
| 14215 |
* c-target.def (objc_declare_unresolved_class_reference, |
| 14216 |
objc_declare_class_definition): Add new hooks. |
| 14217 |
|
| 14218 |
2012-06-19 Steven Bosscher <[email protected]> |
| 14219 |
|
| 14220 |
* c-lex.c: Do not include output.h. |
| 14221 |
(cb_ident): Try to put out .ident with targetm.asm_out.output_ident. |
| 14222 |
Remove uses of ASM_OUTPUT_IDENT. |
| 14223 |
|
| 14224 |
2012-06-15 Marc Glisse <[email protected]> |
| 14225 |
|
| 14226 |
PR c++/51033 |
| 14227 |
* c-common.h (c_build_vec_perm_expr): Move decl here. |
| 14228 |
* c-common.c (c_build_vec_perm_expr): Move definition |
| 14229 |
here. |
| 14230 |
|
| 14231 |
2012-06-06 Steven Bosscher <[email protected]> |
| 14232 |
|
| 14233 |
* c.opt (fconserve-space): Turn into a no-op. |
| 14234 |
|
| 14235 |
2012-06-04 Sterling Augustine <[email protected]> |
| 14236 |
|
| 14237 |
* c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator. |
| 14238 |
* c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at |
| 14239 |
both the start and end of the function. |
| 14240 |
|
| 14241 |
2012-06-04 Steven Bosscher <[email protected]> |
| 14242 |
|
| 14243 |
* c-common.c: Do not include output.h. |
| 14244 |
* c-pragma.c: Likewise. |
| 14245 |
|
| 14246 |
2012-06-04 Steven Bosscher <[email protected]> |
| 14247 |
|
| 14248 |
* error.c (dump_decl): Check pp_c_flag_gnu_v3. |
| 14249 |
(decl_as_dwarf_string, lang_decl_dwarf_name): New functions. |
| 14250 |
(lang_decl_name): Handle namespace decls. |
| 14251 |
|
| 14252 |
2012-05-31 Steven Bosscher <[email protected]> |
| 14253 |
|
| 14254 |
* c-ada-spec.c: Do not include output.h. |
| 14255 |
* c-semantics.c: Likewise. |
| 14256 |
|
| 14257 |
2012-05-29 Joseph Myers <[email protected]> |
| 14258 |
|
| 14259 |
* c-common.c: Fix typo. |
| 14260 |
|
| 14261 |
2012-05-29 Michael Matz <[email protected]> |
| 14262 |
|
| 14263 |
* c-common.h (c_expand_decl): Remove prototype. |
| 14264 |
|
| 14265 |
2012-05-29 Manuel López-Ibáñez <[email protected]> |
| 14266 |
|
| 14267 |
* c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall). |
| 14268 |
* c-opts.c (c_common_handle_option): Remove code handling |
| 14269 |
warn_missing_braces. |
| 14270 |
|
| 14271 |
2012-05-28 Paolo Carlini <[email protected]> |
| 14272 |
|
| 14273 |
PR c++/25137 |
| 14274 |
* c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable |
| 14275 |
-Wmissing_braces. |
| 14276 |
|
| 14277 |
2012-05-22 Dodji Seketeli <[email protected]> |
| 14278 |
|
| 14279 |
PR c++/53322 |
| 14280 |
* c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused). |
| 14281 |
|
| 14282 |
2012-05-17 Manuel López-Ibáñez <[email protected]> |
| 14283 |
|
| 14284 |
* c.opt (--pedantic-errors,-pedantic-errors): Do not handle here. |
| 14285 |
* c-opts.c (c_common_handle_option): Do not handle explicitly |
| 14286 |
Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors. |
| 14287 |
|
| 14288 |
2012-05-16 Dodji Seketeli <[email protected]> |
| 14289 |
|
| 14290 |
PR preprocessor/7263 |
| 14291 |
* c-lex.c (c_lex_with_flags): Pass a virtual location to the call |
| 14292 |
to cpp_classify_number. For diagnostics, use the precise location |
| 14293 |
instead of the global input_location. |
| 14294 |
|
| 14295 |
2012-05-15 Paolo Carlini <[email protected]> |
| 14296 |
|
| 14297 |
PR c++/11856 |
| 14298 |
* c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings. |
| 14299 |
|
| 14300 |
2012-05-14 Bernd Schmidt <[email protected]> |
| 14301 |
|
| 14302 |
* c-common.c (DEF_ATTR_STRING): Define and undefine as necessary. |
| 14303 |
|
| 14304 |
2012-05-14 Manuel López-Ibáñez <[email protected]> |
| 14305 |
|
| 14306 |
PR 53063 |
| 14307 |
* c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init, |
| 14308 |
Wreorder): Use LangEnabledBy. |
| 14309 |
* c-opts.c (c_common_handle_option): Do not enable them |
| 14310 |
explicitly. Call lang-specific generated functions. |
| 14311 |
(c_common_post_options): Do not set them here. |
| 14312 |
|
| 14313 |
2012-05-13 Manuel López-Ibáñez <[email protected]> |
| 14314 |
|
| 14315 |
* c.opt (Wclobbered,Wempty-body,Wignored-qualifiers, |
| 14316 |
Wmissing-field-initializers,Wmissing-parameter-type, |
| 14317 |
Wold-style-declaration,Woverride-init): Use EnabledBy. |
| 14318 |
* c-opts.c (c_common_post_options): Do not set here explicitly. |
| 14319 |
|
| 14320 |
2012-05-11 Manuel López-Ibáñez <[email protected]> |
| 14321 |
|
| 14322 |
PR 53063 |
| 14323 |
* c-opts.c (c_common_handle_option): Use handle_generated_option |
| 14324 |
to enable sub-options. |
| 14325 |
|
| 14326 |
2012-05-10 Paolo Carlini <[email protected]> |
| 14327 |
|
| 14328 |
PR c++/53158 |
| 14329 |
* c-common.c (warnings_for_convert_and_check): Use warning_at. |
| 14330 |
|
| 14331 |
2012-05-10 Richard Guenther <[email protected]> |
| 14332 |
|
| 14333 |
* c-common.c (c_sizeof_or_alignof_type): Remove assert and |
| 14334 |
adjust commentary about TYPE_IS_SIZETYPE types. |
| 14335 |
|
| 14336 |
2012-05-09 Manuel López-Ibáñez <[email protected]> |
| 14337 |
|
| 14338 |
PR c++/53261 |
| 14339 |
* c-common.c (warn_logical_operator): Check that argument of |
| 14340 |
integer_zerop is not NULL. |
| 14341 |
|
| 14342 |
2012-05-05 Manuel López-Ibáñez <[email protected]> |
| 14343 |
|
| 14344 |
PR c/43772 |
| 14345 |
* c-common.c (warn_logical_operator): Do not warn if either side |
| 14346 |
is already true or false. |
| 14347 |
|
| 14348 |
2012-05-04 Manuel López-Ibáñez <[email protected]> |
| 14349 |
|
| 14350 |
PR c/51712 |
| 14351 |
* c-common.c (expr_original_type): New. |
| 14352 |
(shorten_compare): Do not warn for enumeration types. |
| 14353 |
|
| 14354 |
2012-05-03 Manuel López-Ibáñez <[email protected]> |
| 14355 |
|
| 14356 |
* c.opt (fpermissive): Add Var(flag_permissive). |
| 14357 |
|
| 14358 |
2012-04-30 Marc Glisse <[email protected]> |
| 14359 |
|
| 14360 |
PR c++/51033 |
| 14361 |
* c-common.c (convert_vector_to_pointer_for_subscript): New function. |
| 14362 |
* c-common.h (convert_vector_to_pointer_for_subscript): Declare it. |
| 14363 |
|
| 14364 |
2012-04-30 Dodji Seketeli <[email protected]> |
| 14365 |
|
| 14366 |
Add -Wvarargs option |
| 14367 |
* c.opt (Wvarargs): Define new option. |
| 14368 |
|
| 14369 |
2012-04-30 Manuel López-Ibáñez <[email protected]> |
| 14370 |
|
| 14371 |
* c-common.c (check_function_arguments): Replace |
| 14372 |
Wmissing-format-attribute with Wsuggest-attribute=format. |
| 14373 |
|
| 14374 |
2012-04-30 Manuel López-Ibáñez <[email protected]> |
| 14375 |
|
| 14376 |
* c.opt (Wsuggest-attribute=format): New. Alias of |
| 14377 |
Wmissing-format-attribute. |
| 14378 |
* c-format.c (decode_format_type): Replace |
| 14379 |
Wmissing-format-attribute with Wsuggest-attribute=format. |
| 14380 |
(check_function_format): Likewise. |
| 14381 |
|
| 14382 |
2012-04-27 Ollie Wild <[email protected]> |
| 14383 |
|
| 14384 |
* c-common.c: Add CPP_W_LITERAL_SUFFIX mapping. |
| 14385 |
* c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix. |
| 14386 |
* c.opt: Add Wliteral-suffix. |
| 14387 |
|
| 14388 |
2012-04-22 Manuel López-Ibáñez <[email protected]> |
| 14389 |
|
| 14390 |
PR c/44774 |
| 14391 |
* c.opt (Wpedantic): New. |
| 14392 |
(pedantic): Alias Wpedantic. |
| 14393 |
* c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic. |
| 14394 |
(c_common_post_options): Likewise. |
| 14395 |
(sanitize_cpp_opts): Likewise. |
| 14396 |
* c-lex.c (interpret_float): Likewise. |
| 14397 |
* c-format.c (check_format_types): Likewise. |
| 14398 |
* c-common.c (pointer_int_sum): Likewise. |
| 14399 |
(c_sizeof_or_alignof_type): Likewise. |
| 14400 |
(c_add_case_label): Likewise. |
| 14401 |
(c_do_switch_warnings): Likewise. |
| 14402 |
* c-pragma.c (handle_pragma_float_const_decimal64): Likewise. |
| 14403 |
|
| 14404 |
2012-04-15 Jason Merrill <[email protected]> |
| 14405 |
|
| 14406 |
PR c++/52818 |
| 14407 |
* c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99. |
| 14408 |
(C_STD_NAME): Distinguish between C++98 and C++11. |
| 14409 |
|
| 14410 |
2012-04-11 Eric Botcazou <[email protected]> |
| 14411 |
|
| 14412 |
PR target/52624 |
| 14413 |
* c-common.h (uint16_type_node): Rename into... |
| 14414 |
(c_uint16_type_node): ...this. |
| 14415 |
* c-common.c (c_common_nodes_and_builtins): Adjust for above renaming. |
| 14416 |
* c-cppbuiltin.c (builtin_define_stdint_macros): Likewise. |
| 14417 |
|
| 14418 |
2012-04-10 Manuel López-Ibáñez <[email protected]> |
| 14419 |
|
| 14420 |
* c-common.c (warn_if_unused_value): Move definition to here. |
| 14421 |
* c-common.h (warn_if_unused_value): Move declaration to here. |
| 14422 |
|
| 14423 |
2012-03-23 William Bader <[email protected]> |
| 14424 |
|
| 14425 |
* c-lex.c (c_lex_with_flags): Avoid declarations after stmts. |
| 14426 |
|
| 14427 |
2012-03-20 Jason Merrill <[email protected]> |
| 14428 |
|
| 14429 |
* c-common.h (enum cxx_dialect): Add cxx1y. |
| 14430 |
* c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect |
| 14431 |
test. |
| 14432 |
* c-cppbuiltin.c (c_cpp_builtins): Likewise. |
| 14433 |
* c-opts.c (c_common_post_options): Likewise. |
| 14434 |
(set_std_cxx1y): New. |
| 14435 |
(c_common_handle_option): Call it. |
| 14436 |
* c.opt (-std=c++1y, -std=gnu++1y): New flags. |
| 14437 |
|
| 14438 |
2012-03-19 Paolo Carlini <[email protected]> |
| 14439 |
|
| 14440 |
PR c++/14710 |
| 14441 |
* c.opt ([Wuseless-cast]): Add. |
| 14442 |
|
| 14443 |
2012-03-16 Richard Guenther <[email protected]> |
| 14444 |
|
| 14445 |
* c-pretty-print.c (pp_c_initializer_list): Adjust. |
| 14446 |
|
| 14447 |
2012-03-15 Manuel López-Ibáñez <[email protected]> |
| 14448 |
|
| 14449 |
PR c++/44783 |
| 14450 |
* c.opt (ftemplate-backtrace-limit) Add. |
| 14451 |
|
| 14452 |
2012-03-12 Rainer Orth <[email protected]> |
| 14453 |
|
| 14454 |
* c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix |
| 14455 |
handling. |
| 14456 |
* c-pragma.c (handle_pragma_extern_prefix): Remove. |
| 14457 |
(init_pragma): Don't register extern_prefix. |
| 14458 |
|
| 14459 |
2012-03-12 Richard Guenther <[email protected]> |
| 14460 |
|
| 14461 |
* c-common.c (c_common_get_narrower): Use c_common_type_for_size. |
| 14462 |
(builtin_type_for_size): Likewise. |
| 14463 |
|
| 14464 |
2012-02-13 Jakub Jelinek <[email protected]> |
| 14465 |
|
| 14466 |
PR c++/52215 |
| 14467 |
* c-common.c (sync_resolve_params): Don't decide whether to convert |
| 14468 |
or not based on TYPE_SIZE comparison, convert whenever arg_type |
| 14469 |
is unsigned INTEGER_TYPE. |
| 14470 |
|
| 14471 |
2012-02-06 Paolo Carlini <[email protected]> |
| 14472 |
|
| 14473 |
PR c/52118 |
| 14474 |
* c.opt ([Wunused-local-typedefs]): Fix description. |
| 14475 |
|
| 14476 |
2012-01-24 Mike Stump <[email protected]> |
| 14477 |
|
| 14478 |
* c-common.c (c_common_type_for_mode): Match signed/unsigned types |
| 14479 |
exactly. |
| 14480 |
|
| 14481 |
2012-01-18 Richard Guenther <[email protected]> |
| 14482 |
|
| 14483 |
* c-opts.c (c_common_post_options): Reset LTO flags if |
| 14484 |
we are about to generate a PCH. |
| 14485 |
|
| 14486 |
2012-01-17 Paolo Carlini <[email protected]> |
| 14487 |
|
| 14488 |
PR c++/51777 |
| 14489 |
* c-pretty-print.c (pp_c_integer_constant): For unsigned constants |
| 14490 |
use pp_unsigned_wide_integer. |
| 14491 |
|
| 14492 |
2012-01-10 Richard Guenther <[email protected]> |
| 14493 |
|
| 14494 |
PR middle-end/51806 |
| 14495 |
* c-opts.c (c_common_handle_option): Move -Werror handling |
| 14496 |
to language independent code. |
| 14497 |
|
| 14498 |
2012-01-05 Richard Guenther <[email protected]> |
| 14499 |
|
| 14500 |
PR middle-end/51764 |
| 14501 |
* c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here |
| 14502 |
from common.opt. |
| 14503 |
|
| 14504 |
2011-12-30 Paolo Carlini <[email protected]> |
| 14505 |
|
| 14506 |
PR c++/51316 |
| 14507 |
* c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof |
| 14508 |
of array types with an unknown bound. |
| 14509 |
|
| 14510 |
2011-12-20 Joseph Myers <[email protected]> |
| 14511 |
|
| 14512 |
* c-common.c (flag_isoc99): Update comment to refer to C11. |
| 14513 |
(flag_isoc1x): Change to flag_isoc11. |
| 14514 |
* c-common.h (flag_isoc99): Update comment to refer to C11. |
| 14515 |
(flag_isoc1x): Change to flag_isoc11. |
| 14516 |
* c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to |
| 14517 |
C11. |
| 14518 |
* c-opts.c (set_std_c1x): Change to set_std_c11. |
| 14519 |
(c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11. |
| 14520 |
Call set_std_c11. |
| 14521 |
(set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11. |
| 14522 |
(set_std_c1): Use CLK_STDC11 and CLK_GNUC11. |
| 14523 |
* c.opt (std=c1x): Change to std=c11. Document as non-draft |
| 14524 |
standard. |
| 14525 |
(std=c1x, std=iso9899:2011): Add as aliases of std=c11. |
| 14526 |
(std=gnu1x): Change to std=gnu11. Refer to non-draft standard. |
| 14527 |
(std=gnu1x): Make alias of std=gnu11. |
| 14528 |
|
| 14529 |
2011-12-19 Jason Merrill <[email protected]> |
| 14530 |
|
| 14531 |
PR c++/51228 |
| 14532 |
* c-common.c (handle_transparent_union_attribute): Check the first |
| 14533 |
field if the type is complete. |
| 14534 |
|
| 14535 |
2011-12-15 Jonathan Wakely <[email protected]> |
| 14536 |
|
| 14537 |
PR libstdc++/51365 |
| 14538 |
* c-common.c (RID_IS_FINAL): Add. |
| 14539 |
* c-common.h (RID_IS_FINAL): Add. |
| 14540 |
|
| 14541 |
2011-11-30 Iain Sandoe <[email protected]> |
| 14542 |
|
| 14543 |
* c.opt (fgnu-runtime): Provide full description. |
| 14544 |
(fnext-runtime): Likewise. |
| 14545 |
* c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove. |
| 14546 |
|
| 14547 |
2011-11-28 Andrew MacLeod <[email protected]> |
| 14548 |
|
| 14549 |
* c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic |
| 14550 |
predefines in one place. Add LOCK_FREE predefines. |
| 14551 |
(c_cpp_builtins): Move Legacy HAVE_SYNC predefines to |
| 14552 |
new func. |
| 14553 |
|
| 14554 |
2011-11-24 Andrew MacLeod <[email protected]> |
| 14555 |
|
| 14556 |
PR c/51256 |
| 14557 |
* c-common.c (get_atomic_generic_size): Check for various error |
| 14558 |
conditions |
| 14559 |
(resolve_overloaded_atomic_exchange, |
| 14560 |
resolve_overloaded_atomic_compare_exchange, |
| 14561 |
resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return |
| 14562 |
error_mark_node for error conditions. |
| 14563 |
|
| 14564 |
2011-11-08 Richard Guenther <[email protected]> |
| 14565 |
|
| 14566 |
PR middle-end/51010 |
| 14567 |
* c-pretty-print.c (pp_c_expression): Handle SSA_NAMEs. |
| 14568 |
|
| 14569 |
2011-11-07 Richard Henderson <[email protected]> |
| 14570 |
Aldy Hernandez <[email protected]> |
| 14571 |
Torvald Riegel <[email protected]> |
| 14572 |
|
| 14573 |
Merged from transactional-memory. |
| 14574 |
|
| 14575 |
* c-common.c (handle_tm_wrap_attribute, |
| 14576 |
handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New. |
| 14577 |
(struct c_common_reswords): Added __transaction* keywords. |
| 14578 |
(struct c_common_attribute_table): Added transaction* and tm_regparm |
| 14579 |
attributes. |
| 14580 |
* c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT* |
| 14581 |
masks. |
| 14582 |
(parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr, |
| 14583 |
find_tm_attribute): Declare. |
| 14584 |
|
| 14585 |
2011-11-07 Jason Merrill <[email protected]> |
| 14586 |
|
| 14587 |
PR c++/35688 |
| 14588 |
* c-common.c, c-common.h: Revert yesterday's changes. |
| 14589 |
|
| 14590 |
2011-11-06 Jason Merrill <[email protected]> |
| 14591 |
|
| 14592 |
PR c++/35688 |
| 14593 |
* c-common.c (decl_has_visibility_attr): Split out from... |
| 14594 |
(c_determine_visibility): ...here. |
| 14595 |
* c-common.h: Declare it. |
| 14596 |
|
| 14597 |
2011-11-06 Joseph Myers <[email protected]> |
| 14598 |
|
| 14599 |
* c-common.c (c_common_reswords): Add _Alignas and _Alignof. |
| 14600 |
(c_sizeof_or_alignof_type): Diagnose alignof applied to a function |
| 14601 |
type. |
| 14602 |
(check_user_alignment): New. Split out of |
| 14603 |
handle_aligned_attribute. Disallow integer constants with |
| 14604 |
noninteger types. Conditionally allow zero. |
| 14605 |
(handle_aligned_attribute): Use check_user_alignment. |
| 14606 |
* c-common.h (RID_ALIGNAS, check_user_alignment): New. |
| 14607 |
|
| 14608 |
2011-11-06 Andrew MacLeod <[email protected]> |
| 14609 |
Richard Henderson <[email protected]> |
| 14610 |
|
| 14611 |
Merged from cxx-mem-model. |
| 14612 |
|
| 14613 |
* c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns. |
| 14614 |
* c-common.c (sync_resolve_params, sync_resolve_return): Only tweak |
| 14615 |
parameters that are the same type size. |
| 14616 |
(get_atomic_generic_size): New. Find size of generic |
| 14617 |
atomic function parameters and do typechecking. |
| 14618 |
(add_atomic_size_parameter): New. Insert size into parameter list. |
| 14619 |
(resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to |
| 14620 |
either __atomic_exchange_n or external library call. |
| 14621 |
(resolve_overloaded_atomic_compare_exchange): Restructure |
| 14622 |
__atomic_compare_exchange to either _n variant or external library call. |
| 14623 |
(resolve_overloaded_atomic_load): Restructure __atomic_load to either |
| 14624 |
__atomic_load_n or an external library call. |
| 14625 |
(resolve_overloaded_atomic_store): Restructure __atomic_store to either |
| 14626 |
__atomic_store_n or an external library call. |
| 14627 |
(resolve_overloaded_builtin): Handle new __atomic builtins. |
| 14628 |
|
| 14629 |
2011-11-04 Eric Botcazou <[email protected]> |
| 14630 |
|
| 14631 |
PR c++/50608 |
| 14632 |
* c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1. |
| 14633 |
(fold_offsetof_1): Make global. Remove STOP_REF argument and adjust. |
| 14634 |
<INDIRECT_REF>: Return the argument. |
| 14635 |
<ARRAY_REF>: Remove special code for negative offset. |
| 14636 |
Call fold_build_pointer_plus instead of size_binop. |
| 14637 |
(fold_offsetof): Remove STOP_REF argument and adjust. |
| 14638 |
* c-common.h (fold_offsetof_1): Declare. |
| 14639 |
(fold_offsetof): Remove STOP_REF argument. |
| 14640 |
|
| 14641 |
2011-11-02 Paolo Carlini <[email protected]> |
| 14642 |
|
| 14643 |
PR c++/50810 |
| 14644 |
* c-opts.c (c_common_handle_option): Enable -Wnarrowing as part |
| 14645 |
of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default |
| 14646 |
Wnarrowing for C++0x and C++98. |
| 14647 |
* c.opt ([Wnarrowing]): Update. |
| 14648 |
|
| 14649 |
2011-11-01 Paolo Carlini <[email protected]> |
| 14650 |
|
| 14651 |
PR c++/44277 |
| 14652 |
* c.opt: Add Wzero-as-null-pointer-constant. |
| 14653 |
|
| 14654 |
2011-10-31 Jason Merrill <[email protected]> |
| 14655 |
|
| 14656 |
* c.opt (-fdeduce-init-list): Off by default. |
| 14657 |
|
| 14658 |
PR c++/50920 |
| 14659 |
* c-common.h (cxx_dialect): Add cxx11 and cxx03. |
| 14660 |
* c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03, |
| 14661 |
and -Wc++11-compat. |
| 14662 |
* c-opts.c (set_std_cxx11): Rename from set_std_cxx0x. |
| 14663 |
|
| 14664 |
2011-10-27 Roberto Agostino Vitillo <[email protected]> |
| 14665 |
|
| 14666 |
PR c++/30066 |
| 14667 |
* c.opt (fvisibility-inlines-hidden): Description change. |
| 14668 |
|
| 14669 |
2011-10-26 Ed Smith-Rowland <[email protected]> |
| 14670 |
|
| 14671 |
Implement C++11 user-defined literals. |
| 14672 |
* c-common.c (build_userdef_literal): New. |
| 14673 |
* c-common.def: New tree code. |
| 14674 |
* c-common.h (tree_userdef_literal): New tree struct and accessors. |
| 14675 |
* c-lex.c (interpret_float): Add suffix parm. |
| 14676 |
(c_lex_with_flags): Build literal tokens. |
| 14677 |
|
| 14678 |
2011-10-23 Paolo Carlini <[email protected]> |
| 14679 |
|
| 14680 |
PR c++/50841 |
| 14681 |
Revert: |
| 14682 |
2011-10-23 Paolo Carlini <[email protected]> |
| 14683 |
|
| 14684 |
PR c++/50810 |
| 14685 |
* c-opts.c (c_common_handle_option): Enable -Wnarrowing as part |
| 14686 |
of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default |
| 14687 |
Wnarrowing for C++0x and C++98. |
| 14688 |
* c.opt ([Wnarrowing]): Update. |
| 14689 |
|
| 14690 |
2011-10-23 Paolo Carlini <[email protected]> |
| 14691 |
|
| 14692 |
PR c++/50810 |
| 14693 |
* c-opts.c (c_common_handle_option): Enable -Wnarrowing as part |
| 14694 |
of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default |
| 14695 |
Wnarrowing for C++0x and C++98. |
| 14696 |
* c.opt ([Wnarrowing]): Update. |
| 14697 |
|
| 14698 |
2011-10-21 Paolo Carlini <[email protected]> |
| 14699 |
|
| 14700 |
PR c++/45385 |
| 14701 |
* c-common.c (conversion_warning): Remove code looking for |
| 14702 |
artificial operands. |
| 14703 |
|
| 14704 |
2011-10-18 Dodji Seketeli <[email protected]> |
| 14705 |
|
| 14706 |
PR bootstrap/50760 |
| 14707 |
* c-lex.c (fe_file_change): Use LINEMAP_SYSP when |
| 14708 |
!NO_IMPLICIT_EXTERN_C. |
| 14709 |
|
| 14710 |
2011-10-17 Michael Spertus <[email protected]> |
| 14711 |
|
| 14712 |
* c-common.c (c_common_reswords): Add __bases, |
| 14713 |
__direct_bases. |
| 14714 |
* c-common.h: Add RID_BASES and RID_DIRECT_BASES. |
| 14715 |
|
| 14716 |
2011-10-17 Paolo Carlini <[email protected]> |
| 14717 |
|
| 14718 |
PR c++/50757 |
| 14719 |
* c.opt ([Wnonnull]): Add C++ and Objective-C++. |
| 14720 |
|
| 14721 |
2011-10-15 Tom Tromey <[email protected]> |
| 14722 |
Dodji Seketeli <[email protected]> |
| 14723 |
|
| 14724 |
* c.opt (fdebug-cpp): New option. |
| 14725 |
* c-opts.c (c_common_handle_option): Handle the option. |
| 14726 |
* c-ppoutput.c (maybe_print_line_1): New static function. Takes an |
| 14727 |
output stream in parameter. Factorized from ... |
| 14728 |
(maybe_print_line): ... this. Dump location debug information when |
| 14729 |
-fdebug-cpp is in effect. |
| 14730 |
(print_line_1): New static function. Takes an output stream in |
| 14731 |
parameter. Factorized from ... |
| 14732 |
(print_line): ... here. Dump location information when -fdebug-cpp |
| 14733 |
is in effect. |
| 14734 |
(scan_translation_unit): Dump location information when |
| 14735 |
-fdebug-cpp is in effect. |
| 14736 |
|
| 14737 |
2011-10-15 Tom Tromey <[email protected]> |
| 14738 |
Dodji Seketeli <[email protected]> |
| 14739 |
|
| 14740 |
* c.opt (ftrack-macro-expansion): New option. Handle it with and |
| 14741 |
without argument. |
| 14742 |
* c-opts.c (c_common_handle_option)<case |
| 14743 |
OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New |
| 14744 |
cases. Handle -ftrack-macro-expansion with and without argument. |
| 14745 |
|
| 14746 |
2011-10-15 Tom Tromey <[email protected]> |
| 14747 |
Dodji Seketeli <[email protected]> |
| 14748 |
|
| 14749 |
* c-ppoutput.c (scan_translation_unit, maybe_print_line) |
| 14750 |
(print_line, cb_define, do_line_change): Adjust to avoid touching |
| 14751 |
the internals of struct line_map. Use the public API instead. |
| 14752 |
* c-pch.c (c_common_read_pch): Likewise. |
| 14753 |
* c-lex.c (fe_file_change): Likewise. |
| 14754 |
|
| 14755 |
2011-10-14 Paolo Carlini <[email protected]> |
| 14756 |
|
| 14757 |
PR c++/17212 |
| 14758 |
* c.opt ([Wformat-zero-length]): Add C++ and Objective-C++. |
| 14759 |
|
| 14760 |
2011-10-11 Paolo Carlini <[email protected]> |
| 14761 |
|
| 14762 |
PR c++/33067 |
| 14763 |
* c-pretty-print.c (pp_c_floating_constant): Output |
| 14764 |
max_digits10 (in the ISO C++ WG N1822 sense) decimal digits. |
| 14765 |
|
| 14766 |
2011-10-11 Michael Meissner <[email protected]> |
| 14767 |
|
| 14768 |
* c-common.c (def_builtin_1): Delete old interface with two |
| 14769 |
parallel arrays to hold standard builtin declarations, and replace |
| 14770 |
it with a function based interface that can support creating |
| 14771 |
builtins on the fly in the future. Change all uses, and poison |
| 14772 |
the old names. Make sure 0 is not a legitimate builtin index. |
| 14773 |
* c-omp.c (c_finish_omp_barrier): Ditto. |
| 14774 |
(c_finish_omp_taskwait): Ditto. |
| 14775 |
(c_finish_omp_flush): Ditto. |
| 14776 |
|
| 14777 |
2011-10-11 Tristan Gingold <[email protected]> |
| 14778 |
|
| 14779 |
* c.opt: (fallow-parameterless-variadic-functions): New. |
| 14780 |
|
| 14781 |
2011-09-08 Dodji Seketeli <[email protected]> |
| 14782 |
|
| 14783 |
PR c++/33255 - Support -Wunused-local-typedefs warning |
| 14784 |
* c-common.h (struct c_language_function::local_typedefs): New |
| 14785 |
field. |
| 14786 |
(record_locally_defined_typedef, maybe_record_typedef_use) |
| 14787 |
(maybe_warn_unused_local_typedefs): Declare new functions. |
| 14788 |
* c-common.c (record_locally_defined_typedef) |
| 14789 |
(maybe_record_typedef_use) |
| 14790 |
(maybe_warn_unused_local_typedefs): Define new functions. |
| 14791 |
* c.opt: Declare new -Wunused-local-typedefs flag. |
| 14792 |
|
| 14793 |
2011-09-06 Eric Botcazou <[email protected]> |
| 14794 |
|
| 14795 |
PR middle-end/50266 |
| 14796 |
* c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like |
| 14797 |
computations. |
| 14798 |
|
| 14799 |
2011-09-05 Richard Guenther <[email protected]> |
| 14800 |
|
| 14801 |
* c-common.c (complete_array_type): Use ssize_int (-1) instead |
| 14802 |
of integer_minus_one_node for empty array upper bounds. |
| 14803 |
|
| 14804 |
2011-08-28 Dodji Seketeli <[email protected]> |
| 14805 |
|
| 14806 |
* c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as |
| 14807 |
it's the first time it's being called on this main TU. |
| 14808 |
|
| 14809 |
2011-08-24 Richard Guenther <[email protected]> |
| 14810 |
|
| 14811 |
PR c/49396 |
| 14812 |
* c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional. |
| 14813 |
|
| 14814 |
2011-08-22 Gabriel Charette <[email protected]> |
| 14815 |
|
| 14816 |
* c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens |
| 14817 |
defined in cpp_init_builtins and c_cpp_builtins. |
| 14818 |
|
| 14819 |
2011-08-19 Joseph Myers <[email protected]> |
| 14820 |
|
| 14821 |
* c-common.c (c_common_reswords): Add __builtin_complex. |
| 14822 |
* c-common.h (RID_BUILTIN_COMPLEX): New. |
| 14823 |
|
| 14824 |
2011-08-18 Joseph Myers <[email protected]> |
| 14825 |
|
| 14826 |
* c-common.c (c_common_reswords): Add _Noreturn. |
| 14827 |
(keyword_is_function_specifier): Handle RID_NORETURN. |
| 14828 |
* c-common.h (RID_NORETURN): New. |
| 14829 |
|
| 14830 |
2011-08-10 Artjoms Sinkarovs <[email protected]> |
| 14831 |
|
| 14832 |
* c-common.c (unsafe_conversion_p): New function. Check if it is |
| 14833 |
unsafe to convert an expression to the type. |
| 14834 |
(conversion_warning): Adjust, use unsafe_conversion_p. |
| 14835 |
* c-common.h (unsafe_conversion_p): New function declaration. |
| 14836 |
|
| 14837 |
2011-08-02 Jakub Jelinek <[email protected]> |
| 14838 |
|
| 14839 |
* c-common.h (c_finish_omp_atomic): Adjust prototype. |
| 14840 |
(c_finish_omp_taskyield): New prototype. |
| 14841 |
* c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1 |
| 14842 |
arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and |
| 14843 |
OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1 |
| 14844 |
or RHS1 have side-effects, evaluate those too in the right spot, |
| 14845 |
if it is a decl and LHS is also a decl, error out if they |
| 14846 |
aren't the same. |
| 14847 |
(c_finish_omp_taskyield): New function. |
| 14848 |
* c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107. |
| 14849 |
* c-pragma.c (omp_pragmas): Add taskyield. |
| 14850 |
* c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD. |
| 14851 |
(enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and |
| 14852 |
PRAGMA_OMP_CLAUSE_MERGEABLE. |
| 14853 |
|
| 14854 |
2011-07-25 Dodji Seketeli <[email protected]> |
| 14855 |
|
| 14856 |
* c-common.h (set_underlying_type): Remove parm name from |
| 14857 |
declaration. |
| 14858 |
|
| 14859 |
2011-07-25 Romain Geissler <[email protected]> |
| 14860 |
|
| 14861 |
* c-pretty-print.h: Search c-common.h in c-family. |
| 14862 |
|
| 14863 |
2011-07-22 Jason Merrill <[email protected]> |
| 14864 |
|
| 14865 |
PR c++/49793 |
| 14866 |
* c.opt (Wnarrowing): New. |
| 14867 |
|
| 14868 |
PR c++/30112 |
| 14869 |
* c-common.h: Declare c_linkage_bindings. |
| 14870 |
* c-pragma.c (handle_pragma_redefine_extname): Use it. |
| 14871 |
|
| 14872 |
PR c++/49813 |
| 14873 |
* c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99. |
| 14874 |
* c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well |
| 14875 |
as flag_isoc99 for 'restrict'. |
| 14876 |
(pp_c_specifier_qualifier_list): Likewise for _Complex. |
| 14877 |
|
| 14878 |
2011-07-21 Ian Lance Taylor <[email protected]> |
| 14879 |
|
| 14880 |
PR middle-end/49705 |
| 14881 |
* c-common.c (c_disable_warnings): New static function. |
| 14882 |
(c_enable_warnings): New static function. |
| 14883 |
(c_fully_fold_internal): Change local unused_p to bool. Call |
| 14884 |
c_disable_warnings and c_enable_warnings rather than change |
| 14885 |
c_inhibit_evaluation_warnings. |
| 14886 |
|
| 14887 |
2011-07-20 Jason Merrill <[email protected]> |
| 14888 |
|
| 14889 |
PR c++/6709 (DR 743) |
| 14890 |
PR c++/42603 (DR 950) |
| 14891 |
* c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h. |
| 14892 |
(CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise. |
| 14893 |
(CPP_DECLTYPE): New. |
| 14894 |
* c-common.c (c_parse_error): Handle CPP_DECLTYPE. |
| 14895 |
|
| 14896 |
2011-07-19 Richard Guenther <[email protected]> |
| 14897 |
|
| 14898 |
* c-common.c (pointer_int_sum): Use fold_build_pointer_plus. |
| 14899 |
* c-omp.c (c_finish_omp_for): Likewise. |
| 14900 |
|
| 14901 |
2011-07-12 Eric Botcazou <[email protected]> |
| 14902 |
|
| 14903 |
* c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop |
| 14904 |
body on the next line. |
| 14905 |
|
| 14906 |
2011-07-08 Jason Merrill <[email protected]> |
| 14907 |
|
| 14908 |
PR c++/45437 |
| 14909 |
* c-omp.c (check_omp_for_incr_expr): Handle preevaluation. |
| 14910 |
|
| 14911 |
PR c++/49673 |
| 14912 |
* c-common.c (c_apply_type_quals_to_decl): Don't check |
| 14913 |
TYPE_NEEDS_CONSTRUCTING. |
| 14914 |
|
| 14915 |
2011-07-06 Richard Guenther <[email protected]> |
| 14916 |
|
| 14917 |
* c-common.c (c_common_nodes_and_builtins): |
| 14918 |
Merge calls to build_common_tree_nodes and build_common_tree_nodes_2. |
| 14919 |
|
| 14920 |
2011-07-05 Richard Guenther <[email protected]> |
| 14921 |
|
| 14922 |
* c-common.c (c_common_nodes_and_builtins): Build all common |
| 14923 |
tree nodes first. |
| 14924 |
|
| 14925 |
2011-06-27 Jakub Jelinek <[email protected]> |
| 14926 |
|
| 14927 |
* c-common.h (c_tree_chain_next): New static inline function. |
| 14928 |
|
| 14929 |
* c-common.c (check_builtin_function_arguments): Handle |
| 14930 |
BUILT_IN_ASSUME_ALIGNED. |
| 14931 |
|
| 14932 |
2011-06-21 Andrew MacLeod <[email protected]> |
| 14933 |
|
| 14934 |
* c-common.c: Add sync_ or SYNC__ to builtin names. |
| 14935 |
* c-omp.c: Add sync_ or SYNC__ to builtin names. |
| 14936 |
|
| 14937 |
2011-06-20 Pierre Vittet <[email protected]> |
| 14938 |
|
| 14939 |
* c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New |
| 14940 |
handler. |
| 14941 |
(gen_pragma_handler): New union. |
| 14942 |
(internal_pragma_handler): New type. |
| 14943 |
(c_register_pragma_with_data) |
| 14944 |
(c_register_pragma_with_expansion_and_data): New functions. |
| 14945 |
|
| 14946 |
* c-pragma.c (registered_pragmas, c_register_pragma_1) |
| 14947 |
(c_register_pragma, c_register_pragma_with_expansion) |
| 14948 |
(c_invoke_pragma_handler): Changed to work with |
| 14949 |
internal_pragma_handler. |
| 14950 |
(c_register_pragma_with_data) |
| 14951 |
(c_register_pragma_with_expansion_and_data): New functions. |
| 14952 |
|
| 14953 |
2011-06-14 Joseph Myers <[email protected]> |
| 14954 |
|
| 14955 |
* c-common.c: Include common/common-target.h. |
| 14956 |
(handle_section_attribute): Use |
| 14957 |
targetm_common.have_named_sections. |
| 14958 |
* c-cppbuiltin.c: Include common/common-target.h. |
| 14959 |
(c_cpp_builtins): Use targetm_common.except_unwind_info. |
| 14960 |
|
| 14961 |
2011-06-10 Richard Guenther <[email protected]> |
| 14962 |
|
| 14963 |
* c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier |
| 14964 |
to print a IDENTIFIER_NODE. |
| 14965 |
|
| 14966 |
2011-06-09 Rainer Orth <[email protected]> |
| 14967 |
Joseph Myers <[email protected]> |
| 14968 |
|
| 14969 |
* c.opt (fbuilding-libgcc): New option. |
| 14970 |
* c-cppbuiltin.c (c_cpp_builtins): Define |
| 14971 |
__LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc. |
| 14972 |
|
| 14973 |
2011-06-07 Jason Merrill <[email protected]> |
| 14974 |
|
| 14975 |
* c-common.c (max_tinst_depth): Lower default to 900. |
| 14976 |
|
| 14977 |
* c-format.c (gcc_cxxdiag_char_table): Add 'S' format. |
| 14978 |
|
| 14979 |
2011-06-07 Richard Guenther <[email protected]> |
| 14980 |
|
| 14981 |
* c-common.c (c_common_nodes_and_builtins): Do not set |
| 14982 |
size_type_node or call set_sizetype. |
| 14983 |
|
| 14984 |
2011-06-07 Dodji Seketeli <[email protected]> |
| 14985 |
|
| 14986 |
PR debug/49130 |
| 14987 |
* c-pretty-print.c (pp_c_integer_constant): Consider the canonical |
| 14988 |
type when using pointer comparison to compare types. |
| 14989 |
|
| 14990 |
2011-06-02 Jonathan Wakely <[email protected]> |
| 14991 |
|
| 14992 |
* c.opt: Add -Wdelete-non-virtual-dtor. |
| 14993 |
* c-opts.c (c_common_handle_option): Include it in -Wall. |
| 14994 |
|
| 14995 |
2011-05-30 Nathan Froyd <[email protected]> |
| 14996 |
|
| 14997 |
PR bootstrap/49190 |
| 14998 |
|
| 14999 |
Revert: |
| 15000 |
2011-05-26 Nathan Froyd <[email protected]> |
| 15001 |
|
| 15002 |
* c-common.h (struct c_common_identifier): Inherit from tree_typed, |
| 15003 |
not tree_common. |
| 15004 |
|
| 15005 |
2011-05-27 Jakub Jelinek <[email protected]> |
| 15006 |
|
| 15007 |
PR c++/49165 |
| 15008 |
* c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For |
| 15009 |
C++ don't call c_common_truthvalue_conversion on void type arms. |
| 15010 |
|
| 15011 |
2011-05-27 Nathan Froyd <[email protected]> |
| 15012 |
|
| 15013 |
* c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC. |
| 15014 |
(stmt_list_stack): Define. |
| 15015 |
(cur_stmt_list): Adjust for new type of x_cur_stmt_list. |
| 15016 |
* c-semantics.c (push_stmt_list, pop_stmt_list): Likewise. |
| 15017 |
|
| 15018 |
2011-05-26 Nathan Froyd <[email protected]> |
| 15019 |
|
| 15020 |
* c-common.c (warning_candidate_p): Check for BLOCKs. |
| 15021 |
|
| 15022 |
2011-05-26 Nathan Froyd <[email protected]> |
| 15023 |
|
| 15024 |
* c-common.h (struct c_common_identifier): Inherit from tree_typed, |
| 15025 |
not tree_common. |
| 15026 |
|
| 15027 |
2011-05-25 Jakub Jelinek <[email protected]> |
| 15028 |
|
| 15029 |
* c-common.c (def_fn_type): Remove extra va_end. |
| 15030 |
|
| 15031 |
2011-05-23 Jason Merrill <[email protected]> |
| 15032 |
|
| 15033 |
PR c++/48106 |
| 15034 |
* c-common.c (c_common_get_narrower): New. |
| 15035 |
(shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it. |
| 15036 |
|
| 15037 |
2011-05-23 Nathan Froyd <[email protected]> |
| 15038 |
|
| 15039 |
* c-common.h (check_function_arguments): Tweak prototype of |
| 15040 |
check_function_arguments. |
| 15041 |
* c-common.c (check_function_arguments): Likewise. Adjust |
| 15042 |
calls to check_function_nonnull, check_function_format, and |
| 15043 |
check_function_sentinel. |
| 15044 |
(check_function_sentinel): Take a FUNCTION_TYPE rather than |
| 15045 |
separate attributes and typelist arguments. Use |
| 15046 |
FOREACH_FUNCTION_ARGS to iterate over argument types. |
| 15047 |
|
| 15048 |
2011-05-15 Paolo Carlini <[email protected]> |
| 15049 |
|
| 15050 |
* c-common.c (c_common_reswords): Reorder. |
| 15051 |
* c-common.h (rid): Likewise. |
| 15052 |
|
| 15053 |
2011-05-10 Nathan Froyd <[email protected]> |
| 15054 |
|
| 15055 |
* c-common.c (def_fn_type): Don't call build_function_type, call |
| 15056 |
build_function_type_array or build_varargs_function_type_array |
| 15057 |
instead. |
| 15058 |
(c_common_nodes_and_builtins): Likewise. |
| 15059 |
|
| 15060 |
2011-05-05 Nathan Froyd <[email protected]> |
| 15061 |
|
| 15062 |
* c-common.c (c_add_case_label): Omit the loc argument to |
| 15063 |
build_case_label. |
| 15064 |
* c-common.h (build_case_label): Remove. |
| 15065 |
* c-semantics.c (build_case_label): Remove. |
| 15066 |
|
| 15067 |
2011-05-05 Joseph Myers <[email protected]> |
| 15068 |
|
| 15069 |
* c-objc.h (objc_start_method_definition): Update prototype. |
| 15070 |
* stub-objc.c (objc_start_method_definition): Add extra parameter. |
| 15071 |
|
| 15072 |
2011-05-04 Nathan Froyd <[email protected]> |
| 15073 |
|
| 15074 |
* c-common.c (check_main_parameter_types): Reindent. Don't use |
| 15075 |
TYPE_ARG_TYPES directly. |
| 15076 |
(handle_nonnull_attribute): Likewise. |
| 15077 |
(sync_resolve_params): Likewise. |
| 15078 |
* c-format.c (handle_format_arg_attribute): Likewise. Adjust call |
| 15079 |
to check_format_string. |
| 15080 |
(handle_format_attribute): Likewise. |
| 15081 |
(check_format_string): Take a function type to examine instead of |
| 15082 |
a type list. Use a function_arg_iterator to step through argument |
| 15083 |
types. |
| 15084 |
|
| 15085 |
2011-05-04 Richard Guenther <[email protected]> |
| 15086 |
|
| 15087 |
* c-common.c (fix_string_type): Use size_int for index type bounds. |
| 15088 |
(start_fname_decls): Do not pass NULL to build_int_cst. |
| 15089 |
(c_init_attributes): Likewise. |
| 15090 |
* c-lex.c (c_lex_with_flags): Likewise. |
| 15091 |
|
| 15092 |
2011-04-27 Jason Merrill <[email protected]> |
| 15093 |
|
| 15094 |
* c-common.c (make_tree_vector_from_list): New. |
| 15095 |
* c-common.h: Declare it. |
| 15096 |
|
| 15097 |
2011-04-26 Richard Guenther <[email protected]> |
| 15098 |
|
| 15099 |
PR preprocessor/48248 |
| 15100 |
* c-ppoutput.c (maybe_print_line): Always optimize newlines |
| 15101 |
for output size with -P. |
| 15102 |
|
| 15103 |
2011-04-25 Paolo Carlini <[email protected]> |
| 15104 |
|
| 15105 |
* c-common.c (struct c_common_resword): Add __underlying_type. |
| 15106 |
* c-common.h (enum rid): Add RID_UNDERLYING_TYPE. |
| 15107 |
|
| 15108 |
2011-04-20 Jim Meyering <[email protected]> |
| 15109 |
|
| 15110 |
* c-format.c (init_dollar_format_checking): Remove useless |
| 15111 |
if-before-free. |
| 15112 |
|
| 15113 |
2011-04-15 Nicola Pero <[email protected]> |
| 15114 |
|
| 15115 |
* c-objc.h (objc_get_interface_ivars): Removed. |
| 15116 |
(objc_detect_field_duplicates): New. |
| 15117 |
* stub-objc.c: Likewise. |
| 15118 |
|
| 15119 |
2011-04-14 Nicola Pero <[email protected]> |
| 15120 |
|
| 15121 |
* stub-objc.c (objc_declare_protocols): Renamed to |
| 15122 |
objc_declare_protocol. |
| 15123 |
* c-objc.h: Likewise. |
| 15124 |
|
| 15125 |
2011-04-14 Nicola Pero <[email protected]> |
| 15126 |
|
| 15127 |
* stub-objc.c (objc_declare_class): Updated argument name. |
| 15128 |
|
| 15129 |
2011-04-12 Nathan Froyd <[email protected]> |
| 15130 |
|
| 15131 |
* c-common.h (c_common_init_ts): Declare. |
| 15132 |
* c-common.c (c_common_init_ts): Define. |
| 15133 |
|
| 15134 |
2011-04-12 Nicola Pero <[email protected]> |
| 15135 |
|
| 15136 |
* c-objc.h (objc_build_message_expr): Updated prototype. |
| 15137 |
* stub-objc.c (objc_build_message_expr): Likewise. |
| 15138 |
|
| 15139 |
2011-04-12 Martin Jambor <[email protected]> |
| 15140 |
|
| 15141 |
* c-gimplify.c (c_genericize): Call cgraph_get_create_node instead |
| 15142 |
of cgraph_node. |
| 15143 |
|
| 15144 |
2011-04-11 Richard Guenther <[email protected]> |
| 15145 |
|
| 15146 |
* c-common.c (complete_array_type): Build a range type of |
| 15147 |
proper type. |
| 15148 |
|
| 15149 |
2011-04-08 Nathan Froyd <[email protected]> |
| 15150 |
|
| 15151 |
* c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES. |
| 15152 |
(handle_type_generic_attribute): Likewise. |
| 15153 |
|
| 15154 |
2011-04-07 Jason Merrill <[email protected]> |
| 15155 |
|
| 15156 |
PR c++/48450 |
| 15157 |
* c-common.c (c_common_truthvalue_conversion): Don't ignore |
| 15158 |
conversion from C++0x scoped enum. |
| 15159 |
|
| 15160 |
2011-04-06 Joseph Myers <[email protected]> |
| 15161 |
|
| 15162 |
* c-target-def.h: New file. |
| 15163 |
* c-target.def: New file. |
| 15164 |
* c-target.h: New file. |
| 15165 |
* c-common.c (targetcm): Don't define here. |
| 15166 |
* c-common.h (default_handle_c_option): Declare. |
| 15167 |
* c-format.c: Include c-target.h instead of target.h. |
| 15168 |
* c-opts.c: Include c-target.h instead of target.h. Explicitly |
| 15169 |
include tm.h. |
| 15170 |
(default_handle_c_option): Move from targhooks.c. |
| 15171 |
|
| 15172 |
2011-03-29 Jakub Jelinek <[email protected]> |
| 15173 |
|
| 15174 |
PR preprocessor/48248 |
| 15175 |
* c-ppoutput.c (print): Add src_file field. |
| 15176 |
(init_pp_output): Initialize it. |
| 15177 |
(maybe_print_line): Don't optimize by adding up to 8 newlines |
| 15178 |
if map->to_file and print.src_file are different file. |
| 15179 |
(print_line): Update print.src_file. |
| 15180 |
|
| 15181 |
2011-03-25 Kai Tietz <[email protected]> |
| 15182 |
|
| 15183 |
* c-ada-spec.c (compare_comment): Use filename_cmp |
| 15184 |
instead of strcmp for filename. |
| 15185 |
|
| 15186 |
2011-03-25 Jeff Law <[email protected]> |
| 15187 |
|
| 15188 |
* c-common.c (def_fn_type): Add missing va_end. |
| 15189 |
|
| 15190 |
2011-03-25 Jason Merrill <[email protected]> |
| 15191 |
|
| 15192 |
* c.opt: Add -std=c++03. |
| 15193 |
|
| 15194 |
2011-03-22 Eric Botcazou <[email protected]> |
| 15195 |
|
| 15196 |
* c-ada-spec.c (dump_ada_template): Skip non-class instances. |
| 15197 |
|
| 15198 |
2011-03-17 Kai Tietz <[email protected]> |
| 15199 |
|
| 15200 |
PR target/12171 |
| 15201 |
* c-pretty-print.c (pp_c_specifier_qualifier_list): |
| 15202 |
Display allowed attributes for function pointer types. |
| 15203 |
(pp_c_attributes_display): New function to display |
| 15204 |
attributes having affects_type_identity flag set to true. |
| 15205 |
* c-pretty-print.h (pp_c_attributes_display): New prototype. |
| 15206 |
|
| 15207 |
* c-common.c (c_common_attribute_table): |
| 15208 |
Add new element. |
| 15209 |
(c_common_format_attribute_table): Likewise. |
| 15210 |
|
| 15211 |
2011-03-18 Jason Merrill <[email protected]> |
| 15212 |
|
| 15213 |
* c.opt (fconstexpr-depth): Add Var(max_constexpr_depth). |
| 15214 |
* c-common.h: Don't declare it here. |
| 15215 |
* c-common.c: Or define it here. |
| 15216 |
* c-opts.c (c_common_handle_option): Or set it here. |
| 15217 |
|
| 15218 |
PR c++/35315 |
| 15219 |
* c-common.c (handle_transparent_union_attribute): Don't |
| 15220 |
make a duplicate type in C++. |
| 15221 |
|
| 15222 |
2011-03-15 Jason Merrill <[email protected]> |
| 15223 |
|
| 15224 |
* c-common.c (max_constexpr_depth): New. |
| 15225 |
* c-common.h: Declare it. |
| 15226 |
* c-opts.c (c_common_handle_option): Set it. |
| 15227 |
* c.opt (fconstexpr-depth): New option. |
| 15228 |
|
| 15229 |
2011-03-11 Jason Merrill <[email protected]> |
| 15230 |
|
| 15231 |
* c-common.c (attribute_takes_identifier_p): Add missing const. |
| 15232 |
|
| 15233 |
PR c++/46803 |
| 15234 |
* c-common.c (attribute_takes_identifier_p): Assume that an |
| 15235 |
unknown attribute takes an identifier. |
| 15236 |
|
| 15237 |
2011-03-07 Nathan Froyd <[email protected]> |
| 15238 |
|
| 15239 |
PR c/47786 |
| 15240 |
* c-common.c (c_type_hash): Call list_length instead of iterating |
| 15241 |
through DECL_CHAIN. Rename 'i' to 'n_elements'. |
| 15242 |
|
| 15243 |
2011-02-19 Jakub Jelinek <[email protected]> |
| 15244 |
|
| 15245 |
PR c/47809 |
| 15246 |
* c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR. |
| 15247 |
|
| 15248 |
2011-02-17 Iain Sandoe <[email protected]> |
| 15249 |
|
| 15250 |
* c.opt (fobjc-abi-version=) New. |
| 15251 |
(fobjc-nilcheck): New. |
| 15252 |
|
| 15253 |
2011-02-03 Nathan Froyd <[email protected]> |
| 15254 |
|
| 15255 |
PR c++/46890 |
| 15256 |
* c-common.h (keyword_is_decl_specifier): Declare. |
| 15257 |
* c-common.c (keyword_is_decl_specifier): Define. |
| 15258 |
(keyword_is_function_specifier): New function. |
| 15259 |
|
| 15260 |
2011-01-26 Jakub Jelinek <[email protected]> |
| 15261 |
|
| 15262 |
PR c/47473 |
| 15263 |
* c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure |
| 15264 |
EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of |
| 15265 |
REAL_TYPE. |
| 15266 |
|
| 15267 |
2011-01-26 Arnaud Charlet <[email protected]> |
| 15268 |
|
| 15269 |
* c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type. |
| 15270 |
|
| 15271 |
2011-01-26 Jakub Jelinek <[email protected]> |
| 15272 |
|
| 15273 |
PR pch/47430 |
| 15274 |
* c-opts.c (c_common_post_options): Call c_common_no_more_pch |
| 15275 |
after init_c_lex if pch_file is set. |
| 15276 |
|
| 15277 |
2011-01-26 Dave Korn <[email protected]> |
| 15278 |
|
| 15279 |
PR c++/43601 |
| 15280 |
* c.opt (-fkeep-inline-dllexport): New switch. |
| 15281 |
|
| 15282 |
2011-01-12 Richard Guenther <[email protected]> |
| 15283 |
|
| 15284 |
PR middle-end/32511 |
| 15285 |
* c-common.c (handle_weak_attribute): Warn instead of error |
| 15286 |
on declaring an inline function weak. |
| 15287 |
|
| 15288 |
2011-01-05 Tom Tromey <[email protected]> |
| 15289 |
|
| 15290 |
* c-common.h (lvalue_error): Update. |
| 15291 |
* c-common.c (lvalue_error): Add 'loc' argument. Call error_at, |
| 15292 |
not error. |
| 15293 |
|
| 15294 |
2010-12-29 Nicola Pero <[email protected]> |
| 15295 |
|
| 15296 |
PR objc/47075 |
| 15297 |
* c-objc.h (objc_finish_message_expr): Added argument to |
| 15298 |
prototype. |
| 15299 |
|
| 15300 |
2010-12-22 Nathan Froyd <[email protected]> |
| 15301 |
|
| 15302 |
* c-common.c (handle_nonnull_attribute, handle_sentinel_attribute): |
| 15303 |
Use prototype_p. |
| 15304 |
|
| 15305 |
2010-12-18 Nicola Pero <[email protected]> |
| 15306 |
|
| 15307 |
* c-objc.h (objc_maybe_warn_exceptions): New. |
| 15308 |
* stub-objc.c (objc_maybe_warn_exceptions): New. |
| 15309 |
|
| 15310 |
2010-12-10 Nathan Froyd <[email protected]> |
| 15311 |
|
| 15312 |
* c-common.h (readonly_error): Declare. |
| 15313 |
* c-common.c (readonly_error): Define. |
| 15314 |
|
| 15315 |
2010-12-09 Nathan Froyd <[email protected]> |
| 15316 |
|
| 15317 |
* c-common.h (invalid_indirection_error): Declare. |
| 15318 |
* c-common.c (invalid_indirection_error): Define. |
| 15319 |
|
| 15320 |
2010-12-03 Richard Guenther <[email protected]> |
| 15321 |
|
| 15322 |
PR c/46745 |
| 15323 |
* c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF. |
| 15324 |
(pp_c_unary_expression): Likewise. |
| 15325 |
(pp_c_expression): Likewise. |
| 15326 |
|
| 15327 |
2010-11-30 Nicola Pero <[email protected]> |
| 15328 |
|
| 15329 |
* c-common.h (objc_finish_function): New. |
| 15330 |
(objc_non_volatilized_type): Removed. |
| 15331 |
(objc_type_quals_match): Removed. |
| 15332 |
* stub-objc.c (objc_finish_function): New. |
| 15333 |
(objc_non_volatilized_type): Removed. |
| 15334 |
(objc_type_quals_match): Removed. |
| 15335 |
|
| 15336 |
2010-11-30 Joseph Myers <[email protected]> |
| 15337 |
|
| 15338 |
* c-common.h (parse_optimize_options): Declare. |
| 15339 |
* c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c, |
| 15340 |
c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h. |
| 15341 |
|
| 15342 |
2010-11-29 Joseph Myers <[email protected]> |
| 15343 |
|
| 15344 |
* c-opts.c (check_deps_environment_vars): Use getenv instead of |
| 15345 |
GET_ENVIRONMENT. |
| 15346 |
* c-pch.c (O_BINARY): Don't define here. |
| 15347 |
* c-pragma.h: Include "cpplib.h" instead of <cpplib.h>. |
| 15348 |
|
| 15349 |
2010-11-25 Joseph Myers <[email protected]> |
| 15350 |
|
| 15351 |
* c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to |
| 15352 |
targetm.except_unwind_info. |
| 15353 |
|
| 15354 |
2010-11-23 Joseph Myers <[email protected]> |
| 15355 |
|
| 15356 |
* c-opts.c (c_common_handle_option): Pass location to |
| 15357 |
set_struct_debug_option. |
| 15358 |
|
| 15359 |
2010-11-23 Joseph Myers <[email protected]> |
| 15360 |
|
| 15361 |
* c-common.c (visibility_options): Move from ../opts.c. |
| 15362 |
* c-common.h (struct visibility_flags, visibility_options): |
| 15363 |
Declare here. |
| 15364 |
* c-opts.c (finish_options): Rename to c_finish_options. |
| 15365 |
(c_common_init): Update call to finish_options. |
| 15366 |
|
| 15367 |
2010-11-22 Nicola Pero <[email protected]> |
| 15368 |
|
| 15369 |
PR objc/34033 |
| 15370 |
* c-lex.c (lex_string): Check that each string in an Objective-C |
| 15371 |
string concat sequence starts with either one or zero '@', and |
| 15372 |
that there are no spurious '@' signs at the end. |
| 15373 |
|
| 15374 |
2010-11-20 Joseph Myers <[email protected]> |
| 15375 |
|
| 15376 |
* c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK, |
| 15377 |
HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and |
| 15378 |
HANDLE_PRAGMA_VISIBILITY. |
| 15379 |
* c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK, |
| 15380 |
HANDLE_PRAGMA_VISIBILITY): Don't define. |
| 15381 |
(HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test. |
| 15382 |
|
| 15383 |
2010-11-20 Nathan Froyd <[email protected]> |
| 15384 |
|
| 15385 |
PR c++/16189 |
| 15386 |
PR c++/36888 |
| 15387 |
PR c++/45331 |
| 15388 |
* c-common.h (keyword_begins_type_specifier): Declare. |
| 15389 |
(keyword_is_storage_class_specifier): Declare. |
| 15390 |
(keyword_is_type_qualifier): Declare. |
| 15391 |
* c-common.c (keyword_begins_type_specifier): New function. |
| 15392 |
(keyword_is_storage_class_specifier): New function. |
| 15393 |
(keyword_is_type_qualifier): Declare. |
| 15394 |
|
| 15395 |
2010-11-19 Joseph Myers <[email protected]> |
| 15396 |
|
| 15397 |
PR c/46547 |
| 15398 |
* c-common.c (in_late_binary_op): Define. |
| 15399 |
(c_common_truthvalue_conversion): Check in_late_binary_op before |
| 15400 |
calling c_save_expr. |
| 15401 |
* c-common.h (in_late_binary_op): Declare. |
| 15402 |
|
| 15403 |
2010-11-19 Joseph Myers <[email protected]> |
| 15404 |
|
| 15405 |
* c-opts.c (c_common_handle_option): Update calls to |
| 15406 |
set_struct_debug_option. |
| 15407 |
|
| 15408 |
2010-11-19 Nicola Pero <[email protected]> |
| 15409 |
|
| 15410 |
* c-common.h (objc_declare_protocols): Added additional argument. |
| 15411 |
* stub-objc.c (objc_declare_protocol): Same change. |
| 15412 |
|
| 15413 |
2010-11-18 Nathan Froyd <[email protected]> |
| 15414 |
|
| 15415 |
PR c/33193 |
| 15416 |
* c-common.h (build_real_imag_expr): Declare. |
| 15417 |
* c-semantics.c (build_real_imag_expr): Define. |
| 15418 |
|
| 15419 |
2010-11-17 Joseph Myers <[email protected]> |
| 15420 |
|
| 15421 |
* c-opts.c (c_common_parse_file): Take no arguments. |
| 15422 |
* c-common.h (c_common_parse_file): Update prototype. |
| 15423 |
|
| 15424 |
2010-11-16 Jakub Jelinek <[email protected]> |
| 15425 |
|
| 15426 |
PR c++/46401 |
| 15427 |
* c-common.c (warning_candidate_p): Don't track non-const calls |
| 15428 |
or STRING_CSTs. |
| 15429 |
|
| 15430 |
2010-11-15 Ian Lance Taylor <[email protected]> |
| 15431 |
|
| 15432 |
* c-lex.c (init_c_lex): Set macro debug callbacks if |
| 15433 |
flag_dump_go_spec is set. |
| 15434 |
|
| 15435 |
2010-11-15 Nicola Pero <[email protected]> |
| 15436 |
|
| 15437 |
* c-common.h (objc_build_incr_expr_for_property_ref): New. |
| 15438 |
* stub-objc.c (objc_build_incr_expr_for_property_ref): New. |
| 15439 |
|
| 15440 |
2010-11-15 Nathan Froyd <[email protected]> |
| 15441 |
|
| 15442 |
PR preprocessor/45038 |
| 15443 |
* c-cppbuiltin.c (c_cpp_builtins): Use different format for C++ |
| 15444 |
dialects. |
| 15445 |
|
| 15446 |
2010-11-12 Joseph Myers <[email protected]> |
| 15447 |
|
| 15448 |
* c-common.h (c_family_lang_mask): Declare. |
| 15449 |
* c-opts.c (c_family_lang_mask): Make extern. |
| 15450 |
* c-pragma.c (handle_pragma_diagnostic): Use |
| 15451 |
control_warning_option. |
| 15452 |
|
| 15453 |
2010-11-12 Joseph Myers <[email protected]> |
| 15454 |
|
| 15455 |
* c-common.c (parse_optimize_options): Update call to |
| 15456 |
decode_options. |
| 15457 |
* c-common.h (c_common_handle_option): Update prototype. |
| 15458 |
* c-opts.c (c_common_handle_option): Take location_t parameter and |
| 15459 |
pass it to other functions. |
| 15460 |
|
| 15461 |
2010-11-11 Joseph Myers <[email protected]> |
| 15462 |
|
| 15463 |
* c-opts.c (warning_as_error_callback): Remove. |
| 15464 |
(c_common_initialize_diagnostics): Don't call |
| 15465 |
register_warning_as_error_callback. |
| 15466 |
(c_common_handle_option): Handle -Werror=normalized= here. |
| 15467 |
|
| 15468 |
2010-11-10 Joseph Myers <[email protected]> |
| 15469 |
|
| 15470 |
* c-common.c (handle_mode_attribute): Use %' and word "signedness" |
| 15471 |
in diagnostic. |
| 15472 |
* c-opts.c (c_common_parse_file): Start diagnostics with lowercase |
| 15473 |
letter. |
| 15474 |
* c-pragma.c (handle_pragma_target, handle_pragma_optimize): |
| 15475 |
Remove trailing '.' from diagnostics. |
| 15476 |
* c.opt (Wwrite-strings_: Avoid '`' in help text. |
| 15477 |
|
| 15478 |
2010-11-10 Joseph Myers <[email protected]> |
| 15479 |
|
| 15480 |
* c-common.c (parse_optimize_options): Pass global_dc to |
| 15481 |
decode_options. |
| 15482 |
* c-opts.c (c_common_handle_option): Pass &global_options to |
| 15483 |
set_Wstrict_aliasing. |
| 15484 |
* c.opt (v): Don't mark Common or document here. |
| 15485 |
|
| 15486 |
2010-11-06 Iain Sandoe <[email protected]> |
| 15487 |
|
| 15488 |
PR target/44981 |
| 15489 |
* c-format.c (format_type): New type gcc_objc_string_format_type. |
| 15490 |
(valid_stringptr_type_p): New. |
| 15491 |
(handle_format_arg_attribute): Use valid_stringptr_type_p (). |
| 15492 |
(check_format_string): Pass expected type, use |
| 15493 |
valid_stringptr_type_p (), check that the format string types are |
| 15494 |
consistent with the format specification. |
| 15495 |
(decode_format_attr): Warn if NSString is used outside objective-c. |
| 15496 |
(format_types_orig): Add NSString. |
| 15497 |
(format_name): New. |
| 15498 |
(format_flags): New. |
| 15499 |
(check_format_arg): Handle format strings requiring an external parser. |
| 15500 |
first_target_format_type: New variable. |
| 15501 |
(handle_format_attribute): Set up first_target_format_type, pass the |
| 15502 |
expected format arg string type to check_format_string(). |
| 15503 |
* c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag. |
| 15504 |
* stub-objc.c (objc_string_ref_type_p): New. |
| 15505 |
(objc_check_format_arg): New. |
| 15506 |
|
| 15507 |
2010-11-04 Nicola Pero <[email protected]> |
| 15508 |
|
| 15509 |
Fixed using the Objective-C 2.0 dot-syntax with class names. |
| 15510 |
* c-common.h (objc_build_class_component_ref): New. |
| 15511 |
* stub-objc.c (objc_build_class_component_ref): New. |
| 15512 |
|
| 15513 |
2010-11-03 Nicola Pero <[email protected]> |
| 15514 |
|
| 15515 |
* c.opt (Wproperty-assign-default): New option. |
| 15516 |
|
| 15517 |
2010-11-03 Nicola Pero <[email protected]> |
| 15518 |
|
| 15519 |
Implemented -fobjc-std=objc1 flag. |
| 15520 |
* c.opt (fobjc-std=objc1): New option. |
| 15521 |
|
| 15522 |
2010-11-01 Nicola Pero <[email protected]> |
| 15523 |
|
| 15524 |
Implemented format and noreturn attributes for Objective-C methods. |
| 15525 |
* c-common.c (handle_noreturn_attribute): Recognize 'noreturn' |
| 15526 |
attribute for Objective-C methods. |
| 15527 |
|
| 15528 |
2010-10-31 Jason Merrill <[email protected]> |
| 15529 |
|
| 15530 |
* c-common.c (conversion_warning, warn_for_collisions_1): Use |
| 15531 |
EXPR_LOC_OR_HERE. |
| 15532 |
|
| 15533 |
2010-10-30 Nicola Pero <[email protected]> |
| 15534 |
|
| 15535 |
Implemented Objective-C 2.0 @property, @synthesize and @dynamic. |
| 15536 |
* c-common.h (enum rid): Removed RID_COPIES and RID_IVAR. |
| 15537 |
(objc_add_property_declaration): Removed arguments for copies and |
| 15538 |
ivar. |
| 15539 |
(objc_build_getter_call): Renamed to |
| 15540 |
objc_maybe_build_component_ref. |
| 15541 |
(objc_build_setter_call): Renamed to objc_maybe_build_modify_expr. |
| 15542 |
(objc_is_property_ref): New. |
| 15543 |
* c-common.c (c_common_reswords): Removed copies and ivar. |
| 15544 |
* stub-objc.c (objc_add_property_declaration): Removed arguments |
| 15545 |
for copies and ivar. |
| 15546 |
(objc_build_getter_call): Renamed to |
| 15547 |
objc_maybe_build_component_ref. |
| 15548 |
(objc_build_setter_call): Renamed to objc_maybe_build_modify_expr. |
| 15549 |
(objc_is_property_ref): New. |
| 15550 |
|
| 15551 |
2010-10-29 Arnaud Charlet <[email protected]> |
| 15552 |
Matthew Gingell <[email protected]> |
| 15553 |
|
| 15554 |
* c-ada-spec.c (separate_class_package): New function. |
| 15555 |
(pp_ada_tree_identifier): Prefix references to C++ classes with the |
| 15556 |
name of their enclosing package. |
| 15557 |
(print_ada_declaration): Use separate_class_package. |
| 15558 |
|
| 15559 |
2010-10-27 Jason Merrill <[email protected]> |
| 15560 |
|
| 15561 |
* c-common.c (c_common_reswords): Add __is_literal_type. |
| 15562 |
* c-common.h (enum rid): Add RID_IS_LITERAL_TYPE. |
| 15563 |
|
| 15564 |
* c-common.c (check_case_value): Remove special C++ code. |
| 15565 |
|
| 15566 |
2010-10-27 Nicola Pero <[email protected]> |
| 15567 |
|
| 15568 |
* c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN, |
| 15569 |
RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR |
| 15570 |
and RID_LAST_PATTR. |
| 15571 |
(objc_add_property_declaration): Added additional arguments. |
| 15572 |
(objc_property_attribute_kind): Removed. |
| 15573 |
(objc_set_property_attr): Removed. |
| 15574 |
* c-common.c (c_common_reswords): Added readwrite, assign, retain, |
| 15575 |
copy and nonatomic. |
| 15576 |
* stub-objc.c (objc_add_property_declaration): Added additional |
| 15577 |
arguments. |
| 15578 |
(objc_set_property_attr): Removed. |
| 15579 |
|
| 15580 |
2010-10-27 Nicola Pero <[email protected]> |
| 15581 |
|
| 15582 |
* c-common.h (objc_add_property_variable): Renamed to |
| 15583 |
objc_add_property_declaration. Added location argument. |
| 15584 |
* stub-objc.c (objc_add_property_variable): Same change. |
| 15585 |
|
| 15586 |
2010-10-23 Nicola Pero <[email protected]> |
| 15587 |
|
| 15588 |
* c-common.h (objc_maybe_printable_name): New. |
| 15589 |
* stub-objc.c (objc_maybe_printable_name): New. |
| 15590 |
|
| 15591 |
2010-10-22 Artjoms Sinkarovs <[email protected]> |
| 15592 |
Andrew Pinski <[email protected]> |
| 15593 |
|
| 15594 |
* c-common.h (c_common_mark_addressable_vec): Declare. |
| 15595 |
* c-common.c (c_common_mark_addressable_vec): New function. |
| 15596 |
|
| 15597 |
2010-10-20 Nicola Pero <[email protected]> |
| 15598 |
|
| 15599 |
* c-common.h (objc_set_method_type): Removed. |
| 15600 |
(objc_add_method_declaration): Added boolean argument. |
| 15601 |
(objc_start_method_definition): Same change. |
| 15602 |
(objc_build_method_signature): Same change. |
| 15603 |
* stub-objc.c (objc_set_method_type): Removed. |
| 15604 |
(objc_add_method_declaration): Added boolean argument. |
| 15605 |
(objc_start_method_definition): Same change. |
| 15606 |
(objc_build_method_signature): Same change. |
| 15607 |
|
| 15608 |
2010-10-20 Nicola Pero <[email protected]> |
| 15609 |
|
| 15610 |
* c-common.h (finish_file): Removed. |
| 15611 |
(objc_write_global_declarations): New. |
| 15612 |
* c-opts.c (c_common_parse_file): Do not call finish_file. |
| 15613 |
* stub-objc.c (objc_write_global_declarations): New. |
| 15614 |
|
| 15615 |
2010-10-18 Nicola Pero <[email protected]> |
| 15616 |
|
| 15617 |
Implemented parsing @synthesize and @dynamic for |
| 15618 |
Objective-C/Objective-C++. |
| 15619 |
* c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC. |
| 15620 |
(objc_add_synthesize_declaration): New. |
| 15621 |
(objc_add_dynamic_declaration): New. |
| 15622 |
* c-common.c (c_common_reswords): Add synthesize and dynamic. |
| 15623 |
* stub-objc.c (objc_add_synthesize_declaration): New. |
| 15624 |
(objc_add_dynamic_declaration): New. |
| 15625 |
|
| 15626 |
2010-10-18 Michael Meissner <[email protected]> |
| 15627 |
|
| 15628 |
PR target/46041 |
| 15629 |
* c-cppbuiltin.c (mode_has_fma): Move function here from |
| 15630 |
builtins.c. Don't use the fma optab, instead just use the |
| 15631 |
HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when |
| 15632 |
using -save-temps. |
| 15633 |
|
| 15634 |
2010-10-18 Nicola Pero <[email protected]> |
| 15635 |
|
| 15636 |
Merge from 'apple/trunk' branch on FSF servers. |
| 15637 |
|
| 15638 |
2005-11-08 Fariborz Jahanian <[email protected]> |
| 15639 |
|
| 15640 |
Radar 4330422 |
| 15641 |
* c-common.h (objc_non_volatilized_type): New declaration |
| 15642 |
* stub-objc.c (objc_non_volatilized_type): New stub. |
| 15643 |
|
| 15644 |
2010-10-17 Nicola Pero <[email protected]> |
| 15645 |
|
| 15646 |
Merge from 'apple/trunk' branch on FSF servers. |
| 15647 |
|
| 15648 |
2006-03-27 Fariborz Jahanian <[email protected]> |
| 15649 |
|
| 15650 |
Radar 4133425 |
| 15651 |
* c-common.h (objc_diagnose_private_ivar): New decl. |
| 15652 |
* stub-objc.c (objc_diagnose_private_ivar): New stub. |
| 15653 |
|
| 15654 |
2010-10-17 Iain Sandoe <[email protected]> |
| 15655 |
|
| 15656 |
* c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE. |
| 15657 |
* c-common.h (enum rid): Add RID_AT_PACKAGE. |
| 15658 |
(objc_ivar_visibility_kind): New enum. |
| 15659 |
(objc_set_visibility): Adjust prototype to use visibility enum. |
| 15660 |
* stub-objc.c (objc_set_visibility): Adjust stub to use |
| 15661 |
visibility enum. |
| 15662 |
|
| 15663 |
2010-10-14 Michael Meissner <[email protected]> |
| 15664 |
|
| 15665 |
* c-cppbuiltin.c (builtin_define_float_constants): Emit |
| 15666 |
__FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine |
| 15667 |
has the appropriate fma builtins. |
| 15668 |
(c_cpp_builtins): Adjust call to builtin_define_float_constants. |
| 15669 |
|
| 15670 |
2010-10-14 Iain Sandoe <[email protected]> |
| 15671 |
|
| 15672 |
merge from FSF apple 'trunk' branch. |
| 15673 |
2006 Fariborz Jahanian <[email protected]> |
| 15674 |
|
| 15675 |
Radars 4436866, 4505126, 4506903, 4517826 |
| 15676 |
* c-common.c (c_common_resword): Define @property and its attributes. |
| 15677 |
* c-common.h: Define property attribute enum entries. |
| 15678 |
(OBJC_IS_PATTR_KEYWORD): New. |
| 15679 |
(objc_property_attribute_kind): New enum. |
| 15680 |
Declare objc_set_property_attr (), objc_add_property_variable (), |
| 15681 |
objc_build_getter_call () and objc_build_setter_call (). |
| 15682 |
* stub-objc.c (objc_set_property_attr): New stub. |
| 15683 |
(objc_add_property_variable): Likewise. |
| 15684 |
(objc_build_getter_call): Likewise. |
| 15685 |
(objc_build_setter_call) Likewise. |
| 15686 |
|
| 15687 |
2010-10-13 Iain Sandoe <[email protected]> |
| 15688 |
|
| 15689 |
merge from FSF apple 'trunk' branch. |
| 15690 |
2006-04-26 Fariborz Jahanian <[email protected]> |
| 15691 |
|
| 15692 |
Radar 3803157 (method attributes) |
| 15693 |
* c-common.c (handle_deprecated_attribute): Recognize |
| 15694 |
objc methods as valid declarations. |
| 15695 |
* c-common.h: Declare objc_method_decl (). |
| 15696 |
* stub-objc.c (objc_method_decl): New stub. |
| 15697 |
|
| 15698 |
2010-10-08 Joseph Myers <[email protected]> |
| 15699 |
|
| 15700 |
* c-common.c (parse_optimize_options): Call |
| 15701 |
decode_cmdline_options_to_array_default_mask before |
| 15702 |
decode_options. Update arguments to decode_options. |
| 15703 |
* c-common.h (c_common_init_options_struct): Declare. |
| 15704 |
* c-opts.c (c_common_init_options_struct): New. Split out from |
| 15705 |
c_common_init_options. |
| 15706 |
|
| 15707 |
2010-10-06 Nicola Pero <[email protected]> |
| 15708 |
|
| 15709 |
Implemented fast enumeration for Objective-C. |
| 15710 |
* c-common.h (objc_finish_foreach_loop): New. |
| 15711 |
* stub-objc.c (objc_finish_foreach_loop): New. |
| 15712 |
|
| 15713 |
2010-10-05 Joseph Myers <[email protected]> |
| 15714 |
|
| 15715 |
* c-common.h (struct diagnostic_context): Don't declare here. |
| 15716 |
(c_common_initialize_diagnostics): Declare using |
| 15717 |
diagnostic_context typedef. |
| 15718 |
* c-opts.c (c_common_handle_option): Pass global_dc to |
| 15719 |
handle_generated_option. |
| 15720 |
|
| 15721 |
2010-10-04 Joseph Myers <[email protected]> |
| 15722 |
|
| 15723 |
* c-opts.c (c_common_handle_option): Pass &global_options_set to |
| 15724 |
handle_generated_option. |
| 15725 |
|
| 15726 |
2010-10-03 Ian Lance Taylor <[email protected]> |
| 15727 |
|
| 15728 |
* c.opt (-fplan9-extensions): New option. |
| 15729 |
|
| 15730 |
2010-10-03 Francois-Xavier Coudert <[email protected]> |
| 15731 |
|
| 15732 |
* c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision): |
| 15733 |
Remove. |
| 15734 |
(c_cpp_builtins): Call functions from cppbuiltin.c instead |
| 15735 |
of duplicating code. |
| 15736 |
|
| 15737 |
2010-09-30 Iain Sandoe <[email protected]> |
| 15738 |
|
| 15739 |
* c-common.c: Add two new entries for @optional |
| 15740 |
and @required keywords. |
| 15741 |
|
| 15742 |
merge from FSF 'apple/trunk' branch. |
| 15743 |
2006-01-30 Fariborz Jahanian <[email protected]> |
| 15744 |
|
| 15745 |
Radar 4386773 |
| 15746 |
* c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new |
| 15747 |
objective-c keywords. |
| 15748 |
(objc_set_method_opt): New declaration. |
| 15749 |
* stub-objc.c (objc_set_method_opt): New stub. |
| 15750 |
|
| 15751 |
2010-09-30 Joseph Myers <[email protected]> |
| 15752 |
|
| 15753 |
* c-common.c (handle_optimize_attribute): Pass &global_options to |
| 15754 |
cl_optimization_save and cl_optimization_restore. |
| 15755 |
* c-opts.c (c_common_handle_option): Pass &global_options to |
| 15756 |
handle_generated_option. |
| 15757 |
* c-pragma.c (handle_pragma_diagnostic): Use option_flag_var. |
| 15758 |
(handle_pragma_pop_options, handle_pragma_reset_options): Pass |
| 15759 |
&global_options to cl_optimization_restore. |
| 15760 |
|
| 15761 |
2010-09-30 Nicola Pero <[email protected]> |
| 15762 |
|
| 15763 |
* c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME |
| 15764 |
Objective-C/Objective-C++ keywords. |
| 15765 |
|
| 15766 |
2010-09-29 Nicola Pero <[email protected]> |
| 15767 |
|
| 15768 |
Merge from 'apple/trunk' branch on FSF servers. |
| 15769 |
|
| 15770 |
2005-10-04 Fariborz Jahanian <[email protected]> |
| 15771 |
|
| 15772 |
Radar 4281748 |
| 15773 |
* c-common.h (objc_check_global_decl): New declaration. |
| 15774 |
* stub-objc.c (objc_check_global_decl): New stub. |
| 15775 |
|
| 15776 |
2010-09-29 Joseph Myers <[email protected]> |
| 15777 |
|
| 15778 |
* c.opt: Don't use VarExists. |
| 15779 |
|
| 15780 |
2010-09-29 Joseph Myers <[email protected]> |
| 15781 |
|
| 15782 |
* c-common.c (c_cpp_error): Update names of diagnostic_context |
| 15783 |
members. |
| 15784 |
* c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of |
| 15785 |
cl_optimization members. |
| 15786 |
* c-opts.c (warning_as_error_callback, c_common_handle_option, |
| 15787 |
sanitize_cpp_opts, finish_options): Update names of cpp_options |
| 15788 |
members. |
| 15789 |
|
| 15790 |
2010-09-29 Nicola Pero <[email protected]> |
| 15791 |
|
| 15792 |
* c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments. |
| 15793 |
(objc_is_reserved_word): Removed. |
| 15794 |
* c-common.c: Updated comments. |
| 15795 |
* c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of |
| 15796 |
objc_is_reserved_word. |
| 15797 |
* stub-objc.c (objc_is_reserved_word): Removed. |
| 15798 |
|
| 15799 |
2010-09-28 Iain Sandoe <[email protected]> |
| 15800 |
|
| 15801 |
* c-common.h (objc_add_method_declaration): Adjust prototype to |
| 15802 |
include attributes. |
| 15803 |
(objc_start_method_definition): Likewise. |
| 15804 |
(objc_build_keyword_decl): Likewise. |
| 15805 |
* stub-objc.c:(objc_add_method_declaration): Handle attributes. |
| 15806 |
(objc_start_method_definition): Likewise. |
| 15807 |
(objc_build_keyword_decl): Likewise. |
| 15808 |
|
| 15809 |
2010-09-28 Iain Sandoe <[email protected]> |
| 15810 |
|
| 15811 |
* c-common.h (objc_start_class_interface): Adjust prototype. |
| 15812 |
(objc_start_category_interface): Likewise. |
| 15813 |
(objc_start_protocol): Likewise. |
| 15814 |
* stub-objc.c (objc_start_protocol): Adjust for extra argument. |
| 15815 |
(objc_start_class_interface): Likewise. |
| 15816 |
(objc_start_category_interface): Likewise. |
| 15817 |
|
| 15818 |
2010-09-27 Ian Lance Taylor <[email protected]> |
| 15819 |
|
| 15820 |
* c-common.c (c_common_attribute_table): Add no_split_stack. |
| 15821 |
(handle_no_split_stack_attribute): New static function. |
| 15822 |
|
| 15823 |
2010-09-27 Nicola Pero <[email protected]> |
| 15824 |
|
| 15825 |
Merge from 'apple/trunk' branch on FSF servers. |
| 15826 |
|
| 15827 |
2005-12-15 Fariborz Jahanian <[email protected]> |
| 15828 |
|
| 15829 |
Radar 4229905 |
| 15830 |
* c-common.h (objc_have_common_type): New declaration. |
| 15831 |
* stub-objc.c (objc_have_common_type): New stub. |
| 15832 |
|
| 15833 |
2005-06-22 Ziemowit Laski <[email protected]> |
| 15834 |
|
| 15835 |
Radar 4154928 |
| 15836 |
* c-common.h (objc_common_type): New prototype. |
| 15837 |
* stub-objc.c (objc_common_type): New stub. |
| 15838 |
|
| 15839 |
2010-09-24 Jan Hubicka <[email protected]> |
| 15840 |
|
| 15841 |
* c-common.c (handle_leaf_attribute): New function. |
| 15842 |
(struct attribute_spec c_common_att): Add leaf. |
| 15843 |
|
| 15844 |
2010-09-22 Joseph Myers <[email protected]> |
| 15845 |
|
| 15846 |
* c.opt (-all-warnings, -ansi, -assert, -assert=, -comments, |
| 15847 |
-comments-in-macros, -define-macro, -define-macro=, -dependencies, |
| 15848 |
-dump, -dump=, -imacros, -imacros=, -include, -include=, |
| 15849 |
-include-barrier, -include-directory, -include-directory=, |
| 15850 |
-include-directory-after, -include-directory-after=, |
| 15851 |
-include-prefix, -include-prefix=, -include-with-prefix, |
| 15852 |
-include-with-prefix=, -include-with-prefix-after, |
| 15853 |
-include-with-prefix-after=, -include-with-prefix-before, |
| 15854 |
-include-with-prefix-before=, -no-integrated-cpp, |
| 15855 |
-no-line-commands, -no-standard-includes, -no-warnings, -output, |
| 15856 |
-output=, -pedantic, -pedantic-errors, -preprocess, |
| 15857 |
-print-missing-file-dependencies, -trace-includes, -traditional, |
| 15858 |
-traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=, |
| 15859 |
-user-dependencies, -verbose, -write-dependencies, |
| 15860 |
-write-user-dependencies, no-integrated-cpp, traditional): New. |
| 15861 |
|
| 15862 |
2010-09-21 Nicola Pero <[email protected]> |
| 15863 |
|
| 15864 |
PR objc/23710 |
| 15865 |
* c-common.h (objc_start_method_definition): Return bool instead |
| 15866 |
of void. |
| 15867 |
* stub-objc.c (objc_start_method_definition): Return bool instead |
| 15868 |
of void. |
| 15869 |
|
| 15870 |
2010-09-21 Nicola Pero <[email protected]> |
| 15871 |
|
| 15872 |
PR objc/25965 |
| 15873 |
* c-common.h (objc_get_interface_ivars): New declaration. |
| 15874 |
* stub-objc.c (objc_get_interface_ivars): New stub. |
| 15875 |
|
| 15876 |
2010-09-15 Ian Lance Taylor <[email protected]> |
| 15877 |
|
| 15878 |
* c-common.c (parse_optimize_options): Do not capitalize warning |
| 15879 |
messages. Remove period at end of warning message. |
| 15880 |
|
| 15881 |
2010-09-09 Nathan Sidwell <[email protected]> |
| 15882 |
|
| 15883 |
* c-common.c (handle_alias_ifunc_attribute): New, broken out of ... |
| 15884 |
(handle_alias_attribute): ... here. |
| 15885 |
(handle_ifunc_attribute): New. |
| 15886 |
|
| 15887 |
2010-09-06 Mark Mitchell <[email protected]> |
| 15888 |
|
| 15889 |
* c-common.h (do_warn_double_promotion): Declare. |
| 15890 |
* c-common.c (do_warn_double_promotion): Define. |
| 15891 |
|
| 15892 |
2010-09-05 Mark Mitchell <[email protected]> |
| 15893 |
|
| 15894 |
* c.opt (Wdouble-promotion): New. |
| 15895 |
|
| 15896 |
2010-09-02 Joseph Myers <[email protected]> |
| 15897 |
|
| 15898 |
* c.opt (falt-external-templates, fhuge-objects, fvtable-gc, |
| 15899 |
fvtable-thunks, fxref): Mark no longer supported in help text. |
| 15900 |
|
| 15901 |
2010-09-02 Joseph Myers <[email protected]> |
| 15902 |
|
| 15903 |
* c.opt (Wimport, fall-virtual, falt-external-templates, |
| 15904 |
fdefault-inline, fenum-int-equiv, fexternal-templates, |
| 15905 |
fguiding-decls, fhonor-std, fhuge-objects, flabels-ok, |
| 15906 |
fname-mangling-version-, fnew-abi, fnonnull-objects, |
| 15907 |
foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable, |
| 15908 |
fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as |
| 15909 |
applicable. |
| 15910 |
(fhandle-exceptions): Mark with Alias and Warn. |
| 15911 |
* c-opts.c (c_common_handle_option): Don't handle options marked |
| 15912 |
as ignored. |
| 15913 |
|
| 15914 |
2010-09-02 Joseph Myers <[email protected]> |
| 15915 |
|
| 15916 |
* c.opt (Wcomments, Werror-implicit-function-declaration, |
| 15917 |
ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x, |
| 15918 |
std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as |
| 15919 |
aliases. |
| 15920 |
* c-common.c (option_codes): Use OPT_Wcomment instead of |
| 15921 |
OPT_Wcomments. |
| 15922 |
* c-opts.c (warning_as_error_callback, c_common_handle_option): |
| 15923 |
Don't handle options marked as aliases. |
| 15924 |
|
| 15925 |
2010-08-25 Richard Guenther <[email protected]> |
| 15926 |
|
| 15927 |
* c-common.c (c_common_get_alias_set): Remove special |
| 15928 |
handling for pointers. |
| 15929 |
|
| 15930 |
2010-08-20 Nathan Froyd <[email protected]> |
| 15931 |
|
| 15932 |
* c-common.c: Use FOR_EACH_VEC_ELT. |
| 15933 |
* c-gimplify.c: Likewise. |
| 15934 |
* c-pragma.c: Likewise. |
| 15935 |
|
| 15936 |
2010-08-16 Joseph Myers <[email protected]> |
| 15937 |
|
| 15938 |
* c.opt (MDX): Change back to MD. Mark NoDriverArg instead of |
| 15939 |
RejectDriver. |
| 15940 |
(MMDX): Change back to MMD. Mark NoDriverArg instead of |
| 15941 |
RejectDriver. |
| 15942 |
* c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD |
| 15943 |
instead of OPT_MDX and OPT_MMDX. |
| 15944 |
|
| 15945 |
2010-08-16 Joseph Myers <[email protected]> |
| 15946 |
|
| 15947 |
* c.opt (MDX, MMDX, lang-asm): Mark RejectDriver. |
| 15948 |
|
| 15949 |
2010-08-12 Joseph Myers <[email protected]> |
| 15950 |
|
| 15951 |
* c.opt (MD, MMD): Change to MDX and MMDX. |
| 15952 |
* c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX. |
| 15953 |
|
| 15954 |
2010-08-11 Joseph Myers <[email protected]> |
| 15955 |
|
| 15956 |
* c-opts.c (c_common_handle_option): Call handle_generated_option |
| 15957 |
instead of handle_option. |
| 15958 |
|
| 15959 |
2010-08-08 Nathan Froyd <[email protected]> |
| 15960 |
|
| 15961 |
* c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push. |
| 15962 |
(maybe_apply_renaming_pragma): Delete unneeded declarations. |
| 15963 |
|
| 15964 |
2010-08-08 Nathan Froyd <[email protected]> |
| 15965 |
|
| 15966 |
* c-pragma.c (pending_redefinition): Declare. Declare a VEC of it. |
| 15967 |
(pending_redefine_extname): Change type to a VEC. |
| 15968 |
(add_to_renaming_pragma_list): Update for new type of |
| 15969 |
pending_redefine_extname. |
| 15970 |
(maybe_apply_renaming_pragma): Likewise. |
| 15971 |
|
| 15972 |
2010-08-04 Arnaud Charlet <[email protected]> |
| 15973 |
|
| 15974 |
* c-ada-spec.c (dump_ada_template): Mark underlying instance type as |
| 15975 |
visited. |
| 15976 |
(dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to |
| 15977 |
decide whether a type has already been declared/seen. |
| 15978 |
Do not go to the original type. |
| 15979 |
(dump_nested_types): New parameter forward. |
| 15980 |
Generate forward declaration if needed and mark type as visited. |
| 15981 |
(print_ada_declaration): Call dump_nested_types if not already done. |
| 15982 |
Mark types as visited. |
| 15983 |
|
| 15984 |
2010-08-03 Joseph Myers <[email protected]> |
| 15985 |
|
| 15986 |
* c.opt (-print-pch-checksum): Remove option. |
| 15987 |
* c-opts.c (c_common_handle_option): Don't handle |
| 15988 |
OPT_print_pch_checksum. |
| 15989 |
|
| 15990 |
2010-07-27 Joseph Myers <[email protected]> |
| 15991 |
|
| 15992 |
* c-common.h (c_common_handle_option): Update prototype and return |
| 15993 |
value type. |
| 15994 |
* c-opts.c (c_common_handle_option): Update prototype and return |
| 15995 |
value type. Update calls to handle_option and |
| 15996 |
enable_warning_as_error. |
| 15997 |
|
| 15998 |
2010-07-27 Jakub Jelinek <[email protected]> |
| 15999 |
|
| 16000 |
PR c/45079 |
| 16001 |
* c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR. |
| 16002 |
|
| 16003 |
2010-07-27 Joseph Myers <[email protected]> |
| 16004 |
|
| 16005 |
* c-common.h (c_common_missing_argument): Remove. |
| 16006 |
* c-opts.c (c_common_missing_argument): Remove. |
| 16007 |
* c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=, |
| 16008 |
idirafter, imacros, include, isysroot, isystem, iquote): Add |
| 16009 |
MissingArgError. |
| 16010 |
* c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove. |
| 16011 |
|
| 16012 |
2010-07-27 Joseph Myers <[email protected]> |
| 16013 |
|
| 16014 |
* c-common.h (c_common_option_lang_mask, |
| 16015 |
c_common_initialize_diagnostics, c_common_complain_wrong_lang_p): |
| 16016 |
New. |
| 16017 |
(c_common_init_options): Update prototype. |
| 16018 |
* c-opts.c (c_common_option_lang_mask): New. |
| 16019 |
(c_common_initialize_diagnostics): Split out of |
| 16020 |
c_common_init_options. |
| 16021 |
(accept_all_c_family_options, c_common_complain_wrong_lang_p): |
| 16022 |
New. |
| 16023 |
(c_common_init_options): Update prototype. Use decoded options in |
| 16024 |
search for -lang-asm. |
| 16025 |
|
| 16026 |
2010-07-15 Nathan Froyd <[email protected]> |
| 16027 |
|
| 16028 |
* c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN. |
| 16029 |
* c-format.c: Likewise. |
| 16030 |
|
| 16031 |
2010-07-08 Manuel López-Ibáñez <[email protected]> |
| 16032 |
|
| 16033 |
* c-common.h: Include diagnostic-core.h. Error if already |
| 16034 |
included. |
| 16035 |
* c-semantics.c: Do not define GCC_DIAG_STYLE here. |
| 16036 |
|
| 16037 |
2010-07-03 Manuel López-Ibáñez <[email protected]> |
| 16038 |
|
| 16039 |
* c-common.c (IN_GCC_FRONTEND): Do not undef. |
| 16040 |
Do not include expr.h |
| 16041 |
(vector_mode_valid_p): Move here. |
| 16042 |
|
| 16043 |
2010-06-21 DJ Delorie <[email protected]> |
| 16044 |
|
| 16045 |
* c-pragma.c (handle_pragma_diagnostic): Add push/pop, |
| 16046 |
allow these pragmas anywhere. |
| 16047 |
|
| 16048 |
2010-06-14 Jakub Jelinek <[email protected]> |
| 16049 |
|
| 16050 |
PR bootstrap/44509 |
| 16051 |
* c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h. |
| 16052 |
(lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers. |
| 16053 |
(lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use |
| 16054 |
ggc_strdup instead of xstrdup. |
| 16055 |
|
| 16056 |
2010-06-10 Jakub Jelinek <[email protected]> |
| 16057 |
|
| 16058 |
* c-cppbuiltin.c: Include cpp-id-data.h. |
| 16059 |
(lazy_hex_fp_values, lazy_hex_fp_value_count): New variables. |
| 16060 |
(lazy_hex_fp_value): New function. |
| 16061 |
(builtin_define_with_hex_fp_value): Provide definitions lazily. |
| 16062 |
|
| 16063 |
2010-06-30 Manuel López-Ibáñez <[email protected]> |
| 16064 |
|
| 16065 |
* c-gimplify.c: Do not include tree-flow.h |
| 16066 |
|
| 16067 |
2010-06-29 Joern Rennecke <[email protected]> |
| 16068 |
|
| 16069 |
PR other/44034 |
| 16070 |
* c-common.c: Rename targetm member: |
| 16071 |
targetm.enum_va_list -> targetm.enum_va_list_p |
| 16072 |
|
| 16073 |
2010-06-28 Anatoly Sokolov <[email protected]> |
| 16074 |
|
| 16075 |
* c-common.c (shorten_compare): Adjust call to force_fit_type_double. |
| 16076 |
|
| 16077 |
2010-06-28 Steven Bosscher <[email protected]> |
| 16078 |
|
| 16079 |
* c-cppbuiltin.c: Do not include except.h. |
| 16080 |
|
| 16081 |
2010-06-24 Andi Kleen <[email protected]> |
| 16082 |
|
| 16083 |
* c-common.c (warn_for_omitted_condop): New. |
| 16084 |
* c-common.h (warn_for_omitted_condop): Add prototype. |
| 16085 |
|
| 16086 |
2010-06-21 Joseph Myers <[email protected]> |
| 16087 |
|
| 16088 |
* c.opt (lang-objc): Remove. |
| 16089 |
* c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc. |
| 16090 |
|
| 16091 |
2010-06-21 Joern Rennecke <[email protected]> |
| 16092 |
|
| 16093 |
* c-opts.c: Include "tm_p.h". |
| 16094 |
|
| 16095 |
2010-06-20 Joseph Myers <[email protected]> |
| 16096 |
|
| 16097 |
* c-common.c (parse_optimize_options): Update call to |
| 16098 |
decode_options. |
| 16099 |
|
| 16100 |
2010-06-18 Nathan Froyd <[email protected]> |
| 16101 |
|
| 16102 |
* c-common.c (record_types_used_by_current_var_decl): Adjust for |
| 16103 |
new type of types_used_by_cur_var_decl. |
| 16104 |
|
| 16105 |
2010-06-17 Joern Rennecke <[email protected]> |
| 16106 |
|
| 16107 |
PR bootstrap/44512 |
| 16108 |
* c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast |
| 16109 |
for C++ standard compliance. |
| 16110 |
|
| 16111 |
2010-06-16 Jason Merrill <[email protected]> |
| 16112 |
|
| 16113 |
* c.opt: Add -Wnoexcept. |
| 16114 |
|
| 16115 |
2010-06-16 Richard Guenther <[email protected]> |
| 16116 |
|
| 16117 |
PR c/44555 |
| 16118 |
* c-common.c (c_common_truthvalue_conversion): Remove |
| 16119 |
premature and wrong optimization concering ADDR_EXPRs. |
| 16120 |
|
| 16121 |
2010-06-15 Arnaud Charlet <[email protected]> |
| 16122 |
|
| 16123 |
* c-ada-spec.c (dump_sloc): Remove column info. |
| 16124 |
(is_simple_enum): New function. |
| 16125 |
(dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada |
| 16126 |
enum types when relevant. |
| 16127 |
|
| 16128 |
2010-06-11 Manuel López-Ibáñez <[email protected]> |
| 16129 |
|
| 16130 |
* c-common.c (conversion_warning): Warn at expression |
| 16131 |
location. |
| 16132 |
|
| 16133 |
2010-06-10 Joseph Myers <[email protected]> |
| 16134 |
|
| 16135 |
* c-opts.c (c_common_handle_option): Don't handle |
| 16136 |
OPT_fshow_column. |
| 16137 |
|
| 16138 |
2010-06-08 Laurynas Biveinis <[email protected]> |
| 16139 |
|
| 16140 |
* c-pragma.c (push_alignment): Use typed GC allocation. |
| 16141 |
(handle_pragma_push_options): Likewise. |
| 16142 |
|
| 16143 |
* c-common.c (parse_optimize_options): Likewise. |
| 16144 |
|
| 16145 |
* c-common.h (struct sorted_fields_type): Add variable_size GTY |
| 16146 |
option. |
| 16147 |
|
| 16148 |
2010-06-07 Joseph Myers <[email protected]> |
| 16149 |
|
| 16150 |
* c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin, |
| 16151 |
flag_no_nonansi_builtin, flag_short_double, flag_short_wchar, |
| 16152 |
flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm, |
| 16153 |
flag_signed_bitfields, warn_strict_null_sentinel, |
| 16154 |
flag_nil_receivers, flag_zero_link, flag_replace_objc_classes, |
| 16155 |
flag_gen_declaration, flag_no_gnu_keywords, |
| 16156 |
flag_implement_inlines, flag_implicit_templates, |
| 16157 |
flag_implicit_inline_templates, flag_optional_diags, |
| 16158 |
flag_elide_constructors, flag_default_inline, flag_rtti, |
| 16159 |
flag_conserve_space, flag_access_control, flag_check_new, |
| 16160 |
flag_new_for_scope, flag_weak, flag_working_directory, |
| 16161 |
flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr, |
| 16162 |
flag_enforce_eh_specs, flag_threadsafe_statics, |
| 16163 |
flag_pretty_templates): Remove. |
| 16164 |
* c-common.h (flag_preprocess_only, flag_nil_receivers, |
| 16165 |
flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link, |
| 16166 |
flag_replace_objc_classes, flag_undef, flag_no_builtin, |
| 16167 |
flag_no_nonansi_builtin, flag_short_double, flag_short_wchar, |
| 16168 |
flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm, |
| 16169 |
flag_const_strings, flag_signed_bitfields, flag_gen_declaration, |
| 16170 |
flag_no_gnu_keywords, flag_implement_inlines, |
| 16171 |
flag_implicit_templates, flag_implicit_inline_templates, |
| 16172 |
flag_optional_diags, flag_elide_constructors, flag_default_inline, |
| 16173 |
flag_rtti, flag_conserve_space, flag_access_control, |
| 16174 |
flag_check_new, flag_new_for_scope, flag_weak, |
| 16175 |
flag_working_directory, flag_use_cxa_atexit, |
| 16176 |
flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs, |
| 16177 |
flag_threadsafe_statics, flag_pretty_templates, |
| 16178 |
warn_strict_null_sentinel): Remove. |
| 16179 |
* c.opt (E, Wstrict-null-sentinel, faccess-control, fasm, |
| 16180 |
fbuiltin, fcheck-new, fconserve-space, felide-constructors, |
| 16181 |
fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines, |
| 16182 |
fimplicit-inline-templates, fimplicit-templates, |
| 16183 |
flax-vector-conversions, fms-extensions, fnil-receivers, |
| 16184 |
fnonansi-builtins, fpretty-templates, freplace-objc-classes, |
| 16185 |
frtti, fshort-double, fshort-enums, fshort-wchar, |
| 16186 |
fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics, |
| 16187 |
funsigned-bitfields, funsigned-char, fuse-cxa-atexit, |
| 16188 |
fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link, |
| 16189 |
gen-decls, undef): Use Var. |
| 16190 |
(fdefault-inline, foptional-diags): Document as doing nothing. |
| 16191 |
* c-opts.c (c_common_handle_option): Remove cases for options now |
| 16192 |
using Var. Mark ignored options as such. |
| 16193 |
|
| 16194 |
2010-06-05 Steven Bosscher <[email protected]> |
| 16195 |
|
| 16196 |
* c-common.c: Moved to here from parent directory. |
| 16197 |
* c-common.def: Likewise. |
| 16198 |
* c-common.h: Likewise. |
| 16199 |
* c-cppbuiltin.c: Likewise. |
| 16200 |
* c-dump.c: Likewise. |
| 16201 |
* c-format.c: Likewise. |
| 16202 |
* c-format.h : Likewise. |
| 16203 |
* c-gimplify.c: Likewise. |
| 16204 |
* c-lex.c: Likewise. |
| 16205 |
* c-omp.c: Likewise. |
| 16206 |
* c.opt: Likewise. |
| 16207 |
* c-opts.c: Likewise. |
| 16208 |
* c-pch.c: Likewise. |
| 16209 |
* c-ppoutput.c: Likewise. |
| 16210 |
* c-pragma.c: Likewise. |
| 16211 |
* c-pragma.h: Likewise. |
| 16212 |
* c-pretty-print.c: Likewise. |
| 16213 |
* c-pretty-print.h: Likewise. |
| 16214 |
* c-semantics.c: Likewise. |
| 16215 |
* stub-objc.c: Likewise. |
| 16216 |
|
| 16217 |
* c-common.c: Include gt-c-family-c-common.h. |
| 16218 |
* c-pragma.c: Include gt-c-family-c-pragma.h. |
| 16219 |
|
| 16220 |
Copyright (C) 2010-2025 Free Software Foundation, Inc. |
| 16221 |
|
| 16222 |
Copying and distribution of this file, with or without modification, |
| 16223 |
are permitted in any medium without royalty provided the copyright |
| 16224 |
notice and this notice are preserved. |