]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
Daily bump.
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
eb4e1b62
GA
12023-11-04 David Malcolm <dmalcolm@redhat.com>
2
3 * c-pragma.cc:: (handle_pragma_push_options): Fix missing "GCC" in
4 name of pragma in "junk" message.
5 (handle_pragma_pop_options): Likewise.
6
72023-11-04 David Malcolm <dmalcolm@redhat.com>
8
9 * c-common.cc: Update for changes to diagnostic_context.
10 * c-indentation.cc: Likewise.
11 * c-opts.cc: Likewise.
12 * c-warn.cc: Likewise.
13
c73d2d49
GA
142023-11-01 Martin Uecker <uecker@tugraz.at>
15
16 PR c/71219
17 * c.opt (Walloc-size): New option.
18
eac0917b
GA
192023-10-31 David Malcolm <dmalcolm@redhat.com>
20
21 * c-warn.cc (warn_for_multistatement_macros): Update for removal
22 of MACRO_MAP_EXPANSION_POINT_LOCATION.
23
7f974c5f
GA
242023-10-27 Lewis Hyatt <lhyatt@gmail.com>
25
26 PR preprocessor/87299
27 * c-pragma.cc (init_pragma): Register `#pragma GCC target' and
28 related pragmas in preprocess-only mode, and enable early handling.
29 (c_reset_target_pragmas): New function refactoring code from...
30 (handle_pragma_reset_options): ...here.
31 * c-pragma.h (c_reset_target_pragmas): Declare.
32
ecca503b
GA
332023-10-26 David Malcolm <dmalcolm@redhat.com>
34
35 * c-attribs.cc (c_common_attribute_table): Add
36 "null_terminated_string_arg".
37 (handle_null_terminated_string_arg_attribute): New.
38
9cf2e744
GA
392023-10-23 Lewis Hyatt <lhyatt@gmail.com>
40
41 PR preprocessor/36887
42 * c-opts.cc (c_common_init_options): Pass new extra hash map
43 argument to cpp_create_reader().
44
6f684dd2
GA
452023-10-20 Marek Polacek <polacek@redhat.com>
46
47 PR c/111884
48 * c-common.cc (c_common_get_alias_set): Return -1 for char8_t only
49 in C++.
50
512023-10-20 Patrick Palka <ppalka@redhat.com>
52
53 * c-warn.cc (check_address_or_pointer_of_packed_member): Handle
54 type-dependent callee of CALL_EXPR.
55
562023-10-20 Alexandre Oliva <oliva@adacore.com>
57
58 * c-attribs.cc (handle_expected_throw_attribute): New.
59 (c_common_attribute_table): Add expected_throw.
60
c85f7481
GA
612023-10-19 Lewis Hyatt <lhyatt@gmail.com>
62
63 PR c++/89038
64 * c-pragma.cc (handle_pragma_diagnostic_impl): Handle
65 -Wunknown-pragmas during early processing.
66
d5cfabc6
GA
672023-10-15 Jakub Jelinek <jakub@redhat.com>
68
69 PR tree-optimization/111800
70 * c-warn.cc (match_case_to_enum_1): Assert w.get_precision ()
71 is smaller or equal to WIDE_INT_MAX_INL_PRECISION rather than
72 w.get_len () is smaller or equal to WIDE_INT_MAX_INL_ELTS.
73
f9ef2e6d
GA
742023-10-12 Jakub Jelinek <jakub@redhat.com>
75
76 PR c/102989
77 * c-warn.cc (match_case_to_enum_1): Use wi::to_wide just once instead
78 of 3 times, assert get_len () is smaller than WIDE_INT_MAX_INL_ELTS.
79
41d1c9a9
GA
802023-10-02 David Malcolm <dmalcolm@redhat.com>
81
82 * c-common.cc (maybe_add_include_fixit): Update for renaming of
83 diagnostic_context's show_caret to m_source_printing.enabled.
84 * c-opts.cc (c_common_init_options): Update for renaming of
85 diagnostic_context's colorize_source_p to
86 m_source_printing.colorize_source_p.
87
4907d220
GA
882023-09-20 Jakub Jelinek <jakub@redhat.com>
89
90 PR c++/111392
91 * c-omp.cc (c_omp_directives): Add commented out groupprivate
92 directive entry.
93
590a8bec
GA
942023-09-19 Ben Boeckel <ben.boeckel@kitware.com>
95
96 * c-opts.cc (c_common_handle_option): Add fdeps_file variable and
97 -fdeps-format=, -fdeps-file=, and -fdeps-target= parsing.
98 * c.opt: Add -fdeps-format=, -fdeps-file=, and -fdeps-target=
99 flags.
100
1012023-09-19 Javier Martinez <javier.martinez.bugzilla@gmail.com>
102
103 * c-attribs.cc (handle_hot_attribute): remove warning on
104 RECORD_TYPE and UNION_TYPE when in c_dialect_xx.
105 (handle_cold_attribute): Likewise.
106
1072023-09-19 Jakub Jelinek <jakub@redhat.com>
108
109 * c-common.cc (c_common_signed_or_unsigned_type): Return INTEGER_TYPE
110 for signed variant of unsigned _BitInt(1).
111
a134b6ce
GA
1122023-09-06 Jakub Jelinek <jakub@redhat.com>
113
114 PR c/102989
115 * c-attribs.cc (type_valid_for_vector_size): Reject vector types
116 with BITINT_TYPE elements even if they have mode precision and
117 suitable size.
118
1192023-09-06 Jakub Jelinek <jakub@redhat.com>
120
121 PR c/102989
122 * c-common.cc (c_common_reswords): Add _BitInt as keyword.
123 (unsafe_conversion_p): Handle BITINT_TYPE like INTEGER_TYPE.
124 (c_common_signed_or_unsigned_type): Handle BITINT_TYPE.
125 (c_common_truthvalue_conversion, c_common_get_alias_set,
126 check_builtin_function_arguments): Handle BITINT_TYPE like
127 INTEGER_TYPE.
128 (sync_resolve_size): Add ORIG_FORMAT argument. If
129 FETCH && !ORIG_FORMAT, type is BITINT_TYPE, return -1 if size isn't
130 one of 1, 2, 4, 8 or 16 or if it is 16 but TImode is not supported.
131 (atomic_bitint_fetch_using_cas_loop): New function.
132 (resolve_overloaded_builtin): Adjust sync_resolve_size caller. If
133 -1 is returned, use atomic_bitint_fetch_using_cas_loop to lower it.
134 Formatting fix.
135 (keyword_begins_type_specifier): Handle RID_BITINT.
136 * c-common.h (enum rid): Add RID_BITINT enumerator.
137 * c-cppbuiltin.cc (c_cpp_builtins): For C call
138 targetm.c.bitint_type_info and predefine __BITINT_MAXWIDTH__
139 and for -fbuilding-libgcc also __LIBGCC_BITINT_LIMB_WIDTH__ and
140 __LIBGCC_BITINT_ORDER__ macros if _BitInt is supported.
141 * c-lex.cc (interpret_integer): Handle CPP_N_BITINT.
142 * c-pretty-print.cc (c_pretty_printer::simple_type_specifier,
143 c_pretty_printer::direct_abstract_declarator,
144 c_pretty_printer::direct_declarator, c_pretty_printer::declarator):
145 Handle BITINT_TYPE.
146 (pp_c_integer_constant): Handle printing of large precision wide_ints
147 which would buffer overflow digit_buffer.
148 * c-warn.cc (conversion_warning, warnings_for_convert_and_check,
149 warnings_for_convert_and_check): Handle BITINT_TYPE like
150 INTEGER_TYPE.
151
1522023-09-06 Jakub Jelinek <jakub@redhat.com>
153
154 PR c/102989
155 * c-ubsan.cc (ubsan_instrument_shift): Use UBSAN_PRINT_FORCE_INT
156 for type0 type descriptor.
157
1582023-09-06 Jakub Jelinek <jakub@redhat.com>
159
160 * c-lex.cc (interpret_float): For C diagnostics on FN and FNx suffixes
161 append " before C2X" to diagnostics text and follow behavior of
162 pedwarn_c11.
163
80907b03
GA
1642023-09-01 Jakub Jelinek <jakub@redhat.com>
165
166 PR c++/111069
167 * c-opts.cc (c_common_post_options): Change latest_abi_version to 19.
168
65c36ecc
GA
1692023-08-31 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
170
171 * c.opt: Change spelling to macOS.
172
1732023-08-31 Richard Biener <rguenther@suse.de>
174
175 PR middle-end/111253
176 * c-pretty-print.cc (c_pretty_printer::primary_expression):
177 Only dump gimple_assign_single_p SSA def RHS.
178
b8863640
GA
1792023-08-25 Sandra Loosemore <sandra@codesourcery.com>
180
181 * c-common.h (c_omp_check_loop_binding_exprs): Declare.
182 * c-omp.cc: Include tree-iterator.h.
183 (find_binding_in_body): New.
184 (check_loop_binding_expr_r): New.
185 (LOCATION_OR): New.
186 (check_looop_binding_expr): New.
187 (c_omp_check_loop_binding_exprs): New.
188
1892023-08-25 Uros Bizjak <ubizjak@gmail.com>
190
191 * c-format.cc (read_any_format_width):
192 Rename TRUE/FALSE to true/false.
193
a7593210
GA
1942023-08-20 Martin Uecker <uecker@tugraz.at>
195
196 * c-format.cc: Fix identation.
197
1982023-08-20 Tomas Kalibera <tomas.kalibera@gmail.com>
199
200 PR c/95130
201 * c-format.cc: skip default format for printf symbol if
202 explicitly declared by prototype.
203
1eb2433f
GA
2042023-08-17 Jose E. Marchesi <jose.marchesi@oracle.com>
205
206 PR c/106537
207 * c.opt (Wcompare-distinct-pointer-types): New option.
208
3cc78cf2
GA
2092023-08-14 Jason Merrill <jason@redhat.com>
210
211 * c-cppbuiltin.cc (c_cpp_builtins): Adjust __cpp_concepts.
212
886afed6
GA
2132023-08-11 Jakub Jelinek <jakub@redhat.com>
214
215 * c-common.cc (c_common_reswords): Add __typeof_unqual
216 and __typeof_unqual__ spellings of typeof_unqual.
217
2182023-08-11 Martin Uecker <uecker@tugraz.at>
219
220 PR c/84510
221 * c.opt: Enable warning for C and ObjC.
222
87b0749c
GA
2232023-08-05 Martin Uecker <uecker@tugraz.at>
224
225 PR c/98536
226 * c-warn.cc (warn_parm_array_mismatch): Do not warn if more
227 bounds are specified.
228
5b42ee2c
GA
2292023-08-04 Tamar Christina <tamar.christina@arm.com>
230
231 * c-pragma.h (enum pragma_kind): Add PRAGMA_NOVECTOR.
232 * c-pragma.cc (init_pragma): Use it.
233
cf58b896
GA
2342023-08-01 Lewis Hyatt <lhyatt@gmail.com>
235
236 * c-common.h (c_init_preprocess): Declare new function.
237 * c-opts.cc (c_common_init): Call it.
238 * c-lex.cc (cb_def_pragma): Add a comment.
239 (get_token): New function wrapping cpp_get_token.
240 (c_lex_with_flags): Use the new wrapper function to support
241 obtaining tokens in preprocess_only mode.
242 (lex_string): Likewise.
243 * c-pragma.cc (pragma_diagnostic_lex_normal): Rename to...
244 (pragma_diagnostic_lex): ...this.
245 (pragma_diagnostic_lex_pp): Remove.
246 (handle_pragma_diagnostic_impl): Call pragma_diagnostic_lex () in
247 all modes.
248 (c_pp_invoke_early_pragma_handler): Adapt to support pragma_lex ()
249 usage.
250 * c-pragma.h (pragma_lex_discard_to_eol): Declare.
251
a2f31d79
GA
2522023-07-31 Hamza Mahfooz <someguy@effective-light.com>
253
254 PR c/65213
255 * c.opt (-Wmissing-variable-declarations): New option.
256
e2bf82d5
GA
2572023-07-20 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
258
259 PR middle-end/77928
260 * c-common.cc (check_builtin_function_arguments):
261 Handle BUILT_IN_ISEQSIG.
262
5158918a
GA
2632023-07-05 Robin Dapp <rdapp@ventanamicro.com>
264 Juzhe-Zhong <juzhe.zhong@rivai.ai>
265
266 * c-common.cc (c_common_type_for_mode): Use GET_MODE_PRECISION.
267
14bfda60
GA
2682023-06-29 Qing Zhao <qing.zhao@oracle.com>
269
270 PR c/77650
271 * c.opt: New option -Wflex-array-member-not-at-end.
272
5f590ee3
GA
2732023-06-28 Jason Merrill <jason@redhat.com>
274
275 PR c++/110344
276 * c-cppbuiltin.cc (c_cpp_builtins): Update __cpp_constexpr.
277
267e1fea
GA
2782023-06-26 Richard Biener <rguenther@suse.de>
279
280 * c-common.cc (shorten_binary_op): Exit early for VECTOR_TYPE
281 operations.
282
6f78df4c
GA
2832023-06-23 Marek Polacek <polacek@redhat.com>
284
285 * c-common.h (cxx_dialect): Add cxx26 as a dialect.
286 * c-opts.cc (set_std_cxx26): New.
287 (c_common_handle_option): Set options when -std={c,gnu}++2{c,6} is
288 enabled.
289 (c_common_post_options): Adjust comments.
290 * c.opt: Add options for -std=c++26, std=c++2c, -std=gnu++26,
291 and -std=gnu++2c.
292 (std=c++2b): Mark as Undocumented.
293 (std=c++23): No longer Undocumented.
294
80e9ca0e
GA
2952023-06-21 Alexander Monakov <amonakov@ispras.ru>
296
297 * c-gimplify.cc (fma_supported_p): New helper.
298 (c_gimplify_expr) [PLUS_EXPR, MINUS_EXPR]: Implement FMA
299 contraction.
300
f10a4ce0
GA
3012023-06-16 Alex Coplan <alex.coplan@arm.com>
302
303 * c.opt (Welaborated-enum-base): New.
304
532fb120
GA
3052023-06-13 David Malcolm <dmalcolm@redhat.com>
306
307 PR c/84890
308 * known-headers.cc
309 (suggest_missing_header::~suggest_missing_header): Reword note to
310 avoid negative tone of "forgetting".
311
8c5b1365
GA
3122023-06-07 Jason Merrill <jason@redhat.com>
313
314 PR c++/58487
315 * c.opt: Add -Wnrvo.
316
6e6bb373
GA
3172023-05-26 Martin Uecker <uecker@tugraz.at>
318
319 * c-attribs.cc (build_attr_access_from_parms): Split loop to first
320 record all parameters.
321
b2776076
GA
3222023-05-18 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
323
324 * c-ada-spec.cc (has_static_fields): Use _P() defines from tree.h.
325 (dump_ada_declaration): Ditto.
326 (dump_ada_structure): Ditto.
327 * c-common.cc (unsafe_conversion_p): Ditto.
328 (shorten_compare): Ditto.
329 (pointer_int_sum): Ditto.
330 (c_common_truthvalue_conversion): Ditto.
331 (scalar_to_vector): Ditto.
332 * c-common.h (gnu_vector_type_p): Ditto.
333 * c-omp.cc (c_omp_depend_t_p): Ditto.
334 (c_omp_split_clauses): Ditto.
335 * c-ubsan.cc (ubsan_instrument_division): Ditto.
336 * c-warn.cc (conversion_warning): Ditto.
337 (warnings_for_convert_and_check): Ditto.
338
ff2dcddf
GA
3392023-05-18 Joseph Myers <joseph@codesourcery.com>
340
341 * c-format.cc (print_char_table): Handle %B like %b.
342
3427b51b
GA
3432023-05-15 Joseph Myers <joseph@codesourcery.com>
344
345 * c-lex.cc (c_common_has_attribute): Use 202311 as
346 __has_c_attribute return for all C2x attributes.
347
3482023-05-15 Patrick Palka <ppalka@redhat.com>
349
350 * c-cppbuiltin.cc (c_cpp_builtins): Predefine __cpp_auto_cast
351 for C++23.
352
1fc8da95
GA
3532023-05-01 Marek Polacek <polacek@redhat.com>
354
355 * c-ubsan.cc (ubsan_maybe_instrument_array_ref): Don't copy_node.
356
579cdc1e
GA
3572023-03-28 David Malcolm <dmalcolm@redhat.com>
358
359 PR c/107002
360 * c-common.h (check_for_xor_used_as_pow): Add "rhs_loc" param.
361 * c-warn.cc (check_for_xor_used_as_pow): Add "rhs_loc" param.
362 Reject cases where involving macro expansions.
363
3642023-03-28 Jason Merrill <jason@redhat.com>
365
366 PR c++/107163
367 * c-common.cc (verify_tree): Don't use sequenced handling
368 for COMPONENT_REF.
369
454a4d50
GA
3702023-03-17 Jakub Jelinek <jakub@redhat.com>
371
372 PR c/109151
373 * c-ubsan.cc (ubsan_instrument_division): Handle all scalar integral
374 types rather than just INTEGER_TYPE.
375
c8065441
GA
3762023-03-10 Marek Polacek <polacek@redhat.com>
377
378 PR sanitizer/108060
379 PR sanitizer/109050
380 * c-gimplify.cc (ubsan_walk_array_refs_r): For a MODIFY_EXPR, instrument
381 the RHS before the LHS.
382
2858bf16
GA
3832023-03-04 Jakub Jelinek <jakub@redhat.com>
384
385 PR c/107465
386 * c-warn.cc (warn_for_sign_compare): Don't warn for unset bits
387 above innermost zero extension of BIT_NOT_EXPR result.
388
3892023-03-04 Jakub Jelinek <jakub@redhat.com>
390
391 PR c/107465
392 * c-warn.cc (warn_for_sign_compare): If c_common_get_narrower
393 doesn't return a narrower result, use TYPE_UNSIGNED to set unsignedp0
394 and unsignedp1. For the one BIT_NOT_EXPR case vs. one without,
395 only check for constant in the non-BIT_NOT_EXPR operand, use std::swap
396 to simplify the code, only warn if BIT_NOT_EXPR operand is extended
397 from narrower unsigned, fix up computation of mask for the constant
398 cases and for unsigned other operand case handle differently
399 BIT_NOT_EXPR result being sign vs. zero extended.
400
4012023-03-04 Jakub Jelinek <jakub@redhat.com>
402
403 PR c/107846
404 * c-warn.cc: Include langhooks.h.
405 (maybe_warn_shift_overflow): Set type0 to what TREE_TYPE (op0)
406 promotes to rather than TREE_TYPE (op0) itself, if TREE_TYPE (op0)
407 is narrower than type0 and unsigned, use wi::min_precision with
408 UNSIGNED and fold_convert op0 to type0 before emitting the warning.
409
2aa6673e
GA
4102023-03-03 Alexandre Oliva <oliva@adacore.com>
411
412 * c-common.cc (c_common_nodes_and_builtins): Take
413 wchar_type_node for wint_type_node when aliased.
414 (c_stddef_cpp_builtins): Define __WINT_TYPE__, when aliased to
415 wchar_t, to the underlying type rather than wchar_t in
416 non-C++.
417 * c-cppbuiltin.cc (type_suffix): Handle wchar_type_node.
418
6f9e2f14
GA
4192023-02-28 Marek Polacek <polacek@redhat.com>
420
421 PR c++/107938
422 * c-warn.cc (check_address_or_pointer_of_packed_member): Check
423 POINTER_TYPE_P.
424
4252023-02-28 Jakub Jelinek <jakub@redhat.com>
426
427 PR sanitizer/108894
428 * c-common.h (c_strict_flex_array_level_of): Declare.
429 * c-common.cc (c_strict_flex_array_level_of): New function,
430 moved and renamed from c-decl.cc's strict_flex_array_level_of.
431 * c-ubsan.cc (ubsan_instrument_bounds): Fix comment typo. For
432 C check c_strict_flex_array_level_of whether a trailing array
433 should be treated as flexible member like. Handle C [0] arrays.
434 Add 1 + index_off_by_one rather than index_off_by_one to bounds
435 and use tree_int_cst_lt rather than tree_int_cst_le for idx vs.
436 bounds comparison.
437
e2b20ed3
GA
4382023-02-23 Jakub Jelinek <jakub@redhat.com>
439
440 PR translation/108890
441 * c.opt (fcontracts): Fix description.
442
b6f98991
GA
4432023-02-22 Marek Polacek <polacek@redhat.com>
444
445 PR c/108880
446 * c-gimplify.cc (c_genericize_control_stmt) <case STATEMENT_LIST>: Pass
447 pset to walk_tree_1.
448 (c_genericize): Call walk_tree with an explicit pset.
449
0263e9d5
GA
4502023-02-18 Martin Uecker <uecker@tugraz.at>
451
452 PR c/105660
453 * c-attribs.cc (append_access_attr): Use order of arguments when
454 construction string.
455 (append_access_attr_idxs): Rename and make static.
456 * c-warn.cc (warn_parm_array_mismatch): Add assertion.
457
88cc4495
GA
4582023-02-16 Patrick Palka <ppalka@redhat.com>
459
460 * c-common.h: Mechanically drop static from static inline
461 functions via s/^static inline/inline/g.
462
0a251e74
GA
4632023-02-01 Jason Merrill <jason@redhat.com>
464
465 * c.opt: Add -Wno-changes-meaning.
466
317525b0
GA
4672023-01-31 Marek Polacek <polacek@redhat.com>
468
469 PR c++/107593
470 PR c++/108597
471 * c-common.h (instantiation_dependent_expression_p): Declare.
472 * c-warn.cc (warn_duplicated_cond_add_or_warn): If the condition
473 is dependent, invalidate the chain.
474
2371d100
GA
4752023-01-26 Marek Polacek <polacek@redhat.com>
476
477 PR c++/105300
478 * c-pragma.cc (handle_pragma_message): Warn for CPP_STRING_USERDEF.
479
9f98cfa5
GA
4802023-01-18 Marek Polacek <polacek@redhat.com>
481
482 PR c/108424
483 * c-common.cc (check_case_value): Check INTEGRAL_TYPE_P.
484
5013c3bb
GA
4852023-01-14 Jakub Jelinek <jakub@redhat.com>
486
487 PR c++/108365
488 * c-common.h (may_shorten_divmod): New static inline function.
489
4902023-01-13 Eric Botcazou <ebotcazou@adacore.com>
491
492 * c-ada-spec.cc (is_float32): New function.
493 (is_float64): Likewise.
494 (is_float128): Tweak.
495 (dump_ada_node) <REAL_TYPE>: Call them to recognize more types.
496
81ed98bc
GA
4972023-01-12 Lewis Hyatt <lhyatt@gmail.com>
498
499 PR preprocessor/108244
500 * c-pragma.cc (c_register_pragma_1): Don't attempt to register any
501 deferred pragmas if -fdirectives-only.
502 (init_pragma): Likewise.
503
84723aca
GA
5042023-01-09 Martin Liska <mliska@suse.cz>
505
506 PR c/107993
507 * c-attribs.cc (handle_target_clones_attribute): Check for
508 string constant for all target_clone attribute values.
509
0f8fbb57
GA
5102023-01-03 Florian Weimer <fweimer@redhat.com>
511
512 * c-cppbuiltin.cc (c_cpp_builtins): Define
513 __LIBGCC_DWARF_CIE_DATA_ALIGNMENT__.
514
5152023-01-03 Florian Weimer <fweimer@redhat.com>
516
517 Revert:
518 2023-01-03 Florian Weimer <fweimer@redhat.com>
519
520 * c-cppbuiltin.cc (__LIBGCC_DWARF_REG_SIZES_CONSTANT__):
521 Define if constant is known.
522
5232023-01-03 Florian Weimer <fweimer@redhat.com>
524
525 Revert:
526 2023-01-02 Florian Weimer <fweimer@redhat.com>
527
528 * c-cppbuiltin.cc (c_cpp_builtins): Define
529 __LIBGCC_DWARF_CIE_DATA_ALIGNMENT__.
530
fee53a31
GA
5312023-01-02 Florian Weimer <fweimer@redhat.com>
532
533 * c-cppbuiltin.cc (c_cpp_builtins): Define
534 __LIBGCC_DWARF_CIE_DATA_ALIGNMENT__.
535
5362023-01-02 Florian Weimer <fweimer@redhat.com>
537
538 * c-cppbuiltin.cc (__LIBGCC_DWARF_REG_SIZES_CONSTANT__):
539 Define if constant is known.
540
d2ef2327
GA
5412022-12-19 Marek Polacek <polacek@redhat.com>
542
543 PR c/98487
544 * c-format.cc (check_function_format): Use get_attribute_name.
545
5fb1e674
GA
5462022-12-16 Qing Zhao <qing.zhao@oracle.com>
547
548 * c.opt (Wstrict-flex-arrays): New option.
549
596dbfff
GA
5502022-12-02 Andrew MacLeod <amacleod@redhat.com>
551
552 * c-attribs.cc (handle_deprecated_attribute): Use type when
553 using TYPE_NAME.
554
b35680ec
GA
5552022-12-02 Jakub Jelinek <jakub@redhat.com>
556
557 PR c++/84469
558 * c-omp.cc (c_omp_is_loop_iterator): For range for with structured
559 binding return TREE_VEC_LENGTH (d->declv) even if decl is equal
560 to any of the structured binding decls.
561
6eea85a9
GA
5622022-11-30 Iskander Shakirzyanov <iskander@ispras.ru>
563 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
564
565 PR driver/107787
566 * c-common.cc (fold_offsetof,
567 convert_vector_to_array_for_subscript): Use OPT_Warray_bounds_
568 instead of OPT_Warray_bounds.
569
9a1b4f1d
GA
5702022-11-24 Jakub Jelinek <jakub@redhat.com>
571
572 * c.opt (fcontract-role=, fcontract-semantic=): Terminate descriptions
573 with a dot.
574
8761284f
GA
5752022-11-23 Andrew Pinski <apinski@marvell.com>
576 Jakub Jelinek <jakub@redhat.com>
577
578 PR c/107127
579 * c-gimplify.cc (c_genericize): Use walk_tree_without_duplicates
580 instead of walk_tree for c_genericize_control_r.
581
5822022-11-23 Jakub Jelinek <jakub@redhat.com>
583
584 * c.opt (fcontract-assumption-mode=, fcontract-continuation-mode=,
585 fcontract-role=, fcontract-semantic=): Add RejectNegative.
586 (fcontract-build-level=): Terminate description with dot.
587
fb98ede8
GA
5882022-11-19 Jakub Jelinek <jakub@redhat.com>
589
590 * c-cppbuiltin.cc (c_cpp_builtins): Bump __cpp_constexpr
591 value from 202207L to 202211L.
592
5932022-11-19 Jeff Chapman II <jchapman@lock3software.com>
594 Andrew Sutton <asutton@lock3software.com>
595 Andrew Marmaduke <amarmaduke@lock3software.com>
596 Michael Lopez <mlopez@lock3software.com>
597 Jason Merrill <jason@redhat.com>
598
599 * c.opt: Add contracts flags.
600 * c-cppbuiltin.cc (c_cpp_builtins): Add contracts feature-test
601 macros.
602
80909529
GA
6032022-11-16 Marek Polacek <polacek@redhat.com>
604
605 PR c++/106649
606 * c-cppbuiltin.cc (c_cpp_builtins): Update value of __cpp_constexpr for
607 C++23.
608 * c-opts.cc (c_common_post_options): Set warn_invalid_constexpr
609 depending on cxx_dialect.
610 * c.opt (Winvalid-constexpr): New option.
611
6122022-11-16 Jakub Jelinek <jakub@redhat.com>
613
614 * c-common.def (CONCEPT_DECL): New tree, moved here from
615 cp-tree.def.
616 * c-common.cc (c_common_init_ts): Handle CONCEPT_DECL.
617 * c-attribs.cc (handle_deprecated_attribute): Allow deprecated
618 attribute on CONCEPT_DECL.
619
cdc34229
GA
6202022-11-15 Lewis Hyatt <lhyatt@gmail.com>
621
622 * c-opts.cc (c_finish_options): Use special_fname_builtin () rather
623 than a hard-coded string.
624
83d400bd
GA
6252022-11-15 Jakub Jelinek <jakub@redhat.com>
626
627 * c-cppbuiltin.cc (c_cpp_builtins): Bump C++23
628 __cpp_multidimensional_subscript macro value to 202211L.
629
6302022-11-15 Patrick Palka <ppalka@redhat.com>
631
632 PR c++/107638
633 * c-lex.cc (c_common_has_attribute): Return 1 for init_priority
634 iff SUPPORTS_INIT_PRIORITY.
635
6362022-11-14 Martin Liska <mliska@suse.cz>
637
638 Revert:
639 2022-11-09 Martin Liska <mliska@suse.cz>
640
641 * c-target.def: Port to RST.
642
30d77d49
GA
6432022-11-12 Joseph Myers <joseph@codesourcery.com>
644
645 * c-common.cc (c_common_reswords): Use D_C2X instead of D_CXXONLY.
646
5b6ce16a
GA
6472022-11-11 Jonathan Wakely <jwakely@redhat.com>
648
649 PR c/85487
650 * c-pragma.cc (handle_pragma_ignore): New function.
651 (init_pragma): Register region and endregion pragmas.
652
1cdfd0e5
GA
6532022-11-09 Martin Liska <mliska@suse.cz>
654
655 * c-target.def: Port to RST.
656
05788e9b
GA
6572022-11-05 Lewis Hyatt <lhyatt@gmail.com>
658
659 PR preprocessor/55971
660 * c-ppoutput.cc (adjust_for_newlines): Update comment.
661
d29260ce
GA
6622022-11-03 Jason Merrill <jason@redhat.com>
663
664 * c-opts.cc (c_common_post_options): -fconcepts no longer implies
665 -fconcepts-ts before C++20.
666
3055829a
GA
6672022-10-28 Joseph Myers <joseph@codesourcery.com>
668
669 * c-common.cc (def_fn_type): Call build_function_type for
670 zero-argument variable-argument function.
671 (c_common_nodes_and_builtins): Build default_function_type with
672 build_function_type.
673 * c.opt (fallow-parameterless-variadic-functions): Mark as ignored
674 option.
675
6762022-10-28 Joseph Myers <joseph@codesourcery.com>
677
678 PR c/61469
679 * c-common.h (ENUM_UNDERLYING_TYPE, ENUM_FIXED_UNDERLYING_TYPE_P):
680 New. Moved from cp/cp-tree.h.
681 * c-warn.cc (warnings_for_convert_and_check): Do not consider
682 conversions to enum with underlying type bool to overflow.
683
486a5037
GA
6842022-10-26 Marek Polacek <polacek@redhat.com>
685
686 PR c++/106393
687 * c.opt (Wdangling-reference): New.
688
87f9c4a4
GA
6892022-10-19 Joseph Myers <joseph@codesourcery.com>
690
691 * c-format.h (enum format_lengths): Add FMT_LEN_w8, FMT_LEN_w16,
692 FMT_LEN_w32, FMT_LEN_w64, FMT_LEN_wf8, FMT_LEN_wf16, FMT_LEN_wf32
693 and FMT_LEN_wf64.
694 (NOARGUMENTS, NOLENGTHS): Update definitions.
695 (T_I8, T2X_I8, T_I16, T2X_I16, T_I32, T2X_I32, T_I64, T2X_I64)
696 (T_U8, T2X_U8, T_U16, T2X_U16, T_U32, T2X_U32, T_U64, T2X_U64)
697 (T_IF8, T2X_IF8, T_IF16, T2X_IF16, T_IF32, T2X_IF32, T_IF64)
698 (T2X_IF64, T_UF8, T2X_UF8, T_UF16, T2X_UF16, T_UF32, T2X_UF32)
699 (T_UF64, T2X_UF64): New macros.
700 * c-format.cc (printf_length_specs, scanf_length_specs): Add wN
701 and wfN length modifiers.
702 (print_char_table, scan_char_table): Add entries using wN and wfN
703 length modifiers.
704
21de009f
GA
7052022-10-18 Joseph Myers <joseph@codesourcery.com>
706
707 PR c/36113
708 * c-common.cc (c_common_type_for_size): Add fallback to
709 widest_unsigned_literal_type_node or
710 widest_integer_literal_type_node for precision that may not
711 exactly match the precision of those types.
712
baeec7cc
GA
7132022-10-14 Jakub Jelinek <jakub@redhat.com>
714
715 * c-cppbuiltin.cc (c_cpp_builtins): If bfloat16_type_node,
716 predefine __BFLT16_*__ macros and for C++23 also
717 __STDCPP_BFLOAT16_T__. Predefine bfloat16_type_node related
718 macros for -fbuilding-libgcc.
719 * c-lex.cc (interpret_float): Handle CPP_N_BFLOAT16.
720
7212022-10-14 Jakub Jelinek <jakub@redhat.com>
722
723 PR middle-end/323
724 PR c++/107097
725 * c-common.def (EXCESS_PRECISION_EXPR): Remove comment part about
726 the tree being specific to C/ObjC.
727 * c-opts.cc (c_common_post_options): Handle flag_excess_precision
728 in C++ the same as in C.
729 * c-lex.cc (interpret_float): Set const_type to excess_precision ()
730 even for C++.
731
621a911d
GA
7322022-10-13 Joseph Myers <joseph@codesourcery.com>
733
734 * c-cppbuiltin.cc (builtin_define_float_constants): Do not use
735 value 2 for *_IS_IEC_60559.
736
781f477a
GA
7372022-10-12 Lewis Hyatt <lhyatt@gmail.com>
738
739 PR preprocessor/60014
740 PR preprocessor/60723
741 * c-ppoutput.cc (class token_streamer): Remove member
742 line_marker_emitted to...
743 (token_streamer::stream): ...a local variable here. Set
744 print.prev_was_system_token on all code paths.
745
27bfe54e
GA
7462022-10-10 Nathan Sidwell <nathan@acm.org>
747
748 * c-opts.cc (c_common_post_options): Bump abi to 18.
749
7502022-10-10 Marek Polacek <polacek@redhat.com>
751
752 PR c++/106937
753 * c-pretty-print.cc (pp_c_specifier_qualifier_list): Print only GNU
754 attributes here.
755 (c_pretty_printer::direct_abstract_declarator): Print the standard [[]]
756 attributes here.
757 (pp_c_attributes): Remove.
758 (pp_c_attributes_display): Print the [[]] form if appropriate. Use
759 get_attribute_name. Don't print a trailing space when printing the
760 [[]] form.
761 * c-pretty-print.h (pp_c_attributes): Remove.
762
9ff6c33e
GA
7632022-10-07 Qing Zhao <qing.zhao@oracle.com>
764
765 * c-attribs.cc (handle_strict_flex_array_attribute): New function.
766 (c_common_attribute_table): New item for strict_flex_array.
767 * c.opt: (fstrict-flex-arrays): New option.
768 (fstrict-flex-arrays=): New option.
769
7702022-10-07 Martin Liska <mliska@suse.cz>
771
772 * name-hint.h: Use std::move.
773
7742022-10-07 Jakub Jelinek <jakub@redhat.com>
775
776 * c-common.cc (attribute_fallthrough_p): Lookup fallthrough attribute
777 only in gnu namespace or as standard attribute, treat fallthrough
778 attributes in other namespaces like any other unknown attribute.
779
629d04d3
GA
7802022-10-06 Joseph Myers <joseph@codesourcery.com>
781
782 * c-common.cc (c_common_reswords): Mark typeof as D_EXT11. Add
783 typeof_unqual.
784 * c-common.h (enum rid): Add RID_TYPEOF_UNQUAL.
785 (D_EXT11): New macro. Values of subsequent macros updated.
786
7872022-10-06 Jakub Jelinek <jakub@redhat.com>
788
789 PR c++/106654
790 * c-attribs.cc (handle_assume_attribute): New function.
791 (c_common_attribute_table): Add entry for assume attribute.
792 * c-lex.cc (c_common_has_attribute): Handle
793 __have_cpp_attribute (assume).
794
85872a69
GA
7952022-10-04 Jakub Jelinek <jakub@redhat.com>
796
797 * c-omp.cc (c_omp_directives): Uncomment begin declare target
798 entry.
799
69fd6dcc
GA
8002022-10-03 Patrick Palka <ppalka@redhat.com>
801
802 * c-common.cc (c_common_reswords): Use RID_IS_SAME instead of
803 RID_IS_SAME_AS.
804
8052022-10-03 Joseph Myers <joseph@codesourcery.com>
806
807 * c-cppbuiltin.cc (builtin_define_float_constants): Do not
808 special-case __*_EPSILON__ setting for IBM long double for C2x.
809
3a221b73
GA
8102022-09-30 Patrick Palka <ppalka@redhat.com>
811
812 * c-common.cc (c_common_reswords): Use cp/cp-trait.def to handle
813 C++ traits.
814 * c-common.h (enum rid): Likewise.
815
bbdcdf5c
GA
8162022-09-29 Joseph Myers <joseph@codesourcery.com>
817
818 * c-lex.cc (c_common_has_attribute): Handle noreturn attribute for
819 C.
820
8212022-09-29 Patrick Palka <ppalka@redhat.com>
822
823 * c-common.cc (c_common_reswords): Add __remove_cv,
824 __remove_reference and __remove_cvref.
825 * c-common.h (enum rid): Add RID_REMOVE_CV, RID_REMOVE_REFERENCE
826 and RID_REMOVE_CVREF.
827
1f16a020
GA
8282022-09-27 Marek Polacek <polacek@redhat.com>
829
830 PR c++/101165
831 PR c++/106882
832 * c-cppbuiltin.cc (c_cpp_builtins): Define __cpp_implicit_move.
833
8342022-09-27 Marek Polacek <polacek@redhat.com>
835
836 * c-format.cc (c_keywords): Drop nothrow.
837
8382022-09-27 Jakub Jelinek <jakub@redhat.com>
839
840 PR c++/106651
841 * c-cppbuiltin.cc (c_cpp_builtins): Predefine
842 __cpp_static_call_operator=202207L for C++23.
843
8442022-09-27 Jakub Jelinek <jakub@redhat.com>
845
846 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_ASSUME,
847 PRAGMA_OMP_ASSUMES and PRAGMA_OMP_BEGIN. Rename
848 PRAGMA_OMP_END_DECLARE_TARGET to PRAGMA_OMP_END.
849 * c-pragma.cc (omp_pragmas): Add assumes and begin.
850 For end rename PRAGMA_OMP_END_DECLARE_TARGET to PRAGMA_OMP_END.
851 (omp_pragmas_simd): Add assume.
852 * c-common.h (c_omp_directives): Declare.
853 * c-omp.cc (omp_directives): Rename to ...
854 (c_omp_directives): ... this. No longer static. Uncomment
855 assume, assumes, begin assumes and end assumes entries.
856 In end declare target entry rename PRAGMA_OMP_END_DECLARE_TARGET
857 to PRAGMA_OMP_END.
858 (c_omp_categorize_directive): Adjust for omp_directives to
859 c_omp_directives renaming.
860
8612022-09-27 Jakub Jelinek <jakub@redhat.com>
862
863 PR c++/106652
864 PR c++/85518
865 * c-common.cc (c_common_reswords): Change _Float{16,32,64,128} and
866 _Float{32,64,128}x flags from D_CONLY to 0.
867 (shorten_binary_op): Punt if common_type returns error_mark_node.
868 (shorten_compare): Likewise.
869 (c_common_nodes_and_builtins): For C++ record _Float{16,32,64,128}
870 and _Float{32,64,128}x builtin types if available. For C++
871 clear float128t_type_node.
872 * c-cppbuiltin.cc (c_cpp_builtins): Predefine
873 __STDCPP_FLOAT{16,32,64,128}_T__ for C++23 if supported.
874 * c-lex.cc (interpret_float): For q/Q suffixes prefer
875 float128t_type_node over float128_type_node. Allow
876 {f,F}{16,32,64,128} suffixes for C++ if supported with pedwarn
877 for C++20 and older. Allow {f,F}{32,64,128}x suffixes for C++
878 with pedwarn. Don't call excess_precision_type for C++.
879
220c4d8e
GA
8802022-09-26 Marek Polacek <polacek@redhat.com>
881
882 PR c++/106656
883 * c-cppbuiltin.cc (c_cpp_builtins): Update value of __cpp_char8_t
884 for C++20.
885
4afaeaab
GA
8862022-09-23 Marek Polacek <polacek@redhat.com>
887
888 PR c++/106784
889 * c-common.cc (c_common_reswords): Add __is_convertible and
890 __is_nothrow_convertible.
891 * c-common.h (enum rid): Add RID_IS_CONVERTIBLE and
892 RID_IS_NOTHROW_CONVERTIBLE.
893
279c6715
GA
8942022-09-22 David Malcolm <dmalcolm@redhat.com>
895
896 PR c/106830
897 * c-warn.cc (check_for_xor_used_as_pow): Don't try checking
898 values that don't fit in uhwi.
899
d0fc05e8
GA
9002022-09-15 Richard Biener <rguenther@suse.de>
901
902 * c-common.h (build_void_list_node): Remove.
903 * c-common.cc (c_common_nodes_and_builtins): Do not initialize
904 void_list_node.
905
861d1a11
GA
9062022-09-09 Jan-Benedict Glaw <jbglaw@lug-owl.de>
907
908 * c-format.cc (convert_format_name_to_system_name): Fix warning.
909
fe2a8ce9
GA
9102022-09-07 Joseph Myers <joseph@codesourcery.com>
911
912 * c-common.cc (c_common_reswords): Use D_C2X instead of D_CXXONLY
913 for alignas, alignof, bool, false, static_assert, thread_local and
914 true.
915
9162022-09-07 Jakub Jelinek <jakub@redhat.com>
917
918 * c.opt (Winvalid-utf8): Use ObjC instead of objC. Remove
919 " in comments" from description.
920 (Wunicode): New option.
921
25aeb922
GA
9222022-09-06 Jakub Jelinek <jakub@redhat.com>
923
924 PR c/106836
925 * c-omp.cc (c_omp_split_clauses): Handle OMP_CLAUSE_DOACROSS.
926
83f2f228
GA
9272022-09-03 Jakub Jelinek <jakub@redhat.com>
928
929 * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_DOACROSS.
930 * c-omp.cc (c_finish_omp_depobj): Check also for OMP_CLAUSE_DOACROSS
931 clause and diagnose it. Don't handle OMP_CLAUSE_DEPEND_SOURCE and
932 OMP_CLAUSE_DEPEND_SINK. Assert kind is not OMP_CLAUSE_DEPEND_INVALID.
933
c64b0947
GA
9342022-09-02 David Malcolm <dmalcolm@redhat.com>
935
936 PR c/90885
937 * c-common.h (check_for_xor_used_as_pow): New decl.
938 * c-lex.cc (c_lex_with_flags): Add DECIMAL_INT to flags as appropriate.
939 * c-warn.cc (check_for_xor_used_as_pow): New.
940 * c.opt (Wxor-used-as-pow): New.
941
bb0a1556
GA
9422022-09-01 Jason Merrill <jason@redhat.com>
943
944 * c-common.cc (c_common_nodes_and_builtins): Set TREE_STRING_FLAG on
945 char8_t.
946 (braced_list_to_string): Check for char-sized elements.
947
9482022-09-01 Jakub Jelinek <jakub@redhat.com>
949
950 PR c++/106655
951 * c.opt (-Winvalid-utf8): New warning.
952 * c-opts.cc (c_common_handle_option) <case OPT_finput_charset_>:
953 Set cpp_opts->cpp_input_charset_explicit.
954 (c_common_post_options): If -finput-charset=UTF-8 is explicit
955 in C++23, enable -Winvalid-utf8 by default and if -pedantic
956 or -pedantic-errors, make it a pedwarn.
957
542c60c4
GA
9582022-08-31 Joseph Myers <joseph@codesourcery.com>
959
960 * c-attribs.cc (handle_deprecated_attribute): Check and pedwarn
961 for LABEL_DECL.
962 * c-common.cc (c_add_case_label): Add argument ATTRS. Call
963 decl_attributes.
964 * c-common.h (do_case, c_add_case_label): Update declarations.
965 * c-lex.cc (c_common_has_attribute): For C, produce a result of
966 201910 for fallthrough and 202106 for maybe_unused.
967
16f542d6
GA
9682022-08-26 Marek Polacek <polacek@redhat.com>
969
970 PR c++/81159
971 * c.opt (Wself-move): New option.
972
9732022-08-26 Jakub Jelinek <jakub@redhat.com>
974
975 * c-common.cc (check_builtin_function_arguments): Handle
976 BUILT_IN_ISSIGNALING.
977
9782022-08-26 Jakub Jelinek <jakub@redhat.com>
979
980 PR c++/106648
981 * c-cppbuiltin.cc (c_cpp_builtins): Predefine
982 __cpp_named_character_escapes to 202207L.
983
5d4389dc
GA
9842022-08-25 Marek Polacek <polacek@redhat.com>
985
986 * c-common.cc (c_common_reswords): Enable nullptr in C2X.
987 (c_common_nodes_and_builtins): Create the built-in node for nullptr.
988 * c-common.h (enum c_tree_index): Add CTI_NULLPTR, CTI_NULLPTR_TYPE.
989 (struct c_common_resword): Resize the disable member.
990 (D_C2X): Add.
991 (nullptr_node): Define.
992 (nullptr_type_node): Define.
993 (NULLPTR_TYPE_P): Define.
994 * c-pretty-print.cc (c_pretty_printer::simple_type_specifier): Handle
995 NULLPTR_TYPE.
996 (c_pretty_printer::direct_abstract_declarator): Likewise.
997 (c_pretty_printer::constant): Likewise.
998
47a61e65
GA
9992022-08-16 Tom Honermann <tom@honermann.net>
1000
1001 PR c++/106423
1002 * c-opts.cc (c_common_post_options): Disable -Wc++20-compat
1003 diagnostics in C++20 and later.
1004 * c.opt (Wc++20-compat): Enable hooks for the preprocessor.
1005
5cd525f0
GA
10062022-08-11 Marek Polacek <polacek@redhat.com>
1007
1008 PR middle-end/102633
1009 * c-gimplify.cc (c_gimplify_expr) <case DECL_EXPR>: Don't call
1010 suppress_warning here.
1011
5f17badb
GA
10122022-08-08 Tom Honermann <tom@honermann.net>
1013
1014 PR preprocessor/106426
1015 * c-opts.cc (c_common_post_options): Assign cpp_opts->unsigned_utf8char
1016 subject to -fchar8_t, -fsigned-char, and/or -funsigned-char.
1017
10182022-08-08 Tom Honermann <tom@honermann.net>
1019
1020 * c-lex.cc (lex_string, lex_charconst): Use char8_t as the type
1021 of CPP_UTF8CHAR and CPP_UTF8STRING when char8_t support is
1022 enabled.
1023 * c-opts.cc (c_common_post_options): Set flag_char8_t if
1024 targeting C2x.
1025
4a7274dd
GA
10262022-07-31 Lewis Hyatt <lhyatt@gmail.com>
1027
1028 PR c++/66290
1029 * c-common.h: Rename global done_lexing to
1030 override_libcpp_locations.
1031 * c-common.cc (c_cpp_diagnostic): Likewise.
1032 * c-opts.cc (c_common_finish): Set override_libcpp_locations
1033 (formerly done_lexing) immediately prior to calling cpp_finish ().
1034
1e2c5f4c
GA
10352022-07-27 Lewis Hyatt <lhyatt@gmail.com>
1036
1037 * c-ppoutput.cc (token_streamer::stream): Update input_location
1038 prior to streaming each token.
1039
0e6fa997
GA
10402022-07-23 Immad Mir <mirimmad@outlook.com>
1041
1042 * c-attribs.cc: (c_common_attribute_table): add three new attributes
1043 namely: fd_arg, fd_arg_read and fd_arg_write.
1044 (handle_fd_arg_attribute): New.
1045
bdc7b765
GA
10462022-07-15 Marek Polacek <polacek@redhat.com>
1047
1048 PR c++/104477
1049 * c-common.cc (c_common_reswords): Add
1050 __reference_constructs_from_temporary and
1051 __reference_converts_from_temporary.
1052 * c-common.h (enum rid): Add RID_REF_CONSTRUCTS_FROM_TEMPORARY and
1053 RID_REF_CONVERTS_FROM_TEMPORARY.
1054
10552022-07-15 Jonathan Wakely <jwakely@redhat.com>
1056
1057 * c-format.cc (class range_label_for_format_type_mismatch):
1058 Adjust to new label_text API.
1059
c72d4714
GA
10602022-07-11 Lewis Hyatt <lhyatt@gmail.com>
1061
1062 PR preprocessor/106252
1063 * c-pragma.cc (handle_pragma_diagnostic_impl): Don't look up the
1064 option argument prior to verifying the option was found.
1065
6345c414
GA
10662022-07-07 David Malcolm <dmalcolm@redhat.com>
1067
1068 * c-format.cc (range_label_for_format_type_mismatch::get_text):
1069 Update for removal of label_text::maybe_free in favor of automatic
1070 memory management.
1071
4bc92c3b
GA
10722022-07-06 Lewis Hyatt <lhyatt@gmail.com>
1073
1074 PR preprocessor/53920
1075 PR c++/53431
1076 * c-common.cc (c_option_is_from_cpp_diagnostics): New function.
1077 * c-common.h (c_option_is_from_cpp_diagnostics): Declare.
1078 (c_pp_stream_token): Declare.
1079 * c-ppoutput.cc (init_pp_output): Refactor logic about skipping
1080 pragmas to...
1081 (should_output_pragmas): ...here. New function.
1082 (token_streamer::stream): Support handling early pragmas.
1083 (do_line_change): Likewise.
1084 (c_pp_stream_token): New function.
1085 * c-pragma.cc (struct pragma_diagnostic_data): New helper class.
1086 (pragma_diagnostic_lex_normal): New function. Moved logic for
1087 interpreting GCC diagnostic pragmas here.
1088 (pragma_diagnostic_lex_pp): New function for parsing diagnostic pragmas
1089 directly from libcpp.
1090 (handle_pragma_diagnostic): Refactor into helper function...
1091 (handle_pragma_diagnostic_impl): ...here. New function.
1092 (handle_pragma_diagnostic_early): New function.
1093 (handle_pragma_diagnostic_early_pp): New function.
1094 (struct pragma_ns_name): Renamed to...
1095 (struct pragma_pp_data): ...this. Add new "early_handler" member.
1096 (c_register_pragma_1): Support early pragmas in the preprocessor.
1097 (c_register_pragma_with_early_handler): New function.
1098 (c_register_pragma): Support the new early handlers in struct
1099 internal_pragma_handler.
1100 (c_register_pragma_with_data): Likewise.
1101 (c_register_pragma_with_expansion): Likewise.
1102 (c_register_pragma_with_expansion_and_data): Likewise.
1103 (c_invoke_early_pragma_handler): New function.
1104 (c_pp_invoke_early_pragma_handler): New function.
1105 (init_pragma): Add early pragma support for diagnostic pragmas.
1106 * c-pragma.h (struct internal_pragma_handler): Add new early handler
1107 members.
1108 (c_register_pragma_with_early_handler): Declare.
1109 (c_invoke_early_pragma_handler): Declare.
1110 (c_pp_invoke_early_pragma_handler): Declare.
1111
d1f3a3ff
GA
11122022-07-05 Marek Polacek <polacek@redhat.com>
1113
1114 PR c++/105626
1115 * c-format.cc (check_format_arg): Don't emit -Wformat warnings with
1116 u8 strings.
1117
ed974488
GA
11182022-07-01 Marek Polacek <polacek@redhat.com>
1119
1120 PR c++/106111
1121 * c-common.h (enum rid): Update RID_LAST_CXX20.
1122
976196b3
GA
11232022-06-30 Jonathan Wakely <jwakely@redhat.com>
1124
1125 * known-headers.cc (get_stdlib_header_for_name): Add <time.h>
1126 names.
1127
84c2131d
GA
11282022-06-24 Jason Merrill <jason@redhat.com>
1129
1130 PR c++/87729
1131 PR c++/20423
1132 * c.opt (Woverloaded-virtual): Add levels, include in -Wall.
1133
4390e7bf
GA
11342022-06-18 Jakub Jelinek <jakub@redhat.com>
1135
1136 * c-ubsan.cc (ubsan_instrument_division, ubsan_instrument_shift):
1137 Use flag_sanitize_trap & SANITIZE_??? instead of
1138 flag_sanitize_undefined_trap_on_error. If 2 sanitizers are involved
1139 and flag_sanitize_trap differs for them, emit __builtin_trap only
1140 for the comparison where trap is requested.
1141 (ubsan_instrument_vla, ubsan_instrument_return): Use
1142 lag_sanitize_trap & SANITIZE_??? instead of
1143 flag_sanitize_undefined_trap_on_error.
1144
c3642271
GA
11452022-06-13 Jason Merrill <jason@redhat.com>
1146
1147 * c-ubsan.cc (ubsan_instrument_return): Use BUILTINS_LOCATION.
1148
d9176e64
GA
11492022-05-27 Marek Polacek <polacek@redhat.com>
1150
1151 PR c/90658
1152 * c-attribs.cc (get_priority): Check FUNCTION_DECL.
1153
11542022-05-27 Jakub Jelinek <jakub@redhat.com>
1155
1156 * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ENTER.
1157
57f2ce6a
GA
11582022-05-20 David Malcolm <dmalcolm@redhat.com>
1159
1160 * c-format.cc: Replace uses of "FINAL" and "OVERRIDE" with "final"
1161 and "override".
1162 * c-pretty-print.h: Likewise.
1163
1cda629f
GA
11642022-05-18 Marek Polacek <polacek@redhat.com>
1165
1166 PR c/105131
1167 * c.opt (Wenum-int-mismatch): New.
1168
11692022-05-18 Marek Polacek <polacek@redhat.com>
1170
1171 PR c++/105497
1172 * c-warn.cc (c_do_switch_warnings): Don't warn about unhandled
1173 enumerator when it was marked with attribute unused.
1174
11752022-05-18 Eric Botcazou <ebotcazou@adacore.com>
1176
1177 * c-ada-spec.cc (dump_ada_node) <COMPLEX_TYPE>: Deal with usual
1178 floating-point complex types.
1179 <POINTER_TYPE>: Do not use limited_with clause if the designated
1180 type is a scalar type.
1181
3d9439b1
GA
11822022-05-17 Jakub Jelinek <jakub@redhat.com>
1183
1184 * c-omp.cc (c_finish_omp_depobj): Handle
1185 OMP_CLAUSE_DEPEND_INOUTSET.
1186
702bd11f
GA
11872022-05-16 Jason Merrill <jason@redhat.com>
1188
1189 PR c/105492
1190 * c-attribs.cc (handle_mode_attribute): Don't fix broken typedefs
1191 here.
1192
11932022-05-16 Martin Liska <mliska@suse.cz>
1194
1195 * c-common.cc (ARRAY_SIZE): Use ARRAY_SIZE.
1196 (c_common_nodes_and_builtins): Likewise.
1197 * c-format.cc (check_tokens): Likewise.
1198 (check_plain): Likewise.
1199 * c-pragma.cc (c_pp_lookup_pragma): Likewise.
1200 (init_pragma): Likewise.
1201 * known-headers.cc (get_string_macro_hint): Likewise.
1202 (get_stdlib_header_for_name): Likewise.
1203 * c-attribs.cc: Likewise.
1204
9df4ffe4
GA
12052022-05-13 Richard Biener <rguenther@suse.de>
1206
1207 * c-omp.cc: Remove gimple-fold.h include.
1208
49ace834
GA
12092022-05-12 Jakub Jelinek <jakub@redhat.com>
1210
1211 * c-common.h (enum rid): Add RID_OMP_ALL_MEMORY.
1212 * c-omp.cc (c_finish_omp_depobj): Don't build_fold_addr_expr
1213 if null_pointer_node.
1214
d0d513b5
GA
12152022-05-11 Martin Liska <mliska@suse.cz>
1216
1217 PR target/105355
1218 * c-opts.cc (c_common_handle_option): Change option name.
1219 * c.opt: Remove Joined and use Separate option.
1220
bd022ff9
GA
12212022-05-09 Alex Coplan <alex.coplan@arm.com>
1222
1223 * c-common.h (get_dump_info): Delete.
1224 * c-gimplify.cc (c_genericize): Get TDI_original dump file info
1225 from the global dump_manager instead of the (now obsolete)
1226 get_dump_info.
1227 * c-opts.cc (original_dump_file): Delete.
1228 (original_dump_flags): Delete.
1229 (c_common_parse_file): Switch to using global dump_manager to
1230 manage the original dump file; fix leak of dump file.
1231 (get_dump_info): Delete.
1232
a1947c92
GA
12332022-05-07 Marek Polacek <polacek@redhat.com>
1234
1235 PR c++/101833
1236 PR c++/47634
1237 * c-attribs.cc (positional_argument): Pass POS by reference. Deal
1238 with FN being either a function declaration or function type. Use
1239 maybe_adjust_arg_pos_for_attribute.
1240 * c-common.cc (check_function_arguments): Maybe pass FNDECL down to
1241 check_function_format.
1242 * c-common.h (maybe_adjust_arg_pos_for_attribute): Declare.
1243 (positional_argument): Adjust.
1244 * c-format.cc (get_constant): Rename to ...
1245 (validate_constant): ... this. Take EXPR by reference. Return bool
1246 instead of tree.
1247 (handle_format_arg_attribute): Don't overwrite FORMAT_NUM_EXPR by the
1248 return value of validate_constant.
1249 (decode_format_attr): Don't overwrite FORMAT_NUM_EXPR and
1250 FIRST_ARG_NUM_EXPR by the return value of validate_constant.
1251 (check_function_format): Adjust a parameter name.
1252 (handle_format_attribute): Maybe pass FNDECL down to decode_format_attr.
1253
3e7db517
GA
12542022-05-04 Marek Polacek <polacek@redhat.com>
1255
1256 * c-warn.cc (warnings_for_convert_and_check): Convert constants of type
1257 char to int.
1258
95874f95
GA
12592022-04-30 Jason Merrill <jason@redhat.com>
1260
1261 PR c/100545
1262 * c-attribs.cc (handle_mode_attribute): Copy attributes, aligned,
1263 and typedef.
1264 * c-common.cc (set_underlying_type): Add assert.
1265
01ad093b
GA
12662022-04-26 Patrick Palka <ppalka@redhat.com>
1267
1268 PR c++/105304
1269 * c-common.cc (verify_tree) [restart]: Move up to before the
1270 NULL test.
1271
da066c42
GA
12722022-04-11 Jakub Jelinek <jakub@redhat.com>
1273
1274 PR c++/105186
1275 * c-common.cc (c_common_nodes_and_builtins): After registering __int%d
1276 and __int%d__ builtin types, initialize corresponding ridpointers
1277 entry.
1278
150ab50f
GA
12792022-03-30 Marek Polacek <polacek@redhat.com>
1280
1281 PR c++/101030
1282 * c-warn.cc (conversion_warning) <case COND_EXPR>: Don't call
1283 conversion_warning when OP1 is null.
1284
12852022-03-30 Thomas Schwinge <thomas@codesourcery.com>
1286
1287 * c.opt (Wc++11-extensions, Wc++14-extensions, Wc++17-extensions)
1288 (Wc++20-extensions, Wc++23-extensions): Remove 'LangEnabledBy'
1289 option properties.
1290
12912022-03-30 Thomas Schwinge <thomas@codesourcery.com>
1292
1293 * c.opt (Wuse-after-free): Remove.
1294
12952022-03-30 Thomas Schwinge <thomas@codesourcery.com>
1296
1297 * c.opt (Warray-bounds): Remove.
1298
d2906412
GA
12992022-03-26 Thomas Schwinge <thomas@codesourcery.com>
1300
1301 * c.opt: Properly quote comment.
1302
31e989a2
GA
13032022-03-25 Eric Botcazou <ebotcazou@adacore.com>
1304
1305 * c-ada-spec.cc (dump_ada_import): Deal with the "section" attribute
1306 (dump_ada_node) <POINTER_TYPE>: Do not modify and pass the name, but
1307 the referenced type instead. Deal with the anonymous original type
1308 of a typedef'ed type. In the actual access case, follow the chain
1309 of external subtypes.
1310 <TYPE_DECL>: Tidy up control flow.
1311
d156bb87
GA
13122022-03-21 Qian Jianhua <qianjh@cn.fujitsu.com>
1313
1314 * c-ada-spec.cc: Change array length
1315
d7f00da1
GA
13162022-03-19 Arthur Cohen <arthur.cohen@embecosm.com>
1317
1318 * c-common.cc (c_family_tests): Call the new tests.
1319 * c-common.h (c_diagnostic_tests): Declare.
1320 (c_opt_problem_cc_tests): Likewise.
1321
13222022-03-19 Jakub Jelinek <jakub@redhat.com>
1323
1324 PR c++/101515
1325 * c-pretty-print.cc (c_fold_indirect_ref_for_warn): For C++ don't
1326 return COMPONENT_REFs with FIELD_DECLs whose containing scope can't
1327 be printed.
1328
9fc8f278
GA
13292022-03-16 Christophe Lyon <christophe.lyon@arm.com>
1330 Roger Sayle <roger@nextmovesoftware.com>
1331
1332 PR c/98198
1333 * c-attribs.cc (decl_or_type_attrs): Add error_mark_node check.
1334
13352022-03-16 Patrick Palka <ppalka@redhat.com>
1336
1337 PR c++/96780
1338 * c.opt: Add -ffold-simple-inlines.
1339
b9756c08
GA
13402022-03-13 Tobias Burnus <tobias@codesourcery.com>
1341
1342 * c-target.def (check_string_object_format_arg): Fix description typo.
1343
57eeedda
GA
13442022-03-12 Thomas Schwinge <thomas@codesourcery.com>
1345
1346 PR other/65095
1347 * c-common.h (c_omp_map_clause_name): Remove.
1348 * c-omp.cc (c_omp_map_clause_name): Remove.
1349
8cc4f9cd
GA
13502022-03-09 Jakub Jelinek <jakub@redhat.com>
1351
1352 PR c/104711
1353 * c-opts.cc (c_common_post_options): Don't enable
1354 -Wshift-negative-value from -Wextra for C++20 or later.
1355 * c-ubsan.cc (ubsan_instrument_shift): Adjust comments.
1356 * c-warn.cc (maybe_warn_shift_overflow): Use TYPE_OVERFLOW_WRAPS
1357 instead of TYPE_UNSIGNED.
1358
e6533e2e
GA
13592022-03-07 Jakub Jelinek <jakub@redhat.com>
1360
1361 * c-attribs.cc: Fix up duplicated word issue in a comment.
1362
12d4552e
GA
13632022-03-01 Martin Liska <mliska@suse.cz>
1364
1365 PR ipa/104533
1366 * c-attribs.cc (handle_target_clones_attribute): Use
1367 get_target_clone_attr_len and report warning soon.
1368
0bdb0498
GA
13692022-02-17 Jonathan Wakely <jwakely@redhat.com>
1370
1371 * c-pragma.cc (handle_pragma_pack): Remove parameter name.
1372 (handle_pragma_weak): Likewise.
1373 (handle_pragma_scalar_storage_order): Likewise.
1374 (handle_pragma_redefine_extname): Likewise.
1375 (handle_pragma_visibility): Likewise.
1376 (handle_pragma_diagnostic): Likewise.
1377 (handle_pragma_target): Likewise.
1378 (handle_pragma_optimize): Likewise.
1379 (handle_pragma_push_options): Likewise.
1380 (handle_pragma_pop_options): Likewise.
1381 (handle_pragma_reset_options): Likewise.
1382 (handle_pragma_message): Likewise.
1383 (handle_pragma_float_const_decimal64): Likewise.
1384
cb3afcd2
GA
13852022-02-16 Jakub Jelinek <jakub@redhat.com>
1386
1387 PR c/104531
1388 * c-omp.cc (c_finish_omp_atomic): For MIN_EXPR/MAX_EXPR, try first
1389 build_binary_op with LT_EXPR and only if that doesn't return
1390 error_mark_node call build_modify_expr.
1391
13922022-02-16 Jakub Jelinek <jakub@redhat.com>
1393
1394 PR c/104510
1395 * c-common.cc (shorten_compare): Convert original arguments to
1396 the original *restype_ptr when mixing binary and decimal float.
1397
1f8a09d2
GA
13982022-02-14 Richard Biener <rguenther@suse.de>
1399
1400 PR c/104505
1401 * c-pretty-print.cc (c_pretty_printer::postfix_expression): Handle
1402 internal function calls.
1403
e8d68f0a
GA
14042022-02-11 Richard Biener <rguenther@suse.de>
1405
1406 * c-attribs.cc (c_common_attribute_table): Add entry for
1407 vector_mask.
1408 (handle_vector_mask_attribute): New.
1409
a645583d
GA
14102022-02-10 Marcel Vollweiler <marcel@codesourcery.com>
1411
1412 * c-omp.cc (c_omp_split_clauses): Added OMP_CLAUSE_HAS_DEVICE_ADDR case.
1413 * c-pragma.h (enum pragma_kind): Added 5.1 in comment.
1414 (enum pragma_omp_clause): Added PRAGMA_OMP_CLAUSE_HAS_DEVICE_ADDR.
1415
3adf509f
GA
14162022-02-09 Jason Merrill <jason@redhat.com>
1417
1418 * c-cppbuiltin.cc (c_cpp_builtins): Update values
1419 of __cpp_constexpr and __cpp_concepts for C++20.
1420
bb99171b
GA
14212022-01-24 Marek Polacek <polacek@redhat.com>
1422
1423 PR preprocessor/104030
1424 * c.opt (Wbidi-chars): Mark as EnumSet. Also accept =ucn.
1425
9dd44357
GA
14262022-01-21 Jakub Jelinek <jakub@redhat.com>
1427
1428 PR c++/104148
1429 * c-common.h (check_function_arguments_recurse): Add for_format
1430 arg.
1431 * c-common.cc (check_function_nonnull): Pass false to
1432 check_function_arguments_recurse's last argument.
1433 (check_function_arguments_recurse): Add for_format argument,
1434 if true, don't stop on warning_suppressed_p.
1435 * c-format.cc (check_format_info): Pass true to
1436 check_function_arguments_recurse's last argument.
1437
fe1ad141
GA
14382022-01-19 David Malcolm <dmalcolm@redhat.com>
1439
1440 * c-common.cc (c_common_c_tests): Rename to...
1441 (c_common_cc_tests): ...this.
1442 (c_family_tests): Update calls for .c to .cc renaming.
1443 * c-common.h (c_format_c_tests): Rename to...
1444 (c_format_cc_tests): ...this.
1445 (c_indentation_c_tests): Rename to...
1446 (c_indentation_cc_tests): ...this.
1447 (c_pretty_print_c_tests): Rename to...
1448 (c_pretty_print_cc_tests): ...this.
1449 * c-format.cc (c_format_c_tests): Rename to...
1450 (c_format_cc_tests): ...this.
1451 * c-indentation.cc (c_indentation_c_tests): Rename to...
1452 (c_indentation_cc_tests): ...this.
1453 * c-pretty-print.cc (c_pretty_print_c_tests): Rename to...
1454 (c_pretty_print_cc_tests): ...this.
1455
fc829782
GA
14562022-01-17 Martin Liska <mliska@suse.cz>
1457
1458 * c-ada-spec.cc: Rename .c names to .cc.
1459 * c-ada-spec.h: Likewise.
1460 * c-common.cc (c_build_vec_convert): Likewise.
1461 (warning_candidate_p): Likewise.
1462 * c-common.h (enum rid): Likewise.
1463 (build_real_imag_expr): Likewise.
1464 (finish_label_address_expr): Likewise.
1465 (c_get_substring_location): Likewise.
1466 (c_build_bind_expr): Likewise.
1467 (conflict_marker_get_final_tok_kind): Likewise.
1468 (c_parse_error): Likewise.
1469 (check_missing_format_attribute): Likewise.
1470 (invalid_array_size_error): Likewise.
1471 (warn_for_multistatement_macros): Likewise.
1472 (build_attr_access_from_parms): Likewise.
1473 * c-cppbuiltin.cc (c_cpp_builtins): Likewise.
1474 * c-format.cc: Likewise.
1475 * c-gimplify.cc (c_gimplify_expr): Likewise.
1476 * c-indentation.h: Likewise.
1477 * c-objc.h (objc_prop_attr_kind_for_rid): Likewise.
1478 * c-omp.cc (c_omp_predetermined_mapping): Likewise.
1479 * c-opts.cc (c_common_post_options): Likewise.
1480 (set_std_cxx23): Likewise.
1481 * c-pragma.cc (handle_pragma_redefine_extname): Likewise.
1482 * c-pretty-print.h: Likewise.
1483
14842022-01-17 Martin Liska <mliska@suse.cz>
1485
1486 * c-ada-spec.c: Moved to...
1487 * c-ada-spec.cc: ...here.
1488 * c-attribs.c: Moved to...
1489 * c-attribs.cc: ...here.
1490 * c-common.c: Moved to...
1491 * c-common.cc: ...here.
1492 * c-cppbuiltin.c: Moved to...
1493 * c-cppbuiltin.cc: ...here.
1494 * c-dump.c: Moved to...
1495 * c-dump.cc: ...here.
1496 * c-format.c: Moved to...
1497 * c-format.cc: ...here.
1498 * c-gimplify.c: Moved to...
1499 * c-gimplify.cc: ...here.
1500 * c-indentation.c: Moved to...
1501 * c-indentation.cc: ...here.
1502 * c-lex.c: Moved to...
1503 * c-lex.cc: ...here.
1504 * c-omp.c: Moved to...
1505 * c-omp.cc: ...here.
1506 * c-opts.c: Moved to...
1507 * c-opts.cc: ...here.
1508 * c-pch.c: Moved to...
1509 * c-pch.cc: ...here.
1510 * c-ppoutput.c: Moved to...
1511 * c-ppoutput.cc: ...here.
1512 * c-pragma.c: Moved to...
1513 * c-pragma.cc: ...here.
1514 * c-pretty-print.c: Moved to...
1515 * c-pretty-print.cc: ...here.
1516 * c-semantics.c: Moved to...
1517 * c-semantics.cc: ...here.
1518 * c-ubsan.c: Moved to...
1519 * c-ubsan.cc: ...here.
1520 * c-warn.c: Moved to...
1521 * c-warn.cc: ...here.
1522 * cppspec.c: Moved to...
1523 * cppspec.cc: ...here.
1524 * stub-objc.c: Moved to...
1525 * stub-objc.cc: ...here.
1526
9248ee41
GA
15272022-01-15 Martin Sebor <msebor@redhat.com>
1528
1529 PR c/63272
1530 * c.opt (-Wdangling-pointer): New option.
1531
15322022-01-15 Martin Sebor <msebor@redhat.com>
1533
1534 PR tree-optimization/80532
1535 * c.opt (-Wuse-after-free): New options.
1536
617db51d
GA
15372022-01-14 David Malcolm <dmalcolm@redhat.com>
1538
1539 * c-attribs.c (c_common_attribute_table): Add "tainted_args".
1540 (handle_tainted_args_attribute): New.
1541
ad3f0d08
GA
15422022-01-13 Anthony Sharp <anthonysharp15@gmail.com>
1543 Jason Merrill <jason@redhat.com>
1544
1545 PR c++/70417
1546 * c.opt: Added -Wmissing-template-keyword.
1547
15482022-01-13 Richard Biener <rguenther@suse.de>
1549
1550 PR c/104002
1551 * c-common.c (c_common_mark_addressable_vec): Handle TARGET_EXPR.
1552
02a8a01b
GA
15532022-01-12 Martin Liska <mliska@suse.cz>
1554
1555 PR target/103804
1556 * c-attribs.c (handle_optimize_attribute): Do not call
1557 cl_optimization_compare if we seen an error.
1558
01a254e3
GA
15592022-01-11 Jakub Jelinek <jakub@redhat.com>
1560
1561 PR c/101537
1562 PR c/103881
1563 * c-warn.c (conversion_warning): Handle BIT_AND_EXPR, BIT_IOR_EXPR
1564 and BIT_XOR_EXPR.
1565
d9450aa0
GA
15662022-01-10 Richard Biener <rguenther@suse.de>
1567
1568 PR middle-end/101530
1569 * c-common.c (c_build_shufflevector): Wrap the BIT_FIELD_REF
1570 in a TARGET_EXPR to force a temporary.
1571
11ce8d04
GA
15722022-01-06 Marek Polacek <polacek@redhat.com>
1573
1574 PR c++/103758
1575 * c-pragma.c (handle_pragma_scalar_storage_order): Use %< %> in
1576 diagnostic messages.
1577 (handle_pragma_diagnostic): Likewise.
1578
a4ae8c37
GA
15792022-01-03 Marek Polacek <polacek@redhat.com>
1580
1581 PR c++/103758
1582 * c-format.c (check_tokens): Accept "decl-specifier*".
1583
15842022-01-03 Jakub Jelinek <jakub@redhat.com>
1585
1586 PR c++/103600
1587 * c-attribs.c (handle_non_overlapping_attribute): New function.
1588 (c_common_attribute_table): Add "non overlapping" attribute.
1589
84790a9d
GA
15902021-12-30 Jakub Jelinek <jakub@redhat.com>
1591
1592 PR c++/103012
1593 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Perform
1594 cpp_define_unused/cpp_undef calls with forced token locations
1595 BUILTINS_LOCATION.
1596
d1e111da
GA
15972021-12-27 Patrick Palka <ppalka@redhat.com>
1598
1599 PR c++/103700
1600 * c-common.c (pointer_int_sum): When quiet, return
1601 error_mark_node for an incomplete pointed-to type and don't
1602 call size_in_bytes_loc.
1603
2554e2da
GA
16042021-12-17 Jason Merrill <jason@redhat.com>
1605
1606 PR c++/103681
1607 * c-opts.c (c_common_post_options): Update defaults.
1608
774269aa
GA
16092021-12-16 Martin Liska <mliska@suse.cz>
1610
1611 PR target/103709
1612 * c-pragma.c (handle_pragma_pop_options): Do not check
1613 global options modification when an error is seen in parsing
1614 of options (pragmas or attributes).
1615
c8dcf64b
GA
16162021-12-12 Jonathan Wakely <jwakely@redhat.com>
1617
1618 * known-headers.cc: Define INCLUDE_MEMORY instead of
1619 INCLUDE_UNIQUE_PTR.
1620 * name-hint.h: Likewise.
1621 (class name_hint): Use std::unique_ptr instead of gnu::unique_ptr.
1622
4b4839e3
GA
16232021-12-09 Jakub Jelinek <jakub@redhat.com>
1624
1625 PR pch/71934
1626 * c-pch.c (c_common_no_more_pch): Pass a temporary void * var
1627 with NULL value instead of NULL to host_hooks.gt_pch_use_address.
1628
03a9bd05
GA
16292021-12-03 Jakub Jelinek <jakub@redhat.com>
1630
1631 PR pch/71934
1632 * c-pch.c (struct c_pch_validity): Remove pch_init member.
1633 (pch_init): Don't initialize v.pch_init.
1634 (c_common_valid_pch): Don't warn and punt if .text addresses change.
1635
40fa651e
GA
16362021-12-01 Jason Merrill <jason@redhat.com>
1637
1638 PR c++/103310
1639 * c.opt: Add -fconstexpr-fp-except.
1640
87cd82c8
GA
16412021-11-29 Richard Biener <rguenther@suse.de>
1642
1643 * c-format.c (check_format_string): Remove spurious
1644 gcc_unreachable.
1645
16462021-11-29 Richard Biener <rguenther@suse.de>
1647
1648 * c-opts.c (c_common_post_options): Remove unreachable return.
1649 * c-pragma.c (handle_pragma_target): Likewise.
1650 (handle_pragma_optimize): Likewise.
1651
091ccc06
GA
16522021-11-25 Jakub Jelinek <jakub@redhat.com>
1653
1654 PR c++/102611
1655 * c-opts.c (c_common_post_options): Enable -Wcomma-subscript by
1656 default for C++23 regardless of warn_deprecated.
1657 * c-cppbuiltin.c (c_cpp_builtins): Predefine
1658 __cpp_multidimensional_subscript=202110L for C++23.
1659
e1d43592
GA
16602021-11-23 Martin Sebor <msebor@redhat.com>
1661
1662 PR middle-end/88232
1663 * c.opt: Add -Winfinite-recursion.
1664
9c077398
GA
16652021-11-19 Martin Sebor <msebor@redhat.com>
1666
1667 PR c++/33925
1668 PR c/102867
1669 * c-common.c (decl_with_nonnull_addr_p): Call maybe_nonzero_address
1670 and improve handling tof defined symbols.
1671
16722021-11-19 Martin Liska <mliska@suse.cz>
1673
1674 Revert:
1675 2021-11-18 Martin Liska <mliska@suse.cz>
1676
1677 * c-gimplify.c (genericize_c_loop): Use option directly.
1678
483092d3
GA
16792021-11-18 Matthias Kretz <m.kretz@gsi.de>
1680
1681 * c-common.c (c_common_reswords): Add __builtin_assoc_barrier.
1682 * c-common.h (enum rid): Add RID_BUILTIN_ASSOC_BARRIER.
1683
16842021-11-18 Martin Liska <mliska@suse.cz>
1685
1686 * c-gimplify.c (genericize_c_loop): Use option directly.
1687
280d2838
GA
16882021-11-17 Martin Uecker <uecker@gcc.gnu.org>
1689
1690 PR c/91038
1691 PR c/29970
1692 * c-common.c (pointer_int_sum): Make sure pointer expressions
1693 are evaluated first when the size expression depends on for
1694 variably-modified types.
1695
16962021-11-17 Marek Polacek <polacek@redhat.com>
1697
1698 PR preprocessor/103026
1699 * c.opt (Wbidi-chars, Wbidi-chars=): New option.
1700
6b1695f4
GA
17012021-11-16 Jason Merrill <jason@redhat.com>
1702
1703 * c-common.c (release_tree_vector): Only cache vecs smaller than
1704 16 elements.
1705
e2b57363
GA
17062021-11-15 Jason Merrill <jason@redhat.com>
1707
1708 * c.opt: Add -fimplicit-constexpr.
1709 * c-cppbuiltin.c: Define __cpp_implicit_constexpr.
1710 * c-opts.c (c_common_post_options): Disable below C++14.
1711
17122021-11-15 Jakub Jelinek <jakub@redhat.com>
1713
1714 * c-omp.c (c_omp_split_clauses) <case OMP_CLAUSE_THREAD_LIMIT>:
1715 Duplicate to both OMP_TARGET and OMP_TEAMS.
1716
8d36a0d2
GA
17172021-11-10 Marek Polacek <polacek@redhat.com>
1718
1719 PR c++/101940
1720 * c-pragma.c (handle_pragma_diagnostic): Handle #pragma GCC diagnostic
1721 ignored_attributes.
1722
c9b1334e
GA
17232021-11-09 David Malcolm <dmalcolm@redhat.com>
1724
1725 * c-pragma.c (GCC_BAD_AT): New macro.
1726 (GCC_BAD2_AT): New macro.
1727 (handle_pragma_pack): Use the location of the pertinent token when
1728 issuing diagnostics about invalid constants/actions, and trailing
1729 junk.
1730 (handle_pragma_target): Likewise for non-string "GCC option".
1731 (handle_pragma_message): Likewise for trailing junk.
1732
18ae471f
GA
17332021-11-03 Joseph Myers <joseph@codesourcery.com>
1734
1735 PR c/103031
1736 * c-common.c (convert_and_check): Add argument init_const. Call
1737 convert_init if init_const.
1738 * c-common.h (convert_and_check): Update prototype.
1739 (convert_init): New prototype.
1740
cf82e8d9
GA
17412021-11-01 David Malcolm <dmalcolm@redhat.com>
1742
1743 * c-lex.c (c_lex_with_flags): When complaining about non-printable
1744 CPP_OTHER tokens, set the "escape on output" flag.
1745
04a2cf3f
GA
17462021-10-27 Jakub Jelinek <jakub@redhat.com>
1747
1748 * c-omp.c (c_omp_check_loop_iv_r): Don't clear 3rd bit for
1749 POINTER_PLUS_EXPR.
1750 (c_omp_check_nonrect_loop_iv): Handle POINTER_PLUS_EXPR.
1751 (c_omp_check_loop_iv): Set kind even if the iterator is non-integral.
1752
17532021-10-27 Jakub Jelinek <jakub@redhat.com>
1754
1755 PR c++/102854
1756 * c-common.h (c_omp_check_loop_iv_exprs): Add enum tree_code argument.
1757 * c-omp.c (c_omp_check_loop_iv_r): For trees other than decls,
1758 TREE_VEC, PLUS_EXPR, MINUS_EXPR, MULT_EXPR, POINTER_PLUS_EXPR or
1759 conversions temporarily clear the 3rd bit from d->kind while walking
1760 subtrees.
1761 (c_omp_check_loop_iv_exprs): Add CODE argument. Or in 4 into data.kind
1762 if possibly non-rectangular.
1763
ae5c5406
GA
17642021-10-21 Jakub Jelinek <jakub@redhat.com>
1765
1766 PR middle-end/64888
1767 * c-omp.c (c_omp_predefined_variable): Return true also for
1768 ubsan_create_data created artificial variables.
1769
5d5885c9
GA
17702021-10-14 Joseph Myers <joseph@codesourcery.com>
1771
1772 * c-format.c (printf_length_specs, scanf_length_specs)
1773 (print_char_table, scan_char_table): Support DFP formats for C2X.
1774 * c-format.h (TEX_D32, TEX_D64, TEX_D128): Remove.
1775 (T2X_D32, T2X_D64, T2X_D128): New macros.
1776
17772021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
1778
1779 * c-omp.c (c_omp_check_context_selector): Rename to
1780 omp_check_context_selector and move to omp-general.c.
1781 (c_omp_mark_declare_variant): Rename to omp_mark_declare_variant and
1782 move to omp-general.c.
1783
52055987
GA
17842021-10-12 Joseph Myers <joseph@codesourcery.com>
1785
1786 * c-format.c (print_char_table): Add %b and %B formats.
1787 (scan_char_table): Add %b format.
1788 * c-format.h (T2X_UI, T2X_UL, T2X_ULL, T2X_US, T2X_UC, T2X_ST)
1789 (T2X_UPD, T2X_UIM): New macros.
1790
17912021-10-12 Jakub Jelinek <jakub@redhat.com>
1792
1793 * c-omp.c (c_finish_omp_atomic): Use
1794 clear_padding_type_may_have_padding_p.
1795
ce6eec39
GA
17962021-10-08 Martin Liska <mliska@suse.cz>
1797
1798 * c-opts.c (c_common_post_options): Use new macro
1799 OPTION_SET_P.
1800
50e20ee6
GA
18012021-10-07 Martin Liska <mliska@suse.cz>
1802
1803 * c-common.c (parse_optimize_options): Make
1804 save_opt_decoded_options a pointer type.
1805
57c7ec62
GA
18062021-10-06 Jakub Jelinek <jakub@redhat.com>
1807
1808 PR tree-optimization/102571
1809 * c-omp.c (c_finish_omp_atomic): Optimize the case where type has
1810 padding, but the non-padding bits are contiguous set of bytes
1811 by adjusting the memcmp call arguments instead of emitting
1812 __builtin_clear_padding and then comparing all the type's bytes.
1813
18142021-10-06 Jakub Jelinek <jakub@redhat.com>
1815
1816 PR c++/102612
1817 * c-cppbuiltin.c (c_cpp_builtins): For -std=c++23 predefine
1818 __cpp_constexpr to 202110L rather than 201907L.
1819
da9c5f78
GA
18202021-10-04 Marek Polacek <polacek@redhat.com>
1821
1822 PR c++/97573
1823 * c-common.h (do_warn_array_compare): Declare.
1824 * c-warn.c (do_warn_array_compare): New.
1825 * c.opt (Warray-compare): New option.
1826
e3e07b89
GA
18272021-10-02 Iain Sandoe <iain@sandoe.co.uk>
1828
1829 * c-format.c: Remove a test of TARGET_FORMAT_TYPES with
1830 NULL, this is not needed.
1831
9d116bcc
GA
18322021-10-01 Martin Sebor <msebor@redhat.com>
1833
1834 PR c/102103
1835 * c-common.c (decl_with_nonnull_addr_p): Handle members.
1836 Check and perform warning suppression.
1837 (c_common_truthvalue_conversion): Enhance warning suppression.
1838
18392021-10-01 Martin Liska <mliska@suse.cz>
1840
1841 PR target/102552
1842 * c-common.c (parse_optimize_options): decoded_options[0] is
3d3b561f
ML
1843 used for program name, so merged_decoded_options should also
1844 respect that.
9d116bcc
GA
1845
18462021-10-01 Jakub Jelinek <jakub@redhat.com>
1847 Richard Biener <rguenther@suse.de>
1848
1849 PR sanitizer/102515
1850 * c-ubsan.c (ubsan_instrument_division): Check the right
1851 flag_sanitize_recover bit, depending on which sanitization
1852 is done. Sanitize INT_MIN / -1 under SANITIZE_SI_OVERFLOW
1853 rather than SANITIZE_DIVIDE. If both SANITIZE_SI_OVERFLOW
1854 and SANITIZE_DIVIDE is enabled, neither check is known
1855 to be false and flag_sanitize_recover bits for those two
1856 aren't the same, emit both __ubsan_handle_divrem_overflow
1857 and __ubsan_handle_divrem_overflow_abort calls.
1858
18592021-10-01 Martin Liska <mliska@suse.cz>
1860
1861 * c-common.c (parse_optimize_options): Combine optimize
1862 options with what was provided on the command line.
1863
18642021-10-01 Jakub Jelinek <jakub@redhat.com>
1865
1866 * c-omp.c (c_omp_split_clauses): Also copy
1867 OMP_CLAUSE_ORDER_REPRODUCIBLE.
1868
cf966403
GA
18692021-09-27 Martin Liska <mliska@suse.cz>
1870
1871 * c-opts.c (c_common_init_options_struct): Set also
3d3b561f 1872 x_flag_default_complex_method.
cf966403 1873
e4777439
GA
18742021-09-22 Jakub Jelinek <jakub@redhat.com>
1875
1876 * c-omp.c (c_omp_split_clauses): Copy over OMP_CLAUSE_ALLOCATE_ALIGN.
1877
62498024
GA
18782021-09-20 Matthias Kretz <m.kretz@gsi.de>
1879
1880 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define or
1881 undefine __RECIPROCAL_MATH__, __NO_SIGNED_ZEROS__,
1882 __NO_TRAPPING_MATH__, __ASSOCIATIVE_MATH__, and
1883 __ROUNDING_MATH__ according to the new optimization flags.
1884
cf74e7b5
GA
18852021-09-18 Jakub Jelinek <jakub@redhat.com>
1886
1887 * c-omp.c (c_omp_split_clauses): Split order clause also to
1888 distribute construct. Copy over OMP_CLAUSE_ORDER_UNCONSTRAINED.
1889
0a4cb439
GA
18902021-09-17 Jakub Jelinek <jakub@redhat.com>
1891
1892 * c-omp.c (c_finish_omp_atomic): Avoid creating
1893 TARGET_EXPR if test is true, use create_tmp_var_raw instead of
1894 create_tmp_var and add a zero initializer to TARGET_EXPRs that
1895 had NULL initializer. When omitting operands after v = x,
1896 use type of v rather than type of x. Fix type of vtmp
1897 TARGET_EXPR.
1898
07985c47
GA
18992021-09-13 Jason Merrill <jason@redhat.com>
1900
1901 * c.opt: Add -Winterference-size.
1902 * c-cppbuiltin.c (cpp_atomic_builtins): Add __GCC_DESTRUCTIVE_SIZE
1903 and __GCC_CONSTRUCTIVE_SIZE.
1904
a26206ec
GA
19052021-09-10 Jakub Jelinek <jakub@redhat.com>
1906
1907 * c-common.h (c_finish_omp_atomic): Add r and weak arguments.
1908 * c-omp.c: Include gimple-fold.h.
1909 (c_finish_omp_atomic): Add r and weak arguments. Add support for
1910 OpenMP 5.1 atomics.
1911
f84e2f0b
GA
19122021-09-09 qing zhao <qing.zhao@oracle.com>
1913
1914 * c-attribs.c (handle_uninitialized_attribute): New function.
1915 (c_common_attribute_table): Add "uninitialized" attribute.
1916
b6db7cd4
GA
19172021-09-08 liuhongt <hongtao.liu@intel.com>
1918
1919 * c-common.c (excess_precision_mode_join): Update below comments.
1920 (c_ts18661_flt_eval_method): Set excess_precision_type to
1921 EXCESS_PRECISION_TYPE_FLOAT16 when -fexcess-precision=16.
1922 * c-cppbuiltin.c (cpp_atomic_builtins): Update below comments.
1923 (c_cpp_flt_eval_method_iec_559): Set excess_precision_type to
1924 EXCESS_PRECISION_TYPE_FLOAT16 when -fexcess-precision=16.
1925
b2748138
GA
19262021-09-07 Marcel Vollweiler <marcel@codesourcery.com>
1927
1928 * c-omp.c (c_finish_omp_flush): Handle MEMMODEL_SEQ_CST.
1929
7b739540
GA
19302021-09-03 Eric Botcazou <ebotcazou@adacore.com>
1931
1932 * c-ada-spec.c (dump_ads): Generate pragmas to disable style checks
1933 and -gnatwu warning for the package specification.
1934
e11c6046
GA
19352021-09-01 Iain Sandoe <iain@sandoe.co.uk>
1936
1937 * c-attribs.c (handle_unavailable_attribute): New.
1938
1e2f030b
GA
19392021-08-30 Jason Merrill <jason@redhat.com>
1940
1941 * c.opt: Add -Wmissing-requires.
1942
85d77ac4
GA
19432021-08-25 Lewis Hyatt <lhyatt@gmail.com>
1944
1945 PR other/93067
1946 * c-opts.c (c_common_input_charset_cb): New function.
1947 (c_common_post_options): Call new function
1948 diagnostic_initialize_input_context().
1949
7c9e1645
GA
19502021-08-20 Tobias Burnus <tobias@codesourcery.com>
1951
1952 * c-format.c (gcc_gfc_length_specs): Add 'll' and 'w'.
1953 (gcc_gfc_char_table): Add T9L_LL and T9L_ULL to
1954 "di" and "u", respecitively; fill with BADLEN to match
1955 size of 'types'.
1956 (get_init_dynamic_hwi): Split off from ...
1957 (init_dynamic_diag_info): ... here. Call it.
1958 (init_dynamic_gfc_info): Call it.
1959
19602021-08-20 Jakub Jelinek <jakub@redhat.com>
1961
1962 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_ERROR.
1963 * c-pragma.c (omp_pragmas): Add error directive.
1964 * c-omp.c (omp_directives): Uncomment error directive entry.
1965
6e529985
GA
19662021-08-18 Jakub Jelinek <jakub@redhat.com>
1967
1968 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_NOTHING.
1969 * c-pragma.c (omp_pragmas): Add nothing directive.
1970 * c-omp.c (omp_directives): Uncomment nothing directive entry.
1971
2d14d64b
GA
19722021-08-17 Jakub Jelinek <jakub@redhat.com>
1973
1974 PR c++/101539
1975 * c-common.h (enum rid): Add RID_IS_LAYOUT_COMPATIBLE.
1976 * c-common.c (c_common_reswords): Add __is_layout_compatible.
1977
19782021-08-17 Matt Jacobson <mhjacobson@me.com>
1979
1980 * c-opts.c (c_common_post_options): Default to
1981 flag_objc_sjlj_exceptions = 1 only when flag_objc_abi < 2.
1982
19832021-08-17 Jakub Jelinek <jakub@redhat.com>
1984
1985 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_SCOPE.
1986 * c-pragma.c (omp_pragmas): Add scope construct.
1987 * c-omp.c (omp_directives): Uncomment scope directive entry.
1988
9d1d9fc8
GA
19892021-08-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
1990
1991 * c-cppbuiltin.c (c_cpp_builtins): Define
1992 __LIBGCC_GCOV_TYPE_SIZE if flag_building_libgcc is true.
1993
72be20e2
GA
19942021-08-12 Jakub Jelinek <jakub@redhat.com>
1995
1996 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_MASKED.
1997 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FILTER.
1998 * c-pragma.c (omp_pragmas_simd): Add masked construct.
1999 * c-common.h (enum c_omp_clause_split): Add C_OMP_CLAUSE_SPLIT_MASKED
2000 enumerator.
2001 (c_finish_omp_masked): Declare.
2002 * c-omp.c (c_finish_omp_masked): New function.
2003 (c_omp_split_clauses): Handle combined masked constructs.
2004
4d17ca1b
GA
20052021-07-30 Jakub Jelinek <jakub@redhat.com>
2006
2007 PR c++/101539
2008 * c-common.h (enum rid): Add RID_IS_POINTER_INTERCONVERTIBLE_BASE_OF.
2009 * c-common.c (c_common_reswords): Add
2010 __is_pointer_interconvertible_base_of.
2011
20122021-07-29 Richard Biener <rguenther@suse.de>
2013
2014 PR c/101512
2015 * c-common.c (c_common_mark_addressable_vec): Look through
2016 C_MAYBE_CONST_EXPR even if not at the toplevel.
2017
af3f12e6
GA
20182021-07-27 Martin Sebor <msebor@redhat.com>
2019
2020 PR c/101585
2021 * c-warn.c (warn_parm_ptrarray_mismatch): Use OEP_DECL_NAME.
2022
ead235f6
GA
20232021-07-23 Jakub Jelinek <jakub@redhat.com>
2024
2025 * c-lex.c (c_common_has_attribute): Call canonicalize_attr_name also
2026 on attr_id. Return 1 for omp::directive or omp::sequence in C++11
2027 and later.
2028
20292021-07-23 Jakub Jelinek <jakub@redhat.com>
2030
2031 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP__START_ and
2032 PRAGMA_OMP__LAST_ enumerators.
2033
419c6c68
GA
20342021-07-21 Thomas Schwinge <thomas@codesourcery.com>
2035 Joseph Myers <joseph@codesourcery.com>
2036 Cesar Philippidis <cesar@codesourcery.com>
2037
2038 * c-pragma.h (pragma_omp_clause): Add 'PRAGMA_OACC_CLAUSE_NOHOST'.
2039
92d45509
GA
20402021-07-20 Martin Sebor <msebor@redhat.com>
2041
2042 * c-common.c (c_build_shufflevector): Adjust by-value argument to
2043 by-const-reference.
2044 * c-common.h (c_build_shufflevector): Same.
2045
87277b6a
GA
20462021-07-16 Andrew Pinski <apinski@marvell.com>
2047
2048 PR c/101453
2049 * c-common.c (parse_optimize_options): Use the correct
2050 size for buffer.
2051
d97d71a1
GA
20522021-07-15 Martin Sebor <msebor@redhat.com>
2053
2054 PR c/101289
2055 PR c/97548
2056 * c-warn.c (warn_parm_array_mismatch): Use OEP_DECL_NAME.
2057
c4fee1c6
GA
20582021-07-14 Jason Merrill <jason@redhat.com>
2059
2060 * c-opts.c (c_common_post_options): Set -fdelete-dead-exceptions.
2061
6fba0eea
GA
20622021-07-06 Martin Sebor <msebor@redhat.com>
2063
2064 * c-format.c (gcc_tdiag_char_table): Remove support for %G and %K.
3d3b561f
ML
2065 (gcc_cdiag_char_table): Same.
2066 (gcc_cxxdiag_char_table): Same.
6fba0eea 2067
7a60a6e8
GA
20682021-07-02 Jakub Jelinek <jakub@redhat.com>
2069
2070 * c-common.h (enum c_omp_directive_kind): New enum.
2071 (struct c_omp_directive): New type.
2072 (c_omp_categorize_directive): Declare.
2073 * c-omp.c (omp_directives): New variable.
2074 (c_omp_categorize_directive): New function.
2075
bea7c16a
GA
20762021-07-01 Eric Botcazou <ebotcazou@adacore.com>
2077
2078 * c-ada-spec.c (packed_layout): New global variable.
2079 (dump_ada_declaration): Set it upon seeing a packed record type.
2080 Do not put the "aliased" keyword if it is set.
2081 (dump_ada_structure): Add Pack aspect if it is set and clear it.
2082
20832021-07-01 Eric Botcazou <ebotcazou@adacore.com>
2084
2085 * c-ada-spec.c (check_name): Rename into...
2086 (check_type_name_conflict): ...this. Minor tweak.
2087 (dump_ada_function_declaration): Adjust to above renaming.
2088 (dump_ada_array_domains): Fix oversight.
2089 (dump_ada_declaration): Call check_type_name_conflict for variables.
2090
90708f87
GA
20912021-06-25 Martin Sebor <msebor@redhat.com>
2092
2093 * c-common.c (c_wrap_maybe_const): Remove TREE_NO_WARNING.
2094 (c_common_truthvalue_conversion): Replace direct uses of
2095 TREE_NO_WARNING with warning_suppressed_p, suppress_warning, and
2096 copy_no_warning.
2097 (check_function_arguments_recurse): Same.
2098 * c-gimplify.c (c_gimplify_expr): Same.
2099 * c-warn.c (overflow_warning): Same.
2100 (warn_logical_operator): Same.
2101 (warn_if_unused_value): Same.
2102 (do_warn_unused_parameter): Same.
2103
9aa8327e
GA
21042021-06-24 Jakub Jelinek <jakub@redhat.com>
2105
2106 * c-common.h (enum c_omp_region_type): Add C_ORT_TARGET and
2107 C_ORT_OMP_TARGET.
2108 * c-omp.c (c_omp_split_clauses): For OMP_CLAUSE_IN_REDUCTION on
2109 combined target constructs also add map (always, tofrom:) clause.
2110
ede6c356
GA
21112021-06-15 Robin Dapp <rdapp@linux.ibm.com>
2112
2113 * c-attribs.c (common_handle_aligned_attribute): Remove short
2114 circuit and dead code.
2115
8dc48181
GA
21162021-06-14 Jonathan Wakely <jwakely@redhat.com>
2117
2118 PR c++/101052
2119 * known-headers.cc (get_stdlib_header_for_name): Add known
2120 headers for EXIT_FAILURE, EXIT_SUCCESS, abort, atexit, calloc,
2121 exit, and getenv.
2122
8b8c3912
GA
21232021-06-12 Jason Merrill <jason@redhat.com>
2124
2125 * c-attribs.c (handle_unused_attribute): Handle FIELD_DECL.
2126
f16f65f8
GA
21272021-06-11 Jakub Jelinek <jakub@redhat.com>
2128
2129 PR c++/100974
2130 * c-cppbuiltin.c (c_cpp_builtins): Predefine __cpp_if_consteval for
2131 -std=c++2b for P1938R3 consteval if support.
2132
4f625f47
GA
21332021-06-09 Jason Merrill <jason@redhat.com>
2134
2135 PR c++/100879
2136 * c-warn.c (warn_for_sign_compare): Remove C++ enum mismatch
2137 warning.
2138
438aac59
GA
21392021-06-07 Martin Liska <mliska@suse.cz>
2140
2141 * c-target.def: Split long lines and replace them
2142 with '\n\'.
2143
600f90cb
GA
21442021-06-04 Martin Sebor <msebor@redhat.com>
2145
2146 PR c/100783
2147 * c-attribs.c (positional_argument): Bail on erroneous types.
2148
21492021-06-04 Martin Sebor <msebor@redhat.com>
2150
2151 * c-warn.c (warn_parm_array_mismatch): Check TREE_PURPOSE to test
2152 for element presence.
2153
440c8a0a
GA
21542021-06-03 Eric Botcazou <ebotcazou@adacore.com>
2155
2156 * c-ada-spec.c (dump_ada_macros): Minor tweaks.
2157 (dump_ada_decl_name): Likewise.
2158 (dump_anonymous_type_name): Remove parent parameter and adjust.
2159 (dump_sloc): Minor tweak.
2160 (dump_ada_array_type): Remove type parameter and adjust.
2161 (dump_ada_enum_type): Remove parent parameter and adjust.
2162 (dump_ada_node): Adjust calls to above functions.
2163 (dumped_anonymous_types): New global variable.
2164 (dump_nested_types_1): Rename into...
2165 (dump_nested_types): ...this.
2166 (dump_nested_type): Remove parent and dumped_types parameters.
2167 <ARRAY_TYPE>: Replace dumped_types with dumped_anonymous_types.
2168 Adjust calls to dump_anonymous_type_name and dump_ada_array_type.
2169 (dump_ada_specs): Initialize and free dumped_anonymous_types.
2170
21712021-06-03 Eric Botcazou <ebotcazou@adacore.com>
2172
2173 * c-ada-spec.c (pp_ada_tree_identifier): Tidy up.
2174 (dump_ada_node) <POINTER_TYPE>: Deal specially with external subtypes.
2175
21762021-06-03 Eric Botcazou <ebotcazou@adacore.com>
2177
2178 * c-ada-spec.c (dump_ada_enum_type): Dump a prefix for constants.
2179 (htable_t): New typedef.
2180 (overloaded_names): Use it.
2181 (add_name): New function.
2182 (init_overloaded_names): Use add_name to populate the table and add
2183 special cases for sigaction and stat.
2184 (overloaded_name_p): Rename into...
2185 (overloading_index): ...this. Do not initialize overloaded_names table
2186 here. Return the index or zero.
2187 (dump_ada_declaration): Minor tweaks. Do not skip overloaded functions
2188 but add an overloading suffix instead.
2189 (dump_ada_specs): Initialize overloaded_names tables here.
2190
b75978d1
GA
21912021-06-01 Martin Liska <mliska@suse.cz>
2192
2193 PR other/100759
2194 * c-attribs.c (handle_optimize_attribute): Limit sanity check
2195 to a situation where we are not in processing of an optimize
2196 pragma.
2197 * c-pragma.c (handle_pragma_pop_options): Restore target
2198 options.
2199
ee682192
GA
22002021-05-31 Indu Bhagat <indu.bhagat@oracle.com>
2201
2202 PR testsuite/100749
2203 * c-pch.c (c_common_valid_pch): Use xstrdup for debug format set names.
2204
22052021-05-31 Richard Biener <rguenther@suse.de>
2206
2207 PR c++/88601
2208 * c-common.c: Include tree-vector-builder.h and
2209 vec-perm-indices.h.
2210 (c_common_reswords): Add __builtin_shufflevector.
2211 (c_build_shufflevector): New funtion.
2212 * c-common.h (enum rid): Add RID_BUILTIN_SHUFFLEVECTOR.
2213 (c_build_shufflevector): Declare.
2214
48166757
GA
22152021-05-28 Jakub Jelinek <jakub@redhat.com>
2216
2217 PR middle-end/99928
2218 * c-omp.c (c_omp_split_clauses): For reduction clause if combined with
2219 target add a map tofrom clause with OMP_CLAUSE_MAP_IMPLICIT.
2220
22212021-05-28 Tobias Burnus <tobias@codesourcery.com>
2222
2223 * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_AFFINITY.
2224
2bc6dace
GA
22252021-05-25 Martin Liska <mliska@suse.cz>
2226
2227 PR tree-optimization/92860
2228 PR target/99592
2229 * c-attribs.c (handle_optimize_attribute): Save target node
2230 before calling parse_optimize_options and save it in case
2231 it changes.
2232 * c-pragma.c (handle_pragma_target): Similarly for pragma.
2233 (handle_pragma_pop_options): Likewise here.
2234
22352021-05-25 Martin Liska <mliska@suse.cz>
2236
2237 * c-attribs.c (handle_no_sanitize_coverage_attribute): New.
2238
22392021-05-25 Jakub Jelinek <jakub@redhat.com>
2240
2241 PR middle-end/99928
2242 * c-omp.c (c_omp_split_clauses): Copy reduction to teams when teams is
2243 combined with simd and not with taskloop or for.
2244
2832d51b
GA
22452021-05-21 Jakub Jelinek <jakub@redhat.com>
2246
2247 PR middle-end/99928
2248 * c-omp.c (c_omp_split_clauses): Set OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT
2249 on firstprivate clause copy going to target construct, and for
2250 target simd set also OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET bit.
2251
ea34e2ed
GA
22522021-05-20 Jonathan Wakely <jwakely@redhat.com>
2253
2254 * c.opt (Wc++11-extensions, Wc++14-extensions)
2255 (Wc++17-extensions, Wc++20-extensions, Wc++23-extensions): New
2256 options.
2257
22582021-05-20 Indu Bhagat <indu.bhagat@oracle.com>
2259
2260 * c-lex.c (init_c_lex): Use dwarf_debuginfo_p.
2261
22622021-05-20 Indu Bhagat <indu.bhagat@oracle.com>
2263
2264 * c-opts.c (c_common_post_options): Adjust access to debug_type_names.
2265 * c-pch.c (struct c_pch_validity): Use type uint32_t.
2266 (pch_init): Renamed member.
2267 (c_common_valid_pch): Adjust access to debug_type_names.
2268
65f32e5d
GA
22692021-05-19 Martin Sebor <msebor@redhat.com>
2270
2271 PR c/100619
2272 * c-attribs.c (build_attr_access_from_parms): Handle arbitrarily many
2273 bounds.
2274
a8daf9a1
GA
22752021-05-18 Richard Biener <rguenther@suse.de>
2276
2277 PR c/100547
2278 * c-attribs.c (type_valid_for_vector_size): Reject too large nunits.
2279 Reword existing nunit diagnostic.
2280
a7ffc1ef
GA
22812021-05-17 Joern Rennecke <joern.rennecke@embecosm.com>
2282
2283 * c-common.c (braced_list_to_string): Return CTOR unchanged
2284 if host and target character sizes don't match.
2285
87a7d10c
GA
22862021-05-14 Martin Liska <mliska@suse.cz>
2287
2288 * c.opt: Add Warning keyword for 2 options.
2289
f9af11c7
GA
22902021-05-13 Martin Liska <mliska@suse.cz>
2291
2292 PR middle-end/100504
2293 * c-attribs.c (handle_target_clones_attribute): Expect a string
2294 argument to target_clone argument.
2295
037e3661
GA
22962021-05-11 Joseph Myers <joseph@codesourcery.com>
2297
2298 * c-lex.c (interpret_float): Handle digit separators for C2X.
2299
aa891c56
GA
23002021-05-10 Martin Liska <mliska@suse.cz>
2301
2302 * c-ada-spec.c (print_destructor): Use startswith
2303 function instead of strncmp.
2304 (dump_ada_declaration): Likewise.
2305 * c-common.c (disable_builtin_function): Likewise.
2306 (def_builtin_1): Likewise.
2307 * c-format.c (check_tokens): Likewise.
2308 (check_plain): Likewise.
2309 (convert_format_name_to_system_name): Likewise.
2310
e4ff4ffb
GA
23112021-04-28 Patrick McGehearty <patrick.mcgehearty@oracle.com>
2312
2313 * c-cppbuiltin.c (c_cpp_builtins): Add supporting macros for new
2314 complex divide
2315
c0fa3f2f
GA
23162021-04-26 Thomas Schwinge <thomas@codesourcery.com>
2317 Nathan Sidwell <nathan@codesourcery.com>
2318 Tom de Vries <vries@codesourcery.com>
2319 Julian Brown <julian@codesourcery.com>
2320 Kwok Cheung Yeung <kcy@codesourcery.com>
2321
2322 * c.opt (Wopenacc-parallelism): New.
2323
6e81e015
GA
23242021-04-19 Thomas Schwinge <thomas@codesourcery.com>
2325
2326 * c.opt (fopenacc-kernels=): Remove.
2327
019a9220
GA
23282021-04-08 Jakub Jelinek <jakub@redhat.com>
2329
2330 * c-warn.c (do_warn_double_promotion): Fix comment typo,
2331 occured -> occurred.
2332 (check_alignment_of_packed_member): Fix a comment typo,
2333 memeber -> member.
2334 (warn_parm_ptrarray_mismatch): Fix comment typos, os -> of
2335 and onless -> unless.
2336 (warn_parm_array_mismatch): Fix comment typos, declaratation
2337 -> declaration and woud -> would. Fix up comment indentation.
2338
23392021-04-08 Martin Sebor <msebor@redhat.com>
2340
2341 PR middle-end/99883
2342 * c.opt (Wmismatched-new-delete): Correct spelling.
2343
b1da9916
GA
23442021-04-05 Eric Botcazou <ebotcazou@adacore.com>
2345
2346 * c-ada-spec.c (is_simple_enum): Minor tweaks.
2347 (dump_ada_enum_type): Add TYPE and PARENT parameters. For non-simple
2348 enumeral types use again the type name for the enumeration constants.
2349 (dump_ada_node): Adjust call to dump_ada_enum_type.
2350 (dump_nested_type): Likewise.
2351
f1607029
GA
23522021-04-01 Jason Merrill <jason@redhat.com>
2353
2354 PR c++/98481
2355 * c-opts.c (c_common_post_options): Bump latest_abi_version.
2356
4493b1c1
GA
23572021-03-25 Jakub Jelinek <jakub@redhat.com>
2358
2359 PR c++/99565
2360 * c-warn.c (do_warn_duplicated_branches): Pass also
2361 OEP_ADDRESS_OF_SAME_FIELD to operand_equal_p.
2362
6af7b307
GA
23632021-03-20 Jakub Jelinek <jakub@redhat.com>
2364
2365 PR debug/99230
2366 * c-gimplify.c (c_genericize_control_stmt): Handle STATEMENT_LIST.
2367
ceae9533
GA
23682021-03-05 Eric Botcazou <ebotcazou@adacore.com>
2369
2370 * c-ada-spec.c (dump_ada_declaration) <TYPE_DECL>: Dump nested types
2371 after entering the separate class package, if any.
2372
67f10d28
GA
23732021-03-04 Richard Biener <rguenther@suse.de>
2374
2375 * c-pretty-print.c (c_pretty_printer::direct_abstract_declarator):
2376 Handle ERROR_MARK.
2377
23782021-03-04 Jakub Jelinek <jakub@redhat.com>
2379
2380 PR c/99325
2381 * c-ppoutput.c (print): Change src_line type from int to unsigned.
2382 (token_streamer::stream) Likewise.
2383 (maybe_print_line_1): Likewise. Don't strcmp src_file if src_loc is
2384 UNKNOWN_LOCATION.
2385
f3641ac7
GA
23862021-03-03 Jakub Jelinek <jakub@redhat.com>
2387
2388 PR c/99324
2389 * c-common.c (build_va_arg): Call c_common_mark_addressable_vec
2390 instead of mark_addressable. Fix a comment typo -
2391 neutrallly -> neutrally.
2392
2c83c3fb
GA
23932021-02-28 Jakub Jelinek <jakub@redhat.com>
2394
2395 PR c/99304
2396 * c-attribs.c (handle_malloc_attribute): Fix a typo in inform
2397 message - refernced -> referenced. Remove superfluous space before
2398 closing paren of function calls.
2399
daa68844
GA
24002021-02-25 Nathan Sidwell <nathan@acm.org>
2401
2402 PR c++/99166
2403 * c.opt (-flang-info-module-cmi): Renamed option.
2404
50352c6c
GA
24052021-02-19 Nathan Sidwell <nathan@acm.org>
2406
2407 * c.opt (flang-info-module-read, flang-info-module-read=): New.
2408
bf81237e
GA
24092021-02-18 H.J. Lu <hjl.tools@gmail.com>
2410
2411 PR target/99113
2412 * c-attribs.c (c_common_attribute_table): Add the "retain"
2413 attribute.
2414 (handle_retain_attribute): New function.
2415
0e804ce3
GA
24162021-02-16 Marek Polacek <polacek@redhat.com>
2417
2418 PR c++/99062
2419 * c-attribs.c (handle_assume_aligned_attribute): Check that the
2420 alignment argument is non-negative. Tweak a warning message.
2421
fab095da
GA
24222021-02-12 Martin Sebor <msebor@redhat.com>
2423
2424 PR c/99055
2425 * c-warn.c (warn_parm_array_mismatch): Free strings returned from
2426 print_generic_expr_to_str.
2427
4b37c3ea
GA
24282021-02-10 Richard Biener <rguenther@suse.de>
2429
2430 * c-common.c (parse_optimize_options): Free decoded_options.
2431
a19dd5e6
GA
24322021-02-04 emsr <3dw4rd@verizon.net>
2433
2434 * c-cppbuiltin.c (c_cpp_builtins): __cpp_size_t_suffix=202011L.
2435
9faaa807
GA
24362021-02-03 Ed Smith-Rowland <3dw4rd@verizon.net>
2437
2438 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_size_t_suffix.
2439 * c-lex.c (interpret_integer): Set node type for size literal.
2440
85d04a2e
GA
24412021-01-28 Jakub Jelinek <jakub@redhat.com>
2442
2443 * c.opt (-std=c++2a, -std=c++20, -std=gnu++2a, -std=gnu++20): Remove
2444 draft from description.
2445 (-std=c++2b): Fix a pasto, 2020 -> 2023.
2446
e62bb7f0
GA
24472021-01-26 Paul Fee <paul.f.fee@gmail.com>
2448
2449 * c-common.h (cxx_dialect): Add cxx23 as a dialect.
2450 * c.opt: Add options for -std=c++23, std=c++2b, -std=gnu++23
2451 and -std=gnu++2b
2452 * c-opts.c (set_std_cxx23): New.
2453 (c_common_handle_option): Set options when -std=c++23 is enabled.
2454 (c_common_post_options): Adjust comments.
2455 (set_std_cxx20): Likewise.
2456
161e4c08
GA
24572021-01-25 Martin Sebor <msebor@redhat.com>
2458
2459 PR c++/98646
2460 * c-common.c (check_nonnull_arg): Adjust warning text.
2461
4c9bcd5c
GA
24622021-01-17 Martin Sebor <msebor@redhat.com>
2463
2464 * c-pretty-print.c (c_pretty_printer::primary_expression): Don't
2465 assume SSA_NAME_IDENTIFIER evaluates to nonzero.
2466
59cf67d1
GA
24672021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
2468
2469 * c-pragma.h (pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_DETACH.
2470 Redefine PRAGMA_OACC_CLAUSE_DETACH.
2471
2f7f0d32
GA
24722021-01-15 Jakub Jelinek <jakub@redhat.com>
2473
2474 PR tree-optimization/98597
2475 * c-pretty-print.c: Include options.h.
2476 (c_fold_indirect_ref_for_warn): New function.
2477 (print_mem_ref): Use it. If it returns something that has compatible
2478 type and is TBAA compatible with zero offset, print it and return,
2479 otherwise print it using offsetof syntax or array ref syntax. Fix up
2480 printing if MEM_REFs first operand is ADDR_EXPR, or when the first
2481 argument has pointer to array type. Print pointers using the standard
2482 formatting.
2483
6851dda2
GA
24842021-01-12 Martin Sebor <msebor@redhat.com>
2485
2486 PR c/98597
2487 PR c/98592
2488 * c-pretty-print.c (print_mem_ref): Avoid assuming MEM_REF operand
2489 has pointer type. Remove redundant code. Avoid calling
2490 gimple_canonical_types_compatible_p.
2491
7d187e4f
GA
24922021-01-07 Martin Sebor <msebor@redhat.com>
2493
2494 PR middle-end/98578
2495 * c-pretty-print.c (print_mem_ref): Strip array from access type.
2496 Avoid assuming acces type's size is constant. Correct condition
2497 guarding the printing of a parenthesis.
2498
942ae5be
GA
24992021-01-06 Martin Sebor <msebor@redhat.com>
2500
2501 PR c++/95768
2502 * c-pretty-print.c (c_pretty_printer::primary_expression): For
2503 SSA_NAMEs print VLA names and GIMPLE defining statements.
2504 (print_mem_ref): New function.
2505 (c_pretty_printer::unary_expression): Call it.
2506
25072021-01-06 Richard Biener <rguenther@suse.de>
2508
2509 PR tree-optimization/95582
2510 * c-attribs.c (c_common_attribute_table): Add entry for
2511 signed_bool_precision.
2512 (handle_signed_bool_precision_attribute): New.
2513
8daa719b
GA
25142020-12-24 Iain Sandoe <iain@sandoe.co.uk>
2515
2516 * c.opt: Add -stdlib= option and enumerations for
2517 libstdc++ and libc++.
2518
eefe499f
GA
25192020-12-16 Martin Liska <mliska@suse.cz>
2520
2521 * c.opt: Remove usage of Report.
2522
d52945ce
GA
25232020-12-14 Martin Sebor <msebor@redhat.com>
2524
2525 PR middle-end/98166
2526 PR c++/57111
2527 PR middle-end/98160
2528 * c-attribs.c (maybe_add_noinline): New function.
2529 (handle_malloc_attribute): Call it. Use ATTR_FLAG_INTERNAL.
2530 Implicitly add attribute noinline to functions not declared inline
2531 and warn on those.
2532
ca2bd949
GA
25332020-12-09 Tobias Burnus <tobias@codesourcery.com>
2534
2535 * c-pragma.c (omp_pragmas): Add 'allocate'.
2536 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_ALLOCATE.
2537
f6e8e279
GA
25382020-12-08 Jakub Jelinek <jakub@redhat.com>
2539
2540 PR c++/98187
2541 * c-pragma.c (omp_pragmas): Remove "master".
2542 (omp_pragmas_simd): Add "master".
2543
bc8a7013
GA
25442020-12-07 Marek Polacek <polacek@redhat.com>
2545
2546 PR c++/98126
2547 * c-common.c (verify_tree_lim_r): New function.
2548 (verify_sequence_points): Use it. Use nullptr instead of 0.
2549
b8dd0ef7
GA
25502020-12-03 Martin Sebor <msebor@redhat.com>
2551
2552 PR c++/90629
2553 PR middle-end/94527
2554 * c-attribs.c (handle_dealloc_attribute): New function.
2555 (handle_malloc_attribute): Handle argument forms of attribute.
2556 * c.opt (-Wmismatched-dealloc): New option.
2557 (-Wmismatched-new-delete): New option.
2558
25592020-12-03 Jakub Jelinek <jakub@redhat.com>
2560
2561 PR libstdc++/93121
2562 * c-common.h (enum rid): Add RID_BUILTIN_BIT_CAST.
2563 * c-common.c (c_common_reswords): Add __builtin_bit_cast.
2564
e0f5e792
GA
25652020-12-01 JeanHeyd Meneide <phdofthehouse@gmail.com>
2566
2567 * c-cppbuiltin.c (c_cpp_builtins): Add predefined
2568 {__GNUC_EXECUTION_CHARSET_NAME} and
2569 _WIDE_EXECUTION_CHARSET_NAME} macros.
2570
25712020-12-01 Nathan Sidwell <nathan@acm.org>
2572
2573 * c-common.c (module, import, export): New internal tokens (with
2574 trailing space).
2575 * c-common.h (RID__MODULE, RID__IMPORT & RID__EXPORT): Enumerate
2576 them.
2577 (D_CXX_MODULES, D_CXX_MODULES_FLAGS): Enable them.
2578 * c-cppbuiltin.c (c_cpp_builtins): Feature macro.
2579
25802020-12-01 Nathan Sidwell <nathan@acm.org>
2581
2582 * c-opts.c (c_common_init_options): Ask for module dependencies.
2583 (c_common_handle_option): Handle -Mmodules -Mno-modules.
2584 * c-pch.c (c_common_valid_pch): ... does not play with C++
2585 modules.
2586 * c.opt (Mmodules, Mno-modules): New preprocessor dependency
2587 options.
2588 (fmodules-ts, fmodule-header, fmodule-implicit-inline)
2589 (fmodule-only, fmodule-mapper, fmodule-lazy)
2590 (fmodule-version-ignore, Winvalid-imported-macros)
2591 (flang-info-include-translate, flang-info-include-translate-not):
2592 New options
2593
5fbf0ecb
GA
25942020-11-28 Eric Botcazou <ebotcazou@adacore.com>
2595
2596 * c-ada-spec.c (dump_nested_type) <RECORD_TYPE>: Remove obsolete code.
2597 (dump_ada_structure): Also deal with convention, unchecked union and
2598 bit-field for nested types. In the latter case, print an Alignment
2599 aspect along with the Pack aspect.
2600
360258da
GA
26012020-11-25 Martin Sebor <msebor@redhat.com>
2602
2603 PR bootstrap/94982
2604 * c-attribs.c (handle_patchable_function_entry_attribute): Avoid
2605 -Wformat-diag.
2606
1e2c9a27
GA
26072020-11-24 Martin Sebor <msebor@redhat.com>
2608
2609 * c-warn.c (warn_parm_array_mismatch): Avoid invalid redeclarations.
2610
8e6198d0
GA
26112020-11-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2612
2613 * c-attribs.c (handle_special_var_sec_attribute): New.
2614 (handle_noinit_attribute): Remove.
2615 (attr_noinit_exclusions): Rename to...
2616 (attr_section_exclusions): ...this, and add "persistent" attribute
2617 exclusion.
2618 (c_common_attribute_table): Add "persistent" attribute.
2619
7a97e2fc
GA
26202020-11-21 Aaron Sawdey <acsawdey@linux.ibm.com>
2621
2622 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
2623 Treat opaque types like other types.
2624 (c_pretty_printer::direct_abstract_declarator): Opaque types are
2625 supported types.
2626
82e5048e
GA
26272020-11-20 Martin Sebor <msebor@redhat.com>
2628
2629 * c-warn.c (warn_parm_array_mismatch): Bail on invalid redeclarations
2630 with fewer arguments.
2631
26322020-11-20 Martin Sebor <msebor@redhat.com>
2633
2634 PR middle-end/97879
2635 * c-attribs.c (handle_access_attribute): Handle ATTR_FLAG_INTERNAL.
2636 Error out on invalid modes.
2637
26382020-11-20 Jakub Jelinek <jakub@redhat.com>
2639
2640 PR libstdc++/88101
2641 * c-common.c (check_builtin_function_arguments): Handle
2642 BUILT_IN_CLEAR_PADDING.
2643
25bb75f8
GA
26442020-11-18 Nathan Sidwell <nathan@acm.org>
2645
2646 * c-lex.c (c_lex_with_flags): CPP_HEADER_NAMEs can now be seen.
2647
4dabb037
GA
26482020-11-17 Nathan Sidwell <nathan@acm.org>
2649
2650 * c-common.h (enum c_tree_index): Reorder to place lazy fields
2651 after newly-added CTI_MODULE_HWM.
2652
26532020-11-17 Joseph Myers <joseph@codesourcery.com>
2654
2655 * c-cppbuiltin.c (builtin_define_float_constants): Define
2656 "*_IS_IEC_60559__" macros.
2657
26582020-11-17 Nathan Sidwell <nathan@acm.org>
2659
2660 * c-lex.c: #include "langhooks.h".
2661 (cb_undef): Maybe call preprocess_undef lang hook.
2662 * c-opts.c (c_common_post_options): Maybe call preprocess_options
2663 lang hook.
2664 (push_command_line_include): Maybe call preprocess_main_file lang
2665 hook.
2666 (cb_file_change): Likewise.
2667 * c-ppoutput.c: #include "langhooks.h.
2668 (scan_translation_unit): Maybe call preprocess_token lang hook.
2669 (class do_streamer): New, derive from token_streamer.
2670 (directives_only_cb): Data pointer is do_streamer, call
2671 preprocess_token lang hook.
2672 (scan_translation_unit_directives_only): Use do_streamer.
2673 (print_line_1): Move src_line recording to after string output.
2674 (cb_undef): Maybe call preprocess_undef lang hook.
2675
26762020-11-17 Nathan Sidwell <nathan@acm.org>
2677
2678 * c-ppoutput.c (scan_translation_unit): Use token_streamer, remove
2679 code duplicating that functionality.
2680
26812020-11-17 Jakub Jelinek <jakub@redhat.com>
2682
2683 PR c/90628
2684 * c-common.c (check_builtin_function_arguments)
2685 <case BUILT_IN_ADD_OVERFLOW>: Diagnose when last argument is pointer
2686 to _Atomic. For the TYPE_READONLY case, adjust message to be usable
2687 for more builtins and argument positions.
2688
29c5d9ce
GA
26892020-11-16 Iain Sandoe <iain@sandoe.co.uk>
2690
2691 PR objc/97854
2692 * stub-objc.c: Include c-common.h to declare enum rid.
2693
77f67db2
GA
26942020-11-13 Jakub Jelinek <jakub@redhat.com>
2695
2696 PR c++/63287
2697 * c-cppbuiltin.c: Include configargs.h.
2698 (c_cpp_builtins): For C++11 and later if THREAD_MODEL_SPEC is not
2699 defined, predefine __STDCPP_THREADS__ to 1 unless thread_model is
2700 "single".
2701
27022020-11-13 Gergö Barany <gergo@codesourcery.com>
2703 Thomas Schwinge <thomas@codesourcery.com>
2704
2705 * c.opt (fopenacc-kernels): Add.
2706
27072020-11-13 Jason Merrill <jason@redhat.com>
2708
2709 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_using_enum.
2710
27112020-11-13 Piotr H. Dabrowski <phd@phd.re>
2712
2713 PR c++/91318
2714 * c-cppbuiltin.c: c_cpp_builtins_optimize_pragma(): use cpp_define_unused()
2715
27162020-11-13 Martin Liska <mliska@suse.cz>
2717
2718 * c-attribs.c (build_attr_access_from_parms): Format properly.
2719
27202020-11-13 Iain Sandoe <iain@sandoe.co.uk>
2721
2722 PR objc/90707
2723 * c-common.c (c_common_reswords): null_unspecified, nullable,
2724 nonnull, null_resettable: New keywords.
2725 * c-common.h (enum rid): RID_NULL_UNSPECIFIED, RID_NULLABLE,
2726 RID_NONNULL, RID_NULL_RESETTABLE: New.
2727 (OBJC_IS_PATTR_KEYWORD): Include nullability keywords in the
2728 ranges accepted for property attributes.
2729 * c-attribs.c (handle_objc_nullability_attribute): New.
2730 * c-objc.h (enum objc_property_attribute_group): Add
2731 OBJC_PROPATTR_GROUP_NULLABLE.
2732 (enum objc_property_attribute_kind):Add
2733 OBJC_PROPERTY_ATTR_NULL_UNSPECIFIED, OBJC_PROPERTY_ATTR_NULLABLE,
2734 OBJC_PROPERTY_ATTR_NONNULL, OBJC_PROPERTY_ATTR_NULL_RESETTABLE.
2735
27362020-11-13 Iain Sandoe <iain@sandoe.co.uk>
2737
2738 PR objc/77404
2739 * c-attribs.c (handle_objc_root_class_attribute): New
2740 * c-objc.h (objc_start_class_interface): Add a location
2741 value for the position of the class name.
2742 * c.opt: Add Wobjc-root-class.
2743 * stub-objc.c (objc_start_class_interface): Add a location
2744 value for the position of the class name.
2745
a5a11525
GA
27462020-11-12 Joseph Myers <joseph@codesourcery.com>
2747
2748 * c-lex.c (c_common_has_attribute): Take argument std_syntax.
2749 Allow scope for C. Handle standard attributes for C. Do not
2750 accept unscoped attributes if std_syntax and not handled as
2751 standard attributes.
2752 * c-common.h (c_common_has_attribute): Update prototype.
2753
27542020-11-12 Nicholas Guriev <guriev-ns@ya.ru>
2755
2756 PR pch/86674
2757 * c-pch.c (c_common_valid_pch): Use cpp_warning with CPP_W_INVALID_PCH
2758 reason to fix -Werror=invalid-pch and -Wno-error=invalid-pch switches.
2759
0f5f9ed5
GA
27602020-11-11 Patrick Palka <ppalka@redhat.com>
2761
2762 PR c++/88115
2763 * c-opts.c (c_common_post_options): Update latest_abi_version.
2764
bb622641
GA
27652020-11-10 Jakub Jelinek <jakub@redhat.com>
2766
2767 PR c/97748
2768 * c-common.h (warn_if_unused_value): Add quiet argument defaulted
2769 to false.
2770 * c-warn.c (warn_if_unused_value): Likewise. Pass it down
2771 recursively and just return true instead of warning if it is true.
2772 Handle COMPLEX_EXPR.
2773
27742020-11-10 Chung-Lin Tang <cltang@codesourcery.com>
2775
2776 * c-common.h (c_omp_adjust_map_clauses): New declaration.
2777 * c-omp.c (struct map_clause): Helper type for c_omp_adjust_map_clauses.
2778 (c_omp_adjust_map_clauses): New function.
2779
2bee28dd
GA
27802020-11-09 Marek Polacek <polacek@redhat.com>
2781
2782 DR 1914
2783 * c-common.c (attribute_fallthrough_p): Tweak the warning
2784 message.
2785
27862020-11-09 Patrick Palka <ppalka@redhat.com>
2787
2788 * c-pragma.c (handle_pragma_diagnostic): Split the
2789 unknown-option -Wpragmas diagnostic into a warning and a
2790 subsequent note containing a spelling suggestion. Avoid
2791 computing the suggestion if -Wpragmas warnings are being
2792 suppressed.
2793
27942020-11-09 Patrick Palka <ppalka@redhat.com>
2795
2796 PR testsuite/97117
2797 * c-indentation.c (get_visual_column): Remove location_t
2798 parameter. Move the column-tracking diagnostic code from here
2799 to ...
2800 (should_warn_for_misleading_indentation): ... here, before the
2801 early exit for when the loci are not all distinct. Don't pass a
2802 location_t argument to get_visual_column.
2803 (assert_get_visual_column_succeeds): Don't pass a location_t
2804 argument to get_visual_column.
2805 (assert_get_visual_column_fails): Likewise.
2806
fb95de7a
GA
28072020-11-08 Iain Sandoe <iain@sandoe.co.uk>
2808
2809 * c-common.h (OBJC_IS_PATTR_KEYWORD): Add class to the list
2810 of keywords accepted in @property attribute contexts.
2811 * c-objc.h (enum objc_property_attribute_group): Add
2812 OBJC_PROPATTR_GROUP_CLASS.
2813 (enum objc_property_attribute_kind): Add
2814 OBJC_PROPERTY_ATTR_CLASS.
2815
2da7ee05
GA
28162020-11-07 Iain Sandoe <iain@sandoe.co.uk>
2817
2818 * c-common.c (c_common_reswords): Add 'atomic' property
2819 attribute.
2820 * c-common.h (enum rid): Add RID_PROPATOMIC for atomic
2821 property attributes.
2822
28232020-11-07 Iain Sandoe <iain@sandoe.co.uk>
2824
2825 * c-attribs.c (handle_nsobject_attribute): New.
2826 * c.opt: Add WNSObject-attribute.
2827
44cab2d8
GA
28282020-11-06 Iain Sandoe <iain@sandoe.co.uk>
2829
2830 * c-objc.h (enum objc_property_attribute_group): New
2831 (enum objc_property_attribute_kind): New.
2832 (OBJC_PROPATTR_GROUP_MASK): New.
2833 (struct property_attribute_info): Small class encapsulating
2834 parser output from property attributes.
2835 (objc_prop_attr_kind_for_rid): New
2836 (objc_add_property_declaration): Simplify interface.
2837 * stub-objc.c (enum rid): Dummy type.
2838 (objc_add_property_declaration): Simplify interface.
2839 (objc_prop_attr_kind_for_rid): New.
2840
28412020-11-06 Nathan Sidwell <nathan@acm.org>
2842
2843 * c-ada-spec.c (collect_ada_nodes): Rename
2844 DECL_IS_BUILTIN->DECL_IS_UNDECLARED_BUILTIN.
2845 (collect_ada_node): Likewise.
2846 (dump_forward_type): Likewise.
2847 * c-common.c (set_underlying_type): Rename
2848 DECL_IS_BUILTIN->DECL_IS_UNDECLARED_BUILTIN.
2849 (user_facing_original_type, c_common_finalize_early_debug): Likewise.
2850
28512020-11-06 Jakub Jelinek <jakub@redhat.com>
2852
2853 * c-common.c (verify_sequence_points): Remove DEBUG_FUNCTION.
2854
0cfd9109
GA
28552020-11-05 Marek Polacek <polacek@redhat.com>
2856
2857 PR c++/97675
2858 * c.opt (Wexceptions): New option.
2859
28602020-11-05 Marek Polacek <polacek@redhat.com>
2861
2862 PR c++/25814
2863 * c.opt (Wvexing-parse): New option.
2864
35c125cb
GA
28652020-11-04 Jakub Jelinek <jakub@redhat.com>
2866
2867 PR c++/97670
2868 * c-omp.c (c_omp_split_clauses): Look through array reductions to find
2869 underlying decl to clear in the allocate_head bitmap.
2870
28712020-11-04 Iain Sandoe <iain@sandoe.co.uk>
2872
2873 * c-objc.h (objc_non_constant_expr_p): New.
2874 * stub-objc.c (objc_non_constant_expr_p): New.
2875
fd2325ea
GA
28762020-11-03 Nathan Sidwell <nathan@acm.org>
2877
2878 * c.opt (MQ,MT): Reword description to be make-agnostic.
2879
88ce3d5f
GA
28802020-11-02 Nathan Sidwell <nathan@acm.org>
2881
2882 * c-opts.c (c_common_post_options): Move var decl to its
2883 initialization point.
2884
28852020-11-01 Iain Sandoe <iain@sandoe.co.uk>
2886
2887 * c-lex.c (c_lex_with_flags): When combining '@' with a
2888 keyword for Objective-C, combine the location ranges too.
2889
28902020-10-30 Qing Zhao <qing.zhao@oracle.com>
2891 H.J.Lu <hjl.tools@gmail.com>
2892
2893 * c-attribs.c (c_common_attribute_table): Add new attribute
2894 zero_call_used_regs.
2895 (handle_zero_call_used_regs_attribute): New function.
2896
e93aae4a
GA
28972020-10-28 Marek Polacek <polacek@redhat.com>
2898
2899 PR c++/97573
2900 * c-opts.c (c_common_post_options): In C++20, turn on
2901 -Wdeprecated-enum-enum-conversion and
2902 -Wdeprecated-enum-float-conversion.
2903 * c.opt (Wdeprecated-enum-enum-conversion,
2904 Wdeprecated-enum-float-conversion): New options.
2905 (Wenum-conversion): Allow for C++ too.
2906
29072020-10-28 Jakub Jelinek <jakub@redhat.com>
2908
2909 * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALLOCATE.
2910 * c-omp.c: Include bitmap.h.
2911 (c_omp_split_clauses): Handle OMP_CLAUSE_ALLOCATE.
2912
f19e7c8d
GA
29132020-10-26 Ville Voutilainen <ville.voutilainen@gmail.com>
2914
2915 * c-common.c (__is_nothrow_assignable): New.
2916 (__is_nothrow_constructible): Likewise.
2917 * c-common.h (RID_IS_NOTHROW_ASSIGNABLE): New.
2918 (RID_IS_NOTHROW_CONSTRUCTIBLE): Likewise.
2919
efe71fcc
GA
29202020-10-23 Jan Hubicka <hubicka@ucw.cz>
2921
2922 * c-common.c (c_common_finalize_early_debug): Update for new thunk api.
2923
29242020-10-23 Marek Polacek <polacek@redhat.com>
2925
2926 PR c++/91741
2927 * c-common.c (verify_tree): Handle PAREN_SIZEOF_EXPR.
2928 (c_common_init_ts): Likewise.
2929 * c-common.def (PAREN_SIZEOF_EXPR): New tree code.
2930 * c-common.h (maybe_warn_sizeof_array_div): Declare.
2931 * c-warn.c (sizeof_pointer_memaccess_warning): Unwrap NOP_EXPRs.
2932 (maybe_warn_sizeof_array_div): New function.
2933 * c.opt (Wsizeof-array-div): New option.
2934
29352020-10-23 Martin Sebor <msebor@redhat.com>
2936
2937 PR c/97463
2938 * c-warn.c (warn_parm_ptrarray_mismatch): Move null test earlier.
2939
56ddd5e2
GA
29402020-10-22 Martin Liska <mliska@suse.cz>
2941
2942 PR c/94722
2943 * c-attribs.c (handle_no_stack_protect_function_attribute): New.
2944 (handle_stack_protect_attribute): Add error message for a
2945 no_stack_protector function.
2946
29472020-10-22 Martin Liska <mliska@suse.cz>
2948
2949 * c-cppbuiltin.c (c_cpp_builtins): Use the stack_protector enum.
2950
29512020-10-22 Jan Hubicka <hubicka@ucw.cz>
2952
2953 * c-gimplify.c: Include tree-nested.h
2954 (c_genericize): Update for new nested function info.
2955
b2698c21
GA
29562020-10-14 Martin Sebor <msebor@redhat.com>
2957
2958 PR c/97413
2959 * c-attribs.c (build_attr_access_from_parms): Wrap chain of VLA
2960 bounds in an extra list.
2961
7e9282ae
GA
29622020-10-05 Richard Biener <rguenther@suse.de>
2963 Jakub Jelinek <jakub@redhat.com>
2964
2965 PR c++/97197
2966 * c-pretty-print.c: Include langhooks.h.
2967 (c_pretty_printer::postfix_expression): Handle TARGET_MEM_REF as
2968 expression.
2969 (c_pretty_printer::expression): Handle TARGET_MEM_REF as
2970 unary_expression.
2971 (c_pretty_printer::unary_expression): Handle TARGET_MEM_REF.
2972
660bfe61
GA
29732020-09-30 Martin Sebor <msebor@redhat.com>
2974
2975 PR middle-end/97189
2976 * c-attribs.c (append_access_attr): Use the function declaration
2977 location for a warning about an attribute access argument.
2978
93bca37c
GA
29792020-09-29 Marek Polacek <polacek@redhat.com>
2980
2981 PR c++/94695
2982 * c.opt (Wrange-loop-construct): New option.
2983
82b77dee
GA
29842020-09-23 Martin Sebor <msebor@redhat.com>
2985
2986 PR c/97131
2987 * c-warn.c (warn_parm_ptrarray_mismatch): Handle more invalid input.
2988
29892020-09-23 Marek Polacek <polacek@redhat.com>
2990
2991 PR c/97125
2992 * c-gimplify.c (c_genericize): Only call do_warn_duplicated_branches_r
2993 after loops and other structured control constructs have been lowered.
2994
521d2711
GA
29952020-09-22 Jakub Jelinek <jakub@redhat.com>
2996
2997 * c.opt (Wbuiltin-declaration-mismatch): Fix typo in variable name:
2998 warn_builtin_declaraion_mismatch -> warn_builtin_declaration_mismatch.
2999
44135373
GA
30002020-09-21 Marek Polacek <polacek@redhat.com>
3001
3002 * c.opt (Wctad-maybe-unsupported): New option.
3003
2fe5b7d1
GA
30042020-09-19 Martin Sebor <msebor@redhat.com>
3005
3006 PR c/50584
3007 * c-common.h (warn_parm_array_mismatch): Declare new function.
3008 (has_attribute): Move declaration of an existing function.
3009 (build_attr_access_from_parms): Declare new function.
3010 * c-warn.c (parm_array_as_string): Define new function.
3011 (plus_one): Define new function.
3012 (warn_parm_ptrarray_mismatch): Define new function.
3013 (warn_parm_array_mismatch): Define new function.
3014 (vla_bound_parm_decl): New function.
3015 * c.opt (-Warray-parameter, -Wvla-parameter): New options.
3016 * c-pretty-print.c (pp_c_type_qualifier_list): Don't print array type
3017 qualifiers here...
3018 (c_pretty_printer::direct_abstract_declarator): ...but instead print
3019 them in brackets here. Also print [static]. Strip extraneous
3020 expressions from VLA bounds.
3021
30222020-09-19 Martin Sebor <msebor@redhat.com>
3023
3024 PR c/50584
3025 * c-attribs.c (c_common_attribute_table): Add "arg spec" attribute.
3026 (handle_argspec_attribute): New function.
3027 (get_argument, get_argument_type): New functions.
3028 (append_access_attrs): Add overload. Handle internal attribute
3029 representation in addition to external.
3030 (handle_access_attribute): Handle internal attribute representation
3031 in addition to external.
3032 (build_attr_access_from_parms): New function.
3033
30342020-09-19 Sandra Loosemore <sandra@codesourcery.com>
3035
3036 * c-gimplify.c (genericize_c_loop): Rewrite to match
3037 c_finish_loop in c-typeck.c.
3038
30392020-09-19 Sandra Loosemore <sandra@codesourcery.com>
3040
3041 * c-common.c (c_block_may_fallthrough): New, split from
3042 cxx_block_may_fallthrough in the cp front end.
3043 (c_common_init_ts): Move handling of loop and switch-related
3044 statements here from the cp front end.
3045 * c-common.def (FOR_STMT, WHILE_STMT, DO_STMT): Move here from
3046 cp front end.
3047 (BREAK_STMT, CONTINUE_STMT, SWITCH_STMT): Likewise.
3048 * c-common.h (c_block_may_fallthru): Declare.
3049 (bc_state_t): Move here from cp front end.
3050 (save_bc_state, restore_bc_state): Declare.
3051 (c_genericize_control_stmt): Declare.
3052 (WHILE_COND, WHILE_BODY): Likewise.
3053 (DO_COND, DO_BODY): Likewise.
3054 (FOR_INIT_STMT, FOR_COND, FOR_EXPR, FOR_BODY, FOR_SCOPE): Likewise.
3055 (SWITCH_STMT_COND, SWITCH_STMT_BODY): Likewise.
3056 (SWITCH_STMT_TYPE, SWITCH_STMT_SCOPE): Likewise.
3057 (SWITCH_STMT_ALL_CASES_P, SWITCH_STMT_NO_BREAK_P): Likewise.
3058 (LABEL_DECL_BREAK, LABEL_DECL_CONTINUE): Likewise.
3059 * c-dump.c (dump_stmt): Copy from cp front end.
3060 (c_dump_tree): Move code to handle structured loop and switch
3061 tree nodes here from cp front end.
3062 * c-gimplify.c: Adjust includes.
3063 (enum bc_t, bc_label, begin_bc_block, finish_bc_block): Move from
3064 cp front end.
3065 (save_bc_state, restore_bc_state): New functions using old code
3066 from cp front end.
3067 (get_bc_label, expr_loc_or_loc): Move from cp front end.
3068 (genericize_c_loop): Move from cp front end.
3069 (genericize_for_stmt, genericize_while_stmt): Likewise.
3070 (genericize_do_stmt, genericize_switch_stmt): Likewise.
3071 (genericize_continue_stmt, genericize_break_stmt): Likewise.
3072 (genericize_omp_for_stmt): Likewise.
3073 (c_genericize_control_stmt): New function using code split from
3074 cp front end.
3075 (c_genericize_control_r): New.
3076 (c_genericize): Call walk_tree with c_genericize_control_r.
3077 * c-pretty-print.c (c_pretty_printer::statement): Move code to handle
3078 structured loop and switch tree nodes here from cp front end.
3079
2aad20c0
GA
30802020-09-17 Patrick Palka <ppalka@redhat.com>
3081
3082 PR c/80076
3083 * c-indentation.c (should_warn_for_misleading_indentation): Move
3084 declarations of local variables closer to their first use.
3085 Handle virtual token locations by resolving them to their
3086 respective macro expansion points. If all three tokens are
3087 produced from the same macro expansion, then instead use their
3088 loci within the macro definition.
3089
ecde1b0a
GA
30902020-09-16 Martin Sebor <msebor@redhat.com>
3091
3092 PR c/78666
3093 PR c/96126
3094 * c-attribs.c (validate_attr_args): New function.
3095 (validate_attr_arg): Same.
3096 (handle_section_attribute): Call it. Introduce a local variable.
3097 (handle_alloc_size_attribute): Same.
3098 (handle_alloc_align_attribute): Same.
3099
50a71cd0
GA
31002020-09-14 Jakub Jelinek <jakub@redhat.com>
3101
3102 * c-attribs.c (handle_optimize_attribute): Adjust
3103 cl_optimization_save, cl_optimization_restore and
3104 build_optimization_node callers.
3105 * c-pragma.c (handle_pragma_optimize): Adjust
3106 build_optimization_node caller.
3107 (handle_pragma_push_options): Adjust
3108 build_optimization_node and build_target_option_node callers.
3109 (handle_pragma_pop_options, handle_pragma_reset_options):
3110 Adjust cl_optimization_restore callers.
3111
8f7ea26a
GA
31122020-08-28 Martin Sebor <msebor@redhat.com>
3113
3114 * c.opt (Wstringop-overread): New option.
3115
a6493809
GA
31162020-08-11 Jakub Jelinek <jakub@redhat.com>
3117
3118 PR c/96545
3119 * c-common.c (get_atomic_generic_size): Require that first argument's
3120 type points to a complete type and use tree_fits_uhwi_p instead of
3121 just INTEGER_CST TREE_CODE check for the TYPE_SIZE_UNIT.
3122
48cc2e46
GA
31232020-07-31 Martin Sebor <msebor@redhat.com>
3124
3125 PR c++/96003
3126 * c-common.c (check_function_arguments_recurse): Return early when
3127 no-warning bit is set.
3128
31292020-07-31 Richard Biener <rguenther@suse.de>
3130
3131 PR debug/96383
3132 * c-common.h (c_common_finalize_early_debug): Declare.
3133 * c-common.c: Include debug.h.
3134 (c_common_finalize_early_debug): finalize_early_debug langhook
3135 implementation generating debug for extern declarations.
3136
e71dab87
GA
31372020-07-27 Nathan Sidwell <nathan@acm.org>
3138
3139 * c-common.c (try_to_locate_new_include_insertion_point): Use
3140 strcmp, not pointer equality.
3141
ae2e0bc1
GA
31422020-07-25 Martin Sebor <msebor@redhat.com>
3143
3144 PR c++/96310
3145 * c-common.c (check_nonnull_arg): Print note only when warning was
3146 issued.
3147
3ea9abca
GA
31482020-07-22 Tobias Burnus <tobias@codesourcery.com>
3149
3150 * c-omp.c (c_finish_omp_critical): Check for no name but
3151 nonzero hint provided.
3152
0933f508
GA
31532020-07-20 Jason Merrill <jason@redhat.com>
3154
3155 * c-cppbuiltin.c (c_cpp_builtins): Update
3156 __cpp_nontype_template_args for C++20.
3157
31582020-07-20 Martin Sebor <msebor@redhat.com>
3159
3160 PR c/96249
3161 * c.opt: Remove stray text.
3162
8ca07a30
GA
31632020-07-14 Lewis Hyatt <lhyatt@gmail.com>
3164
3165 PR other/86904
3166 * c-indentation.c (should_warn_for_misleading_indentation): Get
3167 global tabstop from the new source.
3168 * c-opts.c (c_common_handle_option): Remove handling of -ftabstop, which
3169 is now a common option.
3170 * c.opt: Likewise.
3171
a82c4c4c 31722020-07-08 Eric Botcazou <ebotcazou@adacore.com>
50873cc5
GA
3173
3174 * c.opt (Wscalar-storage-order): Add explicit variable.
3175
f60ee68d
GA
31762020-07-07 Nathan Sidwell <nathan@acm.org>
3177
3178 * c-opts.c (c_common_post_options): Add 'injecting' arg to
3179 cpp_read_main_file.
3180 (c_finish_options): Add linemap_line_start calls for builtin and cmd
3181 maps. Force token position to line_table's highest line.
3182 * c-ppoutput.c (print_line_1): Refactor, print line zero.
3183 (cb_define): Always increment source line.
3184
4077d74c
GA
31852020-07-06 Martin Sebor <msebor@redhat.com>
3186
3187 PR c++/95984
3188 * c-common.c (check_function_nonnull): Avoid checking syntesized calls
3189 to stub lambda objects with null this pointer.
3190 (check_nonnull_arg): Handle C++ nullptr.
3191
b5f24739
GA
31922020-07-02 Jason Merrill <jason@redhat.com>
3193 Jakub Jelinek <jakub@redhat.com>
3194
3195 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_consteval.
3196
46fbb6c6
GA
31972020-06-30 Jakub Jelinek <jakub@redhat.com>
3198
3199 PR c++/95963
3200 * c-common.c (check_function_arguments_recurse): Don't crash on
3201 calls to internal functions.
3202
69273534
GA
32032020-06-28 Martin Sebor <msebor@redhat.com>
3204
3205 PR c++/86568
3206 * c-common.c (struct nonnull_arg_ctx): Add members.
3207 (check_function_nonnull): Use nonnull_arg_ctx as argument. Handle
3208 C++ member functions specially. Consider the this pointer implicitly
3209 nonnull.
3210 (check_nonnull_arg): Use location of argument when available.
3211 (check_function_arguments): Use nonnull_arg_ctx as argument.
3212
9a33c41f
GA
32132020-06-27 Jakub Jelinek <jakub@redhat.com>
3214
3215 PR middle-end/95903
3216 * c-common.c (pointer_int_sum): Use TYPE_OVERFLOW_UNDEFINED instead of
3217 !TYPE_UNSIGNED check to see if we can apply distributive law and handle
3218 smaller precision intop operands separately.
3219
c9c05f73
GA
32202020-06-26 Marek Polacek <polacek@redhat.com>
3221
3222 * c-opts.c (c_common_init_options): Default to gnu++17.
3223
aff95ee7
GA
32242020-06-17 Jonathan Wakely <jwakely@redhat.com>
3225
bd0a89dc 3226 PR c/95378
aff95ee7
GA
3227 * c-common.c (get_atomic_generic_size): Check cv-qualifiers in
3228 pointer arguments.
3229
56638b9b
GA
32302020-06-16 Jakub Jelinek <jakub@redhat.com>
3231
3232 * c-common.h (c_omp_check_loop_iv_exprs): Add an int argument.
3233 * c-omp.c (struct c_omp_check_loop_iv_data): Add maybe_nonrect and
3234 idx members.
3235 (c_omp_is_loop_iterator): New function.
3236 (c_omp_check_loop_iv_r): Use it. Add support for silent scanning
3237 if outer loop iterator is present. Perform duplicate checking through
3238 hash_set in the function rather than expecting caller to do that.
3239 Pass NULL instead of d->ppset to walk_tree_1.
3240 (c_omp_check_nonrect_loop_iv): New function.
3241 (c_omp_check_loop_iv): Use it. Fill in new members, allow
3242 non-rectangular loop forms, diagnose multiple associated loops with
3243 the same iterator. Pass NULL instead of &pset to walk_tree_1.
3244 (c_omp_check_loop_iv_exprs): Likewise.
3245
ec6ffbb9
GA
32462020-06-10 Martin Liska <mliska@suse.cz>
3247
3248 PR tree-optimization/92860
3249 * c-attribs.c (handle_optimize_attribute):
3250 Save global options and compare it after parsing of function
3251 attribute.
3252 * c-pragma.c (opt_stack::saved_global_options): New field.
3253 (handle_pragma_push_options): Save global_options.
3254 (handle_pragma_pop_options): Compare them after pop.
3255
b952c2cf
GA
32562020-06-09 Jakub Jelinek <jakub@redhat.com>
3257
3258 PR c/95580
3259 * c-pretty-print.c (c_pretty_printer::unary_expression): Handle the
3260 case when MEM_REF's first argument has type pointer to incomplete type.
3261
1a59f3db
GA
32622020-06-05 Jason Merrill <jason@redhat.com>
3263
3264 * c-pretty-print.c (pp_c_additive_expression): Handle negative
3265 operand to POINTER_PLUS_EXPR.
3266
3add3425
GA
32672020-06-04 Martin Sebor <msebor@redhat.com>
3268
3269 PR middle-end/10138
3270 PR middle-end/95136
3271 * c-attribs.c (append_access_attrs): Handle attr_access::none.
3272 (handle_access_attribute): Same.
3273
9a5b7438
GA
32742020-06-03 Mark Wielaard <mark@klomp.org>
3275
3276 * known-headers.cc (get_cp_stdlib_header_for_string_macro_name):
3277 New function.
3278 * known-headers.h (get_cp_stdlib_header_for_string_macro_name):
3279 New function declaration.
3280
32812020-06-03 Mark Wielaard <mark@klomp.org>
3282
3283 * known-headers.cc (get_string_macro_hint): New function.
3284 (get_stdlib_header_for_name): Use get_string_macro_hint.
3285 (get_c_stdlib_header_for_string_macro_name): New function.
3286 * known-headers.h (get_c_stdlib_header_for_string_macro_name):
3287 New function declaration.
3288
32892020-06-03 Tobias Burnus <tobias@codesourcery.com>
3290
3291 * c-common.h (c_omp_predetermined_mapping): Declare.
3292 * c-omp.c (c_omp_predetermined_mapping): New.
3293
af114c38
MW
32942020-05-22 Mark Wielaard <mark@klomp.org>
3295
3296 * known-headers.cc (get_stdlib_header_for_name): Add a new
3297 stdlib_hint array for stdbool and stdint.
3298
45c50b6a
MW
32992020-05-22 Mark Wielaard <mark@klomp.org>
3300
3301 * known-headers.cc (get_stdlib_header_for_name): Return
3302 "<stdbool.h>" for "bool", "true" or "false" when STDLIB_C and
3303 flag_isoc99.
3304
c22027a0
NS
33052020-05-20 Nathan Sidwell <nathan@acm.org>
3306
38a4db21
NS
3307 * c-common.c (try_to_locate_new_include_insertion_point): Revert change.
3308
c22027a0
NS
3309 * c-common.c (try_to_locate_new_include_insertion_point): Use
3310 strcmp to compare filenames.
3311 * c-lex.c (init_c_lex): Move declaration to initialization.
3312 * c-opts.c (handle_deferred_opts): Move cpp_get_deps call into
3313 deferred count loop.
3314
29f0e90d
JM
33152020-05-15 Jason Merrill <jason@redhat.com>
3316
3317 * c-opts.c (set_std_cxx20): Set flag_coroutines.
3318
b04445d4
JM
33192020-05-13 Jason Merrill <jason@redhat.com>
3320
3321 * c.opt (std=c++20): Make c++2a the alias.
3322 (std=gnu++20): Likewise.
3323 * c-common.h (cxx_dialect): Change cxx2a to cxx20.
3324 * c-opts.c: Adjust.
3325 * c-cppbuiltin.c: Adjust.
3326 * c-ubsan.c: Adjust.
3327 * c-warn.c: Adjust.
3328
11dd3be5
EB
33292020-05-12 Eric Botcazou <ebotcazou@adacore.com>
3330
3331 * c-ada-spec.c (dump_ads): Output pragma Warnings ("U"); on entry.
3332
b224c376
NS
33332020-05-08 Nathan Sidwell <nathan@acm.org>
3334
3335 Reimplement directives only processing.
3336 * c-ppoutput.c (token_streamer): Ne.
3337 (directives_only_cb): New. Swallow ...
3338 (print_lines_directives_only): ... this.
3339 (scan_translation_unit_directives_only): Reimplment using the
3340 published interface.
3341
f1d94677
MP
33422020-05-07 Marek Polacek <polacek@redhat.com>
3343
3344 * c-format.c (badwords): Add "nonstatic".
3345
9b95bb52
JJ
3346202-05-07 Jakub Jelinek <jakub@redhat.com>
3347
3348 PR c/94968
3349 * c-common.c (speculation_safe_value_resolve_params): Return false if
3350 error_operand_p (val2).
3351 (resolve_overloaded_builtin) <case BUILT_IN_SPECULATION_SAFE_VALUE_N>:
3352 Remove extraneous semicolon.
3353
530b4409 33542020-05-06 qing zhao <qing.zhao@oracle.com>
3355
3356 PR c/94230
3357 * c-indentation.c (get_visual_column): Add a hint to use the new
3358 -flarge-source-files option.
3359
b776bdca
SSF
33602020-05-05 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
3361
3362 * c-attribs.c (handle_vector_size_attribute): Add attribute
3363 nonnull for argument args in order to silence warning of
3364 uninitialized variable usage. Since this is local to the
3365 compilation unit and thus cannot be checked at call sides by the
3366 compiler, added an assert statement in order to verify this.
3367
6607bdd9
L
33682020-05-01 H.J. Lu <hongjiu.lu@intel.com>
3369
3370 PR target/93492
3371 * c-attribs.c (handle_patchable_function_entry_attribute): Limit
3372 value to USHRT_MAX (65535).
3373
691eeb65
JJ
33742020-04-29 Jakub Jelinek <jakub@redhat.com>
3375
3376 * c-format.c (PP_FORMAT_CHAR_TABLE): Add %{ and %}.
3377
26d76be7
JJ
33782020-04-27 Jakub Jelinek <jakub@redhat.com>
3379
3380 PR c/94755
3381 * c-common.c (resolve_overloaded_builtin): Return error_mark_node for
3382 fncode == BUILT_IN_NONE before initialization of first_param.
3383
7291b2ed
MP
33842020-04-23 Marek Polacek <polacek@redhat.com>
3385
3386 PR c++/94733
3387 * c-attribs.c (find_tm_attribute): Use get_attribute_name instead of
3388 TREE_PURPOSE.
3389
58a29af8
PP
33902020-04-14 Patrick Palka <ppalka@redhat.com>
3391
3392 PR c++/85278
3393 * c-pretty-print.c (pp_c_pointer) <case REFERENCE_TYPE>: Print a double
3394 ampersand if it's an rvalue reference type.
3395
09f04139
MS
33962020-04-13 Martin Sebor <msebor@redhat.com>
3397
3398 PR c/92326
3399 * c-pretty-print.c (c_pretty_printer::direct_abstract_declarator): Avoid
3400 printing array bound for flexible array members.
3401
ee26baf4
IS
34022020-04-13 Iain Sandoe <iain@sandoe.co.uk>
3403
3404 * c-cppbuiltin.c (c_cpp_builtins): Update coroutines builtin
3405 define, per n4861.
3406
75efe9cb
RB
34072020-04-02 Richard Biener <rguenther@suse.de>
3408
3409 PR c/94392
3410 * c-opts.c (c_common_post_options): Enable -ffinite-loops
3411 for -O2 and C++11 or newer.
3412
75defde9
PP
34132020-03-28 Patrick Palka <ppalka@redhat.com>
3414
3415 * c.opt: Add -fconcepts-diagnostics-depth.
3416
52f24a9e
MS
34172020-03-27 Martin Sebor <msebor@redhat.com>
3418
3419 PR c++/94346
3420 * c-attribs.c (handle_copy_attribute): Avoid passing expressions
3421 to decl_attributes. Make handling of different kinds of entities
3422 more robust.
3423
ccacf77b
MS
34242020-03-27 Martin Sebor <msebor@redhat.com>
3425
3426 PR c++/94098
3427 * c-attribs.c (handle_access_attribute): Avoid setting TYPE_ATTRIBUTES
3428 here.
3429
ca6c7225
JJ
34302020-03-23 Jakub Jelinek <jakub@redhat.com>
3431
3432 PR c++/91993
3433 * c-warn.c (warnings_for_convert_and_check): For expr and/or
3434 result being COMPOUND_EXPRs, skip to ultimate rhs.
3435
1aa22b19
RS
34362020-03-20 Richard Sandiford <richard.sandiford@arm.com>
3437
3438 PR middle-end/94072
3439 * c-common.c (c_common_type_for_mode): Before using a registered
3440 built-in type, check that the vectorness of the type matches
3441 the vectorness of the mode.
3442
700d4cb0
JJ
34432020-03-17 Jakub Jelinek <jakub@redhat.com>
3444
3445 * c-common.c (resolve_overloaded_builtin): Fix up duplicated word
3446 issue in a diagnostic message.
3447
b408e010
LH
34482020-03-15 Lewis Hyatt <lhyatt@gmail.com>
3449
3450 * c.opt: Avoid redundancy in the help text.
3451
e78e50d5
MP
34522020-03-02 Marek Polacek <polacek@redhat.com>
3453
3454 PR c++/93958 - add missing -std=gnu++20.
3455 * c.opt: Add -std=gnu++20.
3456
649e1741
MS
34572020-03-01 Martin Sebor <msebor@redhat.com>
3458
3459 PR c++/92721
3460 * c-attribs.c (append_access_attrs): Correctly handle attribute.
3461 (handle_access_attribute): Same.
3462
7b60f3ba
JJ
34632020-02-25 Jakub Jelinek <jakub@redhat.com>
3464
3465 PR c/93858
3466 * c-pragma.c (handle_pragma_diagnostic): Add missing ? after
3467 "did you mean" hint in diagnostics.
3468
fb260504
JM
34692020-02-15 Jason Merrill <jason@redhat.com>
3470
3471 * c.opt: Add -std=c++20.
3472
1d757b09
EB
34732020-02-14 Eric Botcazou <ebotcazou@adacore.com>
3474
3475 * c-ada-spec.c: Include bitmap.h.
3476 (dump_ada_double_name): Rename into...
3477 (dump_anonymous_type_name): ...this. Always use the TYPE_UID.
3478 (dump_ada_array_type): Adjust to above renaming. Robustify.
3479 (dump_nested_types_1): New function copied from... Add dumped_types
3480 parameter and pass it down to dump_nested_type.
3481 (dump_nested_types): ...this. Remove parent parameter. Just call
3482 dump_nested_types_1 on an automatic bitmap.
3483 (dump_nested_type): Add dumped_types parameter.
3484 <ARRAY_TYPE>: Do not dump it if already present in dumped_types.
3485 Adjust recursive calls and adjust to above renaming.
3486 (dump_ada_declaration): Adjust call to dump_nested_types.
3487 Tidy up and adjust to above renaming.
3488 (dump_ada_specs): Initialize and release bitmap obstack.
3489
0cc575e4
MS
34902020-02-10 Martin Sebor <msebor@redhat.com>
3491
3492 PR c/93640
3493 * c-attribs.c (handle_access_attribute): Correct off-by-one mistakes.
3494
a59aa302
JJ
34952020-02-10 Jakub Jelinek <jakub@redhat.com>
3496
3497 PR other/93641
3498 * c-format.c (check_plain): Fix up last argument of strncasecmp.
3499 Remove useless extra test.
3500
e464fc90
TB
35012020-02-03 Julian Brown <julian@codesourcery.com>
3502 Tobias Burnus <tobias@codesourcery.com>
3503
3504 * c-cppbuiltin.c (c_cpp_builtins): Update _OPENACC define to 201711.
3505
e3b6c052
JM
35062020-01-29 Jason Merrill <jason@redhat.com>
3507
3508 PR c++/89357
3509 * c-attribs.c (check_cxx_fundamental_alignment_constraints): Remove.
3510
6d00f052
JM
35112020-01-23 Jason Merrill <jason@redhat.com>
3512
3513 * c-warn.c (conversion_warning): Change -Wsign-conversion handling.
3514
8a990ffa
MS
35152020-01-23 Martin Sebor <msebor@redhat.com>
3516
3517 PR c/84919
3518 * c-common.c (check_function_arguments): Avoid overlap checking
3519 of sprintf functions.
3520
55b7df8b
JM
35212020-01-22 Jason Merrill <jason@redhat.com>
3522
3523 PR testsuite/93391 - PR 40752 test fails with unsigned plain char.
3524 PR c++/40752
3525 * c-warn.c (conversion_warning): Check operands only after checking
3526 the whole expression. Don't check second operand of + for sign.
3527
c77074d0
JM
35282020-01-21 Jason Merrill <jason@redhat.com>
3529 Manuel López-Ibáñez <manu@gcc.gnu.org>
3530
3531 PR c++/40752 - useless -Wconversion with short +=.
3532 * c.opt (-Warith-conversion): New.
3533 * c-warn.c (conversion_warning): Recurse for operands of
3534 operators. Only warn about the whole expression with
3535 -Warith-conversion.
3536
731dbfc3
JM
35372020-01-21 Jason Merrill <jason@redhat.com>
3538
3539 * c-common.c (unsafe_conversion_p): Don't warn, return UNSAFE_SIGN.
3540 * c-warn.c (conversion_warning): Warn about UNSAFE_SIGN.
3541
ad1a3914
NS
35422020-01-20 Nathan Sidwell <nathan@acm.org>
3543
3544 PR preprocessor/80005
3545 * c-cppbuiltins.c (c_cpp_builtins): Don't define __has_include{,_next}.
3546
49789fd0
IS
35472020-01-18 Iain Sandoe <iain@sandoe.co.uk>
3548
3549 * c-common.c (co_await, co_yield, co_return): New.
3550 * c-common.h (RID_CO_AWAIT, RID_CO_YIELD,
3551 RID_CO_RETURN): New enumeration values.
3552 (D_CXX_COROUTINES): Bit to identify coroutines are active.
3553 (D_CXX_COROUTINES_FLAGS): Guard for coroutine keywords.
3554 * c-cppbuiltin.c (__cpp_coroutines): New cpp define.
3555 * c.opt (fcoroutines): New command-line switch.
3556
4bc1899b
DM
35572020-01-10 David Malcolm <dmalcolm@redhat.com>
3558
3559 * c-format.c (local_event_ptr_node): New.
3560 (PP_FORMAT_CHAR_TABLE): Add entry for "%@".
3561 (init_dynamic_diag_info): Initialize local_event_ptr_node.
3562 * c-format.h (T_EVENT_PTR): New define.
3563
f25e33fa
MS
35642020-01-10 Martin Sebor <msebor@redhat.com>
3565
3566 PR c/93132
3567 * c-attribs.c (append_access_attrs): Validate against the translated
3568 access string rather than the human-readable representation.
3569
8d9254fc
JJ
35702020-01-01 Jakub Jelinek <jakub@redhat.com>
3571
3572 Update copyright years.
3573
39292e25
EB
35742019-12-20 Eric Botcazou <ebotcazou@adacore.com>
3575
3576 * c-ada-spec.h (decl_sloc): Delete.
3577 * c-ada-spec.c (decl_sloc): Make static.
3578
519d7496
JB
35792019-12-19 Julian Brown <julian@codesourcery.com>
3580
3581 * c-common.h (c_omp_map_clause_name): Add prototype.
3582 * c-omp.c (c_omp_map_clause_name): New function.
3583 * c-pragma.h (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ATTACH and
3584 PRAGMA_OACC_CLAUSE_DETACH.
3585
a6163563
JB
35862019-12-19 Julian Brown <julian@codesourcery.com>
3587 Maciej W. Rozycki <macro@codesourcery.com>
3588 Tobias Burnus <tobias@codesourcery.com>
3589 Thomas Schwinge <thomas@codesourcery.com>
3590
3591 * c-pragma.h (pragma_omp_clause): Add
3592 PRAGMA_OACC_CLAUSE_NO_CREATE.
3593
e8f1ade2
MS
35942019-12-17 Martin Sebor <msebor@redhat.com>
3595
3596 PR c++/61339
3597 * c.opt (-Wmismatched-tags, -Wredundant-tags): New options.
3598
368877a1
DM
35992019-12-11 David Malcolm <dmalcolm@redhat.com>
3600
3601 * c-pretty-print.c (c_pretty_printer::clone): New vfunc
3602 implementation.
3603 * c-pretty-print.h (c_pretty_printer::clone): New vfunc decl.
3604
d68f5d45
DM
36052019-12-09 David Malcolm <dmalcolm@redhat.com>
3606
3607 * c-format.c (range_label_for_format_type_mismatch::get_text):
3608 Replace label_text ctor called with true with label_text::take.
3609
d3e28653
DM
36102019-12-09 David Malcolm <dmalcolm@redhat.com>
3611
3612 * c-format.c (selftest::test_type_mismatch_range_labels): Remove
3613 initial newline from expected outputs.
3614 * c-opts.c (c_diagnostic_finalizer): Add pp_newline call before
3615 call to diagnostic_show_locus.
3616
abd6d8cc
JJ
36172019-12-06 Jakub Jelinek <jakub@redhat.com>
3618
3619 * c-cppbuiltin.c (c_cpp_builtins): Don't define __cpp_consteval for
3620 now.
3621
7906797e
MP
36222019-12-05 Marek Polacek <polacek@redhat.com>
3623 Jakub Jelinek <jakub@redhat.com>
3624
3625 PR c++/91353 - P1331R2: Allow trivial default init in constexpr contexts.
3626 * c-cppbuiltin.c (c_cpp_builtins): Adjust the value of __cpp_constexpr.
3627
5c04da88
MP
36282019-12-05 Marek Polacek <polacek@redhat.com>
3629
3630 PR c++/92271 - make __is_same alias for __is_same_as.
3631 * c-common.c: Add __is_same, an alias for __is_same_as.
3632
43aae289
MP
36332019-12-03 Marek Polacek <polacek@redhat.com>
3634
3635 PR c++/91363 - P0960R3: Parenthesized initialization of aggregates.
3636 * c-cppbuiltin.c (c_cpp_builtins): Predefine
3637 __cpp_aggregate_paren_init=201902 for -std=c++2a.
3638
d7ddfbcb
JH
36392019-11-30 Jan Hubicka <hubicka@ucw.cz>
3640
3641 * c-attribs.c (handle_symver_attribute): New function
3642 (c_common_attributes): Add symver.
3643
65ef05d0
RS
36442019-11-30 Richard Sandiford <richard.sandiford@arm.com>
3645
3646 * c-common.c (pointer_int_sum): Use verify_type_context to check
3647 whether the target allows pointer arithmetic for the types involved.
3648 (c_sizeof_or_alignof_type, c_alignof_expr): Use verify_type_context
3649 to check whether the target allows sizeof and alignof operations
3650 for the types involved.
3651
1a291106
JM
36522019-11-27 Jason Merrill <jason@redhat.com>
3653
3654 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_deduction_guides.
3655
05d6cb1a
JJ
36562019-11-26 Jakub Jelinek <jakub@redhat.com>
3657
3658 PR c++/61414
3659 * c-attribs.c (handle_mode_attribute): Add mode attribute to
3660 ENUMERAL_TYPEs.
3661
5b8d9367
JM
36622019-11-25 Joseph Myers <joseph@codesourcery.com>
3663
3664 PR c/91985
3665 * c-common.c (c_common_type_for_mode): Handle decimal
3666 floating-point types being NULL_TREE.
3667 * c-format.c (get_format_for_type_1): Handle specified types being
3668 NULL_TREE.
3669 * c-lex.c (interpret_float): Give an error for decimal
3670 floating-point constants when decimal floating-point not
3671 supported.
3672
1fbf51cb
JJ
36732019-11-23 Jakub Jelinek <jakub@redhat.com>
3674
3675 PR middle-end/83859
3676 * c-attribs.c (append_access_attrs): Avoid buffer overflow. Avoid
3677 memory leak. Use XNEWVEC macro. Use auto_diagnostic_group to
3678 group warning with inform together.
3679 (handle_access_attribute): Formatting fix.
3680
761df906
JJ
36812019-11-22 Jakub Jelinek <jakub@redhat.com>
3682
bdaf8be1
JJ
3683 PR c/90677
3684 * c-common.h (identifier_global_tag): Declare.
3685 * c-format.c (get_pointer_to_named_type): Renamed to ...
3686 (get_named_type): ... this. Use identifier_global_tag instead of
3687 identifier_global_value, handle the return value being a TYPE_P.
3688 (init_dynamic_diag_info): Adjust get_pointer_to_named_type callers
3689 to call get_named_type instead. Formatting fixes.
3690
c2ecce6d 3691 Implement P1902R1, Missing feature-test macros 2017-2019.
761df906
JJ
3692 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_init_captures
3693 and __cpp_generic_lambdas for -std=c++2a. Define
3694 __cpp_designated_initializers, __cpp_constexpr_in_decltype and
3695 __cpp_consteval for -std=c++2a. Remove a FIXME comment about
3696 __cpp_concepts for -std=c++2a.
3697
54aa6b58
MS
36982019-11-22 Martin Sebor <msebor@redhat.com>
3699
3700 PR middle-end/83859
3701 * c-attribs.c (handle_access_attribute): New function.
3702 (c_common_attribute_table): Add new attribute.
3703 (get_argument_type): New function.
3704 (append_access_attrs): New function.
3705 (get_nonnull_operand): Rename...
3706 (get_attribute_operand): ...to this.
3707 * c-common.c (get_nonnull_operand): Rename...
3708 (get_attribute_operand): ...to this.
3709
6c80b1b5
JM
37102019-11-21 Joseph Myers <joseph@codesourcery.com>
3711
3712 * c-attribs.c (handle_fallthrough_attribute): Use pedwarn instead
3713 of warning.
3714
192961ff
JM
37152019-11-19 Joseph Myers <joseph@codesourcery.com>
3716
3717 * c-common.c (attribute_fallthrough_p): In C, use pedwarn not
3718 warning for standard attributes mixed with fallthrough attributes.
3719
f8aea5e3
JM
37202019-11-15 Joseph Myers <joseph@codesourcery.com>
3721
3722 * c-attribs.c (handle_fallthrough_attribute): Remove static.
3723 * c-common.h (handle_fallthrough_attribute): Declare.
3724
2cc94aa8
JM
37252019-11-15 Joseph Myers <joseph@codesourcery.com>
3726
3727 * c-attribs.c (handle_deprecated_attribute): Remove static.
3728 * c-common.h (handle_deprecated_attribute): Declare.
3729
7c5890cc
JM
37302019-11-14 Joseph Myers <joseph@codesourcery.com>
3731
3732 * c-lex.c (lex_charconst): Make CPP_UTF8CHAR constants unsigned
3733 char for C.
3734
b2417b59
JJ
37352019-11-14 Jakub Jelinek <jakub@redhat.com>
3736
d0ec7c93
JJ
3737 * c-omp.c (c_omp_check_context_selector): Add nvidia to the list of
3738 valid vendors.
3739
b2417b59
JJ
3740 * c-omp.c (c_omp_check_context_selector): Handle name lists
3741 containing string literals. Don't diagnose atomic_default_mem_order
3742 with multiple props.
3743
00be2a5f
JM
37442019-11-13 Joseph Myers <joseph@codesourcery.com>
3745
3746 * c-cppbuiltin.c (builtin_define_float_constants): Also define
3747 NORM_MAX constants. Update call to get_max_float.
3748 (LAZY_HEX_FP_VALUES_CNT): Update value to include NORM_MAX
3749 constants.
3750
2dbad62d
EB
37512019-11-13 Eric Botcazou <ebotcazou@adacore.com>
3752
3753 * c-ada-spec.c (get_underlying_decl): Do not look through typedefs.
3754 (dump_forward_type): Do not generate a declaration for function types.
3755 (dump_nested_type) <ARRAY_TYPE>: Do not generate a nested declaration
3756 of the component type if it is declared in another file.
3757
6ed76044
ML
37582019-11-12 Martin Liska <mliska@suse.cz>
3759
3760 * c-opts.c (c_common_post_options):
3761 Use SET_OPTION_IF_UNSET.
3762
62aee289
MR
37632019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
3764 Frederik Harwath <frederik@codesourcery.com>
3765
3766 gcc/c-family/
3767 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_SERIAL enumeration
3768 constant.
3769 * c-pragma.c (oacc_pragmas): Add "serial" entry.
3770
f486280c
RS
37712019-11-08 Richard Sandiford <richard.sandiford@arm.com>
3772
3773 * c-common.h (gnu_vector_type_p): New function.
3774 * c-common.c (c_build_vec_perm_expr): Require __builtin_shuffle
3775 vectors to satisfy gnu_vector_type_p.
3776 (c_build_vec_convert): Likewise __builtin_convertvector.
3777 (convert_vector_to_array_for_subscript): Likewise when applying
3778 implicit vector to array conversion.
3779 (scalar_to_vector): Likewise when converting vector-scalar
3780 operations to vector-vector operations.
3781
017c6491
JM
37822019-11-08 Joseph Myers <joseph@codesourcery.com>
3783
3784 * c.opt (Wold-style-definition): Initialize to -1.
3785 * c-opts.c (c_common_post_options): Set warn_old_style_definition
3786 to flag_isoc2x if not set explicitly.
3787
c01bd174
JM
37882019-11-07 Joseph Myers <joseph@codesourcery.com>
3789
3790 * c-attribs.c (parse_tm_stmt_attr): Handle scoped attributes.
3791
0df65305
JM
37922019-11-05 Jason Merrill <jason@redhat.com>
3793
3794 * c-opts.c (c_common_post_options): -fconcepts-ts implies
3795 -fconcepts.
3796
e0c866dd
KK
37972019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
3798
3799 * c-opts.c (c_common_post_options): Update
3800 latest_abi_version.
3801
f968ef9b
JJ
38022019-11-02 Jakub Jelinek <jakub@redhat.com>
3803
d0c464d2
JJ
3804 * c-common.h (c_omp_get_context_selector): Remove.
3805 * c-omp.c (c_omp_get_context_selector): Moved to omp-general.c
3806 and renamed to omp_get_context_selector.
3807
917dd789
JJ
3808 * c-omp.c (c_omp_mark_declare_variant): Use
3809 omp_context_selector_set_compare.
3810
f968ef9b
JJ
3811 PR c++/88335 - Implement P1073R3: Immediate functions
3812 * c-common.h (enum rid): Add RID_CONSTEVAL.
3813 * c-common.c (c_common_reswords): Add consteval.
3814
5f6705b7
JJ
38152019-11-01 Martin Sebor <msebor@redhat.com>
3816
3817 PR middle-end/91679
3818 PR middle-end/91647
3819 PR middle-end/91463
3820 PR middle-end/92312
3821 * c-pretty-print.c (direct_abstract_declarator): Print
3822 bound in zero-length arrays.
3823 * c.opt (-Wzero-length-bounds): New option.
3824
43f1814c
NS
38252019-10-30 Nathan Sidwell <nathan@acm.org>
3826
3827 * c-cppbuiltin.c (c_cpp_builtins): Add 'L' suffix to feature
3828 macros.
3829
ad1539d5
MS
38302019-10-28 Martin Sebor <msebor@redhat.com>
3831
3832 PR c/66970
3833 * c-common.c (c_common_nodes_and_builtins): Call c_define_builtins
3834 even when only preprocessing.
3835 * c-common.h (names_builtin_p): Declare new function.
3836 * c-lex.c (init_c_lex): Set has_builtin.
3837 (c_common_has_builtin): Define a new function.
3838 * c-ppoutput.c (init_pp_output): Set has_builtin.
3839
135df52c
JJ
38402019-10-24 Jakub Jelinek <jakub@redhat.com>
3841
3842 * c-common.h (c_omp_context_selector_matches): Remove.
3843 * c-omp.c (c_omp_context_selector_matches): Remove.
3844 * c-attribs.c (c_common_attribute_table): Add
3845 "omp declare target {host,nohost,block}" attributes.
3846
8ad0c477
JM
38472019-10-17 JeanHeyd Meneide <phdofthehouse@gmail.com>
3848
3849 * c-lex.c (c_common_has_attribute): Update nodiscard value.
3850
56898e43
RS
38512019-10-14 Richard Sandiford <richard.sandiford@arm.com>
3852
3853 * c-common.h (user_facing_original_type_p): Declare.
3854 * c-common.c: Include c-spellcheck.h.
3855 (user_facing_original_type_p): New function.
3856
20de9568
JJ
38572019-10-12 Jakub Jelinek <jakub@redhat.com>
3858
3859 * c-common.h (c_omp_mark_declare_variant,
3860 c_omp_context_selector_matches): Declare.
3861 * c-omp.c: Include attribs.h, gimplify.h, cgraph.h, symbol-summary.h
3862 and hsa-common.h.
3863 (c_omp_get_context_selector): Support second argument NULL.
3864 (c_omp_mark_declare_variant, c_omp_context_selector_matches): New
3865 functions.
3866 * c-attribs.c (c_common_attribute_table): Remove "omp declare variant"
3867 attribute, add "omp declare variant base" and
3868 "omp declare variant variant" attributes.
3869
175a85b2
JM
38702019-10-11 Joseph Myers <joseph@codesourcery.com>
3871
3872 * c.opt (Wc11-c2x-compat): Add CPP(cpp_warn_c11_c2x_compat)
3873 CppReason(CPP_W_C11_C2X_COMPAT).
3874
fe2bc27c
JM
38752019-10-11 Joseph Myers <joseph@codesourcery.com>
3876
3877 * c-common.c (c_common_reswords): Do not use D_EXT for _Decimal32,
3878 _Decimal64 and _Decimal128.
3879
27dfdc0f
JM
38802019-10-10 Joseph Myers <joseph@codesourcery.com>
3881
3882 * c-cppbuiltin.c (c_cpp_builtins): Do not define macros for DFP
3883 types if DFP not supported.
3884
94e7f906
JJ
38852019-10-10 Jakub Jelinek <jakub@redhat.com>
3886
3887 * c-common.h (c_omp_check_context_selector,
3888 c_omp_get_context_selector): Declare.
3889 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): Fix spelling
3890 in diagnostic message.
3891 (c_omp_check_context_selector, c_omp_get_context_selector): New
3892 functions.
3893 * c-attribs.c (c_common_attribute_table): Add "omp declare variant"
3894 attribute.
3895 (handle_omp_declare_variant_attribute): New function.
3896
a7160771
MS
38972019-10-09 Martin Sebor <msebor@redhat.com>
3898
3899 PR tree-optimization/90879
3900 * c.opt (-Wstring-compare): New option.
3901
cb57504a
JM
39022019-10-08 Andrew Sutton <asutton@lock3software.com>
3903 Jason Merrill <jason@redhat.com>
3904
3905 Update the concepts implementation to conform to the C++20
3906 specification, improve compile times, and generally clean up
3907 the implementation.
3908
3909 * c-cppbuiltin.c (c_cpp_builtins): Use new feature test values for
3910 concepts when -std=c++2a. Bump __cpp_concepts to 201907.
3911 * c.opt: Add -Wconcepts-ts.
3912 * c-opts.c (c_common_post_options): Warn when -fconcepts is used
3913 with -std=c++2a. Disable warning for -fconcepts in C++20 mode.
3914 (set_std_cxx2a): Enable concepts by default.
3915
fbb2a6dc
JM
39162019-10-08 Joseph Myers <joseph@codesourcery.com>
3917
3918 * c-opts.c (c_common_post_options): Set
3919 -fno-fp-int-builtin-inexact for C2X.
3920
8e007055
JJ
39212019-10-05 Jakub Jelinek <jakub@redhat.com>
3922
3923 PR c++/91369 - Implement P0784R7: constexpr new
3924 * c-cppbuiltin.c (c_cpp_builtins): Predefine
3925 __cpp_constexpr_dynamic_alloc=201907 for -std=c++2a.
3926
843f104d
JM
39272019-10-04 Joseph Myers <joseph@codesourcery.com>
3928
3929 PR c/82752
3930 * c-format.c (C_STD_VER): Handle C2x.
3931 (C_STD_NAME): Likewise.
3932 (strftime_flag_specs): Add 'O' modifier with 'p' flag.
3933 (time_char_table): Use separate entry for 'B' and 'b', with 'O'
3934 modifier allowed and 'p' flag.
3935 * c-format.h (enum format_std_version): Add STD_C2X.
3936 (struct format_char_info): Mention 'p' in comment on flags2.
3937
e9c9a142
DM
39382019-10-01 David Malcolm <dmalcolm@redhat.com>
3939
3940 * c-opts.c (c_diagnostic_finalizer): Temporarily clear prefix when
3941 calling diagnostic_show_locus, rather than destroying it afterwards.
3942
7552c36a
JJ
39432019-10-01 Jakub Jelinek <jakub@redhat.com>
3944
3945 PR c++/91925
3946 * c-warn.c (check_alignment_of_packed_member): Ignore FIELD_DECLs
3947 with NULL DECL_FIELD_OFFSET.
3948
8209db25
RS
39492019-10-01 Richard Sandiford <richard.sandiford@arm.com>
3950
3951 * c-pretty-print.c (pp_c_specifier_qualifier_list): If a vector type
3952 has a type name, use it in preference to the __vector syntax.
3953
9343bf99
RS
39542019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3955
3956 * c-pretty-print.c (pp_c_parameter_type_list): Avoid printing
3957 two spaces between a comma and "...".
3958
59bc434a
JJ
39592019-09-27 Jakub Jelinek <jakub@redhat.com>
3960
3961 PR c++/88203
3962 * c-common.h (c_omp_predefined_variable): Declare.
3963 * c-omp.c (c_omp_predefined_variable): New function.
3964 (c_omp_predetermined_sharing): Return OMP_CLAUSE_DEFAULT_SHARED
3965 for predefined variables.
3966
c6447c20
RS
39672019-09-27 Richard Sandiford <richard.sandiford@arm.com>
3968
3969 * c-common.h (build_function_call_vec): Take the original
3970 function decl as an optional final parameter.
3971 (check_builtin_function_arguments): Take the original function decl.
3972 * c-common.c (check_builtin_function_arguments): Likewise.
3973 Handle all built-in functions, not just BUILT_IN_NORMAL ones.
3974 Use targetm.check_builtin_call to check BUILT_IN_MD functions.
3975
c4438114
JM
39762019-09-15 Jason Merrill <jason@redhat.com>
3977
3978 * c-warn.c (warn_logical_operator): Strip location wrappers. Don't
3979 fold_for_warn in "|| mask" warning.
3980
68a57628
ML
39812019-09-10 Martin Liska <mliska@suse.cz>
3982
3983 * c.opt: Use newly added WarnRemoved.
3984
f48ef52e
ML
39852019-09-09 Martin Liska <mliska@suse.cz>
3986
3987 * c.opt: Update comment of removed
3988 options that are preserved only for backward
3989 compatibility.
3990
67f6e649
ML
39912019-09-06 Martin Liska <mliska@suse.cz>
3992
3993 PR c++/91125
3994 * c-common.c: Remove definition of flag_use_repository.
3995 * c-common.h: Likewise.
3996 * c-opts.c (c_common_handle_option):
3997 Do not handle OPT_frepo option.
3998 * c.opt: Mark the option with Deprecated.
3999
db9d2274
MP
40002019-09-04 Marek Polacek <polacek@redhat.com>
4001
4002 * c.opt (fdeduce-init-list): Ignored.
4003
68e2c199
PK
40042019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4005
4006 PR c/78736
4007 * c.opt (Wenum-conversion): New option.
4008
7a4418a5
JL
40092019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4010
4011 * c-attribs.c (handle_section_attribute): Call the
4012 handle_generic_attribute target hook after performing target
4013 independent processing.
4014 (handle_noinit_attribute): Likewise.
4015
5f76ab15
ILT
40162019-09-03 Ian Lance Taylor <iant@golang.org>
4017
4018 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Always expand
4019 when using -fgo-dump-spec.
4020
ae0d3f6a
ML
40212019-09-02 Martin Liska <mliska@suse.cz>
4022
4023 PR c++/91155
4024 * c-common.c (fname_as_string): Use cxx_printable_name for
4025 __PRETTY_FUNCTION__ same as was used before r265711.
4026
8a902edb
MP
40272019-08-28 Marek Polacek <polacek@redhat.com>
4028
4029 Implement P1152R4: Deprecating some uses of volatile.
4030 PR c++/91361
4031 * c-opts.c (c_common_post_options): Enable -Wvolatile by
4032 default for C++2a, unless -Wno-deprecated.
4033 * c.opt (Wvolatile): New warning.
4034
4742dbe7
MP
40352019-08-28 Marek Polacek <polacek@redhat.com>
4036
4037 PR c++/91360 - Implement C++20 P1143R2: constinit.
4038 * c-common.c (c_common_reswords): Add constinit and __constinit.
4039 (keyword_is_decl_specifier): Handle RID_CONSTINIT.
4040 * c-common.h (enum rid): Add RID_CONSTINIT, RID_FIRST_CXX20, and
4041 RID_LAST_CXX20.
4042 (D_CXX20): Define.
4043 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_constinit.
4044 * c-format.c (cxx_keywords): Add "constinit".
4045 * c.opt (Wc++2a-compat, Wc++20-compat): New options.
4046
6a074892
JJ
40472019-08-27 Jakub Jelinek <jakub@redhat.com>
4048
4049 PR c++/91415
4050 * c-common.c (verify_tree): For LSHIFT_EXPR, RSHIFT_EXPR,
4051 COMPONENT_REF and ARRAY_REF in cxx_dialect >= cxx17 mode handle it
4052 like COMPOUND_EXPR rather than normal expression.
4053
22f8849d
IS
40542019-08-23 Iain Sandoe <iain@sandoe.co.uk>
4055
4056 PR pch/61250
4057 * c-lex.c (c_lex_with_flags): Don't call
4058 c_common_no_more_pch () from here.
4059
df375b03
JJ
40602019-08-23 Jakub Jelinek <jakub@redhat.com>
4061
4062 PR middle-end/91283
4063 * c-common.c (c_ts18661_flt_eval_method): Use flag_excess_precision
4064 instead of flag_excess_precision_cmdline.
4065 * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): Likewise.
4066 * c-opts.c (c_common_post_options): Likewise.
4067
14b7950f
MS
40682019-08-22 Martin Sebor <msebor@redhat.com>
4069
4070 PR middle-end/91490
4071 * c-common.c (braced_list_to_string): Add argument and overload.
4072 Handle flexible length arrays and unions.
4073
8bb2ee59
EB
40742019-08-21 Eric Botcazou <ebotcazou@adacore.com>
4075
4076 * c-ada-spec.c (dump_ada_function_declaration): Be prepared for broken
4077 function declarations where arguments are missing. Rename variables.
4078
21c1e205
RB
40792019-08-15 Richard Biener <rguenther@suse.de>
4080
4081 * c-common.c (c_stddef_cpp_builtins): When the GIMPLE FE is
4082 enabled, define __SIZETYPE__.
4083
f0033821
CL
40842019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
4085
4086 * c-attribs.c (c_common_attribute_table): Add "noinit" entry. Add
4087 exclusion with "section" attribute.
4088 (attr_noinit_exclusions): New table.
4089 (handle_noinit_attribute): New function.
4090
4d732405
RS
40912019-08-13 Richard Sandiford <richard.sandiford@arm.com>
4092
4093 PR middle-end/91421
4094 * c-common.c (resolve_overloaded_builtin): Use
4095 copy_decl_built_in_function.
4096
51ad8481
MS
40972019-08-13 Martin Sebor <msebor@redhat.com>
4098
4099 PR c/80619
4100 * c-format.c (printf_length_specs): Set FMT_LEN_w for "w".
4101 (asm_fprintf_length_spec): Same.
4102 * c-format.h (format_lengths): Add FMT_LEN_w.
4103
77eb117f
JJ
41042019-08-10 Jakub Jelinek <jakub@redhat.com>
4105
4106 * c-pragma.h (enum pragma_omp_clause): Add
4107 PRAGMA_OMP_CLAUSE_DEVICE_TYPE.
4108
398e3feb
JJ
41092019-08-07 Jakub Jelinek <jakub@redhat.com>
4110
4111 * c-pragma.h (enum pragma_omp_clause): Add
4112 PRAGMA_OMP_CLAUSE_USE_DEVICE_ADDR. Set PRAGMA_OACC_CLAUSE_USE_DEVICE
4113 equal to PRAGMA_OMP_CLAUSE_USE_DEVICE_PTR instead of being a separate
4114 enumeration value.
4115
ab574db6
MP
41162019-08-05 Marek Polacek <polacek@redhat.com>
4117
4118 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
4119 * c-opts.c (c_common_post_options): Enable -Wcomma-subscript by
4120 default for C++2a, unless -Wno-deprecated.
4121 * c.opt (Wcomma-subscript): New warning.
4122
554a530f
JJ
41232019-07-20 Jakub Jelinek <jakub@redhat.com>
4124
4125 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_LOOP.
4126 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_BIND.
4127 * c-pragma.c (omp_pragmas_simd): Add PRAGMA_OMP_LOOP entry.
4128 * c-common.h (enum c_omp_clause_split): Add C_OMP_CLAUSE_SPLIT_LOOP.
4129 * c-omp.c (c_omp_split_clauses): Add support for 4 new combined
4130 constructs with the loop construct.
4131
1a888209
JJ
41322019-07-13 Jakub Jelinek <jakub@redhat.com>
4133
4134 PR c/91149
4135 * c-omp.c (c_omp_split_clauses): Fix a pasto in
4136 OMP_CLAUSE_REDUCTION_TASK handling.
4137
1fdd6f04
JJ
41382019-07-12 Jakub Jelinek <jakub@redhat.com>
4139
4140 * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ORDER.
4141 * c-omp.c (c_omp_split_clauses): Handle splitting of OMP_CLAUSE_ORDER.
4142
99b1c316
MS
41432019-07-09 Martin Sebor <msebor@redhat.com>
4144
4145 PR c++/61339
1fdd6f04 4146 * c-opts.c (handle_deferred_opts): Change class-key of PODs to struct
99b1c316
MS
4147 and others to class.
4148 * c-pretty-print.h: Same.
4149
6c1dae73
MS
41502019-07-09 Martin Sebor <msebor@redhat.com>
4151
4152 PR c++/61339
4153 * c-format.c (check_argument_type): Change class-key from class to
4154 struct and vice versa to match convention and avoid -Wclass-is-pod
4155 and -Wstruct-no-pod.
4156 * c-pretty-print.h: Same.
4157
8ba6ea87
ML
41582019-07-03 Martin Liska <mliska@suse.cz>
4159
4160 * c-common.c (try_to_locate_new_include_insertion_point): Remove
4161 dead assignemts.
4162
83eb9522
JJ
41632019-07-03 Jakub Jelinek <jakub@redhat.com>
4164
4165 * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_REDUCTION_INSCAN
4166 clauses on OMP_FOR rather than OMP_PARALLEL when OMP_FOR is combined
4167 with OMP_PARALLEL.
4168
1c6ffbab
QZ
41692019-07-02 qing zhao <qing.zhao@oracle.com>
4170
4171 PR preprocessor/90581
4172 * c-opts.c (c_common_handle_option): Handle -fmax-include-depth.
4173 * c.opt: Add new option -fmax-include-depth.
4174
7ffc7de5
JM
41752019-06-26 Jason Merrill <jason@redhat.com>
4176
4177 PR c++/55442 - memory-hog with highly recursive constexpr.
4178 * c.opt (fconstexpr-loop-limit): New.
4179
361af3e4
JJ
41802019-06-25 Jakub Jelinek <jakub@redhat.com>
4181
4182 PR sanitizer/90954
4183 * c-omp.c (c_finish_omp_atomic): Allow tree_invariant_p in addition
4184 to SAVE_EXPR in first operand of a COMPOUND_EXPR.
4185
ab20d992
JJ
41862019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4187
4188 * c-common.c (c_common_nodes_and_builtins): Define
4189 alternate "__intN__" name for "__intN" types.
4190
f4af4019
JH
41912019-06-24 Jan Hubicka <jh@suse.cz>
4192
4193 * c-common.c (braced_lists_to_strings): Check that
4194 type is array or integer prior checking string flag.
4195
da9e9b57
MB
41962019-06-21 Matthew Beliveau <mbelivea@redhat.com>
4197
4198 PR c++/90875 - added -Wswitch-outside-range option
4199 * c.opt (Wswitch-outside-range): Added new option.
4200 * c-warn.c (c_do_switch_warnings): Use OPT_Wswitch-outside-range.
4201
3f3d6a6f
MP
42022019-06-21 Marek Polacek <polacek@redhat.com>
4203
4204 PR c++/90953 - ICE with -Wmissing-format-attribute.
4205 * c-common.c (check_function_arguments_recurse): Use
4206 get_attribute_name.
4207 (check_missing_format_attribute): Likewise.
4208
1bf32c11
MP
42092019-06-19 Marek Polacek <polacek@redhat.com>
4210
4211 PR c++/60364 - noreturn after first decl not diagnosed.
4212 * c-attribs.c (handle_noreturn_attribute): No longer static.
4213 * c-common.h (handle_noreturn_attribute, attr_noreturn_exclusions):
4214 Declare.
4215 * c-format.c (check_function_format): Use get_attribute_name.
4216
a04c0734
MS
42172019-06-19 Martin Sebor <msebor@redhat.com>
4218
4219 PR translation/90156
4220 * c-format.c (function_format_info::format_type): Adjust type.
4221 (function_format_info::is_raw): New member.
4222 (decode_format_type): Adjust signature. Handle "raw" diag attributes.
4223 (decode_format_attr): Adjust call to decode_format_type.
4224 Avoid a redundant call to convert_format_name_to_system_name.
4225 Avoid abbreviating the word "arguments" in a diagnostic.
4226 (format_warning_substr): New function.
4227 (avoid_dollar_number): Quote dollar sign in a diagnostic.
4228 (finish_dollar_format_checking): Same.
4229 (check_format_info): Same.
4230 (struct baltoks_t): New.
4231 (c_opers, c_keywords, cxx_keywords, badwords, contrs): New arrays.
4232 (maybe_diag_unbalanced_tokens, check_tokens, check_plain): New
4233 functions.
4234 (check_format_info_main): Call check_plain. Use baltoks_t. Call
4235 maybe_diag_unbalanced_tokens.
4236 (handle_format_attribute): Spell out the word "arguments" in
4237 a diagnostic.
4238
d3786ebb
MB
42392019-06-11 Matthew Beliveau <mbelivea@redhat.com>
4240
4241 PR c++/90449 - add -Winaccessible-base option.
4242 * c.opt (Winaccessible-base): New option.
4243
bf38f7e9
JJ
42442019-06-10 Jakub Jelinek <jakub@redhat.com>
4245
4246 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_SCAN.
4247 * c-pragma.c (omp_pragmas_simd): Add #pragma omp scan.
4248 * c-omp.c (c_omp_split_clauses): Diagnose inscan reductions on
4249 combined/composite constructs where it is not allowed. Copy over
4250 OMP_CLAUSE_REDUCTION_INSCAN.
4251
0ecf545c
MS
42522019-06-05 Martin Sebor <msebor@redhat.com>
4253
4254 * c-attribs.c (handle_mode_attribute): Adjust quoting and hyphenation.
4255 (handle_alias_ifunc_attribute): Same.
4256 (handle_copy_attribute): Same.
4257 (handle_weakref_attribute): Same.
4258 (handle_nonnull_attribute): Same.
4259 * c-warn.c (warn_for_sign_compare): Same.
4260 (warn_for_restrict): Same.
4261 * c.opt: Same.
4262
36b34127
MS
42632019-06-05 Martin Sebor <msebor@redhat.com>
4264
4265 * c-pragma.c (handle_pragma_weak): Adjust quoting in a diagnostic.
4266 * c.opt (-Wformat-diag): Remove a spurious period.
4267
357a352f
JJ
42682019-05-29 Jakub Jelinek <jakub@redhat.com>
4269
4270 PR c/90628
4271 * c-common.c (check_builtin_function_arguments)
4272 <case BUILTIN_*_OVERFLOW>: Diagnose pointer to const qualified integer
4273 as last argument.
4274
2b8235ea
EB
42752019-05-23 Eric Botcazou <ebotcazou@adacore.com>
4276
4277 * c-ada-spec.c (compare_node): Compare the DECL_UIDs as a last resort.
4278
6d86ddc4
ML
42792019-05-22 Martin Liska <mliska@suse.cz>
4280
4281 PR lto/90500
4282 * c-attribs.c (handle_copy_attribute): Do not copy
4283 target_clones attribute.
4284
419ba5b9
EB
42852019-05-21 Eric Botcazou <ebotcazou@adacore.com>
4286
4287 * c-ada-spec.h (enum cpp_operation): Add IS_ASSIGNMENT_OPERATOR.
4288 * c-ada-spec.c (print_assignment_operator): New function.
4289 (dump_ada_declaration) <FUNCTION_DECL>: Call it do dump explicit copy
4290 assignment operators declared as methods and filter out the others.
4291
e03436e7
TS
42922019-05-17 Thomas Schwinge <thomas@codesourcery.com>
4293
4294 PR c/89433
4295 * c-attribs.c (c_common_attribute_table): Set min_len to -1 for
4296 "omp declare target".
4297
a9c697b8
MS
42982019-05-16 Martin Sebor <msebor@redhat.com>
4299
ab20d992
JJ
4300 * c-attribs.c (handle_no_sanitize_attribute): Quote identifiers,
4301 keywords, operators, and types in diagnostics.
4302 (handle_scalar_storage_order_attribute): Same.
4303 (handle_mode_attribute): Same.
4304 (handle_visibility_attribute): Same.
4305 (handle_assume_aligned_attribute): Same.
4306 (handle_no_split_stack_attribute): Same.
4307 * c-common.c (shorten_compare): Same.
4308 (c_common_truthvalue_conversion): Same.
4309 (cb_get_source_date_epoch): Same.
4310 * c-lex.c (cb_def_pragma): Quote keywords, operators, and types
4311 in diagnostics.
4312 (interpret_float): Same.
4313 * c-omp.c (c_finish_omp_for): Same.
4314 * c-opts.c (c_common_post_options): Same.
4315 * c-pch.c (c_common_pch_pragma): Same.
4316 * c-pragma.c (pop_alignment): Same.
4317 (handle_pragma_pack): Same.
4318 (apply_pragma_weak): Same.
4319 (handle_pragma_weak): Same.
4320 (handle_pragma_scalar_storage_order): Same.
4321 (handle_pragma_redefine_extname): Same.
4322 (add_to_renaming_pragma_list): Same.
4323 (maybe_apply_renaming_pragma): Same.
4324 (push_visibility): Same.
4325 (handle_pragma_visibility): Same.
4326 (handle_pragma_optimize): Same.
4327 (handle_pragma_message): Same.
4328 * c-warn.c (warn_for_omitted_condop): Same.
4329 (lvalue_error): Same.
a9c697b8 4330
6b943512
RB
43312019-05-15 Richard Biener <rguenther@suse.de>
4332
4333 PR c/90474
4334 * c-common.c (c_common_mark_addressable_vec): Also mark
4335 a COMPOUND_LITERAL_EXPR_DECL addressable similar to
4336 c_mark_addressable.
ab20d992 4337
b744fc85
NS
43382019-05-06 Nathan Sidwell <nathan@acm.org>
4339
4340 * c-opts.c (handle_defered_opts): Rename struct deps to struc mkdeps.
4341
598f50d7
NS
43422019-04-30 Nathan Sidwell <nathan@acm.org>
4343
4344 * c-common.c (c_common_init_ts): Use MARK_TS_EXP. Mark SIZEOF_EXPR.
4345
5bcc5a3b
ML
43462019-04-30 Martin Liska <mliska@suse.cz>
4347
4348 * c-pragma.c (handle_pragma_diagnostic): Provide hints
4349 for unknown options.
4350
e78a87f7
RS
43512019-04-26 Richard Sandiford <richard.sandiford@arm.com>
4352
4353 * c-warn.c (strict_aliasing_warning): Apply COMPLETE_TYPE_P to
4354 the pointer target rather than the pointer itself.
4355
c280b7ee
JJ
43562019-04-19 Jakub Jelinek <jakub@redhat.com>
4357
4358 PR c/89888
4359 * c-common.h (c_add_case_label): Remove orig_type and outside_range_p
4360 arguments.
4361 (c_do_switch_warnings): Remove outside_range_p argument.
4362 * c-common.c (check_case_bounds): Removed.
4363 (c_add_case_label): Remove orig_type and outside_range_p arguments.
4364 Don't call check_case_bounds. Fold low_value as well as high_value.
4365 * c-warn.c (c_do_switch_warnings): Remove outside_range_p argument.
4366 Check for case labels outside of range of original type here and
4367 adjust them.
4368
8e8225e6
JJ
43692019-04-12 Jakub Jelinek <jakub@redhat.com>
4370
63b8a166
JJ
4371 PR translation/90041
4372 * c.opt (-fhandle-exceptions): Use %< and %> around option names
4373 in the Warn diagnostics.
4374
8e8225e6
JJ
4375 PR c/89946
4376 * c-attribs.c (handle_patchable_function_entry_attribute): Add
4377 function comment. Warn if arguments of the attribute are not positive
4378 integer constants.
4379
53a3f614
EB
43802019-04-09 Eric Botcazou <ebotcazou@adacore.com>
4381
4382 * c-ada-spec.c (print_destructor): Deal with deleting destructors.
4383 (dump_ada_declaration) <FUNCTION_DECL>: Likewise.
4384
22be5873
EB
43852019-04-07 Eric Botcazou <ebotcazou@adacore.com>
4386
4387 * c-ada-spec.c (is_float128): New predicate extracted from...
4388 (dump_ada_node) <COMPLEX_TYPE>: Use it to recognize __cfloat128.
4389 <REAL_TYPE>: ...here. Call it.
4390
34facf20
DM
43912019-04-05 David Malcolm <dmalcolm@redhat.com>
4392
4393 PR c/89985
4394 * c-warn.c (check_address_or_pointer_of_packed_member): Add
4395 auto_diagnostic_group. Guard inform calls by result of
4396 warning_at call.
4397
05564120
MP
43982019-04-05 Marek Polacek <polacek@redhat.com>
4399
ab20d992 4400 PR c++/89973 - -Waddress-of-packed-member ICE with invalid conversion.
05564120
MP
4401 * c-warn.c (check_address_or_pointer_of_packed_member): Check the type
4402 of RHS.
4403
7a506c3c
JM
44042019-04-03 Jason Merrill <jason@redhat.com>
4405
4406 PR c++/86586 - -fcompare-debug=-Wsign-compare.
4407 * c-warn.c (warn_for_sign_compare): Call fold_for_warn.
4408
ddeae8c8
MS
44092019-04-01 Martin Sebor <msebor@redhat.com>
4410
4411 PR c/89685
4412 * c-attribs.c (handle_copy_attribute): Handle references and
4413 non-constant expressions.
4414
a15ffa22
JJ
44152019-03-22 Jakub Jelinek <jakub@redhat.com>
4416
4417 PR c++/87481
4418 * c.opt (-fconstexpr-ops-limit=): New option.
4419
36a3a7a3
JJ
44202019-03-21 Jakub Jelinek <jakub@redhat.com>
4421
4422 * c-common.c (per_file_includes_t): Use false as Lazy in hash_set
4423 template param.
4424
bec1da64
MS
44252019-03-19 Martin Sebor <msebor@redhat.com>
4426
4427 PR tree-optimization/89688
4428 * c-common.c (braced_list_to_string): Make static.
4429 (braced_lists_to_strings): Define new function.
4430 * c-common.h (braced_list_to_string): Remove.
4431 (braced_lists_to_strings): Declare.
4432
1fe61adf
ML
44332019-03-12 Martin Liska <mliska@suse.cz>
4434
4435 * c-opts.c (c_common_handle_option): Wrap option with %< and %>.
4436
93964ebd
ML
44372019-03-11 Martin Liska <mliska@suse.cz>
4438
4439 * c-opts.c (c_common_post_options): Wrap apostrophes
4440 in gcc internal format with %'.
4441
a3f9f006
ML
44422019-03-11 Martin Liska <mliska@suse.cz>
4443
4444 * c-attribs.c (handle_nocf_check_attribute): Wrap an option name
4445 in a string format message and fix GNU coding style.
4446 * c-common.c (vector_types_convertible_p): Likewise.
4447 (c_build_vec_perm_expr): Likewise.
4448 * c-indentation.c (get_visual_column): Likewise.
4449 * c-opts.c (c_common_handle_option): Likewise.
4450 (c_common_post_options): Likewise.
4451 (sanitize_cpp_opts): Likewise.
4452 * c-pch.c (c_common_pch_pragma): Likewise.
4453 * c-pragma.c (handle_pragma_pack): Likewise.
4454
1db01ff9
JJ
44552019-03-08 Jakub Jelinek <jakub@redhat.com>
4456
4457 PR tree-optimization/89550
4458 * c-common.c (c_common_truthvalue_conversion): Only set
4459 TREE_NO_WARNING if warning_at returned true.
4460 * c-warn.c (overflow_warning, warn_logical_operator): Likewise.
4461
ba790e6f
JJ
44622019-02-25 Sandra Loosemore <sandra@codesourcery.com>
4463 Martin Sebor <msebor@gmail.com>
4464
4465 * c.opt (Wmissing-attributes): Clean up doc string.
4466
7da73ba7
JJ
44672019-02-25 Jakub Jelinek <jakub@redhat.com>
4468
4469 PR c/89495
4470 * c-format.c (maybe_read_dollar_number): Compute nargnum in
4471 HOST_WIDE_INT type to avoid overflows and change overflow_flag
4472 checking.
4473
921bb9d1
RB
44742019-02-22 Richard Biener <rguenther@suse.de>
4475
4476 * c-pch.c (no_checksum): Remove.
4477 (pch_init): Remove assertion that executable_checksum is not
4478 all zero.
4479 (c_common_valid_pch): Likewise.
4480
e2ebb05c
MS
44812019-02-18 Martin Sebor <msebor@redhat.com>
4482
4483 PR middle-end/89294
4484 * c-common.c (invalid_array_size_error): Handle cst_size_not_constant.
4485
3fe53000
DM
44862019-02-16 David Malcolm <dmalcolm@redhat.com>
4487
4488 PR c++/88680
4489 * c-common.c (shorten_compare): Call fold_for_warn on op0 when
4490 implementing -Wtype-limits.
4491
28a8cef1
MS
44922019-02-11 Martin Sebor <msebor@redhat.com>
4493
4494 PR c++/87996
4495 * c-common.c (invalid_array_size_error): New function.
4496 (valid_array_size_p): Call it. Handle size as well as type.
4497 * c-common.h (valid_constant_size_p): New function.
4498 (enum cst_size_error): New type.
4499
ec2be203
DM
45002019-01-31 David Malcolm <dmalcolm@redhat.com>
4501
4502 PR c/89122
4503 * known-headers.cc (get_stdlib_header_for_name): Add
4504 {FLT|DBL|LDBL}_{MAX|MIN} to "hints" array.
4505
8936f047
JJ
45062019-01-31 Jakub Jelinek <jakub@redhat.com>
4507
4508 PR libstdc++/88170
4509 * c-pretty-print.c (pp_c_enumeration_constant): Print always as
4510 a C cast in pp_c_flag_gnu_v3 mode.
4511
6a335b96
JJ
45122019-01-29 Jakub Jelinek <jakub@redhat.com>
4513
4514 PR c/86125
4515 * c-common.c (c_common_nodes_and_builtins): Build type variants for
4516 builtin_structptr_types types even for C.
4517
2a06eba5
BE
45182019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
4519
4520 * c-warn.c (check_address_or_pointer_of_packed_member): Handle the case
4521 when rhs is of array type correctly. Fix handling of nested structures.
4522 Fix handling of indirect_ref together with nop_expr and/or addr_expr.
4523 (check_and_warn_address_or_pointer_of_packed_member): Fix handling of
4524 type casts within nested compound expressions.
4525
18a23298
JJ
45262019-01-22 Jakub Jelinek <jakub@redhat.com>
4527
4528 PR middle-end/88968
4529 * c-omp.c (c_finish_omp_atomic): For bitfield atomics, update type
4530 variable after using BIT_FIELD_REF.
4531
420183d9
L
45322019-01-18 H.J. Lu <hongjiu.lu@intel.com>
4533
4534 PR c/51628
4535 PR c/88664
4536 * c-common.h (warn_for_address_or_pointer_of_packed_member):
4537 Remove the boolean argument.
4538 * c-warn.c (check_address_of_packed_member): Renamed to ...
4539 (check_address_or_pointer_of_packed_member): This. Also
4540 warn pointer conversion.
4541 (check_and_warn_address_of_packed_member): Renamed to ...
4542 (check_and_warn_address_or_pointer_of_packed_member): This.
4543 Also warn pointer conversion.
4544 (warn_for_address_or_pointer_of_packed_member): Remove the
4545 boolean argument. Don't check pointer conversion here.
4546
99063eee
RS
45472019-01-15 Richard Sandiford <richard.sandiford@arm.com>
4548
4549 PR inline-asm/52813
4550 * c.opt (Wdeprecated): Move documentation and variable to common.opt.
4551
a30d0196
JJ
45522019-01-14 Jakub Jelinek <jakub@redhat.com>
4553
4554 * c-cppbuiltin.c (c_cpp_builtin): Define __cpp_guaranteed_copy_elision
4555 and __cpp_nontype_template_parameter_auto. Add a comment that
4556 __cpp_template_auto is deprecated.
4557
2d91f79d
TH
45582019-01-14 Tom Honermann <tom@honermann.net>
4559
4560 Implement P0482R5, char8_t: A type for UTF-8 characters and strings
4561 * c-common.c (c_common_reswords): Add char8_t.
4562 (fix_string_type): Use char8_t for the type of u8 string literals.
4563 (c_common_get_alias_set): char8_t doesn't alias.
4564 (c_common_nodes_and_builtins): Define char8_t as a builtin type in
4565 C++.
4566 (c_stddef_cpp_builtins): Add __CHAR8_TYPE__.
4567 (keyword_begins_type_specifier): Add RID_CHAR8.
4568 * c-common.h (rid): Add RID_CHAR8.
4569 (c_tree_index): Add CTI_CHAR8_TYPE and CTI_CHAR8_ARRAY_TYPE.
4570 Define D_CXX_CHAR8_T and D_CXX_CHAR8_T_FLAGS.
4571 Define char8_type_node and char8_array_type_node.
4572 * c-cppbuiltin.c (cpp_atomic_builtins): Predefine
4573 __GCC_ATOMIC_CHAR8_T_LOCK_FREE.
4574 (c_cpp_builtins): Predefine __cpp_char8_t.
4575 * c-lex.c (lex_string): Use char8_array_type_node as the type of
4576 CPP_UTF8STRING.
4577 (lex_charconst): Use char8_type_node as the type of CPP_UTF8CHAR.
4578 * c-opts.c: If not otherwise specified, enable -fchar8_t when
4579 targeting C++2a.
4580 * c.opt: Add the -fchar8_t command line option.
4581
23db6ced
MS
45822019-01-14 Martin Sebor <msebor@redhat.com>
4583
4584 PR target/88638
4585 * c-attribs.c (positional_argument): Call valid_format_string_type_p
4586 and issue errors if it fails.
4587 * c-common.h (valid_format_string_type_p): Declare.
4588 * c-format.c (valid_stringptr_type_p): Rename...
4589 (valid_format_string_type_p): ...to this and make extern.
4590 (handle_format_arg_attribute): Adjust to new name.
4591 (check_format_string): Same.
4592
234c3818
L
45932019-01-13 H.J. Lu <hongjiu.lu@intel.com>
4594
4595 * c-warn.c (warn_for_address_or_pointer_of_packed_member):
4596 Replace "may may" with "may" in warning message.
4597
d8fcab68
JJ
45982019-01-07 Jakub Jelinek <jakub@redhat.com>
4599
4600 PR c++/85052
4601 * c-common.h (enum rid): Add RID_BUILTIN_CONVERTVECTOR.
4602 (c_build_vec_convert): Declare.
4603 * c-common.c (c_build_vec_convert): New function.
4604
29d24852
MS
46052019-01-04 Martin Sebor <msebor@redhat.com>
4606
4607 PR c/88546
4608 * c-attribs.c (handle_copy_attribute): Avoid copying attribute leaf.
4609 Handle C++ empty throw specification and C11 _Noreturn.
4610 (has_attribute): Also handle C11 _Noreturn.
4611
9069a4c9
MS
46122019-01-04 Martin Sebor <msebor@redhat.com>
4613
4614 PR c/88363
4615 * c-attribs.c (positional_argument): Also accept enumerated types.
4616
a5544970
JJ
46172019-01-01 Jakub Jelinek <jakub@redhat.com>
4618
4619 Update copyright years.
4620
da77eace
L
46212018-12-20 H.J. Lu <hongjiu.lu@intel.com>
4622
4623 PR c/51628
4624 * c-common.h (warn_for_address_or_pointer_of_packed_member): New.
4625 * c-warn.c (check_alignment_of_packed_member): New function.
4626 (check_address_of_packed_member): Likewise.
4627 (check_and_warn_address_of_packed_member): Likewise.
4628 (warn_for_address_or_pointer_of_packed_member): Likewise.
4629 * c.opt: Add -Wno-address-of-packed-member.
4630
573767d4
DM
46312018-12-20 David Malcolm <dmalcolm@redhat.com>
4632
4633 PR c++/87504
4634 * c-warn.c (get_outermost_macro_expansion): New function.
4635 (spelled_the_same_p): Use it to unwind the macro expansions, and
4636 compare the outermost macro in each nested expansion, rather than
4637 the innermost.
4638
a14feb3c
DM
46392018-12-19 David Malcolm <dmalcolm@redhat.com>
4640
4641 PR c++/87504
4642 * c-common.h (warn_tautological_cmp): Convert 1st param from
4643 location_t to const op_location_t &.
4644 * c-warn.c (find_array_ref_with_const_idx_r): Call fold_for_warn
4645 when testing for INTEGER_CST.
4646 (warn_tautological_bitwise_comparison): Convert 1st param from
4647 location_t to const op_location_t &; use it to build a
4648 binary_op_rich_location, and use this.
4649 (spelled_the_same_p): New function.
4650 (warn_tautological_cmp): Convert 1st param from location_t to
4651 const op_location_t &. Warn for macro expansions if
4652 spelled_the_same_p. Use binary_op_rich_location.
4653
dfd7fdca
DM
46542018-12-19 David Malcolm <dmalcolm@redhat.com>
4655
4656 PR c++/43064
4657 PR c++/43486
4658 * c-common.c (unsafe_conversion_p): Fold any location wrapper.
4659 (verify_tree): Handle location wrappers.
4660 (c_common_truthvalue_conversion): Strip any location wrapper.
4661 Handle CONST_DECL.
4662 (fold_offsetof): Strip any location wrapper.
4663 (complete_array_type): Likewise for initial_value.
4664 (convert_vector_to_array_for_subscript): Call fold_for_warn on the
4665 index before checking for INTEGER_CST.
4666 * c-pretty-print.c (c_pretty_printer::primary_expression): Don't
4667 print parentheses around location wrappers.
4668 * c-warn.c (warn_logical_operator): Call fold_for_warn on op_right
4669 before checking for INTEGER_CST.
4670 (warn_tautological_bitwise_comparison): Call
4671 tree_strip_any_location_wrapper on lhs, rhs, and bitop's operand
4672 before checking for INTEGER_CST.
4673 (readonly_error): Strip any location wrapper.
4674 (warn_array_subscript_with_type_char): Strip location wrappers
4675 before checking for INTEGER_CST. Use the location of the index if
4676 available.
4677
5c8b3702
JM
46782018-12-06 Jason Merrill <jason@redhat.com>
4679
4680 PR c++/88136 - -Wdeprecated-copy false positives
4681 * c.opt (Wdeprecated-copy-dtor): New.
4682 (Wdeprecated-copy): Move to -Wextra.
4683
673670da
MS
46842018-11-29 Martin Sebor <msebor@redhat.com>
4685
4686 PR c/88172
4687 PR testsuite/88208
4688 * c-attribs.c (common_handle_aligned_attribute): Silently avoid setting
4689 alignments to values less than the target requires.
4690 (has_attribute): For attribute aligned consider both the attribute
4691 and the alignment bits.
4692 * c-common.c (c_init_attributes): Optionally issue a warning for
4693 zero alignment.
4694
04864ec8
MS
46952018-11-28 Martin Sebor <msebor@redhat.com>
4696
4697 PR c/88065
4698 PR c/87297
4699 * c-warn.c (sizeof_pointer_memaccess_warning): Bail if source
4700 or destination is an error.
4701
ace83db0
JJ
47022018-11-28 Jakub Jelinek <jakub@redhat.com>
4703
4704 PR c++/88215
4705 * c-ubsan.c: Include langhooks.h.
4706 (ubsan_instrument_division): Change gcc_assert that main variants
4707 of op0 and op1 types are equal to gcc_checking_assert that the
4708 main variants are compatible types.
4709
da193a27
EB
47102018-11-27 Eric Botcazou <ebotcazou@adacore.com>
4711
4712 * c-ada-spec.c: Include stringpool.h.
4713 (has_static_fields): Return false for incomplete types.
4714 (is_tagged_type): Likewise.
4715 (has_nontrivial_methods): Likewise.
4716 (dump_ada_node) <INTEGER_TYPE>: Deal specifically with __int128.
4717 (struct overloaded_name_hash): New structure.
4718 (struct overloaded_name_hasher): Likewise.
4719 (overloaded_names): New global variable.
4720 (init_overloaded_names): New static function.
4721 (overloaded_name_p): New predicate.
4722 (dump_ada_declaration) <TYPE_DECL>: Tidy up and set TREE_VISITED
4723 on the TYPE_STUB_DECL of the original type of a typedef, if any.
4724 <FUNCTION_DECL>: Bail out for an unsupported overloaded name.
4725 Remove always-true condition and dump forward types.
4726 (dump_ada_specs): Delete overloaded_names.
4727
98f08eb8
MS
47282018-11-20 Martin Sebor <msebor@redhat.com>
4729
4730 * c-attribs.c (type_for_vector_size): New function.
4731 (type_valid_for_vector_size): Same.
4732 (handle_vector_size_attribute): Move code to the functions above
4733 and call them.
4734 (validate_attribute, has_attribute): New functions.
4735 * c-common.h (has_attribute): Declare.
4736 (rid): Add RID_HAS_ATTRIBUTE_EXPRESSION.
4737 * c-common.c (c_common_resword): Same.
4738
2674fa47
JM
47392018-11-16 Jason Merrill <jason@redhat.com>
4740
4741 * c-lex.c (c_common_has_attribute): Handle likely/unlikely.
4742 * c-attribs.c (attr_cold_hot_exclusions): Make public.
4743
258b3854
JJ
47442018-11-16 Jakub Jelinek <jakub@redhat.com>
4745
4746 PR middle-end/87854
4747 * c-common.c (fix_string_type): Reject string literals larger than
4748 TYPE_MAX_VALUE (ssizetype) bytes.
4749
1d249509
MS
47502018-11-15 Martin Sebor <msebor@redhat.com>
4751
4752 PR c++/87541
4753 PR c++/87542
4754 * c-attribs.c (positional_argument): New function.
4755 (handle_alloc_size_attribute): Use it and simplify.
4756 (handle_alloc_align_attribute): Same.
4757 (handle_assume_aligned_attribute): Same.
4758 (handle_nonnull_attribute): Same.
4759 * c-common.c (check_function_arguments): Pass fntype to
4760 check_function_format.
4761 * c-common.h (check_function_format): Add an argument.
4762 (PosArgFlags, positional_argument): Declare new type and function.
4763 * c-format.c (decode_format_attr): Add arguments.
4764 (check_format_string, get_constant): Same.
4765 (convert_format_name_to_system_name): Adjust.
4766
478dd60d
DM
47672018-11-15 David Malcolm <dmalcolm@redhat.com>
4768
4769 PR other/19165
4770 * c-opts.c (c_diagnostic_finalizer): Add diagnostic_t param.
4771
8cca0163
JJ
47722018-11-14 Jakub Jelinek <jakub@redhat.com>
4773
8ee09943
JJ
4774 P1236R1 - Signed integers are two's complement
4775 * c-warn.c (maybe_warn_shift_overflow): Don't warn for c++2a.
4776 * c-ubsan.c (ubsan_instrument_shift): Make signed shifts
4777 with in-range second operand well defined for -std=c++2a.
4778
8cca0163
JJ
4779 PR other/88007
4780 * c-common.c (parse_optimize_options): Allocate option string from
4781 opts_obstack rather than as GC memory. Move the allocation after
4782 warning for invalid option.
4783
620e594b
DM
47842018-11-13 David Malcolm <dmalcolm@redhat.com>
4785
4786 * c-common.c (c_get_substring_location): Update for renaming of
4787 get_source_location_for_substring to get_location_within_string.
4788 * c-lex.c: Replace "source_location" with "location_t".
4789 * c-opts.c: Likewise.
4790 * c-ppoutput.c: Likewise.
4791
f9731de3
MS
47922018-11-13 Martin Sebor <msebor@redhat.com>
4793
4794 PR middle-end/81824
4795 * c-attribs.c (handle_copy_attribute): Exclude inlining attributes.
4796 (handle_tls_model_attribute): Improve diagnostics.
4797
e4bd6d5e
JM
47982018-11-12 Jason Merrill <jason@redhat.com>
4799
a6bb6b07
JM
4800 * c-cppbuiltin.c (c_cpp_builtins): Define
4801 __cpp_impl_destroying_delete.
4802
e4bd6d5e
JM
4803 * c-cppbuiltin.c (c_cpp_builtins): Change __cpp_explicit_bool to
4804 __cpp_conditional_explicit.
4805
79a2c428
MS
48062018-11-09 Martin Sebor <msebor@redhat.com>
4807
4808 PR middle-end/81824
4809 * c-attribs.c (handle_copy_attribute): New function.
4810
4c7bd361
MS
48112018-11-09 Martin Sebor <msebor@redhat.com>
4812
4813 PR c/87795
4814 * c-common.c (check_user_alignment): Use MAX_OFILE_ALIGNMENT.
4815
28567c40
JJ
48162018-11-08 Jakub Jelinek <jakub@redhat.com>
4817
4818 * c-common.h (c_finish_omp_taskgroup): Add CLAUSES argument.
4819 (c_finish_omp_atomic): Replace bool SEQ_CST argument with
4820 enum omp_memory_order MEMORY_ORDER.
4821 (c_finish_omp_flush): Add MO argument.
4822 (c_omp_depend_t_p, c_finish_omp_depobj): Declare.
4823 (c_finish_omp_for): Add FINAL_P argument.
4824 * c-omp.c: Include memmodel.h.
4825 (c_finish_omp_taskgroup): Add CLAUSES argument. Set
4826 OMP_TASKGROUP_CLAUSES to it.
4827 (c_finish_omp_atomic): Replace bool SEQ_CST argument with
4828 enum omp_memory_order MEMORY_ORDER. Set OMP_ATOMIC_MEMORY_ORDER
4829 instead of OMP_ATOMIC_SEQ_CST.
4830 (c_omp_depend_t_p, c_finish_omp_depobj): New functions.
4831 (c_finish_omp_flush): Add MO argument, if not MEMMODEL_LAST, emit
4832 __atomic_thread_fence call with the given value.
4833 (check_omp_for_incr_expr): Formatting fixes.
4834 (c_finish_omp_for): Add FINAL_P argument. Allow NE_EXPR
4835 even in OpenMP loops, diagnose if NE_EXPR and incr expression
4836 is not constant expression 1 or -1. Transform NE_EXPR loops
4837 with iterators pointers to VLA into LT_EXPR or GT_EXPR loops.
4838 (c_omp_check_loop_iv_r): Look for orig decl of C++ range for
4839 loops too.
4840 (c_omp_split_clauses): Add support for combined
4841 #pragma omp parallel master and
4842 #pragma omp {,parallel }master taskloop{, simd} constructs.
4843 Handle OMP_CLAUSE_IN_REDUCTION. Handle OMP_CLAUSE_REDUCTION_TASK.
4844 Handle OMP_CLAUSE_NONTEMPORAL. Handle splitting OMP_CLAUSE_IF
4845 also to OMP_SIMD. Copy OMP_CLAUSE_LASTPRIVATE_CONDITIONAL.
4846 (c_omp_predetermined_sharing): Don't return
4847 OMP_CLAUSE_DEFAULT_SHARED for const qualified decls.
4848 * c-pragma.c (omp_pragmas): Add PRAGMA_OMP_DEPOBJ and
4849 PRAGMA_OMP_REQUIRES.
4850 * c-pragma.h (enum pragma_kind): Likewise.
4851 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_NONTEMPORAL
4852 and PRAGMA_OMP_CLAUSE_{IN,TASK}_REDUCTION.
4853
204839e7
DM
48542018-11-08 David Malcolm <dmalcolm@redhat.com>
4855
4856 * c-format.c (gcc_dump_printf_char_table): Add entry for %f.
4857
d8010ee4
DM
48582018-11-08 David Malcolm <dmalcolm@redhat.com>
4859
4860 * c-format.c (local_cgraph_node_ptr_node): New variable.
4861 (gcc_dump_printf_char_table): Add entry for %C.
4862 (get_pointer_to_named_type): New function, taken from the handling
4863 code for "gimple *" from...
4864 (init_dynamic_diag_info): ...here. Add handling for
4865 "cgraph_node *".
4866 * c-format.h (T_CGRAPH_NODE): New.
4867
4be5c72c
JM
48682018-10-19 Jason Merrill <jason@redhat.com>
4869
4870 * c-cppbuiltin.c (c_cpp_builtins): Add
4871 __cpp_nontype_template_parameter_class.
4872
f3f6029d
NS
48732018-10-31 Nathan Sidwell <nathan@acm.org>
4874
ab5324fb
NS
4875 * c-opts.c (c_finish_options): Force command line macro
4876 location. Refactor to avoid repeating main debug hook.
4877 (push_command_line_include): Clarify comment.
4878
f3f6029d
NS
4879 * c-opts.c (c_finish_options): Adjust cpp_force_token_locations call.
4880
91e3ec29
MS
48812018-10-30 Martin Sebor <msebor@redhat.com>
4882
4883 PR middle-end/87041
4884 * c-format.c (check_format_types): Avoid diagnosing null pointer
4885 arguments to printf-family of functions.
4886
b5ff4f5c
MP
48872018-10-30 Marek Polacek <polacek@redhat.com>
4888
4889 Implement P0892R2, explicit(bool).
4890 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_explicit_bool.
4891
7e2de6df
DM
48922018-10-29 David Malcolm <dmalcolm@redhat.com>
4893
4894 * name-hint.h (name_hint::take_deferred): New member function.
4895
b2bf438c
DM
48962018-10-29 David Malcolm <dmalcolm@redhat.com>
4897
4898 PR c++/56856
4899 * c-common.c (check_function_sentinel): Call fold_for_warn on the
4900 argument.
4901 (check_function_restrict): Rename param "argarray" to
4902 "unfolded_argarray", and make a copy named "argarray", calling
4903 fold_for_warn on each argument.
4904 (check_function_arguments): Add note about responsibility for
4905 folding the arguments.
4906
9f936c86
JM
49072018-10-17 Joseph Myers <joseph@codesourcery.com>
4908
4909 * c-common.c (flag_isoc2x): New variable.
4910 * c-common.h (clk_c): Update comment to reference C2X.
4911 (flag_isoc99, flag_isoc11): Update comments to reference future
4912 standard versions in general.
4913 (flag_isoc2x): Declare.
4914 * c-opts.c (set_std_c2x): New function.
4915 (c_common_handle_option): Handle -std=c2x and -std=gnu2x.
4916 (set_std_c89, set_std_c99, set_std_c11, set_std_c17): Set
4917 flag_isoc2x to 0.
4918 * c.opt (Wc11-c2x-compat, std=c2x, std=gnu2x): New options.
4919
7a8a92c4
JM
49202018-10-17 Joseph Myers <joseph@codesourcery.com>
4921
4922 * c.opt (std=c17, std=c18, std=gnu17, std=gnu18, std=iso9899:2017)
4923 (std=iso9899:2018): Document C17 as published in 2018.
4924
4dc003ff
CL
49252018-10-12 Christophe Lyon <christophe.lyon@linaro.org>
4926
4927 PR c++/87364
4928 * c-pretty-print.c (c_pretty_printer::constant): Fix typo.
4929
79371671
WW
49302018-10-11 Will Wray <wjwray@gmail.com>
4931
4932 PR c++/87364
4933 * c-pretty-print.h (pp_c_type_cast): Prototype.
4934 (pp_c_integer_constant): Likewise.
4935 * c-pretty-print.c (pp_c_type_cast): No longer static.
4936 (pp_c_integer_constant): Likewise.
4937 (pp_c_enumeration_constant): Fix loop termination when finding
4938 name of constant. No longer returns a value. Call
4939 pp_c_integer_constant.
4940 (c_pretty_printer::constant): Update for changes to
4941 pp_c_enumeration_constant.
4942
46c62690
JJ
49432018-10-11 Jakub Jelinek <jakub@redhat.com>
4944
4945 * c-lex.c (c_common_has_attribute): Return 201803 instead of 20180312
4946 for no_unique_address.
4947
c24300ba
DM
49482018-10-09 David Malcolm <dmalcolm@redhat.com>
4949
4950 * c-common.c (c_option_controlling_cpp_error): Rename to...
4951 (c_option_controlling_cpp_diagnostic): ...this, and convert
4952 "reason" from int to enum.
4953 (c_cpp_error): Rename to...
4954 (c_cpp_diagnostic): ...this, converting level and reason to enums.
4955 * c-common.h (c_cpp_error): Rename to...
4956 (c_cpp_diagnostic): ...this, converting level and reason to enums.
4957 * c-opts.c (c_common_init_options): Update for renaming.
4958
8656dafa
RS
49592018-10-08 Richard Sandiford <richard.sandiford@arm.com>
4960
4961 PR c/87286
4962 * c-common.c (vector_types_compatible_elements_p): Use
4963 INTEGRAL_TYPE_P instead of checking only for INTEGER_TYPE.
4964
8cff0652
VK
49652018-10-04 Vinay Kumar <vinay.kumar@blackfigtech.com>
4966
4967 * c-attribs.c (get_priority): Add a warning flag warn_prio_ctor_dtor
4968 to generate constructor destructor priority warning.
4969 * c.opt (-Wprio-ctor-dtor): New option.
4970
bedf03a2
JM
49712018-10-01 Jason Merrill <jason@redhat.com>
4972
4973 * c-lex.c (c_common_has_attribute): Add no_unique_address.
4974
6cc430c1
EB
49752018-10-01 Eric Botcazou <ebotcazou@adacore.com>
4976
4977 * c-ada-spec.c (get_underlying_decl): Get to the main type variant.
4978 (dump_ada_node): Add const keyword.
4979
87677ac7
ML
49802018-09-25 Martin Liska <mliska@suse.cz>
4981
4982 * c-common.c (c_common_truthvalue_conversion):
4983 Remove Pascal from documentation.
4984
518196cb
EB
49852018-09-21 Eric Botcazou <ebotcazou@adacore.com>
4986
4987 * c-ada-spec.c: Include diagnostic.h.
4988 (dump_ada_declaration) <RECORD_TYPE>: Issue a warning on packed layout.
4989
a599af84
MP
49902018-09-19 Marek Polacek <polacek@redhat.com>
4991
4992 * c.opt (Wclass-conversion): New.
4993
9c4a4b3c
DM
49942018-09-17 David Malcolm <dmalcolm@redhat.com>
4995
4996 * c-format.c (range_label_for_format_type_mismatch::get_text):
4997 Update for new param.
4998
c896ecfe
DM
49992018-09-17 David Malcolm <dmalcolm@redhat.com>
5000
5001 * c-format.c (format_warning_at_char): Update for introduction of
5002 format_string_diagnostic_t.
5003 (format_type_warning): Likewise.
5004
80c6d1f4
MJ
50052018-09-17 Martin Jambor <mjambor@suse.cz>
5006
5007 PR c/63886
5008 * c.opt (Wabsolute-value): New.
5009
6d900107
BE
50102018-09-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
5011
5012 * c-common.c (complete_flexible_array_elts): New helper function.
5013 * c-common.h (complete_flexible_array_elts): Declare.
5014
b5764229
BE
50152018-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
5016
5017 * c-common.c (braced_list_to_string): Remove eval parameter.
5018 Add some more checks. Always create zero-terminated STRING_CST.
5019 * c-common.h (braced_list_to_string): Adjust prototype.
5020
85204e23
DM
50212018-08-27 David Malcolm <dmalcolm@redhat.com>
5022
5023 PR 87091
5024 * c-common.c (c_cpp_error): Update for conversion of show_caret_p
5025 to a tri-state.
5026 (maybe_suggest_missing_token_insertion): Likewise.
5027 (maybe_add_include_fixit): Add param "override_location". If set,
5028 and source-printing is enabled, then override the rich_location's
5029 primary location with that of the insertion point for the fix-it
5030 hint, marking it with SHOW_LINES_WITHOUT_RANGE.
5031 * c-common.h (extern void maybe_add_include_fixit): Add bool
5032 param.
5033 * c-format.c (selftest::test_type_mismatch_range_labels): Update
5034 for conversion of show_caret_p to a tri-state.
5035 * c-warn.c (warn_for_restrict): Likewise.
5036 * known-headers.cc
5037 (suggest_missing_header::~suggest_missing_header): Update call to
5038 maybe_add_include_fixit to suggest overriding the location, as it
5039 is for a note.
5040
3d78e008
ML
50412018-08-27 Martin Liska <mliska@suse.cz>
5042
5043 * c-common.c (check_function_restrict): Use new function
92a285c1
ML
5044 fndecl_built_in_p and remove check for FUNCTION_DECL if
5045 possible.
3d78e008
ML
5046 (check_builtin_function_arguments): Likewise.
5047 (reject_gcc_builtin): Likewise.
5048 * c-warn.c (sizeof_pointer_memaccess_warning): Likewise.
5049
b5be6d0c
MP
50502018-08-26 Marek Polacek <polacek@redhat.com>
5051
5052 PR c++/87029, Implement -Wredundant-move.
5053 * c.opt (Wredundant-move): New option.
5054
79ca9c35
MP
50552018-08-21 Marek Polacek <polacek@redhat.com>
5056
5057 PR c++/86981, Implement -Wpessimizing-move.
5058 * c.opt (Wpessimizing-move): New option.
5059
097f82ec
DM
50602018-08-20 David Malcolm <dmalcolm@redhat.com>
5061
5062 PR other/84889
5063 * c-attribs.c (common_handle_aligned_attribute): Add
5064 auto_diagnostic_group instance.
5065 * c-indentation.c (warn_for_misleading_indentation): Likewise.
5066 * c-opts.c (c_common_post_options): Likewise.
5067 * c-warn.c (warn_logical_not_parentheses): Likewise.
5068 (warn_duplicated_cond_add_or_warn): Likewise.
5069 (warn_for_multistatement_macros): Likewise.
5070
3fb558b1
NS
50712018-08-20 Nathan Sidwell <nathan@acm.org>
5072
5073 * c-ada-spec.c (macro_length, dump_ada_macros): Adjust macro parm
5074 access.
5075
800c0e98
NS
50762018-08-17 Nathan Sidwell <nathan@acm.org>
5077
5078 * c-cppbuiltin.c (struct lazy_hex_fp_value_struct): Remove macro
5079 field.
5080 (laxy_hex_fp_value_count): Make unsigned.
5081 (lazy_hex_fp_value): Provided with macro & lazy number. Directly
5082 manipulate the macro.
5083 (builtin_defin_with_hex_fp_value): Adjust callback name, use
5084 cpp_define_lazily.
5085
6f795a92
DM
50862018-08-17 David Malcolm <dmalcolm@redhat.com>
5087
5088 * c-format.c (enum format_type): Add gcc_dump_printf_format_type.
5089 (gcc_dump_printf_length_specs): New.
5090 (gcc_dump_printf_flag_pairs): New.
5091 (gcc_dump_printf_flag_specs): New.
5092 (gcc_dump_printf_char_table): New.
5093 (format_types_orig): Add entry for "gcc_dump_printf".
5094 (init_dynamic_diag_info): Set up length_char_specs and
5095 conversion_specs for gcc_dump_printf_format_type.
5096 (handle_format_attribute): Handle gcc_dump_printf_format_type.
5097
c5d725c0
NS
50982018-08-17 Nathan Sidwell <nathan@acm.org>
5099
10f04917
NS
5100 * c-ada-spec.c (macro_length, dump_ada_macros): Constify.
5101
c5d725c0
NS
5102 * c-ada-spec.c: Don't #include "cpp-id-data.h"
5103 * c-cppbuiltin.c: Likewise.
5104
c0c12356
ML
51052018-08-17 Martin Liska <mliska@suse.cz>
5106
5107 * c.opt: Remove Warn, Init and Report for options with
92a285c1
ML
5108 Ignore/Deprecated flag. Warning is done automatically for
5109 Deprecated flags.
c0c12356 5110
10fcc142
DM
51112018-08-16 David Malcolm <dmalcolm@redhat.com>
5112
5113 PR c++/70693
5114 * c-common.c (selftest::c_family_tests): Call
5115 selftest::c_indentation_c_tests.
5116 * c-common.h (selftest::c_indentation_c_tests): New decl.
5117 * c-indentation.c: Include "selftest.h".
5118 (next_tab_stop): Add "tab_width" param, rather than accessing
5119 cpp_opts.
5120 (get_visual_column): Likewise. Clarify comment. Bulletproof
5121 against reading past the end of the line.
5122 (get_first_nws_vis_column): Add "tab_width" param.
5123 (detect_intervening_unindent): Likewise.
5124 (should_warn_for_misleading_indentation): Read tab width from
5125 cpp_opts and pass around.
5126 (selftest::test_next_tab_stop): New test.
5127 (selftest::assert_get_visual_column_succeeds): New function.
5128 (ASSERT_GET_VISUAL_COLUMN_SUCCEEDS): New macro.
5129 (selftest::assert_get_visual_column_fails): New function.
5130 (ASSERT_GET_VISUAL_COLUMN_FAILS): New macro.
5131 (selftest::test_get_visual_column): New test.
5132 (selftest::c_indentation_c_tests): New function.
5133
3f6677f4
NS
51342018-08-16 Nathan Sidwell <nathan@acm.org>
5135
5136 * c-ada-spec.c (count_ada_macro): Use cpp_user_macro_p.
5137 (store_ada_macro): Likewise.
5138 * c-ppoutput.c (cb_used_define, dump_macro): Likewise.
5139 * c-spellcheck.cc (should-suggest_as_macro_p): Likewise,
5140
96e6ae57
DM
51412018-08-15 David Malcolm <dmalcolm@redhat.com>
5142
5143 * c-format.c: Include "selftest-diagnostic.h" and
5144 "gcc-rich-location.h".
5145 (format_warning_at_char): Pass NULL for new label params of
5146 format_warning_va.
5147 (class indirection_suffix): New class.
5148 (class range_label_for_format_type_mismatch): New class.
5149 (format_type_warning): Move logic for generating "*" suffix to
5150 class indirection_suffix. Create "fmt_label" and "param_label"
5151 to show their types, and pass them to the
5152 format_warning_at_substring calls.
5153 (selftest::test_type_mismatch_range_labels): New test.
5154 (selftest::c_format_c_tests): Call it.
5155
23aa9f7c
MS
51562018-08-13 Martin Sebor <msebor@redhat.com>
5157
5158 PR tree-optimization/71625
5159 * c-common.c (braced_list_to_string): New function.
5160 * c-common.h (braced_list_to_string): Declare it.
5161
f10a9135
NS
51622018-08-08 Nathan Sidwell <nathan@acm.org>
5163
5164 * c-common.c (try_to_locate_new_include_inertion_point): Use
5165 linemap_included_from_linemap.
5166 * c-lex.c (fe_file_change): Use linemap_included_from.
5167 * c-ppoutput.c (pp_file_change): Likewise.
5168
8a45b051
MS
51692018-08-01 Martin Sebor <msebor@redhat.com>
5170
5171 PR tree-optimization/86650
ab20d992 5172 * c-format.c (gcc_tdiag_char_table): Update comment for "%G".
8a45b051
MS
5173 (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Same.
5174 (init_dynamic_diag_info): Update from "gcall *" to "gimple *".
5175 * c-format.h (T89_G): Update to be "gimple *" rather than
5176 "gcall *".
5177 (local_gcall_ptr_node): Rename...
5178 (local_gimple_ptr_node): ...to this.
5179
e540ccc0
DM
51802018-07-31 David Malcolm <dmalcolm@redhat.com>
5181
5182 * c-format.c (PP_FORMAT_CHAR_TABLE): New macro, based on existing
5183 table entries for gcc_diag_char_table, and the 'Z' entry from
5184 gcc_tdiag_char_table, changing the "chain" entry for 'Z' from
5185 &gcc_tdiag_char_table[0] to &gcc_diag_char_table[0].
5186 (gcc_diag_char_table): Use PP_FORMAT_CHAR_TABLE, implicitly
5187 adding missing "Z" for this table. Remove erroneous "G" and "K"
5188 entries.
5189 (gcc_tdiag_char_table): Use PP_FORMAT_CHAR_TABLE. Remove "v".
5190 (gcc_cdiag_char_table): Use PP_FORMAT_CHAR_TABLE.
5191 (gcc_cxxdiag_char_table): Use PP_FORMAT_CHAR_TABLE. Remove "v".
5192
425fc685
RE
51932018-07-31 Richard Earnshaw <rearnsha@arm.com>
5194
5195 * c-common.c (speculation_safe_resolve_call): New function.
5196 (speculation_safe_resolve_params): New function.
5197 (speculation_safe_resolve_return): New function.
5198 (resolve_overloaded_builtin): Handle __builtin_speculation_safe_value.
5199 * c-cppbuiltin.c (c_cpp_builtins): Add pre-define for
5200 __HAVE_SPECULATION_SAFE_VALUE.
5201
181463c2
DM
52022018-07-20 David Malcolm <dmalcolm@redhat.com>
5203
5204 * c-common.c (c_cpp_error): Remove redundant "line_table"
5205 parameter from call to rich_location::set_range.
5206 (maybe_suggest_missing_token_insertion): Likewise.
5207
0d7f9065
MS
52082018-07-20 Martin Sebor <msebor@redhat.com>
5209
5210 PR middle-end/82063
ab20d992 5211 * c.opt (-Warray-bounds): Remove redundant -Wall.
0d7f9065 5212
00abf86c
MS
52132018-07-20 Martin Sebor <msebor@redhat.com>
5214
5215 PR middle-end/82063
5216 * c-common.h (c_common_handle_option): Change function argument
5217 to HOST_WIDE_INT.
5218 * c-opts.c (c_common_init_options): Same.
5219 (c_common_handle_option): Same. Remove special handling of
5220 OPT_Walloca_larger_than_ and OPT_Wvla_larger_than_.
5221 * c.opt (-Walloc-size-larger-than, -Walloca-larger-than): Change
5222 options to take a HOST_WIDE_INT argument and accept a byte-size
5223 suffix. Initialize.
5224 (-Wvla-larger-than): Same.
5225 (-Wno-alloc-size-larger-than, -Wno-alloca-larger-than): New.
5226 (-Wno-vla-larger-than): Same.
5227
9b452033
JJ
52282018-07-12 Jakub Jelinek <jakub@redhat.com>
5229
5230 * c-attribs.c (c_common_attribute_table): Add
5231 "omp declare target implicit" attribute.
5232
cd0762f3
RB
52332018-07-12 Richard Biener <rguenther@suse.de>
5234
5235 PR c/86453
5236 * c-attribs.c (handle_packed_attribute): Do not build a variant
5237 type with TYPE_PACKED, instead ignore the attribute if we may
5238 not apply to the original type.
5239
0b27c3ed
JJ
52402018-07-10 Jakub Jelinek <jakub@redhat.com>
5241
5242 PR c++/86443
5243 * c-omp.c (c_omp_check_loop_iv_r, c_omp_check_loop_iv): Allow declv
5244 to contain TREE_LIST for both the original class iterator and the
5245 "last" helper var.
5246
e730a0ef
EB
52472018-07-07 Eric Botcazou <ebotcazou@adacore.com>
5248
5249 * c-ada-spec.c (to_ada_name): Remove index parameter.
5250 (pp_ada_tree_identifier): Likewise.
5251 (dump_ada_macros): Adjust call to to_ada_name.
5252 (struct overloaded_name_hash): Delete.
5253 (struct overloaded_name_hasher): Likewise.
5254 (overloaded_names): Likewise.
5255 (compute_overloading_index): Likewise.
5256 (dump_ada_decl_name): Do not call compute_overloading_index and
5257 adjust calls to pp_ada_tree_identifier.
5258 (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
5259 (dump_ada_import): Add spc parameter and switch to aspect syntax.
5260 (dump_ada_function_declaration): Adjust call to pp_ada_tree_identifier.
5261 (dump_ada_enum_type): Remove type and display_convention parameters.
5262 Adjust calls to pp_ada_tree_identifier.
5263 (dump_ada_node): Likewise and for dump_ada_structure.
5264 (dump_nested_type) <ENUMERAL_TYPE>: Adjust call to dump_ada_enum_type
5265 and tidy up.
5266 <RECORD_TYPE>: Adjust call to dump_ada_structure and switch to aspect
5267 syntax.
5268 (print_constructor): Adjust call to pp_ada_tree_identifier.
5269 (print_destructor): Likewise.
5270 (dump_ada_declaration): Switch to aspect syntax.
5271 (dump_ada_structure): Likewise and tidy up. Replace display_convention
5272 parameter with nested parameter.
5273 (dump_ads): Emit pragma Ada_2012 in lieu of pragma Ada_2005.
5274 (dump_ada_specs): Do not delete overloaded_names table.
5275
8de583fc
PB
52762018-07-06 Peter Bergner <bergner@linux.ibm.com>
5277
5278 PR target/86324
e730a0ef 5279 * c-attribs.c (handle_mode_attribute): Call translate_mode_attribute
8de583fc
PB
5280 target hook.
5281
09cff37b
NS
52822018-07-05 Nathan Sidwell <nathan@acm.org>
5283
5284 * c-lex.c (fe_file_change): Check SYSTEM_IMPLICIT_EXTERN_C not
5285 NO_IMPLICIT_EXTERN_C.
5286
98086b2b
ML
52872018-06-28 Martin Liska <mliska@suse.cz>
5288
5289 * cppspec.c: Include opt-suggestions.h.
5290
ab20d992
JJ
52912018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
5292 Thomas Schwinge <thomas@codesourcery.com>
829c6349
CLT
5293 Cesar Philippidis <cesar@codesourcery.com>
5294
5295 * c-pragma.h (enum pragma_omp_clause): Add
5296 PRAGMA_OACC_CLAUSE_{FINALIZE,IF_PRESENT}. Remove
5297 PRAGMA_OACC_CLAUSE_PRESENT_OR_{COPY,COPYIN,COPYOUT,CREATE}.
5298
f41b7612
JJ
52992018-06-20 Jakub Jelinek <jakub@redhat.com>
5300
5301 PR c++/86210
5302 * c-common.c (check_nonnull_arg): Use fold_for_warn. Adjust obsolete
5303 comment.
5304
4252ccd7
MS
53052018-06-18 Martin Sebor <msebor@redhat.com>
5306
5307 PR middle-end/85602
5308 * c-warn.c (sizeof_pointer_memaccess_warning): Check for attribute
5309 nonstring.
5310
e197e64e
KV
53112018-06-16 Kugan Vivekanandarajah <kuganv@linaro.org>
5312
5313 * c-common.c (c_common_truthvalue_conversion): Handle ABSU_EXPR.
5314
34a7a230
JM
53152018-06-13 Jason Merrill <jason@redhat.com>
5316
5cef3733
JM
5317 * c-opts.c (c_common_post_options): Warn about useless -Wabi.
5318 (c_common_handle_option) [OPT_Wabi_]: Remove flag_abi_compat_version
5319 handling.
5320
34a7a230
JM
5321 PR c++/86094 - wrong code with defaulted move ctor.
5322 * c-opts.c (c_common_post_options): Bump the current ABI version to
5323 13. Set warn_abi_version and flag_abi_compat_version to the current
5324 version rather than 0. Fix defaulting flag_abi_compat_version from
5325 warn_abi_version.
5326
bb0f14ae
MS
53272018-06-12 Martin Sebor <msebor@redhat.com>
5328
5329 PR c/85931
5330 * c-warn.c (sizeof_pointer_memaccess_warning): Avoid warning when
5331 sizeof source and destination yields the same value.
5332
3713f2e2
ML
53332018-06-12 Martin Liska <mliska@suse.cz>
5334
5335 * c.opt: Make MPX-related options as Deprecated.
5336
4af78ef8
DM
53372018-06-08 David Malcolm <dmalcolm@redhat.com>
5338
5339 * c-pretty-print.c (c_pretty_printer::statement): Use TDF_NONE
5340 rather than 0.
5341
31db0fe0
ML
53422018-06-08 Martin Liska <mliska@suse.cz>
5343
5344 * c-attribs.c (handle_bnd_variable_size_attribute): Remove support
5345 for MPX (macros, related functions, fields in cgraph_node, ...).
5346 (handle_bnd_legacy): Likewise.
5347 (handle_bnd_instrument): Likewise.
5348 * c.opt: Likewise.
5349
fe16acf2
JJ
53502018-06-06 Jakub Jelinek <jakub@redhat.com>
5351
5352 PR c++/86068
5353 * c-cppbuiltin.c (c_cpp_builtins): Fix a typo, set
5354 __cpp_transactional_memory to 201500 instead of 210500.
5355
4dbdb49b
JM
53562018-06-06 Jason Merrill <jason@redhat.com>
5357
5358 PR c++/85710 - ICE with -Wmemset-elt-size.
5359 * c-warn.c (warn_for_memset): Don't crash on incomplete element type.
5360
f8ad043f
JM
53612018-06-01 Jason Merrill <jason@redhat.com>
5362
5363 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_deduction_guides to
5364 201703.
5365
abc24d93
EB
53662018-06-01 Eric Botcazou <ebotcazou@adacore.com>
5367
5368 * c-ada-spec.c (dump_ada_declaration) <TYPE_DECL>: Generate a forward
5369 declaration for a typedef independently of whether the declaration of
5370 the subtype is generated.
5371
d258f4aa
MS
53722018-05-31 Martin Sebor <msebor@redhat.com>
5373
5374 PR c/82063
5375 * c.opt (-Wno-alloc-size-larger-than): New option.
5376
b67b9225
DP
53772018-04-22 David Pagan <dave.pagan@oracle.com>
5378
5379 PR c/55976
5380 * c-opts.c (c_common_post_options): Set default for warn_return_type
ab20d992 5381 for C++/C++ with ObjC extensions only. For C, makes it possible to
b67b9225
DP
5382 differentiate between default (no option), -Wreturn-type, and
5383 -Wno-return-type.
5384
04eb9c55
JM
53852018-05-29 Jason Merrill <jason@redhat.com>
5386
5387 * c.opt (Winit-list-lifetime): New flag.
5388
b0c31bc6
BE
53892018-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
5390
5391 * c-lex.c (get_fileinfo): Use splay_tree_compare_strings and
5392 splay_tree_delete_pointers.
5393
44284983
JJ
53942018-05-26 Jakub Jelinek <jakub@redhat.com>
5395
5396 PR bootstrap/85921
5397 * c-warn.c (diagnose_mismatched_attributes): Remove unnecessary
5398 noinline variable to workaround broken kernel headers.
5399
b46b715d
JM
54002018-05-18 Jason Merrill <jason@redhat.com>
5401
5402 * c.opt (Wdeprecated-copy): New flag.
5403
40659769
ML
54042018-05-17 Martin Liska <mliska@suse.cz>
5405
5406 * c-warn.c (overflow_warning): Do not use
5407 space in between 'G_' and '('.
5408
403962ea
JM
54092018-05-09 Jason Merrill <jason@redhat.com>
5410
5411 * c-common.c (valid_array_size_p): Add complain parameter.
5412 * c-common.h: ...which defaults to true.
5413
1c9ee609
JJ
54142018-05-11 Jakub Jelinek <jakub@redhat.com>
5415
5416 PR c/85696
5417 * c-omp.c (c_omp_predetermined_sharing): Return
5418 OMP_CLAUSE_DEFAULT_SHARED for artificial vars with integral type.
5419
19916065
ML
54202018-05-11 Martin Liska <mliska@suse.cz>
5421
92a285c1 5422 PR sanitizer/85556
19916065
ML
5423 * c-attribs.c (handle_no_sanitize_attribute): Iterate all
5424 TREE_LIST values.
5425
79e7b1fe
JJ
54262018-05-10 Jakub Jelinek <jakub@redhat.com>
5427
5428 PR c++/85662
5429 * c-common.h (fold_offsetof_1): Removed.
5430 (fold_offsetof): Add TYPE argument defaulted to size_type_node and
5431 CTX argument defaulted to ERROR_MARK.
5432 * c-common.c (fold_offsetof_1): Renamed to ...
5433 (fold_offsetof): ... this. Remove wrapper function. Add TYPE
5434 argument, convert the pointer constant to TYPE and use size_binop
5435 with PLUS_EXPR instead of fold_build_pointer_plus if type is not
5436 a pointer type. Adjust recursive calls.
5437
86c12f76
EB
54382018-05-10 Eric Botcazou <ebotcazou@adacore.com>
5439
5440 PR c++/85400
5441 * c-attribs.c (handle_visibility_attribute): Do not set no_add_attrs.
5442
ee336e84
NS
54432018-05-07 Nathan Sidwell <nathan@acm.org>
5444
5445 * c.opt (ffor-scope): Remove functionality, issue warning.
5446
6c072e21
NS
54472018-05-03 Nathan Sidwell <nathan@acm.org>
5448
5449 * c.opt (ffriend-injection): Remove functionality, issue warning.
5450
2cc7d3a7
DM
54512018-05-01 David Malcolm <dmalcolm@redhat.com>
5452
5453 PR c/84258
5454 * c-format.c (struct format_check_results): Add field
5455 "number_non_char".
5456 (check_format_info): Initialize it, and warn if encountered.
5457 (check_format_arg): Distinguish between wide char and
5458 everything else when detecting arrays of non-char.
5459
7761dfbe
DM
54602018-04-30 David Malcolm <dmalcolm@redhat.com>
5461
5462 * c-format.c (get_corrected_substring): Update for
5463 location_get_source_line returning a char_span. Use a char_span
5464 when handling the prefix of the correction.
5465 * c-indentation.c (get_visual_column): Update for
5466 location_get_source_line returning a char_span.
5467 (get_first_nws_vis_column): Likewise.
5468
62e98ef1
DM
54692018-03-29 David Malcolm <dmalcolm@redhat.com>
5470
5471 PR c++/84269
5472 * known-headers.cc (get_stdlib_header_for_name): Add various names
5473 from <assert.h>, <string.h>, and <memory.h>; add more names from
5474 <stdio.h>.
5475
a7dea617
JJ
54762018-03-27 Jakub Jelinek <jakub@redhat.com>
5477
5478 PR c++/85061
5479 * c-common.c (fold_offsetof_1) <case COMPOUND_EXPR>: Assert that
5480 get_base_address of the second operand is a VAR_P, rather than the
5481 operand itself, and use gcc_checking_assert instead of gcc_assert.
5482
889a3a30
MP
54832018-03-23 Marek Polacek <polacek@redhat.com>
5484
5485 PR c++/85045
5486 * c-pretty-print.c (c_pretty_printer::multiplicative_expression)
5487 <case RDIV_EXPR>: Tweak condition.
5488
452154b9
EB
54892018-03-20 Eric Botcazou <ebotcazou@adacore.com>
5490
5491 * c-ada-spec.c (pp_ada_tree_identifier): Deal specifically with _Bool.
5492
63ecb626
JJ
54932018-03-16 Jakub Jelinek <jakub@redhat.com>
5494
ce811fc4
JJ
5495 PR c/84909
5496 * c-warn.c (conversion_warning): Replace "to to" with "to" in
5497 diagnostics.
5498
63ecb626
JJ
5499 PR c/84910
5500 * c-warn.c (diagnose_mismatched_attributes): Remove trailing space from
5501 diagnostics.
5502
a1295eec
RB
55032018-03-16 Richard Biener <rguenther@suse.de>
5504
5505 PR c/84873
5506 * c-gimplify.c (c_gimplify_expr): Revert previous change. Instead
5507 unshare the possibly folded expression.
5508
919674fb
RB
55092018-03-15 Richard Biener <rguenther@suse.de>
5510
5511 PR c/84873
5512 * c-gimplify.c (c_gimplify_expr): Do not fold expressions.
5513
f99309b2
MS
55142018-03-13 Martin Sebor <msebor@redhat.com>
5515
5516 PR tree-optimization/84725
5517 * c-attribs.c (handle_nonstring_attribute): Allow attribute nonstring
5518 with all three narrow character types, including their qualified forms.
5519
e9b9fa4c
MS
55202018-03-12 Martin Sebor <msebor@redhat.com>
5521
5522 PR tree-optimization/83456
ab20d992 5523 * c-common.c (check_function_restrict): Return bool.
e9b9fa4c
MS
5524 Restore checking of bounded built-in functions.
5525 (check_function_arguments): Also return the result
5526 of warn_for_restrict.
ab20d992
JJ
5527 * c-common.c (check_function_restrict): Return bool.
5528 * c-warn.c (warn_for_restrict): Return bool.
e9b9fa4c 5529
0805d020
MP
55302018-03-02 Marek Polacek <polacek@redhat.com>
5531
5532 PR c++/84171
5533 * c-warn.c (warn_for_sign_compare): Bail out if any of the operands
5534 is erroneous.
5535
ed2a2f08
TS
55362018-03-02 Thomas Schwinge <thomas@codesourcery.com>
5537
5538 * c-attribs.c (c_common_attribute_table): Remove "cilk simd
5539 function".
5540
90abdde0
MP
55412018-03-01 Marek Polacek <polacek@redhat.com>
5542
5543 PR c++/84639
5544 * c-attribs.c (common_handle_aligned_attribute): Don't use invalid
5545 alignment in computation.
5546
c6db43fa
EB
55472018-02-28 Eric Botcazou <ebotcazou@adacore.com>
5548
5549 * c-ada-spec.c (dump_ada_node) <NULLPTR_TYPE>: New case.
5550 <REAL_TYPE>: Deal specifically with _Float128/__float128.
5551
9e25c7ed
EB
55522018-02-28 Eric Botcazou <ebotcazou@adacore.com>
5553
5554 * c-ada-spec.c (dump_ada_double_name) <ENUMERAL_TYPE>: New case.
5555 (is_char_array): Take a type instead of a declaration.
5556 (dump_ada_array_type): Likewise.
5557 (is_simple_enum): Minor tweak.
5558 (dump_ada_enum_type): New function extracted from...
5559 (dump_ada_node) <ENUMERAL_TYPE>: ...here. Invoke it.
5560 <INTEGER_TYPE>: Remove unreachable code.
5561 <RECORD_TYPE>: Likewise. Minor tweaks.
5562 (dump_nested_type) <ARRAY_TYPE>: Adjust to above changes.
5563 <ENUMERAL_TYPE>: New case.
5564 <RECORD_TYPE>: Factor out common code.
5565 (dump_ada_declaration) <ARRAY_TYPE>: Adjust to above changes.
5566 Minor tweaks. Deal with enumeral types.
5567 (dump_ada_structure): Minor tweaks.
5568
09de3550
EB
55692018-02-28 Eric Botcazou <ebotcazou@adacore.com>
5570
5571 * c-ada-spec.c (dump_ada_node) <POINTER_TYPE>: Do not use generic
5572 address for incomplete structures.
5573 (dump_forward_type): Do not bail out for incomplete structures.
5574 (dump_ada_declaration): Do not special-case incomplete structures
5575 for subtypes. Dump them as null records for types.
5576
095d8d4b
EB
55772018-02-28 Eric Botcazou <ebotcazou@adacore.com>
5578
5579 * c-ada-spec.c (dump_ada_import): Use boolean and fix formatting.
5580 (is_char_array): Fix formatting.
5581 (dump_template_types): Likewise.
5582 (dump_generic_ada_node): Rename into...
5583 (dump_ada_node): ...this.
5584 <POINTER_TYPE>: Remove superfluous space. Use generic address for
5585 incomplete structures and not for empty structures. Do not use it
5586 when forward declarations are needed.
5587 (dump_forward_type): New function.
5588 (dump_nested_types): Remove FORWARD parameter. Do not consider
5589 TREE_VISITED and do not generate a forward declaration. Only dump
5590 original nested types for nested declaration.
5591 (dump_nested_type) <POINTER_TYPE>: Call dump_forward_type.
5592 <ARRAY_TYPE>: Likewise if the component type is an anonymous pointer.
5593 <RECORD_TYPE>: Do not consider TREE_VISITED.
5594 (dump_ada_declaration): Use booleans and fix formatting throughout.
5595 <TYPE_DECL>: Skip incomplete structures and not empty structures.
5596 Call dump_forward_type instead of dump_nested_types for a typedef.
5597 Remove superfluous check and adjust call to dump_nested_types.
5598 <POINTER_TYPE>: Call dump_forward_type and fall through.
5599 (dump_ada_struct_decl): Rename into...
5600 (dump_ada_structure): ...this. Do not special-case empty structures.
5601
d4cfd486
MS
56022018-02-27 Martin Sebor <msebor@redhat.com>
5603
5604 PR c++/83871
5605 * c.opt (-Wmissing-attributes): New option.
5606
b22dbd03
ML
56072018-02-21 Martin Liska <mliska@suse.cz>
5608
5609 * c.opt (Wcatch-value=): Add IntegerRange.
5610
883dfe2a
JM
56112018-02-15 Jason Merrill <jason@redhat.com>
5612
5613 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_deduction_guides.
5614
0444aa9c
NS
56152018-02-09 Nathan Sidwell <nathan@acm.org>
5616
5617 PR c/84293
5618 * c-common.h (strict_aliasing_warning): Drop OTYPE arg, insert LOC
5619 arg.
5620 * c-warn.c (strict_aliasing_warning): Drop OTYPE arg, require LOC
5621 arg. Adjust.
5622
cea71f0a
MS
56232018-02-09 Martin Sebor <msebor@redhat.com>
5624
5625 PR lto/84212
5626 * c.opt (-Wstringop-overflow, -Warray-bounds): Add LTO.
5627 (-Walloc-size-larger-than, -Wformat-truncation=): Same.
5628 (-Wmaybe-uninitialized, -Wnonnull, -Wrestrict): Same.
5629 (-Wstrict-overflow, -Wsuggest-attribute): Same.
5630 (-Wuninitialized): Same.
5631
8c8b7be5
EB
56322018-02-09 Eric Botcazou <ebotcazou@adacore.com>
5633
5634 * c-ada-spec.c (dump_ada_declaration): Do not generate the 'constant'
5635 keyword for components.
5636
7c30b12a
PC
56372018-02-02 Paolo Carlini <paolo.carlini@oracle.com>
5638
5639 * c-common.h (DECL_UNNAMED_BIT_FIELD): New.
5640
eece7fe5
JK
56412018-02-02 Julia Koval <julia.koval@intel.com>
5642
5643 * c-common.h (omp_clause_mask): Move to wide_int_bitmask.h.
5644
7d07a93a
MP
56452018-01-29 Marek Polacek <polacek@redhat.com>
5646
5647 PR c/83966
5648 * c-format.c (check_function_format): Check current_function_decl.
5649
53723269
JJ
56502018-01-27 Jakub Jelinek <jakub@redhat.com>
5651
5652 * c-cppbuiltin.c (c_cpp_builtins): Use ggc_strdup for the fp_suffix
5653 argument.
5654 (LAZY_HEX_FP_VALUES_CNT): Define.
5655 (lazy_hex_fp_values): Allow up to LAZY_HEX_FP_VALUES_CNT lazy hex fp
5656 values rather than just 12.
5657 (builtin_define_with_hex_fp_value): Likewise.
5658
7365279f
BK
56592018-01-18 Boris Kolpackov <boris@codesynthesis.com>
5660
92a285c1
ML
5661 PR other/70268
5662 * c.opt (-fmacro-prefix-map): New option.
5663 * c-opts.c (c_common_handle_option): Handle it.
5664 * c-lex.c (init_c_lex): Set remap_filename cpp callback.
5665 * c-ppoutput.c (init_pp_output): Likewise.
7365279f 5666
bb9869d5
DM
56672018-01-17 David Malcolm <dmalcolm@redhat.com>
5668
5669 PR c++/83814
5670 * c-common.c (fold_for_warn): Move to c/c-fold.c and cp/expr.c.
5671
68dc87c3
EB
56722018-01-10 Eric Botcazou <ebotcazou@adacore.com>
5673
5674 * c-ada-spec.c (dump_number): Add FLOAT_P parameter.
5675 Skip 'f' and 'F' characters if it is true.
5676 (store_ada_macro): Minor tweak.
5677 (dump_ada_macros) <CPP_COMMENT>: Likewise.
5678 <CPP_WSTRING>: Likewise.
5679 <CPP_STRING>: Output '&' in the buffer if not the first string.
5680 <CPP_NUMBER>: Adjust calls to dump_number.
5681
9a004410
DM
56822018-01-10 David Malcolm <dmalcolm@redhat.com>
5683
5684 PR c++/43486
5685 * c-common.c: Include "selftest.h".
5686 (get_atomic_generic_size): Perform the test for integral type
5687 before the range test for any integer constant, fixing indentation
5688 of braces. Call fold_for_warn before testing for an INTEGER_CST.
5689 (reject_gcc_builtin): Strip any location wrapper from EXPR.
5690 (selftest::test_fold_for_warn): New function.
5691 (selftest::c_common_c_tests): New function.
5692 (selftest::c_family_tests): Call it, and
5693 selftest::c_pretty_print_c_tests.
5694 * c-common.h (selftest::c_pretty_print_c_tests): New decl.
5695 * c-format.c (check_format_arg): Convert VAR_P check to a
5696 fold_for_warn.
5697 * c-pretty-print.c: Include "selftest.h".
5698 (pp_c_cast_expression): Don't print casts for location wrappers.
5699 (selftest::assert_c_pretty_printer_output): New function.
5700 (ASSERT_C_PRETTY_PRINTER_OUTPUT): New macro.
5701 (selftest::test_location_wrappers): New function.
5702 (selftest::c_pretty_print_c_tests): New function.
5703 * c-warn.c (warn_for_memset): Call fold_for_warn on the arguments.
5704
5c0caeb3
RS
57052018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
5706 Alan Hayward <alan.hayward@arm.com>
5707 David Sherwood <david.sherwood@arm.com>
5708
5709 * c-common.c (c_common_type_for_mode): Handle MODE_VECTOR_BOOL.
5710
73a699ae
RS
57112018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
5712 Alan Hayward <alan.hayward@arm.com>
5713 David Sherwood <david.sherwood@arm.com>
5714
5715 * c-ubsan.c (ubsan_instrument_shift): Treat GET_MODE_BITSIZE
5716 as polynomial.
5717
928686b1
RS
57182018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
5719 Alan Hayward <alan.hayward@arm.com>
5720 David Sherwood <david.sherwood@arm.com>
5721
5722 * c-common.c (vector_types_convertible_p, c_build_vec_perm_expr)
5723 (convert_vector_to_array_for_subscript): Handle polynomial
5724 TYPE_VECTOR_SUBPARTS.
5725 (c_common_type_for_mode): Check valid_vector_subparts_p.
5726 * c-pretty-print.c (pp_c_initializer_list): Handle polynomial
5727 VECTOR_CST_NELTS.
5728
85ec4feb
JJ
57292018-01-03 Jakub Jelinek <jakub@redhat.com>
5730
5731 Update copyright years.
5732
170a8bd6 57332017-12-22 Mike Stump <mikestump@comcast.net>
92a285c1 5734 Eric Botcazou <ebotcazou@adacore.com>
170a8bd6
EB
5735
5736 * c-pragma.c (init_pragma): Register pragma GCC unroll.
5737 * c-pragma.h (enum pragma_kind): Add PRAGMA_UNROLL.
5738
ab20d992 57392017-12-22 Alexandre Oliva <aoliva@redhat.com>
18408e96
AO
5740
5741 PR debug/83527
5742 PR debug/83419
5743 * c-semantics.c (only_debug_stmts_after_p): New.
5744 (pop_stmt_list): Clear side effects in debug-only stmt list.
5745 Check for single nondebug stmt followed by debug stmts only.
5746
c12d20d4
AO
57472017-12-21 Alexandre Oliva <aoliva@redhat.com>
5748
5749 PR debug/83419
5750 * c-semantics.c (pop_stmt_list): Propagate side effects from
5751 single nondebug stmt to container list.
5752
01512446
JJ
57532017-12-19 Jakub Jelinek <jakub@redhat.com>
5754
5755 * known-headers.cc (get_stdlib_header_for_name): Replace Yoda
5756 conditions with typical order conditions.
5757
82cfbd01
MP
57582017-12-18 Marek Polacek <polacek@redhat.com>
5759
5760 * c-warn.c (warn_logical_operator): Return early if -Wlogical-op is
5761 not in effect.
5762
99da11ec
MS
57632017-12-17 Martin Sebor <msebor@redhat.com>
5764
5765 * c-attribs.c (common_handle_aligned_attribute): Avoid issuing
5766 an error for attribute warn_if_not_aligned.
5767
cc8bea0a
MS
57682017-12-16 Martin Sebor <msebor@redhat.com>
5769
5770 PR tree-optimization/78918
5771 * c-common.c (check_function_restrict): Avoid checking built-ins.
5772 * c.opt (-Wrestrict): Include in -Wall.
5773
4849deb1
JJ
57742017-12-15 Jakub Jelinek <jakub@redhat.com>
5775
5776 * c-attribs.c (c_common_attribute_table,
5777 c_common_format_attribute_table): Swap affects_type_identity
5778 and handler fields, adjust comments.
5779
c65e18d3
BE
57802017-12-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
5781
5782 * c.opt (Wcast-function-type): New warning option.
5783 * c-lex.c (get_fileinfo): Avoid warning.
5784 * c-ppoutput.c (scan_translation_unit_directives_only): Remove cast.
5785
2004617a
QZ
57862017-12-14 Qing Zhao <qing.zhao@oracle.com>
5787
7365279f 5788 PR middle_end/79538
2004617a
QZ
5789 * c-cppbuiltin.c (builtin_define_with_hex_fp_value):
5790 Adjust the size of buf1 and buf2, add a new buf to avoid
5791 format-overflow warning.
5792
ab20d992 57932017-12-12 Alexandre Oliva <aoliva@redhat.com>
96a95ac1
AO
5794
5795 * c-semantics.c (pop_stmt_list): Move begin stmt marker into
5796 subsequent statement list.
5797
5d9ae53d
MS
57982017-12-07 Martin Sebor <msebor@redhat.com>
5799
5800 PR c/81544
5801 PR c/81566
5802 * c-attribs.c (attr_aligned_exclusions): New array.
5803 (attr_alloc_exclusions, attr_cold_hot_exclusions): Same.
5804 (attr_common_exclusions, attr_const_pure_exclusions): Same.
5805 (attr_gnu_inline_exclusions, attr_inline_exclusions): Same.
5806 (attr_noreturn_exclusions, attr_returns_twice_exclusions): Same.
5807 (attr_warn_unused_result_exclusions): Same.
5808 (handle_hot_attribute, handle_cold_attribute): Simplify.
5809 (handle_const_attribute): Warn on function returning void.
5810 (handle_pure_attribute): Same.
5811 (handle_aligned_attribute): Diagnose conflicting attribute
5812 specifications.
5813 * c-warn.c (diagnose_mismatched_attributes): Simplify.
5814
c79144f8
DM
58152017-12-06 David Malcolm <dmalcolm@redhat.com>
5816
5817 PR c/83236
5818 * c-common.c (selftest::c_family_tests): Call
5819 selftest::c_spellcheck_cc_tests.
5820 * c-common.h (selftest::c_spellcheck_cc_tests): New decl.
5821 * c-spellcheck.cc: Include "selftest.h".
5822 (name_reserved_for_implementation_p): New function.
5823 (should_suggest_as_macro_p): New function.
5824 (find_closest_macro_cpp_cb): Move the check for NT_MACRO to
5825 should_suggest_as_macro_p and call it.
5826 (selftest::test_name_reserved_for_implementation_p): New function.
5827 (selftest::c_spellcheck_cc_tests): New function.
5828 * c-spellcheck.h (name_reserved_for_implementation_p): New decl.
5829
613bc14f
DM
58302017-12-06 David Malcolm <dmalcolm@redhat.com>
5831
5832 * c-spellcheck.cc: New file, taken from macro-handling code in
5833 spellcheck-tree.c.
5834 * c-spellcheck.h: New file, taken from macro-handling code in
5835 spellcheck-tree.h.
5836
e76c7157
JJ
58372017-12-01 Jakub Jelinek <jakub@redhat.com>
5838
5839 * c-attribs.c (c_common_attribute_table): Remove "cilk simd function"
5840 attribute.
5841 (handle_simd_attribute): Don't check for "cilk simd function"
5842 attribute. Reindent, formatting changes.
5843
b0da4034
JK
58442017-11-30 Julia Koval <julia.koval@intel.com>
5845
5846 * c-common.h (inv_list): Remove.
5847
058f0b9e
JJ
58482017-11-28 Jakub Jelinek <jakub@redhat.com>
5849
5850 PR sanitizer/81275
5851 * c-common.c (c_switch_covers_all_cases_p_1,
5852 c_switch_covers_all_cases_p): New functions.
5853 * c-common.h (c_switch_covers_all_cases_p): Declare.
5854
5e9d6aa4 58552017-11-28 Julia Koval <julia.koval@intel.com>
92a285c1 5856 Sebastian Peryt <sebastian.peryt@intel.com>
5e9d6aa4
JK
5857
5858 * array-notation-common.c: Delete.
5859 * c-cilkplus.c: Ditto.
5860 * c-common.c (_Cilk_spawn, _Cilk_sync, _Cilk_for): Remove.
5861 * c-common.def (ARRAY_NOTATION_REF): Remove.
5862 * c-common.h (RID_CILK_SPAWN, build_array_notation_expr,
5863 build_array_notation_ref, C_ORT_CILK, c_check_cilk_loop,
5864 c_validate_cilk_plus_loop, cilkplus_an_parts,
5865 cilk_ignorable_spawn_rhs_op,
5866 cilk_recognize_spawn): Remove.
5867 * c-gimplify.c (CILK_SPAWN_STMT): Remove.
5868 * c-omp.c: Remove CILK_SIMD check.
5869 * c-pragma.c: Ditto.
5870 * c-pragma.h: Remove CILK related pragmas.
5871 * c-pretty-print.c (c_pretty_printer::postfix_expression): Remove
5872 ARRAY_NOTATION_REF condition.
5873 (c_pretty_printer::expression): Ditto.
5874 * c.opt (fcilkplus): Remove.
5875 * cilk.c: Delete.
5876
1af4ebf5
MG
58772017-11-21 Marc Glisse <marc.glisse@inria.fr>
5878
5879 * c-pretty-print.c (pp_c_additive_expression,
5880 c_pretty_printer::expression): Handle POINTER_DIFF_EXPR.
5881
d44ed508
JJ
58822017-11-21 Jakub Jelinek <jakub@redhat.com>
5883
7d2f0f9b
JJ
5884 * c-common.c (get_nonnull_operand): Use tree_to_uhwi.
5885
d44ed508
JJ
5886 PR c++/83059
5887 * c-common.c (get_atomic_generic_size): Use TREE_INT_CST_LOW
5888 instead of tree_to_uhwi, formatting fix.
5889
26edace6
DM
58902017-11-20 David Malcolm <dmalcolm@redhat.com>
5891
5892 PR c/81404
5893 * known-headers.cc: New file, based on material from c/c-decl.c.
5894 (suggest_missing_header): Copied as-is.
5895 (get_stdlib_header_for_name): New, based on get_c_name_hint but
5896 heavily edited to add C++ support. Add some knowledge about
5897 <limits.h>, <stdint.h>, and <wchar.h>.
5898 * known-headers.h: Likewise.
5899
6c7a259b
DM
59002017-11-20 David Malcolm <dmalcolm@redhat.com>
5901
5902 * c-common.h (enum lookup_name_fuzzy_kind): Move to name-hint.h.
5903 (lookup_name_fuzzy): Likewise. Convert return type from
5904 const char * to name_hint. Add location_t param.
5905 * name-hint.h: New header.
5906
f9c59f7e
JJ
59072017-11-19 Jakub Jelinek <jakub@redhat.com>
5908
5909 PR c/66618
5910 PR c/69960
5911 * c-common.h (c_fully_fold): Add LVAL argument defaulted to false.
5912
1e39313a
JM
59132017-11-16 Joseph Myers <joseph@codesourcery.com>
5914
5915 * c.opt (-std=c17, std=gnu17, -std=iso9899:2017): Refer to 2018
5916 expected publication date of C17.
5917 (-std=c18, -std=gnu18, -std=iso9899:2018): New option aliases.
5918
3ca0dc60
JM
59192017-11-15 Joseph Myers <joseph@codesourcery.com>
5920
5921 PR c/81156
5922 * c-common.c (c_common_reswords): Add __builtin_tgmath.
5923 * c-common.h (enum rid): Add RID_BUILTIN_TGMATH.
5924
025d57f0
MS
59252017-11-10 Martin Sebor <msebor@redhat.com>
5926
5927 PR c/81117
5928 * c-common.c (catenate_strings): Use memcpy instead of strncpy.
5929 * c-warn.c (sizeof_pointer_memaccess_warning): Handle arrays.
5930 * c.opt (-Wstringop-truncation): New option.
5931
1b6fa695
ML
59322017-11-06 Martin Liska <mliska@suse.cz>
5933
5934 PR middle-end/82404
5935 * c-opts.c (c_common_post_options): Set -Wreturn-type for C++
5936 FE.
5937 * c.opt: Set default value of warn_return_type.
5938
64a5912c
DM
59392017-10-31 David Malcolm <dmalcolm@redhat.com>
5940
5941 * c-common.c (binary_op_error): Update for renaming of
5942 error_at_rich_loc.
5943 (c_parse_error): Likewise.
5944 * c-warn.c (warn_logical_not_parentheses): Likewise for
5945 renaming of inform_at_rich_loc.
5946 (warn_for_restrict): Likewise for renaming of
5947 warning_at_rich_loc_n.
5948
c76dc9c3
JM
59492017-10-30 Joseph Myers <joseph@codesourcery.com>
5950
5951 * c.opt (std=c17, std=gnu17, std=iso9899:2017): New options.
5952 * c-opts.c (set_std_c17): New function.
5953 (c_common_init_options): Use gnu17 as default C version.
5954 (c_common_handle_option): Handle -std=c17 and -std=gnu17.
5955
ee5fd23a
MM
59562017-10-27 Michael Meissner <meissner@linux.vnet.ibm.com>
5957
5958 * c-cppbuiltin.c (mode_has_fma): Add support for PowerPC KFmode.
5959 (c_cpp_builtins): If a machine has a fast fma _Float<N> and
5960 _Float<N>X variant, define __FP_FAST_FMA<N> and/or
5961 __FP_FAST_FMA<N>X.
5962
d1047465
MP
59632017-10-23 Marek Polacek <polacek@redhat.com>
5964
5965 PR c/82681
5966 * c-warn.c (warnings_for_convert_and_check): Fix typos.
5967
9e878cf1
EB
59682017-10-19 Eric Botcazou <ebotcazou@adacore.com>
5969
5970 * c-common.c (check_builtin_function_arguments): Also check arguments
5971 of __builtin_alloca_with_align_and_max.
5972
89b6abbb
DM
59732017-10-17 David Malcolm <dmalcolm@redhat.com>
5974
5975 * c-format.c (format_warning_at_char): Pass UNKNOWN_LOCATION
5976 rather than NULL to format_warning_va.
5977 (check_format_types): Likewise when calling format_type_warning.
5978 Remove code to extract source_ranges and source_range * in favor
5979 of just a location_t.
5980 (format_type_warning): Convert source_range * param to a
5981 location_t.
5982
39382c09
JJ
59832017-10-13 Jakub Jelinek <jakub@redhat.com>
5984
5985 * c-gimplify.c (c_gimplify_expr): Handle [LR]ROTATE_EXPR like
5986 [LR]SHIFT_EXPR.
5987
62e1c678
DM
59882017-10-12 David Malcolm <dmalcolm@redhat.com>
5989
5990 * c-common.c (enum missing_token_insertion_kind): New enum.
5991 (get_missing_token_insertion_kind): New function.
5992 (maybe_suggest_missing_token_insertion): New function.
5993 * c-common.h (maybe_suggest_missing_token_insertion): New decl.
5994
b90c9338
NS
59952017-10-11 Nathan Sidwell <nathan@acm.org>
5996
5997 * c-opts.c (add_prefixed_path): Change chain to incpath_kind.
5998 (c_common_handle_option): Update incpath_kind names.
5999
3a266bcd
ML
60002017-10-11 Martin Liska <mliska@suse.cz>
6001
6002 PR sanitizer/82490
6003 * c-attribs.c (handle_no_sanitize_attribute): Report directly
6004 Wattributes warning.
6005
8e6cdc90
RS
60062017-10-10 Richard Sandiford <richard.sandiford@linaro.org>
6007
6008 * c-ada-spec.c (dump_generic_ada_node): Use wi::to_wide when
6009 operating on trees as wide_ints.
6010 * c-common.c (pointer_int_sum): Likewise.
6011 * c-pretty-print.c (pp_c_integer_constant): Likewise.
6012 * c-warn.c (match_case_to_enum_1): Likewise.
6013 (c_do_switch_warnings): Likewise.
6014 (maybe_warn_shift_overflow): Likewise.
6015
802b38c9
JJ
60162017-10-10 Jakub Jelinek <jakub@redhat.com>
6017
6018 PR c/82437
6019 * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_wide
6020 instead of wide_int::from.
6021
4e34b338
JJ
60222017-10-06 Jakub Jelinek <jakub@redhat.com>
6023
6024 PR c/82437
6025 * c-warn.c (warn_tautological_bitwise_comparison): Instead of
6026 using to_widest use wide_int with the larger of the two precisions.
6027
4bc4b2b4
BE
60282017-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
6029
6030 * c-pretty-print.c (pp_c_parameter_type_list): Print ... for variadic
6031 functions.
6032
a1488398
RS
60332017-10-02 Richard Sandiford <richard.sandiford@linaro.org>
6034
6035 * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_widest
6036 when combining the original unconverted comparison operands.
6037
01c9fb68
JJ
60382017-09-29 Jakub Jelinek <jakub@redhat.com>
6039
6040 * c-attribs.c (handle_noipa_attribute): Don't add "stack_protect"
6041 attribute.
6042
6e3e8419
EB
60432017-09-29 Eric Botcazou <ebotcazou@adacore.com>
6044
6045 * c-ada-spec.c (to_ada_name): Add index parameter.
6046 (pp_ada_tree_identifier): Likewise.
6047 (dump_ada_macros): Adjust call to to_ada_name.
6048 (struct overloaded_name_hash): New type.
6049 (struct overloaded_name_hasher): Likewise.
6050 (overloaded_names): New hash table.
6051 (compute_overloading_index): New function.
6052 (dump_ada_decl_name): Call it and pass the result to
6053 pp_ada_tree_identifier.
6054 (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
6055 (dump_ada_function_declaration): Likewise.
6056 (dump_generic_ada_node): Likewise.
6057 (print_constructor): Likewise.
6058 (print_destructor): Likewise.
6059 (dump_ada_specs): Delete overloaded_names table.
6060
79310774
EB
60612017-09-29 Eric Botcazou <ebotcazou@adacore.com>
6062
6063 * c-ada-spec.c (max_ada_macros): Move around.
6064 (store_ada_macro_index): Likewise.
6065 (source_file): Rename into...
6066 (macro_source_file): ...this.
6067 (count_ada_macro): Move around.
6068 (store_ada_macro): Likewise.
6069 (compare_macro): Likewise.
6070 (print_ada_macros): Merge in...
6071 (dump_ada_macros): ...this.
6072 (source_file_base): Rename into...
6073 (current_source_file): ...this.
6074 (print_comment): Move around.
6075 (dump_ada_nodes): Call dump_ada_declaration directly.
6076 (struct with): Change type of limited field to bool.
6077 (append_withs): Change type of limited_access parameter to bool.
6078 (pp_ada_tree_identifie): Likewise.
6079 (dump_ada_decl_nam): Likewise.
6080 (dump_generic_ada_node): Likewise. Do not print the return type.
6081 (to_ada_name): Change type of space_found parameter to bool.
6082 (dump_ada_function_declaration): Return void and change type of
6083 parameters to bool. Also print the return type for a function.
6084 (print_ada_methods): Rename into...
6085 (dump_ada_methods): ...this.
6086 (print_ada_declaration): Rename into ...
6087 (dump_ada_declaration): ...this. Do not print the return type.
6088 (print_ada_struct_decl): Rename into...
6089 (dump_ada_struct_decl): ...this.
6090
7d386d45
JJ
60912017-09-29 Jakub Jelinek <jakub@redhat.com>
6092
6093 * c-attribs.c (handle_packed_attribute): Test DECL_C_BIT_FIELD
6094 rather than DECL_INITIAL.
6095 (common_handle_aligned_attribute): Likewise.
6096
ab20d992 60972017-09-20 Alexandre Oliva <aoliva@redhat.com>
9ed32e27
AO
6098
6099 * c.opt (gen-decls): Add RejectNegative.
6100
026a79f7
AS
61012017-09-15 Andrew Sutton <andrew.n.sutton@gmail.com>
6102 Jakub Jelinek <jakub@redhat.com>
6103
6104 Add support for -std=c++2a.
6105 * c-common.h (cxx_dialect): Add cxx2a as a dialect.
6106 * opt.c: Add options for -std=c++2a and -std=gnu++2a.
6107 * c-opts.c (set_std_cxx2a): New.
6108 (c_common_handle_option): Set options when -std=c++2a is enabled.
6109 (c_common_post_options): Adjust comments.
6110 (set_std_cxx14, set_std_cxx17): Likewise.
6111
4a8ca690
EB
61122017-09-15 Eric Botcazou <ebotcazou@adacore.com>
6113
6114 * c-pragma.c (handle_pragma_scalar_storage_order): Expand on error
6115 message for non-uniform endianness and issue a warning in C++.
6116
7b936140
JJ
61172017-09-15 Jakub Jelinek <jakub@redhat.com>
6118
6119 * c.opt (Wc++1z-compat): Change from option to undocumented alias.
6120 (Wc++17-compat): Change from undocumented alias to option.
6121 (Wnoexcept-type): Enable by Wc++17-compat instead of Wc++1z-compat,
6122 change C++1z to C++17 in description.
6123 (std=c++1z, std=gnu++1z): Change from option to undocumented
6124 deprecated alias.
6125 (std=c++17, std=gnu++17): Change from undocumented alias to option.
6126 Adjust description.
6127 * c-common.h (enum cxx_dialect): Rename cxx1z to cxx17.
6128 * c-opts.c (set_std_cxx1z): Rename to ...
6129 (set_std_cxx17): ... this.
6130 (c_common_handle_option): Rename OPT_std_c__1z to OPT_std_c__17
6131 and OPT_std_gnu__1z to OPT_std_gnu__17. Adjust set_std_cxx1z
7365279f 6132 caller.
7b936140
JJ
6133 (c_common_post_options): Use cxx17 instead of cxx1z. Adjust
6134 comments.
6135
12263f13
L
61362017-09-12 H.J. Lu <hongjiu.lu@intel.com>
6137
6138 * c-attribs.c (common_handle_aligned_attribute): Don't warn
6139 function alignment if warn_if_not_aligned_p is true.
6140
6836632e
NS
61412017-09-12 Nathan Sidwell <nathan@acm.org>
6142
6143 * c-common.c (field_decl_cmp, resort_data, resort_field_decl_cmp,
6144 resort_sorted_fields): Move to c/c-decl.c.
6145 * c-common.h (field_decl_cmp, resort_sorted_fields): Delete.
6146 (struct sorted_fields_type): Move to c/c-lang.h.
6147
019bf9ad
JW
61482017-09-09 Jonathan Wakely <jwakely@redhat.com>
6149
6150 PR c++/81852
6151 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_threadsafe_static_init.
6152
bc7fe952
MP
61532017-09-04 Marek Polacek <polacek@redhat.com>
6154
6155 PR c/81783
6156 * c-warn.c (warn_tautological_bitwise_comparison): New function.
6157 (warn_tautological_cmp): Call it.
6158
ab20d992 61592017-09-01 Boris Kolpackov <boris@codesynthesis.com>
de7c2c6a
BK
6160
6161 * c-opts.c (c_common_finish): Write dependency information even if
6162 there are errors.
6163
d2e05fcb
JJ
61642017-09-01 Jakub Jelinek <jakub@redhat.com>
6165
6166 PR c/81887
6167 * c-pragma.c (omp_pragmas): Move "ordered" entry from here to ...
6168 (omp_pragmas_simd): ... here.
6169 * c-omp.c (c_finish_omp_ordered): If clauses isn't simd clause alone,
6170 create new clauses list containing just simd clause.
6171
18e2a8b8
RS
61722017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
6173 Alan Hayward <alan.hayward@arm.com>
6174 David Sherwood <david.sherwood@arm.com>
6175
6176 * c-attribs.c (vector_mode_valid_p) Fold GET_MODE_INNER call
6177 into scalar_mode_supported_p call.
6178 (handle_mode_attribute): Update call to scalar_mode_supported_p.
6179
16d22000
RS
61802017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
6181 Alan Hayward <alan.hayward@arm.com>
6182 David Sherwood <david.sherwood@arm.com>
6183
6184 * c-common.c (c_common_fixed_point_type_for_size): Use opt_scalar_mode
6185 for the mode iterator.
6186
b397965c
RS
61872017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
6188 Alan Hayward <alan.hayward@arm.com>
6189 David Sherwood <david.sherwood@arm.com>
6190
6191 * c-lex.c (interpret_fixed): Use SCALAR_TYPE_MODE.
6192 * c-common.c (c_build_vec_perm_expr): Likewise.
6193
357b7604
RS
61942017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
6195 Alan Hayward <alan.hayward@arm.com>
6196 David Sherwood <david.sherwood@arm.com>
6197
6198 * c-common.c (c_common_type_for_mode): Use as_a <scalar_int_mode>.
6199
e05c94ba
RS
62002017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
6201 Alan Hayward <alan.hayward@arm.com>
6202 David Sherwood <david.sherwood@arm.com>
6203
6204 * c-attribs.c (handle_mode_attribute): Check for a scalar_int_mode
6205 before calling targetm.addr_space.valid_pointer_mode.
6206
5c20c4af
RS
62072017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
6208 Alan Hayward <alan.hayward@arm.com>
6209 David Sherwood <david.sherwood@arm.com>
6210
6211 * c-cppbuiltin.c (c_cpp_builtins): Use opt_scalar_float_mode.
6212
c94843d2 62132017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
92a285c1
ML
6214 Alan Hayward <alan.hayward@arm.com>
6215 David Sherwood <david.sherwood@arm.com>
c94843d2
RS
6216
6217 * c-common.c (c_common_fixed_point_type_for_size): Use new mode
6218 iterators.
6219 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
6220
4e10a5a7
RS
62212017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
6222 Alan Hayward <alan.hayward@arm.com>
6223 David Sherwood <david.sherwood@arm.com>
6224
6225 * c-cppbuiltin.c (mode_has_fma): Prefix mode names with E_ in
6226 case statements.
6227
130fcab0
ML
62282017-08-29 Martin Liska <mliska@suse.cz>
6229
6230 PR other/39851
6231 * c-common.c (parse_optimize_options): Add argument to function
6232 call.
6233 * c-pragma.c (handle_pragma_diagnostic): Likewise.
6234
14e18d71
DM
62352017-08-24 David Malcolm <dmalcolm@redhat.com>
6236
6237 * c-lex.c (interpret_float): Use token location
6238 when building an EXCESS_PRECISION_EXPR.
6239
2f687306
DM
62402017-08-21 David Malcolm <dmalcolm@redhat.com>
6241
6242 * c-common.c (check_function_arguments): Add "arglogs" param; pass
6243 it to check_function_format.
6244 * c-common.h (check_function_arguments): Add vec<location_t> *
6245 param.
6246 (check_function_format): Likewise.
6247 * c-format.c (struct format_check_context): Add field "arglocs".
6248 (check_function_format): Add param "arglocs"; pass it to
6249 check_format_info.
ab20d992 6250 (check_format_info): Add param "arglocs"; use it to initialize
2f687306
DM
6251 new field of format_ctx.
6252 (check_format_arg): Pass format_ctx->arglocs to new param of
6253 check_format_info_main.
6254 (class argument_parser): New field "arglocs".
6255 (argument_parser::argument_parser): Add "arglocs_" param and use
6256 it to initialize new field.
6257 (argument_parser::check_argument_type): Pass new arglocs field to
6258 check_format_types.
6259 (check_format_info_main): Add param "arglocs", and use it when
6260 constructing arg_parser.
6261 (check_format_types): Add param "arglocs"; use it if non-NULL when
6262 !EXPR_HAS_LOCATION (cur_param) to get at location information.
6263
00aa1fa2
L
62642017-08-18 H.J. Lu <hongjiu.lu@intel.com>
6265
6266 PR c/53037
6267 * c-attribs.c (handle_warn_if_not_aligned_attribute): New.
6268 (c_common_attribute_table): Add warn_if_not_aligned.
6269 (handle_aligned_attribute): Renamed to ...
6270 (common_handle_aligned_attribute): Remove argument, name, and add
6271 argument, warn_if_not_aligned. Handle warn_if_not_aligned.
6272 (handle_aligned_attribute): New.
6273 * c.opt: Add -Wif-not-aligned and -Wpacked-not-aligned.
6274
27be025d
MS
62752017-08-14 Martin Sebor <msebor@redhat.com>
6276
6277 PR c/81117
6278 * c-attribs.c (c_common_attribute_table): Add nonstring entry.
6279 (handle_nonstring_attribute): New function.
6280
da67acb9
MS
62812017-08-14 Martin Sebor <msebor@redhat.com>
6282
6283 PR c/81117
6284 * c-format.h (T89_G): New macro.
6285 * c-format.c (local_gcall_ptr_node): New variable.
6286 (init_dynamic_diag_info): Initialize it.
6287
a8b522b4
ML
62882017-08-11 Martin Liska <mliska@suse.cz>
6289
6290 * c-opts.c (c_common_post_options): Replace ASM_OUTPUT_DEF with
6291 TARGET_SUPPORTS_ALIASES.
6292
32129a17
DM
62932017-08-10 David Malcolm <dmalcolm@redhat.com>
6294
6295 * c-common.c (c_parse_error): Add rich_location * param, using it
6296 rather implicitly using input_location.
6297 * c-common.h (c_parse_error): Add rich_location * param.
6298
30af3a2b
MP
62992017-08-09 Marek Polacek <polacek@redhat.com>
6300
6301 * c-common.c (pointer_int_sum): Use true/false instead of 1/0.
6302 (c_common_truthvalue_conversion): Likewise.
6303 * c-omp.c (c_finish_omp_atomic): Likewise.
6304 * c-common.h (build_binary_op): Update declaration.
6305
314e6352
ML
63062017-08-08 Martin Liska <mliska@suse.cz>
6307
6308 * c-ada-spec.c: Include header files.
6309 * c-ubsan.c: Likewise.
6310 * c-warn.c: Likewise.
6311
56b5041c
JJ
63122017-08-07 Jakub Jelinek <jakub@redhat.com>
6313
6314 PR c/69389
6315 * c-omp.c (c_finish_omp_atomic): Handle atomics on bitfields.
6316
db440138
EB
63172017-08-07 Eric Botcazou <ebotcazou@adacore.com>
6318
6319 * c-ada-spec.c (has_nontrivial_methods): Test for FUNCTION_DECL.
6320 (print_ada_methods): Likewise.
6321 (print_ada_declaration): Likewise.
6322
577eec56
ML
63232017-08-07 Martin Liska <mliska@suse.cz>
6324
6325 * array-notation-common.c: Add new includes.
6326 * c-format.c( handle_format_attribute): Canonicalize a format
6327 function name.
6328 * c-lex.c (c_common_has_attribute): Canonicalize name of an
6329 attribute.
6330 * c-pretty-print.c: Add new include.
6331
b854df3c
EB
63322017-08-05 Eric Botcazou <ebotcazou@adacore.com>
6333
6334 * c-ada-spec.c (has_static_fields): Look only into variables.
6335 (print_constructor): Add TYPE parameter and use it for the name.
6336 (print_destructor): Likewise.
6337 (print_ada_declaration): Adjust to new constructor/destructor names.
6338 Adjust calls to print_constructor and print_destructor.
6339 (print_ada_struct_decl): Do not test TREE_STATIC on FIELD_DECL.
6340 Look only into variables in the final loop.
6341
9f2cb25e
EB
63422017-08-01 Eric Botcazou <ebotcazou@adacore.com>
6343
6344 * c-ada-spec.c (has_static_fields): Look only into fields.
6345 (dump_generic_ada_node): Small tweak.
6346 (dump_nested_types): Look only into fields.
6347 (print_ada_declaration): Look only into methods. Small tweak.
6348 (print_ada_struct_decl): Look only into fields. Use DECL_VIRTUAL_P.
6349
f4bcd9eb
EB
63502017-08-01 Eric Botcazou <ebotcazou@adacore.com>
6351
6352 * c-ada-spec.c (print_generic_ada_decl): Pass correctly-typed constant.
6353 (dump_ada_function_declaration): Likewise.
6354 (dump_generic_ada_node): Likewise.
6355 (print_ada_declaration): Add support for const-qualified variables.
6356
f34ebeb2
ML
63572017-07-31 Martin Liska <mliska@suse.cz>
6358
6359 PR sanitize/81530
6360 * c-ubsan.c (ubsan_maybe_instrument_array_ref):
6361 Guard condition with flag_sanitize_p also with current_function_decl
6362 non-null equality.
6363 (ubsan_maybe_instrument_reference_or_call): Likewise.
6364
218e5d04
UB
63652017-07-30 Uros Bizjak <ubizjak@gmail.com>
6366
6367 * c-format.c (asm_fprintf_char_table): Add 'z' to format_chars.
6368
942047f2
EB
63692017-07-29 Eric Botcazou <ebotcazou@adacore.com>
6370
6371 * c-ada-spec.c (dump_generic_ada_node): Take into account signedness
6372 for enumeral types.
6373 (print_ada_declaration): Add missing guard for record types.
6374
a40ff0ae
JJ
63752017-07-27 Jakub Jelinek <jakub@redhat.com>
6376
6377 PR c/45784
6378 * c-omp.c (c_finish_omp_for): If the condition is wrapped in
6379 rhs of COMPOUND_EXPR(s), skip them and readd their lhs into
6380 new COMPOUND_EXPRs around the rhs of the comparison.
6381
06bd22f6
MP
63822017-07-27 Marek Polacek <polacek@redhat.com>
6383
6384 PR c/81417
6385 * c-warn.c (warn_for_sign_compare): Tweak the warning message. Print
6386 the types.
6387
036ea399
JJ
63882017-07-27 Jakub Jelinek <jakub@redhat.com>
6389
6390 * c-attribs.c (c_common_attribute_table): Add noipa attribute.
6391 (handle_noipa_attribute): New function.
6392
417ca011
TD
63932017-07-07 Torsten Duwe <duwe@suse.de>
6394
6395 * c-attribs.c (c_common_attribute_table): Add entry for
6396 "patchable_function_entry".
6397
5aaa8fb4
NS
63982017-07-20 Nathan Sidwell <nathan@acm.org>
6399
6400 Remove TYPE_METHODS.
6401 * c-ada-spec.c (is_tagged_type, has_nontrivial_methods,
6402 dump_ada_template, print_ada_methods,
6403 print_ada_declaration): Member fns are on TYPE_FIELDS.
6404
ff22eb12
NS
64052017-07-18 Nathan Sidwell <nathan@acm.org>
6406
6407 * c-warn.c (warn_for_memset): Use TYPE_{MIN,MAX}_VALUE.
6408
eea77d1f
DM
64092017-07-14 David Malcolm <dmalcolm@redhat.com>
6410
6411 * c-common.c (try_to_locate_new_include_insertion_point): New
6412 function.
6413 (per_file_includes_t): New typedef.
6414 (added_includes_t): New typedef.
6415 (added_includes): New variable.
6416 (maybe_add_include_fixit): New function.
6417 * c-common.h (maybe_add_include_fixit): New decl.
6418
281ac396
MS
64192017-07-10 Martin Sebor <msebor@redhat.com>
6420
6421 PR other/81345
6422 * c.opt (-Wstringop-overflow): Set defaults in LangEnabledBy.
6423
b6f43128
DM
64242017-07-06 David Malcolm <dmalcolm@redhat.com>
6425
6426 * c-common.c (selftest::c_family_tests): New.
6427 * c-common.h (selftest::run_c_tests): Move decl to c/c-lang.h.
6428 (selftest::c_family_tests): New decl.
6429
efbf55b0
MP
64302017-07-04 Marek Polacek <polacek@redhat.com>
6431
6432 PR c/81231
6433 * c-common.c (sync_resolve_size): Give error for pointers to incomplete
6434 types.
6435
6c86bd88
MP
64362017-07-04 Marek Polacek <polacek@redhat.com>
6437
6438 * c-warn.c (warn_if_unused_value): Remove WITH_CLEANUP_EXPR handling.
6439
17a7218b
ML
64402017-06-28 Martin Liska <mliska@suse.cz>
6441
6442 PR ipa/81128
6443 * c-attribs.c (handle_alias_ifunc_attribute): Append ifunc alias
6444 to a function declaration.
6445
63010089
ML
64462017-06-28 Martin Liska <mliska@suse.cz>
6447
6448 PR driver/79659
6449 * c.opt: Add IntegerRange to various options.
6450
3e2becc4
MP
64512017-06-26 Marek Polacek <polacek@redhat.com>
6452
6453 PR c/80116
6454 * c-common.h (warn_for_multistatement_macros): Declare.
6455 * c-warn.c: Include "c-family/c-indentation.h".
6456 (warn_for_multistatement_macros): New function.
6457 * c.opt (Wmultistatement-macros): New option.
6458 * c-indentation.c (guard_tinfo_to_string): No longer static.
6459 Change the parameter type to "enum rid". Handle RID_SWITCH.
6460 * c-indentation.h (guard_tinfo_to_string): Declare.
6461
2db9b7cd
MG
64622017-06-23 Marc Glisse <marc.glisse@inria.fr>
6463
6464 * c-common.c (c_common_nodes_and_builtins): Use builtin_structptr_types.
6465
c3684b7b
MS
64662017-06-15 Martin Sebor <msebor@redhat.com>
6467
6468 PR c++/80560
6469 * c.opt (-Wclass-memaccess): New option.
6470
e72c4afd
BK
64712017-06-14 Boris Kolpackov <boris@codesynthesis.com>
6472
6473 * c-opts.c (c_common_finish): Handle '-' special value to -MF.
6474
8a516588
MP
64752017-06-13 Marek Polacek <polacek@redhat.com>
6476
6477 PR objc/80949
6478 * c-warn.c (do_warn_duplicated_branches): Return if any of the
6479 branches is null.
6480
45b2222a
ML
64812017-06-13 Martin Liska <mliska@suse.cz>
6482
6483 PR sanitize/78204
6484 * c-attribs.c (add_no_sanitize_value): New function.
6485 (handle_no_sanitize_attribute): Likewise.
6486 (handle_no_sanitize_address_attribute): Use the function.
6487 (handle_no_sanitize_thread_attribute): New function.
6488 (handle_no_address_safety_analysis_attribute): Use
6489 add_no_sanitize_value.
6490 (handle_no_sanitize_undefined_attribute): Likewise.
6491 * c-common.h: Declare new functions.
6492 * c-ubsan.c (ubsan_instrument_division): Use sanitize_flags_p.
6493 (ubsan_instrument_shift): Likewise.
6494 (ubsan_instrument_bounds): Likewise.
6495 (ubsan_maybe_instrument_array_ref): Likewise.
6496 (ubsan_maybe_instrument_reference_or_call): Likewise.
6497
a01f151f
JM
64982017-06-11 Jason Merrill <jason@redhat.com>
6499
6500 * c-ada-spec.c, c-pragma.c: Use id_equal.
6501
3de4ac6d
MP
65022017-06-04 Marek Polacek <polacek@redhat.com>
6503
6504 PR c/80919
6505 * c-format.c (matching_type_p): Return false if any of the types
6506 requires structural equality.
6507
2474f48f
MS
65082017-06-02 Martin Sebor <msebor@redhat.com>
6509
6510 PR c/80892
6511 * c-warn.c (conversion_warning): Use -Wconversion for integer
6512 conversion and -Wfloat-conversion for floating one.
6513
40ffd95f
BE
65142017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
6515
6516 * c.opt (Wsizeof-pointer-div): New warning option.
6517
3fa4634c
VR
65182017-06-01 Volker Reichelt <v.reichelt@netcologne.de>
6519
6520 * c.opt (Wcatch-value): New shortcut for Wcatch-value=1.
6521 (Wcatch-value=1): Enable by -Wall.
6522
f012c8ef
DM
65232017-05-30 David Malcolm <dmalcolm@redhat.com>
6524
6525 * c-format.c (gcc_cxxdiag_char_table): Add 'H' and 'I' to
6526 format_chars.
6527 * c.opt (fdiagnostics-show-template-tree): New option.
6528 (felide-type): New option.
6529
63dbcd13
VR
65302017-05-25 Volker Reichelt <v.reichelt@netcologne.de>
6531
6532 * c.opt (Wcatch-value=): New C++ warning flag.
6533
be136b5c
NS
65342017-05-24 Nathan Sidwell <nathan@acm.org>
6535
6536 * c=common.c (field_decl_cmp, resort_field_decl_cmp): Adjust T
6537 const casts to avoid warning.
6538
3cd211af
MS
65392017-05-24 Martin Sebor <msebor@redhat.com>
6540
6541 PR c/80731
6542 * c-common.h (unsafe_conversion_p): Add a function argument.
6543 * c-common.c (unsafe_conversion_p): Same.
6544 Add type names and values to diagnostics.
6545 (scalar_to_vector): Adjust.
6546 * c-warn.c (constant_expression_error): Add a function argument.
6547 Add type names and values to diagnostics.
6548 (conversion_warning): Add a function argument.
6549 Add type names and values to diagnostics.
6550 (warnings_for_convert_and_check): Same.
6551
1ff7be5a
JM
65522017-05-19 Jason Merrill <jason@redhat.com>
6553
6554 * c-warn.c (match_case_to_enum_1): Don't warn about enums with no
6555 enumerators.
6556
ff502317
BE
65572017-05-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
6558
6559 * c-format.c (locus): Move out of function scope,
6560 add GTY attribute.
6561
2a8a8d7b
NS
65622017-05-19 Nathan Sidwell <nathan@acm.org>
6563
6564 * c-opts.c (class_dump_file, class_dump_flags): Delete.
6565 (c_common_parse_file): Remove class dump handling.
6566 (get_dump_info): Likewise.
6567
39aac208
RB
65682017-05-19 Richard Biener <rguenther@suse.de>
6569
6570 PR c++/80593
6571 * c-warn.c (strict_aliasing_warning): Do not warn for accesses
6572 to alias-set zero memory.
6573
6ecd2339
BE
65742017-05-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
6575
6576 * c-format.c (local_tree_type_node): Add GTY attribute.
6577
6574d78e
MP
65782017-05-18 Marek Polacek <polacek@redhat.com>
6579
6580 * c-common.c (c_common_type_for_size): Use NULL_TREE instead of 0.
6581 (c_common_fixed_point_type_for_size): Likewise.
6582 (c_common_type_for_mode): Likewise.
6583 (shorten_compare): Likewise.
6584 (c_promoting_integer_type_p): Use false/true instead of 0/1.
6585 * c-pragma.c (maybe_apply_renaming_pragma): Use NULL_TREE instead of 0.
6586
e3455240
MP
65872017-05-18 Marek Polacek <polacek@redhat.com>
6588
6589 * c-common.c (self_promoting_args_p): Change the return type to bool.
6590 Use false/true instead of 0/1.
6591 * c-common.h (self_promoting_args_p): Update.
6592
3fa8871b
MP
65932017-05-17 Marek Polacek <polacek@redhat.com>
6594
6595 * c-common.c: Use NULL_TREE instead of 0 where appropriate.
6596 * c-warn.c: Likewise.
6597
b42cc3ca
VV
65982017-05-17 Ville Voutilainen <ville.voutilainen@gmail.com>
6599
6600 Implement new C++ intrinsics __is_assignable and __is_constructible.
6601 * c-common.c (__is_assignable, __is_constructible): New.
6602 * c-common.h (RID_IS_ASSIGNABLE, RID_IS_CONSTRUCTIBLE): Likewise.
6603
1a817418
ML
66042017-05-17 Martin Liska <mliska@suse.cz>
6605
6606 * c-common.h: Introduce dump_flags_t type and
6607 use it instead of int type.
6608 * c-gimplify.c (c_genericize): Likewise.
6609 * c-opts.c: Likewise.
6610
b2fa0a8b
MP
66112017-05-17 Marek Polacek <polacek@redhat.com>
6612
6613 * c-common.c (c_save_expr): Remove.
6614 (c_common_truthvalue_conversion): Remove a call to c_save_expr.
6615 * c-common.h (c_save_expr): Remove declaration.
6616
31c2d57d
VR
66172017-05-09 Volker Reichelt <v.reichelt@netcologne.de>
6618
6619 PR c/35441
6620 * c-pretty-print.c (c_pretty_printer::expression): Handle MAX_EXPR,
6621 MIN_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, LROTATE_EXPR, RROTATE_EXPR.
6622 (c_pretty_printer::postfix_expression): Handle MAX_EXPR, MIN_EXPR.
6623 (c_pretty_printer::multiplicative_expression): Handle EXACT_DIV_EXPR,
6624 RDIV_EXPR.
6625 (pp_c_shift_expression): Handle LROTATE_EXPR, RROTATE_EXPR.
6626
684f84de
MP
66272017-05-09 Marek Polacek <polacek@redhat.com>
6628
6629 PR c/80525
6630 * c-warn.c (unwrap_c_maybe_const): New.
6631 (warn_logical_operator): Call it.
6632
641da50a
NS
66332017-05-09 Nathan Sidwell <nathan@acm.org>
6634
6635 * c-common.c (c_register_builtin_type): Use pushdecl lang_hook.
6636 * c-common.h (pushdecl_top_level, pushdecl): Don't declare here.
6637
631238ac
MS
66382017-05-08 Martin Sebor <msebor@redhat.com>
6639
6640 PR translation/80280
6641 * c-format.h (struct format_flag_spec): Add new member.
6642 (T89_T): New macro.
6643 * c-format.c (local_tree_type_node): New global.
6644 (printf_flag_specs, asm_fprintf_flag_spec): Initialize new data.
6645 (gcc_diag_flag_specs, scanf_flag_specs, strftime_flag_specs): Ditto.
6646 (strfmon_flag_specs): Likewise.
6647 (gcc_diag_char_table, gcc_cdiag_char_table): Split up specifiers
6648 with distinct quoting properties.
6649 (gcc_tdiag_char_table, gcc_cxxdiag_char_table): Same.
6650 (flag_chars_t::validate): Add argument and handle bad quoting.
6651 (check_format_info_main): Handle quoting problems.
6652 (init_dynamic_diag_info): Simplify.
6653
49f0c04c
JM
66542017-05-08 Jason Merrill <jason@redhat.com>
6655
6656 * c-opts.c (c_common_post_options): Update defaults for
6657 flag_abi_version and flag_abi_compat_version.
6658
56d35585
DM
66592017-05-05 David Malcolm <dmalcolm@redhat.com>
6660
6661 * c-common.c (c_cpp_error): Replace report_diagnostic
6662 with diagnostic_report_diagnostic.
6663
0f2c4a8f
MS
66642017-05-04 Martin Sebor <msebor@redhat.com>
6665
6666 PR translation/80280
6667 * c-attribs.c (handle_alias_ifunc_attribute): Quote a %D directive.
6668 (handle_weakref_attribute): Same.
6669
6fe63fb4
NS
66702017-05-03 Nathan Sidwell <nathan@acm.org>
6671
6672 Canonicalize canonical type hashing
6673 * c-common.c (complete_array_type): Use type_hash_canon.
6674
815d9cc6
XR
66752017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
6676
92a285c1 6677 PR c++/80038
815d9cc6
XR
6678 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): Remove
6679 prototype.
6680 (cilk_install_body_pedigree_operations): Likewise.
6681 * cilk.c (cilk_set_spawn_marker): Mark functions that should be
6682 detatched.
6683 (cilk_gimplify_call_params_in_spawned_fn): Remove.
6684 (cilk_install_body_pedigree_operations): Likewise.
6685 (gimplify_cilk_spawn): Add EXPR_STMT and CLEANUP_POINT_EXPR
6686 unwrapping.
6687
f8a36447
JJ
66882017-04-27 Jakub Jelinek <jakub@redhat.com>
6689
6690 PR c++/80534
6691 * c-common.c (complete_array_type): Only hash TYPE_TYPELESS_STORAGE
6692 flag on non-aggregate element types.
6693
7c145456
BE
66942017-04-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
6695
6696 * c-common.c (c_type_hasher, type_hash_table): Remove.
6697 (c_common_get_alias_set): Remove unreachable code.
6698 * c-opts.c (c_common_post_options): Make sure cc1 takes only one file.
6699
c3cbcd45
VR
67002017-04-20 Volker Reichelt <v.reichelt@netcologne.de>
6701
6702 * c.opt (Wextra-semi): New C++ warning flag.
6703
8a59d466
JJ
67042017-04-20 Jakub Jelinek <jakub@redhat.com>
6705
6706 PR middle-end/80423
6707 * c-common.c (complete_array_type): Preserve TYPE_TYPELESS_STORAGE.
6708
8487c9a5
JJ
67092017-04-18 Jakub Jelinek <jakub@redhat.com>
6710
6711 PR middle-end/79788
6712 PR middle-end/80375
6713 * c-common.c (c_common_type_for_mode): Don't handle
6714 widest_*_literal_type_node here.
6715 c_common_signed_or_unsigned_type): Likewise.
6716 (c_common_nodes_and_builtins): Set widest_*_literal_type_node
6717 to *intTI_type_node or *intDI_type_node depending on whether
6718 TImode is supported by the target or not.
6719
3ee0fb02
ML
67202017-04-10 Martin Liska <mliska@suse.cz>
6721
6722 PR sanitizer/80350
6723 * c-ubsan.c (ubsan_instrument_shift): Evaluate RHS before
6724 doing an UBSAN check.
6725
5764ee3c
JW
67262017-04-03 Jonathan Wakely <jwakely@redhat.com>
6727
6728 * c-warn.c (do_warn_double_promotion): Fix typo in comment.
6729
6f3af356
JJ
67302017-03-31 Jakub Jelinek <jakub@redhat.com>
6731
6732 PR c++/79572
6733 * c-ubsan.h (ubsan_maybe_instrument_reference): Change argument to
6734 tree *.
6735 * c-ubsan.c (ubsan_maybe_instrument_reference): Likewise. Handle
6736 not just NOP_EXPR to REFERENCE_TYPE, but also INTEGER_CST with
6737 REFERENCE_TYPE.
6738
f6a7a9d5
DM
67392017-03-31 David Malcolm <dmalcolm@redhat.com>
6740
6741 PR documentation/78732
6742 * c.opt (Wendif-labels): Fix description to refer to
6743 #else rather than #elif.
6744
af88f557
JJ
67452017-03-31 Jakub Jelinek <jakub@redhat.com>
6746
6747 PR libstdc++/80251
6748 * c-common.h (enum rid): Add RID_IS_AGGREGATE.
6749 * c-common.c (c_common_reswords): Add __is_aggregate trait.
6750
a9e4a1a5
JJ
67512017-03-27 Jakub Jelinek <jakub@redhat.com>
6752
6753 PR middle-end/80162
6754 * c-common.c (c_common_mark_addressable_vec): Don't set
6755 TREE_ADDRESSABLE on DECL_HARD_REGISTER.
6756
3f01b620
MS
67572017-03-21 Martin Sebor <msebor@redhat.com>
6758
6759 PR c++/79548
6760 * c-common.c (set_underlying_type): Mark type used only when
6761 original del is declared unused.
6762
2f6f187a
DM
67632017-03-10 David Malcolm <dmalcolm@redhat.com>
6764
6765 PR translation/79848
6766 * c-format.c (check_format_string): Simplify uses of "%<%s%>" to
6767 "%qs".
6768
a02fa805
DM
67692017-03-10 David Malcolm <dmalcolm@redhat.com>
6770
6771 PR c/79921
6772 * c-indentation.c (warn_for_misleading_indentation): Remove parens
6773 from inform's message, so that xgettext can locate it.
6774
822a132c
MP
67752017-03-09 Marek Polacek <polacek@redhat.com>
6776
6777 PR c++/79962
6778 PR c++/79984
6779 * c-attribs.c (handle_nonnull_attribute): Save the result of default
6780 conversion to the attribute list.
6781
bba81f1c
ML
67822017-03-09 Martin Liska <mliska@suse.cz>
6783
6784 * c-ada-spec.c (macro_length): Increment value instead of a pointer.
6785
108154ff
JM
67862017-03-03 Jason Merrill <jason@redhat.com>
6787
6788 * c.opt (Wnoexcept-type): New.
6789
eb0e7c34
RB
67902017-03-02 Richard Biener <rguenther@suse.de>
6791
6792 PR c/79756
6793 * c-common.c (c_common_mark_addressable_vec): Look through
6794 C_MAYBE_CONST_EXPR.
6795
9453ba0a
ML
67962017-02-28 Martin Liska <mliska@suse.cz>
6797
6798 * c.opt: Replace space with tabular for options of <number>
6799 type.
6800
6a825afe
ML
68012017-02-28 Martin Liska <mliska@suse.cz>
6802
6803 * c.opt: Fix --help=option -Q for options which are of
6804 an enum type.
6805
4227c9ad
JJ
68062017-02-24 Jakub Jelinek <jakub@redhat.com>
6807
6808 PR c++/79588
6809 * c-common.c (check_function_restrict): New function.
6810 (check_function_arguments): Add FNDECL argument. Call
6811 check_function_restrict if -Wrestrict.
6812 * c-warn.c (warn_for_restrict): Remove ARGS argument, add ARGARRAY
6813 and NARGS. Use auto_vec for ARG_POSITIONS, simplify.
6814 * c-common.h (check_function_arguments): Add FNDECL argument.
6815 (warn_for_restrict): Remove ARGS argument, add ARGARRAY and NARGS.
6816
59909673
EB
68172017-02-24 Eric Botcazou <ebotcazou@adacore.com>
6818
6819 * c-ada-spec.c (dump_ada_function_declaration): Add comment about the
6820 treatment of parameters with pointer-to-tagged type and tidy up.
6821 (print_ada_methods): Remove the special treatment of C++ static member
6822 functions.
6823
54dcd526
ML
68242017-02-22 Martin Liska <mliska@suse.cz>
6825
6826 * c.opt: Replace inequality signs with square brackets
6827 for -Wnornalized.
6828
00bc9de3
JJ
68292017-02-21 Jakub Jelinek <jakub@redhat.com>
6830
6831 PR c++/79641
6832 * c-attribs.c (handle_mode_attribute): Use build_qualified_type to
6833 preserve quals.
6834
97fcf744
JM
68352017-02-17 Joseph Myers <joseph@codesourcery.com>
6836
6837 * c-cppbuiltin.c (builtin_define_float_constants): Define
6838 __DECIMAL_DIG__ to the value for long double.
6839
c7545f1c
MP
68402017-02-15 Marek Polacek <polacek@redhat.com>
6841
6842 PR c/79515
6843 * c-warn.c (do_warn_double_promotion): Don't warn if an invalid
6844 conversion has occured.
6845
c2e84327
DM
68462017-01-24 David Malcolm <dmalcolm@redhat.com>
6847
6848 * c-common.c (c_common_reswords): Add "__RTL".
6849 * c-common.h (enum rid): Add RID_RTL.
6850
2ebd93e1
MP
68512017-01-20 Marek Polacek <polacek@redhat.com>
6852
6853 PR c/64279
6854 * c-common.h (do_warn_duplicated_branches_r): Declare.
6855 * c-gimplify.c (c_genericize): Walk the function tree calling
6856 do_warn_duplicated_branches_r.
6857 * c-warn.c (expr_from_macro_expansion_r): New.
6858 (do_warn_duplicated_branches): New.
6859 (do_warn_duplicated_branches_r): New.
6860 * c.opt (Wduplicated-branches): New option.
6861
0d80ab91
DM
68622017-01-17 David Malcolm <dmalcolm@redhat.com>
6863
6864 PR c++/71497
6865 * c-indentation.c (warn_for_misleading_indentation): Use the past
6866 subjunctive in the note.
6867
7f991c36
AH
68682017-01-17 Aldy Hernandez <aldyh@redhat.com>
6869
6870 PR c/79116
6871 * array-notation-common.c (cilkplus_extract_an_triplets): Convert
6872 start type to integer_type.
6873
1c70261c
JJ
68742017-01-16 Jakub Jelinek <jakub@redhat.com>
6875
6876 PR driver/49726
6877 * c.opt (gen-decls): Add Driver flag.
6878
1ddca3f3
PC
68792017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
6880
6881 Revert:
6882 2017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
6883
6884 PR c++/71737
6885 * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
6886
7d2f3f1d
PC
68872017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
6888
6889 PR c++/71737
6890 * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
6891
bce6f760
MS
68922017-01-12 Martin Sebor <msebor@redhat.com>
6893
6894 (-Wformat-overflow): ...to this.
6895
bf5fbf46
MS
68962017-01-11 Martin Sebor <msebor@redhat.com>
6897
6898 PR c/78768
6899 * c.opt (-Walloca-larger-than, -Wformat-length, -Wformat-truncation):
6900 Also enable for LTO.
6901
e363df3f
JM
69022017-01-10 Jason Merrill <jason@redhat.com>
6903
6904 Implement P0195R2, C++17 variadic using.
6905 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_variadic_using.
6906
bd2c6270
JJ
69072017-01-09 Jakub Jelinek <jakub@redhat.com>
6908
6909 PR translation/79019
6910 PR translation/79020
6911 * c.opt (Wnormalized=): Fix typo in description.
6912
efcc8d38
MS
69132017-01-08 Martin Sebor <msebor@redhat.com>
6914
6915 PR middle-end/77708
6916 * c.opt (-Wformat-truncation): New option.
6917
ab20d992 69182017-01-06 Alexandre Oliva <aoliva@redhat.com>
435f3f7a
AO
6919
6920 * c-pretty-print.c (pp_c_tree_decl_identifier): Convert 16-bit
6921 value to unsigned short to fit in 4 hex digits without
6922 warnings.
6923
4e89adf9
EB
69242017-01-05 Eric Botcazou <ebotcazou@adacore.com>
6925
6926 * c.opt (fsso-struct): Add 'native' value.
6927
cd445b54
ML
69282017-01-05 Martin Liska <mliska@suse.cz>
6929
6930 PR pch/78970
6931 * c-opts.c (c_common_post_options): Reject '-' filename for a precompiled
6932 header.
6933
a9342885
MP
69342017-01-04 Marek Polacek <polacek@redhat.com>
6935
6936 PR c++/64767
6937 * c.opt (Wpointer-compare): New option.
6938
fc73e60c
JJ
69392017-01-04 Jakub Jelinek <jakub@redhat.com>
6940
6941 PR driver/78957
6942 * c.opt (fsso-struct=): Add RejectNegative.
6943
cbe34bb5
JJ
69442017-01-01 Jakub Jelinek <jakub@redhat.com>
6945
6946 Update copyright years.
6947
d4a6c0ea
ML
69482016-12-29 Martin Liska <mliska@suse.cz>
6949
6950 PR c/78933
6951 * c.opt (strong-eval-order): Add RejectNegative keyword.
6952
67a5ad7c
JM
69532016-12-22 Jason Merrill <jason@redhat.com>
6954
6955 Implement P0522R0, matching of template template arguments.
6956 * c-cppbuiltin.c (c_cpp_builtins): Define
6957 __cpp_template_template_args.
6958
0dba7960
JJ
69592016-12-21 Jakub Jelinek <jakub@redhat.com>
6960
6961 PR bootstrap/78817
6962 * c-common.c (struct nonnull_arg_ctx): New type.
6963 (check_function_nonnull): Return bool instead of void. Use
6964 nonnull_arg_ctx as context rather than just location_t.
6965 (check_nonnull_arg): Adjust for the new context type, set
6966 warned_p to true if a warning has been diagnosed.
6967 (check_function_arguments): Return bool instead of void.
6968 * c-common.h (check_function_arguments): Adjust prototype.
6969
31bfc9b9
JM
69702016-12-21 Jason Merrill <jason@redhat.com>
6971
6972 * c.opt (-fnew-ttp-matching): New flag.
6973 * c-opts.c (c_common_post_options): Default on if -std=c++1z.
6974
629b3d75
MJ
69752016-12-14 Martin Jambor <mjambor@suse.cz>
6976
6977 * c-omp.c: Include omp-general.h instead of omp-low.h.
6978 (c_finish_oacc_wait): Adjusted call to find_omp_clause to use its new
6979 name.
6980
474da67e
MS
69812016-12-14 Martin Sebor <msebor@redhat.com>
6982
6983 PR c/17308
6984 * c-common.c (check_nonnull_arg): Disable when optimization
6985 is enabled.
6986
fe366b87
MP
69872016-12-12 Marek Polacek <polacek@redhat.com>
6988
6989 PR c++/78647
6990 * c-common.c (attribute_fallthrough_p): Return false for
6991 error_mark_node.
6992
8bd9f164
MS
69932016-12-08 Martin Sebor <msebor@redhat.com>
6994
6995 PR c/78284
6996 * c.opt (-Walloc-zero, -Walloc-size-larger-than): New options.
6997
060162e0
MS
69982016-12-08 Martin Sebor <msebor@redhat.com>
6999
7000 PR c/78165
92a285c1
ML
7001 * c-pretty-print (pp_c_integer_constant): Avoid formatting type
7002 suffix.
060162e0 7003
ee92e7ba
MS
70042016-12-07 Martin Sebor <msebor@redhat.com>
7005
7006 PR c/53562
7007 PR middle-end/77784
7008 PR middle-end/78149
7009 PR middle-end/78138
7010 * c.opt (-Wstringop-overflow): New option.
7011
84b0769e
MO
70122016-12-02 Maxim Ostapenko <m.ostapenko@samsung.com>
7013
7014 * c-attribs.c (asan odr indicator): New attribute.
7015 (handle_asan_odr_indicator_attribute): New function.
7016
7fa6a965
PK
70172016-11-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7018
7019 * c-common.c (c_common_nodes_and_builtins): Remove initialization of
7020 ptrdiff_type_node;
7021
56d8ffc1
JG
70222016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
7023
7024 * c-common.c (excess_precision_mode_join): New.
7025 (c_ts18661_flt_eval_method): New.
7026 (c_c11_flt_eval_method): Likewise.
7027 (c_flt_eval_method): Likewise.
7028 * c-common.h (excess_precision_mode_join): New.
7029 (c_flt_eval_method): Likewise.
7030 * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): New.
7031 (cpp_iec_559_value): Call it.
7032 (c_cpp_builtins): Modify logic for __LIBGCC_*_EXCESS_PRECISION__,
7033 call c_flt_eval_method to set __FLT_EVAL_METHOD__ and
7034 __FLT_EVAL_METHOD_TS_18661_3__.
7035
04f0fcf7
JG
70362016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
7037
7038 * c-opts.c (c_common_post_options): Add logic to handle the default
7039 case for -fpermitted-flt-eval-methods.
7040
fb2675cb
PB
70412016-11-23 Paolo Bonzini <bonzini@gnu.org>
7042
7043 * c.opt (Wexpansion-to-defined): New.
7044
ec1c5694
JJ
70452016-11-23 Jakub Jelinek <jakub@redhat.com>
7046
7047 PR target/78451
7048 * c-pragma.c (handle_pragma_target): Don't replace
7049 current_target_pragma, but chainon the new args to the current one.
7050
730c9e75
NS
70512016-11-22 Nathan Sidwell <nathan@acm.org>
7052
7053 * array-notation-common.c (cilkplus_extract_an_trplets): Fix
cacd29be 7054 indentation and formatting.
730c9e75 7055
89990732
MS
70562016-11-21 Martin Sebor <msebor@redhat.com>
7057
7058 * c.opt (-fprintf-return-value): Enable by default.
7059
48330c93
BE
70602016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
7061
7062 PR c++/71973
7063 * c.opt (-Wbuiltin-declaration-mismatch): New warning.
7064 * c-common.c (c_common_nodes_and_builtins): Initialize
7065 const_tm_ptr_type_node.
7066
0d939c95
MP
70672016-11-16 Marek Polacek <polacek@redhat.com>
7068
7069 PR c/78285
7070 * c-common.c (c_add_case_label): Turn error_at calls into inform.
7071
8e745a17
JJ
70722016-11-14 Jakub Jelinek <jakub@redhat.com>
7073
7074 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_structured_bindings.
7075
1ee62b92 70762016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
8e745a17
JJ
7077 Richard Biener <rguenther@suse.de>
7078
7079 * c-common.h (c_common_resword): Add RID_GIMPLE, RID_PHI types.
7080 * c-common.h (enum rid): Add RID_GIMPLE, RID_PHI.
7081 * c.opt (fgimple): New option.
1ee62b92 7082
22b15758
UB
70832016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7084
7085 PR c/35503
7086 * c-common.h (warn_for_restrict): Declare.
7087 * c-warn.c: Include gcc-rich-location.h.
7088 (warn_for_restrict): New function.
7089 * c-format.c (gcc_tdiag_char_table): Add entry for "Z" specifier.
7090 (gcc_cdiag_char_table): Likewise.
7091 (gcc_cxxdiag_char_table): Likewise.
7092 * c.opt (Wrestrict): New option.
7093
4be719cd
EB
70942016-11-13 Eric Botcazou <ebotcazou@adacore.com>
7095
7096 * c-ada-spec.c (print_ada_declaration): For typedef declarations, look
7097 for nested types only if the type is a record or union and dump SLOC.
7098
4a826ca6
JM
70992016-11-09 Jason Merrill <jason@redhat.com>
7100
7101 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_template_auto.
7102
2e955d50
JJ
71032016-11-09 Jakub Jelinek <jakub@redhat.com>
7104
7105 * c-ubsan.c (ubsan_instrument_shift): Handle split
7106 -fsanitize=shift-base and -fsanitize=shift-exponent.
7107
51dc6603
JM
71082016-11-07 Jason Merrill <jason@redhat.com>
7109
7110 * c.opt (Wc++1z-compat): New.
7111 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_noexcept_function_type.
7112
6dc4a604
ML
71132016-11-07 Martin Liska <mliska@suse.cz>
7114
7115 * c-warn.c (warn_for_unused_label): Save all labels used
7116 in goto or in &label.
7117
b302001e
JM
71182016-11-03 Jason Merrill <jason@redhat.com>
7119
7120 * c-cppbuiltin.c (c_cpp_builtins): Correct
7121 __cpp_inheriting_constructors.
7122
31f7f784
JM
71232016-11-01 Jason Merrill <jason@redhat.com>
7124
2bc78e3c
JM
7125 * c-cppbuiltin.c (c_cpp_builtins): Update
7126 __cpp_inheriting_constructors.
7127
31f7f784
JM
7128 * c.opt (-fnew-inheriting-ctors): New.
7129 * c-opts.c: Default to on for ABI 11+.
7130
dcb466ec
JJ
71312016-10-31 Jakub Jelinek <jakub@redhat.com>
7132
7133 PR c++/77948
7134 * c.opt (fext-numeric-literals): Add Var and Init.
7135 * c-opts.c (c_common_handle_option): Don't clear
7136 cpp_opts->ext_numeric_literals for -std=c++{11,14,1z}.
7137 (c_common_post_options): Clear it here if not set
7138 explicitly.
7139
52e1b91e
AH
71402016-10-28 Aldy Hernandez <aldyh@redhat.com>
7141
7142 PR debug/77773
7143 * c-pretty-print.c (simple_type_specifier): Do not dereference `t'
7144 if NULL.
7145
e16f1cc7
JJ
71462016-10-25 Jakub Jelinek <jakub@redhat.com>
7147
7148 * c-common.h (enum rid): Add RID_BUILTIN_LAUNDER.
7149 * c-common.c (c_common_reswords): Add __builtin_launder.
7150
f8348061
BE
71512016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
7152
7153 * c-common.c (c_common_truthvalue_conversion): Warn for
7154 multiplications in boolean context. Fix the quoting of '<<' and '<'
7155 in the shift warning.
7156
eff89e01
BE
71572016-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
7158
7159 * c-common.c (c_common_truthvalue_conversion): Fix the comment.
7160
24bc7bf4
JM
71612016-10-20 Jason Merrill <jason@redhat.com>
7162
7163 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_concepts value.
7164
4c712374
BE
71652016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
7166
7167 * c-common.c (c_common_truthvalue_conversion): Warn only for signed
7168 integer shift ops in boolean context.
7169
71702016-10-18 Aldy Hernandez <aldyh@redhat.com>
adc577c5
AH
7171
7172 * c.opt (Walloca): New.
7173 (Walloca-larger-than=): New.
7174 (Wvla-larger-than=): New.
7175
8fa18c06
MP
71762016-10-17 Marek Polacek <polacek@redhat.com>
7177
7178 * c-warn.c (find_array_ref_with_const_idx_r): Remove parameter names.
7179 Return immediately when finding a match.
7180 (warn_tautological_cmp): Remove a boolean variable that is no longer
7181 needed.
7182
b12b1915
MP
71832016-10-17 Marek Polacek <polacek@redhat.com>
7184
7185 * c-attribs.c: New file.
7186 * c-common.c: Move attributes handling to c-attribs.c.
7187 (get_nonnull_operand): No longer static.
7188 * c-common.h: Move the declarations from c-attribs.c to its own section.
7189
2045acd9
JM
71902016-10-14 Jason Merrill <jason@redhat.com>
7191
7192 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_aggregate_bases
7193 and __cpp_deduction_guides.
7194
14a2c9aa
JM
71952016-10-13 Jason Merrill <jason@redhat.com>
7196
7197 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_inline_variables.
7198
4d0cdd0c
TP
71992016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
7200
7201 * c-cppbuiltin.c: Include memmodel.h.
7202 * c-opts.c: Likewise.
7203 * c-pragma.c: Likewise.
7204 * c-warn.c: Likewise.
7205
70f6d5e1
JJ
72062016-10-12 Jakub Jelinek <jakub@redhat.com>
7207
7208 * c.opt (Wextra): Add as C/C++/ObjC/ObjC++ option.
7209 (Wimplicit-fallthrough=): Enable for these languages by -Wextra.
7210 * c-opts.c (sanitize_cpp_opts): Initialize
7211 cpp_opts->cpp_warn_implicit_fallthrough.
7212
78f61294
MP
72132016-10-11 Marek Polacek <polacek@redhat.com>
7214
7215 * c-common.c (warning_candidate_p): Change the return type to bool
7216 and return true/false instead of 1/0.
7217 (vector_mode_valid_p): Likewise.
7218
038b5cc0
MP
72192016-10-11 Marek Polacek <polacek@redhat.com>
7220
7221 * c-common.c (fold_for_warn): No longer static.
7222 (bool_promoted_to_int_p): Likewise.
7223 (c_common_get_narrower): Likewise.
7224 (constant_expression_warning): Move to c-warn.c.
7225 (constant_expression_error): Likewise.
7226 (overflow_warning): Likewise.
7227 (warn_logical_operator): Likewise.
7228 (find_array_ref_with_const_idx_r): Likewise.
7229 (warn_tautological_cmp): Likewise.
7230 (expr_has_boolean_operands_p): Likewise.
7231 (warn_logical_not_parentheses): Likewise.
7232 (warn_if_unused_value): Likewise.
7233 (strict_aliasing_warning): Likewise.
7234 (sizeof_pointer_memaccess_warning): Likewise.
7235 (check_main_parameter_types): Likewise.
7236 (conversion_warning): Likewise.
7237 (warnings_for_convert_and_check): Likewise.
7238 (match_case_to_enum_1): Likewise.
7239 (match_case_to_enum): Likewise.
7240 (c_do_switch_warnings): Likewise.
7241 (warn_for_omitted_condop): Likewise.
7242 (readonly_error): Likewise.
7243 (lvalue_error): Likewise.
7244 (invalid_indirection_error): Likewise.
7245 (warn_array_subscript_with_type_char): Likewise.
7246 (warn_about_parentheses): Likewise.
7247 (warn_for_unused_label): Likewise.
7248 (warn_for_div_by_zero): Likewise.
7249 (warn_for_memset): Likewise.
7250 (warn_for_sign_compare): Likewise.
7251 (do_warn_double_promotion): Likewise.
7252 (do_warn_unused_parameter): Likewise.
7253 (record_locally_defined_typedef): Likewise.
7254 (maybe_record_typedef_use): Likewise.
7255 (maybe_warn_unused_local_typedefs): Likewise.
7256 (maybe_warn_bool_compare): Likewise.
7257 (maybe_warn_shift_overflow): Likewise.
7258 (warn_duplicated_cond_add_or_warn): Likewise.
7259 (diagnose_mismatched_attributes): Likewise.
7260 * c-common.h: Move the declarations from c-warn.c to its own section.
7261 * c-warn.c: New file.
7262
627be19f
JM
72632016-10-08 Jason Merrill <jason@redhat.com>
7264
7265 * c-common.c (c_common_truthvalue_conversion): Don't distribute
7266 into COND_EXPR in C++.
7267
7bad794a
JJ
72682016-10-08 Jakub Jelinek <jakub@redhat.com>
7269
7270 * c-lex.c (c_lex_with_flags) <case CPP_COMMENT>: For CPP_COMMENT
7271 token with PREV_FALLTHROUGH, skip all following CPP_PADDING and
7272 CPP_COMMENT tokens and set add_flags to PREV_FALLTHROUGH afterwards.
7273
be845b04
JJ
72742016-10-07 Jakub Jelinek <jakub@redhat.com>
7275
7276 Implement LWG2296 helper intrinsic
7277 * c-common.h (enum rid): Add RID_ADDRESSOF.
7278 * c-common.c (c_common_reswords): Add __builtin_addressof.
7279
c09c4992
BE
72802016-10-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
7281
7282 PR c++/77700
7283 * c-common.c (c_common_truthvalue_conversion): Warn also for
7284 suspicious enum values in boolean context.
7285
342cfb3e
JJ
72862016-10-06 Jakub Jelinek <jakub@redhat.com>
7287
7288 Implement P0258R2 - helper for C++17
7289 std::has_unique_object_representations trait
7290 * c-common.h (enum rid): Add RID_HAS_UNIQUE_OBJ_REPRESENTATIONS.
7291 * c-common.c (c_common_reswords): Add
7292 __has_unique_object_representations.
7293
2e69f143
JJ
72942016-10-05 Jakub Jelinek <jakub@redhat.com>
7295
7296 PR sanitizer/66343
7297 * c-ubsan.c (ubsan_instrument_return): Don't call
7298 initialize_sanitizer_builtins here.
7299
700fff34
BE
73002016-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
7301
7302 * c-common.c (c_common_truthvalue_conversion): Warn also for suspicious
7303 conditional expression in boolean context when only one arm is
7304 non-boolean.
7305
9563bfcd
JJ
73062016-10-05 Jakub Jelinek <jakub@redhat.com>
7307
04a32443
JJ
7308 PR sanitizer/77823
7309 * c-ubsan.c (ubsan_instrument_shift): Return NULL_TREE if type0
7310 is not integral.
7311
9563bfcd
JJ
7312 * c-common.c (c_common_reswords): Update comment for C++11.
7313
f1644724
JM
73142016-10-04 Jason Merrill <jason@redhat.com>
7315
7316 * c-common.c (make_tree_vector_from_ctor): New.
7317 * c-common.h: Declare it.
7318
5a79befb
JJ
73192016-10-04 Jakub Jelinek <jakub@redhat.com>
7320
7321 * c-cppbuiltin.c (c_cpp_builtins): Don't define
7322 __LIBGCC_JCR_SECTION_NAME__.
7323
1633d3b9
BE
73242016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
7325
7326 * c-common.c (c_common_truthvalue_conversion): Warn for suspicious
7327 left shift in boolean context.
7328
a2c6e7f2
JJ
73292016-09-29 Jakub Jelinek <jakub@redhat.com>
7330
7331 Implement P0001R1 - C++17 removal of register storage class specifier
7332 * c.opt (Wregister): New warning.
7333 * c-opts.c (c_common_post_options): Enable -Wregister by
7334 default for C++17.
7335
75304c87
JG
73362016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
7337
7338 * c-opts.c (c_common_post_options): Remove special case for
7339 TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard
7340 in C++.
7341
bbfac6da
JJ
73422016-09-27 Jakub Jelinek <jakub@redhat.com>
7343
6e39060a
JJ
7344 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for
7345 -std=c++1z.
7346
bbfac6da
JJ
7347 * c-ada-spec.c (print_ada_declaration): Remove break after return.
7348
e73cf9a2
TP
73492016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
7350
7351 * c-common.c: Include memmodel.h.
7352
c6147dc4
MP
73532016-09-26 Marek Polacek <polacek@redhat.com>
7354
7355 * c-lex.c (c_common_has_attribute): Handle attribute fallthrough.
7356
81fea426
MP
73572016-09-26 Marek Polacek <polacek@redhat.com>
7358
7359 PR c/7652
7360 * c-common.c (c_common_attribute_table): Add fallthrough attribute.
7361 (handle_fallthrough_attribute): New function.
7362 (attribute_fallthrough_p): New function.
7363 * c-common.h (attribute_fallthrough_p): Declare.
7364
9a2300e9
MP
73652016-09-24 Marek Polacek <polacek@redhat.com>
7366
7367 PR c/77490
7368 * c.opt (Wbool-operation): New.
7369
a09e9e35
BE
73702016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
7371
7372 * c-common.c (c_common_truthvalue_conversion): Inhibit
7373 Wint-in-bool-context warning with from_macro_definition_at.
7374 Mention the expression will always evaluate to true.
7375
d43b4ccc
MS
73762016-09-21 Martin Sebor <msebor@redhat.com>
7377
7378 PR bootstrap/77676
7379 * c.opt (fprintf-return-value): Temporarily initialize to zero
7380 to unblock bootstrap failures.
7381
2e1c20b1
JJ
73822016-09-21 Jakub Jelinek <jakub@redhat.com>
7383
7384 PR c++/77651
7385 * c.opt (Waligned-new=): Add RejectNegative.
7386 (faligned-new=): Likewise. Spelling fix - change
7387 aligned_new_threshhold to aligned_new_threshold.
7388 * c-cppbuiltin.c (c_cpp_builtins): Change aligned_new_threshhold
7389 to aligned_new_threshold.
7390
88d0c3f0
MS
73912016-09-20 Martin Sebor <msebor@redhat.com>
7392
7393 PR middle-end/49905
7394 * c.opt: Add -Wformat-length and -fprintf-return-value.
7395
144a96e4
BE
73962016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
7397
7398 PR c++/77434
7399 * c.opt (Wint-in-bool-context): New warning.
7400 * c-common.c (c_common_truthvalue_conversion): Warn on integer
7401 constants in boolean context.
7402
63012d9a
JM
74032016-09-19 Joseph Myers <joseph@codesourcery.com>
7404
7405 * c-common.c (max_align_t_align): Also consider alignment of
7406 float128_type_node.
7407
931388ce
JM
74082016-09-15 Jason Merrill <jason@redhat.com>
7409
7410 * c-common.c (check_cxx_fundamental_alignment_constraints): Check
7411 DECL_EXTERNAL.
7412
38711381
JM
74132016-09-14 Jason Merrill <jason@redhat.com>
7414
7415 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
7416 limit FIELD_DECL, either.
7417
e51fbec3
MP
74182016-09-14 Marek Polacek <polacek@redhat.com>
7419
7420 * c-common.c (c_common_truthvalue_conversion): Use false instead of 0.
7421 * c-common.h (build_unary_op): Change nonconvert parameter type to bool.
7422 * c-omp.c (c_finish_omp_atomic): Use false instead of 0.
7423
254830ba
DM
74242016-09-13 David Malcolm <dmalcolm@redhat.com>
7425
7426 * c-common.c (warn_logical_not_parentheses): Replace
7427 rich_location::add_fixit_insert calls with add_fixit_insert_before
7428 and add_fixit_insert_after, eliminating the "next_loc" calculation.
7429
42763690
JM
74302016-09-13 Jason Merrill <jason@redhat.com>
7431 Tom de Vries <tom@codesourcery.com>
7432
7433 PR c++/77427
7434 * c-common.c (set_underlying_type): Don't treat array as builtin type.
7435
9453eee9
JM
74362016-09-13 Jason Merrill <jason@redhat.com>
7437
7438 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
7439 limit types at all.
7440
e96809e3
JM
74412016-09-12 Jason Merrill <jason@redhat.com>
7442
7443 * c-common.c (check_cxx_fundamental_alignment_constraints): Fix
7444 bit/byte confusion, allow large alignment for types.
7445
54dcdb88
BE
74462016-09-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
7447
7448 PR c++/77496
7449 * c-common.c (warn_for_omitted_condop): Also warn for boolean data.
7450
d1463eb9
DM
74512016-09-12 David Malcolm <dmalcolm@redhat.com>
7452
7453 PR c/72858
7454 * c-format.c (argument_parser::check_argument_type): Add params
7455 "type_start" and "conversion_char". Use the former to generate
7456 offset_to_type_start and pass it and conversion_char to
7457 check_format_types.
7458 (check_format_info_main): Capture the start of the type
7459 information as "type_start", and pass it an format_char
7460 to arg_parser.check_argument_type.
7461 (check_format_types): Provide an example in the leading comment.
7462 Add params "offset_to_type_start" and "conversion_char"; pass
7463 them to format_type_warning calls.
7464 (test_get_modifier_for_format_len): Likewise.
7465 (matching_type_p): New function.
7466 (get_format_for_type): Add param "conversion_char" and move
7467 implementation into...
7468 (get_format_for_type_1): ...new function, called twice.
7469 Use new function matching_type_p rather than checking for
7470 TYPE_CANONICAL equality.
7471 (get_corrected_substring): New function.
7472 (format_type_warning): Provide an example in the leading comment.
7473 Add params "offset_to_type_start" and "conversion_char". Replace
7474 call to get_format_for_type with call to get_corrected_substring
7475 and move rejection of hints for widths/precisions there.
7476 (assert_format_for_type_streq): Add param "conversion_char".
7477 (ASSERT_FORMAT_FOR_TYPE_STREQ): Add param CONVERSION_CHAR.
7478 (test_get_format_for_type_printf): Add conversion chars to the
7479 tests, adding coverage for various combinations of integer
7480 vs double conversions, and for preserving octal and hexadecimal
7481 conversions.
7482 (test_get_format_for_type_scanf): Add conversion chars to the
7483 tests.
7484
5b28efbb
TV
74852016-09-10 Tom de Vries <tom@codesourcery.com>
7486
7487 PR C/71602
7488 * c-common.c (build_va_arg): Handle more strict
7489 targetm.canonical_va_list_type. Replace first argument type error with
7490 assert.
7491
3f0177e7
MS
74922016-09-09 Martin Sebor <msebor@redhat.com>
7493
7494 PR c/77520
7495 PR c/77521
7496 * c-format.c (argument_parser::find_format_char_info): Use %qc
7497 format directive unconditionally.
7498
af63ba4b
JM
74992016-09-09 Jason Merrill <jason@redhat.com>
7500
7501 Implement C++17 new of over-aligned types.
7502 * c.opt: Add -faligned-new and -Waligned-new.
7503 * c-common.c (max_align_t_align): Split out from...
7504 (cxx_fundamental_alignment_p): ...here.
7505 * c-common.h: Declare it.
7506 * c-cppbuiltin.c (c_cpp_builtins): Handle aligned new.
7507
c65248cb
JM
75082016-09-09 Joseph Myers <joseph@codesourcery.com>
7509
7510 * c-cppbuiltin.c (builtin_define_type_width): New function.
7511 (builtin_define_stdint_macros, c_cpp_builtins): Define type width
7512 macros.
7513
e5106e27
DM
75142016-09-07 David Malcolm <dmalcolm@redhat.com>
7515
7516 * c-common.c (get_cpp_ttype_from_string_type): Handle being passed
7517 a POINTER_TYPE.
7518 (substring_loc::get_location): Move to substring-locations.c,
7519 keeping implementation as...
7520 (c_get_substring_location): New function, from the above, reworked
7521 to use accessors rather than member lookup.
7522 * c-common.h (class substring_loc): Move to substring-locations.h,
7523 replacing with a forward decl.
7524 (c_get_substring_location): New decl.
7525 * c-format.c: Include "substring-locations.h".
7526 (format_warning_va): Move to substring-locations.c.
7527 (format_warning_at_substring): Likewise.
7528
ab20d992 75292016-09-06 Martin Sebor <msebor@redhat.com>
a42e7952
MS
7530
7531 PR c/77336
7532 * c-format.c (check_function_format): Avoid issuing warnings for
7533 functions unless they call format functions with non-constant
7534 format strings.
7535
b772a565
RB
75362016-09-06 Richard Biener <rguenther@suse.de>
7537
7538 PR c/77450
7539 * c-common.c (c_common_mark_addressable_vec): Handle
7540 COMPOUND_LITERAL_EXPR.
7541
25ff5dd3
MP
75422016-09-05 Marek Polacek <polacek@redhat.com>
7543
7544 PR c/77423
7545 * c-common.c (bool_promoted_to_int_p): New function.
7546 (expr_has_boolean_operands_p): New function.
7547 (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p.
7548 (maybe_warn_bool_compare): Use bool_promoted_to_int_p.
7549
21234eb5
TV
75502016-09-04 Tom de Vries <tom@codesourcery.com>
7551
7552 revert:
7553 2016-08-29 Tom de Vries <tom@codesourcery.com>
7554
7555 * c-common.c (build_va_arg): Replace first argument type error
7556 with assert.
7557
9dc5773f
JJ
75582016-09-02 Jakub Jelinek <jakub@redhat.com>
7559
7560 PR c/65467
7561 * c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions.
7562 (c_finish_omp_for): Reject _Atomic qualified iterators.
7563
75642016-09-01 Martin Sebor <msebor@redhat.com>
3d7b83b6
MS
7565
7566 * c-ada-spec.c (dump_ada_function_declaration): Increase buffer
7567 size to guarantee it fits the output of the formatted function
7568 regardless of its arguments.
7569
295844f6
MP
75702016-09-01 Marek Polacek <polacek@redhat.com>
7571
7572 PR c/7652
7573 * c-common.c (resolve_overloaded_builtin): Fix formatting. Add
7574 FALLTHRU comments.
7575
3d06b6f2
MP
75762016-08-29 Marek Polacek <polacek@redhat.com>
7577
7578 PR c/77292
7579 * c-common.c (warn_logical_not_parentheses): Don't warn for
7580 a comparison or a logical operator.
7581
34cedad5
TV
75822016-08-29 Tom de Vries <tom@codesourcery.com>
7583
7584 * c-common.c (build_va_arg): Fix type comparison assert.
7585
f162d717
TV
75862016-08-29 Tom de Vries <tom@codesourcery.com>
7587
7588 * c-common.c (build_va_arg): Replace first argument type error
7589 with assert.
7590
ba9bbd6f
TV
75912016-08-29 Tom de Vries <tom@codesourcery.com>
7592
7593 PR c/77398
7594 * c-common.c (build_va_arg): Add first argument error. Build va_arg
7595 with error_mark_node as va_list instead of with illegal va_list.
7596
ebef225f
MP
75972016-08-25 Marek Polacek <polacek@redhat.com>
7598 David Malcolm <dmalcolm@redhat.com>
7599
7600 * c-common.c (warn_logical_not_parentheses): Print fixit hints.
7601 * c-common.h (warn_logical_not_parentheses): Update declaration.
7602
b00e6e75
MP
76032016-08-22 Marek Polacek <polacek@redhat.com>
7604
7605 PR c++/77321
7606 * c-common.c (warn_for_memset): Check type for null.
7607
6dc198e3
JM
76082016-08-22 Joseph Myers <joseph@codesourcery.com>
7609
14ec014e 7610 * c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and
6dc198e3
JM
7611 _FloatNx types for suffixes for built-in functions.
7612
c65699ef
JM
76132016-08-19 Joseph Myers <joseph@codesourcery.com>
7614
7615 PR c/32187
7616 * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32)
7617 (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X)
7618 (RID_FLOAT128X): New enum rid values.
7619 (CASE_RID_FLOATN_NX): New macro.
7620 * c-common.c (c_common_reswords): Add _FloatN and _FloatNx
7621 keywords.
7622 (c_common_type_for_mode): Check for _FloatN and _FloatNx and
7623 corresponding complex types.
7624 (c_common_nodes_and_builtins): For non-C++, register _FloatN and
7625 _FloatNx and corresponding complex types.
7626 (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX.
7627 * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN
7628 and _FloatNx types for the widest type for determining
7629 DECIMAL_DIG. Define __LDBL_DECIMAL_DIG__ as well as
7630 __DECIMAL_DIG__ for long double. Handle FMA_SUFFIX being NULL.
7631 (c_cpp_builtins): Call builtin_define_float_constants for _FloatN
7632 and _FloatNx types.
7633 * c-lex.c (interpret_float): Handle _FloatN and _FloatNx
7634 constants.
7635 * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and
7636 _FloatNx types.
7637
cc015f3a
DM
76382016-08-18 David Malcolm <dmalcolm@redhat.com>
7639
7640 * c-opts.c (c_diagnostic_finalizer): Update for change to
7641 diagnostic_show_locus.
7642
cb18fd07
DM
76432016-08-18 David Malcolm <dmalcolm@redhat.com>
7644
7645 * c-common.c: Include "spellcheck.h".
7646 (cb_get_suggestion): New function.
7647 * c-common.h (cb_get_suggestion): New decl.
7648 * c-lex.c (init_c_lex): Initialize cb->get_suggestion to
7649 cb_get_suggestion.
7650
a76989dc
MP
76512016-08-18 Marek Polacek <polacek@redhat.com>
7652
7653 PR c/71514
7654 * c-common.c (get_atomic_generic_size): Disallow pointer-to-function
7655 and pointer-to-VLA.
7656
65e736c0
DM
76572016-08-16 David Malcolm <dmalcolm@redhat.com>
7658
7659 PR c/72857
7660 * c-common.c (substring_loc::get_range): Rename to...
7661 (substring_loc::get_location): ...this, converting param from a
7662 source_range * to a location_t *. Call
7663 get_source_location_for_substring rather than
7664 get_source_range_for_substring, and pass in m_caret_idx.
7665 * c-common.h (substring_loc::substring_loc): Add param "caret_idx".
7666 (substring_loc::get_range): Replace with...
7667 (substring_loc::get_location): ...this.
7668 (substring_loc::set_caret_index): New method.
7669 (substring_loc): Add field m_caret_idx.
7670 * c-format.c (format_warning_va): Update for above changes.
7671 Rename local "substring_loc" to "fmt_substring_loc" to avoid
7672 clashing with type name.
7673 (format_warning_at_char): Add caret_idx param to substring_loc ctor.
7674 (check_argument_type): Likewise.
7675 (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc"
7676 Use a copy when emitting warnings, setting the caret index from TYPE.
7677
7e1dde14 76782016-08-16 Eric Botcazou <ebotcazou@adacore.com>
8e745a17 7679 Arnaud Charlet <charlet@adacore.com>
7e1dde14
EB
7680
7681 * c-ada-spec.c (dump_number): New function.
7682 (handle_escape_character): Likewise.
7683 (print_ada_macros): Add handling of constant integers and strings.
7684
191816a3
MP
76852016-08-12 Marek Polacek <polacek@redhat.com>
7686
7687 PR c/7652
7688 * c-common.c (scalar_to_vector): Adjust fall through comment.
7689 * c-opts.c (c_common_handle_option): Likewise.
7690 * c-pragma.c (handle_pragma_pack): Add FALLTHRU.
7691 * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust
7692 fall through comment.
7693 * cilk.c (extract_free_variables): Add FALLTHRU.
7694
452df4a4
JM
76952016-08-10 Jason Merrill <jason@redhat.com>
7696
7697 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr.
7698
f3365c12
JM
76992016-08-09 Jason Merrill <jason@redhat.com>
7700
7701 * c-common.c (c_common_attribute_table): vector_size affects type
7702 identity.
7703
f0bc3323
MP
77042016-08-09 Marek Polacek <polacek@redhat.com>
7705
7706 PR c/7652
7707 * c-ada-spec.c (dump_generic_ada_node): Add return.
7708
98e5a19a
JM
77092016-08-09 Jason Merrill <jason@redhat.com>
7710
7711 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for
7712 C++17 constexpr lambdas.
7713
895aa8e1
DM
77142016-08-08 David Malcolm <dmalcolm@redhat.com>
7715
7716 PR c/64955
7717 * c-common.h (selftest::c_format_c_tests): New declaration.
7718 (selftest::run_c_tests): New declaration.
7719 * c-format.c: Include "selftest.h.
7720 (format_warning_va): Add param "corrected_substring" and use
7721 it to add a replacement fix-it hint.
7722 (format_warning_at_substring): Likewise.
7723 (format_warning_at_char): Update for new param of
7724 format_warning_va.
7725 (argument_parser::check_argument_type): Pass "fki" to
7726 check_format_types.
7727 (check_format_types): Add param "fki" and pass it to
7728 format_type_warning.
7729 (deref_n_times): New function.
7730 (get_modifier_for_format_len): New function.
7731 (selftest::test_get_modifier_for_format_len): New function.
7732 (get_format_for_type): New function.
7733 (format_type_warning): Add param "fki" and use it to attempt
7734 to provide hints for argument types when calling
7735 format_warning_at_substring.
7736 (selftest::get_info): New function.
7737 (selftest::assert_format_for_type_streq): New function.
7738 (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro.
7739 (selftest::test_get_format_for_type_printf): New function.
7740 (selftest::test_get_format_for_type_scanf): New function.
7741 (selftest::c_format_c_tests): New function.
7742
e52ed3fe
DM
77432016-08-08 David Malcolm <dmalcolm@redhat.com>
7744
7745 PR c/52952
7746 * c-format.c: Include "diagnostic.h".
7747 (location_column_from_byte_offset): Delete.
7748 (location_from_offset): Delete.
7749 (format_warning_va): New function.
7750 (format_warning_at_substring): New function.
7751 (format_warning_at_char): New function.
7752 (check_format_arg): Capture location of format_tree and pass to
7753 check_format_info_main.
7754 (argument_parser): Add fields "start_of_this_format" and
7755 "format_string_cst".
7756 (flag_chars_t::validate): Add param "format_string_cst". Convert
7757 warning_at call using location_from_offset to call to
7758 format_warning_at_char.
7759 (argument_parser::argument_parser): Add param "format_string_cst_"
7760 and use use it to initialize field "format_string_cst".
7761 Initialize new field "start_of_this_format".
7762 (argument_parser::read_format_flags): Convert warning_at call
7763 using location_from_offset to a call to format_warning_at_char.
7764 (argument_parser::read_any_format_left_precision): Likewise.
7765 (argument_parser::read_any_format_precision): Likewise.
7766 (argument_parser::read_any_other_modifier): Likewise.
7767 (argument_parser::find_format_char_info): Likewise, in three places.
7768 (argument_parser::parse_any_scan_set): Likewise, in one place.
7769 (argument_parser::handle_conversions): Likewise, in two places.
7770 (argument_parser::check_argument_type): Add param "fmt_param_loc"
7771 and use it to make a substring_loc. Pass the latter to
7772 check_format_types.
7773 (check_format_info_main): Add params "fmt_param_loc" and
7774 "format_string_cst". Convert warning_at calls using
7775 location_from_offset to calls to format_warning_at_char. Pass the
7776 new params to the arg_parser ctor. Pass "format_string_cst" to
7777 flag_chars.validate. Pass "fmt_param_loc" to
7778 arg_parser.check_argument_type.
7779 (check_format_types): Convert first param from a location_t
7780 to a const substring_loc & and rename to "fmt_loc". Attempt
7781 to extract the range of the relevant parameter and pass it
7782 to format_type_warning.
7783 (format_type_warning): Convert first param from a location_t
7784 to a const substring_loc & and rename to "fmt_loc". Add
7785 params "param_range" and "type". Replace calls to warning_at
7786 with calls to format_warning_at_substring.
7787
1c4d457e
DM
77882016-08-08 David Malcolm <dmalcolm@redhat.com>
7789
7790 * c-format.c (class flag_chars_t): New class.
7791 (struct length_modifier): New struct.
7792 (class argument_parser): New class.
7793 (flag_chars_t::flag_chars_t): New ctor.
7794 (flag_chars_t::has_char_p): New method.
7795 (flag_chars_t::add_char): New method.
7796 (flag_chars_t::validate): New method.
7797 (flag_chars_t::get_alloc_flag): New method.
7798 (flag_chars_t::assignment_suppression_p): New method.
7799 (argument_parser::argument_parser): New ctor.
7800 (argument_parser::read_any_dollar): New method.
7801 (argument_parser::read_format_flags): New method.
7802 (argument_parser::read_any_format_width): New method.
7803 (argument_parser::read_any_format_left_precision): New method.
7804 (argument_parser::read_any_format_precision): New method.
7805 (argument_parser::handle_alloc_chars): New method.
7806 (argument_parser::read_any_length_modifier): New method.
7807 (argument_parser::read_any_other_modifier): New method.
7808 (argument_parser::find_format_char_info): New method.
7809 (argument_parser::validate_flag_pairs): New method.
7810 (argument_parser::give_y2k_warnings): New method.
7811 (argument_parser::parse_any_scan_set): New method.
7812 (argument_parser::handle_conversions): New method.
7813 (argument_parser::check_argument_type): New method.
7814 (check_format_info_main): Introduce classes argument_parser
7815 and flag_chars_t, moving the code within the loop into methods
7816 of these classes. Make various locals "const".
7817
88fa5555
DM
78182016-08-05 David Malcolm <dmalcolm@redhat.com>
7819
7820 * c-common.c: Include "substring-locations.h".
7821 (get_cpp_ttype_from_string_type): New function.
7822 (g_string_concat_db): New global.
7823 (substring_loc::get_range): New method.
7824 * c-common.h (g_string_concat_db): New declaration.
7825 (class substring_loc): New class.
7826 * c-lex.c (lex_string): When concatenating strings, capture the
7827 locations of all tokens using a new obstack, and record the
7828 concatenation locations within g_string_concat_db.
7829 * c-opts.c (c_common_init_options): Construct g_string_concat_db
7830 on the ggc-heap.
7831
78169471
MP
78322016-07-29 Marek Polacek <polacek@redhat.com>
7833
638fc14f
MP
7834 PR c/71926
7835 * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the
7836 parentheses warning.
7837
78169471
MP
7838 PR c/71574
7839 * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL.
7840
1225d6b1
ML
78412016-07-28 Martin Liska <mliska@suse.cz>
7842
7843 PR gcov-profile/68025
7844 * c-common.c (handle_no_profile_instrument_function_attribute):
7845
ec1e2a40
BE
78462016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
7847
7848 * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of
7849 BITS_PER_UNIT_LOG.
7850
5ec2cd9f
JM
78512016-07-25 Jason Merrill <jason@redhat.com>
7852
7853 PR c++/65970
7854 * c.opt (fconstexpr-loop-limit): New.
7855
9dc5773f 78562016-07-22 Martin Sebor <msebor@redhat.com>
2e6b45af
MS
7857
7858 PR c++/71675
7859 * c-common.c (resolve_overloaded_builtin): Avoid converting
7860 __atomic_compare_exchange_n return type to that of what its
7861 first argument points to.
7862
e3fe09c1
UB
78632016-07-22 Uros Bizjak <ubizjak@gmail.com>
7864
7865 * c-common.c: Use HOST_WIDE_INT_M1U instead of
7866 ~(unsigned HOST_WIDE_INT) 0.
7867
bc91c436
ML
78682016-07-22 Martin Liska <mliska@suse.cz>
7869
7870 PR gcov-profile/69028
7871 PR gcov-profile/62047
7872 * cilk.c (create_cilk_helper_decl): Set location of a new decl
7873 to the current_function_decl.
7874
451dcc66
JM
78752016-07-21 Jason Merrill <jason@redhat.com>
7876
7877 PR c++/65168
7878 * c-common.c (c_common_truthvalue_conversion): Check
7879 c_inhibit_evaluation_warnings for warning about address of
7880 reference.
7881
de6a69ee
DM
78822016-07-20 David Malcolm <dmalcolm@redhat.com>
7883
7884 * c-common.h (lookup_name_fuzzy): Convert return type from tree to
7885 const char *.
7886
d022c55a
JM
78872016-07-15 Jason Merrill <jason@redhat.com>
7888
7889 * c-opts.c (c_common_post_options): Update -fabi-version default to 11.
7890
ddbbcb19
JJ
78912016-07-15 Jakub Jelinek <jakub@redhat.com>
7892
7893 PR c/71858
7894 * c-common.h (enum lookup_name_fuzzy_kind): Add
7895 FUZZY_LOOKUP_FUNCTION_NAME.
7896
d0cf395a
JM
78972016-07-08 Jason Merrill <jason@redhat.com>
7898
7899 P0145: Refining Expression Order for C++.
7900 * c.opts (-fargs-in-order): Rename to -fstrong-eval-order.
7901 * c-opts.c: Adjust.
7902
98d44e93
MT
79032016-07-05 Markus Trippelsdorf <markus@trippelsdorf.de>
7904
7905 PR c++/71214
7906 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.
7907
f9d8d994
TS
79082016-06-29 Thomas Schwinge <thomas@codesourcery.com>
7909
7910 * c-pragma.h (enum pragma_kind): Rename
7911 PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE. Adjust all
7912 users.
7913
4aa83879
RB
79142016-06-29 Richard Biener <rguenther@suse.de>
7915
7916 PR middle-end/71002
7917 * c-common.c (c_common_get_alias_set): Remove union type punning case.
7918
a25bd9e6
JM
79192016-06-24 Jason Merrill <jason@redhat.com>
7920
7921 P0145R2: Refining Expression Order for C++.
7922 * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of
7923 MODIFY_EXPR.
7924
a86451b9
JJ
79252016-06-24 Jakub Jelinek <jakub@redhat.com>
7926
7927 * c-common.c (check_builtin_function_arguments): Require last
7928 argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type.
7929 Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW
7930 if the last argument is pointer to enumerated or boolean type.
7931
1a4f11c8
DM
79322016-06-22 David Malcolm <dmalcolm@redhat.com>
7933
7934 PR c/70339
7935 * c-common.h (enum lookup_name_fuzzy_kind): New enum.
7936 (lookup_name_fuzzy): New prototype.
7937
fe55692c
JDA
79382016-06-21 John David Anglin <danglin@gcc.gnu.org>
7939
7940 * c-common.c (get_source_date_epoch): Use int64_t instead of long long.
7941
4eb24e01
JM
79422016-06-14 Jason Merrill <jason@redhat.com>
7943
7944 P0145R2: Refining Expression Order for C++.
7945 * c.opt (fargs-in-order): New.
7946 * c-opts.c (c_common_post_options): Adjust flag_args_in_order.
7947
ef7cf206
JJ
79482016-06-13 Jakub Jelinek <jakub@redhat.com>
7949
0dda258b
JJ
7950 PR sanitizer/71498
7951 * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
7952 all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.
7953
ef7cf206
JJ
7954 PR preprocessor/71183
7955 * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch
7956 to cb_get_source_date_epoch.
7957
50b15873
JJ
79582016-06-10 Jakub Jelinek <jakub@redhat.com>
7959
7960 PR c/68657
7961 * c.opt (Wpsabi): Add Warning flag.
7962
4d926e34
MS
79632016-06-10 Martin Sebor <msebor@redhat.com>
7964
7965 PR c/71392
14ec014e 7966 * c-common.c (handle_nonnull_attribute): Accept
4d926e34
MS
7967 the nonnull attribute in type-generic builtins.
7968
e01b4e16
MS
79692016-06-09 Martin Sebor <msebor@redhat.com>
7970
7971 PR c/70883
7972 * c-common.c (builtin_function_validate_nargs): Make text of error
7973 message consistent with others like it.
7974
44a845ca
MS
79752016-06-08 Martin Sebor <msebor@redhat.com>
7976 Jakub Jelinek <jakub@redhat.com>
7977
7978 PR c++/70507
7979 PR c/68120
7980 * c-common.c (check_builtin_function_arguments): Handle
7981 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
7982
a80a7051
RB
79832016-06-08 Richard Biener <rguenther@suse.de>
7984
7985 * c-common.c (parse_optimize_options): Improve diagnostic messages.
7986
bfd67b47
RB
79872016-06-07 Richard Biener <rguenther@suse.de>
7988
7989 PR c/61564
7990 * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION
7991 options and warn about others.
7992
15c98b2e
ES
79932016-06-01 Eduard Sanou <dhole@openmailbox.org>
7994
7995 * c-common.c (get_source_date_epoch): Rename to
7996 cb_get_source_date_epoch.
7997 * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
7998 message when the parsing fails. Use error_at instead of fatal_error.
7999 * c-common.h (get_source_date_epoch): Rename to
8000 cb_get_source_date_epoch.
8001 * c-common.h (cb_get_source_date_epoch): Prototype.
8002 * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
8003 * c-common.h (c_omp_region_type): Remove trailing comma.
8004 * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
8005 * c-lex.c (c_lex_with_flags): Remove initialization of
8006 pfile->source_date_epoch.
8007
00631022
JJ
80082016-05-30 Jakub Jelinek <jakub@redhat.com>
8009
8010 PR c++/71349
8011 * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
8012 C_OMP_CLAUSE_SPLIT_TARGET. Put OMP_CLAUSE_NOWAIT to
8013 C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
8014 instead of C_OMP_CLAUSE_SPLIT_FOR.
8015
f17a223d
RB
80162016-05-24 Richard Biener <rguenther@suse.de>
8017
8018 PR middle-end/70434
8019 PR c/69504
8020 * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
8021 (convert_vector_to_array_for_subscript): ... this.
8022 * c-common.c (convert_vector_to_pointer_for_subscript): Use a
8023 VIEW_CONVERT_EXPR to an array type. Rename to ...
8024 (convert_vector_to_array_for_subscript): ... this.
8025
4f2e1536
MP
80262016-05-12 Marek Polacek <polacek@redhat.com>
8027
8028 PR c/70756
8029 * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
8030 size_in_bytes and pass LOC to it.
8031
d6e83a8d
MM
80322016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
8033
8034 PR c/43651
8035 * c.opt (Wduplicate-decl-specifier): New option.
8036
5c3a10fb
MP
80372016-05-11 Marek Polacek <polacek@redhat.com>
8038
8039 PR c++/71024
8040 * c-common.c (diagnose_mismatched_attributes): New function.
8041 * c-common.h (diagnose_mismatched_attributes): Declare.
8042
deef7113
MP
80432016-05-04 Marek Polacek <polacek@redhat.com>
8044
8045 * c.opt (Wdangling-else): New option.
8046
79ce98bc
MP
80472016-05-03 Marek Polacek <polacek@redhat.com>
8048
8049 PR c/70859
8050 * c-common.c (builtin_function_validate_nargs): Add location
8051 parameter. Use it.
8052 (check_builtin_function_arguments): Add location and arguments
8053 parameters. Use them.
8054 * c-common.h (check_builtin_function_arguments): Update declaration.
8055
381cdae4
RB
80562016-05-03 Richard Biener <rguenther@suse.de>
8057
8058 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
8059 allow call args to gimplify to SSA names.
8060
1d793c34
MP
80612016-05-03 Marek Polacek <polacek@redhat.com>
8062
8063 * c-common.h (enum c_omp_region_type): Remove stray comma.
8064
77886428
CP
80652016-05-02 Cesar Philippidis <cesar@codesourcery.com>
8066
8067 * c-common.h (enum c_omp_region_type): Define.
8068
697e0b28
RS
80692016-05-02 Richard Sandiford <richard.sandiford@arm.com>
8070
8071 * c-common.c (shorten_compare): Use wi::to_wide.
8072
e7ff0319
CP
80732016-04-29 Cesar Philippidis <cesar@codesourcery.com>
8074
8075 PR middle-end/70626
8076 * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
8077 * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
8078 reduction clauses in acc parallel loops.
8079
2fff3db8
MP
80802016-04-29 Marek Polacek <polacek@redhat.com>
8081
8082 PR c/70852
8083 * c-common.c (warn_for_memset): Check domain before accessing it.
8084
509063eb
DV
80852016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
8086
8087 PR/69089
8088 * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
8089 "aligned" attribute.
8090
b632761d
JM
80912016-04-28 Jason Merrill <jason@redhat.com>
8092
8093 * c-lex.c (c_common_has_attribute): Handle nodiscard.
8094
174f6622
ES
80952016-04-28 Eduard Sanou <dhole@openmailbox.org>
8096 Matthias Klose <doko@debian.org>
8097
8098 * c-common.c (get_source_date_epoch): New function, gets the environment
7365279f 8099 variable SOURCE_DATE_EPOCH and parses it as long long with error
174f6622
ES
8100 handling.
8101 * c-common.h (get_source_date_epoch): Prototype.
8102 * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
8103
6bc2bb18
RB
81042015-04-27 Ryan Burn <contact@rnburn.com>
8105
8106 PR c++/69024
8107 PR c++/68997
8108 * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
8109 (cilk_recognize_spawn): Renamed from recognize_spawn and change to
8110 external linkage.
8111 (cilk_detect_and_unwrap): Corresponding changes.
8112 (extract_free_variables): Don't extract free variables from
8113 AGGR_INIT_EXPR slot.
8114 * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
8115 (cilk_recognize_spawn): Likewise.
8116
c1e1f433
BS
81172016-04-27 Bernd Schmidt <bschmidt@redhat.com>
8118
8119 * c.opt (Wmemset-elt-size): New option.
8120 * c-common.c (warn_for_memset): New function.
8121 * c-common.h (warn_for_memset): Declare.
8122
d067e05f
JM
81232016-04-25 Jason Merrill <jason@redhat.com>
8124
8125 * c-common.c (handle_unused_attribute): Accept CONST_DECL.
8126 No longer static.
8127 * c-common.h: Declare it.
8128 * c-lex.c (c_common_has_attribute): Add maybe_unused.
8129
9aa36ae5
JM
81302016-04-22 Jason Merrill <jason@redhat.com>
8131
8132 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
8133
477d4906
IV
81342016-04-20 Ilya Verbin <ilya.verbin@intel.com>
8135
8136 PR c++/69363
8137 * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
8138 * c-common.h (c_finish_cilk_clauses): Remove declaration.
8139
fe37c7af
MM
81402016-04-18 Michael Matz <matz@suse.de>
8141
8142 * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
8143 and SET_DECL_ALIGN.
8144
23f2660f
EB
81452016-04-17 Eric Botcazou <ebotcazou@adacore.com>
8146
8147 * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
8148 (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
8149 to incomplete types.
8150 (dump_nested_type): Remove redundant tests and tidy up.
8151 (print_ada_declaration): Also set TREE_VISITED on the declaration of
8152 a type which is the typedef of an original type.
8153
1e77281b
MP
81542016-04-15 Marek Polacek <polacek@redhat.com>
8155
8156 PR c/70651
8157 * c-common.c (build_va_arg): Change two asserts into errors and return
8158 error_mark_node.
8159
b3a77f21
MP
81602016-04-13 Marek Polacek <polacek@redhat.com>
8161
8162 PR c++/70639
8163 * c-indentation.c (should_warn_for_misleading_indentation): Bail out
8164 for switch statements, too.
8165
322b8466
JM
81662016-03-28 Jason Merrill <jason@redhat.com>
8167
8168 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
8169
fbdb6baf
MP
81702016-03-23 Marek Polacek <polacek@redhat.com>
8171
8172 PR c++/69884
8173 * c.opt (Wignored-attributes): New option.
8174
5c240f4d
DM
81752016-03-22 David Malcolm <dmalcolm@redhat.com>
8176
8177 PR c/69993
8178 * c-indentation.c (warn_for_misleading_indentation): Rewrite the
8179 diagnostic text, reversing the order of the warning and note so
8180 that they appear in source order.
8181
14ba7b28
MP
81822016-03-17 Marek Polacek <polacek@redhat.com>
8183
8184 PR c/69407
8185 * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
8186 operations.
8187
08a1cadc
JM
81882016-03-14 Jason Merrill <jason@redhat.com>
8189
2aaeea19
JM
8190 * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
8191
08a1cadc
JM
8192 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
8193
c06d25bb
RB
81942016-03-09 Richard Biener <rguenther@suse.de>
8195
8196 PR c/70143
8197 * c-common.c (strict_aliasing_warning): Add back
8198 alias_sets_conflict_p check.
8199
80aac5c8
JM
82002016-03-08 Jason Merrill <jason@redhat.com>
8201
8202 * c-opts.c (set_std_cxx1z): Don't enable concepts.
8203
64b23c13
DM
82042016-03-04 David Malcolm <dmalcolm@redhat.com>
8205
8206 PR c/68187
8207 * c-indentation.c (get_visual_column): Move code to determine next
8208 tab stop to...
8209 (next_tab_stop): ...this new function.
8210 (line_contains_hash_if): Delete function.
8211 (detect_preprocessor_logic): Delete function.
8212 (get_first_nws_vis_column): New function.
8213 (detect_intervening_unindent): New function.
8214 (should_warn_for_misleading_indentation): Replace call to
8215 detect_preprocessor_logic with a call to
8216 detect_intervening_unindent.
8217
729526f5
DM
82182016-03-04 David Malcolm <dmalcolm@redhat.com>
8219
8220 PR c/68187
8221 * c-indentation.c (should_warn_for_misleading_indentation): When
8222 suppressing warnings about cases where the guard and body are on
8223 the same column, only use the first non-whitespace column in place
8224 of the guard token column when dealing with "else" clauses.
8225 When rejecting aligned BODY and NEXT, loosen the requirement
8226 from equality with the first non-whitespace of guard to simply
8227 that they not be indented relative to it.
8228
e9a35493
RB
82292016-03-04 Richard Biener <rguenther@suse.de>
8230
8231 PR c++/70054
8232 * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
8233 instead of alias_sets_conflict_p.
8234
1be56bc5
MP
82352016-03-01 Marek Polacek <polacek@redhat.com>
8236
8237 PR c++/69795
8238 * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
8239 any DECL.
8240
35886f0b
MS
82412016-02-22 Martin Sebor <msebor@redhat.com>
8242
8243 PR middle-end/69780
8244 * c-common.c (check_builtin_function_arguments): Validate and
8245 reject invalid arguments to __builtin_alloca_with_align.
8246
4246c8da
MW
82472016-02-20 Mark Wielaard <mjw@redhat.com>
8248
8249 PR c/28901
8250 * c.opt (Wunused-const-variable): Turn into Alias for...
8251 (Wunused-const-variable=): New option.
8252
268be88c
BE
82532016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
8254
8255 PR c++/69865
8256 * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
8257 here...
8258 (c_common_init_options): ...to here.
8259 (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
8260
871b3f47
JJ
82612016-02-19 Jakub Jelinek <jakub@redhat.com>
8262
8263 PR c++/69826
8264 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
8265 (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
8266 flag_preprocess_only.
8267
bf14eba2
JJ
82682016-02-16 Jakub Jelinek <jakub@redhat.com>
8269
8270 PR c/69835
8271 * c.opt (Wnonnull-compare): Enable for -Wall.
8272
ba6b3795
JJ
82732016-02-15 Jakub Jelinek <jakub@redhat.com>
8274
8275 PR c++/69797
8276 * c-common.c (sync_resolve_size): Diagnose too few arguments
8277 even when params is non-NULL empty vector.
8278
a011cd92
BS
82792016-02-08 Bernd Schmidt <bschmidt@redhat.com>
8280
8281 PR target/60410
8282 * c.opt (fshort-double): Remove.
8283
46cb9332
MS
82842016-02-05 Martin Sebor <msebor@redhat.com>
8285
8286 PR c++/69662
8287 * c.opt (Warning options): Update -Wplacement-new to take
8288 an optional argument.
8289
e1b81f2b
JJ
82902016-02-01 Jakub Jelinek <jakub@redhat.com>
8291
8292 PR preprocessor/69543
8293 PR c/69558
8294 * c-pragma.c (handle_pragma_diagnostic): Pass input_location
8295 instead of loc to control_warning_option.
8296
b6adbb9f
NS
82972016-02-01 Nathan Sidwell <nathan@codesourcery.com>
8298
8299 * c.opt (fopenacc-dim=): New option.
8300
5d70666e
RB
83012016-01-27 Ryan Burn <contact@rnburn.com>
8302
8303 PR cilkplus/69267
8304 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
8305 gimplify_arg. Removed superfluous post_p argument.
8306 * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
8307 superfluous post_p argument.
8308 * c-gimplify.c (c_gimplify_expr): Likewise.
8309
01e1dea3
DM
83102016-01-26 David Malcolm <dmalcolm@redhat.com>
8311
8312 PR other/69006
8313 * c-opts.c (c_diagnostic_finalizer): Replace invocation of
8314 pp_newline_and_flush with pp_flush.
8315
9f04a53e
MS
83162016-01-20 Martin Sebor <msebor@redhat.com>
8317
8318 PR c/69405
8319 * c-common.c (sync_resolve_size): Avoid printing diagnostic about
8320 an incompatible argument when the argument isn't a valid tree node.
8321
7f26f7df
JM
83222016-01-18 Jason Merrill <jason@redhat.com>
8323
8324 PR c++/68767
8325 * c-common.c (check_function_arguments_recurse): Fold the whole
8326 COND_EXPR, not just the condition.
8327
f62bf092
TV
83282016-01-18 Tom de Vries <tom@codesourcery.com>
8329
8330 * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
8331 classify as loop clause.
8332
e0a575ff
JJ
83332016-01-15 Jakub Jelinek <jakub@redhat.com>
8334
8335 PR bootstrap/68271
8336 * c-pragma.c (c_register_pragma_1): Adjust comment to note that
8337 C++ FE no longer has limit on number of pragmas.
8338
83392015-01-14 Ryan Burn <contact@rnburn.com>
b6e3db06
RB
8340
8341 PR c++/69048
8342 * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
c47eaca6 8343 to add missing cleanup point.
b6e3db06 8344
c7df95d8
DM
83452016-01-14 David Malcolm <dmalcolm@redhat.com>
8346
8347 PR c++/68819
8348 * c-indentation.c (get_visual_column): Add location_t param.
8349 Handle the column number being zero by effectively disabling the
8350 warning, with an "inform".
8351 (should_warn_for_misleading_indentation): Add location_t argument
8352 for all uses of get_visual_column.
8353
21efdd80
PP
83542016-01-10 Patrick Palka <ppalka@gcc.gnu.org>
8355
8356 PR c++/69029
8357 * c-indentation.c (should_warn_for_misleading_indentation):
8358 Don't warn about do-while statements.
8359
7a127fa7
MS
83602016-01-07 Martin Sebor <msebor@redhat.com>
8361
8362 PR c/68966
8363 * c-common.c (sync_resolve_size): Reject first argument when it's
8364 a pointer to _Bool.
8365
c589e975
DM
83662016-01-05 David Malcolm <dmalcolm@redhat.com>
8367
8368 PR c/69122
8369 * c-indentation.c (get_visual_column): Remove default argument.
8370 (should_warn_for_misleading_indentation): For the multiline case,
8371 update call to get_visual_column for next_stmt_exploc so that it
8372 captures the location of the first non-whitespace character in the
8373 relevant line. Don't issue warnings if there is non-whitespace
8374 before the next statement.
8375
818ab71a
JJ
83762016-01-04 Jakub Jelinek <jakub@redhat.com>
8377
8378 Update copyright years.
8379
745e411d
DM
83802015-12-21 David Malcolm <dmalcolm@redhat.com>
8381
8382 * c-common.c (binary_op_error): Convert first param from
8383 location_t to rich_location * and use it when emitting an error.
8384 * c-common.h (binary_op_error): Convert first param from
8385 location_t to rich_location *.
8386
de67c4c3
DM
83872015-12-16 David Malcolm <dmalcolm@redhat.com>
8388
8389 * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
8390 * c-lex.c (conflict_marker_get_final_tok_kind): New function.
8391
4a38b02b
IV
83922015-12-15 Ilya Verbin <ilya.verbin@intel.com>
8393
8394 * c-common.c (c_common_attribute_table): Handle "omp declare target
8395 link" attribute.
8396
54d62f51
JJ
83972015-12-14 Jakub Jelinek <jakub@redhat.com>
8398
8399 PR c/68833
8400 * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
8401
8d4227c8
TB
84022014-12-12 Tobias Burnus <burnus@net-b.de>
8403
8404 PR fortran/68815
8405 * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
8406 specifiers (%d, %i,%u and %c).
8407
f6069ccc
DM
84082015-12-10 David Malcolm <dmalcolm@redhat.com>
8409
8410 * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
8411
63bbf46d
JJ
84122015-12-08 Jakub Jelinek <jakub@redhat.com>
8413
8414 PR c/48088
8415 PR c/68657
8416 * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
8417 * c-pragma.c (handle_pragma_diagnostic): Adjust
8418 control_warning_option caller.
8419
f79520bb
DM
84202015-12-07 David Malcolm <dmalcolm@redhat.com>
8421
8422 * c-common.c (c_cpp_error): Update for change to
8423 rich_location::set_range.
8424
b3d5bc62
JJ
84252015-12-04 Paolo Bonzini <bonzini@gnu.org>
8426
8427 * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
8428 shifting 1 out of the sign bit.
8429
84302015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
8431
8432 * c-common.c (c_common_attribute_table[]): Update max arguments
8433 count for "simd" attribute.
8434 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
8435
6eb4a537
JJ
84362015-12-03 Jakub Jelinek <jakub@redhat.com>
8437
8438 PR preprocessor/57580
8439 * c-ppoutput.c (print): Change printed field to bool.
8440 Move src_file last for smaller padding.
8441 (init_pp_output): Set print.printed to false instead of 0.
8442 (scan_translation_unit): Fix up formatting. Set print.printed
8443 to true after printing something other than newline.
8444 (scan_translation_unit_trad): Set print.printed to true instead of 1.
8445 (maybe_print_line_1): Set print.printed to false instead of 0.
8446 (print_line_1): Likewise.
8447 (do_line_change): Set print.printed to true instead of 1.
8448 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
8449 dump_macro): Set print.printed to false after printing newline.
8450
4250754e
JM
84512015-12-02 Jason Merrill <jason@redhat.com>
8452
f479b43d
JM
8453 * c-common.c (fold_for_warn): New.
8454 (warn_logical_operator, warn_tautological_cmp)
8455 (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
8456
4250754e
JM
8457 * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
8458 (c_fully_fold_internal, decl_constant_value_for_optimization):
8459 Move to c/c-fold.c.
8460 * c-common.h: Don't declare decl_constant_value_for_optimization.
8461
e9e32ee6
JM
84622015-12-02 Joseph Myers <joseph@codesourcery.com>
8463
8464 PR c/68162
8465 * c-common.h (c_build_qualified_type): Add extra default
8466 arguments.
8467
37d5ad46
JB
84682015-12-01 Julian Brown <julian@codesourcery.com>
8469 Cesar Philippidis <cesar@codesourcery.com>
8470 James Norris <James_Norris@mentor.com>
8471
8472 * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
8473 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
8474 (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
8475
f07862c7
EB
84762015-11-30 Eric Botcazou <ebotcazou@adacore.com>
8477
8478 * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
8479 (decl_sloc_common): Delete and move bulk of processing to...
8480 (decl_sloc): ...here.
8481 (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
8482 (dump_ada_double_name): Remove S parameter and compute the suffix.
8483 (dump_ada_array_type): Add PARENT parameter. Simplify computation of
8484 element type and deal with an anonymous one.
8485 (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
8486 (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type
8487 and remove reference to QUAL_UNION_TYPE.
8488 (dump_nested_types): Make 2 passes on the fields and move bulk to...
8489 (dump_nested_type): ...here. New function extracted from above.
8490 Generate a full declaration for anonymous element type of arrays.
8491 (print_ada_declaration): Really skip anonymous declarations. Remove
8492 references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type.
8493 Clean up processing of declarations of array types and objects.
8494 (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
8495 Remove obsolete code and tidy up.
8496
75c8aac3
JH
84972015-11-29 Jan Hubicka <hubicka@ucw.cz>
8498
8499 PR c/67581
8500 * c-common.c (handle_transparent_union_attribute): Update
8501 also type variants.
8502
b58d3df2
ML
85032015-11-27 Martin Liska <mliska@suse.cz>
8504
8505 PR c++/68312
8506 * array-notation-common.c (cilkplus_extract_an_triplets):
8507 Release vector of vectors.
8508 * cilk.c (gimplify_cilk_spawn): Free allocated memory.
8509
89a01fcf
EB
85102015-11-26 Eric Botcazou <ebotcazou@adacore.com>
8511
8512 PR c++/68527
8513 * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
8514 (print_ada_struct_decl): Likewise.
8515
cc5c5226
IZ
85162015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
8517
8518 PR c++/68001
8519 * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
8520 * cilk.c (recognize_spawn): Determine location in a more precise
8521 way.
8522
269adb9d
JM
85232015-11-19 Jason Merrill <jason@redhat.com>
8524
8525 * c-common.c (shorten_compare): But look through macros from
8526 system headers.
8527
d0eccfcd
JM
85282015-11-18 Jason Merrill <jason@redhat.com>
8529
8530 * c-common.c (shorten_compare): Don't -Wtype-limits if the
8531 non-constant operand comes from a macro.
8532
3e44547c
JM
85332015-11-17 Jason Merrill <jason@redhat.com>
8534
8535 PR bootstrap/68346
8536 * c-common.c (warn_tautological_cmp): Fold before checking for
8537 constants.
8538
0f62c7a0
MP
85392015-11-16 Marek Polacek <polacek@redhat.com>
8540
8541 PR c++/68362
8542 * c-common.c (check_case_bounds): Fold low and high cases.
8543
a868811e
MP
85442015-11-16 Marek Polacek <polacek@redhat.com>
8545
8546 * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
8547 * c-common.c (c_common_get_alias_set): Likewise.
8548 (handle_visibility_attribute): Likewise.
8549
fff77217
KY
85502015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
8551
8552 * c-common.c (handle_simd_attribute): New.
8553 (struct attribute_spec): Add entry for "simd".
8554 (handle_simd_attribute): New.
8555
269e63b7
KT
85562015-11-13 Kai Tietz <ktietz70@googlemail.com>
8557
8558 * c-lex.c (interpret_float): Use fold_convert.
8559
ebedc9a3
DM
85602015-11-13 David Malcolm <dmalcolm@redhat.com>
8561
8562 * c-common.c (c_fully_fold_internal): Capture existing souce_range,
8563 and store it on the result.
8564 * c-opts.c (c_common_init_options): Set
8565 global_dc->colorize_source_p.
8566
6e232ba4
JN
85672015-11-12 James Norris <jnorris@codesourcery.com>
8568 Joseph Myers <joseph@codesourcery.com>
8569
7365279f 8570 * c-pragma.c (oacc_pragmas): Add entry for declare directive.
6e232ba4
JN
8571 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
8572 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
8573 PRAGMA_OACC_CLAUSE_LINK.
8574
e78bede6
MP
85752015-11-11 Marek Polacek <polacek@redhat.com>
8576
8577 PR c/68107
8578 PR c++/68266
8579 * c-common.c (valid_array_size_p): New function.
8580 * c-common.h (valid_array_size_p): Declare.
8581
3f8257db 85822015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
4ac93c7c
DH
8583
8584 PR bootstrap/68271
8585 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
8586
69f293c9
AM
85872015-11-11 Andrew MacLeod <amacleod@redhat.com>
8588
8589 * array-notation-common.c: Remove unused header files.
8590 * c-ada-spec.c: Likewise.
8591 * c-cilkplus.c: Likewise.
8592 * c-common.c: Likewise.
8593 * c-cppbuiltin.c: Likewise.
8594 * c-dump.c: Likewise.
8595 * c-format.c: Likewise.
8596 * c-gimplify.c: Likewise.
8597 * c-indentation.c: Likewise.
8598 * c-lex.c: Likewise.
8599 * c-omp.c: Likewise.
8600 * c-opts.c: Likewise.
8601 * c-pch.c: Likewise.
8602 * c-ppoutput.c: Likewise.
8603 * c-pragma.c: Likewise.
8604 * c-pretty-print.c: Likewise.
8605 * c-semantics.c: Likewise.
8606 * c-ubsan.c: Likewise.
8607 * cilk.c: Likewise.
8608 * stub-objc.c: Likewise.
8609
3a40d81d
NS
86102015-11-09 Thomas Schwinge <thomas@codesourcery.com>
8611 Cesar Philippidis <cesar@codesourcery.com>
8612 James Norris <jnorris@codesourcery.com>
8613 Julian Brown <julian@codesourcery.com>
8614 Nathan Sidwell <nathan@codesourcery.com>
8615
8616 * c-pragma.c (oacc_pragmas): Add "routine".
8617 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
8618
ee45a32d
EB
86192015-11-08 Eric Botcazou <ebotcazou@adacore.com>
8620
8621 * c-common.c (c_common_attributes): Add scalar_storage_order.
8622 (handle_scalar_storage_order_attribute): New function.
8623 * c-pragma.c (global_sso): New variable.
8624 (maybe_apply_pragma_scalar_storage_order): New function.
8625 (handle_pragma_scalar_storage_order): Likewise.
8626 (init_pragma): Register scalar_storage_order.
8627 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
8628 * c.opt (Wscalar-storage-order): New warning.
8629 (fsso-struct=): New option.
8630
eb11eb15
MS
86312015-11-08 Martin Sebor <msebor@redhat.com>
8632
8633 * c.opt (Wplacement-new): Add a period to the end of a sentence.
8634
0aad0198
RS
86352015-11-07 Richard Sandiford <richard.sandiford@arm.com>
8636
8637 * c-common.c: Don't undef DEF_BUILTIN.
8638
8a645150
DM
86392015-11-06 David Malcolm <dmalcolm@redhat.com>
8640
8641 * c-common.c (c_cpp_error): Convert parameter from location_t to
8642 rich_location *. Eliminate the "column_override" parameter and
8643 the call to diagnostic_override_column.
8644 Update the "done_lexing" clause to set range 0
8645 on the rich_location, rather than overwriting a location_t.
8646 * c-common.h (c_cpp_error): Convert parameter from location_t to
8647 rich_location *. Eliminate the "column_override" parameter.
8648
7a5e4956
CP
86492015-11-05 Cesar Philippidis <cesar@codesourcery.com>
8650 Thomas Schwinge <thomas@codesourcery.com>
8651 James Norris <jnorris@codesourcery.com>
8652
8653 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
8654 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
8655 clauses with parallel and kernels and loops.
8656 * c-pragma.h (enum pragma_omp_clause): Add entries for
8657 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
8658 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
8659 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
8660 INDEPENDENT,SEQ}.
8661 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
8662
e2f5cc96
MS
86632015-11-05 Martin Sebor <msebor@redhat.com>
8664
8665 PR c++/67942
8666 * c.opt (-Wplacement-new): New option.
8667
e01d41e5
JJ
86682015-11-05 Jakub Jelinek <jakub@redhat.com>
8669
8670 * c-common.h (c_finish_omp_atomic): Add TEST argument.
8671 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
8672 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
8673 save_expr or create_tmp_var* if TEST is true.
8674 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
8675 Don't call add_stmt here.
8676 (struct c_omp_check_loop_iv_data): New type.
8677 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
8678 c_omp_check_loop_iv_exprs): New functions.
8679 (c_omp_split_clauses): Adjust for lastprivate being allowed on
8680 distribute.
8681 (c_omp_declare_simd_clauses_to_numbers): Change
8682 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
8683 (c_omp_declare_simd_clauses_to_decls): Similarly change those
8684 from numbers to PARM_DECLs.
8685
595278be
MM
86862015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
8687
8688 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
8689 flag_checking.
8690
3f8257db 86912015-11-03 Bernd Schmidt <bschmidt@redhat.com>
c85158de
MS
8692
8693 PR c++-common/67882
b3d5bc62
JJ
8694 * c-common.h (fold_offsetof_1): Add argument.
8695 * c-common.c (fold_offsetof_1): Diagnose more invalid
c85158de
MS
8696 offsetof expressions that reference elements past the end of
8697 an array.
8698
4bf9e5a8
TS
86992015-11-03 Thomas Schwinge <thomas@codesourcery.com>
8700 Chung-Lin Tang <cltang@codesourcery.com>
8701
8702 * c-pragma.c (oacc_pragmas): Add "atomic".
8703 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
8704
3b1661a9
ES
87052015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
8706
8707 * c-common.c (handle_target_clones_attribute): New.
8708 (c_common_attribute_table): Add handle_target_clones_attribute.
8709 (handle_always_inline_attribute): Add check on target_clones attribute.
8710 (handle_target_attribute): Ditto.
8711
2adfab87
AM
87122015-10-29 Andrew MacLeod <amacleod@redhat.com>
8713
8714 * array-notation-common.c: Reorder #include's and remove duplicates.
8715 * c-ada-spec.c: Likewise.
8716 * c-cilkplus.c: Likewise.
8717 * c-common.c: Likewise.
8718 * c-cppbuiltin.c: Likewise.
8719 * c-dump.c: Likewise.
8720 * c-format.c: Likewise.
8721 * c-gimplify.c: Likewise.
8722 * c-indentation.c: Likewise.
8723 * c-lex.c: Likewise.
8724 * c-omp.c: Likewise.
8725 * c-opts.c: Likewise.
8726 * c-pch.c: Likewise.
8727 * c-ppoutput.c: Likewise.
8728 * c-pragma.c: Likewise.
8729 * c-pretty-print.c: Likewise.
8730 * c-semantics.c: Likewise.
8731 * c-ubsan.c: Likewise.
8732 * cilk.c: Likewise.
8733 * stub-objc.c: Likewise.
8734
d90ec4f2
JM
87352015-10-28 Jason Merrill <jason@redhat.com>
8736
8737 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
8738
88bae6f4
TS
87392015-10-27 Thomas Schwinge <thomas@codesourcery.com>
8740 James Norris <jnorris@codesourcery.com>
8741 Cesar Philippidis <cesar@codesourcery.com>
8742
8743 PR c/64765
8744 PR c/64880
8745 * c-common.h (c_oacc_split_loop_clauses): Declare function.
8746 * c-omp.c (c_oacc_split_loop_clauses): New function.
8747
b1726d6c
MS
87482015-10-21 Martin Sebor <msebor@redhat.com>
8749
8750 PR driver/68043
8751 * c.opt: End each sentence that describes an option with a period.
8752
fa60eeb9
MP
87532015-10-20 Marek Polacek <polacek@redhat.com>
8754
8755 * array-notation-common.c (is_cilkplus_vector_p): Define.
8756 * c-common.h (is_cilkplus_vector_p): Declare.
8757
95979049
MP
87582015-10-20 Marek Polacek <polacek@redhat.com>
8759
8760 * c.opt (std=gnu++11): Do not describe as experimental.
8761 (std=gnu++14): Likewise.
8762
2a9fb712
JM
87632015-10-19 Jason Merrill <jason@redhat.com>
8764
8765 * c-cppbuiltin.c (c_cpp_builtins): Define
8766 __cpp_nontype_template_args.
8767
13b380a3
JM
87682015-10-19 Jason Merrill <jason@redhat.com>
8769
8770 * c-cppbuiltin.c (c_cpp_builtins): Define
8771 __cpp_enumerator_attributes, __cpp_fold_expressions,
8772 __cpp_unicode_characters.
8773
d9a6bd32
JJ
87742015-10-13 Jakub Jelinek <jakub@redhat.com>
8775 Aldy Hernandez <aldyh@redhat.com>
8776
8777 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
8778 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
8779 (c_define_builtins): Likewise.
8780 * c-common.h (enum c_omp_clause_split): Add
8781 C_OMP_CLAUSE_SPLIT_TASKLOOP.
8782 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
8783 (c_finish_omp_for): Add ORIG_DECLV argument.
8784 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
8785 201511 instead of 201307.
8786 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
8787 OMP_CRITICAL_CLAUSES to it.
8788 (c_finish_omp_ordered): Add CLAUSES argument, set
8789 OMP_ORDERED_CLAUSES to it.
8790 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
8791 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
8792 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
8793 constructs and new OpenMP 4.5 clauses. Clear
8794 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
8795 verification code.
8796 * c-pragma.c (omp_pragmas_simd): Add taskloop.
8797 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
8798 (enum pragma_omp_clause): Add
8799 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
8800 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
8801
624d31fe
RS
88022015-10-05 Richard Sandiford <richard.sandiford@arm.com>
8803
8804 * c-lex.c (interpret_float): Use real_equal instead of
8805 REAL_VALUES_EQUAL.
8806
b8fd7909
JM
88072015-10-04 Jason Merrill <jason@redhat.com>
8808
8809 Implement N4514, C++ Extensions for Transactional Memory.
8810 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
8811 (c_common_attribute_table): Add transaction_safe_dynamic.
8812 transaction_safe now affects type identity.
8813 (handle_tm_attribute): Handle transaction_safe_dynamic.
8814 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
8815 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
8816 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
8817 (D_TRANSMEM): New.
8818 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
8819 * c-pretty-print.c (pp_c_attributes_display): Don't print
8820 transaction_safe in C++.
8821
12651878
MP
88222015-10-02 Marek Polacek <polacek@redhat.com>
8823
8824 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
8825
3e3b8d63
MP
88262015-10-02 Marek Polacek <polacek@redhat.com>
8827
8828 PR c/64249
8829 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
8830 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
8831 * c.opt (Wduplicated-cond): New option.
8832
0d1a8f75
JM
88332015-10-01 Joseph Myers <joseph@codesourcery.com>
8834
8835 * c.opt (std=c11): Do not describe as experimental.
8836 (std=gnu11): Likewise.
8837 (std=iso9899:2011): Likewise.
8838
3e32ee19
NS
88392015-09-28 Nathan Sidwell <nathan@codesourcery.com>
8840
8841 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
8842 (DEF_FUNCTION_TYPE_VAR_11): Delete.
8843
974348ee
MP
88442015-09-25 Marek Polacek <polacek@redhat.com>
8845
8846 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
8847 (ubsan_instrument_shift): Likewise.
8848
15dbc1a6
MP
88492015-09-25 Marek Polacek <polacek@redhat.com>
8850
8851 PR sanitizer/64906
8852 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
8853
6b95d7cc
PP
88542015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
8855
8856 * c-indentation.c (should_warn_for_misleading_indentation):
8857 Compare next_stmt_vis_column with guard_line_first_nws instead
8858 of with guard_line_vis_column.
8859
c1822f9c
MLI
88602015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
8861
8862 PR c/49654
8863 PR c/49655
8864 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
8865 options and options not valid for the current language.
8866
d5398058
PP
88672015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
8868
8869 * c-indentation.c (should_warn_for_misleading_indentation):
8870 Float out and consolidate the calls to get_visual_column that
8871 are passed guard_exploc as an argument. Compare
8872 next_stmt_vis_column with guard_line_first_nws instead of with
8873 body_line_first_nws.
8874
6b333269
NS
88752015-09-22 Nathan Sidwell <nathan@codesourcery.com>
8876
8877 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
8878 Wnamespaces): New C++ warnings.
8879
a75f1574
JM
88802015-09-22 Jason Merrill <jason@redhat.com>
8881
8882 * c-common.h (abi_compat_version_crosses): New.
8883 (warn_abi_version): Declare.
8884 * c-common.c: Define it.
8885 * c-opts.c (c_common_post_options): Handle it.
8886 flag_abi_compat_version defaults to 8.
8887
bdaaa8b7
VV
88882015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
8889
8890 Complete the implementation of N4230, Nested namespace definition.
8891 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
8892 __cpp_nested_namespace_definitions.
8893
eaa797e8
MLI
88942015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
8895
8896 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
8897
c4914de6
MLI
88982015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
8899
8900 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
8901 when warning.
8902 * c-pragma.h (pragma_lex): Add optional loc argument.
8903
fcb87c50
MM
89042015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
8905
8906 * c-format.c (check_format_arg): Adjust to use common block size in all
8907 object pools.
8908
31bdd08a
DM
89092015-09-15 David Malcolm <dmalcolm@redhat.com>
8910
8911 * c-format.c (location_from_offset): Update for change in
8912 signature of location_get_source_line.
8913 * c-indentation.c (get_visual_column): Likewise.
8914 (line_contains_hash_if): Likewise.
8915
aa9f4b4c
MP
89162015-09-14 Marek Polacek <polacek@redhat.com>
8917
8918 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
8919 setting various warnings.
8920
aa256c4a
MP
89212015-09-14 Marek Polacek <polacek@redhat.com>
8922
8923 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
8924 a negative value.
8925
0f876f22
MW
89262015-09-11 Mark Wielaard <mjw@redhat.com>
8927
8928 PR c/28901
8929 * c.opt (Wunused-variable): Option from common.opt.
8930 (Wunused-const-variable): New option.
8931
273aa49e
PC
89322015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
8933
8934 PR c++/53184
8935 * c.opt ([Wsubobject-linkage]): Add.
8936
1807ffc1
MS
89372015-09-03 Martin Sebor <msebor@redhat.com>
8938
8939 PR c/66516
8940 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
8941 functions.
8942 * c-common.c (reject_gcc_builtin): Define.
8943
38942840
BI
89442015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
8945
8946 PR middle-end/60586
8947 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
8948 prototype.
8949 * c-gimplify.c (c_gimplify_expr): Added a call to the function
8950 cilk_gimplify_call_params_in_spawned_fn.
8951 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
8952 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
8953 unwrapping.
8954
c316b5e4
MP
89552015-08-25 Marek Polacek <polacek@redhat.com>
8956
8957 PR middle-end/67330
8958 * c-common.c (handle_weak_attribute): Don't check whether the
8959 visibility can be changed here.
8960
584a7c46
MLI
89612015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
8962
8963 * c-lex.c (c_lex_with_flags): Use explicit locations.
8964
a79683d5
TS
89652015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
8966
8967 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
8968 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
8969
61717a45
FXC
89702015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8971
8972 PR middle-end/36757
8973 * c-common.c (check_builtin_function_arguments): Add check
8974 for BUILT_IN_SIGNBIT argument.
8975
329524f5
PC
89762015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
8977
8978 PR c++/67160
8979 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
8980 in c++1z mode.
8981
4ee55665
MP
89822015-08-17 Marek Polacek <polacek@redhat.com>
8983
8984 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
8985 with whitespaces before qualifier names.
8986
b893e375
MP
89872015-08-12 Marek Polacek <polacek@redhat.com>
8988
8989 PR c++/55095
8990 * c-common.c (maybe_warn_shift_overflow): Properly handle
8991 left-shifting 1 into the sign bit.
8992
c2d89095
MLI
89932015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
8994
8995 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
8996
971e17ff
AS
89972015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
8998 Braden Obrzut <admin@maniacsvault.net>
8999 Jason Merrill <jason@redhat.com>
9000
9001 Add C++ Concepts TS support.
9002 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
9003 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
9004 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
9005 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
9006 * c-opts.c (set_std_cxx1z): Set flag_concepts.
9007 * c.opt (fconcepts): New.
9008
b3d5bc62
JJ
90092015-08-02 Martin Sebor <msebor@redhat.com>
9010
9011 * c.opt (-Wframe-address): New warning option.
9012
8ebca419
PP
90132015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
9014
9015 * c-indentation.c (should_warn_for_misleading_indentation):
9016 Improve heuristics.
9017
1a1e101f
PP
90182015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
9019
9020 * c-indentation.c (get_visual_column): Add parameter first_nws,
9021 use it. Update comment documenting the function.
9022 (is_first_nonwhitespace_on_line): Remove.
9023 (should_warn_for_misleading_indentation): Replace usage of
9024 of is_first_nonwhitespace_on_line with get_visual_column.
9025
992118a1
PP
90262015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
9027
9028 * c-indentation.h (struct token_indent_info): Define.
9029 (get_token_indent_info): Define.
9030 (warn_for_misleading_information): Declare.
9031 * c-common.h (warn_for_misleading_information): Remove.
9032 * c-identation.c (warn_for_misleading_indentation):
9033 Change declaration to take three token_indent_infos. Adjust
9034 accordingly.
9035 * c-identation.c (should_warn_for_misleading_indentation):
9036 Likewise. Bail out early if the body is a compound statement.
9037 (guard_tinfo_to_string): Define.
9038
e8fa3817
JM
90392015-07-30 Jason Merrill <jason@redhat.com>
9040
9041 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
9042 '*' for reference decay.
9043
173864e8
MP
90442015-07-30 Marek Polacek <polacek@redhat.com>
9045
9046 * c-common.c (warn_tautological_cmp): Bail for float types.
9047
f2afe6dd
MP
90482015-07-27 Marek Polacek <polacek@redhat.com>
9049
9050 PR bootstrap/67030
9051 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
9052
05b28fd6
MP
90532015-07-27 Marek Polacek <polacek@redhat.com>
9054
9055 PR c++/66555
9056 PR c/54979
9057 * c-common.c (find_array_ref_with_const_idx_r): New function.
9058 (warn_tautological_cmp): New function.
9059 * c-common.h (warn_tautological_cmp): Declare.
9060 * c.opt (Wtautological-compare): New option.
9061
5a5062b8
MP
90622015-07-23 Marek Polacek <polacek@redhat.com>
9063
9064 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
9065 (ubsan_instrument_shift): Likewise.
9066
dc891fe7
MP
90672015-07-23 Marek Polacek <polacek@redhat.com>
9068
9069 PR sanitizer/66908
9070 * c-ubsan.c: Include gimplify.h.
9071 (ubsan_instrument_division): Unshare OP0 and OP1.
9072 (ubsan_instrument_shift): Likewise.
9073
451b5e48
MP
90742015-07-20 Marek Polacek <polacek@redhat.com>
9075 Richard Sandiford <richard.sandiford@arm.com>
9076
9077 PR c++/55095
9078 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
9079 Use EXPR_LOC_OR_LOC.
9080 (maybe_warn_shift_overflow): New function.
9081 * c-common.h (maybe_warn_shift_overflow): Declare.
9082 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
9083 * c.opt (Wshift-overflow): New option.
9084
fb0b2914
ML
90852015-07-16 Martin Liska <mliska@suse.cz>
9086
9087 * c-format.c (static void check_format_info_main): Use
9088 object_allocator instead of pool_allocator.
9089 (check_format_arg): Likewise.
9090 (check_format_info_main): Likewise.
9091
903f5c23
AM
90922015-07-15 Andrew MacLeod <amacleod@redhat.com>
9093
9094 * c-opts.c: Remove multiline #include comment.
9095
026c3cfd
AH
90962015-07-12 Aldy Hernandez <aldyh@redhat.com>
9097
9098 * c-common.c: Fix double word typos.
9099
bb49ee66
EB
91002015-07-10 Eric Botcazou <ebotcazou@adacore.com>
9101
9102 * c-ada-spec.h (cpp_operation): Revert latest change.
9103 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
9104 constructors and destructors.
9105
1916bcb5
AM
91062015-07-09 Andrew MacLeod <amacleod@redhat.com>
9107
9108 * c-common.h: Adjust includes for flags.h changes.
9109 * stub-objc.c: Likewise.
026c3cfd 9110
a9dcd529
EB
91112015-07-08 Eric Botcazou <ebotcazou@adacore.com>
9112
9113 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
9114 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
9115
b03b462f
JJ
91162015-07-08 Jakub Jelinek <jakub@redhat.com>
9117
9118 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
9119 are to be removed, return NULL rather than original clauses list.
9120
c7131fb2
AM
91212015-07-07 Andrew MacLeod <amacleod@redhat.com>
9122
9123 * array-notation-common.c: Adjust includes.
9124 * c-ada-spec.c: Likewise.
9125 * c-cilkplus.c: Likewise.
9126 * c-common.h: Likewise.
9127 * c-cppbuiltin.c: Likewise.
9128 * c-dump.c: Likewise.
9129 * c-format.c: Likewise.
9130 * c-gimplify.c: Likewise.
9131 * c-indentation.c: Likewise.
9132 * c-lex.c: Likewise.
9133 * c-omp.c: Likewise.
9134 * c-opts.c: Likewise.
9135 * c-pch.c: Likewise.
9136 * c-ppoutput.c: Likewise.
9137 * c-pragma.c: Likewise.
9138 * c-pretty-print.c: Likewise.
9139 * c-semantics.c: Likewise.
9140 * c-ubsan.c: Likewise.
9141 * cilk.c: Likewise.
9142 * stub-objc.c: Likewise.
9143
2a7fb83f
EB
91442015-07-07 Eric Botcazou <ebotcazou@adacore.com>
9145
9146 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
9147 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
9148
a03c9bf1
JM
91492015-07-01 Jason Merrill <jason@redhat.com>
9150
36a85135
JM
9151 * c-common.h (D_CXX11): Rename from D_CXX0X.
9152 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
9153 * c-common.c: Adjust.
9154
e7fa68d5
JM
9155 * c-opts.c (c_common_post_options): Default to C++14.
9156
a03c9bf1
JM
9157 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
9158
fe95b036
ESR
91592015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
9160
9161 Implement N4197 - Adding u8 character literals
b3d5bc62 9162 * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
a64be36b 9163 CPP_CHAR.
b3d5bc62 9164 * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
a64be36b 9165 CPP_UTF8CHAR_USERDEF tokens.
b3d5bc62 9166 * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
a64be36b
EB
9167 and CPP_UTF8CHAR tokens.
9168 (lex_charconst): Treat CPP_UTF8CHAR token.
fe95b036 9169
da2e71c9
MLI
91702015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
9171
9172 PR fortran/66605
9173 * c-common.c (do_warn_unused_parameter): Move here.
9174 * c-common.h (do_warn_unused_parameter): Declare.
9175
b155cfd9
MP
91762015-06-29 Marek Polacek <polacek@redhat.com>
9177
9178 PR c/66322
9179 * c-common.c (check_case_bounds): Add bool * parameter. Set
9180 OUTSIDE_RANGE_P.
9181 (c_add_case_label): Add bool * parameter. Pass it down to
9182 check_case_bounds.
9183 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
9184 warning here.
9185 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
9186 declarations.
9187
31521951
MP
91882015-06-27 Marek Polacek <polacek@redhat.com>
9189
9190 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
9191 or VECTOR_INTEGER_TYPE_P throughout.
9192 * c-gimplify.c: Likewise.
9193
22d03525
MP
91942015-06-26 Marek Polacek <polacek@redhat.com>
9195
9196 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
9197 * c-common.c (c_fully_fold_internal): Likewise.
9198 (c_alignof_expr): Likewise.
9199 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
9200 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
b1726d6c 9201 * cilk.c (create_parm_list): Likewise.
22d03525 9202
af05e6e5
MP
92032015-06-26 Marek Polacek <polacek@redhat.com>
9204
9205 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
9206
f0889939
AM
92072015-06-25 Andrew MacLeod <amacleod@redhat.com>
9208
9209 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
9210 * c-gimplify.c: Likewise.
9211 * c-pragma.c: Likewise.
9212 * c-ubsan.c: Likewise.
9213 * cilk.c: Likewise.
9214
ca752f39
RS
92152015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9216
9217 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
9218 ggc_hasher.
9219
16a16ec7
AM
92202015-06-25 Andrew MacLeod <amacleod@redhat.com>
9221
9222 * cilk.c: Move calls.h after tm.h in the include chain.
9223
0ae9bd27
MP
92242015-06-25 Marek Polacek <polacek@redhat.com>
9225
9226 * array-notation-common.c: Use VAR_P throughout.
9227 * c-ada-spec.c: Likewise.
9228 * c-common.c: Likewise.
9229 * c-format.c: Likewise.
9230 * c-gimplify.c: Likewise.
9231 * c-omp.c: Likewise.
9232 * c-pragma.c: Likewise.
9233 * c-pretty-print.c: Likewise.
9234 * cilk.c: Likewise.
9235
62f9079a
MP
92362015-06-25 Marek Polacek <polacek@redhat.com>
9237
9238 * cilk.c (extract_free_variables): Use is_global_var.
9239
0fa16060
RS
92402015-06-23 Richard Sandiford <richard.sandiford@arm.com>
9241
9242 * c-common.c: Don't include target-def.h.
9243
a68ae2e1
MP
92442015-06-23 Marek Polacek <polacek@redhat.com>
9245
9246 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
9247 when comparing INTEGER_CSTs.
9248
c6a2f2d9
PMR
92492015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
9250
9251 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
9252 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
9253 (dump_ada_template): Skip partially specialized types.
9254
6b4db501
MM
92552015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
9256
9257 * c-common.c (scalar_to_vector): Use std::swap instead of manually
9258 swapping.
9259
abb226c9
AM
92602015-06-17 Andrew MacLeod <amacleod@redhat.com>
9261
9262 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
9263 * c-ada-spec.c: Likewise.
9264 * c-cilkplus.c: Likewise.
9265 * c-common.c: Likewise.
9266 * c-common.h: Likewise.
9267 * c-cppbuiltin.c: Likewise.
9268 * c-dump.c: Likewise.
9269 * c-format.c: Likewise.
9270 * c-gimplify.c: Likewise.
9271 * c-indentation.c: Likewise.
9272 * c-lex.c: Likewise.
9273 * c-omp.c: Likewise.
9274 * c-opts.c: Likewise.
9275 * c-pch.c: Likewise.
9276 * c-ppoutput.c: Likewise.
9277 * c-pragma.c: Likewise.
9278 * c-pretty-print.c: Likewise.
9279 * c-semantics.c: Likewise.
9280 * c-ubsan.c: Likewise.
9281 * cilk.c: Likewise.
9282 * stub-objc.c: Likewise.
9283
076fecad
PP
92842015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
9285
9286 PR c++/65168
9287 * c-common.c (c_common_truthvalue_conversion): Warn when
9288 converting an address of a reference to a truth value.
9289
13fdf2e2
AM
92902015-06-08 Andrew MacLeod <amacleod@redhat.com>
9291
9292 * array-notation-common.c : Adjust include files.
9293 * c-ada-spec.c : Likewise.
9294 * c-cilkplus.c : Likewise.
9295 * c-common.c : Likewise.
9296 * c-common.h : Likewise.
9297 * c-cppbuiltin.c : Likewise.
9298 * c-dump.c : Likewise.
9299 * c-format.c : Likewise.
9300 * c-gimplify.c : Likewise.
9301 * c-indentation.c : Likewise.
9302 * c-lex.c : Likewise.
9303 * c-omp.c : Likewise.
9304 * c-opts.c : Likewise.
9305 * c-pch.c : Likewise.
9306 * c-ppoutput.c : Likewise.
9307 * c-pragma.c : Likewise.
9308 * c-pretty-print.c : Likewise.
9309 * c-semantics.c : Likewise.
9310 * c-ubsan.c : Likewise.
9311 * cilk.c : Likewise.
9312 * stub-objc.c : Likewise.
9313
a1661b90
MP
93142015-06-08 Marek Polacek <polacek@redhat.com>
9315
9316 PR c/66415
9317 * c-format.c (location_from_offset): Return LOC if LINE is null.
9318
d7438551
AH
93192015-06-05 Aldy Hernandez <aldyh@redhat.com>
9320
9321 * c-common.h (c_parse_final_cleanups): New prototype.
9322 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
9323
b3d5bc62
JJ
93242015-06-04 Sriraman Tallam <tmsriram@google.com>
9325
9326 * c-common.c (noplt): New attribute.
9327 (handle_noplt_attribute): New handler.
9328
ecb9f223
AM
93292015-06-04 Andrew MacLeod <amacleod@redhat.com>
9330
9331 * array-notation-common.c: Adjust includes for restructured coretypes.h.
9332 * c-ada-spec.c: Likewise.
9333 * c-cilkplus.c: Likewise.
9334 * c-common.c: Likewise.
9335 * c-common.h: Likewise.
9336 * c-cppbuiltin.c: Likewise.
9337 * c-dump.c: Likewise.
9338 * c-format.c: Likewise.
9339 * c-gimplify.c: Likewise.
9340 * c-indentation.c: Likewise.
9341 * c-lex.c: Likewise.
9342 * c-omp.c: Likewise.
9343 * c-opts.c: Likewise.
9344 * c-pch.c: Likewise.
9345 * c-ppoutput.c: Likewise.
9346 * c-pragma.c: Likewise.
9347 * c-pretty-print.c: Likewise.
9348 * c-semantics.c: Likewise.
9349 * c-ubsan.c: Likewise.
9350 * cilk.c: Likewise.
9351 * stub-objc.c: Likewise.
9352
6ac48155
DM
93532015-06-02 David Malcolm <dmalcolm@redhat.com>
9354
9355 PR c/66220:
9356 * c-indentation.c (should_warn_for_misleading_indentation): Use
9357 expand_location rather than expand_location_to_spelling_point.
9358 Don't warn if the guarding statement is more indented than the
9359 next/body stmts.
9360
773ce42e
DM
93612015-06-02 David Malcolm <dmalcolm@redhat.com>
9362
9363 * c-indentation.c (warn_for_misleading_indentation): Bail out
9364 immediately if -Wmisleading-indentation isn't enabled.
9365
4fef8379
ML
93662015-06-01 Martin Liska <mliska@suse.cz>
9367
9368 * c-format.c (check_format_arg):Use new type-based pool allocator.
9369 (check_format_info_main) Likewise.
9370
1edfb384
EB
93712015-05-31 Eric Botcazou <ebotcazou@adacore.com>
9372
9373 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
9374 (has_nontrivial_methods): Likewise.
9375
9677ef52
MP
93762015-05-25 Marek Polacek <polacek@redhat.com>
9377
9378 * c-ubsan.c (ubsan_instrument_shift): Use type0.
9379
fd5c817a
MP
93802015-05-22 Marek Polacek <polacek@redhat.com>
9381
9382 PR c/47043
9383 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
9384
a2f45fe6 93852015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
581edfa3
TS
9386
9387 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
9388 STACK_GROWS_DOWNWARD.
9389
a2f45fe6 93902015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
62f9f30b
TS
9391
9392 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
9393 STACK_GROWS_DOWNWARD rather than if it is defined.
9394
0fee2ac2 93952015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
b1726d6c 9396
0fee2ac2
MLI
9397 PR c/52952
9398 * c-format.c (location_column_from_byte_offset): New.
9399 (location_from_offset): New.
9400 (struct format_wanted_type): Add offset_loc field.
9401 (check_format_info): Move handling of location for extra arguments
9402 closer to the point of warning.
9403 (check_format_info_main): Pass the result of location_from_offset
9404 to warning_at.
9405 (format_type_warning): Pass the result of location_from_offset
9406 to warning_at.
9407
cf4ef6f7
MP
94082015-05-20 Marek Polacek <polacek@redhat.com>
9409
9410 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
9411
3a65ee74
MP
94122015-05-20 Marek Polacek <polacek@redhat.com>
9413
9414 * c-ada-spec.c (dump_sloc): Use DECL_P.
9415
21b634ae
MP
94162015-05-20 Marek Polacek <polacek@redhat.com>
9417
9418 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
9419 * c-common.c: Likewise.
9420
0e50b624
DM
94212015-05-19 David Malcolm <dmalcolm@redhat.com>
9422
9423 * c-common.h (fe_file_change): Strengthen param from
9424 const line_map * to const line_map_ordinary *.
9425 (pp_file_change): Likewise.
9426 * c-lex.c (fe_file_change): Likewise.
9427 (cb_define): Use linemap_check_ordinary when invoking
9428 SOURCE_LINE.
9429 (cb_undef): Likewise.
9430 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
9431 invoking cb_file_change.
9432 (c_finish_options): Likewise.
9433 (push_command_line_include): Likewise.
9434 (cb_file_change): Strengthen param "new_map" from
9435 const line_map * to const line_map_ordinary *.
9436 * c-ppoutput.c (cb_define): Likewise for local "map".
9437 (pp_file_change): Likewise for param "map" and local "from".
9438
fab27f52
MM
94392015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
9440
9441 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
9442
2fe1d762
TV
94432015-05-18 Tom de Vries <tom@codesourcery.com>
9444
9445 * c-common.c (build_va_arg_1): New function.
9446 (build_va_arg): Add address operator to va_list operand if necessary.
9447
7a37fa90
MM
94482015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
9449
9450 PR c/48956
9451 * c-common.c (int_safely_convertible_to_real_p): Define.
9452 (unsafe_conversion_p): Check conversions involving complex types.
9453 (conversion_warning): Add new warning message for conversions which
9454 discard imaginary component.
9455 * c-common.h: (enum conversion_safety): Add new enumerator for such
9456 conversions.
9457
3aa3c9fc
MP
94582015-05-14 Marek Polacek <polacek@redhat.com>
9459
9460 PR c/66066
9461 PR c/66127
9462 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
9463 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
9464 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
9465 use it. If FOR_INT_CONST, require that all evaluated operands be
9466 INTEGER_CSTs.
9467
c3388e62
DM
94682015-05-12 David Malcolm <dmalcolm@redhat.com>
9469
9470 * c-common.h (warn_for_misleading_indentation): New prototype.
9471 * c-indentation.c: New file.
9472 * c.opt (Wmisleading-indentation): New option.
9473
c7b38fd5
TV
94742015-05-12 Tom de Vries <tom@codesourcery.com>
9475
9476 PR tree-optimization/66010
9477 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
9478
381bf11e
JM
94792015-05-09 Jason Merrill <jason@redhat.com>
9480
edff0c06
JM
9481 * c-opts.c (c_common_post_options): Also clear
9482 cpp_opts->cpp_warn_cxx11_compat.
9483
129211bc
JM
9484 * c-common.h (enum cxx_dialect): Add cxx_unset.
9485 * c-common.c (cxx_dialect): Initialize to cxx_unset.
9486 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
9487
381bf11e
JM
9488 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
9489 (std=gnu++0x): Mark as Undocumented.
9490 (std=gnu++1y): Add deprecated message.
9491
fe191308
JM
94922015-05-08 Jason Merrill <jason@redhat.com>
9493
765189ff
JM
9494 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
9495 * c-opts.c: Adjust.
9496
fe191308
JM
9497 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
9498
755e528f
MP
94992015-05-08 Marek Polacek <polacek@redhat.com>
9500
9501 PR c/64918
9502 * c.opt (Woverride-init-side-effects): New option.
9503
0173bd2a
MP
95042015-05-07 Marek Polacek <polacek@redhat.com>
9505
9506 PR c/65179
9507 * c-common.c (c_fully_fold_internal): Warn when left shifting a
9508 negative value.
9509 * c.opt (Wshift-negative-value): New option.
9510 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
9511 when -Wextra and C99/C++11 mode.
9512
e0f0d3b9
MP
95132015-05-07 Marek Polacek <polacek@redhat.com>
9514 Martin Uecker <uecker@eecs.berkeley.edu>
9515
9516 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
9517 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
9518
8243e2a9
JM
95192015-05-05 Jason Merrill <jason@redhat.com>
9520
9521 * c.opt (Wterminate): New.
9522
577cd070
MP
95232015-04-30 Marek Polacek <polacek@redhat.com>
9524
9525 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
9526 require that the non-constant be of a boolean type.
9527
0373796b
JT
95282015-04-29 Josh Triplett <josh@joshtriplett.org>
9529
e0f0d3b9
MP
9530 * c-common.c (handle_section_attribute): Refactor to reduce
9531 nesting and distinguish between error cases.
0373796b 9532
716c0ba6
MP
95332015-04-29 Marek Polacek <polacek@redhat.com>
9534
9535 PR c/64610
9536 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
9537 with 0/1.
9538
8848828b
JJ
95392015-04-29 Jakub Jelinek <jakub@redhat.com>
9540
9541 * c-common.h (omp_clause_mask): Unconditionally define as a class.
9542 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
9543 HOST_BITS_PER_WIDE_INT.
9544
ecd0e562
TV
95452015-04-28 Tom de Vries <tom@codesourcery.com>
9546
9547 PR tree-optimization/65887
9548 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
9549
2a877204 95502015-04-28 Eric Botcazou <ebotcazou@adacore.com>
e0f0d3b9 9551 Pierre-Marie de Rodat <derodat@adacore.com>
2a877204
EB
9552
9553 * c-ada-spec.c (in_function): Delete.
9554 (dump_generic_ada_node): Do not change in_function and remove the
9555 redundant code dealing with it.
9556 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
9557 (print_ada_methods): Output the static member functions in a nested
9558 package after the regular methods as well as associated renamings.
9559
4853031e
MP
95602015-04-24 Marek Polacek <polacek@redhat.com>
9561
9562 PR c/65830
9563 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
9564 and OPT_Wshift_count_overflow.
9565
8c2b7f79
MP
9566 PR c/63357
9567 * c-common.c (warn_logical_operator): Warn if the operands have the
9568 same expressions.
9569
b8787813
MP
95702015-04-24 Marek Polacek <polacek@redhat.com>
9571
9572 PR c/61534
9573 * c-common.c (warn_logical_operator): Bail if either operand comes
9574 from a macro expansion.
9575
8fba1830
BRF
95762015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9577
9578 PR target/55143
9579 * c-common.c (c_default_pointer_mode): Add definition.
9580 * c-common.h (c_default_pointer_mode): Add declaration.
9581
17958621
JJ
95822015-03-11 Jakub Jelinek <jakub@redhat.com>
9583
9584 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
9585 on record_builtin_type argument.
9586
7ccb1a11
JJ
95872015-03-10 Jakub Jelinek <jakub@redhat.com>
9588
9589 PR c/65120
9590 * c-common.c (warn_logical_not_parentheses): Don't warn for
9591 !x == 0 or !x != 0.
9592
04fd785e
MP
95932015-03-07 Marek Polacek <polacek@redhat.com>
9594
9595 PR sanitizer/65280
9596 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
9597 before trying to figure out whether we have a flexible array member.
9598
a4e26206 95992015-03-06 Eric Botcazou <ebotcazou@adacore.com>
8e745a17 9600 Jonathan Wakely <jwakely.gcc@gmail.com>
a4e26206
EB
9601
9602 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
9603
0d2489f4
EB
96042015-03-05 Eric Botcazou <ebotcazou@adacore.com>
9605
9606 PR ada/65319
9607 * c-ada-spec.c (print_destructor): Remove obsolete code.
9608
83ed54d7
EB
96092015-03-01 Eric Botcazou <ebotcazou@adacore.com>
9610
9611 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
9612 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
9613 DECL_TEMPLATE_RESULT emulations.
9614 (dump_ada_template)): Add guard for TYPE_METHODS.
9615
7631f0e2
MP
96162015-02-27 Marek Polacek <polacek@redhat.com>
9617
9618 PR c/65040
9619 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
9620
d1783ae5
KT
96212015-02-27 Kai Tietz <ktietz@redhat.com>
9622
9623 PR c/35330
9624 * c-pragma.c (handle_pragma_weak): Do not try to create
9625 weak/alias of declarations not being function, or variable
9626 declarations.
9627
56a9f6bc
TS
96282015-02-24 Thomas Schwinge <thomas@codesourcery.com>
9629
9630 PR libgomp/64625
9631 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
9632 Remove macros.
9633 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
9634
3d5cb23d
MP
96352015-02-16 Marek Polacek <polacek@redhat.com>
9636
9637 PR c/65066
9638 * c-format.c (check_format_types): Handle null param.
9639
fa008882
MP
96402015-02-13 Marek Polacek <polacek@redhat.com>
9641
9642 PR c/65040
9643 * c-format.c (check_format_types): Don't warn about different
9644 signedness if the original value is in the range of WANTED_TYPE.
9645
785f21af
JM
96462015-02-12 Jason Merrill <jason@redhat.com>
9647
9648 PR c++/64956
9649 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
9650 to the current highest version.
9651 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
9652
4886ec8e
JJ
96532015-02-04 Jakub Jelinek <jakub@redhat.com>
9654
9655 PR c/64824
9656 PR c/64868
9657 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
9658 instead of RDIV_EXPR. Use build_binary_op instead of
9659 build2_loc.
9660
40fecdd6
JM
96612015-01-30 Joseph Myers <joseph@codesourcery.com>
9662
9663 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
9664 to pass input_location as first argument.
9665
a0c88d06
TV
96662015-01-23 Tom de Vries <tom@codesourcery.com>
9667
9668 PR libgomp/64672
9669 * c.opt (fopenacc): Mark as LTO option.
9670
1506ae0e
TV
96712015-01-23 Tom de Vries <tom@codesourcery.com>
9672
9673 PR libgomp/64707
9674 * c.opt (fopenmp): Mark as LTO option.
9675
31be63ab
JJ
96762015-01-21 Jakub Jelinek <jakub@redhat.com>
9677
9678 PR c/63307
b1726d6c 9679 * cilk.c (fill_decls_vec): Only put decls into vector v.
31be63ab
JJ
9680 (compare_decls): Fix up formatting.
9681
96822015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
9683
9684 PR c/63307
9685 * cilk.c: Include vec.h.
9686 (struct cilk_decls): New structure.
9687 (wrapper_parm_cb): Split this function to...
9688 (fill_decls_vec): ...this...
9689 (create_parm_list): ...and this.
9690 (compare_decls): New function.
9691 (for_local_cb): Remove.
9692 (wrapper_local_cb): Ditto.
9693 (build_wrapper_type): For now first traverse and fill vector of
9694 declarations then sort it and then deal with sorted vector.
9695 (cilk_outline): Ditto.
9696 (declare_one_free_variable): Ditto.
9697
6875457f
JM
96982015-01-21 Jason Merrill <jason@redhat.com>
9699
9700 PR c++/64629
9701 * c-format.c (check_format_arg): Call decl_constant_value.
9702
185c9e56
ML
97032015-01-19 Martin Liska <mliska@suse.cz>
9704
9705 * c-common.c (handle_noicf_attribute): New function.
9706
41dbbb37
TS
97072015-01-15 Thomas Schwinge <thomas@codesourcery.com>
9708 Bernd Schmidt <bernds@codesourcery.com>
9709 James Norris <jnorris@codesourcery.com>
9710 Cesar Philippidis <cesar@codesourcery.com>
9711 Ilmir Usmanov <i.usmanov@samsung.com>
9712 Jakub Jelinek <jakub@redhat.com>
9713
9714 * c.opt (fopenacc): New option.
9715 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
9716 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
9717 New macros.
9718 * c-common.h (c_finish_oacc_wait): New prototype.
9719 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
9720 (c_finish_oacc_wait): New function.
9721 * c-pragma.c (oacc_pragmas): New variable.
9722 (c_pp_lookup_pragma, init_pragma): Handle it.
9723 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
9724 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
9725 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
9726 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
9727 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
9728 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
9729 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
9730 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
9731 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
9732 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
9733 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
9734 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
9735 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
9736 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
9737 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
9738 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
9739 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
9740 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
9741 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
9742 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
9743 PRAGMA_OACC_CLAUSE_WORKER.
9744
3f8257db 97452015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
5434dc07
MD
9746
9747 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
9748 for the new option fstack-protector_explicit.
9749 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
9750 (handle_stack_protect_attribute): New function.
9751
3f8257db 97522015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
de1b5c17
MU
9753
9754 * c.opt: New option -Warray-bounds=.
9755
adfac8df
JJ
97562015-01-09 Michael Collison <michael.collison@linaro.org>
9757
9758 * array-notation-common.c: Include hash-set.h, machmode.h,
9759 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
9760 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
9761 * c-ada-spec.c: Ditto.
9762 * c-cilkplus.c: Ditto.
9763 * c-common.c: Include input.h due to flattening of tree.h.
9764 Define macro GCC_C_COMMON_C.
9765 * c-common.h: Flatten tree.h header files into c-common.h.
9766 Remove include of tree-core.h.
9767 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
9768 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
9769 fold-const.h, wide-int.h, and inchash.h due to
9770 flattening of tree.h.
9771 * c-dump.c: Ditto.
9772 * c-format.c: Flatten tree.h header files into c-common.h.
9773 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
9774 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
9775 fold-const.h, wide-int.h, and inchash.h due to
9776 flattening of tree.h.
9777 * c-dump.c: Include hash-set.h, machmode.h,
9778 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
9779 fold-const.h, wide-int.h, and inchash.h due to
9780 flattening of tree.h.
9781 * c-format.c: Include hash-set.h, machmode.h,
9782 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
9783 fold-const.h, wide-int.h, inchash.h and real.h due to
9784 flattening of tree.h.
9785 * c-gimplify.c: Include hash-set.h, machmode.h,
9786 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
9787 fold-const.h, wide-int.h, and inchash.h due to
9788 flattening of tree.h.
9789 * cilk.c: Ditto.
9790 * c-lex.c: Ditto.
9791 * c-omp.c: Ditto.
9792 * c-opts.c: Ditto.
9793 * c-pch.c: Ditto.
9794 * c-ppoutput.c: Ditto.
9795 * c-pragma.c: Ditto.
9796 * c-pretty-print.c: Ditto.
9797 * c-semantics.c: Ditto.
9798 * c-ubsan.c: Ditto.
9799 * stub-objc.c: Ditto.
9800
f5481fc4
JM
98012015-01-08 Jason Merrill <jason@redhat.com>
9802
9803 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
9804 do_ubsan_in_current_function.
9805 (ubsan_maybe_instrument_reference_or_call): Likewise.
9806 * c-ubsan.h: Declare it.
9807
de35aa66
MS
98082015-01-08 Mike Stump <mikestump@comcast.net>
9809
9810 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
9811
4a9a42ab
MP
98122015-01-07 Marek Polacek <polacek@redhat.com>
9813
9814 PR c/64440
9815 * c-common.c (c_fully_fold_internal): Warn for division and modulo
9816 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
9817
2f42e5de
TS
98182015-01-05 Trevor Saunders <tsaunders@mozilla.com>
9819
9820 PR c++/31397
9821 * c.opt (Wsuggest-override): New option.
9822
5624e564
JJ
98232015-01-05 Jakub Jelinek <jakub@redhat.com>
9824
9825 Update copyright years.
9826
5bd012f8
MP
98272015-01-05 Marek Polacek <polacek@redhat.com>
9828
9829 PR c/64423
9830 * c-common.c (warn_array_subscript_with_type_char): Add location_t
9831 parameter. Use it.
9832 * c-common.h (warn_array_subscript_with_type_char): Update
9833 declaration.
9834
a7fa8d18
ESR
98352014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
9836
9837 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
9838 Control macro with flag_sized_deallocation.
9839
3f8257db 98402014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
768952be
MU
9841
9842 * c.opt (Wdiscarded-array-qualifiers): New option.
9843
1f8d3e84
JJ
98442014-12-19 Jakub Jelinek <jakub@redhat.com>
9845
9846 PR preprocessor/63831
9847 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
9848 and __has_cpp_attribute here.
9849 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
9850 c_common_has_attribute.
9851 * c-common.h (c_common_has_attribute): New prototype.
9852 * c-lex.c (init_c_lex): Set cb->has_attribute to
9853 c_common_has_attribute instead of cb_has_attribute.
9854 (get_token_no_padding): New function.
9855 (cb_has_attribute): Renamed to ...
9856 (c_common_has_attribute): ... this. No longer static. Use
9857 get_token_no_padding, require ()s, don't build TREE_LIST
9858 unnecessarily, fix up formatting, adjust diagnostics, call
9859 init_attributes.
9860
20b06add
JM
98612014-12-15 Jason Merrill <jason@redhat.com>
9862
9863 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
9864 (-Wsized-deallocation): New.
9865 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
9866 to on in C++14 and up.
9867
94a073b2
JM
98682014-12-11 Jason Merrill <jason@redhat.com>
9869
acaa5911
JM
9870 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
9871
94a073b2
JM
9872 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
9873 we aren't complaining about VLAs.
9874
7fb66c15
MP
98752014-12-06 Marek Polacek <polacek@redhat.com>
9876
9877 PR tree-optimization/64183
9878 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
9879 shift-expression if it is integer_type_node. Use types_compatible_p.
9880
b731b390
JJ
98812014-11-29 Jakub Jelinek <jakub@redhat.com>
9882
9883 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
9884 last argument from create_tmp_var_raw and create_tmp_var calls.
9885 * cilk.c (gimplify_cilk_spawn): Likewise.
9886 * c-omp.c (c_finish_omp_atomic): Likewise.
9887
6a4da643
MP
98882014-11-28 Marek Polacek <polacek@redhat.com>
9889
9890 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
9891 instead of unsigned_type_node.
9892
541e35a6
MP
98932014-11-28 Marek Polacek <polacek@redhat.com>
9894
9895 PR c/63862
9896 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
9897 to op1_utype.
9898 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
9899 expression to unsigned_type_node.
9900
dcc97066
MW
99012014-11-20 Mark Wielaard <mjw@redhat.com>
9902
9903 PR debug/38757
9904 * c-opts.c (set_std_c89): Set lang_hooks.name.
9905 (set_std_c99): Likewise.
9906 (set_std_c11): Likewise.
9907 (set_std_cxx98): Likewise.
9908 (set_std_cxx11): Likewise.
9909 (set_std_cxx14): Likewise.
9910 (set_std_cxx1z): Likewise.
9911
aa7da51a
JJ
99122014-11-21 Jakub Jelinek <jakub@redhat.com>
9913
9914 PR target/63764
9915 * c-common.h (convert_vector_to_pointer_for_subscript): Change
9916 return type to bool.
009a3480 9917 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
9918 (convert_vector_to_pointer_for_subscript): Change return type to
9919 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
9920 and copy it into a TARGET_EXPR and use that instead of *vecp
9921 directly.
9922
538dd0b7
DM
99232014-11-19 David Malcolm <dmalcolm@redhat.com>
9924
9925 Merger of git branch "gimple-classes-v2-option-3".
9926 * ChangeLog.gimple-classes: New.
9927 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
9928 from being just a vec<gimple> to a vec<gbind *>.
9929
c39a5e99
JJ
99302014-11-18 Jakub Jelinek <jakub@redhat.com>
9931
9932 PR sanitizer/63813
9933 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
9934 argument to ptype, set type to TREE_TYPE (ptype). Don't call
9935 get_pointer_alignment for non-pointers. Use ptype, or if it is
9936 reference type, corresponding pointer type, as type of kind
9937 argument.
9938 (ubsan_maybe_instrument_reference,
9939 ubsan_maybe_instrument_member_call): Adjust callers.
9940
8537a4a9
MP
99412014-11-15 Marek Polacek <polacek@redhat.com>
9942
9943 PR middle-end/63884
9944 * array-notation-common.c (is_sec_implicit_index_fn): Return false
9945 for NULL fndecl.
9946 (extract_array_notation_exprs): Return for NULL node.
9947
2079956a
JM
99482014-11-12 Joseph Myers <joseph@codesourcery.com>
9949
9950 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
9951 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
9952
1304953e
JJ
99532014-11-12 Jakub Jelinek <jakub@redhat.com>
9954
9955 PR c/59708
9956 * c-common.c (check_builtin_function_arguments): Handle
9957 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
9958
e5e44252
AK
99592014-11-10 Andi Kleen <ak@linux.intel.com>
9960
9961 PR c/60804
9962 * c-common.h (check_no_cilk): Declare.
9963 * cilk.c (get_error_location): New function.
9964 (check_no_cilk): Dito.
9965
e64b984d
AK
99662014-11-10 Andi Kleen <ak@linux.intel.com>
9967
9968 * cilk.c (recognize_spawn): Use expression location
9969 for error message.
9970
13c21655
PC
99712014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
9972
9973 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
9974
42fd12b1
ESR
99752014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
9976
9977 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
9978 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
9979 (__cpp_range_based_for, __cpp_initializer_lists,
9980 __cpp_delegating_constructors, __cpp_nsdmi,
9981 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
9982 for C++11; (__cpp_attribute_deprecated): Remove in favor of
9983 __has_cpp_attribute.
9984 * c-lex.c (cb_has_attribute): New callback CPP function;
9985 (init_c_lex): Set has_attribute callback.
9986
6f450181
RB
99872014-11-04 Richard Biener <rguenther@suse.de>
9988
9989 * c-common.c (shorten_compare): Do not shorten mixed
9990 DFP and non-DFP compares.
9991
26f0e1d6
ESR
99922014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
9993
9994 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
9995 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
9996 Commentary and rearrangement of tests.
9997 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
9998 Commentary and rearrangement of tests.
ab20d992 9999 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto.
26f0e1d6
ESR
10000 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
10001
ef4bddc2
RS
100022014-10-29 Richard Sandiford <richard.sandiford@arm.com>
10003
10004 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
10005 enum from machine_mode.
10006
c582198b
AM
100072014-10-28 Andrew MacLeod <amacleod@redhat.com>
10008
adfac8df
JJ
10009 * c-common.c: Adjust include files.
10010 * c-gimplify.c: Ditto.
10011 * cilk.c: Ditto.
10012 * c-pragma.c: Ditto.
10013 * c-ubsan.c: Ditto.
c582198b 10014
60393bbc
AM
100152014-10-27 Andrew MacLeod <amacleod@redhat.com>
10016
10017 * c-gimplify.c: Adjust include files.
10018
d723bb7c
MLI
100192014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
10020
10021 PR c++/53061
10022 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
10023 c_common_initialize_diagnostics.
10024 * c-common.h: Likewise.
10025
90f3520e
MP
100262014-10-24 Marek Polacek <polacek@redhat.com>
10027
10028 PR c/56980
10029 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
10030 print "struct"/"union"/"enum" for typedefed names.
10031
59d7607a
MP
100322014-10-23 Marek Polacek <polacek@redhat.com>
10033
10034 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
10035 in unsigned type.
10036
d95a2703
JJ
100372014-10-22 Jakub Jelinek <jakub@redhat.com>
10038 Yury Gribov <y.gribov@samsung.com>
10039
10040 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
10041 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
10042 instead of flag_sanitize_recover as bool flag.
10043
8e6ef852
KY
100442014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
10045
10046 * cilk.c: Revert previous change.
10047
948cf550
IZ
100482014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
10049
10050 PR c/63307
10051 * cilk.c: Include vec.h.
10052 (struct cilk_decls): New structure.
10053 (wrapper_parm_cb): Split this function to...
10054 (fill_decls_vec): ...this...
10055 (create_parm_list): ...and this.
10056 (compare_decls): New function.
10057 (for_local_cb): Remove.
10058 (wrapper_local_cb): Ditto.
10059 (build_wrapper_type): For now first traverse and fill vector of
10060 declarations then sort it and then deal with sorted vector.
10061 (cilk_outline): Ditto.
10062 (declare_one_free_variable): Ditto.
10063
92574c7c
MP
100642014-10-17 Marek Polacek <polacek@redhat.com>
10065
10066 * c-opts.c (c_common_post_options): Set warn_implicit_int.
10067 * c.opt (Wimplicit-int): Initialize to -1.
10068
83685514
AM
100692014-10-16 Andrew MacLeod <amacleod@redhat.com>
10070
10071 * c-pragma.c: Adjust include files.
10072 * c-semantics.c: Likewise.
10073
5b8300ea
DD
100742014-10-16 DJ Delorie <dj@redhat.com>
10075
10076 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
10077 multiples of bytes.
10078
5f83e90b
JM
100792014-10-14 Jason Merrill <jason@redhat.com>
10080
10081 PR c++/63455
10082 * c-common.h (CPP_PREPARSED_EXPR): New.
10083 (N_CP_TTYPES): Adjust.
10084
d73326ca
MP
100852014-10-15 Marek Polacek <polacek@redhat.com>
10086
10087 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
10088
78a7c317
DD
100892014-10-14 DJ Delorie <dj@redhat.com>
10090
10091 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
10092 types, not just __int128.
10093 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
10094 types, not just __int128.
10095 (cpp_atomic_builtins): Round pointer sizes up.
10096 (type_suffix): Use type precision, not specific types.
10097 * c-common.c (c_common_reswords): Remove __int128 special case.
10098 (c_common_type_for_size): Check for all __intN types, not just
10099 __int128.
10100 (c_common_type_for_mode): Likewise.
10101 (c_common_signed_or_unsigned_type): Likewise.
10102 (c_build_bitfield_integer_type): Likewise.
10103 (c_common_nodes_and_builtins): Likewise.
10104 (keyword_begins_type_specifier): Likewise.
10105 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
10106 __intN variants.
10107
2a22f99c
TS
101082014-10-12 Trevor Saunders <tsaunders@mozilla.com>
10109
10110 * c-common.c: Use hash_table instead of hashtab.
10111
2a8ef767
ESR
101122014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
10113
adfac8df 10114 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
10115 C++11 section.
10116
3c9aabbd
MG
101172014-10-03 Marc Glisse <marc.glisse@inria.fr>
10118
10119 PR c++/54427
10120 PR c++/57198
10121 PR c++/58845
10122 * c-common.c (warn_logical_operator): Punt for vectors.
10123
a15f7cb8
ESR
101242014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
10125
10126 Implement SD-6: SG10 Feature Test Recommendations
10127 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
10128 macros and the __has_header macro.
10129
8d0cf15e
JM
101302014-09-30 Jason Merrill <jason@redhat.com>
10131
dd5d5481
JM
10132 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
10133 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
10134 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
10135
b752325e
JM
10136 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
10137 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
10138
8d0cf15e
JM
10139 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
10140 * c-common.c (c_common_reswords): Remove __is_convertible_to.
10141
083e891e
MP
101422014-09-24 Marek Polacek <polacek@redhat.com>
10143
10144 PR c/61405
10145 PR c/53874
10146 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
10147
7861b648
AK
101482014-09-23 Andi Kleen <ak@linux.intel.com>
10149
10150 * c-common.c (handle_no_reorder_attribute): New function.
10151 (c_common_attribute_table): Add no_reorder attribute.
10152
9a79452d
JM
101532014-09-22 Joseph Myers <joseph@codesourcery.com>
10154
10155 * c-cppbuiltin.c (c_cpp_builtins): Define
10156 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
10157 modes.
10158
dd69f047
JM
101592014-09-18 Joseph Myers <joseph@codesourcery.com>
10160
10161 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
10162 for supported floating-point modes.
10163
737a4826
MLI
101642014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10165
10166 * c.opt (Wpsabi): Use LangEnabledBy.
10167 * c-opts.c (c_common_handle_option): Do not handle here.
10168
8cc4b7a2
JM
101692014-09-12 Joseph Myers <joseph@codesourcery.com>
10170
10171 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
10172 macros for floating-point modes.
10173
179b5a55
MG
101742014-09-11 Marc Glisse <marc.glisse@inria.fr>
10175
10176 PR target/58757
10177 * c-cppbuiltin.c (builtin_define_float_constants): Correct
10178 __*_DENORM_MIN__ without denormals.
10179
570a11fe
JJ
101802014-09-10 Jakub Jelinek <jakub@redhat.com>
10181
10182 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
10183 ubsan_instrument_vla, ubsan_instrument_return): Adjust
10184 ubsan_create_data callers.
10185 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
10186 index is constant or BIT_AND_EXPR with constant mask and is
10187 small enough for the bound.
10188 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
10189 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
10190
b559c810
MLI
101912014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
10192
10193 * c.opt: Add CppReason to various flags.
10194 (Wdate-time): Re-sort.
10195 * c-common.c: Include c-common.h earlier.
10196 (struct reason_option_codes_t): Delete.
10197 (c_option_controlling_cpp_error): Prefix global type and struct
10198 with cpp_.
10199
1ef33fd4
MLI
102002014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
10201
10202 * c.opt (Wnormalized): New.
10203 (Wnormalized=): Use Enum and Reject Negative.
10204 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
10205
66bb34c0
JM
102062014-09-08 Joseph Myers <joseph@codesourcery.com>
10207
10208 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
10209 digits of floating-point modes if -fbuilding-libgcc.
10210
53d68b9f
JM
102112014-09-05 Joseph Myers <joseph@codesourcery.com>
10212
10213 * c-cppbuiltin.c (c_cpp_builtins): Also define
10214 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
10215 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
10216 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
10217 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
10218 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
10219 __LIBGCC_STACK_GROWS_DOWNWARD__,
10220 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
10221 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
10222 __LIBGCC_DWARF_FRAME_REGISTERS__,
10223 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
10224 __LIBGCC_STACK_POINTER_REGNUM__ and
10225 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
10226 (builtin_define_with_value): Handle backslash-escaping in string
10227 macro values.
10228
f65586dc
RB
102292014-09-05 Richard Biener <rguenther@suse.de>
10230
10231 PR middle-end/63148
10232 * c-format.c (check_format_arg): Properly handle
10233 effectively signed POINTER_PLUS_EXPR offset.
10234
2b71f4a4
MLI
102352014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
10236
10237 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
10238 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
10239 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
10240 and Init.
10241 * c-opts.c (c_common_handle_option): Do not handle here.
10242 (sanitize_cpp_opts): Likewise.
10243 * c-common.c (struct reason_option_codes_t): Handle
10244 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
10245
d2e4feca
MP
102462014-09-03 Marek Polacek <polacek@redhat.com>
10247
10248 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
10249
9a771876
JJ
102502014-09-02 Jakub Jelinek <jakub@redhat.com>
10251 Balaji V. Iyer <balaji.v.iyer@intel.com>
10252 Igor Zamyatin <igor.zamyatin@intel.com>
10253
10254 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
10255 * c-common.c (c_common_reswords): Added _Cilk_for.
10256 * c-common.h (enum rid): Added RID_CILK_FOR.
10257 (cilk_for_number_of_iterations): Add declaration.
10258 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
10259 CILK_FOR.
10260 * c-pragma.c (init_pragma): Register "grainsize" pragma.
10261 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
10262
81b5d104
MLI
102632014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
10264
10265 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
10266 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
10267 Wundef): Use CPP, Var and Init.
10268 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
10269
b753b37b
MLI
102702014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
10271
10272 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
10273 * c-opts.c (c_common_handle_option): Do not handle here.
10274
028aee17
JM
102752014-08-25 Jason Merrill <jason@redhat.com>
10276
10277 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
10278 -std=c++14 and -std=gnu++14, rather than the reverse.
10279 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
10280 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
10281 * c-common.h (cxx_dialect): Remove cxx1y.
10282
e4276ba5
ESR
102832014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
10284
10285 * c-common.h (enum cxx_dialect): Add cxx14.
10286 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
10287 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
10288 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
10289
a545cacd
JM
102902014-08-22 Jason Merrill <jason@redhat.com>
10291
10292 * c.opt (std=gnu++17): Fix alias.
10293
59ea0364
MP
102942014-08-22 Marek Polacek <polacek@redhat.com>
10295
10296 PR c++/62199
10297 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
10298 check for vector types. Drop LHS argument.
10299 * c-common.h (warn_logical_not_parentheses): Adjust.
10300
596e808c
MLI
103012014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
10302
10303 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
10304 (Wmultichar): Likewise.
10305 (Wdate-time): Use C-family languages instead of Common. Use CPP
10306 and Var.
10307 * c-opts.c (c_common_handle_option): Do not handle the above
10308 options here.
10309 (sanitize_cpp_opts): Likewise.
10310
18767f65
MLI
103112014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
10312
10313 PR fortran/44054
10314 * c-opts.c: Include tree-diagnostics.h.
10315 (c_diagnostic_finalizer): New.
10316 (c_common_initialize_diagnostics): Use it.
10317
b4413594
MLI
103182014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
10319
10320 PR preprocessor/51303
10321 * c-common.c (struct reason_option_codes_t option_codes):
10322 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
10323
43f9a13c
MLI
103242014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
10325
10326 PR c/60975
10327 PR c/53063
10328 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
10329 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
10330 (c_common_post_options): Call init_global_opts_from_cpp.
10331 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
10332
04159acf
MP
103332014-08-19 Marek Polacek <polacek@redhat.com>
10334
10335 PR c++/62153
10336 * c-common.c (maybe_warn_bool_compare): New function.
10337 * c-common.h (maybe_warn_bool_compare): Declare.
10338 * c.opt (Wbool-compare): New option.
10339
35aff4fb
MP
103402014-08-19 Marek Polacek <polacek@redhat.com>
10341
10342 * c.opt (Wc99-c11-compat): New option.
10343
177cce46
MP
103442014-08-19 Marek Polacek <polacek@redhat.com>
10345
10346 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
10347 to warn_c90_c99_compat.
10348 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
10349 to -1.
10350
6ae9194f
MLI
103512014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
10352 Steven Bosscher <steven@gcc.gnu.org>
10353
10354 PR c/52952
10355 * c-format.c: Add extra_arg_loc and format_string_loc to struct
10356 format_check_results.
10357 (check_function_format): Use true and add comment for boolean
10358 argument.
10359 (finish_dollar_format_checking): Use explicit location when warning.
10360 (check_format_info): Likewise.
10361 (check_format_arg): Set extra_arg_loc and format_string_loc.
10362 (check_format_info_main): Use explicit location when warning.
10363 (check_format_types): Pass explicit location.
10364 (format_type_warning): Likewise.
10365
8e54f6d3
MLI
103662014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10367
10368 PR fortran/44054
10369 * c-format.c: Handle Fortran flags.
10370
cd4e76fc
IZ
103712014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
10372
10373 PR other/61962
10374 * array-notation-common.c (find_rank): Added handling for other
10375 types of references.
10376
f3bede71
MP
103772014-08-10 Marek Polacek <polacek@redhat.com>
10378
10379 PR c/51849
10380 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
10381 * c.opt (Wc90-c99-compat): Add option.
10382
9f25a338
TS
103832014-08-07 Trevor Saunders <tsaunders@mozilla.com>
10384
10385 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
10386
62e4eb35
MP
103872014-08-03 Marek Polacek <polacek@redhat.com>
10388
ab20d992 10389 * c-common.c (check_case_value): Add location_t parameter. Use it.
62e4eb35
MP
10390 (c_add_case_label): Pass loc to check_case_value.
10391
b787e7a2
TS
103922014-08-02 Trevor Saunders <tsaunders@mozilla.com>
10393
10394 * cilk.c: Use hash_map instead of pointer_map.
10395
6e2830c3
TS
103962014-08-02 Trevor Saunders <tsaunders@mozilla.com>
10397
10398 * c-gimplify.c: Use hash_set instead of pointer_set.
10399
a7ee52fb
IZ
104002014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
10401
10402 PR middle-end/61455
10403 * array-notation-common.c (extract_array_notation_exprs): Handling
10404 of DECL_EXPR added.
10405
944fa280
JJ
104062014-08-01 Jakub Jelinek <jakub@redhat.com>
10407
10408 * c-common.h (min_align_of_type): Removed prototype.
10409 * c-common.c (min_align_of_type): Removed.
10410 * c-ubsan.h (ubsan_maybe_instrument_reference,
10411 ubsan_maybe_instrument_member_call): New prototypes.
10412 * c-ubsan.c: Include stor-layout.h and builtins.h.
10413 (ubsan_maybe_instrument_reference_or_call,
10414 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
10415 functions.
10416
b4dfdc11
MG
104172014-07-31 Marc Glisse <marc.glisse@inria.fr>
10418
10419 PR c++/60517
10420 * c.opt (-Wreturn-local-addr): Move to common.opt.
10421
a41844e5
JM
104222014-07-30 Jason Merrill <jason@redhat.com>
10423
10424 PR c++/61659
10425 PR c++/61687
10426 Revert:
10427 * c.opt (-fuse-all-virtuals): New.
10428
976d5a22
TT
104292014-07-30 Tom Tromey <tromey@redhat.com>
10430
10431 PR c/59855
10432 * c.opt (Wdesignated-init): New option.
10433 * c-common.c (c_common_attribute_table): Add "designated_init".
10434 (handle_designated_init): New function.
10435
cdc94aca
MP
104362014-07-24 Marek Polacek <polacek@redhat.com>
10437
10438 PR c/57653
10439 * c-opts.c (c_finish_options): If -imacros is in effect, return.
10440
f41373b6
DS
104412014-07-16 Dodji Seketeli <dodji@redhat.com>
10442
10443 PR preprocessor/60723 - missing system-ness marks for macro tokens
10444 * c-ppoutput.c (struct print::prev_was_system_token): New data
10445 member.
10446 (init_pp_output): Initialize it.
10447 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
10448 (do_line_change): Return a flag saying if a line marker was
10449 emitted or not.
10450 (scan_translation_unit): Detect if the system-ness of the token we
10451 are about to emit is different from the one of the previously
10452 emitted token. If so, emit a line marker. Avoid emitting useless
10453 adjacent line markers. Avoid emitting line markers for tokens
10454 originating from the expansion of built-in macros.
10455 (scan_translation_unit_directives_only): Adjust.
10456
4d661eaa
MP
104572014-07-15 Marek Polacek <polacek@redhat.com>
10458
10459 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
10460 TYPE_MAX_VALUE is NULL.
10461
b108f48f
JJ
104622014-07-14 Jakub Jelinek <jakub@redhat.com>
10463
10464 PR middle-end/61294
10465 * c.opt (Wmemset-transposed-args): New warning.
10466
c0221884
JM
104672014-07-10 Jason Merrill <jason@redhat.com>
10468
10469 PR c++/61659
10470 PR c++/61687
10471 * c.opt (-fuse-all-virtuals): New.
10472
63dfbb95
RB
104732014-07-09 Richard Biener <rguenther@suse.de>
10474
10475 PR c-family/61741
10476 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
10477 using unsigned arithmetic if overflow does not wrap instead of
10478 if overflow is undefined.
10479
773ec47f
MP
104802014-07-06 Marek Polacek <polacek@redhat.com>
10481
10482 PR c/6940
10483 * c.opt (Wsizeof-array-argument): New option.
10484
00a7ba58
JJ
104852014-07-03 Jakub Jelinek <jakub@redhat.com>
10486
b1726d6c 10487 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
00a7ba58
JJ
10488 comments->count <= 1, as comments->entries might be NULL.
10489
52ec0ea3
MP
104902014-07-01 Marek Polacek <polacek@redhat.com>
10491
10492 * c.opt (Wint-conversion): New option.
10493
d5c3d343
MP
104942014-07-01 Marek Polacek <polacek@redhat.com>
10495
10496 PR c/58286
10497 * c.opt (Wincompatible-pointer-types): New option.
10498
6e7ceb17
PC
104992014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
10500
10501 PR c++/51400
10502 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
10503 Do not discard TYPE_QUALS of type.
10504
da73100b
JM
105052014-06-26 Jason Merrill <jason@redhat.com>
10506
10507 * c-common.h (enum cxx_dialect): Add cxx1z.
10508 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
10509 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
10510
08eedf75
TJ
105112014-06-26 Teresa Johnson <tejohnson@google.com>
10512
10513 * c-common.h (get_dump_info): Declare.
10514 * c-gimplify.c (c_genericize): Use saved dump files.
10515 * c-opts.c (c_common_parse_file): Begin and end dumps
10516 once around parsing invocation.
10517 (get_dump_info): New function.
10518
7b56b2f8
MP
105192014-06-23 Marek Polacek <polacek@redhat.com>
10520 Andrew MacLeod <amacleod@redhat.com>
10521
10522 PR c/61553
10523 * c-common.c (get_atomic_generic_size): Don't segfault if the
10524 type doesn't have a size.
10525
0e37a2f3
MP
105262014-06-20 Marek Polacek <polacek@redhat.com>
10527
10528 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
10529 (ubsan_walk_array_refs_r): New function.
10530 (c_genericize): Instrument array bounds.
10531 * c-ubsan.c: Include "internal-fn.h".
10532 (ubsan_instrument_division): Mark instrumented arrays as having
10533 side effects. Adjust ubsan_type_descriptor call.
10534 (ubsan_instrument_shift): Likewise.
10535 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
10536 (ubsan_instrument_bounds): New function.
10537 (ubsan_array_ref_instrumented_p): New function.
10538 (ubsan_maybe_instrument_array_ref): New function.
10539 * c-ubsan.h (ubsan_instrument_bounds): Declare.
10540 (ubsan_array_ref_instrumented_p): Declare.
10541 (ubsan_maybe_instrument_array_ref): Declare.
10542
105432014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
10544
10545 PR lto/61123
10546 * c.opt (fshort-enums): Add to LTO.
10547 * c.opt (fshort-wchar): Likewise.
10548
5c3d09f7
MP
105492014-06-16 Marek Polacek <polacek@redhat.com>
10550
10551 PR c/60439
10552 * c.opt (Wswitch-bool): Add Var.
10553
9cf32741
JJ
105542014-06-12 Jakub Jelinek <jakub@redhat.com>
10555
10556 PR middle-end/61486
10557 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
10558 #pragma omp target teams or
10559 #pragma omp {,target }teams distribute simd.
10560
62984918
JM
105612014-06-12 Jason Merrill <jason@redhat.com>
10562
10563 * c.opt (Wabi=, fabi-compat-version): New.
10564 * c-opts.c (c_common_handle_option): Handle -Wabi=.
10565 (c_common_post_options): Handle flag_abi_compat_version default.
10566 Disallow -fabi-compat-version=1.
10567 * c-common.h (abi_version_crosses): New.
10568
f961457f
JH
105692014-06-11 Jan Hubicka <hubicka@ucw.cz>
10570
adfac8df 10571 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
10572 section names that are no longer trees.
10573
92d28cbb
JJ
105742014-06-10 Jakub Jelinek <jakub@redhat.com>
10575
10576 PR fortran/60928
10577 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
10578 (omp_pragmas): ... back here.
10579
742938c9
MP
105802014-06-05 Marek Polacek <polacek@redhat.com>
10581
10582 PR c/49706
10583 * c-common.c (warn_logical_not_parentheses): New function.
10584 * c-common.h (warn_logical_not_parentheses): Declare.
10585 * c.opt (Wlogical-not-parentheses): New option.
10586
9d548dfb
MP
105872014-06-04 Marek Polacek <polacek@redhat.com>
10588
10589 PR c/30020
10590 * c-common.c (check_case_bounds): Add location parameter.
10591 Use it.
10592 (c_add_case_label): Pass loc to check_case_bounds.
10593
fedfecef
MP
105942014-06-03 Marek Polacek <polacek@redhat.com>
10595
10596 PR c/60439
10597 * c.opt (Wswitch-bool): New option.
10598
f6a7cffc
TS
105992014-05-22 Thomas Schwinge <thomas@codesourcery.com>
10600
040d18b6
TS
10601 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
10602 Remove prototypes.
10603 (record_types_used_by_current_var_decl): Move prototype to where
10604 it belongs.
10605
f6a7cffc
TS
10606 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
10607 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
10608 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
10609
632f2871
RS
106102014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
10611
10612 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
10613 * c-common.c (c_common_nodes_and_builtins): Don't initialize
10614 void_zero_node.
10615 * c-pretty-print.c (pp_c_void_constant): New function.
10616 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
10617 (c_pretty_printer::expression): Handle VOID_CST.
10618 * cilk.c (extract_free_variables): Likewise.
10619 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
10620 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
10621
766090c2
TS
106222014-05-17 Trevor Saunders <tsaunders@mozilla.com>
10623
10624 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
10625 * c-pragma.c (push_alignment): Adjust.
10626 (handle_pragma_push_options): Likewise.
10627
661a0813
MP
106282014-05-09 Marek Polacek <polacek@redhat.com>
10629
10630 PR c/50459
10631 * c-common.c (check_user_alignment): Return -1 if alignment is error
10632 node.
10633 (handle_aligned_attribute): Don't call default_conversion on
10634 FUNCTION_DECLs.
10635 (handle_vector_size_attribute): Likewise.
10636 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
10637 (handle_sentinel_attribute): Call default_conversion and allow even
10638 integral types as an argument.
10639
2793eeab
MP
106402014-05-08 Marek Polacek <polacek@redhat.com>
10641
10642 PR c/61053
10643 * c-common.c (min_align_of_type): New function factored out from...
10644 (c_sizeof_or_alignof_type): ...here.
10645 * c-common.h (min_align_of_type): Declare.
10646
f827930a
MP
106472014-05-08 Marek Polacek <polacek@redhat.com>
10648
10649 PR c/61077
10650 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
10651 parameter type of main.
10652
ca49b74e
DD
106532014-05-07 DJ Delorie <dj@redhat.com>
10654
10655 * c-cppbuiltin.c (print_bits_of_hex): New.
10656 (builtin_define_type_minmax): Print values using hex so as not to
10657 require a pre-computed list of string values.
10658
1d60af08
KZ
106592014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
10660 Mike Stump <mikestump@comcast.net>
10661 Richard Sandiford <rdsandiford@googlemail.com>
10662
10663 * c-ada-spec.c: Include wide-int.h.
10664 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
10665 (dump_generic_ada_node): Use wide-int interfaces.
10666 * c-common.c: Include wide-int-print.h.
10667 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
10668 (pointer_int_sum): Use wide-int interfaces.
10669 (c_common_nodes_and_builtins): Use make_int_cst.
10670 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
10671 (handle_alloc_size_attribute): Use wide-int interfaces.
10672 (get_nonnull_operand): Likewise.
10673 * c-format.c (get_constant): Use tree_fits_uhwi_p.
10674 * c-lex.c: Include wide-int.h.
10675 (narrowest_unsigned_type): Take a widest_int rather than two
10676 HOST_WIDE_INTs.
10677 (narrowest_signed_type): Likewise.
10678 (interpret_integer): Update accordingly. Use wide-int interfaces.
10679 (lex_charconst): Use wide-int interfaces.
10680 * c-pretty-print.c: Include wide-int.h.
10681 (pp_c_integer_constant): Use wide-int interfaces.
10682 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
10683 INT_CST_LT_UNSIGNED.
10684
b15458be
RB
106852014-05-06 Richard Biener <rguenther@suse.de>
10686
10687 * c-opts.c (c_common_post_options): For -freestanding,
10688 -fno-hosted and -fno-builtin disable pattern recognition
10689 if not enabled explicitely.
10690
6577374e
MP
106912014-05-02 Marek Polacek <polacek@redhat.com>
10692
10693 * c.opt (Wsizeof-pointer-memaccess): Describe option.
10694
d00887e8
MP
106952014-05-01 Marek Polacek <polacek@redhat.com>
10696
10697 PR c/43245
10698 * c.opt (Wdiscarded-qualifiers): Add.
10699
f8ed5150
MP
107002014-04-30 Marek Polacek <polacek@redhat.com>
10701
10702 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
10703 INT_MIN / -1 sanitization only for integer types.
10704
45484dcf
MP
107052014-04-25 Marek Polacek <polacek@redhat.com>
10706
10707 PR c/18079
10708 * c-common.c (handle_noinline_attribute): Warn if the attribute
10709 conflicts with always_inline attribute.
10710 (handle_always_inline_attribute): Warn if the attribute conflicts
10711 with noinline attribute.
10712
38e514c0
MP
107132014-04-25 Marek Polacek <polacek@redhat.com>
10714
10715 PR c/60156
10716 * c-common.c (check_main_parameter_types): Warn about variadic main.
10717
44875f92
MS
107182014-04-24 Mike Stump <mikestump@comcast.net>
10719
10720 * c.opt (Wshadow-ivar): Default to on.
10721
dcaaa5a0
DP
107222014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
10723
10724 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
10725
c07d7c02
MP
107262014-04-23 Marek Polacek <polacek@redhat.com>
10727
10728 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
10729
1c33c9b7
JJ
107302014-04-22 Jakub Jelinek <jakub@redhat.com>
10731
10732 PR sanitizer/60275
10733 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
10734 if flag_sanitize_undefined_trap_on_error.
10735 (ubsan_instrument_division, ubsan_instrument_shift,
10736 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
10737 if !flag_sanitize_recover.
10738
793c625f
MG
107392014-04-22 Marc Glisse <marc.glisse@inria.fr>
10740
10741 PR libstdc++/43622
10742 * c-common.c (registered_builtin_types): Make non-static.
10743 * c-common.h (registered_builtin_types): Declare.
10744
b0f1bf36 107452014-04-14 Richard Biener <rguenther@suse.de>
ab20d992 10746 Marc Glisse <marc.glisse@inria.fr>
b0f1bf36
RB
10747
10748 PR c/60819
10749 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
10750 apply may-alias the scalar pointer type when applicable.
10751
3b07fa4a
IZ
107522014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
10753
10754 PR middle-end/60467
10755 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
10756 as possible argument for Cilk_spawn.
10757
cbbd2b1c
TB
107582014-04-11 Tobias Burnus <burnus@net-b.de>
10759
10760 PR c/60194
10761 * c.opt (Wformat-signedness): Add
10762 * c-format.c(check_format_types): Use it.
10763
6415bd5d
JM
107642014-04-11 Jason Merrill <jason@redhat.com>
10765
10766 PR c++/57926
10767 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
10768 default_conversion for an array argument.
10769
6525783a
MP
107702014-04-08 Marek Polacek <polacek@redhat.com>
10771
10772 PR sanitizer/60745
10773 * c-ubsan.c: Include asan.h.
10774 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
10775
880a467b
NS
107762014-04-03 Nathan Sidwell <nathan@codesourcery.com>
10777
10778 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
10779
7b59ff2d
MP
107802014-04-02 Marek Polacek <polacek@redhat.com>
10781
10782 * c-common.h (c_expand_expr): Remove declaration.
10783
8edbfaa6
JJ
107842014-03-28 Jakub Jelinek <jakub@redhat.com>
10785
10786 PR c++/60689
10787 * c-common.c (add_atomic_size_parameter): When creating new
10788 params vector, push the size argument first.
10789
07d72e1d
JJ
107902014-03-26 Jakub Jelinek <jakub@redhat.com>
10791
10792 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
10793 ubsan_instrument_vla, ubsan_instrument_return): Adjust
10794 ubsan_create_data callers.
10795
b35e0fa0
JJ
107962014-03-22 Jakub Jelinek <jakub@redhat.com>
10797
10798 PR debug/60603
10799 * c-opts.c (c_finish_options): Restore cb_file_change call to
10800 <built-in>.
10801
39a1ebb3
JJ
108022014-03-13 Jakub Jelinek <jakub@redhat.com>
10803
10804 PR middle-end/36282
10805 * c-pragma.c (apply_pragma_weak): Only look at
10806 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
10807 DECL_ASSEMBLER_NAME_SET_P (decl).
10808 (maybe_apply_pending_pragma_weaks): Exit early if
10809 vec_safe_is_empty (pending_weaks) rather than only when
10810 !pending_weaks.
10811 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
10812 set assembler name back to NULL afterwards.
10813
a07f6ed2
JM
108142014-03-11 Jason Merrill <jason@redhat.com>
10815
10816 * c.opt: Add -std=gnu++14.
10817
75b107f5
IB
108182014-03-11 Ian Bolton <ian.bolton@arm.com>
10819
10820 * c-opts.c (c_common_post_options): Don't override
10821 -ffp-contract=fast if unsafe-math-optimizations is on.
10822
f42c637e
PM
108232014-03-08 Paulo Matos <paulo@matos-sorge.com>
10824
22b15758 10825 * c.opt: Enable LTO FE for fshort-double.
f42c637e 10826
70e24808
JM
108272014-03-07 Jason Merrill <jason@redhat.com>
10828
10829 * c.opt: Add -std=c++14.
10830
3af9c5e9
MP
108312014-03-06 Marek Polacek <polacek@redhat.com>
10832
10833 PR c/60197
10834 * cilk.c (contains_cilk_spawn_stmt): New function.
10835 (contains_cilk_spawn_stmt_walker): Likewise.
10836 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
10837 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
10838
b3bdf019
JJ
108392014-03-03 Jakub Jelinek <jakub@redhat.com>
10840
10841 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
10842 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
10843 even when flag_preprocess_only.
10844
ca7e759d
JM
108452014-02-26 Jason Merrill <jason@redhat.com>
10846
10847 PR c++/59231
10848 PR c++/11586
10849 * c-common.c (shorten_compare): Don't check
10850 c_inhibit_evaluation_warnings.
10851
28e41874
JJ
108522014-02-19 Jakub Jelinek <jakub@redhat.com>
10853
cca615af
JJ
10854 PR c/37743
10855 * c-common.c (c_common_nodes_and_builtins): When initializing
10856 c_uint{16,32,64}_type_node, also set corresponding
10857 uint{16,32,64}_type_node to the same value.
10858
28e41874
JJ
10859 PR c++/60267
10860 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
10861 for PRAGMA_IVDEP if flag_preprocess_only.
10862
c2bf53a1
JJ
108632014-02-12 Jakub Jelinek <jakub@redhat.com>
10864
10865 PR c/60101
10866 * c-common.c (merge_tlist): If copy is true, call new_tlist,
10867 if false, add ADD itself, rather than vice versa.
10868 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
10869 copy. For SAVE_EXPR, only call merge_tlist once.
10870
8fcbce72
JJ
108712014-02-08 Jakub Jelinek <jakub@redhat.com>
10872
10873 PR middle-end/60092
10874 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
10875 and tree_to_uhwi.
10876 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
10877 functions.
10878 (c_common_attribute_table): Add alloc_align and assume_aligned
10879 attributes.
10880
0a756a3f
MP
108812014-02-06 Marek Polacek <polacek@redhat.com>
10882
10883 PR c/60087
10884 * c-common.c (warn_for_sign_compare): Call warning_at with location
10885 instead of warning.
10886
7ec4847a
MP
108872014-02-05 Marek Polacek <polacek@redhat.com>
10888
10889 PR c/53123
10890 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
10891 statement.
10892
66f20604
MP
108932014-02-04 Marek Polacek <polacek@redhat.com>
10894
10895 PR c/60036
10896 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
10897 SAVE_EXPR.
10898
5d77fb19
MG
108992014-02-03 Marc Glisse <marc.glisse@inria.fr>
10900
10901 PR c++/53017
10902 PR c++/59211
10903 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
10904 handle_vector_size_attribute, handle_nonnull_attribute): Call
10905 default_conversion on the attribute argument.
10906 (handle_nonnull_attribute): Increment the argument number.
10907
81e5eca8
MP
109082014-01-31 Marek Polacek <polacek@redhat.com>
10909
10910 PR c/59963
10911 * c-common.c (add_atomic_size_parameter): Pass vNULL to
10912 build_function_call_vec.
10913 (resolve_overloaded_builtin): Likewise.
10914 * c-common.h (build_function_call_vec): Adjust declaration.
10915
68fca595
MP
109162014-01-30 Marek Polacek <polacek@redhat.com>
10917
10918 PR c/59940
10919 * c-common.h (unsafe_conversion_p): Adjust declaration.
10920 (warnings_for_convert_and_check): Likewise.
10921 (convert_and_check): Likewise.
10922 * c-common.c (unsafe_conversion_p): Add location parameter. Call
10923 expansion_point_location_if_in_system_header on it.
10924 (warnings_for_convert_and_check): Add location parameter. Call
10925 expansion_point_location_if_in_system_header on it. Use it.
10926 (convert_and_check): Add location parameter. Use it.
10927 (conversion_warning): Likewise.
10928 (c_add_case_label): Adjust convert_and_check calls.
10929 (scalar_to_vector): Adjust unsafe_conversion_p calls.
10930
b72271b9
BI
109312014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
10932
10933 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
10934 flag_cilkplus.
10935 * c-pragma.c (init_pragma): Likewise.
10936 * c.opt: Likewise.
10937
393e8e8b
MP
109382014-01-23 Marek Polacek <polacek@redhat.com>
10939
10940 PR c/59846
10941 * c-common.c (shorten_compare): Add location_t parameter.
10942 * c-common.h (shorten_binary_op): Adjust declaration.
10943
f04dda30
MP
109442014-01-23 Marek Polacek <polacek@redhat.com>
10945
10946 PR c/58346
10947 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
10948 * c-common.h: Declare it.
10949
621955cb
EB
109502014-01-20 Eric Botcazou <ebotcazou@adacore.com>
10951
10952 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
10953 * c-ada-spec.c (dump_ads): Likewise.
10954 (cpp_check): Likewise.
10955 (dump_ada_specs): Likewise.
10956
109572014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
10958
10959 PR c++/49718
10960 * c-common.c (handle_no_instrument_function_attribute): Allow
10961 no_instrument_function attribute in class member
10962 definition/declaration.
10963
241f845a
JJ
109642014-01-15 Jakub Jelinek <jakub@redhat.com>
10965
10966 PR c/58943
10967 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
10968 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
10969 being COMPOUND_EXPR.
10970 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
10971 operand a SAVE_EXPR and second MODIFY_EXPR.
10972
e83b8e2e
JJ
109732014-01-09 Jakub Jelinek <jakub@redhat.com>
10974
10975 PR target/58115
10976 * c-pch.c (c_common_write_pch): Call
10977 prepare_target_option_nodes_for_pch.
10978
23a5b65a
RS
109792014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
10980
10981 Update copyright years
10982
f9030485
RS
109832014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
10984
10985 * array-notation-common.c, c-cilkplus.c: Use the standard form for
10986 the copyright notice.
10987
f2aa696b
EB
109882013-12-28 Eric Botcazou <ebotcazou@adacore.com>
10989
10990 * c-ada-spec.c (print_constructor): New function.
10991 (print_destructor): Retrieve the origin of the destructor.
10992 (print_ada_declaration): Revamp handling of constructors/destructors.
10993
3f8257db 109942013-12-23 Stuart Hastings <stuart@apple.com>
1f26ac87
JM
10995 Bill Maddox <maddox@google.com>
10996 Jason Merrill <jason@redhat.com>
10997
10998 * c.opt: Add -fdeclone-ctor-dtor.
10999 * c-opts.c (c_common_post_options): Default to on iff -Os.
11000
41958c28
BI
110012013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
11002
11003 * c-common.c (c_common_attribute_table): Added "cilk simd function"
11004 attribute.
11005 * c-pragma.h (enum pragma_cilk_clause): Remove.
ab20d992 11006 (enum pragma_omp_clause): Added the following fields:
41958c28
BI
11007 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
11008 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
11009 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
11010 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
11011 PRAGMA_CILK_CLAUSE_UNIFORM.
11012
b1726d6c 11013
12893402
BI
110142013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
11015
11016 * cilk.c (cilk_outline): Made this function non-static.
11017 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
11018 (create_cilk_wrapper): Added a new parameter: a function pointer.
11019 (c_install_body_w_frame_cleanup): Remove
11020 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
11021 * c-common.h (cilk_outline): New prototype.
11022 (gimplify_cilk_spawn): Removed two parameters.
11023 (cilk_install_body_with_frame_cleanup): New prototype.
11024 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
11025 CILK_SPAWN_STMT case.
11026
085b42ed
BS
110272013-12-11 Bernd Schmidt <bernds@codesourcery.com>
11028
2ce064c3
BS
11029 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
11030
085b42ed
BS
11031 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
11032 (int_array_type_node): Remove.
11033 * c-common.c (c_common_nodes_and_builtins): Don't build it.
11034
9e36c9ed
MP
110352013-12-05 Marek Polacek <polacek@redhat.com>
11036
11037 PR c/52023
11038 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
11039 [ADJUST_FIELD_ALIGN].
11040
296674db
JM
110412013-12-04 Joseph Myers <joseph@codesourcery.com>
11042
11043 PR c/52023
11044 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
11045 and check field alignment if set.
11046 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
11047 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
11048
b1726d6c 110492013-12-04 Jakub Jelinek <jakub@redhat.com>
31e071ae
MP
11050 Marek Polacek <polacek@redhat.com>
11051
11052 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
11053 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
11054
d7947e19
L
110552013-11-29 H.J. Lu <hongjiu.lu@intel.com>
11056
11057 PR c/59309
11058 * cilk.c (gimplify_cilk_spawn): Properly handle function without
11059 arguments.
11060
fad7652e
JJ
110612013-11-29 Jakub Jelinek <jakub@redhat.com>
11062
11063 PR c/59280
11064 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
11065 goto invalid. If it is error_mark_node, don't issue further
11066 diagnostics.
11067
8b5e1202
SO
110682013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
11069
11070 * c.opt (Wopenmp-simd): New.
11071
0a508bb6
JJ
110722013-11-22 Jakub Jelinek <jakub@redhat.com>
11073
11074 * c-ubsan.h (ubsan_instrument_return): New prototype.
11075 * c-ubsan.c (ubsan_instrument_return): New function.
11076
2fb9a547
AM
110772013-11-22 Andrew MacLeod <amacleod@redhat.com>
11078
11079 * c-common.c: Add required include files from gimple.h.
ab20d992
JJ
11080 * c-gimplify.c: Likewise.
11081 * cilk.c: Likewise.
2fb9a547 11082
8400e75e
DM
110832013-11-22 David Malcolm <dmalcolm@redhat.com>
11084
11085 * c-common.c (unsafe_conversion_p): Remove use of
11086 EXPR_LOC_OR_HERE macro.
11087 (conversion_warning): Likewise.
11088 (warnings_for_convert_and_check): Likewise.
11089 (warn_for_collisions_1): Likewise.
11090 (shorten_compare): Likewise, and remove use of in_system_header
11091 macro, using the location from the former.
11092 * c-lex.c (dump_one_header): Remove use of input_filename macro.
11093 (cb_def_pragma): Remove use of in_system_header macro.
11094 (lex_string): Likewise.
11095 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
11096
eb1ce453
KZ
110972013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
11098 Mike Stump <mikestump@comcast.net>
11099 Richard Sandiford <rdsandiford@googlemail.com>
11100
11101 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
11102 instead of TREE_INT_CST_LOW, in cases where there is a protecting
11103 tree_fits_shwi_p or tree_fits_uhwi_p.
11104 (dump_generic_ada_node): Likewise.
11105 * c-format.c (check_format_arg): Likewise.
11106 * c-pretty-print.c (pp_c_integer_constant): Likewise.
11107
6b3b8c27
KZ
111082013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
11109
11110 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
11111
49b0aa18
JC
111122013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
11113
11114 PR c/53001
11115 * c-common.c (unsafe_conversion_p): Make this function
11116 return an enumeration with more detail.
11117 (conversion_warning): Use the new return type of
11118 unsafe_conversion_p to separately warn either about conversions
11119 that lower floating point number precision or about the other
11120 kinds of conversions.
11121 * c-common.h (enum conversion_safety): New enumeration.
8e745a17
JJ
11122 (unsafe_conversion_p): switching return type to
11123 conversion_safety enumeration.
49b0aa18
JC
11124 * c.opt: Adding new warning -Wfloat-conversion and
11125 enabling it with -Wconversion.
11126
b826515a
BS
111272013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
11128
8e745a17
JJ
11129 * c-opts.c: Include plugin.h.
11130 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
b826515a 11131
b9a55b13
MP
111322013-11-19 Marek Polacek <polacek@redhat.com>
11133
11134 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
11135 call.
11136 (ubsan_instrument_shift): Likewise.
11137 (ubsan_instrument_vla): Likewise.
11138
7d362f6c
RS
111392013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
11140
11141 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
11142 cast to unsigned type.
11143
386b1f1f
RS
111442013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
11145
11146 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
11147 tree_low_cst.
11148 (complete_array_type): Update comment to refer to tree_to_[su]hwi
11149 rather than tree_low_cst.
11150
ae7e9ddd
RS
111512013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
11152
11153 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
11154 tree_to_uhwi throughout.
11155
9439e9a1
RS
111562013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
11157
11158 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
11159 tree_low_cst (..., 0) with tree_to_shwi throughout.
11160
cc269bb6
RS
111612013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
11162
11163 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
11164 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
11165
9541ffee
RS
111662013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
11167
11168 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
11169 host_integerp (..., 0) with tree_fits_shwi_p throughout.
11170
c02065fc
AH
111712013-11-15 Aldy Hernandez <aldyh@redhat.com>
11172
11173 * c-cilkplus.c: New file.
11174 * c-common.c (readonly_error): Add location argument.
11175 * c-common.h (readonly_error): Same.
11176 (c_finish_cilk_clauses): Protoize.
11177 (c_check_cilk_loop): Same.
11178 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
11179 Do not fail on error_mark_node.
11180 Abstract increment canonicalization to here...
11181 (c_omp_for_incr_canonicalize_ptr): New.
11182 c-pragma.c (init_pragma): Register "simd" pragma.
11183 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
11184 (enum pragma_cilk_clause): New.
11185
9cc65f15
RS
111862013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
11187
11188 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
11189 wchar_type and host_integerp checks.
11190
18f429e2
AM
111912013-11-14 Andrew MacLeod <amacleod@redhat.com>
11192
11193 * c-common.c: Likewise.
11194 * c-gimplify.c: Likewise.
11195 * cilk.c: Likewise.
11196
d8a2d370
DN
111972013-11-14 Diego Novillo <dnovillo@google.com>
11198
11199 * c-common.c: Include fold-const.h.
11200 Include stor-layout.h.
11201 Include calls.h.
11202 Include stringpool.h.
11203 Include attribs.h.
11204 Include varasm.h.
11205 Include trans-mem.h.
11206 * c-cppbuiltin.c: Include stor-layout.h.
11207 Include stringpool.h.
11208 * c-format.c: Include stringpool.h.
11209 * c-lex.c: Include stringpool.h.
11210 Include stor-layout.h.
11211 * c-pragma.c: Include stringpool.h.
11212 Include attribs.h.
11213 Include varasm.h.
11214 Include gcc-symtab.h.
11215 * c-pretty-print.c: Include stor-layout.h.
11216 Include attribs.h.
11217 * cilk.c: Include stringpool.h.
11218 Include calls.h.
11219
38b7bc7f
JM
112202013-11-13 Joseph Myers <joseph@codesourcery.com>
11221
11222 * c-common.h (enum rid): Add RID_AUTO_TYPE.
11223 * c-common.c (c_common_reswords): Add __auto_type.
11224 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
11225
45b0be94
AM
112262013-11-12 Andrew MacLeod <amacleod@redhat.com>
11227
18f429e2
AM
11228 * c-common.c: Include gimplify.h.
11229 * c-gimplify.c: Likewise.
11230 * cilk.c: Likewise.
11231 * c-omp.c: Include gimple-expr.h instead of gimple.h.
11232 * c-ubsan.c: Don't include gimple.h.
45b0be94 11233
582d9b50
JM
112342013-11-12 Joseph Myers <joseph@codesourcery.com>
11235
11236 * c-common.c (c_common_reswords): Add _Thread_local.
11237
6b28e197
JM
112382013-11-09 Joseph Myers <joseph@codesourcery.com>
11239
11240 * c-common.c (atomic_size_supported_p): New function.
11241 (resolve_overloaded_atomic_exchange)
11242 (resolve_overloaded_atomic_compare_exchange)
11243 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
11244 Use it instead of comparing size with a local list of sizes.
11245
267bac10
JM
112462013-11-07 Andrew MacLeod <amacleod@redhat.com>
11247 Joseph Myers <joseph@codesourcery.com>
11248
11249 * c-common.h (enum rid): Add RID_ATOMIC.
11250 * c-common.c (c_common_reswords): Add _Atomic.
11251 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
11252 (keyword_is_type_qualifier): Accept RID_ATOMIC.
11253 * c-format.c (check_format_types): Check for extra _Atomic
11254 qualifiers in format argument.
11255 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
11256 (pp_c_type_qualifier_list): Mention _Atomic in comment.
11257
5157b91e
TB
112582013-11-06 Tobias Burnus <burnus@net-b.de>
11259
11260 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
11261
6dbe0958
JM
112622013-11-06 Joseph Myers <joseph@codesourcery.com>
11263
11264 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
11265 standards modes.
11266 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
11267 to mean lack of IEEE 754 support.
11268
e8ff5196
TB
112692013-11-05 Tobias Burnus <burnus@net-b.de>
11270
11271 * c.opt (-Wdate-time): New option
11272 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
11273
254a0760
JM
112742013-11-05 Joseph Myers <joseph@codesourcery.com>
11275
11276 * c-cppbuiltin.c (cpp_iec_559_value): Test
11277 flag_excess_precision_cmdline not flag_excess_precision.
11278
6d7f7e0a
TB
112792013-11-05 Tobias Burnus <burnus@net-b.de>
11280
11281 * c.opt (fopenmp-simd): New option.
11282 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
11283 (omp_pragmas): ... this new struct.
11284 (c_pp_lookup_pragma): Also walk omp_pragmas.
11285 (init_pragma): Init pragmas for -fopenmp-simd.
11286
55a7f02f
MP
112872013-11-04 Marek Polacek <polacek@redhat.com>
11288
11289 PR c++/58979
11290 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
11291
9193fb05
JM
112922013-11-04 Joseph Myers <joseph@codesourcery.com>
11293
11294 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
11295 New functions.
11296 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
11297
94159ecf
EB
112982013-11-04 Eric Botcazou <ebotcazou@adacore.com>
11299
11300 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
11301 (dump_ada_specs): Adjust prototype of second callback.
11302 * c-ada-spec.c (cpp_check): New global variable.
11303 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
11304 (print_generic_ada_decl): Likewise.
11305 (has_static_fields): Change return type to bool and add guard.
11306 (has_nontrivial_methods): New predicate.
11307 (is_tagged_type): Change return type to bool.
11308 (separate_class_package): Call has_nontrivial_methods.
11309 (pp_ada_tree_identifier): Minor tweaks.
11310 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
11311 (dump_ada_array_domains): Likewise.
11312 (dump_ada_array_type): Likewise.
11313 (dump_template_types): Remove cpp_check parameter and do not pass it to
11314 dump_generic_ada_node.
11315 (dump_ada_template): Likewise.
11316 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
11317 recursively.
11318 (print_ada_methods): Change return type to integer. Remove cpp_check
11319 parameter and do not pass it down.
11320 (dump_nested_types): Remove cpp_check parameter and do not pass it to
11321 dump_generic_ada_node.
11322 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
11323 accessing methods.
11324 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
11325 down. Use has_nontrivial_methods to recognize C++ classes. Use return
11326 value of print_ada_methods.
11327 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
11328 Set cpp_check to it before invoking dump_ada_nodes.
11329 (dump_ada_specs): Likewise.
11330
b906f4ca
MP
113312013-11-03 Marek Polacek <polacek@redhat.com>
11332
11333 * c-ubsan.c: Don't include hash-table.h.
11334 (ubsan_instrument_vla): New function.
11335 * c-ubsan.h: Declare it.
11336
5e20cdc9
DM
113372013-10-31 David Malcolm <dmalcolm@redhat.com>
11338
11339 Automated part of renaming of symtab_node_base to symtab_node.
11340
11341 Patch autogenerated by rename_symtab.py from
11342 https://github.com/davidmalcolm/gcc-refactoring-scripts
11343 revision 58bb219cc090b2f4516a9297d868c245495ee622
11344
11345 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
11346 symtab_node_base to symtab_node.
11347
7057e645
ESR
113482013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
11349
8e745a17 11350 Implement C++14 digit separators.
7057e645
ESR
11351 * c-lex.c (interpret_float): Remove digit separators from scratch string
11352 before building real literal.
11353
193ea7bc
JJ
113542013-10-30 Jakub Jelinek <jakub@redhat.com>
11355
11356 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
11357
939b37da
BI
113582013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
11359
11360 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
11361 fields.
11362 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
11363 enabled.
11364 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
11365 (insert_cilk_frame): New prototype.
11366 (cilk_init_builtins): Likewise.
11367 (gimplify_cilk_spawn): Likewise.
11368 (c_cilk_install_body_w_frame_cleanup): Likewise.
11369 (cilk_detect_spawn_and_unwrap): Likewise.
11370 (cilk_set_spawn_marker): Likewise.
11371 (build_cilk_sync): Likewise.
11372 (build_cilk_spawn): Likewise.
11373 * cilk.c: New file.
11374
67348ccc
DM
113752013-10-29 David Malcolm <dmalcolm@redhat.com>
11376
11377 Patch autogenerated by refactor_symtab.py from
11378 https://github.com/davidmalcolm/gcc-refactoring-scripts
11379 revision 58bb219cc090b2f4516a9297d868c245495ee622
11380
11381 * c-gimplify.c (c_genericize): Update for conversion of symtab types
11382 to a true class hierarchy.
11383 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
11384
d570872d
RS
113852013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
11386
11387 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
11388
98906124
JL
113892013-10-26 Jeff Law <law@redhat.com>
11390
adfac8df
JJ
11391 * c-common.c (c_define_builtins): Remove mudflap support.
11392 * c.opt: Ignore and warn for mudflap options.
98906124 11393
d73749df 113942013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
11395
11396 PR other/33426
11397 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
11398 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
11399
3f04b1bb
JM
114002013-10-23 Jason Merrill <jason@redhat.com>
11401
11402 * c-format.c (gcc_cxxdiag_char_table): Add %X.
11403
acf0174b
JJ
114042013-10-11 Jakub Jelinek <jakub@redhat.com>
11405
acd15a28
JJ
11406 * c-common.h (omp_clause_mask::operator !=): New method.
11407 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
11408 instead of if (mask & something) tests everywhere.
11409
acf0174b
JJ
11410 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
11411 201307 instead of 201107.
11412 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
11413 (c_common_attribute_table): Add "omp declare target" and
11414 "omp declare simd" attributes.
11415 (handle_omp_declare_target_attribute,
11416 handle_omp_declare_simd_attribute): New functions.
11417 * c-omp.c: Include c-pragma.h.
11418 (c_finish_omp_taskgroup): New function.
11419 (c_finish_omp_atomic): Add swapped argument, if true,
11420 build the operation first with rhs, lhs arguments and use NOP_EXPR
11421 build_modify_expr.
11422 (c_finish_omp_for): Add code argument, pass it down to make_code.
11423 (c_omp_split_clauses): New function.
11424 (c_split_parallel_clauses): Removed.
11425 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
11426 c_omp_declare_simd_clauses_to_decls): New functions.
11427 * c-common.h (omp_clause_mask): New type.
11428 (OMP_CLAUSE_MASK_1): Define.
11429 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
11430 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
11431 omp_clause_mask::operator |, omp_clause_mask::operator &,
11432 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
11433 omp_clause_mask::operator ==): New methods.
11434 (enum c_omp_clause_split): New.
11435 (c_finish_omp_taskgroup): New prototype.
11436 (c_finish_omp_atomic): Add swapped argument.
11437 (c_finish_omp_for): Add code argument.
11438 (c_omp_split_clauses): New prototype.
11439 (c_split_parallel_clauses): Removed.
11440 (c_omp_declare_simd_clauses_to_numbers,
11441 c_omp_declare_simd_clauses_to_decls): New prototypes.
11442 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
11443 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
11444 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
11445 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
11446 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
11447 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
11448 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
11449 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
11450 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
11451 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
11452 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
11453 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
11454 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
11455 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
11456 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
11457 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
11458 PRAGMA_OMP_CLAUSE_UNIFORM.
11459
826cacfe
MG
114602013-10-09 Marc Glisse <marc.glisse@inria.fr>
11461
11462 PR tree-optimization/20318
11463 * c-common.c (handle_returns_nonnull_attribute): New function.
11464 (c_common_attribute_table): Add returns_nonnull.
11465
2284b034
MG
114662013-10-03 Marc Glisse <marc.glisse@inria.fr>
11467
11468 PR c++/19476
11469 * c.opt (fcheck-new): Move to common.opt.
11470
b56e9788
MP
114712013-09-25 Marek Polacek <polacek@redhat.com>
11472 Jakub Jelinek <jakub@redhat.com>
11473
11474 PR sanitizer/58413
11475 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
11476 an expression if we can prove it is correct.
11477 (ubsan_instrument_division): Likewise. Remove unnecessary
11478 check.
11479
ce6923c5
MP
114802013-09-18 Marek Polacek <polacek@redhat.com>
11481
11482 PR sanitizer/58411
11483 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
11484 Declare it.
11485 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
11486
fb5610fb
IS
114872013-09-14 Iain Sandoe <iain@codesourcery.com>
11488
11489 PR target/48094
11490 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
11491 fobjc-gc, freplace-objc-classes): Accept for LTO.
11492
88b0e79e
JC
114932013-09-13 Jacek Caban <jacek@codeweavers.com>
11494
11495 * c-target.def: New hook
11496
c9b0866a
PC
114972013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
11498
11499 PR c++/43452
11500 * c.opt (Wdelete-incomplete): Add.
11501
0af94e6f
JR
115022013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
11503
11504 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
11505 (vector_types_compatible_elements_p): New function.
11506 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
11507 declaration.
11508 (vector_types_compatible_elements_p): Declare.
11509
7c26172c
GDR
115102013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
11511
11512 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
11513 a virtual member function.
11514 (pp_simple_type_specifier): Remove.
11515 (pp_c_type_specifier): Likewise.
11516 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
11517 Rename from pp_c_type_specifier. Adjust.
11518 (c_pretty_printer::c_pretty_printer): Do not assign to
11519 simple_type_specifier.
11520
20059c8b
GDR
115212013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
11522
11523 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
11524 member function.
11525 (c_pretty_printer::storage_class_specifier): Likewise.
11526 (c_pretty_printer::initializer): Likewise.
11527 (pp_declaration): Remove.
11528 (pp_declaration_specifiers): Likewise.
11529 (pp_abstract_declarator): Likewise.
11530 (pp_declarator): Likewise.
11531 (pp_type_id): Likewise.
11532 (pp_statement): Likewise.
11533 (pp_constant): Likewise.
11534 (pp_id_expression): Likewise.
11535 (pp_primary_expression): Likewise.
11536 (pp_unary_expression): Likewise.
11537 (pp_multiplicative_expression): Likewise.
11538 (pp_conditional_expression): Likewise.
11539 (pp_assignment_expression): Likewise.
11540 (pp_expression): Likewise.
11541 (pp_c_type_id): Likewise.
11542 (pp_c_storage_class_specifier): Likewise.
11543 * c-pretty-print.c (pp_c_type_cast): Tidy.
11544 (pp_c_pointer): Likewise.
11545 (pp_c_type_specifier): Likewise.
11546 (pp_c_parameter_type_list): Likewise.
11547 (pp_c_function_definition): Likewise.
11548 (pp_c_init_declarator): Likewise.
11549 (pp_c_initializer_list): Likewise.
11550 (pp_c_constructor_elts): Likewise.
11551 (c_pretty_printer::direct_abstract_declarator): Likewise.
11552 (c_pretty_printer::declaration_specifiers): Likewise.
11553 (c_pretty_printer::primary_expression): Likewise.
11554 (c_pretty_printer::postfix_expression): Likewise.
11555 (c_pretty_printer::type_id): Rename from pp_c_type_id.
11556 (c_pretty_printer::storage_class_specifier): Rename from
11557 pp_c_storage_class_specifier.
11558 (c_pretty_printer::initializer): Rename from pp_c_initializer.
11559 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
11560 storage_class_specifier, initializer, offset_list, flags.
11561
de5a5fa1
MP
115622013-08-30 Marek Polacek <polacek@redhat.com>
11563
11564 * c-ubsan.c: New file.
11565 * c-ubsan.h: New file.
11566
8f0e4d72
GDR
115672013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
11568
11569 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
11570 member function.
11571 (c_pretty_printer::declaration_specifiers): Likewise.
11572 (c_pretty_printer::declarator): Likewise.
11573 (c_pretty_printer::abstract_declarator): Likewise.
11574 (c_pretty_printer::direct_abstract_declarator): Likewise.
11575 (c_pretty_printer::direct_declarator): Likewise.
11576 (c_pretty_printer::function_specifier): Likewise.
11577 (pp_declaration): Adjust.
11578 (pp_declaration_specifiers): Likewise.
11579 (pp_abstract_declarator): Likewise.
11580 (pp_direct_declarator): Likewise.
11581 (pp_function_specifier): Likewise.
11582 (pp_direct_abstract_declarator): Remove as unused.
11583 (pp_c_declaration): Remove.
11584 (pp_c_declaration_specifiers): Likewise.
11585 (pp_c_declarator): Likewise.
11586 (pp_c_direct_declarator): Likewise.
11587 (pp_c_function_specifier): Likewise.
11588 (pp_c_direct_abstract_declarator): Likewise.
11589 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
11590 from pp_c_abstract_declarator. Adjust.
ab20d992 11591 (c_pretty_printer::direct_abstract_declarator): Rename from
8f0e4d72
GDR
11592 pp_c_direct_abstract_declarator. Adjust.
11593 (c_pretty_printer::function_specifier): Rename from
11594 pp_c_function_specifier. Adjust.
11595 (c_pretty_printer::declaration_specifiers): Rename from
11596 pp_c_declaration_specifiers. Adjust.
11597 (c_pretty_printer::direct_declarator): Rename from
11598 pp_c_direct_declarator. Adjust.
11599 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
11600 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
11601 (c_pretty_printer::c_pretty_printer): Do not assign to
11602 declaration, declaration_specifiers, declarator,
11603 direct_declarator, direct_abstract_declarator, function_specifier.
11604
00d34d3a
GDR
116052013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
11606
11607 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
11608 virtual member function.
11609 (c_pretty_printer::multiplicative_expression): Likewise.
11610 (c_pretty_printer::conditional_expression): Likewise.
11611 (c_pretty_printer::assignment_expression): Likewise.
11612 (c_pretty_printer::expression): Likewise.
11613 (pp_unary_expression): Adjust.
11614 (pp_multiplicative_expression): Likewise.
11615 (pp_assignment_expression): Likewise.
11616 (pp_conditional_expression): Likewise.
11617 (pp_expression): Likewise.
11618 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
11619 from pp_c_unary_expression. Adjust.
11620 (c_pretty_printer::multiplicative_expression): Rename from
11621 pp_c_multiplicative_expression. Adjust.
11622 (c_pretty_printer::conditional_expression): Rename from
11623 pp_c_conditional_expression. Adjust.
11624 (c_pretty_printer::assignment_expression): Rename from
11625 pp_c_assignment_expression. Adjust.
11626 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
11627 (c_pretty_printer::c_pretty_printer): Do not assign to
11628 unary_expression, multiplicative_expression,
11629 conditional_expression, expression.
11630
fb22178f
GDR
116312013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
11632
11633 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
11634 virtual member function.
11635 (pp_postfix_expression): Adjust.
11636 (pp_c_postfix_expression): Remove.
11637 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
11638 from pp_c_postfix_expression. Adjust.
11639 (c_pretty_printer::c_pretty_printer): Do not assign to
11640 postfix_expression.
11641
7ecc2600
GDR
116422013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
11643
11644 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
11645 virtua member function.
11646 (pp_primary_expression): Adjust.
11647 (pp_c_primary_expression): Remove.
11648 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
11649 from pp_c_primary_expression. Adjust.
11650 (pp_c_initializer_list): Use pp_primary_expression.
11651 (c_pretty_printer::c_pretty_printer): Do not assign to
11652 primary_expression.
11653
0691175f
GDR
116542013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
11655
11656 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
11657 * c-pretty-print.c (M_): Remove.
11658 (c_pretty_printer::translate_string): Define.
11659 (pp_c_type_specifier): Use it.
11660 (pp_c_primary_expression): Likewise.
11661 (pp_c_expression): Likewise.
11662
66dfe4c4
GDR
116632013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
11664
11665 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
11666 virtual function.
11667 (pp_c_id_expression): Remove.
11668 (pp_id_expression): Adjust.
11669 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
11670 pp_c_id_expression. Adjust.
11671 (pp_c_postfix_expression): Use pp_id_expression.
11672 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
11673
ca43e9d5
GDR
116742013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
11675
11676 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
11677 member function.
11678 (pp_constant): Adjust.
11679 (pp_c_constant): Remove.
11680 * c-pretty-print.c (c_pretty_printer::constant): Rename from
11681 pp_c_constant. Adjust.
11682 (pp_c_constant)
11683 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
11684 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
11685
da6ca2b5
GDR
116862013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
11687
11688 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
11689 (c_pretty_printer::c_pretty_printer): Declare.
11690 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
11691 c_pretty_printer_init. Adjust.
11692 (print_c_tree): Do not call c_pretty_printer_init.
11693 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
11694
65a372f4
AC
116952013-08-09 Arnaud Charlet <charlet@adacore.com>
11696
11697 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
11698
fd9b0f32
PC
116992013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
11700
11701 PR c++/58080
11702 * c-common.c (pointer_int_sum): Add bool parameter.
11703 * c-common.h (pointer_int_sum): Adjust declaration.
11704
e0aec1e9
GDR
117052013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
11706
11707 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
11708 c_pretty_printer variable.
11709
b066401f
GDR
117102013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
11711
11712 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
11713 (pp_base): Remove.
11714 (pp_c_base): Likewise. Adjust users.
11715 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
11716 (pp_c_whitespace): Do not call pp_base.
11717 (pp_c_left_paren): Likewise.
11718 (pp_c_right_paren): Likewise.
11719 (pp_c_left_brace): Likewise.
11720 (pp_c_right_brace): Likewise.
11721 (pp_c_left_bracket): Likewise.
11722 (pp_c_right_bracket): Likewise.
11723 (pp_c_dot): Likewise.
11724 (pp_c_ampersand): Likewise.
11725 (pp_c_star): Likewise.
11726 (pp_c_arrow): Likewise.
11727 (pp_c_semicolon): Likewise.
11728 (pp_c_complement): Likewise.
11729 (pp_c_exclamation): Likewise.
11730 (pp_c_direct_declarator): Likewise.
11731 (pp_c_ws_string): Likewise.
11732 (pp_c_identifier): Likewise.
11733 (pp_c_statement): Likewise.
11734 (print_c_tree): Likewise.
11735
65e5a578
ESR
117362013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
11737
11738 PR c++/58072
11739 * c-common.c (c_parse_error): Catch user-defined literal tokens and
11740 provide useful error strings.
11741
137a1a27
GDR
117422013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
11743
11744 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
11745 printer functions instead of pp_string or operators and punctuators.
11746 (dump_generic_ada_node): Likewise.
11747 * c-pretty-print.c (pp_c_type_specifier): Likewise.
11748 (pp_c_relational_expression): Likewise.
11749 (pp_c_logical_or_expression): Likewise.
11750
07838b13
GDR
117512013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
11752
11753 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
11754 functions instead of pp_character.
11755 (pp_ada_tree_identifier): Likewise.
11756 (dump_ada_double_name): Likewise.
11757 (dump_ada_function_declaration): Likewise.
11758 (dump_ada_array_domains): Likewise.
11759 (dump_template_types): Likewise.
11760 (dump_generic_ada_node): Likewise.
11761 (print_ada_declaration): Likewise.
11762 (print_ada_struct_decl): Likewise.
11763 * c-pretty-print.c (pp_c_integer_constant): Likewise.
11764
433cc7b0
TT
117652013-07-23 Tom Tromey <tromey@redhat.com>
11766
11767 * c-common.h (enum rid) <RID_GENERIC>: New constant.
11768 * c-common.c (c_common_reswords): Add _Generic.
11769
688010ba
OB
117702013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
11771
11772 * c-common.c: Fix typos.
11773 * c-common.h: Likewise.
11774
2a99e5e6
LL
117752013-07-13 Lubos Lunak <l.lunak@suse.cz>
11776
11777 PR c++/55203
11778 * c-common.c (c_common_attribute_table): Add warn_unused.
11779 (handle_warn_unused_attribute): New.
11780
c26302d5
JJ
117812013-07-10 Jakub Jelinek <jakub@redhat.com>
11782
11783 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
11784 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
11785
dfeadaa0
PC
117862013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
11787
11788 PR c++/57869
11789 * c.opt: Add Wconditionally-supported.
11790
6a2fa4b2
GS
117912013-07-08 Graham Stott <graham.stott@btinternet.com>
11792
adfac8df 11793 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
11794 unused variables l_length and l_node.
11795
ecdbd01a 117962013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
11797
11798 PR c/57821
11799 * c-common.c (complete_array_type): Delay folding first index
11800 like other indices. When folding, check for index overflow.
11801
bedc293e
MG
118022013-06-27 Marc Glisse <marc.glisse@inria.fr>
11803
11804 PR c++/57509
11805 * c-common.h (c_build_vec_perm_expr): New complain argument.
11806 * c-common.c (c_build_vec_perm_expr): Likewise.
11807 Use save_expr also in C++.
11808
604b2bfc
GDR
118092013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
11810
11811 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
11812 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
11813 * c-opts.c (c_common_post_options): Likewise.
11814
dfeadaa0 118152013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
11816
11817 * array-notation-common.c (length_mismatch_in_expr): Changed the
11818 parameter type's from a dynamic array to a vec_tree. Also removed
11819 the size parameters.
11820 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
11821 the change above.
11822
2ce86d2e
BI
118232013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
11824
11825 * c-common.h (struct cilkplus_an_parts): New structure.
11826 (struct cilkplus_an_loop_parts): Likewise.
11827 (cilkplus_extract_an_triplets): New prototype.
11828 (fix_sec_implicit_args): Likewise.
11829 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
11830 (fix_sec_implicit_args): Likewise.
604b2bfc 11831
07a6825b
BI
118322013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
11833
11834 * array-notation-common.c (find_inv_trees): Removed an unwanted
11835 typecasting.
11836 * c-common.h (struct inv_list::additional_tcodes): Changed type from
11837 enum rid to enum tree_code.
11838
08346abd
JH
118392013-06-11 Jan Hubicka <jh@suse.cz>
11840
11841 * c-common.c (handle_alias_ifunc_attribute): Do not set
11842 DECL_EXTERNAL for weakref variables.
11843 * c-pragma.c (handle_pragma_weak): Make sure aliases
11844 are not declared as external.
11845
d60f1706
BI
118462013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
11847
11848 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
11849 function from c/c-array-notation.c.
11850 (is_cilkplus_reduce_builtin): Likewise.
11851 (find_rank): Likewise.
11852 (extract_array_notation_exprs): Likewise.
11853 (replace_array_notations): Likewise.
11854 (find_inv_trees): Likewise.
11855 (replace_inv_trees): Likewise.
11856 (contains_array_notation_expr): Likewise.
11857 (find_correct_array_notation_type): Likewise.
11858 * c-common.h (struct inv_list): Moved this struct from the file
11859 c/c-array-notation.c and added a new field called additional tcodes.
11860 (length_mismatch_in_expr_p): New prototype.
11861 (is_cilkplus_reduce_builtin): Likewise.
11862 (find_rank): Likewise.
11863 (extract_array_notation_exprs): Likewise.
11864 (replace_array_notation): Likewise.
11865 (find_inv_trees): Likewise.
11866 (replace_inv_trees): Likewise.
11867 (find_correct_array_notation_type): Likewise.
dfeadaa0 11868
36536d79
BI
118692013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
11870
11871 * c-common.c (c_define_builtins): When cilkplus is enabled, the
11872 function array_notation_init_builtins is called.
11873 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
11874 * c-common.def (ARRAY_NOTATION_REF): New tree.
11875 * c-common.h (build_array_notation_expr): New function declaration.
11876 (build_array_notation_ref): Likewise.
11877 (extract_sec_implicit_index_arg): New extern declaration.
11878 (is_sec_implicit_index_fn): Likewise.
11879 (ARRAY_NOTATION_CHECK): New define.
11880 (ARRAY_NOTATION_ARRAY): Likewise.
11881 (ARRAY_NOTATION_START): Likewise.
11882 (ARRAY_NOTATION_LENGTH): Likewise.
11883 (ARRAY_NOTATION_STRIDE): Likewise.
11884 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
11885 ARRAY_NOTATION_REF.
11886 (pp_c_expression): Likewise.
11887 * c.opt (flag_enable_cilkplus): New flag.
11888 * array-notation-common.c: New file.
11889
f7716d57
JJ
118902013-05-14 Jakub Jelinek <jakub@redhat.com>
11891
11892 PR c++/57274
11893 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
11894
a5e0cd1d
MG
118952013-05-10 Marc Glisse <marc.glisse@inria.fr>
11896
11897 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
11898 vectors.
11899
f6bc1c4a
HS
119002013-05-07 Han Shen <shenhan@google.com>
11901
11902 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
11903
3f12f6e9
SKS
119042013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11905
11906 * c-common.c (check_user_alignment): Emit error for negative values.
11907
61949153
PC
119082013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
11909
11910 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
11911
e93e18e9
PC
119122013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
11913
11914 * c-cppbuiltin.c (c_cpp_builtins): Do not define
11915 __GXX_EXPERIMENTAL_CXX1Y__.
11916
44d90fe1 119172013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
8e745a17 11918 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
44d90fe1
PC
11919
11920 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
11921 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
11922 to simply use OPT_Wpointer_arith.
11923 (c_sizeof_or_alignof_type): Likewise.
11924
13f39b2e
PC
119252013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
11926
11927 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
11928
4b84d650
JJ
119292013-04-12 Jakub Jelinek <jakub@redhat.com>
11930
11931 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
11932 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
11933 specifiers.
11934
fb037b5d
SB
119352013-04-07 Steven Bosscher <steven@gcc.gnu.org>
11936
11937 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
11938
4e856798
PC
119392013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
11940
11941 * c-common.c (pointer_int_sum): Remove dead code.
11942
4b1baac8
RS
119432013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
11944
11945 PR middle-end/56524
11946 * c-common.c (handle_optimize_attribute): Don't call
11947 save_optabs_if_changed.
11948
0b50e654
JJ
119492013-03-05 Jakub Jelinek <jakub@redhat.com>
11950
11951 PR middle-end/56461
11952 * c-pch.c (pch_init): Free target_validity at the end.
11953
48c41403
JJ
119542013-03-04 Jakub Jelinek <jakub@redhat.com>
11955
11956 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
11957
e664c61c
KS
119582013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
11959 Jakub Jelinek <jakub@redhat.com>
11960
11961 PR sanitizer/56454
11962 * c-common.c (handle_no_sanitize_address_attribute): New function.
11963 (c_common_attribute_table): Add no_sanitize_address attribute.
11964 (handle_no_address_safety_analysis_attribute): Add
11965 no_sanitize_address attribute, not no_address_safety_analysis
11966 attribute.
11967
a475fd3d 119682013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
11969
11970 PR target/52555
11971 * c-common.c (handle_optimize_attribute): Call
11972 save_optabs_if_changed.
11973
f6007d99
JJ
119742013-02-18 Jakub Jelinek <jakub@redhat.com>
11975 Steven Bosscher <steven@gcc.gnu.org>
11976
11977 PR pch/54117
11978 * c-opts.c (c_common_post_options): If debug info is enabled
11979 and non-dwarf*, refuse to load PCH files and when writing PCH
11980 file warn.
11981
cf35e2b1
JJ
119822013-02-05 Jakub Jelinek <jakub@redhat.com>
11983
11984 PR middle-end/56167
11985 * c-common.c (handle_error_attribute): Fix condition.
11986
32887460
JJ
119872013-01-30 Jakub Jelinek <jakub@redhat.com>
11988
11989 PR c++/55742
11990 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
11991
5af057d8
JM
119922013-01-18 Jason Merrill <jason@redhat.com>
11993
11994 PR target/54908
11995 * c.opt (-fextern-tls-init): New.
11996 * c-opts.c (c_common_post_options): Handle it.
11997
cc83c823
JJ
119982013-01-09 Jakub Jelinek <jakub@redhat.com>
11999
12000 PR c/48418
12001 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
12002 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
12003 and is either negative or bigger or equal to type precision
12004 of the first operand.
12005
a859517f
MP
120062012-12-03 Marek Polacek <polacek@redhat.com>
12007
12008 PR c/55570
12009 * c-common.c (check_user_alignment): Swap order of tests,
12010 check TREE_CODE first.
12011
2d7aa578
ESR
120122012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
12013
12014 PR c++/52654
12015 * c-common.h (overflow_type): New enum.
12016 (build_userdef_literal): Add overflow_type argument.
12017 (tree_userdef_literal): Add overflow_type.
12018 (USERDEF_LITERAL_OVERFLOW): New access macro.
12019 * c-common.c (build_userdef_literal): Add overflow_type
12020 argument.
12021 * c-lex.c (c_lex_with_flags): Add overflow_type to
12022 build_userdef_literal calls.
12023 (interpret_integer, interpret_float): Add overflow_type argument.
12024
cc3c4f62
RB
120252012-11-28 Richard Biener <rguenther@suse.de>
12026
12027 PR c/35634
12028 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
12029 here and use a type with proper overflow behavior for types that would
12030 need to be promoted for the arithmetic.
12031
77bc5132
JJ
120322012-11-23 Jakub Jelinek <jakub@redhat.com>
12033
12034 PR sanitizer/55435
12035 * c-common.c (handle_no_address_safety_analysis_attribute): New
12036 function.
12037 (c_common_attribute_table): Add no_address_safety_analysis.
12038
5dc99c46
SB
120392012-11-16 Simon Baldwin <simonb@google.com>
12040
12041 * c.opt: Add f[no-]canonical-system-headers.
12042 * c-opts.c (c_common_handle_option): Handle
12043 OPT_fcanonical_system_headers.
12044
a4a0016d
ESR
120452012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
12046
12047 PR c++/54413
12048 * c-opts.c (c_common_handle_option): Set new flags.
12049 * c.opt: Describe new flags.
12050
7dbb85a7
JM
120512012-11-09 Jason Merrill <jason@redhat.com>
12052
12053 * c.opt (Wabi-tag): New.
12054
ad7bac31
AK
120552012-11-09 Andi Kleen <ak@linux.intel.com>
12056
12057 PR 55139
12058 * c-common.c (get_atomic_generic_size): Mask with
8e745a17 12059 MEMMODEL_MASK
ad7bac31 12060
7332899a
MLI
120612012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
12062
12063 PR c/53063
12064 * c.opt (Wformat): Make it Alias Wformat=1.
12065 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
12066 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
12067 LangEnabledBy.
12068 (Wformat=): RejectNegative. Use LangEnabledBy.
12069 (Wnonnull): Use LangEnabledBy.
12070 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
12071 * c-format.c (set_Wformat): Delete.
12072 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
ab20d992
JJ
12073 (maybe_read_dollar_number): Likewise.
12074 (avoid_dollar_number): Likewise.
12075 (finish_dollar_format_checking): Likewise.
12076 (check_format_info): Likewise.
12077 (check_format_info_main): Likewise.
12078 (check_format_types): Likewise.
12079 (format_type_warning): Likewise.
12080 * c-common.c (int): Likewise.
12081 (check_function_sentinel): Likewise.
8e745a17 12082 * c-common.h (warn_format,set_Wformat): Do not declare here.
7332899a 12083
34a180a6
MLI
120842012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
12085
12086 PR c/53063
12087 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
12088 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
12089 Use LangEnabledBy.
12090 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
12091 common.opt.
12092 (Wvariadic-macros): Init(1).
12093 * c-opts.c (c_common_handle_option): Do not handle them
12094 explicitly.
12095 (c_common_post_options): Likewise.
12096 (sanitize_cpp_opts): warn_unused_macros is now
12097 cpp_warn_unused_macros.
12098 (push_command_line_include): Likewise.
12099 * c-common.c (warn_unknown_pragmas): Do not define.
12100 * c-common.h (warn_unknown_pragmas): Do not declare.
12101
3f46d6a5
MLI
121022012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
12103
12104 PR c/51294
12105 * c-common.c (conversion_warning): Handle conditional expressions.
12106
880661a4
JW
121072012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
12108
12109 PR c++/54930
12110 * c.opt (Wreturn_local_addr): Define new option.
12111
4514a96b
JM
121122012-10-25 Jason Merrill <jason@redhat.com>
12113
f14edc1a
JM
12114 * c.opt (Wvirtual-move-assign): New.
12115
4514a96b
JM
12116 * c.opt (Winherited-variadic-ctor): New.
12117
93100c6b
MG
121182012-10-25 Marc Glisse <marc.glisse@inria.fr>
12119
12120 PR c++/54427
12121 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
12122
1efcb8c6
JM
121232012-10-23 Joseph Myers <joseph@codesourcery.com>
12124
12125 * c-common.h (pch_cpp_save_state): Declare.
12126 * c-target.def (c_preinclude): New hook.
12127 * c-opts.c (done_preinclude): New.
12128 (push_command_line_include): Handle default preincluded header.
12129 (cb_file_change): Call pch_cpp_save_state when calling
12130 push_command_line_include.
12131 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
12132 (pch_cpp_save_state): New.
12133 (pch_init): Call pch_cpp_save_state conditionally, instead of
12134 calling cpp_save_state.
12135
4a0ae68e
MLI
121362012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
12137
12138 PR c/53063
12139 PR c/40989
12140 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
12141 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
12142 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
12143 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
12144 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
12145 * c-opts.c (c_common_handle_option): Remove explicit handling from
12146 here.
12147 (c_common_post_options): Likewise.
12148
67e4210b
EB
121492012-10-18 Eric Botcazou <ebotcazou@adacore.com>
12150
12151 * c-ada-spec.c (LOCATION_COL): Delete.
12152 (compare_location): New function.
12153 (compare_node): Use it.
12154 (compare_comment): Likewise.
12155
65d4f2cd
MLI
121562012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
12157
12158 PR c/53063
12159 PR c/40989
12160 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
12161 * c-opts.c (c_common_handle_option): Do not set them here. Add
12162 comment.
12163 (c_common_post_options): Likewise.
12164
909881cb
EB
121652012-10-16 Eric Botcazou <ebotcazou@adacore.com>
12166
12167 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
12168 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
12169 Remove POINTER_TYPE handling, add large unsigned handling and use
12170 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
12171
3a785c97
JJ
121722012-10-12 Jakub Jelinek <jakub@redhat.com>
12173
12174 PR c/54381
12175 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
12176 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
12177 locs and array of 3 trees instead of just single loc and single
12178 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
12179 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
12180 For *cmp* builtins that take two sources strings report warnings
12181 about first and second source, not about destination and source.
12182
5e54f81d
MG
121832012-10-12 Marc Glisse <marc.glisse@inria.fr>
12184
12185 PR c++/53055
12186 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
12187
f5b02f1e
EB
121882012-10-11 Eric Botcazou <ebotcazou@adacore.com>
12189
12190 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
12191 declaring something coming from another file.
12192
b46dbc6c
AC
121932012-10-10 Arnaud Charlet <charlet@adacore.com>
12194
f5b02f1e 12195 PR ada/54845
b46dbc6c
AC
12196 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
12197
5d9de0d0
PC
121982012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
12199
12200 PR c++/54194
12201 * c-common.c (warn_about_parentheses): Add location_t parameter;
12202 use EXPR_LOC_OR_LOC.
12203 * c-common.h: Update declaration.
12204
a212e43f
MG
122052012-10-09 Marc Glisse <marc.glisse@inria.fr>
12206
12207 PR c++/54427
12208 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
12209 more operations. Make error messages optional.
12210 * c-common.h (enum stv_conv): Moved from c-typeck.c.
12211 (scalar_to_vector): Declare.
12212
b1db7f91
JM
122132012-10-08 Jason Merrill <jason@redhat.com>
12214
12215 * c-common.c (c_common_reswords): Add thread_local.
12216
e28d52cf
DS
122172012-10-08 Dodji Seketeli <dodji@redhat.com>
12218
12219 PR c++/53528 C++11 attribute support
12220 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
12221 new functions.
12222 * c-common.c (check_cxx_fundamental_alignment_constraints): New
12223 static function.
12224 (handle_aligned_attribute): In choose strictest alignment
12225 among many. Use new check_cxx_fundamental_alignment_constraints.
12226 (handle_transparent_union_attribute): In c++11 attribute syntax,
12227 don't look through typedefs.
12228
3b78de56
AC
122292012-10-04 Arnaud Charlet <charlet@adacore.com>
12230
12231 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
12232 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
12233 out of dumpfile.h.
12234
6040bb5f
DC
122352012-09-25 Dehao Chen <dehao@google.com>
12236
12237 PR middle-end/54645
3b78de56 12238 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
12239 map when read in the pch.
12240
3f8257db 122412012-09-18 Arnaud Charlet <charlet@adacore.com>
0b07a57e
AC
12242
12243 * c-ada-spec.c: Style fixes.
12244
3f8257db 122452012-09-18 Thomas Quinot <quinot@adacore.com>
da5182be
TQ
12246
12247 * c.opt (-fada-spec-parent): Define new command line switch.
12248 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
12249 is specified, generate binding spec as a child of the specified unit.
12250
0ccb505d
PC
122512012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
12252 Manuel López-Ibáñez <manu@gcc.gnu.org>
12253
12254 PR c++/53210
12255 * c.opt ([Winit-self]): Enabled by -Wall in C++.
12256
c583af79
AC
122572012-08-23 Arnaud Charlet <charlet@adacore.com>
12258
12259 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
12260 for pointers, and add missing Convention C pragma.
12261 (print_ada_struct_decl): Add missing aliased keyword.
12262 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
12263
1a4049e7
JJ
122642012-08-17 Jakub Jelinek <jakub@redhat.com>
12265
12266 * c-common.c (sizeof_pointer_memaccess_warning): New function.
12267 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
12268 * c-opts.c (c_common_handle_option): Enable it for -Wall.
12269 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
12270 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
12271
70b5e7dc
RG
122722012-08-10 Richard Guenther <rguenther@suse.de>
12273
12274 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
12275
f8923f7e
SB
122762012-08-07 Steven Bosscher <steven@gcc.gnu.org>
12277
12278 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
12279 instead of separate pp_newline and pp_flush.
12280 (print_c_tree): Likewise.
12281
e45abe1f
RH
122822012-07-26 Richard Henderson <rth@redhat.com>
12283
12284 * c-common.c (handle_hot_attribute): Allow labels.
12285 (handle_cold_attribute): Likewise.
12286
332f1d24
JJ
122872012-07-20 Jakub Jelinek <jakub@redhat.com>
12288
12289 PR c++/28656
12290 * c-common.c (check_function_nonnull): Handle multiple nonnull
12291 attributes properly.
12292
7ee2468b
SB
122932012-07-16 Steven Bosscher <steven@gcc.gnu.org>
12294
12295 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
12296 * c-ada-spec.c: Likewise.
12297 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
12298
ee7b28eb
SB
122992012-07-14 Steven Bosscher <steven@gcc.gnu.org>
12300
12301 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
12302 Remove code conditional on it.
12303
6bdf3519
SB
123042012-07-11 Steven Bosscher <steven@gcc.gnu.org>
12305
12306 * c-gimplify.c: Do not include basic-block.h.
12307 * c-common.c: Do not include linfuncs.h.
12308
532aafad
SB
123092012-07-08 Steven Bosscher <steven@gcc.gnu.org>
12310
12311 * c-common.h: Include tree.h.
12312
8d0d1915
JM
123132012-07-02 Jason Merrill <jason@redhat.com>
12314
12315 PR c++/53524
12316 * c-common.c (get_priority): Call default_conversion.
12317
fbc873ad
UB
123182012-07-01 Uros Bizjak <ubizjak@gmail.com>
12319
12320 * c-pch.c (c_common_write_pch): Remove unused variables.
12321
d4a10d0a
SB
123222012-06-29 Steven Bosscher <steven@gcc.gnu.org>
12323
12324 * cppspec.c: Moved from gcc/ to here.
12325
6f3a2e23
KT
123262012-06-27 Kai Tietz <ktietz@redhat.com>
12327
12328 PR preprocessor/37215
12329 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
12330
8ca92d04
SB
123312012-06-21 Steven Bosscher <steven@gcc.gnu.org>
12332
12333 * c-common.h (c_common_print_pch_checksum): Remove.
12334 * c-pch.c: Do not include output.h.
12335 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
12336 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
12337 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
12338 (struct c_pch_header): Remove.
12339 (get_ident): Update gpch version.
12340 (pch_init): Do not print executable_checksum to asm_out_file.
12341 Do not fail if there is no asm_out_file to read back from. Set
12342 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
12343 (c_common_write_pch): Verify that nothing was written to asm_out_file
12344 since pch_init was called. Do not write a c_pch_header, and do not
12345 copy from asm_out_file to the PCH.
12346 (c_common_read_pch): Do not read a c_pch_header, and do not restore
12347 the content of asm_out_file from the PCH.
12348 (c_common_print_pch_checksum): Remove.
12349 * c-opts.c (c_common_init): Print out executable_checksum directly.
12350
70f42967
SB
123512012-06-19 Steven Bosscher <steven@gcc.gnu.org>
12352
12353 * c-target.def (objc_declare_unresolved_class_reference,
12354 objc_declare_class_definition): Add new hooks.
12355
a8781821
SB
123562012-06-19 Steven Bosscher <steven@gcc.gnu.org>
12357
12358 * c-lex.c: Do not include output.h.
12359 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
12360 Remove uses of ASM_OUTPUT_IDENT.
12361
9e1a8dd1
RR
123622012-06-15 Marc Glisse <marc.glisse@inria.fr>
12363
12364 PR c++/51033
12365 * c-common.h (c_build_vec_perm_expr): Move decl here.
12366 * c-common.c (c_build_vec_perm_expr): Move definition
12367 here.
12368
6f07a821
SB
123692012-06-06 Steven Bosscher <steven@gcc.gnu.org>
12370
12371 * c.opt (fconserve-space): Turn into a no-op.
12372
9faeb493 123732012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
12374
12375 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
12376 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
12377 both the start and end of the function.
12378
a4b7d13c
SB
123792012-06-04 Steven Bosscher <steven@gcc.gnu.org>
12380
12381 * c-common.c: Do not include output.h.
12382 * c-pragma.c: Likewise.
12383
c265f413
SA
123842012-06-04 Steven Bosscher <steven@gcc.gnu.org>
12385
12386 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
12387 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
12388 (lang_decl_name): Handle namespace decls.
12389
be7a421e
SB
123902012-05-31 Steven Bosscher <steven@gcc.gnu.org>
12391
12392 * c-ada-spec.c: Do not include output.h.
12393 * c-semantics.c: Likewise.
12394
65de6659
JM
123952012-05-29 Joseph Myers <joseph@codesourcery.com>
12396
12397 * c-common.c: Fix typo.
12398
ca5f4331
MM
123992012-05-29 Michael Matz <matz@suse.de>
12400
12401 * c-common.h (c_expand_decl): Remove prototype.
12402
4f7f7aca
MLI
124032012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
12404
12405 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
12406 * c-opts.c (c_common_handle_option): Remove code handling
12407 warn_missing_braces.
12408
4a792f9b
PC
124092012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
12410
12411 PR c++/25137
12412 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
12413 -Wmissing_braces.
12414
650dc14a
DS
124152012-05-22 Dodji Seketeli <dodji@redhat.com>
12416
12417 PR c++/53322
12418 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
12419
9b095bf1
MLI
124202012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
12421
12422 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
12423 * c-opts.c (c_common_handle_option): Do not handle explicitly
12424 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
12425
0b2c4be5
DS
124262012-05-16 Dodji Seketeli <dodji@redhat.com>
12427
12428 PR preprocessor/7263
ab20d992 12429 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
0b2c4be5
DS
12430 to cpp_classify_number. For diagnostics, use the precise location
12431 instead of the global input_location.
12432
a1bde5af
PC
124332012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
12434
d02924ef 12435 PR c++/11856
a1bde5af
PC
12436 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
12437
d1ede5f4
BS
124382012-05-14 Bernd Schmidt <bernds@codesourcery.com>
12439
a1bde5af 12440 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 12441
f2bc201f
MLI
124422012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
12443
12444 PR 53063
12445 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
12446 Wreorder): Use LangEnabledBy.
12447 * c-opts.c (c_common_handle_option): Do not enable them
12448 explicitly. Call lang-specific generated functions.
12449 (c_common_post_options): Do not set them here.
12450
95744782
MLI
124512012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
12452
12453 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
12454 Wmissing-field-initializers,Wmissing-parameter-type,
12455 Wold-style-declaration,Woverride-init): Use EnabledBy.
12456 * c-opts.c (c_common_post_options): Do not set here explicitly.
12457
7d5a5747
MLI
124582012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
12459
12460 PR 53063
12461 * c-opts.c (c_common_handle_option): Use handle_generated_option
12462 to enable sub-options.
12463
5a3c9cf2
PC
124642012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
12465
12466 PR c++/53158
12467 * c-common.c (warnings_for_convert_and_check): Use warning_at.
12468
3ac8781c
RG
124692012-05-10 Richard Guenther <rguenther@suse.de>
12470
12471 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
12472 adjust commentary about TYPE_IS_SIZETYPE types.
12473
1e537948
MLI
124742012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
12475
12476 PR c++/53261
12477 * c-common.c (warn_logical_operator): Check that argument of
12478 integer_zerop is not NULL.
12479
f2c4a785
MLI
124802012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
12481
12482 PR c/43772
12483 * c-common.c (warn_logical_operator): Do not warn if either side
12484 is already true or false.
12485
50f305ca
MLI
124862012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
12487
12488 PR c/51712
12489 * c-common.c (expr_original_type): New.
12490 (shorten_compare): Do not warn for enumeration types.
12491
0c3641b0
MLI
124922012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
12493
12494 * c.opt (fpermissive): Add Var(flag_permissive).
12495
7edaa4d2
MG
124962012-04-30 Marc Glisse <marc.glisse@inria.fr>
12497
12498 PR c++/51033
12499 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
12500 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
12501
b9c8da34
DS
125022012-04-30 Dodji Seketeli <dodji@redhat.com>
12503
12504 Add -Wvarargs option
ab20d992 12505 * c.opt (Wvarargs): Define new option.
b9c8da34 12506
e6c69da0
MLI
125072012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
12508
12509 * c-common.c (check_function_arguments): Replace
12510 Wmissing-format-attribute with Wsuggest-attribute=format.
12511
90137d8f
MLI
125122012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
12513
12514 * c.opt (Wsuggest-attribute=format): New. Alias of
12515 Wmissing-format-attribute.
12516 * c-format.c (decode_format_type): Replace
12517 Wmissing-format-attribute with Wsuggest-attribute=format.
12518 (check_function_format): Likewise.
12519
9faeb493 125202012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
12521
12522 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
12523 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
12524 * c.opt: Add Wliteral-suffix.
12525
c1771a20
MLI
125262012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
12527
12528 PR c/44774
12529 * c.opt (Wpedantic): New.
12530 (pedantic): Alias Wpedantic.
12531 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
12532 (c_common_post_options): Likewise.
12533 (sanitize_cpp_opts): Likewise.
12534 * c-lex.c (interpret_float): Likewise.
12535 * c-format.c (check_format_types): Likewise.
12536 * c-common.c (pointer_int_sum): Likewise.
12537 (c_sizeof_or_alignof_type): Likewise.
12538 (c_add_case_label): Likewise.
12539 (c_do_switch_warnings): Likewise.
12540 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
12541
04b391c1
JM
125422012-04-15 Jason Merrill <jason@redhat.com>
12543
12544 PR c++/52818
12545 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
12546 (C_STD_NAME): Distinguish between C++98 and C++11.
12547
ac868f29
EB
125482012-04-11 Eric Botcazou <ebotcazou@adacore.com>
12549
12550 PR target/52624
12551 * c-common.h (uint16_type_node): Rename into...
12552 (c_uint16_type_node): ...this.
12553 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
12554 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
12555
fd4116f4
MLI
125562012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
12557
12558 * c-common.c (warn_if_unused_value): Move definition to here.
12559 * c-common.h (warn_if_unused_value): Move declaration to here.
12560
573ac65e
WB
125612012-03-23 William Bader <williambader@hotmail.com>
12562
12563 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
12564
552b8185
JM
125652012-03-20 Jason Merrill <jason@redhat.com>
12566
12567 * c-common.h (enum cxx_dialect): Add cxx1y.
12568 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
12569 test.
12570 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
12571 * c-opts.c (c_common_post_options): Likewise.
12572 (set_std_cxx1y): New.
12573 (c_common_handle_option): Call it.
12574 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
12575
04398fa8
PC
125762012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
12577
12578 PR c++/14710
12579 * c.opt ([Wuseless-cast]): Add.
12580
d2a12ae7
RG
125812012-03-16 Richard Guenther <rguenther@suse.de>
12582
12583 * c-pretty-print.c (pp_c_initializer_list): Adjust.
12584
a12bf402
MLI
125852012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
12586
12587 PR c++/44783
12588 * c.opt (ftemplate-backtrace-limit) Add.
12589
5c30094f
RO
125902012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12591
12592 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
12593 handling.
12594 * c-pragma.c (handle_pragma_extern_prefix): Remove.
12595 (init_pragma): Don't register extern_prefix.
12596
21fa2faf
RG
125972012-03-12 Richard Guenther <rguenther@suse.de>
12598
12599 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
12600 (builtin_type_for_size): Likewise.
12601
e3793c6f
JJ
126022012-02-13 Jakub Jelinek <jakub@redhat.com>
12603
12604 PR c++/52215
12605 * c-common.c (sync_resolve_params): Don't decide whether to convert
12606 or not based on TYPE_SIZE comparison, convert whenever arg_type
12607 is unsigned INTEGER_TYPE.
12608
93286335
PC
126092012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
12610
12611 PR c/52118
12612 * c.opt ([Wunused-local-typedefs]): Fix description.
12613
7a421706
MS
126142012-01-24 Mike Stump <mikestump@comcast.net>
12615
12616 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
12617 exactly.
12618
ba9b1f11
RG
126192012-01-18 Richard Guenther <rguenther@suse.de>
12620
12621 * c-opts.c (c_common_post_options): Reset LTO flags if
12622 we are about to generate a PCH.
12623
465406be
PC
126242012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
12625
12626 PR c++/51777
12627 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
12628 use pp_unsigned_wide_integer.
12629
aee15221
RG
126302012-01-10 Richard Guenther <rguenther@suse.de>
12631
12632 PR middle-end/51806
12633 * c-opts.c (c_common_handle_option): Move -Werror handling
12634 to language independent code.
12635
5720c0dc
RG
126362012-01-05 Richard Guenther <rguenther@suse.de>
12637
12638 PR middle-end/51764
12639 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
12640 from common.opt.
12641
73ac190a
PC
126422011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
12643
12644 PR c++/51316
12645 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
12646 of array types with an unknown bound.
12647
48b0b196
JM
126482011-12-20 Joseph Myers <joseph@codesourcery.com>
12649
12650 * c-common.c (flag_isoc99): Update comment to refer to C11.
12651 (flag_isoc1x): Change to flag_isoc11.
12652 * c-common.h (flag_isoc99): Update comment to refer to C11.
12653 (flag_isoc1x): Change to flag_isoc11.
12654 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
12655 C11.
12656 * c-opts.c (set_std_c1x): Change to set_std_c11.
12657 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
12658 Call set_std_c11.
12659 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
12660 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
12661 * c.opt (std=c1x): Change to std=c11. Document as non-draft
12662 standard.
12663 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
12664 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
12665 (std=gnu1x): Make alias of std=gnu11.
12666
d58d6eb5
JM
126672011-12-19 Jason Merrill <jason@redhat.com>
12668
12669 PR c++/51228
12670 * c-common.c (handle_transparent_union_attribute): Check the first
12671 field if the type is complete.
12672
b3908fcc
JW
126732011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
12674
12675 PR libstdc++/51365
12676 * c-common.c (RID_IS_FINAL): Add.
12677 * c-common.h (RID_IS_FINAL): Add.
12678
fea3ca91
IS
126792011-11-30 Iain Sandoe <iains@gcc.gnu.org>
12680
12681 * c.opt (fgnu-runtime): Provide full description.
12682 (fnext-runtime): Likewise.
12683 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
12684
62bad7cd
AM
126852011-11-28 Andrew MacLeod <amacleod@redhat.com>
12686
12687 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
12688 predefines in one place. Add LOCK_FREE predefines.
12689 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
12690 new func.
12691
c466c4ff
AM
126922011-11-24 Andrew MacLeod <amacleod@redhat.com>
12693
12694 PR c/51256
9faeb493 12695 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 12696 conditions
9faeb493
UB
12697 (resolve_overloaded_atomic_exchange,
12698 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
12699 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
12700 error_mark_node for error conditions.
9faeb493 12701
a5952633
RG
127022011-11-08 Richard Guenther <rguenther@suse.de>
12703
12704 PR middle-end/51010
ab20d992 12705 * c-pretty-print.c (pp_c_expression): Handle SSA_NAMEs.
a5952633 12706
0a35513e
AH
127072011-11-07 Richard Henderson <rth@redhat.com>
12708 Aldy Hernandez <aldyh@redhat.com>
12709 Torvald Riegel <triegel@redhat.com>
12710
12711 Merged from transactional-memory.
12712
12713 * c-common.c (handle_tm_wrap_attribute,
12714 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
12715 (struct c_common_reswords): Added __transaction* keywords.
12716 (struct c_common_attribute_table): Added transaction* and tm_regparm
12717 attributes.
12718 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
12719 masks.
12720 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
12721 find_tm_attribute): Declare.
12722
6d87092d
JM
127232011-11-07 Jason Merrill <jason@redhat.com>
12724
12725 PR c++/35688
12726 * c-common.c, c-common.h: Revert yesterday's changes.
12727
8e7860a1
JM
127282011-11-06 Jason Merrill <jason@redhat.com>
12729
12730 PR c++/35688
12731 * c-common.c (decl_has_visibility_attr): Split out from...
12732 (c_determine_visibility): ...here.
12733 * c-common.h: Declare it.
12734
d19fa6b5
JM
127352011-11-06 Joseph Myers <joseph@codesourcery.com>
12736
12737 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
12738 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
12739 type.
12740 (check_user_alignment): New. Split out of
12741 handle_aligned_attribute. Disallow integer constants with
12742 noninteger types. Conditionally allow zero.
12743 (handle_aligned_attribute): Use check_user_alignment.
12744 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
12745
86951993
AM
127462011-11-06 Andrew MacLeod <amacleod@redhat.com>
12747 Richard Henderson <rth@redhat.com>
12748
12749 Merged from cxx-mem-model.
12750
12751 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 12752 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
12753 parameters that are the same type size.
12754 (get_atomic_generic_size): New. Find size of generic
12755 atomic function parameters and do typechecking.
12756 (add_atomic_size_parameter): New. Insert size into parameter list.
12757 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
12758 either __atomic_exchange_n or external library call.
9faeb493 12759 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 12760 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 12761 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
12762 __atomic_load_n or an external library call.
12763 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
12764 __atomic_store_n or an external library call.
12765 (resolve_overloaded_builtin): Handle new __atomic builtins.
12766
cf9e9959
EB
127672011-11-04 Eric Botcazou <ebotcazou@adacore.com>
12768
12769 PR c++/50608
12770 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
12771 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
12772 <INDIRECT_REF>: Return the argument.
12773 <ARRAY_REF>: Remove special code for negative offset.
12774 Call fold_build_pointer_plus instead of size_binop.
12775 (fold_offsetof): Remove STOP_REF argument and adjust.
12776 * c-common.h (fold_offsetof_1): Declare.
12777 (fold_offsetof): Remove STOP_REF argument.
12778
25339f10
JM
127792011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
12780
12781 PR c++/50810
12782 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
12783 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
12784 Wnarrowing for C++0x and C++98.
12785 * c.opt ([Wnarrowing]): Update.
12786
89401152
PC
127872011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
12788
12789 PR c++/44277
12790 * c.opt: Add Wzero-as-null-pointer-constant.
12791
97e3ad20
JM
127922011-10-31 Jason Merrill <jason@redhat.com>
12793
15694fdd
JM
12794 * c.opt (-fdeduce-init-list): Off by default.
12795
97e3ad20
JM
12796 PR c++/50920
12797 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
12798 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
12799 and -Wc++11-compat.
12800 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
12801
fb9120e3
RAV
128022011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
12803
12804 PR c++/30066
12805 * c.opt (fvisibility-inlines-hidden): Description change.
12806
3ce4f9e4
ESR
128072011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
12808
12809 Implement C++11 user-defined literals.
12810 * c-common.c (build_userdef_literal): New.
12811 * c-common.def: New tree code.
12812 * c-common.h (tree_userdef_literal): New tree struct and accessors.
12813 * c-lex.c (interpret_float): Add suffix parm.
12814 (c_lex_with_flags): Build literal tokens.
12815
5f53c243
PC
128162011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
12817
12818 PR c++/50841
12819 Revert:
12820 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
12821
12822 PR c++/50810
12823 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
12824 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
12825 Wnarrowing for C++0x and C++98.
12826 * c.opt ([Wnarrowing]): Update.
12827
263734e1
PC
128282011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
12829
12830 PR c++/50810
12831 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
12832 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
12833 Wnarrowing for C++0x and C++98.
12834 * c.opt ([Wnarrowing]): Update.
12835
d2e312d7
PC
128362011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
12837
12838 PR c++/45385
12839 * c-common.c (conversion_warning): Remove code looking for
12840 artificial operands.
12841
d17687f6
DS
128422011-10-18 Dodji Seketeli <dodji@redhat.com>
12843
12844 PR bootstrap/50760
12845 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 12846 !NO_IMPLICIT_EXTERN_C.
d17687f6 12847
fc8396e9
PC
128482011-10-17 Michael Spertus <mike_spertus@symantec.com>
12849
12850 * c-common.c (c_common_reswords): Add __bases,
12851 __direct_bases.
12852 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
12853
128542011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
12855
12856 PR c++/50757
12857 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
12858
847e697a
TT
128592011-10-15 Tom Tromey <tromey@redhat.com>
12860 Dodji Seketeli <dodji@redhat.com>
12861
12862 * c.opt (fdebug-cpp): New option.
12863 * c-opts.c (c_common_handle_option): Handle the option.
12864 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
12865 output stream in parameter. Factorized from ...
12866 (maybe_print_line): ... this. Dump location debug information when
12867 -fdebug-cpp is in effect.
12868 (print_line_1): New static function. Takes an output stream in
12869 parameter. Factorized from ...
12870 (print_line): ... here. Dump location information when -fdebug-cpp
12871 is in effect.
12872 (scan_translation_unit): Dump location information when
12873 -fdebug-cpp is in effect.
12874
92582b75
TT
128752011-10-15 Tom Tromey <tromey@redhat.com>
12876 Dodji Seketeli <dodji@redhat.com>
12877
12878 * c.opt (ftrack-macro-expansion): New option. Handle it with and
12879 without argument.
12880 * c-opts.c (c_common_handle_option)<case
12881 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
12882 cases. Handle -ftrack-macro-expansion with and without argument.
12883
46427374
TT
128842011-10-15 Tom Tromey <tromey@redhat.com>
12885 Dodji Seketeli <dodji@redhat.com>
12886
12887 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
12888 (print_line, cb_define, do_line_change): Adjust to avoid touching
12889 the internals of struct line_map. Use the public API instead.
12890 * c-pch.c (c_common_read_pch): Likewise.
12891 * c-lex.c (fe_file_change): Likewise.
12892
fc8396e9
PC
128932011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
12894
12895 PR c++/17212
12896 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
12897
128982011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
12899
12900 PR c++/33067
12901 * c-pretty-print.c (pp_c_floating_constant): Output
12902 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
12903
e79983f4
MM
129042011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
12905
12906 * c-common.c (def_builtin_1): Delete old interface with two
12907 parallel arrays to hold standard builtin declarations, and replace
12908 it with a function based interface that can support creating
12909 builtins on the fly in the future. Change all uses, and poison
12910 the old names. Make sure 0 is not a legitimate builtin index.
12911 * c-omp.c (c_finish_omp_barrier): Ditto.
12912 (c_finish_omp_taskwait): Ditto.
12913 (c_finish_omp_flush): Ditto.
12914
6637388f
TG
129152011-10-11 Tristan Gingold <gingold@adacore.com>
12916
12917 * c.opt: (fallow-parameterless-variadic-functions): New.
12918
3797cb21
DS
129192011-09-08 Dodji Seketeli <dodji@redhat.com>
12920
12921 PR c++/33255 - Support -Wunused-local-typedefs warning
12922 * c-common.h (struct c_language_function::local_typedefs): New
12923 field.
9faeb493
UB
12924 (record_locally_defined_typedef, maybe_record_typedef_use)
12925 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 12926 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
12927 (maybe_record_typedef_use)
12928 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
12929 * c.opt: Declare new -Wunused-local-typedefs flag.
12930
693ddb1b
EB
129312011-09-06 Eric Botcazou <ebotcazou@adacore.com>
12932
12933 PR middle-end/50266
12934 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
12935 computations.
12936
830c740f
RG
129372011-09-05 Richard Guenther <rguenther@suse.de>
12938
12939 * c-common.c (complete_array_type): Use ssize_int (-1) instead
12940 of integer_minus_one_node for empty array upper bounds.
12941
892a371f
DS
129422011-08-28 Dodji Seketeli <dodji@redhat.com>
12943
12944 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
12945 it's the first time it's being called on this main TU.
12946
0e3fdb48
RB
129472011-08-24 Richard Guenther <rguenther@suse.de>
12948
12949 PR c/49396
12950 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
12951
129522011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
12953
12954 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
12955 defined in cpp_init_builtins and c_cpp_builtins.
12956
d4a83c10
JM
129572011-08-19 Joseph Myers <joseph@codesourcery.com>
12958
12959 * c-common.c (c_common_reswords): Add __builtin_complex.
12960 * c-common.h (RID_BUILTIN_COMPLEX): New.
12961
bbceee64
JM
129622011-08-18 Joseph Myers <joseph@codesourcery.com>
12963
12964 * c-common.c (c_common_reswords): Add _Noreturn.
12965 (keyword_is_function_specifier): Handle RID_NORETURN.
12966 * c-common.h (RID_NORETURN): New.
12967
3f8257db 129682011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
0e3a99ae
AS
12969
12970 * c-common.c (unsafe_conversion_p): New function. Check if it is
12971 unsafe to convert an expression to the type.
12972 (conversion_warning): Adjust, use unsafe_conversion_p.
12973 * c-common.h (unsafe_conversion_p): New function declaration.
12974
20906c66
JJ
129752011-08-02 Jakub Jelinek <jakub@redhat.com>
12976
12977 * c-common.h (c_finish_omp_atomic): Adjust prototype.
12978 (c_finish_omp_taskyield): New prototype.
12979 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
12980 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
12981 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
12982 or RHS1 have side-effects, evaluate those too in the right spot,
12983 if it is a decl and LHS is also a decl, error out if they
12984 aren't the same.
12985 (c_finish_omp_taskyield): New function.
12986 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
12987 * c-pragma.c (omp_pragmas): Add taskyield.
12988 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
12989 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
12990 PRAGMA_OMP_CLAUSE_MERGEABLE.
12991
770e5a2e
DS
129922011-07-25 Dodji Seketeli <dodji@redhat.com>
12993
12994 * c-common.h (set_underlying_type): Remove parm name from
12995 declaration.
12996
1baae426
RG
129972011-07-25 Romain Geissler <romain.geissler@gmail.com>
12998
12999 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 13000
fcb21722
JM
130012011-07-22 Jason Merrill <jason@redhat.com>
13002
76f86d00
JM
13003 PR c++/49793
13004 * c.opt (Wnarrowing): New.
13005
3a636414
JM
13006 PR c++/30112
13007 * c-common.h: Declare c_linkage_bindings.
13008 * c-pragma.c (handle_pragma_redefine_extname): Use it.
13009
fcb21722
JM
13010 PR c++/49813
13011 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
13012 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
13013 as flag_isoc99 for 'restrict'.
13014 (pp_c_specifier_qualifier_list): Likewise for _Complex.
13015
02614448
ILT
130162011-07-21 Ian Lance Taylor <iant@google.com>
13017
13018 PR middle-end/49705
13019 * c-common.c (c_disable_warnings): New static function.
13020 (c_enable_warnings): New static function.
13021 (c_fully_fold_internal): Change local unused_p to bool. Call
13022 c_disable_warnings and c_enable_warnings rather than change
13023 c_inhibit_evaluation_warnings.
13024
34429675
JM
130252011-07-20 Jason Merrill <jason@redhat.com>
13026
13027 PR c++/6709 (DR 743)
13028 PR c++/42603 (DR 950)
13029 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
13030 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
13031 (CPP_DECLTYPE): New.
13032 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
13033
5d49b6a7
RG
130342011-07-19 Richard Guenther <rguenther@suse.de>
13035
13036 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
13037 * c-omp.c (c_finish_omp_for): Likewise.
13038
e84a58ff
EB
130392011-07-12 Eric Botcazou <ebotcazou@adacore.com>
13040
13041 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
13042 body on the next line.
13043
329af3c7
JM
130442011-07-08 Jason Merrill <jason@redhat.com>
13045
4063e61b
JM
13046 PR c++/45437
13047 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
13048
329af3c7
JM
13049 PR c++/49673
13050 * c-common.c (c_apply_type_quals_to_decl): Don't check
13051 TYPE_NEEDS_CONSTRUCTING.
13052
1a072294
RG
130532011-07-06 Richard Guenther <rguenther@suse.de>
13054
13055 * c-common.c (c_common_nodes_and_builtins):
13056 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
13057
fce5dddd
RG
130582011-07-05 Richard Guenther <rguenther@suse.de>
13059
13060 * c-common.c (c_common_nodes_and_builtins): Build all common
13061 tree nodes first.
13062
45d439ac
JJ
130632011-06-27 Jakub Jelinek <jakub@redhat.com>
13064
56300785
JJ
13065 * c-common.h (c_tree_chain_next): New static inline function.
13066
45d439ac
JJ
13067 * c-common.c (check_builtin_function_arguments): Handle
13068 BUILT_IN_ASSUME_ALIGNED.
13069
e0a8ecf2
AM
130702011-06-21 Andrew MacLeod <amacleod@redhat.com>
13071
13072 * c-common.c: Add sync_ or SYNC__ to builtin names.
13073 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
13074
130752011-06-20 Pierre Vittet <piervit@pvittet.com>
13076
13077 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
13078 handler.
13079 (gen_pragma_handler): New union.
13080 (internal_pragma_handler): New type.
13081 (c_register_pragma_with_data)
13082 (c_register_pragma_with_expansion_and_data): New functions.
13083
13084 * c-pragma.c (registered_pragmas, c_register_pragma_1)
13085 (c_register_pragma, c_register_pragma_with_expansion)
13086 (c_invoke_pragma_handler): Changed to work with
13087 internal_pragma_handler.
13088 (c_register_pragma_with_data)
13089 (c_register_pragma_with_expansion_and_data): New functions.
13090
677f3fa8
JM
130912011-06-14 Joseph Myers <joseph@codesourcery.com>
13092
13093 * c-common.c: Include common/common-target.h.
13094 (handle_section_attribute): Use
13095 targetm_common.have_named_sections.
13096 * c-cppbuiltin.c: Include common/common-target.h.
13097 (c_cpp_builtins): Use targetm_common.except_unwind_info.
13098
d7fc8c14
RG
130992011-06-10 Richard Guenther <rguenther@suse.de>
13100
13101 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
13102 to print a IDENTIFIER_NODE.
13103
10e48e39
RO
131042011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13105 Joseph Myers <joseph@codesourcery.com>
13106
13107 * c.opt (fbuilding-libgcc): New option.
13108 * c-cppbuiltin.c (c_cpp_builtins): Define
13109 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
13110
6976ae51
JM
131112011-06-07 Jason Merrill <jason@redhat.com>
13112
3ff60975
JM
13113 * c-common.c (max_tinst_depth): Lower default to 900.
13114
6976ae51
JM
13115 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
13116
009db074
RG
131172011-06-07 Richard Guenther <rguenther@suse.de>
13118
13119 * c-common.c (c_common_nodes_and_builtins): Do not set
13120 size_type_node or call set_sizetype.
13121
b4592b92
DS
131222011-06-07 Dodji Seketeli <dodji@redhat.com>
13123
13124 PR debug/49130
13125 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 13126 type when using pointer comparison to compare types.
b4592b92 13127
014ab419
JW
131282011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
13129
13130 * c.opt: Add -Wdelete-non-virtual-dtor.
13131 * c-opts.c (c_common_handle_option): Include it in -Wall.
13132
4f60111f
NF
131332011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
13134
13135 PR bootstrap/49190
13136
13137 Revert:
13138 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
13139
13140 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
13141 not tree_common.
13142
4cc4f2f4
JJ
131432011-05-27 Jakub Jelinek <jakub@redhat.com>
13144
13145 PR c++/49165
13146 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
13147 C++ don't call c_common_truthvalue_conversion on void type arms.
13148
38e01f9e
NF
131492011-05-27 Nathan Froyd <froydnj@codesourcery.com>
13150
13151 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
13152 (stmt_list_stack): Define.
13153 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
13154 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
13155
92e948a8
NF
131562011-05-26 Nathan Froyd <froydnj@codesourcery.com>
13157
13158 * c-common.c (warning_candidate_p): Check for BLOCKs.
13159
a2fc3e63
NF
131602011-05-26 Nathan Froyd <froydnj@codesourcery.com>
13161
13162 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
13163 not tree_common.
13164
0957c029
JJ
131652011-05-25 Jakub Jelinek <jakub@redhat.com>
13166
13167 * c-common.c (def_fn_type): Remove extra va_end.
13168
828fb3ba
JM
131692011-05-23 Jason Merrill <jason@redhat.com>
13170
13171 PR c++/48106
13172 * c-common.c (c_common_get_narrower): New.
13173 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
13174
dde05067
NF
131752011-05-23 Nathan Froyd <froydnj@codesourcery.com>
13176
13177 * c-common.h (check_function_arguments): Tweak prototype of
13178 check_function_arguments.
13179 * c-common.c (check_function_arguments): Likewise. Adjust
13180 calls to check_function_nonnull, check_function_format, and
13181 check_function_sentinel.
13182 (check_function_sentinel): Take a FUNCTION_TYPE rather than
13183 separate attributes and typelist arguments. Use
13184 FOREACH_FUNCTION_ARGS to iterate over argument types.
13185
3c0d13bf
PC
131862011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
13187
13188 * c-common.c (c_common_reswords): Reorder.
13189 * c-common.h (rid): Likewise.
13190
8242dd04
NF
131912011-05-10 Nathan Froyd <froydnj@codesourcery.com>
13192
13193 * c-common.c (def_fn_type): Don't call build_function_type, call
13194 build_function_type_array or build_varargs_function_type_array
13195 instead.
13196 (c_common_nodes_and_builtins): Likewise.
13197
3d528853
NF
131982011-05-05 Nathan Froyd <froydnj@codesourcery.com>
13199
13200 * c-common.c (c_add_case_label): Omit the loc argument to
13201 build_case_label.
13202 * c-common.h (build_case_label): Remove.
13203 * c-semantics.c (build_case_label): Remove.
13204
a04a722b
JM
132052011-05-05 Joseph Myers <joseph@codesourcery.com>
13206
13207 * c-objc.h (objc_start_method_definition): Update prototype.
13208 * stub-objc.c (objc_start_method_definition): Add extra parameter.
13209
e19a18d4
NF
132102011-05-04 Nathan Froyd <froydnj@codesourcery.com>
13211
13212 * c-common.c (check_main_parameter_types): Reindent. Don't use
13213 TYPE_ARG_TYPES directly.
13214 (handle_nonnull_attribute): Likewise.
13215 (sync_resolve_params): Likewise.
13216 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
13217 to check_format_string.
13218 (handle_format_attribute): Likewise.
13219 (check_format_string): Take a function type to examine instead of
13220 a type list. Use a function_arg_iterator to step through argument
13221 types.
13222
c62c040f
RG
132232011-05-04 Richard Guenther <rguenther@suse.de>
13224
13225 * c-common.c (fix_string_type): Use size_int for index type bounds.
13226 (start_fname_decls): Do not pass NULL to build_int_cst.
13227 (c_init_attributes): Likewise.
13228 * c-lex.c (c_lex_with_flags): Likewise.
13229
c12ff9d8
JM
132302011-04-27 Jason Merrill <jason@redhat.com>
13231
13232 * c-common.c (make_tree_vector_from_list): New.
13233 * c-common.h: Declare it.
13234
304dfbe3
RG
132352011-04-26 Richard Guenther <rguenther@suse.de>
13236
13237 PR preprocessor/48248
13238 * c-ppoutput.c (maybe_print_line): Always optimize newlines
13239 for output size with -P.
13240
3c0d13bf
PC
132412011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
13242
13243 * c-common.c (struct c_common_resword): Add __underlying_type.
13244 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
13245
04695783
JM
132462011-04-20 Jim Meyering <meyering@redhat.com>
13247
13248 * c-format.c (init_dollar_format_checking): Remove useless
13249 if-before-free.
13250
0dc33c3c
NP
132512011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
13252
13253 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 13254 (objc_detect_field_duplicates): New.
0dc33c3c 13255 * stub-objc.c: Likewise.
3c0d13bf 13256
c59633d9
NP
132572011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
13258
13259 * stub-objc.c (objc_declare_protocols): Renamed to
13260 objc_declare_protocol.
13261 * c-objc.h: Likewise.
3c0d13bf 13262
32dabdaf
NP
132632011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
13264
13265 * stub-objc.c (objc_declare_class): Updated argument name.
13266
81f653d6
NF
132672011-04-12 Nathan Froyd <froydnj@codesourcery.com>
13268
13269 * c-common.h (c_common_init_ts): Declare.
13270 * c-common.c (c_common_init_ts): Define.
13271
eb345401
NP
132722011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
13273
13274 * c-objc.h (objc_build_message_expr): Updated prototype.
13275 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 13276
a358e188
MJ
132772011-04-12 Martin Jambor <mjambor@suse.cz>
13278
13279 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
13280 of cgraph_node.
13281
e6313a78
RG
132822011-04-11 Richard Guenther <rguenther@suse.de>
13283
13284 * c-common.c (complete_array_type): Build a range type of
13285 proper type.
13286
dcf0c47e
NF
132872011-04-08 Nathan Froyd <froydnj@codesourcery.com>
13288
13289 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
13290 (handle_type_generic_attribute): Likewise.
13291
1ee44b26
JM
132922011-04-07 Jason Merrill <jason@redhat.com>
13293
13294 PR c++/48450
13295 * c-common.c (c_common_truthvalue_conversion): Don't ignore
13296 conversion from C++0x scoped enum.
13297
acce4e77
JM
132982011-04-06 Joseph Myers <joseph@codesourcery.com>
13299
13300 * c-target-def.h: New file.
13301 * c-target.def: New file.
13302 * c-target.h: New file.
13303 * c-common.c (targetcm): Don't define here.
13304 * c-common.h (default_handle_c_option): Declare.
13305 * c-format.c: Include c-target.h instead of target.h.
13306 * c-opts.c: Include c-target.h instead of target.h. Explicitly
13307 include tm.h.
13308 (default_handle_c_option): Move from targhooks.c.
13309
e2eefb55
JJ
133102011-03-29 Jakub Jelinek <jakub@redhat.com>
13311
13312 PR preprocessor/48248
13313 * c-ppoutput.c (print): Add src_file field.
13314 (init_pp_output): Initialize it.
13315 (maybe_print_line): Don't optimize by adding up to 8 newlines
13316 if map->to_file and print.src_file are different file.
13317 (print_line): Update print.src_file.
13318
ba78087b
KT
133192011-03-25 Kai Tietz <ktietz@redhat.com>
13320
13321 * c-ada-spec.c (compare_comment): Use filename_cmp
13322 instead of strcmp for filename.
13323
0edf1bb2
JL
133242011-03-25 Jeff Law <law@redhat.com>
13325
adfac8df 13326 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 13327
c7dc8804
JM
133282011-03-25 Jason Merrill <jason@redhat.com>
13329
13330 * c.opt: Add -std=c++03.
13331
d1d879b1
EB
133322011-03-22 Eric Botcazou <ebotcazou@adacore.com>
13333
13334 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
13335
3f8257db 133362011-03-17 Kai Tietz <ktietz@redhat.com>
62d784f7
KT
13337
13338 PR target/12171
5050afdf
KT
13339 * c-pretty-print.c (pp_c_specifier_qualifier_list):
13340 Display allowed attributes for function pointer types.
13341 (pp_c_attributes_display): New function to display
13342 attributes having affects_type_identity flag set to true.
13343 * c-pretty-print.h (pp_c_attributes_display): New prototype.
13344
62d784f7
KT
13345 * c-common.c (c_common_attribute_table):
13346 Add new element.
13347 (c_common_format_attribute_table): Likewise.
13348
82d37118
JM
133492011-03-18 Jason Merrill <jason@redhat.com>
13350
49a000c3
JM
13351 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
13352 * c-common.h: Don't declare it here.
13353 * c-common.c: Or define it here.
13354 * c-opts.c (c_common_handle_option): Or set it here.
13355
82d37118
JM
13356 PR c++/35315
13357 * c-common.c (handle_transparent_union_attribute): Don't
13358 make a duplicate type in C++.
13359
17bc631c
JM
133602011-03-15 Jason Merrill <jason@redhat.com>
13361
13362 * c-common.c (max_constexpr_depth): New.
13363 * c-common.h: Declare it.
13364 * c-opts.c (c_common_handle_option): Set it.
13365 * c.opt (fconstexpr-depth): New option.
13366
1b9b91a6
JM
133672011-03-11 Jason Merrill <jason@redhat.com>
13368
f231b5ff
JM
13369 * c-common.c (attribute_takes_identifier_p): Add missing const.
13370
1b9b91a6
JM
13371 PR c++/46803
13372 * c-common.c (attribute_takes_identifier_p): Assume that an
13373 unknown attribute takes an identifier.
13374
a19e4d44
NF
133752011-03-07 Nathan Froyd <froydnj@codesourcery.com>
13376
13377 PR c/47786
13378 * c-common.c (c_type_hash): Call list_length instead of iterating
13379 through DECL_CHAIN. Rename 'i' to 'n_elements'.
13380
982d62f6
JJ
133812011-02-19 Jakub Jelinek <jakub@redhat.com>
13382
13383 PR c/47809
13384 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
13385
0a256240
NP
133862011-02-17 Iain Sandoe <iains@gcc.gnu.org>
13387
13388 * c.opt (fobjc-abi-version=) New.
13389 (fobjc-nilcheck): New.
13390
ba9e6dd5
NF
133912011-02-03 Nathan Froyd <froydnj@codesourcery.com>
13392
13393 PR c++/46890
13394 * c-common.h (keyword_is_decl_specifier): Declare.
13395 * c-common.c (keyword_is_decl_specifier): Define.
13396 (keyword_is_function_specifier): New function.
13397
7273813a
JJ
133982011-01-26 Jakub Jelinek <jakub@redhat.com>
13399
13400 PR c/47473
13401 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
13402 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
13403 REAL_TYPE.
13404
908ef79b
AC
134052011-01-26 Arnaud Charlet <charlet@adacore.com>
13406
13407 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
13408
237e9384
JJ
134092011-01-26 Jakub Jelinek <jakub@redhat.com>
13410
13411 PR pch/47430
13412 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
13413 after init_c_lex if pch_file is set.
13414
47ea1edf
DK
134152011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
13416
d4dba752 13417 PR c++/43601
47ea1edf
DK
13418 * c.opt (-fkeep-inline-dllexport): New switch.
13419
2aa9c6ae
RG
134202011-01-12 Richard Guenther <rguenther@suse.de>
13421
13422 PR middle-end/32511
13423 * c-common.c (handle_weak_attribute): Warn instead of error
13424 on declaring an inline function weak.
13425
7bd11157
TT
134262011-01-05 Tom Tromey <tromey@redhat.com>
13427
13428 * c-common.h (lvalue_error): Update.
13429 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
13430 not error.
13431
0e66e494 134322010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 13433
b4f588c4
NP
13434 PR objc/47075
13435 * c-objc.h (objc_finish_message_expr): Added argument to
13436 prototype.
13437
f4da8dce
NF
134382010-12-22 Nathan Froyd <froydnj@codesourcery.com>
13439
13440 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
13441 Use prototype_p.
13442
46270f14
NP
134432010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
13444
13445 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 13446 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 13447
4816c593
NF
134482010-12-10 Nathan Froyd <froydnj@codesourcery.com>
13449
13450 * c-common.h (readonly_error): Declare.
13451 * c-common.c (readonly_error): Define.
13452
7a6daeb0
NF
134532010-12-09 Nathan Froyd <froydnj@codesourcery.com>
13454
13455 * c-common.h (invalid_indirection_error): Declare.
13456 * c-common.c (invalid_indirection_error): Define.
13457
892f6119
RG
134582010-12-03 Richard Guenther <rguenther@suse.de>
13459
13460 PR c/46745
13461 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
13462 (pp_c_unary_expression): Likewise.
13463 (pp_c_expression): Likewise.
13464
6c39e757
NP
134652010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
13466
13467 * c-common.h (objc_finish_function): New.
13468 (objc_non_volatilized_type): Removed.
13469 (objc_type_quals_match): Removed.
13470 * stub-objc.c (objc_finish_function): New.
13471 (objc_non_volatilized_type): Removed.
13472 (objc_type_quals_match): Removed.
9faeb493 13473
7c475d11
JM
134742010-11-30 Joseph Myers <joseph@codesourcery.com>
13475
13476 * c-common.h (parse_optimize_options): Declare.
13477 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
13478 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
13479
71f3e391
JM
134802010-11-29 Joseph Myers <joseph@codesourcery.com>
13481
13482 * c-opts.c (check_deps_environment_vars): Use getenv instead of
13483 GET_ENVIRONMENT.
13484 * c-pch.c (O_BINARY): Don't define here.
13485 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
13486
d5fabb58
JM
134872010-11-25 Joseph Myers <joseph@codesourcery.com>
13488
13489 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
13490 targetm.except_unwind_info.
13491
299404a1
JM
134922010-11-23 Joseph Myers <joseph@codesourcery.com>
13493
13494 * c-opts.c (c_common_handle_option): Pass location to
13495 set_struct_debug_option.
13496
c98cd5bf
JM
134972010-11-23 Joseph Myers <joseph@codesourcery.com>
13498
13499 * c-common.c (visibility_options): Move from ../opts.c.
13500 * c-common.h (struct visibility_flags, visibility_options):
13501 Declare here.
13502 * c-opts.c (finish_options): Rename to c_finish_options.
13503 (c_common_init): Update call to finish_options.
13504
a9546771
NP
135052010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
13506
13507 PR objc/34033
13508 * c-lex.c (lex_string): Check that each string in an Objective-C
13509 string concat sequence starts with either one or zero '@', and
13510 that there are no spurious '@' signs at the end.
13511
24a57808
JM
135122010-11-20 Joseph Myers <joseph@codesourcery.com>
13513
13514 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
13515 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
13516 HANDLE_PRAGMA_VISIBILITY.
13517 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
13518 HANDLE_PRAGMA_VISIBILITY): Don't define.
13519 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
13520
a9aa2c3a
NF
135212010-11-20 Nathan Froyd <froydnj@codesourcery.com>
13522
13523 PR c++/16189
13524 PR c++/36888
13525 PR c++/45331
13526 * c-common.h (keyword_begins_type_specifier): Declare.
13527 (keyword_is_storage_class_specifier): Declare.
13528 (keyword_is_type_qualifier): Declare.
13529 * c-common.c (keyword_begins_type_specifier): New function.
13530 (keyword_is_storage_class_specifier): New function.
13531 (keyword_is_type_qualifier): Declare.
13532
5386338c
JM
135332010-11-19 Joseph Myers <joseph@codesourcery.com>
13534
13535 PR c/46547
13536 * c-common.c (in_late_binary_op): Define.
13537 (c_common_truthvalue_conversion): Check in_late_binary_op before
13538 calling c_save_expr.
13539 * c-common.h (in_late_binary_op): Declare.
13540
69ccdddb
JM
135412010-11-19 Joseph Myers <joseph@codesourcery.com>
13542
13543 * c-opts.c (c_common_handle_option): Update calls to
13544 set_struct_debug_option.
13545
6b192a09
NP
135462010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
13547
13548 * c-common.h (objc_declare_protocols): Added additional argument.
13549 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 13550
fb52b50a
NF
135512010-11-18 Nathan Froyd <froydnj@codesourcery.com>
13552
13553 PR c/33193
13554 * c-common.h (build_real_imag_expr): Declare.
13555 * c-semantics.c (build_real_imag_expr): Define.
13556
b37421c6
JM
135572010-11-17 Joseph Myers <joseph@codesourcery.com>
13558
13559 * c-opts.c (c_common_parse_file): Take no arguments.
13560 * c-common.h (c_common_parse_file): Update prototype.
13561
07078664
JJ
135622010-11-16 Jakub Jelinek <jakub@redhat.com>
13563
13564 PR c++/46401
13565 * c-common.c (warning_candidate_p): Don't track non-const calls
13566 or STRING_CSTs.
13567
c6a13190
ILT
135682010-11-15 Ian Lance Taylor <iant@google.com>
13569
13570 * c-lex.c (init_c_lex): Set macro debug callbacks if
13571 flag_dump_go_spec is set.
13572
925e8657
NP
135732010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
13574
13575 * c-common.h (objc_build_incr_expr_for_property_ref): New.
13576 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
13577
bb0a9581
NF
135782010-11-15 Nathan Froyd <froydnj@codesourcery.com>
13579
13580 PR preprocessor/45038
13581 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
13582 dialects.
13583
c5fa0890
JM
135842010-11-12 Joseph Myers <joseph@codesourcery.com>
13585
13586 * c-common.h (c_family_lang_mask): Declare.
13587 * c-opts.c (c_family_lang_mask): Make extern.
13588 * c-pragma.c (handle_pragma_diagnostic): Use
13589 control_warning_option.
13590
a4d8c676
JM
135912010-11-12 Joseph Myers <joseph@codesourcery.com>
13592
13593 * c-common.c (parse_optimize_options): Update call to
13594 decode_options.
13595 * c-common.h (c_common_handle_option): Update prototype.
13596 * c-opts.c (c_common_handle_option): Take location_t parameter and
13597 pass it to other functions.
13598
f954bd2c
JM
135992010-11-11 Joseph Myers <joseph@codesourcery.com>
13600
13601 * c-opts.c (warning_as_error_callback): Remove.
13602 (c_common_initialize_diagnostics): Don't call
13603 register_warning_as_error_callback.
13604 (c_common_handle_option): Handle -Werror=normalized= here.
13605
d8a07487
JM
136062010-11-10 Joseph Myers <joseph@codesourcery.com>
13607
13608 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
13609 in diagnostic.
13610 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
13611 letter.
13612 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
13613 Remove trailing '.' from diagnostics.
13614 * c.opt (Wwrite-strings_: Avoid '`' in help text.
13615
d5478783
JM
136162010-11-10 Joseph Myers <joseph@codesourcery.com>
13617
13618 * c-common.c (parse_optimize_options): Pass global_dc to
13619 decode_options.
13620 * c-opts.c (c_common_handle_option): Pass &global_options to
13621 set_Wstrict_aliasing.
13622 * c.opt (v): Don't mark Common or document here.
13623
91ebb981
IS
136242010-11-06 Iain Sandoe <iains@gcc.gnu.org>
13625
13626 PR target/44981
13627 * c-format.c (format_type): New type gcc_objc_string_format_type.
13628 (valid_stringptr_type_p): New.
13629 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 13630 (check_format_string): Pass expected type, use
91ebb981
IS
13631 valid_stringptr_type_p (), check that the format string types are
13632 consistent with the format specification.
13633 (decode_format_attr): Warn if NSString is used outside objective-c.
13634 (format_types_orig): Add NSString.
13635 (format_name): New.
13636 (format_flags): New.
13637 (check_format_arg): Handle format strings requiring an external parser.
13638 first_target_format_type: New variable.
13639 (handle_format_attribute): Set up first_target_format_type, pass the
13640 expected format arg string type to check_format_string().
ab20d992 13641 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
91ebb981
IS
13642 * stub-objc.c (objc_string_ref_type_p): New.
13643 (objc_check_format_arg): New.
13644
bede2adc
NP
136452010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
13646
9faeb493 13647 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
13648 * c-common.h (objc_build_class_component_ref): New.
13649 * stub-objc.c (objc_build_class_component_ref): New.
13650
9a179d01
NP
136512010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
13652
13653 * c.opt (Wproperty-assign-default): New option.
13654
22d8d616
NP
136552010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
13656
13657 Implemented -fobjc-std=objc1 flag.
13658 * c.opt (fobjc-std=objc1): New option.
13659
2debdb4f
NP
136602010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
13661
13662 Implemented format and noreturn attributes for Objective-C methods.
13663 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
13664 attribute for Objective-C methods.
13665
ec52b111
JM
136662010-10-31 Jason Merrill <jason@redhat.com>
13667
13668 * c-common.c (conversion_warning, warn_for_collisions_1): Use
13669 EXPR_LOC_OR_HERE.
13670
46a88c12
NP
136712010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
13672
13673 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
13674 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
13675 (objc_add_property_declaration): Removed arguments for copies and
13676 ivar.
13677 (objc_build_getter_call): Renamed to
13678 objc_maybe_build_component_ref.
13679 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
13680 (objc_is_property_ref): New.
13681 * c-common.c (c_common_reswords): Removed copies and ivar.
13682 * stub-objc.c (objc_add_property_declaration): Removed arguments
13683 for copies and ivar.
13684 (objc_build_getter_call): Renamed to
13685 objc_maybe_build_component_ref.
13686 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
13687 (objc_is_property_ref): New.
9faeb493 13688
1e4bf85b
AC
136892010-10-29 Arnaud Charlet <charlet@adacore.com>
13690 Matthew Gingell <gingell@adacore.com>
13691
13692 * c-ada-spec.c (separate_class_package): New function.
13693 (pp_ada_tree_identifier): Prefix references to C++ classes with the
13694 name of their enclosing package.
13695 (print_ada_declaration): Use separate_class_package.
13696
81f0bab2
JM
136972010-10-27 Jason Merrill <jason@redhat.com>
13698
2b08f2c5
JM
13699 * c-common.c (c_common_reswords): Add __is_literal_type.
13700 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
13701
81f0bab2
JM
13702 * c-common.c (check_case_value): Remove special C++ code.
13703
200290f2
NP
137042010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
13705
13706 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
13707 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
13708 and RID_LAST_PATTR.
13709 (objc_add_property_declaration): Added additional arguments.
13710 (objc_property_attribute_kind): Removed.
13711 (objc_set_property_attr): Removed.
13712 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
13713 copy and nonatomic.
13714 * stub-objc.c (objc_add_property_declaration): Added additional
13715 arguments.
13716 (objc_set_property_attr): Removed.
9faeb493 13717
f614132b
NP
137182010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
13719
13720 * c-common.h (objc_add_property_variable): Renamed to
13721 objc_add_property_declaration. Added location argument.
13722 * stub-objc.c (objc_add_property_variable): Same change.
b1726d6c 13723
b8a18805
NP
137242010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
13725
13726 * c-common.h (objc_maybe_printable_name): New.
13727 * stub-objc.c (objc_maybe_printable_name): New.
13728
3f8257db
JJ
137292010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
13730 Andrew Pinski <pinskia@gmail.com>
30cd1c5d
AS
13731
13732 * c-common.h (c_common_mark_addressable_vec): Declare.
13733 * c-common.c (c_common_mark_addressable_vec): New function.
13734
249a82c4
NP
137352010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
13736
13737 * c-common.h (objc_set_method_type): Removed.
13738 (objc_add_method_declaration): Added boolean argument.
13739 (objc_start_method_definition): Same change.
13740 (objc_build_method_signature): Same change.
13741 * stub-objc.c (objc_set_method_type): Removed.
13742 (objc_add_method_declaration): Added boolean argument.
13743 (objc_start_method_definition): Same change.
13744 (objc_build_method_signature): Same change.
13745
977e30bc
NP
137462010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
13747
13748 * c-common.h (finish_file): Removed.
13749 (objc_write_global_declarations): New.
13750 * c-opts.c (c_common_parse_file): Do not call finish_file.
13751 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 13752
da57d1b9
NP
137532010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
13754
13755 Implemented parsing @synthesize and @dynamic for
13756 Objective-C/Objective-C++.
13757 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
13758 (objc_add_synthesize_declaration): New.
13759 (objc_add_dynamic_declaration): New.
13760 * c-common.c (c_common_reswords): Add synthesize and dynamic.
13761 * stub-objc.c (objc_add_synthesize_declaration): New.
13762 (objc_add_dynamic_declaration): New.
9faeb493 13763
0069111f
MM
137642010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
13765
13766 PR target/46041
13767 * c-cppbuiltin.c (mode_has_fma): Move function here from
13768 builtins.c. Don't use the fma optab, instead just use the
13769 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
13770 using -save-temps.
13771
e426b47b
NP
137722010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
13773
13774 Merge from 'apple/trunk' branch on FSF servers.
0069111f 13775
3f8257db 13776 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
e426b47b 13777
9faeb493 13778 Radar 4330422
e426b47b
NP
13779 * c-common.h (objc_non_volatilized_type): New declaration
13780 * stub-objc.c (objc_non_volatilized_type): New stub.
13781
90fbfdc3
NP
137822010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
13783
e426b47b 13784 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3 13785
ab20d992 13786 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
90fbfdc3 13787
9faeb493 13788 Radar 4133425
90fbfdc3 13789 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 13790 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 13791
c37d8c30
IS
137922010-10-17 Iain Sandoe <iains@gcc.gnu.org>
13793
13794 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
13795 * c-common.h (enum rid): Add RID_AT_PACKAGE.
13796 (objc_ivar_visibility_kind): New enum.
13797 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 13798 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
13799 visibility enum.
13800
1b1562a5
MM
138012010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
13802
13803 * c-cppbuiltin.c (builtin_define_float_constants): Emit
13804 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
13805 has the appropriate fma builtins.
13806 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
13807
668ea4b1
IS
138082010-10-14 Iain Sandoe <iains@gcc.gnu.org>
13809
1b1562a5 13810 merge from FSF apple 'trunk' branch.
3f8257db 13811 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 13812
668ea4b1
IS
13813 Radars 4436866, 4505126, 4506903, 4517826
13814 * c-common.c (c_common_resword): Define @property and its attributes.
13815 * c-common.h: Define property attribute enum entries.
13816 (OBJC_IS_PATTR_KEYWORD): New.
13817 (objc_property_attribute_kind): New enum.
13818 Declare objc_set_property_attr (), objc_add_property_variable (),
13819 objc_build_getter_call () and objc_build_setter_call ().
13820 * stub-objc.c (objc_set_property_attr): New stub.
13821 (objc_add_property_variable): Likewise.
13822 (objc_build_getter_call): Likewise.
13823 (objc_build_setter_call) Likewise.
1b1562a5 13824
a1178b30
IS
138252010-10-13 Iain Sandoe <iains@gcc.gnu.org>
13826
1b1562a5 13827 merge from FSF apple 'trunk' branch.
ab20d992 13828 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
a1178b30
IS
13829
13830 Radar 3803157 (method attributes)
13831 * c-common.c (handle_deprecated_attribute): Recognize
13832 objc methods as valid declarations.
13833 * c-common.h: Declare objc_method_decl ().
1b1562a5 13834 * stub-objc.c (objc_method_decl): New stub.
a1178b30 13835
a75bfaa6
JM
138362010-10-08 Joseph Myers <joseph@codesourcery.com>
13837
13838 * c-common.c (parse_optimize_options): Call
13839 decode_cmdline_options_to_array_default_mask before
13840 decode_options. Update arguments to decode_options.
13841 * c-common.h (c_common_init_options_struct): Declare.
13842 * c-opts.c (c_common_init_options_struct): New. Split out from
13843 c_common_init_options.
13844
f05b9d93
NP
138452010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
13846
13847 Implemented fast enumeration for Objective-C.
13848 * c-common.h (objc_finish_foreach_loop): New.
13849 * stub-objc.c (objc_finish_foreach_loop): New.
13850
1ebe4b4f
JM
138512010-10-05 Joseph Myers <joseph@codesourcery.com>
13852
13853 * c-common.h (struct diagnostic_context): Don't declare here.
13854 (c_common_initialize_diagnostics): Declare using
13855 diagnostic_context typedef.
13856 * c-opts.c (c_common_handle_option): Pass global_dc to
13857 handle_generated_option.
13858
d4d24ba4
JM
138592010-10-04 Joseph Myers <joseph@codesourcery.com>
13860
13861 * c-opts.c (c_common_handle_option): Pass &global_options_set to
13862 handle_generated_option.
13863
478a1c5b
ILT
138642010-10-03 Ian Lance Taylor <iant@google.com>
13865
13866 * c.opt (-fplan9-extensions): New option.
13867
82a1c2fe
FXC
138682010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13869
13870 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
13871 Remove.
13872 (c_cpp_builtins): Call functions from cppbuiltin.c instead
13873 of duplicating code.
13874
92902b1b
IS
138752010-09-30 Iain Sandoe <iains@gcc.gnu.org>
13876
13877 * c-common.c: Add two new entries for @optional
13878 and @required keywords.
13879
13880 merge from FSF 'apple/trunk' branch.
3f8257db 13881 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
92902b1b
IS
13882
13883 Radar 4386773
13884 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
13885 objective-c keywords.
13886 (objc_set_method_opt): New declaration.
13887 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 13888
46625112
JM
138892010-09-30 Joseph Myers <joseph@codesourcery.com>
13890
13891 * c-common.c (handle_optimize_attribute): Pass &global_options to
13892 cl_optimization_save and cl_optimization_restore.
13893 * c-opts.c (c_common_handle_option): Pass &global_options to
13894 handle_generated_option.
13895 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
13896 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
13897 &global_options to cl_optimization_restore.
13898
49b91f05
NP
138992010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
13900
13901 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
13902 Objective-C/Objective-C++ keywords.
13903
13ed556f 139042010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 13905
9faeb493
UB
13906 Merge from 'apple/trunk' branch on FSF servers.
13907
3f8257db 13908 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
a6341d57
NP
13909
13910 Radar 4281748
13911 * c-common.h (objc_check_global_decl): New declaration.
13912 * stub-objc.c (objc_check_global_decl): New stub.
13913
f0036cca
JM
139142010-09-29 Joseph Myers <joseph@codesourcery.com>
13915
13916 * c.opt: Don't use VarExists.
13917
e3339d0f
JM
139182010-09-29 Joseph Myers <joseph@codesourcery.com>
13919
13920 * c-common.c (c_cpp_error): Update names of diagnostic_context
13921 members.
13922 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
13923 cl_optimization members.
13924 * c-opts.c (warning_as_error_callback, c_common_handle_option,
13925 sanitize_cpp_opts, finish_options): Update names of cpp_options
13926 members.
13927
1973201f
NP
139282010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
13929
13930 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
13931 (objc_is_reserved_word): Removed.
13932 * c-common.c: Updated comments.
13933 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
13934 objc_is_reserved_word.
13935 * stub-objc.c (objc_is_reserved_word): Removed.
13936
f7e71da5
IS
139372010-09-28 Iain Sandoe <iains@gcc.gnu.org>
13938
9faeb493 13939 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
13940 include attributes.
13941 (objc_start_method_definition): Likewise.
13942 (objc_build_keyword_decl): Likewise.
13943 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
13944 (objc_start_method_definition): Likewise.
13945 (objc_build_keyword_decl): Likewise.
13946
c165dca7
IS
139472010-09-28 Iain Sandoe <iains@gcc.gnu.org>
13948
13949 * c-common.h (objc_start_class_interface): Adjust prototype.
13950 (objc_start_category_interface): Likewise.
13951 (objc_start_protocol): Likewise.
13952 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
13953 (objc_start_class_interface): Likewise.
13954 (objc_start_category_interface): Likewise.
13955
7458026b
ILT
139562010-09-27 Ian Lance Taylor <iant@google.com>
13957
13958 * c-common.c (c_common_attribute_table): Add no_split_stack.
13959 (handle_no_split_stack_attribute): New static function.
13960
b581b85b
NP
139612010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
13962
9faeb493 13963 Merge from 'apple/trunk' branch on FSF servers.
b581b85b 13964
3f8257db 13965 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
b581b85b 13966
9faeb493 13967 Radar 4229905
b581b85b
NP
13968 * c-common.h (objc_have_common_type): New declaration.
13969 * stub-objc.c (objc_have_common_type): New stub.
13970
13971 2005-06-22 Ziemowit Laski <zlaski@apple.com>
13972
13973 Radar 4154928
13974 * c-common.h (objc_common_type): New prototype.
9faeb493 13975 * stub-objc.c (objc_common_type): New stub.
b581b85b 13976
46a4da10
JH
139772010-09-24 Jan Hubicka <jh@suse.cz>
13978
13979 * c-common.c (handle_leaf_attribute): New function.
13980 (struct attribute_spec c_common_att): Add leaf.
13981
e200444e
JM
139822010-09-22 Joseph Myers <joseph@codesourcery.com>
13983
13984 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
13985 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
13986 -dump, -dump=, -imacros, -imacros=, -include, -include=,
13987 -include-barrier, -include-directory, -include-directory=,
13988 -include-directory-after, -include-directory-after=,
13989 -include-prefix, -include-prefix=, -include-with-prefix,
13990 -include-with-prefix=, -include-with-prefix-after,
13991 -include-with-prefix-after=, -include-with-prefix-before,
13992 -include-with-prefix-before=, -no-integrated-cpp,
13993 -no-line-commands, -no-standard-includes, -no-warnings, -output,
13994 -output=, -pedantic, -pedantic-errors, -preprocess,
13995 -print-missing-file-dependencies, -trace-includes, -traditional,
13996 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
13997 -user-dependencies, -verbose, -write-dependencies,
13998 -write-user-dependencies, no-integrated-cpp, traditional): New.
13999
29a80ea6
NP
140002010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
14001
14002 PR objc/23710
ac1fc2fc
NP
14003 * c-common.h (objc_start_method_definition): Return bool instead
14004 of void.
14005 * stub-objc.c (objc_start_method_definition): Return bool instead
14006 of void.
14007
140082010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
14009
14010 PR objc/25965
14011 * c-common.h (objc_get_interface_ivars): New declaration.
14012 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 14013
de621752
ILT
140142010-09-15 Ian Lance Taylor <iant@google.com>
14015
14016 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 14017 messages. Remove period at end of warning message.
de621752 14018
ba885ec5
NS
140192010-09-09 Nathan Sidwell <nathan@codesourcery.com>
14020
14021 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
14022 (handle_alias_attribute): ... here.
14023 (handle_ifunc_attribute): New.
14024
c5ee1358
MM
140252010-09-06 Mark Mitchell <mark@codesourcery.com>
14026
14027 * c-common.h (do_warn_double_promotion): Declare.
14028 * c-common.c (do_warn_double_promotion): Define.
14029
0a0b3574
MM
140302010-09-05 Mark Mitchell <mark@codesourcery.com>
14031
14032 * c.opt (Wdouble-promotion): New.
14033
d1779886
JM
140342010-09-02 Joseph Myers <joseph@codesourcery.com>
14035
14036 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
14037 fvtable-thunks, fxref): Mark no longer supported in help text.
14038
2d2bd949
JM
140392010-09-02 Joseph Myers <joseph@codesourcery.com>
14040
14041 * c.opt (Wimport, fall-virtual, falt-external-templates,
14042 fdefault-inline, fenum-int-equiv, fexternal-templates,
14043 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
14044 fname-mangling-version-, fnew-abi, fnonnull-objects,
14045 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
14046 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
14047 applicable.
14048 (fhandle-exceptions): Mark with Alias and Warn.
14049 * c-opts.c (c_common_handle_option): Don't handle options marked
14050 as ignored.
14051
5de8299c
JM
140522010-09-02 Joseph Myers <joseph@codesourcery.com>
14053
14054 * c.opt (Wcomments, Werror-implicit-function-declaration,
14055 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
14056 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
14057 aliases.
14058 * c-common.c (option_codes): Use OPT_Wcomment instead of
14059 OPT_Wcomments.
14060 * c-opts.c (warning_as_error_callback, c_common_handle_option):
14061 Don't handle options marked as aliases.
14062
0ceb0201
RG
140632010-08-25 Richard Guenther <rguenther@suse.de>
14064
14065 * c-common.c (c_common_get_alias_set): Remove special
14066 handling for pointers.
14067
ac47786e
NF
140682010-08-20 Nathan Froyd <froydnj@codesourcery.com>
14069
14070 * c-common.c: Use FOR_EACH_VEC_ELT.
14071 * c-gimplify.c: Likewise.
14072 * c-pragma.c: Likewise.
14073
c878765b
JM
140742010-08-16 Joseph Myers <joseph@codesourcery.com>
14075
14076 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
14077 RejectDriver.
14078 (MMDX): Change back to MMD. Mark NoDriverArg instead of
14079 RejectDriver.
14080 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
14081 instead of OPT_MDX and OPT_MMDX.
14082
603349bf
JM
140832010-08-16 Joseph Myers <joseph@codesourcery.com>
14084
14085 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
14086
644fa7ac
JM
140872010-08-12 Joseph Myers <joseph@codesourcery.com>
14088
14089 * c.opt (MD, MMD): Change to MDX and MMDX.
14090 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
14091
481e1176
JM
140922010-08-11 Joseph Myers <joseph@codesourcery.com>
14093
14094 * c-opts.c (c_common_handle_option): Call handle_generated_option
14095 instead of handle_option.
14096
ac8dc9f7
NF
140972010-08-08 Nathan Froyd <froydnj@codesourcery.com>
14098
14099 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
14100 (maybe_apply_renaming_pragma): Delete unneeded declarations.
14101
4f8c876d
NF
141022010-08-08 Nathan Froyd <froydnj@codesourcery.com>
14103
14104 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
14105 (pending_redefine_extname): Change type to a VEC.
14106 (add_to_renaming_pragma_list): Update for new type of
14107 pending_redefine_extname.
ac8dc9f7 14108 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 14109
3b0c690e
AC
141102010-08-04 Arnaud Charlet <charlet@adacore.com>
14111
14112 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
14113 visited.
14114 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
14115 decide whether a type has already been declared/seen.
14116 Do not go to the original type.
14117 (dump_nested_types): New parameter forward.
14118 Generate forward declaration if needed and mark type as visited.
14119 (print_ada_declaration): Call dump_nested_types if not already done.
14120 Mark types as visited.
14121
1890bccc
JM
141222010-08-03 Joseph Myers <joseph@codesourcery.com>
14123
14124 * c.opt (-print-pch-checksum): Remove option.
14125 * c-opts.c (c_common_handle_option): Don't handle
14126 OPT_print_pch_checksum.
14127
5f20c657
JM
141282010-07-27 Joseph Myers <joseph@codesourcery.com>
14129
14130 * c-common.h (c_common_handle_option): Update prototype and return
14131 value type.
14132 * c-opts.c (c_common_handle_option): Update prototype and return
14133 value type. Update calls to handle_option and
14134 enable_warning_as_error.
14135
f551f80c
JJ
141362010-07-27 Jakub Jelinek <jakub@redhat.com>
14137
14138 PR c/45079
14139 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
14140
61ff2bdc
JM
141412010-07-27 Joseph Myers <joseph@codesourcery.com>
14142
14143 * c-common.h (c_common_missing_argument): Remove.
14144 * c-opts.c (c_common_missing_argument): Remove.
14145 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
14146 idirafter, imacros, include, isysroot, isystem, iquote): Add
14147 MissingArgError.
14148 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
14149
7a9bf9a4
JM
141502010-07-27 Joseph Myers <joseph@codesourcery.com>
14151
14152 * c-common.h (c_common_option_lang_mask,
14153 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
14154 New.
14155 (c_common_init_options): Update prototype.
14156 * c-opts.c (c_common_option_lang_mask): New.
14157 (c_common_initialize_diagnostics): Split out of
14158 c_common_init_options.
14159 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
14160 New.
14161 (c_common_init_options): Update prototype. Use decoded options in
14162 search for -lang-asm.
14163
910ad8de
NF
141642010-07-15 Nathan Froyd <froydnj@codesourcery.com>
14165
14166 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
14167 * c-format.c: Likewise.
14168
718f9c0f
MLI
141692010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
14170
14171 * c-common.h: Include diagnostic-core.h. Error if already
14172 included.
14173 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
14174
4d451982
MLI
141752010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
14176
adfac8df 14177 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
14178 Do not include expr.h
14179 (vector_mode_valid_p): Move here.
14180
119fe915
SB
141812010-06-21 DJ Delorie <dj@redhat.com>
14182
14183 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
14184 allow these pragmas anywhere.
14185
141862010-06-14 Jakub Jelinek <jakub@redhat.com>
14187
14188 PR bootstrap/44509
14189 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
14190 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
14191 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
14192 ggc_strdup instead of xstrdup.
14193
141942010-06-10 Jakub Jelinek <jakub@redhat.com>
14195
14196 * c-cppbuiltin.c: Include cpp-id-data.h.
14197 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
14198 (lazy_hex_fp_value): New function.
14199 (builtin_define_with_hex_fp_value): Provide definitions lazily.
14200
6662d794
MLI
142012010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
14202
14203 * c-gimplify.c: Do not include tree-flow.h
14204
38f8b050
JR
142052010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
14206
14207 PR other/44034
14208 * c-common.c: Rename targetm member:
14209 targetm.enum_va_list -> targetm.enum_va_list_p
14210
9589f23e
AS
142112010-06-28 Anatoly Sokolov <aesok@post.ru>
14212
14213 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
14214
3b06d379
SB
142152010-06-28 Steven Bosscher <steven@gcc.gnu.org>
14216
14217 * c-cppbuiltin.c: Do not include except.h.
14218
d166d4c3
AK
142192010-06-24 Andi Kleen <ak@linux.intel.com>
14220
9faeb493
UB
14221 * c-common.c (warn_for_omitted_condop): New.
14222 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 14223
70cb8be6
JM
142242010-06-21 Joseph Myers <joseph@codesourcery.com>
14225
14226 * c.opt (lang-objc): Remove.
14227 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
14228
a4c97feb
JR
142292010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
14230
14231 * c-opts.c: Include "tm_p.h".
14232
6e2f1956
JM
142332010-06-20 Joseph Myers <joseph@codesourcery.com>
14234
14235 * c-common.c (parse_optimize_options): Update call to
14236 decode_options.
14237
bc87224e
NF
142382010-06-18 Nathan Froyd <froydnj@codesourcery.com>
14239
14240 * c-common.c (record_types_used_by_current_var_decl): Adjust for
14241 new type of types_used_by_cur_var_decl.
14242
b49cf425
JR
142432010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
14244
14245 PR bootstrap/44512
14246 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
14247 for C++ standard compliance.
14248
59f9c2ed
JM
142492010-06-16 Jason Merrill <jason@redhat.com>
14250
14251 * c.opt: Add -Wnoexcept.
14252
33766b66
RG
142532010-06-16 Richard Guenther <rguenther@suse.de>
14254
14255 PR c/44555
14256 * c-common.c (c_common_truthvalue_conversion): Remove
14257 premature and wrong optimization concering ADDR_EXPRs.
14258
eff7e30c
AC
142592010-06-15 Arnaud Charlet <charlet@adacore.com>
14260
14261 * c-ada-spec.c (dump_sloc): Remove column info.
14262 (is_simple_enum): New function.
14263 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
14264 enum types when relevant.
14265
6312e84d
MLI
142662010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
14267
9faeb493 14268 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
14269 location.
14270
1cb42611
JM
142712010-06-10 Joseph Myers <joseph@codesourcery.com>
14272
14273 * c-opts.c (c_common_handle_option): Don't handle
14274 OPT_fshow_column.
14275
a9429e29
LB
142762010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
14277
14278 * c-pragma.c (push_alignment): Use typed GC allocation.
14279 (handle_pragma_push_options): Likewise.
14280
14281 * c-common.c (parse_optimize_options): Likewise.
14282
14283 * c-common.h (struct sorted_fields_type): Add variable_size GTY
14284 option.
14285
5498f011
JM
142862010-06-07 Joseph Myers <joseph@codesourcery.com>
14287
14288 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
14289 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
14290 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
14291 flag_signed_bitfields, warn_strict_null_sentinel,
14292 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
14293 flag_gen_declaration, flag_no_gnu_keywords,
14294 flag_implement_inlines, flag_implicit_templates,
14295 flag_implicit_inline_templates, flag_optional_diags,
14296 flag_elide_constructors, flag_default_inline, flag_rtti,
14297 flag_conserve_space, flag_access_control, flag_check_new,
14298 flag_new_for_scope, flag_weak, flag_working_directory,
14299 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
14300 flag_enforce_eh_specs, flag_threadsafe_statics,
14301 flag_pretty_templates): Remove.
14302 * c-common.h (flag_preprocess_only, flag_nil_receivers,
14303 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
14304 flag_replace_objc_classes, flag_undef, flag_no_builtin,
14305 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
14306 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
14307 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
14308 flag_no_gnu_keywords, flag_implement_inlines,
14309 flag_implicit_templates, flag_implicit_inline_templates,
14310 flag_optional_diags, flag_elide_constructors, flag_default_inline,
14311 flag_rtti, flag_conserve_space, flag_access_control,
14312 flag_check_new, flag_new_for_scope, flag_weak,
14313 flag_working_directory, flag_use_cxa_atexit,
14314 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
14315 flag_threadsafe_statics, flag_pretty_templates,
14316 warn_strict_null_sentinel): Remove.
14317 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
14318 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
14319 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
14320 fimplicit-inline-templates, fimplicit-templates,
14321 flax-vector-conversions, fms-extensions, fnil-receivers,
14322 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
14323 frtti, fshort-double, fshort-enums, fshort-wchar,
14324 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
14325 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
14326 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
14327 gen-decls, undef): Use Var.
14328 (fdefault-inline, foptional-diags): Document as doing nothing.
14329 * c-opts.c (c_common_handle_option): Remove cases for options now
14330 using Var. Mark ignored options as such.
14331
39dabefd
SB
143322010-06-05 Steven Bosscher <steven@gcc.gnu.org>
14333
9faeb493 14334 * c-common.c: Moved to here from parent directory.
39dabefd
SB
14335 * c-common.def: Likewise.
14336 * c-common.h: Likewise.
14337 * c-cppbuiltin.c: Likewise.
14338 * c-dump.c: Likewise.
14339 * c-format.c: Likewise.
14340 * c-format.h : Likewise.
14341 * c-gimplify.c: Likewise.
14342 * c-lex.c: Likewise.
14343 * c-omp.c: Likewise.
14344 * c.opt: Likewise.
14345 * c-opts.c: Likewise.
14346 * c-pch.c: Likewise.
14347 * c-ppoutput.c: Likewise.
14348 * c-pragma.c: Likewise.
14349 * c-pragma.h: Likewise.
14350 * c-pretty-print.c: Likewise.
14351 * c-pretty-print.h: Likewise.
14352 * c-semantics.c: Likewise.
14353 * stub-objc.c: Likewise.
14354
14355 * c-common.c: Include gt-c-family-c-common.h.
14356 * c-pragma.c: Include gt-c-family-c-pragma.h.
14357\f
68127a8e 14358Copyright (C) 2010-2023 Free Software Foundation, Inc.
39dabefd
SB
14359
14360Copying and distribution of this file, with or without modification,
14361are permitted in any medium without royalty provided the copyright
14362notice and this notice are preserved.