]> gcc.gnu.org Git - gcc.git/blame - gcc/c-family/ChangeLog
libgo: handle stat st_atim32 field and SYS_SECCOMP
[gcc.git] / gcc / c-family / ChangeLog
CommitLineData
84c2131d
GA
12022-06-24 Jason Merrill <jason@redhat.com>
2
3 PR c++/87729
4 PR c++/20423
5 * c.opt (Woverloaded-virtual): Add levels, include in -Wall.
6
4390e7bf
GA
72022-06-18 Jakub Jelinek <jakub@redhat.com>
8
9 * c-ubsan.cc (ubsan_instrument_division, ubsan_instrument_shift):
10 Use flag_sanitize_trap & SANITIZE_??? instead of
11 flag_sanitize_undefined_trap_on_error. If 2 sanitizers are involved
12 and flag_sanitize_trap differs for them, emit __builtin_trap only
13 for the comparison where trap is requested.
14 (ubsan_instrument_vla, ubsan_instrument_return): Use
15 lag_sanitize_trap & SANITIZE_??? instead of
16 flag_sanitize_undefined_trap_on_error.
17
c3642271
GA
182022-06-13 Jason Merrill <jason@redhat.com>
19
20 * c-ubsan.cc (ubsan_instrument_return): Use BUILTINS_LOCATION.
21
d9176e64
GA
222022-05-27 Marek Polacek <polacek@redhat.com>
23
24 PR c/90658
25 * c-attribs.cc (get_priority): Check FUNCTION_DECL.
26
272022-05-27 Jakub Jelinek <jakub@redhat.com>
28
29 * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ENTER.
30
57f2ce6a
GA
312022-05-20 David Malcolm <dmalcolm@redhat.com>
32
33 * c-format.cc: Replace uses of "FINAL" and "OVERRIDE" with "final"
34 and "override".
35 * c-pretty-print.h: Likewise.
36
1cda629f
GA
372022-05-18 Marek Polacek <polacek@redhat.com>
38
39 PR c/105131
40 * c.opt (Wenum-int-mismatch): New.
41
422022-05-18 Marek Polacek <polacek@redhat.com>
43
44 PR c++/105497
45 * c-warn.cc (c_do_switch_warnings): Don't warn about unhandled
46 enumerator when it was marked with attribute unused.
47
482022-05-18 Eric Botcazou <ebotcazou@adacore.com>
49
50 * c-ada-spec.cc (dump_ada_node) <COMPLEX_TYPE>: Deal with usual
51 floating-point complex types.
52 <POINTER_TYPE>: Do not use limited_with clause if the designated
53 type is a scalar type.
54
3d9439b1
GA
552022-05-17 Jakub Jelinek <jakub@redhat.com>
56
57 * c-omp.cc (c_finish_omp_depobj): Handle
58 OMP_CLAUSE_DEPEND_INOUTSET.
59
702bd11f
GA
602022-05-16 Jason Merrill <jason@redhat.com>
61
62 PR c/105492
63 * c-attribs.cc (handle_mode_attribute): Don't fix broken typedefs
64 here.
65
662022-05-16 Martin Liska <mliska@suse.cz>
67
68 * c-common.cc (ARRAY_SIZE): Use ARRAY_SIZE.
69 (c_common_nodes_and_builtins): Likewise.
70 * c-format.cc (check_tokens): Likewise.
71 (check_plain): Likewise.
72 * c-pragma.cc (c_pp_lookup_pragma): Likewise.
73 (init_pragma): Likewise.
74 * known-headers.cc (get_string_macro_hint): Likewise.
75 (get_stdlib_header_for_name): Likewise.
76 * c-attribs.cc: Likewise.
77
9df4ffe4
GA
782022-05-13 Richard Biener <rguenther@suse.de>
79
80 * c-omp.cc: Remove gimple-fold.h include.
81
49ace834
GA
822022-05-12 Jakub Jelinek <jakub@redhat.com>
83
84 * c-common.h (enum rid): Add RID_OMP_ALL_MEMORY.
85 * c-omp.cc (c_finish_omp_depobj): Don't build_fold_addr_expr
86 if null_pointer_node.
87
d0d513b5
GA
882022-05-11 Martin Liska <mliska@suse.cz>
89
90 PR target/105355
91 * c-opts.cc (c_common_handle_option): Change option name.
92 * c.opt: Remove Joined and use Separate option.
93
bd022ff9
GA
942022-05-09 Alex Coplan <alex.coplan@arm.com>
95
96 * c-common.h (get_dump_info): Delete.
97 * c-gimplify.cc (c_genericize): Get TDI_original dump file info
98 from the global dump_manager instead of the (now obsolete)
99 get_dump_info.
100 * c-opts.cc (original_dump_file): Delete.
101 (original_dump_flags): Delete.
102 (c_common_parse_file): Switch to using global dump_manager to
103 manage the original dump file; fix leak of dump file.
104 (get_dump_info): Delete.
105
a1947c92
GA
1062022-05-07 Marek Polacek <polacek@redhat.com>
107
108 PR c++/101833
109 PR c++/47634
110 * c-attribs.cc (positional_argument): Pass POS by reference. Deal
111 with FN being either a function declaration or function type. Use
112 maybe_adjust_arg_pos_for_attribute.
113 * c-common.cc (check_function_arguments): Maybe pass FNDECL down to
114 check_function_format.
115 * c-common.h (maybe_adjust_arg_pos_for_attribute): Declare.
116 (positional_argument): Adjust.
117 * c-format.cc (get_constant): Rename to ...
118 (validate_constant): ... this. Take EXPR by reference. Return bool
119 instead of tree.
120 (handle_format_arg_attribute): Don't overwrite FORMAT_NUM_EXPR by the
121 return value of validate_constant.
122 (decode_format_attr): Don't overwrite FORMAT_NUM_EXPR and
123 FIRST_ARG_NUM_EXPR by the return value of validate_constant.
124 (check_function_format): Adjust a parameter name.
125 (handle_format_attribute): Maybe pass FNDECL down to decode_format_attr.
126
3e7db517
GA
1272022-05-04 Marek Polacek <polacek@redhat.com>
128
129 * c-warn.cc (warnings_for_convert_and_check): Convert constants of type
130 char to int.
131
95874f95
GA
1322022-04-30 Jason Merrill <jason@redhat.com>
133
134 PR c/100545
135 * c-attribs.cc (handle_mode_attribute): Copy attributes, aligned,
136 and typedef.
137 * c-common.cc (set_underlying_type): Add assert.
138
01ad093b
GA
1392022-04-26 Patrick Palka <ppalka@redhat.com>
140
141 PR c++/105304
142 * c-common.cc (verify_tree) [restart]: Move up to before the
143 NULL test.
144
da066c42
GA
1452022-04-11 Jakub Jelinek <jakub@redhat.com>
146
147 PR c++/105186
148 * c-common.cc (c_common_nodes_and_builtins): After registering __int%d
149 and __int%d__ builtin types, initialize corresponding ridpointers
150 entry.
151
150ab50f
GA
1522022-03-30 Marek Polacek <polacek@redhat.com>
153
154 PR c++/101030
155 * c-warn.cc (conversion_warning) <case COND_EXPR>: Don't call
156 conversion_warning when OP1 is null.
157
1582022-03-30 Thomas Schwinge <thomas@codesourcery.com>
159
160 * c.opt (Wc++11-extensions, Wc++14-extensions, Wc++17-extensions)
161 (Wc++20-extensions, Wc++23-extensions): Remove 'LangEnabledBy'
162 option properties.
163
1642022-03-30 Thomas Schwinge <thomas@codesourcery.com>
165
166 * c.opt (Wuse-after-free): Remove.
167
1682022-03-30 Thomas Schwinge <thomas@codesourcery.com>
169
170 * c.opt (Warray-bounds): Remove.
171
d2906412
GA
1722022-03-26 Thomas Schwinge <thomas@codesourcery.com>
173
174 * c.opt: Properly quote comment.
175
31e989a2
GA
1762022-03-25 Eric Botcazou <ebotcazou@adacore.com>
177
178 * c-ada-spec.cc (dump_ada_import): Deal with the "section" attribute
179 (dump_ada_node) <POINTER_TYPE>: Do not modify and pass the name, but
180 the referenced type instead. Deal with the anonymous original type
181 of a typedef'ed type. In the actual access case, follow the chain
182 of external subtypes.
183 <TYPE_DECL>: Tidy up control flow.
184
d156bb87
GA
1852022-03-21 Qian Jianhua <qianjh@cn.fujitsu.com>
186
187 * c-ada-spec.cc: Change array length
188
d7f00da1
GA
1892022-03-19 Arthur Cohen <arthur.cohen@embecosm.com>
190
191 * c-common.cc (c_family_tests): Call the new tests.
192 * c-common.h (c_diagnostic_tests): Declare.
193 (c_opt_problem_cc_tests): Likewise.
194
1952022-03-19 Jakub Jelinek <jakub@redhat.com>
196
197 PR c++/101515
198 * c-pretty-print.cc (c_fold_indirect_ref_for_warn): For C++ don't
199 return COMPONENT_REFs with FIELD_DECLs whose containing scope can't
200 be printed.
201
9fc8f278
GA
2022022-03-16 Christophe Lyon <christophe.lyon@arm.com>
203 Roger Sayle <roger@nextmovesoftware.com>
204
205 PR c/98198
206 * c-attribs.cc (decl_or_type_attrs): Add error_mark_node check.
207
2082022-03-16 Patrick Palka <ppalka@redhat.com>
209
210 PR c++/96780
211 * c.opt: Add -ffold-simple-inlines.
212
b9756c08
GA
2132022-03-13 Tobias Burnus <tobias@codesourcery.com>
214
215 * c-target.def (check_string_object_format_arg): Fix description typo.
216
57eeedda
GA
2172022-03-12 Thomas Schwinge <thomas@codesourcery.com>
218
219 PR other/65095
220 * c-common.h (c_omp_map_clause_name): Remove.
221 * c-omp.cc (c_omp_map_clause_name): Remove.
222
8cc4f9cd
GA
2232022-03-09 Jakub Jelinek <jakub@redhat.com>
224
225 PR c/104711
226 * c-opts.cc (c_common_post_options): Don't enable
227 -Wshift-negative-value from -Wextra for C++20 or later.
228 * c-ubsan.cc (ubsan_instrument_shift): Adjust comments.
229 * c-warn.cc (maybe_warn_shift_overflow): Use TYPE_OVERFLOW_WRAPS
230 instead of TYPE_UNSIGNED.
231
e6533e2e
GA
2322022-03-07 Jakub Jelinek <jakub@redhat.com>
233
234 * c-attribs.cc: Fix up duplicated word issue in a comment.
235
12d4552e
GA
2362022-03-01 Martin Liska <mliska@suse.cz>
237
238 PR ipa/104533
239 * c-attribs.cc (handle_target_clones_attribute): Use
240 get_target_clone_attr_len and report warning soon.
241
0bdb0498
GA
2422022-02-17 Jonathan Wakely <jwakely@redhat.com>
243
244 * c-pragma.cc (handle_pragma_pack): Remove parameter name.
245 (handle_pragma_weak): Likewise.
246 (handle_pragma_scalar_storage_order): Likewise.
247 (handle_pragma_redefine_extname): Likewise.
248 (handle_pragma_visibility): Likewise.
249 (handle_pragma_diagnostic): Likewise.
250 (handle_pragma_target): Likewise.
251 (handle_pragma_optimize): Likewise.
252 (handle_pragma_push_options): Likewise.
253 (handle_pragma_pop_options): Likewise.
254 (handle_pragma_reset_options): Likewise.
255 (handle_pragma_message): Likewise.
256 (handle_pragma_float_const_decimal64): Likewise.
257
cb3afcd2
GA
2582022-02-16 Jakub Jelinek <jakub@redhat.com>
259
260 PR c/104531
261 * c-omp.cc (c_finish_omp_atomic): For MIN_EXPR/MAX_EXPR, try first
262 build_binary_op with LT_EXPR and only if that doesn't return
263 error_mark_node call build_modify_expr.
264
2652022-02-16 Jakub Jelinek <jakub@redhat.com>
266
267 PR c/104510
268 * c-common.cc (shorten_compare): Convert original arguments to
269 the original *restype_ptr when mixing binary and decimal float.
270
1f8a09d2
GA
2712022-02-14 Richard Biener <rguenther@suse.de>
272
273 PR c/104505
274 * c-pretty-print.cc (c_pretty_printer::postfix_expression): Handle
275 internal function calls.
276
e8d68f0a
GA
2772022-02-11 Richard Biener <rguenther@suse.de>
278
279 * c-attribs.cc (c_common_attribute_table): Add entry for
280 vector_mask.
281 (handle_vector_mask_attribute): New.
282
a645583d
GA
2832022-02-10 Marcel Vollweiler <marcel@codesourcery.com>
284
285 * c-omp.cc (c_omp_split_clauses): Added OMP_CLAUSE_HAS_DEVICE_ADDR case.
286 * c-pragma.h (enum pragma_kind): Added 5.1 in comment.
287 (enum pragma_omp_clause): Added PRAGMA_OMP_CLAUSE_HAS_DEVICE_ADDR.
288
3adf509f
GA
2892022-02-09 Jason Merrill <jason@redhat.com>
290
291 * c-cppbuiltin.cc (c_cpp_builtins): Update values
292 of __cpp_constexpr and __cpp_concepts for C++20.
293
bb99171b
GA
2942022-01-24 Marek Polacek <polacek@redhat.com>
295
296 PR preprocessor/104030
297 * c.opt (Wbidi-chars): Mark as EnumSet. Also accept =ucn.
298
9dd44357
GA
2992022-01-21 Jakub Jelinek <jakub@redhat.com>
300
301 PR c++/104148
302 * c-common.h (check_function_arguments_recurse): Add for_format
303 arg.
304 * c-common.cc (check_function_nonnull): Pass false to
305 check_function_arguments_recurse's last argument.
306 (check_function_arguments_recurse): Add for_format argument,
307 if true, don't stop on warning_suppressed_p.
308 * c-format.cc (check_format_info): Pass true to
309 check_function_arguments_recurse's last argument.
310
fe1ad141
GA
3112022-01-19 David Malcolm <dmalcolm@redhat.com>
312
313 * c-common.cc (c_common_c_tests): Rename to...
314 (c_common_cc_tests): ...this.
315 (c_family_tests): Update calls for .c to .cc renaming.
316 * c-common.h (c_format_c_tests): Rename to...
317 (c_format_cc_tests): ...this.
318 (c_indentation_c_tests): Rename to...
319 (c_indentation_cc_tests): ...this.
320 (c_pretty_print_c_tests): Rename to...
321 (c_pretty_print_cc_tests): ...this.
322 * c-format.cc (c_format_c_tests): Rename to...
323 (c_format_cc_tests): ...this.
324 * c-indentation.cc (c_indentation_c_tests): Rename to...
325 (c_indentation_cc_tests): ...this.
326 * c-pretty-print.cc (c_pretty_print_c_tests): Rename to...
327 (c_pretty_print_cc_tests): ...this.
328
fc829782
GA
3292022-01-17 Martin Liska <mliska@suse.cz>
330
331 * c-ada-spec.cc: Rename .c names to .cc.
332 * c-ada-spec.h: Likewise.
333 * c-common.cc (c_build_vec_convert): Likewise.
334 (warning_candidate_p): Likewise.
335 * c-common.h (enum rid): Likewise.
336 (build_real_imag_expr): Likewise.
337 (finish_label_address_expr): Likewise.
338 (c_get_substring_location): Likewise.
339 (c_build_bind_expr): Likewise.
340 (conflict_marker_get_final_tok_kind): Likewise.
341 (c_parse_error): Likewise.
342 (check_missing_format_attribute): Likewise.
343 (invalid_array_size_error): Likewise.
344 (warn_for_multistatement_macros): Likewise.
345 (build_attr_access_from_parms): Likewise.
346 * c-cppbuiltin.cc (c_cpp_builtins): Likewise.
347 * c-format.cc: Likewise.
348 * c-gimplify.cc (c_gimplify_expr): Likewise.
349 * c-indentation.h: Likewise.
350 * c-objc.h (objc_prop_attr_kind_for_rid): Likewise.
351 * c-omp.cc (c_omp_predetermined_mapping): Likewise.
352 * c-opts.cc (c_common_post_options): Likewise.
353 (set_std_cxx23): Likewise.
354 * c-pragma.cc (handle_pragma_redefine_extname): Likewise.
355 * c-pretty-print.h: Likewise.
356
3572022-01-17 Martin Liska <mliska@suse.cz>
358
359 * c-ada-spec.c: Moved to...
360 * c-ada-spec.cc: ...here.
361 * c-attribs.c: Moved to...
362 * c-attribs.cc: ...here.
363 * c-common.c: Moved to...
364 * c-common.cc: ...here.
365 * c-cppbuiltin.c: Moved to...
366 * c-cppbuiltin.cc: ...here.
367 * c-dump.c: Moved to...
368 * c-dump.cc: ...here.
369 * c-format.c: Moved to...
370 * c-format.cc: ...here.
371 * c-gimplify.c: Moved to...
372 * c-gimplify.cc: ...here.
373 * c-indentation.c: Moved to...
374 * c-indentation.cc: ...here.
375 * c-lex.c: Moved to...
376 * c-lex.cc: ...here.
377 * c-omp.c: Moved to...
378 * c-omp.cc: ...here.
379 * c-opts.c: Moved to...
380 * c-opts.cc: ...here.
381 * c-pch.c: Moved to...
382 * c-pch.cc: ...here.
383 * c-ppoutput.c: Moved to...
384 * c-ppoutput.cc: ...here.
385 * c-pragma.c: Moved to...
386 * c-pragma.cc: ...here.
387 * c-pretty-print.c: Moved to...
388 * c-pretty-print.cc: ...here.
389 * c-semantics.c: Moved to...
390 * c-semantics.cc: ...here.
391 * c-ubsan.c: Moved to...
392 * c-ubsan.cc: ...here.
393 * c-warn.c: Moved to...
394 * c-warn.cc: ...here.
395 * cppspec.c: Moved to...
396 * cppspec.cc: ...here.
397 * stub-objc.c: Moved to...
398 * stub-objc.cc: ...here.
399
9248ee41
GA
4002022-01-15 Martin Sebor <msebor@redhat.com>
401
402 PR c/63272
403 * c.opt (-Wdangling-pointer): New option.
404
4052022-01-15 Martin Sebor <msebor@redhat.com>
406
407 PR tree-optimization/80532
408 * c.opt (-Wuse-after-free): New options.
409
617db51d
GA
4102022-01-14 David Malcolm <dmalcolm@redhat.com>
411
412 * c-attribs.c (c_common_attribute_table): Add "tainted_args".
413 (handle_tainted_args_attribute): New.
414
ad3f0d08
GA
4152022-01-13 Anthony Sharp <anthonysharp15@gmail.com>
416 Jason Merrill <jason@redhat.com>
417
418 PR c++/70417
419 * c.opt: Added -Wmissing-template-keyword.
420
4212022-01-13 Richard Biener <rguenther@suse.de>
422
423 PR c/104002
424 * c-common.c (c_common_mark_addressable_vec): Handle TARGET_EXPR.
425
02a8a01b
GA
4262022-01-12 Martin Liska <mliska@suse.cz>
427
428 PR target/103804
429 * c-attribs.c (handle_optimize_attribute): Do not call
430 cl_optimization_compare if we seen an error.
431
01a254e3
GA
4322022-01-11 Jakub Jelinek <jakub@redhat.com>
433
434 PR c/101537
435 PR c/103881
436 * c-warn.c (conversion_warning): Handle BIT_AND_EXPR, BIT_IOR_EXPR
437 and BIT_XOR_EXPR.
438
d9450aa0
GA
4392022-01-10 Richard Biener <rguenther@suse.de>
440
441 PR middle-end/101530
442 * c-common.c (c_build_shufflevector): Wrap the BIT_FIELD_REF
443 in a TARGET_EXPR to force a temporary.
444
11ce8d04
GA
4452022-01-06 Marek Polacek <polacek@redhat.com>
446
447 PR c++/103758
448 * c-pragma.c (handle_pragma_scalar_storage_order): Use %< %> in
449 diagnostic messages.
450 (handle_pragma_diagnostic): Likewise.
451
a4ae8c37
GA
4522022-01-03 Marek Polacek <polacek@redhat.com>
453
454 PR c++/103758
455 * c-format.c (check_tokens): Accept "decl-specifier*".
456
4572022-01-03 Jakub Jelinek <jakub@redhat.com>
458
459 PR c++/103600
460 * c-attribs.c (handle_non_overlapping_attribute): New function.
461 (c_common_attribute_table): Add "non overlapping" attribute.
462
84790a9d
GA
4632021-12-30 Jakub Jelinek <jakub@redhat.com>
464
465 PR c++/103012
466 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Perform
467 cpp_define_unused/cpp_undef calls with forced token locations
468 BUILTINS_LOCATION.
469
d1e111da
GA
4702021-12-27 Patrick Palka <ppalka@redhat.com>
471
472 PR c++/103700
473 * c-common.c (pointer_int_sum): When quiet, return
474 error_mark_node for an incomplete pointed-to type and don't
475 call size_in_bytes_loc.
476
2554e2da
GA
4772021-12-17 Jason Merrill <jason@redhat.com>
478
479 PR c++/103681
480 * c-opts.c (c_common_post_options): Update defaults.
481
774269aa
GA
4822021-12-16 Martin Liska <mliska@suse.cz>
483
484 PR target/103709
485 * c-pragma.c (handle_pragma_pop_options): Do not check
486 global options modification when an error is seen in parsing
487 of options (pragmas or attributes).
488
c8dcf64b
GA
4892021-12-12 Jonathan Wakely <jwakely@redhat.com>
490
491 * known-headers.cc: Define INCLUDE_MEMORY instead of
492 INCLUDE_UNIQUE_PTR.
493 * name-hint.h: Likewise.
494 (class name_hint): Use std::unique_ptr instead of gnu::unique_ptr.
495
4b4839e3
GA
4962021-12-09 Jakub Jelinek <jakub@redhat.com>
497
498 PR pch/71934
499 * c-pch.c (c_common_no_more_pch): Pass a temporary void * var
500 with NULL value instead of NULL to host_hooks.gt_pch_use_address.
501
03a9bd05
GA
5022021-12-03 Jakub Jelinek <jakub@redhat.com>
503
504 PR pch/71934
505 * c-pch.c (struct c_pch_validity): Remove pch_init member.
506 (pch_init): Don't initialize v.pch_init.
507 (c_common_valid_pch): Don't warn and punt if .text addresses change.
508
40fa651e
GA
5092021-12-01 Jason Merrill <jason@redhat.com>
510
511 PR c++/103310
512 * c.opt: Add -fconstexpr-fp-except.
513
87cd82c8
GA
5142021-11-29 Richard Biener <rguenther@suse.de>
515
516 * c-format.c (check_format_string): Remove spurious
517 gcc_unreachable.
518
5192021-11-29 Richard Biener <rguenther@suse.de>
520
521 * c-opts.c (c_common_post_options): Remove unreachable return.
522 * c-pragma.c (handle_pragma_target): Likewise.
523 (handle_pragma_optimize): Likewise.
524
091ccc06
GA
5252021-11-25 Jakub Jelinek <jakub@redhat.com>
526
527 PR c++/102611
528 * c-opts.c (c_common_post_options): Enable -Wcomma-subscript by
529 default for C++23 regardless of warn_deprecated.
530 * c-cppbuiltin.c (c_cpp_builtins): Predefine
531 __cpp_multidimensional_subscript=202110L for C++23.
532
e1d43592
GA
5332021-11-23 Martin Sebor <msebor@redhat.com>
534
535 PR middle-end/88232
536 * c.opt: Add -Winfinite-recursion.
537
9c077398
GA
5382021-11-19 Martin Sebor <msebor@redhat.com>
539
540 PR c++/33925
541 PR c/102867
542 * c-common.c (decl_with_nonnull_addr_p): Call maybe_nonzero_address
543 and improve handling tof defined symbols.
544
5452021-11-19 Martin Liska <mliska@suse.cz>
546
547 Revert:
548 2021-11-18 Martin Liska <mliska@suse.cz>
549
550 * c-gimplify.c (genericize_c_loop): Use option directly.
551
483092d3
GA
5522021-11-18 Matthias Kretz <m.kretz@gsi.de>
553
554 * c-common.c (c_common_reswords): Add __builtin_assoc_barrier.
555 * c-common.h (enum rid): Add RID_BUILTIN_ASSOC_BARRIER.
556
5572021-11-18 Martin Liska <mliska@suse.cz>
558
559 * c-gimplify.c (genericize_c_loop): Use option directly.
560
280d2838
GA
5612021-11-17 Martin Uecker <uecker@gcc.gnu.org>
562
563 PR c/91038
564 PR c/29970
565 * c-common.c (pointer_int_sum): Make sure pointer expressions
566 are evaluated first when the size expression depends on for
567 variably-modified types.
568
5692021-11-17 Marek Polacek <polacek@redhat.com>
570
571 PR preprocessor/103026
572 * c.opt (Wbidi-chars, Wbidi-chars=): New option.
573
6b1695f4
GA
5742021-11-16 Jason Merrill <jason@redhat.com>
575
576 * c-common.c (release_tree_vector): Only cache vecs smaller than
577 16 elements.
578
e2b57363
GA
5792021-11-15 Jason Merrill <jason@redhat.com>
580
581 * c.opt: Add -fimplicit-constexpr.
582 * c-cppbuiltin.c: Define __cpp_implicit_constexpr.
583 * c-opts.c (c_common_post_options): Disable below C++14.
584
5852021-11-15 Jakub Jelinek <jakub@redhat.com>
586
587 * c-omp.c (c_omp_split_clauses) <case OMP_CLAUSE_THREAD_LIMIT>:
588 Duplicate to both OMP_TARGET and OMP_TEAMS.
589
8d36a0d2
GA
5902021-11-10 Marek Polacek <polacek@redhat.com>
591
592 PR c++/101940
593 * c-pragma.c (handle_pragma_diagnostic): Handle #pragma GCC diagnostic
594 ignored_attributes.
595
c9b1334e
GA
5962021-11-09 David Malcolm <dmalcolm@redhat.com>
597
598 * c-pragma.c (GCC_BAD_AT): New macro.
599 (GCC_BAD2_AT): New macro.
600 (handle_pragma_pack): Use the location of the pertinent token when
601 issuing diagnostics about invalid constants/actions, and trailing
602 junk.
603 (handle_pragma_target): Likewise for non-string "GCC option".
604 (handle_pragma_message): Likewise for trailing junk.
605
18ae471f
GA
6062021-11-03 Joseph Myers <joseph@codesourcery.com>
607
608 PR c/103031
609 * c-common.c (convert_and_check): Add argument init_const. Call
610 convert_init if init_const.
611 * c-common.h (convert_and_check): Update prototype.
612 (convert_init): New prototype.
613
cf82e8d9
GA
6142021-11-01 David Malcolm <dmalcolm@redhat.com>
615
616 * c-lex.c (c_lex_with_flags): When complaining about non-printable
617 CPP_OTHER tokens, set the "escape on output" flag.
618
04a2cf3f
GA
6192021-10-27 Jakub Jelinek <jakub@redhat.com>
620
621 * c-omp.c (c_omp_check_loop_iv_r): Don't clear 3rd bit for
622 POINTER_PLUS_EXPR.
623 (c_omp_check_nonrect_loop_iv): Handle POINTER_PLUS_EXPR.
624 (c_omp_check_loop_iv): Set kind even if the iterator is non-integral.
625
6262021-10-27 Jakub Jelinek <jakub@redhat.com>
627
628 PR c++/102854
629 * c-common.h (c_omp_check_loop_iv_exprs): Add enum tree_code argument.
630 * c-omp.c (c_omp_check_loop_iv_r): For trees other than decls,
631 TREE_VEC, PLUS_EXPR, MINUS_EXPR, MULT_EXPR, POINTER_PLUS_EXPR or
632 conversions temporarily clear the 3rd bit from d->kind while walking
633 subtrees.
634 (c_omp_check_loop_iv_exprs): Add CODE argument. Or in 4 into data.kind
635 if possibly non-rectangular.
636
ae5c5406
GA
6372021-10-21 Jakub Jelinek <jakub@redhat.com>
638
639 PR middle-end/64888
640 * c-omp.c (c_omp_predefined_variable): Return true also for
641 ubsan_create_data created artificial variables.
642
5d5885c9
GA
6432021-10-14 Joseph Myers <joseph@codesourcery.com>
644
645 * c-format.c (printf_length_specs, scanf_length_specs)
646 (print_char_table, scan_char_table): Support DFP formats for C2X.
647 * c-format.h (TEX_D32, TEX_D64, TEX_D128): Remove.
648 (T2X_D32, T2X_D64, T2X_D128): New macros.
649
6502021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
651
652 * c-omp.c (c_omp_check_context_selector): Rename to
653 omp_check_context_selector and move to omp-general.c.
654 (c_omp_mark_declare_variant): Rename to omp_mark_declare_variant and
655 move to omp-general.c.
656
52055987
GA
6572021-10-12 Joseph Myers <joseph@codesourcery.com>
658
659 * c-format.c (print_char_table): Add %b and %B formats.
660 (scan_char_table): Add %b format.
661 * c-format.h (T2X_UI, T2X_UL, T2X_ULL, T2X_US, T2X_UC, T2X_ST)
662 (T2X_UPD, T2X_UIM): New macros.
663
6642021-10-12 Jakub Jelinek <jakub@redhat.com>
665
666 * c-omp.c (c_finish_omp_atomic): Use
667 clear_padding_type_may_have_padding_p.
668
ce6eec39
GA
6692021-10-08 Martin Liska <mliska@suse.cz>
670
671 * c-opts.c (c_common_post_options): Use new macro
672 OPTION_SET_P.
673
50e20ee6
GA
6742021-10-07 Martin Liska <mliska@suse.cz>
675
676 * c-common.c (parse_optimize_options): Make
677 save_opt_decoded_options a pointer type.
678
57c7ec62
GA
6792021-10-06 Jakub Jelinek <jakub@redhat.com>
680
681 PR tree-optimization/102571
682 * c-omp.c (c_finish_omp_atomic): Optimize the case where type has
683 padding, but the non-padding bits are contiguous set of bytes
684 by adjusting the memcmp call arguments instead of emitting
685 __builtin_clear_padding and then comparing all the type's bytes.
686
6872021-10-06 Jakub Jelinek <jakub@redhat.com>
688
689 PR c++/102612
690 * c-cppbuiltin.c (c_cpp_builtins): For -std=c++23 predefine
691 __cpp_constexpr to 202110L rather than 201907L.
692
da9c5f78
GA
6932021-10-04 Marek Polacek <polacek@redhat.com>
694
695 PR c++/97573
696 * c-common.h (do_warn_array_compare): Declare.
697 * c-warn.c (do_warn_array_compare): New.
698 * c.opt (Warray-compare): New option.
699
e3e07b89
GA
7002021-10-02 Iain Sandoe <iain@sandoe.co.uk>
701
702 * c-format.c: Remove a test of TARGET_FORMAT_TYPES with
703 NULL, this is not needed.
704
9d116bcc
GA
7052021-10-01 Martin Sebor <msebor@redhat.com>
706
707 PR c/102103
708 * c-common.c (decl_with_nonnull_addr_p): Handle members.
709 Check and perform warning suppression.
710 (c_common_truthvalue_conversion): Enhance warning suppression.
711
7122021-10-01 Martin Liska <mliska@suse.cz>
713
714 PR target/102552
715 * c-common.c (parse_optimize_options): decoded_options[0] is
716 used for program name, so merged_decoded_options should also
717 respect that.
718
7192021-10-01 Jakub Jelinek <jakub@redhat.com>
720 Richard Biener <rguenther@suse.de>
721
722 PR sanitizer/102515
723 * c-ubsan.c (ubsan_instrument_division): Check the right
724 flag_sanitize_recover bit, depending on which sanitization
725 is done. Sanitize INT_MIN / -1 under SANITIZE_SI_OVERFLOW
726 rather than SANITIZE_DIVIDE. If both SANITIZE_SI_OVERFLOW
727 and SANITIZE_DIVIDE is enabled, neither check is known
728 to be false and flag_sanitize_recover bits for those two
729 aren't the same, emit both __ubsan_handle_divrem_overflow
730 and __ubsan_handle_divrem_overflow_abort calls.
731
7322021-10-01 Martin Liska <mliska@suse.cz>
733
734 * c-common.c (parse_optimize_options): Combine optimize
735 options with what was provided on the command line.
736
7372021-10-01 Jakub Jelinek <jakub@redhat.com>
738
739 * c-omp.c (c_omp_split_clauses): Also copy
740 OMP_CLAUSE_ORDER_REPRODUCIBLE.
741
cf966403
GA
7422021-09-27 Martin Liska <mliska@suse.cz>
743
744 * c-opts.c (c_common_init_options_struct): Set also
745 x_flag_default_complex_method.
746
e4777439
GA
7472021-09-22 Jakub Jelinek <jakub@redhat.com>
748
749 * c-omp.c (c_omp_split_clauses): Copy over OMP_CLAUSE_ALLOCATE_ALIGN.
750
62498024
GA
7512021-09-20 Matthias Kretz <m.kretz@gsi.de>
752
753 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define or
754 undefine __RECIPROCAL_MATH__, __NO_SIGNED_ZEROS__,
755 __NO_TRAPPING_MATH__, __ASSOCIATIVE_MATH__, and
756 __ROUNDING_MATH__ according to the new optimization flags.
757
cf74e7b5
GA
7582021-09-18 Jakub Jelinek <jakub@redhat.com>
759
760 * c-omp.c (c_omp_split_clauses): Split order clause also to
761 distribute construct. Copy over OMP_CLAUSE_ORDER_UNCONSTRAINED.
762
0a4cb439
GA
7632021-09-17 Jakub Jelinek <jakub@redhat.com>
764
765 * c-omp.c (c_finish_omp_atomic): Avoid creating
766 TARGET_EXPR if test is true, use create_tmp_var_raw instead of
767 create_tmp_var and add a zero initializer to TARGET_EXPRs that
768 had NULL initializer. When omitting operands after v = x,
769 use type of v rather than type of x. Fix type of vtmp
770 TARGET_EXPR.
771
07985c47
GA
7722021-09-13 Jason Merrill <jason@redhat.com>
773
774 * c.opt: Add -Winterference-size.
775 * c-cppbuiltin.c (cpp_atomic_builtins): Add __GCC_DESTRUCTIVE_SIZE
776 and __GCC_CONSTRUCTIVE_SIZE.
777
a26206ec
GA
7782021-09-10 Jakub Jelinek <jakub@redhat.com>
779
780 * c-common.h (c_finish_omp_atomic): Add r and weak arguments.
781 * c-omp.c: Include gimple-fold.h.
782 (c_finish_omp_atomic): Add r and weak arguments. Add support for
783 OpenMP 5.1 atomics.
784
f84e2f0b
GA
7852021-09-09 qing zhao <qing.zhao@oracle.com>
786
787 * c-attribs.c (handle_uninitialized_attribute): New function.
788 (c_common_attribute_table): Add "uninitialized" attribute.
789
b6db7cd4
GA
7902021-09-08 liuhongt <hongtao.liu@intel.com>
791
792 * c-common.c (excess_precision_mode_join): Update below comments.
793 (c_ts18661_flt_eval_method): Set excess_precision_type to
794 EXCESS_PRECISION_TYPE_FLOAT16 when -fexcess-precision=16.
795 * c-cppbuiltin.c (cpp_atomic_builtins): Update below comments.
796 (c_cpp_flt_eval_method_iec_559): Set excess_precision_type to
797 EXCESS_PRECISION_TYPE_FLOAT16 when -fexcess-precision=16.
798
b2748138
GA
7992021-09-07 Marcel Vollweiler <marcel@codesourcery.com>
800
801 * c-omp.c (c_finish_omp_flush): Handle MEMMODEL_SEQ_CST.
802
7b739540
GA
8032021-09-03 Eric Botcazou <ebotcazou@adacore.com>
804
805 * c-ada-spec.c (dump_ads): Generate pragmas to disable style checks
806 and -gnatwu warning for the package specification.
807
e11c6046
GA
8082021-09-01 Iain Sandoe <iain@sandoe.co.uk>
809
810 * c-attribs.c (handle_unavailable_attribute): New.
811
1e2f030b
GA
8122021-08-30 Jason Merrill <jason@redhat.com>
813
814 * c.opt: Add -Wmissing-requires.
815
85d77ac4
GA
8162021-08-25 Lewis Hyatt <lhyatt@gmail.com>
817
818 PR other/93067
819 * c-opts.c (c_common_input_charset_cb): New function.
820 (c_common_post_options): Call new function
821 diagnostic_initialize_input_context().
822
7c9e1645
GA
8232021-08-20 Tobias Burnus <tobias@codesourcery.com>
824
825 * c-format.c (gcc_gfc_length_specs): Add 'll' and 'w'.
826 (gcc_gfc_char_table): Add T9L_LL and T9L_ULL to
827 "di" and "u", respecitively; fill with BADLEN to match
828 size of 'types'.
829 (get_init_dynamic_hwi): Split off from ...
830 (init_dynamic_diag_info): ... here. Call it.
831 (init_dynamic_gfc_info): Call it.
832
8332021-08-20 Jakub Jelinek <jakub@redhat.com>
834
835 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_ERROR.
836 * c-pragma.c (omp_pragmas): Add error directive.
837 * c-omp.c (omp_directives): Uncomment error directive entry.
838
6e529985
GA
8392021-08-18 Jakub Jelinek <jakub@redhat.com>
840
841 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_NOTHING.
842 * c-pragma.c (omp_pragmas): Add nothing directive.
843 * c-omp.c (omp_directives): Uncomment nothing directive entry.
844
2d14d64b
GA
8452021-08-17 Jakub Jelinek <jakub@redhat.com>
846
847 PR c++/101539
848 * c-common.h (enum rid): Add RID_IS_LAYOUT_COMPATIBLE.
849 * c-common.c (c_common_reswords): Add __is_layout_compatible.
850
8512021-08-17 Matt Jacobson <mhjacobson@me.com>
852
853 * c-opts.c (c_common_post_options): Default to
854 flag_objc_sjlj_exceptions = 1 only when flag_objc_abi < 2.
855
8562021-08-17 Jakub Jelinek <jakub@redhat.com>
857
858 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_SCOPE.
859 * c-pragma.c (omp_pragmas): Add scope construct.
860 * c-omp.c (omp_directives): Uncomment scope directive entry.
861
9d1d9fc8
GA
8622021-08-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
863
864 * c-cppbuiltin.c (c_cpp_builtins): Define
865 __LIBGCC_GCOV_TYPE_SIZE if flag_building_libgcc is true.
866
72be20e2
GA
8672021-08-12 Jakub Jelinek <jakub@redhat.com>
868
869 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_MASKED.
870 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FILTER.
871 * c-pragma.c (omp_pragmas_simd): Add masked construct.
872 * c-common.h (enum c_omp_clause_split): Add C_OMP_CLAUSE_SPLIT_MASKED
873 enumerator.
874 (c_finish_omp_masked): Declare.
875 * c-omp.c (c_finish_omp_masked): New function.
876 (c_omp_split_clauses): Handle combined masked constructs.
877
4d17ca1b
GA
8782021-07-30 Jakub Jelinek <jakub@redhat.com>
879
880 PR c++/101539
881 * c-common.h (enum rid): Add RID_IS_POINTER_INTERCONVERTIBLE_BASE_OF.
882 * c-common.c (c_common_reswords): Add
883 __is_pointer_interconvertible_base_of.
884
8852021-07-29 Richard Biener <rguenther@suse.de>
886
887 PR c/101512
888 * c-common.c (c_common_mark_addressable_vec): Look through
889 C_MAYBE_CONST_EXPR even if not at the toplevel.
890
af3f12e6
GA
8912021-07-27 Martin Sebor <msebor@redhat.com>
892
893 PR c/101585
894 * c-warn.c (warn_parm_ptrarray_mismatch): Use OEP_DECL_NAME.
895
ead235f6
GA
8962021-07-23 Jakub Jelinek <jakub@redhat.com>
897
898 * c-lex.c (c_common_has_attribute): Call canonicalize_attr_name also
899 on attr_id. Return 1 for omp::directive or omp::sequence in C++11
900 and later.
901
9022021-07-23 Jakub Jelinek <jakub@redhat.com>
903
904 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP__START_ and
905 PRAGMA_OMP__LAST_ enumerators.
906
419c6c68
GA
9072021-07-21 Thomas Schwinge <thomas@codesourcery.com>
908 Joseph Myers <joseph@codesourcery.com>
909 Cesar Philippidis <cesar@codesourcery.com>
910
911 * c-pragma.h (pragma_omp_clause): Add 'PRAGMA_OACC_CLAUSE_NOHOST'.
912
92d45509
GA
9132021-07-20 Martin Sebor <msebor@redhat.com>
914
915 * c-common.c (c_build_shufflevector): Adjust by-value argument to
916 by-const-reference.
917 * c-common.h (c_build_shufflevector): Same.
918
87277b6a
GA
9192021-07-16 Andrew Pinski <apinski@marvell.com>
920
921 PR c/101453
922 * c-common.c (parse_optimize_options): Use the correct
923 size for buffer.
924
d97d71a1
GA
9252021-07-15 Martin Sebor <msebor@redhat.com>
926
927 PR c/101289
928 PR c/97548
929 * c-warn.c (warn_parm_array_mismatch): Use OEP_DECL_NAME.
930
c4fee1c6
GA
9312021-07-14 Jason Merrill <jason@redhat.com>
932
933 * c-opts.c (c_common_post_options): Set -fdelete-dead-exceptions.
934
6fba0eea
GA
9352021-07-06 Martin Sebor <msebor@redhat.com>
936
937 * c-format.c (gcc_tdiag_char_table): Remove support for %G and %K.
938 (gcc_cdiag_char_table): Same.
939 (gcc_cxxdiag_char_table): Same.
940
7a60a6e8
GA
9412021-07-02 Jakub Jelinek <jakub@redhat.com>
942
943 * c-common.h (enum c_omp_directive_kind): New enum.
944 (struct c_omp_directive): New type.
945 (c_omp_categorize_directive): Declare.
946 * c-omp.c (omp_directives): New variable.
947 (c_omp_categorize_directive): New function.
948
bea7c16a
GA
9492021-07-01 Eric Botcazou <ebotcazou@adacore.com>
950
951 * c-ada-spec.c (packed_layout): New global variable.
952 (dump_ada_declaration): Set it upon seeing a packed record type.
953 Do not put the "aliased" keyword if it is set.
954 (dump_ada_structure): Add Pack aspect if it is set and clear it.
955
9562021-07-01 Eric Botcazou <ebotcazou@adacore.com>
957
958 * c-ada-spec.c (check_name): Rename into...
959 (check_type_name_conflict): ...this. Minor tweak.
960 (dump_ada_function_declaration): Adjust to above renaming.
961 (dump_ada_array_domains): Fix oversight.
962 (dump_ada_declaration): Call check_type_name_conflict for variables.
963
90708f87
GA
9642021-06-25 Martin Sebor <msebor@redhat.com>
965
966 * c-common.c (c_wrap_maybe_const): Remove TREE_NO_WARNING.
967 (c_common_truthvalue_conversion): Replace direct uses of
968 TREE_NO_WARNING with warning_suppressed_p, suppress_warning, and
969 copy_no_warning.
970 (check_function_arguments_recurse): Same.
971 * c-gimplify.c (c_gimplify_expr): Same.
972 * c-warn.c (overflow_warning): Same.
973 (warn_logical_operator): Same.
974 (warn_if_unused_value): Same.
975 (do_warn_unused_parameter): Same.
976
9aa8327e
GA
9772021-06-24 Jakub Jelinek <jakub@redhat.com>
978
979 * c-common.h (enum c_omp_region_type): Add C_ORT_TARGET and
980 C_ORT_OMP_TARGET.
981 * c-omp.c (c_omp_split_clauses): For OMP_CLAUSE_IN_REDUCTION on
982 combined target constructs also add map (always, tofrom:) clause.
983
ede6c356
GA
9842021-06-15 Robin Dapp <rdapp@linux.ibm.com>
985
986 * c-attribs.c (common_handle_aligned_attribute): Remove short
987 circuit and dead code.
988
8dc48181
GA
9892021-06-14 Jonathan Wakely <jwakely@redhat.com>
990
991 PR c++/101052
992 * known-headers.cc (get_stdlib_header_for_name): Add known
993 headers for EXIT_FAILURE, EXIT_SUCCESS, abort, atexit, calloc,
994 exit, and getenv.
995
8b8c3912
GA
9962021-06-12 Jason Merrill <jason@redhat.com>
997
998 * c-attribs.c (handle_unused_attribute): Handle FIELD_DECL.
999
f16f65f8
GA
10002021-06-11 Jakub Jelinek <jakub@redhat.com>
1001
1002 PR c++/100974
1003 * c-cppbuiltin.c (c_cpp_builtins): Predefine __cpp_if_consteval for
1004 -std=c++2b for P1938R3 consteval if support.
1005
4f625f47
GA
10062021-06-09 Jason Merrill <jason@redhat.com>
1007
1008 PR c++/100879
1009 * c-warn.c (warn_for_sign_compare): Remove C++ enum mismatch
1010 warning.
1011
438aac59
GA
10122021-06-07 Martin Liska <mliska@suse.cz>
1013
1014 * c-target.def: Split long lines and replace them
1015 with '\n\'.
1016
600f90cb
GA
10172021-06-04 Martin Sebor <msebor@redhat.com>
1018
1019 PR c/100783
1020 * c-attribs.c (positional_argument): Bail on erroneous types.
1021
10222021-06-04 Martin Sebor <msebor@redhat.com>
1023
1024 * c-warn.c (warn_parm_array_mismatch): Check TREE_PURPOSE to test
1025 for element presence.
1026
440c8a0a
GA
10272021-06-03 Eric Botcazou <ebotcazou@adacore.com>
1028
1029 * c-ada-spec.c (dump_ada_macros): Minor tweaks.
1030 (dump_ada_decl_name): Likewise.
1031 (dump_anonymous_type_name): Remove parent parameter and adjust.
1032 (dump_sloc): Minor tweak.
1033 (dump_ada_array_type): Remove type parameter and adjust.
1034 (dump_ada_enum_type): Remove parent parameter and adjust.
1035 (dump_ada_node): Adjust calls to above functions.
1036 (dumped_anonymous_types): New global variable.
1037 (dump_nested_types_1): Rename into...
1038 (dump_nested_types): ...this.
1039 (dump_nested_type): Remove parent and dumped_types parameters.
1040 <ARRAY_TYPE>: Replace dumped_types with dumped_anonymous_types.
1041 Adjust calls to dump_anonymous_type_name and dump_ada_array_type.
1042 (dump_ada_specs): Initialize and free dumped_anonymous_types.
1043
10442021-06-03 Eric Botcazou <ebotcazou@adacore.com>
1045
1046 * c-ada-spec.c (pp_ada_tree_identifier): Tidy up.
1047 (dump_ada_node) <POINTER_TYPE>: Deal specially with external subtypes.
1048
10492021-06-03 Eric Botcazou <ebotcazou@adacore.com>
1050
1051 * c-ada-spec.c (dump_ada_enum_type): Dump a prefix for constants.
1052 (htable_t): New typedef.
1053 (overloaded_names): Use it.
1054 (add_name): New function.
1055 (init_overloaded_names): Use add_name to populate the table and add
1056 special cases for sigaction and stat.
1057 (overloaded_name_p): Rename into...
1058 (overloading_index): ...this. Do not initialize overloaded_names table
1059 here. Return the index or zero.
1060 (dump_ada_declaration): Minor tweaks. Do not skip overloaded functions
1061 but add an overloading suffix instead.
1062 (dump_ada_specs): Initialize overloaded_names tables here.
1063
b75978d1
GA
10642021-06-01 Martin Liska <mliska@suse.cz>
1065
1066 PR other/100759
1067 * c-attribs.c (handle_optimize_attribute): Limit sanity check
1068 to a situation where we are not in processing of an optimize
1069 pragma.
1070 * c-pragma.c (handle_pragma_pop_options): Restore target
1071 options.
1072
ee682192
GA
10732021-05-31 Indu Bhagat <indu.bhagat@oracle.com>
1074
1075 PR testsuite/100749
1076 * c-pch.c (c_common_valid_pch): Use xstrdup for debug format set names.
1077
10782021-05-31 Richard Biener <rguenther@suse.de>
1079
1080 PR c++/88601
1081 * c-common.c: Include tree-vector-builder.h and
1082 vec-perm-indices.h.
1083 (c_common_reswords): Add __builtin_shufflevector.
1084 (c_build_shufflevector): New funtion.
1085 * c-common.h (enum rid): Add RID_BUILTIN_SHUFFLEVECTOR.
1086 (c_build_shufflevector): Declare.
1087
48166757
GA
10882021-05-28 Jakub Jelinek <jakub@redhat.com>
1089
1090 PR middle-end/99928
1091 * c-omp.c (c_omp_split_clauses): For reduction clause if combined with
1092 target add a map tofrom clause with OMP_CLAUSE_MAP_IMPLICIT.
1093
10942021-05-28 Tobias Burnus <tobias@codesourcery.com>
1095
1096 * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_AFFINITY.
1097
2bc6dace
GA
10982021-05-25 Martin Liska <mliska@suse.cz>
1099
1100 PR tree-optimization/92860
1101 PR target/99592
1102 * c-attribs.c (handle_optimize_attribute): Save target node
1103 before calling parse_optimize_options and save it in case
1104 it changes.
1105 * c-pragma.c (handle_pragma_target): Similarly for pragma.
1106 (handle_pragma_pop_options): Likewise here.
1107
11082021-05-25 Martin Liska <mliska@suse.cz>
1109
1110 * c-attribs.c (handle_no_sanitize_coverage_attribute): New.
1111
11122021-05-25 Jakub Jelinek <jakub@redhat.com>
1113
1114 PR middle-end/99928
1115 * c-omp.c (c_omp_split_clauses): Copy reduction to teams when teams is
1116 combined with simd and not with taskloop or for.
1117
2832d51b
GA
11182021-05-21 Jakub Jelinek <jakub@redhat.com>
1119
1120 PR middle-end/99928
1121 * c-omp.c (c_omp_split_clauses): Set OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT
1122 on firstprivate clause copy going to target construct, and for
1123 target simd set also OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET bit.
1124
ea34e2ed
GA
11252021-05-20 Jonathan Wakely <jwakely@redhat.com>
1126
1127 * c.opt (Wc++11-extensions, Wc++14-extensions)
1128 (Wc++17-extensions, Wc++20-extensions, Wc++23-extensions): New
1129 options.
1130
11312021-05-20 Indu Bhagat <indu.bhagat@oracle.com>
1132
1133 * c-lex.c (init_c_lex): Use dwarf_debuginfo_p.
1134
11352021-05-20 Indu Bhagat <indu.bhagat@oracle.com>
1136
1137 * c-opts.c (c_common_post_options): Adjust access to debug_type_names.
1138 * c-pch.c (struct c_pch_validity): Use type uint32_t.
1139 (pch_init): Renamed member.
1140 (c_common_valid_pch): Adjust access to debug_type_names.
1141
65f32e5d
GA
11422021-05-19 Martin Sebor <msebor@redhat.com>
1143
1144 PR c/100619
1145 * c-attribs.c (build_attr_access_from_parms): Handle arbitrarily many
1146 bounds.
1147
a8daf9a1
GA
11482021-05-18 Richard Biener <rguenther@suse.de>
1149
1150 PR c/100547
1151 * c-attribs.c (type_valid_for_vector_size): Reject too large nunits.
1152 Reword existing nunit diagnostic.
1153
a7ffc1ef
GA
11542021-05-17 Joern Rennecke <joern.rennecke@embecosm.com>
1155
1156 * c-common.c (braced_list_to_string): Return CTOR unchanged
1157 if host and target character sizes don't match.
1158
87a7d10c
GA
11592021-05-14 Martin Liska <mliska@suse.cz>
1160
1161 * c.opt: Add Warning keyword for 2 options.
1162
f9af11c7
GA
11632021-05-13 Martin Liska <mliska@suse.cz>
1164
1165 PR middle-end/100504
1166 * c-attribs.c (handle_target_clones_attribute): Expect a string
1167 argument to target_clone argument.
1168
037e3661
GA
11692021-05-11 Joseph Myers <joseph@codesourcery.com>
1170
1171 * c-lex.c (interpret_float): Handle digit separators for C2X.
1172
aa891c56
GA
11732021-05-10 Martin Liska <mliska@suse.cz>
1174
1175 * c-ada-spec.c (print_destructor): Use startswith
1176 function instead of strncmp.
1177 (dump_ada_declaration): Likewise.
1178 * c-common.c (disable_builtin_function): Likewise.
1179 (def_builtin_1): Likewise.
1180 * c-format.c (check_tokens): Likewise.
1181 (check_plain): Likewise.
1182 (convert_format_name_to_system_name): Likewise.
1183
e4ff4ffb
GA
11842021-04-28 Patrick McGehearty <patrick.mcgehearty@oracle.com>
1185
1186 * c-cppbuiltin.c (c_cpp_builtins): Add supporting macros for new
1187 complex divide
1188
c0fa3f2f
GA
11892021-04-26 Thomas Schwinge <thomas@codesourcery.com>
1190 Nathan Sidwell <nathan@codesourcery.com>
1191 Tom de Vries <vries@codesourcery.com>
1192 Julian Brown <julian@codesourcery.com>
1193 Kwok Cheung Yeung <kcy@codesourcery.com>
1194
1195 * c.opt (Wopenacc-parallelism): New.
1196
6e81e015
GA
11972021-04-19 Thomas Schwinge <thomas@codesourcery.com>
1198
1199 * c.opt (fopenacc-kernels=): Remove.
1200
019a9220
GA
12012021-04-08 Jakub Jelinek <jakub@redhat.com>
1202
1203 * c-warn.c (do_warn_double_promotion): Fix comment typo,
1204 occured -> occurred.
1205 (check_alignment_of_packed_member): Fix a comment typo,
1206 memeber -> member.
1207 (warn_parm_ptrarray_mismatch): Fix comment typos, os -> of
1208 and onless -> unless.
1209 (warn_parm_array_mismatch): Fix comment typos, declaratation
1210 -> declaration and woud -> would. Fix up comment indentation.
1211
12122021-04-08 Martin Sebor <msebor@redhat.com>
1213
1214 PR middle-end/99883
1215 * c.opt (Wmismatched-new-delete): Correct spelling.
1216
b1da9916
GA
12172021-04-05 Eric Botcazou <ebotcazou@adacore.com>
1218
1219 * c-ada-spec.c (is_simple_enum): Minor tweaks.
1220 (dump_ada_enum_type): Add TYPE and PARENT parameters. For non-simple
1221 enumeral types use again the type name for the enumeration constants.
1222 (dump_ada_node): Adjust call to dump_ada_enum_type.
1223 (dump_nested_type): Likewise.
1224
f1607029
GA
12252021-04-01 Jason Merrill <jason@redhat.com>
1226
1227 PR c++/98481
1228 * c-opts.c (c_common_post_options): Bump latest_abi_version.
1229
4493b1c1
GA
12302021-03-25 Jakub Jelinek <jakub@redhat.com>
1231
1232 PR c++/99565
1233 * c-warn.c (do_warn_duplicated_branches): Pass also
1234 OEP_ADDRESS_OF_SAME_FIELD to operand_equal_p.
1235
6af7b307
GA
12362021-03-20 Jakub Jelinek <jakub@redhat.com>
1237
1238 PR debug/99230
1239 * c-gimplify.c (c_genericize_control_stmt): Handle STATEMENT_LIST.
1240
ceae9533
GA
12412021-03-05 Eric Botcazou <ebotcazou@adacore.com>
1242
1243 * c-ada-spec.c (dump_ada_declaration) <TYPE_DECL>: Dump nested types
1244 after entering the separate class package, if any.
1245
67f10d28
GA
12462021-03-04 Richard Biener <rguenther@suse.de>
1247
1248 * c-pretty-print.c (c_pretty_printer::direct_abstract_declarator):
1249 Handle ERROR_MARK.
1250
12512021-03-04 Jakub Jelinek <jakub@redhat.com>
1252
1253 PR c/99325
1254 * c-ppoutput.c (print): Change src_line type from int to unsigned.
1255 (token_streamer::stream) Likewise.
1256 (maybe_print_line_1): Likewise. Don't strcmp src_file if src_loc is
1257 UNKNOWN_LOCATION.
1258
f3641ac7
GA
12592021-03-03 Jakub Jelinek <jakub@redhat.com>
1260
1261 PR c/99324
1262 * c-common.c (build_va_arg): Call c_common_mark_addressable_vec
1263 instead of mark_addressable. Fix a comment typo -
1264 neutrallly -> neutrally.
1265
2c83c3fb
GA
12662021-02-28 Jakub Jelinek <jakub@redhat.com>
1267
1268 PR c/99304
1269 * c-attribs.c (handle_malloc_attribute): Fix a typo in inform
1270 message - refernced -> referenced. Remove superfluous space before
1271 closing paren of function calls.
1272
daa68844
GA
12732021-02-25 Nathan Sidwell <nathan@acm.org>
1274
1275 PR c++/99166
1276 * c.opt (-flang-info-module-cmi): Renamed option.
1277
50352c6c
GA
12782021-02-19 Nathan Sidwell <nathan@acm.org>
1279
1280 * c.opt (flang-info-module-read, flang-info-module-read=): New.
1281
bf81237e
GA
12822021-02-18 H.J. Lu <hjl.tools@gmail.com>
1283
1284 PR target/99113
1285 * c-attribs.c (c_common_attribute_table): Add the "retain"
1286 attribute.
1287 (handle_retain_attribute): New function.
1288
0e804ce3
GA
12892021-02-16 Marek Polacek <polacek@redhat.com>
1290
1291 PR c++/99062
1292 * c-attribs.c (handle_assume_aligned_attribute): Check that the
1293 alignment argument is non-negative. Tweak a warning message.
1294
fab095da
GA
12952021-02-12 Martin Sebor <msebor@redhat.com>
1296
1297 PR c/99055
1298 * c-warn.c (warn_parm_array_mismatch): Free strings returned from
1299 print_generic_expr_to_str.
1300
4b37c3ea
GA
13012021-02-10 Richard Biener <rguenther@suse.de>
1302
1303 * c-common.c (parse_optimize_options): Free decoded_options.
1304
a19dd5e6
GA
13052021-02-04 emsr <3dw4rd@verizon.net>
1306
1307 * c-cppbuiltin.c (c_cpp_builtins): __cpp_size_t_suffix=202011L.
1308
9faaa807
GA
13092021-02-03 Ed Smith-Rowland <3dw4rd@verizon.net>
1310
1311 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_size_t_suffix.
1312 * c-lex.c (interpret_integer): Set node type for size literal.
1313
85d04a2e
GA
13142021-01-28 Jakub Jelinek <jakub@redhat.com>
1315
1316 * c.opt (-std=c++2a, -std=c++20, -std=gnu++2a, -std=gnu++20): Remove
1317 draft from description.
1318 (-std=c++2b): Fix a pasto, 2020 -> 2023.
1319
e62bb7f0
GA
13202021-01-26 Paul Fee <paul.f.fee@gmail.com>
1321
1322 * c-common.h (cxx_dialect): Add cxx23 as a dialect.
1323 * c.opt: Add options for -std=c++23, std=c++2b, -std=gnu++23
1324 and -std=gnu++2b
1325 * c-opts.c (set_std_cxx23): New.
1326 (c_common_handle_option): Set options when -std=c++23 is enabled.
1327 (c_common_post_options): Adjust comments.
1328 (set_std_cxx20): Likewise.
1329
161e4c08
GA
13302021-01-25 Martin Sebor <msebor@redhat.com>
1331
1332 PR c++/98646
1333 * c-common.c (check_nonnull_arg): Adjust warning text.
1334
4c9bcd5c
GA
13352021-01-17 Martin Sebor <msebor@redhat.com>
1336
1337 * c-pretty-print.c (c_pretty_printer::primary_expression): Don't
1338 assume SSA_NAME_IDENTIFIER evaluates to nonzero.
1339
59cf67d1
GA
13402021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
1341
1342 * c-pragma.h (pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_DETACH.
1343 Redefine PRAGMA_OACC_CLAUSE_DETACH.
1344
2f7f0d32
GA
13452021-01-15 Jakub Jelinek <jakub@redhat.com>
1346
1347 PR tree-optimization/98597
1348 * c-pretty-print.c: Include options.h.
1349 (c_fold_indirect_ref_for_warn): New function.
1350 (print_mem_ref): Use it. If it returns something that has compatible
1351 type and is TBAA compatible with zero offset, print it and return,
1352 otherwise print it using offsetof syntax or array ref syntax. Fix up
1353 printing if MEM_REFs first operand is ADDR_EXPR, or when the first
1354 argument has pointer to array type. Print pointers using the standard
1355 formatting.
1356
6851dda2
GA
13572021-01-12 Martin Sebor <msebor@redhat.com>
1358
1359 PR c/98597
1360 PR c/98592
1361 * c-pretty-print.c (print_mem_ref): Avoid assuming MEM_REF operand
1362 has pointer type. Remove redundant code. Avoid calling
1363 gimple_canonical_types_compatible_p.
1364
7d187e4f
GA
13652021-01-07 Martin Sebor <msebor@redhat.com>
1366
1367 PR middle-end/98578
1368 * c-pretty-print.c (print_mem_ref): Strip array from access type.
1369 Avoid assuming acces type's size is constant. Correct condition
1370 guarding the printing of a parenthesis.
1371
942ae5be
GA
13722021-01-06 Martin Sebor <msebor@redhat.com>
1373
1374 PR c++/95768
1375 * c-pretty-print.c (c_pretty_printer::primary_expression): For
1376 SSA_NAMEs print VLA names and GIMPLE defining statements.
1377 (print_mem_ref): New function.
1378 (c_pretty_printer::unary_expression): Call it.
1379
13802021-01-06 Richard Biener <rguenther@suse.de>
1381
1382 PR tree-optimization/95582
1383 * c-attribs.c (c_common_attribute_table): Add entry for
1384 signed_bool_precision.
1385 (handle_signed_bool_precision_attribute): New.
1386
8daa719b
GA
13872020-12-24 Iain Sandoe <iain@sandoe.co.uk>
1388
1389 * c.opt: Add -stdlib= option and enumerations for
1390 libstdc++ and libc++.
1391
eefe499f
GA
13922020-12-16 Martin Liska <mliska@suse.cz>
1393
1394 * c.opt: Remove usage of Report.
1395
d52945ce
GA
13962020-12-14 Martin Sebor <msebor@redhat.com>
1397
1398 PR middle-end/98166
1399 PR c++/57111
1400 PR middle-end/98160
1401 * c-attribs.c (maybe_add_noinline): New function.
1402 (handle_malloc_attribute): Call it. Use ATTR_FLAG_INTERNAL.
1403 Implicitly add attribute noinline to functions not declared inline
1404 and warn on those.
1405
ca2bd949
GA
14062020-12-09 Tobias Burnus <tobias@codesourcery.com>
1407
1408 * c-pragma.c (omp_pragmas): Add 'allocate'.
1409 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_ALLOCATE.
1410
f6e8e279
GA
14112020-12-08 Jakub Jelinek <jakub@redhat.com>
1412
1413 PR c++/98187
1414 * c-pragma.c (omp_pragmas): Remove "master".
1415 (omp_pragmas_simd): Add "master".
1416
bc8a7013
GA
14172020-12-07 Marek Polacek <polacek@redhat.com>
1418
1419 PR c++/98126
1420 * c-common.c (verify_tree_lim_r): New function.
1421 (verify_sequence_points): Use it. Use nullptr instead of 0.
1422
b8dd0ef7
GA
14232020-12-03 Martin Sebor <msebor@redhat.com>
1424
1425 PR c++/90629
1426 PR middle-end/94527
1427 * c-attribs.c (handle_dealloc_attribute): New function.
1428 (handle_malloc_attribute): Handle argument forms of attribute.
1429 * c.opt (-Wmismatched-dealloc): New option.
1430 (-Wmismatched-new-delete): New option.
1431
14322020-12-03 Jakub Jelinek <jakub@redhat.com>
1433
1434 PR libstdc++/93121
1435 * c-common.h (enum rid): Add RID_BUILTIN_BIT_CAST.
1436 * c-common.c (c_common_reswords): Add __builtin_bit_cast.
1437
e0f5e792
GA
14382020-12-01 JeanHeyd Meneide <phdofthehouse@gmail.com>
1439
1440 * c-cppbuiltin.c (c_cpp_builtins): Add predefined
1441 {__GNUC_EXECUTION_CHARSET_NAME} and
1442 _WIDE_EXECUTION_CHARSET_NAME} macros.
1443
14442020-12-01 Nathan Sidwell <nathan@acm.org>
1445
1446 * c-common.c (module, import, export): New internal tokens (with
1447 trailing space).
1448 * c-common.h (RID__MODULE, RID__IMPORT & RID__EXPORT): Enumerate
1449 them.
1450 (D_CXX_MODULES, D_CXX_MODULES_FLAGS): Enable them.
1451 * c-cppbuiltin.c (c_cpp_builtins): Feature macro.
1452
14532020-12-01 Nathan Sidwell <nathan@acm.org>
1454
1455 * c-opts.c (c_common_init_options): Ask for module dependencies.
1456 (c_common_handle_option): Handle -Mmodules -Mno-modules.
1457 * c-pch.c (c_common_valid_pch): ... does not play with C++
1458 modules.
1459 * c.opt (Mmodules, Mno-modules): New preprocessor dependency
1460 options.
1461 (fmodules-ts, fmodule-header, fmodule-implicit-inline)
1462 (fmodule-only, fmodule-mapper, fmodule-lazy)
1463 (fmodule-version-ignore, Winvalid-imported-macros)
1464 (flang-info-include-translate, flang-info-include-translate-not):
1465 New options
1466
5fbf0ecb
GA
14672020-11-28 Eric Botcazou <ebotcazou@adacore.com>
1468
1469 * c-ada-spec.c (dump_nested_type) <RECORD_TYPE>: Remove obsolete code.
1470 (dump_ada_structure): Also deal with convention, unchecked union and
1471 bit-field for nested types. In the latter case, print an Alignment
1472 aspect along with the Pack aspect.
1473
360258da
GA
14742020-11-25 Martin Sebor <msebor@redhat.com>
1475
1476 PR bootstrap/94982
1477 * c-attribs.c (handle_patchable_function_entry_attribute): Avoid
1478 -Wformat-diag.
1479
1e2c9a27
GA
14802020-11-24 Martin Sebor <msebor@redhat.com>
1481
1482 * c-warn.c (warn_parm_array_mismatch): Avoid invalid redeclarations.
1483
8e6198d0
GA
14842020-11-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1485
1486 * c-attribs.c (handle_special_var_sec_attribute): New.
1487 (handle_noinit_attribute): Remove.
1488 (attr_noinit_exclusions): Rename to...
1489 (attr_section_exclusions): ...this, and add "persistent" attribute
1490 exclusion.
1491 (c_common_attribute_table): Add "persistent" attribute.
1492
7a97e2fc
GA
14932020-11-21 Aaron Sawdey <acsawdey@linux.ibm.com>
1494
1495 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
1496 Treat opaque types like other types.
1497 (c_pretty_printer::direct_abstract_declarator): Opaque types are
1498 supported types.
1499
82e5048e
GA
15002020-11-20 Martin Sebor <msebor@redhat.com>
1501
1502 * c-warn.c (warn_parm_array_mismatch): Bail on invalid redeclarations
1503 with fewer arguments.
1504
15052020-11-20 Martin Sebor <msebor@redhat.com>
1506
1507 PR middle-end/97879
1508 * c-attribs.c (handle_access_attribute): Handle ATTR_FLAG_INTERNAL.
1509 Error out on invalid modes.
1510
15112020-11-20 Jakub Jelinek <jakub@redhat.com>
1512
1513 PR libstdc++/88101
1514 * c-common.c (check_builtin_function_arguments): Handle
1515 BUILT_IN_CLEAR_PADDING.
1516
25bb75f8
GA
15172020-11-18 Nathan Sidwell <nathan@acm.org>
1518
1519 * c-lex.c (c_lex_with_flags): CPP_HEADER_NAMEs can now be seen.
1520
4dabb037
GA
15212020-11-17 Nathan Sidwell <nathan@acm.org>
1522
1523 * c-common.h (enum c_tree_index): Reorder to place lazy fields
1524 after newly-added CTI_MODULE_HWM.
1525
15262020-11-17 Joseph Myers <joseph@codesourcery.com>
1527
1528 * c-cppbuiltin.c (builtin_define_float_constants): Define
1529 "*_IS_IEC_60559__" macros.
1530
15312020-11-17 Nathan Sidwell <nathan@acm.org>
1532
1533 * c-lex.c: #include "langhooks.h".
1534 (cb_undef): Maybe call preprocess_undef lang hook.
1535 * c-opts.c (c_common_post_options): Maybe call preprocess_options
1536 lang hook.
1537 (push_command_line_include): Maybe call preprocess_main_file lang
1538 hook.
1539 (cb_file_change): Likewise.
1540 * c-ppoutput.c: #include "langhooks.h.
1541 (scan_translation_unit): Maybe call preprocess_token lang hook.
1542 (class do_streamer): New, derive from token_streamer.
1543 (directives_only_cb): Data pointer is do_streamer, call
1544 preprocess_token lang hook.
1545 (scan_translation_unit_directives_only): Use do_streamer.
1546 (print_line_1): Move src_line recording to after string output.
1547 (cb_undef): Maybe call preprocess_undef lang hook.
1548
15492020-11-17 Nathan Sidwell <nathan@acm.org>
1550
1551 * c-ppoutput.c (scan_translation_unit): Use token_streamer, remove
1552 code duplicating that functionality.
1553
15542020-11-17 Jakub Jelinek <jakub@redhat.com>
1555
1556 PR c/90628
1557 * c-common.c (check_builtin_function_arguments)
1558 <case BUILT_IN_ADD_OVERFLOW>: Diagnose when last argument is pointer
1559 to _Atomic. For the TYPE_READONLY case, adjust message to be usable
1560 for more builtins and argument positions.
1561
29c5d9ce
GA
15622020-11-16 Iain Sandoe <iain@sandoe.co.uk>
1563
1564 PR objc/97854
1565 * stub-objc.c: Include c-common.h to declare enum rid.
1566
77f67db2
GA
15672020-11-13 Jakub Jelinek <jakub@redhat.com>
1568
1569 PR c++/63287
1570 * c-cppbuiltin.c: Include configargs.h.
1571 (c_cpp_builtins): For C++11 and later if THREAD_MODEL_SPEC is not
1572 defined, predefine __STDCPP_THREADS__ to 1 unless thread_model is
1573 "single".
1574
15752020-11-13 Gergö Barany <gergo@codesourcery.com>
1576 Thomas Schwinge <thomas@codesourcery.com>
1577
1578 * c.opt (fopenacc-kernels): Add.
1579
15802020-11-13 Jason Merrill <jason@redhat.com>
1581
1582 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_using_enum.
1583
15842020-11-13 Piotr H. Dabrowski <phd@phd.re>
1585
1586 PR c++/91318
1587 * c-cppbuiltin.c: c_cpp_builtins_optimize_pragma(): use cpp_define_unused()
1588
15892020-11-13 Martin Liska <mliska@suse.cz>
1590
1591 * c-attribs.c (build_attr_access_from_parms): Format properly.
1592
15932020-11-13 Iain Sandoe <iain@sandoe.co.uk>
1594
1595 PR objc/90707
1596 * c-common.c (c_common_reswords): null_unspecified, nullable,
1597 nonnull, null_resettable: New keywords.
1598 * c-common.h (enum rid): RID_NULL_UNSPECIFIED, RID_NULLABLE,
1599 RID_NONNULL, RID_NULL_RESETTABLE: New.
1600 (OBJC_IS_PATTR_KEYWORD): Include nullability keywords in the
1601 ranges accepted for property attributes.
1602 * c-attribs.c (handle_objc_nullability_attribute): New.
1603 * c-objc.h (enum objc_property_attribute_group): Add
1604 OBJC_PROPATTR_GROUP_NULLABLE.
1605 (enum objc_property_attribute_kind):Add
1606 OBJC_PROPERTY_ATTR_NULL_UNSPECIFIED, OBJC_PROPERTY_ATTR_NULLABLE,
1607 OBJC_PROPERTY_ATTR_NONNULL, OBJC_PROPERTY_ATTR_NULL_RESETTABLE.
1608
16092020-11-13 Iain Sandoe <iain@sandoe.co.uk>
1610
1611 PR objc/77404
1612 * c-attribs.c (handle_objc_root_class_attribute): New
1613 * c-objc.h (objc_start_class_interface): Add a location
1614 value for the position of the class name.
1615 * c.opt: Add Wobjc-root-class.
1616 * stub-objc.c (objc_start_class_interface): Add a location
1617 value for the position of the class name.
1618
a5a11525
GA
16192020-11-12 Joseph Myers <joseph@codesourcery.com>
1620
1621 * c-lex.c (c_common_has_attribute): Take argument std_syntax.
1622 Allow scope for C. Handle standard attributes for C. Do not
1623 accept unscoped attributes if std_syntax and not handled as
1624 standard attributes.
1625 * c-common.h (c_common_has_attribute): Update prototype.
1626
16272020-11-12 Nicholas Guriev <guriev-ns@ya.ru>
1628
1629 PR pch/86674
1630 * c-pch.c (c_common_valid_pch): Use cpp_warning with CPP_W_INVALID_PCH
1631 reason to fix -Werror=invalid-pch and -Wno-error=invalid-pch switches.
1632
0f5f9ed5
GA
16332020-11-11 Patrick Palka <ppalka@redhat.com>
1634
1635 PR c++/88115
1636 * c-opts.c (c_common_post_options): Update latest_abi_version.
1637
bb622641
GA
16382020-11-10 Jakub Jelinek <jakub@redhat.com>
1639
1640 PR c/97748
1641 * c-common.h (warn_if_unused_value): Add quiet argument defaulted
1642 to false.
1643 * c-warn.c (warn_if_unused_value): Likewise. Pass it down
1644 recursively and just return true instead of warning if it is true.
1645 Handle COMPLEX_EXPR.
1646
16472020-11-10 Chung-Lin Tang <cltang@codesourcery.com>
1648
1649 * c-common.h (c_omp_adjust_map_clauses): New declaration.
1650 * c-omp.c (struct map_clause): Helper type for c_omp_adjust_map_clauses.
1651 (c_omp_adjust_map_clauses): New function.
1652
2bee28dd
GA
16532020-11-09 Marek Polacek <polacek@redhat.com>
1654
1655 DR 1914
1656 * c-common.c (attribute_fallthrough_p): Tweak the warning
1657 message.
1658
16592020-11-09 Patrick Palka <ppalka@redhat.com>
1660
1661 * c-pragma.c (handle_pragma_diagnostic): Split the
1662 unknown-option -Wpragmas diagnostic into a warning and a
1663 subsequent note containing a spelling suggestion. Avoid
1664 computing the suggestion if -Wpragmas warnings are being
1665 suppressed.
1666
16672020-11-09 Patrick Palka <ppalka@redhat.com>
1668
1669 PR testsuite/97117
1670 * c-indentation.c (get_visual_column): Remove location_t
1671 parameter. Move the column-tracking diagnostic code from here
1672 to ...
1673 (should_warn_for_misleading_indentation): ... here, before the
1674 early exit for when the loci are not all distinct. Don't pass a
1675 location_t argument to get_visual_column.
1676 (assert_get_visual_column_succeeds): Don't pass a location_t
1677 argument to get_visual_column.
1678 (assert_get_visual_column_fails): Likewise.
1679
fb95de7a
GA
16802020-11-08 Iain Sandoe <iain@sandoe.co.uk>
1681
1682 * c-common.h (OBJC_IS_PATTR_KEYWORD): Add class to the list
1683 of keywords accepted in @property attribute contexts.
1684 * c-objc.h (enum objc_property_attribute_group): Add
1685 OBJC_PROPATTR_GROUP_CLASS.
1686 (enum objc_property_attribute_kind): Add
1687 OBJC_PROPERTY_ATTR_CLASS.
1688
2da7ee05
GA
16892020-11-07 Iain Sandoe <iain@sandoe.co.uk>
1690
1691 * c-common.c (c_common_reswords): Add 'atomic' property
1692 attribute.
1693 * c-common.h (enum rid): Add RID_PROPATOMIC for atomic
1694 property attributes.
1695
16962020-11-07 Iain Sandoe <iain@sandoe.co.uk>
1697
1698 * c-attribs.c (handle_nsobject_attribute): New.
1699 * c.opt: Add WNSObject-attribute.
1700
44cab2d8
GA
17012020-11-06 Iain Sandoe <iain@sandoe.co.uk>
1702
1703 * c-objc.h (enum objc_property_attribute_group): New
1704 (enum objc_property_attribute_kind): New.
1705 (OBJC_PROPATTR_GROUP_MASK): New.
1706 (struct property_attribute_info): Small class encapsulating
1707 parser output from property attributes.
1708 (objc_prop_attr_kind_for_rid): New
1709 (objc_add_property_declaration): Simplify interface.
1710 * stub-objc.c (enum rid): Dummy type.
1711 (objc_add_property_declaration): Simplify interface.
1712 (objc_prop_attr_kind_for_rid): New.
1713
17142020-11-06 Nathan Sidwell <nathan@acm.org>
1715
1716 * c-ada-spec.c (collect_ada_nodes): Rename
1717 DECL_IS_BUILTIN->DECL_IS_UNDECLARED_BUILTIN.
1718 (collect_ada_node): Likewise.
1719 (dump_forward_type): Likewise.
1720 * c-common.c (set_underlying_type): Rename
1721 DECL_IS_BUILTIN->DECL_IS_UNDECLARED_BUILTIN.
1722 (user_facing_original_type, c_common_finalize_early_debug): Likewise.
1723
17242020-11-06 Jakub Jelinek <jakub@redhat.com>
1725
1726 * c-common.c (verify_sequence_points): Remove DEBUG_FUNCTION.
1727
0cfd9109
GA
17282020-11-05 Marek Polacek <polacek@redhat.com>
1729
1730 PR c++/97675
1731 * c.opt (Wexceptions): New option.
1732
17332020-11-05 Marek Polacek <polacek@redhat.com>
1734
1735 PR c++/25814
1736 * c.opt (Wvexing-parse): New option.
1737
35c125cb
GA
17382020-11-04 Jakub Jelinek <jakub@redhat.com>
1739
1740 PR c++/97670
1741 * c-omp.c (c_omp_split_clauses): Look through array reductions to find
1742 underlying decl to clear in the allocate_head bitmap.
1743
17442020-11-04 Iain Sandoe <iain@sandoe.co.uk>
1745
1746 * c-objc.h (objc_non_constant_expr_p): New.
1747 * stub-objc.c (objc_non_constant_expr_p): New.
1748
fd2325ea
GA
17492020-11-03 Nathan Sidwell <nathan@acm.org>
1750
1751 * c.opt (MQ,MT): Reword description to be make-agnostic.
1752
88ce3d5f
GA
17532020-11-02 Nathan Sidwell <nathan@acm.org>
1754
1755 * c-opts.c (c_common_post_options): Move var decl to its
1756 initialization point.
1757
17582020-11-01 Iain Sandoe <iain@sandoe.co.uk>
1759
1760 * c-lex.c (c_lex_with_flags): When combining '@' with a
1761 keyword for Objective-C, combine the location ranges too.
1762
17632020-10-30 Qing Zhao <qing.zhao@oracle.com>
1764 H.J.Lu <hjl.tools@gmail.com>
1765
1766 * c-attribs.c (c_common_attribute_table): Add new attribute
1767 zero_call_used_regs.
1768 (handle_zero_call_used_regs_attribute): New function.
1769
e93aae4a
GA
17702020-10-28 Marek Polacek <polacek@redhat.com>
1771
1772 PR c++/97573
1773 * c-opts.c (c_common_post_options): In C++20, turn on
1774 -Wdeprecated-enum-enum-conversion and
1775 -Wdeprecated-enum-float-conversion.
1776 * c.opt (Wdeprecated-enum-enum-conversion,
1777 Wdeprecated-enum-float-conversion): New options.
1778 (Wenum-conversion): Allow for C++ too.
1779
17802020-10-28 Jakub Jelinek <jakub@redhat.com>
1781
1782 * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALLOCATE.
1783 * c-omp.c: Include bitmap.h.
1784 (c_omp_split_clauses): Handle OMP_CLAUSE_ALLOCATE.
1785
f19e7c8d
GA
17862020-10-26 Ville Voutilainen <ville.voutilainen@gmail.com>
1787
1788 * c-common.c (__is_nothrow_assignable): New.
1789 (__is_nothrow_constructible): Likewise.
1790 * c-common.h (RID_IS_NOTHROW_ASSIGNABLE): New.
1791 (RID_IS_NOTHROW_CONSTRUCTIBLE): Likewise.
1792
efe71fcc
GA
17932020-10-23 Jan Hubicka <hubicka@ucw.cz>
1794
1795 * c-common.c (c_common_finalize_early_debug): Update for new thunk api.
1796
17972020-10-23 Marek Polacek <polacek@redhat.com>
1798
1799 PR c++/91741
1800 * c-common.c (verify_tree): Handle PAREN_SIZEOF_EXPR.
1801 (c_common_init_ts): Likewise.
1802 * c-common.def (PAREN_SIZEOF_EXPR): New tree code.
1803 * c-common.h (maybe_warn_sizeof_array_div): Declare.
1804 * c-warn.c (sizeof_pointer_memaccess_warning): Unwrap NOP_EXPRs.
1805 (maybe_warn_sizeof_array_div): New function.
1806 * c.opt (Wsizeof-array-div): New option.
1807
18082020-10-23 Martin Sebor <msebor@redhat.com>
1809
1810 PR c/97463
1811 * c-warn.c (warn_parm_ptrarray_mismatch): Move null test earlier.
1812
56ddd5e2
GA
18132020-10-22 Martin Liska <mliska@suse.cz>
1814
1815 PR c/94722
1816 * c-attribs.c (handle_no_stack_protect_function_attribute): New.
1817 (handle_stack_protect_attribute): Add error message for a
1818 no_stack_protector function.
1819
18202020-10-22 Martin Liska <mliska@suse.cz>
1821
1822 * c-cppbuiltin.c (c_cpp_builtins): Use the stack_protector enum.
1823
18242020-10-22 Jan Hubicka <hubicka@ucw.cz>
1825
1826 * c-gimplify.c: Include tree-nested.h
1827 (c_genericize): Update for new nested function info.
1828
b2698c21
GA
18292020-10-14 Martin Sebor <msebor@redhat.com>
1830
1831 PR c/97413
1832 * c-attribs.c (build_attr_access_from_parms): Wrap chain of VLA
1833 bounds in an extra list.
1834
7e9282ae
GA
18352020-10-05 Richard Biener <rguenther@suse.de>
1836 Jakub Jelinek <jakub@redhat.com>
1837
1838 PR c++/97197
1839 * c-pretty-print.c: Include langhooks.h.
1840 (c_pretty_printer::postfix_expression): Handle TARGET_MEM_REF as
1841 expression.
1842 (c_pretty_printer::expression): Handle TARGET_MEM_REF as
1843 unary_expression.
1844 (c_pretty_printer::unary_expression): Handle TARGET_MEM_REF.
1845
660bfe61
GA
18462020-09-30 Martin Sebor <msebor@redhat.com>
1847
1848 PR middle-end/97189
1849 * c-attribs.c (append_access_attr): Use the function declaration
1850 location for a warning about an attribute access argument.
1851
93bca37c
GA
18522020-09-29 Marek Polacek <polacek@redhat.com>
1853
1854 PR c++/94695
1855 * c.opt (Wrange-loop-construct): New option.
1856
82b77dee
GA
18572020-09-23 Martin Sebor <msebor@redhat.com>
1858
1859 PR c/97131
1860 * c-warn.c (warn_parm_ptrarray_mismatch): Handle more invalid input.
1861
18622020-09-23 Marek Polacek <polacek@redhat.com>
1863
1864 PR c/97125
1865 * c-gimplify.c (c_genericize): Only call do_warn_duplicated_branches_r
1866 after loops and other structured control constructs have been lowered.
1867
521d2711
GA
18682020-09-22 Jakub Jelinek <jakub@redhat.com>
1869
1870 * c.opt (Wbuiltin-declaration-mismatch): Fix typo in variable name:
1871 warn_builtin_declaraion_mismatch -> warn_builtin_declaration_mismatch.
1872
44135373
GA
18732020-09-21 Marek Polacek <polacek@redhat.com>
1874
1875 * c.opt (Wctad-maybe-unsupported): New option.
1876
2fe5b7d1
GA
18772020-09-19 Martin Sebor <msebor@redhat.com>
1878
1879 PR c/50584
1880 * c-common.h (warn_parm_array_mismatch): Declare new function.
1881 (has_attribute): Move declaration of an existing function.
1882 (build_attr_access_from_parms): Declare new function.
1883 * c-warn.c (parm_array_as_string): Define new function.
1884 (plus_one): Define new function.
1885 (warn_parm_ptrarray_mismatch): Define new function.
1886 (warn_parm_array_mismatch): Define new function.
1887 (vla_bound_parm_decl): New function.
1888 * c.opt (-Warray-parameter, -Wvla-parameter): New options.
1889 * c-pretty-print.c (pp_c_type_qualifier_list): Don't print array type
1890 qualifiers here...
1891 (c_pretty_printer::direct_abstract_declarator): ...but instead print
1892 them in brackets here. Also print [static]. Strip extraneous
1893 expressions from VLA bounds.
1894
18952020-09-19 Martin Sebor <msebor@redhat.com>
1896
1897 PR c/50584
1898 * c-attribs.c (c_common_attribute_table): Add "arg spec" attribute.
1899 (handle_argspec_attribute): New function.
1900 (get_argument, get_argument_type): New functions.
1901 (append_access_attrs): Add overload. Handle internal attribute
1902 representation in addition to external.
1903 (handle_access_attribute): Handle internal attribute representation
1904 in addition to external.
1905 (build_attr_access_from_parms): New function.
1906
19072020-09-19 Sandra Loosemore <sandra@codesourcery.com>
1908
1909 * c-gimplify.c (genericize_c_loop): Rewrite to match
1910 c_finish_loop in c-typeck.c.
1911
19122020-09-19 Sandra Loosemore <sandra@codesourcery.com>
1913
1914 * c-common.c (c_block_may_fallthrough): New, split from
1915 cxx_block_may_fallthrough in the cp front end.
1916 (c_common_init_ts): Move handling of loop and switch-related
1917 statements here from the cp front end.
1918 * c-common.def (FOR_STMT, WHILE_STMT, DO_STMT): Move here from
1919 cp front end.
1920 (BREAK_STMT, CONTINUE_STMT, SWITCH_STMT): Likewise.
1921 * c-common.h (c_block_may_fallthru): Declare.
1922 (bc_state_t): Move here from cp front end.
1923 (save_bc_state, restore_bc_state): Declare.
1924 (c_genericize_control_stmt): Declare.
1925 (WHILE_COND, WHILE_BODY): Likewise.
1926 (DO_COND, DO_BODY): Likewise.
1927 (FOR_INIT_STMT, FOR_COND, FOR_EXPR, FOR_BODY, FOR_SCOPE): Likewise.
1928 (SWITCH_STMT_COND, SWITCH_STMT_BODY): Likewise.
1929 (SWITCH_STMT_TYPE, SWITCH_STMT_SCOPE): Likewise.
1930 (SWITCH_STMT_ALL_CASES_P, SWITCH_STMT_NO_BREAK_P): Likewise.
1931 (LABEL_DECL_BREAK, LABEL_DECL_CONTINUE): Likewise.
1932 * c-dump.c (dump_stmt): Copy from cp front end.
1933 (c_dump_tree): Move code to handle structured loop and switch
1934 tree nodes here from cp front end.
1935 * c-gimplify.c: Adjust includes.
1936 (enum bc_t, bc_label, begin_bc_block, finish_bc_block): Move from
1937 cp front end.
1938 (save_bc_state, restore_bc_state): New functions using old code
1939 from cp front end.
1940 (get_bc_label, expr_loc_or_loc): Move from cp front end.
1941 (genericize_c_loop): Move from cp front end.
1942 (genericize_for_stmt, genericize_while_stmt): Likewise.
1943 (genericize_do_stmt, genericize_switch_stmt): Likewise.
1944 (genericize_continue_stmt, genericize_break_stmt): Likewise.
1945 (genericize_omp_for_stmt): Likewise.
1946 (c_genericize_control_stmt): New function using code split from
1947 cp front end.
1948 (c_genericize_control_r): New.
1949 (c_genericize): Call walk_tree with c_genericize_control_r.
1950 * c-pretty-print.c (c_pretty_printer::statement): Move code to handle
1951 structured loop and switch tree nodes here from cp front end.
1952
2aad20c0
GA
19532020-09-17 Patrick Palka <ppalka@redhat.com>
1954
1955 PR c/80076
1956 * c-indentation.c (should_warn_for_misleading_indentation): Move
1957 declarations of local variables closer to their first use.
1958 Handle virtual token locations by resolving them to their
1959 respective macro expansion points. If all three tokens are
1960 produced from the same macro expansion, then instead use their
1961 loci within the macro definition.
1962
ecde1b0a
GA
19632020-09-16 Martin Sebor <msebor@redhat.com>
1964
1965 PR c/78666
1966 PR c/96126
1967 * c-attribs.c (validate_attr_args): New function.
1968 (validate_attr_arg): Same.
1969 (handle_section_attribute): Call it. Introduce a local variable.
1970 (handle_alloc_size_attribute): Same.
1971 (handle_alloc_align_attribute): Same.
1972
50a71cd0
GA
19732020-09-14 Jakub Jelinek <jakub@redhat.com>
1974
1975 * c-attribs.c (handle_optimize_attribute): Adjust
1976 cl_optimization_save, cl_optimization_restore and
1977 build_optimization_node callers.
1978 * c-pragma.c (handle_pragma_optimize): Adjust
1979 build_optimization_node caller.
1980 (handle_pragma_push_options): Adjust
1981 build_optimization_node and build_target_option_node callers.
1982 (handle_pragma_pop_options, handle_pragma_reset_options):
1983 Adjust cl_optimization_restore callers.
1984
8f7ea26a
GA
19852020-08-28 Martin Sebor <msebor@redhat.com>
1986
1987 * c.opt (Wstringop-overread): New option.
1988
a6493809
GA
19892020-08-11 Jakub Jelinek <jakub@redhat.com>
1990
1991 PR c/96545
1992 * c-common.c (get_atomic_generic_size): Require that first argument's
1993 type points to a complete type and use tree_fits_uhwi_p instead of
1994 just INTEGER_CST TREE_CODE check for the TYPE_SIZE_UNIT.
1995
48cc2e46
GA
19962020-07-31 Martin Sebor <msebor@redhat.com>
1997
1998 PR c++/96003
1999 * c-common.c (check_function_arguments_recurse): Return early when
2000 no-warning bit is set.
2001
20022020-07-31 Richard Biener <rguenther@suse.de>
2003
2004 PR debug/96383
2005 * c-common.h (c_common_finalize_early_debug): Declare.
2006 * c-common.c: Include debug.h.
2007 (c_common_finalize_early_debug): finalize_early_debug langhook
2008 implementation generating debug for extern declarations.
2009
e71dab87
GA
20102020-07-27 Nathan Sidwell <nathan@acm.org>
2011
2012 * c-common.c (try_to_locate_new_include_insertion_point): Use
2013 strcmp, not pointer equality.
2014
ae2e0bc1
GA
20152020-07-25 Martin Sebor <msebor@redhat.com>
2016
2017 PR c++/96310
2018 * c-common.c (check_nonnull_arg): Print note only when warning was
2019 issued.
2020
3ea9abca
GA
20212020-07-22 Tobias Burnus <tobias@codesourcery.com>
2022
2023 * c-omp.c (c_finish_omp_critical): Check for no name but
2024 nonzero hint provided.
2025
0933f508
GA
20262020-07-20 Jason Merrill <jason@redhat.com>
2027
2028 * c-cppbuiltin.c (c_cpp_builtins): Update
2029 __cpp_nontype_template_args for C++20.
2030
20312020-07-20 Martin Sebor <msebor@redhat.com>
2032
2033 PR c/96249
2034 * c.opt: Remove stray text.
2035
8ca07a30
GA
20362020-07-14 Lewis Hyatt <lhyatt@gmail.com>
2037
2038 PR other/86904
2039 * c-indentation.c (should_warn_for_misleading_indentation): Get
2040 global tabstop from the new source.
2041 * c-opts.c (c_common_handle_option): Remove handling of -ftabstop, which
2042 is now a common option.
2043 * c.opt: Likewise.
2044
a82c4c4c 20452020-07-08 Eric Botcazou <ebotcazou@adacore.com>
50873cc5
GA
2046
2047 * c.opt (Wscalar-storage-order): Add explicit variable.
2048
f60ee68d
GA
20492020-07-07 Nathan Sidwell <nathan@acm.org>
2050
2051 * c-opts.c (c_common_post_options): Add 'injecting' arg to
2052 cpp_read_main_file.
2053 (c_finish_options): Add linemap_line_start calls for builtin and cmd
2054 maps. Force token position to line_table's highest line.
2055 * c-ppoutput.c (print_line_1): Refactor, print line zero.
2056 (cb_define): Always increment source line.
2057
4077d74c
GA
20582020-07-06 Martin Sebor <msebor@redhat.com>
2059
2060 PR c++/95984
2061 * c-common.c (check_function_nonnull): Avoid checking syntesized calls
2062 to stub lambda objects with null this pointer.
2063 (check_nonnull_arg): Handle C++ nullptr.
2064
b5f24739
GA
20652020-07-02 Jason Merrill <jason@redhat.com>
2066 Jakub Jelinek <jakub@redhat.com>
2067
2068 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_consteval.
2069
46fbb6c6
GA
20702020-06-30 Jakub Jelinek <jakub@redhat.com>
2071
2072 PR c++/95963
2073 * c-common.c (check_function_arguments_recurse): Don't crash on
2074 calls to internal functions.
2075
69273534
GA
20762020-06-28 Martin Sebor <msebor@redhat.com>
2077
2078 PR c++/86568
2079 * c-common.c (struct nonnull_arg_ctx): Add members.
2080 (check_function_nonnull): Use nonnull_arg_ctx as argument. Handle
2081 C++ member functions specially. Consider the this pointer implicitly
2082 nonnull.
2083 (check_nonnull_arg): Use location of argument when available.
2084 (check_function_arguments): Use nonnull_arg_ctx as argument.
2085
9a33c41f
GA
20862020-06-27 Jakub Jelinek <jakub@redhat.com>
2087
2088 PR middle-end/95903
2089 * c-common.c (pointer_int_sum): Use TYPE_OVERFLOW_UNDEFINED instead of
2090 !TYPE_UNSIGNED check to see if we can apply distributive law and handle
2091 smaller precision intop operands separately.
2092
c9c05f73
GA
20932020-06-26 Marek Polacek <polacek@redhat.com>
2094
2095 * c-opts.c (c_common_init_options): Default to gnu++17.
2096
aff95ee7
GA
20972020-06-17 Jonathan Wakely <jwakely@redhat.com>
2098
bd0a89dc 2099 PR c/95378
aff95ee7
GA
2100 * c-common.c (get_atomic_generic_size): Check cv-qualifiers in
2101 pointer arguments.
2102
56638b9b
GA
21032020-06-16 Jakub Jelinek <jakub@redhat.com>
2104
2105 * c-common.h (c_omp_check_loop_iv_exprs): Add an int argument.
2106 * c-omp.c (struct c_omp_check_loop_iv_data): Add maybe_nonrect and
2107 idx members.
2108 (c_omp_is_loop_iterator): New function.
2109 (c_omp_check_loop_iv_r): Use it. Add support for silent scanning
2110 if outer loop iterator is present. Perform duplicate checking through
2111 hash_set in the function rather than expecting caller to do that.
2112 Pass NULL instead of d->ppset to walk_tree_1.
2113 (c_omp_check_nonrect_loop_iv): New function.
2114 (c_omp_check_loop_iv): Use it. Fill in new members, allow
2115 non-rectangular loop forms, diagnose multiple associated loops with
2116 the same iterator. Pass NULL instead of &pset to walk_tree_1.
2117 (c_omp_check_loop_iv_exprs): Likewise.
2118
ec6ffbb9
GA
21192020-06-10 Martin Liska <mliska@suse.cz>
2120
2121 PR tree-optimization/92860
2122 * c-attribs.c (handle_optimize_attribute):
2123 Save global options and compare it after parsing of function
2124 attribute.
2125 * c-pragma.c (opt_stack::saved_global_options): New field.
2126 (handle_pragma_push_options): Save global_options.
2127 (handle_pragma_pop_options): Compare them after pop.
2128
b952c2cf
GA
21292020-06-09 Jakub Jelinek <jakub@redhat.com>
2130
2131 PR c/95580
2132 * c-pretty-print.c (c_pretty_printer::unary_expression): Handle the
2133 case when MEM_REF's first argument has type pointer to incomplete type.
2134
1a59f3db
GA
21352020-06-05 Jason Merrill <jason@redhat.com>
2136
2137 * c-pretty-print.c (pp_c_additive_expression): Handle negative
2138 operand to POINTER_PLUS_EXPR.
2139
3add3425
GA
21402020-06-04 Martin Sebor <msebor@redhat.com>
2141
2142 PR middle-end/10138
2143 PR middle-end/95136
2144 * c-attribs.c (append_access_attrs): Handle attr_access::none.
2145 (handle_access_attribute): Same.
2146
9a5b7438
GA
21472020-06-03 Mark Wielaard <mark@klomp.org>
2148
2149 * known-headers.cc (get_cp_stdlib_header_for_string_macro_name):
2150 New function.
2151 * known-headers.h (get_cp_stdlib_header_for_string_macro_name):
2152 New function declaration.
2153
21542020-06-03 Mark Wielaard <mark@klomp.org>
2155
2156 * known-headers.cc (get_string_macro_hint): New function.
2157 (get_stdlib_header_for_name): Use get_string_macro_hint.
2158 (get_c_stdlib_header_for_string_macro_name): New function.
2159 * known-headers.h (get_c_stdlib_header_for_string_macro_name):
2160 New function declaration.
2161
21622020-06-03 Tobias Burnus <tobias@codesourcery.com>
2163
2164 * c-common.h (c_omp_predetermined_mapping): Declare.
2165 * c-omp.c (c_omp_predetermined_mapping): New.
2166
af114c38
MW
21672020-05-22 Mark Wielaard <mark@klomp.org>
2168
2169 * known-headers.cc (get_stdlib_header_for_name): Add a new
2170 stdlib_hint array for stdbool and stdint.
2171
45c50b6a
MW
21722020-05-22 Mark Wielaard <mark@klomp.org>
2173
2174 * known-headers.cc (get_stdlib_header_for_name): Return
2175 "<stdbool.h>" for "bool", "true" or "false" when STDLIB_C and
2176 flag_isoc99.
2177
c22027a0
NS
21782020-05-20 Nathan Sidwell <nathan@acm.org>
2179
38a4db21
NS
2180 * c-common.c (try_to_locate_new_include_insertion_point): Revert change.
2181
c22027a0
NS
2182 * c-common.c (try_to_locate_new_include_insertion_point): Use
2183 strcmp to compare filenames.
2184 * c-lex.c (init_c_lex): Move declaration to initialization.
2185 * c-opts.c (handle_deferred_opts): Move cpp_get_deps call into
2186 deferred count loop.
2187
29f0e90d
JM
21882020-05-15 Jason Merrill <jason@redhat.com>
2189
2190 * c-opts.c (set_std_cxx20): Set flag_coroutines.
2191
b04445d4
JM
21922020-05-13 Jason Merrill <jason@redhat.com>
2193
2194 * c.opt (std=c++20): Make c++2a the alias.
2195 (std=gnu++20): Likewise.
2196 * c-common.h (cxx_dialect): Change cxx2a to cxx20.
2197 * c-opts.c: Adjust.
2198 * c-cppbuiltin.c: Adjust.
2199 * c-ubsan.c: Adjust.
2200 * c-warn.c: Adjust.
2201
11dd3be5
EB
22022020-05-12 Eric Botcazou <ebotcazou@adacore.com>
2203
2204 * c-ada-spec.c (dump_ads): Output pragma Warnings ("U"); on entry.
2205
b224c376
NS
22062020-05-08 Nathan Sidwell <nathan@acm.org>
2207
2208 Reimplement directives only processing.
2209 * c-ppoutput.c (token_streamer): Ne.
2210 (directives_only_cb): New. Swallow ...
2211 (print_lines_directives_only): ... this.
2212 (scan_translation_unit_directives_only): Reimplment using the
2213 published interface.
2214
f1d94677
MP
22152020-05-07 Marek Polacek <polacek@redhat.com>
2216
2217 * c-format.c (badwords): Add "nonstatic".
2218
9b95bb52
JJ
2219202-05-07 Jakub Jelinek <jakub@redhat.com>
2220
2221 PR c/94968
2222 * c-common.c (speculation_safe_value_resolve_params): Return false if
2223 error_operand_p (val2).
2224 (resolve_overloaded_builtin) <case BUILT_IN_SPECULATION_SAFE_VALUE_N>:
2225 Remove extraneous semicolon.
2226
530b4409 22272020-05-06 qing zhao <qing.zhao@oracle.com>
2228
2229 PR c/94230
2230 * c-indentation.c (get_visual_column): Add a hint to use the new
2231 -flarge-source-files option.
2232
b776bdca
SSF
22332020-05-05 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
2234
2235 * c-attribs.c (handle_vector_size_attribute): Add attribute
2236 nonnull for argument args in order to silence warning of
2237 uninitialized variable usage. Since this is local to the
2238 compilation unit and thus cannot be checked at call sides by the
2239 compiler, added an assert statement in order to verify this.
2240
6607bdd9
L
22412020-05-01 H.J. Lu <hongjiu.lu@intel.com>
2242
2243 PR target/93492
2244 * c-attribs.c (handle_patchable_function_entry_attribute): Limit
2245 value to USHRT_MAX (65535).
2246
691eeb65
JJ
22472020-04-29 Jakub Jelinek <jakub@redhat.com>
2248
2249 * c-format.c (PP_FORMAT_CHAR_TABLE): Add %{ and %}.
2250
26d76be7
JJ
22512020-04-27 Jakub Jelinek <jakub@redhat.com>
2252
2253 PR c/94755
2254 * c-common.c (resolve_overloaded_builtin): Return error_mark_node for
2255 fncode == BUILT_IN_NONE before initialization of first_param.
2256
7291b2ed
MP
22572020-04-23 Marek Polacek <polacek@redhat.com>
2258
2259 PR c++/94733
2260 * c-attribs.c (find_tm_attribute): Use get_attribute_name instead of
2261 TREE_PURPOSE.
2262
58a29af8
PP
22632020-04-14 Patrick Palka <ppalka@redhat.com>
2264
2265 PR c++/85278
2266 * c-pretty-print.c (pp_c_pointer) <case REFERENCE_TYPE>: Print a double
2267 ampersand if it's an rvalue reference type.
2268
09f04139
MS
22692020-04-13 Martin Sebor <msebor@redhat.com>
2270
2271 PR c/92326
2272 * c-pretty-print.c (c_pretty_printer::direct_abstract_declarator): Avoid
2273 printing array bound for flexible array members.
2274
ee26baf4
IS
22752020-04-13 Iain Sandoe <iain@sandoe.co.uk>
2276
2277 * c-cppbuiltin.c (c_cpp_builtins): Update coroutines builtin
2278 define, per n4861.
2279
75efe9cb
RB
22802020-04-02 Richard Biener <rguenther@suse.de>
2281
2282 PR c/94392
2283 * c-opts.c (c_common_post_options): Enable -ffinite-loops
2284 for -O2 and C++11 or newer.
2285
75defde9
PP
22862020-03-28 Patrick Palka <ppalka@redhat.com>
2287
2288 * c.opt: Add -fconcepts-diagnostics-depth.
2289
52f24a9e
MS
22902020-03-27 Martin Sebor <msebor@redhat.com>
2291
2292 PR c++/94346
2293 * c-attribs.c (handle_copy_attribute): Avoid passing expressions
2294 to decl_attributes. Make handling of different kinds of entities
2295 more robust.
2296
ccacf77b
MS
22972020-03-27 Martin Sebor <msebor@redhat.com>
2298
2299 PR c++/94098
2300 * c-attribs.c (handle_access_attribute): Avoid setting TYPE_ATTRIBUTES
2301 here.
2302
ca6c7225
JJ
23032020-03-23 Jakub Jelinek <jakub@redhat.com>
2304
2305 PR c++/91993
2306 * c-warn.c (warnings_for_convert_and_check): For expr and/or
2307 result being COMPOUND_EXPRs, skip to ultimate rhs.
2308
1aa22b19
RS
23092020-03-20 Richard Sandiford <richard.sandiford@arm.com>
2310
2311 PR middle-end/94072
2312 * c-common.c (c_common_type_for_mode): Before using a registered
2313 built-in type, check that the vectorness of the type matches
2314 the vectorness of the mode.
2315
700d4cb0
JJ
23162020-03-17 Jakub Jelinek <jakub@redhat.com>
2317
2318 * c-common.c (resolve_overloaded_builtin): Fix up duplicated word
2319 issue in a diagnostic message.
2320
b408e010
LH
23212020-03-15 Lewis Hyatt <lhyatt@gmail.com>
2322
2323 * c.opt: Avoid redundancy in the help text.
2324
e78e50d5
MP
23252020-03-02 Marek Polacek <polacek@redhat.com>
2326
2327 PR c++/93958 - add missing -std=gnu++20.
2328 * c.opt: Add -std=gnu++20.
2329
649e1741
MS
23302020-03-01 Martin Sebor <msebor@redhat.com>
2331
2332 PR c++/92721
2333 * c-attribs.c (append_access_attrs): Correctly handle attribute.
2334 (handle_access_attribute): Same.
2335
7b60f3ba
JJ
23362020-02-25 Jakub Jelinek <jakub@redhat.com>
2337
2338 PR c/93858
2339 * c-pragma.c (handle_pragma_diagnostic): Add missing ? after
2340 "did you mean" hint in diagnostics.
2341
fb260504
JM
23422020-02-15 Jason Merrill <jason@redhat.com>
2343
2344 * c.opt: Add -std=c++20.
2345
1d757b09
EB
23462020-02-14 Eric Botcazou <ebotcazou@adacore.com>
2347
2348 * c-ada-spec.c: Include bitmap.h.
2349 (dump_ada_double_name): Rename into...
2350 (dump_anonymous_type_name): ...this. Always use the TYPE_UID.
2351 (dump_ada_array_type): Adjust to above renaming. Robustify.
2352 (dump_nested_types_1): New function copied from... Add dumped_types
2353 parameter and pass it down to dump_nested_type.
2354 (dump_nested_types): ...this. Remove parent parameter. Just call
2355 dump_nested_types_1 on an automatic bitmap.
2356 (dump_nested_type): Add dumped_types parameter.
2357 <ARRAY_TYPE>: Do not dump it if already present in dumped_types.
2358 Adjust recursive calls and adjust to above renaming.
2359 (dump_ada_declaration): Adjust call to dump_nested_types.
2360 Tidy up and adjust to above renaming.
2361 (dump_ada_specs): Initialize and release bitmap obstack.
2362
0cc575e4
MS
23632020-02-10 Martin Sebor <msebor@redhat.com>
2364
2365 PR c/93640
2366 * c-attribs.c (handle_access_attribute): Correct off-by-one mistakes.
2367
a59aa302
JJ
23682020-02-10 Jakub Jelinek <jakub@redhat.com>
2369
2370 PR other/93641
2371 * c-format.c (check_plain): Fix up last argument of strncasecmp.
2372 Remove useless extra test.
2373
e464fc90
TB
23742020-02-03 Julian Brown <julian@codesourcery.com>
2375 Tobias Burnus <tobias@codesourcery.com>
2376
2377 * c-cppbuiltin.c (c_cpp_builtins): Update _OPENACC define to 201711.
2378
e3b6c052
JM
23792020-01-29 Jason Merrill <jason@redhat.com>
2380
2381 PR c++/89357
2382 * c-attribs.c (check_cxx_fundamental_alignment_constraints): Remove.
2383
6d00f052
JM
23842020-01-23 Jason Merrill <jason@redhat.com>
2385
2386 * c-warn.c (conversion_warning): Change -Wsign-conversion handling.
2387
8a990ffa
MS
23882020-01-23 Martin Sebor <msebor@redhat.com>
2389
2390 PR c/84919
2391 * c-common.c (check_function_arguments): Avoid overlap checking
2392 of sprintf functions.
2393
55b7df8b
JM
23942020-01-22 Jason Merrill <jason@redhat.com>
2395
2396 PR testsuite/93391 - PR 40752 test fails with unsigned plain char.
2397 PR c++/40752
2398 * c-warn.c (conversion_warning): Check operands only after checking
2399 the whole expression. Don't check second operand of + for sign.
2400
c77074d0
JM
24012020-01-21 Jason Merrill <jason@redhat.com>
2402 Manuel López-Ibáñez <manu@gcc.gnu.org>
2403
2404 PR c++/40752 - useless -Wconversion with short +=.
2405 * c.opt (-Warith-conversion): New.
2406 * c-warn.c (conversion_warning): Recurse for operands of
2407 operators. Only warn about the whole expression with
2408 -Warith-conversion.
2409
731dbfc3
JM
24102020-01-21 Jason Merrill <jason@redhat.com>
2411
2412 * c-common.c (unsafe_conversion_p): Don't warn, return UNSAFE_SIGN.
2413 * c-warn.c (conversion_warning): Warn about UNSAFE_SIGN.
2414
ad1a3914
NS
24152020-01-20 Nathan Sidwell <nathan@acm.org>
2416
2417 PR preprocessor/80005
2418 * c-cppbuiltins.c (c_cpp_builtins): Don't define __has_include{,_next}.
2419
49789fd0
IS
24202020-01-18 Iain Sandoe <iain@sandoe.co.uk>
2421
2422 * c-common.c (co_await, co_yield, co_return): New.
2423 * c-common.h (RID_CO_AWAIT, RID_CO_YIELD,
2424 RID_CO_RETURN): New enumeration values.
2425 (D_CXX_COROUTINES): Bit to identify coroutines are active.
2426 (D_CXX_COROUTINES_FLAGS): Guard for coroutine keywords.
2427 * c-cppbuiltin.c (__cpp_coroutines): New cpp define.
2428 * c.opt (fcoroutines): New command-line switch.
2429
4bc1899b
DM
24302020-01-10 David Malcolm <dmalcolm@redhat.com>
2431
2432 * c-format.c (local_event_ptr_node): New.
2433 (PP_FORMAT_CHAR_TABLE): Add entry for "%@".
2434 (init_dynamic_diag_info): Initialize local_event_ptr_node.
2435 * c-format.h (T_EVENT_PTR): New define.
2436
f25e33fa
MS
24372020-01-10 Martin Sebor <msebor@redhat.com>
2438
2439 PR c/93132
2440 * c-attribs.c (append_access_attrs): Validate against the translated
2441 access string rather than the human-readable representation.
2442
8d9254fc
JJ
24432020-01-01 Jakub Jelinek <jakub@redhat.com>
2444
2445 Update copyright years.
2446
39292e25
EB
24472019-12-20 Eric Botcazou <ebotcazou@adacore.com>
2448
2449 * c-ada-spec.h (decl_sloc): Delete.
2450 * c-ada-spec.c (decl_sloc): Make static.
2451
519d7496
JB
24522019-12-19 Julian Brown <julian@codesourcery.com>
2453
2454 * c-common.h (c_omp_map_clause_name): Add prototype.
2455 * c-omp.c (c_omp_map_clause_name): New function.
2456 * c-pragma.h (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ATTACH and
2457 PRAGMA_OACC_CLAUSE_DETACH.
2458
a6163563
JB
24592019-12-19 Julian Brown <julian@codesourcery.com>
2460 Maciej W. Rozycki <macro@codesourcery.com>
2461 Tobias Burnus <tobias@codesourcery.com>
2462 Thomas Schwinge <thomas@codesourcery.com>
2463
2464 * c-pragma.h (pragma_omp_clause): Add
2465 PRAGMA_OACC_CLAUSE_NO_CREATE.
2466
e8f1ade2
MS
24672019-12-17 Martin Sebor <msebor@redhat.com>
2468
2469 PR c++/61339
2470 * c.opt (-Wmismatched-tags, -Wredundant-tags): New options.
2471
368877a1
DM
24722019-12-11 David Malcolm <dmalcolm@redhat.com>
2473
2474 * c-pretty-print.c (c_pretty_printer::clone): New vfunc
2475 implementation.
2476 * c-pretty-print.h (c_pretty_printer::clone): New vfunc decl.
2477
d68f5d45
DM
24782019-12-09 David Malcolm <dmalcolm@redhat.com>
2479
2480 * c-format.c (range_label_for_format_type_mismatch::get_text):
2481 Replace label_text ctor called with true with label_text::take.
2482
d3e28653
DM
24832019-12-09 David Malcolm <dmalcolm@redhat.com>
2484
2485 * c-format.c (selftest::test_type_mismatch_range_labels): Remove
2486 initial newline from expected outputs.
2487 * c-opts.c (c_diagnostic_finalizer): Add pp_newline call before
2488 call to diagnostic_show_locus.
2489
abd6d8cc
JJ
24902019-12-06 Jakub Jelinek <jakub@redhat.com>
2491
2492 * c-cppbuiltin.c (c_cpp_builtins): Don't define __cpp_consteval for
2493 now.
2494
7906797e
MP
24952019-12-05 Marek Polacek <polacek@redhat.com>
2496 Jakub Jelinek <jakub@redhat.com>
2497
2498 PR c++/91353 - P1331R2: Allow trivial default init in constexpr contexts.
2499 * c-cppbuiltin.c (c_cpp_builtins): Adjust the value of __cpp_constexpr.
2500
5c04da88
MP
25012019-12-05 Marek Polacek <polacek@redhat.com>
2502
2503 PR c++/92271 - make __is_same alias for __is_same_as.
2504 * c-common.c: Add __is_same, an alias for __is_same_as.
2505
43aae289
MP
25062019-12-03 Marek Polacek <polacek@redhat.com>
2507
2508 PR c++/91363 - P0960R3: Parenthesized initialization of aggregates.
2509 * c-cppbuiltin.c (c_cpp_builtins): Predefine
2510 __cpp_aggregate_paren_init=201902 for -std=c++2a.
2511
d7ddfbcb
JH
25122019-11-30 Jan Hubicka <hubicka@ucw.cz>
2513
2514 * c-attribs.c (handle_symver_attribute): New function
2515 (c_common_attributes): Add symver.
2516
65ef05d0
RS
25172019-11-30 Richard Sandiford <richard.sandiford@arm.com>
2518
2519 * c-common.c (pointer_int_sum): Use verify_type_context to check
2520 whether the target allows pointer arithmetic for the types involved.
2521 (c_sizeof_or_alignof_type, c_alignof_expr): Use verify_type_context
2522 to check whether the target allows sizeof and alignof operations
2523 for the types involved.
2524
1a291106
JM
25252019-11-27 Jason Merrill <jason@redhat.com>
2526
2527 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_deduction_guides.
2528
05d6cb1a
JJ
25292019-11-26 Jakub Jelinek <jakub@redhat.com>
2530
2531 PR c++/61414
2532 * c-attribs.c (handle_mode_attribute): Add mode attribute to
2533 ENUMERAL_TYPEs.
2534
5b8d9367
JM
25352019-11-25 Joseph Myers <joseph@codesourcery.com>
2536
2537 PR c/91985
2538 * c-common.c (c_common_type_for_mode): Handle decimal
2539 floating-point types being NULL_TREE.
2540 * c-format.c (get_format_for_type_1): Handle specified types being
2541 NULL_TREE.
2542 * c-lex.c (interpret_float): Give an error for decimal
2543 floating-point constants when decimal floating-point not
2544 supported.
2545
1fbf51cb
JJ
25462019-11-23 Jakub Jelinek <jakub@redhat.com>
2547
2548 PR middle-end/83859
2549 * c-attribs.c (append_access_attrs): Avoid buffer overflow. Avoid
2550 memory leak. Use XNEWVEC macro. Use auto_diagnostic_group to
2551 group warning with inform together.
2552 (handle_access_attribute): Formatting fix.
2553
761df906
JJ
25542019-11-22 Jakub Jelinek <jakub@redhat.com>
2555
bdaf8be1
JJ
2556 PR c/90677
2557 * c-common.h (identifier_global_tag): Declare.
2558 * c-format.c (get_pointer_to_named_type): Renamed to ...
2559 (get_named_type): ... this. Use identifier_global_tag instead of
2560 identifier_global_value, handle the return value being a TYPE_P.
2561 (init_dynamic_diag_info): Adjust get_pointer_to_named_type callers
2562 to call get_named_type instead. Formatting fixes.
2563
c2ecce6d 2564 Implement P1902R1, Missing feature-test macros 2017-2019.
761df906
JJ
2565 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_init_captures
2566 and __cpp_generic_lambdas for -std=c++2a. Define
2567 __cpp_designated_initializers, __cpp_constexpr_in_decltype and
2568 __cpp_consteval for -std=c++2a. Remove a FIXME comment about
2569 __cpp_concepts for -std=c++2a.
2570
54aa6b58
MS
25712019-11-22 Martin Sebor <msebor@redhat.com>
2572
2573 PR middle-end/83859
2574 * c-attribs.c (handle_access_attribute): New function.
2575 (c_common_attribute_table): Add new attribute.
2576 (get_argument_type): New function.
2577 (append_access_attrs): New function.
2578 (get_nonnull_operand): Rename...
2579 (get_attribute_operand): ...to this.
2580 * c-common.c (get_nonnull_operand): Rename...
2581 (get_attribute_operand): ...to this.
2582
6c80b1b5
JM
25832019-11-21 Joseph Myers <joseph@codesourcery.com>
2584
2585 * c-attribs.c (handle_fallthrough_attribute): Use pedwarn instead
2586 of warning.
2587
192961ff
JM
25882019-11-19 Joseph Myers <joseph@codesourcery.com>
2589
2590 * c-common.c (attribute_fallthrough_p): In C, use pedwarn not
2591 warning for standard attributes mixed with fallthrough attributes.
2592
f8aea5e3
JM
25932019-11-15 Joseph Myers <joseph@codesourcery.com>
2594
2595 * c-attribs.c (handle_fallthrough_attribute): Remove static.
2596 * c-common.h (handle_fallthrough_attribute): Declare.
2597
2cc94aa8
JM
25982019-11-15 Joseph Myers <joseph@codesourcery.com>
2599
2600 * c-attribs.c (handle_deprecated_attribute): Remove static.
2601 * c-common.h (handle_deprecated_attribute): Declare.
2602
7c5890cc
JM
26032019-11-14 Joseph Myers <joseph@codesourcery.com>
2604
2605 * c-lex.c (lex_charconst): Make CPP_UTF8CHAR constants unsigned
2606 char for C.
2607
b2417b59
JJ
26082019-11-14 Jakub Jelinek <jakub@redhat.com>
2609
d0ec7c93
JJ
2610 * c-omp.c (c_omp_check_context_selector): Add nvidia to the list of
2611 valid vendors.
2612
b2417b59
JJ
2613 * c-omp.c (c_omp_check_context_selector): Handle name lists
2614 containing string literals. Don't diagnose atomic_default_mem_order
2615 with multiple props.
2616
00be2a5f
JM
26172019-11-13 Joseph Myers <joseph@codesourcery.com>
2618
2619 * c-cppbuiltin.c (builtin_define_float_constants): Also define
2620 NORM_MAX constants. Update call to get_max_float.
2621 (LAZY_HEX_FP_VALUES_CNT): Update value to include NORM_MAX
2622 constants.
2623
2dbad62d
EB
26242019-11-13 Eric Botcazou <ebotcazou@adacore.com>
2625
2626 * c-ada-spec.c (get_underlying_decl): Do not look through typedefs.
2627 (dump_forward_type): Do not generate a declaration for function types.
2628 (dump_nested_type) <ARRAY_TYPE>: Do not generate a nested declaration
2629 of the component type if it is declared in another file.
2630
6ed76044
ML
26312019-11-12 Martin Liska <mliska@suse.cz>
2632
2633 * c-opts.c (c_common_post_options):
2634 Use SET_OPTION_IF_UNSET.
2635
62aee289
MR
26362019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
2637 Frederik Harwath <frederik@codesourcery.com>
2638
2639 gcc/c-family/
2640 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_SERIAL enumeration
2641 constant.
2642 * c-pragma.c (oacc_pragmas): Add "serial" entry.
2643
f486280c
RS
26442019-11-08 Richard Sandiford <richard.sandiford@arm.com>
2645
2646 * c-common.h (gnu_vector_type_p): New function.
2647 * c-common.c (c_build_vec_perm_expr): Require __builtin_shuffle
2648 vectors to satisfy gnu_vector_type_p.
2649 (c_build_vec_convert): Likewise __builtin_convertvector.
2650 (convert_vector_to_array_for_subscript): Likewise when applying
2651 implicit vector to array conversion.
2652 (scalar_to_vector): Likewise when converting vector-scalar
2653 operations to vector-vector operations.
2654
017c6491
JM
26552019-11-08 Joseph Myers <joseph@codesourcery.com>
2656
2657 * c.opt (Wold-style-definition): Initialize to -1.
2658 * c-opts.c (c_common_post_options): Set warn_old_style_definition
2659 to flag_isoc2x if not set explicitly.
2660
c01bd174
JM
26612019-11-07 Joseph Myers <joseph@codesourcery.com>
2662
2663 * c-attribs.c (parse_tm_stmt_attr): Handle scoped attributes.
2664
0df65305
JM
26652019-11-05 Jason Merrill <jason@redhat.com>
2666
2667 * c-opts.c (c_common_post_options): -fconcepts-ts implies
2668 -fconcepts.
2669
e0c866dd
KK
26702019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
2671
2672 * c-opts.c (c_common_post_options): Update
2673 latest_abi_version.
2674
f968ef9b
JJ
26752019-11-02 Jakub Jelinek <jakub@redhat.com>
2676
d0c464d2
JJ
2677 * c-common.h (c_omp_get_context_selector): Remove.
2678 * c-omp.c (c_omp_get_context_selector): Moved to omp-general.c
2679 and renamed to omp_get_context_selector.
2680
917dd789
JJ
2681 * c-omp.c (c_omp_mark_declare_variant): Use
2682 omp_context_selector_set_compare.
2683
f968ef9b
JJ
2684 PR c++/88335 - Implement P1073R3: Immediate functions
2685 * c-common.h (enum rid): Add RID_CONSTEVAL.
2686 * c-common.c (c_common_reswords): Add consteval.
2687
5f6705b7
JJ
26882019-11-01 Martin Sebor <msebor@redhat.com>
2689
2690 PR middle-end/91679
2691 PR middle-end/91647
2692 PR middle-end/91463
2693 PR middle-end/92312
2694 * c-pretty-print.c (direct_abstract_declarator): Print
2695 bound in zero-length arrays.
2696 * c.opt (-Wzero-length-bounds): New option.
2697
43f1814c
NS
26982019-10-30 Nathan Sidwell <nathan@acm.org>
2699
2700 * c-cppbuiltin.c (c_cpp_builtins): Add 'L' suffix to feature
2701 macros.
2702
ad1539d5
MS
27032019-10-28 Martin Sebor <msebor@redhat.com>
2704
2705 PR c/66970
2706 * c-common.c (c_common_nodes_and_builtins): Call c_define_builtins
2707 even when only preprocessing.
2708 * c-common.h (names_builtin_p): Declare new function.
2709 * c-lex.c (init_c_lex): Set has_builtin.
2710 (c_common_has_builtin): Define a new function.
2711 * c-ppoutput.c (init_pp_output): Set has_builtin.
2712
135df52c
JJ
27132019-10-24 Jakub Jelinek <jakub@redhat.com>
2714
2715 * c-common.h (c_omp_context_selector_matches): Remove.
2716 * c-omp.c (c_omp_context_selector_matches): Remove.
2717 * c-attribs.c (c_common_attribute_table): Add
2718 "omp declare target {host,nohost,block}" attributes.
2719
8ad0c477
JM
27202019-10-17 JeanHeyd Meneide <phdofthehouse@gmail.com>
2721
2722 * c-lex.c (c_common_has_attribute): Update nodiscard value.
2723
56898e43
RS
27242019-10-14 Richard Sandiford <richard.sandiford@arm.com>
2725
2726 * c-common.h (user_facing_original_type_p): Declare.
2727 * c-common.c: Include c-spellcheck.h.
2728 (user_facing_original_type_p): New function.
2729
20de9568
JJ
27302019-10-12 Jakub Jelinek <jakub@redhat.com>
2731
2732 * c-common.h (c_omp_mark_declare_variant,
2733 c_omp_context_selector_matches): Declare.
2734 * c-omp.c: Include attribs.h, gimplify.h, cgraph.h, symbol-summary.h
2735 and hsa-common.h.
2736 (c_omp_get_context_selector): Support second argument NULL.
2737 (c_omp_mark_declare_variant, c_omp_context_selector_matches): New
2738 functions.
2739 * c-attribs.c (c_common_attribute_table): Remove "omp declare variant"
2740 attribute, add "omp declare variant base" and
2741 "omp declare variant variant" attributes.
2742
175a85b2
JM
27432019-10-11 Joseph Myers <joseph@codesourcery.com>
2744
2745 * c.opt (Wc11-c2x-compat): Add CPP(cpp_warn_c11_c2x_compat)
2746 CppReason(CPP_W_C11_C2X_COMPAT).
2747
fe2bc27c
JM
27482019-10-11 Joseph Myers <joseph@codesourcery.com>
2749
2750 * c-common.c (c_common_reswords): Do not use D_EXT for _Decimal32,
2751 _Decimal64 and _Decimal128.
2752
27dfdc0f
JM
27532019-10-10 Joseph Myers <joseph@codesourcery.com>
2754
2755 * c-cppbuiltin.c (c_cpp_builtins): Do not define macros for DFP
2756 types if DFP not supported.
2757
94e7f906
JJ
27582019-10-10 Jakub Jelinek <jakub@redhat.com>
2759
2760 * c-common.h (c_omp_check_context_selector,
2761 c_omp_get_context_selector): Declare.
2762 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): Fix spelling
2763 in diagnostic message.
2764 (c_omp_check_context_selector, c_omp_get_context_selector): New
2765 functions.
2766 * c-attribs.c (c_common_attribute_table): Add "omp declare variant"
2767 attribute.
2768 (handle_omp_declare_variant_attribute): New function.
2769
a7160771
MS
27702019-10-09 Martin Sebor <msebor@redhat.com>
2771
2772 PR tree-optimization/90879
2773 * c.opt (-Wstring-compare): New option.
2774
cb57504a
JM
27752019-10-08 Andrew Sutton <asutton@lock3software.com>
2776 Jason Merrill <jason@redhat.com>
2777
2778 Update the concepts implementation to conform to the C++20
2779 specification, improve compile times, and generally clean up
2780 the implementation.
2781
2782 * c-cppbuiltin.c (c_cpp_builtins): Use new feature test values for
2783 concepts when -std=c++2a. Bump __cpp_concepts to 201907.
2784 * c.opt: Add -Wconcepts-ts.
2785 * c-opts.c (c_common_post_options): Warn when -fconcepts is used
2786 with -std=c++2a. Disable warning for -fconcepts in C++20 mode.
2787 (set_std_cxx2a): Enable concepts by default.
2788
fbb2a6dc
JM
27892019-10-08 Joseph Myers <joseph@codesourcery.com>
2790
2791 * c-opts.c (c_common_post_options): Set
2792 -fno-fp-int-builtin-inexact for C2X.
2793
8e007055
JJ
27942019-10-05 Jakub Jelinek <jakub@redhat.com>
2795
2796 PR c++/91369 - Implement P0784R7: constexpr new
2797 * c-cppbuiltin.c (c_cpp_builtins): Predefine
2798 __cpp_constexpr_dynamic_alloc=201907 for -std=c++2a.
2799
843f104d
JM
28002019-10-04 Joseph Myers <joseph@codesourcery.com>
2801
2802 PR c/82752
2803 * c-format.c (C_STD_VER): Handle C2x.
2804 (C_STD_NAME): Likewise.
2805 (strftime_flag_specs): Add 'O' modifier with 'p' flag.
2806 (time_char_table): Use separate entry for 'B' and 'b', with 'O'
2807 modifier allowed and 'p' flag.
2808 * c-format.h (enum format_std_version): Add STD_C2X.
2809 (struct format_char_info): Mention 'p' in comment on flags2.
2810
e9c9a142
DM
28112019-10-01 David Malcolm <dmalcolm@redhat.com>
2812
2813 * c-opts.c (c_diagnostic_finalizer): Temporarily clear prefix when
2814 calling diagnostic_show_locus, rather than destroying it afterwards.
2815
7552c36a
JJ
28162019-10-01 Jakub Jelinek <jakub@redhat.com>
2817
2818 PR c++/91925
2819 * c-warn.c (check_alignment_of_packed_member): Ignore FIELD_DECLs
2820 with NULL DECL_FIELD_OFFSET.
2821
8209db25
RS
28222019-10-01 Richard Sandiford <richard.sandiford@arm.com>
2823
2824 * c-pretty-print.c (pp_c_specifier_qualifier_list): If a vector type
2825 has a type name, use it in preference to the __vector syntax.
2826
9343bf99
RS
28272019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2828
2829 * c-pretty-print.c (pp_c_parameter_type_list): Avoid printing
2830 two spaces between a comma and "...".
2831
59bc434a
JJ
28322019-09-27 Jakub Jelinek <jakub@redhat.com>
2833
2834 PR c++/88203
2835 * c-common.h (c_omp_predefined_variable): Declare.
2836 * c-omp.c (c_omp_predefined_variable): New function.
2837 (c_omp_predetermined_sharing): Return OMP_CLAUSE_DEFAULT_SHARED
2838 for predefined variables.
2839
c6447c20
RS
28402019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2841
2842 * c-common.h (build_function_call_vec): Take the original
2843 function decl as an optional final parameter.
2844 (check_builtin_function_arguments): Take the original function decl.
2845 * c-common.c (check_builtin_function_arguments): Likewise.
2846 Handle all built-in functions, not just BUILT_IN_NORMAL ones.
2847 Use targetm.check_builtin_call to check BUILT_IN_MD functions.
2848
c4438114
JM
28492019-09-15 Jason Merrill <jason@redhat.com>
2850
2851 * c-warn.c (warn_logical_operator): Strip location wrappers. Don't
2852 fold_for_warn in "|| mask" warning.
2853
68a57628
ML
28542019-09-10 Martin Liska <mliska@suse.cz>
2855
2856 * c.opt: Use newly added WarnRemoved.
2857
f48ef52e
ML
28582019-09-09 Martin Liska <mliska@suse.cz>
2859
2860 * c.opt: Update comment of removed
2861 options that are preserved only for backward
2862 compatibility.
2863
67f6e649
ML
28642019-09-06 Martin Liska <mliska@suse.cz>
2865
2866 PR c++/91125
2867 * c-common.c: Remove definition of flag_use_repository.
2868 * c-common.h: Likewise.
2869 * c-opts.c (c_common_handle_option):
2870 Do not handle OPT_frepo option.
2871 * c.opt: Mark the option with Deprecated.
2872
db9d2274
MP
28732019-09-04 Marek Polacek <polacek@redhat.com>
2874
2875 * c.opt (fdeduce-init-list): Ignored.
2876
68e2c199
PK
28772019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2878
2879 PR c/78736
2880 * c.opt (Wenum-conversion): New option.
2881
7a4418a5
JL
28822019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2883
2884 * c-attribs.c (handle_section_attribute): Call the
2885 handle_generic_attribute target hook after performing target
2886 independent processing.
2887 (handle_noinit_attribute): Likewise.
2888
5f76ab15
ILT
28892019-09-03 Ian Lance Taylor <iant@golang.org>
2890
2891 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Always expand
2892 when using -fgo-dump-spec.
2893
ae0d3f6a
ML
28942019-09-02 Martin Liska <mliska@suse.cz>
2895
2896 PR c++/91155
2897 * c-common.c (fname_as_string): Use cxx_printable_name for
2898 __PRETTY_FUNCTION__ same as was used before r265711.
2899
8a902edb
MP
29002019-08-28 Marek Polacek <polacek@redhat.com>
2901
2902 Implement P1152R4: Deprecating some uses of volatile.
2903 PR c++/91361
2904 * c-opts.c (c_common_post_options): Enable -Wvolatile by
2905 default for C++2a, unless -Wno-deprecated.
2906 * c.opt (Wvolatile): New warning.
2907
4742dbe7
MP
29082019-08-28 Marek Polacek <polacek@redhat.com>
2909
2910 PR c++/91360 - Implement C++20 P1143R2: constinit.
2911 * c-common.c (c_common_reswords): Add constinit and __constinit.
2912 (keyword_is_decl_specifier): Handle RID_CONSTINIT.
2913 * c-common.h (enum rid): Add RID_CONSTINIT, RID_FIRST_CXX20, and
2914 RID_LAST_CXX20.
2915 (D_CXX20): Define.
2916 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_constinit.
2917 * c-format.c (cxx_keywords): Add "constinit".
2918 * c.opt (Wc++2a-compat, Wc++20-compat): New options.
2919
6a074892
JJ
29202019-08-27 Jakub Jelinek <jakub@redhat.com>
2921
2922 PR c++/91415
2923 * c-common.c (verify_tree): For LSHIFT_EXPR, RSHIFT_EXPR,
2924 COMPONENT_REF and ARRAY_REF in cxx_dialect >= cxx17 mode handle it
2925 like COMPOUND_EXPR rather than normal expression.
2926
22f8849d
IS
29272019-08-23 Iain Sandoe <iain@sandoe.co.uk>
2928
2929 PR pch/61250
2930 * c-lex.c (c_lex_with_flags): Don't call
2931 c_common_no_more_pch () from here.
2932
df375b03
JJ
29332019-08-23 Jakub Jelinek <jakub@redhat.com>
2934
2935 PR middle-end/91283
2936 * c-common.c (c_ts18661_flt_eval_method): Use flag_excess_precision
2937 instead of flag_excess_precision_cmdline.
2938 * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): Likewise.
2939 * c-opts.c (c_common_post_options): Likewise.
2940
14b7950f
MS
29412019-08-22 Martin Sebor <msebor@redhat.com>
2942
2943 PR middle-end/91490
2944 * c-common.c (braced_list_to_string): Add argument and overload.
2945 Handle flexible length arrays and unions.
2946
8bb2ee59
EB
29472019-08-21 Eric Botcazou <ebotcazou@adacore.com>
2948
2949 * c-ada-spec.c (dump_ada_function_declaration): Be prepared for broken
2950 function declarations where arguments are missing. Rename variables.
2951
21c1e205
RB
29522019-08-15 Richard Biener <rguenther@suse.de>
2953
2954 * c-common.c (c_stddef_cpp_builtins): When the GIMPLE FE is
2955 enabled, define __SIZETYPE__.
2956
f0033821
CL
29572019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
2958
2959 * c-attribs.c (c_common_attribute_table): Add "noinit" entry. Add
2960 exclusion with "section" attribute.
2961 (attr_noinit_exclusions): New table.
2962 (handle_noinit_attribute): New function.
2963
4d732405
RS
29642019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2965
2966 PR middle-end/91421
2967 * c-common.c (resolve_overloaded_builtin): Use
2968 copy_decl_built_in_function.
2969
51ad8481
MS
29702019-08-13 Martin Sebor <msebor@redhat.com>
2971
2972 PR c/80619
2973 * c-format.c (printf_length_specs): Set FMT_LEN_w for "w".
2974 (asm_fprintf_length_spec): Same.
2975 * c-format.h (format_lengths): Add FMT_LEN_w.
2976
77eb117f
JJ
29772019-08-10 Jakub Jelinek <jakub@redhat.com>
2978
2979 * c-pragma.h (enum pragma_omp_clause): Add
2980 PRAGMA_OMP_CLAUSE_DEVICE_TYPE.
2981
398e3feb
JJ
29822019-08-07 Jakub Jelinek <jakub@redhat.com>
2983
2984 * c-pragma.h (enum pragma_omp_clause): Add
2985 PRAGMA_OMP_CLAUSE_USE_DEVICE_ADDR. Set PRAGMA_OACC_CLAUSE_USE_DEVICE
2986 equal to PRAGMA_OMP_CLAUSE_USE_DEVICE_PTR instead of being a separate
2987 enumeration value.
2988
ab574db6
MP
29892019-08-05 Marek Polacek <polacek@redhat.com>
2990
2991 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
2992 * c-opts.c (c_common_post_options): Enable -Wcomma-subscript by
2993 default for C++2a, unless -Wno-deprecated.
2994 * c.opt (Wcomma-subscript): New warning.
2995
554a530f
JJ
29962019-07-20 Jakub Jelinek <jakub@redhat.com>
2997
2998 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_LOOP.
2999 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_BIND.
3000 * c-pragma.c (omp_pragmas_simd): Add PRAGMA_OMP_LOOP entry.
3001 * c-common.h (enum c_omp_clause_split): Add C_OMP_CLAUSE_SPLIT_LOOP.
3002 * c-omp.c (c_omp_split_clauses): Add support for 4 new combined
3003 constructs with the loop construct.
3004
1a888209
JJ
30052019-07-13 Jakub Jelinek <jakub@redhat.com>
3006
3007 PR c/91149
3008 * c-omp.c (c_omp_split_clauses): Fix a pasto in
3009 OMP_CLAUSE_REDUCTION_TASK handling.
3010
1fdd6f04
JJ
30112019-07-12 Jakub Jelinek <jakub@redhat.com>
3012
3013 * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ORDER.
3014 * c-omp.c (c_omp_split_clauses): Handle splitting of OMP_CLAUSE_ORDER.
3015
99b1c316
MS
30162019-07-09 Martin Sebor <msebor@redhat.com>
3017
3018 PR c++/61339
1fdd6f04 3019 * c-opts.c (handle_deferred_opts): Change class-key of PODs to struct
99b1c316
MS
3020 and others to class.
3021 * c-pretty-print.h: Same.
3022
6c1dae73
MS
30232019-07-09 Martin Sebor <msebor@redhat.com>
3024
3025 PR c++/61339
3026 * c-format.c (check_argument_type): Change class-key from class to
3027 struct and vice versa to match convention and avoid -Wclass-is-pod
3028 and -Wstruct-no-pod.
3029 * c-pretty-print.h: Same.
3030
8ba6ea87
ML
30312019-07-03 Martin Liska <mliska@suse.cz>
3032
3033 * c-common.c (try_to_locate_new_include_insertion_point): Remove
3034 dead assignemts.
3035
83eb9522
JJ
30362019-07-03 Jakub Jelinek <jakub@redhat.com>
3037
3038 * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_REDUCTION_INSCAN
3039 clauses on OMP_FOR rather than OMP_PARALLEL when OMP_FOR is combined
3040 with OMP_PARALLEL.
3041
1c6ffbab
QZ
30422019-07-02 qing zhao <qing.zhao@oracle.com>
3043
3044 PR preprocessor/90581
3045 * c-opts.c (c_common_handle_option): Handle -fmax-include-depth.
3046 * c.opt: Add new option -fmax-include-depth.
3047
7ffc7de5
JM
30482019-06-26 Jason Merrill <jason@redhat.com>
3049
3050 PR c++/55442 - memory-hog with highly recursive constexpr.
3051 * c.opt (fconstexpr-loop-limit): New.
3052
361af3e4
JJ
30532019-06-25 Jakub Jelinek <jakub@redhat.com>
3054
3055 PR sanitizer/90954
3056 * c-omp.c (c_finish_omp_atomic): Allow tree_invariant_p in addition
3057 to SAVE_EXPR in first operand of a COMPOUND_EXPR.
3058
ab20d992
JJ
30592019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3060
3061 * c-common.c (c_common_nodes_and_builtins): Define
3062 alternate "__intN__" name for "__intN" types.
3063
f4af4019
JH
30642019-06-24 Jan Hubicka <jh@suse.cz>
3065
3066 * c-common.c (braced_lists_to_strings): Check that
3067 type is array or integer prior checking string flag.
3068
da9e9b57
MB
30692019-06-21 Matthew Beliveau <mbelivea@redhat.com>
3070
3071 PR c++/90875 - added -Wswitch-outside-range option
3072 * c.opt (Wswitch-outside-range): Added new option.
3073 * c-warn.c (c_do_switch_warnings): Use OPT_Wswitch-outside-range.
3074
3f3d6a6f
MP
30752019-06-21 Marek Polacek <polacek@redhat.com>
3076
3077 PR c++/90953 - ICE with -Wmissing-format-attribute.
3078 * c-common.c (check_function_arguments_recurse): Use
3079 get_attribute_name.
3080 (check_missing_format_attribute): Likewise.
3081
1bf32c11
MP
30822019-06-19 Marek Polacek <polacek@redhat.com>
3083
3084 PR c++/60364 - noreturn after first decl not diagnosed.
3085 * c-attribs.c (handle_noreturn_attribute): No longer static.
3086 * c-common.h (handle_noreturn_attribute, attr_noreturn_exclusions):
3087 Declare.
3088 * c-format.c (check_function_format): Use get_attribute_name.
3089
a04c0734
MS
30902019-06-19 Martin Sebor <msebor@redhat.com>
3091
3092 PR translation/90156
3093 * c-format.c (function_format_info::format_type): Adjust type.
3094 (function_format_info::is_raw): New member.
3095 (decode_format_type): Adjust signature. Handle "raw" diag attributes.
3096 (decode_format_attr): Adjust call to decode_format_type.
3097 Avoid a redundant call to convert_format_name_to_system_name.
3098 Avoid abbreviating the word "arguments" in a diagnostic.
3099 (format_warning_substr): New function.
3100 (avoid_dollar_number): Quote dollar sign in a diagnostic.
3101 (finish_dollar_format_checking): Same.
3102 (check_format_info): Same.
3103 (struct baltoks_t): New.
3104 (c_opers, c_keywords, cxx_keywords, badwords, contrs): New arrays.
3105 (maybe_diag_unbalanced_tokens, check_tokens, check_plain): New
3106 functions.
3107 (check_format_info_main): Call check_plain. Use baltoks_t. Call
3108 maybe_diag_unbalanced_tokens.
3109 (handle_format_attribute): Spell out the word "arguments" in
3110 a diagnostic.
3111
d3786ebb
MB
31122019-06-11 Matthew Beliveau <mbelivea@redhat.com>
3113
3114 PR c++/90449 - add -Winaccessible-base option.
3115 * c.opt (Winaccessible-base): New option.
3116
bf38f7e9
JJ
31172019-06-10 Jakub Jelinek <jakub@redhat.com>
3118
3119 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_SCAN.
3120 * c-pragma.c (omp_pragmas_simd): Add #pragma omp scan.
3121 * c-omp.c (c_omp_split_clauses): Diagnose inscan reductions on
3122 combined/composite constructs where it is not allowed. Copy over
3123 OMP_CLAUSE_REDUCTION_INSCAN.
3124
0ecf545c
MS
31252019-06-05 Martin Sebor <msebor@redhat.com>
3126
3127 * c-attribs.c (handle_mode_attribute): Adjust quoting and hyphenation.
3128 (handle_alias_ifunc_attribute): Same.
3129 (handle_copy_attribute): Same.
3130 (handle_weakref_attribute): Same.
3131 (handle_nonnull_attribute): Same.
3132 * c-warn.c (warn_for_sign_compare): Same.
3133 (warn_for_restrict): Same.
3134 * c.opt: Same.
3135
36b34127
MS
31362019-06-05 Martin Sebor <msebor@redhat.com>
3137
3138 * c-pragma.c (handle_pragma_weak): Adjust quoting in a diagnostic.
3139 * c.opt (-Wformat-diag): Remove a spurious period.
3140
357a352f
JJ
31412019-05-29 Jakub Jelinek <jakub@redhat.com>
3142
3143 PR c/90628
3144 * c-common.c (check_builtin_function_arguments)
3145 <case BUILTIN_*_OVERFLOW>: Diagnose pointer to const qualified integer
3146 as last argument.
3147
2b8235ea
EB
31482019-05-23 Eric Botcazou <ebotcazou@adacore.com>
3149
3150 * c-ada-spec.c (compare_node): Compare the DECL_UIDs as a last resort.
3151
6d86ddc4
ML
31522019-05-22 Martin Liska <mliska@suse.cz>
3153
3154 PR lto/90500
3155 * c-attribs.c (handle_copy_attribute): Do not copy
3156 target_clones attribute.
3157
419ba5b9
EB
31582019-05-21 Eric Botcazou <ebotcazou@adacore.com>
3159
3160 * c-ada-spec.h (enum cpp_operation): Add IS_ASSIGNMENT_OPERATOR.
3161 * c-ada-spec.c (print_assignment_operator): New function.
3162 (dump_ada_declaration) <FUNCTION_DECL>: Call it do dump explicit copy
3163 assignment operators declared as methods and filter out the others.
3164
e03436e7
TS
31652019-05-17 Thomas Schwinge <thomas@codesourcery.com>
3166
3167 PR c/89433
3168 * c-attribs.c (c_common_attribute_table): Set min_len to -1 for
3169 "omp declare target".
3170
a9c697b8
MS
31712019-05-16 Martin Sebor <msebor@redhat.com>
3172
ab20d992
JJ
3173 * c-attribs.c (handle_no_sanitize_attribute): Quote identifiers,
3174 keywords, operators, and types in diagnostics.
3175 (handle_scalar_storage_order_attribute): Same.
3176 (handle_mode_attribute): Same.
3177 (handle_visibility_attribute): Same.
3178 (handle_assume_aligned_attribute): Same.
3179 (handle_no_split_stack_attribute): Same.
3180 * c-common.c (shorten_compare): Same.
3181 (c_common_truthvalue_conversion): Same.
3182 (cb_get_source_date_epoch): Same.
3183 * c-lex.c (cb_def_pragma): Quote keywords, operators, and types
3184 in diagnostics.
3185 (interpret_float): Same.
3186 * c-omp.c (c_finish_omp_for): Same.
3187 * c-opts.c (c_common_post_options): Same.
3188 * c-pch.c (c_common_pch_pragma): Same.
3189 * c-pragma.c (pop_alignment): Same.
3190 (handle_pragma_pack): Same.
3191 (apply_pragma_weak): Same.
3192 (handle_pragma_weak): Same.
3193 (handle_pragma_scalar_storage_order): Same.
3194 (handle_pragma_redefine_extname): Same.
3195 (add_to_renaming_pragma_list): Same.
3196 (maybe_apply_renaming_pragma): Same.
3197 (push_visibility): Same.
3198 (handle_pragma_visibility): Same.
3199 (handle_pragma_optimize): Same.
3200 (handle_pragma_message): Same.
3201 * c-warn.c (warn_for_omitted_condop): Same.
3202 (lvalue_error): Same.
a9c697b8 3203
6b943512
RB
32042019-05-15 Richard Biener <rguenther@suse.de>
3205
3206 PR c/90474
3207 * c-common.c (c_common_mark_addressable_vec): Also mark
3208 a COMPOUND_LITERAL_EXPR_DECL addressable similar to
3209 c_mark_addressable.
ab20d992 3210
b744fc85
NS
32112019-05-06 Nathan Sidwell <nathan@acm.org>
3212
3213 * c-opts.c (handle_defered_opts): Rename struct deps to struc mkdeps.
3214
598f50d7
NS
32152019-04-30 Nathan Sidwell <nathan@acm.org>
3216
3217 * c-common.c (c_common_init_ts): Use MARK_TS_EXP. Mark SIZEOF_EXPR.
3218
5bcc5a3b
ML
32192019-04-30 Martin Liska <mliska@suse.cz>
3220
3221 * c-pragma.c (handle_pragma_diagnostic): Provide hints
3222 for unknown options.
3223
e78a87f7
RS
32242019-04-26 Richard Sandiford <richard.sandiford@arm.com>
3225
3226 * c-warn.c (strict_aliasing_warning): Apply COMPLETE_TYPE_P to
3227 the pointer target rather than the pointer itself.
3228
c280b7ee
JJ
32292019-04-19 Jakub Jelinek <jakub@redhat.com>
3230
3231 PR c/89888
3232 * c-common.h (c_add_case_label): Remove orig_type and outside_range_p
3233 arguments.
3234 (c_do_switch_warnings): Remove outside_range_p argument.
3235 * c-common.c (check_case_bounds): Removed.
3236 (c_add_case_label): Remove orig_type and outside_range_p arguments.
3237 Don't call check_case_bounds. Fold low_value as well as high_value.
3238 * c-warn.c (c_do_switch_warnings): Remove outside_range_p argument.
3239 Check for case labels outside of range of original type here and
3240 adjust them.
3241
8e8225e6
JJ
32422019-04-12 Jakub Jelinek <jakub@redhat.com>
3243
63b8a166
JJ
3244 PR translation/90041
3245 * c.opt (-fhandle-exceptions): Use %< and %> around option names
3246 in the Warn diagnostics.
3247
8e8225e6
JJ
3248 PR c/89946
3249 * c-attribs.c (handle_patchable_function_entry_attribute): Add
3250 function comment. Warn if arguments of the attribute are not positive
3251 integer constants.
3252
53a3f614
EB
32532019-04-09 Eric Botcazou <ebotcazou@adacore.com>
3254
3255 * c-ada-spec.c (print_destructor): Deal with deleting destructors.
3256 (dump_ada_declaration) <FUNCTION_DECL>: Likewise.
3257
22be5873
EB
32582019-04-07 Eric Botcazou <ebotcazou@adacore.com>
3259
3260 * c-ada-spec.c (is_float128): New predicate extracted from...
3261 (dump_ada_node) <COMPLEX_TYPE>: Use it to recognize __cfloat128.
3262 <REAL_TYPE>: ...here. Call it.
3263
34facf20
DM
32642019-04-05 David Malcolm <dmalcolm@redhat.com>
3265
3266 PR c/89985
3267 * c-warn.c (check_address_or_pointer_of_packed_member): Add
3268 auto_diagnostic_group. Guard inform calls by result of
3269 warning_at call.
3270
05564120
MP
32712019-04-05 Marek Polacek <polacek@redhat.com>
3272
ab20d992 3273 PR c++/89973 - -Waddress-of-packed-member ICE with invalid conversion.
05564120
MP
3274 * c-warn.c (check_address_or_pointer_of_packed_member): Check the type
3275 of RHS.
3276
7a506c3c
JM
32772019-04-03 Jason Merrill <jason@redhat.com>
3278
3279 PR c++/86586 - -fcompare-debug=-Wsign-compare.
3280 * c-warn.c (warn_for_sign_compare): Call fold_for_warn.
3281
ddeae8c8
MS
32822019-04-01 Martin Sebor <msebor@redhat.com>
3283
3284 PR c/89685
3285 * c-attribs.c (handle_copy_attribute): Handle references and
3286 non-constant expressions.
3287
a15ffa22
JJ
32882019-03-22 Jakub Jelinek <jakub@redhat.com>
3289
3290 PR c++/87481
3291 * c.opt (-fconstexpr-ops-limit=): New option.
3292
36a3a7a3
JJ
32932019-03-21 Jakub Jelinek <jakub@redhat.com>
3294
3295 * c-common.c (per_file_includes_t): Use false as Lazy in hash_set
3296 template param.
3297
bec1da64
MS
32982019-03-19 Martin Sebor <msebor@redhat.com>
3299
3300 PR tree-optimization/89688
3301 * c-common.c (braced_list_to_string): Make static.
3302 (braced_lists_to_strings): Define new function.
3303 * c-common.h (braced_list_to_string): Remove.
3304 (braced_lists_to_strings): Declare.
3305
1fe61adf
ML
33062019-03-12 Martin Liska <mliska@suse.cz>
3307
3308 * c-opts.c (c_common_handle_option): Wrap option with %< and %>.
3309
93964ebd
ML
33102019-03-11 Martin Liska <mliska@suse.cz>
3311
3312 * c-opts.c (c_common_post_options): Wrap apostrophes
3313 in gcc internal format with %'.
3314
a3f9f006
ML
33152019-03-11 Martin Liska <mliska@suse.cz>
3316
3317 * c-attribs.c (handle_nocf_check_attribute): Wrap an option name
3318 in a string format message and fix GNU coding style.
3319 * c-common.c (vector_types_convertible_p): Likewise.
3320 (c_build_vec_perm_expr): Likewise.
3321 * c-indentation.c (get_visual_column): Likewise.
3322 * c-opts.c (c_common_handle_option): Likewise.
3323 (c_common_post_options): Likewise.
3324 (sanitize_cpp_opts): Likewise.
3325 * c-pch.c (c_common_pch_pragma): Likewise.
3326 * c-pragma.c (handle_pragma_pack): Likewise.
3327
1db01ff9
JJ
33282019-03-08 Jakub Jelinek <jakub@redhat.com>
3329
3330 PR tree-optimization/89550
3331 * c-common.c (c_common_truthvalue_conversion): Only set
3332 TREE_NO_WARNING if warning_at returned true.
3333 * c-warn.c (overflow_warning, warn_logical_operator): Likewise.
3334
ba790e6f
JJ
33352019-02-25 Sandra Loosemore <sandra@codesourcery.com>
3336 Martin Sebor <msebor@gmail.com>
3337
3338 * c.opt (Wmissing-attributes): Clean up doc string.
3339
7da73ba7
JJ
33402019-02-25 Jakub Jelinek <jakub@redhat.com>
3341
3342 PR c/89495
3343 * c-format.c (maybe_read_dollar_number): Compute nargnum in
3344 HOST_WIDE_INT type to avoid overflows and change overflow_flag
3345 checking.
3346
921bb9d1
RB
33472019-02-22 Richard Biener <rguenther@suse.de>
3348
3349 * c-pch.c (no_checksum): Remove.
3350 (pch_init): Remove assertion that executable_checksum is not
3351 all zero.
3352 (c_common_valid_pch): Likewise.
3353
e2ebb05c
MS
33542019-02-18 Martin Sebor <msebor@redhat.com>
3355
3356 PR middle-end/89294
3357 * c-common.c (invalid_array_size_error): Handle cst_size_not_constant.
3358
3fe53000
DM
33592019-02-16 David Malcolm <dmalcolm@redhat.com>
3360
3361 PR c++/88680
3362 * c-common.c (shorten_compare): Call fold_for_warn on op0 when
3363 implementing -Wtype-limits.
3364
28a8cef1
MS
33652019-02-11 Martin Sebor <msebor@redhat.com>
3366
3367 PR c++/87996
3368 * c-common.c (invalid_array_size_error): New function.
3369 (valid_array_size_p): Call it. Handle size as well as type.
3370 * c-common.h (valid_constant_size_p): New function.
3371 (enum cst_size_error): New type.
3372
ec2be203
DM
33732019-01-31 David Malcolm <dmalcolm@redhat.com>
3374
3375 PR c/89122
3376 * known-headers.cc (get_stdlib_header_for_name): Add
3377 {FLT|DBL|LDBL}_{MAX|MIN} to "hints" array.
3378
8936f047
JJ
33792019-01-31 Jakub Jelinek <jakub@redhat.com>
3380
3381 PR libstdc++/88170
3382 * c-pretty-print.c (pp_c_enumeration_constant): Print always as
3383 a C cast in pp_c_flag_gnu_v3 mode.
3384
6a335b96
JJ
33852019-01-29 Jakub Jelinek <jakub@redhat.com>
3386
3387 PR c/86125
3388 * c-common.c (c_common_nodes_and_builtins): Build type variants for
3389 builtin_structptr_types types even for C.
3390
2a06eba5
BE
33912019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
3392
3393 * c-warn.c (check_address_or_pointer_of_packed_member): Handle the case
3394 when rhs is of array type correctly. Fix handling of nested structures.
3395 Fix handling of indirect_ref together with nop_expr and/or addr_expr.
3396 (check_and_warn_address_or_pointer_of_packed_member): Fix handling of
3397 type casts within nested compound expressions.
3398
18a23298
JJ
33992019-01-22 Jakub Jelinek <jakub@redhat.com>
3400
3401 PR middle-end/88968
3402 * c-omp.c (c_finish_omp_atomic): For bitfield atomics, update type
3403 variable after using BIT_FIELD_REF.
3404
420183d9
L
34052019-01-18 H.J. Lu <hongjiu.lu@intel.com>
3406
3407 PR c/51628
3408 PR c/88664
3409 * c-common.h (warn_for_address_or_pointer_of_packed_member):
3410 Remove the boolean argument.
3411 * c-warn.c (check_address_of_packed_member): Renamed to ...
3412 (check_address_or_pointer_of_packed_member): This. Also
3413 warn pointer conversion.
3414 (check_and_warn_address_of_packed_member): Renamed to ...
3415 (check_and_warn_address_or_pointer_of_packed_member): This.
3416 Also warn pointer conversion.
3417 (warn_for_address_or_pointer_of_packed_member): Remove the
3418 boolean argument. Don't check pointer conversion here.
3419
99063eee
RS
34202019-01-15 Richard Sandiford <richard.sandiford@arm.com>
3421
3422 PR inline-asm/52813
3423 * c.opt (Wdeprecated): Move documentation and variable to common.opt.
3424
a30d0196
JJ
34252019-01-14 Jakub Jelinek <jakub@redhat.com>
3426
3427 * c-cppbuiltin.c (c_cpp_builtin): Define __cpp_guaranteed_copy_elision
3428 and __cpp_nontype_template_parameter_auto. Add a comment that
3429 __cpp_template_auto is deprecated.
3430
2d91f79d
TH
34312019-01-14 Tom Honermann <tom@honermann.net>
3432
3433 Implement P0482R5, char8_t: A type for UTF-8 characters and strings
3434 * c-common.c (c_common_reswords): Add char8_t.
3435 (fix_string_type): Use char8_t for the type of u8 string literals.
3436 (c_common_get_alias_set): char8_t doesn't alias.
3437 (c_common_nodes_and_builtins): Define char8_t as a builtin type in
3438 C++.
3439 (c_stddef_cpp_builtins): Add __CHAR8_TYPE__.
3440 (keyword_begins_type_specifier): Add RID_CHAR8.
3441 * c-common.h (rid): Add RID_CHAR8.
3442 (c_tree_index): Add CTI_CHAR8_TYPE and CTI_CHAR8_ARRAY_TYPE.
3443 Define D_CXX_CHAR8_T and D_CXX_CHAR8_T_FLAGS.
3444 Define char8_type_node and char8_array_type_node.
3445 * c-cppbuiltin.c (cpp_atomic_builtins): Predefine
3446 __GCC_ATOMIC_CHAR8_T_LOCK_FREE.
3447 (c_cpp_builtins): Predefine __cpp_char8_t.
3448 * c-lex.c (lex_string): Use char8_array_type_node as the type of
3449 CPP_UTF8STRING.
3450 (lex_charconst): Use char8_type_node as the type of CPP_UTF8CHAR.
3451 * c-opts.c: If not otherwise specified, enable -fchar8_t when
3452 targeting C++2a.
3453 * c.opt: Add the -fchar8_t command line option.
3454
23db6ced
MS
34552019-01-14 Martin Sebor <msebor@redhat.com>
3456
3457 PR target/88638
3458 * c-attribs.c (positional_argument): Call valid_format_string_type_p
3459 and issue errors if it fails.
3460 * c-common.h (valid_format_string_type_p): Declare.
3461 * c-format.c (valid_stringptr_type_p): Rename...
3462 (valid_format_string_type_p): ...to this and make extern.
3463 (handle_format_arg_attribute): Adjust to new name.
3464 (check_format_string): Same.
3465
234c3818
L
34662019-01-13 H.J. Lu <hongjiu.lu@intel.com>
3467
3468 * c-warn.c (warn_for_address_or_pointer_of_packed_member):
3469 Replace "may may" with "may" in warning message.
3470
d8fcab68
JJ
34712019-01-07 Jakub Jelinek <jakub@redhat.com>
3472
3473 PR c++/85052
3474 * c-common.h (enum rid): Add RID_BUILTIN_CONVERTVECTOR.
3475 (c_build_vec_convert): Declare.
3476 * c-common.c (c_build_vec_convert): New function.
3477
29d24852
MS
34782019-01-04 Martin Sebor <msebor@redhat.com>
3479
3480 PR c/88546
3481 * c-attribs.c (handle_copy_attribute): Avoid copying attribute leaf.
3482 Handle C++ empty throw specification and C11 _Noreturn.
3483 (has_attribute): Also handle C11 _Noreturn.
3484
9069a4c9
MS
34852019-01-04 Martin Sebor <msebor@redhat.com>
3486
3487 PR c/88363
3488 * c-attribs.c (positional_argument): Also accept enumerated types.
3489
a5544970
JJ
34902019-01-01 Jakub Jelinek <jakub@redhat.com>
3491
3492 Update copyright years.
3493
da77eace
L
34942018-12-20 H.J. Lu <hongjiu.lu@intel.com>
3495
3496 PR c/51628
3497 * c-common.h (warn_for_address_or_pointer_of_packed_member): New.
3498 * c-warn.c (check_alignment_of_packed_member): New function.
3499 (check_address_of_packed_member): Likewise.
3500 (check_and_warn_address_of_packed_member): Likewise.
3501 (warn_for_address_or_pointer_of_packed_member): Likewise.
3502 * c.opt: Add -Wno-address-of-packed-member.
3503
573767d4
DM
35042018-12-20 David Malcolm <dmalcolm@redhat.com>
3505
3506 PR c++/87504
3507 * c-warn.c (get_outermost_macro_expansion): New function.
3508 (spelled_the_same_p): Use it to unwind the macro expansions, and
3509 compare the outermost macro in each nested expansion, rather than
3510 the innermost.
3511
a14feb3c
DM
35122018-12-19 David Malcolm <dmalcolm@redhat.com>
3513
3514 PR c++/87504
3515 * c-common.h (warn_tautological_cmp): Convert 1st param from
3516 location_t to const op_location_t &.
3517 * c-warn.c (find_array_ref_with_const_idx_r): Call fold_for_warn
3518 when testing for INTEGER_CST.
3519 (warn_tautological_bitwise_comparison): Convert 1st param from
3520 location_t to const op_location_t &; use it to build a
3521 binary_op_rich_location, and use this.
3522 (spelled_the_same_p): New function.
3523 (warn_tautological_cmp): Convert 1st param from location_t to
3524 const op_location_t &. Warn for macro expansions if
3525 spelled_the_same_p. Use binary_op_rich_location.
3526
dfd7fdca
DM
35272018-12-19 David Malcolm <dmalcolm@redhat.com>
3528
3529 PR c++/43064
3530 PR c++/43486
3531 * c-common.c (unsafe_conversion_p): Fold any location wrapper.
3532 (verify_tree): Handle location wrappers.
3533 (c_common_truthvalue_conversion): Strip any location wrapper.
3534 Handle CONST_DECL.
3535 (fold_offsetof): Strip any location wrapper.
3536 (complete_array_type): Likewise for initial_value.
3537 (convert_vector_to_array_for_subscript): Call fold_for_warn on the
3538 index before checking for INTEGER_CST.
3539 * c-pretty-print.c (c_pretty_printer::primary_expression): Don't
3540 print parentheses around location wrappers.
3541 * c-warn.c (warn_logical_operator): Call fold_for_warn on op_right
3542 before checking for INTEGER_CST.
3543 (warn_tautological_bitwise_comparison): Call
3544 tree_strip_any_location_wrapper on lhs, rhs, and bitop's operand
3545 before checking for INTEGER_CST.
3546 (readonly_error): Strip any location wrapper.
3547 (warn_array_subscript_with_type_char): Strip location wrappers
3548 before checking for INTEGER_CST. Use the location of the index if
3549 available.
3550
5c8b3702
JM
35512018-12-06 Jason Merrill <jason@redhat.com>
3552
3553 PR c++/88136 - -Wdeprecated-copy false positives
3554 * c.opt (Wdeprecated-copy-dtor): New.
3555 (Wdeprecated-copy): Move to -Wextra.
3556
673670da
MS
35572018-11-29 Martin Sebor <msebor@redhat.com>
3558
3559 PR c/88172
3560 PR testsuite/88208
3561 * c-attribs.c (common_handle_aligned_attribute): Silently avoid setting
3562 alignments to values less than the target requires.
3563 (has_attribute): For attribute aligned consider both the attribute
3564 and the alignment bits.
3565 * c-common.c (c_init_attributes): Optionally issue a warning for
3566 zero alignment.
3567
04864ec8
MS
35682018-11-28 Martin Sebor <msebor@redhat.com>
3569
3570 PR c/88065
3571 PR c/87297
3572 * c-warn.c (sizeof_pointer_memaccess_warning): Bail if source
3573 or destination is an error.
3574
ace83db0
JJ
35752018-11-28 Jakub Jelinek <jakub@redhat.com>
3576
3577 PR c++/88215
3578 * c-ubsan.c: Include langhooks.h.
3579 (ubsan_instrument_division): Change gcc_assert that main variants
3580 of op0 and op1 types are equal to gcc_checking_assert that the
3581 main variants are compatible types.
3582
da193a27
EB
35832018-11-27 Eric Botcazou <ebotcazou@adacore.com>
3584
3585 * c-ada-spec.c: Include stringpool.h.
3586 (has_static_fields): Return false for incomplete types.
3587 (is_tagged_type): Likewise.
3588 (has_nontrivial_methods): Likewise.
3589 (dump_ada_node) <INTEGER_TYPE>: Deal specifically with __int128.
3590 (struct overloaded_name_hash): New structure.
3591 (struct overloaded_name_hasher): Likewise.
3592 (overloaded_names): New global variable.
3593 (init_overloaded_names): New static function.
3594 (overloaded_name_p): New predicate.
3595 (dump_ada_declaration) <TYPE_DECL>: Tidy up and set TREE_VISITED
3596 on the TYPE_STUB_DECL of the original type of a typedef, if any.
3597 <FUNCTION_DECL>: Bail out for an unsupported overloaded name.
3598 Remove always-true condition and dump forward types.
3599 (dump_ada_specs): Delete overloaded_names.
3600
98f08eb8
MS
36012018-11-20 Martin Sebor <msebor@redhat.com>
3602
3603 * c-attribs.c (type_for_vector_size): New function.
3604 (type_valid_for_vector_size): Same.
3605 (handle_vector_size_attribute): Move code to the functions above
3606 and call them.
3607 (validate_attribute, has_attribute): New functions.
3608 * c-common.h (has_attribute): Declare.
3609 (rid): Add RID_HAS_ATTRIBUTE_EXPRESSION.
3610 * c-common.c (c_common_resword): Same.
3611
2674fa47
JM
36122018-11-16 Jason Merrill <jason@redhat.com>
3613
3614 * c-lex.c (c_common_has_attribute): Handle likely/unlikely.
3615 * c-attribs.c (attr_cold_hot_exclusions): Make public.
3616
258b3854
JJ
36172018-11-16 Jakub Jelinek <jakub@redhat.com>
3618
3619 PR middle-end/87854
3620 * c-common.c (fix_string_type): Reject string literals larger than
3621 TYPE_MAX_VALUE (ssizetype) bytes.
3622
1d249509
MS
36232018-11-15 Martin Sebor <msebor@redhat.com>
3624
3625 PR c++/87541
3626 PR c++/87542
3627 * c-attribs.c (positional_argument): New function.
3628 (handle_alloc_size_attribute): Use it and simplify.
3629 (handle_alloc_align_attribute): Same.
3630 (handle_assume_aligned_attribute): Same.
3631 (handle_nonnull_attribute): Same.
3632 * c-common.c (check_function_arguments): Pass fntype to
3633 check_function_format.
3634 * c-common.h (check_function_format): Add an argument.
3635 (PosArgFlags, positional_argument): Declare new type and function.
3636 * c-format.c (decode_format_attr): Add arguments.
3637 (check_format_string, get_constant): Same.
3638 (convert_format_name_to_system_name): Adjust.
3639
478dd60d
DM
36402018-11-15 David Malcolm <dmalcolm@redhat.com>
3641
3642 PR other/19165
3643 * c-opts.c (c_diagnostic_finalizer): Add diagnostic_t param.
3644
8cca0163
JJ
36452018-11-14 Jakub Jelinek <jakub@redhat.com>
3646
8ee09943
JJ
3647 P1236R1 - Signed integers are two's complement
3648 * c-warn.c (maybe_warn_shift_overflow): Don't warn for c++2a.
3649 * c-ubsan.c (ubsan_instrument_shift): Make signed shifts
3650 with in-range second operand well defined for -std=c++2a.
3651
8cca0163
JJ
3652 PR other/88007
3653 * c-common.c (parse_optimize_options): Allocate option string from
3654 opts_obstack rather than as GC memory. Move the allocation after
3655 warning for invalid option.
3656
620e594b
DM
36572018-11-13 David Malcolm <dmalcolm@redhat.com>
3658
3659 * c-common.c (c_get_substring_location): Update for renaming of
3660 get_source_location_for_substring to get_location_within_string.
3661 * c-lex.c: Replace "source_location" with "location_t".
3662 * c-opts.c: Likewise.
3663 * c-ppoutput.c: Likewise.
3664
f9731de3
MS
36652018-11-13 Martin Sebor <msebor@redhat.com>
3666
3667 PR middle-end/81824
3668 * c-attribs.c (handle_copy_attribute): Exclude inlining attributes.
3669 (handle_tls_model_attribute): Improve diagnostics.
3670
e4bd6d5e
JM
36712018-11-12 Jason Merrill <jason@redhat.com>
3672
a6bb6b07
JM
3673 * c-cppbuiltin.c (c_cpp_builtins): Define
3674 __cpp_impl_destroying_delete.
3675
e4bd6d5e
JM
3676 * c-cppbuiltin.c (c_cpp_builtins): Change __cpp_explicit_bool to
3677 __cpp_conditional_explicit.
3678
79a2c428
MS
36792018-11-09 Martin Sebor <msebor@redhat.com>
3680
3681 PR middle-end/81824
3682 * c-attribs.c (handle_copy_attribute): New function.
3683
4c7bd361
MS
36842018-11-09 Martin Sebor <msebor@redhat.com>
3685
3686 PR c/87795
3687 * c-common.c (check_user_alignment): Use MAX_OFILE_ALIGNMENT.
3688
28567c40
JJ
36892018-11-08 Jakub Jelinek <jakub@redhat.com>
3690
3691 * c-common.h (c_finish_omp_taskgroup): Add CLAUSES argument.
3692 (c_finish_omp_atomic): Replace bool SEQ_CST argument with
3693 enum omp_memory_order MEMORY_ORDER.
3694 (c_finish_omp_flush): Add MO argument.
3695 (c_omp_depend_t_p, c_finish_omp_depobj): Declare.
3696 (c_finish_omp_for): Add FINAL_P argument.
3697 * c-omp.c: Include memmodel.h.
3698 (c_finish_omp_taskgroup): Add CLAUSES argument. Set
3699 OMP_TASKGROUP_CLAUSES to it.
3700 (c_finish_omp_atomic): Replace bool SEQ_CST argument with
3701 enum omp_memory_order MEMORY_ORDER. Set OMP_ATOMIC_MEMORY_ORDER
3702 instead of OMP_ATOMIC_SEQ_CST.
3703 (c_omp_depend_t_p, c_finish_omp_depobj): New functions.
3704 (c_finish_omp_flush): Add MO argument, if not MEMMODEL_LAST, emit
3705 __atomic_thread_fence call with the given value.
3706 (check_omp_for_incr_expr): Formatting fixes.
3707 (c_finish_omp_for): Add FINAL_P argument. Allow NE_EXPR
3708 even in OpenMP loops, diagnose if NE_EXPR and incr expression
3709 is not constant expression 1 or -1. Transform NE_EXPR loops
3710 with iterators pointers to VLA into LT_EXPR or GT_EXPR loops.
3711 (c_omp_check_loop_iv_r): Look for orig decl of C++ range for
3712 loops too.
3713 (c_omp_split_clauses): Add support for combined
3714 #pragma omp parallel master and
3715 #pragma omp {,parallel }master taskloop{, simd} constructs.
3716 Handle OMP_CLAUSE_IN_REDUCTION. Handle OMP_CLAUSE_REDUCTION_TASK.
3717 Handle OMP_CLAUSE_NONTEMPORAL. Handle splitting OMP_CLAUSE_IF
3718 also to OMP_SIMD. Copy OMP_CLAUSE_LASTPRIVATE_CONDITIONAL.
3719 (c_omp_predetermined_sharing): Don't return
3720 OMP_CLAUSE_DEFAULT_SHARED for const qualified decls.
3721 * c-pragma.c (omp_pragmas): Add PRAGMA_OMP_DEPOBJ and
3722 PRAGMA_OMP_REQUIRES.
3723 * c-pragma.h (enum pragma_kind): Likewise.
3724 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_NONTEMPORAL
3725 and PRAGMA_OMP_CLAUSE_{IN,TASK}_REDUCTION.
3726
204839e7
DM
37272018-11-08 David Malcolm <dmalcolm@redhat.com>
3728
3729 * c-format.c (gcc_dump_printf_char_table): Add entry for %f.
3730
d8010ee4
DM
37312018-11-08 David Malcolm <dmalcolm@redhat.com>
3732
3733 * c-format.c (local_cgraph_node_ptr_node): New variable.
3734 (gcc_dump_printf_char_table): Add entry for %C.
3735 (get_pointer_to_named_type): New function, taken from the handling
3736 code for "gimple *" from...
3737 (init_dynamic_diag_info): ...here. Add handling for
3738 "cgraph_node *".
3739 * c-format.h (T_CGRAPH_NODE): New.
3740
4be5c72c
JM
37412018-10-19 Jason Merrill <jason@redhat.com>
3742
3743 * c-cppbuiltin.c (c_cpp_builtins): Add
3744 __cpp_nontype_template_parameter_class.
3745
f3f6029d
NS
37462018-10-31 Nathan Sidwell <nathan@acm.org>
3747
ab5324fb
NS
3748 * c-opts.c (c_finish_options): Force command line macro
3749 location. Refactor to avoid repeating main debug hook.
3750 (push_command_line_include): Clarify comment.
3751
f3f6029d
NS
3752 * c-opts.c (c_finish_options): Adjust cpp_force_token_locations call.
3753
91e3ec29
MS
37542018-10-30 Martin Sebor <msebor@redhat.com>
3755
3756 PR middle-end/87041
3757 * c-format.c (check_format_types): Avoid diagnosing null pointer
3758 arguments to printf-family of functions.
3759
b5ff4f5c
MP
37602018-10-30 Marek Polacek <polacek@redhat.com>
3761
3762 Implement P0892R2, explicit(bool).
3763 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_explicit_bool.
3764
7e2de6df
DM
37652018-10-29 David Malcolm <dmalcolm@redhat.com>
3766
3767 * name-hint.h (name_hint::take_deferred): New member function.
3768
b2bf438c
DM
37692018-10-29 David Malcolm <dmalcolm@redhat.com>
3770
3771 PR c++/56856
3772 * c-common.c (check_function_sentinel): Call fold_for_warn on the
3773 argument.
3774 (check_function_restrict): Rename param "argarray" to
3775 "unfolded_argarray", and make a copy named "argarray", calling
3776 fold_for_warn on each argument.
3777 (check_function_arguments): Add note about responsibility for
3778 folding the arguments.
3779
9f936c86
JM
37802018-10-17 Joseph Myers <joseph@codesourcery.com>
3781
3782 * c-common.c (flag_isoc2x): New variable.
3783 * c-common.h (clk_c): Update comment to reference C2X.
3784 (flag_isoc99, flag_isoc11): Update comments to reference future
3785 standard versions in general.
3786 (flag_isoc2x): Declare.
3787 * c-opts.c (set_std_c2x): New function.
3788 (c_common_handle_option): Handle -std=c2x and -std=gnu2x.
3789 (set_std_c89, set_std_c99, set_std_c11, set_std_c17): Set
3790 flag_isoc2x to 0.
3791 * c.opt (Wc11-c2x-compat, std=c2x, std=gnu2x): New options.
3792
7a8a92c4
JM
37932018-10-17 Joseph Myers <joseph@codesourcery.com>
3794
3795 * c.opt (std=c17, std=c18, std=gnu17, std=gnu18, std=iso9899:2017)
3796 (std=iso9899:2018): Document C17 as published in 2018.
3797
4dc003ff
CL
37982018-10-12 Christophe Lyon <christophe.lyon@linaro.org>
3799
3800 PR c++/87364
3801 * c-pretty-print.c (c_pretty_printer::constant): Fix typo.
3802
79371671
WW
38032018-10-11 Will Wray <wjwray@gmail.com>
3804
3805 PR c++/87364
3806 * c-pretty-print.h (pp_c_type_cast): Prototype.
3807 (pp_c_integer_constant): Likewise.
3808 * c-pretty-print.c (pp_c_type_cast): No longer static.
3809 (pp_c_integer_constant): Likewise.
3810 (pp_c_enumeration_constant): Fix loop termination when finding
3811 name of constant. No longer returns a value. Call
3812 pp_c_integer_constant.
3813 (c_pretty_printer::constant): Update for changes to
3814 pp_c_enumeration_constant.
3815
46c62690
JJ
38162018-10-11 Jakub Jelinek <jakub@redhat.com>
3817
3818 * c-lex.c (c_common_has_attribute): Return 201803 instead of 20180312
3819 for no_unique_address.
3820
c24300ba
DM
38212018-10-09 David Malcolm <dmalcolm@redhat.com>
3822
3823 * c-common.c (c_option_controlling_cpp_error): Rename to...
3824 (c_option_controlling_cpp_diagnostic): ...this, and convert
3825 "reason" from int to enum.
3826 (c_cpp_error): Rename to...
3827 (c_cpp_diagnostic): ...this, converting level and reason to enums.
3828 * c-common.h (c_cpp_error): Rename to...
3829 (c_cpp_diagnostic): ...this, converting level and reason to enums.
3830 * c-opts.c (c_common_init_options): Update for renaming.
3831
8656dafa
RS
38322018-10-08 Richard Sandiford <richard.sandiford@arm.com>
3833
3834 PR c/87286
3835 * c-common.c (vector_types_compatible_elements_p): Use
3836 INTEGRAL_TYPE_P instead of checking only for INTEGER_TYPE.
3837
8cff0652
VK
38382018-10-04 Vinay Kumar <vinay.kumar@blackfigtech.com>
3839
3840 * c-attribs.c (get_priority): Add a warning flag warn_prio_ctor_dtor
3841 to generate constructor destructor priority warning.
3842 * c.opt (-Wprio-ctor-dtor): New option.
3843
bedf03a2
JM
38442018-10-01 Jason Merrill <jason@redhat.com>
3845
3846 * c-lex.c (c_common_has_attribute): Add no_unique_address.
3847
6cc430c1
EB
38482018-10-01 Eric Botcazou <ebotcazou@adacore.com>
3849
3850 * c-ada-spec.c (get_underlying_decl): Get to the main type variant.
3851 (dump_ada_node): Add const keyword.
3852
87677ac7
ML
38532018-09-25 Martin Liska <mliska@suse.cz>
3854
3855 * c-common.c (c_common_truthvalue_conversion):
3856 Remove Pascal from documentation.
3857
518196cb
EB
38582018-09-21 Eric Botcazou <ebotcazou@adacore.com>
3859
3860 * c-ada-spec.c: Include diagnostic.h.
3861 (dump_ada_declaration) <RECORD_TYPE>: Issue a warning on packed layout.
3862
a599af84
MP
38632018-09-19 Marek Polacek <polacek@redhat.com>
3864
3865 * c.opt (Wclass-conversion): New.
3866
9c4a4b3c
DM
38672018-09-17 David Malcolm <dmalcolm@redhat.com>
3868
3869 * c-format.c (range_label_for_format_type_mismatch::get_text):
3870 Update for new param.
3871
c896ecfe
DM
38722018-09-17 David Malcolm <dmalcolm@redhat.com>
3873
3874 * c-format.c (format_warning_at_char): Update for introduction of
3875 format_string_diagnostic_t.
3876 (format_type_warning): Likewise.
3877
80c6d1f4
MJ
38782018-09-17 Martin Jambor <mjambor@suse.cz>
3879
3880 PR c/63886
3881 * c.opt (Wabsolute-value): New.
3882
6d900107
BE
38832018-09-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
3884
3885 * c-common.c (complete_flexible_array_elts): New helper function.
3886 * c-common.h (complete_flexible_array_elts): Declare.
3887
b5764229
BE
38882018-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
3889
3890 * c-common.c (braced_list_to_string): Remove eval parameter.
3891 Add some more checks. Always create zero-terminated STRING_CST.
3892 * c-common.h (braced_list_to_string): Adjust prototype.
3893
85204e23
DM
38942018-08-27 David Malcolm <dmalcolm@redhat.com>
3895
3896 PR 87091
3897 * c-common.c (c_cpp_error): Update for conversion of show_caret_p
3898 to a tri-state.
3899 (maybe_suggest_missing_token_insertion): Likewise.
3900 (maybe_add_include_fixit): Add param "override_location". If set,
3901 and source-printing is enabled, then override the rich_location's
3902 primary location with that of the insertion point for the fix-it
3903 hint, marking it with SHOW_LINES_WITHOUT_RANGE.
3904 * c-common.h (extern void maybe_add_include_fixit): Add bool
3905 param.
3906 * c-format.c (selftest::test_type_mismatch_range_labels): Update
3907 for conversion of show_caret_p to a tri-state.
3908 * c-warn.c (warn_for_restrict): Likewise.
3909 * known-headers.cc
3910 (suggest_missing_header::~suggest_missing_header): Update call to
3911 maybe_add_include_fixit to suggest overriding the location, as it
3912 is for a note.
3913
3d78e008
ML
39142018-08-27 Martin Liska <mliska@suse.cz>
3915
3916 * c-common.c (check_function_restrict): Use new function
92a285c1
ML
3917 fndecl_built_in_p and remove check for FUNCTION_DECL if
3918 possible.
3d78e008
ML
3919 (check_builtin_function_arguments): Likewise.
3920 (reject_gcc_builtin): Likewise.
3921 * c-warn.c (sizeof_pointer_memaccess_warning): Likewise.
3922
b5be6d0c
MP
39232018-08-26 Marek Polacek <polacek@redhat.com>
3924
3925 PR c++/87029, Implement -Wredundant-move.
3926 * c.opt (Wredundant-move): New option.
3927
79ca9c35
MP
39282018-08-21 Marek Polacek <polacek@redhat.com>
3929
3930 PR c++/86981, Implement -Wpessimizing-move.
3931 * c.opt (Wpessimizing-move): New option.
3932
097f82ec
DM
39332018-08-20 David Malcolm <dmalcolm@redhat.com>
3934
3935 PR other/84889
3936 * c-attribs.c (common_handle_aligned_attribute): Add
3937 auto_diagnostic_group instance.
3938 * c-indentation.c (warn_for_misleading_indentation): Likewise.
3939 * c-opts.c (c_common_post_options): Likewise.
3940 * c-warn.c (warn_logical_not_parentheses): Likewise.
3941 (warn_duplicated_cond_add_or_warn): Likewise.
3942 (warn_for_multistatement_macros): Likewise.
3943
3fb558b1
NS
39442018-08-20 Nathan Sidwell <nathan@acm.org>
3945
3946 * c-ada-spec.c (macro_length, dump_ada_macros): Adjust macro parm
3947 access.
3948
800c0e98
NS
39492018-08-17 Nathan Sidwell <nathan@acm.org>
3950
3951 * c-cppbuiltin.c (struct lazy_hex_fp_value_struct): Remove macro
3952 field.
3953 (laxy_hex_fp_value_count): Make unsigned.
3954 (lazy_hex_fp_value): Provided with macro & lazy number. Directly
3955 manipulate the macro.
3956 (builtin_defin_with_hex_fp_value): Adjust callback name, use
3957 cpp_define_lazily.
3958
6f795a92
DM
39592018-08-17 David Malcolm <dmalcolm@redhat.com>
3960
3961 * c-format.c (enum format_type): Add gcc_dump_printf_format_type.
3962 (gcc_dump_printf_length_specs): New.
3963 (gcc_dump_printf_flag_pairs): New.
3964 (gcc_dump_printf_flag_specs): New.
3965 (gcc_dump_printf_char_table): New.
3966 (format_types_orig): Add entry for "gcc_dump_printf".
3967 (init_dynamic_diag_info): Set up length_char_specs and
3968 conversion_specs for gcc_dump_printf_format_type.
3969 (handle_format_attribute): Handle gcc_dump_printf_format_type.
3970
c5d725c0
NS
39712018-08-17 Nathan Sidwell <nathan@acm.org>
3972
10f04917
NS
3973 * c-ada-spec.c (macro_length, dump_ada_macros): Constify.
3974
c5d725c0
NS
3975 * c-ada-spec.c: Don't #include "cpp-id-data.h"
3976 * c-cppbuiltin.c: Likewise.
3977
c0c12356
ML
39782018-08-17 Martin Liska <mliska@suse.cz>
3979
3980 * c.opt: Remove Warn, Init and Report for options with
92a285c1
ML
3981 Ignore/Deprecated flag. Warning is done automatically for
3982 Deprecated flags.
c0c12356 3983
10fcc142
DM
39842018-08-16 David Malcolm <dmalcolm@redhat.com>
3985
3986 PR c++/70693
3987 * c-common.c (selftest::c_family_tests): Call
3988 selftest::c_indentation_c_tests.
3989 * c-common.h (selftest::c_indentation_c_tests): New decl.
3990 * c-indentation.c: Include "selftest.h".
3991 (next_tab_stop): Add "tab_width" param, rather than accessing
3992 cpp_opts.
3993 (get_visual_column): Likewise. Clarify comment. Bulletproof
3994 against reading past the end of the line.
3995 (get_first_nws_vis_column): Add "tab_width" param.
3996 (detect_intervening_unindent): Likewise.
3997 (should_warn_for_misleading_indentation): Read tab width from
3998 cpp_opts and pass around.
3999 (selftest::test_next_tab_stop): New test.
4000 (selftest::assert_get_visual_column_succeeds): New function.
4001 (ASSERT_GET_VISUAL_COLUMN_SUCCEEDS): New macro.
4002 (selftest::assert_get_visual_column_fails): New function.
4003 (ASSERT_GET_VISUAL_COLUMN_FAILS): New macro.
4004 (selftest::test_get_visual_column): New test.
4005 (selftest::c_indentation_c_tests): New function.
4006
3f6677f4
NS
40072018-08-16 Nathan Sidwell <nathan@acm.org>
4008
4009 * c-ada-spec.c (count_ada_macro): Use cpp_user_macro_p.
4010 (store_ada_macro): Likewise.
4011 * c-ppoutput.c (cb_used_define, dump_macro): Likewise.
4012 * c-spellcheck.cc (should-suggest_as_macro_p): Likewise,
4013
96e6ae57
DM
40142018-08-15 David Malcolm <dmalcolm@redhat.com>
4015
4016 * c-format.c: Include "selftest-diagnostic.h" and
4017 "gcc-rich-location.h".
4018 (format_warning_at_char): Pass NULL for new label params of
4019 format_warning_va.
4020 (class indirection_suffix): New class.
4021 (class range_label_for_format_type_mismatch): New class.
4022 (format_type_warning): Move logic for generating "*" suffix to
4023 class indirection_suffix. Create "fmt_label" and "param_label"
4024 to show their types, and pass them to the
4025 format_warning_at_substring calls.
4026 (selftest::test_type_mismatch_range_labels): New test.
4027 (selftest::c_format_c_tests): Call it.
4028
23aa9f7c
MS
40292018-08-13 Martin Sebor <msebor@redhat.com>
4030
4031 PR tree-optimization/71625
4032 * c-common.c (braced_list_to_string): New function.
4033 * c-common.h (braced_list_to_string): Declare it.
4034
f10a9135
NS
40352018-08-08 Nathan Sidwell <nathan@acm.org>
4036
4037 * c-common.c (try_to_locate_new_include_inertion_point): Use
4038 linemap_included_from_linemap.
4039 * c-lex.c (fe_file_change): Use linemap_included_from.
4040 * c-ppoutput.c (pp_file_change): Likewise.
4041
8a45b051
MS
40422018-08-01 Martin Sebor <msebor@redhat.com>
4043
4044 PR tree-optimization/86650
ab20d992 4045 * c-format.c (gcc_tdiag_char_table): Update comment for "%G".
8a45b051
MS
4046 (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Same.
4047 (init_dynamic_diag_info): Update from "gcall *" to "gimple *".
4048 * c-format.h (T89_G): Update to be "gimple *" rather than
4049 "gcall *".
4050 (local_gcall_ptr_node): Rename...
4051 (local_gimple_ptr_node): ...to this.
4052
e540ccc0
DM
40532018-07-31 David Malcolm <dmalcolm@redhat.com>
4054
4055 * c-format.c (PP_FORMAT_CHAR_TABLE): New macro, based on existing
4056 table entries for gcc_diag_char_table, and the 'Z' entry from
4057 gcc_tdiag_char_table, changing the "chain" entry for 'Z' from
4058 &gcc_tdiag_char_table[0] to &gcc_diag_char_table[0].
4059 (gcc_diag_char_table): Use PP_FORMAT_CHAR_TABLE, implicitly
4060 adding missing "Z" for this table. Remove erroneous "G" and "K"
4061 entries.
4062 (gcc_tdiag_char_table): Use PP_FORMAT_CHAR_TABLE. Remove "v".
4063 (gcc_cdiag_char_table): Use PP_FORMAT_CHAR_TABLE.
4064 (gcc_cxxdiag_char_table): Use PP_FORMAT_CHAR_TABLE. Remove "v".
4065
425fc685
RE
40662018-07-31 Richard Earnshaw <rearnsha@arm.com>
4067
4068 * c-common.c (speculation_safe_resolve_call): New function.
4069 (speculation_safe_resolve_params): New function.
4070 (speculation_safe_resolve_return): New function.
4071 (resolve_overloaded_builtin): Handle __builtin_speculation_safe_value.
4072 * c-cppbuiltin.c (c_cpp_builtins): Add pre-define for
4073 __HAVE_SPECULATION_SAFE_VALUE.
4074
181463c2
DM
40752018-07-20 David Malcolm <dmalcolm@redhat.com>
4076
4077 * c-common.c (c_cpp_error): Remove redundant "line_table"
4078 parameter from call to rich_location::set_range.
4079 (maybe_suggest_missing_token_insertion): Likewise.
4080
0d7f9065
MS
40812018-07-20 Martin Sebor <msebor@redhat.com>
4082
4083 PR middle-end/82063
ab20d992 4084 * c.opt (-Warray-bounds): Remove redundant -Wall.
0d7f9065 4085
00abf86c
MS
40862018-07-20 Martin Sebor <msebor@redhat.com>
4087
4088 PR middle-end/82063
4089 * c-common.h (c_common_handle_option): Change function argument
4090 to HOST_WIDE_INT.
4091 * c-opts.c (c_common_init_options): Same.
4092 (c_common_handle_option): Same. Remove special handling of
4093 OPT_Walloca_larger_than_ and OPT_Wvla_larger_than_.
4094 * c.opt (-Walloc-size-larger-than, -Walloca-larger-than): Change
4095 options to take a HOST_WIDE_INT argument and accept a byte-size
4096 suffix. Initialize.
4097 (-Wvla-larger-than): Same.
4098 (-Wno-alloc-size-larger-than, -Wno-alloca-larger-than): New.
4099 (-Wno-vla-larger-than): Same.
4100
9b452033
JJ
41012018-07-12 Jakub Jelinek <jakub@redhat.com>
4102
4103 * c-attribs.c (c_common_attribute_table): Add
4104 "omp declare target implicit" attribute.
4105
cd0762f3
RB
41062018-07-12 Richard Biener <rguenther@suse.de>
4107
4108 PR c/86453
4109 * c-attribs.c (handle_packed_attribute): Do not build a variant
4110 type with TYPE_PACKED, instead ignore the attribute if we may
4111 not apply to the original type.
4112
0b27c3ed
JJ
41132018-07-10 Jakub Jelinek <jakub@redhat.com>
4114
4115 PR c++/86443
4116 * c-omp.c (c_omp_check_loop_iv_r, c_omp_check_loop_iv): Allow declv
4117 to contain TREE_LIST for both the original class iterator and the
4118 "last" helper var.
4119
e730a0ef
EB
41202018-07-07 Eric Botcazou <ebotcazou@adacore.com>
4121
4122 * c-ada-spec.c (to_ada_name): Remove index parameter.
4123 (pp_ada_tree_identifier): Likewise.
4124 (dump_ada_macros): Adjust call to to_ada_name.
4125 (struct overloaded_name_hash): Delete.
4126 (struct overloaded_name_hasher): Likewise.
4127 (overloaded_names): Likewise.
4128 (compute_overloading_index): Likewise.
4129 (dump_ada_decl_name): Do not call compute_overloading_index and
4130 adjust calls to pp_ada_tree_identifier.
4131 (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
4132 (dump_ada_import): Add spc parameter and switch to aspect syntax.
4133 (dump_ada_function_declaration): Adjust call to pp_ada_tree_identifier.
4134 (dump_ada_enum_type): Remove type and display_convention parameters.
4135 Adjust calls to pp_ada_tree_identifier.
4136 (dump_ada_node): Likewise and for dump_ada_structure.
4137 (dump_nested_type) <ENUMERAL_TYPE>: Adjust call to dump_ada_enum_type
4138 and tidy up.
4139 <RECORD_TYPE>: Adjust call to dump_ada_structure and switch to aspect
4140 syntax.
4141 (print_constructor): Adjust call to pp_ada_tree_identifier.
4142 (print_destructor): Likewise.
4143 (dump_ada_declaration): Switch to aspect syntax.
4144 (dump_ada_structure): Likewise and tidy up. Replace display_convention
4145 parameter with nested parameter.
4146 (dump_ads): Emit pragma Ada_2012 in lieu of pragma Ada_2005.
4147 (dump_ada_specs): Do not delete overloaded_names table.
4148
8de583fc
PB
41492018-07-06 Peter Bergner <bergner@linux.ibm.com>
4150
4151 PR target/86324
e730a0ef 4152 * c-attribs.c (handle_mode_attribute): Call translate_mode_attribute
8de583fc
PB
4153 target hook.
4154
09cff37b
NS
41552018-07-05 Nathan Sidwell <nathan@acm.org>
4156
4157 * c-lex.c (fe_file_change): Check SYSTEM_IMPLICIT_EXTERN_C not
4158 NO_IMPLICIT_EXTERN_C.
4159
98086b2b
ML
41602018-06-28 Martin Liska <mliska@suse.cz>
4161
4162 * cppspec.c: Include opt-suggestions.h.
4163
ab20d992
JJ
41642018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
4165 Thomas Schwinge <thomas@codesourcery.com>
829c6349
CLT
4166 Cesar Philippidis <cesar@codesourcery.com>
4167
4168 * c-pragma.h (enum pragma_omp_clause): Add
4169 PRAGMA_OACC_CLAUSE_{FINALIZE,IF_PRESENT}. Remove
4170 PRAGMA_OACC_CLAUSE_PRESENT_OR_{COPY,COPYIN,COPYOUT,CREATE}.
4171
f41b7612
JJ
41722018-06-20 Jakub Jelinek <jakub@redhat.com>
4173
4174 PR c++/86210
4175 * c-common.c (check_nonnull_arg): Use fold_for_warn. Adjust obsolete
4176 comment.
4177
4252ccd7
MS
41782018-06-18 Martin Sebor <msebor@redhat.com>
4179
4180 PR middle-end/85602
4181 * c-warn.c (sizeof_pointer_memaccess_warning): Check for attribute
4182 nonstring.
4183
e197e64e
KV
41842018-06-16 Kugan Vivekanandarajah <kuganv@linaro.org>
4185
4186 * c-common.c (c_common_truthvalue_conversion): Handle ABSU_EXPR.
4187
34a7a230
JM
41882018-06-13 Jason Merrill <jason@redhat.com>
4189
5cef3733
JM
4190 * c-opts.c (c_common_post_options): Warn about useless -Wabi.
4191 (c_common_handle_option) [OPT_Wabi_]: Remove flag_abi_compat_version
4192 handling.
4193
34a7a230
JM
4194 PR c++/86094 - wrong code with defaulted move ctor.
4195 * c-opts.c (c_common_post_options): Bump the current ABI version to
4196 13. Set warn_abi_version and flag_abi_compat_version to the current
4197 version rather than 0. Fix defaulting flag_abi_compat_version from
4198 warn_abi_version.
4199
bb0f14ae
MS
42002018-06-12 Martin Sebor <msebor@redhat.com>
4201
4202 PR c/85931
4203 * c-warn.c (sizeof_pointer_memaccess_warning): Avoid warning when
4204 sizeof source and destination yields the same value.
4205
3713f2e2
ML
42062018-06-12 Martin Liska <mliska@suse.cz>
4207
4208 * c.opt: Make MPX-related options as Deprecated.
4209
4af78ef8
DM
42102018-06-08 David Malcolm <dmalcolm@redhat.com>
4211
4212 * c-pretty-print.c (c_pretty_printer::statement): Use TDF_NONE
4213 rather than 0.
4214
31db0fe0
ML
42152018-06-08 Martin Liska <mliska@suse.cz>
4216
4217 * c-attribs.c (handle_bnd_variable_size_attribute): Remove support
4218 for MPX (macros, related functions, fields in cgraph_node, ...).
4219 (handle_bnd_legacy): Likewise.
4220 (handle_bnd_instrument): Likewise.
4221 * c.opt: Likewise.
4222
fe16acf2
JJ
42232018-06-06 Jakub Jelinek <jakub@redhat.com>
4224
4225 PR c++/86068
4226 * c-cppbuiltin.c (c_cpp_builtins): Fix a typo, set
4227 __cpp_transactional_memory to 201500 instead of 210500.
4228
4dbdb49b
JM
42292018-06-06 Jason Merrill <jason@redhat.com>
4230
4231 PR c++/85710 - ICE with -Wmemset-elt-size.
4232 * c-warn.c (warn_for_memset): Don't crash on incomplete element type.
4233
f8ad043f
JM
42342018-06-01 Jason Merrill <jason@redhat.com>
4235
4236 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_deduction_guides to
4237 201703.
4238
abc24d93
EB
42392018-06-01 Eric Botcazou <ebotcazou@adacore.com>
4240
4241 * c-ada-spec.c (dump_ada_declaration) <TYPE_DECL>: Generate a forward
4242 declaration for a typedef independently of whether the declaration of
4243 the subtype is generated.
4244
d258f4aa
MS
42452018-05-31 Martin Sebor <msebor@redhat.com>
4246
4247 PR c/82063
4248 * c.opt (-Wno-alloc-size-larger-than): New option.
4249
b67b9225
DP
42502018-04-22 David Pagan <dave.pagan@oracle.com>
4251
4252 PR c/55976
4253 * c-opts.c (c_common_post_options): Set default for warn_return_type
ab20d992 4254 for C++/C++ with ObjC extensions only. For C, makes it possible to
b67b9225
DP
4255 differentiate between default (no option), -Wreturn-type, and
4256 -Wno-return-type.
4257
04eb9c55
JM
42582018-05-29 Jason Merrill <jason@redhat.com>
4259
4260 * c.opt (Winit-list-lifetime): New flag.
4261
b0c31bc6
BE
42622018-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
4263
4264 * c-lex.c (get_fileinfo): Use splay_tree_compare_strings and
4265 splay_tree_delete_pointers.
4266
44284983
JJ
42672018-05-26 Jakub Jelinek <jakub@redhat.com>
4268
4269 PR bootstrap/85921
4270 * c-warn.c (diagnose_mismatched_attributes): Remove unnecessary
4271 noinline variable to workaround broken kernel headers.
4272
b46b715d
JM
42732018-05-18 Jason Merrill <jason@redhat.com>
4274
4275 * c.opt (Wdeprecated-copy): New flag.
4276
40659769
ML
42772018-05-17 Martin Liska <mliska@suse.cz>
4278
4279 * c-warn.c (overflow_warning): Do not use
4280 space in between 'G_' and '('.
4281
403962ea
JM
42822018-05-09 Jason Merrill <jason@redhat.com>
4283
4284 * c-common.c (valid_array_size_p): Add complain parameter.
4285 * c-common.h: ...which defaults to true.
4286
1c9ee609
JJ
42872018-05-11 Jakub Jelinek <jakub@redhat.com>
4288
4289 PR c/85696
4290 * c-omp.c (c_omp_predetermined_sharing): Return
4291 OMP_CLAUSE_DEFAULT_SHARED for artificial vars with integral type.
4292
19916065
ML
42932018-05-11 Martin Liska <mliska@suse.cz>
4294
92a285c1 4295 PR sanitizer/85556
19916065
ML
4296 * c-attribs.c (handle_no_sanitize_attribute): Iterate all
4297 TREE_LIST values.
4298
79e7b1fe
JJ
42992018-05-10 Jakub Jelinek <jakub@redhat.com>
4300
4301 PR c++/85662
4302 * c-common.h (fold_offsetof_1): Removed.
4303 (fold_offsetof): Add TYPE argument defaulted to size_type_node and
4304 CTX argument defaulted to ERROR_MARK.
4305 * c-common.c (fold_offsetof_1): Renamed to ...
4306 (fold_offsetof): ... this. Remove wrapper function. Add TYPE
4307 argument, convert the pointer constant to TYPE and use size_binop
4308 with PLUS_EXPR instead of fold_build_pointer_plus if type is not
4309 a pointer type. Adjust recursive calls.
4310
86c12f76
EB
43112018-05-10 Eric Botcazou <ebotcazou@adacore.com>
4312
4313 PR c++/85400
4314 * c-attribs.c (handle_visibility_attribute): Do not set no_add_attrs.
4315
ee336e84
NS
43162018-05-07 Nathan Sidwell <nathan@acm.org>
4317
4318 * c.opt (ffor-scope): Remove functionality, issue warning.
4319
6c072e21
NS
43202018-05-03 Nathan Sidwell <nathan@acm.org>
4321
4322 * c.opt (ffriend-injection): Remove functionality, issue warning.
4323
2cc7d3a7
DM
43242018-05-01 David Malcolm <dmalcolm@redhat.com>
4325
4326 PR c/84258
4327 * c-format.c (struct format_check_results): Add field
4328 "number_non_char".
4329 (check_format_info): Initialize it, and warn if encountered.
4330 (check_format_arg): Distinguish between wide char and
4331 everything else when detecting arrays of non-char.
4332
7761dfbe
DM
43332018-04-30 David Malcolm <dmalcolm@redhat.com>
4334
4335 * c-format.c (get_corrected_substring): Update for
4336 location_get_source_line returning a char_span. Use a char_span
4337 when handling the prefix of the correction.
4338 * c-indentation.c (get_visual_column): Update for
4339 location_get_source_line returning a char_span.
4340 (get_first_nws_vis_column): Likewise.
4341
62e98ef1
DM
43422018-03-29 David Malcolm <dmalcolm@redhat.com>
4343
4344 PR c++/84269
4345 * known-headers.cc (get_stdlib_header_for_name): Add various names
4346 from <assert.h>, <string.h>, and <memory.h>; add more names from
4347 <stdio.h>.
4348
a7dea617
JJ
43492018-03-27 Jakub Jelinek <jakub@redhat.com>
4350
4351 PR c++/85061
4352 * c-common.c (fold_offsetof_1) <case COMPOUND_EXPR>: Assert that
4353 get_base_address of the second operand is a VAR_P, rather than the
4354 operand itself, and use gcc_checking_assert instead of gcc_assert.
4355
889a3a30
MP
43562018-03-23 Marek Polacek <polacek@redhat.com>
4357
4358 PR c++/85045
4359 * c-pretty-print.c (c_pretty_printer::multiplicative_expression)
4360 <case RDIV_EXPR>: Tweak condition.
4361
452154b9
EB
43622018-03-20 Eric Botcazou <ebotcazou@adacore.com>
4363
4364 * c-ada-spec.c (pp_ada_tree_identifier): Deal specifically with _Bool.
4365
63ecb626
JJ
43662018-03-16 Jakub Jelinek <jakub@redhat.com>
4367
ce811fc4
JJ
4368 PR c/84909
4369 * c-warn.c (conversion_warning): Replace "to to" with "to" in
4370 diagnostics.
4371
63ecb626
JJ
4372 PR c/84910
4373 * c-warn.c (diagnose_mismatched_attributes): Remove trailing space from
4374 diagnostics.
4375
a1295eec
RB
43762018-03-16 Richard Biener <rguenther@suse.de>
4377
4378 PR c/84873
4379 * c-gimplify.c (c_gimplify_expr): Revert previous change. Instead
4380 unshare the possibly folded expression.
4381
919674fb
RB
43822018-03-15 Richard Biener <rguenther@suse.de>
4383
4384 PR c/84873
4385 * c-gimplify.c (c_gimplify_expr): Do not fold expressions.
4386
f99309b2
MS
43872018-03-13 Martin Sebor <msebor@redhat.com>
4388
4389 PR tree-optimization/84725
4390 * c-attribs.c (handle_nonstring_attribute): Allow attribute nonstring
4391 with all three narrow character types, including their qualified forms.
4392
e9b9fa4c
MS
43932018-03-12 Martin Sebor <msebor@redhat.com>
4394
4395 PR tree-optimization/83456
ab20d992 4396 * c-common.c (check_function_restrict): Return bool.
e9b9fa4c
MS
4397 Restore checking of bounded built-in functions.
4398 (check_function_arguments): Also return the result
4399 of warn_for_restrict.
ab20d992
JJ
4400 * c-common.c (check_function_restrict): Return bool.
4401 * c-warn.c (warn_for_restrict): Return bool.
e9b9fa4c 4402
0805d020
MP
44032018-03-02 Marek Polacek <polacek@redhat.com>
4404
4405 PR c++/84171
4406 * c-warn.c (warn_for_sign_compare): Bail out if any of the operands
4407 is erroneous.
4408
ed2a2f08
TS
44092018-03-02 Thomas Schwinge <thomas@codesourcery.com>
4410
4411 * c-attribs.c (c_common_attribute_table): Remove "cilk simd
4412 function".
4413
90abdde0
MP
44142018-03-01 Marek Polacek <polacek@redhat.com>
4415
4416 PR c++/84639
4417 * c-attribs.c (common_handle_aligned_attribute): Don't use invalid
4418 alignment in computation.
4419
c6db43fa
EB
44202018-02-28 Eric Botcazou <ebotcazou@adacore.com>
4421
4422 * c-ada-spec.c (dump_ada_node) <NULLPTR_TYPE>: New case.
4423 <REAL_TYPE>: Deal specifically with _Float128/__float128.
4424
9e25c7ed
EB
44252018-02-28 Eric Botcazou <ebotcazou@adacore.com>
4426
4427 * c-ada-spec.c (dump_ada_double_name) <ENUMERAL_TYPE>: New case.
4428 (is_char_array): Take a type instead of a declaration.
4429 (dump_ada_array_type): Likewise.
4430 (is_simple_enum): Minor tweak.
4431 (dump_ada_enum_type): New function extracted from...
4432 (dump_ada_node) <ENUMERAL_TYPE>: ...here. Invoke it.
4433 <INTEGER_TYPE>: Remove unreachable code.
4434 <RECORD_TYPE>: Likewise. Minor tweaks.
4435 (dump_nested_type) <ARRAY_TYPE>: Adjust to above changes.
4436 <ENUMERAL_TYPE>: New case.
4437 <RECORD_TYPE>: Factor out common code.
4438 (dump_ada_declaration) <ARRAY_TYPE>: Adjust to above changes.
4439 Minor tweaks. Deal with enumeral types.
4440 (dump_ada_structure): Minor tweaks.
4441
09de3550
EB
44422018-02-28 Eric Botcazou <ebotcazou@adacore.com>
4443
4444 * c-ada-spec.c (dump_ada_node) <POINTER_TYPE>: Do not use generic
4445 address for incomplete structures.
4446 (dump_forward_type): Do not bail out for incomplete structures.
4447 (dump_ada_declaration): Do not special-case incomplete structures
4448 for subtypes. Dump them as null records for types.
4449
095d8d4b
EB
44502018-02-28 Eric Botcazou <ebotcazou@adacore.com>
4451
4452 * c-ada-spec.c (dump_ada_import): Use boolean and fix formatting.
4453 (is_char_array): Fix formatting.
4454 (dump_template_types): Likewise.
4455 (dump_generic_ada_node): Rename into...
4456 (dump_ada_node): ...this.
4457 <POINTER_TYPE>: Remove superfluous space. Use generic address for
4458 incomplete structures and not for empty structures. Do not use it
4459 when forward declarations are needed.
4460 (dump_forward_type): New function.
4461 (dump_nested_types): Remove FORWARD parameter. Do not consider
4462 TREE_VISITED and do not generate a forward declaration. Only dump
4463 original nested types for nested declaration.
4464 (dump_nested_type) <POINTER_TYPE>: Call dump_forward_type.
4465 <ARRAY_TYPE>: Likewise if the component type is an anonymous pointer.
4466 <RECORD_TYPE>: Do not consider TREE_VISITED.
4467 (dump_ada_declaration): Use booleans and fix formatting throughout.
4468 <TYPE_DECL>: Skip incomplete structures and not empty structures.
4469 Call dump_forward_type instead of dump_nested_types for a typedef.
4470 Remove superfluous check and adjust call to dump_nested_types.
4471 <POINTER_TYPE>: Call dump_forward_type and fall through.
4472 (dump_ada_struct_decl): Rename into...
4473 (dump_ada_structure): ...this. Do not special-case empty structures.
4474
d4cfd486
MS
44752018-02-27 Martin Sebor <msebor@redhat.com>
4476
4477 PR c++/83871
4478 * c.opt (-Wmissing-attributes): New option.
4479
b22dbd03
ML
44802018-02-21 Martin Liska <mliska@suse.cz>
4481
4482 * c.opt (Wcatch-value=): Add IntegerRange.
4483
883dfe2a
JM
44842018-02-15 Jason Merrill <jason@redhat.com>
4485
4486 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_deduction_guides.
4487
0444aa9c
NS
44882018-02-09 Nathan Sidwell <nathan@acm.org>
4489
4490 PR c/84293
4491 * c-common.h (strict_aliasing_warning): Drop OTYPE arg, insert LOC
4492 arg.
4493 * c-warn.c (strict_aliasing_warning): Drop OTYPE arg, require LOC
4494 arg. Adjust.
4495
cea71f0a
MS
44962018-02-09 Martin Sebor <msebor@redhat.com>
4497
4498 PR lto/84212
4499 * c.opt (-Wstringop-overflow, -Warray-bounds): Add LTO.
4500 (-Walloc-size-larger-than, -Wformat-truncation=): Same.
4501 (-Wmaybe-uninitialized, -Wnonnull, -Wrestrict): Same.
4502 (-Wstrict-overflow, -Wsuggest-attribute): Same.
4503 (-Wuninitialized): Same.
4504
8c8b7be5
EB
45052018-02-09 Eric Botcazou <ebotcazou@adacore.com>
4506
4507 * c-ada-spec.c (dump_ada_declaration): Do not generate the 'constant'
4508 keyword for components.
4509
7c30b12a
PC
45102018-02-02 Paolo Carlini <paolo.carlini@oracle.com>
4511
4512 * c-common.h (DECL_UNNAMED_BIT_FIELD): New.
4513
eece7fe5
JK
45142018-02-02 Julia Koval <julia.koval@intel.com>
4515
4516 * c-common.h (omp_clause_mask): Move to wide_int_bitmask.h.
4517
7d07a93a
MP
45182018-01-29 Marek Polacek <polacek@redhat.com>
4519
4520 PR c/83966
4521 * c-format.c (check_function_format): Check current_function_decl.
4522
53723269
JJ
45232018-01-27 Jakub Jelinek <jakub@redhat.com>
4524
4525 * c-cppbuiltin.c (c_cpp_builtins): Use ggc_strdup for the fp_suffix
4526 argument.
4527 (LAZY_HEX_FP_VALUES_CNT): Define.
4528 (lazy_hex_fp_values): Allow up to LAZY_HEX_FP_VALUES_CNT lazy hex fp
4529 values rather than just 12.
4530 (builtin_define_with_hex_fp_value): Likewise.
4531
7365279f
BK
45322018-01-18 Boris Kolpackov <boris@codesynthesis.com>
4533
92a285c1
ML
4534 PR other/70268
4535 * c.opt (-fmacro-prefix-map): New option.
4536 * c-opts.c (c_common_handle_option): Handle it.
4537 * c-lex.c (init_c_lex): Set remap_filename cpp callback.
4538 * c-ppoutput.c (init_pp_output): Likewise.
7365279f 4539
bb9869d5
DM
45402018-01-17 David Malcolm <dmalcolm@redhat.com>
4541
4542 PR c++/83814
4543 * c-common.c (fold_for_warn): Move to c/c-fold.c and cp/expr.c.
4544
68dc87c3
EB
45452018-01-10 Eric Botcazou <ebotcazou@adacore.com>
4546
4547 * c-ada-spec.c (dump_number): Add FLOAT_P parameter.
4548 Skip 'f' and 'F' characters if it is true.
4549 (store_ada_macro): Minor tweak.
4550 (dump_ada_macros) <CPP_COMMENT>: Likewise.
4551 <CPP_WSTRING>: Likewise.
4552 <CPP_STRING>: Output '&' in the buffer if not the first string.
4553 <CPP_NUMBER>: Adjust calls to dump_number.
4554
9a004410
DM
45552018-01-10 David Malcolm <dmalcolm@redhat.com>
4556
4557 PR c++/43486
4558 * c-common.c: Include "selftest.h".
4559 (get_atomic_generic_size): Perform the test for integral type
4560 before the range test for any integer constant, fixing indentation
4561 of braces. Call fold_for_warn before testing for an INTEGER_CST.
4562 (reject_gcc_builtin): Strip any location wrapper from EXPR.
4563 (selftest::test_fold_for_warn): New function.
4564 (selftest::c_common_c_tests): New function.
4565 (selftest::c_family_tests): Call it, and
4566 selftest::c_pretty_print_c_tests.
4567 * c-common.h (selftest::c_pretty_print_c_tests): New decl.
4568 * c-format.c (check_format_arg): Convert VAR_P check to a
4569 fold_for_warn.
4570 * c-pretty-print.c: Include "selftest.h".
4571 (pp_c_cast_expression): Don't print casts for location wrappers.
4572 (selftest::assert_c_pretty_printer_output): New function.
4573 (ASSERT_C_PRETTY_PRINTER_OUTPUT): New macro.
4574 (selftest::test_location_wrappers): New function.
4575 (selftest::c_pretty_print_c_tests): New function.
4576 * c-warn.c (warn_for_memset): Call fold_for_warn on the arguments.
4577
5c0caeb3
RS
45782018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
4579 Alan Hayward <alan.hayward@arm.com>
4580 David Sherwood <david.sherwood@arm.com>
4581
4582 * c-common.c (c_common_type_for_mode): Handle MODE_VECTOR_BOOL.
4583
73a699ae
RS
45842018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
4585 Alan Hayward <alan.hayward@arm.com>
4586 David Sherwood <david.sherwood@arm.com>
4587
4588 * c-ubsan.c (ubsan_instrument_shift): Treat GET_MODE_BITSIZE
4589 as polynomial.
4590
928686b1
RS
45912018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
4592 Alan Hayward <alan.hayward@arm.com>
4593 David Sherwood <david.sherwood@arm.com>
4594
4595 * c-common.c (vector_types_convertible_p, c_build_vec_perm_expr)
4596 (convert_vector_to_array_for_subscript): Handle polynomial
4597 TYPE_VECTOR_SUBPARTS.
4598 (c_common_type_for_mode): Check valid_vector_subparts_p.
4599 * c-pretty-print.c (pp_c_initializer_list): Handle polynomial
4600 VECTOR_CST_NELTS.
4601
85ec4feb
JJ
46022018-01-03 Jakub Jelinek <jakub@redhat.com>
4603
4604 Update copyright years.
4605
170a8bd6 46062017-12-22 Mike Stump <mikestump@comcast.net>
92a285c1 4607 Eric Botcazou <ebotcazou@adacore.com>
170a8bd6
EB
4608
4609 * c-pragma.c (init_pragma): Register pragma GCC unroll.
4610 * c-pragma.h (enum pragma_kind): Add PRAGMA_UNROLL.
4611
ab20d992 46122017-12-22 Alexandre Oliva <aoliva@redhat.com>
18408e96
AO
4613
4614 PR debug/83527
4615 PR debug/83419
4616 * c-semantics.c (only_debug_stmts_after_p): New.
4617 (pop_stmt_list): Clear side effects in debug-only stmt list.
4618 Check for single nondebug stmt followed by debug stmts only.
4619
c12d20d4
AO
46202017-12-21 Alexandre Oliva <aoliva@redhat.com>
4621
4622 PR debug/83419
4623 * c-semantics.c (pop_stmt_list): Propagate side effects from
4624 single nondebug stmt to container list.
4625
01512446
JJ
46262017-12-19 Jakub Jelinek <jakub@redhat.com>
4627
4628 * known-headers.cc (get_stdlib_header_for_name): Replace Yoda
4629 conditions with typical order conditions.
4630
82cfbd01
MP
46312017-12-18 Marek Polacek <polacek@redhat.com>
4632
4633 * c-warn.c (warn_logical_operator): Return early if -Wlogical-op is
4634 not in effect.
4635
99da11ec
MS
46362017-12-17 Martin Sebor <msebor@redhat.com>
4637
4638 * c-attribs.c (common_handle_aligned_attribute): Avoid issuing
4639 an error for attribute warn_if_not_aligned.
4640
cc8bea0a
MS
46412017-12-16 Martin Sebor <msebor@redhat.com>
4642
4643 PR tree-optimization/78918
4644 * c-common.c (check_function_restrict): Avoid checking built-ins.
4645 * c.opt (-Wrestrict): Include in -Wall.
4646
4849deb1
JJ
46472017-12-15 Jakub Jelinek <jakub@redhat.com>
4648
4649 * c-attribs.c (c_common_attribute_table,
4650 c_common_format_attribute_table): Swap affects_type_identity
4651 and handler fields, adjust comments.
4652
c65e18d3
BE
46532017-12-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
4654
4655 * c.opt (Wcast-function-type): New warning option.
4656 * c-lex.c (get_fileinfo): Avoid warning.
4657 * c-ppoutput.c (scan_translation_unit_directives_only): Remove cast.
4658
2004617a
QZ
46592017-12-14 Qing Zhao <qing.zhao@oracle.com>
4660
7365279f 4661 PR middle_end/79538
2004617a
QZ
4662 * c-cppbuiltin.c (builtin_define_with_hex_fp_value):
4663 Adjust the size of buf1 and buf2, add a new buf to avoid
4664 format-overflow warning.
4665
ab20d992 46662017-12-12 Alexandre Oliva <aoliva@redhat.com>
96a95ac1
AO
4667
4668 * c-semantics.c (pop_stmt_list): Move begin stmt marker into
4669 subsequent statement list.
4670
5d9ae53d
MS
46712017-12-07 Martin Sebor <msebor@redhat.com>
4672
4673 PR c/81544
4674 PR c/81566
4675 * c-attribs.c (attr_aligned_exclusions): New array.
4676 (attr_alloc_exclusions, attr_cold_hot_exclusions): Same.
4677 (attr_common_exclusions, attr_const_pure_exclusions): Same.
4678 (attr_gnu_inline_exclusions, attr_inline_exclusions): Same.
4679 (attr_noreturn_exclusions, attr_returns_twice_exclusions): Same.
4680 (attr_warn_unused_result_exclusions): Same.
4681 (handle_hot_attribute, handle_cold_attribute): Simplify.
4682 (handle_const_attribute): Warn on function returning void.
4683 (handle_pure_attribute): Same.
4684 (handle_aligned_attribute): Diagnose conflicting attribute
4685 specifications.
4686 * c-warn.c (diagnose_mismatched_attributes): Simplify.
4687
c79144f8
DM
46882017-12-06 David Malcolm <dmalcolm@redhat.com>
4689
4690 PR c/83236
4691 * c-common.c (selftest::c_family_tests): Call
4692 selftest::c_spellcheck_cc_tests.
4693 * c-common.h (selftest::c_spellcheck_cc_tests): New decl.
4694 * c-spellcheck.cc: Include "selftest.h".
4695 (name_reserved_for_implementation_p): New function.
4696 (should_suggest_as_macro_p): New function.
4697 (find_closest_macro_cpp_cb): Move the check for NT_MACRO to
4698 should_suggest_as_macro_p and call it.
4699 (selftest::test_name_reserved_for_implementation_p): New function.
4700 (selftest::c_spellcheck_cc_tests): New function.
4701 * c-spellcheck.h (name_reserved_for_implementation_p): New decl.
4702
613bc14f
DM
47032017-12-06 David Malcolm <dmalcolm@redhat.com>
4704
4705 * c-spellcheck.cc: New file, taken from macro-handling code in
4706 spellcheck-tree.c.
4707 * c-spellcheck.h: New file, taken from macro-handling code in
4708 spellcheck-tree.h.
4709
e76c7157
JJ
47102017-12-01 Jakub Jelinek <jakub@redhat.com>
4711
4712 * c-attribs.c (c_common_attribute_table): Remove "cilk simd function"
4713 attribute.
4714 (handle_simd_attribute): Don't check for "cilk simd function"
4715 attribute. Reindent, formatting changes.
4716
b0da4034
JK
47172017-11-30 Julia Koval <julia.koval@intel.com>
4718
4719 * c-common.h (inv_list): Remove.
4720
058f0b9e
JJ
47212017-11-28 Jakub Jelinek <jakub@redhat.com>
4722
4723 PR sanitizer/81275
4724 * c-common.c (c_switch_covers_all_cases_p_1,
4725 c_switch_covers_all_cases_p): New functions.
4726 * c-common.h (c_switch_covers_all_cases_p): Declare.
4727
5e9d6aa4 47282017-11-28 Julia Koval <julia.koval@intel.com>
92a285c1 4729 Sebastian Peryt <sebastian.peryt@intel.com>
5e9d6aa4
JK
4730
4731 * array-notation-common.c: Delete.
4732 * c-cilkplus.c: Ditto.
4733 * c-common.c (_Cilk_spawn, _Cilk_sync, _Cilk_for): Remove.
4734 * c-common.def (ARRAY_NOTATION_REF): Remove.
4735 * c-common.h (RID_CILK_SPAWN, build_array_notation_expr,
4736 build_array_notation_ref, C_ORT_CILK, c_check_cilk_loop,
4737 c_validate_cilk_plus_loop, cilkplus_an_parts,
4738 cilk_ignorable_spawn_rhs_op,
4739 cilk_recognize_spawn): Remove.
4740 * c-gimplify.c (CILK_SPAWN_STMT): Remove.
4741 * c-omp.c: Remove CILK_SIMD check.
4742 * c-pragma.c: Ditto.
4743 * c-pragma.h: Remove CILK related pragmas.
4744 * c-pretty-print.c (c_pretty_printer::postfix_expression): Remove
4745 ARRAY_NOTATION_REF condition.
4746 (c_pretty_printer::expression): Ditto.
4747 * c.opt (fcilkplus): Remove.
4748 * cilk.c: Delete.
4749
1af4ebf5
MG
47502017-11-21 Marc Glisse <marc.glisse@inria.fr>
4751
4752 * c-pretty-print.c (pp_c_additive_expression,
4753 c_pretty_printer::expression): Handle POINTER_DIFF_EXPR.
4754
d44ed508
JJ
47552017-11-21 Jakub Jelinek <jakub@redhat.com>
4756
7d2f0f9b
JJ
4757 * c-common.c (get_nonnull_operand): Use tree_to_uhwi.
4758
d44ed508
JJ
4759 PR c++/83059
4760 * c-common.c (get_atomic_generic_size): Use TREE_INT_CST_LOW
4761 instead of tree_to_uhwi, formatting fix.
4762
26edace6
DM
47632017-11-20 David Malcolm <dmalcolm@redhat.com>
4764
4765 PR c/81404
4766 * known-headers.cc: New file, based on material from c/c-decl.c.
4767 (suggest_missing_header): Copied as-is.
4768 (get_stdlib_header_for_name): New, based on get_c_name_hint but
4769 heavily edited to add C++ support. Add some knowledge about
4770 <limits.h>, <stdint.h>, and <wchar.h>.
4771 * known-headers.h: Likewise.
4772
6c7a259b
DM
47732017-11-20 David Malcolm <dmalcolm@redhat.com>
4774
4775 * c-common.h (enum lookup_name_fuzzy_kind): Move to name-hint.h.
4776 (lookup_name_fuzzy): Likewise. Convert return type from
4777 const char * to name_hint. Add location_t param.
4778 * name-hint.h: New header.
4779
f9c59f7e
JJ
47802017-11-19 Jakub Jelinek <jakub@redhat.com>
4781
4782 PR c/66618
4783 PR c/69960
4784 * c-common.h (c_fully_fold): Add LVAL argument defaulted to false.
4785
1e39313a
JM
47862017-11-16 Joseph Myers <joseph@codesourcery.com>
4787
4788 * c.opt (-std=c17, std=gnu17, -std=iso9899:2017): Refer to 2018
4789 expected publication date of C17.
4790 (-std=c18, -std=gnu18, -std=iso9899:2018): New option aliases.
4791
3ca0dc60
JM
47922017-11-15 Joseph Myers <joseph@codesourcery.com>
4793
4794 PR c/81156
4795 * c-common.c (c_common_reswords): Add __builtin_tgmath.
4796 * c-common.h (enum rid): Add RID_BUILTIN_TGMATH.
4797
025d57f0
MS
47982017-11-10 Martin Sebor <msebor@redhat.com>
4799
4800 PR c/81117
4801 * c-common.c (catenate_strings): Use memcpy instead of strncpy.
4802 * c-warn.c (sizeof_pointer_memaccess_warning): Handle arrays.
4803 * c.opt (-Wstringop-truncation): New option.
4804
1b6fa695
ML
48052017-11-06 Martin Liska <mliska@suse.cz>
4806
4807 PR middle-end/82404
4808 * c-opts.c (c_common_post_options): Set -Wreturn-type for C++
4809 FE.
4810 * c.opt: Set default value of warn_return_type.
4811
64a5912c
DM
48122017-10-31 David Malcolm <dmalcolm@redhat.com>
4813
4814 * c-common.c (binary_op_error): Update for renaming of
4815 error_at_rich_loc.
4816 (c_parse_error): Likewise.
4817 * c-warn.c (warn_logical_not_parentheses): Likewise for
4818 renaming of inform_at_rich_loc.
4819 (warn_for_restrict): Likewise for renaming of
4820 warning_at_rich_loc_n.
4821
c76dc9c3
JM
48222017-10-30 Joseph Myers <joseph@codesourcery.com>
4823
4824 * c.opt (std=c17, std=gnu17, std=iso9899:2017): New options.
4825 * c-opts.c (set_std_c17): New function.
4826 (c_common_init_options): Use gnu17 as default C version.
4827 (c_common_handle_option): Handle -std=c17 and -std=gnu17.
4828
ee5fd23a
MM
48292017-10-27 Michael Meissner <meissner@linux.vnet.ibm.com>
4830
4831 * c-cppbuiltin.c (mode_has_fma): Add support for PowerPC KFmode.
4832 (c_cpp_builtins): If a machine has a fast fma _Float<N> and
4833 _Float<N>X variant, define __FP_FAST_FMA<N> and/or
4834 __FP_FAST_FMA<N>X.
4835
d1047465
MP
48362017-10-23 Marek Polacek <polacek@redhat.com>
4837
4838 PR c/82681
4839 * c-warn.c (warnings_for_convert_and_check): Fix typos.
4840
9e878cf1
EB
48412017-10-19 Eric Botcazou <ebotcazou@adacore.com>
4842
4843 * c-common.c (check_builtin_function_arguments): Also check arguments
4844 of __builtin_alloca_with_align_and_max.
4845
89b6abbb
DM
48462017-10-17 David Malcolm <dmalcolm@redhat.com>
4847
4848 * c-format.c (format_warning_at_char): Pass UNKNOWN_LOCATION
4849 rather than NULL to format_warning_va.
4850 (check_format_types): Likewise when calling format_type_warning.
4851 Remove code to extract source_ranges and source_range * in favor
4852 of just a location_t.
4853 (format_type_warning): Convert source_range * param to a
4854 location_t.
4855
39382c09
JJ
48562017-10-13 Jakub Jelinek <jakub@redhat.com>
4857
4858 * c-gimplify.c (c_gimplify_expr): Handle [LR]ROTATE_EXPR like
4859 [LR]SHIFT_EXPR.
4860
62e1c678
DM
48612017-10-12 David Malcolm <dmalcolm@redhat.com>
4862
4863 * c-common.c (enum missing_token_insertion_kind): New enum.
4864 (get_missing_token_insertion_kind): New function.
4865 (maybe_suggest_missing_token_insertion): New function.
4866 * c-common.h (maybe_suggest_missing_token_insertion): New decl.
4867
b90c9338
NS
48682017-10-11 Nathan Sidwell <nathan@acm.org>
4869
4870 * c-opts.c (add_prefixed_path): Change chain to incpath_kind.
4871 (c_common_handle_option): Update incpath_kind names.
4872
3a266bcd
ML
48732017-10-11 Martin Liska <mliska@suse.cz>
4874
4875 PR sanitizer/82490
4876 * c-attribs.c (handle_no_sanitize_attribute): Report directly
4877 Wattributes warning.
4878
8e6cdc90
RS
48792017-10-10 Richard Sandiford <richard.sandiford@linaro.org>
4880
4881 * c-ada-spec.c (dump_generic_ada_node): Use wi::to_wide when
4882 operating on trees as wide_ints.
4883 * c-common.c (pointer_int_sum): Likewise.
4884 * c-pretty-print.c (pp_c_integer_constant): Likewise.
4885 * c-warn.c (match_case_to_enum_1): Likewise.
4886 (c_do_switch_warnings): Likewise.
4887 (maybe_warn_shift_overflow): Likewise.
4888
802b38c9
JJ
48892017-10-10 Jakub Jelinek <jakub@redhat.com>
4890
4891 PR c/82437
4892 * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_wide
4893 instead of wide_int::from.
4894
4e34b338
JJ
48952017-10-06 Jakub Jelinek <jakub@redhat.com>
4896
4897 PR c/82437
4898 * c-warn.c (warn_tautological_bitwise_comparison): Instead of
4899 using to_widest use wide_int with the larger of the two precisions.
4900
4bc4b2b4
BE
49012017-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
4902
4903 * c-pretty-print.c (pp_c_parameter_type_list): Print ... for variadic
4904 functions.
4905
a1488398
RS
49062017-10-02 Richard Sandiford <richard.sandiford@linaro.org>
4907
4908 * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_widest
4909 when combining the original unconverted comparison operands.
4910
01c9fb68
JJ
49112017-09-29 Jakub Jelinek <jakub@redhat.com>
4912
4913 * c-attribs.c (handle_noipa_attribute): Don't add "stack_protect"
4914 attribute.
4915
6e3e8419
EB
49162017-09-29 Eric Botcazou <ebotcazou@adacore.com>
4917
4918 * c-ada-spec.c (to_ada_name): Add index parameter.
4919 (pp_ada_tree_identifier): Likewise.
4920 (dump_ada_macros): Adjust call to to_ada_name.
4921 (struct overloaded_name_hash): New type.
4922 (struct overloaded_name_hasher): Likewise.
4923 (overloaded_names): New hash table.
4924 (compute_overloading_index): New function.
4925 (dump_ada_decl_name): Call it and pass the result to
4926 pp_ada_tree_identifier.
4927 (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
4928 (dump_ada_function_declaration): Likewise.
4929 (dump_generic_ada_node): Likewise.
4930 (print_constructor): Likewise.
4931 (print_destructor): Likewise.
4932 (dump_ada_specs): Delete overloaded_names table.
4933
79310774
EB
49342017-09-29 Eric Botcazou <ebotcazou@adacore.com>
4935
4936 * c-ada-spec.c (max_ada_macros): Move around.
4937 (store_ada_macro_index): Likewise.
4938 (source_file): Rename into...
4939 (macro_source_file): ...this.
4940 (count_ada_macro): Move around.
4941 (store_ada_macro): Likewise.
4942 (compare_macro): Likewise.
4943 (print_ada_macros): Merge in...
4944 (dump_ada_macros): ...this.
4945 (source_file_base): Rename into...
4946 (current_source_file): ...this.
4947 (print_comment): Move around.
4948 (dump_ada_nodes): Call dump_ada_declaration directly.
4949 (struct with): Change type of limited field to bool.
4950 (append_withs): Change type of limited_access parameter to bool.
4951 (pp_ada_tree_identifie): Likewise.
4952 (dump_ada_decl_nam): Likewise.
4953 (dump_generic_ada_node): Likewise. Do not print the return type.
4954 (to_ada_name): Change type of space_found parameter to bool.
4955 (dump_ada_function_declaration): Return void and change type of
4956 parameters to bool. Also print the return type for a function.
4957 (print_ada_methods): Rename into...
4958 (dump_ada_methods): ...this.
4959 (print_ada_declaration): Rename into ...
4960 (dump_ada_declaration): ...this. Do not print the return type.
4961 (print_ada_struct_decl): Rename into...
4962 (dump_ada_struct_decl): ...this.
4963
7d386d45
JJ
49642017-09-29 Jakub Jelinek <jakub@redhat.com>
4965
4966 * c-attribs.c (handle_packed_attribute): Test DECL_C_BIT_FIELD
4967 rather than DECL_INITIAL.
4968 (common_handle_aligned_attribute): Likewise.
4969
ab20d992 49702017-09-20 Alexandre Oliva <aoliva@redhat.com>
9ed32e27
AO
4971
4972 * c.opt (gen-decls): Add RejectNegative.
4973
026a79f7
AS
49742017-09-15 Andrew Sutton <andrew.n.sutton@gmail.com>
4975 Jakub Jelinek <jakub@redhat.com>
4976
4977 Add support for -std=c++2a.
4978 * c-common.h (cxx_dialect): Add cxx2a as a dialect.
4979 * opt.c: Add options for -std=c++2a and -std=gnu++2a.
4980 * c-opts.c (set_std_cxx2a): New.
4981 (c_common_handle_option): Set options when -std=c++2a is enabled.
4982 (c_common_post_options): Adjust comments.
4983 (set_std_cxx14, set_std_cxx17): Likewise.
4984
4a8ca690
EB
49852017-09-15 Eric Botcazou <ebotcazou@adacore.com>
4986
4987 * c-pragma.c (handle_pragma_scalar_storage_order): Expand on error
4988 message for non-uniform endianness and issue a warning in C++.
4989
7b936140
JJ
49902017-09-15 Jakub Jelinek <jakub@redhat.com>
4991
4992 * c.opt (Wc++1z-compat): Change from option to undocumented alias.
4993 (Wc++17-compat): Change from undocumented alias to option.
4994 (Wnoexcept-type): Enable by Wc++17-compat instead of Wc++1z-compat,
4995 change C++1z to C++17 in description.
4996 (std=c++1z, std=gnu++1z): Change from option to undocumented
4997 deprecated alias.
4998 (std=c++17, std=gnu++17): Change from undocumented alias to option.
4999 Adjust description.
5000 * c-common.h (enum cxx_dialect): Rename cxx1z to cxx17.
5001 * c-opts.c (set_std_cxx1z): Rename to ...
5002 (set_std_cxx17): ... this.
5003 (c_common_handle_option): Rename OPT_std_c__1z to OPT_std_c__17
5004 and OPT_std_gnu__1z to OPT_std_gnu__17. Adjust set_std_cxx1z
7365279f 5005 caller.
7b936140
JJ
5006 (c_common_post_options): Use cxx17 instead of cxx1z. Adjust
5007 comments.
5008
12263f13
L
50092017-09-12 H.J. Lu <hongjiu.lu@intel.com>
5010
5011 * c-attribs.c (common_handle_aligned_attribute): Don't warn
5012 function alignment if warn_if_not_aligned_p is true.
5013
6836632e
NS
50142017-09-12 Nathan Sidwell <nathan@acm.org>
5015
5016 * c-common.c (field_decl_cmp, resort_data, resort_field_decl_cmp,
5017 resort_sorted_fields): Move to c/c-decl.c.
5018 * c-common.h (field_decl_cmp, resort_sorted_fields): Delete.
5019 (struct sorted_fields_type): Move to c/c-lang.h.
5020
019bf9ad
JW
50212017-09-09 Jonathan Wakely <jwakely@redhat.com>
5022
5023 PR c++/81852
5024 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_threadsafe_static_init.
5025
bc7fe952
MP
50262017-09-04 Marek Polacek <polacek@redhat.com>
5027
5028 PR c/81783
5029 * c-warn.c (warn_tautological_bitwise_comparison): New function.
5030 (warn_tautological_cmp): Call it.
5031
ab20d992 50322017-09-01 Boris Kolpackov <boris@codesynthesis.com>
de7c2c6a
BK
5033
5034 * c-opts.c (c_common_finish): Write dependency information even if
5035 there are errors.
5036
d2e05fcb
JJ
50372017-09-01 Jakub Jelinek <jakub@redhat.com>
5038
5039 PR c/81887
5040 * c-pragma.c (omp_pragmas): Move "ordered" entry from here to ...
5041 (omp_pragmas_simd): ... here.
5042 * c-omp.c (c_finish_omp_ordered): If clauses isn't simd clause alone,
5043 create new clauses list containing just simd clause.
5044
18e2a8b8
RS
50452017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
5046 Alan Hayward <alan.hayward@arm.com>
5047 David Sherwood <david.sherwood@arm.com>
5048
5049 * c-attribs.c (vector_mode_valid_p) Fold GET_MODE_INNER call
5050 into scalar_mode_supported_p call.
5051 (handle_mode_attribute): Update call to scalar_mode_supported_p.
5052
16d22000
RS
50532017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
5054 Alan Hayward <alan.hayward@arm.com>
5055 David Sherwood <david.sherwood@arm.com>
5056
5057 * c-common.c (c_common_fixed_point_type_for_size): Use opt_scalar_mode
5058 for the mode iterator.
5059
b397965c
RS
50602017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
5061 Alan Hayward <alan.hayward@arm.com>
5062 David Sherwood <david.sherwood@arm.com>
5063
5064 * c-lex.c (interpret_fixed): Use SCALAR_TYPE_MODE.
5065 * c-common.c (c_build_vec_perm_expr): Likewise.
5066
357b7604
RS
50672017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
5068 Alan Hayward <alan.hayward@arm.com>
5069 David Sherwood <david.sherwood@arm.com>
5070
5071 * c-common.c (c_common_type_for_mode): Use as_a <scalar_int_mode>.
5072
e05c94ba
RS
50732017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
5074 Alan Hayward <alan.hayward@arm.com>
5075 David Sherwood <david.sherwood@arm.com>
5076
5077 * c-attribs.c (handle_mode_attribute): Check for a scalar_int_mode
5078 before calling targetm.addr_space.valid_pointer_mode.
5079
5c20c4af
RS
50802017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
5081 Alan Hayward <alan.hayward@arm.com>
5082 David Sherwood <david.sherwood@arm.com>
5083
5084 * c-cppbuiltin.c (c_cpp_builtins): Use opt_scalar_float_mode.
5085
c94843d2 50862017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
92a285c1
ML
5087 Alan Hayward <alan.hayward@arm.com>
5088 David Sherwood <david.sherwood@arm.com>
c94843d2
RS
5089
5090 * c-common.c (c_common_fixed_point_type_for_size): Use new mode
5091 iterators.
5092 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
5093
4e10a5a7
RS
50942017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
5095 Alan Hayward <alan.hayward@arm.com>
5096 David Sherwood <david.sherwood@arm.com>
5097
5098 * c-cppbuiltin.c (mode_has_fma): Prefix mode names with E_ in
5099 case statements.
5100
130fcab0
ML
51012017-08-29 Martin Liska <mliska@suse.cz>
5102
5103 PR other/39851
5104 * c-common.c (parse_optimize_options): Add argument to function
5105 call.
5106 * c-pragma.c (handle_pragma_diagnostic): Likewise.
5107
14e18d71
DM
51082017-08-24 David Malcolm <dmalcolm@redhat.com>
5109
5110 * c-lex.c (interpret_float): Use token location
5111 when building an EXCESS_PRECISION_EXPR.
5112
2f687306
DM
51132017-08-21 David Malcolm <dmalcolm@redhat.com>
5114
5115 * c-common.c (check_function_arguments): Add "arglogs" param; pass
5116 it to check_function_format.
5117 * c-common.h (check_function_arguments): Add vec<location_t> *
5118 param.
5119 (check_function_format): Likewise.
5120 * c-format.c (struct format_check_context): Add field "arglocs".
5121 (check_function_format): Add param "arglocs"; pass it to
5122 check_format_info.
ab20d992 5123 (check_format_info): Add param "arglocs"; use it to initialize
2f687306
DM
5124 new field of format_ctx.
5125 (check_format_arg): Pass format_ctx->arglocs to new param of
5126 check_format_info_main.
5127 (class argument_parser): New field "arglocs".
5128 (argument_parser::argument_parser): Add "arglocs_" param and use
5129 it to initialize new field.
5130 (argument_parser::check_argument_type): Pass new arglocs field to
5131 check_format_types.
5132 (check_format_info_main): Add param "arglocs", and use it when
5133 constructing arg_parser.
5134 (check_format_types): Add param "arglocs"; use it if non-NULL when
5135 !EXPR_HAS_LOCATION (cur_param) to get at location information.
5136
00aa1fa2
L
51372017-08-18 H.J. Lu <hongjiu.lu@intel.com>
5138
5139 PR c/53037
5140 * c-attribs.c (handle_warn_if_not_aligned_attribute): New.
5141 (c_common_attribute_table): Add warn_if_not_aligned.
5142 (handle_aligned_attribute): Renamed to ...
5143 (common_handle_aligned_attribute): Remove argument, name, and add
5144 argument, warn_if_not_aligned. Handle warn_if_not_aligned.
5145 (handle_aligned_attribute): New.
5146 * c.opt: Add -Wif-not-aligned and -Wpacked-not-aligned.
5147
27be025d
MS
51482017-08-14 Martin Sebor <msebor@redhat.com>
5149
5150 PR c/81117
5151 * c-attribs.c (c_common_attribute_table): Add nonstring entry.
5152 (handle_nonstring_attribute): New function.
5153
da67acb9
MS
51542017-08-14 Martin Sebor <msebor@redhat.com>
5155
5156 PR c/81117
5157 * c-format.h (T89_G): New macro.
5158 * c-format.c (local_gcall_ptr_node): New variable.
5159 (init_dynamic_diag_info): Initialize it.
5160
a8b522b4
ML
51612017-08-11 Martin Liska <mliska@suse.cz>
5162
5163 * c-opts.c (c_common_post_options): Replace ASM_OUTPUT_DEF with
5164 TARGET_SUPPORTS_ALIASES.
5165
32129a17
DM
51662017-08-10 David Malcolm <dmalcolm@redhat.com>
5167
5168 * c-common.c (c_parse_error): Add rich_location * param, using it
5169 rather implicitly using input_location.
5170 * c-common.h (c_parse_error): Add rich_location * param.
5171
30af3a2b
MP
51722017-08-09 Marek Polacek <polacek@redhat.com>
5173
5174 * c-common.c (pointer_int_sum): Use true/false instead of 1/0.
5175 (c_common_truthvalue_conversion): Likewise.
5176 * c-omp.c (c_finish_omp_atomic): Likewise.
5177 * c-common.h (build_binary_op): Update declaration.
5178
314e6352
ML
51792017-08-08 Martin Liska <mliska@suse.cz>
5180
5181 * c-ada-spec.c: Include header files.
5182 * c-ubsan.c: Likewise.
5183 * c-warn.c: Likewise.
5184
56b5041c
JJ
51852017-08-07 Jakub Jelinek <jakub@redhat.com>
5186
5187 PR c/69389
5188 * c-omp.c (c_finish_omp_atomic): Handle atomics on bitfields.
5189
db440138
EB
51902017-08-07 Eric Botcazou <ebotcazou@adacore.com>
5191
5192 * c-ada-spec.c (has_nontrivial_methods): Test for FUNCTION_DECL.
5193 (print_ada_methods): Likewise.
5194 (print_ada_declaration): Likewise.
5195
577eec56
ML
51962017-08-07 Martin Liska <mliska@suse.cz>
5197
5198 * array-notation-common.c: Add new includes.
5199 * c-format.c( handle_format_attribute): Canonicalize a format
5200 function name.
5201 * c-lex.c (c_common_has_attribute): Canonicalize name of an
5202 attribute.
5203 * c-pretty-print.c: Add new include.
5204
b854df3c
EB
52052017-08-05 Eric Botcazou <ebotcazou@adacore.com>
5206
5207 * c-ada-spec.c (has_static_fields): Look only into variables.
5208 (print_constructor): Add TYPE parameter and use it for the name.
5209 (print_destructor): Likewise.
5210 (print_ada_declaration): Adjust to new constructor/destructor names.
5211 Adjust calls to print_constructor and print_destructor.
5212 (print_ada_struct_decl): Do not test TREE_STATIC on FIELD_DECL.
5213 Look only into variables in the final loop.
5214
9f2cb25e
EB
52152017-08-01 Eric Botcazou <ebotcazou@adacore.com>
5216
5217 * c-ada-spec.c (has_static_fields): Look only into fields.
5218 (dump_generic_ada_node): Small tweak.
5219 (dump_nested_types): Look only into fields.
5220 (print_ada_declaration): Look only into methods. Small tweak.
5221 (print_ada_struct_decl): Look only into fields. Use DECL_VIRTUAL_P.
5222
f4bcd9eb
EB
52232017-08-01 Eric Botcazou <ebotcazou@adacore.com>
5224
5225 * c-ada-spec.c (print_generic_ada_decl): Pass correctly-typed constant.
5226 (dump_ada_function_declaration): Likewise.
5227 (dump_generic_ada_node): Likewise.
5228 (print_ada_declaration): Add support for const-qualified variables.
5229
f34ebeb2
ML
52302017-07-31 Martin Liska <mliska@suse.cz>
5231
5232 PR sanitize/81530
5233 * c-ubsan.c (ubsan_maybe_instrument_array_ref):
5234 Guard condition with flag_sanitize_p also with current_function_decl
5235 non-null equality.
5236 (ubsan_maybe_instrument_reference_or_call): Likewise.
5237
218e5d04
UB
52382017-07-30 Uros Bizjak <ubizjak@gmail.com>
5239
5240 * c-format.c (asm_fprintf_char_table): Add 'z' to format_chars.
5241
942047f2
EB
52422017-07-29 Eric Botcazou <ebotcazou@adacore.com>
5243
5244 * c-ada-spec.c (dump_generic_ada_node): Take into account signedness
5245 for enumeral types.
5246 (print_ada_declaration): Add missing guard for record types.
5247
a40ff0ae
JJ
52482017-07-27 Jakub Jelinek <jakub@redhat.com>
5249
5250 PR c/45784
5251 * c-omp.c (c_finish_omp_for): If the condition is wrapped in
5252 rhs of COMPOUND_EXPR(s), skip them and readd their lhs into
5253 new COMPOUND_EXPRs around the rhs of the comparison.
5254
06bd22f6
MP
52552017-07-27 Marek Polacek <polacek@redhat.com>
5256
5257 PR c/81417
5258 * c-warn.c (warn_for_sign_compare): Tweak the warning message. Print
5259 the types.
5260
036ea399
JJ
52612017-07-27 Jakub Jelinek <jakub@redhat.com>
5262
5263 * c-attribs.c (c_common_attribute_table): Add noipa attribute.
5264 (handle_noipa_attribute): New function.
5265
417ca011
TD
52662017-07-07 Torsten Duwe <duwe@suse.de>
5267
5268 * c-attribs.c (c_common_attribute_table): Add entry for
5269 "patchable_function_entry".
5270
5aaa8fb4
NS
52712017-07-20 Nathan Sidwell <nathan@acm.org>
5272
5273 Remove TYPE_METHODS.
5274 * c-ada-spec.c (is_tagged_type, has_nontrivial_methods,
5275 dump_ada_template, print_ada_methods,
5276 print_ada_declaration): Member fns are on TYPE_FIELDS.
5277
ff22eb12
NS
52782017-07-18 Nathan Sidwell <nathan@acm.org>
5279
5280 * c-warn.c (warn_for_memset): Use TYPE_{MIN,MAX}_VALUE.
5281
eea77d1f
DM
52822017-07-14 David Malcolm <dmalcolm@redhat.com>
5283
5284 * c-common.c (try_to_locate_new_include_insertion_point): New
5285 function.
5286 (per_file_includes_t): New typedef.
5287 (added_includes_t): New typedef.
5288 (added_includes): New variable.
5289 (maybe_add_include_fixit): New function.
5290 * c-common.h (maybe_add_include_fixit): New decl.
5291
281ac396
MS
52922017-07-10 Martin Sebor <msebor@redhat.com>
5293
5294 PR other/81345
5295 * c.opt (-Wstringop-overflow): Set defaults in LangEnabledBy.
5296
b6f43128
DM
52972017-07-06 David Malcolm <dmalcolm@redhat.com>
5298
5299 * c-common.c (selftest::c_family_tests): New.
5300 * c-common.h (selftest::run_c_tests): Move decl to c/c-lang.h.
5301 (selftest::c_family_tests): New decl.
5302
efbf55b0
MP
53032017-07-04 Marek Polacek <polacek@redhat.com>
5304
5305 PR c/81231
5306 * c-common.c (sync_resolve_size): Give error for pointers to incomplete
5307 types.
5308
6c86bd88
MP
53092017-07-04 Marek Polacek <polacek@redhat.com>
5310
5311 * c-warn.c (warn_if_unused_value): Remove WITH_CLEANUP_EXPR handling.
5312
17a7218b
ML
53132017-06-28 Martin Liska <mliska@suse.cz>
5314
5315 PR ipa/81128
5316 * c-attribs.c (handle_alias_ifunc_attribute): Append ifunc alias
5317 to a function declaration.
5318
63010089
ML
53192017-06-28 Martin Liska <mliska@suse.cz>
5320
5321 PR driver/79659
5322 * c.opt: Add IntegerRange to various options.
5323
3e2becc4
MP
53242017-06-26 Marek Polacek <polacek@redhat.com>
5325
5326 PR c/80116
5327 * c-common.h (warn_for_multistatement_macros): Declare.
5328 * c-warn.c: Include "c-family/c-indentation.h".
5329 (warn_for_multistatement_macros): New function.
5330 * c.opt (Wmultistatement-macros): New option.
5331 * c-indentation.c (guard_tinfo_to_string): No longer static.
5332 Change the parameter type to "enum rid". Handle RID_SWITCH.
5333 * c-indentation.h (guard_tinfo_to_string): Declare.
5334
2db9b7cd
MG
53352017-06-23 Marc Glisse <marc.glisse@inria.fr>
5336
5337 * c-common.c (c_common_nodes_and_builtins): Use builtin_structptr_types.
5338
c3684b7b
MS
53392017-06-15 Martin Sebor <msebor@redhat.com>
5340
5341 PR c++/80560
5342 * c.opt (-Wclass-memaccess): New option.
5343
e72c4afd
BK
53442017-06-14 Boris Kolpackov <boris@codesynthesis.com>
5345
5346 * c-opts.c (c_common_finish): Handle '-' special value to -MF.
5347
8a516588
MP
53482017-06-13 Marek Polacek <polacek@redhat.com>
5349
5350 PR objc/80949
5351 * c-warn.c (do_warn_duplicated_branches): Return if any of the
5352 branches is null.
5353
45b2222a
ML
53542017-06-13 Martin Liska <mliska@suse.cz>
5355
5356 PR sanitize/78204
5357 * c-attribs.c (add_no_sanitize_value): New function.
5358 (handle_no_sanitize_attribute): Likewise.
5359 (handle_no_sanitize_address_attribute): Use the function.
5360 (handle_no_sanitize_thread_attribute): New function.
5361 (handle_no_address_safety_analysis_attribute): Use
5362 add_no_sanitize_value.
5363 (handle_no_sanitize_undefined_attribute): Likewise.
5364 * c-common.h: Declare new functions.
5365 * c-ubsan.c (ubsan_instrument_division): Use sanitize_flags_p.
5366 (ubsan_instrument_shift): Likewise.
5367 (ubsan_instrument_bounds): Likewise.
5368 (ubsan_maybe_instrument_array_ref): Likewise.
5369 (ubsan_maybe_instrument_reference_or_call): Likewise.
5370
a01f151f
JM
53712017-06-11 Jason Merrill <jason@redhat.com>
5372
5373 * c-ada-spec.c, c-pragma.c: Use id_equal.
5374
3de4ac6d
MP
53752017-06-04 Marek Polacek <polacek@redhat.com>
5376
5377 PR c/80919
5378 * c-format.c (matching_type_p): Return false if any of the types
5379 requires structural equality.
5380
2474f48f
MS
53812017-06-02 Martin Sebor <msebor@redhat.com>
5382
5383 PR c/80892
5384 * c-warn.c (conversion_warning): Use -Wconversion for integer
5385 conversion and -Wfloat-conversion for floating one.
5386
40ffd95f
BE
53872017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
5388
5389 * c.opt (Wsizeof-pointer-div): New warning option.
5390
3fa4634c
VR
53912017-06-01 Volker Reichelt <v.reichelt@netcologne.de>
5392
5393 * c.opt (Wcatch-value): New shortcut for Wcatch-value=1.
5394 (Wcatch-value=1): Enable by -Wall.
5395
f012c8ef
DM
53962017-05-30 David Malcolm <dmalcolm@redhat.com>
5397
5398 * c-format.c (gcc_cxxdiag_char_table): Add 'H' and 'I' to
5399 format_chars.
5400 * c.opt (fdiagnostics-show-template-tree): New option.
5401 (felide-type): New option.
5402
63dbcd13
VR
54032017-05-25 Volker Reichelt <v.reichelt@netcologne.de>
5404
5405 * c.opt (Wcatch-value=): New C++ warning flag.
5406
be136b5c
NS
54072017-05-24 Nathan Sidwell <nathan@acm.org>
5408
5409 * c=common.c (field_decl_cmp, resort_field_decl_cmp): Adjust T
5410 const casts to avoid warning.
5411
3cd211af
MS
54122017-05-24 Martin Sebor <msebor@redhat.com>
5413
5414 PR c/80731
5415 * c-common.h (unsafe_conversion_p): Add a function argument.
5416 * c-common.c (unsafe_conversion_p): Same.
5417 Add type names and values to diagnostics.
5418 (scalar_to_vector): Adjust.
5419 * c-warn.c (constant_expression_error): Add a function argument.
5420 Add type names and values to diagnostics.
5421 (conversion_warning): Add a function argument.
5422 Add type names and values to diagnostics.
5423 (warnings_for_convert_and_check): Same.
5424
1ff7be5a
JM
54252017-05-19 Jason Merrill <jason@redhat.com>
5426
5427 * c-warn.c (match_case_to_enum_1): Don't warn about enums with no
5428 enumerators.
5429
ff502317
BE
54302017-05-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
5431
5432 * c-format.c (locus): Move out of function scope,
5433 add GTY attribute.
5434
2a8a8d7b
NS
54352017-05-19 Nathan Sidwell <nathan@acm.org>
5436
5437 * c-opts.c (class_dump_file, class_dump_flags): Delete.
5438 (c_common_parse_file): Remove class dump handling.
5439 (get_dump_info): Likewise.
5440
39aac208
RB
54412017-05-19 Richard Biener <rguenther@suse.de>
5442
5443 PR c++/80593
5444 * c-warn.c (strict_aliasing_warning): Do not warn for accesses
5445 to alias-set zero memory.
5446
6ecd2339
BE
54472017-05-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
5448
5449 * c-format.c (local_tree_type_node): Add GTY attribute.
5450
6574d78e
MP
54512017-05-18 Marek Polacek <polacek@redhat.com>
5452
5453 * c-common.c (c_common_type_for_size): Use NULL_TREE instead of 0.
5454 (c_common_fixed_point_type_for_size): Likewise.
5455 (c_common_type_for_mode): Likewise.
5456 (shorten_compare): Likewise.
5457 (c_promoting_integer_type_p): Use false/true instead of 0/1.
5458 * c-pragma.c (maybe_apply_renaming_pragma): Use NULL_TREE instead of 0.
5459
e3455240
MP
54602017-05-18 Marek Polacek <polacek@redhat.com>
5461
5462 * c-common.c (self_promoting_args_p): Change the return type to bool.
5463 Use false/true instead of 0/1.
5464 * c-common.h (self_promoting_args_p): Update.
5465
3fa8871b
MP
54662017-05-17 Marek Polacek <polacek@redhat.com>
5467
5468 * c-common.c: Use NULL_TREE instead of 0 where appropriate.
5469 * c-warn.c: Likewise.
5470
b42cc3ca
VV
54712017-05-17 Ville Voutilainen <ville.voutilainen@gmail.com>
5472
5473 Implement new C++ intrinsics __is_assignable and __is_constructible.
5474 * c-common.c (__is_assignable, __is_constructible): New.
5475 * c-common.h (RID_IS_ASSIGNABLE, RID_IS_CONSTRUCTIBLE): Likewise.
5476
1a817418
ML
54772017-05-17 Martin Liska <mliska@suse.cz>
5478
5479 * c-common.h: Introduce dump_flags_t type and
5480 use it instead of int type.
5481 * c-gimplify.c (c_genericize): Likewise.
5482 * c-opts.c: Likewise.
5483
b2fa0a8b
MP
54842017-05-17 Marek Polacek <polacek@redhat.com>
5485
5486 * c-common.c (c_save_expr): Remove.
5487 (c_common_truthvalue_conversion): Remove a call to c_save_expr.
5488 * c-common.h (c_save_expr): Remove declaration.
5489
31c2d57d
VR
54902017-05-09 Volker Reichelt <v.reichelt@netcologne.de>
5491
5492 PR c/35441
5493 * c-pretty-print.c (c_pretty_printer::expression): Handle MAX_EXPR,
5494 MIN_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, LROTATE_EXPR, RROTATE_EXPR.
5495 (c_pretty_printer::postfix_expression): Handle MAX_EXPR, MIN_EXPR.
5496 (c_pretty_printer::multiplicative_expression): Handle EXACT_DIV_EXPR,
5497 RDIV_EXPR.
5498 (pp_c_shift_expression): Handle LROTATE_EXPR, RROTATE_EXPR.
5499
684f84de
MP
55002017-05-09 Marek Polacek <polacek@redhat.com>
5501
5502 PR c/80525
5503 * c-warn.c (unwrap_c_maybe_const): New.
5504 (warn_logical_operator): Call it.
5505
641da50a
NS
55062017-05-09 Nathan Sidwell <nathan@acm.org>
5507
5508 * c-common.c (c_register_builtin_type): Use pushdecl lang_hook.
5509 * c-common.h (pushdecl_top_level, pushdecl): Don't declare here.
5510
631238ac
MS
55112017-05-08 Martin Sebor <msebor@redhat.com>
5512
5513 PR translation/80280
5514 * c-format.h (struct format_flag_spec): Add new member.
5515 (T89_T): New macro.
5516 * c-format.c (local_tree_type_node): New global.
5517 (printf_flag_specs, asm_fprintf_flag_spec): Initialize new data.
5518 (gcc_diag_flag_specs, scanf_flag_specs, strftime_flag_specs): Ditto.
5519 (strfmon_flag_specs): Likewise.
5520 (gcc_diag_char_table, gcc_cdiag_char_table): Split up specifiers
5521 with distinct quoting properties.
5522 (gcc_tdiag_char_table, gcc_cxxdiag_char_table): Same.
5523 (flag_chars_t::validate): Add argument and handle bad quoting.
5524 (check_format_info_main): Handle quoting problems.
5525 (init_dynamic_diag_info): Simplify.
5526
49f0c04c
JM
55272017-05-08 Jason Merrill <jason@redhat.com>
5528
5529 * c-opts.c (c_common_post_options): Update defaults for
5530 flag_abi_version and flag_abi_compat_version.
5531
56d35585
DM
55322017-05-05 David Malcolm <dmalcolm@redhat.com>
5533
5534 * c-common.c (c_cpp_error): Replace report_diagnostic
5535 with diagnostic_report_diagnostic.
5536
0f2c4a8f
MS
55372017-05-04 Martin Sebor <msebor@redhat.com>
5538
5539 PR translation/80280
5540 * c-attribs.c (handle_alias_ifunc_attribute): Quote a %D directive.
5541 (handle_weakref_attribute): Same.
5542
6fe63fb4
NS
55432017-05-03 Nathan Sidwell <nathan@acm.org>
5544
5545 Canonicalize canonical type hashing
5546 * c-common.c (complete_array_type): Use type_hash_canon.
5547
815d9cc6
XR
55482017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
5549
92a285c1 5550 PR c++/80038
815d9cc6
XR
5551 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): Remove
5552 prototype.
5553 (cilk_install_body_pedigree_operations): Likewise.
5554 * cilk.c (cilk_set_spawn_marker): Mark functions that should be
5555 detatched.
5556 (cilk_gimplify_call_params_in_spawned_fn): Remove.
5557 (cilk_install_body_pedigree_operations): Likewise.
5558 (gimplify_cilk_spawn): Add EXPR_STMT and CLEANUP_POINT_EXPR
5559 unwrapping.
5560
f8a36447
JJ
55612017-04-27 Jakub Jelinek <jakub@redhat.com>
5562
5563 PR c++/80534
5564 * c-common.c (complete_array_type): Only hash TYPE_TYPELESS_STORAGE
5565 flag on non-aggregate element types.
5566
7c145456
BE
55672017-04-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
5568
5569 * c-common.c (c_type_hasher, type_hash_table): Remove.
5570 (c_common_get_alias_set): Remove unreachable code.
5571 * c-opts.c (c_common_post_options): Make sure cc1 takes only one file.
5572
c3cbcd45
VR
55732017-04-20 Volker Reichelt <v.reichelt@netcologne.de>
5574
5575 * c.opt (Wextra-semi): New C++ warning flag.
5576
8a59d466
JJ
55772017-04-20 Jakub Jelinek <jakub@redhat.com>
5578
5579 PR middle-end/80423
5580 * c-common.c (complete_array_type): Preserve TYPE_TYPELESS_STORAGE.
5581
8487c9a5
JJ
55822017-04-18 Jakub Jelinek <jakub@redhat.com>
5583
5584 PR middle-end/79788
5585 PR middle-end/80375
5586 * c-common.c (c_common_type_for_mode): Don't handle
5587 widest_*_literal_type_node here.
5588 c_common_signed_or_unsigned_type): Likewise.
5589 (c_common_nodes_and_builtins): Set widest_*_literal_type_node
5590 to *intTI_type_node or *intDI_type_node depending on whether
5591 TImode is supported by the target or not.
5592
3ee0fb02
ML
55932017-04-10 Martin Liska <mliska@suse.cz>
5594
5595 PR sanitizer/80350
5596 * c-ubsan.c (ubsan_instrument_shift): Evaluate RHS before
5597 doing an UBSAN check.
5598
5764ee3c
JW
55992017-04-03 Jonathan Wakely <jwakely@redhat.com>
5600
5601 * c-warn.c (do_warn_double_promotion): Fix typo in comment.
5602
6f3af356
JJ
56032017-03-31 Jakub Jelinek <jakub@redhat.com>
5604
5605 PR c++/79572
5606 * c-ubsan.h (ubsan_maybe_instrument_reference): Change argument to
5607 tree *.
5608 * c-ubsan.c (ubsan_maybe_instrument_reference): Likewise. Handle
5609 not just NOP_EXPR to REFERENCE_TYPE, but also INTEGER_CST with
5610 REFERENCE_TYPE.
5611
f6a7a9d5
DM
56122017-03-31 David Malcolm <dmalcolm@redhat.com>
5613
5614 PR documentation/78732
5615 * c.opt (Wendif-labels): Fix description to refer to
5616 #else rather than #elif.
5617
af88f557
JJ
56182017-03-31 Jakub Jelinek <jakub@redhat.com>
5619
5620 PR libstdc++/80251
5621 * c-common.h (enum rid): Add RID_IS_AGGREGATE.
5622 * c-common.c (c_common_reswords): Add __is_aggregate trait.
5623
a9e4a1a5
JJ
56242017-03-27 Jakub Jelinek <jakub@redhat.com>
5625
5626 PR middle-end/80162
5627 * c-common.c (c_common_mark_addressable_vec): Don't set
5628 TREE_ADDRESSABLE on DECL_HARD_REGISTER.
5629
3f01b620
MS
56302017-03-21 Martin Sebor <msebor@redhat.com>
5631
5632 PR c++/79548
5633 * c-common.c (set_underlying_type): Mark type used only when
5634 original del is declared unused.
5635
2f6f187a
DM
56362017-03-10 David Malcolm <dmalcolm@redhat.com>
5637
5638 PR translation/79848
5639 * c-format.c (check_format_string): Simplify uses of "%<%s%>" to
5640 "%qs".
5641
a02fa805
DM
56422017-03-10 David Malcolm <dmalcolm@redhat.com>
5643
5644 PR c/79921
5645 * c-indentation.c (warn_for_misleading_indentation): Remove parens
5646 from inform's message, so that xgettext can locate it.
5647
822a132c
MP
56482017-03-09 Marek Polacek <polacek@redhat.com>
5649
5650 PR c++/79962
5651 PR c++/79984
5652 * c-attribs.c (handle_nonnull_attribute): Save the result of default
5653 conversion to the attribute list.
5654
bba81f1c
ML
56552017-03-09 Martin Liska <mliska@suse.cz>
5656
5657 * c-ada-spec.c (macro_length): Increment value instead of a pointer.
5658
108154ff
JM
56592017-03-03 Jason Merrill <jason@redhat.com>
5660
5661 * c.opt (Wnoexcept-type): New.
5662
eb0e7c34
RB
56632017-03-02 Richard Biener <rguenther@suse.de>
5664
5665 PR c/79756
5666 * c-common.c (c_common_mark_addressable_vec): Look through
5667 C_MAYBE_CONST_EXPR.
5668
9453ba0a
ML
56692017-02-28 Martin Liska <mliska@suse.cz>
5670
5671 * c.opt: Replace space with tabular for options of <number>
5672 type.
5673
6a825afe
ML
56742017-02-28 Martin Liska <mliska@suse.cz>
5675
5676 * c.opt: Fix --help=option -Q for options which are of
5677 an enum type.
5678
4227c9ad
JJ
56792017-02-24 Jakub Jelinek <jakub@redhat.com>
5680
5681 PR c++/79588
5682 * c-common.c (check_function_restrict): New function.
5683 (check_function_arguments): Add FNDECL argument. Call
5684 check_function_restrict if -Wrestrict.
5685 * c-warn.c (warn_for_restrict): Remove ARGS argument, add ARGARRAY
5686 and NARGS. Use auto_vec for ARG_POSITIONS, simplify.
5687 * c-common.h (check_function_arguments): Add FNDECL argument.
5688 (warn_for_restrict): Remove ARGS argument, add ARGARRAY and NARGS.
5689
59909673
EB
56902017-02-24 Eric Botcazou <ebotcazou@adacore.com>
5691
5692 * c-ada-spec.c (dump_ada_function_declaration): Add comment about the
5693 treatment of parameters with pointer-to-tagged type and tidy up.
5694 (print_ada_methods): Remove the special treatment of C++ static member
5695 functions.
5696
54dcd526
ML
56972017-02-22 Martin Liska <mliska@suse.cz>
5698
5699 * c.opt: Replace inequality signs with square brackets
5700 for -Wnornalized.
5701
00bc9de3
JJ
57022017-02-21 Jakub Jelinek <jakub@redhat.com>
5703
5704 PR c++/79641
5705 * c-attribs.c (handle_mode_attribute): Use build_qualified_type to
5706 preserve quals.
5707
97fcf744
JM
57082017-02-17 Joseph Myers <joseph@codesourcery.com>
5709
5710 * c-cppbuiltin.c (builtin_define_float_constants): Define
5711 __DECIMAL_DIG__ to the value for long double.
5712
c7545f1c
MP
57132017-02-15 Marek Polacek <polacek@redhat.com>
5714
5715 PR c/79515
5716 * c-warn.c (do_warn_double_promotion): Don't warn if an invalid
5717 conversion has occured.
5718
c2e84327
DM
57192017-01-24 David Malcolm <dmalcolm@redhat.com>
5720
5721 * c-common.c (c_common_reswords): Add "__RTL".
5722 * c-common.h (enum rid): Add RID_RTL.
5723
2ebd93e1
MP
57242017-01-20 Marek Polacek <polacek@redhat.com>
5725
5726 PR c/64279
5727 * c-common.h (do_warn_duplicated_branches_r): Declare.
5728 * c-gimplify.c (c_genericize): Walk the function tree calling
5729 do_warn_duplicated_branches_r.
5730 * c-warn.c (expr_from_macro_expansion_r): New.
5731 (do_warn_duplicated_branches): New.
5732 (do_warn_duplicated_branches_r): New.
5733 * c.opt (Wduplicated-branches): New option.
5734
0d80ab91
DM
57352017-01-17 David Malcolm <dmalcolm@redhat.com>
5736
5737 PR c++/71497
5738 * c-indentation.c (warn_for_misleading_indentation): Use the past
5739 subjunctive in the note.
5740
7f991c36
AH
57412017-01-17 Aldy Hernandez <aldyh@redhat.com>
5742
5743 PR c/79116
5744 * array-notation-common.c (cilkplus_extract_an_triplets): Convert
5745 start type to integer_type.
5746
1c70261c
JJ
57472017-01-16 Jakub Jelinek <jakub@redhat.com>
5748
5749 PR driver/49726
5750 * c.opt (gen-decls): Add Driver flag.
5751
1ddca3f3
PC
57522017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
5753
5754 Revert:
5755 2017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
5756
5757 PR c++/71737
5758 * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
5759
7d2f3f1d
PC
57602017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
5761
5762 PR c++/71737
5763 * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
5764
bce6f760
MS
57652017-01-12 Martin Sebor <msebor@redhat.com>
5766
5767 (-Wformat-overflow): ...to this.
5768
bf5fbf46
MS
57692017-01-11 Martin Sebor <msebor@redhat.com>
5770
5771 PR c/78768
5772 * c.opt (-Walloca-larger-than, -Wformat-length, -Wformat-truncation):
5773 Also enable for LTO.
5774
e363df3f
JM
57752017-01-10 Jason Merrill <jason@redhat.com>
5776
5777 Implement P0195R2, C++17 variadic using.
5778 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_variadic_using.
5779
bd2c6270
JJ
57802017-01-09 Jakub Jelinek <jakub@redhat.com>
5781
5782 PR translation/79019
5783 PR translation/79020
5784 * c.opt (Wnormalized=): Fix typo in description.
5785
efcc8d38
MS
57862017-01-08 Martin Sebor <msebor@redhat.com>
5787
5788 PR middle-end/77708
5789 * c.opt (-Wformat-truncation): New option.
5790
ab20d992 57912017-01-06 Alexandre Oliva <aoliva@redhat.com>
435f3f7a
AO
5792
5793 * c-pretty-print.c (pp_c_tree_decl_identifier): Convert 16-bit
5794 value to unsigned short to fit in 4 hex digits without
5795 warnings.
5796
4e89adf9
EB
57972017-01-05 Eric Botcazou <ebotcazou@adacore.com>
5798
5799 * c.opt (fsso-struct): Add 'native' value.
5800
cd445b54
ML
58012017-01-05 Martin Liska <mliska@suse.cz>
5802
5803 PR pch/78970
5804 * c-opts.c (c_common_post_options): Reject '-' filename for a precompiled
5805 header.
5806
a9342885
MP
58072017-01-04 Marek Polacek <polacek@redhat.com>
5808
5809 PR c++/64767
5810 * c.opt (Wpointer-compare): New option.
5811
fc73e60c
JJ
58122017-01-04 Jakub Jelinek <jakub@redhat.com>
5813
5814 PR driver/78957
5815 * c.opt (fsso-struct=): Add RejectNegative.
5816
cbe34bb5
JJ
58172017-01-01 Jakub Jelinek <jakub@redhat.com>
5818
5819 Update copyright years.
5820
d4a6c0ea
ML
58212016-12-29 Martin Liska <mliska@suse.cz>
5822
5823 PR c/78933
5824 * c.opt (strong-eval-order): Add RejectNegative keyword.
5825
67a5ad7c
JM
58262016-12-22 Jason Merrill <jason@redhat.com>
5827
5828 Implement P0522R0, matching of template template arguments.
5829 * c-cppbuiltin.c (c_cpp_builtins): Define
5830 __cpp_template_template_args.
5831
0dba7960
JJ
58322016-12-21 Jakub Jelinek <jakub@redhat.com>
5833
5834 PR bootstrap/78817
5835 * c-common.c (struct nonnull_arg_ctx): New type.
5836 (check_function_nonnull): Return bool instead of void. Use
5837 nonnull_arg_ctx as context rather than just location_t.
5838 (check_nonnull_arg): Adjust for the new context type, set
5839 warned_p to true if a warning has been diagnosed.
5840 (check_function_arguments): Return bool instead of void.
5841 * c-common.h (check_function_arguments): Adjust prototype.
5842
31bfc9b9
JM
58432016-12-21 Jason Merrill <jason@redhat.com>
5844
5845 * c.opt (-fnew-ttp-matching): New flag.
5846 * c-opts.c (c_common_post_options): Default on if -std=c++1z.
5847
629b3d75
MJ
58482016-12-14 Martin Jambor <mjambor@suse.cz>
5849
5850 * c-omp.c: Include omp-general.h instead of omp-low.h.
5851 (c_finish_oacc_wait): Adjusted call to find_omp_clause to use its new
5852 name.
5853
474da67e
MS
58542016-12-14 Martin Sebor <msebor@redhat.com>
5855
5856 PR c/17308
5857 * c-common.c (check_nonnull_arg): Disable when optimization
5858 is enabled.
5859
fe366b87
MP
58602016-12-12 Marek Polacek <polacek@redhat.com>
5861
5862 PR c++/78647
5863 * c-common.c (attribute_fallthrough_p): Return false for
5864 error_mark_node.
5865
8bd9f164
MS
58662016-12-08 Martin Sebor <msebor@redhat.com>
5867
5868 PR c/78284
5869 * c.opt (-Walloc-zero, -Walloc-size-larger-than): New options.
5870
060162e0
MS
58712016-12-08 Martin Sebor <msebor@redhat.com>
5872
5873 PR c/78165
92a285c1
ML
5874 * c-pretty-print (pp_c_integer_constant): Avoid formatting type
5875 suffix.
060162e0 5876
ee92e7ba
MS
58772016-12-07 Martin Sebor <msebor@redhat.com>
5878
5879 PR c/53562
5880 PR middle-end/77784
5881 PR middle-end/78149
5882 PR middle-end/78138
5883 * c.opt (-Wstringop-overflow): New option.
5884
84b0769e
MO
58852016-12-02 Maxim Ostapenko <m.ostapenko@samsung.com>
5886
5887 * c-attribs.c (asan odr indicator): New attribute.
5888 (handle_asan_odr_indicator_attribute): New function.
5889
7fa6a965
PK
58902016-11-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5891
5892 * c-common.c (c_common_nodes_and_builtins): Remove initialization of
5893 ptrdiff_type_node;
5894
56d8ffc1
JG
58952016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
5896
5897 * c-common.c (excess_precision_mode_join): New.
5898 (c_ts18661_flt_eval_method): New.
5899 (c_c11_flt_eval_method): Likewise.
5900 (c_flt_eval_method): Likewise.
5901 * c-common.h (excess_precision_mode_join): New.
5902 (c_flt_eval_method): Likewise.
5903 * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): New.
5904 (cpp_iec_559_value): Call it.
5905 (c_cpp_builtins): Modify logic for __LIBGCC_*_EXCESS_PRECISION__,
5906 call c_flt_eval_method to set __FLT_EVAL_METHOD__ and
5907 __FLT_EVAL_METHOD_TS_18661_3__.
5908
04f0fcf7
JG
59092016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
5910
5911 * c-opts.c (c_common_post_options): Add logic to handle the default
5912 case for -fpermitted-flt-eval-methods.
5913
fb2675cb
PB
59142016-11-23 Paolo Bonzini <bonzini@gnu.org>
5915
5916 * c.opt (Wexpansion-to-defined): New.
5917
ec1c5694
JJ
59182016-11-23 Jakub Jelinek <jakub@redhat.com>
5919
5920 PR target/78451
5921 * c-pragma.c (handle_pragma_target): Don't replace
5922 current_target_pragma, but chainon the new args to the current one.
5923
730c9e75
NS
59242016-11-22 Nathan Sidwell <nathan@acm.org>
5925
5926 * array-notation-common.c (cilkplus_extract_an_trplets): Fix
cacd29be 5927 indentation and formatting.
730c9e75 5928
89990732
MS
59292016-11-21 Martin Sebor <msebor@redhat.com>
5930
5931 * c.opt (-fprintf-return-value): Enable by default.
5932
48330c93
BE
59332016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
5934
5935 PR c++/71973
5936 * c.opt (-Wbuiltin-declaration-mismatch): New warning.
5937 * c-common.c (c_common_nodes_and_builtins): Initialize
5938 const_tm_ptr_type_node.
5939
0d939c95
MP
59402016-11-16 Marek Polacek <polacek@redhat.com>
5941
5942 PR c/78285
5943 * c-common.c (c_add_case_label): Turn error_at calls into inform.
5944
8e745a17
JJ
59452016-11-14 Jakub Jelinek <jakub@redhat.com>
5946
5947 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_structured_bindings.
5948
1ee62b92 59492016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
8e745a17
JJ
5950 Richard Biener <rguenther@suse.de>
5951
5952 * c-common.h (c_common_resword): Add RID_GIMPLE, RID_PHI types.
5953 * c-common.h (enum rid): Add RID_GIMPLE, RID_PHI.
5954 * c.opt (fgimple): New option.
1ee62b92 5955
22b15758
UB
59562016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5957
5958 PR c/35503
5959 * c-common.h (warn_for_restrict): Declare.
5960 * c-warn.c: Include gcc-rich-location.h.
5961 (warn_for_restrict): New function.
5962 * c-format.c (gcc_tdiag_char_table): Add entry for "Z" specifier.
5963 (gcc_cdiag_char_table): Likewise.
5964 (gcc_cxxdiag_char_table): Likewise.
5965 * c.opt (Wrestrict): New option.
5966
4be719cd
EB
59672016-11-13 Eric Botcazou <ebotcazou@adacore.com>
5968
5969 * c-ada-spec.c (print_ada_declaration): For typedef declarations, look
5970 for nested types only if the type is a record or union and dump SLOC.
5971
4a826ca6
JM
59722016-11-09 Jason Merrill <jason@redhat.com>
5973
5974 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_template_auto.
5975
2e955d50
JJ
59762016-11-09 Jakub Jelinek <jakub@redhat.com>
5977
5978 * c-ubsan.c (ubsan_instrument_shift): Handle split
5979 -fsanitize=shift-base and -fsanitize=shift-exponent.
5980
51dc6603
JM
59812016-11-07 Jason Merrill <jason@redhat.com>
5982
5983 * c.opt (Wc++1z-compat): New.
5984 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_noexcept_function_type.
5985
6dc4a604
ML
59862016-11-07 Martin Liska <mliska@suse.cz>
5987
5988 * c-warn.c (warn_for_unused_label): Save all labels used
5989 in goto or in &label.
5990
b302001e
JM
59912016-11-03 Jason Merrill <jason@redhat.com>
5992
5993 * c-cppbuiltin.c (c_cpp_builtins): Correct
5994 __cpp_inheriting_constructors.
5995
31f7f784
JM
59962016-11-01 Jason Merrill <jason@redhat.com>
5997
2bc78e3c
JM
5998 * c-cppbuiltin.c (c_cpp_builtins): Update
5999 __cpp_inheriting_constructors.
6000
31f7f784
JM
6001 * c.opt (-fnew-inheriting-ctors): New.
6002 * c-opts.c: Default to on for ABI 11+.
6003
dcb466ec
JJ
60042016-10-31 Jakub Jelinek <jakub@redhat.com>
6005
6006 PR c++/77948
6007 * c.opt (fext-numeric-literals): Add Var and Init.
6008 * c-opts.c (c_common_handle_option): Don't clear
6009 cpp_opts->ext_numeric_literals for -std=c++{11,14,1z}.
6010 (c_common_post_options): Clear it here if not set
6011 explicitly.
6012
52e1b91e
AH
60132016-10-28 Aldy Hernandez <aldyh@redhat.com>
6014
6015 PR debug/77773
6016 * c-pretty-print.c (simple_type_specifier): Do not dereference `t'
6017 if NULL.
6018
e16f1cc7
JJ
60192016-10-25 Jakub Jelinek <jakub@redhat.com>
6020
6021 * c-common.h (enum rid): Add RID_BUILTIN_LAUNDER.
6022 * c-common.c (c_common_reswords): Add __builtin_launder.
6023
f8348061
BE
60242016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
6025
6026 * c-common.c (c_common_truthvalue_conversion): Warn for
6027 multiplications in boolean context. Fix the quoting of '<<' and '<'
6028 in the shift warning.
6029
eff89e01
BE
60302016-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
6031
6032 * c-common.c (c_common_truthvalue_conversion): Fix the comment.
6033
24bc7bf4
JM
60342016-10-20 Jason Merrill <jason@redhat.com>
6035
6036 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_concepts value.
6037
4c712374
BE
60382016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
6039
6040 * c-common.c (c_common_truthvalue_conversion): Warn only for signed
6041 integer shift ops in boolean context.
6042
60432016-10-18 Aldy Hernandez <aldyh@redhat.com>
adc577c5
AH
6044
6045 * c.opt (Walloca): New.
6046 (Walloca-larger-than=): New.
6047 (Wvla-larger-than=): New.
6048
8fa18c06
MP
60492016-10-17 Marek Polacek <polacek@redhat.com>
6050
6051 * c-warn.c (find_array_ref_with_const_idx_r): Remove parameter names.
6052 Return immediately when finding a match.
6053 (warn_tautological_cmp): Remove a boolean variable that is no longer
6054 needed.
6055
b12b1915
MP
60562016-10-17 Marek Polacek <polacek@redhat.com>
6057
6058 * c-attribs.c: New file.
6059 * c-common.c: Move attributes handling to c-attribs.c.
6060 (get_nonnull_operand): No longer static.
6061 * c-common.h: Move the declarations from c-attribs.c to its own section.
6062
2045acd9
JM
60632016-10-14 Jason Merrill <jason@redhat.com>
6064
6065 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_aggregate_bases
6066 and __cpp_deduction_guides.
6067
14a2c9aa
JM
60682016-10-13 Jason Merrill <jason@redhat.com>
6069
6070 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_inline_variables.
6071
4d0cdd0c
TP
60722016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
6073
6074 * c-cppbuiltin.c: Include memmodel.h.
6075 * c-opts.c: Likewise.
6076 * c-pragma.c: Likewise.
6077 * c-warn.c: Likewise.
6078
70f6d5e1
JJ
60792016-10-12 Jakub Jelinek <jakub@redhat.com>
6080
6081 * c.opt (Wextra): Add as C/C++/ObjC/ObjC++ option.
6082 (Wimplicit-fallthrough=): Enable for these languages by -Wextra.
6083 * c-opts.c (sanitize_cpp_opts): Initialize
6084 cpp_opts->cpp_warn_implicit_fallthrough.
6085
78f61294
MP
60862016-10-11 Marek Polacek <polacek@redhat.com>
6087
6088 * c-common.c (warning_candidate_p): Change the return type to bool
6089 and return true/false instead of 1/0.
6090 (vector_mode_valid_p): Likewise.
6091
038b5cc0
MP
60922016-10-11 Marek Polacek <polacek@redhat.com>
6093
6094 * c-common.c (fold_for_warn): No longer static.
6095 (bool_promoted_to_int_p): Likewise.
6096 (c_common_get_narrower): Likewise.
6097 (constant_expression_warning): Move to c-warn.c.
6098 (constant_expression_error): Likewise.
6099 (overflow_warning): Likewise.
6100 (warn_logical_operator): Likewise.
6101 (find_array_ref_with_const_idx_r): Likewise.
6102 (warn_tautological_cmp): Likewise.
6103 (expr_has_boolean_operands_p): Likewise.
6104 (warn_logical_not_parentheses): Likewise.
6105 (warn_if_unused_value): Likewise.
6106 (strict_aliasing_warning): Likewise.
6107 (sizeof_pointer_memaccess_warning): Likewise.
6108 (check_main_parameter_types): Likewise.
6109 (conversion_warning): Likewise.
6110 (warnings_for_convert_and_check): Likewise.
6111 (match_case_to_enum_1): Likewise.
6112 (match_case_to_enum): Likewise.
6113 (c_do_switch_warnings): Likewise.
6114 (warn_for_omitted_condop): Likewise.
6115 (readonly_error): Likewise.
6116 (lvalue_error): Likewise.
6117 (invalid_indirection_error): Likewise.
6118 (warn_array_subscript_with_type_char): Likewise.
6119 (warn_about_parentheses): Likewise.
6120 (warn_for_unused_label): Likewise.
6121 (warn_for_div_by_zero): Likewise.
6122 (warn_for_memset): Likewise.
6123 (warn_for_sign_compare): Likewise.
6124 (do_warn_double_promotion): Likewise.
6125 (do_warn_unused_parameter): Likewise.
6126 (record_locally_defined_typedef): Likewise.
6127 (maybe_record_typedef_use): Likewise.
6128 (maybe_warn_unused_local_typedefs): Likewise.
6129 (maybe_warn_bool_compare): Likewise.
6130 (maybe_warn_shift_overflow): Likewise.
6131 (warn_duplicated_cond_add_or_warn): Likewise.
6132 (diagnose_mismatched_attributes): Likewise.
6133 * c-common.h: Move the declarations from c-warn.c to its own section.
6134 * c-warn.c: New file.
6135
627be19f
JM
61362016-10-08 Jason Merrill <jason@redhat.com>
6137
6138 * c-common.c (c_common_truthvalue_conversion): Don't distribute
6139 into COND_EXPR in C++.
6140
7bad794a
JJ
61412016-10-08 Jakub Jelinek <jakub@redhat.com>
6142
6143 * c-lex.c (c_lex_with_flags) <case CPP_COMMENT>: For CPP_COMMENT
6144 token with PREV_FALLTHROUGH, skip all following CPP_PADDING and
6145 CPP_COMMENT tokens and set add_flags to PREV_FALLTHROUGH afterwards.
6146
be845b04
JJ
61472016-10-07 Jakub Jelinek <jakub@redhat.com>
6148
6149 Implement LWG2296 helper intrinsic
6150 * c-common.h (enum rid): Add RID_ADDRESSOF.
6151 * c-common.c (c_common_reswords): Add __builtin_addressof.
6152
c09c4992
BE
61532016-10-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
6154
6155 PR c++/77700
6156 * c-common.c (c_common_truthvalue_conversion): Warn also for
6157 suspicious enum values in boolean context.
6158
342cfb3e
JJ
61592016-10-06 Jakub Jelinek <jakub@redhat.com>
6160
6161 Implement P0258R2 - helper for C++17
6162 std::has_unique_object_representations trait
6163 * c-common.h (enum rid): Add RID_HAS_UNIQUE_OBJ_REPRESENTATIONS.
6164 * c-common.c (c_common_reswords): Add
6165 __has_unique_object_representations.
6166
2e69f143
JJ
61672016-10-05 Jakub Jelinek <jakub@redhat.com>
6168
6169 PR sanitizer/66343
6170 * c-ubsan.c (ubsan_instrument_return): Don't call
6171 initialize_sanitizer_builtins here.
6172
700fff34
BE
61732016-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
6174
6175 * c-common.c (c_common_truthvalue_conversion): Warn also for suspicious
6176 conditional expression in boolean context when only one arm is
6177 non-boolean.
6178
9563bfcd
JJ
61792016-10-05 Jakub Jelinek <jakub@redhat.com>
6180
04a32443
JJ
6181 PR sanitizer/77823
6182 * c-ubsan.c (ubsan_instrument_shift): Return NULL_TREE if type0
6183 is not integral.
6184
9563bfcd
JJ
6185 * c-common.c (c_common_reswords): Update comment for C++11.
6186
f1644724
JM
61872016-10-04 Jason Merrill <jason@redhat.com>
6188
6189 * c-common.c (make_tree_vector_from_ctor): New.
6190 * c-common.h: Declare it.
6191
5a79befb
JJ
61922016-10-04 Jakub Jelinek <jakub@redhat.com>
6193
6194 * c-cppbuiltin.c (c_cpp_builtins): Don't define
6195 __LIBGCC_JCR_SECTION_NAME__.
6196
1633d3b9
BE
61972016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
6198
6199 * c-common.c (c_common_truthvalue_conversion): Warn for suspicious
6200 left shift in boolean context.
6201
a2c6e7f2
JJ
62022016-09-29 Jakub Jelinek <jakub@redhat.com>
6203
6204 Implement P0001R1 - C++17 removal of register storage class specifier
6205 * c.opt (Wregister): New warning.
6206 * c-opts.c (c_common_post_options): Enable -Wregister by
6207 default for C++17.
6208
75304c87
JG
62092016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
6210
6211 * c-opts.c (c_common_post_options): Remove special case for
6212 TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard
6213 in C++.
6214
bbfac6da
JJ
62152016-09-27 Jakub Jelinek <jakub@redhat.com>
6216
6e39060a
JJ
6217 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for
6218 -std=c++1z.
6219
bbfac6da
JJ
6220 * c-ada-spec.c (print_ada_declaration): Remove break after return.
6221
e73cf9a2
TP
62222016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
6223
6224 * c-common.c: Include memmodel.h.
6225
c6147dc4
MP
62262016-09-26 Marek Polacek <polacek@redhat.com>
6227
6228 * c-lex.c (c_common_has_attribute): Handle attribute fallthrough.
6229
81fea426
MP
62302016-09-26 Marek Polacek <polacek@redhat.com>
6231
6232 PR c/7652
6233 * c-common.c (c_common_attribute_table): Add fallthrough attribute.
6234 (handle_fallthrough_attribute): New function.
6235 (attribute_fallthrough_p): New function.
6236 * c-common.h (attribute_fallthrough_p): Declare.
6237
9a2300e9
MP
62382016-09-24 Marek Polacek <polacek@redhat.com>
6239
6240 PR c/77490
6241 * c.opt (Wbool-operation): New.
6242
a09e9e35
BE
62432016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
6244
6245 * c-common.c (c_common_truthvalue_conversion): Inhibit
6246 Wint-in-bool-context warning with from_macro_definition_at.
6247 Mention the expression will always evaluate to true.
6248
d43b4ccc
MS
62492016-09-21 Martin Sebor <msebor@redhat.com>
6250
6251 PR bootstrap/77676
6252 * c.opt (fprintf-return-value): Temporarily initialize to zero
6253 to unblock bootstrap failures.
6254
2e1c20b1
JJ
62552016-09-21 Jakub Jelinek <jakub@redhat.com>
6256
6257 PR c++/77651
6258 * c.opt (Waligned-new=): Add RejectNegative.
6259 (faligned-new=): Likewise. Spelling fix - change
6260 aligned_new_threshhold to aligned_new_threshold.
6261 * c-cppbuiltin.c (c_cpp_builtins): Change aligned_new_threshhold
6262 to aligned_new_threshold.
6263
88d0c3f0
MS
62642016-09-20 Martin Sebor <msebor@redhat.com>
6265
6266 PR middle-end/49905
6267 * c.opt: Add -Wformat-length and -fprintf-return-value.
6268
144a96e4
BE
62692016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
6270
6271 PR c++/77434
6272 * c.opt (Wint-in-bool-context): New warning.
6273 * c-common.c (c_common_truthvalue_conversion): Warn on integer
6274 constants in boolean context.
6275
63012d9a
JM
62762016-09-19 Joseph Myers <joseph@codesourcery.com>
6277
6278 * c-common.c (max_align_t_align): Also consider alignment of
6279 float128_type_node.
6280
931388ce
JM
62812016-09-15 Jason Merrill <jason@redhat.com>
6282
6283 * c-common.c (check_cxx_fundamental_alignment_constraints): Check
6284 DECL_EXTERNAL.
6285
38711381
JM
62862016-09-14 Jason Merrill <jason@redhat.com>
6287
6288 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
6289 limit FIELD_DECL, either.
6290
e51fbec3
MP
62912016-09-14 Marek Polacek <polacek@redhat.com>
6292
6293 * c-common.c (c_common_truthvalue_conversion): Use false instead of 0.
6294 * c-common.h (build_unary_op): Change nonconvert parameter type to bool.
6295 * c-omp.c (c_finish_omp_atomic): Use false instead of 0.
6296
254830ba
DM
62972016-09-13 David Malcolm <dmalcolm@redhat.com>
6298
6299 * c-common.c (warn_logical_not_parentheses): Replace
6300 rich_location::add_fixit_insert calls with add_fixit_insert_before
6301 and add_fixit_insert_after, eliminating the "next_loc" calculation.
6302
42763690
JM
63032016-09-13 Jason Merrill <jason@redhat.com>
6304 Tom de Vries <tom@codesourcery.com>
6305
6306 PR c++/77427
6307 * c-common.c (set_underlying_type): Don't treat array as builtin type.
6308
9453eee9
JM
63092016-09-13 Jason Merrill <jason@redhat.com>
6310
6311 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
6312 limit types at all.
6313
e96809e3
JM
63142016-09-12 Jason Merrill <jason@redhat.com>
6315
6316 * c-common.c (check_cxx_fundamental_alignment_constraints): Fix
6317 bit/byte confusion, allow large alignment for types.
6318
54dcdb88
BE
63192016-09-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
6320
6321 PR c++/77496
6322 * c-common.c (warn_for_omitted_condop): Also warn for boolean data.
6323
d1463eb9
DM
63242016-09-12 David Malcolm <dmalcolm@redhat.com>
6325
6326 PR c/72858
6327 * c-format.c (argument_parser::check_argument_type): Add params
6328 "type_start" and "conversion_char". Use the former to generate
6329 offset_to_type_start and pass it and conversion_char to
6330 check_format_types.
6331 (check_format_info_main): Capture the start of the type
6332 information as "type_start", and pass it an format_char
6333 to arg_parser.check_argument_type.
6334 (check_format_types): Provide an example in the leading comment.
6335 Add params "offset_to_type_start" and "conversion_char"; pass
6336 them to format_type_warning calls.
6337 (test_get_modifier_for_format_len): Likewise.
6338 (matching_type_p): New function.
6339 (get_format_for_type): Add param "conversion_char" and move
6340 implementation into...
6341 (get_format_for_type_1): ...new function, called twice.
6342 Use new function matching_type_p rather than checking for
6343 TYPE_CANONICAL equality.
6344 (get_corrected_substring): New function.
6345 (format_type_warning): Provide an example in the leading comment.
6346 Add params "offset_to_type_start" and "conversion_char". Replace
6347 call to get_format_for_type with call to get_corrected_substring
6348 and move rejection of hints for widths/precisions there.
6349 (assert_format_for_type_streq): Add param "conversion_char".
6350 (ASSERT_FORMAT_FOR_TYPE_STREQ): Add param CONVERSION_CHAR.
6351 (test_get_format_for_type_printf): Add conversion chars to the
6352 tests, adding coverage for various combinations of integer
6353 vs double conversions, and for preserving octal and hexadecimal
6354 conversions.
6355 (test_get_format_for_type_scanf): Add conversion chars to the
6356 tests.
6357
5b28efbb
TV
63582016-09-10 Tom de Vries <tom@codesourcery.com>
6359
6360 PR C/71602
6361 * c-common.c (build_va_arg): Handle more strict
6362 targetm.canonical_va_list_type. Replace first argument type error with
6363 assert.
6364
3f0177e7
MS
63652016-09-09 Martin Sebor <msebor@redhat.com>
6366
6367 PR c/77520
6368 PR c/77521
6369 * c-format.c (argument_parser::find_format_char_info): Use %qc
6370 format directive unconditionally.
6371
af63ba4b
JM
63722016-09-09 Jason Merrill <jason@redhat.com>
6373
6374 Implement C++17 new of over-aligned types.
6375 * c.opt: Add -faligned-new and -Waligned-new.
6376 * c-common.c (max_align_t_align): Split out from...
6377 (cxx_fundamental_alignment_p): ...here.
6378 * c-common.h: Declare it.
6379 * c-cppbuiltin.c (c_cpp_builtins): Handle aligned new.
6380
c65248cb
JM
63812016-09-09 Joseph Myers <joseph@codesourcery.com>
6382
6383 * c-cppbuiltin.c (builtin_define_type_width): New function.
6384 (builtin_define_stdint_macros, c_cpp_builtins): Define type width
6385 macros.
6386
e5106e27
DM
63872016-09-07 David Malcolm <dmalcolm@redhat.com>
6388
6389 * c-common.c (get_cpp_ttype_from_string_type): Handle being passed
6390 a POINTER_TYPE.
6391 (substring_loc::get_location): Move to substring-locations.c,
6392 keeping implementation as...
6393 (c_get_substring_location): New function, from the above, reworked
6394 to use accessors rather than member lookup.
6395 * c-common.h (class substring_loc): Move to substring-locations.h,
6396 replacing with a forward decl.
6397 (c_get_substring_location): New decl.
6398 * c-format.c: Include "substring-locations.h".
6399 (format_warning_va): Move to substring-locations.c.
6400 (format_warning_at_substring): Likewise.
6401
ab20d992 64022016-09-06 Martin Sebor <msebor@redhat.com>
a42e7952
MS
6403
6404 PR c/77336
6405 * c-format.c (check_function_format): Avoid issuing warnings for
6406 functions unless they call format functions with non-constant
6407 format strings.
6408
b772a565
RB
64092016-09-06 Richard Biener <rguenther@suse.de>
6410
6411 PR c/77450
6412 * c-common.c (c_common_mark_addressable_vec): Handle
6413 COMPOUND_LITERAL_EXPR.
6414
25ff5dd3
MP
64152016-09-05 Marek Polacek <polacek@redhat.com>
6416
6417 PR c/77423
6418 * c-common.c (bool_promoted_to_int_p): New function.
6419 (expr_has_boolean_operands_p): New function.
6420 (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p.
6421 (maybe_warn_bool_compare): Use bool_promoted_to_int_p.
6422
21234eb5
TV
64232016-09-04 Tom de Vries <tom@codesourcery.com>
6424
6425 revert:
6426 2016-08-29 Tom de Vries <tom@codesourcery.com>
6427
6428 * c-common.c (build_va_arg): Replace first argument type error
6429 with assert.
6430
9dc5773f
JJ
64312016-09-02 Jakub Jelinek <jakub@redhat.com>
6432
6433 PR c/65467
6434 * c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions.
6435 (c_finish_omp_for): Reject _Atomic qualified iterators.
6436
64372016-09-01 Martin Sebor <msebor@redhat.com>
3d7b83b6
MS
6438
6439 * c-ada-spec.c (dump_ada_function_declaration): Increase buffer
6440 size to guarantee it fits the output of the formatted function
6441 regardless of its arguments.
6442
295844f6
MP
64432016-09-01 Marek Polacek <polacek@redhat.com>
6444
6445 PR c/7652
6446 * c-common.c (resolve_overloaded_builtin): Fix formatting. Add
6447 FALLTHRU comments.
6448
3d06b6f2
MP
64492016-08-29 Marek Polacek <polacek@redhat.com>
6450
6451 PR c/77292
6452 * c-common.c (warn_logical_not_parentheses): Don't warn for
6453 a comparison or a logical operator.
6454
34cedad5
TV
64552016-08-29 Tom de Vries <tom@codesourcery.com>
6456
6457 * c-common.c (build_va_arg): Fix type comparison assert.
6458
f162d717
TV
64592016-08-29 Tom de Vries <tom@codesourcery.com>
6460
6461 * c-common.c (build_va_arg): Replace first argument type error
6462 with assert.
6463
ba9bbd6f
TV
64642016-08-29 Tom de Vries <tom@codesourcery.com>
6465
6466 PR c/77398
6467 * c-common.c (build_va_arg): Add first argument error. Build va_arg
6468 with error_mark_node as va_list instead of with illegal va_list.
6469
ebef225f
MP
64702016-08-25 Marek Polacek <polacek@redhat.com>
6471 David Malcolm <dmalcolm@redhat.com>
6472
6473 * c-common.c (warn_logical_not_parentheses): Print fixit hints.
6474 * c-common.h (warn_logical_not_parentheses): Update declaration.
6475
b00e6e75
MP
64762016-08-22 Marek Polacek <polacek@redhat.com>
6477
6478 PR c++/77321
6479 * c-common.c (warn_for_memset): Check type for null.
6480
6dc198e3
JM
64812016-08-22 Joseph Myers <joseph@codesourcery.com>
6482
14ec014e 6483 * c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and
6dc198e3
JM
6484 _FloatNx types for suffixes for built-in functions.
6485
c65699ef
JM
64862016-08-19 Joseph Myers <joseph@codesourcery.com>
6487
6488 PR c/32187
6489 * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32)
6490 (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X)
6491 (RID_FLOAT128X): New enum rid values.
6492 (CASE_RID_FLOATN_NX): New macro.
6493 * c-common.c (c_common_reswords): Add _FloatN and _FloatNx
6494 keywords.
6495 (c_common_type_for_mode): Check for _FloatN and _FloatNx and
6496 corresponding complex types.
6497 (c_common_nodes_and_builtins): For non-C++, register _FloatN and
6498 _FloatNx and corresponding complex types.
6499 (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX.
6500 * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN
6501 and _FloatNx types for the widest type for determining
6502 DECIMAL_DIG. Define __LDBL_DECIMAL_DIG__ as well as
6503 __DECIMAL_DIG__ for long double. Handle FMA_SUFFIX being NULL.
6504 (c_cpp_builtins): Call builtin_define_float_constants for _FloatN
6505 and _FloatNx types.
6506 * c-lex.c (interpret_float): Handle _FloatN and _FloatNx
6507 constants.
6508 * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and
6509 _FloatNx types.
6510
cc015f3a
DM
65112016-08-18 David Malcolm <dmalcolm@redhat.com>
6512
6513 * c-opts.c (c_diagnostic_finalizer): Update for change to
6514 diagnostic_show_locus.
6515
cb18fd07
DM
65162016-08-18 David Malcolm <dmalcolm@redhat.com>
6517
6518 * c-common.c: Include "spellcheck.h".
6519 (cb_get_suggestion): New function.
6520 * c-common.h (cb_get_suggestion): New decl.
6521 * c-lex.c (init_c_lex): Initialize cb->get_suggestion to
6522 cb_get_suggestion.
6523
a76989dc
MP
65242016-08-18 Marek Polacek <polacek@redhat.com>
6525
6526 PR c/71514
6527 * c-common.c (get_atomic_generic_size): Disallow pointer-to-function
6528 and pointer-to-VLA.
6529
65e736c0
DM
65302016-08-16 David Malcolm <dmalcolm@redhat.com>
6531
6532 PR c/72857
6533 * c-common.c (substring_loc::get_range): Rename to...
6534 (substring_loc::get_location): ...this, converting param from a
6535 source_range * to a location_t *. Call
6536 get_source_location_for_substring rather than
6537 get_source_range_for_substring, and pass in m_caret_idx.
6538 * c-common.h (substring_loc::substring_loc): Add param "caret_idx".
6539 (substring_loc::get_range): Replace with...
6540 (substring_loc::get_location): ...this.
6541 (substring_loc::set_caret_index): New method.
6542 (substring_loc): Add field m_caret_idx.
6543 * c-format.c (format_warning_va): Update for above changes.
6544 Rename local "substring_loc" to "fmt_substring_loc" to avoid
6545 clashing with type name.
6546 (format_warning_at_char): Add caret_idx param to substring_loc ctor.
6547 (check_argument_type): Likewise.
6548 (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc"
6549 Use a copy when emitting warnings, setting the caret index from TYPE.
6550
7e1dde14 65512016-08-16 Eric Botcazou <ebotcazou@adacore.com>
8e745a17 6552 Arnaud Charlet <charlet@adacore.com>
7e1dde14
EB
6553
6554 * c-ada-spec.c (dump_number): New function.
6555 (handle_escape_character): Likewise.
6556 (print_ada_macros): Add handling of constant integers and strings.
6557
191816a3
MP
65582016-08-12 Marek Polacek <polacek@redhat.com>
6559
6560 PR c/7652
6561 * c-common.c (scalar_to_vector): Adjust fall through comment.
6562 * c-opts.c (c_common_handle_option): Likewise.
6563 * c-pragma.c (handle_pragma_pack): Add FALLTHRU.
6564 * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust
6565 fall through comment.
6566 * cilk.c (extract_free_variables): Add FALLTHRU.
6567
452df4a4
JM
65682016-08-10 Jason Merrill <jason@redhat.com>
6569
6570 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr.
6571
f3365c12
JM
65722016-08-09 Jason Merrill <jason@redhat.com>
6573
6574 * c-common.c (c_common_attribute_table): vector_size affects type
6575 identity.
6576
f0bc3323
MP
65772016-08-09 Marek Polacek <polacek@redhat.com>
6578
6579 PR c/7652
6580 * c-ada-spec.c (dump_generic_ada_node): Add return.
6581
98e5a19a
JM
65822016-08-09 Jason Merrill <jason@redhat.com>
6583
6584 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for
6585 C++17 constexpr lambdas.
6586
895aa8e1
DM
65872016-08-08 David Malcolm <dmalcolm@redhat.com>
6588
6589 PR c/64955
6590 * c-common.h (selftest::c_format_c_tests): New declaration.
6591 (selftest::run_c_tests): New declaration.
6592 * c-format.c: Include "selftest.h.
6593 (format_warning_va): Add param "corrected_substring" and use
6594 it to add a replacement fix-it hint.
6595 (format_warning_at_substring): Likewise.
6596 (format_warning_at_char): Update for new param of
6597 format_warning_va.
6598 (argument_parser::check_argument_type): Pass "fki" to
6599 check_format_types.
6600 (check_format_types): Add param "fki" and pass it to
6601 format_type_warning.
6602 (deref_n_times): New function.
6603 (get_modifier_for_format_len): New function.
6604 (selftest::test_get_modifier_for_format_len): New function.
6605 (get_format_for_type): New function.
6606 (format_type_warning): Add param "fki" and use it to attempt
6607 to provide hints for argument types when calling
6608 format_warning_at_substring.
6609 (selftest::get_info): New function.
6610 (selftest::assert_format_for_type_streq): New function.
6611 (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro.
6612 (selftest::test_get_format_for_type_printf): New function.
6613 (selftest::test_get_format_for_type_scanf): New function.
6614 (selftest::c_format_c_tests): New function.
6615
e52ed3fe
DM
66162016-08-08 David Malcolm <dmalcolm@redhat.com>
6617
6618 PR c/52952
6619 * c-format.c: Include "diagnostic.h".
6620 (location_column_from_byte_offset): Delete.
6621 (location_from_offset): Delete.
6622 (format_warning_va): New function.
6623 (format_warning_at_substring): New function.
6624 (format_warning_at_char): New function.
6625 (check_format_arg): Capture location of format_tree and pass to
6626 check_format_info_main.
6627 (argument_parser): Add fields "start_of_this_format" and
6628 "format_string_cst".
6629 (flag_chars_t::validate): Add param "format_string_cst". Convert
6630 warning_at call using location_from_offset to call to
6631 format_warning_at_char.
6632 (argument_parser::argument_parser): Add param "format_string_cst_"
6633 and use use it to initialize field "format_string_cst".
6634 Initialize new field "start_of_this_format".
6635 (argument_parser::read_format_flags): Convert warning_at call
6636 using location_from_offset to a call to format_warning_at_char.
6637 (argument_parser::read_any_format_left_precision): Likewise.
6638 (argument_parser::read_any_format_precision): Likewise.
6639 (argument_parser::read_any_other_modifier): Likewise.
6640 (argument_parser::find_format_char_info): Likewise, in three places.
6641 (argument_parser::parse_any_scan_set): Likewise, in one place.
6642 (argument_parser::handle_conversions): Likewise, in two places.
6643 (argument_parser::check_argument_type): Add param "fmt_param_loc"
6644 and use it to make a substring_loc. Pass the latter to
6645 check_format_types.
6646 (check_format_info_main): Add params "fmt_param_loc" and
6647 "format_string_cst". Convert warning_at calls using
6648 location_from_offset to calls to format_warning_at_char. Pass the
6649 new params to the arg_parser ctor. Pass "format_string_cst" to
6650 flag_chars.validate. Pass "fmt_param_loc" to
6651 arg_parser.check_argument_type.
6652 (check_format_types): Convert first param from a location_t
6653 to a const substring_loc & and rename to "fmt_loc". Attempt
6654 to extract the range of the relevant parameter and pass it
6655 to format_type_warning.
6656 (format_type_warning): Convert first param from a location_t
6657 to a const substring_loc & and rename to "fmt_loc". Add
6658 params "param_range" and "type". Replace calls to warning_at
6659 with calls to format_warning_at_substring.
6660
1c4d457e
DM
66612016-08-08 David Malcolm <dmalcolm@redhat.com>
6662
6663 * c-format.c (class flag_chars_t): New class.
6664 (struct length_modifier): New struct.
6665 (class argument_parser): New class.
6666 (flag_chars_t::flag_chars_t): New ctor.
6667 (flag_chars_t::has_char_p): New method.
6668 (flag_chars_t::add_char): New method.
6669 (flag_chars_t::validate): New method.
6670 (flag_chars_t::get_alloc_flag): New method.
6671 (flag_chars_t::assignment_suppression_p): New method.
6672 (argument_parser::argument_parser): New ctor.
6673 (argument_parser::read_any_dollar): New method.
6674 (argument_parser::read_format_flags): New method.
6675 (argument_parser::read_any_format_width): New method.
6676 (argument_parser::read_any_format_left_precision): New method.
6677 (argument_parser::read_any_format_precision): New method.
6678 (argument_parser::handle_alloc_chars): New method.
6679 (argument_parser::read_any_length_modifier): New method.
6680 (argument_parser::read_any_other_modifier): New method.
6681 (argument_parser::find_format_char_info): New method.
6682 (argument_parser::validate_flag_pairs): New method.
6683 (argument_parser::give_y2k_warnings): New method.
6684 (argument_parser::parse_any_scan_set): New method.
6685 (argument_parser::handle_conversions): New method.
6686 (argument_parser::check_argument_type): New method.
6687 (check_format_info_main): Introduce classes argument_parser
6688 and flag_chars_t, moving the code within the loop into methods
6689 of these classes. Make various locals "const".
6690
88fa5555
DM
66912016-08-05 David Malcolm <dmalcolm@redhat.com>
6692
6693 * c-common.c: Include "substring-locations.h".
6694 (get_cpp_ttype_from_string_type): New function.
6695 (g_string_concat_db): New global.
6696 (substring_loc::get_range): New method.
6697 * c-common.h (g_string_concat_db): New declaration.
6698 (class substring_loc): New class.
6699 * c-lex.c (lex_string): When concatenating strings, capture the
6700 locations of all tokens using a new obstack, and record the
6701 concatenation locations within g_string_concat_db.
6702 * c-opts.c (c_common_init_options): Construct g_string_concat_db
6703 on the ggc-heap.
6704
78169471
MP
67052016-07-29 Marek Polacek <polacek@redhat.com>
6706
638fc14f
MP
6707 PR c/71926
6708 * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the
6709 parentheses warning.
6710
78169471
MP
6711 PR c/71574
6712 * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL.
6713
1225d6b1
ML
67142016-07-28 Martin Liska <mliska@suse.cz>
6715
6716 PR gcov-profile/68025
6717 * c-common.c (handle_no_profile_instrument_function_attribute):
6718
ec1e2a40
BE
67192016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
6720
6721 * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of
6722 BITS_PER_UNIT_LOG.
6723
5ec2cd9f
JM
67242016-07-25 Jason Merrill <jason@redhat.com>
6725
6726 PR c++/65970
6727 * c.opt (fconstexpr-loop-limit): New.
6728
9dc5773f 67292016-07-22 Martin Sebor <msebor@redhat.com>
2e6b45af
MS
6730
6731 PR c++/71675
6732 * c-common.c (resolve_overloaded_builtin): Avoid converting
6733 __atomic_compare_exchange_n return type to that of what its
6734 first argument points to.
6735
e3fe09c1
UB
67362016-07-22 Uros Bizjak <ubizjak@gmail.com>
6737
6738 * c-common.c: Use HOST_WIDE_INT_M1U instead of
6739 ~(unsigned HOST_WIDE_INT) 0.
6740
bc91c436
ML
67412016-07-22 Martin Liska <mliska@suse.cz>
6742
6743 PR gcov-profile/69028
6744 PR gcov-profile/62047
6745 * cilk.c (create_cilk_helper_decl): Set location of a new decl
6746 to the current_function_decl.
6747
451dcc66
JM
67482016-07-21 Jason Merrill <jason@redhat.com>
6749
6750 PR c++/65168
6751 * c-common.c (c_common_truthvalue_conversion): Check
6752 c_inhibit_evaluation_warnings for warning about address of
6753 reference.
6754
de6a69ee
DM
67552016-07-20 David Malcolm <dmalcolm@redhat.com>
6756
6757 * c-common.h (lookup_name_fuzzy): Convert return type from tree to
6758 const char *.
6759
d022c55a
JM
67602016-07-15 Jason Merrill <jason@redhat.com>
6761
6762 * c-opts.c (c_common_post_options): Update -fabi-version default to 11.
6763
ddbbcb19
JJ
67642016-07-15 Jakub Jelinek <jakub@redhat.com>
6765
6766 PR c/71858
6767 * c-common.h (enum lookup_name_fuzzy_kind): Add
6768 FUZZY_LOOKUP_FUNCTION_NAME.
6769
d0cf395a
JM
67702016-07-08 Jason Merrill <jason@redhat.com>
6771
6772 P0145: Refining Expression Order for C++.
6773 * c.opts (-fargs-in-order): Rename to -fstrong-eval-order.
6774 * c-opts.c: Adjust.
6775
98d44e93
MT
67762016-07-05 Markus Trippelsdorf <markus@trippelsdorf.de>
6777
6778 PR c++/71214
6779 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.
6780
f9d8d994
TS
67812016-06-29 Thomas Schwinge <thomas@codesourcery.com>
6782
6783 * c-pragma.h (enum pragma_kind): Rename
6784 PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE. Adjust all
6785 users.
6786
4aa83879
RB
67872016-06-29 Richard Biener <rguenther@suse.de>
6788
6789 PR middle-end/71002
6790 * c-common.c (c_common_get_alias_set): Remove union type punning case.
6791
a25bd9e6
JM
67922016-06-24 Jason Merrill <jason@redhat.com>
6793
6794 P0145R2: Refining Expression Order for C++.
6795 * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of
6796 MODIFY_EXPR.
6797
a86451b9
JJ
67982016-06-24 Jakub Jelinek <jakub@redhat.com>
6799
6800 * c-common.c (check_builtin_function_arguments): Require last
6801 argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type.
6802 Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW
6803 if the last argument is pointer to enumerated or boolean type.
6804
1a4f11c8
DM
68052016-06-22 David Malcolm <dmalcolm@redhat.com>
6806
6807 PR c/70339
6808 * c-common.h (enum lookup_name_fuzzy_kind): New enum.
6809 (lookup_name_fuzzy): New prototype.
6810
fe55692c
JDA
68112016-06-21 John David Anglin <danglin@gcc.gnu.org>
6812
6813 * c-common.c (get_source_date_epoch): Use int64_t instead of long long.
6814
4eb24e01
JM
68152016-06-14 Jason Merrill <jason@redhat.com>
6816
6817 P0145R2: Refining Expression Order for C++.
6818 * c.opt (fargs-in-order): New.
6819 * c-opts.c (c_common_post_options): Adjust flag_args_in_order.
6820
ef7cf206
JJ
68212016-06-13 Jakub Jelinek <jakub@redhat.com>
6822
0dda258b
JJ
6823 PR sanitizer/71498
6824 * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
6825 all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.
6826
ef7cf206
JJ
6827 PR preprocessor/71183
6828 * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch
6829 to cb_get_source_date_epoch.
6830
50b15873
JJ
68312016-06-10 Jakub Jelinek <jakub@redhat.com>
6832
6833 PR c/68657
6834 * c.opt (Wpsabi): Add Warning flag.
6835
4d926e34
MS
68362016-06-10 Martin Sebor <msebor@redhat.com>
6837
6838 PR c/71392
14ec014e 6839 * c-common.c (handle_nonnull_attribute): Accept
4d926e34
MS
6840 the nonnull attribute in type-generic builtins.
6841
e01b4e16
MS
68422016-06-09 Martin Sebor <msebor@redhat.com>
6843
6844 PR c/70883
6845 * c-common.c (builtin_function_validate_nargs): Make text of error
6846 message consistent with others like it.
6847
44a845ca
MS
68482016-06-08 Martin Sebor <msebor@redhat.com>
6849 Jakub Jelinek <jakub@redhat.com>
6850
6851 PR c++/70507
6852 PR c/68120
6853 * c-common.c (check_builtin_function_arguments): Handle
6854 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
6855
a80a7051
RB
68562016-06-08 Richard Biener <rguenther@suse.de>
6857
6858 * c-common.c (parse_optimize_options): Improve diagnostic messages.
6859
bfd67b47
RB
68602016-06-07 Richard Biener <rguenther@suse.de>
6861
6862 PR c/61564
6863 * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION
6864 options and warn about others.
6865
15c98b2e
ES
68662016-06-01 Eduard Sanou <dhole@openmailbox.org>
6867
6868 * c-common.c (get_source_date_epoch): Rename to
6869 cb_get_source_date_epoch.
6870 * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
6871 message when the parsing fails. Use error_at instead of fatal_error.
6872 * c-common.h (get_source_date_epoch): Rename to
6873 cb_get_source_date_epoch.
6874 * c-common.h (cb_get_source_date_epoch): Prototype.
6875 * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
6876 * c-common.h (c_omp_region_type): Remove trailing comma.
6877 * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
6878 * c-lex.c (c_lex_with_flags): Remove initialization of
6879 pfile->source_date_epoch.
6880
00631022
JJ
68812016-05-30 Jakub Jelinek <jakub@redhat.com>
6882
6883 PR c++/71349
6884 * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
6885 C_OMP_CLAUSE_SPLIT_TARGET. Put OMP_CLAUSE_NOWAIT to
6886 C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
6887 instead of C_OMP_CLAUSE_SPLIT_FOR.
6888
f17a223d
RB
68892016-05-24 Richard Biener <rguenther@suse.de>
6890
6891 PR middle-end/70434
6892 PR c/69504
6893 * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
6894 (convert_vector_to_array_for_subscript): ... this.
6895 * c-common.c (convert_vector_to_pointer_for_subscript): Use a
6896 VIEW_CONVERT_EXPR to an array type. Rename to ...
6897 (convert_vector_to_array_for_subscript): ... this.
6898
4f2e1536
MP
68992016-05-12 Marek Polacek <polacek@redhat.com>
6900
6901 PR c/70756
6902 * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
6903 size_in_bytes and pass LOC to it.
6904
d6e83a8d
MM
69052016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
6906
6907 PR c/43651
6908 * c.opt (Wduplicate-decl-specifier): New option.
6909
5c3a10fb
MP
69102016-05-11 Marek Polacek <polacek@redhat.com>
6911
6912 PR c++/71024
6913 * c-common.c (diagnose_mismatched_attributes): New function.
6914 * c-common.h (diagnose_mismatched_attributes): Declare.
6915
deef7113
MP
69162016-05-04 Marek Polacek <polacek@redhat.com>
6917
6918 * c.opt (Wdangling-else): New option.
6919
79ce98bc
MP
69202016-05-03 Marek Polacek <polacek@redhat.com>
6921
6922 PR c/70859
6923 * c-common.c (builtin_function_validate_nargs): Add location
6924 parameter. Use it.
6925 (check_builtin_function_arguments): Add location and arguments
6926 parameters. Use them.
6927 * c-common.h (check_builtin_function_arguments): Update declaration.
6928
381cdae4
RB
69292016-05-03 Richard Biener <rguenther@suse.de>
6930
6931 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
6932 allow call args to gimplify to SSA names.
6933
1d793c34
MP
69342016-05-03 Marek Polacek <polacek@redhat.com>
6935
6936 * c-common.h (enum c_omp_region_type): Remove stray comma.
6937
77886428
CP
69382016-05-02 Cesar Philippidis <cesar@codesourcery.com>
6939
6940 * c-common.h (enum c_omp_region_type): Define.
6941
697e0b28
RS
69422016-05-02 Richard Sandiford <richard.sandiford@arm.com>
6943
6944 * c-common.c (shorten_compare): Use wi::to_wide.
6945
e7ff0319
CP
69462016-04-29 Cesar Philippidis <cesar@codesourcery.com>
6947
6948 PR middle-end/70626
6949 * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
6950 * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
6951 reduction clauses in acc parallel loops.
6952
2fff3db8
MP
69532016-04-29 Marek Polacek <polacek@redhat.com>
6954
6955 PR c/70852
6956 * c-common.c (warn_for_memset): Check domain before accessing it.
6957
509063eb
DV
69582016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
6959
6960 PR/69089
6961 * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
6962 "aligned" attribute.
6963
b632761d
JM
69642016-04-28 Jason Merrill <jason@redhat.com>
6965
6966 * c-lex.c (c_common_has_attribute): Handle nodiscard.
6967
174f6622
ES
69682016-04-28 Eduard Sanou <dhole@openmailbox.org>
6969 Matthias Klose <doko@debian.org>
6970
6971 * c-common.c (get_source_date_epoch): New function, gets the environment
7365279f 6972 variable SOURCE_DATE_EPOCH and parses it as long long with error
174f6622
ES
6973 handling.
6974 * c-common.h (get_source_date_epoch): Prototype.
6975 * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
6976
6bc2bb18
RB
69772015-04-27 Ryan Burn <contact@rnburn.com>
6978
6979 PR c++/69024
6980 PR c++/68997
6981 * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
6982 (cilk_recognize_spawn): Renamed from recognize_spawn and change to
6983 external linkage.
6984 (cilk_detect_and_unwrap): Corresponding changes.
6985 (extract_free_variables): Don't extract free variables from
6986 AGGR_INIT_EXPR slot.
6987 * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
6988 (cilk_recognize_spawn): Likewise.
6989
c1e1f433
BS
69902016-04-27 Bernd Schmidt <bschmidt@redhat.com>
6991
6992 * c.opt (Wmemset-elt-size): New option.
6993 * c-common.c (warn_for_memset): New function.
6994 * c-common.h (warn_for_memset): Declare.
6995
d067e05f
JM
69962016-04-25 Jason Merrill <jason@redhat.com>
6997
6998 * c-common.c (handle_unused_attribute): Accept CONST_DECL.
6999 No longer static.
7000 * c-common.h: Declare it.
7001 * c-lex.c (c_common_has_attribute): Add maybe_unused.
7002
9aa36ae5
JM
70032016-04-22 Jason Merrill <jason@redhat.com>
7004
7005 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
7006
477d4906
IV
70072016-04-20 Ilya Verbin <ilya.verbin@intel.com>
7008
7009 PR c++/69363
7010 * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
7011 * c-common.h (c_finish_cilk_clauses): Remove declaration.
7012
fe37c7af
MM
70132016-04-18 Michael Matz <matz@suse.de>
7014
7015 * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
7016 and SET_DECL_ALIGN.
7017
23f2660f
EB
70182016-04-17 Eric Botcazou <ebotcazou@adacore.com>
7019
7020 * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
7021 (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
7022 to incomplete types.
7023 (dump_nested_type): Remove redundant tests and tidy up.
7024 (print_ada_declaration): Also set TREE_VISITED on the declaration of
7025 a type which is the typedef of an original type.
7026
1e77281b
MP
70272016-04-15 Marek Polacek <polacek@redhat.com>
7028
7029 PR c/70651
7030 * c-common.c (build_va_arg): Change two asserts into errors and return
7031 error_mark_node.
7032
b3a77f21
MP
70332016-04-13 Marek Polacek <polacek@redhat.com>
7034
7035 PR c++/70639
7036 * c-indentation.c (should_warn_for_misleading_indentation): Bail out
7037 for switch statements, too.
7038
322b8466
JM
70392016-03-28 Jason Merrill <jason@redhat.com>
7040
7041 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
7042
fbdb6baf
MP
70432016-03-23 Marek Polacek <polacek@redhat.com>
7044
7045 PR c++/69884
7046 * c.opt (Wignored-attributes): New option.
7047
5c240f4d
DM
70482016-03-22 David Malcolm <dmalcolm@redhat.com>
7049
7050 PR c/69993
7051 * c-indentation.c (warn_for_misleading_indentation): Rewrite the
7052 diagnostic text, reversing the order of the warning and note so
7053 that they appear in source order.
7054
14ba7b28
MP
70552016-03-17 Marek Polacek <polacek@redhat.com>
7056
7057 PR c/69407
7058 * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
7059 operations.
7060
08a1cadc
JM
70612016-03-14 Jason Merrill <jason@redhat.com>
7062
2aaeea19
JM
7063 * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
7064
08a1cadc
JM
7065 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
7066
c06d25bb
RB
70672016-03-09 Richard Biener <rguenther@suse.de>
7068
7069 PR c/70143
7070 * c-common.c (strict_aliasing_warning): Add back
7071 alias_sets_conflict_p check.
7072
80aac5c8
JM
70732016-03-08 Jason Merrill <jason@redhat.com>
7074
7075 * c-opts.c (set_std_cxx1z): Don't enable concepts.
7076
64b23c13
DM
70772016-03-04 David Malcolm <dmalcolm@redhat.com>
7078
7079 PR c/68187
7080 * c-indentation.c (get_visual_column): Move code to determine next
7081 tab stop to...
7082 (next_tab_stop): ...this new function.
7083 (line_contains_hash_if): Delete function.
7084 (detect_preprocessor_logic): Delete function.
7085 (get_first_nws_vis_column): New function.
7086 (detect_intervening_unindent): New function.
7087 (should_warn_for_misleading_indentation): Replace call to
7088 detect_preprocessor_logic with a call to
7089 detect_intervening_unindent.
7090
729526f5
DM
70912016-03-04 David Malcolm <dmalcolm@redhat.com>
7092
7093 PR c/68187
7094 * c-indentation.c (should_warn_for_misleading_indentation): When
7095 suppressing warnings about cases where the guard and body are on
7096 the same column, only use the first non-whitespace column in place
7097 of the guard token column when dealing with "else" clauses.
7098 When rejecting aligned BODY and NEXT, loosen the requirement
7099 from equality with the first non-whitespace of guard to simply
7100 that they not be indented relative to it.
7101
e9a35493
RB
71022016-03-04 Richard Biener <rguenther@suse.de>
7103
7104 PR c++/70054
7105 * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
7106 instead of alias_sets_conflict_p.
7107
1be56bc5
MP
71082016-03-01 Marek Polacek <polacek@redhat.com>
7109
7110 PR c++/69795
7111 * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
7112 any DECL.
7113
35886f0b
MS
71142016-02-22 Martin Sebor <msebor@redhat.com>
7115
7116 PR middle-end/69780
7117 * c-common.c (check_builtin_function_arguments): Validate and
7118 reject invalid arguments to __builtin_alloca_with_align.
7119
4246c8da
MW
71202016-02-20 Mark Wielaard <mjw@redhat.com>
7121
7122 PR c/28901
7123 * c.opt (Wunused-const-variable): Turn into Alias for...
7124 (Wunused-const-variable=): New option.
7125
268be88c
BE
71262016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
7127
7128 PR c++/69865
7129 * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
7130 here...
7131 (c_common_init_options): ...to here.
7132 (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
7133
871b3f47
JJ
71342016-02-19 Jakub Jelinek <jakub@redhat.com>
7135
7136 PR c++/69826
7137 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
7138 (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
7139 flag_preprocess_only.
7140
bf14eba2
JJ
71412016-02-16 Jakub Jelinek <jakub@redhat.com>
7142
7143 PR c/69835
7144 * c.opt (Wnonnull-compare): Enable for -Wall.
7145
ba6b3795
JJ
71462016-02-15 Jakub Jelinek <jakub@redhat.com>
7147
7148 PR c++/69797
7149 * c-common.c (sync_resolve_size): Diagnose too few arguments
7150 even when params is non-NULL empty vector.
7151
a011cd92
BS
71522016-02-08 Bernd Schmidt <bschmidt@redhat.com>
7153
7154 PR target/60410
7155 * c.opt (fshort-double): Remove.
7156
46cb9332
MS
71572016-02-05 Martin Sebor <msebor@redhat.com>
7158
7159 PR c++/69662
7160 * c.opt (Warning options): Update -Wplacement-new to take
7161 an optional argument.
7162
e1b81f2b
JJ
71632016-02-01 Jakub Jelinek <jakub@redhat.com>
7164
7165 PR preprocessor/69543
7166 PR c/69558
7167 * c-pragma.c (handle_pragma_diagnostic): Pass input_location
7168 instead of loc to control_warning_option.
7169
b6adbb9f
NS
71702016-02-01 Nathan Sidwell <nathan@codesourcery.com>
7171
7172 * c.opt (fopenacc-dim=): New option.
7173
5d70666e
RB
71742016-01-27 Ryan Burn <contact@rnburn.com>
7175
7176 PR cilkplus/69267
7177 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
7178 gimplify_arg. Removed superfluous post_p argument.
7179 * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
7180 superfluous post_p argument.
7181 * c-gimplify.c (c_gimplify_expr): Likewise.
7182
01e1dea3
DM
71832016-01-26 David Malcolm <dmalcolm@redhat.com>
7184
7185 PR other/69006
7186 * c-opts.c (c_diagnostic_finalizer): Replace invocation of
7187 pp_newline_and_flush with pp_flush.
7188
9f04a53e
MS
71892016-01-20 Martin Sebor <msebor@redhat.com>
7190
7191 PR c/69405
7192 * c-common.c (sync_resolve_size): Avoid printing diagnostic about
7193 an incompatible argument when the argument isn't a valid tree node.
7194
7f26f7df
JM
71952016-01-18 Jason Merrill <jason@redhat.com>
7196
7197 PR c++/68767
7198 * c-common.c (check_function_arguments_recurse): Fold the whole
7199 COND_EXPR, not just the condition.
7200
f62bf092
TV
72012016-01-18 Tom de Vries <tom@codesourcery.com>
7202
7203 * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
7204 classify as loop clause.
7205
e0a575ff
JJ
72062016-01-15 Jakub Jelinek <jakub@redhat.com>
7207
7208 PR bootstrap/68271
7209 * c-pragma.c (c_register_pragma_1): Adjust comment to note that
7210 C++ FE no longer has limit on number of pragmas.
7211
72122015-01-14 Ryan Burn <contact@rnburn.com>
b6e3db06
RB
7213
7214 PR c++/69048
7215 * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
c47eaca6 7216 to add missing cleanup point.
b6e3db06 7217
c7df95d8
DM
72182016-01-14 David Malcolm <dmalcolm@redhat.com>
7219
7220 PR c++/68819
7221 * c-indentation.c (get_visual_column): Add location_t param.
7222 Handle the column number being zero by effectively disabling the
7223 warning, with an "inform".
7224 (should_warn_for_misleading_indentation): Add location_t argument
7225 for all uses of get_visual_column.
7226
21efdd80
PP
72272016-01-10 Patrick Palka <ppalka@gcc.gnu.org>
7228
7229 PR c++/69029
7230 * c-indentation.c (should_warn_for_misleading_indentation):
7231 Don't warn about do-while statements.
7232
7a127fa7
MS
72332016-01-07 Martin Sebor <msebor@redhat.com>
7234
7235 PR c/68966
7236 * c-common.c (sync_resolve_size): Reject first argument when it's
7237 a pointer to _Bool.
7238
c589e975
DM
72392016-01-05 David Malcolm <dmalcolm@redhat.com>
7240
7241 PR c/69122
7242 * c-indentation.c (get_visual_column): Remove default argument.
7243 (should_warn_for_misleading_indentation): For the multiline case,
7244 update call to get_visual_column for next_stmt_exploc so that it
7245 captures the location of the first non-whitespace character in the
7246 relevant line. Don't issue warnings if there is non-whitespace
7247 before the next statement.
7248
818ab71a
JJ
72492016-01-04 Jakub Jelinek <jakub@redhat.com>
7250
7251 Update copyright years.
7252
745e411d
DM
72532015-12-21 David Malcolm <dmalcolm@redhat.com>
7254
7255 * c-common.c (binary_op_error): Convert first param from
7256 location_t to rich_location * and use it when emitting an error.
7257 * c-common.h (binary_op_error): Convert first param from
7258 location_t to rich_location *.
7259
de67c4c3
DM
72602015-12-16 David Malcolm <dmalcolm@redhat.com>
7261
7262 * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
7263 * c-lex.c (conflict_marker_get_final_tok_kind): New function.
7264
4a38b02b
IV
72652015-12-15 Ilya Verbin <ilya.verbin@intel.com>
7266
7267 * c-common.c (c_common_attribute_table): Handle "omp declare target
7268 link" attribute.
7269
54d62f51
JJ
72702015-12-14 Jakub Jelinek <jakub@redhat.com>
7271
7272 PR c/68833
7273 * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
7274
8d4227c8
TB
72752014-12-12 Tobias Burnus <burnus@net-b.de>
7276
7277 PR fortran/68815
7278 * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
7279 specifiers (%d, %i,%u and %c).
7280
f6069ccc
DM
72812015-12-10 David Malcolm <dmalcolm@redhat.com>
7282
7283 * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
7284
63bbf46d
JJ
72852015-12-08 Jakub Jelinek <jakub@redhat.com>
7286
7287 PR c/48088
7288 PR c/68657
7289 * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
7290 * c-pragma.c (handle_pragma_diagnostic): Adjust
7291 control_warning_option caller.
7292
f79520bb
DM
72932015-12-07 David Malcolm <dmalcolm@redhat.com>
7294
7295 * c-common.c (c_cpp_error): Update for change to
7296 rich_location::set_range.
7297
b3d5bc62
JJ
72982015-12-04 Paolo Bonzini <bonzini@gnu.org>
7299
7300 * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
7301 shifting 1 out of the sign bit.
7302
73032015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
7304
7305 * c-common.c (c_common_attribute_table[]): Update max arguments
7306 count for "simd" attribute.
7307 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
7308
6eb4a537
JJ
73092015-12-03 Jakub Jelinek <jakub@redhat.com>
7310
7311 PR preprocessor/57580
7312 * c-ppoutput.c (print): Change printed field to bool.
7313 Move src_file last for smaller padding.
7314 (init_pp_output): Set print.printed to false instead of 0.
7315 (scan_translation_unit): Fix up formatting. Set print.printed
7316 to true after printing something other than newline.
7317 (scan_translation_unit_trad): Set print.printed to true instead of 1.
7318 (maybe_print_line_1): Set print.printed to false instead of 0.
7319 (print_line_1): Likewise.
7320 (do_line_change): Set print.printed to true instead of 1.
7321 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
7322 dump_macro): Set print.printed to false after printing newline.
7323
4250754e
JM
73242015-12-02 Jason Merrill <jason@redhat.com>
7325
f479b43d
JM
7326 * c-common.c (fold_for_warn): New.
7327 (warn_logical_operator, warn_tautological_cmp)
7328 (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
7329
4250754e
JM
7330 * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
7331 (c_fully_fold_internal, decl_constant_value_for_optimization):
7332 Move to c/c-fold.c.
7333 * c-common.h: Don't declare decl_constant_value_for_optimization.
7334
e9e32ee6
JM
73352015-12-02 Joseph Myers <joseph@codesourcery.com>
7336
7337 PR c/68162
7338 * c-common.h (c_build_qualified_type): Add extra default
7339 arguments.
7340
37d5ad46
JB
73412015-12-01 Julian Brown <julian@codesourcery.com>
7342 Cesar Philippidis <cesar@codesourcery.com>
7343 James Norris <James_Norris@mentor.com>
7344
7345 * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
7346 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
7347 (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
7348
f07862c7
EB
73492015-11-30 Eric Botcazou <ebotcazou@adacore.com>
7350
7351 * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
7352 (decl_sloc_common): Delete and move bulk of processing to...
7353 (decl_sloc): ...here.
7354 (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
7355 (dump_ada_double_name): Remove S parameter and compute the suffix.
7356 (dump_ada_array_type): Add PARENT parameter. Simplify computation of
7357 element type and deal with an anonymous one.
7358 (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
7359 (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type
7360 and remove reference to QUAL_UNION_TYPE.
7361 (dump_nested_types): Make 2 passes on the fields and move bulk to...
7362 (dump_nested_type): ...here. New function extracted from above.
7363 Generate a full declaration for anonymous element type of arrays.
7364 (print_ada_declaration): Really skip anonymous declarations. Remove
7365 references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type.
7366 Clean up processing of declarations of array types and objects.
7367 (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
7368 Remove obsolete code and tidy up.
7369
75c8aac3
JH
73702015-11-29 Jan Hubicka <hubicka@ucw.cz>
7371
7372 PR c/67581
7373 * c-common.c (handle_transparent_union_attribute): Update
7374 also type variants.
7375
b58d3df2
ML
73762015-11-27 Martin Liska <mliska@suse.cz>
7377
7378 PR c++/68312
7379 * array-notation-common.c (cilkplus_extract_an_triplets):
7380 Release vector of vectors.
7381 * cilk.c (gimplify_cilk_spawn): Free allocated memory.
7382
89a01fcf
EB
73832015-11-26 Eric Botcazou <ebotcazou@adacore.com>
7384
7385 PR c++/68527
7386 * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
7387 (print_ada_struct_decl): Likewise.
7388
cc5c5226
IZ
73892015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
7390
7391 PR c++/68001
7392 * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
7393 * cilk.c (recognize_spawn): Determine location in a more precise
7394 way.
7395
269adb9d
JM
73962015-11-19 Jason Merrill <jason@redhat.com>
7397
7398 * c-common.c (shorten_compare): But look through macros from
7399 system headers.
7400
d0eccfcd
JM
74012015-11-18 Jason Merrill <jason@redhat.com>
7402
7403 * c-common.c (shorten_compare): Don't -Wtype-limits if the
7404 non-constant operand comes from a macro.
7405
3e44547c
JM
74062015-11-17 Jason Merrill <jason@redhat.com>
7407
7408 PR bootstrap/68346
7409 * c-common.c (warn_tautological_cmp): Fold before checking for
7410 constants.
7411
0f62c7a0
MP
74122015-11-16 Marek Polacek <polacek@redhat.com>
7413
7414 PR c++/68362
7415 * c-common.c (check_case_bounds): Fold low and high cases.
7416
a868811e
MP
74172015-11-16 Marek Polacek <polacek@redhat.com>
7418
7419 * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
7420 * c-common.c (c_common_get_alias_set): Likewise.
7421 (handle_visibility_attribute): Likewise.
7422
fff77217
KY
74232015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
7424
7425 * c-common.c (handle_simd_attribute): New.
7426 (struct attribute_spec): Add entry for "simd".
7427 (handle_simd_attribute): New.
7428
269e63b7
KT
74292015-11-13 Kai Tietz <ktietz70@googlemail.com>
7430
7431 * c-lex.c (interpret_float): Use fold_convert.
7432
ebedc9a3
DM
74332015-11-13 David Malcolm <dmalcolm@redhat.com>
7434
7435 * c-common.c (c_fully_fold_internal): Capture existing souce_range,
7436 and store it on the result.
7437 * c-opts.c (c_common_init_options): Set
7438 global_dc->colorize_source_p.
7439
6e232ba4
JN
74402015-11-12 James Norris <jnorris@codesourcery.com>
7441 Joseph Myers <joseph@codesourcery.com>
7442
7365279f 7443 * c-pragma.c (oacc_pragmas): Add entry for declare directive.
6e232ba4
JN
7444 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
7445 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
7446 PRAGMA_OACC_CLAUSE_LINK.
7447
e78bede6
MP
74482015-11-11 Marek Polacek <polacek@redhat.com>
7449
7450 PR c/68107
7451 PR c++/68266
7452 * c-common.c (valid_array_size_p): New function.
7453 * c-common.h (valid_array_size_p): Declare.
7454
3f8257db 74552015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
4ac93c7c
DH
7456
7457 PR bootstrap/68271
7458 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
7459
69f293c9
AM
74602015-11-11 Andrew MacLeod <amacleod@redhat.com>
7461
7462 * array-notation-common.c: Remove unused header files.
7463 * c-ada-spec.c: Likewise.
7464 * c-cilkplus.c: Likewise.
7465 * c-common.c: Likewise.
7466 * c-cppbuiltin.c: Likewise.
7467 * c-dump.c: Likewise.
7468 * c-format.c: Likewise.
7469 * c-gimplify.c: Likewise.
7470 * c-indentation.c: Likewise.
7471 * c-lex.c: Likewise.
7472 * c-omp.c: Likewise.
7473 * c-opts.c: Likewise.
7474 * c-pch.c: Likewise.
7475 * c-ppoutput.c: Likewise.
7476 * c-pragma.c: Likewise.
7477 * c-pretty-print.c: Likewise.
7478 * c-semantics.c: Likewise.
7479 * c-ubsan.c: Likewise.
7480 * cilk.c: Likewise.
7481 * stub-objc.c: Likewise.
7482
3a40d81d
NS
74832015-11-09 Thomas Schwinge <thomas@codesourcery.com>
7484 Cesar Philippidis <cesar@codesourcery.com>
7485 James Norris <jnorris@codesourcery.com>
7486 Julian Brown <julian@codesourcery.com>
7487 Nathan Sidwell <nathan@codesourcery.com>
7488
7489 * c-pragma.c (oacc_pragmas): Add "routine".
7490 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
7491
ee45a32d
EB
74922015-11-08 Eric Botcazou <ebotcazou@adacore.com>
7493
7494 * c-common.c (c_common_attributes): Add scalar_storage_order.
7495 (handle_scalar_storage_order_attribute): New function.
7496 * c-pragma.c (global_sso): New variable.
7497 (maybe_apply_pragma_scalar_storage_order): New function.
7498 (handle_pragma_scalar_storage_order): Likewise.
7499 (init_pragma): Register scalar_storage_order.
7500 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
7501 * c.opt (Wscalar-storage-order): New warning.
7502 (fsso-struct=): New option.
7503
eb11eb15
MS
75042015-11-08 Martin Sebor <msebor@redhat.com>
7505
7506 * c.opt (Wplacement-new): Add a period to the end of a sentence.
7507
0aad0198
RS
75082015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7509
7510 * c-common.c: Don't undef DEF_BUILTIN.
7511
8a645150
DM
75122015-11-06 David Malcolm <dmalcolm@redhat.com>
7513
7514 * c-common.c (c_cpp_error): Convert parameter from location_t to
7515 rich_location *. Eliminate the "column_override" parameter and
7516 the call to diagnostic_override_column.
7517 Update the "done_lexing" clause to set range 0
7518 on the rich_location, rather than overwriting a location_t.
7519 * c-common.h (c_cpp_error): Convert parameter from location_t to
7520 rich_location *. Eliminate the "column_override" parameter.
7521
7a5e4956
CP
75222015-11-05 Cesar Philippidis <cesar@codesourcery.com>
7523 Thomas Schwinge <thomas@codesourcery.com>
7524 James Norris <jnorris@codesourcery.com>
7525
7526 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
7527 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
7528 clauses with parallel and kernels and loops.
7529 * c-pragma.h (enum pragma_omp_clause): Add entries for
7530 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
7531 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
7532 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
7533 INDEPENDENT,SEQ}.
7534 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
7535
e2f5cc96
MS
75362015-11-05 Martin Sebor <msebor@redhat.com>
7537
7538 PR c++/67942
7539 * c.opt (-Wplacement-new): New option.
7540
e01d41e5
JJ
75412015-11-05 Jakub Jelinek <jakub@redhat.com>
7542
7543 * c-common.h (c_finish_omp_atomic): Add TEST argument.
7544 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
7545 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
7546 save_expr or create_tmp_var* if TEST is true.
7547 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
7548 Don't call add_stmt here.
7549 (struct c_omp_check_loop_iv_data): New type.
7550 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
7551 c_omp_check_loop_iv_exprs): New functions.
7552 (c_omp_split_clauses): Adjust for lastprivate being allowed on
7553 distribute.
7554 (c_omp_declare_simd_clauses_to_numbers): Change
7555 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
7556 (c_omp_declare_simd_clauses_to_decls): Similarly change those
7557 from numbers to PARM_DECLs.
7558
595278be
MM
75592015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
7560
7561 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
7562 flag_checking.
7563
3f8257db 75642015-11-03 Bernd Schmidt <bschmidt@redhat.com>
c85158de
MS
7565
7566 PR c++-common/67882
b3d5bc62
JJ
7567 * c-common.h (fold_offsetof_1): Add argument.
7568 * c-common.c (fold_offsetof_1): Diagnose more invalid
c85158de
MS
7569 offsetof expressions that reference elements past the end of
7570 an array.
7571
4bf9e5a8
TS
75722015-11-03 Thomas Schwinge <thomas@codesourcery.com>
7573 Chung-Lin Tang <cltang@codesourcery.com>
7574
7575 * c-pragma.c (oacc_pragmas): Add "atomic".
7576 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
7577
3b1661a9
ES
75782015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
7579
7580 * c-common.c (handle_target_clones_attribute): New.
7581 (c_common_attribute_table): Add handle_target_clones_attribute.
7582 (handle_always_inline_attribute): Add check on target_clones attribute.
7583 (handle_target_attribute): Ditto.
7584
2adfab87
AM
75852015-10-29 Andrew MacLeod <amacleod@redhat.com>
7586
7587 * array-notation-common.c: Reorder #include's and remove duplicates.
7588 * c-ada-spec.c: Likewise.
7589 * c-cilkplus.c: Likewise.
7590 * c-common.c: Likewise.
7591 * c-cppbuiltin.c: Likewise.
7592 * c-dump.c: Likewise.
7593 * c-format.c: Likewise.
7594 * c-gimplify.c: Likewise.
7595 * c-indentation.c: Likewise.
7596 * c-lex.c: Likewise.
7597 * c-omp.c: Likewise.
7598 * c-opts.c: Likewise.
7599 * c-pch.c: Likewise.
7600 * c-ppoutput.c: Likewise.
7601 * c-pragma.c: Likewise.
7602 * c-pretty-print.c: Likewise.
7603 * c-semantics.c: Likewise.
7604 * c-ubsan.c: Likewise.
7605 * cilk.c: Likewise.
7606 * stub-objc.c: Likewise.
7607
d90ec4f2
JM
76082015-10-28 Jason Merrill <jason@redhat.com>
7609
7610 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
7611
88bae6f4
TS
76122015-10-27 Thomas Schwinge <thomas@codesourcery.com>
7613 James Norris <jnorris@codesourcery.com>
7614 Cesar Philippidis <cesar@codesourcery.com>
7615
7616 PR c/64765
7617 PR c/64880
7618 * c-common.h (c_oacc_split_loop_clauses): Declare function.
7619 * c-omp.c (c_oacc_split_loop_clauses): New function.
7620
b1726d6c
MS
76212015-10-21 Martin Sebor <msebor@redhat.com>
7622
7623 PR driver/68043
7624 * c.opt: End each sentence that describes an option with a period.
7625
fa60eeb9
MP
76262015-10-20 Marek Polacek <polacek@redhat.com>
7627
7628 * array-notation-common.c (is_cilkplus_vector_p): Define.
7629 * c-common.h (is_cilkplus_vector_p): Declare.
7630
95979049
MP
76312015-10-20 Marek Polacek <polacek@redhat.com>
7632
7633 * c.opt (std=gnu++11): Do not describe as experimental.
7634 (std=gnu++14): Likewise.
7635
2a9fb712
JM
76362015-10-19 Jason Merrill <jason@redhat.com>
7637
7638 * c-cppbuiltin.c (c_cpp_builtins): Define
7639 __cpp_nontype_template_args.
7640
13b380a3
JM
76412015-10-19 Jason Merrill <jason@redhat.com>
7642
7643 * c-cppbuiltin.c (c_cpp_builtins): Define
7644 __cpp_enumerator_attributes, __cpp_fold_expressions,
7645 __cpp_unicode_characters.
7646
d9a6bd32
JJ
76472015-10-13 Jakub Jelinek <jakub@redhat.com>
7648 Aldy Hernandez <aldyh@redhat.com>
7649
7650 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
7651 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
7652 (c_define_builtins): Likewise.
7653 * c-common.h (enum c_omp_clause_split): Add
7654 C_OMP_CLAUSE_SPLIT_TASKLOOP.
7655 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
7656 (c_finish_omp_for): Add ORIG_DECLV argument.
7657 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
7658 201511 instead of 201307.
7659 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
7660 OMP_CRITICAL_CLAUSES to it.
7661 (c_finish_omp_ordered): Add CLAUSES argument, set
7662 OMP_ORDERED_CLAUSES to it.
7663 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
7664 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
7665 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
7666 constructs and new OpenMP 4.5 clauses. Clear
7667 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
7668 verification code.
7669 * c-pragma.c (omp_pragmas_simd): Add taskloop.
7670 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
7671 (enum pragma_omp_clause): Add
7672 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
7673 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
7674
624d31fe
RS
76752015-10-05 Richard Sandiford <richard.sandiford@arm.com>
7676
7677 * c-lex.c (interpret_float): Use real_equal instead of
7678 REAL_VALUES_EQUAL.
7679
b8fd7909
JM
76802015-10-04 Jason Merrill <jason@redhat.com>
7681
7682 Implement N4514, C++ Extensions for Transactional Memory.
7683 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
7684 (c_common_attribute_table): Add transaction_safe_dynamic.
7685 transaction_safe now affects type identity.
7686 (handle_tm_attribute): Handle transaction_safe_dynamic.
7687 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
7688 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
7689 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
7690 (D_TRANSMEM): New.
7691 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
7692 * c-pretty-print.c (pp_c_attributes_display): Don't print
7693 transaction_safe in C++.
7694
12651878
MP
76952015-10-02 Marek Polacek <polacek@redhat.com>
7696
7697 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
7698
3e3b8d63
MP
76992015-10-02 Marek Polacek <polacek@redhat.com>
7700
7701 PR c/64249
7702 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
7703 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
7704 * c.opt (Wduplicated-cond): New option.
7705
0d1a8f75
JM
77062015-10-01 Joseph Myers <joseph@codesourcery.com>
7707
7708 * c.opt (std=c11): Do not describe as experimental.
7709 (std=gnu11): Likewise.
7710 (std=iso9899:2011): Likewise.
7711
3e32ee19
NS
77122015-09-28 Nathan Sidwell <nathan@codesourcery.com>
7713
7714 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
7715 (DEF_FUNCTION_TYPE_VAR_11): Delete.
7716
974348ee
MP
77172015-09-25 Marek Polacek <polacek@redhat.com>
7718
7719 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
7720 (ubsan_instrument_shift): Likewise.
7721
15dbc1a6
MP
77222015-09-25 Marek Polacek <polacek@redhat.com>
7723
7724 PR sanitizer/64906
7725 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
7726
6b95d7cc
PP
77272015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
7728
7729 * c-indentation.c (should_warn_for_misleading_indentation):
7730 Compare next_stmt_vis_column with guard_line_first_nws instead
7731 of with guard_line_vis_column.
7732
c1822f9c
MLI
77332015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
7734
7735 PR c/49654
7736 PR c/49655
7737 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
7738 options and options not valid for the current language.
7739
d5398058
PP
77402015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
7741
7742 * c-indentation.c (should_warn_for_misleading_indentation):
7743 Float out and consolidate the calls to get_visual_column that
7744 are passed guard_exploc as an argument. Compare
7745 next_stmt_vis_column with guard_line_first_nws instead of with
7746 body_line_first_nws.
7747
6b333269
NS
77482015-09-22 Nathan Sidwell <nathan@codesourcery.com>
7749
7750 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
7751 Wnamespaces): New C++ warnings.
7752
a75f1574
JM
77532015-09-22 Jason Merrill <jason@redhat.com>
7754
7755 * c-common.h (abi_compat_version_crosses): New.
7756 (warn_abi_version): Declare.
7757 * c-common.c: Define it.
7758 * c-opts.c (c_common_post_options): Handle it.
7759 flag_abi_compat_version defaults to 8.
7760
bdaaa8b7
VV
77612015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
7762
7763 Complete the implementation of N4230, Nested namespace definition.
7764 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
7765 __cpp_nested_namespace_definitions.
7766
eaa797e8
MLI
77672015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
7768
7769 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
7770
c4914de6
MLI
77712015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
7772
7773 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
7774 when warning.
7775 * c-pragma.h (pragma_lex): Add optional loc argument.
7776
fcb87c50
MM
77772015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
7778
7779 * c-format.c (check_format_arg): Adjust to use common block size in all
7780 object pools.
7781
31bdd08a
DM
77822015-09-15 David Malcolm <dmalcolm@redhat.com>
7783
7784 * c-format.c (location_from_offset): Update for change in
7785 signature of location_get_source_line.
7786 * c-indentation.c (get_visual_column): Likewise.
7787 (line_contains_hash_if): Likewise.
7788
aa9f4b4c
MP
77892015-09-14 Marek Polacek <polacek@redhat.com>
7790
7791 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
7792 setting various warnings.
7793
aa256c4a
MP
77942015-09-14 Marek Polacek <polacek@redhat.com>
7795
7796 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
7797 a negative value.
7798
0f876f22
MW
77992015-09-11 Mark Wielaard <mjw@redhat.com>
7800
7801 PR c/28901
7802 * c.opt (Wunused-variable): Option from common.opt.
7803 (Wunused-const-variable): New option.
7804
273aa49e
PC
78052015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
7806
7807 PR c++/53184
7808 * c.opt ([Wsubobject-linkage]): Add.
7809
1807ffc1
MS
78102015-09-03 Martin Sebor <msebor@redhat.com>
7811
7812 PR c/66516
7813 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
7814 functions.
7815 * c-common.c (reject_gcc_builtin): Define.
7816
38942840
BI
78172015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
7818
7819 PR middle-end/60586
7820 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
7821 prototype.
7822 * c-gimplify.c (c_gimplify_expr): Added a call to the function
7823 cilk_gimplify_call_params_in_spawned_fn.
7824 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
7825 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
7826 unwrapping.
7827
c316b5e4
MP
78282015-08-25 Marek Polacek <polacek@redhat.com>
7829
7830 PR middle-end/67330
7831 * c-common.c (handle_weak_attribute): Don't check whether the
7832 visibility can be changed here.
7833
584a7c46
MLI
78342015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
7835
7836 * c-lex.c (c_lex_with_flags): Use explicit locations.
7837
a79683d5
TS
78382015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
7839
7840 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
7841 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
7842
61717a45
FXC
78432015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7844
7845 PR middle-end/36757
7846 * c-common.c (check_builtin_function_arguments): Add check
7847 for BUILT_IN_SIGNBIT argument.
7848
329524f5
PC
78492015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
7850
7851 PR c++/67160
7852 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
7853 in c++1z mode.
7854
4ee55665
MP
78552015-08-17 Marek Polacek <polacek@redhat.com>
7856
7857 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
7858 with whitespaces before qualifier names.
7859
b893e375
MP
78602015-08-12 Marek Polacek <polacek@redhat.com>
7861
7862 PR c++/55095
7863 * c-common.c (maybe_warn_shift_overflow): Properly handle
7864 left-shifting 1 into the sign bit.
7865
c2d89095
MLI
78662015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
7867
7868 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
7869
971e17ff
AS
78702015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
7871 Braden Obrzut <admin@maniacsvault.net>
7872 Jason Merrill <jason@redhat.com>
7873
7874 Add C++ Concepts TS support.
7875 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
7876 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
7877 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
7878 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
7879 * c-opts.c (set_std_cxx1z): Set flag_concepts.
7880 * c.opt (fconcepts): New.
7881
b3d5bc62
JJ
78822015-08-02 Martin Sebor <msebor@redhat.com>
7883
7884 * c.opt (-Wframe-address): New warning option.
7885
8ebca419
PP
78862015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
7887
7888 * c-indentation.c (should_warn_for_misleading_indentation):
7889 Improve heuristics.
7890
1a1e101f
PP
78912015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
7892
7893 * c-indentation.c (get_visual_column): Add parameter first_nws,
7894 use it. Update comment documenting the function.
7895 (is_first_nonwhitespace_on_line): Remove.
7896 (should_warn_for_misleading_indentation): Replace usage of
7897 of is_first_nonwhitespace_on_line with get_visual_column.
7898
992118a1
PP
78992015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
7900
7901 * c-indentation.h (struct token_indent_info): Define.
7902 (get_token_indent_info): Define.
7903 (warn_for_misleading_information): Declare.
7904 * c-common.h (warn_for_misleading_information): Remove.
7905 * c-identation.c (warn_for_misleading_indentation):
7906 Change declaration to take three token_indent_infos. Adjust
7907 accordingly.
7908 * c-identation.c (should_warn_for_misleading_indentation):
7909 Likewise. Bail out early if the body is a compound statement.
7910 (guard_tinfo_to_string): Define.
7911
e8fa3817
JM
79122015-07-30 Jason Merrill <jason@redhat.com>
7913
7914 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
7915 '*' for reference decay.
7916
173864e8
MP
79172015-07-30 Marek Polacek <polacek@redhat.com>
7918
7919 * c-common.c (warn_tautological_cmp): Bail for float types.
7920
f2afe6dd
MP
79212015-07-27 Marek Polacek <polacek@redhat.com>
7922
7923 PR bootstrap/67030
7924 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
7925
05b28fd6
MP
79262015-07-27 Marek Polacek <polacek@redhat.com>
7927
7928 PR c++/66555
7929 PR c/54979
7930 * c-common.c (find_array_ref_with_const_idx_r): New function.
7931 (warn_tautological_cmp): New function.
7932 * c-common.h (warn_tautological_cmp): Declare.
7933 * c.opt (Wtautological-compare): New option.
7934
5a5062b8
MP
79352015-07-23 Marek Polacek <polacek@redhat.com>
7936
7937 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
7938 (ubsan_instrument_shift): Likewise.
7939
dc891fe7
MP
79402015-07-23 Marek Polacek <polacek@redhat.com>
7941
7942 PR sanitizer/66908
7943 * c-ubsan.c: Include gimplify.h.
7944 (ubsan_instrument_division): Unshare OP0 and OP1.
7945 (ubsan_instrument_shift): Likewise.
7946
451b5e48
MP
79472015-07-20 Marek Polacek <polacek@redhat.com>
7948 Richard Sandiford <richard.sandiford@arm.com>
7949
7950 PR c++/55095
7951 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
7952 Use EXPR_LOC_OR_LOC.
7953 (maybe_warn_shift_overflow): New function.
7954 * c-common.h (maybe_warn_shift_overflow): Declare.
7955 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
7956 * c.opt (Wshift-overflow): New option.
7957
fb0b2914
ML
79582015-07-16 Martin Liska <mliska@suse.cz>
7959
7960 * c-format.c (static void check_format_info_main): Use
7961 object_allocator instead of pool_allocator.
7962 (check_format_arg): Likewise.
7963 (check_format_info_main): Likewise.
7964
903f5c23
AM
79652015-07-15 Andrew MacLeod <amacleod@redhat.com>
7966
7967 * c-opts.c: Remove multiline #include comment.
7968
026c3cfd
AH
79692015-07-12 Aldy Hernandez <aldyh@redhat.com>
7970
7971 * c-common.c: Fix double word typos.
7972
bb49ee66
EB
79732015-07-10 Eric Botcazou <ebotcazou@adacore.com>
7974
7975 * c-ada-spec.h (cpp_operation): Revert latest change.
7976 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
7977 constructors and destructors.
7978
1916bcb5
AM
79792015-07-09 Andrew MacLeod <amacleod@redhat.com>
7980
7981 * c-common.h: Adjust includes for flags.h changes.
7982 * stub-objc.c: Likewise.
026c3cfd 7983
a9dcd529
EB
79842015-07-08 Eric Botcazou <ebotcazou@adacore.com>
7985
7986 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
7987 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
7988
b03b462f
JJ
79892015-07-08 Jakub Jelinek <jakub@redhat.com>
7990
7991 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
7992 are to be removed, return NULL rather than original clauses list.
7993
c7131fb2
AM
79942015-07-07 Andrew MacLeod <amacleod@redhat.com>
7995
7996 * array-notation-common.c: Adjust includes.
7997 * c-ada-spec.c: Likewise.
7998 * c-cilkplus.c: Likewise.
7999 * c-common.h: Likewise.
8000 * c-cppbuiltin.c: Likewise.
8001 * c-dump.c: Likewise.
8002 * c-format.c: Likewise.
8003 * c-gimplify.c: Likewise.
8004 * c-indentation.c: Likewise.
8005 * c-lex.c: Likewise.
8006 * c-omp.c: Likewise.
8007 * c-opts.c: Likewise.
8008 * c-pch.c: Likewise.
8009 * c-ppoutput.c: Likewise.
8010 * c-pragma.c: Likewise.
8011 * c-pretty-print.c: Likewise.
8012 * c-semantics.c: Likewise.
8013 * c-ubsan.c: Likewise.
8014 * cilk.c: Likewise.
8015 * stub-objc.c: Likewise.
8016
2a7fb83f
EB
80172015-07-07 Eric Botcazou <ebotcazou@adacore.com>
8018
8019 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
8020 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
8021
a03c9bf1
JM
80222015-07-01 Jason Merrill <jason@redhat.com>
8023
36a85135
JM
8024 * c-common.h (D_CXX11): Rename from D_CXX0X.
8025 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
8026 * c-common.c: Adjust.
8027
e7fa68d5
JM
8028 * c-opts.c (c_common_post_options): Default to C++14.
8029
a03c9bf1
JM
8030 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
8031
fe95b036
ESR
80322015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
8033
8034 Implement N4197 - Adding u8 character literals
b3d5bc62 8035 * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
a64be36b 8036 CPP_CHAR.
b3d5bc62 8037 * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
a64be36b 8038 CPP_UTF8CHAR_USERDEF tokens.
b3d5bc62 8039 * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
a64be36b
EB
8040 and CPP_UTF8CHAR tokens.
8041 (lex_charconst): Treat CPP_UTF8CHAR token.
fe95b036 8042
da2e71c9
MLI
80432015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
8044
8045 PR fortran/66605
8046 * c-common.c (do_warn_unused_parameter): Move here.
8047 * c-common.h (do_warn_unused_parameter): Declare.
8048
b155cfd9
MP
80492015-06-29 Marek Polacek <polacek@redhat.com>
8050
8051 PR c/66322
8052 * c-common.c (check_case_bounds): Add bool * parameter. Set
8053 OUTSIDE_RANGE_P.
8054 (c_add_case_label): Add bool * parameter. Pass it down to
8055 check_case_bounds.
8056 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
8057 warning here.
8058 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
8059 declarations.
8060
31521951
MP
80612015-06-27 Marek Polacek <polacek@redhat.com>
8062
8063 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
8064 or VECTOR_INTEGER_TYPE_P throughout.
8065 * c-gimplify.c: Likewise.
8066
22d03525
MP
80672015-06-26 Marek Polacek <polacek@redhat.com>
8068
8069 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
8070 * c-common.c (c_fully_fold_internal): Likewise.
8071 (c_alignof_expr): Likewise.
8072 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
8073 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
b1726d6c 8074 * cilk.c (create_parm_list): Likewise.
22d03525 8075
af05e6e5
MP
80762015-06-26 Marek Polacek <polacek@redhat.com>
8077
8078 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
8079
f0889939
AM
80802015-06-25 Andrew MacLeod <amacleod@redhat.com>
8081
8082 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
8083 * c-gimplify.c: Likewise.
8084 * c-pragma.c: Likewise.
8085 * c-ubsan.c: Likewise.
8086 * cilk.c: Likewise.
8087
ca752f39
RS
80882015-06-25 Richard Sandiford <richard.sandiford@arm.com>
8089
8090 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
8091 ggc_hasher.
8092
16a16ec7
AM
80932015-06-25 Andrew MacLeod <amacleod@redhat.com>
8094
8095 * cilk.c: Move calls.h after tm.h in the include chain.
8096
0ae9bd27
MP
80972015-06-25 Marek Polacek <polacek@redhat.com>
8098
8099 * array-notation-common.c: Use VAR_P throughout.
8100 * c-ada-spec.c: Likewise.
8101 * c-common.c: Likewise.
8102 * c-format.c: Likewise.
8103 * c-gimplify.c: Likewise.
8104 * c-omp.c: Likewise.
8105 * c-pragma.c: Likewise.
8106 * c-pretty-print.c: Likewise.
8107 * cilk.c: Likewise.
8108
62f9079a
MP
81092015-06-25 Marek Polacek <polacek@redhat.com>
8110
8111 * cilk.c (extract_free_variables): Use is_global_var.
8112
0fa16060
RS
81132015-06-23 Richard Sandiford <richard.sandiford@arm.com>
8114
8115 * c-common.c: Don't include target-def.h.
8116
a68ae2e1
MP
81172015-06-23 Marek Polacek <polacek@redhat.com>
8118
8119 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
8120 when comparing INTEGER_CSTs.
8121
c6a2f2d9
PMR
81222015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
8123
8124 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
8125 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
8126 (dump_ada_template): Skip partially specialized types.
8127
6b4db501
MM
81282015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
8129
8130 * c-common.c (scalar_to_vector): Use std::swap instead of manually
8131 swapping.
8132
abb226c9
AM
81332015-06-17 Andrew MacLeod <amacleod@redhat.com>
8134
8135 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
8136 * c-ada-spec.c: Likewise.
8137 * c-cilkplus.c: Likewise.
8138 * c-common.c: Likewise.
8139 * c-common.h: Likewise.
8140 * c-cppbuiltin.c: Likewise.
8141 * c-dump.c: Likewise.
8142 * c-format.c: Likewise.
8143 * c-gimplify.c: Likewise.
8144 * c-indentation.c: Likewise.
8145 * c-lex.c: Likewise.
8146 * c-omp.c: Likewise.
8147 * c-opts.c: Likewise.
8148 * c-pch.c: Likewise.
8149 * c-ppoutput.c: Likewise.
8150 * c-pragma.c: Likewise.
8151 * c-pretty-print.c: Likewise.
8152 * c-semantics.c: Likewise.
8153 * c-ubsan.c: Likewise.
8154 * cilk.c: Likewise.
8155 * stub-objc.c: Likewise.
8156
076fecad
PP
81572015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
8158
8159 PR c++/65168
8160 * c-common.c (c_common_truthvalue_conversion): Warn when
8161 converting an address of a reference to a truth value.
8162
13fdf2e2
AM
81632015-06-08 Andrew MacLeod <amacleod@redhat.com>
8164
8165 * array-notation-common.c : Adjust include files.
8166 * c-ada-spec.c : Likewise.
8167 * c-cilkplus.c : Likewise.
8168 * c-common.c : Likewise.
8169 * c-common.h : Likewise.
8170 * c-cppbuiltin.c : Likewise.
8171 * c-dump.c : Likewise.
8172 * c-format.c : Likewise.
8173 * c-gimplify.c : Likewise.
8174 * c-indentation.c : Likewise.
8175 * c-lex.c : Likewise.
8176 * c-omp.c : Likewise.
8177 * c-opts.c : Likewise.
8178 * c-pch.c : Likewise.
8179 * c-ppoutput.c : Likewise.
8180 * c-pragma.c : Likewise.
8181 * c-pretty-print.c : Likewise.
8182 * c-semantics.c : Likewise.
8183 * c-ubsan.c : Likewise.
8184 * cilk.c : Likewise.
8185 * stub-objc.c : Likewise.
8186
a1661b90
MP
81872015-06-08 Marek Polacek <polacek@redhat.com>
8188
8189 PR c/66415
8190 * c-format.c (location_from_offset): Return LOC if LINE is null.
8191
d7438551
AH
81922015-06-05 Aldy Hernandez <aldyh@redhat.com>
8193
8194 * c-common.h (c_parse_final_cleanups): New prototype.
8195 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
8196
b3d5bc62
JJ
81972015-06-04 Sriraman Tallam <tmsriram@google.com>
8198
8199 * c-common.c (noplt): New attribute.
8200 (handle_noplt_attribute): New handler.
8201
ecb9f223
AM
82022015-06-04 Andrew MacLeod <amacleod@redhat.com>
8203
8204 * array-notation-common.c: Adjust includes for restructured coretypes.h.
8205 * c-ada-spec.c: Likewise.
8206 * c-cilkplus.c: Likewise.
8207 * c-common.c: Likewise.
8208 * c-common.h: Likewise.
8209 * c-cppbuiltin.c: Likewise.
8210 * c-dump.c: Likewise.
8211 * c-format.c: Likewise.
8212 * c-gimplify.c: Likewise.
8213 * c-indentation.c: Likewise.
8214 * c-lex.c: Likewise.
8215 * c-omp.c: Likewise.
8216 * c-opts.c: Likewise.
8217 * c-pch.c: Likewise.
8218 * c-ppoutput.c: Likewise.
8219 * c-pragma.c: Likewise.
8220 * c-pretty-print.c: Likewise.
8221 * c-semantics.c: Likewise.
8222 * c-ubsan.c: Likewise.
8223 * cilk.c: Likewise.
8224 * stub-objc.c: Likewise.
8225
6ac48155
DM
82262015-06-02 David Malcolm <dmalcolm@redhat.com>
8227
8228 PR c/66220:
8229 * c-indentation.c (should_warn_for_misleading_indentation): Use
8230 expand_location rather than expand_location_to_spelling_point.
8231 Don't warn if the guarding statement is more indented than the
8232 next/body stmts.
8233
773ce42e
DM
82342015-06-02 David Malcolm <dmalcolm@redhat.com>
8235
8236 * c-indentation.c (warn_for_misleading_indentation): Bail out
8237 immediately if -Wmisleading-indentation isn't enabled.
8238
4fef8379
ML
82392015-06-01 Martin Liska <mliska@suse.cz>
8240
8241 * c-format.c (check_format_arg):Use new type-based pool allocator.
8242 (check_format_info_main) Likewise.
8243
1edfb384
EB
82442015-05-31 Eric Botcazou <ebotcazou@adacore.com>
8245
8246 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
8247 (has_nontrivial_methods): Likewise.
8248
9677ef52
MP
82492015-05-25 Marek Polacek <polacek@redhat.com>
8250
8251 * c-ubsan.c (ubsan_instrument_shift): Use type0.
8252
fd5c817a
MP
82532015-05-22 Marek Polacek <polacek@redhat.com>
8254
8255 PR c/47043
8256 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
8257
a2f45fe6 82582015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
581edfa3
TS
8259
8260 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
8261 STACK_GROWS_DOWNWARD.
8262
a2f45fe6 82632015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
62f9f30b
TS
8264
8265 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
8266 STACK_GROWS_DOWNWARD rather than if it is defined.
8267
0fee2ac2 82682015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
b1726d6c 8269
0fee2ac2
MLI
8270 PR c/52952
8271 * c-format.c (location_column_from_byte_offset): New.
8272 (location_from_offset): New.
8273 (struct format_wanted_type): Add offset_loc field.
8274 (check_format_info): Move handling of location for extra arguments
8275 closer to the point of warning.
8276 (check_format_info_main): Pass the result of location_from_offset
8277 to warning_at.
8278 (format_type_warning): Pass the result of location_from_offset
8279 to warning_at.
8280
cf4ef6f7
MP
82812015-05-20 Marek Polacek <polacek@redhat.com>
8282
8283 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
8284
3a65ee74
MP
82852015-05-20 Marek Polacek <polacek@redhat.com>
8286
8287 * c-ada-spec.c (dump_sloc): Use DECL_P.
8288
21b634ae
MP
82892015-05-20 Marek Polacek <polacek@redhat.com>
8290
8291 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
8292 * c-common.c: Likewise.
8293
0e50b624
DM
82942015-05-19 David Malcolm <dmalcolm@redhat.com>
8295
8296 * c-common.h (fe_file_change): Strengthen param from
8297 const line_map * to const line_map_ordinary *.
8298 (pp_file_change): Likewise.
8299 * c-lex.c (fe_file_change): Likewise.
8300 (cb_define): Use linemap_check_ordinary when invoking
8301 SOURCE_LINE.
8302 (cb_undef): Likewise.
8303 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
8304 invoking cb_file_change.
8305 (c_finish_options): Likewise.
8306 (push_command_line_include): Likewise.
8307 (cb_file_change): Strengthen param "new_map" from
8308 const line_map * to const line_map_ordinary *.
8309 * c-ppoutput.c (cb_define): Likewise for local "map".
8310 (pp_file_change): Likewise for param "map" and local "from".
8311
fab27f52
MM
83122015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
8313
8314 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
8315
2fe1d762
TV
83162015-05-18 Tom de Vries <tom@codesourcery.com>
8317
8318 * c-common.c (build_va_arg_1): New function.
8319 (build_va_arg): Add address operator to va_list operand if necessary.
8320
7a37fa90
MM
83212015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
8322
8323 PR c/48956
8324 * c-common.c (int_safely_convertible_to_real_p): Define.
8325 (unsafe_conversion_p): Check conversions involving complex types.
8326 (conversion_warning): Add new warning message for conversions which
8327 discard imaginary component.
8328 * c-common.h: (enum conversion_safety): Add new enumerator for such
8329 conversions.
8330
3aa3c9fc
MP
83312015-05-14 Marek Polacek <polacek@redhat.com>
8332
8333 PR c/66066
8334 PR c/66127
8335 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
8336 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
8337 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
8338 use it. If FOR_INT_CONST, require that all evaluated operands be
8339 INTEGER_CSTs.
8340
c3388e62
DM
83412015-05-12 David Malcolm <dmalcolm@redhat.com>
8342
8343 * c-common.h (warn_for_misleading_indentation): New prototype.
8344 * c-indentation.c: New file.
8345 * c.opt (Wmisleading-indentation): New option.
8346
c7b38fd5
TV
83472015-05-12 Tom de Vries <tom@codesourcery.com>
8348
8349 PR tree-optimization/66010
8350 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
8351
381bf11e
JM
83522015-05-09 Jason Merrill <jason@redhat.com>
8353
edff0c06
JM
8354 * c-opts.c (c_common_post_options): Also clear
8355 cpp_opts->cpp_warn_cxx11_compat.
8356
129211bc
JM
8357 * c-common.h (enum cxx_dialect): Add cxx_unset.
8358 * c-common.c (cxx_dialect): Initialize to cxx_unset.
8359 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
8360
381bf11e
JM
8361 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
8362 (std=gnu++0x): Mark as Undocumented.
8363 (std=gnu++1y): Add deprecated message.
8364
fe191308
JM
83652015-05-08 Jason Merrill <jason@redhat.com>
8366
765189ff
JM
8367 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
8368 * c-opts.c: Adjust.
8369
fe191308
JM
8370 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
8371
755e528f
MP
83722015-05-08 Marek Polacek <polacek@redhat.com>
8373
8374 PR c/64918
8375 * c.opt (Woverride-init-side-effects): New option.
8376
0173bd2a
MP
83772015-05-07 Marek Polacek <polacek@redhat.com>
8378
8379 PR c/65179
8380 * c-common.c (c_fully_fold_internal): Warn when left shifting a
8381 negative value.
8382 * c.opt (Wshift-negative-value): New option.
8383 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
8384 when -Wextra and C99/C++11 mode.
8385
e0f0d3b9
MP
83862015-05-07 Marek Polacek <polacek@redhat.com>
8387 Martin Uecker <uecker@eecs.berkeley.edu>
8388
8389 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
8390 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
8391
8243e2a9
JM
83922015-05-05 Jason Merrill <jason@redhat.com>
8393
8394 * c.opt (Wterminate): New.
8395
577cd070
MP
83962015-04-30 Marek Polacek <polacek@redhat.com>
8397
8398 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
8399 require that the non-constant be of a boolean type.
8400
0373796b
JT
84012015-04-29 Josh Triplett <josh@joshtriplett.org>
8402
e0f0d3b9
MP
8403 * c-common.c (handle_section_attribute): Refactor to reduce
8404 nesting and distinguish between error cases.
0373796b 8405
716c0ba6
MP
84062015-04-29 Marek Polacek <polacek@redhat.com>
8407
8408 PR c/64610
8409 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
8410 with 0/1.
8411
8848828b
JJ
84122015-04-29 Jakub Jelinek <jakub@redhat.com>
8413
8414 * c-common.h (omp_clause_mask): Unconditionally define as a class.
8415 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
8416 HOST_BITS_PER_WIDE_INT.
8417
ecd0e562
TV
84182015-04-28 Tom de Vries <tom@codesourcery.com>
8419
8420 PR tree-optimization/65887
8421 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
8422
2a877204 84232015-04-28 Eric Botcazou <ebotcazou@adacore.com>
e0f0d3b9 8424 Pierre-Marie de Rodat <derodat@adacore.com>
2a877204
EB
8425
8426 * c-ada-spec.c (in_function): Delete.
8427 (dump_generic_ada_node): Do not change in_function and remove the
8428 redundant code dealing with it.
8429 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
8430 (print_ada_methods): Output the static member functions in a nested
8431 package after the regular methods as well as associated renamings.
8432
4853031e
MP
84332015-04-24 Marek Polacek <polacek@redhat.com>
8434
8435 PR c/65830
8436 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
8437 and OPT_Wshift_count_overflow.
8438
8c2b7f79
MP
8439 PR c/63357
8440 * c-common.c (warn_logical_operator): Warn if the operands have the
8441 same expressions.
8442
b8787813
MP
84432015-04-24 Marek Polacek <polacek@redhat.com>
8444
8445 PR c/61534
8446 * c-common.c (warn_logical_operator): Bail if either operand comes
8447 from a macro expansion.
8448
8fba1830
BRF
84492015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
8450
8451 PR target/55143
8452 * c-common.c (c_default_pointer_mode): Add definition.
8453 * c-common.h (c_default_pointer_mode): Add declaration.
8454
17958621
JJ
84552015-03-11 Jakub Jelinek <jakub@redhat.com>
8456
8457 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
8458 on record_builtin_type argument.
8459
7ccb1a11
JJ
84602015-03-10 Jakub Jelinek <jakub@redhat.com>
8461
8462 PR c/65120
8463 * c-common.c (warn_logical_not_parentheses): Don't warn for
8464 !x == 0 or !x != 0.
8465
04fd785e
MP
84662015-03-07 Marek Polacek <polacek@redhat.com>
8467
8468 PR sanitizer/65280
8469 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
8470 before trying to figure out whether we have a flexible array member.
8471
a4e26206 84722015-03-06 Eric Botcazou <ebotcazou@adacore.com>
8e745a17 8473 Jonathan Wakely <jwakely.gcc@gmail.com>
a4e26206
EB
8474
8475 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
8476
0d2489f4
EB
84772015-03-05 Eric Botcazou <ebotcazou@adacore.com>
8478
8479 PR ada/65319
8480 * c-ada-spec.c (print_destructor): Remove obsolete code.
8481
83ed54d7
EB
84822015-03-01 Eric Botcazou <ebotcazou@adacore.com>
8483
8484 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
8485 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
8486 DECL_TEMPLATE_RESULT emulations.
8487 (dump_ada_template)): Add guard for TYPE_METHODS.
8488
7631f0e2
MP
84892015-02-27 Marek Polacek <polacek@redhat.com>
8490
8491 PR c/65040
8492 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
8493
d1783ae5
KT
84942015-02-27 Kai Tietz <ktietz@redhat.com>
8495
8496 PR c/35330
8497 * c-pragma.c (handle_pragma_weak): Do not try to create
8498 weak/alias of declarations not being function, or variable
8499 declarations.
8500
56a9f6bc
TS
85012015-02-24 Thomas Schwinge <thomas@codesourcery.com>
8502
8503 PR libgomp/64625
8504 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
8505 Remove macros.
8506 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
8507
3d5cb23d
MP
85082015-02-16 Marek Polacek <polacek@redhat.com>
8509
8510 PR c/65066
8511 * c-format.c (check_format_types): Handle null param.
8512
fa008882
MP
85132015-02-13 Marek Polacek <polacek@redhat.com>
8514
8515 PR c/65040
8516 * c-format.c (check_format_types): Don't warn about different
8517 signedness if the original value is in the range of WANTED_TYPE.
8518
785f21af
JM
85192015-02-12 Jason Merrill <jason@redhat.com>
8520
8521 PR c++/64956
8522 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
8523 to the current highest version.
8524 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
8525
4886ec8e
JJ
85262015-02-04 Jakub Jelinek <jakub@redhat.com>
8527
8528 PR c/64824
8529 PR c/64868
8530 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
8531 instead of RDIV_EXPR. Use build_binary_op instead of
8532 build2_loc.
8533
40fecdd6
JM
85342015-01-30 Joseph Myers <joseph@codesourcery.com>
8535
8536 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
8537 to pass input_location as first argument.
8538
a0c88d06
TV
85392015-01-23 Tom de Vries <tom@codesourcery.com>
8540
8541 PR libgomp/64672
8542 * c.opt (fopenacc): Mark as LTO option.
8543
1506ae0e
TV
85442015-01-23 Tom de Vries <tom@codesourcery.com>
8545
8546 PR libgomp/64707
8547 * c.opt (fopenmp): Mark as LTO option.
8548
31be63ab
JJ
85492015-01-21 Jakub Jelinek <jakub@redhat.com>
8550
8551 PR c/63307
b1726d6c 8552 * cilk.c (fill_decls_vec): Only put decls into vector v.
31be63ab
JJ
8553 (compare_decls): Fix up formatting.
8554
85552015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
8556
8557 PR c/63307
8558 * cilk.c: Include vec.h.
8559 (struct cilk_decls): New structure.
8560 (wrapper_parm_cb): Split this function to...
8561 (fill_decls_vec): ...this...
8562 (create_parm_list): ...and this.
8563 (compare_decls): New function.
8564 (for_local_cb): Remove.
8565 (wrapper_local_cb): Ditto.
8566 (build_wrapper_type): For now first traverse and fill vector of
8567 declarations then sort it and then deal with sorted vector.
8568 (cilk_outline): Ditto.
8569 (declare_one_free_variable): Ditto.
8570
6875457f
JM
85712015-01-21 Jason Merrill <jason@redhat.com>
8572
8573 PR c++/64629
8574 * c-format.c (check_format_arg): Call decl_constant_value.
8575
185c9e56
ML
85762015-01-19 Martin Liska <mliska@suse.cz>
8577
8578 * c-common.c (handle_noicf_attribute): New function.
8579
41dbbb37
TS
85802015-01-15 Thomas Schwinge <thomas@codesourcery.com>
8581 Bernd Schmidt <bernds@codesourcery.com>
8582 James Norris <jnorris@codesourcery.com>
8583 Cesar Philippidis <cesar@codesourcery.com>
8584 Ilmir Usmanov <i.usmanov@samsung.com>
8585 Jakub Jelinek <jakub@redhat.com>
8586
8587 * c.opt (fopenacc): New option.
8588 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
8589 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
8590 New macros.
8591 * c-common.h (c_finish_oacc_wait): New prototype.
8592 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
8593 (c_finish_oacc_wait): New function.
8594 * c-pragma.c (oacc_pragmas): New variable.
8595 (c_pp_lookup_pragma, init_pragma): Handle it.
8596 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
8597 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
8598 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
8599 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
8600 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
8601 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
8602 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
8603 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
8604 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
8605 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
8606 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
8607 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
8608 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
8609 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
8610 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
8611 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
8612 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
8613 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
8614 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
8615 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
8616 PRAGMA_OACC_CLAUSE_WORKER.
8617
3f8257db 86182015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
5434dc07
MD
8619
8620 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
8621 for the new option fstack-protector_explicit.
8622 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
8623 (handle_stack_protect_attribute): New function.
8624
3f8257db 86252015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
de1b5c17
MU
8626
8627 * c.opt: New option -Warray-bounds=.
8628
adfac8df
JJ
86292015-01-09 Michael Collison <michael.collison@linaro.org>
8630
8631 * array-notation-common.c: Include hash-set.h, machmode.h,
8632 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
8633 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
8634 * c-ada-spec.c: Ditto.
8635 * c-cilkplus.c: Ditto.
8636 * c-common.c: Include input.h due to flattening of tree.h.
8637 Define macro GCC_C_COMMON_C.
8638 * c-common.h: Flatten tree.h header files into c-common.h.
8639 Remove include of tree-core.h.
8640 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
8641 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
8642 fold-const.h, wide-int.h, and inchash.h due to
8643 flattening of tree.h.
8644 * c-dump.c: Ditto.
8645 * c-format.c: Flatten tree.h header files into c-common.h.
8646 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
8647 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
8648 fold-const.h, wide-int.h, and inchash.h due to
8649 flattening of tree.h.
8650 * c-dump.c: Include hash-set.h, machmode.h,
8651 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
8652 fold-const.h, wide-int.h, and inchash.h due to
8653 flattening of tree.h.
8654 * c-format.c: Include hash-set.h, machmode.h,
8655 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
8656 fold-const.h, wide-int.h, inchash.h and real.h due to
8657 flattening of tree.h.
8658 * c-gimplify.c: Include hash-set.h, machmode.h,
8659 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
8660 fold-const.h, wide-int.h, and inchash.h due to
8661 flattening of tree.h.
8662 * cilk.c: Ditto.
8663 * c-lex.c: Ditto.
8664 * c-omp.c: Ditto.
8665 * c-opts.c: Ditto.
8666 * c-pch.c: Ditto.
8667 * c-ppoutput.c: Ditto.
8668 * c-pragma.c: Ditto.
8669 * c-pretty-print.c: Ditto.
8670 * c-semantics.c: Ditto.
8671 * c-ubsan.c: Ditto.
8672 * stub-objc.c: Ditto.
8673
f5481fc4
JM
86742015-01-08 Jason Merrill <jason@redhat.com>
8675
8676 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
8677 do_ubsan_in_current_function.
8678 (ubsan_maybe_instrument_reference_or_call): Likewise.
8679 * c-ubsan.h: Declare it.
8680
de35aa66
MS
86812015-01-08 Mike Stump <mikestump@comcast.net>
8682
8683 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
8684
4a9a42ab
MP
86852015-01-07 Marek Polacek <polacek@redhat.com>
8686
8687 PR c/64440
8688 * c-common.c (c_fully_fold_internal): Warn for division and modulo
8689 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
8690
2f42e5de
TS
86912015-01-05 Trevor Saunders <tsaunders@mozilla.com>
8692
8693 PR c++/31397
8694 * c.opt (Wsuggest-override): New option.
8695
5624e564
JJ
86962015-01-05 Jakub Jelinek <jakub@redhat.com>
8697
8698 Update copyright years.
8699
5bd012f8
MP
87002015-01-05 Marek Polacek <polacek@redhat.com>
8701
8702 PR c/64423
8703 * c-common.c (warn_array_subscript_with_type_char): Add location_t
8704 parameter. Use it.
8705 * c-common.h (warn_array_subscript_with_type_char): Update
8706 declaration.
8707
a7fa8d18
ESR
87082014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
8709
8710 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
8711 Control macro with flag_sized_deallocation.
8712
3f8257db 87132014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
768952be
MU
8714
8715 * c.opt (Wdiscarded-array-qualifiers): New option.
8716
1f8d3e84
JJ
87172014-12-19 Jakub Jelinek <jakub@redhat.com>
8718
8719 PR preprocessor/63831
8720 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
8721 and __has_cpp_attribute here.
8722 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
8723 c_common_has_attribute.
8724 * c-common.h (c_common_has_attribute): New prototype.
8725 * c-lex.c (init_c_lex): Set cb->has_attribute to
8726 c_common_has_attribute instead of cb_has_attribute.
8727 (get_token_no_padding): New function.
8728 (cb_has_attribute): Renamed to ...
8729 (c_common_has_attribute): ... this. No longer static. Use
8730 get_token_no_padding, require ()s, don't build TREE_LIST
8731 unnecessarily, fix up formatting, adjust diagnostics, call
8732 init_attributes.
8733
20b06add
JM
87342014-12-15 Jason Merrill <jason@redhat.com>
8735
8736 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
8737 (-Wsized-deallocation): New.
8738 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
8739 to on in C++14 and up.
8740
94a073b2
JM
87412014-12-11 Jason Merrill <jason@redhat.com>
8742
acaa5911
JM
8743 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
8744
94a073b2
JM
8745 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
8746 we aren't complaining about VLAs.
8747
7fb66c15
MP
87482014-12-06 Marek Polacek <polacek@redhat.com>
8749
8750 PR tree-optimization/64183
8751 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
8752 shift-expression if it is integer_type_node. Use types_compatible_p.
8753
b731b390
JJ
87542014-11-29 Jakub Jelinek <jakub@redhat.com>
8755
8756 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
8757 last argument from create_tmp_var_raw and create_tmp_var calls.
8758 * cilk.c (gimplify_cilk_spawn): Likewise.
8759 * c-omp.c (c_finish_omp_atomic): Likewise.
8760
6a4da643
MP
87612014-11-28 Marek Polacek <polacek@redhat.com>
8762
8763 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
8764 instead of unsigned_type_node.
8765
541e35a6
MP
87662014-11-28 Marek Polacek <polacek@redhat.com>
8767
8768 PR c/63862
8769 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
8770 to op1_utype.
8771 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
8772 expression to unsigned_type_node.
8773
dcc97066
MW
87742014-11-20 Mark Wielaard <mjw@redhat.com>
8775
8776 PR debug/38757
8777 * c-opts.c (set_std_c89): Set lang_hooks.name.
8778 (set_std_c99): Likewise.
8779 (set_std_c11): Likewise.
8780 (set_std_cxx98): Likewise.
8781 (set_std_cxx11): Likewise.
8782 (set_std_cxx14): Likewise.
8783 (set_std_cxx1z): Likewise.
8784
aa7da51a
JJ
87852014-11-21 Jakub Jelinek <jakub@redhat.com>
8786
8787 PR target/63764
8788 * c-common.h (convert_vector_to_pointer_for_subscript): Change
8789 return type to bool.
009a3480 8790 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
8791 (convert_vector_to_pointer_for_subscript): Change return type to
8792 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
8793 and copy it into a TARGET_EXPR and use that instead of *vecp
8794 directly.
8795
538dd0b7
DM
87962014-11-19 David Malcolm <dmalcolm@redhat.com>
8797
8798 Merger of git branch "gimple-classes-v2-option-3".
8799 * ChangeLog.gimple-classes: New.
8800 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
8801 from being just a vec<gimple> to a vec<gbind *>.
8802
c39a5e99
JJ
88032014-11-18 Jakub Jelinek <jakub@redhat.com>
8804
8805 PR sanitizer/63813
8806 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
8807 argument to ptype, set type to TREE_TYPE (ptype). Don't call
8808 get_pointer_alignment for non-pointers. Use ptype, or if it is
8809 reference type, corresponding pointer type, as type of kind
8810 argument.
8811 (ubsan_maybe_instrument_reference,
8812 ubsan_maybe_instrument_member_call): Adjust callers.
8813
8537a4a9
MP
88142014-11-15 Marek Polacek <polacek@redhat.com>
8815
8816 PR middle-end/63884
8817 * array-notation-common.c (is_sec_implicit_index_fn): Return false
8818 for NULL fndecl.
8819 (extract_array_notation_exprs): Return for NULL node.
8820
2079956a
JM
88212014-11-12 Joseph Myers <joseph@codesourcery.com>
8822
8823 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
8824 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
8825
1304953e
JJ
88262014-11-12 Jakub Jelinek <jakub@redhat.com>
8827
8828 PR c/59708
8829 * c-common.c (check_builtin_function_arguments): Handle
8830 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
8831
e5e44252
AK
88322014-11-10 Andi Kleen <ak@linux.intel.com>
8833
8834 PR c/60804
8835 * c-common.h (check_no_cilk): Declare.
8836 * cilk.c (get_error_location): New function.
8837 (check_no_cilk): Dito.
8838
e64b984d
AK
88392014-11-10 Andi Kleen <ak@linux.intel.com>
8840
8841 * cilk.c (recognize_spawn): Use expression location
8842 for error message.
8843
13c21655
PC
88442014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
8845
8846 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
8847
42fd12b1
ESR
88482014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
8849
8850 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
8851 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
8852 (__cpp_range_based_for, __cpp_initializer_lists,
8853 __cpp_delegating_constructors, __cpp_nsdmi,
8854 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
8855 for C++11; (__cpp_attribute_deprecated): Remove in favor of
8856 __has_cpp_attribute.
8857 * c-lex.c (cb_has_attribute): New callback CPP function;
8858 (init_c_lex): Set has_attribute callback.
8859
6f450181
RB
88602014-11-04 Richard Biener <rguenther@suse.de>
8861
8862 * c-common.c (shorten_compare): Do not shorten mixed
8863 DFP and non-DFP compares.
8864
26f0e1d6
ESR
88652014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
8866
8867 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
8868 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
8869 Commentary and rearrangement of tests.
8870 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
8871 Commentary and rearrangement of tests.
ab20d992 8872 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto.
26f0e1d6
ESR
8873 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
8874
ef4bddc2
RS
88752014-10-29 Richard Sandiford <richard.sandiford@arm.com>
8876
8877 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
8878 enum from machine_mode.
8879
c582198b
AM
88802014-10-28 Andrew MacLeod <amacleod@redhat.com>
8881
adfac8df
JJ
8882 * c-common.c: Adjust include files.
8883 * c-gimplify.c: Ditto.
8884 * cilk.c: Ditto.
8885 * c-pragma.c: Ditto.
8886 * c-ubsan.c: Ditto.
c582198b 8887
60393bbc
AM
88882014-10-27 Andrew MacLeod <amacleod@redhat.com>
8889
8890 * c-gimplify.c: Adjust include files.
8891
d723bb7c
MLI
88922014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
8893
8894 PR c++/53061
8895 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
8896 c_common_initialize_diagnostics.
8897 * c-common.h: Likewise.
8898
90f3520e
MP
88992014-10-24 Marek Polacek <polacek@redhat.com>
8900
8901 PR c/56980
8902 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
8903 print "struct"/"union"/"enum" for typedefed names.
8904
59d7607a
MP
89052014-10-23 Marek Polacek <polacek@redhat.com>
8906
8907 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
8908 in unsigned type.
8909
d95a2703
JJ
89102014-10-22 Jakub Jelinek <jakub@redhat.com>
8911 Yury Gribov <y.gribov@samsung.com>
8912
8913 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
8914 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
8915 instead of flag_sanitize_recover as bool flag.
8916
8e6ef852
KY
89172014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
8918
8919 * cilk.c: Revert previous change.
8920
948cf550
IZ
89212014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
8922
8923 PR c/63307
8924 * cilk.c: Include vec.h.
8925 (struct cilk_decls): New structure.
8926 (wrapper_parm_cb): Split this function to...
8927 (fill_decls_vec): ...this...
8928 (create_parm_list): ...and this.
8929 (compare_decls): New function.
8930 (for_local_cb): Remove.
8931 (wrapper_local_cb): Ditto.
8932 (build_wrapper_type): For now first traverse and fill vector of
8933 declarations then sort it and then deal with sorted vector.
8934 (cilk_outline): Ditto.
8935 (declare_one_free_variable): Ditto.
8936
92574c7c
MP
89372014-10-17 Marek Polacek <polacek@redhat.com>
8938
8939 * c-opts.c (c_common_post_options): Set warn_implicit_int.
8940 * c.opt (Wimplicit-int): Initialize to -1.
8941
83685514
AM
89422014-10-16 Andrew MacLeod <amacleod@redhat.com>
8943
8944 * c-pragma.c: Adjust include files.
8945 * c-semantics.c: Likewise.
8946
5b8300ea
DD
89472014-10-16 DJ Delorie <dj@redhat.com>
8948
8949 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
8950 multiples of bytes.
8951
5f83e90b
JM
89522014-10-14 Jason Merrill <jason@redhat.com>
8953
8954 PR c++/63455
8955 * c-common.h (CPP_PREPARSED_EXPR): New.
8956 (N_CP_TTYPES): Adjust.
8957
d73326ca
MP
89582014-10-15 Marek Polacek <polacek@redhat.com>
8959
8960 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
8961
78a7c317
DD
89622014-10-14 DJ Delorie <dj@redhat.com>
8963
8964 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
8965 types, not just __int128.
8966 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
8967 types, not just __int128.
8968 (cpp_atomic_builtins): Round pointer sizes up.
8969 (type_suffix): Use type precision, not specific types.
8970 * c-common.c (c_common_reswords): Remove __int128 special case.
8971 (c_common_type_for_size): Check for all __intN types, not just
8972 __int128.
8973 (c_common_type_for_mode): Likewise.
8974 (c_common_signed_or_unsigned_type): Likewise.
8975 (c_build_bitfield_integer_type): Likewise.
8976 (c_common_nodes_and_builtins): Likewise.
8977 (keyword_begins_type_specifier): Likewise.
8978 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
8979 __intN variants.
8980
2a22f99c
TS
89812014-10-12 Trevor Saunders <tsaunders@mozilla.com>
8982
8983 * c-common.c: Use hash_table instead of hashtab.
8984
2a8ef767
ESR
89852014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
8986
adfac8df 8987 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
8988 C++11 section.
8989
3c9aabbd
MG
89902014-10-03 Marc Glisse <marc.glisse@inria.fr>
8991
8992 PR c++/54427
8993 PR c++/57198
8994 PR c++/58845
8995 * c-common.c (warn_logical_operator): Punt for vectors.
8996
a15f7cb8
ESR
89972014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
8998
8999 Implement SD-6: SG10 Feature Test Recommendations
9000 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
9001 macros and the __has_header macro.
9002
8d0cf15e
JM
90032014-09-30 Jason Merrill <jason@redhat.com>
9004
dd5d5481
JM
9005 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
9006 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
9007 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
9008
b752325e
JM
9009 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
9010 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
9011
8d0cf15e
JM
9012 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
9013 * c-common.c (c_common_reswords): Remove __is_convertible_to.
9014
083e891e
MP
90152014-09-24 Marek Polacek <polacek@redhat.com>
9016
9017 PR c/61405
9018 PR c/53874
9019 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
9020
7861b648
AK
90212014-09-23 Andi Kleen <ak@linux.intel.com>
9022
9023 * c-common.c (handle_no_reorder_attribute): New function.
9024 (c_common_attribute_table): Add no_reorder attribute.
9025
9a79452d
JM
90262014-09-22 Joseph Myers <joseph@codesourcery.com>
9027
9028 * c-cppbuiltin.c (c_cpp_builtins): Define
9029 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
9030 modes.
9031
dd69f047
JM
90322014-09-18 Joseph Myers <joseph@codesourcery.com>
9033
9034 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
9035 for supported floating-point modes.
9036
737a4826
MLI
90372014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
9038
9039 * c.opt (Wpsabi): Use LangEnabledBy.
9040 * c-opts.c (c_common_handle_option): Do not handle here.
9041
8cc4b7a2
JM
90422014-09-12 Joseph Myers <joseph@codesourcery.com>
9043
9044 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
9045 macros for floating-point modes.
9046
179b5a55
MG
90472014-09-11 Marc Glisse <marc.glisse@inria.fr>
9048
9049 PR target/58757
9050 * c-cppbuiltin.c (builtin_define_float_constants): Correct
9051 __*_DENORM_MIN__ without denormals.
9052
570a11fe
JJ
90532014-09-10 Jakub Jelinek <jakub@redhat.com>
9054
9055 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
9056 ubsan_instrument_vla, ubsan_instrument_return): Adjust
9057 ubsan_create_data callers.
9058 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
9059 index is constant or BIT_AND_EXPR with constant mask and is
9060 small enough for the bound.
9061 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
9062 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
9063
b559c810
MLI
90642014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
9065
9066 * c.opt: Add CppReason to various flags.
9067 (Wdate-time): Re-sort.
9068 * c-common.c: Include c-common.h earlier.
9069 (struct reason_option_codes_t): Delete.
9070 (c_option_controlling_cpp_error): Prefix global type and struct
9071 with cpp_.
9072
1ef33fd4
MLI
90732014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
9074
9075 * c.opt (Wnormalized): New.
9076 (Wnormalized=): Use Enum and Reject Negative.
9077 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
9078
66bb34c0
JM
90792014-09-08 Joseph Myers <joseph@codesourcery.com>
9080
9081 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
9082 digits of floating-point modes if -fbuilding-libgcc.
9083
53d68b9f
JM
90842014-09-05 Joseph Myers <joseph@codesourcery.com>
9085
9086 * c-cppbuiltin.c (c_cpp_builtins): Also define
9087 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
9088 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
9089 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
9090 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
9091 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
9092 __LIBGCC_STACK_GROWS_DOWNWARD__,
9093 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
9094 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
9095 __LIBGCC_DWARF_FRAME_REGISTERS__,
9096 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
9097 __LIBGCC_STACK_POINTER_REGNUM__ and
9098 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
9099 (builtin_define_with_value): Handle backslash-escaping in string
9100 macro values.
9101
f65586dc
RB
91022014-09-05 Richard Biener <rguenther@suse.de>
9103
9104 PR middle-end/63148
9105 * c-format.c (check_format_arg): Properly handle
9106 effectively signed POINTER_PLUS_EXPR offset.
9107
2b71f4a4
MLI
91082014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
9109
9110 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
9111 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
9112 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
9113 and Init.
9114 * c-opts.c (c_common_handle_option): Do not handle here.
9115 (sanitize_cpp_opts): Likewise.
9116 * c-common.c (struct reason_option_codes_t): Handle
9117 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
9118
d2e4feca
MP
91192014-09-03 Marek Polacek <polacek@redhat.com>
9120
9121 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
9122
9a771876
JJ
91232014-09-02 Jakub Jelinek <jakub@redhat.com>
9124 Balaji V. Iyer <balaji.v.iyer@intel.com>
9125 Igor Zamyatin <igor.zamyatin@intel.com>
9126
9127 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
9128 * c-common.c (c_common_reswords): Added _Cilk_for.
9129 * c-common.h (enum rid): Added RID_CILK_FOR.
9130 (cilk_for_number_of_iterations): Add declaration.
9131 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
9132 CILK_FOR.
9133 * c-pragma.c (init_pragma): Register "grainsize" pragma.
9134 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
9135
81b5d104
MLI
91362014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
9137
9138 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
9139 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
9140 Wundef): Use CPP, Var and Init.
9141 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
9142
b753b37b
MLI
91432014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
9144
9145 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
9146 * c-opts.c (c_common_handle_option): Do not handle here.
9147
028aee17
JM
91482014-08-25 Jason Merrill <jason@redhat.com>
9149
9150 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
9151 -std=c++14 and -std=gnu++14, rather than the reverse.
9152 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
9153 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
9154 * c-common.h (cxx_dialect): Remove cxx1y.
9155
e4276ba5
ESR
91562014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
9157
9158 * c-common.h (enum cxx_dialect): Add cxx14.
9159 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
9160 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
9161 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
9162
a545cacd
JM
91632014-08-22 Jason Merrill <jason@redhat.com>
9164
9165 * c.opt (std=gnu++17): Fix alias.
9166
59ea0364
MP
91672014-08-22 Marek Polacek <polacek@redhat.com>
9168
9169 PR c++/62199
9170 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
9171 check for vector types. Drop LHS argument.
9172 * c-common.h (warn_logical_not_parentheses): Adjust.
9173
596e808c
MLI
91742014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
9175
9176 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
9177 (Wmultichar): Likewise.
9178 (Wdate-time): Use C-family languages instead of Common. Use CPP
9179 and Var.
9180 * c-opts.c (c_common_handle_option): Do not handle the above
9181 options here.
9182 (sanitize_cpp_opts): Likewise.
9183
18767f65
MLI
91842014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
9185
9186 PR fortran/44054
9187 * c-opts.c: Include tree-diagnostics.h.
9188 (c_diagnostic_finalizer): New.
9189 (c_common_initialize_diagnostics): Use it.
9190
b4413594
MLI
91912014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
9192
9193 PR preprocessor/51303
9194 * c-common.c (struct reason_option_codes_t option_codes):
9195 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
9196
43f9a13c
MLI
91972014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
9198
9199 PR c/60975
9200 PR c/53063
9201 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
9202 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
9203 (c_common_post_options): Call init_global_opts_from_cpp.
9204 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
9205
04159acf
MP
92062014-08-19 Marek Polacek <polacek@redhat.com>
9207
9208 PR c++/62153
9209 * c-common.c (maybe_warn_bool_compare): New function.
9210 * c-common.h (maybe_warn_bool_compare): Declare.
9211 * c.opt (Wbool-compare): New option.
9212
35aff4fb
MP
92132014-08-19 Marek Polacek <polacek@redhat.com>
9214
9215 * c.opt (Wc99-c11-compat): New option.
9216
177cce46
MP
92172014-08-19 Marek Polacek <polacek@redhat.com>
9218
9219 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
9220 to warn_c90_c99_compat.
9221 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
9222 to -1.
9223
6ae9194f
MLI
92242014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
9225 Steven Bosscher <steven@gcc.gnu.org>
9226
9227 PR c/52952
9228 * c-format.c: Add extra_arg_loc and format_string_loc to struct
9229 format_check_results.
9230 (check_function_format): Use true and add comment for boolean
9231 argument.
9232 (finish_dollar_format_checking): Use explicit location when warning.
9233 (check_format_info): Likewise.
9234 (check_format_arg): Set extra_arg_loc and format_string_loc.
9235 (check_format_info_main): Use explicit location when warning.
9236 (check_format_types): Pass explicit location.
9237 (format_type_warning): Likewise.
9238
8e54f6d3
MLI
92392014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
9240
9241 PR fortran/44054
9242 * c-format.c: Handle Fortran flags.
9243
cd4e76fc
IZ
92442014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
9245
9246 PR other/61962
9247 * array-notation-common.c (find_rank): Added handling for other
9248 types of references.
9249
f3bede71
MP
92502014-08-10 Marek Polacek <polacek@redhat.com>
9251
9252 PR c/51849
9253 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
9254 * c.opt (Wc90-c99-compat): Add option.
9255
9f25a338
TS
92562014-08-07 Trevor Saunders <tsaunders@mozilla.com>
9257
9258 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
9259
62e4eb35
MP
92602014-08-03 Marek Polacek <polacek@redhat.com>
9261
ab20d992 9262 * c-common.c (check_case_value): Add location_t parameter. Use it.
62e4eb35
MP
9263 (c_add_case_label): Pass loc to check_case_value.
9264
b787e7a2
TS
92652014-08-02 Trevor Saunders <tsaunders@mozilla.com>
9266
9267 * cilk.c: Use hash_map instead of pointer_map.
9268
6e2830c3
TS
92692014-08-02 Trevor Saunders <tsaunders@mozilla.com>
9270
9271 * c-gimplify.c: Use hash_set instead of pointer_set.
9272
a7ee52fb
IZ
92732014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
9274
9275 PR middle-end/61455
9276 * array-notation-common.c (extract_array_notation_exprs): Handling
9277 of DECL_EXPR added.
9278
944fa280
JJ
92792014-08-01 Jakub Jelinek <jakub@redhat.com>
9280
9281 * c-common.h (min_align_of_type): Removed prototype.
9282 * c-common.c (min_align_of_type): Removed.
9283 * c-ubsan.h (ubsan_maybe_instrument_reference,
9284 ubsan_maybe_instrument_member_call): New prototypes.
9285 * c-ubsan.c: Include stor-layout.h and builtins.h.
9286 (ubsan_maybe_instrument_reference_or_call,
9287 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
9288 functions.
9289
b4dfdc11
MG
92902014-07-31 Marc Glisse <marc.glisse@inria.fr>
9291
9292 PR c++/60517
9293 * c.opt (-Wreturn-local-addr): Move to common.opt.
9294
a41844e5
JM
92952014-07-30 Jason Merrill <jason@redhat.com>
9296
9297 PR c++/61659
9298 PR c++/61687
9299 Revert:
9300 * c.opt (-fuse-all-virtuals): New.
9301
976d5a22
TT
93022014-07-30 Tom Tromey <tromey@redhat.com>
9303
9304 PR c/59855
9305 * c.opt (Wdesignated-init): New option.
9306 * c-common.c (c_common_attribute_table): Add "designated_init".
9307 (handle_designated_init): New function.
9308
cdc94aca
MP
93092014-07-24 Marek Polacek <polacek@redhat.com>
9310
9311 PR c/57653
9312 * c-opts.c (c_finish_options): If -imacros is in effect, return.
9313
f41373b6
DS
93142014-07-16 Dodji Seketeli <dodji@redhat.com>
9315
9316 PR preprocessor/60723 - missing system-ness marks for macro tokens
9317 * c-ppoutput.c (struct print::prev_was_system_token): New data
9318 member.
9319 (init_pp_output): Initialize it.
9320 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
9321 (do_line_change): Return a flag saying if a line marker was
9322 emitted or not.
9323 (scan_translation_unit): Detect if the system-ness of the token we
9324 are about to emit is different from the one of the previously
9325 emitted token. If so, emit a line marker. Avoid emitting useless
9326 adjacent line markers. Avoid emitting line markers for tokens
9327 originating from the expansion of built-in macros.
9328 (scan_translation_unit_directives_only): Adjust.
9329
4d661eaa
MP
93302014-07-15 Marek Polacek <polacek@redhat.com>
9331
9332 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
9333 TYPE_MAX_VALUE is NULL.
9334
b108f48f
JJ
93352014-07-14 Jakub Jelinek <jakub@redhat.com>
9336
9337 PR middle-end/61294
9338 * c.opt (Wmemset-transposed-args): New warning.
9339
c0221884
JM
93402014-07-10 Jason Merrill <jason@redhat.com>
9341
9342 PR c++/61659
9343 PR c++/61687
9344 * c.opt (-fuse-all-virtuals): New.
9345
63dfbb95
RB
93462014-07-09 Richard Biener <rguenther@suse.de>
9347
9348 PR c-family/61741
9349 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
9350 using unsigned arithmetic if overflow does not wrap instead of
9351 if overflow is undefined.
9352
773ec47f
MP
93532014-07-06 Marek Polacek <polacek@redhat.com>
9354
9355 PR c/6940
9356 * c.opt (Wsizeof-array-argument): New option.
9357
00a7ba58
JJ
93582014-07-03 Jakub Jelinek <jakub@redhat.com>
9359
b1726d6c 9360 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
00a7ba58
JJ
9361 comments->count <= 1, as comments->entries might be NULL.
9362
52ec0ea3
MP
93632014-07-01 Marek Polacek <polacek@redhat.com>
9364
9365 * c.opt (Wint-conversion): New option.
9366
d5c3d343
MP
93672014-07-01 Marek Polacek <polacek@redhat.com>
9368
9369 PR c/58286
9370 * c.opt (Wincompatible-pointer-types): New option.
9371
6e7ceb17
PC
93722014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
9373
9374 PR c++/51400
9375 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
9376 Do not discard TYPE_QUALS of type.
9377
da73100b
JM
93782014-06-26 Jason Merrill <jason@redhat.com>
9379
9380 * c-common.h (enum cxx_dialect): Add cxx1z.
9381 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
9382 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
9383
08eedf75
TJ
93842014-06-26 Teresa Johnson <tejohnson@google.com>
9385
9386 * c-common.h (get_dump_info): Declare.
9387 * c-gimplify.c (c_genericize): Use saved dump files.
9388 * c-opts.c (c_common_parse_file): Begin and end dumps
9389 once around parsing invocation.
9390 (get_dump_info): New function.
9391
7b56b2f8
MP
93922014-06-23 Marek Polacek <polacek@redhat.com>
9393 Andrew MacLeod <amacleod@redhat.com>
9394
9395 PR c/61553
9396 * c-common.c (get_atomic_generic_size): Don't segfault if the
9397 type doesn't have a size.
9398
0e37a2f3
MP
93992014-06-20 Marek Polacek <polacek@redhat.com>
9400
9401 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
9402 (ubsan_walk_array_refs_r): New function.
9403 (c_genericize): Instrument array bounds.
9404 * c-ubsan.c: Include "internal-fn.h".
9405 (ubsan_instrument_division): Mark instrumented arrays as having
9406 side effects. Adjust ubsan_type_descriptor call.
9407 (ubsan_instrument_shift): Likewise.
9408 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
9409 (ubsan_instrument_bounds): New function.
9410 (ubsan_array_ref_instrumented_p): New function.
9411 (ubsan_maybe_instrument_array_ref): New function.
9412 * c-ubsan.h (ubsan_instrument_bounds): Declare.
9413 (ubsan_array_ref_instrumented_p): Declare.
9414 (ubsan_maybe_instrument_array_ref): Declare.
9415
94162014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
9417
9418 PR lto/61123
9419 * c.opt (fshort-enums): Add to LTO.
9420 * c.opt (fshort-wchar): Likewise.
9421
5c3d09f7
MP
94222014-06-16 Marek Polacek <polacek@redhat.com>
9423
9424 PR c/60439
9425 * c.opt (Wswitch-bool): Add Var.
9426
9cf32741
JJ
94272014-06-12 Jakub Jelinek <jakub@redhat.com>
9428
9429 PR middle-end/61486
9430 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
9431 #pragma omp target teams or
9432 #pragma omp {,target }teams distribute simd.
9433
62984918
JM
94342014-06-12 Jason Merrill <jason@redhat.com>
9435
9436 * c.opt (Wabi=, fabi-compat-version): New.
9437 * c-opts.c (c_common_handle_option): Handle -Wabi=.
9438 (c_common_post_options): Handle flag_abi_compat_version default.
9439 Disallow -fabi-compat-version=1.
9440 * c-common.h (abi_version_crosses): New.
9441
f961457f
JH
94422014-06-11 Jan Hubicka <hubicka@ucw.cz>
9443
adfac8df 9444 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
9445 section names that are no longer trees.
9446
92d28cbb
JJ
94472014-06-10 Jakub Jelinek <jakub@redhat.com>
9448
9449 PR fortran/60928
9450 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
9451 (omp_pragmas): ... back here.
9452
742938c9
MP
94532014-06-05 Marek Polacek <polacek@redhat.com>
9454
9455 PR c/49706
9456 * c-common.c (warn_logical_not_parentheses): New function.
9457 * c-common.h (warn_logical_not_parentheses): Declare.
9458 * c.opt (Wlogical-not-parentheses): New option.
9459
9d548dfb
MP
94602014-06-04 Marek Polacek <polacek@redhat.com>
9461
9462 PR c/30020
9463 * c-common.c (check_case_bounds): Add location parameter.
9464 Use it.
9465 (c_add_case_label): Pass loc to check_case_bounds.
9466
fedfecef
MP
94672014-06-03 Marek Polacek <polacek@redhat.com>
9468
9469 PR c/60439
9470 * c.opt (Wswitch-bool): New option.
9471
f6a7cffc
TS
94722014-05-22 Thomas Schwinge <thomas@codesourcery.com>
9473
040d18b6
TS
9474 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
9475 Remove prototypes.
9476 (record_types_used_by_current_var_decl): Move prototype to where
9477 it belongs.
9478
f6a7cffc
TS
9479 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
9480 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
9481 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
9482
632f2871
RS
94832014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
9484
9485 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
9486 * c-common.c (c_common_nodes_and_builtins): Don't initialize
9487 void_zero_node.
9488 * c-pretty-print.c (pp_c_void_constant): New function.
9489 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
9490 (c_pretty_printer::expression): Handle VOID_CST.
9491 * cilk.c (extract_free_variables): Likewise.
9492 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
9493 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
9494
766090c2
TS
94952014-05-17 Trevor Saunders <tsaunders@mozilla.com>
9496
9497 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
9498 * c-pragma.c (push_alignment): Adjust.
9499 (handle_pragma_push_options): Likewise.
9500
661a0813
MP
95012014-05-09 Marek Polacek <polacek@redhat.com>
9502
9503 PR c/50459
9504 * c-common.c (check_user_alignment): Return -1 if alignment is error
9505 node.
9506 (handle_aligned_attribute): Don't call default_conversion on
9507 FUNCTION_DECLs.
9508 (handle_vector_size_attribute): Likewise.
9509 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
9510 (handle_sentinel_attribute): Call default_conversion and allow even
9511 integral types as an argument.
9512
2793eeab
MP
95132014-05-08 Marek Polacek <polacek@redhat.com>
9514
9515 PR c/61053
9516 * c-common.c (min_align_of_type): New function factored out from...
9517 (c_sizeof_or_alignof_type): ...here.
9518 * c-common.h (min_align_of_type): Declare.
9519
f827930a
MP
95202014-05-08 Marek Polacek <polacek@redhat.com>
9521
9522 PR c/61077
9523 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
9524 parameter type of main.
9525
ca49b74e
DD
95262014-05-07 DJ Delorie <dj@redhat.com>
9527
9528 * c-cppbuiltin.c (print_bits_of_hex): New.
9529 (builtin_define_type_minmax): Print values using hex so as not to
9530 require a pre-computed list of string values.
9531
1d60af08
KZ
95322014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
9533 Mike Stump <mikestump@comcast.net>
9534 Richard Sandiford <rdsandiford@googlemail.com>
9535
9536 * c-ada-spec.c: Include wide-int.h.
9537 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
9538 (dump_generic_ada_node): Use wide-int interfaces.
9539 * c-common.c: Include wide-int-print.h.
9540 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
9541 (pointer_int_sum): Use wide-int interfaces.
9542 (c_common_nodes_and_builtins): Use make_int_cst.
9543 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
9544 (handle_alloc_size_attribute): Use wide-int interfaces.
9545 (get_nonnull_operand): Likewise.
9546 * c-format.c (get_constant): Use tree_fits_uhwi_p.
9547 * c-lex.c: Include wide-int.h.
9548 (narrowest_unsigned_type): Take a widest_int rather than two
9549 HOST_WIDE_INTs.
9550 (narrowest_signed_type): Likewise.
9551 (interpret_integer): Update accordingly. Use wide-int interfaces.
9552 (lex_charconst): Use wide-int interfaces.
9553 * c-pretty-print.c: Include wide-int.h.
9554 (pp_c_integer_constant): Use wide-int interfaces.
9555 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
9556 INT_CST_LT_UNSIGNED.
9557
b15458be
RB
95582014-05-06 Richard Biener <rguenther@suse.de>
9559
9560 * c-opts.c (c_common_post_options): For -freestanding,
9561 -fno-hosted and -fno-builtin disable pattern recognition
9562 if not enabled explicitely.
9563
6577374e
MP
95642014-05-02 Marek Polacek <polacek@redhat.com>
9565
9566 * c.opt (Wsizeof-pointer-memaccess): Describe option.
9567
d00887e8
MP
95682014-05-01 Marek Polacek <polacek@redhat.com>
9569
9570 PR c/43245
9571 * c.opt (Wdiscarded-qualifiers): Add.
9572
f8ed5150
MP
95732014-04-30 Marek Polacek <polacek@redhat.com>
9574
9575 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
9576 INT_MIN / -1 sanitization only for integer types.
9577
45484dcf
MP
95782014-04-25 Marek Polacek <polacek@redhat.com>
9579
9580 PR c/18079
9581 * c-common.c (handle_noinline_attribute): Warn if the attribute
9582 conflicts with always_inline attribute.
9583 (handle_always_inline_attribute): Warn if the attribute conflicts
9584 with noinline attribute.
9585
38e514c0
MP
95862014-04-25 Marek Polacek <polacek@redhat.com>
9587
9588 PR c/60156
9589 * c-common.c (check_main_parameter_types): Warn about variadic main.
9590
44875f92
MS
95912014-04-24 Mike Stump <mikestump@comcast.net>
9592
9593 * c.opt (Wshadow-ivar): Default to on.
9594
dcaaa5a0
DP
95952014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
9596
9597 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
9598
c07d7c02
MP
95992014-04-23 Marek Polacek <polacek@redhat.com>
9600
9601 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
9602
1c33c9b7
JJ
96032014-04-22 Jakub Jelinek <jakub@redhat.com>
9604
9605 PR sanitizer/60275
9606 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
9607 if flag_sanitize_undefined_trap_on_error.
9608 (ubsan_instrument_division, ubsan_instrument_shift,
9609 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
9610 if !flag_sanitize_recover.
9611
793c625f
MG
96122014-04-22 Marc Glisse <marc.glisse@inria.fr>
9613
9614 PR libstdc++/43622
9615 * c-common.c (registered_builtin_types): Make non-static.
9616 * c-common.h (registered_builtin_types): Declare.
9617
b0f1bf36 96182014-04-14 Richard Biener <rguenther@suse.de>
ab20d992 9619 Marc Glisse <marc.glisse@inria.fr>
b0f1bf36
RB
9620
9621 PR c/60819
9622 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
9623 apply may-alias the scalar pointer type when applicable.
9624
3b07fa4a
IZ
96252014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
9626
9627 PR middle-end/60467
9628 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
9629 as possible argument for Cilk_spawn.
9630
cbbd2b1c
TB
96312014-04-11 Tobias Burnus <burnus@net-b.de>
9632
9633 PR c/60194
9634 * c.opt (Wformat-signedness): Add
9635 * c-format.c(check_format_types): Use it.
9636
6415bd5d
JM
96372014-04-11 Jason Merrill <jason@redhat.com>
9638
9639 PR c++/57926
9640 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
9641 default_conversion for an array argument.
9642
6525783a
MP
96432014-04-08 Marek Polacek <polacek@redhat.com>
9644
9645 PR sanitizer/60745
9646 * c-ubsan.c: Include asan.h.
9647 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
9648
880a467b
NS
96492014-04-03 Nathan Sidwell <nathan@codesourcery.com>
9650
9651 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
9652
7b59ff2d
MP
96532014-04-02 Marek Polacek <polacek@redhat.com>
9654
9655 * c-common.h (c_expand_expr): Remove declaration.
9656
8edbfaa6
JJ
96572014-03-28 Jakub Jelinek <jakub@redhat.com>
9658
9659 PR c++/60689
9660 * c-common.c (add_atomic_size_parameter): When creating new
9661 params vector, push the size argument first.
9662
07d72e1d
JJ
96632014-03-26 Jakub Jelinek <jakub@redhat.com>
9664
9665 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
9666 ubsan_instrument_vla, ubsan_instrument_return): Adjust
9667 ubsan_create_data callers.
9668
b35e0fa0
JJ
96692014-03-22 Jakub Jelinek <jakub@redhat.com>
9670
9671 PR debug/60603
9672 * c-opts.c (c_finish_options): Restore cb_file_change call to
9673 <built-in>.
9674
39a1ebb3
JJ
96752014-03-13 Jakub Jelinek <jakub@redhat.com>
9676
9677 PR middle-end/36282
9678 * c-pragma.c (apply_pragma_weak): Only look at
9679 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
9680 DECL_ASSEMBLER_NAME_SET_P (decl).
9681 (maybe_apply_pending_pragma_weaks): Exit early if
9682 vec_safe_is_empty (pending_weaks) rather than only when
9683 !pending_weaks.
9684 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
9685 set assembler name back to NULL afterwards.
9686
a07f6ed2
JM
96872014-03-11 Jason Merrill <jason@redhat.com>
9688
9689 * c.opt: Add -std=gnu++14.
9690
75b107f5
IB
96912014-03-11 Ian Bolton <ian.bolton@arm.com>
9692
9693 * c-opts.c (c_common_post_options): Don't override
9694 -ffp-contract=fast if unsafe-math-optimizations is on.
9695
f42c637e
PM
96962014-03-08 Paulo Matos <paulo@matos-sorge.com>
9697
22b15758 9698 * c.opt: Enable LTO FE for fshort-double.
f42c637e 9699
70e24808
JM
97002014-03-07 Jason Merrill <jason@redhat.com>
9701
9702 * c.opt: Add -std=c++14.
9703
3af9c5e9
MP
97042014-03-06 Marek Polacek <polacek@redhat.com>
9705
9706 PR c/60197
9707 * cilk.c (contains_cilk_spawn_stmt): New function.
9708 (contains_cilk_spawn_stmt_walker): Likewise.
9709 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
9710 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
9711
b3bdf019
JJ
97122014-03-03 Jakub Jelinek <jakub@redhat.com>
9713
9714 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
9715 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
9716 even when flag_preprocess_only.
9717
ca7e759d
JM
97182014-02-26 Jason Merrill <jason@redhat.com>
9719
9720 PR c++/59231
9721 PR c++/11586
9722 * c-common.c (shorten_compare): Don't check
9723 c_inhibit_evaluation_warnings.
9724
28e41874
JJ
97252014-02-19 Jakub Jelinek <jakub@redhat.com>
9726
cca615af
JJ
9727 PR c/37743
9728 * c-common.c (c_common_nodes_and_builtins): When initializing
9729 c_uint{16,32,64}_type_node, also set corresponding
9730 uint{16,32,64}_type_node to the same value.
9731
28e41874
JJ
9732 PR c++/60267
9733 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
9734 for PRAGMA_IVDEP if flag_preprocess_only.
9735
c2bf53a1
JJ
97362014-02-12 Jakub Jelinek <jakub@redhat.com>
9737
9738 PR c/60101
9739 * c-common.c (merge_tlist): If copy is true, call new_tlist,
9740 if false, add ADD itself, rather than vice versa.
9741 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
9742 copy. For SAVE_EXPR, only call merge_tlist once.
9743
8fcbce72
JJ
97442014-02-08 Jakub Jelinek <jakub@redhat.com>
9745
9746 PR middle-end/60092
9747 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
9748 and tree_to_uhwi.
9749 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
9750 functions.
9751 (c_common_attribute_table): Add alloc_align and assume_aligned
9752 attributes.
9753
0a756a3f
MP
97542014-02-06 Marek Polacek <polacek@redhat.com>
9755
9756 PR c/60087
9757 * c-common.c (warn_for_sign_compare): Call warning_at with location
9758 instead of warning.
9759
7ec4847a
MP
97602014-02-05 Marek Polacek <polacek@redhat.com>
9761
9762 PR c/53123
9763 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
9764 statement.
9765
66f20604
MP
97662014-02-04 Marek Polacek <polacek@redhat.com>
9767
9768 PR c/60036
9769 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
9770 SAVE_EXPR.
9771
5d77fb19
MG
97722014-02-03 Marc Glisse <marc.glisse@inria.fr>
9773
9774 PR c++/53017
9775 PR c++/59211
9776 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
9777 handle_vector_size_attribute, handle_nonnull_attribute): Call
9778 default_conversion on the attribute argument.
9779 (handle_nonnull_attribute): Increment the argument number.
9780
81e5eca8
MP
97812014-01-31 Marek Polacek <polacek@redhat.com>
9782
9783 PR c/59963
9784 * c-common.c (add_atomic_size_parameter): Pass vNULL to
9785 build_function_call_vec.
9786 (resolve_overloaded_builtin): Likewise.
9787 * c-common.h (build_function_call_vec): Adjust declaration.
9788
68fca595
MP
97892014-01-30 Marek Polacek <polacek@redhat.com>
9790
9791 PR c/59940
9792 * c-common.h (unsafe_conversion_p): Adjust declaration.
9793 (warnings_for_convert_and_check): Likewise.
9794 (convert_and_check): Likewise.
9795 * c-common.c (unsafe_conversion_p): Add location parameter. Call
9796 expansion_point_location_if_in_system_header on it.
9797 (warnings_for_convert_and_check): Add location parameter. Call
9798 expansion_point_location_if_in_system_header on it. Use it.
9799 (convert_and_check): Add location parameter. Use it.
9800 (conversion_warning): Likewise.
9801 (c_add_case_label): Adjust convert_and_check calls.
9802 (scalar_to_vector): Adjust unsafe_conversion_p calls.
9803
b72271b9
BI
98042014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
9805
9806 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
9807 flag_cilkplus.
9808 * c-pragma.c (init_pragma): Likewise.
9809 * c.opt: Likewise.
9810
393e8e8b
MP
98112014-01-23 Marek Polacek <polacek@redhat.com>
9812
9813 PR c/59846
9814 * c-common.c (shorten_compare): Add location_t parameter.
9815 * c-common.h (shorten_binary_op): Adjust declaration.
9816
f04dda30
MP
98172014-01-23 Marek Polacek <polacek@redhat.com>
9818
9819 PR c/58346
9820 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
9821 * c-common.h: Declare it.
9822
621955cb
EB
98232014-01-20 Eric Botcazou <ebotcazou@adacore.com>
9824
9825 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
9826 * c-ada-spec.c (dump_ads): Likewise.
9827 (cpp_check): Likewise.
9828 (dump_ada_specs): Likewise.
9829
98302014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
9831
9832 PR c++/49718
9833 * c-common.c (handle_no_instrument_function_attribute): Allow
9834 no_instrument_function attribute in class member
9835 definition/declaration.
9836
241f845a
JJ
98372014-01-15 Jakub Jelinek <jakub@redhat.com>
9838
9839 PR c/58943
9840 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
9841 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
9842 being COMPOUND_EXPR.
9843 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
9844 operand a SAVE_EXPR and second MODIFY_EXPR.
9845
e83b8e2e
JJ
98462014-01-09 Jakub Jelinek <jakub@redhat.com>
9847
9848 PR target/58115
9849 * c-pch.c (c_common_write_pch): Call
9850 prepare_target_option_nodes_for_pch.
9851
23a5b65a
RS
98522014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
9853
9854 Update copyright years
9855
f9030485
RS
98562014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
9857
9858 * array-notation-common.c, c-cilkplus.c: Use the standard form for
9859 the copyright notice.
9860
f2aa696b
EB
98612013-12-28 Eric Botcazou <ebotcazou@adacore.com>
9862
9863 * c-ada-spec.c (print_constructor): New function.
9864 (print_destructor): Retrieve the origin of the destructor.
9865 (print_ada_declaration): Revamp handling of constructors/destructors.
9866
3f8257db 98672013-12-23 Stuart Hastings <stuart@apple.com>
1f26ac87
JM
9868 Bill Maddox <maddox@google.com>
9869 Jason Merrill <jason@redhat.com>
9870
9871 * c.opt: Add -fdeclone-ctor-dtor.
9872 * c-opts.c (c_common_post_options): Default to on iff -Os.
9873
41958c28
BI
98742013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
9875
9876 * c-common.c (c_common_attribute_table): Added "cilk simd function"
9877 attribute.
9878 * c-pragma.h (enum pragma_cilk_clause): Remove.
ab20d992 9879 (enum pragma_omp_clause): Added the following fields:
41958c28
BI
9880 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
9881 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
9882 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
9883 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
9884 PRAGMA_CILK_CLAUSE_UNIFORM.
9885
b1726d6c 9886
12893402
BI
98872013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
9888
9889 * cilk.c (cilk_outline): Made this function non-static.
9890 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
9891 (create_cilk_wrapper): Added a new parameter: a function pointer.
9892 (c_install_body_w_frame_cleanup): Remove
9893 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
9894 * c-common.h (cilk_outline): New prototype.
9895 (gimplify_cilk_spawn): Removed two parameters.
9896 (cilk_install_body_with_frame_cleanup): New prototype.
9897 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
9898 CILK_SPAWN_STMT case.
9899
085b42ed
BS
99002013-12-11 Bernd Schmidt <bernds@codesourcery.com>
9901
2ce064c3
BS
9902 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
9903
085b42ed
BS
9904 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
9905 (int_array_type_node): Remove.
9906 * c-common.c (c_common_nodes_and_builtins): Don't build it.
9907
9e36c9ed
MP
99082013-12-05 Marek Polacek <polacek@redhat.com>
9909
9910 PR c/52023
9911 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
9912 [ADJUST_FIELD_ALIGN].
9913
296674db
JM
99142013-12-04 Joseph Myers <joseph@codesourcery.com>
9915
9916 PR c/52023
9917 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
9918 and check field alignment if set.
9919 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
9920 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
9921
b1726d6c 99222013-12-04 Jakub Jelinek <jakub@redhat.com>
31e071ae
MP
9923 Marek Polacek <polacek@redhat.com>
9924
9925 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
9926 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
9927
d7947e19
L
99282013-11-29 H.J. Lu <hongjiu.lu@intel.com>
9929
9930 PR c/59309
9931 * cilk.c (gimplify_cilk_spawn): Properly handle function without
9932 arguments.
9933
fad7652e
JJ
99342013-11-29 Jakub Jelinek <jakub@redhat.com>
9935
9936 PR c/59280
9937 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
9938 goto invalid. If it is error_mark_node, don't issue further
9939 diagnostics.
9940
8b5e1202
SO
99412013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
9942
9943 * c.opt (Wopenmp-simd): New.
9944
0a508bb6
JJ
99452013-11-22 Jakub Jelinek <jakub@redhat.com>
9946
9947 * c-ubsan.h (ubsan_instrument_return): New prototype.
9948 * c-ubsan.c (ubsan_instrument_return): New function.
9949
2fb9a547
AM
99502013-11-22 Andrew MacLeod <amacleod@redhat.com>
9951
9952 * c-common.c: Add required include files from gimple.h.
ab20d992
JJ
9953 * c-gimplify.c: Likewise.
9954 * cilk.c: Likewise.
2fb9a547 9955
8400e75e
DM
99562013-11-22 David Malcolm <dmalcolm@redhat.com>
9957
9958 * c-common.c (unsafe_conversion_p): Remove use of
9959 EXPR_LOC_OR_HERE macro.
9960 (conversion_warning): Likewise.
9961 (warnings_for_convert_and_check): Likewise.
9962 (warn_for_collisions_1): Likewise.
9963 (shorten_compare): Likewise, and remove use of in_system_header
9964 macro, using the location from the former.
9965 * c-lex.c (dump_one_header): Remove use of input_filename macro.
9966 (cb_def_pragma): Remove use of in_system_header macro.
9967 (lex_string): Likewise.
9968 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
9969
eb1ce453
KZ
99702013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
9971 Mike Stump <mikestump@comcast.net>
9972 Richard Sandiford <rdsandiford@googlemail.com>
9973
9974 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
9975 instead of TREE_INT_CST_LOW, in cases where there is a protecting
9976 tree_fits_shwi_p or tree_fits_uhwi_p.
9977 (dump_generic_ada_node): Likewise.
9978 * c-format.c (check_format_arg): Likewise.
9979 * c-pretty-print.c (pp_c_integer_constant): Likewise.
9980
6b3b8c27
KZ
99812013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
9982
9983 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
9984
49b0aa18
JC
99852013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
9986
9987 PR c/53001
9988 * c-common.c (unsafe_conversion_p): Make this function
9989 return an enumeration with more detail.
9990 (conversion_warning): Use the new return type of
9991 unsafe_conversion_p to separately warn either about conversions
9992 that lower floating point number precision or about the other
9993 kinds of conversions.
9994 * c-common.h (enum conversion_safety): New enumeration.
8e745a17
JJ
9995 (unsafe_conversion_p): switching return type to
9996 conversion_safety enumeration.
49b0aa18
JC
9997 * c.opt: Adding new warning -Wfloat-conversion and
9998 enabling it with -Wconversion.
9999
b826515a
BS
100002013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
10001
8e745a17
JJ
10002 * c-opts.c: Include plugin.h.
10003 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
b826515a 10004
b9a55b13
MP
100052013-11-19 Marek Polacek <polacek@redhat.com>
10006
10007 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
10008 call.
10009 (ubsan_instrument_shift): Likewise.
10010 (ubsan_instrument_vla): Likewise.
10011
7d362f6c
RS
100122013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
10013
10014 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
10015 cast to unsigned type.
10016
386b1f1f
RS
100172013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
10018
10019 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
10020 tree_low_cst.
10021 (complete_array_type): Update comment to refer to tree_to_[su]hwi
10022 rather than tree_low_cst.
10023
ae7e9ddd
RS
100242013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
10025
10026 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
10027 tree_to_uhwi throughout.
10028
9439e9a1
RS
100292013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
10030
10031 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
10032 tree_low_cst (..., 0) with tree_to_shwi throughout.
10033
cc269bb6
RS
100342013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
10035
10036 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
10037 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
10038
9541ffee
RS
100392013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
10040
10041 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
10042 host_integerp (..., 0) with tree_fits_shwi_p throughout.
10043
c02065fc
AH
100442013-11-15 Aldy Hernandez <aldyh@redhat.com>
10045
10046 * c-cilkplus.c: New file.
10047 * c-common.c (readonly_error): Add location argument.
10048 * c-common.h (readonly_error): Same.
10049 (c_finish_cilk_clauses): Protoize.
10050 (c_check_cilk_loop): Same.
10051 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
10052 Do not fail on error_mark_node.
10053 Abstract increment canonicalization to here...
10054 (c_omp_for_incr_canonicalize_ptr): New.
10055 c-pragma.c (init_pragma): Register "simd" pragma.
10056 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
10057 (enum pragma_cilk_clause): New.
10058
9cc65f15
RS
100592013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
10060
10061 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
10062 wchar_type and host_integerp checks.
10063
18f429e2
AM
100642013-11-14 Andrew MacLeod <amacleod@redhat.com>
10065
10066 * c-common.c: Likewise.
10067 * c-gimplify.c: Likewise.
10068 * cilk.c: Likewise.
10069
d8a2d370
DN
100702013-11-14 Diego Novillo <dnovillo@google.com>
10071
10072 * c-common.c: Include fold-const.h.
10073 Include stor-layout.h.
10074 Include calls.h.
10075 Include stringpool.h.
10076 Include attribs.h.
10077 Include varasm.h.
10078 Include trans-mem.h.
10079 * c-cppbuiltin.c: Include stor-layout.h.
10080 Include stringpool.h.
10081 * c-format.c: Include stringpool.h.
10082 * c-lex.c: Include stringpool.h.
10083 Include stor-layout.h.
10084 * c-pragma.c: Include stringpool.h.
10085 Include attribs.h.
10086 Include varasm.h.
10087 Include gcc-symtab.h.
10088 * c-pretty-print.c: Include stor-layout.h.
10089 Include attribs.h.
10090 * cilk.c: Include stringpool.h.
10091 Include calls.h.
10092
38b7bc7f
JM
100932013-11-13 Joseph Myers <joseph@codesourcery.com>
10094
10095 * c-common.h (enum rid): Add RID_AUTO_TYPE.
10096 * c-common.c (c_common_reswords): Add __auto_type.
10097 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
10098
45b0be94
AM
100992013-11-12 Andrew MacLeod <amacleod@redhat.com>
10100
18f429e2
AM
10101 * c-common.c: Include gimplify.h.
10102 * c-gimplify.c: Likewise.
10103 * cilk.c: Likewise.
10104 * c-omp.c: Include gimple-expr.h instead of gimple.h.
10105 * c-ubsan.c: Don't include gimple.h.
45b0be94 10106
582d9b50
JM
101072013-11-12 Joseph Myers <joseph@codesourcery.com>
10108
10109 * c-common.c (c_common_reswords): Add _Thread_local.
10110
6b28e197
JM
101112013-11-09 Joseph Myers <joseph@codesourcery.com>
10112
10113 * c-common.c (atomic_size_supported_p): New function.
10114 (resolve_overloaded_atomic_exchange)
10115 (resolve_overloaded_atomic_compare_exchange)
10116 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
10117 Use it instead of comparing size with a local list of sizes.
10118
267bac10
JM
101192013-11-07 Andrew MacLeod <amacleod@redhat.com>
10120 Joseph Myers <joseph@codesourcery.com>
10121
10122 * c-common.h (enum rid): Add RID_ATOMIC.
10123 * c-common.c (c_common_reswords): Add _Atomic.
10124 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
10125 (keyword_is_type_qualifier): Accept RID_ATOMIC.
10126 * c-format.c (check_format_types): Check for extra _Atomic
10127 qualifiers in format argument.
10128 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
10129 (pp_c_type_qualifier_list): Mention _Atomic in comment.
10130
5157b91e
TB
101312013-11-06 Tobias Burnus <burnus@net-b.de>
10132
10133 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
10134
6dbe0958
JM
101352013-11-06 Joseph Myers <joseph@codesourcery.com>
10136
10137 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
10138 standards modes.
10139 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
10140 to mean lack of IEEE 754 support.
10141
e8ff5196
TB
101422013-11-05 Tobias Burnus <burnus@net-b.de>
10143
10144 * c.opt (-Wdate-time): New option
10145 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
10146
254a0760
JM
101472013-11-05 Joseph Myers <joseph@codesourcery.com>
10148
10149 * c-cppbuiltin.c (cpp_iec_559_value): Test
10150 flag_excess_precision_cmdline not flag_excess_precision.
10151
6d7f7e0a
TB
101522013-11-05 Tobias Burnus <burnus@net-b.de>
10153
10154 * c.opt (fopenmp-simd): New option.
10155 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
10156 (omp_pragmas): ... this new struct.
10157 (c_pp_lookup_pragma): Also walk omp_pragmas.
10158 (init_pragma): Init pragmas for -fopenmp-simd.
10159
55a7f02f
MP
101602013-11-04 Marek Polacek <polacek@redhat.com>
10161
10162 PR c++/58979
10163 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
10164
9193fb05
JM
101652013-11-04 Joseph Myers <joseph@codesourcery.com>
10166
10167 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
10168 New functions.
10169 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
10170
94159ecf
EB
101712013-11-04 Eric Botcazou <ebotcazou@adacore.com>
10172
10173 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
10174 (dump_ada_specs): Adjust prototype of second callback.
10175 * c-ada-spec.c (cpp_check): New global variable.
10176 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
10177 (print_generic_ada_decl): Likewise.
10178 (has_static_fields): Change return type to bool and add guard.
10179 (has_nontrivial_methods): New predicate.
10180 (is_tagged_type): Change return type to bool.
10181 (separate_class_package): Call has_nontrivial_methods.
10182 (pp_ada_tree_identifier): Minor tweaks.
10183 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
10184 (dump_ada_array_domains): Likewise.
10185 (dump_ada_array_type): Likewise.
10186 (dump_template_types): Remove cpp_check parameter and do not pass it to
10187 dump_generic_ada_node.
10188 (dump_ada_template): Likewise.
10189 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
10190 recursively.
10191 (print_ada_methods): Change return type to integer. Remove cpp_check
10192 parameter and do not pass it down.
10193 (dump_nested_types): Remove cpp_check parameter and do not pass it to
10194 dump_generic_ada_node.
10195 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
10196 accessing methods.
10197 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
10198 down. Use has_nontrivial_methods to recognize C++ classes. Use return
10199 value of print_ada_methods.
10200 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
10201 Set cpp_check to it before invoking dump_ada_nodes.
10202 (dump_ada_specs): Likewise.
10203
b906f4ca
MP
102042013-11-03 Marek Polacek <polacek@redhat.com>
10205
10206 * c-ubsan.c: Don't include hash-table.h.
10207 (ubsan_instrument_vla): New function.
10208 * c-ubsan.h: Declare it.
10209
5e20cdc9
DM
102102013-10-31 David Malcolm <dmalcolm@redhat.com>
10211
10212 Automated part of renaming of symtab_node_base to symtab_node.
10213
10214 Patch autogenerated by rename_symtab.py from
10215 https://github.com/davidmalcolm/gcc-refactoring-scripts
10216 revision 58bb219cc090b2f4516a9297d868c245495ee622
10217
10218 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
10219 symtab_node_base to symtab_node.
10220
7057e645
ESR
102212013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
10222
8e745a17 10223 Implement C++14 digit separators.
7057e645
ESR
10224 * c-lex.c (interpret_float): Remove digit separators from scratch string
10225 before building real literal.
10226
193ea7bc
JJ
102272013-10-30 Jakub Jelinek <jakub@redhat.com>
10228
10229 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
10230
939b37da
BI
102312013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
10232
10233 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
10234 fields.
10235 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
10236 enabled.
10237 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
10238 (insert_cilk_frame): New prototype.
10239 (cilk_init_builtins): Likewise.
10240 (gimplify_cilk_spawn): Likewise.
10241 (c_cilk_install_body_w_frame_cleanup): Likewise.
10242 (cilk_detect_spawn_and_unwrap): Likewise.
10243 (cilk_set_spawn_marker): Likewise.
10244 (build_cilk_sync): Likewise.
10245 (build_cilk_spawn): Likewise.
10246 * cilk.c: New file.
10247
67348ccc
DM
102482013-10-29 David Malcolm <dmalcolm@redhat.com>
10249
10250 Patch autogenerated by refactor_symtab.py from
10251 https://github.com/davidmalcolm/gcc-refactoring-scripts
10252 revision 58bb219cc090b2f4516a9297d868c245495ee622
10253
10254 * c-gimplify.c (c_genericize): Update for conversion of symtab types
10255 to a true class hierarchy.
10256 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
10257
d570872d
RS
102582013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
10259
10260 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
10261
98906124
JL
102622013-10-26 Jeff Law <law@redhat.com>
10263
adfac8df
JJ
10264 * c-common.c (c_define_builtins): Remove mudflap support.
10265 * c.opt: Ignore and warn for mudflap options.
98906124 10266
d73749df 102672013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
10268
10269 PR other/33426
10270 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
10271 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
10272
3f04b1bb
JM
102732013-10-23 Jason Merrill <jason@redhat.com>
10274
10275 * c-format.c (gcc_cxxdiag_char_table): Add %X.
10276
acf0174b
JJ
102772013-10-11 Jakub Jelinek <jakub@redhat.com>
10278
acd15a28
JJ
10279 * c-common.h (omp_clause_mask::operator !=): New method.
10280 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
10281 instead of if (mask & something) tests everywhere.
10282
acf0174b
JJ
10283 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
10284 201307 instead of 201107.
10285 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
10286 (c_common_attribute_table): Add "omp declare target" and
10287 "omp declare simd" attributes.
10288 (handle_omp_declare_target_attribute,
10289 handle_omp_declare_simd_attribute): New functions.
10290 * c-omp.c: Include c-pragma.h.
10291 (c_finish_omp_taskgroup): New function.
10292 (c_finish_omp_atomic): Add swapped argument, if true,
10293 build the operation first with rhs, lhs arguments and use NOP_EXPR
10294 build_modify_expr.
10295 (c_finish_omp_for): Add code argument, pass it down to make_code.
10296 (c_omp_split_clauses): New function.
10297 (c_split_parallel_clauses): Removed.
10298 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
10299 c_omp_declare_simd_clauses_to_decls): New functions.
10300 * c-common.h (omp_clause_mask): New type.
10301 (OMP_CLAUSE_MASK_1): Define.
10302 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
10303 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
10304 omp_clause_mask::operator |, omp_clause_mask::operator &,
10305 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
10306 omp_clause_mask::operator ==): New methods.
10307 (enum c_omp_clause_split): New.
10308 (c_finish_omp_taskgroup): New prototype.
10309 (c_finish_omp_atomic): Add swapped argument.
10310 (c_finish_omp_for): Add code argument.
10311 (c_omp_split_clauses): New prototype.
10312 (c_split_parallel_clauses): Removed.
10313 (c_omp_declare_simd_clauses_to_numbers,
10314 c_omp_declare_simd_clauses_to_decls): New prototypes.
10315 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
10316 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
10317 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
10318 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
10319 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
10320 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
10321 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
10322 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
10323 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
10324 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
10325 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
10326 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
10327 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
10328 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
10329 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
10330 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
10331 PRAGMA_OMP_CLAUSE_UNIFORM.
10332
826cacfe
MG
103332013-10-09 Marc Glisse <marc.glisse@inria.fr>
10334
10335 PR tree-optimization/20318
10336 * c-common.c (handle_returns_nonnull_attribute): New function.
10337 (c_common_attribute_table): Add returns_nonnull.
10338
2284b034
MG
103392013-10-03 Marc Glisse <marc.glisse@inria.fr>
10340
10341 PR c++/19476
10342 * c.opt (fcheck-new): Move to common.opt.
10343
b56e9788
MP
103442013-09-25 Marek Polacek <polacek@redhat.com>
10345 Jakub Jelinek <jakub@redhat.com>
10346
10347 PR sanitizer/58413
10348 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
10349 an expression if we can prove it is correct.
10350 (ubsan_instrument_division): Likewise. Remove unnecessary
10351 check.
10352
ce6923c5
MP
103532013-09-18 Marek Polacek <polacek@redhat.com>
10354
10355 PR sanitizer/58411
10356 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
10357 Declare it.
10358 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
10359
fb5610fb
IS
103602013-09-14 Iain Sandoe <iain@codesourcery.com>
10361
10362 PR target/48094
10363 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
10364 fobjc-gc, freplace-objc-classes): Accept for LTO.
10365
88b0e79e
JC
103662013-09-13 Jacek Caban <jacek@codeweavers.com>
10367
10368 * c-target.def: New hook
10369
c9b0866a
PC
103702013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
10371
10372 PR c++/43452
10373 * c.opt (Wdelete-incomplete): Add.
10374
0af94e6f
JR
103752013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
10376
10377 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
10378 (vector_types_compatible_elements_p): New function.
10379 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
10380 declaration.
10381 (vector_types_compatible_elements_p): Declare.
10382
7c26172c
GDR
103832013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
10384
10385 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
10386 a virtual member function.
10387 (pp_simple_type_specifier): Remove.
10388 (pp_c_type_specifier): Likewise.
10389 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
10390 Rename from pp_c_type_specifier. Adjust.
10391 (c_pretty_printer::c_pretty_printer): Do not assign to
10392 simple_type_specifier.
10393
20059c8b
GDR
103942013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
10395
10396 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
10397 member function.
10398 (c_pretty_printer::storage_class_specifier): Likewise.
10399 (c_pretty_printer::initializer): Likewise.
10400 (pp_declaration): Remove.
10401 (pp_declaration_specifiers): Likewise.
10402 (pp_abstract_declarator): Likewise.
10403 (pp_declarator): Likewise.
10404 (pp_type_id): Likewise.
10405 (pp_statement): Likewise.
10406 (pp_constant): Likewise.
10407 (pp_id_expression): Likewise.
10408 (pp_primary_expression): Likewise.
10409 (pp_unary_expression): Likewise.
10410 (pp_multiplicative_expression): Likewise.
10411 (pp_conditional_expression): Likewise.
10412 (pp_assignment_expression): Likewise.
10413 (pp_expression): Likewise.
10414 (pp_c_type_id): Likewise.
10415 (pp_c_storage_class_specifier): Likewise.
10416 * c-pretty-print.c (pp_c_type_cast): Tidy.
10417 (pp_c_pointer): Likewise.
10418 (pp_c_type_specifier): Likewise.
10419 (pp_c_parameter_type_list): Likewise.
10420 (pp_c_function_definition): Likewise.
10421 (pp_c_init_declarator): Likewise.
10422 (pp_c_initializer_list): Likewise.
10423 (pp_c_constructor_elts): Likewise.
10424 (c_pretty_printer::direct_abstract_declarator): Likewise.
10425 (c_pretty_printer::declaration_specifiers): Likewise.
10426 (c_pretty_printer::primary_expression): Likewise.
10427 (c_pretty_printer::postfix_expression): Likewise.
10428 (c_pretty_printer::type_id): Rename from pp_c_type_id.
10429 (c_pretty_printer::storage_class_specifier): Rename from
10430 pp_c_storage_class_specifier.
10431 (c_pretty_printer::initializer): Rename from pp_c_initializer.
10432 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
10433 storage_class_specifier, initializer, offset_list, flags.
10434
de5a5fa1
MP
104352013-08-30 Marek Polacek <polacek@redhat.com>
10436
10437 * c-ubsan.c: New file.
10438 * c-ubsan.h: New file.
10439
8f0e4d72
GDR
104402013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
10441
10442 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
10443 member function.
10444 (c_pretty_printer::declaration_specifiers): Likewise.
10445 (c_pretty_printer::declarator): Likewise.
10446 (c_pretty_printer::abstract_declarator): Likewise.
10447 (c_pretty_printer::direct_abstract_declarator): Likewise.
10448 (c_pretty_printer::direct_declarator): Likewise.
10449 (c_pretty_printer::function_specifier): Likewise.
10450 (pp_declaration): Adjust.
10451 (pp_declaration_specifiers): Likewise.
10452 (pp_abstract_declarator): Likewise.
10453 (pp_direct_declarator): Likewise.
10454 (pp_function_specifier): Likewise.
10455 (pp_direct_abstract_declarator): Remove as unused.
10456 (pp_c_declaration): Remove.
10457 (pp_c_declaration_specifiers): Likewise.
10458 (pp_c_declarator): Likewise.
10459 (pp_c_direct_declarator): Likewise.
10460 (pp_c_function_specifier): Likewise.
10461 (pp_c_direct_abstract_declarator): Likewise.
10462 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
10463 from pp_c_abstract_declarator. Adjust.
ab20d992 10464 (c_pretty_printer::direct_abstract_declarator): Rename from
8f0e4d72
GDR
10465 pp_c_direct_abstract_declarator. Adjust.
10466 (c_pretty_printer::function_specifier): Rename from
10467 pp_c_function_specifier. Adjust.
10468 (c_pretty_printer::declaration_specifiers): Rename from
10469 pp_c_declaration_specifiers. Adjust.
10470 (c_pretty_printer::direct_declarator): Rename from
10471 pp_c_direct_declarator. Adjust.
10472 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
10473 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
10474 (c_pretty_printer::c_pretty_printer): Do not assign to
10475 declaration, declaration_specifiers, declarator,
10476 direct_declarator, direct_abstract_declarator, function_specifier.
10477
00d34d3a
GDR
104782013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
10479
10480 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
10481 virtual member function.
10482 (c_pretty_printer::multiplicative_expression): Likewise.
10483 (c_pretty_printer::conditional_expression): Likewise.
10484 (c_pretty_printer::assignment_expression): Likewise.
10485 (c_pretty_printer::expression): Likewise.
10486 (pp_unary_expression): Adjust.
10487 (pp_multiplicative_expression): Likewise.
10488 (pp_assignment_expression): Likewise.
10489 (pp_conditional_expression): Likewise.
10490 (pp_expression): Likewise.
10491 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
10492 from pp_c_unary_expression. Adjust.
10493 (c_pretty_printer::multiplicative_expression): Rename from
10494 pp_c_multiplicative_expression. Adjust.
10495 (c_pretty_printer::conditional_expression): Rename from
10496 pp_c_conditional_expression. Adjust.
10497 (c_pretty_printer::assignment_expression): Rename from
10498 pp_c_assignment_expression. Adjust.
10499 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
10500 (c_pretty_printer::c_pretty_printer): Do not assign to
10501 unary_expression, multiplicative_expression,
10502 conditional_expression, expression.
10503
fb22178f
GDR
105042013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
10505
10506 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
10507 virtual member function.
10508 (pp_postfix_expression): Adjust.
10509 (pp_c_postfix_expression): Remove.
10510 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
10511 from pp_c_postfix_expression. Adjust.
10512 (c_pretty_printer::c_pretty_printer): Do not assign to
10513 postfix_expression.
10514
7ecc2600
GDR
105152013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
10516
10517 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
10518 virtua member function.
10519 (pp_primary_expression): Adjust.
10520 (pp_c_primary_expression): Remove.
10521 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
10522 from pp_c_primary_expression. Adjust.
10523 (pp_c_initializer_list): Use pp_primary_expression.
10524 (c_pretty_printer::c_pretty_printer): Do not assign to
10525 primary_expression.
10526
0691175f
GDR
105272013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
10528
10529 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
10530 * c-pretty-print.c (M_): Remove.
10531 (c_pretty_printer::translate_string): Define.
10532 (pp_c_type_specifier): Use it.
10533 (pp_c_primary_expression): Likewise.
10534 (pp_c_expression): Likewise.
10535
66dfe4c4
GDR
105362013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
10537
10538 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
10539 virtual function.
10540 (pp_c_id_expression): Remove.
10541 (pp_id_expression): Adjust.
10542 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
10543 pp_c_id_expression. Adjust.
10544 (pp_c_postfix_expression): Use pp_id_expression.
10545 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
10546
ca43e9d5
GDR
105472013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
10548
10549 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
10550 member function.
10551 (pp_constant): Adjust.
10552 (pp_c_constant): Remove.
10553 * c-pretty-print.c (c_pretty_printer::constant): Rename from
10554 pp_c_constant. Adjust.
10555 (pp_c_constant)
10556 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
10557 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
10558
da6ca2b5
GDR
105592013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
10560
10561 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
10562 (c_pretty_printer::c_pretty_printer): Declare.
10563 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
10564 c_pretty_printer_init. Adjust.
10565 (print_c_tree): Do not call c_pretty_printer_init.
10566 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
10567
65a372f4
AC
105682013-08-09 Arnaud Charlet <charlet@adacore.com>
10569
10570 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
10571
fd9b0f32
PC
105722013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
10573
10574 PR c++/58080
10575 * c-common.c (pointer_int_sum): Add bool parameter.
10576 * c-common.h (pointer_int_sum): Adjust declaration.
10577
e0aec1e9
GDR
105782013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
10579
10580 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
10581 c_pretty_printer variable.
10582
b066401f
GDR
105832013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
10584
10585 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
10586 (pp_base): Remove.
10587 (pp_c_base): Likewise. Adjust users.
10588 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
10589 (pp_c_whitespace): Do not call pp_base.
10590 (pp_c_left_paren): Likewise.
10591 (pp_c_right_paren): Likewise.
10592 (pp_c_left_brace): Likewise.
10593 (pp_c_right_brace): Likewise.
10594 (pp_c_left_bracket): Likewise.
10595 (pp_c_right_bracket): Likewise.
10596 (pp_c_dot): Likewise.
10597 (pp_c_ampersand): Likewise.
10598 (pp_c_star): Likewise.
10599 (pp_c_arrow): Likewise.
10600 (pp_c_semicolon): Likewise.
10601 (pp_c_complement): Likewise.
10602 (pp_c_exclamation): Likewise.
10603 (pp_c_direct_declarator): Likewise.
10604 (pp_c_ws_string): Likewise.
10605 (pp_c_identifier): Likewise.
10606 (pp_c_statement): Likewise.
10607 (print_c_tree): Likewise.
10608
65e5a578
ESR
106092013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
10610
10611 PR c++/58072
10612 * c-common.c (c_parse_error): Catch user-defined literal tokens and
10613 provide useful error strings.
10614
137a1a27
GDR
106152013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
10616
10617 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
10618 printer functions instead of pp_string or operators and punctuators.
10619 (dump_generic_ada_node): Likewise.
10620 * c-pretty-print.c (pp_c_type_specifier): Likewise.
10621 (pp_c_relational_expression): Likewise.
10622 (pp_c_logical_or_expression): Likewise.
10623
07838b13
GDR
106242013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
10625
10626 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
10627 functions instead of pp_character.
10628 (pp_ada_tree_identifier): Likewise.
10629 (dump_ada_double_name): Likewise.
10630 (dump_ada_function_declaration): Likewise.
10631 (dump_ada_array_domains): Likewise.
10632 (dump_template_types): Likewise.
10633 (dump_generic_ada_node): Likewise.
10634 (print_ada_declaration): Likewise.
10635 (print_ada_struct_decl): Likewise.
10636 * c-pretty-print.c (pp_c_integer_constant): Likewise.
10637
433cc7b0
TT
106382013-07-23 Tom Tromey <tromey@redhat.com>
10639
10640 * c-common.h (enum rid) <RID_GENERIC>: New constant.
10641 * c-common.c (c_common_reswords): Add _Generic.
10642
688010ba
OB
106432013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
10644
10645 * c-common.c: Fix typos.
10646 * c-common.h: Likewise.
10647
2a99e5e6
LL
106482013-07-13 Lubos Lunak <l.lunak@suse.cz>
10649
10650 PR c++/55203
10651 * c-common.c (c_common_attribute_table): Add warn_unused.
10652 (handle_warn_unused_attribute): New.
10653
c26302d5
JJ
106542013-07-10 Jakub Jelinek <jakub@redhat.com>
10655
10656 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
10657 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
10658
dfeadaa0
PC
106592013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
10660
10661 PR c++/57869
10662 * c.opt: Add Wconditionally-supported.
10663
6a2fa4b2
GS
106642013-07-08 Graham Stott <graham.stott@btinternet.com>
10665
adfac8df 10666 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
10667 unused variables l_length and l_node.
10668
ecdbd01a 106692013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
10670
10671 PR c/57821
10672 * c-common.c (complete_array_type): Delay folding first index
10673 like other indices. When folding, check for index overflow.
10674
bedc293e
MG
106752013-06-27 Marc Glisse <marc.glisse@inria.fr>
10676
10677 PR c++/57509
10678 * c-common.h (c_build_vec_perm_expr): New complain argument.
10679 * c-common.c (c_build_vec_perm_expr): Likewise.
10680 Use save_expr also in C++.
10681
604b2bfc
GDR
106822013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
10683
10684 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
10685 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
10686 * c-opts.c (c_common_post_options): Likewise.
10687
dfeadaa0 106882013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
10689
10690 * array-notation-common.c (length_mismatch_in_expr): Changed the
10691 parameter type's from a dynamic array to a vec_tree. Also removed
10692 the size parameters.
10693 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
10694 the change above.
10695
2ce86d2e
BI
106962013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
10697
10698 * c-common.h (struct cilkplus_an_parts): New structure.
10699 (struct cilkplus_an_loop_parts): Likewise.
10700 (cilkplus_extract_an_triplets): New prototype.
10701 (fix_sec_implicit_args): Likewise.
10702 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
10703 (fix_sec_implicit_args): Likewise.
604b2bfc 10704
07a6825b
BI
107052013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
10706
10707 * array-notation-common.c (find_inv_trees): Removed an unwanted
10708 typecasting.
10709 * c-common.h (struct inv_list::additional_tcodes): Changed type from
10710 enum rid to enum tree_code.
10711
08346abd
JH
107122013-06-11 Jan Hubicka <jh@suse.cz>
10713
10714 * c-common.c (handle_alias_ifunc_attribute): Do not set
10715 DECL_EXTERNAL for weakref variables.
10716 * c-pragma.c (handle_pragma_weak): Make sure aliases
10717 are not declared as external.
10718
d60f1706
BI
107192013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
10720
10721 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
10722 function from c/c-array-notation.c.
10723 (is_cilkplus_reduce_builtin): Likewise.
10724 (find_rank): Likewise.
10725 (extract_array_notation_exprs): Likewise.
10726 (replace_array_notations): Likewise.
10727 (find_inv_trees): Likewise.
10728 (replace_inv_trees): Likewise.
10729 (contains_array_notation_expr): Likewise.
10730 (find_correct_array_notation_type): Likewise.
10731 * c-common.h (struct inv_list): Moved this struct from the file
10732 c/c-array-notation.c and added a new field called additional tcodes.
10733 (length_mismatch_in_expr_p): New prototype.
10734 (is_cilkplus_reduce_builtin): Likewise.
10735 (find_rank): Likewise.
10736 (extract_array_notation_exprs): Likewise.
10737 (replace_array_notation): Likewise.
10738 (find_inv_trees): Likewise.
10739 (replace_inv_trees): Likewise.
10740 (find_correct_array_notation_type): Likewise.
dfeadaa0 10741
36536d79
BI
107422013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
10743
10744 * c-common.c (c_define_builtins): When cilkplus is enabled, the
10745 function array_notation_init_builtins is called.
10746 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
10747 * c-common.def (ARRAY_NOTATION_REF): New tree.
10748 * c-common.h (build_array_notation_expr): New function declaration.
10749 (build_array_notation_ref): Likewise.
10750 (extract_sec_implicit_index_arg): New extern declaration.
10751 (is_sec_implicit_index_fn): Likewise.
10752 (ARRAY_NOTATION_CHECK): New define.
10753 (ARRAY_NOTATION_ARRAY): Likewise.
10754 (ARRAY_NOTATION_START): Likewise.
10755 (ARRAY_NOTATION_LENGTH): Likewise.
10756 (ARRAY_NOTATION_STRIDE): Likewise.
10757 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
10758 ARRAY_NOTATION_REF.
10759 (pp_c_expression): Likewise.
10760 * c.opt (flag_enable_cilkplus): New flag.
10761 * array-notation-common.c: New file.
10762
f7716d57
JJ
107632013-05-14 Jakub Jelinek <jakub@redhat.com>
10764
10765 PR c++/57274
10766 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
10767
a5e0cd1d
MG
107682013-05-10 Marc Glisse <marc.glisse@inria.fr>
10769
10770 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
10771 vectors.
10772
f6bc1c4a
HS
107732013-05-07 Han Shen <shenhan@google.com>
10774
10775 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
10776
3f12f6e9
SKS
107772013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
10778
10779 * c-common.c (check_user_alignment): Emit error for negative values.
10780
61949153
PC
107812013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
10782
10783 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
10784
e93e18e9
PC
107852013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
10786
10787 * c-cppbuiltin.c (c_cpp_builtins): Do not define
10788 __GXX_EXPERIMENTAL_CXX1Y__.
10789
44d90fe1 107902013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
8e745a17 10791 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
44d90fe1
PC
10792
10793 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
10794 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
10795 to simply use OPT_Wpointer_arith.
10796 (c_sizeof_or_alignof_type): Likewise.
10797
13f39b2e
PC
107982013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
10799
10800 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
10801
4b84d650
JJ
108022013-04-12 Jakub Jelinek <jakub@redhat.com>
10803
10804 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
10805 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
10806 specifiers.
10807
fb037b5d
SB
108082013-04-07 Steven Bosscher <steven@gcc.gnu.org>
10809
10810 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
10811
4e856798
PC
108122013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
10813
10814 * c-common.c (pointer_int_sum): Remove dead code.
10815
4b1baac8
RS
108162013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
10817
10818 PR middle-end/56524
10819 * c-common.c (handle_optimize_attribute): Don't call
10820 save_optabs_if_changed.
10821
0b50e654
JJ
108222013-03-05 Jakub Jelinek <jakub@redhat.com>
10823
10824 PR middle-end/56461
10825 * c-pch.c (pch_init): Free target_validity at the end.
10826
48c41403
JJ
108272013-03-04 Jakub Jelinek <jakub@redhat.com>
10828
10829 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
10830
e664c61c
KS
108312013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
10832 Jakub Jelinek <jakub@redhat.com>
10833
10834 PR sanitizer/56454
10835 * c-common.c (handle_no_sanitize_address_attribute): New function.
10836 (c_common_attribute_table): Add no_sanitize_address attribute.
10837 (handle_no_address_safety_analysis_attribute): Add
10838 no_sanitize_address attribute, not no_address_safety_analysis
10839 attribute.
10840
a475fd3d 108412013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
10842
10843 PR target/52555
10844 * c-common.c (handle_optimize_attribute): Call
10845 save_optabs_if_changed.
10846
f6007d99
JJ
108472013-02-18 Jakub Jelinek <jakub@redhat.com>
10848 Steven Bosscher <steven@gcc.gnu.org>
10849
10850 PR pch/54117
10851 * c-opts.c (c_common_post_options): If debug info is enabled
10852 and non-dwarf*, refuse to load PCH files and when writing PCH
10853 file warn.
10854
cf35e2b1
JJ
108552013-02-05 Jakub Jelinek <jakub@redhat.com>
10856
10857 PR middle-end/56167
10858 * c-common.c (handle_error_attribute): Fix condition.
10859
32887460
JJ
108602013-01-30 Jakub Jelinek <jakub@redhat.com>
10861
10862 PR c++/55742
10863 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
10864
5af057d8
JM
108652013-01-18 Jason Merrill <jason@redhat.com>
10866
10867 PR target/54908
10868 * c.opt (-fextern-tls-init): New.
10869 * c-opts.c (c_common_post_options): Handle it.
10870
cc83c823
JJ
108712013-01-09 Jakub Jelinek <jakub@redhat.com>
10872
10873 PR c/48418
10874 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
10875 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
10876 and is either negative or bigger or equal to type precision
10877 of the first operand.
10878
a859517f
MP
108792012-12-03 Marek Polacek <polacek@redhat.com>
10880
10881 PR c/55570
10882 * c-common.c (check_user_alignment): Swap order of tests,
10883 check TREE_CODE first.
10884
2d7aa578
ESR
108852012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
10886
10887 PR c++/52654
10888 * c-common.h (overflow_type): New enum.
10889 (build_userdef_literal): Add overflow_type argument.
10890 (tree_userdef_literal): Add overflow_type.
10891 (USERDEF_LITERAL_OVERFLOW): New access macro.
10892 * c-common.c (build_userdef_literal): Add overflow_type
10893 argument.
10894 * c-lex.c (c_lex_with_flags): Add overflow_type to
10895 build_userdef_literal calls.
10896 (interpret_integer, interpret_float): Add overflow_type argument.
10897
cc3c4f62
RB
108982012-11-28 Richard Biener <rguenther@suse.de>
10899
10900 PR c/35634
10901 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
10902 here and use a type with proper overflow behavior for types that would
10903 need to be promoted for the arithmetic.
10904
77bc5132
JJ
109052012-11-23 Jakub Jelinek <jakub@redhat.com>
10906
10907 PR sanitizer/55435
10908 * c-common.c (handle_no_address_safety_analysis_attribute): New
10909 function.
10910 (c_common_attribute_table): Add no_address_safety_analysis.
10911
5dc99c46
SB
109122012-11-16 Simon Baldwin <simonb@google.com>
10913
10914 * c.opt: Add f[no-]canonical-system-headers.
10915 * c-opts.c (c_common_handle_option): Handle
10916 OPT_fcanonical_system_headers.
10917
a4a0016d
ESR
109182012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
10919
10920 PR c++/54413
10921 * c-opts.c (c_common_handle_option): Set new flags.
10922 * c.opt: Describe new flags.
10923
7dbb85a7
JM
109242012-11-09 Jason Merrill <jason@redhat.com>
10925
10926 * c.opt (Wabi-tag): New.
10927
ad7bac31
AK
109282012-11-09 Andi Kleen <ak@linux.intel.com>
10929
10930 PR 55139
10931 * c-common.c (get_atomic_generic_size): Mask with
8e745a17 10932 MEMMODEL_MASK
ad7bac31 10933
7332899a
MLI
109342012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
10935
10936 PR c/53063
10937 * c.opt (Wformat): Make it Alias Wformat=1.
10938 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
10939 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
10940 LangEnabledBy.
10941 (Wformat=): RejectNegative. Use LangEnabledBy.
10942 (Wnonnull): Use LangEnabledBy.
10943 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
10944 * c-format.c (set_Wformat): Delete.
10945 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
ab20d992
JJ
10946 (maybe_read_dollar_number): Likewise.
10947 (avoid_dollar_number): Likewise.
10948 (finish_dollar_format_checking): Likewise.
10949 (check_format_info): Likewise.
10950 (check_format_info_main): Likewise.
10951 (check_format_types): Likewise.
10952 (format_type_warning): Likewise.
10953 * c-common.c (int): Likewise.
10954 (check_function_sentinel): Likewise.
8e745a17 10955 * c-common.h (warn_format,set_Wformat): Do not declare here.
7332899a 10956
34a180a6
MLI
109572012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
10958
10959 PR c/53063
10960 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
10961 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
10962 Use LangEnabledBy.
10963 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
10964 common.opt.
10965 (Wvariadic-macros): Init(1).
10966 * c-opts.c (c_common_handle_option): Do not handle them
10967 explicitly.
10968 (c_common_post_options): Likewise.
10969 (sanitize_cpp_opts): warn_unused_macros is now
10970 cpp_warn_unused_macros.
10971 (push_command_line_include): Likewise.
10972 * c-common.c (warn_unknown_pragmas): Do not define.
10973 * c-common.h (warn_unknown_pragmas): Do not declare.
10974
3f46d6a5
MLI
109752012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
10976
10977 PR c/51294
10978 * c-common.c (conversion_warning): Handle conditional expressions.
10979
880661a4
JW
109802012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
10981
10982 PR c++/54930
10983 * c.opt (Wreturn_local_addr): Define new option.
10984
4514a96b
JM
109852012-10-25 Jason Merrill <jason@redhat.com>
10986
f14edc1a
JM
10987 * c.opt (Wvirtual-move-assign): New.
10988
4514a96b
JM
10989 * c.opt (Winherited-variadic-ctor): New.
10990
93100c6b
MG
109912012-10-25 Marc Glisse <marc.glisse@inria.fr>
10992
10993 PR c++/54427
10994 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
10995
1efcb8c6
JM
109962012-10-23 Joseph Myers <joseph@codesourcery.com>
10997
10998 * c-common.h (pch_cpp_save_state): Declare.
10999 * c-target.def (c_preinclude): New hook.
11000 * c-opts.c (done_preinclude): New.
11001 (push_command_line_include): Handle default preincluded header.
11002 (cb_file_change): Call pch_cpp_save_state when calling
11003 push_command_line_include.
11004 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
11005 (pch_cpp_save_state): New.
11006 (pch_init): Call pch_cpp_save_state conditionally, instead of
11007 calling cpp_save_state.
11008
4a0ae68e
MLI
110092012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
11010
11011 PR c/53063
11012 PR c/40989
11013 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
11014 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
11015 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
11016 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
11017 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
11018 * c-opts.c (c_common_handle_option): Remove explicit handling from
11019 here.
11020 (c_common_post_options): Likewise.
11021
67e4210b
EB
110222012-10-18 Eric Botcazou <ebotcazou@adacore.com>
11023
11024 * c-ada-spec.c (LOCATION_COL): Delete.
11025 (compare_location): New function.
11026 (compare_node): Use it.
11027 (compare_comment): Likewise.
11028
65d4f2cd
MLI
110292012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
11030
11031 PR c/53063
11032 PR c/40989
11033 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
11034 * c-opts.c (c_common_handle_option): Do not set them here. Add
11035 comment.
11036 (c_common_post_options): Likewise.
11037
909881cb
EB
110382012-10-16 Eric Botcazou <ebotcazou@adacore.com>
11039
11040 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
11041 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
11042 Remove POINTER_TYPE handling, add large unsigned handling and use
11043 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
11044
3a785c97
JJ
110452012-10-12 Jakub Jelinek <jakub@redhat.com>
11046
11047 PR c/54381
11048 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
11049 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
11050 locs and array of 3 trees instead of just single loc and single
11051 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
11052 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
11053 For *cmp* builtins that take two sources strings report warnings
11054 about first and second source, not about destination and source.
11055
5e54f81d
MG
110562012-10-12 Marc Glisse <marc.glisse@inria.fr>
11057
11058 PR c++/53055
11059 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
11060
f5b02f1e
EB
110612012-10-11 Eric Botcazou <ebotcazou@adacore.com>
11062
11063 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
11064 declaring something coming from another file.
11065
b46dbc6c
AC
110662012-10-10 Arnaud Charlet <charlet@adacore.com>
11067
f5b02f1e 11068 PR ada/54845
b46dbc6c
AC
11069 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
11070
5d9de0d0
PC
110712012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
11072
11073 PR c++/54194
11074 * c-common.c (warn_about_parentheses): Add location_t parameter;
11075 use EXPR_LOC_OR_LOC.
11076 * c-common.h: Update declaration.
11077
a212e43f
MG
110782012-10-09 Marc Glisse <marc.glisse@inria.fr>
11079
11080 PR c++/54427
11081 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
11082 more operations. Make error messages optional.
11083 * c-common.h (enum stv_conv): Moved from c-typeck.c.
11084 (scalar_to_vector): Declare.
11085
b1db7f91
JM
110862012-10-08 Jason Merrill <jason@redhat.com>
11087
11088 * c-common.c (c_common_reswords): Add thread_local.
11089
e28d52cf
DS
110902012-10-08 Dodji Seketeli <dodji@redhat.com>
11091
11092 PR c++/53528 C++11 attribute support
11093 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
11094 new functions.
11095 * c-common.c (check_cxx_fundamental_alignment_constraints): New
11096 static function.
11097 (handle_aligned_attribute): In choose strictest alignment
11098 among many. Use new check_cxx_fundamental_alignment_constraints.
11099 (handle_transparent_union_attribute): In c++11 attribute syntax,
11100 don't look through typedefs.
11101
3b78de56
AC
111022012-10-04 Arnaud Charlet <charlet@adacore.com>
11103
11104 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
11105 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
11106 out of dumpfile.h.
11107
6040bb5f
DC
111082012-09-25 Dehao Chen <dehao@google.com>
11109
11110 PR middle-end/54645
3b78de56 11111 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
11112 map when read in the pch.
11113
3f8257db 111142012-09-18 Arnaud Charlet <charlet@adacore.com>
0b07a57e
AC
11115
11116 * c-ada-spec.c: Style fixes.
11117
3f8257db 111182012-09-18 Thomas Quinot <quinot@adacore.com>
da5182be
TQ
11119
11120 * c.opt (-fada-spec-parent): Define new command line switch.
11121 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
11122 is specified, generate binding spec as a child of the specified unit.
11123
0ccb505d
PC
111242012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
11125 Manuel López-Ibáñez <manu@gcc.gnu.org>
11126
11127 PR c++/53210
11128 * c.opt ([Winit-self]): Enabled by -Wall in C++.
11129
c583af79
AC
111302012-08-23 Arnaud Charlet <charlet@adacore.com>
11131
11132 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
11133 for pointers, and add missing Convention C pragma.
11134 (print_ada_struct_decl): Add missing aliased keyword.
11135 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
11136
1a4049e7
JJ
111372012-08-17 Jakub Jelinek <jakub@redhat.com>
11138
11139 * c-common.c (sizeof_pointer_memaccess_warning): New function.
11140 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
11141 * c-opts.c (c_common_handle_option): Enable it for -Wall.
11142 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
11143 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
11144
70b5e7dc
RG
111452012-08-10 Richard Guenther <rguenther@suse.de>
11146
11147 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
11148
f8923f7e
SB
111492012-08-07 Steven Bosscher <steven@gcc.gnu.org>
11150
11151 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
11152 instead of separate pp_newline and pp_flush.
11153 (print_c_tree): Likewise.
11154
e45abe1f
RH
111552012-07-26 Richard Henderson <rth@redhat.com>
11156
11157 * c-common.c (handle_hot_attribute): Allow labels.
11158 (handle_cold_attribute): Likewise.
11159
332f1d24
JJ
111602012-07-20 Jakub Jelinek <jakub@redhat.com>
11161
11162 PR c++/28656
11163 * c-common.c (check_function_nonnull): Handle multiple nonnull
11164 attributes properly.
11165
7ee2468b
SB
111662012-07-16 Steven Bosscher <steven@gcc.gnu.org>
11167
11168 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
11169 * c-ada-spec.c: Likewise.
11170 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
11171
ee7b28eb
SB
111722012-07-14 Steven Bosscher <steven@gcc.gnu.org>
11173
11174 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
11175 Remove code conditional on it.
11176
6bdf3519
SB
111772012-07-11 Steven Bosscher <steven@gcc.gnu.org>
11178
11179 * c-gimplify.c: Do not include basic-block.h.
11180 * c-common.c: Do not include linfuncs.h.
11181
532aafad
SB
111822012-07-08 Steven Bosscher <steven@gcc.gnu.org>
11183
11184 * c-common.h: Include tree.h.
11185
8d0d1915
JM
111862012-07-02 Jason Merrill <jason@redhat.com>
11187
11188 PR c++/53524
11189 * c-common.c (get_priority): Call default_conversion.
11190
fbc873ad
UB
111912012-07-01 Uros Bizjak <ubizjak@gmail.com>
11192
11193 * c-pch.c (c_common_write_pch): Remove unused variables.
11194
d4a10d0a
SB
111952012-06-29 Steven Bosscher <steven@gcc.gnu.org>
11196
11197 * cppspec.c: Moved from gcc/ to here.
11198
6f3a2e23
KT
111992012-06-27 Kai Tietz <ktietz@redhat.com>
11200
11201 PR preprocessor/37215
11202 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
11203
8ca92d04
SB
112042012-06-21 Steven Bosscher <steven@gcc.gnu.org>
11205
11206 * c-common.h (c_common_print_pch_checksum): Remove.
11207 * c-pch.c: Do not include output.h.
11208 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
11209 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
11210 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
11211 (struct c_pch_header): Remove.
11212 (get_ident): Update gpch version.
11213 (pch_init): Do not print executable_checksum to asm_out_file.
11214 Do not fail if there is no asm_out_file to read back from. Set
11215 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
11216 (c_common_write_pch): Verify that nothing was written to asm_out_file
11217 since pch_init was called. Do not write a c_pch_header, and do not
11218 copy from asm_out_file to the PCH.
11219 (c_common_read_pch): Do not read a c_pch_header, and do not restore
11220 the content of asm_out_file from the PCH.
11221 (c_common_print_pch_checksum): Remove.
11222 * c-opts.c (c_common_init): Print out executable_checksum directly.
11223
70f42967
SB
112242012-06-19 Steven Bosscher <steven@gcc.gnu.org>
11225
11226 * c-target.def (objc_declare_unresolved_class_reference,
11227 objc_declare_class_definition): Add new hooks.
11228
a8781821
SB
112292012-06-19 Steven Bosscher <steven@gcc.gnu.org>
11230
11231 * c-lex.c: Do not include output.h.
11232 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
11233 Remove uses of ASM_OUTPUT_IDENT.
11234
9e1a8dd1
RR
112352012-06-15 Marc Glisse <marc.glisse@inria.fr>
11236
11237 PR c++/51033
11238 * c-common.h (c_build_vec_perm_expr): Move decl here.
11239 * c-common.c (c_build_vec_perm_expr): Move definition
11240 here.
11241
6f07a821
SB
112422012-06-06 Steven Bosscher <steven@gcc.gnu.org>
11243
11244 * c.opt (fconserve-space): Turn into a no-op.
11245
9faeb493 112462012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
11247
11248 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
11249 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
11250 both the start and end of the function.
11251
a4b7d13c
SB
112522012-06-04 Steven Bosscher <steven@gcc.gnu.org>
11253
11254 * c-common.c: Do not include output.h.
11255 * c-pragma.c: Likewise.
11256
c265f413
SA
112572012-06-04 Steven Bosscher <steven@gcc.gnu.org>
11258
11259 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
11260 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
11261 (lang_decl_name): Handle namespace decls.
11262
be7a421e
SB
112632012-05-31 Steven Bosscher <steven@gcc.gnu.org>
11264
11265 * c-ada-spec.c: Do not include output.h.
11266 * c-semantics.c: Likewise.
11267
65de6659
JM
112682012-05-29 Joseph Myers <joseph@codesourcery.com>
11269
11270 * c-common.c: Fix typo.
11271
ca5f4331
MM
112722012-05-29 Michael Matz <matz@suse.de>
11273
11274 * c-common.h (c_expand_decl): Remove prototype.
11275
4f7f7aca
MLI
112762012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
11277
11278 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
11279 * c-opts.c (c_common_handle_option): Remove code handling
11280 warn_missing_braces.
11281
4a792f9b
PC
112822012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
11283
11284 PR c++/25137
11285 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
11286 -Wmissing_braces.
11287
650dc14a
DS
112882012-05-22 Dodji Seketeli <dodji@redhat.com>
11289
11290 PR c++/53322
11291 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
11292
9b095bf1
MLI
112932012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
11294
11295 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
11296 * c-opts.c (c_common_handle_option): Do not handle explicitly
11297 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
11298
0b2c4be5
DS
112992012-05-16 Dodji Seketeli <dodji@redhat.com>
11300
11301 PR preprocessor/7263
ab20d992 11302 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
0b2c4be5
DS
11303 to cpp_classify_number. For diagnostics, use the precise location
11304 instead of the global input_location.
11305
a1bde5af
PC
113062012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
11307
d02924ef 11308 PR c++/11856
a1bde5af
PC
11309 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
11310
d1ede5f4
BS
113112012-05-14 Bernd Schmidt <bernds@codesourcery.com>
11312
a1bde5af 11313 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 11314
f2bc201f
MLI
113152012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
11316
11317 PR 53063
11318 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
11319 Wreorder): Use LangEnabledBy.
11320 * c-opts.c (c_common_handle_option): Do not enable them
11321 explicitly. Call lang-specific generated functions.
11322 (c_common_post_options): Do not set them here.
11323
95744782
MLI
113242012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
11325
11326 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
11327 Wmissing-field-initializers,Wmissing-parameter-type,
11328 Wold-style-declaration,Woverride-init): Use EnabledBy.
11329 * c-opts.c (c_common_post_options): Do not set here explicitly.
11330
7d5a5747
MLI
113312012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
11332
11333 PR 53063
11334 * c-opts.c (c_common_handle_option): Use handle_generated_option
11335 to enable sub-options.
11336
5a3c9cf2
PC
113372012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
11338
11339 PR c++/53158
11340 * c-common.c (warnings_for_convert_and_check): Use warning_at.
11341
3ac8781c
RG
113422012-05-10 Richard Guenther <rguenther@suse.de>
11343
11344 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
11345 adjust commentary about TYPE_IS_SIZETYPE types.
11346
1e537948
MLI
113472012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
11348
11349 PR c++/53261
11350 * c-common.c (warn_logical_operator): Check that argument of
11351 integer_zerop is not NULL.
11352
f2c4a785
MLI
113532012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
11354
11355 PR c/43772
11356 * c-common.c (warn_logical_operator): Do not warn if either side
11357 is already true or false.
11358
50f305ca
MLI
113592012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
11360
11361 PR c/51712
11362 * c-common.c (expr_original_type): New.
11363 (shorten_compare): Do not warn for enumeration types.
11364
0c3641b0
MLI
113652012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
11366
11367 * c.opt (fpermissive): Add Var(flag_permissive).
11368
7edaa4d2
MG
113692012-04-30 Marc Glisse <marc.glisse@inria.fr>
11370
11371 PR c++/51033
11372 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
11373 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
11374
b9c8da34
DS
113752012-04-30 Dodji Seketeli <dodji@redhat.com>
11376
11377 Add -Wvarargs option
ab20d992 11378 * c.opt (Wvarargs): Define new option.
b9c8da34 11379
e6c69da0
MLI
113802012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
11381
11382 * c-common.c (check_function_arguments): Replace
11383 Wmissing-format-attribute with Wsuggest-attribute=format.
11384
90137d8f
MLI
113852012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
11386
11387 * c.opt (Wsuggest-attribute=format): New. Alias of
11388 Wmissing-format-attribute.
11389 * c-format.c (decode_format_type): Replace
11390 Wmissing-format-attribute with Wsuggest-attribute=format.
11391 (check_function_format): Likewise.
11392
9faeb493 113932012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
11394
11395 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
11396 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
11397 * c.opt: Add Wliteral-suffix.
11398
c1771a20
MLI
113992012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
11400
11401 PR c/44774
11402 * c.opt (Wpedantic): New.
11403 (pedantic): Alias Wpedantic.
11404 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
11405 (c_common_post_options): Likewise.
11406 (sanitize_cpp_opts): Likewise.
11407 * c-lex.c (interpret_float): Likewise.
11408 * c-format.c (check_format_types): Likewise.
11409 * c-common.c (pointer_int_sum): Likewise.
11410 (c_sizeof_or_alignof_type): Likewise.
11411 (c_add_case_label): Likewise.
11412 (c_do_switch_warnings): Likewise.
11413 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
11414
04b391c1
JM
114152012-04-15 Jason Merrill <jason@redhat.com>
11416
11417 PR c++/52818
11418 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
11419 (C_STD_NAME): Distinguish between C++98 and C++11.
11420
ac868f29
EB
114212012-04-11 Eric Botcazou <ebotcazou@adacore.com>
11422
11423 PR target/52624
11424 * c-common.h (uint16_type_node): Rename into...
11425 (c_uint16_type_node): ...this.
11426 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
11427 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
11428
fd4116f4
MLI
114292012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
11430
11431 * c-common.c (warn_if_unused_value): Move definition to here.
11432 * c-common.h (warn_if_unused_value): Move declaration to here.
11433
573ac65e
WB
114342012-03-23 William Bader <williambader@hotmail.com>
11435
11436 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
11437
552b8185
JM
114382012-03-20 Jason Merrill <jason@redhat.com>
11439
11440 * c-common.h (enum cxx_dialect): Add cxx1y.
11441 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
11442 test.
11443 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
11444 * c-opts.c (c_common_post_options): Likewise.
11445 (set_std_cxx1y): New.
11446 (c_common_handle_option): Call it.
11447 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
11448
04398fa8
PC
114492012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
11450
11451 PR c++/14710
11452 * c.opt ([Wuseless-cast]): Add.
11453
d2a12ae7
RG
114542012-03-16 Richard Guenther <rguenther@suse.de>
11455
11456 * c-pretty-print.c (pp_c_initializer_list): Adjust.
11457
a12bf402
MLI
114582012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
11459
11460 PR c++/44783
11461 * c.opt (ftemplate-backtrace-limit) Add.
11462
5c30094f
RO
114632012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11464
11465 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
11466 handling.
11467 * c-pragma.c (handle_pragma_extern_prefix): Remove.
11468 (init_pragma): Don't register extern_prefix.
11469
21fa2faf
RG
114702012-03-12 Richard Guenther <rguenther@suse.de>
11471
11472 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
11473 (builtin_type_for_size): Likewise.
11474
e3793c6f
JJ
114752012-02-13 Jakub Jelinek <jakub@redhat.com>
11476
11477 PR c++/52215
11478 * c-common.c (sync_resolve_params): Don't decide whether to convert
11479 or not based on TYPE_SIZE comparison, convert whenever arg_type
11480 is unsigned INTEGER_TYPE.
11481
93286335
PC
114822012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
11483
11484 PR c/52118
11485 * c.opt ([Wunused-local-typedefs]): Fix description.
11486
7a421706
MS
114872012-01-24 Mike Stump <mikestump@comcast.net>
11488
11489 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
11490 exactly.
11491
ba9b1f11
RG
114922012-01-18 Richard Guenther <rguenther@suse.de>
11493
11494 * c-opts.c (c_common_post_options): Reset LTO flags if
11495 we are about to generate a PCH.
11496
465406be
PC
114972012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
11498
11499 PR c++/51777
11500 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
11501 use pp_unsigned_wide_integer.
11502
aee15221
RG
115032012-01-10 Richard Guenther <rguenther@suse.de>
11504
11505 PR middle-end/51806
11506 * c-opts.c (c_common_handle_option): Move -Werror handling
11507 to language independent code.
11508
5720c0dc
RG
115092012-01-05 Richard Guenther <rguenther@suse.de>
11510
11511 PR middle-end/51764
11512 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
11513 from common.opt.
11514
73ac190a
PC
115152011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
11516
11517 PR c++/51316
11518 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
11519 of array types with an unknown bound.
11520
48b0b196
JM
115212011-12-20 Joseph Myers <joseph@codesourcery.com>
11522
11523 * c-common.c (flag_isoc99): Update comment to refer to C11.
11524 (flag_isoc1x): Change to flag_isoc11.
11525 * c-common.h (flag_isoc99): Update comment to refer to C11.
11526 (flag_isoc1x): Change to flag_isoc11.
11527 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
11528 C11.
11529 * c-opts.c (set_std_c1x): Change to set_std_c11.
11530 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
11531 Call set_std_c11.
11532 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
11533 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
11534 * c.opt (std=c1x): Change to std=c11. Document as non-draft
11535 standard.
11536 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
11537 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
11538 (std=gnu1x): Make alias of std=gnu11.
11539
d58d6eb5
JM
115402011-12-19 Jason Merrill <jason@redhat.com>
11541
11542 PR c++/51228
11543 * c-common.c (handle_transparent_union_attribute): Check the first
11544 field if the type is complete.
11545
b3908fcc
JW
115462011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
11547
11548 PR libstdc++/51365
11549 * c-common.c (RID_IS_FINAL): Add.
11550 * c-common.h (RID_IS_FINAL): Add.
11551
fea3ca91
IS
115522011-11-30 Iain Sandoe <iains@gcc.gnu.org>
11553
11554 * c.opt (fgnu-runtime): Provide full description.
11555 (fnext-runtime): Likewise.
11556 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
11557
62bad7cd
AM
115582011-11-28 Andrew MacLeod <amacleod@redhat.com>
11559
11560 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
11561 predefines in one place. Add LOCK_FREE predefines.
11562 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
11563 new func.
11564
c466c4ff
AM
115652011-11-24 Andrew MacLeod <amacleod@redhat.com>
11566
11567 PR c/51256
9faeb493 11568 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 11569 conditions
9faeb493
UB
11570 (resolve_overloaded_atomic_exchange,
11571 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
11572 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
11573 error_mark_node for error conditions.
9faeb493 11574
a5952633
RG
115752011-11-08 Richard Guenther <rguenther@suse.de>
11576
11577 PR middle-end/51010
ab20d992 11578 * c-pretty-print.c (pp_c_expression): Handle SSA_NAMEs.
a5952633 11579
0a35513e
AH
115802011-11-07 Richard Henderson <rth@redhat.com>
11581 Aldy Hernandez <aldyh@redhat.com>
11582 Torvald Riegel <triegel@redhat.com>
11583
11584 Merged from transactional-memory.
11585
11586 * c-common.c (handle_tm_wrap_attribute,
11587 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
11588 (struct c_common_reswords): Added __transaction* keywords.
11589 (struct c_common_attribute_table): Added transaction* and tm_regparm
11590 attributes.
11591 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
11592 masks.
11593 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
11594 find_tm_attribute): Declare.
11595
6d87092d
JM
115962011-11-07 Jason Merrill <jason@redhat.com>
11597
11598 PR c++/35688
11599 * c-common.c, c-common.h: Revert yesterday's changes.
11600
8e7860a1
JM
116012011-11-06 Jason Merrill <jason@redhat.com>
11602
11603 PR c++/35688
11604 * c-common.c (decl_has_visibility_attr): Split out from...
11605 (c_determine_visibility): ...here.
11606 * c-common.h: Declare it.
11607
d19fa6b5
JM
116082011-11-06 Joseph Myers <joseph@codesourcery.com>
11609
11610 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
11611 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
11612 type.
11613 (check_user_alignment): New. Split out of
11614 handle_aligned_attribute. Disallow integer constants with
11615 noninteger types. Conditionally allow zero.
11616 (handle_aligned_attribute): Use check_user_alignment.
11617 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
11618
86951993
AM
116192011-11-06 Andrew MacLeod <amacleod@redhat.com>
11620 Richard Henderson <rth@redhat.com>
11621
11622 Merged from cxx-mem-model.
11623
11624 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 11625 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
11626 parameters that are the same type size.
11627 (get_atomic_generic_size): New. Find size of generic
11628 atomic function parameters and do typechecking.
11629 (add_atomic_size_parameter): New. Insert size into parameter list.
11630 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
11631 either __atomic_exchange_n or external library call.
9faeb493 11632 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 11633 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 11634 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
11635 __atomic_load_n or an external library call.
11636 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
11637 __atomic_store_n or an external library call.
11638 (resolve_overloaded_builtin): Handle new __atomic builtins.
11639
cf9e9959
EB
116402011-11-04 Eric Botcazou <ebotcazou@adacore.com>
11641
11642 PR c++/50608
11643 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
11644 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
11645 <INDIRECT_REF>: Return the argument.
11646 <ARRAY_REF>: Remove special code for negative offset.
11647 Call fold_build_pointer_plus instead of size_binop.
11648 (fold_offsetof): Remove STOP_REF argument and adjust.
11649 * c-common.h (fold_offsetof_1): Declare.
11650 (fold_offsetof): Remove STOP_REF argument.
11651
25339f10
JM
116522011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
11653
11654 PR c++/50810
11655 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
11656 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
11657 Wnarrowing for C++0x and C++98.
11658 * c.opt ([Wnarrowing]): Update.
11659
89401152
PC
116602011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
11661
11662 PR c++/44277
11663 * c.opt: Add Wzero-as-null-pointer-constant.
11664
97e3ad20
JM
116652011-10-31 Jason Merrill <jason@redhat.com>
11666
15694fdd
JM
11667 * c.opt (-fdeduce-init-list): Off by default.
11668
97e3ad20
JM
11669 PR c++/50920
11670 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
11671 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
11672 and -Wc++11-compat.
11673 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
11674
fb9120e3
RAV
116752011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
11676
11677 PR c++/30066
11678 * c.opt (fvisibility-inlines-hidden): Description change.
11679
3ce4f9e4
ESR
116802011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
11681
11682 Implement C++11 user-defined literals.
11683 * c-common.c (build_userdef_literal): New.
11684 * c-common.def: New tree code.
11685 * c-common.h (tree_userdef_literal): New tree struct and accessors.
11686 * c-lex.c (interpret_float): Add suffix parm.
11687 (c_lex_with_flags): Build literal tokens.
11688
5f53c243
PC
116892011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
11690
11691 PR c++/50841
11692 Revert:
11693 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
11694
11695 PR c++/50810
11696 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
11697 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
11698 Wnarrowing for C++0x and C++98.
11699 * c.opt ([Wnarrowing]): Update.
11700
263734e1
PC
117012011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
11702
11703 PR c++/50810
11704 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
11705 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
11706 Wnarrowing for C++0x and C++98.
11707 * c.opt ([Wnarrowing]): Update.
11708
d2e312d7
PC
117092011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
11710
11711 PR c++/45385
11712 * c-common.c (conversion_warning): Remove code looking for
11713 artificial operands.
11714
d17687f6
DS
117152011-10-18 Dodji Seketeli <dodji@redhat.com>
11716
11717 PR bootstrap/50760
11718 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 11719 !NO_IMPLICIT_EXTERN_C.
d17687f6 11720
fc8396e9
PC
117212011-10-17 Michael Spertus <mike_spertus@symantec.com>
11722
11723 * c-common.c (c_common_reswords): Add __bases,
11724 __direct_bases.
11725 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
11726
117272011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
11728
11729 PR c++/50757
11730 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
11731
847e697a
TT
117322011-10-15 Tom Tromey <tromey@redhat.com>
11733 Dodji Seketeli <dodji@redhat.com>
11734
11735 * c.opt (fdebug-cpp): New option.
11736 * c-opts.c (c_common_handle_option): Handle the option.
11737 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
11738 output stream in parameter. Factorized from ...
11739 (maybe_print_line): ... this. Dump location debug information when
11740 -fdebug-cpp is in effect.
11741 (print_line_1): New static function. Takes an output stream in
11742 parameter. Factorized from ...
11743 (print_line): ... here. Dump location information when -fdebug-cpp
11744 is in effect.
11745 (scan_translation_unit): Dump location information when
11746 -fdebug-cpp is in effect.
11747
92582b75
TT
117482011-10-15 Tom Tromey <tromey@redhat.com>
11749 Dodji Seketeli <dodji@redhat.com>
11750
11751 * c.opt (ftrack-macro-expansion): New option. Handle it with and
11752 without argument.
11753 * c-opts.c (c_common_handle_option)<case
11754 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
11755 cases. Handle -ftrack-macro-expansion with and without argument.
11756
46427374
TT
117572011-10-15 Tom Tromey <tromey@redhat.com>
11758 Dodji Seketeli <dodji@redhat.com>
11759
11760 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
11761 (print_line, cb_define, do_line_change): Adjust to avoid touching
11762 the internals of struct line_map. Use the public API instead.
11763 * c-pch.c (c_common_read_pch): Likewise.
11764 * c-lex.c (fe_file_change): Likewise.
11765
fc8396e9
PC
117662011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
11767
11768 PR c++/17212
11769 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
11770
117712011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
11772
11773 PR c++/33067
11774 * c-pretty-print.c (pp_c_floating_constant): Output
11775 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
11776
e79983f4
MM
117772011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
11778
11779 * c-common.c (def_builtin_1): Delete old interface with two
11780 parallel arrays to hold standard builtin declarations, and replace
11781 it with a function based interface that can support creating
11782 builtins on the fly in the future. Change all uses, and poison
11783 the old names. Make sure 0 is not a legitimate builtin index.
11784 * c-omp.c (c_finish_omp_barrier): Ditto.
11785 (c_finish_omp_taskwait): Ditto.
11786 (c_finish_omp_flush): Ditto.
11787
6637388f
TG
117882011-10-11 Tristan Gingold <gingold@adacore.com>
11789
11790 * c.opt: (fallow-parameterless-variadic-functions): New.
11791
3797cb21
DS
117922011-09-08 Dodji Seketeli <dodji@redhat.com>
11793
11794 PR c++/33255 - Support -Wunused-local-typedefs warning
11795 * c-common.h (struct c_language_function::local_typedefs): New
11796 field.
9faeb493
UB
11797 (record_locally_defined_typedef, maybe_record_typedef_use)
11798 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 11799 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
11800 (maybe_record_typedef_use)
11801 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
11802 * c.opt: Declare new -Wunused-local-typedefs flag.
11803
693ddb1b
EB
118042011-09-06 Eric Botcazou <ebotcazou@adacore.com>
11805
11806 PR middle-end/50266
11807 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
11808 computations.
11809
830c740f
RG
118102011-09-05 Richard Guenther <rguenther@suse.de>
11811
11812 * c-common.c (complete_array_type): Use ssize_int (-1) instead
11813 of integer_minus_one_node for empty array upper bounds.
11814
892a371f
DS
118152011-08-28 Dodji Seketeli <dodji@redhat.com>
11816
11817 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
11818 it's the first time it's being called on this main TU.
11819
0e3fdb48
RB
118202011-08-24 Richard Guenther <rguenther@suse.de>
11821
11822 PR c/49396
11823 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
11824
118252011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
11826
11827 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
11828 defined in cpp_init_builtins and c_cpp_builtins.
11829
d4a83c10
JM
118302011-08-19 Joseph Myers <joseph@codesourcery.com>
11831
11832 * c-common.c (c_common_reswords): Add __builtin_complex.
11833 * c-common.h (RID_BUILTIN_COMPLEX): New.
11834
bbceee64
JM
118352011-08-18 Joseph Myers <joseph@codesourcery.com>
11836
11837 * c-common.c (c_common_reswords): Add _Noreturn.
11838 (keyword_is_function_specifier): Handle RID_NORETURN.
11839 * c-common.h (RID_NORETURN): New.
11840
3f8257db 118412011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
0e3a99ae
AS
11842
11843 * c-common.c (unsafe_conversion_p): New function. Check if it is
11844 unsafe to convert an expression to the type.
11845 (conversion_warning): Adjust, use unsafe_conversion_p.
11846 * c-common.h (unsafe_conversion_p): New function declaration.
11847
20906c66
JJ
118482011-08-02 Jakub Jelinek <jakub@redhat.com>
11849
11850 * c-common.h (c_finish_omp_atomic): Adjust prototype.
11851 (c_finish_omp_taskyield): New prototype.
11852 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
11853 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
11854 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
11855 or RHS1 have side-effects, evaluate those too in the right spot,
11856 if it is a decl and LHS is also a decl, error out if they
11857 aren't the same.
11858 (c_finish_omp_taskyield): New function.
11859 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
11860 * c-pragma.c (omp_pragmas): Add taskyield.
11861 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
11862 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
11863 PRAGMA_OMP_CLAUSE_MERGEABLE.
11864
770e5a2e
DS
118652011-07-25 Dodji Seketeli <dodji@redhat.com>
11866
11867 * c-common.h (set_underlying_type): Remove parm name from
11868 declaration.
11869
1baae426
RG
118702011-07-25 Romain Geissler <romain.geissler@gmail.com>
11871
11872 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 11873
fcb21722
JM
118742011-07-22 Jason Merrill <jason@redhat.com>
11875
76f86d00
JM
11876 PR c++/49793
11877 * c.opt (Wnarrowing): New.
11878
3a636414
JM
11879 PR c++/30112
11880 * c-common.h: Declare c_linkage_bindings.
11881 * c-pragma.c (handle_pragma_redefine_extname): Use it.
11882
fcb21722
JM
11883 PR c++/49813
11884 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
11885 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
11886 as flag_isoc99 for 'restrict'.
11887 (pp_c_specifier_qualifier_list): Likewise for _Complex.
11888
02614448
ILT
118892011-07-21 Ian Lance Taylor <iant@google.com>
11890
11891 PR middle-end/49705
11892 * c-common.c (c_disable_warnings): New static function.
11893 (c_enable_warnings): New static function.
11894 (c_fully_fold_internal): Change local unused_p to bool. Call
11895 c_disable_warnings and c_enable_warnings rather than change
11896 c_inhibit_evaluation_warnings.
11897
34429675
JM
118982011-07-20 Jason Merrill <jason@redhat.com>
11899
11900 PR c++/6709 (DR 743)
11901 PR c++/42603 (DR 950)
11902 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
11903 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
11904 (CPP_DECLTYPE): New.
11905 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
11906
5d49b6a7
RG
119072011-07-19 Richard Guenther <rguenther@suse.de>
11908
11909 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
11910 * c-omp.c (c_finish_omp_for): Likewise.
11911
e84a58ff
EB
119122011-07-12 Eric Botcazou <ebotcazou@adacore.com>
11913
11914 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
11915 body on the next line.
11916
329af3c7
JM
119172011-07-08 Jason Merrill <jason@redhat.com>
11918
4063e61b
JM
11919 PR c++/45437
11920 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
11921
329af3c7
JM
11922 PR c++/49673
11923 * c-common.c (c_apply_type_quals_to_decl): Don't check
11924 TYPE_NEEDS_CONSTRUCTING.
11925
1a072294
RG
119262011-07-06 Richard Guenther <rguenther@suse.de>
11927
11928 * c-common.c (c_common_nodes_and_builtins):
11929 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
11930
fce5dddd
RG
119312011-07-05 Richard Guenther <rguenther@suse.de>
11932
11933 * c-common.c (c_common_nodes_and_builtins): Build all common
11934 tree nodes first.
11935
45d439ac
JJ
119362011-06-27 Jakub Jelinek <jakub@redhat.com>
11937
56300785
JJ
11938 * c-common.h (c_tree_chain_next): New static inline function.
11939
45d439ac
JJ
11940 * c-common.c (check_builtin_function_arguments): Handle
11941 BUILT_IN_ASSUME_ALIGNED.
11942
e0a8ecf2
AM
119432011-06-21 Andrew MacLeod <amacleod@redhat.com>
11944
11945 * c-common.c: Add sync_ or SYNC__ to builtin names.
11946 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
11947
119482011-06-20 Pierre Vittet <piervit@pvittet.com>
11949
11950 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
11951 handler.
11952 (gen_pragma_handler): New union.
11953 (internal_pragma_handler): New type.
11954 (c_register_pragma_with_data)
11955 (c_register_pragma_with_expansion_and_data): New functions.
11956
11957 * c-pragma.c (registered_pragmas, c_register_pragma_1)
11958 (c_register_pragma, c_register_pragma_with_expansion)
11959 (c_invoke_pragma_handler): Changed to work with
11960 internal_pragma_handler.
11961 (c_register_pragma_with_data)
11962 (c_register_pragma_with_expansion_and_data): New functions.
11963
677f3fa8
JM
119642011-06-14 Joseph Myers <joseph@codesourcery.com>
11965
11966 * c-common.c: Include common/common-target.h.
11967 (handle_section_attribute): Use
11968 targetm_common.have_named_sections.
11969 * c-cppbuiltin.c: Include common/common-target.h.
11970 (c_cpp_builtins): Use targetm_common.except_unwind_info.
11971
d7fc8c14
RG
119722011-06-10 Richard Guenther <rguenther@suse.de>
11973
11974 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
11975 to print a IDENTIFIER_NODE.
11976
10e48e39
RO
119772011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11978 Joseph Myers <joseph@codesourcery.com>
11979
11980 * c.opt (fbuilding-libgcc): New option.
11981 * c-cppbuiltin.c (c_cpp_builtins): Define
11982 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
11983
6976ae51
JM
119842011-06-07 Jason Merrill <jason@redhat.com>
11985
3ff60975
JM
11986 * c-common.c (max_tinst_depth): Lower default to 900.
11987
6976ae51
JM
11988 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
11989
009db074
RG
119902011-06-07 Richard Guenther <rguenther@suse.de>
11991
11992 * c-common.c (c_common_nodes_and_builtins): Do not set
11993 size_type_node or call set_sizetype.
11994
b4592b92
DS
119952011-06-07 Dodji Seketeli <dodji@redhat.com>
11996
11997 PR debug/49130
11998 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 11999 type when using pointer comparison to compare types.
b4592b92 12000
014ab419
JW
120012011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
12002
12003 * c.opt: Add -Wdelete-non-virtual-dtor.
12004 * c-opts.c (c_common_handle_option): Include it in -Wall.
12005
4f60111f
NF
120062011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
12007
12008 PR bootstrap/49190
12009
12010 Revert:
12011 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
12012
12013 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
12014 not tree_common.
12015
4cc4f2f4
JJ
120162011-05-27 Jakub Jelinek <jakub@redhat.com>
12017
12018 PR c++/49165
12019 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
12020 C++ don't call c_common_truthvalue_conversion on void type arms.
12021
38e01f9e
NF
120222011-05-27 Nathan Froyd <froydnj@codesourcery.com>
12023
12024 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
12025 (stmt_list_stack): Define.
12026 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
12027 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
12028
92e948a8
NF
120292011-05-26 Nathan Froyd <froydnj@codesourcery.com>
12030
12031 * c-common.c (warning_candidate_p): Check for BLOCKs.
12032
a2fc3e63
NF
120332011-05-26 Nathan Froyd <froydnj@codesourcery.com>
12034
12035 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
12036 not tree_common.
12037
0957c029
JJ
120382011-05-25 Jakub Jelinek <jakub@redhat.com>
12039
12040 * c-common.c (def_fn_type): Remove extra va_end.
12041
828fb3ba
JM
120422011-05-23 Jason Merrill <jason@redhat.com>
12043
12044 PR c++/48106
12045 * c-common.c (c_common_get_narrower): New.
12046 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
12047
dde05067
NF
120482011-05-23 Nathan Froyd <froydnj@codesourcery.com>
12049
12050 * c-common.h (check_function_arguments): Tweak prototype of
12051 check_function_arguments.
12052 * c-common.c (check_function_arguments): Likewise. Adjust
12053 calls to check_function_nonnull, check_function_format, and
12054 check_function_sentinel.
12055 (check_function_sentinel): Take a FUNCTION_TYPE rather than
12056 separate attributes and typelist arguments. Use
12057 FOREACH_FUNCTION_ARGS to iterate over argument types.
12058
3c0d13bf
PC
120592011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
12060
12061 * c-common.c (c_common_reswords): Reorder.
12062 * c-common.h (rid): Likewise.
12063
8242dd04
NF
120642011-05-10 Nathan Froyd <froydnj@codesourcery.com>
12065
12066 * c-common.c (def_fn_type): Don't call build_function_type, call
12067 build_function_type_array or build_varargs_function_type_array
12068 instead.
12069 (c_common_nodes_and_builtins): Likewise.
12070
3d528853
NF
120712011-05-05 Nathan Froyd <froydnj@codesourcery.com>
12072
12073 * c-common.c (c_add_case_label): Omit the loc argument to
12074 build_case_label.
12075 * c-common.h (build_case_label): Remove.
12076 * c-semantics.c (build_case_label): Remove.
12077
a04a722b
JM
120782011-05-05 Joseph Myers <joseph@codesourcery.com>
12079
12080 * c-objc.h (objc_start_method_definition): Update prototype.
12081 * stub-objc.c (objc_start_method_definition): Add extra parameter.
12082
e19a18d4
NF
120832011-05-04 Nathan Froyd <froydnj@codesourcery.com>
12084
12085 * c-common.c (check_main_parameter_types): Reindent. Don't use
12086 TYPE_ARG_TYPES directly.
12087 (handle_nonnull_attribute): Likewise.
12088 (sync_resolve_params): Likewise.
12089 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
12090 to check_format_string.
12091 (handle_format_attribute): Likewise.
12092 (check_format_string): Take a function type to examine instead of
12093 a type list. Use a function_arg_iterator to step through argument
12094 types.
12095
c62c040f
RG
120962011-05-04 Richard Guenther <rguenther@suse.de>
12097
12098 * c-common.c (fix_string_type): Use size_int for index type bounds.
12099 (start_fname_decls): Do not pass NULL to build_int_cst.
12100 (c_init_attributes): Likewise.
12101 * c-lex.c (c_lex_with_flags): Likewise.
12102
c12ff9d8
JM
121032011-04-27 Jason Merrill <jason@redhat.com>
12104
12105 * c-common.c (make_tree_vector_from_list): New.
12106 * c-common.h: Declare it.
12107
304dfbe3
RG
121082011-04-26 Richard Guenther <rguenther@suse.de>
12109
12110 PR preprocessor/48248
12111 * c-ppoutput.c (maybe_print_line): Always optimize newlines
12112 for output size with -P.
12113
3c0d13bf
PC
121142011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
12115
12116 * c-common.c (struct c_common_resword): Add __underlying_type.
12117 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
12118
04695783
JM
121192011-04-20 Jim Meyering <meyering@redhat.com>
12120
12121 * c-format.c (init_dollar_format_checking): Remove useless
12122 if-before-free.
12123
0dc33c3c
NP
121242011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
12125
12126 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 12127 (objc_detect_field_duplicates): New.
0dc33c3c 12128 * stub-objc.c: Likewise.
3c0d13bf 12129
c59633d9
NP
121302011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
12131
12132 * stub-objc.c (objc_declare_protocols): Renamed to
12133 objc_declare_protocol.
12134 * c-objc.h: Likewise.
3c0d13bf 12135
32dabdaf
NP
121362011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
12137
12138 * stub-objc.c (objc_declare_class): Updated argument name.
12139
81f653d6
NF
121402011-04-12 Nathan Froyd <froydnj@codesourcery.com>
12141
12142 * c-common.h (c_common_init_ts): Declare.
12143 * c-common.c (c_common_init_ts): Define.
12144
eb345401
NP
121452011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
12146
12147 * c-objc.h (objc_build_message_expr): Updated prototype.
12148 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 12149
a358e188
MJ
121502011-04-12 Martin Jambor <mjambor@suse.cz>
12151
12152 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
12153 of cgraph_node.
12154
e6313a78
RG
121552011-04-11 Richard Guenther <rguenther@suse.de>
12156
12157 * c-common.c (complete_array_type): Build a range type of
12158 proper type.
12159
dcf0c47e
NF
121602011-04-08 Nathan Froyd <froydnj@codesourcery.com>
12161
12162 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
12163 (handle_type_generic_attribute): Likewise.
12164
1ee44b26
JM
121652011-04-07 Jason Merrill <jason@redhat.com>
12166
12167 PR c++/48450
12168 * c-common.c (c_common_truthvalue_conversion): Don't ignore
12169 conversion from C++0x scoped enum.
12170
acce4e77
JM
121712011-04-06 Joseph Myers <joseph@codesourcery.com>
12172
12173 * c-target-def.h: New file.
12174 * c-target.def: New file.
12175 * c-target.h: New file.
12176 * c-common.c (targetcm): Don't define here.
12177 * c-common.h (default_handle_c_option): Declare.
12178 * c-format.c: Include c-target.h instead of target.h.
12179 * c-opts.c: Include c-target.h instead of target.h. Explicitly
12180 include tm.h.
12181 (default_handle_c_option): Move from targhooks.c.
12182
e2eefb55
JJ
121832011-03-29 Jakub Jelinek <jakub@redhat.com>
12184
12185 PR preprocessor/48248
12186 * c-ppoutput.c (print): Add src_file field.
12187 (init_pp_output): Initialize it.
12188 (maybe_print_line): Don't optimize by adding up to 8 newlines
12189 if map->to_file and print.src_file are different file.
12190 (print_line): Update print.src_file.
12191
ba78087b
KT
121922011-03-25 Kai Tietz <ktietz@redhat.com>
12193
12194 * c-ada-spec.c (compare_comment): Use filename_cmp
12195 instead of strcmp for filename.
12196
0edf1bb2
JL
121972011-03-25 Jeff Law <law@redhat.com>
12198
adfac8df 12199 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 12200
c7dc8804
JM
122012011-03-25 Jason Merrill <jason@redhat.com>
12202
12203 * c.opt: Add -std=c++03.
12204
d1d879b1
EB
122052011-03-22 Eric Botcazou <ebotcazou@adacore.com>
12206
12207 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
12208
3f8257db 122092011-03-17 Kai Tietz <ktietz@redhat.com>
62d784f7
KT
12210
12211 PR target/12171
5050afdf
KT
12212 * c-pretty-print.c (pp_c_specifier_qualifier_list):
12213 Display allowed attributes for function pointer types.
12214 (pp_c_attributes_display): New function to display
12215 attributes having affects_type_identity flag set to true.
12216 * c-pretty-print.h (pp_c_attributes_display): New prototype.
12217
62d784f7
KT
12218 * c-common.c (c_common_attribute_table):
12219 Add new element.
12220 (c_common_format_attribute_table): Likewise.
12221
82d37118
JM
122222011-03-18 Jason Merrill <jason@redhat.com>
12223
49a000c3
JM
12224 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
12225 * c-common.h: Don't declare it here.
12226 * c-common.c: Or define it here.
12227 * c-opts.c (c_common_handle_option): Or set it here.
12228
82d37118
JM
12229 PR c++/35315
12230 * c-common.c (handle_transparent_union_attribute): Don't
12231 make a duplicate type in C++.
12232
17bc631c
JM
122332011-03-15 Jason Merrill <jason@redhat.com>
12234
12235 * c-common.c (max_constexpr_depth): New.
12236 * c-common.h: Declare it.
12237 * c-opts.c (c_common_handle_option): Set it.
12238 * c.opt (fconstexpr-depth): New option.
12239
1b9b91a6
JM
122402011-03-11 Jason Merrill <jason@redhat.com>
12241
f231b5ff
JM
12242 * c-common.c (attribute_takes_identifier_p): Add missing const.
12243
1b9b91a6
JM
12244 PR c++/46803
12245 * c-common.c (attribute_takes_identifier_p): Assume that an
12246 unknown attribute takes an identifier.
12247
a19e4d44
NF
122482011-03-07 Nathan Froyd <froydnj@codesourcery.com>
12249
12250 PR c/47786
12251 * c-common.c (c_type_hash): Call list_length instead of iterating
12252 through DECL_CHAIN. Rename 'i' to 'n_elements'.
12253
982d62f6
JJ
122542011-02-19 Jakub Jelinek <jakub@redhat.com>
12255
12256 PR c/47809
12257 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
12258
0a256240
NP
122592011-02-17 Iain Sandoe <iains@gcc.gnu.org>
12260
12261 * c.opt (fobjc-abi-version=) New.
12262 (fobjc-nilcheck): New.
12263
ba9e6dd5
NF
122642011-02-03 Nathan Froyd <froydnj@codesourcery.com>
12265
12266 PR c++/46890
12267 * c-common.h (keyword_is_decl_specifier): Declare.
12268 * c-common.c (keyword_is_decl_specifier): Define.
12269 (keyword_is_function_specifier): New function.
12270
7273813a
JJ
122712011-01-26 Jakub Jelinek <jakub@redhat.com>
12272
12273 PR c/47473
12274 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
12275 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
12276 REAL_TYPE.
12277
908ef79b
AC
122782011-01-26 Arnaud Charlet <charlet@adacore.com>
12279
12280 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
12281
237e9384
JJ
122822011-01-26 Jakub Jelinek <jakub@redhat.com>
12283
12284 PR pch/47430
12285 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
12286 after init_c_lex if pch_file is set.
12287
47ea1edf
DK
122882011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
12289
d4dba752 12290 PR c++/43601
47ea1edf
DK
12291 * c.opt (-fkeep-inline-dllexport): New switch.
12292
2aa9c6ae
RG
122932011-01-12 Richard Guenther <rguenther@suse.de>
12294
12295 PR middle-end/32511
12296 * c-common.c (handle_weak_attribute): Warn instead of error
12297 on declaring an inline function weak.
12298
7bd11157
TT
122992011-01-05 Tom Tromey <tromey@redhat.com>
12300
12301 * c-common.h (lvalue_error): Update.
12302 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
12303 not error.
12304
0e66e494 123052010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 12306
b4f588c4
NP
12307 PR objc/47075
12308 * c-objc.h (objc_finish_message_expr): Added argument to
12309 prototype.
12310
f4da8dce
NF
123112010-12-22 Nathan Froyd <froydnj@codesourcery.com>
12312
12313 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
12314 Use prototype_p.
12315
46270f14
NP
123162010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
12317
12318 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 12319 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 12320
4816c593
NF
123212010-12-10 Nathan Froyd <froydnj@codesourcery.com>
12322
12323 * c-common.h (readonly_error): Declare.
12324 * c-common.c (readonly_error): Define.
12325
7a6daeb0
NF
123262010-12-09 Nathan Froyd <froydnj@codesourcery.com>
12327
12328 * c-common.h (invalid_indirection_error): Declare.
12329 * c-common.c (invalid_indirection_error): Define.
12330
892f6119
RG
123312010-12-03 Richard Guenther <rguenther@suse.de>
12332
12333 PR c/46745
12334 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
12335 (pp_c_unary_expression): Likewise.
12336 (pp_c_expression): Likewise.
12337
6c39e757
NP
123382010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
12339
12340 * c-common.h (objc_finish_function): New.
12341 (objc_non_volatilized_type): Removed.
12342 (objc_type_quals_match): Removed.
12343 * stub-objc.c (objc_finish_function): New.
12344 (objc_non_volatilized_type): Removed.
12345 (objc_type_quals_match): Removed.
9faeb493 12346
7c475d11
JM
123472010-11-30 Joseph Myers <joseph@codesourcery.com>
12348
12349 * c-common.h (parse_optimize_options): Declare.
12350 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
12351 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
12352
71f3e391
JM
123532010-11-29 Joseph Myers <joseph@codesourcery.com>
12354
12355 * c-opts.c (check_deps_environment_vars): Use getenv instead of
12356 GET_ENVIRONMENT.
12357 * c-pch.c (O_BINARY): Don't define here.
12358 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
12359
d5fabb58
JM
123602010-11-25 Joseph Myers <joseph@codesourcery.com>
12361
12362 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
12363 targetm.except_unwind_info.
12364
299404a1
JM
123652010-11-23 Joseph Myers <joseph@codesourcery.com>
12366
12367 * c-opts.c (c_common_handle_option): Pass location to
12368 set_struct_debug_option.
12369
c98cd5bf
JM
123702010-11-23 Joseph Myers <joseph@codesourcery.com>
12371
12372 * c-common.c (visibility_options): Move from ../opts.c.
12373 * c-common.h (struct visibility_flags, visibility_options):
12374 Declare here.
12375 * c-opts.c (finish_options): Rename to c_finish_options.
12376 (c_common_init): Update call to finish_options.
12377
a9546771
NP
123782010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
12379
12380 PR objc/34033
12381 * c-lex.c (lex_string): Check that each string in an Objective-C
12382 string concat sequence starts with either one or zero '@', and
12383 that there are no spurious '@' signs at the end.
12384
24a57808
JM
123852010-11-20 Joseph Myers <joseph@codesourcery.com>
12386
12387 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
12388 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
12389 HANDLE_PRAGMA_VISIBILITY.
12390 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
12391 HANDLE_PRAGMA_VISIBILITY): Don't define.
12392 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
12393
a9aa2c3a
NF
123942010-11-20 Nathan Froyd <froydnj@codesourcery.com>
12395
12396 PR c++/16189
12397 PR c++/36888
12398 PR c++/45331
12399 * c-common.h (keyword_begins_type_specifier): Declare.
12400 (keyword_is_storage_class_specifier): Declare.
12401 (keyword_is_type_qualifier): Declare.
12402 * c-common.c (keyword_begins_type_specifier): New function.
12403 (keyword_is_storage_class_specifier): New function.
12404 (keyword_is_type_qualifier): Declare.
12405
5386338c
JM
124062010-11-19 Joseph Myers <joseph@codesourcery.com>
12407
12408 PR c/46547
12409 * c-common.c (in_late_binary_op): Define.
12410 (c_common_truthvalue_conversion): Check in_late_binary_op before
12411 calling c_save_expr.
12412 * c-common.h (in_late_binary_op): Declare.
12413
69ccdddb
JM
124142010-11-19 Joseph Myers <joseph@codesourcery.com>
12415
12416 * c-opts.c (c_common_handle_option): Update calls to
12417 set_struct_debug_option.
12418
6b192a09
NP
124192010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
12420
12421 * c-common.h (objc_declare_protocols): Added additional argument.
12422 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 12423
fb52b50a
NF
124242010-11-18 Nathan Froyd <froydnj@codesourcery.com>
12425
12426 PR c/33193
12427 * c-common.h (build_real_imag_expr): Declare.
12428 * c-semantics.c (build_real_imag_expr): Define.
12429
b37421c6
JM
124302010-11-17 Joseph Myers <joseph@codesourcery.com>
12431
12432 * c-opts.c (c_common_parse_file): Take no arguments.
12433 * c-common.h (c_common_parse_file): Update prototype.
12434
07078664
JJ
124352010-11-16 Jakub Jelinek <jakub@redhat.com>
12436
12437 PR c++/46401
12438 * c-common.c (warning_candidate_p): Don't track non-const calls
12439 or STRING_CSTs.
12440
c6a13190
ILT
124412010-11-15 Ian Lance Taylor <iant@google.com>
12442
12443 * c-lex.c (init_c_lex): Set macro debug callbacks if
12444 flag_dump_go_spec is set.
12445
925e8657
NP
124462010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
12447
12448 * c-common.h (objc_build_incr_expr_for_property_ref): New.
12449 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
12450
bb0a9581
NF
124512010-11-15 Nathan Froyd <froydnj@codesourcery.com>
12452
12453 PR preprocessor/45038
12454 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
12455 dialects.
12456
c5fa0890
JM
124572010-11-12 Joseph Myers <joseph@codesourcery.com>
12458
12459 * c-common.h (c_family_lang_mask): Declare.
12460 * c-opts.c (c_family_lang_mask): Make extern.
12461 * c-pragma.c (handle_pragma_diagnostic): Use
12462 control_warning_option.
12463
a4d8c676
JM
124642010-11-12 Joseph Myers <joseph@codesourcery.com>
12465
12466 * c-common.c (parse_optimize_options): Update call to
12467 decode_options.
12468 * c-common.h (c_common_handle_option): Update prototype.
12469 * c-opts.c (c_common_handle_option): Take location_t parameter and
12470 pass it to other functions.
12471
f954bd2c
JM
124722010-11-11 Joseph Myers <joseph@codesourcery.com>
12473
12474 * c-opts.c (warning_as_error_callback): Remove.
12475 (c_common_initialize_diagnostics): Don't call
12476 register_warning_as_error_callback.
12477 (c_common_handle_option): Handle -Werror=normalized= here.
12478
d8a07487
JM
124792010-11-10 Joseph Myers <joseph@codesourcery.com>
12480
12481 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
12482 in diagnostic.
12483 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
12484 letter.
12485 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
12486 Remove trailing '.' from diagnostics.
12487 * c.opt (Wwrite-strings_: Avoid '`' in help text.
12488
d5478783
JM
124892010-11-10 Joseph Myers <joseph@codesourcery.com>
12490
12491 * c-common.c (parse_optimize_options): Pass global_dc to
12492 decode_options.
12493 * c-opts.c (c_common_handle_option): Pass &global_options to
12494 set_Wstrict_aliasing.
12495 * c.opt (v): Don't mark Common or document here.
12496
91ebb981
IS
124972010-11-06 Iain Sandoe <iains@gcc.gnu.org>
12498
12499 PR target/44981
12500 * c-format.c (format_type): New type gcc_objc_string_format_type.
12501 (valid_stringptr_type_p): New.
12502 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 12503 (check_format_string): Pass expected type, use
91ebb981
IS
12504 valid_stringptr_type_p (), check that the format string types are
12505 consistent with the format specification.
12506 (decode_format_attr): Warn if NSString is used outside objective-c.
12507 (format_types_orig): Add NSString.
12508 (format_name): New.
12509 (format_flags): New.
12510 (check_format_arg): Handle format strings requiring an external parser.
12511 first_target_format_type: New variable.
12512 (handle_format_attribute): Set up first_target_format_type, pass the
12513 expected format arg string type to check_format_string().
ab20d992 12514 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
91ebb981
IS
12515 * stub-objc.c (objc_string_ref_type_p): New.
12516 (objc_check_format_arg): New.
12517
bede2adc
NP
125182010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
12519
9faeb493 12520 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
12521 * c-common.h (objc_build_class_component_ref): New.
12522 * stub-objc.c (objc_build_class_component_ref): New.
12523
9a179d01
NP
125242010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
12525
12526 * c.opt (Wproperty-assign-default): New option.
12527
22d8d616
NP
125282010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
12529
12530 Implemented -fobjc-std=objc1 flag.
12531 * c.opt (fobjc-std=objc1): New option.
12532
2debdb4f
NP
125332010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
12534
12535 Implemented format and noreturn attributes for Objective-C methods.
12536 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
12537 attribute for Objective-C methods.
12538
ec52b111
JM
125392010-10-31 Jason Merrill <jason@redhat.com>
12540
12541 * c-common.c (conversion_warning, warn_for_collisions_1): Use
12542 EXPR_LOC_OR_HERE.
12543
46a88c12
NP
125442010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
12545
12546 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
12547 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
12548 (objc_add_property_declaration): Removed arguments for copies and
12549 ivar.
12550 (objc_build_getter_call): Renamed to
12551 objc_maybe_build_component_ref.
12552 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
12553 (objc_is_property_ref): New.
12554 * c-common.c (c_common_reswords): Removed copies and ivar.
12555 * stub-objc.c (objc_add_property_declaration): Removed arguments
12556 for copies and ivar.
12557 (objc_build_getter_call): Renamed to
12558 objc_maybe_build_component_ref.
12559 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
12560 (objc_is_property_ref): New.
9faeb493 12561
1e4bf85b
AC
125622010-10-29 Arnaud Charlet <charlet@adacore.com>
12563 Matthew Gingell <gingell@adacore.com>
12564
12565 * c-ada-spec.c (separate_class_package): New function.
12566 (pp_ada_tree_identifier): Prefix references to C++ classes with the
12567 name of their enclosing package.
12568 (print_ada_declaration): Use separate_class_package.
12569
81f0bab2
JM
125702010-10-27 Jason Merrill <jason@redhat.com>
12571
2b08f2c5
JM
12572 * c-common.c (c_common_reswords): Add __is_literal_type.
12573 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
12574
81f0bab2
JM
12575 * c-common.c (check_case_value): Remove special C++ code.
12576
200290f2
NP
125772010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
12578
12579 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
12580 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
12581 and RID_LAST_PATTR.
12582 (objc_add_property_declaration): Added additional arguments.
12583 (objc_property_attribute_kind): Removed.
12584 (objc_set_property_attr): Removed.
12585 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
12586 copy and nonatomic.
12587 * stub-objc.c (objc_add_property_declaration): Added additional
12588 arguments.
12589 (objc_set_property_attr): Removed.
9faeb493 12590
f614132b
NP
125912010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
12592
12593 * c-common.h (objc_add_property_variable): Renamed to
12594 objc_add_property_declaration. Added location argument.
12595 * stub-objc.c (objc_add_property_variable): Same change.
b1726d6c 12596
b8a18805
NP
125972010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
12598
12599 * c-common.h (objc_maybe_printable_name): New.
12600 * stub-objc.c (objc_maybe_printable_name): New.
12601
3f8257db
JJ
126022010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
12603 Andrew Pinski <pinskia@gmail.com>
30cd1c5d
AS
12604
12605 * c-common.h (c_common_mark_addressable_vec): Declare.
12606 * c-common.c (c_common_mark_addressable_vec): New function.
12607
249a82c4
NP
126082010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
12609
12610 * c-common.h (objc_set_method_type): Removed.
12611 (objc_add_method_declaration): Added boolean argument.
12612 (objc_start_method_definition): Same change.
12613 (objc_build_method_signature): Same change.
12614 * stub-objc.c (objc_set_method_type): Removed.
12615 (objc_add_method_declaration): Added boolean argument.
12616 (objc_start_method_definition): Same change.
12617 (objc_build_method_signature): Same change.
12618
977e30bc
NP
126192010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
12620
12621 * c-common.h (finish_file): Removed.
12622 (objc_write_global_declarations): New.
12623 * c-opts.c (c_common_parse_file): Do not call finish_file.
12624 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 12625
da57d1b9
NP
126262010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
12627
12628 Implemented parsing @synthesize and @dynamic for
12629 Objective-C/Objective-C++.
12630 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
12631 (objc_add_synthesize_declaration): New.
12632 (objc_add_dynamic_declaration): New.
12633 * c-common.c (c_common_reswords): Add synthesize and dynamic.
12634 * stub-objc.c (objc_add_synthesize_declaration): New.
12635 (objc_add_dynamic_declaration): New.
9faeb493 12636
0069111f
MM
126372010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
12638
12639 PR target/46041
12640 * c-cppbuiltin.c (mode_has_fma): Move function here from
12641 builtins.c. Don't use the fma optab, instead just use the
12642 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
12643 using -save-temps.
12644
e426b47b
NP
126452010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
12646
12647 Merge from 'apple/trunk' branch on FSF servers.
0069111f 12648
3f8257db 12649 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
e426b47b 12650
9faeb493 12651 Radar 4330422
e426b47b
NP
12652 * c-common.h (objc_non_volatilized_type): New declaration
12653 * stub-objc.c (objc_non_volatilized_type): New stub.
12654
90fbfdc3
NP
126552010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
12656
e426b47b 12657 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3 12658
ab20d992 12659 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
90fbfdc3 12660
9faeb493 12661 Radar 4133425
90fbfdc3 12662 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 12663 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 12664
c37d8c30
IS
126652010-10-17 Iain Sandoe <iains@gcc.gnu.org>
12666
12667 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
12668 * c-common.h (enum rid): Add RID_AT_PACKAGE.
12669 (objc_ivar_visibility_kind): New enum.
12670 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 12671 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
12672 visibility enum.
12673
1b1562a5
MM
126742010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
12675
12676 * c-cppbuiltin.c (builtin_define_float_constants): Emit
12677 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
12678 has the appropriate fma builtins.
12679 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
12680
668ea4b1
IS
126812010-10-14 Iain Sandoe <iains@gcc.gnu.org>
12682
1b1562a5 12683 merge from FSF apple 'trunk' branch.
3f8257db 12684 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 12685
668ea4b1
IS
12686 Radars 4436866, 4505126, 4506903, 4517826
12687 * c-common.c (c_common_resword): Define @property and its attributes.
12688 * c-common.h: Define property attribute enum entries.
12689 (OBJC_IS_PATTR_KEYWORD): New.
12690 (objc_property_attribute_kind): New enum.
12691 Declare objc_set_property_attr (), objc_add_property_variable (),
12692 objc_build_getter_call () and objc_build_setter_call ().
12693 * stub-objc.c (objc_set_property_attr): New stub.
12694 (objc_add_property_variable): Likewise.
12695 (objc_build_getter_call): Likewise.
12696 (objc_build_setter_call) Likewise.
1b1562a5 12697
a1178b30
IS
126982010-10-13 Iain Sandoe <iains@gcc.gnu.org>
12699
1b1562a5 12700 merge from FSF apple 'trunk' branch.
ab20d992 12701 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
a1178b30
IS
12702
12703 Radar 3803157 (method attributes)
12704 * c-common.c (handle_deprecated_attribute): Recognize
12705 objc methods as valid declarations.
12706 * c-common.h: Declare objc_method_decl ().
1b1562a5 12707 * stub-objc.c (objc_method_decl): New stub.
a1178b30 12708
a75bfaa6
JM
127092010-10-08 Joseph Myers <joseph@codesourcery.com>
12710
12711 * c-common.c (parse_optimize_options): Call
12712 decode_cmdline_options_to_array_default_mask before
12713 decode_options. Update arguments to decode_options.
12714 * c-common.h (c_common_init_options_struct): Declare.
12715 * c-opts.c (c_common_init_options_struct): New. Split out from
12716 c_common_init_options.
12717
f05b9d93
NP
127182010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
12719
12720 Implemented fast enumeration for Objective-C.
12721 * c-common.h (objc_finish_foreach_loop): New.
12722 * stub-objc.c (objc_finish_foreach_loop): New.
12723
1ebe4b4f
JM
127242010-10-05 Joseph Myers <joseph@codesourcery.com>
12725
12726 * c-common.h (struct diagnostic_context): Don't declare here.
12727 (c_common_initialize_diagnostics): Declare using
12728 diagnostic_context typedef.
12729 * c-opts.c (c_common_handle_option): Pass global_dc to
12730 handle_generated_option.
12731
d4d24ba4
JM
127322010-10-04 Joseph Myers <joseph@codesourcery.com>
12733
12734 * c-opts.c (c_common_handle_option): Pass &global_options_set to
12735 handle_generated_option.
12736
478a1c5b
ILT
127372010-10-03 Ian Lance Taylor <iant@google.com>
12738
12739 * c.opt (-fplan9-extensions): New option.
12740
82a1c2fe
FXC
127412010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12742
12743 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
12744 Remove.
12745 (c_cpp_builtins): Call functions from cppbuiltin.c instead
12746 of duplicating code.
12747
92902b1b
IS
127482010-09-30 Iain Sandoe <iains@gcc.gnu.org>
12749
12750 * c-common.c: Add two new entries for @optional
12751 and @required keywords.
12752
12753 merge from FSF 'apple/trunk' branch.
3f8257db 12754 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
92902b1b
IS
12755
12756 Radar 4386773
12757 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
12758 objective-c keywords.
12759 (objc_set_method_opt): New declaration.
12760 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 12761
46625112
JM
127622010-09-30 Joseph Myers <joseph@codesourcery.com>
12763
12764 * c-common.c (handle_optimize_attribute): Pass &global_options to
12765 cl_optimization_save and cl_optimization_restore.
12766 * c-opts.c (c_common_handle_option): Pass &global_options to
12767 handle_generated_option.
12768 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
12769 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
12770 &global_options to cl_optimization_restore.
12771
49b91f05
NP
127722010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
12773
12774 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
12775 Objective-C/Objective-C++ keywords.
12776
13ed556f 127772010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 12778
9faeb493
UB
12779 Merge from 'apple/trunk' branch on FSF servers.
12780
3f8257db 12781 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
a6341d57
NP
12782
12783 Radar 4281748
12784 * c-common.h (objc_check_global_decl): New declaration.
12785 * stub-objc.c (objc_check_global_decl): New stub.
12786
f0036cca
JM
127872010-09-29 Joseph Myers <joseph@codesourcery.com>
12788
12789 * c.opt: Don't use VarExists.
12790
e3339d0f
JM
127912010-09-29 Joseph Myers <joseph@codesourcery.com>
12792
12793 * c-common.c (c_cpp_error): Update names of diagnostic_context
12794 members.
12795 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
12796 cl_optimization members.
12797 * c-opts.c (warning_as_error_callback, c_common_handle_option,
12798 sanitize_cpp_opts, finish_options): Update names of cpp_options
12799 members.
12800
1973201f
NP
128012010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
12802
12803 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
12804 (objc_is_reserved_word): Removed.
12805 * c-common.c: Updated comments.
12806 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
12807 objc_is_reserved_word.
12808 * stub-objc.c (objc_is_reserved_word): Removed.
12809
f7e71da5
IS
128102010-09-28 Iain Sandoe <iains@gcc.gnu.org>
12811
9faeb493 12812 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
12813 include attributes.
12814 (objc_start_method_definition): Likewise.
12815 (objc_build_keyword_decl): Likewise.
12816 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
12817 (objc_start_method_definition): Likewise.
12818 (objc_build_keyword_decl): Likewise.
12819
c165dca7
IS
128202010-09-28 Iain Sandoe <iains@gcc.gnu.org>
12821
12822 * c-common.h (objc_start_class_interface): Adjust prototype.
12823 (objc_start_category_interface): Likewise.
12824 (objc_start_protocol): Likewise.
12825 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
12826 (objc_start_class_interface): Likewise.
12827 (objc_start_category_interface): Likewise.
12828
7458026b
ILT
128292010-09-27 Ian Lance Taylor <iant@google.com>
12830
12831 * c-common.c (c_common_attribute_table): Add no_split_stack.
12832 (handle_no_split_stack_attribute): New static function.
12833
b581b85b
NP
128342010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
12835
9faeb493 12836 Merge from 'apple/trunk' branch on FSF servers.
b581b85b 12837
3f8257db 12838 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
b581b85b 12839
9faeb493 12840 Radar 4229905
b581b85b
NP
12841 * c-common.h (objc_have_common_type): New declaration.
12842 * stub-objc.c (objc_have_common_type): New stub.
12843
12844 2005-06-22 Ziemowit Laski <zlaski@apple.com>
12845
12846 Radar 4154928
12847 * c-common.h (objc_common_type): New prototype.
9faeb493 12848 * stub-objc.c (objc_common_type): New stub.
b581b85b 12849
46a4da10
JH
128502010-09-24 Jan Hubicka <jh@suse.cz>
12851
12852 * c-common.c (handle_leaf_attribute): New function.
12853 (struct attribute_spec c_common_att): Add leaf.
12854
e200444e
JM
128552010-09-22 Joseph Myers <joseph@codesourcery.com>
12856
12857 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
12858 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
12859 -dump, -dump=, -imacros, -imacros=, -include, -include=,
12860 -include-barrier, -include-directory, -include-directory=,
12861 -include-directory-after, -include-directory-after=,
12862 -include-prefix, -include-prefix=, -include-with-prefix,
12863 -include-with-prefix=, -include-with-prefix-after,
12864 -include-with-prefix-after=, -include-with-prefix-before,
12865 -include-with-prefix-before=, -no-integrated-cpp,
12866 -no-line-commands, -no-standard-includes, -no-warnings, -output,
12867 -output=, -pedantic, -pedantic-errors, -preprocess,
12868 -print-missing-file-dependencies, -trace-includes, -traditional,
12869 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
12870 -user-dependencies, -verbose, -write-dependencies,
12871 -write-user-dependencies, no-integrated-cpp, traditional): New.
12872
29a80ea6
NP
128732010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
12874
12875 PR objc/23710
ac1fc2fc
NP
12876 * c-common.h (objc_start_method_definition): Return bool instead
12877 of void.
12878 * stub-objc.c (objc_start_method_definition): Return bool instead
12879 of void.
12880
128812010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
12882
12883 PR objc/25965
12884 * c-common.h (objc_get_interface_ivars): New declaration.
12885 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 12886
de621752
ILT
128872010-09-15 Ian Lance Taylor <iant@google.com>
12888
12889 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 12890 messages. Remove period at end of warning message.
de621752 12891
ba885ec5
NS
128922010-09-09 Nathan Sidwell <nathan@codesourcery.com>
12893
12894 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
12895 (handle_alias_attribute): ... here.
12896 (handle_ifunc_attribute): New.
12897
c5ee1358
MM
128982010-09-06 Mark Mitchell <mark@codesourcery.com>
12899
12900 * c-common.h (do_warn_double_promotion): Declare.
12901 * c-common.c (do_warn_double_promotion): Define.
12902
0a0b3574
MM
129032010-09-05 Mark Mitchell <mark@codesourcery.com>
12904
12905 * c.opt (Wdouble-promotion): New.
12906
d1779886
JM
129072010-09-02 Joseph Myers <joseph@codesourcery.com>
12908
12909 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
12910 fvtable-thunks, fxref): Mark no longer supported in help text.
12911
2d2bd949
JM
129122010-09-02 Joseph Myers <joseph@codesourcery.com>
12913
12914 * c.opt (Wimport, fall-virtual, falt-external-templates,
12915 fdefault-inline, fenum-int-equiv, fexternal-templates,
12916 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
12917 fname-mangling-version-, fnew-abi, fnonnull-objects,
12918 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
12919 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
12920 applicable.
12921 (fhandle-exceptions): Mark with Alias and Warn.
12922 * c-opts.c (c_common_handle_option): Don't handle options marked
12923 as ignored.
12924
5de8299c
JM
129252010-09-02 Joseph Myers <joseph@codesourcery.com>
12926
12927 * c.opt (Wcomments, Werror-implicit-function-declaration,
12928 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
12929 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
12930 aliases.
12931 * c-common.c (option_codes): Use OPT_Wcomment instead of
12932 OPT_Wcomments.
12933 * c-opts.c (warning_as_error_callback, c_common_handle_option):
12934 Don't handle options marked as aliases.
12935
0ceb0201
RG
129362010-08-25 Richard Guenther <rguenther@suse.de>
12937
12938 * c-common.c (c_common_get_alias_set): Remove special
12939 handling for pointers.
12940
ac47786e
NF
129412010-08-20 Nathan Froyd <froydnj@codesourcery.com>
12942
12943 * c-common.c: Use FOR_EACH_VEC_ELT.
12944 * c-gimplify.c: Likewise.
12945 * c-pragma.c: Likewise.
12946
c878765b
JM
129472010-08-16 Joseph Myers <joseph@codesourcery.com>
12948
12949 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
12950 RejectDriver.
12951 (MMDX): Change back to MMD. Mark NoDriverArg instead of
12952 RejectDriver.
12953 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
12954 instead of OPT_MDX and OPT_MMDX.
12955
603349bf
JM
129562010-08-16 Joseph Myers <joseph@codesourcery.com>
12957
12958 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
12959
644fa7ac
JM
129602010-08-12 Joseph Myers <joseph@codesourcery.com>
12961
12962 * c.opt (MD, MMD): Change to MDX and MMDX.
12963 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
12964
481e1176
JM
129652010-08-11 Joseph Myers <joseph@codesourcery.com>
12966
12967 * c-opts.c (c_common_handle_option): Call handle_generated_option
12968 instead of handle_option.
12969
ac8dc9f7
NF
129702010-08-08 Nathan Froyd <froydnj@codesourcery.com>
12971
12972 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
12973 (maybe_apply_renaming_pragma): Delete unneeded declarations.
12974
4f8c876d
NF
129752010-08-08 Nathan Froyd <froydnj@codesourcery.com>
12976
12977 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
12978 (pending_redefine_extname): Change type to a VEC.
12979 (add_to_renaming_pragma_list): Update for new type of
12980 pending_redefine_extname.
ac8dc9f7 12981 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 12982
3b0c690e
AC
129832010-08-04 Arnaud Charlet <charlet@adacore.com>
12984
12985 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
12986 visited.
12987 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
12988 decide whether a type has already been declared/seen.
12989 Do not go to the original type.
12990 (dump_nested_types): New parameter forward.
12991 Generate forward declaration if needed and mark type as visited.
12992 (print_ada_declaration): Call dump_nested_types if not already done.
12993 Mark types as visited.
12994
1890bccc
JM
129952010-08-03 Joseph Myers <joseph@codesourcery.com>
12996
12997 * c.opt (-print-pch-checksum): Remove option.
12998 * c-opts.c (c_common_handle_option): Don't handle
12999 OPT_print_pch_checksum.
13000
5f20c657
JM
130012010-07-27 Joseph Myers <joseph@codesourcery.com>
13002
13003 * c-common.h (c_common_handle_option): Update prototype and return
13004 value type.
13005 * c-opts.c (c_common_handle_option): Update prototype and return
13006 value type. Update calls to handle_option and
13007 enable_warning_as_error.
13008
f551f80c
JJ
130092010-07-27 Jakub Jelinek <jakub@redhat.com>
13010
13011 PR c/45079
13012 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
13013
61ff2bdc
JM
130142010-07-27 Joseph Myers <joseph@codesourcery.com>
13015
13016 * c-common.h (c_common_missing_argument): Remove.
13017 * c-opts.c (c_common_missing_argument): Remove.
13018 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
13019 idirafter, imacros, include, isysroot, isystem, iquote): Add
13020 MissingArgError.
13021 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
13022
7a9bf9a4
JM
130232010-07-27 Joseph Myers <joseph@codesourcery.com>
13024
13025 * c-common.h (c_common_option_lang_mask,
13026 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
13027 New.
13028 (c_common_init_options): Update prototype.
13029 * c-opts.c (c_common_option_lang_mask): New.
13030 (c_common_initialize_diagnostics): Split out of
13031 c_common_init_options.
13032 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
13033 New.
13034 (c_common_init_options): Update prototype. Use decoded options in
13035 search for -lang-asm.
13036
910ad8de
NF
130372010-07-15 Nathan Froyd <froydnj@codesourcery.com>
13038
13039 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
13040 * c-format.c: Likewise.
13041
718f9c0f
MLI
130422010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
13043
13044 * c-common.h: Include diagnostic-core.h. Error if already
13045 included.
13046 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
13047
4d451982
MLI
130482010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
13049
adfac8df 13050 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
13051 Do not include expr.h
13052 (vector_mode_valid_p): Move here.
13053
119fe915
SB
130542010-06-21 DJ Delorie <dj@redhat.com>
13055
13056 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
13057 allow these pragmas anywhere.
13058
130592010-06-14 Jakub Jelinek <jakub@redhat.com>
13060
13061 PR bootstrap/44509
13062 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
13063 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
13064 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
13065 ggc_strdup instead of xstrdup.
13066
130672010-06-10 Jakub Jelinek <jakub@redhat.com>
13068
13069 * c-cppbuiltin.c: Include cpp-id-data.h.
13070 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
13071 (lazy_hex_fp_value): New function.
13072 (builtin_define_with_hex_fp_value): Provide definitions lazily.
13073
6662d794
MLI
130742010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
13075
13076 * c-gimplify.c: Do not include tree-flow.h
13077
38f8b050
JR
130782010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
13079
13080 PR other/44034
13081 * c-common.c: Rename targetm member:
13082 targetm.enum_va_list -> targetm.enum_va_list_p
13083
9589f23e
AS
130842010-06-28 Anatoly Sokolov <aesok@post.ru>
13085
13086 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
13087
3b06d379
SB
130882010-06-28 Steven Bosscher <steven@gcc.gnu.org>
13089
13090 * c-cppbuiltin.c: Do not include except.h.
13091
d166d4c3
AK
130922010-06-24 Andi Kleen <ak@linux.intel.com>
13093
9faeb493
UB
13094 * c-common.c (warn_for_omitted_condop): New.
13095 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 13096
70cb8be6
JM
130972010-06-21 Joseph Myers <joseph@codesourcery.com>
13098
13099 * c.opt (lang-objc): Remove.
13100 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
13101
a4c97feb
JR
131022010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
13103
13104 * c-opts.c: Include "tm_p.h".
13105
6e2f1956
JM
131062010-06-20 Joseph Myers <joseph@codesourcery.com>
13107
13108 * c-common.c (parse_optimize_options): Update call to
13109 decode_options.
13110
bc87224e
NF
131112010-06-18 Nathan Froyd <froydnj@codesourcery.com>
13112
13113 * c-common.c (record_types_used_by_current_var_decl): Adjust for
13114 new type of types_used_by_cur_var_decl.
13115
b49cf425
JR
131162010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
13117
13118 PR bootstrap/44512
13119 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
13120 for C++ standard compliance.
13121
59f9c2ed
JM
131222010-06-16 Jason Merrill <jason@redhat.com>
13123
13124 * c.opt: Add -Wnoexcept.
13125
33766b66
RG
131262010-06-16 Richard Guenther <rguenther@suse.de>
13127
13128 PR c/44555
13129 * c-common.c (c_common_truthvalue_conversion): Remove
13130 premature and wrong optimization concering ADDR_EXPRs.
13131
eff7e30c
AC
131322010-06-15 Arnaud Charlet <charlet@adacore.com>
13133
13134 * c-ada-spec.c (dump_sloc): Remove column info.
13135 (is_simple_enum): New function.
13136 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
13137 enum types when relevant.
13138
6312e84d
MLI
131392010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
13140
9faeb493 13141 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
13142 location.
13143
1cb42611
JM
131442010-06-10 Joseph Myers <joseph@codesourcery.com>
13145
13146 * c-opts.c (c_common_handle_option): Don't handle
13147 OPT_fshow_column.
13148
a9429e29
LB
131492010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
13150
13151 * c-pragma.c (push_alignment): Use typed GC allocation.
13152 (handle_pragma_push_options): Likewise.
13153
13154 * c-common.c (parse_optimize_options): Likewise.
13155
13156 * c-common.h (struct sorted_fields_type): Add variable_size GTY
13157 option.
13158
5498f011
JM
131592010-06-07 Joseph Myers <joseph@codesourcery.com>
13160
13161 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
13162 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
13163 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
13164 flag_signed_bitfields, warn_strict_null_sentinel,
13165 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
13166 flag_gen_declaration, flag_no_gnu_keywords,
13167 flag_implement_inlines, flag_implicit_templates,
13168 flag_implicit_inline_templates, flag_optional_diags,
13169 flag_elide_constructors, flag_default_inline, flag_rtti,
13170 flag_conserve_space, flag_access_control, flag_check_new,
13171 flag_new_for_scope, flag_weak, flag_working_directory,
13172 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
13173 flag_enforce_eh_specs, flag_threadsafe_statics,
13174 flag_pretty_templates): Remove.
13175 * c-common.h (flag_preprocess_only, flag_nil_receivers,
13176 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
13177 flag_replace_objc_classes, flag_undef, flag_no_builtin,
13178 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
13179 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
13180 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
13181 flag_no_gnu_keywords, flag_implement_inlines,
13182 flag_implicit_templates, flag_implicit_inline_templates,
13183 flag_optional_diags, flag_elide_constructors, flag_default_inline,
13184 flag_rtti, flag_conserve_space, flag_access_control,
13185 flag_check_new, flag_new_for_scope, flag_weak,
13186 flag_working_directory, flag_use_cxa_atexit,
13187 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
13188 flag_threadsafe_statics, flag_pretty_templates,
13189 warn_strict_null_sentinel): Remove.
13190 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
13191 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
13192 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
13193 fimplicit-inline-templates, fimplicit-templates,
13194 flax-vector-conversions, fms-extensions, fnil-receivers,
13195 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
13196 frtti, fshort-double, fshort-enums, fshort-wchar,
13197 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
13198 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
13199 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
13200 gen-decls, undef): Use Var.
13201 (fdefault-inline, foptional-diags): Document as doing nothing.
13202 * c-opts.c (c_common_handle_option): Remove cases for options now
13203 using Var. Mark ignored options as such.
13204
39dabefd
SB
132052010-06-05 Steven Bosscher <steven@gcc.gnu.org>
13206
9faeb493 13207 * c-common.c: Moved to here from parent directory.
39dabefd
SB
13208 * c-common.def: Likewise.
13209 * c-common.h: Likewise.
13210 * c-cppbuiltin.c: Likewise.
13211 * c-dump.c: Likewise.
13212 * c-format.c: Likewise.
13213 * c-format.h : Likewise.
13214 * c-gimplify.c: Likewise.
13215 * c-lex.c: Likewise.
13216 * c-omp.c: Likewise.
13217 * c.opt: Likewise.
13218 * c-opts.c: Likewise.
13219 * c-pch.c: Likewise.
13220 * c-ppoutput.c: Likewise.
13221 * c-pragma.c: Likewise.
13222 * c-pragma.h: Likewise.
13223 * c-pretty-print.c: Likewise.
13224 * c-pretty-print.h: Likewise.
13225 * c-semantics.c: Likewise.
13226 * stub-objc.c: Likewise.
13227
13228 * c-common.c: Include gt-c-family-c-common.h.
13229 * c-pragma.c: Include gt-c-family-c-pragma.h.
13230\f
877e3c2a 13231Copyright (C) 2010-2022 Free Software Foundation, Inc.
39dabefd
SB
13232
13233Copying and distribution of this file, with or without modification,
13234are permitted in any medium without royalty provided the copyright
13235notice and this notice are preserved.
This page took 4.411742 seconds and 5 git commands to generate.