]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/c-family/ChangeLog
Daily bump.
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
1 2022-01-10 Richard Biener <rguenther@suse.de>
2
3 PR middle-end/101530
4 * c-common.c (c_build_shufflevector): Wrap the BIT_FIELD_REF
5 in a TARGET_EXPR to force a temporary.
6
7 2022-01-06 Marek Polacek <polacek@redhat.com>
8
9 PR c++/103758
10 * c-pragma.c (handle_pragma_scalar_storage_order): Use %< %> in
11 diagnostic messages.
12 (handle_pragma_diagnostic): Likewise.
13
14 2022-01-03 Marek Polacek <polacek@redhat.com>
15
16 PR c++/103758
17 * c-format.c (check_tokens): Accept "decl-specifier*".
18
19 2022-01-03 Jakub Jelinek <jakub@redhat.com>
20
21 PR c++/103600
22 * c-attribs.c (handle_non_overlapping_attribute): New function.
23 (c_common_attribute_table): Add "non overlapping" attribute.
24
25 2021-12-30 Jakub Jelinek <jakub@redhat.com>
26
27 PR c++/103012
28 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Perform
29 cpp_define_unused/cpp_undef calls with forced token locations
30 BUILTINS_LOCATION.
31
32 2021-12-27 Patrick Palka <ppalka@redhat.com>
33
34 PR c++/103700
35 * c-common.c (pointer_int_sum): When quiet, return
36 error_mark_node for an incomplete pointed-to type and don't
37 call size_in_bytes_loc.
38
39 2021-12-17 Jason Merrill <jason@redhat.com>
40
41 PR c++/103681
42 * c-opts.c (c_common_post_options): Update defaults.
43
44 2021-12-16 Martin Liska <mliska@suse.cz>
45
46 PR target/103709
47 * c-pragma.c (handle_pragma_pop_options): Do not check
48 global options modification when an error is seen in parsing
49 of options (pragmas or attributes).
50
51 2021-12-12 Jonathan Wakely <jwakely@redhat.com>
52
53 * known-headers.cc: Define INCLUDE_MEMORY instead of
54 INCLUDE_UNIQUE_PTR.
55 * name-hint.h: Likewise.
56 (class name_hint): Use std::unique_ptr instead of gnu::unique_ptr.
57
58 2021-12-09 Jakub Jelinek <jakub@redhat.com>
59
60 PR pch/71934
61 * c-pch.c (c_common_no_more_pch): Pass a temporary void * var
62 with NULL value instead of NULL to host_hooks.gt_pch_use_address.
63
64 2021-12-03 Jakub Jelinek <jakub@redhat.com>
65
66 PR pch/71934
67 * c-pch.c (struct c_pch_validity): Remove pch_init member.
68 (pch_init): Don't initialize v.pch_init.
69 (c_common_valid_pch): Don't warn and punt if .text addresses change.
70
71 2021-12-01 Jason Merrill <jason@redhat.com>
72
73 PR c++/103310
74 * c.opt: Add -fconstexpr-fp-except.
75
76 2021-11-29 Richard Biener <rguenther@suse.de>
77
78 * c-format.c (check_format_string): Remove spurious
79 gcc_unreachable.
80
81 2021-11-29 Richard Biener <rguenther@suse.de>
82
83 * c-opts.c (c_common_post_options): Remove unreachable return.
84 * c-pragma.c (handle_pragma_target): Likewise.
85 (handle_pragma_optimize): Likewise.
86
87 2021-11-25 Jakub Jelinek <jakub@redhat.com>
88
89 PR c++/102611
90 * c-opts.c (c_common_post_options): Enable -Wcomma-subscript by
91 default for C++23 regardless of warn_deprecated.
92 * c-cppbuiltin.c (c_cpp_builtins): Predefine
93 __cpp_multidimensional_subscript=202110L for C++23.
94
95 2021-11-23 Martin Sebor <msebor@redhat.com>
96
97 PR middle-end/88232
98 * c.opt: Add -Winfinite-recursion.
99
100 2021-11-19 Martin Sebor <msebor@redhat.com>
101
102 PR c++/33925
103 PR c/102867
104 * c-common.c (decl_with_nonnull_addr_p): Call maybe_nonzero_address
105 and improve handling tof defined symbols.
106
107 2021-11-19 Martin Liska <mliska@suse.cz>
108
109 Revert:
110 2021-11-18 Martin Liska <mliska@suse.cz>
111
112 * c-gimplify.c (genericize_c_loop): Use option directly.
113
114 2021-11-18 Matthias Kretz <m.kretz@gsi.de>
115
116 * c-common.c (c_common_reswords): Add __builtin_assoc_barrier.
117 * c-common.h (enum rid): Add RID_BUILTIN_ASSOC_BARRIER.
118
119 2021-11-18 Martin Liska <mliska@suse.cz>
120
121 * c-gimplify.c (genericize_c_loop): Use option directly.
122
123 2021-11-17 Martin Uecker <uecker@gcc.gnu.org>
124
125 PR c/91038
126 PR c/29970
127 * c-common.c (pointer_int_sum): Make sure pointer expressions
128 are evaluated first when the size expression depends on for
129 variably-modified types.
130
131 2021-11-17 Marek Polacek <polacek@redhat.com>
132
133 PR preprocessor/103026
134 * c.opt (Wbidi-chars, Wbidi-chars=): New option.
135
136 2021-11-16 Jason Merrill <jason@redhat.com>
137
138 * c-common.c (release_tree_vector): Only cache vecs smaller than
139 16 elements.
140
141 2021-11-15 Jason Merrill <jason@redhat.com>
142
143 * c.opt: Add -fimplicit-constexpr.
144 * c-cppbuiltin.c: Define __cpp_implicit_constexpr.
145 * c-opts.c (c_common_post_options): Disable below C++14.
146
147 2021-11-15 Jakub Jelinek <jakub@redhat.com>
148
149 * c-omp.c (c_omp_split_clauses) <case OMP_CLAUSE_THREAD_LIMIT>:
150 Duplicate to both OMP_TARGET and OMP_TEAMS.
151
152 2021-11-10 Marek Polacek <polacek@redhat.com>
153
154 PR c++/101940
155 * c-pragma.c (handle_pragma_diagnostic): Handle #pragma GCC diagnostic
156 ignored_attributes.
157
158 2021-11-09 David Malcolm <dmalcolm@redhat.com>
159
160 * c-pragma.c (GCC_BAD_AT): New macro.
161 (GCC_BAD2_AT): New macro.
162 (handle_pragma_pack): Use the location of the pertinent token when
163 issuing diagnostics about invalid constants/actions, and trailing
164 junk.
165 (handle_pragma_target): Likewise for non-string "GCC option".
166 (handle_pragma_message): Likewise for trailing junk.
167
168 2021-11-03 Joseph Myers <joseph@codesourcery.com>
169
170 PR c/103031
171 * c-common.c (convert_and_check): Add argument init_const. Call
172 convert_init if init_const.
173 * c-common.h (convert_and_check): Update prototype.
174 (convert_init): New prototype.
175
176 2021-11-01 David Malcolm <dmalcolm@redhat.com>
177
178 * c-lex.c (c_lex_with_flags): When complaining about non-printable
179 CPP_OTHER tokens, set the "escape on output" flag.
180
181 2021-10-27 Jakub Jelinek <jakub@redhat.com>
182
183 * c-omp.c (c_omp_check_loop_iv_r): Don't clear 3rd bit for
184 POINTER_PLUS_EXPR.
185 (c_omp_check_nonrect_loop_iv): Handle POINTER_PLUS_EXPR.
186 (c_omp_check_loop_iv): Set kind even if the iterator is non-integral.
187
188 2021-10-27 Jakub Jelinek <jakub@redhat.com>
189
190 PR c++/102854
191 * c-common.h (c_omp_check_loop_iv_exprs): Add enum tree_code argument.
192 * c-omp.c (c_omp_check_loop_iv_r): For trees other than decls,
193 TREE_VEC, PLUS_EXPR, MINUS_EXPR, MULT_EXPR, POINTER_PLUS_EXPR or
194 conversions temporarily clear the 3rd bit from d->kind while walking
195 subtrees.
196 (c_omp_check_loop_iv_exprs): Add CODE argument. Or in 4 into data.kind
197 if possibly non-rectangular.
198
199 2021-10-21 Jakub Jelinek <jakub@redhat.com>
200
201 PR middle-end/64888
202 * c-omp.c (c_omp_predefined_variable): Return true also for
203 ubsan_create_data created artificial variables.
204
205 2021-10-14 Joseph Myers <joseph@codesourcery.com>
206
207 * c-format.c (printf_length_specs, scanf_length_specs)
208 (print_char_table, scan_char_table): Support DFP formats for C2X.
209 * c-format.h (TEX_D32, TEX_D64, TEX_D128): Remove.
210 (T2X_D32, T2X_D64, T2X_D128): New macros.
211
212 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
213
214 * c-omp.c (c_omp_check_context_selector): Rename to
215 omp_check_context_selector and move to omp-general.c.
216 (c_omp_mark_declare_variant): Rename to omp_mark_declare_variant and
217 move to omp-general.c.
218
219 2021-10-12 Joseph Myers <joseph@codesourcery.com>
220
221 * c-format.c (print_char_table): Add %b and %B formats.
222 (scan_char_table): Add %b format.
223 * c-format.h (T2X_UI, T2X_UL, T2X_ULL, T2X_US, T2X_UC, T2X_ST)
224 (T2X_UPD, T2X_UIM): New macros.
225
226 2021-10-12 Jakub Jelinek <jakub@redhat.com>
227
228 * c-omp.c (c_finish_omp_atomic): Use
229 clear_padding_type_may_have_padding_p.
230
231 2021-10-08 Martin Liska <mliska@suse.cz>
232
233 * c-opts.c (c_common_post_options): Use new macro
234 OPTION_SET_P.
235
236 2021-10-07 Martin Liska <mliska@suse.cz>
237
238 * c-common.c (parse_optimize_options): Make
239 save_opt_decoded_options a pointer type.
240
241 2021-10-06 Jakub Jelinek <jakub@redhat.com>
242
243 PR tree-optimization/102571
244 * c-omp.c (c_finish_omp_atomic): Optimize the case where type has
245 padding, but the non-padding bits are contiguous set of bytes
246 by adjusting the memcmp call arguments instead of emitting
247 __builtin_clear_padding and then comparing all the type's bytes.
248
249 2021-10-06 Jakub Jelinek <jakub@redhat.com>
250
251 PR c++/102612
252 * c-cppbuiltin.c (c_cpp_builtins): For -std=c++23 predefine
253 __cpp_constexpr to 202110L rather than 201907L.
254
255 2021-10-04 Marek Polacek <polacek@redhat.com>
256
257 PR c++/97573
258 * c-common.h (do_warn_array_compare): Declare.
259 * c-warn.c (do_warn_array_compare): New.
260 * c.opt (Warray-compare): New option.
261
262 2021-10-02 Iain Sandoe <iain@sandoe.co.uk>
263
264 * c-format.c: Remove a test of TARGET_FORMAT_TYPES with
265 NULL, this is not needed.
266
267 2021-10-01 Martin Sebor <msebor@redhat.com>
268
269 PR c/102103
270 * c-common.c (decl_with_nonnull_addr_p): Handle members.
271 Check and perform warning suppression.
272 (c_common_truthvalue_conversion): Enhance warning suppression.
273
274 2021-10-01 Martin Liska <mliska@suse.cz>
275
276 PR target/102552
277 * c-common.c (parse_optimize_options): decoded_options[0] is
278 used for program name, so merged_decoded_options should also
279 respect that.
280
281 2021-10-01 Jakub Jelinek <jakub@redhat.com>
282 Richard Biener <rguenther@suse.de>
283
284 PR sanitizer/102515
285 * c-ubsan.c (ubsan_instrument_division): Check the right
286 flag_sanitize_recover bit, depending on which sanitization
287 is done. Sanitize INT_MIN / -1 under SANITIZE_SI_OVERFLOW
288 rather than SANITIZE_DIVIDE. If both SANITIZE_SI_OVERFLOW
289 and SANITIZE_DIVIDE is enabled, neither check is known
290 to be false and flag_sanitize_recover bits for those two
291 aren't the same, emit both __ubsan_handle_divrem_overflow
292 and __ubsan_handle_divrem_overflow_abort calls.
293
294 2021-10-01 Martin Liska <mliska@suse.cz>
295
296 * c-common.c (parse_optimize_options): Combine optimize
297 options with what was provided on the command line.
298
299 2021-10-01 Jakub Jelinek <jakub@redhat.com>
300
301 * c-omp.c (c_omp_split_clauses): Also copy
302 OMP_CLAUSE_ORDER_REPRODUCIBLE.
303
304 2021-09-27 Martin Liska <mliska@suse.cz>
305
306 * c-opts.c (c_common_init_options_struct): Set also
307 x_flag_default_complex_method.
308
309 2021-09-22 Jakub Jelinek <jakub@redhat.com>
310
311 * c-omp.c (c_omp_split_clauses): Copy over OMP_CLAUSE_ALLOCATE_ALIGN.
312
313 2021-09-20 Matthias Kretz <m.kretz@gsi.de>
314
315 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define or
316 undefine __RECIPROCAL_MATH__, __NO_SIGNED_ZEROS__,
317 __NO_TRAPPING_MATH__, __ASSOCIATIVE_MATH__, and
318 __ROUNDING_MATH__ according to the new optimization flags.
319
320 2021-09-18 Jakub Jelinek <jakub@redhat.com>
321
322 * c-omp.c (c_omp_split_clauses): Split order clause also to
323 distribute construct. Copy over OMP_CLAUSE_ORDER_UNCONSTRAINED.
324
325 2021-09-17 Jakub Jelinek <jakub@redhat.com>
326
327 * c-omp.c (c_finish_omp_atomic): Avoid creating
328 TARGET_EXPR if test is true, use create_tmp_var_raw instead of
329 create_tmp_var and add a zero initializer to TARGET_EXPRs that
330 had NULL initializer. When omitting operands after v = x,
331 use type of v rather than type of x. Fix type of vtmp
332 TARGET_EXPR.
333
334 2021-09-13 Jason Merrill <jason@redhat.com>
335
336 * c.opt: Add -Winterference-size.
337 * c-cppbuiltin.c (cpp_atomic_builtins): Add __GCC_DESTRUCTIVE_SIZE
338 and __GCC_CONSTRUCTIVE_SIZE.
339
340 2021-09-10 Jakub Jelinek <jakub@redhat.com>
341
342 * c-common.h (c_finish_omp_atomic): Add r and weak arguments.
343 * c-omp.c: Include gimple-fold.h.
344 (c_finish_omp_atomic): Add r and weak arguments. Add support for
345 OpenMP 5.1 atomics.
346
347 2021-09-09 qing zhao <qing.zhao@oracle.com>
348
349 * c-attribs.c (handle_uninitialized_attribute): New function.
350 (c_common_attribute_table): Add "uninitialized" attribute.
351
352 2021-09-08 liuhongt <hongtao.liu@intel.com>
353
354 * c-common.c (excess_precision_mode_join): Update below comments.
355 (c_ts18661_flt_eval_method): Set excess_precision_type to
356 EXCESS_PRECISION_TYPE_FLOAT16 when -fexcess-precision=16.
357 * c-cppbuiltin.c (cpp_atomic_builtins): Update below comments.
358 (c_cpp_flt_eval_method_iec_559): Set excess_precision_type to
359 EXCESS_PRECISION_TYPE_FLOAT16 when -fexcess-precision=16.
360
361 2021-09-07 Marcel Vollweiler <marcel@codesourcery.com>
362
363 * c-omp.c (c_finish_omp_flush): Handle MEMMODEL_SEQ_CST.
364
365 2021-09-03 Eric Botcazou <ebotcazou@adacore.com>
366
367 * c-ada-spec.c (dump_ads): Generate pragmas to disable style checks
368 and -gnatwu warning for the package specification.
369
370 2021-09-01 Iain Sandoe <iain@sandoe.co.uk>
371
372 * c-attribs.c (handle_unavailable_attribute): New.
373
374 2021-08-30 Jason Merrill <jason@redhat.com>
375
376 * c.opt: Add -Wmissing-requires.
377
378 2021-08-25 Lewis Hyatt <lhyatt@gmail.com>
379
380 PR other/93067
381 * c-opts.c (c_common_input_charset_cb): New function.
382 (c_common_post_options): Call new function
383 diagnostic_initialize_input_context().
384
385 2021-08-20 Tobias Burnus <tobias@codesourcery.com>
386
387 * c-format.c (gcc_gfc_length_specs): Add 'll' and 'w'.
388 (gcc_gfc_char_table): Add T9L_LL and T9L_ULL to
389 "di" and "u", respecitively; fill with BADLEN to match
390 size of 'types'.
391 (get_init_dynamic_hwi): Split off from ...
392 (init_dynamic_diag_info): ... here. Call it.
393 (init_dynamic_gfc_info): Call it.
394
395 2021-08-20 Jakub Jelinek <jakub@redhat.com>
396
397 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_ERROR.
398 * c-pragma.c (omp_pragmas): Add error directive.
399 * c-omp.c (omp_directives): Uncomment error directive entry.
400
401 2021-08-18 Jakub Jelinek <jakub@redhat.com>
402
403 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_NOTHING.
404 * c-pragma.c (omp_pragmas): Add nothing directive.
405 * c-omp.c (omp_directives): Uncomment nothing directive entry.
406
407 2021-08-17 Jakub Jelinek <jakub@redhat.com>
408
409 PR c++/101539
410 * c-common.h (enum rid): Add RID_IS_LAYOUT_COMPATIBLE.
411 * c-common.c (c_common_reswords): Add __is_layout_compatible.
412
413 2021-08-17 Matt Jacobson <mhjacobson@me.com>
414
415 * c-opts.c (c_common_post_options): Default to
416 flag_objc_sjlj_exceptions = 1 only when flag_objc_abi < 2.
417
418 2021-08-17 Jakub Jelinek <jakub@redhat.com>
419
420 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_SCOPE.
421 * c-pragma.c (omp_pragmas): Add scope construct.
422 * c-omp.c (omp_directives): Uncomment scope directive entry.
423
424 2021-08-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
425
426 * c-cppbuiltin.c (c_cpp_builtins): Define
427 __LIBGCC_GCOV_TYPE_SIZE if flag_building_libgcc is true.
428
429 2021-08-12 Jakub Jelinek <jakub@redhat.com>
430
431 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_MASKED.
432 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FILTER.
433 * c-pragma.c (omp_pragmas_simd): Add masked construct.
434 * c-common.h (enum c_omp_clause_split): Add C_OMP_CLAUSE_SPLIT_MASKED
435 enumerator.
436 (c_finish_omp_masked): Declare.
437 * c-omp.c (c_finish_omp_masked): New function.
438 (c_omp_split_clauses): Handle combined masked constructs.
439
440 2021-07-30 Jakub Jelinek <jakub@redhat.com>
441
442 PR c++/101539
443 * c-common.h (enum rid): Add RID_IS_POINTER_INTERCONVERTIBLE_BASE_OF.
444 * c-common.c (c_common_reswords): Add
445 __is_pointer_interconvertible_base_of.
446
447 2021-07-29 Richard Biener <rguenther@suse.de>
448
449 PR c/101512
450 * c-common.c (c_common_mark_addressable_vec): Look through
451 C_MAYBE_CONST_EXPR even if not at the toplevel.
452
453 2021-07-27 Martin Sebor <msebor@redhat.com>
454
455 PR c/101585
456 * c-warn.c (warn_parm_ptrarray_mismatch): Use OEP_DECL_NAME.
457
458 2021-07-23 Jakub Jelinek <jakub@redhat.com>
459
460 * c-lex.c (c_common_has_attribute): Call canonicalize_attr_name also
461 on attr_id. Return 1 for omp::directive or omp::sequence in C++11
462 and later.
463
464 2021-07-23 Jakub Jelinek <jakub@redhat.com>
465
466 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP__START_ and
467 PRAGMA_OMP__LAST_ enumerators.
468
469 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
470 Joseph Myers <joseph@codesourcery.com>
471 Cesar Philippidis <cesar@codesourcery.com>
472
473 * c-pragma.h (pragma_omp_clause): Add 'PRAGMA_OACC_CLAUSE_NOHOST'.
474
475 2021-07-20 Martin Sebor <msebor@redhat.com>
476
477 * c-common.c (c_build_shufflevector): Adjust by-value argument to
478 by-const-reference.
479 * c-common.h (c_build_shufflevector): Same.
480
481 2021-07-16 Andrew Pinski <apinski@marvell.com>
482
483 PR c/101453
484 * c-common.c (parse_optimize_options): Use the correct
485 size for buffer.
486
487 2021-07-15 Martin Sebor <msebor@redhat.com>
488
489 PR c/101289
490 PR c/97548
491 * c-warn.c (warn_parm_array_mismatch): Use OEP_DECL_NAME.
492
493 2021-07-14 Jason Merrill <jason@redhat.com>
494
495 * c-opts.c (c_common_post_options): Set -fdelete-dead-exceptions.
496
497 2021-07-06 Martin Sebor <msebor@redhat.com>
498
499 * c-format.c (gcc_tdiag_char_table): Remove support for %G and %K.
500 (gcc_cdiag_char_table): Same.
501 (gcc_cxxdiag_char_table): Same.
502
503 2021-07-02 Jakub Jelinek <jakub@redhat.com>
504
505 * c-common.h (enum c_omp_directive_kind): New enum.
506 (struct c_omp_directive): New type.
507 (c_omp_categorize_directive): Declare.
508 * c-omp.c (omp_directives): New variable.
509 (c_omp_categorize_directive): New function.
510
511 2021-07-01 Eric Botcazou <ebotcazou@adacore.com>
512
513 * c-ada-spec.c (packed_layout): New global variable.
514 (dump_ada_declaration): Set it upon seeing a packed record type.
515 Do not put the "aliased" keyword if it is set.
516 (dump_ada_structure): Add Pack aspect if it is set and clear it.
517
518 2021-07-01 Eric Botcazou <ebotcazou@adacore.com>
519
520 * c-ada-spec.c (check_name): Rename into...
521 (check_type_name_conflict): ...this. Minor tweak.
522 (dump_ada_function_declaration): Adjust to above renaming.
523 (dump_ada_array_domains): Fix oversight.
524 (dump_ada_declaration): Call check_type_name_conflict for variables.
525
526 2021-06-25 Martin Sebor <msebor@redhat.com>
527
528 * c-common.c (c_wrap_maybe_const): Remove TREE_NO_WARNING.
529 (c_common_truthvalue_conversion): Replace direct uses of
530 TREE_NO_WARNING with warning_suppressed_p, suppress_warning, and
531 copy_no_warning.
532 (check_function_arguments_recurse): Same.
533 * c-gimplify.c (c_gimplify_expr): Same.
534 * c-warn.c (overflow_warning): Same.
535 (warn_logical_operator): Same.
536 (warn_if_unused_value): Same.
537 (do_warn_unused_parameter): Same.
538
539 2021-06-24 Jakub Jelinek <jakub@redhat.com>
540
541 * c-common.h (enum c_omp_region_type): Add C_ORT_TARGET and
542 C_ORT_OMP_TARGET.
543 * c-omp.c (c_omp_split_clauses): For OMP_CLAUSE_IN_REDUCTION on
544 combined target constructs also add map (always, tofrom:) clause.
545
546 2021-06-15 Robin Dapp <rdapp@linux.ibm.com>
547
548 * c-attribs.c (common_handle_aligned_attribute): Remove short
549 circuit and dead code.
550
551 2021-06-14 Jonathan Wakely <jwakely@redhat.com>
552
553 PR c++/101052
554 * known-headers.cc (get_stdlib_header_for_name): Add known
555 headers for EXIT_FAILURE, EXIT_SUCCESS, abort, atexit, calloc,
556 exit, and getenv.
557
558 2021-06-12 Jason Merrill <jason@redhat.com>
559
560 * c-attribs.c (handle_unused_attribute): Handle FIELD_DECL.
561
562 2021-06-11 Jakub Jelinek <jakub@redhat.com>
563
564 PR c++/100974
565 * c-cppbuiltin.c (c_cpp_builtins): Predefine __cpp_if_consteval for
566 -std=c++2b for P1938R3 consteval if support.
567
568 2021-06-09 Jason Merrill <jason@redhat.com>
569
570 PR c++/100879
571 * c-warn.c (warn_for_sign_compare): Remove C++ enum mismatch
572 warning.
573
574 2021-06-07 Martin Liska <mliska@suse.cz>
575
576 * c-target.def: Split long lines and replace them
577 with '\n\'.
578
579 2021-06-04 Martin Sebor <msebor@redhat.com>
580
581 PR c/100783
582 * c-attribs.c (positional_argument): Bail on erroneous types.
583
584 2021-06-04 Martin Sebor <msebor@redhat.com>
585
586 * c-warn.c (warn_parm_array_mismatch): Check TREE_PURPOSE to test
587 for element presence.
588
589 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
590
591 * c-ada-spec.c (dump_ada_macros): Minor tweaks.
592 (dump_ada_decl_name): Likewise.
593 (dump_anonymous_type_name): Remove parent parameter and adjust.
594 (dump_sloc): Minor tweak.
595 (dump_ada_array_type): Remove type parameter and adjust.
596 (dump_ada_enum_type): Remove parent parameter and adjust.
597 (dump_ada_node): Adjust calls to above functions.
598 (dumped_anonymous_types): New global variable.
599 (dump_nested_types_1): Rename into...
600 (dump_nested_types): ...this.
601 (dump_nested_type): Remove parent and dumped_types parameters.
602 <ARRAY_TYPE>: Replace dumped_types with dumped_anonymous_types.
603 Adjust calls to dump_anonymous_type_name and dump_ada_array_type.
604 (dump_ada_specs): Initialize and free dumped_anonymous_types.
605
606 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
607
608 * c-ada-spec.c (pp_ada_tree_identifier): Tidy up.
609 (dump_ada_node) <POINTER_TYPE>: Deal specially with external subtypes.
610
611 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
612
613 * c-ada-spec.c (dump_ada_enum_type): Dump a prefix for constants.
614 (htable_t): New typedef.
615 (overloaded_names): Use it.
616 (add_name): New function.
617 (init_overloaded_names): Use add_name to populate the table and add
618 special cases for sigaction and stat.
619 (overloaded_name_p): Rename into...
620 (overloading_index): ...this. Do not initialize overloaded_names table
621 here. Return the index or zero.
622 (dump_ada_declaration): Minor tweaks. Do not skip overloaded functions
623 but add an overloading suffix instead.
624 (dump_ada_specs): Initialize overloaded_names tables here.
625
626 2021-06-01 Martin Liska <mliska@suse.cz>
627
628 PR other/100759
629 * c-attribs.c (handle_optimize_attribute): Limit sanity check
630 to a situation where we are not in processing of an optimize
631 pragma.
632 * c-pragma.c (handle_pragma_pop_options): Restore target
633 options.
634
635 2021-05-31 Indu Bhagat <indu.bhagat@oracle.com>
636
637 PR testsuite/100749
638 * c-pch.c (c_common_valid_pch): Use xstrdup for debug format set names.
639
640 2021-05-31 Richard Biener <rguenther@suse.de>
641
642 PR c++/88601
643 * c-common.c: Include tree-vector-builder.h and
644 vec-perm-indices.h.
645 (c_common_reswords): Add __builtin_shufflevector.
646 (c_build_shufflevector): New funtion.
647 * c-common.h (enum rid): Add RID_BUILTIN_SHUFFLEVECTOR.
648 (c_build_shufflevector): Declare.
649
650 2021-05-28 Jakub Jelinek <jakub@redhat.com>
651
652 PR middle-end/99928
653 * c-omp.c (c_omp_split_clauses): For reduction clause if combined with
654 target add a map tofrom clause with OMP_CLAUSE_MAP_IMPLICIT.
655
656 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
657
658 * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_AFFINITY.
659
660 2021-05-25 Martin Liska <mliska@suse.cz>
661
662 PR tree-optimization/92860
663 PR target/99592
664 * c-attribs.c (handle_optimize_attribute): Save target node
665 before calling parse_optimize_options and save it in case
666 it changes.
667 * c-pragma.c (handle_pragma_target): Similarly for pragma.
668 (handle_pragma_pop_options): Likewise here.
669
670 2021-05-25 Martin Liska <mliska@suse.cz>
671
672 * c-attribs.c (handle_no_sanitize_coverage_attribute): New.
673
674 2021-05-25 Jakub Jelinek <jakub@redhat.com>
675
676 PR middle-end/99928
677 * c-omp.c (c_omp_split_clauses): Copy reduction to teams when teams is
678 combined with simd and not with taskloop or for.
679
680 2021-05-21 Jakub Jelinek <jakub@redhat.com>
681
682 PR middle-end/99928
683 * c-omp.c (c_omp_split_clauses): Set OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT
684 on firstprivate clause copy going to target construct, and for
685 target simd set also OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET bit.
686
687 2021-05-20 Jonathan Wakely <jwakely@redhat.com>
688
689 * c.opt (Wc++11-extensions, Wc++14-extensions)
690 (Wc++17-extensions, Wc++20-extensions, Wc++23-extensions): New
691 options.
692
693 2021-05-20 Indu Bhagat <indu.bhagat@oracle.com>
694
695 * c-lex.c (init_c_lex): Use dwarf_debuginfo_p.
696
697 2021-05-20 Indu Bhagat <indu.bhagat@oracle.com>
698
699 * c-opts.c (c_common_post_options): Adjust access to debug_type_names.
700 * c-pch.c (struct c_pch_validity): Use type uint32_t.
701 (pch_init): Renamed member.
702 (c_common_valid_pch): Adjust access to debug_type_names.
703
704 2021-05-19 Martin Sebor <msebor@redhat.com>
705
706 PR c/100619
707 * c-attribs.c (build_attr_access_from_parms): Handle arbitrarily many
708 bounds.
709
710 2021-05-18 Richard Biener <rguenther@suse.de>
711
712 PR c/100547
713 * c-attribs.c (type_valid_for_vector_size): Reject too large nunits.
714 Reword existing nunit diagnostic.
715
716 2021-05-17 Joern Rennecke <joern.rennecke@embecosm.com>
717
718 * c-common.c (braced_list_to_string): Return CTOR unchanged
719 if host and target character sizes don't match.
720
721 2021-05-14 Martin Liska <mliska@suse.cz>
722
723 * c.opt: Add Warning keyword for 2 options.
724
725 2021-05-13 Martin Liska <mliska@suse.cz>
726
727 PR middle-end/100504
728 * c-attribs.c (handle_target_clones_attribute): Expect a string
729 argument to target_clone argument.
730
731 2021-05-11 Joseph Myers <joseph@codesourcery.com>
732
733 * c-lex.c (interpret_float): Handle digit separators for C2X.
734
735 2021-05-10 Martin Liska <mliska@suse.cz>
736
737 * c-ada-spec.c (print_destructor): Use startswith
738 function instead of strncmp.
739 (dump_ada_declaration): Likewise.
740 * c-common.c (disable_builtin_function): Likewise.
741 (def_builtin_1): Likewise.
742 * c-format.c (check_tokens): Likewise.
743 (check_plain): Likewise.
744 (convert_format_name_to_system_name): Likewise.
745
746 2021-04-28 Patrick McGehearty <patrick.mcgehearty@oracle.com>
747
748 * c-cppbuiltin.c (c_cpp_builtins): Add supporting macros for new
749 complex divide
750
751 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
752 Nathan Sidwell <nathan@codesourcery.com>
753 Tom de Vries <vries@codesourcery.com>
754 Julian Brown <julian@codesourcery.com>
755 Kwok Cheung Yeung <kcy@codesourcery.com>
756
757 * c.opt (Wopenacc-parallelism): New.
758
759 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
760
761 * c.opt (fopenacc-kernels=): Remove.
762
763 2021-04-08 Jakub Jelinek <jakub@redhat.com>
764
765 * c-warn.c (do_warn_double_promotion): Fix comment typo,
766 occured -> occurred.
767 (check_alignment_of_packed_member): Fix a comment typo,
768 memeber -> member.
769 (warn_parm_ptrarray_mismatch): Fix comment typos, os -> of
770 and onless -> unless.
771 (warn_parm_array_mismatch): Fix comment typos, declaratation
772 -> declaration and woud -> would. Fix up comment indentation.
773
774 2021-04-08 Martin Sebor <msebor@redhat.com>
775
776 PR middle-end/99883
777 * c.opt (Wmismatched-new-delete): Correct spelling.
778
779 2021-04-05 Eric Botcazou <ebotcazou@adacore.com>
780
781 * c-ada-spec.c (is_simple_enum): Minor tweaks.
782 (dump_ada_enum_type): Add TYPE and PARENT parameters. For non-simple
783 enumeral types use again the type name for the enumeration constants.
784 (dump_ada_node): Adjust call to dump_ada_enum_type.
785 (dump_nested_type): Likewise.
786
787 2021-04-01 Jason Merrill <jason@redhat.com>
788
789 PR c++/98481
790 * c-opts.c (c_common_post_options): Bump latest_abi_version.
791
792 2021-03-25 Jakub Jelinek <jakub@redhat.com>
793
794 PR c++/99565
795 * c-warn.c (do_warn_duplicated_branches): Pass also
796 OEP_ADDRESS_OF_SAME_FIELD to operand_equal_p.
797
798 2021-03-20 Jakub Jelinek <jakub@redhat.com>
799
800 PR debug/99230
801 * c-gimplify.c (c_genericize_control_stmt): Handle STATEMENT_LIST.
802
803 2021-03-05 Eric Botcazou <ebotcazou@adacore.com>
804
805 * c-ada-spec.c (dump_ada_declaration) <TYPE_DECL>: Dump nested types
806 after entering the separate class package, if any.
807
808 2021-03-04 Richard Biener <rguenther@suse.de>
809
810 * c-pretty-print.c (c_pretty_printer::direct_abstract_declarator):
811 Handle ERROR_MARK.
812
813 2021-03-04 Jakub Jelinek <jakub@redhat.com>
814
815 PR c/99325
816 * c-ppoutput.c (print): Change src_line type from int to unsigned.
817 (token_streamer::stream) Likewise.
818 (maybe_print_line_1): Likewise. Don't strcmp src_file if src_loc is
819 UNKNOWN_LOCATION.
820
821 2021-03-03 Jakub Jelinek <jakub@redhat.com>
822
823 PR c/99324
824 * c-common.c (build_va_arg): Call c_common_mark_addressable_vec
825 instead of mark_addressable. Fix a comment typo -
826 neutrallly -> neutrally.
827
828 2021-02-28 Jakub Jelinek <jakub@redhat.com>
829
830 PR c/99304
831 * c-attribs.c (handle_malloc_attribute): Fix a typo in inform
832 message - refernced -> referenced. Remove superfluous space before
833 closing paren of function calls.
834
835 2021-02-25 Nathan Sidwell <nathan@acm.org>
836
837 PR c++/99166
838 * c.opt (-flang-info-module-cmi): Renamed option.
839
840 2021-02-19 Nathan Sidwell <nathan@acm.org>
841
842 * c.opt (flang-info-module-read, flang-info-module-read=): New.
843
844 2021-02-18 H.J. Lu <hjl.tools@gmail.com>
845
846 PR target/99113
847 * c-attribs.c (c_common_attribute_table): Add the "retain"
848 attribute.
849 (handle_retain_attribute): New function.
850
851 2021-02-16 Marek Polacek <polacek@redhat.com>
852
853 PR c++/99062
854 * c-attribs.c (handle_assume_aligned_attribute): Check that the
855 alignment argument is non-negative. Tweak a warning message.
856
857 2021-02-12 Martin Sebor <msebor@redhat.com>
858
859 PR c/99055
860 * c-warn.c (warn_parm_array_mismatch): Free strings returned from
861 print_generic_expr_to_str.
862
863 2021-02-10 Richard Biener <rguenther@suse.de>
864
865 * c-common.c (parse_optimize_options): Free decoded_options.
866
867 2021-02-04 emsr <3dw4rd@verizon.net>
868
869 * c-cppbuiltin.c (c_cpp_builtins): __cpp_size_t_suffix=202011L.
870
871 2021-02-03 Ed Smith-Rowland <3dw4rd@verizon.net>
872
873 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_size_t_suffix.
874 * c-lex.c (interpret_integer): Set node type for size literal.
875
876 2021-01-28 Jakub Jelinek <jakub@redhat.com>
877
878 * c.opt (-std=c++2a, -std=c++20, -std=gnu++2a, -std=gnu++20): Remove
879 draft from description.
880 (-std=c++2b): Fix a pasto, 2020 -> 2023.
881
882 2021-01-26 Paul Fee <paul.f.fee@gmail.com>
883
884 * c-common.h (cxx_dialect): Add cxx23 as a dialect.
885 * c.opt: Add options for -std=c++23, std=c++2b, -std=gnu++23
886 and -std=gnu++2b
887 * c-opts.c (set_std_cxx23): New.
888 (c_common_handle_option): Set options when -std=c++23 is enabled.
889 (c_common_post_options): Adjust comments.
890 (set_std_cxx20): Likewise.
891
892 2021-01-25 Martin Sebor <msebor@redhat.com>
893
894 PR c++/98646
895 * c-common.c (check_nonnull_arg): Adjust warning text.
896
897 2021-01-17 Martin Sebor <msebor@redhat.com>
898
899 * c-pretty-print.c (c_pretty_printer::primary_expression): Don't
900 assume SSA_NAME_IDENTIFIER evaluates to nonzero.
901
902 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
903
904 * c-pragma.h (pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_DETACH.
905 Redefine PRAGMA_OACC_CLAUSE_DETACH.
906
907 2021-01-15 Jakub Jelinek <jakub@redhat.com>
908
909 PR tree-optimization/98597
910 * c-pretty-print.c: Include options.h.
911 (c_fold_indirect_ref_for_warn): New function.
912 (print_mem_ref): Use it. If it returns something that has compatible
913 type and is TBAA compatible with zero offset, print it and return,
914 otherwise print it using offsetof syntax or array ref syntax. Fix up
915 printing if MEM_REFs first operand is ADDR_EXPR, or when the first
916 argument has pointer to array type. Print pointers using the standard
917 formatting.
918
919 2021-01-12 Martin Sebor <msebor@redhat.com>
920
921 PR c/98597
922 PR c/98592
923 * c-pretty-print.c (print_mem_ref): Avoid assuming MEM_REF operand
924 has pointer type. Remove redundant code. Avoid calling
925 gimple_canonical_types_compatible_p.
926
927 2021-01-07 Martin Sebor <msebor@redhat.com>
928
929 PR middle-end/98578
930 * c-pretty-print.c (print_mem_ref): Strip array from access type.
931 Avoid assuming acces type's size is constant. Correct condition
932 guarding the printing of a parenthesis.
933
934 2021-01-06 Martin Sebor <msebor@redhat.com>
935
936 PR c++/95768
937 * c-pretty-print.c (c_pretty_printer::primary_expression): For
938 SSA_NAMEs print VLA names and GIMPLE defining statements.
939 (print_mem_ref): New function.
940 (c_pretty_printer::unary_expression): Call it.
941
942 2021-01-06 Richard Biener <rguenther@suse.de>
943
944 PR tree-optimization/95582
945 * c-attribs.c (c_common_attribute_table): Add entry for
946 signed_bool_precision.
947 (handle_signed_bool_precision_attribute): New.
948
949 2020-12-24 Iain Sandoe <iain@sandoe.co.uk>
950
951 * c.opt: Add -stdlib= option and enumerations for
952 libstdc++ and libc++.
953
954 2020-12-16 Martin Liska <mliska@suse.cz>
955
956 * c.opt: Remove usage of Report.
957
958 2020-12-14 Martin Sebor <msebor@redhat.com>
959
960 PR middle-end/98166
961 PR c++/57111
962 PR middle-end/98160
963 * c-attribs.c (maybe_add_noinline): New function.
964 (handle_malloc_attribute): Call it. Use ATTR_FLAG_INTERNAL.
965 Implicitly add attribute noinline to functions not declared inline
966 and warn on those.
967
968 2020-12-09 Tobias Burnus <tobias@codesourcery.com>
969
970 * c-pragma.c (omp_pragmas): Add 'allocate'.
971 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_ALLOCATE.
972
973 2020-12-08 Jakub Jelinek <jakub@redhat.com>
974
975 PR c++/98187
976 * c-pragma.c (omp_pragmas): Remove "master".
977 (omp_pragmas_simd): Add "master".
978
979 2020-12-07 Marek Polacek <polacek@redhat.com>
980
981 PR c++/98126
982 * c-common.c (verify_tree_lim_r): New function.
983 (verify_sequence_points): Use it. Use nullptr instead of 0.
984
985 2020-12-03 Martin Sebor <msebor@redhat.com>
986
987 PR c++/90629
988 PR middle-end/94527
989 * c-attribs.c (handle_dealloc_attribute): New function.
990 (handle_malloc_attribute): Handle argument forms of attribute.
991 * c.opt (-Wmismatched-dealloc): New option.
992 (-Wmismatched-new-delete): New option.
993
994 2020-12-03 Jakub Jelinek <jakub@redhat.com>
995
996 PR libstdc++/93121
997 * c-common.h (enum rid): Add RID_BUILTIN_BIT_CAST.
998 * c-common.c (c_common_reswords): Add __builtin_bit_cast.
999
1000 2020-12-01 JeanHeyd Meneide <phdofthehouse@gmail.com>
1001
1002 * c-cppbuiltin.c (c_cpp_builtins): Add predefined
1003 {__GNUC_EXECUTION_CHARSET_NAME} and
1004 _WIDE_EXECUTION_CHARSET_NAME} macros.
1005
1006 2020-12-01 Nathan Sidwell <nathan@acm.org>
1007
1008 * c-common.c (module, import, export): New internal tokens (with
1009 trailing space).
1010 * c-common.h (RID__MODULE, RID__IMPORT & RID__EXPORT): Enumerate
1011 them.
1012 (D_CXX_MODULES, D_CXX_MODULES_FLAGS): Enable them.
1013 * c-cppbuiltin.c (c_cpp_builtins): Feature macro.
1014
1015 2020-12-01 Nathan Sidwell <nathan@acm.org>
1016
1017 * c-opts.c (c_common_init_options): Ask for module dependencies.
1018 (c_common_handle_option): Handle -Mmodules -Mno-modules.
1019 * c-pch.c (c_common_valid_pch): ... does not play with C++
1020 modules.
1021 * c.opt (Mmodules, Mno-modules): New preprocessor dependency
1022 options.
1023 (fmodules-ts, fmodule-header, fmodule-implicit-inline)
1024 (fmodule-only, fmodule-mapper, fmodule-lazy)
1025 (fmodule-version-ignore, Winvalid-imported-macros)
1026 (flang-info-include-translate, flang-info-include-translate-not):
1027 New options
1028
1029 2020-11-28 Eric Botcazou <ebotcazou@adacore.com>
1030
1031 * c-ada-spec.c (dump_nested_type) <RECORD_TYPE>: Remove obsolete code.
1032 (dump_ada_structure): Also deal with convention, unchecked union and
1033 bit-field for nested types. In the latter case, print an Alignment
1034 aspect along with the Pack aspect.
1035
1036 2020-11-25 Martin Sebor <msebor@redhat.com>
1037
1038 PR bootstrap/94982
1039 * c-attribs.c (handle_patchable_function_entry_attribute): Avoid
1040 -Wformat-diag.
1041
1042 2020-11-24 Martin Sebor <msebor@redhat.com>
1043
1044 * c-warn.c (warn_parm_array_mismatch): Avoid invalid redeclarations.
1045
1046 2020-11-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1047
1048 * c-attribs.c (handle_special_var_sec_attribute): New.
1049 (handle_noinit_attribute): Remove.
1050 (attr_noinit_exclusions): Rename to...
1051 (attr_section_exclusions): ...this, and add "persistent" attribute
1052 exclusion.
1053 (c_common_attribute_table): Add "persistent" attribute.
1054
1055 2020-11-21 Aaron Sawdey <acsawdey@linux.ibm.com>
1056
1057 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
1058 Treat opaque types like other types.
1059 (c_pretty_printer::direct_abstract_declarator): Opaque types are
1060 supported types.
1061
1062 2020-11-20 Martin Sebor <msebor@redhat.com>
1063
1064 * c-warn.c (warn_parm_array_mismatch): Bail on invalid redeclarations
1065 with fewer arguments.
1066
1067 2020-11-20 Martin Sebor <msebor@redhat.com>
1068
1069 PR middle-end/97879
1070 * c-attribs.c (handle_access_attribute): Handle ATTR_FLAG_INTERNAL.
1071 Error out on invalid modes.
1072
1073 2020-11-20 Jakub Jelinek <jakub@redhat.com>
1074
1075 PR libstdc++/88101
1076 * c-common.c (check_builtin_function_arguments): Handle
1077 BUILT_IN_CLEAR_PADDING.
1078
1079 2020-11-18 Nathan Sidwell <nathan@acm.org>
1080
1081 * c-lex.c (c_lex_with_flags): CPP_HEADER_NAMEs can now be seen.
1082
1083 2020-11-17 Nathan Sidwell <nathan@acm.org>
1084
1085 * c-common.h (enum c_tree_index): Reorder to place lazy fields
1086 after newly-added CTI_MODULE_HWM.
1087
1088 2020-11-17 Joseph Myers <joseph@codesourcery.com>
1089
1090 * c-cppbuiltin.c (builtin_define_float_constants): Define
1091 "*_IS_IEC_60559__" macros.
1092
1093 2020-11-17 Nathan Sidwell <nathan@acm.org>
1094
1095 * c-lex.c: #include "langhooks.h".
1096 (cb_undef): Maybe call preprocess_undef lang hook.
1097 * c-opts.c (c_common_post_options): Maybe call preprocess_options
1098 lang hook.
1099 (push_command_line_include): Maybe call preprocess_main_file lang
1100 hook.
1101 (cb_file_change): Likewise.
1102 * c-ppoutput.c: #include "langhooks.h.
1103 (scan_translation_unit): Maybe call preprocess_token lang hook.
1104 (class do_streamer): New, derive from token_streamer.
1105 (directives_only_cb): Data pointer is do_streamer, call
1106 preprocess_token lang hook.
1107 (scan_translation_unit_directives_only): Use do_streamer.
1108 (print_line_1): Move src_line recording to after string output.
1109 (cb_undef): Maybe call preprocess_undef lang hook.
1110
1111 2020-11-17 Nathan Sidwell <nathan@acm.org>
1112
1113 * c-ppoutput.c (scan_translation_unit): Use token_streamer, remove
1114 code duplicating that functionality.
1115
1116 2020-11-17 Jakub Jelinek <jakub@redhat.com>
1117
1118 PR c/90628
1119 * c-common.c (check_builtin_function_arguments)
1120 <case BUILT_IN_ADD_OVERFLOW>: Diagnose when last argument is pointer
1121 to _Atomic. For the TYPE_READONLY case, adjust message to be usable
1122 for more builtins and argument positions.
1123
1124 2020-11-16 Iain Sandoe <iain@sandoe.co.uk>
1125
1126 PR objc/97854
1127 * stub-objc.c: Include c-common.h to declare enum rid.
1128
1129 2020-11-13 Jakub Jelinek <jakub@redhat.com>
1130
1131 PR c++/63287
1132 * c-cppbuiltin.c: Include configargs.h.
1133 (c_cpp_builtins): For C++11 and later if THREAD_MODEL_SPEC is not
1134 defined, predefine __STDCPP_THREADS__ to 1 unless thread_model is
1135 "single".
1136
1137 2020-11-13 Gergö Barany <gergo@codesourcery.com>
1138 Thomas Schwinge <thomas@codesourcery.com>
1139
1140 * c.opt (fopenacc-kernels): Add.
1141
1142 2020-11-13 Jason Merrill <jason@redhat.com>
1143
1144 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_using_enum.
1145
1146 2020-11-13 Piotr H. Dabrowski <phd@phd.re>
1147
1148 PR c++/91318
1149 * c-cppbuiltin.c: c_cpp_builtins_optimize_pragma(): use cpp_define_unused()
1150
1151 2020-11-13 Martin Liska <mliska@suse.cz>
1152
1153 * c-attribs.c (build_attr_access_from_parms): Format properly.
1154
1155 2020-11-13 Iain Sandoe <iain@sandoe.co.uk>
1156
1157 PR objc/90707
1158 * c-common.c (c_common_reswords): null_unspecified, nullable,
1159 nonnull, null_resettable: New keywords.
1160 * c-common.h (enum rid): RID_NULL_UNSPECIFIED, RID_NULLABLE,
1161 RID_NONNULL, RID_NULL_RESETTABLE: New.
1162 (OBJC_IS_PATTR_KEYWORD): Include nullability keywords in the
1163 ranges accepted for property attributes.
1164 * c-attribs.c (handle_objc_nullability_attribute): New.
1165 * c-objc.h (enum objc_property_attribute_group): Add
1166 OBJC_PROPATTR_GROUP_NULLABLE.
1167 (enum objc_property_attribute_kind):Add
1168 OBJC_PROPERTY_ATTR_NULL_UNSPECIFIED, OBJC_PROPERTY_ATTR_NULLABLE,
1169 OBJC_PROPERTY_ATTR_NONNULL, OBJC_PROPERTY_ATTR_NULL_RESETTABLE.
1170
1171 2020-11-13 Iain Sandoe <iain@sandoe.co.uk>
1172
1173 PR objc/77404
1174 * c-attribs.c (handle_objc_root_class_attribute): New
1175 * c-objc.h (objc_start_class_interface): Add a location
1176 value for the position of the class name.
1177 * c.opt: Add Wobjc-root-class.
1178 * stub-objc.c (objc_start_class_interface): Add a location
1179 value for the position of the class name.
1180
1181 2020-11-12 Joseph Myers <joseph@codesourcery.com>
1182
1183 * c-lex.c (c_common_has_attribute): Take argument std_syntax.
1184 Allow scope for C. Handle standard attributes for C. Do not
1185 accept unscoped attributes if std_syntax and not handled as
1186 standard attributes.
1187 * c-common.h (c_common_has_attribute): Update prototype.
1188
1189 2020-11-12 Nicholas Guriev <guriev-ns@ya.ru>
1190
1191 PR pch/86674
1192 * c-pch.c (c_common_valid_pch): Use cpp_warning with CPP_W_INVALID_PCH
1193 reason to fix -Werror=invalid-pch and -Wno-error=invalid-pch switches.
1194
1195 2020-11-11 Patrick Palka <ppalka@redhat.com>
1196
1197 PR c++/88115
1198 * c-opts.c (c_common_post_options): Update latest_abi_version.
1199
1200 2020-11-10 Jakub Jelinek <jakub@redhat.com>
1201
1202 PR c/97748
1203 * c-common.h (warn_if_unused_value): Add quiet argument defaulted
1204 to false.
1205 * c-warn.c (warn_if_unused_value): Likewise. Pass it down
1206 recursively and just return true instead of warning if it is true.
1207 Handle COMPLEX_EXPR.
1208
1209 2020-11-10 Chung-Lin Tang <cltang@codesourcery.com>
1210
1211 * c-common.h (c_omp_adjust_map_clauses): New declaration.
1212 * c-omp.c (struct map_clause): Helper type for c_omp_adjust_map_clauses.
1213 (c_omp_adjust_map_clauses): New function.
1214
1215 2020-11-09 Marek Polacek <polacek@redhat.com>
1216
1217 DR 1914
1218 * c-common.c (attribute_fallthrough_p): Tweak the warning
1219 message.
1220
1221 2020-11-09 Patrick Palka <ppalka@redhat.com>
1222
1223 * c-pragma.c (handle_pragma_diagnostic): Split the
1224 unknown-option -Wpragmas diagnostic into a warning and a
1225 subsequent note containing a spelling suggestion. Avoid
1226 computing the suggestion if -Wpragmas warnings are being
1227 suppressed.
1228
1229 2020-11-09 Patrick Palka <ppalka@redhat.com>
1230
1231 PR testsuite/97117
1232 * c-indentation.c (get_visual_column): Remove location_t
1233 parameter. Move the column-tracking diagnostic code from here
1234 to ...
1235 (should_warn_for_misleading_indentation): ... here, before the
1236 early exit for when the loci are not all distinct. Don't pass a
1237 location_t argument to get_visual_column.
1238 (assert_get_visual_column_succeeds): Don't pass a location_t
1239 argument to get_visual_column.
1240 (assert_get_visual_column_fails): Likewise.
1241
1242 2020-11-08 Iain Sandoe <iain@sandoe.co.uk>
1243
1244 * c-common.h (OBJC_IS_PATTR_KEYWORD): Add class to the list
1245 of keywords accepted in @property attribute contexts.
1246 * c-objc.h (enum objc_property_attribute_group): Add
1247 OBJC_PROPATTR_GROUP_CLASS.
1248 (enum objc_property_attribute_kind): Add
1249 OBJC_PROPERTY_ATTR_CLASS.
1250
1251 2020-11-07 Iain Sandoe <iain@sandoe.co.uk>
1252
1253 * c-common.c (c_common_reswords): Add 'atomic' property
1254 attribute.
1255 * c-common.h (enum rid): Add RID_PROPATOMIC for atomic
1256 property attributes.
1257
1258 2020-11-07 Iain Sandoe <iain@sandoe.co.uk>
1259
1260 * c-attribs.c (handle_nsobject_attribute): New.
1261 * c.opt: Add WNSObject-attribute.
1262
1263 2020-11-06 Iain Sandoe <iain@sandoe.co.uk>
1264
1265 * c-objc.h (enum objc_property_attribute_group): New
1266 (enum objc_property_attribute_kind): New.
1267 (OBJC_PROPATTR_GROUP_MASK): New.
1268 (struct property_attribute_info): Small class encapsulating
1269 parser output from property attributes.
1270 (objc_prop_attr_kind_for_rid): New
1271 (objc_add_property_declaration): Simplify interface.
1272 * stub-objc.c (enum rid): Dummy type.
1273 (objc_add_property_declaration): Simplify interface.
1274 (objc_prop_attr_kind_for_rid): New.
1275
1276 2020-11-06 Nathan Sidwell <nathan@acm.org>
1277
1278 * c-ada-spec.c (collect_ada_nodes): Rename
1279 DECL_IS_BUILTIN->DECL_IS_UNDECLARED_BUILTIN.
1280 (collect_ada_node): Likewise.
1281 (dump_forward_type): Likewise.
1282 * c-common.c (set_underlying_type): Rename
1283 DECL_IS_BUILTIN->DECL_IS_UNDECLARED_BUILTIN.
1284 (user_facing_original_type, c_common_finalize_early_debug): Likewise.
1285
1286 2020-11-06 Jakub Jelinek <jakub@redhat.com>
1287
1288 * c-common.c (verify_sequence_points): Remove DEBUG_FUNCTION.
1289
1290 2020-11-05 Marek Polacek <polacek@redhat.com>
1291
1292 PR c++/97675
1293 * c.opt (Wexceptions): New option.
1294
1295 2020-11-05 Marek Polacek <polacek@redhat.com>
1296
1297 PR c++/25814
1298 * c.opt (Wvexing-parse): New option.
1299
1300 2020-11-04 Jakub Jelinek <jakub@redhat.com>
1301
1302 PR c++/97670
1303 * c-omp.c (c_omp_split_clauses): Look through array reductions to find
1304 underlying decl to clear in the allocate_head bitmap.
1305
1306 2020-11-04 Iain Sandoe <iain@sandoe.co.uk>
1307
1308 * c-objc.h (objc_non_constant_expr_p): New.
1309 * stub-objc.c (objc_non_constant_expr_p): New.
1310
1311 2020-11-03 Nathan Sidwell <nathan@acm.org>
1312
1313 * c.opt (MQ,MT): Reword description to be make-agnostic.
1314
1315 2020-11-02 Nathan Sidwell <nathan@acm.org>
1316
1317 * c-opts.c (c_common_post_options): Move var decl to its
1318 initialization point.
1319
1320 2020-11-01 Iain Sandoe <iain@sandoe.co.uk>
1321
1322 * c-lex.c (c_lex_with_flags): When combining '@' with a
1323 keyword for Objective-C, combine the location ranges too.
1324
1325 2020-10-30 Qing Zhao <qing.zhao@oracle.com>
1326 H.J.Lu <hjl.tools@gmail.com>
1327
1328 * c-attribs.c (c_common_attribute_table): Add new attribute
1329 zero_call_used_regs.
1330 (handle_zero_call_used_regs_attribute): New function.
1331
1332 2020-10-28 Marek Polacek <polacek@redhat.com>
1333
1334 PR c++/97573
1335 * c-opts.c (c_common_post_options): In C++20, turn on
1336 -Wdeprecated-enum-enum-conversion and
1337 -Wdeprecated-enum-float-conversion.
1338 * c.opt (Wdeprecated-enum-enum-conversion,
1339 Wdeprecated-enum-float-conversion): New options.
1340 (Wenum-conversion): Allow for C++ too.
1341
1342 2020-10-28 Jakub Jelinek <jakub@redhat.com>
1343
1344 * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALLOCATE.
1345 * c-omp.c: Include bitmap.h.
1346 (c_omp_split_clauses): Handle OMP_CLAUSE_ALLOCATE.
1347
1348 2020-10-26 Ville Voutilainen <ville.voutilainen@gmail.com>
1349
1350 * c-common.c (__is_nothrow_assignable): New.
1351 (__is_nothrow_constructible): Likewise.
1352 * c-common.h (RID_IS_NOTHROW_ASSIGNABLE): New.
1353 (RID_IS_NOTHROW_CONSTRUCTIBLE): Likewise.
1354
1355 2020-10-23 Jan Hubicka <hubicka@ucw.cz>
1356
1357 * c-common.c (c_common_finalize_early_debug): Update for new thunk api.
1358
1359 2020-10-23 Marek Polacek <polacek@redhat.com>
1360
1361 PR c++/91741
1362 * c-common.c (verify_tree): Handle PAREN_SIZEOF_EXPR.
1363 (c_common_init_ts): Likewise.
1364 * c-common.def (PAREN_SIZEOF_EXPR): New tree code.
1365 * c-common.h (maybe_warn_sizeof_array_div): Declare.
1366 * c-warn.c (sizeof_pointer_memaccess_warning): Unwrap NOP_EXPRs.
1367 (maybe_warn_sizeof_array_div): New function.
1368 * c.opt (Wsizeof-array-div): New option.
1369
1370 2020-10-23 Martin Sebor <msebor@redhat.com>
1371
1372 PR c/97463
1373 * c-warn.c (warn_parm_ptrarray_mismatch): Move null test earlier.
1374
1375 2020-10-22 Martin Liska <mliska@suse.cz>
1376
1377 PR c/94722
1378 * c-attribs.c (handle_no_stack_protect_function_attribute): New.
1379 (handle_stack_protect_attribute): Add error message for a
1380 no_stack_protector function.
1381
1382 2020-10-22 Martin Liska <mliska@suse.cz>
1383
1384 * c-cppbuiltin.c (c_cpp_builtins): Use the stack_protector enum.
1385
1386 2020-10-22 Jan Hubicka <hubicka@ucw.cz>
1387
1388 * c-gimplify.c: Include tree-nested.h
1389 (c_genericize): Update for new nested function info.
1390
1391 2020-10-14 Martin Sebor <msebor@redhat.com>
1392
1393 PR c/97413
1394 * c-attribs.c (build_attr_access_from_parms): Wrap chain of VLA
1395 bounds in an extra list.
1396
1397 2020-10-05 Richard Biener <rguenther@suse.de>
1398 Jakub Jelinek <jakub@redhat.com>
1399
1400 PR c++/97197
1401 * c-pretty-print.c: Include langhooks.h.
1402 (c_pretty_printer::postfix_expression): Handle TARGET_MEM_REF as
1403 expression.
1404 (c_pretty_printer::expression): Handle TARGET_MEM_REF as
1405 unary_expression.
1406 (c_pretty_printer::unary_expression): Handle TARGET_MEM_REF.
1407
1408 2020-09-30 Martin Sebor <msebor@redhat.com>
1409
1410 PR middle-end/97189
1411 * c-attribs.c (append_access_attr): Use the function declaration
1412 location for a warning about an attribute access argument.
1413
1414 2020-09-29 Marek Polacek <polacek@redhat.com>
1415
1416 PR c++/94695
1417 * c.opt (Wrange-loop-construct): New option.
1418
1419 2020-09-23 Martin Sebor <msebor@redhat.com>
1420
1421 PR c/97131
1422 * c-warn.c (warn_parm_ptrarray_mismatch): Handle more invalid input.
1423
1424 2020-09-23 Marek Polacek <polacek@redhat.com>
1425
1426 PR c/97125
1427 * c-gimplify.c (c_genericize): Only call do_warn_duplicated_branches_r
1428 after loops and other structured control constructs have been lowered.
1429
1430 2020-09-22 Jakub Jelinek <jakub@redhat.com>
1431
1432 * c.opt (Wbuiltin-declaration-mismatch): Fix typo in variable name:
1433 warn_builtin_declaraion_mismatch -> warn_builtin_declaration_mismatch.
1434
1435 2020-09-21 Marek Polacek <polacek@redhat.com>
1436
1437 * c.opt (Wctad-maybe-unsupported): New option.
1438
1439 2020-09-19 Martin Sebor <msebor@redhat.com>
1440
1441 PR c/50584
1442 * c-common.h (warn_parm_array_mismatch): Declare new function.
1443 (has_attribute): Move declaration of an existing function.
1444 (build_attr_access_from_parms): Declare new function.
1445 * c-warn.c (parm_array_as_string): Define new function.
1446 (plus_one): Define new function.
1447 (warn_parm_ptrarray_mismatch): Define new function.
1448 (warn_parm_array_mismatch): Define new function.
1449 (vla_bound_parm_decl): New function.
1450 * c.opt (-Warray-parameter, -Wvla-parameter): New options.
1451 * c-pretty-print.c (pp_c_type_qualifier_list): Don't print array type
1452 qualifiers here...
1453 (c_pretty_printer::direct_abstract_declarator): ...but instead print
1454 them in brackets here. Also print [static]. Strip extraneous
1455 expressions from VLA bounds.
1456
1457 2020-09-19 Martin Sebor <msebor@redhat.com>
1458
1459 PR c/50584
1460 * c-attribs.c (c_common_attribute_table): Add "arg spec" attribute.
1461 (handle_argspec_attribute): New function.
1462 (get_argument, get_argument_type): New functions.
1463 (append_access_attrs): Add overload. Handle internal attribute
1464 representation in addition to external.
1465 (handle_access_attribute): Handle internal attribute representation
1466 in addition to external.
1467 (build_attr_access_from_parms): New function.
1468
1469 2020-09-19 Sandra Loosemore <sandra@codesourcery.com>
1470
1471 * c-gimplify.c (genericize_c_loop): Rewrite to match
1472 c_finish_loop in c-typeck.c.
1473
1474 2020-09-19 Sandra Loosemore <sandra@codesourcery.com>
1475
1476 * c-common.c (c_block_may_fallthrough): New, split from
1477 cxx_block_may_fallthrough in the cp front end.
1478 (c_common_init_ts): Move handling of loop and switch-related
1479 statements here from the cp front end.
1480 * c-common.def (FOR_STMT, WHILE_STMT, DO_STMT): Move here from
1481 cp front end.
1482 (BREAK_STMT, CONTINUE_STMT, SWITCH_STMT): Likewise.
1483 * c-common.h (c_block_may_fallthru): Declare.
1484 (bc_state_t): Move here from cp front end.
1485 (save_bc_state, restore_bc_state): Declare.
1486 (c_genericize_control_stmt): Declare.
1487 (WHILE_COND, WHILE_BODY): Likewise.
1488 (DO_COND, DO_BODY): Likewise.
1489 (FOR_INIT_STMT, FOR_COND, FOR_EXPR, FOR_BODY, FOR_SCOPE): Likewise.
1490 (SWITCH_STMT_COND, SWITCH_STMT_BODY): Likewise.
1491 (SWITCH_STMT_TYPE, SWITCH_STMT_SCOPE): Likewise.
1492 (SWITCH_STMT_ALL_CASES_P, SWITCH_STMT_NO_BREAK_P): Likewise.
1493 (LABEL_DECL_BREAK, LABEL_DECL_CONTINUE): Likewise.
1494 * c-dump.c (dump_stmt): Copy from cp front end.
1495 (c_dump_tree): Move code to handle structured loop and switch
1496 tree nodes here from cp front end.
1497 * c-gimplify.c: Adjust includes.
1498 (enum bc_t, bc_label, begin_bc_block, finish_bc_block): Move from
1499 cp front end.
1500 (save_bc_state, restore_bc_state): New functions using old code
1501 from cp front end.
1502 (get_bc_label, expr_loc_or_loc): Move from cp front end.
1503 (genericize_c_loop): Move from cp front end.
1504 (genericize_for_stmt, genericize_while_stmt): Likewise.
1505 (genericize_do_stmt, genericize_switch_stmt): Likewise.
1506 (genericize_continue_stmt, genericize_break_stmt): Likewise.
1507 (genericize_omp_for_stmt): Likewise.
1508 (c_genericize_control_stmt): New function using code split from
1509 cp front end.
1510 (c_genericize_control_r): New.
1511 (c_genericize): Call walk_tree with c_genericize_control_r.
1512 * c-pretty-print.c (c_pretty_printer::statement): Move code to handle
1513 structured loop and switch tree nodes here from cp front end.
1514
1515 2020-09-17 Patrick Palka <ppalka@redhat.com>
1516
1517 PR c/80076
1518 * c-indentation.c (should_warn_for_misleading_indentation): Move
1519 declarations of local variables closer to their first use.
1520 Handle virtual token locations by resolving them to their
1521 respective macro expansion points. If all three tokens are
1522 produced from the same macro expansion, then instead use their
1523 loci within the macro definition.
1524
1525 2020-09-16 Martin Sebor <msebor@redhat.com>
1526
1527 PR c/78666
1528 PR c/96126
1529 * c-attribs.c (validate_attr_args): New function.
1530 (validate_attr_arg): Same.
1531 (handle_section_attribute): Call it. Introduce a local variable.
1532 (handle_alloc_size_attribute): Same.
1533 (handle_alloc_align_attribute): Same.
1534
1535 2020-09-14 Jakub Jelinek <jakub@redhat.com>
1536
1537 * c-attribs.c (handle_optimize_attribute): Adjust
1538 cl_optimization_save, cl_optimization_restore and
1539 build_optimization_node callers.
1540 * c-pragma.c (handle_pragma_optimize): Adjust
1541 build_optimization_node caller.
1542 (handle_pragma_push_options): Adjust
1543 build_optimization_node and build_target_option_node callers.
1544 (handle_pragma_pop_options, handle_pragma_reset_options):
1545 Adjust cl_optimization_restore callers.
1546
1547 2020-08-28 Martin Sebor <msebor@redhat.com>
1548
1549 * c.opt (Wstringop-overread): New option.
1550
1551 2020-08-11 Jakub Jelinek <jakub@redhat.com>
1552
1553 PR c/96545
1554 * c-common.c (get_atomic_generic_size): Require that first argument's
1555 type points to a complete type and use tree_fits_uhwi_p instead of
1556 just INTEGER_CST TREE_CODE check for the TYPE_SIZE_UNIT.
1557
1558 2020-07-31 Martin Sebor <msebor@redhat.com>
1559
1560 PR c++/96003
1561 * c-common.c (check_function_arguments_recurse): Return early when
1562 no-warning bit is set.
1563
1564 2020-07-31 Richard Biener <rguenther@suse.de>
1565
1566 PR debug/96383
1567 * c-common.h (c_common_finalize_early_debug): Declare.
1568 * c-common.c: Include debug.h.
1569 (c_common_finalize_early_debug): finalize_early_debug langhook
1570 implementation generating debug for extern declarations.
1571
1572 2020-07-27 Nathan Sidwell <nathan@acm.org>
1573
1574 * c-common.c (try_to_locate_new_include_insertion_point): Use
1575 strcmp, not pointer equality.
1576
1577 2020-07-25 Martin Sebor <msebor@redhat.com>
1578
1579 PR c++/96310
1580 * c-common.c (check_nonnull_arg): Print note only when warning was
1581 issued.
1582
1583 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
1584
1585 * c-omp.c (c_finish_omp_critical): Check for no name but
1586 nonzero hint provided.
1587
1588 2020-07-20 Jason Merrill <jason@redhat.com>
1589
1590 * c-cppbuiltin.c (c_cpp_builtins): Update
1591 __cpp_nontype_template_args for C++20.
1592
1593 2020-07-20 Martin Sebor <msebor@redhat.com>
1594
1595 PR c/96249
1596 * c.opt: Remove stray text.
1597
1598 2020-07-14 Lewis Hyatt <lhyatt@gmail.com>
1599
1600 PR other/86904
1601 * c-indentation.c (should_warn_for_misleading_indentation): Get
1602 global tabstop from the new source.
1603 * c-opts.c (c_common_handle_option): Remove handling of -ftabstop, which
1604 is now a common option.
1605 * c.opt: Likewise.
1606
1607 2020-07-08 Eric Botcazou <ebotcazou@adacore.com>
1608
1609 * c.opt (Wscalar-storage-order): Add explicit variable.
1610
1611 2020-07-07 Nathan Sidwell <nathan@acm.org>
1612
1613 * c-opts.c (c_common_post_options): Add 'injecting' arg to
1614 cpp_read_main_file.
1615 (c_finish_options): Add linemap_line_start calls for builtin and cmd
1616 maps. Force token position to line_table's highest line.
1617 * c-ppoutput.c (print_line_1): Refactor, print line zero.
1618 (cb_define): Always increment source line.
1619
1620 2020-07-06 Martin Sebor <msebor@redhat.com>
1621
1622 PR c++/95984
1623 * c-common.c (check_function_nonnull): Avoid checking syntesized calls
1624 to stub lambda objects with null this pointer.
1625 (check_nonnull_arg): Handle C++ nullptr.
1626
1627 2020-07-02 Jason Merrill <jason@redhat.com>
1628 Jakub Jelinek <jakub@redhat.com>
1629
1630 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_consteval.
1631
1632 2020-06-30 Jakub Jelinek <jakub@redhat.com>
1633
1634 PR c++/95963
1635 * c-common.c (check_function_arguments_recurse): Don't crash on
1636 calls to internal functions.
1637
1638 2020-06-28 Martin Sebor <msebor@redhat.com>
1639
1640 PR c++/86568
1641 * c-common.c (struct nonnull_arg_ctx): Add members.
1642 (check_function_nonnull): Use nonnull_arg_ctx as argument. Handle
1643 C++ member functions specially. Consider the this pointer implicitly
1644 nonnull.
1645 (check_nonnull_arg): Use location of argument when available.
1646 (check_function_arguments): Use nonnull_arg_ctx as argument.
1647
1648 2020-06-27 Jakub Jelinek <jakub@redhat.com>
1649
1650 PR middle-end/95903
1651 * c-common.c (pointer_int_sum): Use TYPE_OVERFLOW_UNDEFINED instead of
1652 !TYPE_UNSIGNED check to see if we can apply distributive law and handle
1653 smaller precision intop operands separately.
1654
1655 2020-06-26 Marek Polacek <polacek@redhat.com>
1656
1657 * c-opts.c (c_common_init_options): Default to gnu++17.
1658
1659 2020-06-17 Jonathan Wakely <jwakely@redhat.com>
1660
1661 PR c/95378
1662 * c-common.c (get_atomic_generic_size): Check cv-qualifiers in
1663 pointer arguments.
1664
1665 2020-06-16 Jakub Jelinek <jakub@redhat.com>
1666
1667 * c-common.h (c_omp_check_loop_iv_exprs): Add an int argument.
1668 * c-omp.c (struct c_omp_check_loop_iv_data): Add maybe_nonrect and
1669 idx members.
1670 (c_omp_is_loop_iterator): New function.
1671 (c_omp_check_loop_iv_r): Use it. Add support for silent scanning
1672 if outer loop iterator is present. Perform duplicate checking through
1673 hash_set in the function rather than expecting caller to do that.
1674 Pass NULL instead of d->ppset to walk_tree_1.
1675 (c_omp_check_nonrect_loop_iv): New function.
1676 (c_omp_check_loop_iv): Use it. Fill in new members, allow
1677 non-rectangular loop forms, diagnose multiple associated loops with
1678 the same iterator. Pass NULL instead of &pset to walk_tree_1.
1679 (c_omp_check_loop_iv_exprs): Likewise.
1680
1681 2020-06-10 Martin Liska <mliska@suse.cz>
1682
1683 PR tree-optimization/92860
1684 * c-attribs.c (handle_optimize_attribute):
1685 Save global options and compare it after parsing of function
1686 attribute.
1687 * c-pragma.c (opt_stack::saved_global_options): New field.
1688 (handle_pragma_push_options): Save global_options.
1689 (handle_pragma_pop_options): Compare them after pop.
1690
1691 2020-06-09 Jakub Jelinek <jakub@redhat.com>
1692
1693 PR c/95580
1694 * c-pretty-print.c (c_pretty_printer::unary_expression): Handle the
1695 case when MEM_REF's first argument has type pointer to incomplete type.
1696
1697 2020-06-05 Jason Merrill <jason@redhat.com>
1698
1699 * c-pretty-print.c (pp_c_additive_expression): Handle negative
1700 operand to POINTER_PLUS_EXPR.
1701
1702 2020-06-04 Martin Sebor <msebor@redhat.com>
1703
1704 PR middle-end/10138
1705 PR middle-end/95136
1706 * c-attribs.c (append_access_attrs): Handle attr_access::none.
1707 (handle_access_attribute): Same.
1708
1709 2020-06-03 Mark Wielaard <mark@klomp.org>
1710
1711 * known-headers.cc (get_cp_stdlib_header_for_string_macro_name):
1712 New function.
1713 * known-headers.h (get_cp_stdlib_header_for_string_macro_name):
1714 New function declaration.
1715
1716 2020-06-03 Mark Wielaard <mark@klomp.org>
1717
1718 * known-headers.cc (get_string_macro_hint): New function.
1719 (get_stdlib_header_for_name): Use get_string_macro_hint.
1720 (get_c_stdlib_header_for_string_macro_name): New function.
1721 * known-headers.h (get_c_stdlib_header_for_string_macro_name):
1722 New function declaration.
1723
1724 2020-06-03 Tobias Burnus <tobias@codesourcery.com>
1725
1726 * c-common.h (c_omp_predetermined_mapping): Declare.
1727 * c-omp.c (c_omp_predetermined_mapping): New.
1728
1729 2020-05-22 Mark Wielaard <mark@klomp.org>
1730
1731 * known-headers.cc (get_stdlib_header_for_name): Add a new
1732 stdlib_hint array for stdbool and stdint.
1733
1734 2020-05-22 Mark Wielaard <mark@klomp.org>
1735
1736 * known-headers.cc (get_stdlib_header_for_name): Return
1737 "<stdbool.h>" for "bool", "true" or "false" when STDLIB_C and
1738 flag_isoc99.
1739
1740 2020-05-20 Nathan Sidwell <nathan@acm.org>
1741
1742 * c-common.c (try_to_locate_new_include_insertion_point): Revert change.
1743
1744 * c-common.c (try_to_locate_new_include_insertion_point): Use
1745 strcmp to compare filenames.
1746 * c-lex.c (init_c_lex): Move declaration to initialization.
1747 * c-opts.c (handle_deferred_opts): Move cpp_get_deps call into
1748 deferred count loop.
1749
1750 2020-05-15 Jason Merrill <jason@redhat.com>
1751
1752 * c-opts.c (set_std_cxx20): Set flag_coroutines.
1753
1754 2020-05-13 Jason Merrill <jason@redhat.com>
1755
1756 * c.opt (std=c++20): Make c++2a the alias.
1757 (std=gnu++20): Likewise.
1758 * c-common.h (cxx_dialect): Change cxx2a to cxx20.
1759 * c-opts.c: Adjust.
1760 * c-cppbuiltin.c: Adjust.
1761 * c-ubsan.c: Adjust.
1762 * c-warn.c: Adjust.
1763
1764 2020-05-12 Eric Botcazou <ebotcazou@adacore.com>
1765
1766 * c-ada-spec.c (dump_ads): Output pragma Warnings ("U"); on entry.
1767
1768 2020-05-08 Nathan Sidwell <nathan@acm.org>
1769
1770 Reimplement directives only processing.
1771 * c-ppoutput.c (token_streamer): Ne.
1772 (directives_only_cb): New. Swallow ...
1773 (print_lines_directives_only): ... this.
1774 (scan_translation_unit_directives_only): Reimplment using the
1775 published interface.
1776
1777 2020-05-07 Marek Polacek <polacek@redhat.com>
1778
1779 * c-format.c (badwords): Add "nonstatic".
1780
1781 202-05-07 Jakub Jelinek <jakub@redhat.com>
1782
1783 PR c/94968
1784 * c-common.c (speculation_safe_value_resolve_params): Return false if
1785 error_operand_p (val2).
1786 (resolve_overloaded_builtin) <case BUILT_IN_SPECULATION_SAFE_VALUE_N>:
1787 Remove extraneous semicolon.
1788
1789 2020-05-06 qing zhao <qing.zhao@oracle.com>
1790
1791 PR c/94230
1792 * c-indentation.c (get_visual_column): Add a hint to use the new
1793 -flarge-source-files option.
1794
1795 2020-05-05 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
1796
1797 * c-attribs.c (handle_vector_size_attribute): Add attribute
1798 nonnull for argument args in order to silence warning of
1799 uninitialized variable usage. Since this is local to the
1800 compilation unit and thus cannot be checked at call sides by the
1801 compiler, added an assert statement in order to verify this.
1802
1803 2020-05-01 H.J. Lu <hongjiu.lu@intel.com>
1804
1805 PR target/93492
1806 * c-attribs.c (handle_patchable_function_entry_attribute): Limit
1807 value to USHRT_MAX (65535).
1808
1809 2020-04-29 Jakub Jelinek <jakub@redhat.com>
1810
1811 * c-format.c (PP_FORMAT_CHAR_TABLE): Add %{ and %}.
1812
1813 2020-04-27 Jakub Jelinek <jakub@redhat.com>
1814
1815 PR c/94755
1816 * c-common.c (resolve_overloaded_builtin): Return error_mark_node for
1817 fncode == BUILT_IN_NONE before initialization of first_param.
1818
1819 2020-04-23 Marek Polacek <polacek@redhat.com>
1820
1821 PR c++/94733
1822 * c-attribs.c (find_tm_attribute): Use get_attribute_name instead of
1823 TREE_PURPOSE.
1824
1825 2020-04-14 Patrick Palka <ppalka@redhat.com>
1826
1827 PR c++/85278
1828 * c-pretty-print.c (pp_c_pointer) <case REFERENCE_TYPE>: Print a double
1829 ampersand if it's an rvalue reference type.
1830
1831 2020-04-13 Martin Sebor <msebor@redhat.com>
1832
1833 PR c/92326
1834 * c-pretty-print.c (c_pretty_printer::direct_abstract_declarator): Avoid
1835 printing array bound for flexible array members.
1836
1837 2020-04-13 Iain Sandoe <iain@sandoe.co.uk>
1838
1839 * c-cppbuiltin.c (c_cpp_builtins): Update coroutines builtin
1840 define, per n4861.
1841
1842 2020-04-02 Richard Biener <rguenther@suse.de>
1843
1844 PR c/94392
1845 * c-opts.c (c_common_post_options): Enable -ffinite-loops
1846 for -O2 and C++11 or newer.
1847
1848 2020-03-28 Patrick Palka <ppalka@redhat.com>
1849
1850 * c.opt: Add -fconcepts-diagnostics-depth.
1851
1852 2020-03-27 Martin Sebor <msebor@redhat.com>
1853
1854 PR c++/94346
1855 * c-attribs.c (handle_copy_attribute): Avoid passing expressions
1856 to decl_attributes. Make handling of different kinds of entities
1857 more robust.
1858
1859 2020-03-27 Martin Sebor <msebor@redhat.com>
1860
1861 PR c++/94098
1862 * c-attribs.c (handle_access_attribute): Avoid setting TYPE_ATTRIBUTES
1863 here.
1864
1865 2020-03-23 Jakub Jelinek <jakub@redhat.com>
1866
1867 PR c++/91993
1868 * c-warn.c (warnings_for_convert_and_check): For expr and/or
1869 result being COMPOUND_EXPRs, skip to ultimate rhs.
1870
1871 2020-03-20 Richard Sandiford <richard.sandiford@arm.com>
1872
1873 PR middle-end/94072
1874 * c-common.c (c_common_type_for_mode): Before using a registered
1875 built-in type, check that the vectorness of the type matches
1876 the vectorness of the mode.
1877
1878 2020-03-17 Jakub Jelinek <jakub@redhat.com>
1879
1880 * c-common.c (resolve_overloaded_builtin): Fix up duplicated word
1881 issue in a diagnostic message.
1882
1883 2020-03-15 Lewis Hyatt <lhyatt@gmail.com>
1884
1885 * c.opt: Avoid redundancy in the help text.
1886
1887 2020-03-02 Marek Polacek <polacek@redhat.com>
1888
1889 PR c++/93958 - add missing -std=gnu++20.
1890 * c.opt: Add -std=gnu++20.
1891
1892 2020-03-01 Martin Sebor <msebor@redhat.com>
1893
1894 PR c++/92721
1895 * c-attribs.c (append_access_attrs): Correctly handle attribute.
1896 (handle_access_attribute): Same.
1897
1898 2020-02-25 Jakub Jelinek <jakub@redhat.com>
1899
1900 PR c/93858
1901 * c-pragma.c (handle_pragma_diagnostic): Add missing ? after
1902 "did you mean" hint in diagnostics.
1903
1904 2020-02-15 Jason Merrill <jason@redhat.com>
1905
1906 * c.opt: Add -std=c++20.
1907
1908 2020-02-14 Eric Botcazou <ebotcazou@adacore.com>
1909
1910 * c-ada-spec.c: Include bitmap.h.
1911 (dump_ada_double_name): Rename into...
1912 (dump_anonymous_type_name): ...this. Always use the TYPE_UID.
1913 (dump_ada_array_type): Adjust to above renaming. Robustify.
1914 (dump_nested_types_1): New function copied from... Add dumped_types
1915 parameter and pass it down to dump_nested_type.
1916 (dump_nested_types): ...this. Remove parent parameter. Just call
1917 dump_nested_types_1 on an automatic bitmap.
1918 (dump_nested_type): Add dumped_types parameter.
1919 <ARRAY_TYPE>: Do not dump it if already present in dumped_types.
1920 Adjust recursive calls and adjust to above renaming.
1921 (dump_ada_declaration): Adjust call to dump_nested_types.
1922 Tidy up and adjust to above renaming.
1923 (dump_ada_specs): Initialize and release bitmap obstack.
1924
1925 2020-02-10 Martin Sebor <msebor@redhat.com>
1926
1927 PR c/93640
1928 * c-attribs.c (handle_access_attribute): Correct off-by-one mistakes.
1929
1930 2020-02-10 Jakub Jelinek <jakub@redhat.com>
1931
1932 PR other/93641
1933 * c-format.c (check_plain): Fix up last argument of strncasecmp.
1934 Remove useless extra test.
1935
1936 2020-02-03 Julian Brown <julian@codesourcery.com>
1937 Tobias Burnus <tobias@codesourcery.com>
1938
1939 * c-cppbuiltin.c (c_cpp_builtins): Update _OPENACC define to 201711.
1940
1941 2020-01-29 Jason Merrill <jason@redhat.com>
1942
1943 PR c++/89357
1944 * c-attribs.c (check_cxx_fundamental_alignment_constraints): Remove.
1945
1946 2020-01-23 Jason Merrill <jason@redhat.com>
1947
1948 * c-warn.c (conversion_warning): Change -Wsign-conversion handling.
1949
1950 2020-01-23 Martin Sebor <msebor@redhat.com>
1951
1952 PR c/84919
1953 * c-common.c (check_function_arguments): Avoid overlap checking
1954 of sprintf functions.
1955
1956 2020-01-22 Jason Merrill <jason@redhat.com>
1957
1958 PR testsuite/93391 - PR 40752 test fails with unsigned plain char.
1959 PR c++/40752
1960 * c-warn.c (conversion_warning): Check operands only after checking
1961 the whole expression. Don't check second operand of + for sign.
1962
1963 2020-01-21 Jason Merrill <jason@redhat.com>
1964 Manuel López-Ibáñez <manu@gcc.gnu.org>
1965
1966 PR c++/40752 - useless -Wconversion with short +=.
1967 * c.opt (-Warith-conversion): New.
1968 * c-warn.c (conversion_warning): Recurse for operands of
1969 operators. Only warn about the whole expression with
1970 -Warith-conversion.
1971
1972 2020-01-21 Jason Merrill <jason@redhat.com>
1973
1974 * c-common.c (unsafe_conversion_p): Don't warn, return UNSAFE_SIGN.
1975 * c-warn.c (conversion_warning): Warn about UNSAFE_SIGN.
1976
1977 2020-01-20 Nathan Sidwell <nathan@acm.org>
1978
1979 PR preprocessor/80005
1980 * c-cppbuiltins.c (c_cpp_builtins): Don't define __has_include{,_next}.
1981
1982 2020-01-18 Iain Sandoe <iain@sandoe.co.uk>
1983
1984 * c-common.c (co_await, co_yield, co_return): New.
1985 * c-common.h (RID_CO_AWAIT, RID_CO_YIELD,
1986 RID_CO_RETURN): New enumeration values.
1987 (D_CXX_COROUTINES): Bit to identify coroutines are active.
1988 (D_CXX_COROUTINES_FLAGS): Guard for coroutine keywords.
1989 * c-cppbuiltin.c (__cpp_coroutines): New cpp define.
1990 * c.opt (fcoroutines): New command-line switch.
1991
1992 2020-01-10 David Malcolm <dmalcolm@redhat.com>
1993
1994 * c-format.c (local_event_ptr_node): New.
1995 (PP_FORMAT_CHAR_TABLE): Add entry for "%@".
1996 (init_dynamic_diag_info): Initialize local_event_ptr_node.
1997 * c-format.h (T_EVENT_PTR): New define.
1998
1999 2020-01-10 Martin Sebor <msebor@redhat.com>
2000
2001 PR c/93132
2002 * c-attribs.c (append_access_attrs): Validate against the translated
2003 access string rather than the human-readable representation.
2004
2005 2020-01-01 Jakub Jelinek <jakub@redhat.com>
2006
2007 Update copyright years.
2008
2009 2019-12-20 Eric Botcazou <ebotcazou@adacore.com>
2010
2011 * c-ada-spec.h (decl_sloc): Delete.
2012 * c-ada-spec.c (decl_sloc): Make static.
2013
2014 2019-12-19 Julian Brown <julian@codesourcery.com>
2015
2016 * c-common.h (c_omp_map_clause_name): Add prototype.
2017 * c-omp.c (c_omp_map_clause_name): New function.
2018 * c-pragma.h (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ATTACH and
2019 PRAGMA_OACC_CLAUSE_DETACH.
2020
2021 2019-12-19 Julian Brown <julian@codesourcery.com>
2022 Maciej W. Rozycki <macro@codesourcery.com>
2023 Tobias Burnus <tobias@codesourcery.com>
2024 Thomas Schwinge <thomas@codesourcery.com>
2025
2026 * c-pragma.h (pragma_omp_clause): Add
2027 PRAGMA_OACC_CLAUSE_NO_CREATE.
2028
2029 2019-12-17 Martin Sebor <msebor@redhat.com>
2030
2031 PR c++/61339
2032 * c.opt (-Wmismatched-tags, -Wredundant-tags): New options.
2033
2034 2019-12-11 David Malcolm <dmalcolm@redhat.com>
2035
2036 * c-pretty-print.c (c_pretty_printer::clone): New vfunc
2037 implementation.
2038 * c-pretty-print.h (c_pretty_printer::clone): New vfunc decl.
2039
2040 2019-12-09 David Malcolm <dmalcolm@redhat.com>
2041
2042 * c-format.c (range_label_for_format_type_mismatch::get_text):
2043 Replace label_text ctor called with true with label_text::take.
2044
2045 2019-12-09 David Malcolm <dmalcolm@redhat.com>
2046
2047 * c-format.c (selftest::test_type_mismatch_range_labels): Remove
2048 initial newline from expected outputs.
2049 * c-opts.c (c_diagnostic_finalizer): Add pp_newline call before
2050 call to diagnostic_show_locus.
2051
2052 2019-12-06 Jakub Jelinek <jakub@redhat.com>
2053
2054 * c-cppbuiltin.c (c_cpp_builtins): Don't define __cpp_consteval for
2055 now.
2056
2057 2019-12-05 Marek Polacek <polacek@redhat.com>
2058 Jakub Jelinek <jakub@redhat.com>
2059
2060 PR c++/91353 - P1331R2: Allow trivial default init in constexpr contexts.
2061 * c-cppbuiltin.c (c_cpp_builtins): Adjust the value of __cpp_constexpr.
2062
2063 2019-12-05 Marek Polacek <polacek@redhat.com>
2064
2065 PR c++/92271 - make __is_same alias for __is_same_as.
2066 * c-common.c: Add __is_same, an alias for __is_same_as.
2067
2068 2019-12-03 Marek Polacek <polacek@redhat.com>
2069
2070 PR c++/91363 - P0960R3: Parenthesized initialization of aggregates.
2071 * c-cppbuiltin.c (c_cpp_builtins): Predefine
2072 __cpp_aggregate_paren_init=201902 for -std=c++2a.
2073
2074 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
2075
2076 * c-attribs.c (handle_symver_attribute): New function
2077 (c_common_attributes): Add symver.
2078
2079 2019-11-30 Richard Sandiford <richard.sandiford@arm.com>
2080
2081 * c-common.c (pointer_int_sum): Use verify_type_context to check
2082 whether the target allows pointer arithmetic for the types involved.
2083 (c_sizeof_or_alignof_type, c_alignof_expr): Use verify_type_context
2084 to check whether the target allows sizeof and alignof operations
2085 for the types involved.
2086
2087 2019-11-27 Jason Merrill <jason@redhat.com>
2088
2089 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_deduction_guides.
2090
2091 2019-11-26 Jakub Jelinek <jakub@redhat.com>
2092
2093 PR c++/61414
2094 * c-attribs.c (handle_mode_attribute): Add mode attribute to
2095 ENUMERAL_TYPEs.
2096
2097 2019-11-25 Joseph Myers <joseph@codesourcery.com>
2098
2099 PR c/91985
2100 * c-common.c (c_common_type_for_mode): Handle decimal
2101 floating-point types being NULL_TREE.
2102 * c-format.c (get_format_for_type_1): Handle specified types being
2103 NULL_TREE.
2104 * c-lex.c (interpret_float): Give an error for decimal
2105 floating-point constants when decimal floating-point not
2106 supported.
2107
2108 2019-11-23 Jakub Jelinek <jakub@redhat.com>
2109
2110 PR middle-end/83859
2111 * c-attribs.c (append_access_attrs): Avoid buffer overflow. Avoid
2112 memory leak. Use XNEWVEC macro. Use auto_diagnostic_group to
2113 group warning with inform together.
2114 (handle_access_attribute): Formatting fix.
2115
2116 2019-11-22 Jakub Jelinek <jakub@redhat.com>
2117
2118 PR c/90677
2119 * c-common.h (identifier_global_tag): Declare.
2120 * c-format.c (get_pointer_to_named_type): Renamed to ...
2121 (get_named_type): ... this. Use identifier_global_tag instead of
2122 identifier_global_value, handle the return value being a TYPE_P.
2123 (init_dynamic_diag_info): Adjust get_pointer_to_named_type callers
2124 to call get_named_type instead. Formatting fixes.
2125
2126 Implement P1902R1, Missing feature-test macros 2017-2019.
2127 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_init_captures
2128 and __cpp_generic_lambdas for -std=c++2a. Define
2129 __cpp_designated_initializers, __cpp_constexpr_in_decltype and
2130 __cpp_consteval for -std=c++2a. Remove a FIXME comment about
2131 __cpp_concepts for -std=c++2a.
2132
2133 2019-11-22 Martin Sebor <msebor@redhat.com>
2134
2135 PR middle-end/83859
2136 * c-attribs.c (handle_access_attribute): New function.
2137 (c_common_attribute_table): Add new attribute.
2138 (get_argument_type): New function.
2139 (append_access_attrs): New function.
2140 (get_nonnull_operand): Rename...
2141 (get_attribute_operand): ...to this.
2142 * c-common.c (get_nonnull_operand): Rename...
2143 (get_attribute_operand): ...to this.
2144
2145 2019-11-21 Joseph Myers <joseph@codesourcery.com>
2146
2147 * c-attribs.c (handle_fallthrough_attribute): Use pedwarn instead
2148 of warning.
2149
2150 2019-11-19 Joseph Myers <joseph@codesourcery.com>
2151
2152 * c-common.c (attribute_fallthrough_p): In C, use pedwarn not
2153 warning for standard attributes mixed with fallthrough attributes.
2154
2155 2019-11-15 Joseph Myers <joseph@codesourcery.com>
2156
2157 * c-attribs.c (handle_fallthrough_attribute): Remove static.
2158 * c-common.h (handle_fallthrough_attribute): Declare.
2159
2160 2019-11-15 Joseph Myers <joseph@codesourcery.com>
2161
2162 * c-attribs.c (handle_deprecated_attribute): Remove static.
2163 * c-common.h (handle_deprecated_attribute): Declare.
2164
2165 2019-11-14 Joseph Myers <joseph@codesourcery.com>
2166
2167 * c-lex.c (lex_charconst): Make CPP_UTF8CHAR constants unsigned
2168 char for C.
2169
2170 2019-11-14 Jakub Jelinek <jakub@redhat.com>
2171
2172 * c-omp.c (c_omp_check_context_selector): Add nvidia to the list of
2173 valid vendors.
2174
2175 * c-omp.c (c_omp_check_context_selector): Handle name lists
2176 containing string literals. Don't diagnose atomic_default_mem_order
2177 with multiple props.
2178
2179 2019-11-13 Joseph Myers <joseph@codesourcery.com>
2180
2181 * c-cppbuiltin.c (builtin_define_float_constants): Also define
2182 NORM_MAX constants. Update call to get_max_float.
2183 (LAZY_HEX_FP_VALUES_CNT): Update value to include NORM_MAX
2184 constants.
2185
2186 2019-11-13 Eric Botcazou <ebotcazou@adacore.com>
2187
2188 * c-ada-spec.c (get_underlying_decl): Do not look through typedefs.
2189 (dump_forward_type): Do not generate a declaration for function types.
2190 (dump_nested_type) <ARRAY_TYPE>: Do not generate a nested declaration
2191 of the component type if it is declared in another file.
2192
2193 2019-11-12 Martin Liska <mliska@suse.cz>
2194
2195 * c-opts.c (c_common_post_options):
2196 Use SET_OPTION_IF_UNSET.
2197
2198 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
2199 Frederik Harwath <frederik@codesourcery.com>
2200
2201 gcc/c-family/
2202 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_SERIAL enumeration
2203 constant.
2204 * c-pragma.c (oacc_pragmas): Add "serial" entry.
2205
2206 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
2207
2208 * c-common.h (gnu_vector_type_p): New function.
2209 * c-common.c (c_build_vec_perm_expr): Require __builtin_shuffle
2210 vectors to satisfy gnu_vector_type_p.
2211 (c_build_vec_convert): Likewise __builtin_convertvector.
2212 (convert_vector_to_array_for_subscript): Likewise when applying
2213 implicit vector to array conversion.
2214 (scalar_to_vector): Likewise when converting vector-scalar
2215 operations to vector-vector operations.
2216
2217 2019-11-08 Joseph Myers <joseph@codesourcery.com>
2218
2219 * c.opt (Wold-style-definition): Initialize to -1.
2220 * c-opts.c (c_common_post_options): Set warn_old_style_definition
2221 to flag_isoc2x if not set explicitly.
2222
2223 2019-11-07 Joseph Myers <joseph@codesourcery.com>
2224
2225 * c-attribs.c (parse_tm_stmt_attr): Handle scoped attributes.
2226
2227 2019-11-05 Jason Merrill <jason@redhat.com>
2228
2229 * c-opts.c (c_common_post_options): -fconcepts-ts implies
2230 -fconcepts.
2231
2232 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
2233
2234 * c-opts.c (c_common_post_options): Update
2235 latest_abi_version.
2236
2237 2019-11-02 Jakub Jelinek <jakub@redhat.com>
2238
2239 * c-common.h (c_omp_get_context_selector): Remove.
2240 * c-omp.c (c_omp_get_context_selector): Moved to omp-general.c
2241 and renamed to omp_get_context_selector.
2242
2243 * c-omp.c (c_omp_mark_declare_variant): Use
2244 omp_context_selector_set_compare.
2245
2246 PR c++/88335 - Implement P1073R3: Immediate functions
2247 * c-common.h (enum rid): Add RID_CONSTEVAL.
2248 * c-common.c (c_common_reswords): Add consteval.
2249
2250 2019-11-01 Martin Sebor <msebor@redhat.com>
2251
2252 PR middle-end/91679
2253 PR middle-end/91647
2254 PR middle-end/91463
2255 PR middle-end/92312
2256 * c-pretty-print.c (direct_abstract_declarator): Print
2257 bound in zero-length arrays.
2258 * c.opt (-Wzero-length-bounds): New option.
2259
2260 2019-10-30 Nathan Sidwell <nathan@acm.org>
2261
2262 * c-cppbuiltin.c (c_cpp_builtins): Add 'L' suffix to feature
2263 macros.
2264
2265 2019-10-28 Martin Sebor <msebor@redhat.com>
2266
2267 PR c/66970
2268 * c-common.c (c_common_nodes_and_builtins): Call c_define_builtins
2269 even when only preprocessing.
2270 * c-common.h (names_builtin_p): Declare new function.
2271 * c-lex.c (init_c_lex): Set has_builtin.
2272 (c_common_has_builtin): Define a new function.
2273 * c-ppoutput.c (init_pp_output): Set has_builtin.
2274
2275 2019-10-24 Jakub Jelinek <jakub@redhat.com>
2276
2277 * c-common.h (c_omp_context_selector_matches): Remove.
2278 * c-omp.c (c_omp_context_selector_matches): Remove.
2279 * c-attribs.c (c_common_attribute_table): Add
2280 "omp declare target {host,nohost,block}" attributes.
2281
2282 2019-10-17 JeanHeyd Meneide <phdofthehouse@gmail.com>
2283
2284 * c-lex.c (c_common_has_attribute): Update nodiscard value.
2285
2286 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
2287
2288 * c-common.h (user_facing_original_type_p): Declare.
2289 * c-common.c: Include c-spellcheck.h.
2290 (user_facing_original_type_p): New function.
2291
2292 2019-10-12 Jakub Jelinek <jakub@redhat.com>
2293
2294 * c-common.h (c_omp_mark_declare_variant,
2295 c_omp_context_selector_matches): Declare.
2296 * c-omp.c: Include attribs.h, gimplify.h, cgraph.h, symbol-summary.h
2297 and hsa-common.h.
2298 (c_omp_get_context_selector): Support second argument NULL.
2299 (c_omp_mark_declare_variant, c_omp_context_selector_matches): New
2300 functions.
2301 * c-attribs.c (c_common_attribute_table): Remove "omp declare variant"
2302 attribute, add "omp declare variant base" and
2303 "omp declare variant variant" attributes.
2304
2305 2019-10-11 Joseph Myers <joseph@codesourcery.com>
2306
2307 * c.opt (Wc11-c2x-compat): Add CPP(cpp_warn_c11_c2x_compat)
2308 CppReason(CPP_W_C11_C2X_COMPAT).
2309
2310 2019-10-11 Joseph Myers <joseph@codesourcery.com>
2311
2312 * c-common.c (c_common_reswords): Do not use D_EXT for _Decimal32,
2313 _Decimal64 and _Decimal128.
2314
2315 2019-10-10 Joseph Myers <joseph@codesourcery.com>
2316
2317 * c-cppbuiltin.c (c_cpp_builtins): Do not define macros for DFP
2318 types if DFP not supported.
2319
2320 2019-10-10 Jakub Jelinek <jakub@redhat.com>
2321
2322 * c-common.h (c_omp_check_context_selector,
2323 c_omp_get_context_selector): Declare.
2324 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): Fix spelling
2325 in diagnostic message.
2326 (c_omp_check_context_selector, c_omp_get_context_selector): New
2327 functions.
2328 * c-attribs.c (c_common_attribute_table): Add "omp declare variant"
2329 attribute.
2330 (handle_omp_declare_variant_attribute): New function.
2331
2332 2019-10-09 Martin Sebor <msebor@redhat.com>
2333
2334 PR tree-optimization/90879
2335 * c.opt (-Wstring-compare): New option.
2336
2337 2019-10-08 Andrew Sutton <asutton@lock3software.com>
2338 Jason Merrill <jason@redhat.com>
2339
2340 Update the concepts implementation to conform to the C++20
2341 specification, improve compile times, and generally clean up
2342 the implementation.
2343
2344 * c-cppbuiltin.c (c_cpp_builtins): Use new feature test values for
2345 concepts when -std=c++2a. Bump __cpp_concepts to 201907.
2346 * c.opt: Add -Wconcepts-ts.
2347 * c-opts.c (c_common_post_options): Warn when -fconcepts is used
2348 with -std=c++2a. Disable warning for -fconcepts in C++20 mode.
2349 (set_std_cxx2a): Enable concepts by default.
2350
2351 2019-10-08 Joseph Myers <joseph@codesourcery.com>
2352
2353 * c-opts.c (c_common_post_options): Set
2354 -fno-fp-int-builtin-inexact for C2X.
2355
2356 2019-10-05 Jakub Jelinek <jakub@redhat.com>
2357
2358 PR c++/91369 - Implement P0784R7: constexpr new
2359 * c-cppbuiltin.c (c_cpp_builtins): Predefine
2360 __cpp_constexpr_dynamic_alloc=201907 for -std=c++2a.
2361
2362 2019-10-04 Joseph Myers <joseph@codesourcery.com>
2363
2364 PR c/82752
2365 * c-format.c (C_STD_VER): Handle C2x.
2366 (C_STD_NAME): Likewise.
2367 (strftime_flag_specs): Add 'O' modifier with 'p' flag.
2368 (time_char_table): Use separate entry for 'B' and 'b', with 'O'
2369 modifier allowed and 'p' flag.
2370 * c-format.h (enum format_std_version): Add STD_C2X.
2371 (struct format_char_info): Mention 'p' in comment on flags2.
2372
2373 2019-10-01 David Malcolm <dmalcolm@redhat.com>
2374
2375 * c-opts.c (c_diagnostic_finalizer): Temporarily clear prefix when
2376 calling diagnostic_show_locus, rather than destroying it afterwards.
2377
2378 2019-10-01 Jakub Jelinek <jakub@redhat.com>
2379
2380 PR c++/91925
2381 * c-warn.c (check_alignment_of_packed_member): Ignore FIELD_DECLs
2382 with NULL DECL_FIELD_OFFSET.
2383
2384 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
2385
2386 * c-pretty-print.c (pp_c_specifier_qualifier_list): If a vector type
2387 has a type name, use it in preference to the __vector syntax.
2388
2389 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2390
2391 * c-pretty-print.c (pp_c_parameter_type_list): Avoid printing
2392 two spaces between a comma and "...".
2393
2394 2019-09-27 Jakub Jelinek <jakub@redhat.com>
2395
2396 PR c++/88203
2397 * c-common.h (c_omp_predefined_variable): Declare.
2398 * c-omp.c (c_omp_predefined_variable): New function.
2399 (c_omp_predetermined_sharing): Return OMP_CLAUSE_DEFAULT_SHARED
2400 for predefined variables.
2401
2402 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2403
2404 * c-common.h (build_function_call_vec): Take the original
2405 function decl as an optional final parameter.
2406 (check_builtin_function_arguments): Take the original function decl.
2407 * c-common.c (check_builtin_function_arguments): Likewise.
2408 Handle all built-in functions, not just BUILT_IN_NORMAL ones.
2409 Use targetm.check_builtin_call to check BUILT_IN_MD functions.
2410
2411 2019-09-15 Jason Merrill <jason@redhat.com>
2412
2413 * c-warn.c (warn_logical_operator): Strip location wrappers. Don't
2414 fold_for_warn in "|| mask" warning.
2415
2416 2019-09-10 Martin Liska <mliska@suse.cz>
2417
2418 * c.opt: Use newly added WarnRemoved.
2419
2420 2019-09-09 Martin Liska <mliska@suse.cz>
2421
2422 * c.opt: Update comment of removed
2423 options that are preserved only for backward
2424 compatibility.
2425
2426 2019-09-06 Martin Liska <mliska@suse.cz>
2427
2428 PR c++/91125
2429 * c-common.c: Remove definition of flag_use_repository.
2430 * c-common.h: Likewise.
2431 * c-opts.c (c_common_handle_option):
2432 Do not handle OPT_frepo option.
2433 * c.opt: Mark the option with Deprecated.
2434
2435 2019-09-04 Marek Polacek <polacek@redhat.com>
2436
2437 * c.opt (fdeduce-init-list): Ignored.
2438
2439 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2440
2441 PR c/78736
2442 * c.opt (Wenum-conversion): New option.
2443
2444 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2445
2446 * c-attribs.c (handle_section_attribute): Call the
2447 handle_generic_attribute target hook after performing target
2448 independent processing.
2449 (handle_noinit_attribute): Likewise.
2450
2451 2019-09-03 Ian Lance Taylor <iant@golang.org>
2452
2453 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Always expand
2454 when using -fgo-dump-spec.
2455
2456 2019-09-02 Martin Liska <mliska@suse.cz>
2457
2458 PR c++/91155
2459 * c-common.c (fname_as_string): Use cxx_printable_name for
2460 __PRETTY_FUNCTION__ same as was used before r265711.
2461
2462 2019-08-28 Marek Polacek <polacek@redhat.com>
2463
2464 Implement P1152R4: Deprecating some uses of volatile.
2465 PR c++/91361
2466 * c-opts.c (c_common_post_options): Enable -Wvolatile by
2467 default for C++2a, unless -Wno-deprecated.
2468 * c.opt (Wvolatile): New warning.
2469
2470 2019-08-28 Marek Polacek <polacek@redhat.com>
2471
2472 PR c++/91360 - Implement C++20 P1143R2: constinit.
2473 * c-common.c (c_common_reswords): Add constinit and __constinit.
2474 (keyword_is_decl_specifier): Handle RID_CONSTINIT.
2475 * c-common.h (enum rid): Add RID_CONSTINIT, RID_FIRST_CXX20, and
2476 RID_LAST_CXX20.
2477 (D_CXX20): Define.
2478 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_constinit.
2479 * c-format.c (cxx_keywords): Add "constinit".
2480 * c.opt (Wc++2a-compat, Wc++20-compat): New options.
2481
2482 2019-08-27 Jakub Jelinek <jakub@redhat.com>
2483
2484 PR c++/91415
2485 * c-common.c (verify_tree): For LSHIFT_EXPR, RSHIFT_EXPR,
2486 COMPONENT_REF and ARRAY_REF in cxx_dialect >= cxx17 mode handle it
2487 like COMPOUND_EXPR rather than normal expression.
2488
2489 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
2490
2491 PR pch/61250
2492 * c-lex.c (c_lex_with_flags): Don't call
2493 c_common_no_more_pch () from here.
2494
2495 2019-08-23 Jakub Jelinek <jakub@redhat.com>
2496
2497 PR middle-end/91283
2498 * c-common.c (c_ts18661_flt_eval_method): Use flag_excess_precision
2499 instead of flag_excess_precision_cmdline.
2500 * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): Likewise.
2501 * c-opts.c (c_common_post_options): Likewise.
2502
2503 2019-08-22 Martin Sebor <msebor@redhat.com>
2504
2505 PR middle-end/91490
2506 * c-common.c (braced_list_to_string): Add argument and overload.
2507 Handle flexible length arrays and unions.
2508
2509 2019-08-21 Eric Botcazou <ebotcazou@adacore.com>
2510
2511 * c-ada-spec.c (dump_ada_function_declaration): Be prepared for broken
2512 function declarations where arguments are missing. Rename variables.
2513
2514 2019-08-15 Richard Biener <rguenther@suse.de>
2515
2516 * c-common.c (c_stddef_cpp_builtins): When the GIMPLE FE is
2517 enabled, define __SIZETYPE__.
2518
2519 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
2520
2521 * c-attribs.c (c_common_attribute_table): Add "noinit" entry. Add
2522 exclusion with "section" attribute.
2523 (attr_noinit_exclusions): New table.
2524 (handle_noinit_attribute): New function.
2525
2526 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2527
2528 PR middle-end/91421
2529 * c-common.c (resolve_overloaded_builtin): Use
2530 copy_decl_built_in_function.
2531
2532 2019-08-13 Martin Sebor <msebor@redhat.com>
2533
2534 PR c/80619
2535 * c-format.c (printf_length_specs): Set FMT_LEN_w for "w".
2536 (asm_fprintf_length_spec): Same.
2537 * c-format.h (format_lengths): Add FMT_LEN_w.
2538
2539 2019-08-10 Jakub Jelinek <jakub@redhat.com>
2540
2541 * c-pragma.h (enum pragma_omp_clause): Add
2542 PRAGMA_OMP_CLAUSE_DEVICE_TYPE.
2543
2544 2019-08-07 Jakub Jelinek <jakub@redhat.com>
2545
2546 * c-pragma.h (enum pragma_omp_clause): Add
2547 PRAGMA_OMP_CLAUSE_USE_DEVICE_ADDR. Set PRAGMA_OACC_CLAUSE_USE_DEVICE
2548 equal to PRAGMA_OMP_CLAUSE_USE_DEVICE_PTR instead of being a separate
2549 enumeration value.
2550
2551 2019-08-05 Marek Polacek <polacek@redhat.com>
2552
2553 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
2554 * c-opts.c (c_common_post_options): Enable -Wcomma-subscript by
2555 default for C++2a, unless -Wno-deprecated.
2556 * c.opt (Wcomma-subscript): New warning.
2557
2558 2019-07-20 Jakub Jelinek <jakub@redhat.com>
2559
2560 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_LOOP.
2561 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_BIND.
2562 * c-pragma.c (omp_pragmas_simd): Add PRAGMA_OMP_LOOP entry.
2563 * c-common.h (enum c_omp_clause_split): Add C_OMP_CLAUSE_SPLIT_LOOP.
2564 * c-omp.c (c_omp_split_clauses): Add support for 4 new combined
2565 constructs with the loop construct.
2566
2567 2019-07-13 Jakub Jelinek <jakub@redhat.com>
2568
2569 PR c/91149
2570 * c-omp.c (c_omp_split_clauses): Fix a pasto in
2571 OMP_CLAUSE_REDUCTION_TASK handling.
2572
2573 2019-07-12 Jakub Jelinek <jakub@redhat.com>
2574
2575 * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ORDER.
2576 * c-omp.c (c_omp_split_clauses): Handle splitting of OMP_CLAUSE_ORDER.
2577
2578 2019-07-09 Martin Sebor <msebor@redhat.com>
2579
2580 PR c++/61339
2581 * c-opts.c (handle_deferred_opts): Change class-key of PODs to struct
2582 and others to class.
2583 * c-pretty-print.h: Same.
2584
2585 2019-07-09 Martin Sebor <msebor@redhat.com>
2586
2587 PR c++/61339
2588 * c-format.c (check_argument_type): Change class-key from class to
2589 struct and vice versa to match convention and avoid -Wclass-is-pod
2590 and -Wstruct-no-pod.
2591 * c-pretty-print.h: Same.
2592
2593 2019-07-03 Martin Liska <mliska@suse.cz>
2594
2595 * c-common.c (try_to_locate_new_include_insertion_point): Remove
2596 dead assignemts.
2597
2598 2019-07-03 Jakub Jelinek <jakub@redhat.com>
2599
2600 * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_REDUCTION_INSCAN
2601 clauses on OMP_FOR rather than OMP_PARALLEL when OMP_FOR is combined
2602 with OMP_PARALLEL.
2603
2604 2019-07-02 qing zhao <qing.zhao@oracle.com>
2605
2606 PR preprocessor/90581
2607 * c-opts.c (c_common_handle_option): Handle -fmax-include-depth.
2608 * c.opt: Add new option -fmax-include-depth.
2609
2610 2019-06-26 Jason Merrill <jason@redhat.com>
2611
2612 PR c++/55442 - memory-hog with highly recursive constexpr.
2613 * c.opt (fconstexpr-loop-limit): New.
2614
2615 2019-06-25 Jakub Jelinek <jakub@redhat.com>
2616
2617 PR sanitizer/90954
2618 * c-omp.c (c_finish_omp_atomic): Allow tree_invariant_p in addition
2619 to SAVE_EXPR in first operand of a COMPOUND_EXPR.
2620
2621 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2622
2623 * c-common.c (c_common_nodes_and_builtins): Define
2624 alternate "__intN__" name for "__intN" types.
2625
2626 2019-06-24 Jan Hubicka <jh@suse.cz>
2627
2628 * c-common.c (braced_lists_to_strings): Check that
2629 type is array or integer prior checking string flag.
2630
2631 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
2632
2633 PR c++/90875 - added -Wswitch-outside-range option
2634 * c.opt (Wswitch-outside-range): Added new option.
2635 * c-warn.c (c_do_switch_warnings): Use OPT_Wswitch-outside-range.
2636
2637 2019-06-21 Marek Polacek <polacek@redhat.com>
2638
2639 PR c++/90953 - ICE with -Wmissing-format-attribute.
2640 * c-common.c (check_function_arguments_recurse): Use
2641 get_attribute_name.
2642 (check_missing_format_attribute): Likewise.
2643
2644 2019-06-19 Marek Polacek <polacek@redhat.com>
2645
2646 PR c++/60364 - noreturn after first decl not diagnosed.
2647 * c-attribs.c (handle_noreturn_attribute): No longer static.
2648 * c-common.h (handle_noreturn_attribute, attr_noreturn_exclusions):
2649 Declare.
2650 * c-format.c (check_function_format): Use get_attribute_name.
2651
2652 2019-06-19 Martin Sebor <msebor@redhat.com>
2653
2654 PR translation/90156
2655 * c-format.c (function_format_info::format_type): Adjust type.
2656 (function_format_info::is_raw): New member.
2657 (decode_format_type): Adjust signature. Handle "raw" diag attributes.
2658 (decode_format_attr): Adjust call to decode_format_type.
2659 Avoid a redundant call to convert_format_name_to_system_name.
2660 Avoid abbreviating the word "arguments" in a diagnostic.
2661 (format_warning_substr): New function.
2662 (avoid_dollar_number): Quote dollar sign in a diagnostic.
2663 (finish_dollar_format_checking): Same.
2664 (check_format_info): Same.
2665 (struct baltoks_t): New.
2666 (c_opers, c_keywords, cxx_keywords, badwords, contrs): New arrays.
2667 (maybe_diag_unbalanced_tokens, check_tokens, check_plain): New
2668 functions.
2669 (check_format_info_main): Call check_plain. Use baltoks_t. Call
2670 maybe_diag_unbalanced_tokens.
2671 (handle_format_attribute): Spell out the word "arguments" in
2672 a diagnostic.
2673
2674 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
2675
2676 PR c++/90449 - add -Winaccessible-base option.
2677 * c.opt (Winaccessible-base): New option.
2678
2679 2019-06-10 Jakub Jelinek <jakub@redhat.com>
2680
2681 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_SCAN.
2682 * c-pragma.c (omp_pragmas_simd): Add #pragma omp scan.
2683 * c-omp.c (c_omp_split_clauses): Diagnose inscan reductions on
2684 combined/composite constructs where it is not allowed. Copy over
2685 OMP_CLAUSE_REDUCTION_INSCAN.
2686
2687 2019-06-05 Martin Sebor <msebor@redhat.com>
2688
2689 * c-attribs.c (handle_mode_attribute): Adjust quoting and hyphenation.
2690 (handle_alias_ifunc_attribute): Same.
2691 (handle_copy_attribute): Same.
2692 (handle_weakref_attribute): Same.
2693 (handle_nonnull_attribute): Same.
2694 * c-warn.c (warn_for_sign_compare): Same.
2695 (warn_for_restrict): Same.
2696 * c.opt: Same.
2697
2698 2019-06-05 Martin Sebor <msebor@redhat.com>
2699
2700 * c-pragma.c (handle_pragma_weak): Adjust quoting in a diagnostic.
2701 * c.opt (-Wformat-diag): Remove a spurious period.
2702
2703 2019-05-29 Jakub Jelinek <jakub@redhat.com>
2704
2705 PR c/90628
2706 * c-common.c (check_builtin_function_arguments)
2707 <case BUILTIN_*_OVERFLOW>: Diagnose pointer to const qualified integer
2708 as last argument.
2709
2710 2019-05-23 Eric Botcazou <ebotcazou@adacore.com>
2711
2712 * c-ada-spec.c (compare_node): Compare the DECL_UIDs as a last resort.
2713
2714 2019-05-22 Martin Liska <mliska@suse.cz>
2715
2716 PR lto/90500
2717 * c-attribs.c (handle_copy_attribute): Do not copy
2718 target_clones attribute.
2719
2720 2019-05-21 Eric Botcazou <ebotcazou@adacore.com>
2721
2722 * c-ada-spec.h (enum cpp_operation): Add IS_ASSIGNMENT_OPERATOR.
2723 * c-ada-spec.c (print_assignment_operator): New function.
2724 (dump_ada_declaration) <FUNCTION_DECL>: Call it do dump explicit copy
2725 assignment operators declared as methods and filter out the others.
2726
2727 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
2728
2729 PR c/89433
2730 * c-attribs.c (c_common_attribute_table): Set min_len to -1 for
2731 "omp declare target".
2732
2733 2019-05-16 Martin Sebor <msebor@redhat.com>
2734
2735 * c-attribs.c (handle_no_sanitize_attribute): Quote identifiers,
2736 keywords, operators, and types in diagnostics.
2737 (handle_scalar_storage_order_attribute): Same.
2738 (handle_mode_attribute): Same.
2739 (handle_visibility_attribute): Same.
2740 (handle_assume_aligned_attribute): Same.
2741 (handle_no_split_stack_attribute): Same.
2742 * c-common.c (shorten_compare): Same.
2743 (c_common_truthvalue_conversion): Same.
2744 (cb_get_source_date_epoch): Same.
2745 * c-lex.c (cb_def_pragma): Quote keywords, operators, and types
2746 in diagnostics.
2747 (interpret_float): Same.
2748 * c-omp.c (c_finish_omp_for): Same.
2749 * c-opts.c (c_common_post_options): Same.
2750 * c-pch.c (c_common_pch_pragma): Same.
2751 * c-pragma.c (pop_alignment): Same.
2752 (handle_pragma_pack): Same.
2753 (apply_pragma_weak): Same.
2754 (handle_pragma_weak): Same.
2755 (handle_pragma_scalar_storage_order): Same.
2756 (handle_pragma_redefine_extname): Same.
2757 (add_to_renaming_pragma_list): Same.
2758 (maybe_apply_renaming_pragma): Same.
2759 (push_visibility): Same.
2760 (handle_pragma_visibility): Same.
2761 (handle_pragma_optimize): Same.
2762 (handle_pragma_message): Same.
2763 * c-warn.c (warn_for_omitted_condop): Same.
2764 (lvalue_error): Same.
2765
2766 2019-05-15 Richard Biener <rguenther@suse.de>
2767
2768 PR c/90474
2769 * c-common.c (c_common_mark_addressable_vec): Also mark
2770 a COMPOUND_LITERAL_EXPR_DECL addressable similar to
2771 c_mark_addressable.
2772
2773 2019-05-06 Nathan Sidwell <nathan@acm.org>
2774
2775 * c-opts.c (handle_defered_opts): Rename struct deps to struc mkdeps.
2776
2777 2019-04-30 Nathan Sidwell <nathan@acm.org>
2778
2779 * c-common.c (c_common_init_ts): Use MARK_TS_EXP. Mark SIZEOF_EXPR.
2780
2781 2019-04-30 Martin Liska <mliska@suse.cz>
2782
2783 * c-pragma.c (handle_pragma_diagnostic): Provide hints
2784 for unknown options.
2785
2786 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
2787
2788 * c-warn.c (strict_aliasing_warning): Apply COMPLETE_TYPE_P to
2789 the pointer target rather than the pointer itself.
2790
2791 2019-04-19 Jakub Jelinek <jakub@redhat.com>
2792
2793 PR c/89888
2794 * c-common.h (c_add_case_label): Remove orig_type and outside_range_p
2795 arguments.
2796 (c_do_switch_warnings): Remove outside_range_p argument.
2797 * c-common.c (check_case_bounds): Removed.
2798 (c_add_case_label): Remove orig_type and outside_range_p arguments.
2799 Don't call check_case_bounds. Fold low_value as well as high_value.
2800 * c-warn.c (c_do_switch_warnings): Remove outside_range_p argument.
2801 Check for case labels outside of range of original type here and
2802 adjust them.
2803
2804 2019-04-12 Jakub Jelinek <jakub@redhat.com>
2805
2806 PR translation/90041
2807 * c.opt (-fhandle-exceptions): Use %< and %> around option names
2808 in the Warn diagnostics.
2809
2810 PR c/89946
2811 * c-attribs.c (handle_patchable_function_entry_attribute): Add
2812 function comment. Warn if arguments of the attribute are not positive
2813 integer constants.
2814
2815 2019-04-09 Eric Botcazou <ebotcazou@adacore.com>
2816
2817 * c-ada-spec.c (print_destructor): Deal with deleting destructors.
2818 (dump_ada_declaration) <FUNCTION_DECL>: Likewise.
2819
2820 2019-04-07 Eric Botcazou <ebotcazou@adacore.com>
2821
2822 * c-ada-spec.c (is_float128): New predicate extracted from...
2823 (dump_ada_node) <COMPLEX_TYPE>: Use it to recognize __cfloat128.
2824 <REAL_TYPE>: ...here. Call it.
2825
2826 2019-04-05 David Malcolm <dmalcolm@redhat.com>
2827
2828 PR c/89985
2829 * c-warn.c (check_address_or_pointer_of_packed_member): Add
2830 auto_diagnostic_group. Guard inform calls by result of
2831 warning_at call.
2832
2833 2019-04-05 Marek Polacek <polacek@redhat.com>
2834
2835 PR c++/89973 - -Waddress-of-packed-member ICE with invalid conversion.
2836 * c-warn.c (check_address_or_pointer_of_packed_member): Check the type
2837 of RHS.
2838
2839 2019-04-03 Jason Merrill <jason@redhat.com>
2840
2841 PR c++/86586 - -fcompare-debug=-Wsign-compare.
2842 * c-warn.c (warn_for_sign_compare): Call fold_for_warn.
2843
2844 2019-04-01 Martin Sebor <msebor@redhat.com>
2845
2846 PR c/89685
2847 * c-attribs.c (handle_copy_attribute): Handle references and
2848 non-constant expressions.
2849
2850 2019-03-22 Jakub Jelinek <jakub@redhat.com>
2851
2852 PR c++/87481
2853 * c.opt (-fconstexpr-ops-limit=): New option.
2854
2855 2019-03-21 Jakub Jelinek <jakub@redhat.com>
2856
2857 * c-common.c (per_file_includes_t): Use false as Lazy in hash_set
2858 template param.
2859
2860 2019-03-19 Martin Sebor <msebor@redhat.com>
2861
2862 PR tree-optimization/89688
2863 * c-common.c (braced_list_to_string): Make static.
2864 (braced_lists_to_strings): Define new function.
2865 * c-common.h (braced_list_to_string): Remove.
2866 (braced_lists_to_strings): Declare.
2867
2868 2019-03-12 Martin Liska <mliska@suse.cz>
2869
2870 * c-opts.c (c_common_handle_option): Wrap option with %< and %>.
2871
2872 2019-03-11 Martin Liska <mliska@suse.cz>
2873
2874 * c-opts.c (c_common_post_options): Wrap apostrophes
2875 in gcc internal format with %'.
2876
2877 2019-03-11 Martin Liska <mliska@suse.cz>
2878
2879 * c-attribs.c (handle_nocf_check_attribute): Wrap an option name
2880 in a string format message and fix GNU coding style.
2881 * c-common.c (vector_types_convertible_p): Likewise.
2882 (c_build_vec_perm_expr): Likewise.
2883 * c-indentation.c (get_visual_column): Likewise.
2884 * c-opts.c (c_common_handle_option): Likewise.
2885 (c_common_post_options): Likewise.
2886 (sanitize_cpp_opts): Likewise.
2887 * c-pch.c (c_common_pch_pragma): Likewise.
2888 * c-pragma.c (handle_pragma_pack): Likewise.
2889
2890 2019-03-08 Jakub Jelinek <jakub@redhat.com>
2891
2892 PR tree-optimization/89550
2893 * c-common.c (c_common_truthvalue_conversion): Only set
2894 TREE_NO_WARNING if warning_at returned true.
2895 * c-warn.c (overflow_warning, warn_logical_operator): Likewise.
2896
2897 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
2898 Martin Sebor <msebor@gmail.com>
2899
2900 * c.opt (Wmissing-attributes): Clean up doc string.
2901
2902 2019-02-25 Jakub Jelinek <jakub@redhat.com>
2903
2904 PR c/89495
2905 * c-format.c (maybe_read_dollar_number): Compute nargnum in
2906 HOST_WIDE_INT type to avoid overflows and change overflow_flag
2907 checking.
2908
2909 2019-02-22 Richard Biener <rguenther@suse.de>
2910
2911 * c-pch.c (no_checksum): Remove.
2912 (pch_init): Remove assertion that executable_checksum is not
2913 all zero.
2914 (c_common_valid_pch): Likewise.
2915
2916 2019-02-18 Martin Sebor <msebor@redhat.com>
2917
2918 PR middle-end/89294
2919 * c-common.c (invalid_array_size_error): Handle cst_size_not_constant.
2920
2921 2019-02-16 David Malcolm <dmalcolm@redhat.com>
2922
2923 PR c++/88680
2924 * c-common.c (shorten_compare): Call fold_for_warn on op0 when
2925 implementing -Wtype-limits.
2926
2927 2019-02-11 Martin Sebor <msebor@redhat.com>
2928
2929 PR c++/87996
2930 * c-common.c (invalid_array_size_error): New function.
2931 (valid_array_size_p): Call it. Handle size as well as type.
2932 * c-common.h (valid_constant_size_p): New function.
2933 (enum cst_size_error): New type.
2934
2935 2019-01-31 David Malcolm <dmalcolm@redhat.com>
2936
2937 PR c/89122
2938 * known-headers.cc (get_stdlib_header_for_name): Add
2939 {FLT|DBL|LDBL}_{MAX|MIN} to "hints" array.
2940
2941 2019-01-31 Jakub Jelinek <jakub@redhat.com>
2942
2943 PR libstdc++/88170
2944 * c-pretty-print.c (pp_c_enumeration_constant): Print always as
2945 a C cast in pp_c_flag_gnu_v3 mode.
2946
2947 2019-01-29 Jakub Jelinek <jakub@redhat.com>
2948
2949 PR c/86125
2950 * c-common.c (c_common_nodes_and_builtins): Build type variants for
2951 builtin_structptr_types types even for C.
2952
2953 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
2954
2955 * c-warn.c (check_address_or_pointer_of_packed_member): Handle the case
2956 when rhs is of array type correctly. Fix handling of nested structures.
2957 Fix handling of indirect_ref together with nop_expr and/or addr_expr.
2958 (check_and_warn_address_or_pointer_of_packed_member): Fix handling of
2959 type casts within nested compound expressions.
2960
2961 2019-01-22 Jakub Jelinek <jakub@redhat.com>
2962
2963 PR middle-end/88968
2964 * c-omp.c (c_finish_omp_atomic): For bitfield atomics, update type
2965 variable after using BIT_FIELD_REF.
2966
2967 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
2968
2969 PR c/51628
2970 PR c/88664
2971 * c-common.h (warn_for_address_or_pointer_of_packed_member):
2972 Remove the boolean argument.
2973 * c-warn.c (check_address_of_packed_member): Renamed to ...
2974 (check_address_or_pointer_of_packed_member): This. Also
2975 warn pointer conversion.
2976 (check_and_warn_address_of_packed_member): Renamed to ...
2977 (check_and_warn_address_or_pointer_of_packed_member): This.
2978 Also warn pointer conversion.
2979 (warn_for_address_or_pointer_of_packed_member): Remove the
2980 boolean argument. Don't check pointer conversion here.
2981
2982 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
2983
2984 PR inline-asm/52813
2985 * c.opt (Wdeprecated): Move documentation and variable to common.opt.
2986
2987 2019-01-14 Jakub Jelinek <jakub@redhat.com>
2988
2989 * c-cppbuiltin.c (c_cpp_builtin): Define __cpp_guaranteed_copy_elision
2990 and __cpp_nontype_template_parameter_auto. Add a comment that
2991 __cpp_template_auto is deprecated.
2992
2993 2019-01-14 Tom Honermann <tom@honermann.net>
2994
2995 Implement P0482R5, char8_t: A type for UTF-8 characters and strings
2996 * c-common.c (c_common_reswords): Add char8_t.
2997 (fix_string_type): Use char8_t for the type of u8 string literals.
2998 (c_common_get_alias_set): char8_t doesn't alias.
2999 (c_common_nodes_and_builtins): Define char8_t as a builtin type in
3000 C++.
3001 (c_stddef_cpp_builtins): Add __CHAR8_TYPE__.
3002 (keyword_begins_type_specifier): Add RID_CHAR8.
3003 * c-common.h (rid): Add RID_CHAR8.
3004 (c_tree_index): Add CTI_CHAR8_TYPE and CTI_CHAR8_ARRAY_TYPE.
3005 Define D_CXX_CHAR8_T and D_CXX_CHAR8_T_FLAGS.
3006 Define char8_type_node and char8_array_type_node.
3007 * c-cppbuiltin.c (cpp_atomic_builtins): Predefine
3008 __GCC_ATOMIC_CHAR8_T_LOCK_FREE.
3009 (c_cpp_builtins): Predefine __cpp_char8_t.
3010 * c-lex.c (lex_string): Use char8_array_type_node as the type of
3011 CPP_UTF8STRING.
3012 (lex_charconst): Use char8_type_node as the type of CPP_UTF8CHAR.
3013 * c-opts.c: If not otherwise specified, enable -fchar8_t when
3014 targeting C++2a.
3015 * c.opt: Add the -fchar8_t command line option.
3016
3017 2019-01-14 Martin Sebor <msebor@redhat.com>
3018
3019 PR target/88638
3020 * c-attribs.c (positional_argument): Call valid_format_string_type_p
3021 and issue errors if it fails.
3022 * c-common.h (valid_format_string_type_p): Declare.
3023 * c-format.c (valid_stringptr_type_p): Rename...
3024 (valid_format_string_type_p): ...to this and make extern.
3025 (handle_format_arg_attribute): Adjust to new name.
3026 (check_format_string): Same.
3027
3028 2019-01-13 H.J. Lu <hongjiu.lu@intel.com>
3029
3030 * c-warn.c (warn_for_address_or_pointer_of_packed_member):
3031 Replace "may may" with "may" in warning message.
3032
3033 2019-01-07 Jakub Jelinek <jakub@redhat.com>
3034
3035 PR c++/85052
3036 * c-common.h (enum rid): Add RID_BUILTIN_CONVERTVECTOR.
3037 (c_build_vec_convert): Declare.
3038 * c-common.c (c_build_vec_convert): New function.
3039
3040 2019-01-04 Martin Sebor <msebor@redhat.com>
3041
3042 PR c/88546
3043 * c-attribs.c (handle_copy_attribute): Avoid copying attribute leaf.
3044 Handle C++ empty throw specification and C11 _Noreturn.
3045 (has_attribute): Also handle C11 _Noreturn.
3046
3047 2019-01-04 Martin Sebor <msebor@redhat.com>
3048
3049 PR c/88363
3050 * c-attribs.c (positional_argument): Also accept enumerated types.
3051
3052 2019-01-01 Jakub Jelinek <jakub@redhat.com>
3053
3054 Update copyright years.
3055
3056 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
3057
3058 PR c/51628
3059 * c-common.h (warn_for_address_or_pointer_of_packed_member): New.
3060 * c-warn.c (check_alignment_of_packed_member): New function.
3061 (check_address_of_packed_member): Likewise.
3062 (check_and_warn_address_of_packed_member): Likewise.
3063 (warn_for_address_or_pointer_of_packed_member): Likewise.
3064 * c.opt: Add -Wno-address-of-packed-member.
3065
3066 2018-12-20 David Malcolm <dmalcolm@redhat.com>
3067
3068 PR c++/87504
3069 * c-warn.c (get_outermost_macro_expansion): New function.
3070 (spelled_the_same_p): Use it to unwind the macro expansions, and
3071 compare the outermost macro in each nested expansion, rather than
3072 the innermost.
3073
3074 2018-12-19 David Malcolm <dmalcolm@redhat.com>
3075
3076 PR c++/87504
3077 * c-common.h (warn_tautological_cmp): Convert 1st param from
3078 location_t to const op_location_t &.
3079 * c-warn.c (find_array_ref_with_const_idx_r): Call fold_for_warn
3080 when testing for INTEGER_CST.
3081 (warn_tautological_bitwise_comparison): Convert 1st param from
3082 location_t to const op_location_t &; use it to build a
3083 binary_op_rich_location, and use this.
3084 (spelled_the_same_p): New function.
3085 (warn_tautological_cmp): Convert 1st param from location_t to
3086 const op_location_t &. Warn for macro expansions if
3087 spelled_the_same_p. Use binary_op_rich_location.
3088
3089 2018-12-19 David Malcolm <dmalcolm@redhat.com>
3090
3091 PR c++/43064
3092 PR c++/43486
3093 * c-common.c (unsafe_conversion_p): Fold any location wrapper.
3094 (verify_tree): Handle location wrappers.
3095 (c_common_truthvalue_conversion): Strip any location wrapper.
3096 Handle CONST_DECL.
3097 (fold_offsetof): Strip any location wrapper.
3098 (complete_array_type): Likewise for initial_value.
3099 (convert_vector_to_array_for_subscript): Call fold_for_warn on the
3100 index before checking for INTEGER_CST.
3101 * c-pretty-print.c (c_pretty_printer::primary_expression): Don't
3102 print parentheses around location wrappers.
3103 * c-warn.c (warn_logical_operator): Call fold_for_warn on op_right
3104 before checking for INTEGER_CST.
3105 (warn_tautological_bitwise_comparison): Call
3106 tree_strip_any_location_wrapper on lhs, rhs, and bitop's operand
3107 before checking for INTEGER_CST.
3108 (readonly_error): Strip any location wrapper.
3109 (warn_array_subscript_with_type_char): Strip location wrappers
3110 before checking for INTEGER_CST. Use the location of the index if
3111 available.
3112
3113 2018-12-06 Jason Merrill <jason@redhat.com>
3114
3115 PR c++/88136 - -Wdeprecated-copy false positives
3116 * c.opt (Wdeprecated-copy-dtor): New.
3117 (Wdeprecated-copy): Move to -Wextra.
3118
3119 2018-11-29 Martin Sebor <msebor@redhat.com>
3120
3121 PR c/88172
3122 PR testsuite/88208
3123 * c-attribs.c (common_handle_aligned_attribute): Silently avoid setting
3124 alignments to values less than the target requires.
3125 (has_attribute): For attribute aligned consider both the attribute
3126 and the alignment bits.
3127 * c-common.c (c_init_attributes): Optionally issue a warning for
3128 zero alignment.
3129
3130 2018-11-28 Martin Sebor <msebor@redhat.com>
3131
3132 PR c/88065
3133 PR c/87297
3134 * c-warn.c (sizeof_pointer_memaccess_warning): Bail if source
3135 or destination is an error.
3136
3137 2018-11-28 Jakub Jelinek <jakub@redhat.com>
3138
3139 PR c++/88215
3140 * c-ubsan.c: Include langhooks.h.
3141 (ubsan_instrument_division): Change gcc_assert that main variants
3142 of op0 and op1 types are equal to gcc_checking_assert that the
3143 main variants are compatible types.
3144
3145 2018-11-27 Eric Botcazou <ebotcazou@adacore.com>
3146
3147 * c-ada-spec.c: Include stringpool.h.
3148 (has_static_fields): Return false for incomplete types.
3149 (is_tagged_type): Likewise.
3150 (has_nontrivial_methods): Likewise.
3151 (dump_ada_node) <INTEGER_TYPE>: Deal specifically with __int128.
3152 (struct overloaded_name_hash): New structure.
3153 (struct overloaded_name_hasher): Likewise.
3154 (overloaded_names): New global variable.
3155 (init_overloaded_names): New static function.
3156 (overloaded_name_p): New predicate.
3157 (dump_ada_declaration) <TYPE_DECL>: Tidy up and set TREE_VISITED
3158 on the TYPE_STUB_DECL of the original type of a typedef, if any.
3159 <FUNCTION_DECL>: Bail out for an unsupported overloaded name.
3160 Remove always-true condition and dump forward types.
3161 (dump_ada_specs): Delete overloaded_names.
3162
3163 2018-11-20 Martin Sebor <msebor@redhat.com>
3164
3165 * c-attribs.c (type_for_vector_size): New function.
3166 (type_valid_for_vector_size): Same.
3167 (handle_vector_size_attribute): Move code to the functions above
3168 and call them.
3169 (validate_attribute, has_attribute): New functions.
3170 * c-common.h (has_attribute): Declare.
3171 (rid): Add RID_HAS_ATTRIBUTE_EXPRESSION.
3172 * c-common.c (c_common_resword): Same.
3173
3174 2018-11-16 Jason Merrill <jason@redhat.com>
3175
3176 * c-lex.c (c_common_has_attribute): Handle likely/unlikely.
3177 * c-attribs.c (attr_cold_hot_exclusions): Make public.
3178
3179 2018-11-16 Jakub Jelinek <jakub@redhat.com>
3180
3181 PR middle-end/87854
3182 * c-common.c (fix_string_type): Reject string literals larger than
3183 TYPE_MAX_VALUE (ssizetype) bytes.
3184
3185 2018-11-15 Martin Sebor <msebor@redhat.com>
3186
3187 PR c++/87541
3188 PR c++/87542
3189 * c-attribs.c (positional_argument): New function.
3190 (handle_alloc_size_attribute): Use it and simplify.
3191 (handle_alloc_align_attribute): Same.
3192 (handle_assume_aligned_attribute): Same.
3193 (handle_nonnull_attribute): Same.
3194 * c-common.c (check_function_arguments): Pass fntype to
3195 check_function_format.
3196 * c-common.h (check_function_format): Add an argument.
3197 (PosArgFlags, positional_argument): Declare new type and function.
3198 * c-format.c (decode_format_attr): Add arguments.
3199 (check_format_string, get_constant): Same.
3200 (convert_format_name_to_system_name): Adjust.
3201
3202 2018-11-15 David Malcolm <dmalcolm@redhat.com>
3203
3204 PR other/19165
3205 * c-opts.c (c_diagnostic_finalizer): Add diagnostic_t param.
3206
3207 2018-11-14 Jakub Jelinek <jakub@redhat.com>
3208
3209 P1236R1 - Signed integers are two's complement
3210 * c-warn.c (maybe_warn_shift_overflow): Don't warn for c++2a.
3211 * c-ubsan.c (ubsan_instrument_shift): Make signed shifts
3212 with in-range second operand well defined for -std=c++2a.
3213
3214 PR other/88007
3215 * c-common.c (parse_optimize_options): Allocate option string from
3216 opts_obstack rather than as GC memory. Move the allocation after
3217 warning for invalid option.
3218
3219 2018-11-13 David Malcolm <dmalcolm@redhat.com>
3220
3221 * c-common.c (c_get_substring_location): Update for renaming of
3222 get_source_location_for_substring to get_location_within_string.
3223 * c-lex.c: Replace "source_location" with "location_t".
3224 * c-opts.c: Likewise.
3225 * c-ppoutput.c: Likewise.
3226
3227 2018-11-13 Martin Sebor <msebor@redhat.com>
3228
3229 PR middle-end/81824
3230 * c-attribs.c (handle_copy_attribute): Exclude inlining attributes.
3231 (handle_tls_model_attribute): Improve diagnostics.
3232
3233 2018-11-12 Jason Merrill <jason@redhat.com>
3234
3235 * c-cppbuiltin.c (c_cpp_builtins): Define
3236 __cpp_impl_destroying_delete.
3237
3238 * c-cppbuiltin.c (c_cpp_builtins): Change __cpp_explicit_bool to
3239 __cpp_conditional_explicit.
3240
3241 2018-11-09 Martin Sebor <msebor@redhat.com>
3242
3243 PR middle-end/81824
3244 * c-attribs.c (handle_copy_attribute): New function.
3245
3246 2018-11-09 Martin Sebor <msebor@redhat.com>
3247
3248 PR c/87795
3249 * c-common.c (check_user_alignment): Use MAX_OFILE_ALIGNMENT.
3250
3251 2018-11-08 Jakub Jelinek <jakub@redhat.com>
3252
3253 * c-common.h (c_finish_omp_taskgroup): Add CLAUSES argument.
3254 (c_finish_omp_atomic): Replace bool SEQ_CST argument with
3255 enum omp_memory_order MEMORY_ORDER.
3256 (c_finish_omp_flush): Add MO argument.
3257 (c_omp_depend_t_p, c_finish_omp_depobj): Declare.
3258 (c_finish_omp_for): Add FINAL_P argument.
3259 * c-omp.c: Include memmodel.h.
3260 (c_finish_omp_taskgroup): Add CLAUSES argument. Set
3261 OMP_TASKGROUP_CLAUSES to it.
3262 (c_finish_omp_atomic): Replace bool SEQ_CST argument with
3263 enum omp_memory_order MEMORY_ORDER. Set OMP_ATOMIC_MEMORY_ORDER
3264 instead of OMP_ATOMIC_SEQ_CST.
3265 (c_omp_depend_t_p, c_finish_omp_depobj): New functions.
3266 (c_finish_omp_flush): Add MO argument, if not MEMMODEL_LAST, emit
3267 __atomic_thread_fence call with the given value.
3268 (check_omp_for_incr_expr): Formatting fixes.
3269 (c_finish_omp_for): Add FINAL_P argument. Allow NE_EXPR
3270 even in OpenMP loops, diagnose if NE_EXPR and incr expression
3271 is not constant expression 1 or -1. Transform NE_EXPR loops
3272 with iterators pointers to VLA into LT_EXPR or GT_EXPR loops.
3273 (c_omp_check_loop_iv_r): Look for orig decl of C++ range for
3274 loops too.
3275 (c_omp_split_clauses): Add support for combined
3276 #pragma omp parallel master and
3277 #pragma omp {,parallel }master taskloop{, simd} constructs.
3278 Handle OMP_CLAUSE_IN_REDUCTION. Handle OMP_CLAUSE_REDUCTION_TASK.
3279 Handle OMP_CLAUSE_NONTEMPORAL. Handle splitting OMP_CLAUSE_IF
3280 also to OMP_SIMD. Copy OMP_CLAUSE_LASTPRIVATE_CONDITIONAL.
3281 (c_omp_predetermined_sharing): Don't return
3282 OMP_CLAUSE_DEFAULT_SHARED for const qualified decls.
3283 * c-pragma.c (omp_pragmas): Add PRAGMA_OMP_DEPOBJ and
3284 PRAGMA_OMP_REQUIRES.
3285 * c-pragma.h (enum pragma_kind): Likewise.
3286 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_NONTEMPORAL
3287 and PRAGMA_OMP_CLAUSE_{IN,TASK}_REDUCTION.
3288
3289 2018-11-08 David Malcolm <dmalcolm@redhat.com>
3290
3291 * c-format.c (gcc_dump_printf_char_table): Add entry for %f.
3292
3293 2018-11-08 David Malcolm <dmalcolm@redhat.com>
3294
3295 * c-format.c (local_cgraph_node_ptr_node): New variable.
3296 (gcc_dump_printf_char_table): Add entry for %C.
3297 (get_pointer_to_named_type): New function, taken from the handling
3298 code for "gimple *" from...
3299 (init_dynamic_diag_info): ...here. Add handling for
3300 "cgraph_node *".
3301 * c-format.h (T_CGRAPH_NODE): New.
3302
3303 2018-10-19 Jason Merrill <jason@redhat.com>
3304
3305 * c-cppbuiltin.c (c_cpp_builtins): Add
3306 __cpp_nontype_template_parameter_class.
3307
3308 2018-10-31 Nathan Sidwell <nathan@acm.org>
3309
3310 * c-opts.c (c_finish_options): Force command line macro
3311 location. Refactor to avoid repeating main debug hook.
3312 (push_command_line_include): Clarify comment.
3313
3314 * c-opts.c (c_finish_options): Adjust cpp_force_token_locations call.
3315
3316 2018-10-30 Martin Sebor <msebor@redhat.com>
3317
3318 PR middle-end/87041
3319 * c-format.c (check_format_types): Avoid diagnosing null pointer
3320 arguments to printf-family of functions.
3321
3322 2018-10-30 Marek Polacek <polacek@redhat.com>
3323
3324 Implement P0892R2, explicit(bool).
3325 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_explicit_bool.
3326
3327 2018-10-29 David Malcolm <dmalcolm@redhat.com>
3328
3329 * name-hint.h (name_hint::take_deferred): New member function.
3330
3331 2018-10-29 David Malcolm <dmalcolm@redhat.com>
3332
3333 PR c++/56856
3334 * c-common.c (check_function_sentinel): Call fold_for_warn on the
3335 argument.
3336 (check_function_restrict): Rename param "argarray" to
3337 "unfolded_argarray", and make a copy named "argarray", calling
3338 fold_for_warn on each argument.
3339 (check_function_arguments): Add note about responsibility for
3340 folding the arguments.
3341
3342 2018-10-17 Joseph Myers <joseph@codesourcery.com>
3343
3344 * c-common.c (flag_isoc2x): New variable.
3345 * c-common.h (clk_c): Update comment to reference C2X.
3346 (flag_isoc99, flag_isoc11): Update comments to reference future
3347 standard versions in general.
3348 (flag_isoc2x): Declare.
3349 * c-opts.c (set_std_c2x): New function.
3350 (c_common_handle_option): Handle -std=c2x and -std=gnu2x.
3351 (set_std_c89, set_std_c99, set_std_c11, set_std_c17): Set
3352 flag_isoc2x to 0.
3353 * c.opt (Wc11-c2x-compat, std=c2x, std=gnu2x): New options.
3354
3355 2018-10-17 Joseph Myers <joseph@codesourcery.com>
3356
3357 * c.opt (std=c17, std=c18, std=gnu17, std=gnu18, std=iso9899:2017)
3358 (std=iso9899:2018): Document C17 as published in 2018.
3359
3360 2018-10-12 Christophe Lyon <christophe.lyon@linaro.org>
3361
3362 PR c++/87364
3363 * c-pretty-print.c (c_pretty_printer::constant): Fix typo.
3364
3365 2018-10-11 Will Wray <wjwray@gmail.com>
3366
3367 PR c++/87364
3368 * c-pretty-print.h (pp_c_type_cast): Prototype.
3369 (pp_c_integer_constant): Likewise.
3370 * c-pretty-print.c (pp_c_type_cast): No longer static.
3371 (pp_c_integer_constant): Likewise.
3372 (pp_c_enumeration_constant): Fix loop termination when finding
3373 name of constant. No longer returns a value. Call
3374 pp_c_integer_constant.
3375 (c_pretty_printer::constant): Update for changes to
3376 pp_c_enumeration_constant.
3377
3378 2018-10-11 Jakub Jelinek <jakub@redhat.com>
3379
3380 * c-lex.c (c_common_has_attribute): Return 201803 instead of 20180312
3381 for no_unique_address.
3382
3383 2018-10-09 David Malcolm <dmalcolm@redhat.com>
3384
3385 * c-common.c (c_option_controlling_cpp_error): Rename to...
3386 (c_option_controlling_cpp_diagnostic): ...this, and convert
3387 "reason" from int to enum.
3388 (c_cpp_error): Rename to...
3389 (c_cpp_diagnostic): ...this, converting level and reason to enums.
3390 * c-common.h (c_cpp_error): Rename to...
3391 (c_cpp_diagnostic): ...this, converting level and reason to enums.
3392 * c-opts.c (c_common_init_options): Update for renaming.
3393
3394 2018-10-08 Richard Sandiford <richard.sandiford@arm.com>
3395
3396 PR c/87286
3397 * c-common.c (vector_types_compatible_elements_p): Use
3398 INTEGRAL_TYPE_P instead of checking only for INTEGER_TYPE.
3399
3400 2018-10-04 Vinay Kumar <vinay.kumar@blackfigtech.com>
3401
3402 * c-attribs.c (get_priority): Add a warning flag warn_prio_ctor_dtor
3403 to generate constructor destructor priority warning.
3404 * c.opt (-Wprio-ctor-dtor): New option.
3405
3406 2018-10-01 Jason Merrill <jason@redhat.com>
3407
3408 * c-lex.c (c_common_has_attribute): Add no_unique_address.
3409
3410 2018-10-01 Eric Botcazou <ebotcazou@adacore.com>
3411
3412 * c-ada-spec.c (get_underlying_decl): Get to the main type variant.
3413 (dump_ada_node): Add const keyword.
3414
3415 2018-09-25 Martin Liska <mliska@suse.cz>
3416
3417 * c-common.c (c_common_truthvalue_conversion):
3418 Remove Pascal from documentation.
3419
3420 2018-09-21 Eric Botcazou <ebotcazou@adacore.com>
3421
3422 * c-ada-spec.c: Include diagnostic.h.
3423 (dump_ada_declaration) <RECORD_TYPE>: Issue a warning on packed layout.
3424
3425 2018-09-19 Marek Polacek <polacek@redhat.com>
3426
3427 * c.opt (Wclass-conversion): New.
3428
3429 2018-09-17 David Malcolm <dmalcolm@redhat.com>
3430
3431 * c-format.c (range_label_for_format_type_mismatch::get_text):
3432 Update for new param.
3433
3434 2018-09-17 David Malcolm <dmalcolm@redhat.com>
3435
3436 * c-format.c (format_warning_at_char): Update for introduction of
3437 format_string_diagnostic_t.
3438 (format_type_warning): Likewise.
3439
3440 2018-09-17 Martin Jambor <mjambor@suse.cz>
3441
3442 PR c/63886
3443 * c.opt (Wabsolute-value): New.
3444
3445 2018-09-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
3446
3447 * c-common.c (complete_flexible_array_elts): New helper function.
3448 * c-common.h (complete_flexible_array_elts): Declare.
3449
3450 2018-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
3451
3452 * c-common.c (braced_list_to_string): Remove eval parameter.
3453 Add some more checks. Always create zero-terminated STRING_CST.
3454 * c-common.h (braced_list_to_string): Adjust prototype.
3455
3456 2018-08-27 David Malcolm <dmalcolm@redhat.com>
3457
3458 PR 87091
3459 * c-common.c (c_cpp_error): Update for conversion of show_caret_p
3460 to a tri-state.
3461 (maybe_suggest_missing_token_insertion): Likewise.
3462 (maybe_add_include_fixit): Add param "override_location". If set,
3463 and source-printing is enabled, then override the rich_location's
3464 primary location with that of the insertion point for the fix-it
3465 hint, marking it with SHOW_LINES_WITHOUT_RANGE.
3466 * c-common.h (extern void maybe_add_include_fixit): Add bool
3467 param.
3468 * c-format.c (selftest::test_type_mismatch_range_labels): Update
3469 for conversion of show_caret_p to a tri-state.
3470 * c-warn.c (warn_for_restrict): Likewise.
3471 * known-headers.cc
3472 (suggest_missing_header::~suggest_missing_header): Update call to
3473 maybe_add_include_fixit to suggest overriding the location, as it
3474 is for a note.
3475
3476 2018-08-27 Martin Liska <mliska@suse.cz>
3477
3478 * c-common.c (check_function_restrict): Use new function
3479 fndecl_built_in_p and remove check for FUNCTION_DECL if
3480 possible.
3481 (check_builtin_function_arguments): Likewise.
3482 (reject_gcc_builtin): Likewise.
3483 * c-warn.c (sizeof_pointer_memaccess_warning): Likewise.
3484
3485 2018-08-26 Marek Polacek <polacek@redhat.com>
3486
3487 PR c++/87029, Implement -Wredundant-move.
3488 * c.opt (Wredundant-move): New option.
3489
3490 2018-08-21 Marek Polacek <polacek@redhat.com>
3491
3492 PR c++/86981, Implement -Wpessimizing-move.
3493 * c.opt (Wpessimizing-move): New option.
3494
3495 2018-08-20 David Malcolm <dmalcolm@redhat.com>
3496
3497 PR other/84889
3498 * c-attribs.c (common_handle_aligned_attribute): Add
3499 auto_diagnostic_group instance.
3500 * c-indentation.c (warn_for_misleading_indentation): Likewise.
3501 * c-opts.c (c_common_post_options): Likewise.
3502 * c-warn.c (warn_logical_not_parentheses): Likewise.
3503 (warn_duplicated_cond_add_or_warn): Likewise.
3504 (warn_for_multistatement_macros): Likewise.
3505
3506 2018-08-20 Nathan Sidwell <nathan@acm.org>
3507
3508 * c-ada-spec.c (macro_length, dump_ada_macros): Adjust macro parm
3509 access.
3510
3511 2018-08-17 Nathan Sidwell <nathan@acm.org>
3512
3513 * c-cppbuiltin.c (struct lazy_hex_fp_value_struct): Remove macro
3514 field.
3515 (laxy_hex_fp_value_count): Make unsigned.
3516 (lazy_hex_fp_value): Provided with macro & lazy number. Directly
3517 manipulate the macro.
3518 (builtin_defin_with_hex_fp_value): Adjust callback name, use
3519 cpp_define_lazily.
3520
3521 2018-08-17 David Malcolm <dmalcolm@redhat.com>
3522
3523 * c-format.c (enum format_type): Add gcc_dump_printf_format_type.
3524 (gcc_dump_printf_length_specs): New.
3525 (gcc_dump_printf_flag_pairs): New.
3526 (gcc_dump_printf_flag_specs): New.
3527 (gcc_dump_printf_char_table): New.
3528 (format_types_orig): Add entry for "gcc_dump_printf".
3529 (init_dynamic_diag_info): Set up length_char_specs and
3530 conversion_specs for gcc_dump_printf_format_type.
3531 (handle_format_attribute): Handle gcc_dump_printf_format_type.
3532
3533 2018-08-17 Nathan Sidwell <nathan@acm.org>
3534
3535 * c-ada-spec.c (macro_length, dump_ada_macros): Constify.
3536
3537 * c-ada-spec.c: Don't #include "cpp-id-data.h"
3538 * c-cppbuiltin.c: Likewise.
3539
3540 2018-08-17 Martin Liska <mliska@suse.cz>
3541
3542 * c.opt: Remove Warn, Init and Report for options with
3543 Ignore/Deprecated flag. Warning is done automatically for
3544 Deprecated flags.
3545
3546 2018-08-16 David Malcolm <dmalcolm@redhat.com>
3547
3548 PR c++/70693
3549 * c-common.c (selftest::c_family_tests): Call
3550 selftest::c_indentation_c_tests.
3551 * c-common.h (selftest::c_indentation_c_tests): New decl.
3552 * c-indentation.c: Include "selftest.h".
3553 (next_tab_stop): Add "tab_width" param, rather than accessing
3554 cpp_opts.
3555 (get_visual_column): Likewise. Clarify comment. Bulletproof
3556 against reading past the end of the line.
3557 (get_first_nws_vis_column): Add "tab_width" param.
3558 (detect_intervening_unindent): Likewise.
3559 (should_warn_for_misleading_indentation): Read tab width from
3560 cpp_opts and pass around.
3561 (selftest::test_next_tab_stop): New test.
3562 (selftest::assert_get_visual_column_succeeds): New function.
3563 (ASSERT_GET_VISUAL_COLUMN_SUCCEEDS): New macro.
3564 (selftest::assert_get_visual_column_fails): New function.
3565 (ASSERT_GET_VISUAL_COLUMN_FAILS): New macro.
3566 (selftest::test_get_visual_column): New test.
3567 (selftest::c_indentation_c_tests): New function.
3568
3569 2018-08-16 Nathan Sidwell <nathan@acm.org>
3570
3571 * c-ada-spec.c (count_ada_macro): Use cpp_user_macro_p.
3572 (store_ada_macro): Likewise.
3573 * c-ppoutput.c (cb_used_define, dump_macro): Likewise.
3574 * c-spellcheck.cc (should-suggest_as_macro_p): Likewise,
3575
3576 2018-08-15 David Malcolm <dmalcolm@redhat.com>
3577
3578 * c-format.c: Include "selftest-diagnostic.h" and
3579 "gcc-rich-location.h".
3580 (format_warning_at_char): Pass NULL for new label params of
3581 format_warning_va.
3582 (class indirection_suffix): New class.
3583 (class range_label_for_format_type_mismatch): New class.
3584 (format_type_warning): Move logic for generating "*" suffix to
3585 class indirection_suffix. Create "fmt_label" and "param_label"
3586 to show their types, and pass them to the
3587 format_warning_at_substring calls.
3588 (selftest::test_type_mismatch_range_labels): New test.
3589 (selftest::c_format_c_tests): Call it.
3590
3591 2018-08-13 Martin Sebor <msebor@redhat.com>
3592
3593 PR tree-optimization/71625
3594 * c-common.c (braced_list_to_string): New function.
3595 * c-common.h (braced_list_to_string): Declare it.
3596
3597 2018-08-08 Nathan Sidwell <nathan@acm.org>
3598
3599 * c-common.c (try_to_locate_new_include_inertion_point): Use
3600 linemap_included_from_linemap.
3601 * c-lex.c (fe_file_change): Use linemap_included_from.
3602 * c-ppoutput.c (pp_file_change): Likewise.
3603
3604 2018-08-01 Martin Sebor <msebor@redhat.com>
3605
3606 PR tree-optimization/86650
3607 * c-format.c (gcc_tdiag_char_table): Update comment for "%G".
3608 (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Same.
3609 (init_dynamic_diag_info): Update from "gcall *" to "gimple *".
3610 * c-format.h (T89_G): Update to be "gimple *" rather than
3611 "gcall *".
3612 (local_gcall_ptr_node): Rename...
3613 (local_gimple_ptr_node): ...to this.
3614
3615 2018-07-31 David Malcolm <dmalcolm@redhat.com>
3616
3617 * c-format.c (PP_FORMAT_CHAR_TABLE): New macro, based on existing
3618 table entries for gcc_diag_char_table, and the 'Z' entry from
3619 gcc_tdiag_char_table, changing the "chain" entry for 'Z' from
3620 &gcc_tdiag_char_table[0] to &gcc_diag_char_table[0].
3621 (gcc_diag_char_table): Use PP_FORMAT_CHAR_TABLE, implicitly
3622 adding missing "Z" for this table. Remove erroneous "G" and "K"
3623 entries.
3624 (gcc_tdiag_char_table): Use PP_FORMAT_CHAR_TABLE. Remove "v".
3625 (gcc_cdiag_char_table): Use PP_FORMAT_CHAR_TABLE.
3626 (gcc_cxxdiag_char_table): Use PP_FORMAT_CHAR_TABLE. Remove "v".
3627
3628 2018-07-31 Richard Earnshaw <rearnsha@arm.com>
3629
3630 * c-common.c (speculation_safe_resolve_call): New function.
3631 (speculation_safe_resolve_params): New function.
3632 (speculation_safe_resolve_return): New function.
3633 (resolve_overloaded_builtin): Handle __builtin_speculation_safe_value.
3634 * c-cppbuiltin.c (c_cpp_builtins): Add pre-define for
3635 __HAVE_SPECULATION_SAFE_VALUE.
3636
3637 2018-07-20 David Malcolm <dmalcolm@redhat.com>
3638
3639 * c-common.c (c_cpp_error): Remove redundant "line_table"
3640 parameter from call to rich_location::set_range.
3641 (maybe_suggest_missing_token_insertion): Likewise.
3642
3643 2018-07-20 Martin Sebor <msebor@redhat.com>
3644
3645 PR middle-end/82063
3646 * c.opt (-Warray-bounds): Remove redundant -Wall.
3647
3648 2018-07-20 Martin Sebor <msebor@redhat.com>
3649
3650 PR middle-end/82063
3651 * c-common.h (c_common_handle_option): Change function argument
3652 to HOST_WIDE_INT.
3653 * c-opts.c (c_common_init_options): Same.
3654 (c_common_handle_option): Same. Remove special handling of
3655 OPT_Walloca_larger_than_ and OPT_Wvla_larger_than_.
3656 * c.opt (-Walloc-size-larger-than, -Walloca-larger-than): Change
3657 options to take a HOST_WIDE_INT argument and accept a byte-size
3658 suffix. Initialize.
3659 (-Wvla-larger-than): Same.
3660 (-Wno-alloc-size-larger-than, -Wno-alloca-larger-than): New.
3661 (-Wno-vla-larger-than): Same.
3662
3663 2018-07-12 Jakub Jelinek <jakub@redhat.com>
3664
3665 * c-attribs.c (c_common_attribute_table): Add
3666 "omp declare target implicit" attribute.
3667
3668 2018-07-12 Richard Biener <rguenther@suse.de>
3669
3670 PR c/86453
3671 * c-attribs.c (handle_packed_attribute): Do not build a variant
3672 type with TYPE_PACKED, instead ignore the attribute if we may
3673 not apply to the original type.
3674
3675 2018-07-10 Jakub Jelinek <jakub@redhat.com>
3676
3677 PR c++/86443
3678 * c-omp.c (c_omp_check_loop_iv_r, c_omp_check_loop_iv): Allow declv
3679 to contain TREE_LIST for both the original class iterator and the
3680 "last" helper var.
3681
3682 2018-07-07 Eric Botcazou <ebotcazou@adacore.com>
3683
3684 * c-ada-spec.c (to_ada_name): Remove index parameter.
3685 (pp_ada_tree_identifier): Likewise.
3686 (dump_ada_macros): Adjust call to to_ada_name.
3687 (struct overloaded_name_hash): Delete.
3688 (struct overloaded_name_hasher): Likewise.
3689 (overloaded_names): Likewise.
3690 (compute_overloading_index): Likewise.
3691 (dump_ada_decl_name): Do not call compute_overloading_index and
3692 adjust calls to pp_ada_tree_identifier.
3693 (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
3694 (dump_ada_import): Add spc parameter and switch to aspect syntax.
3695 (dump_ada_function_declaration): Adjust call to pp_ada_tree_identifier.
3696 (dump_ada_enum_type): Remove type and display_convention parameters.
3697 Adjust calls to pp_ada_tree_identifier.
3698 (dump_ada_node): Likewise and for dump_ada_structure.
3699 (dump_nested_type) <ENUMERAL_TYPE>: Adjust call to dump_ada_enum_type
3700 and tidy up.
3701 <RECORD_TYPE>: Adjust call to dump_ada_structure and switch to aspect
3702 syntax.
3703 (print_constructor): Adjust call to pp_ada_tree_identifier.
3704 (print_destructor): Likewise.
3705 (dump_ada_declaration): Switch to aspect syntax.
3706 (dump_ada_structure): Likewise and tidy up. Replace display_convention
3707 parameter with nested parameter.
3708 (dump_ads): Emit pragma Ada_2012 in lieu of pragma Ada_2005.
3709 (dump_ada_specs): Do not delete overloaded_names table.
3710
3711 2018-07-06 Peter Bergner <bergner@linux.ibm.com>
3712
3713 PR target/86324
3714 * c-attribs.c (handle_mode_attribute): Call translate_mode_attribute
3715 target hook.
3716
3717 2018-07-05 Nathan Sidwell <nathan@acm.org>
3718
3719 * c-lex.c (fe_file_change): Check SYSTEM_IMPLICIT_EXTERN_C not
3720 NO_IMPLICIT_EXTERN_C.
3721
3722 2018-06-28 Martin Liska <mliska@suse.cz>
3723
3724 * cppspec.c: Include opt-suggestions.h.
3725
3726 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
3727 Thomas Schwinge <thomas@codesourcery.com>
3728 Cesar Philippidis <cesar@codesourcery.com>
3729
3730 * c-pragma.h (enum pragma_omp_clause): Add
3731 PRAGMA_OACC_CLAUSE_{FINALIZE,IF_PRESENT}. Remove
3732 PRAGMA_OACC_CLAUSE_PRESENT_OR_{COPY,COPYIN,COPYOUT,CREATE}.
3733
3734 2018-06-20 Jakub Jelinek <jakub@redhat.com>
3735
3736 PR c++/86210
3737 * c-common.c (check_nonnull_arg): Use fold_for_warn. Adjust obsolete
3738 comment.
3739
3740 2018-06-18 Martin Sebor <msebor@redhat.com>
3741
3742 PR middle-end/85602
3743 * c-warn.c (sizeof_pointer_memaccess_warning): Check for attribute
3744 nonstring.
3745
3746 2018-06-16 Kugan Vivekanandarajah <kuganv@linaro.org>
3747
3748 * c-common.c (c_common_truthvalue_conversion): Handle ABSU_EXPR.
3749
3750 2018-06-13 Jason Merrill <jason@redhat.com>
3751
3752 * c-opts.c (c_common_post_options): Warn about useless -Wabi.
3753 (c_common_handle_option) [OPT_Wabi_]: Remove flag_abi_compat_version
3754 handling.
3755
3756 PR c++/86094 - wrong code with defaulted move ctor.
3757 * c-opts.c (c_common_post_options): Bump the current ABI version to
3758 13. Set warn_abi_version and flag_abi_compat_version to the current
3759 version rather than 0. Fix defaulting flag_abi_compat_version from
3760 warn_abi_version.
3761
3762 2018-06-12 Martin Sebor <msebor@redhat.com>
3763
3764 PR c/85931
3765 * c-warn.c (sizeof_pointer_memaccess_warning): Avoid warning when
3766 sizeof source and destination yields the same value.
3767
3768 2018-06-12 Martin Liska <mliska@suse.cz>
3769
3770 * c.opt: Make MPX-related options as Deprecated.
3771
3772 2018-06-08 David Malcolm <dmalcolm@redhat.com>
3773
3774 * c-pretty-print.c (c_pretty_printer::statement): Use TDF_NONE
3775 rather than 0.
3776
3777 2018-06-08 Martin Liska <mliska@suse.cz>
3778
3779 * c-attribs.c (handle_bnd_variable_size_attribute): Remove support
3780 for MPX (macros, related functions, fields in cgraph_node, ...).
3781 (handle_bnd_legacy): Likewise.
3782 (handle_bnd_instrument): Likewise.
3783 * c.opt: Likewise.
3784
3785 2018-06-06 Jakub Jelinek <jakub@redhat.com>
3786
3787 PR c++/86068
3788 * c-cppbuiltin.c (c_cpp_builtins): Fix a typo, set
3789 __cpp_transactional_memory to 201500 instead of 210500.
3790
3791 2018-06-06 Jason Merrill <jason@redhat.com>
3792
3793 PR c++/85710 - ICE with -Wmemset-elt-size.
3794 * c-warn.c (warn_for_memset): Don't crash on incomplete element type.
3795
3796 2018-06-01 Jason Merrill <jason@redhat.com>
3797
3798 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_deduction_guides to
3799 201703.
3800
3801 2018-06-01 Eric Botcazou <ebotcazou@adacore.com>
3802
3803 * c-ada-spec.c (dump_ada_declaration) <TYPE_DECL>: Generate a forward
3804 declaration for a typedef independently of whether the declaration of
3805 the subtype is generated.
3806
3807 2018-05-31 Martin Sebor <msebor@redhat.com>
3808
3809 PR c/82063
3810 * c.opt (-Wno-alloc-size-larger-than): New option.
3811
3812 2018-04-22 David Pagan <dave.pagan@oracle.com>
3813
3814 PR c/55976
3815 * c-opts.c (c_common_post_options): Set default for warn_return_type
3816 for C++/C++ with ObjC extensions only. For C, makes it possible to
3817 differentiate between default (no option), -Wreturn-type, and
3818 -Wno-return-type.
3819
3820 2018-05-29 Jason Merrill <jason@redhat.com>
3821
3822 * c.opt (Winit-list-lifetime): New flag.
3823
3824 2018-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
3825
3826 * c-lex.c (get_fileinfo): Use splay_tree_compare_strings and
3827 splay_tree_delete_pointers.
3828
3829 2018-05-26 Jakub Jelinek <jakub@redhat.com>
3830
3831 PR bootstrap/85921
3832 * c-warn.c (diagnose_mismatched_attributes): Remove unnecessary
3833 noinline variable to workaround broken kernel headers.
3834
3835 2018-05-18 Jason Merrill <jason@redhat.com>
3836
3837 * c.opt (Wdeprecated-copy): New flag.
3838
3839 2018-05-17 Martin Liska <mliska@suse.cz>
3840
3841 * c-warn.c (overflow_warning): Do not use
3842 space in between 'G_' and '('.
3843
3844 2018-05-09 Jason Merrill <jason@redhat.com>
3845
3846 * c-common.c (valid_array_size_p): Add complain parameter.
3847 * c-common.h: ...which defaults to true.
3848
3849 2018-05-11 Jakub Jelinek <jakub@redhat.com>
3850
3851 PR c/85696
3852 * c-omp.c (c_omp_predetermined_sharing): Return
3853 OMP_CLAUSE_DEFAULT_SHARED for artificial vars with integral type.
3854
3855 2018-05-11 Martin Liska <mliska@suse.cz>
3856
3857 PR sanitizer/85556
3858 * c-attribs.c (handle_no_sanitize_attribute): Iterate all
3859 TREE_LIST values.
3860
3861 2018-05-10 Jakub Jelinek <jakub@redhat.com>
3862
3863 PR c++/85662
3864 * c-common.h (fold_offsetof_1): Removed.
3865 (fold_offsetof): Add TYPE argument defaulted to size_type_node and
3866 CTX argument defaulted to ERROR_MARK.
3867 * c-common.c (fold_offsetof_1): Renamed to ...
3868 (fold_offsetof): ... this. Remove wrapper function. Add TYPE
3869 argument, convert the pointer constant to TYPE and use size_binop
3870 with PLUS_EXPR instead of fold_build_pointer_plus if type is not
3871 a pointer type. Adjust recursive calls.
3872
3873 2018-05-10 Eric Botcazou <ebotcazou@adacore.com>
3874
3875 PR c++/85400
3876 * c-attribs.c (handle_visibility_attribute): Do not set no_add_attrs.
3877
3878 2018-05-07 Nathan Sidwell <nathan@acm.org>
3879
3880 * c.opt (ffor-scope): Remove functionality, issue warning.
3881
3882 2018-05-03 Nathan Sidwell <nathan@acm.org>
3883
3884 * c.opt (ffriend-injection): Remove functionality, issue warning.
3885
3886 2018-05-01 David Malcolm <dmalcolm@redhat.com>
3887
3888 PR c/84258
3889 * c-format.c (struct format_check_results): Add field
3890 "number_non_char".
3891 (check_format_info): Initialize it, and warn if encountered.
3892 (check_format_arg): Distinguish between wide char and
3893 everything else when detecting arrays of non-char.
3894
3895 2018-04-30 David Malcolm <dmalcolm@redhat.com>
3896
3897 * c-format.c (get_corrected_substring): Update for
3898 location_get_source_line returning a char_span. Use a char_span
3899 when handling the prefix of the correction.
3900 * c-indentation.c (get_visual_column): Update for
3901 location_get_source_line returning a char_span.
3902 (get_first_nws_vis_column): Likewise.
3903
3904 2018-03-29 David Malcolm <dmalcolm@redhat.com>
3905
3906 PR c++/84269
3907 * known-headers.cc (get_stdlib_header_for_name): Add various names
3908 from <assert.h>, <string.h>, and <memory.h>; add more names from
3909 <stdio.h>.
3910
3911 2018-03-27 Jakub Jelinek <jakub@redhat.com>
3912
3913 PR c++/85061
3914 * c-common.c (fold_offsetof_1) <case COMPOUND_EXPR>: Assert that
3915 get_base_address of the second operand is a VAR_P, rather than the
3916 operand itself, and use gcc_checking_assert instead of gcc_assert.
3917
3918 2018-03-23 Marek Polacek <polacek@redhat.com>
3919
3920 PR c++/85045
3921 * c-pretty-print.c (c_pretty_printer::multiplicative_expression)
3922 <case RDIV_EXPR>: Tweak condition.
3923
3924 2018-03-20 Eric Botcazou <ebotcazou@adacore.com>
3925
3926 * c-ada-spec.c (pp_ada_tree_identifier): Deal specifically with _Bool.
3927
3928 2018-03-16 Jakub Jelinek <jakub@redhat.com>
3929
3930 PR c/84909
3931 * c-warn.c (conversion_warning): Replace "to to" with "to" in
3932 diagnostics.
3933
3934 PR c/84910
3935 * c-warn.c (diagnose_mismatched_attributes): Remove trailing space from
3936 diagnostics.
3937
3938 2018-03-16 Richard Biener <rguenther@suse.de>
3939
3940 PR c/84873
3941 * c-gimplify.c (c_gimplify_expr): Revert previous change. Instead
3942 unshare the possibly folded expression.
3943
3944 2018-03-15 Richard Biener <rguenther@suse.de>
3945
3946 PR c/84873
3947 * c-gimplify.c (c_gimplify_expr): Do not fold expressions.
3948
3949 2018-03-13 Martin Sebor <msebor@redhat.com>
3950
3951 PR tree-optimization/84725
3952 * c-attribs.c (handle_nonstring_attribute): Allow attribute nonstring
3953 with all three narrow character types, including their qualified forms.
3954
3955 2018-03-12 Martin Sebor <msebor@redhat.com>
3956
3957 PR tree-optimization/83456
3958 * c-common.c (check_function_restrict): Return bool.
3959 Restore checking of bounded built-in functions.
3960 (check_function_arguments): Also return the result
3961 of warn_for_restrict.
3962 * c-common.c (check_function_restrict): Return bool.
3963 * c-warn.c (warn_for_restrict): Return bool.
3964
3965 2018-03-02 Marek Polacek <polacek@redhat.com>
3966
3967 PR c++/84171
3968 * c-warn.c (warn_for_sign_compare): Bail out if any of the operands
3969 is erroneous.
3970
3971 2018-03-02 Thomas Schwinge <thomas@codesourcery.com>
3972
3973 * c-attribs.c (c_common_attribute_table): Remove "cilk simd
3974 function".
3975
3976 2018-03-01 Marek Polacek <polacek@redhat.com>
3977
3978 PR c++/84639
3979 * c-attribs.c (common_handle_aligned_attribute): Don't use invalid
3980 alignment in computation.
3981
3982 2018-02-28 Eric Botcazou <ebotcazou@adacore.com>
3983
3984 * c-ada-spec.c (dump_ada_node) <NULLPTR_TYPE>: New case.
3985 <REAL_TYPE>: Deal specifically with _Float128/__float128.
3986
3987 2018-02-28 Eric Botcazou <ebotcazou@adacore.com>
3988
3989 * c-ada-spec.c (dump_ada_double_name) <ENUMERAL_TYPE>: New case.
3990 (is_char_array): Take a type instead of a declaration.
3991 (dump_ada_array_type): Likewise.
3992 (is_simple_enum): Minor tweak.
3993 (dump_ada_enum_type): New function extracted from...
3994 (dump_ada_node) <ENUMERAL_TYPE>: ...here. Invoke it.
3995 <INTEGER_TYPE>: Remove unreachable code.
3996 <RECORD_TYPE>: Likewise. Minor tweaks.
3997 (dump_nested_type) <ARRAY_TYPE>: Adjust to above changes.
3998 <ENUMERAL_TYPE>: New case.
3999 <RECORD_TYPE>: Factor out common code.
4000 (dump_ada_declaration) <ARRAY_TYPE>: Adjust to above changes.
4001 Minor tweaks. Deal with enumeral types.
4002 (dump_ada_structure): Minor tweaks.
4003
4004 2018-02-28 Eric Botcazou <ebotcazou@adacore.com>
4005
4006 * c-ada-spec.c (dump_ada_node) <POINTER_TYPE>: Do not use generic
4007 address for incomplete structures.
4008 (dump_forward_type): Do not bail out for incomplete structures.
4009 (dump_ada_declaration): Do not special-case incomplete structures
4010 for subtypes. Dump them as null records for types.
4011
4012 2018-02-28 Eric Botcazou <ebotcazou@adacore.com>
4013
4014 * c-ada-spec.c (dump_ada_import): Use boolean and fix formatting.
4015 (is_char_array): Fix formatting.
4016 (dump_template_types): Likewise.
4017 (dump_generic_ada_node): Rename into...
4018 (dump_ada_node): ...this.
4019 <POINTER_TYPE>: Remove superfluous space. Use generic address for
4020 incomplete structures and not for empty structures. Do not use it
4021 when forward declarations are needed.
4022 (dump_forward_type): New function.
4023 (dump_nested_types): Remove FORWARD parameter. Do not consider
4024 TREE_VISITED and do not generate a forward declaration. Only dump
4025 original nested types for nested declaration.
4026 (dump_nested_type) <POINTER_TYPE>: Call dump_forward_type.
4027 <ARRAY_TYPE>: Likewise if the component type is an anonymous pointer.
4028 <RECORD_TYPE>: Do not consider TREE_VISITED.
4029 (dump_ada_declaration): Use booleans and fix formatting throughout.
4030 <TYPE_DECL>: Skip incomplete structures and not empty structures.
4031 Call dump_forward_type instead of dump_nested_types for a typedef.
4032 Remove superfluous check and adjust call to dump_nested_types.
4033 <POINTER_TYPE>: Call dump_forward_type and fall through.
4034 (dump_ada_struct_decl): Rename into...
4035 (dump_ada_structure): ...this. Do not special-case empty structures.
4036
4037 2018-02-27 Martin Sebor <msebor@redhat.com>
4038
4039 PR c++/83871
4040 * c.opt (-Wmissing-attributes): New option.
4041
4042 2018-02-21 Martin Liska <mliska@suse.cz>
4043
4044 * c.opt (Wcatch-value=): Add IntegerRange.
4045
4046 2018-02-15 Jason Merrill <jason@redhat.com>
4047
4048 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_deduction_guides.
4049
4050 2018-02-09 Nathan Sidwell <nathan@acm.org>
4051
4052 PR c/84293
4053 * c-common.h (strict_aliasing_warning): Drop OTYPE arg, insert LOC
4054 arg.
4055 * c-warn.c (strict_aliasing_warning): Drop OTYPE arg, require LOC
4056 arg. Adjust.
4057
4058 2018-02-09 Martin Sebor <msebor@redhat.com>
4059
4060 PR lto/84212
4061 * c.opt (-Wstringop-overflow, -Warray-bounds): Add LTO.
4062 (-Walloc-size-larger-than, -Wformat-truncation=): Same.
4063 (-Wmaybe-uninitialized, -Wnonnull, -Wrestrict): Same.
4064 (-Wstrict-overflow, -Wsuggest-attribute): Same.
4065 (-Wuninitialized): Same.
4066
4067 2018-02-09 Eric Botcazou <ebotcazou@adacore.com>
4068
4069 * c-ada-spec.c (dump_ada_declaration): Do not generate the 'constant'
4070 keyword for components.
4071
4072 2018-02-02 Paolo Carlini <paolo.carlini@oracle.com>
4073
4074 * c-common.h (DECL_UNNAMED_BIT_FIELD): New.
4075
4076 2018-02-02 Julia Koval <julia.koval@intel.com>
4077
4078 * c-common.h (omp_clause_mask): Move to wide_int_bitmask.h.
4079
4080 2018-01-29 Marek Polacek <polacek@redhat.com>
4081
4082 PR c/83966
4083 * c-format.c (check_function_format): Check current_function_decl.
4084
4085 2018-01-27 Jakub Jelinek <jakub@redhat.com>
4086
4087 * c-cppbuiltin.c (c_cpp_builtins): Use ggc_strdup for the fp_suffix
4088 argument.
4089 (LAZY_HEX_FP_VALUES_CNT): Define.
4090 (lazy_hex_fp_values): Allow up to LAZY_HEX_FP_VALUES_CNT lazy hex fp
4091 values rather than just 12.
4092 (builtin_define_with_hex_fp_value): Likewise.
4093
4094 2018-01-18 Boris Kolpackov <boris@codesynthesis.com>
4095
4096 PR other/70268
4097 * c.opt (-fmacro-prefix-map): New option.
4098 * c-opts.c (c_common_handle_option): Handle it.
4099 * c-lex.c (init_c_lex): Set remap_filename cpp callback.
4100 * c-ppoutput.c (init_pp_output): Likewise.
4101
4102 2018-01-17 David Malcolm <dmalcolm@redhat.com>
4103
4104 PR c++/83814
4105 * c-common.c (fold_for_warn): Move to c/c-fold.c and cp/expr.c.
4106
4107 2018-01-10 Eric Botcazou <ebotcazou@adacore.com>
4108
4109 * c-ada-spec.c (dump_number): Add FLOAT_P parameter.
4110 Skip 'f' and 'F' characters if it is true.
4111 (store_ada_macro): Minor tweak.
4112 (dump_ada_macros) <CPP_COMMENT>: Likewise.
4113 <CPP_WSTRING>: Likewise.
4114 <CPP_STRING>: Output '&' in the buffer if not the first string.
4115 <CPP_NUMBER>: Adjust calls to dump_number.
4116
4117 2018-01-10 David Malcolm <dmalcolm@redhat.com>
4118
4119 PR c++/43486
4120 * c-common.c: Include "selftest.h".
4121 (get_atomic_generic_size): Perform the test for integral type
4122 before the range test for any integer constant, fixing indentation
4123 of braces. Call fold_for_warn before testing for an INTEGER_CST.
4124 (reject_gcc_builtin): Strip any location wrapper from EXPR.
4125 (selftest::test_fold_for_warn): New function.
4126 (selftest::c_common_c_tests): New function.
4127 (selftest::c_family_tests): Call it, and
4128 selftest::c_pretty_print_c_tests.
4129 * c-common.h (selftest::c_pretty_print_c_tests): New decl.
4130 * c-format.c (check_format_arg): Convert VAR_P check to a
4131 fold_for_warn.
4132 * c-pretty-print.c: Include "selftest.h".
4133 (pp_c_cast_expression): Don't print casts for location wrappers.
4134 (selftest::assert_c_pretty_printer_output): New function.
4135 (ASSERT_C_PRETTY_PRINTER_OUTPUT): New macro.
4136 (selftest::test_location_wrappers): New function.
4137 (selftest::c_pretty_print_c_tests): New function.
4138 * c-warn.c (warn_for_memset): Call fold_for_warn on the arguments.
4139
4140 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
4141 Alan Hayward <alan.hayward@arm.com>
4142 David Sherwood <david.sherwood@arm.com>
4143
4144 * c-common.c (c_common_type_for_mode): Handle MODE_VECTOR_BOOL.
4145
4146 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
4147 Alan Hayward <alan.hayward@arm.com>
4148 David Sherwood <david.sherwood@arm.com>
4149
4150 * c-ubsan.c (ubsan_instrument_shift): Treat GET_MODE_BITSIZE
4151 as polynomial.
4152
4153 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
4154 Alan Hayward <alan.hayward@arm.com>
4155 David Sherwood <david.sherwood@arm.com>
4156
4157 * c-common.c (vector_types_convertible_p, c_build_vec_perm_expr)
4158 (convert_vector_to_array_for_subscript): Handle polynomial
4159 TYPE_VECTOR_SUBPARTS.
4160 (c_common_type_for_mode): Check valid_vector_subparts_p.
4161 * c-pretty-print.c (pp_c_initializer_list): Handle polynomial
4162 VECTOR_CST_NELTS.
4163
4164 2018-01-03 Jakub Jelinek <jakub@redhat.com>
4165
4166 Update copyright years.
4167
4168 2017-12-22 Mike Stump <mikestump@comcast.net>
4169 Eric Botcazou <ebotcazou@adacore.com>
4170
4171 * c-pragma.c (init_pragma): Register pragma GCC unroll.
4172 * c-pragma.h (enum pragma_kind): Add PRAGMA_UNROLL.
4173
4174 2017-12-22 Alexandre Oliva <aoliva@redhat.com>
4175
4176 PR debug/83527
4177 PR debug/83419
4178 * c-semantics.c (only_debug_stmts_after_p): New.
4179 (pop_stmt_list): Clear side effects in debug-only stmt list.
4180 Check for single nondebug stmt followed by debug stmts only.
4181
4182 2017-12-21 Alexandre Oliva <aoliva@redhat.com>
4183
4184 PR debug/83419
4185 * c-semantics.c (pop_stmt_list): Propagate side effects from
4186 single nondebug stmt to container list.
4187
4188 2017-12-19 Jakub Jelinek <jakub@redhat.com>
4189
4190 * known-headers.cc (get_stdlib_header_for_name): Replace Yoda
4191 conditions with typical order conditions.
4192
4193 2017-12-18 Marek Polacek <polacek@redhat.com>
4194
4195 * c-warn.c (warn_logical_operator): Return early if -Wlogical-op is
4196 not in effect.
4197
4198 2017-12-17 Martin Sebor <msebor@redhat.com>
4199
4200 * c-attribs.c (common_handle_aligned_attribute): Avoid issuing
4201 an error for attribute warn_if_not_aligned.
4202
4203 2017-12-16 Martin Sebor <msebor@redhat.com>
4204
4205 PR tree-optimization/78918
4206 * c-common.c (check_function_restrict): Avoid checking built-ins.
4207 * c.opt (-Wrestrict): Include in -Wall.
4208
4209 2017-12-15 Jakub Jelinek <jakub@redhat.com>
4210
4211 * c-attribs.c (c_common_attribute_table,
4212 c_common_format_attribute_table): Swap affects_type_identity
4213 and handler fields, adjust comments.
4214
4215 2017-12-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
4216
4217 * c.opt (Wcast-function-type): New warning option.
4218 * c-lex.c (get_fileinfo): Avoid warning.
4219 * c-ppoutput.c (scan_translation_unit_directives_only): Remove cast.
4220
4221 2017-12-14 Qing Zhao <qing.zhao@oracle.com>
4222
4223 PR middle_end/79538
4224 * c-cppbuiltin.c (builtin_define_with_hex_fp_value):
4225 Adjust the size of buf1 and buf2, add a new buf to avoid
4226 format-overflow warning.
4227
4228 2017-12-12 Alexandre Oliva <aoliva@redhat.com>
4229
4230 * c-semantics.c (pop_stmt_list): Move begin stmt marker into
4231 subsequent statement list.
4232
4233 2017-12-07 Martin Sebor <msebor@redhat.com>
4234
4235 PR c/81544
4236 PR c/81566
4237 * c-attribs.c (attr_aligned_exclusions): New array.
4238 (attr_alloc_exclusions, attr_cold_hot_exclusions): Same.
4239 (attr_common_exclusions, attr_const_pure_exclusions): Same.
4240 (attr_gnu_inline_exclusions, attr_inline_exclusions): Same.
4241 (attr_noreturn_exclusions, attr_returns_twice_exclusions): Same.
4242 (attr_warn_unused_result_exclusions): Same.
4243 (handle_hot_attribute, handle_cold_attribute): Simplify.
4244 (handle_const_attribute): Warn on function returning void.
4245 (handle_pure_attribute): Same.
4246 (handle_aligned_attribute): Diagnose conflicting attribute
4247 specifications.
4248 * c-warn.c (diagnose_mismatched_attributes): Simplify.
4249
4250 2017-12-06 David Malcolm <dmalcolm@redhat.com>
4251
4252 PR c/83236
4253 * c-common.c (selftest::c_family_tests): Call
4254 selftest::c_spellcheck_cc_tests.
4255 * c-common.h (selftest::c_spellcheck_cc_tests): New decl.
4256 * c-spellcheck.cc: Include "selftest.h".
4257 (name_reserved_for_implementation_p): New function.
4258 (should_suggest_as_macro_p): New function.
4259 (find_closest_macro_cpp_cb): Move the check for NT_MACRO to
4260 should_suggest_as_macro_p and call it.
4261 (selftest::test_name_reserved_for_implementation_p): New function.
4262 (selftest::c_spellcheck_cc_tests): New function.
4263 * c-spellcheck.h (name_reserved_for_implementation_p): New decl.
4264
4265 2017-12-06 David Malcolm <dmalcolm@redhat.com>
4266
4267 * c-spellcheck.cc: New file, taken from macro-handling code in
4268 spellcheck-tree.c.
4269 * c-spellcheck.h: New file, taken from macro-handling code in
4270 spellcheck-tree.h.
4271
4272 2017-12-01 Jakub Jelinek <jakub@redhat.com>
4273
4274 * c-attribs.c (c_common_attribute_table): Remove "cilk simd function"
4275 attribute.
4276 (handle_simd_attribute): Don't check for "cilk simd function"
4277 attribute. Reindent, formatting changes.
4278
4279 2017-11-30 Julia Koval <julia.koval@intel.com>
4280
4281 * c-common.h (inv_list): Remove.
4282
4283 2017-11-28 Jakub Jelinek <jakub@redhat.com>
4284
4285 PR sanitizer/81275
4286 * c-common.c (c_switch_covers_all_cases_p_1,
4287 c_switch_covers_all_cases_p): New functions.
4288 * c-common.h (c_switch_covers_all_cases_p): Declare.
4289
4290 2017-11-28 Julia Koval <julia.koval@intel.com>
4291 Sebastian Peryt <sebastian.peryt@intel.com>
4292
4293 * array-notation-common.c: Delete.
4294 * c-cilkplus.c: Ditto.
4295 * c-common.c (_Cilk_spawn, _Cilk_sync, _Cilk_for): Remove.
4296 * c-common.def (ARRAY_NOTATION_REF): Remove.
4297 * c-common.h (RID_CILK_SPAWN, build_array_notation_expr,
4298 build_array_notation_ref, C_ORT_CILK, c_check_cilk_loop,
4299 c_validate_cilk_plus_loop, cilkplus_an_parts,
4300 cilk_ignorable_spawn_rhs_op,
4301 cilk_recognize_spawn): Remove.
4302 * c-gimplify.c (CILK_SPAWN_STMT): Remove.
4303 * c-omp.c: Remove CILK_SIMD check.
4304 * c-pragma.c: Ditto.
4305 * c-pragma.h: Remove CILK related pragmas.
4306 * c-pretty-print.c (c_pretty_printer::postfix_expression): Remove
4307 ARRAY_NOTATION_REF condition.
4308 (c_pretty_printer::expression): Ditto.
4309 * c.opt (fcilkplus): Remove.
4310 * cilk.c: Delete.
4311
4312 2017-11-21 Marc Glisse <marc.glisse@inria.fr>
4313
4314 * c-pretty-print.c (pp_c_additive_expression,
4315 c_pretty_printer::expression): Handle POINTER_DIFF_EXPR.
4316
4317 2017-11-21 Jakub Jelinek <jakub@redhat.com>
4318
4319 * c-common.c (get_nonnull_operand): Use tree_to_uhwi.
4320
4321 PR c++/83059
4322 * c-common.c (get_atomic_generic_size): Use TREE_INT_CST_LOW
4323 instead of tree_to_uhwi, formatting fix.
4324
4325 2017-11-20 David Malcolm <dmalcolm@redhat.com>
4326
4327 PR c/81404
4328 * known-headers.cc: New file, based on material from c/c-decl.c.
4329 (suggest_missing_header): Copied as-is.
4330 (get_stdlib_header_for_name): New, based on get_c_name_hint but
4331 heavily edited to add C++ support. Add some knowledge about
4332 <limits.h>, <stdint.h>, and <wchar.h>.
4333 * known-headers.h: Likewise.
4334
4335 2017-11-20 David Malcolm <dmalcolm@redhat.com>
4336
4337 * c-common.h (enum lookup_name_fuzzy_kind): Move to name-hint.h.
4338 (lookup_name_fuzzy): Likewise. Convert return type from
4339 const char * to name_hint. Add location_t param.
4340 * name-hint.h: New header.
4341
4342 2017-11-19 Jakub Jelinek <jakub@redhat.com>
4343
4344 PR c/66618
4345 PR c/69960
4346 * c-common.h (c_fully_fold): Add LVAL argument defaulted to false.
4347
4348 2017-11-16 Joseph Myers <joseph@codesourcery.com>
4349
4350 * c.opt (-std=c17, std=gnu17, -std=iso9899:2017): Refer to 2018
4351 expected publication date of C17.
4352 (-std=c18, -std=gnu18, -std=iso9899:2018): New option aliases.
4353
4354 2017-11-15 Joseph Myers <joseph@codesourcery.com>
4355
4356 PR c/81156
4357 * c-common.c (c_common_reswords): Add __builtin_tgmath.
4358 * c-common.h (enum rid): Add RID_BUILTIN_TGMATH.
4359
4360 2017-11-10 Martin Sebor <msebor@redhat.com>
4361
4362 PR c/81117
4363 * c-common.c (catenate_strings): Use memcpy instead of strncpy.
4364 * c-warn.c (sizeof_pointer_memaccess_warning): Handle arrays.
4365 * c.opt (-Wstringop-truncation): New option.
4366
4367 2017-11-06 Martin Liska <mliska@suse.cz>
4368
4369 PR middle-end/82404
4370 * c-opts.c (c_common_post_options): Set -Wreturn-type for C++
4371 FE.
4372 * c.opt: Set default value of warn_return_type.
4373
4374 2017-10-31 David Malcolm <dmalcolm@redhat.com>
4375
4376 * c-common.c (binary_op_error): Update for renaming of
4377 error_at_rich_loc.
4378 (c_parse_error): Likewise.
4379 * c-warn.c (warn_logical_not_parentheses): Likewise for
4380 renaming of inform_at_rich_loc.
4381 (warn_for_restrict): Likewise for renaming of
4382 warning_at_rich_loc_n.
4383
4384 2017-10-30 Joseph Myers <joseph@codesourcery.com>
4385
4386 * c.opt (std=c17, std=gnu17, std=iso9899:2017): New options.
4387 * c-opts.c (set_std_c17): New function.
4388 (c_common_init_options): Use gnu17 as default C version.
4389 (c_common_handle_option): Handle -std=c17 and -std=gnu17.
4390
4391 2017-10-27 Michael Meissner <meissner@linux.vnet.ibm.com>
4392
4393 * c-cppbuiltin.c (mode_has_fma): Add support for PowerPC KFmode.
4394 (c_cpp_builtins): If a machine has a fast fma _Float<N> and
4395 _Float<N>X variant, define __FP_FAST_FMA<N> and/or
4396 __FP_FAST_FMA<N>X.
4397
4398 2017-10-23 Marek Polacek <polacek@redhat.com>
4399
4400 PR c/82681
4401 * c-warn.c (warnings_for_convert_and_check): Fix typos.
4402
4403 2017-10-19 Eric Botcazou <ebotcazou@adacore.com>
4404
4405 * c-common.c (check_builtin_function_arguments): Also check arguments
4406 of __builtin_alloca_with_align_and_max.
4407
4408 2017-10-17 David Malcolm <dmalcolm@redhat.com>
4409
4410 * c-format.c (format_warning_at_char): Pass UNKNOWN_LOCATION
4411 rather than NULL to format_warning_va.
4412 (check_format_types): Likewise when calling format_type_warning.
4413 Remove code to extract source_ranges and source_range * in favor
4414 of just a location_t.
4415 (format_type_warning): Convert source_range * param to a
4416 location_t.
4417
4418 2017-10-13 Jakub Jelinek <jakub@redhat.com>
4419
4420 * c-gimplify.c (c_gimplify_expr): Handle [LR]ROTATE_EXPR like
4421 [LR]SHIFT_EXPR.
4422
4423 2017-10-12 David Malcolm <dmalcolm@redhat.com>
4424
4425 * c-common.c (enum missing_token_insertion_kind): New enum.
4426 (get_missing_token_insertion_kind): New function.
4427 (maybe_suggest_missing_token_insertion): New function.
4428 * c-common.h (maybe_suggest_missing_token_insertion): New decl.
4429
4430 2017-10-11 Nathan Sidwell <nathan@acm.org>
4431
4432 * c-opts.c (add_prefixed_path): Change chain to incpath_kind.
4433 (c_common_handle_option): Update incpath_kind names.
4434
4435 2017-10-11 Martin Liska <mliska@suse.cz>
4436
4437 PR sanitizer/82490
4438 * c-attribs.c (handle_no_sanitize_attribute): Report directly
4439 Wattributes warning.
4440
4441 2017-10-10 Richard Sandiford <richard.sandiford@linaro.org>
4442
4443 * c-ada-spec.c (dump_generic_ada_node): Use wi::to_wide when
4444 operating on trees as wide_ints.
4445 * c-common.c (pointer_int_sum): Likewise.
4446 * c-pretty-print.c (pp_c_integer_constant): Likewise.
4447 * c-warn.c (match_case_to_enum_1): Likewise.
4448 (c_do_switch_warnings): Likewise.
4449 (maybe_warn_shift_overflow): Likewise.
4450
4451 2017-10-10 Jakub Jelinek <jakub@redhat.com>
4452
4453 PR c/82437
4454 * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_wide
4455 instead of wide_int::from.
4456
4457 2017-10-06 Jakub Jelinek <jakub@redhat.com>
4458
4459 PR c/82437
4460 * c-warn.c (warn_tautological_bitwise_comparison): Instead of
4461 using to_widest use wide_int with the larger of the two precisions.
4462
4463 2017-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
4464
4465 * c-pretty-print.c (pp_c_parameter_type_list): Print ... for variadic
4466 functions.
4467
4468 2017-10-02 Richard Sandiford <richard.sandiford@linaro.org>
4469
4470 * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_widest
4471 when combining the original unconverted comparison operands.
4472
4473 2017-09-29 Jakub Jelinek <jakub@redhat.com>
4474
4475 * c-attribs.c (handle_noipa_attribute): Don't add "stack_protect"
4476 attribute.
4477
4478 2017-09-29 Eric Botcazou <ebotcazou@adacore.com>
4479
4480 * c-ada-spec.c (to_ada_name): Add index parameter.
4481 (pp_ada_tree_identifier): Likewise.
4482 (dump_ada_macros): Adjust call to to_ada_name.
4483 (struct overloaded_name_hash): New type.
4484 (struct overloaded_name_hasher): Likewise.
4485 (overloaded_names): New hash table.
4486 (compute_overloading_index): New function.
4487 (dump_ada_decl_name): Call it and pass the result to
4488 pp_ada_tree_identifier.
4489 (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
4490 (dump_ada_function_declaration): Likewise.
4491 (dump_generic_ada_node): Likewise.
4492 (print_constructor): Likewise.
4493 (print_destructor): Likewise.
4494 (dump_ada_specs): Delete overloaded_names table.
4495
4496 2017-09-29 Eric Botcazou <ebotcazou@adacore.com>
4497
4498 * c-ada-spec.c (max_ada_macros): Move around.
4499 (store_ada_macro_index): Likewise.
4500 (source_file): Rename into...
4501 (macro_source_file): ...this.
4502 (count_ada_macro): Move around.
4503 (store_ada_macro): Likewise.
4504 (compare_macro): Likewise.
4505 (print_ada_macros): Merge in...
4506 (dump_ada_macros): ...this.
4507 (source_file_base): Rename into...
4508 (current_source_file): ...this.
4509 (print_comment): Move around.
4510 (dump_ada_nodes): Call dump_ada_declaration directly.
4511 (struct with): Change type of limited field to bool.
4512 (append_withs): Change type of limited_access parameter to bool.
4513 (pp_ada_tree_identifie): Likewise.
4514 (dump_ada_decl_nam): Likewise.
4515 (dump_generic_ada_node): Likewise. Do not print the return type.
4516 (to_ada_name): Change type of space_found parameter to bool.
4517 (dump_ada_function_declaration): Return void and change type of
4518 parameters to bool. Also print the return type for a function.
4519 (print_ada_methods): Rename into...
4520 (dump_ada_methods): ...this.
4521 (print_ada_declaration): Rename into ...
4522 (dump_ada_declaration): ...this. Do not print the return type.
4523 (print_ada_struct_decl): Rename into...
4524 (dump_ada_struct_decl): ...this.
4525
4526 2017-09-29 Jakub Jelinek <jakub@redhat.com>
4527
4528 * c-attribs.c (handle_packed_attribute): Test DECL_C_BIT_FIELD
4529 rather than DECL_INITIAL.
4530 (common_handle_aligned_attribute): Likewise.
4531
4532 2017-09-20 Alexandre Oliva <aoliva@redhat.com>
4533
4534 * c.opt (gen-decls): Add RejectNegative.
4535
4536 2017-09-15 Andrew Sutton <andrew.n.sutton@gmail.com>
4537 Jakub Jelinek <jakub@redhat.com>
4538
4539 Add support for -std=c++2a.
4540 * c-common.h (cxx_dialect): Add cxx2a as a dialect.
4541 * opt.c: Add options for -std=c++2a and -std=gnu++2a.
4542 * c-opts.c (set_std_cxx2a): New.
4543 (c_common_handle_option): Set options when -std=c++2a is enabled.
4544 (c_common_post_options): Adjust comments.
4545 (set_std_cxx14, set_std_cxx17): Likewise.
4546
4547 2017-09-15 Eric Botcazou <ebotcazou@adacore.com>
4548
4549 * c-pragma.c (handle_pragma_scalar_storage_order): Expand on error
4550 message for non-uniform endianness and issue a warning in C++.
4551
4552 2017-09-15 Jakub Jelinek <jakub@redhat.com>
4553
4554 * c.opt (Wc++1z-compat): Change from option to undocumented alias.
4555 (Wc++17-compat): Change from undocumented alias to option.
4556 (Wnoexcept-type): Enable by Wc++17-compat instead of Wc++1z-compat,
4557 change C++1z to C++17 in description.
4558 (std=c++1z, std=gnu++1z): Change from option to undocumented
4559 deprecated alias.
4560 (std=c++17, std=gnu++17): Change from undocumented alias to option.
4561 Adjust description.
4562 * c-common.h (enum cxx_dialect): Rename cxx1z to cxx17.
4563 * c-opts.c (set_std_cxx1z): Rename to ...
4564 (set_std_cxx17): ... this.
4565 (c_common_handle_option): Rename OPT_std_c__1z to OPT_std_c__17
4566 and OPT_std_gnu__1z to OPT_std_gnu__17. Adjust set_std_cxx1z
4567 caller.
4568 (c_common_post_options): Use cxx17 instead of cxx1z. Adjust
4569 comments.
4570
4571 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
4572
4573 * c-attribs.c (common_handle_aligned_attribute): Don't warn
4574 function alignment if warn_if_not_aligned_p is true.
4575
4576 2017-09-12 Nathan Sidwell <nathan@acm.org>
4577
4578 * c-common.c (field_decl_cmp, resort_data, resort_field_decl_cmp,
4579 resort_sorted_fields): Move to c/c-decl.c.
4580 * c-common.h (field_decl_cmp, resort_sorted_fields): Delete.
4581 (struct sorted_fields_type): Move to c/c-lang.h.
4582
4583 2017-09-09 Jonathan Wakely <jwakely@redhat.com>
4584
4585 PR c++/81852
4586 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_threadsafe_static_init.
4587
4588 2017-09-04 Marek Polacek <polacek@redhat.com>
4589
4590 PR c/81783
4591 * c-warn.c (warn_tautological_bitwise_comparison): New function.
4592 (warn_tautological_cmp): Call it.
4593
4594 2017-09-01 Boris Kolpackov <boris@codesynthesis.com>
4595
4596 * c-opts.c (c_common_finish): Write dependency information even if
4597 there are errors.
4598
4599 2017-09-01 Jakub Jelinek <jakub@redhat.com>
4600
4601 PR c/81887
4602 * c-pragma.c (omp_pragmas): Move "ordered" entry from here to ...
4603 (omp_pragmas_simd): ... here.
4604 * c-omp.c (c_finish_omp_ordered): If clauses isn't simd clause alone,
4605 create new clauses list containing just simd clause.
4606
4607 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
4608 Alan Hayward <alan.hayward@arm.com>
4609 David Sherwood <david.sherwood@arm.com>
4610
4611 * c-attribs.c (vector_mode_valid_p) Fold GET_MODE_INNER call
4612 into scalar_mode_supported_p call.
4613 (handle_mode_attribute): Update call to scalar_mode_supported_p.
4614
4615 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
4616 Alan Hayward <alan.hayward@arm.com>
4617 David Sherwood <david.sherwood@arm.com>
4618
4619 * c-common.c (c_common_fixed_point_type_for_size): Use opt_scalar_mode
4620 for the mode iterator.
4621
4622 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
4623 Alan Hayward <alan.hayward@arm.com>
4624 David Sherwood <david.sherwood@arm.com>
4625
4626 * c-lex.c (interpret_fixed): Use SCALAR_TYPE_MODE.
4627 * c-common.c (c_build_vec_perm_expr): Likewise.
4628
4629 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
4630 Alan Hayward <alan.hayward@arm.com>
4631 David Sherwood <david.sherwood@arm.com>
4632
4633 * c-common.c (c_common_type_for_mode): Use as_a <scalar_int_mode>.
4634
4635 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
4636 Alan Hayward <alan.hayward@arm.com>
4637 David Sherwood <david.sherwood@arm.com>
4638
4639 * c-attribs.c (handle_mode_attribute): Check for a scalar_int_mode
4640 before calling targetm.addr_space.valid_pointer_mode.
4641
4642 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
4643 Alan Hayward <alan.hayward@arm.com>
4644 David Sherwood <david.sherwood@arm.com>
4645
4646 * c-cppbuiltin.c (c_cpp_builtins): Use opt_scalar_float_mode.
4647
4648 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
4649 Alan Hayward <alan.hayward@arm.com>
4650 David Sherwood <david.sherwood@arm.com>
4651
4652 * c-common.c (c_common_fixed_point_type_for_size): Use new mode
4653 iterators.
4654 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
4655
4656 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
4657 Alan Hayward <alan.hayward@arm.com>
4658 David Sherwood <david.sherwood@arm.com>
4659
4660 * c-cppbuiltin.c (mode_has_fma): Prefix mode names with E_ in
4661 case statements.
4662
4663 2017-08-29 Martin Liska <mliska@suse.cz>
4664
4665 PR other/39851
4666 * c-common.c (parse_optimize_options): Add argument to function
4667 call.
4668 * c-pragma.c (handle_pragma_diagnostic): Likewise.
4669
4670 2017-08-24 David Malcolm <dmalcolm@redhat.com>
4671
4672 * c-lex.c (interpret_float): Use token location
4673 when building an EXCESS_PRECISION_EXPR.
4674
4675 2017-08-21 David Malcolm <dmalcolm@redhat.com>
4676
4677 * c-common.c (check_function_arguments): Add "arglogs" param; pass
4678 it to check_function_format.
4679 * c-common.h (check_function_arguments): Add vec<location_t> *
4680 param.
4681 (check_function_format): Likewise.
4682 * c-format.c (struct format_check_context): Add field "arglocs".
4683 (check_function_format): Add param "arglocs"; pass it to
4684 check_format_info.
4685 (check_format_info): Add param "arglocs"; use it to initialize
4686 new field of format_ctx.
4687 (check_format_arg): Pass format_ctx->arglocs to new param of
4688 check_format_info_main.
4689 (class argument_parser): New field "arglocs".
4690 (argument_parser::argument_parser): Add "arglocs_" param and use
4691 it to initialize new field.
4692 (argument_parser::check_argument_type): Pass new arglocs field to
4693 check_format_types.
4694 (check_format_info_main): Add param "arglocs", and use it when
4695 constructing arg_parser.
4696 (check_format_types): Add param "arglocs"; use it if non-NULL when
4697 !EXPR_HAS_LOCATION (cur_param) to get at location information.
4698
4699 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
4700
4701 PR c/53037
4702 * c-attribs.c (handle_warn_if_not_aligned_attribute): New.
4703 (c_common_attribute_table): Add warn_if_not_aligned.
4704 (handle_aligned_attribute): Renamed to ...
4705 (common_handle_aligned_attribute): Remove argument, name, and add
4706 argument, warn_if_not_aligned. Handle warn_if_not_aligned.
4707 (handle_aligned_attribute): New.
4708 * c.opt: Add -Wif-not-aligned and -Wpacked-not-aligned.
4709
4710 2017-08-14 Martin Sebor <msebor@redhat.com>
4711
4712 PR c/81117
4713 * c-attribs.c (c_common_attribute_table): Add nonstring entry.
4714 (handle_nonstring_attribute): New function.
4715
4716 2017-08-14 Martin Sebor <msebor@redhat.com>
4717
4718 PR c/81117
4719 * c-format.h (T89_G): New macro.
4720 * c-format.c (local_gcall_ptr_node): New variable.
4721 (init_dynamic_diag_info): Initialize it.
4722
4723 2017-08-11 Martin Liska <mliska@suse.cz>
4724
4725 * c-opts.c (c_common_post_options): Replace ASM_OUTPUT_DEF with
4726 TARGET_SUPPORTS_ALIASES.
4727
4728 2017-08-10 David Malcolm <dmalcolm@redhat.com>
4729
4730 * c-common.c (c_parse_error): Add rich_location * param, using it
4731 rather implicitly using input_location.
4732 * c-common.h (c_parse_error): Add rich_location * param.
4733
4734 2017-08-09 Marek Polacek <polacek@redhat.com>
4735
4736 * c-common.c (pointer_int_sum): Use true/false instead of 1/0.
4737 (c_common_truthvalue_conversion): Likewise.
4738 * c-omp.c (c_finish_omp_atomic): Likewise.
4739 * c-common.h (build_binary_op): Update declaration.
4740
4741 2017-08-08 Martin Liska <mliska@suse.cz>
4742
4743 * c-ada-spec.c: Include header files.
4744 * c-ubsan.c: Likewise.
4745 * c-warn.c: Likewise.
4746
4747 2017-08-07 Jakub Jelinek <jakub@redhat.com>
4748
4749 PR c/69389
4750 * c-omp.c (c_finish_omp_atomic): Handle atomics on bitfields.
4751
4752 2017-08-07 Eric Botcazou <ebotcazou@adacore.com>
4753
4754 * c-ada-spec.c (has_nontrivial_methods): Test for FUNCTION_DECL.
4755 (print_ada_methods): Likewise.
4756 (print_ada_declaration): Likewise.
4757
4758 2017-08-07 Martin Liska <mliska@suse.cz>
4759
4760 * array-notation-common.c: Add new includes.
4761 * c-format.c( handle_format_attribute): Canonicalize a format
4762 function name.
4763 * c-lex.c (c_common_has_attribute): Canonicalize name of an
4764 attribute.
4765 * c-pretty-print.c: Add new include.
4766
4767 2017-08-05 Eric Botcazou <ebotcazou@adacore.com>
4768
4769 * c-ada-spec.c (has_static_fields): Look only into variables.
4770 (print_constructor): Add TYPE parameter and use it for the name.
4771 (print_destructor): Likewise.
4772 (print_ada_declaration): Adjust to new constructor/destructor names.
4773 Adjust calls to print_constructor and print_destructor.
4774 (print_ada_struct_decl): Do not test TREE_STATIC on FIELD_DECL.
4775 Look only into variables in the final loop.
4776
4777 2017-08-01 Eric Botcazou <ebotcazou@adacore.com>
4778
4779 * c-ada-spec.c (has_static_fields): Look only into fields.
4780 (dump_generic_ada_node): Small tweak.
4781 (dump_nested_types): Look only into fields.
4782 (print_ada_declaration): Look only into methods. Small tweak.
4783 (print_ada_struct_decl): Look only into fields. Use DECL_VIRTUAL_P.
4784
4785 2017-08-01 Eric Botcazou <ebotcazou@adacore.com>
4786
4787 * c-ada-spec.c (print_generic_ada_decl): Pass correctly-typed constant.
4788 (dump_ada_function_declaration): Likewise.
4789 (dump_generic_ada_node): Likewise.
4790 (print_ada_declaration): Add support for const-qualified variables.
4791
4792 2017-07-31 Martin Liska <mliska@suse.cz>
4793
4794 PR sanitize/81530
4795 * c-ubsan.c (ubsan_maybe_instrument_array_ref):
4796 Guard condition with flag_sanitize_p also with current_function_decl
4797 non-null equality.
4798 (ubsan_maybe_instrument_reference_or_call): Likewise.
4799
4800 2017-07-30 Uros Bizjak <ubizjak@gmail.com>
4801
4802 * c-format.c (asm_fprintf_char_table): Add 'z' to format_chars.
4803
4804 2017-07-29 Eric Botcazou <ebotcazou@adacore.com>
4805
4806 * c-ada-spec.c (dump_generic_ada_node): Take into account signedness
4807 for enumeral types.
4808 (print_ada_declaration): Add missing guard for record types.
4809
4810 2017-07-27 Jakub Jelinek <jakub@redhat.com>
4811
4812 PR c/45784
4813 * c-omp.c (c_finish_omp_for): If the condition is wrapped in
4814 rhs of COMPOUND_EXPR(s), skip them and readd their lhs into
4815 new COMPOUND_EXPRs around the rhs of the comparison.
4816
4817 2017-07-27 Marek Polacek <polacek@redhat.com>
4818
4819 PR c/81417
4820 * c-warn.c (warn_for_sign_compare): Tweak the warning message. Print
4821 the types.
4822
4823 2017-07-27 Jakub Jelinek <jakub@redhat.com>
4824
4825 * c-attribs.c (c_common_attribute_table): Add noipa attribute.
4826 (handle_noipa_attribute): New function.
4827
4828 2017-07-07 Torsten Duwe <duwe@suse.de>
4829
4830 * c-attribs.c (c_common_attribute_table): Add entry for
4831 "patchable_function_entry".
4832
4833 2017-07-20 Nathan Sidwell <nathan@acm.org>
4834
4835 Remove TYPE_METHODS.
4836 * c-ada-spec.c (is_tagged_type, has_nontrivial_methods,
4837 dump_ada_template, print_ada_methods,
4838 print_ada_declaration): Member fns are on TYPE_FIELDS.
4839
4840 2017-07-18 Nathan Sidwell <nathan@acm.org>
4841
4842 * c-warn.c (warn_for_memset): Use TYPE_{MIN,MAX}_VALUE.
4843
4844 2017-07-14 David Malcolm <dmalcolm@redhat.com>
4845
4846 * c-common.c (try_to_locate_new_include_insertion_point): New
4847 function.
4848 (per_file_includes_t): New typedef.
4849 (added_includes_t): New typedef.
4850 (added_includes): New variable.
4851 (maybe_add_include_fixit): New function.
4852 * c-common.h (maybe_add_include_fixit): New decl.
4853
4854 2017-07-10 Martin Sebor <msebor@redhat.com>
4855
4856 PR other/81345
4857 * c.opt (-Wstringop-overflow): Set defaults in LangEnabledBy.
4858
4859 2017-07-06 David Malcolm <dmalcolm@redhat.com>
4860
4861 * c-common.c (selftest::c_family_tests): New.
4862 * c-common.h (selftest::run_c_tests): Move decl to c/c-lang.h.
4863 (selftest::c_family_tests): New decl.
4864
4865 2017-07-04 Marek Polacek <polacek@redhat.com>
4866
4867 PR c/81231
4868 * c-common.c (sync_resolve_size): Give error for pointers to incomplete
4869 types.
4870
4871 2017-07-04 Marek Polacek <polacek@redhat.com>
4872
4873 * c-warn.c (warn_if_unused_value): Remove WITH_CLEANUP_EXPR handling.
4874
4875 2017-06-28 Martin Liska <mliska@suse.cz>
4876
4877 PR ipa/81128
4878 * c-attribs.c (handle_alias_ifunc_attribute): Append ifunc alias
4879 to a function declaration.
4880
4881 2017-06-28 Martin Liska <mliska@suse.cz>
4882
4883 PR driver/79659
4884 * c.opt: Add IntegerRange to various options.
4885
4886 2017-06-26 Marek Polacek <polacek@redhat.com>
4887
4888 PR c/80116
4889 * c-common.h (warn_for_multistatement_macros): Declare.
4890 * c-warn.c: Include "c-family/c-indentation.h".
4891 (warn_for_multistatement_macros): New function.
4892 * c.opt (Wmultistatement-macros): New option.
4893 * c-indentation.c (guard_tinfo_to_string): No longer static.
4894 Change the parameter type to "enum rid". Handle RID_SWITCH.
4895 * c-indentation.h (guard_tinfo_to_string): Declare.
4896
4897 2017-06-23 Marc Glisse <marc.glisse@inria.fr>
4898
4899 * c-common.c (c_common_nodes_and_builtins): Use builtin_structptr_types.
4900
4901 2017-06-15 Martin Sebor <msebor@redhat.com>
4902
4903 PR c++/80560
4904 * c.opt (-Wclass-memaccess): New option.
4905
4906 2017-06-14 Boris Kolpackov <boris@codesynthesis.com>
4907
4908 * c-opts.c (c_common_finish): Handle '-' special value to -MF.
4909
4910 2017-06-13 Marek Polacek <polacek@redhat.com>
4911
4912 PR objc/80949
4913 * c-warn.c (do_warn_duplicated_branches): Return if any of the
4914 branches is null.
4915
4916 2017-06-13 Martin Liska <mliska@suse.cz>
4917
4918 PR sanitize/78204
4919 * c-attribs.c (add_no_sanitize_value): New function.
4920 (handle_no_sanitize_attribute): Likewise.
4921 (handle_no_sanitize_address_attribute): Use the function.
4922 (handle_no_sanitize_thread_attribute): New function.
4923 (handle_no_address_safety_analysis_attribute): Use
4924 add_no_sanitize_value.
4925 (handle_no_sanitize_undefined_attribute): Likewise.
4926 * c-common.h: Declare new functions.
4927 * c-ubsan.c (ubsan_instrument_division): Use sanitize_flags_p.
4928 (ubsan_instrument_shift): Likewise.
4929 (ubsan_instrument_bounds): Likewise.
4930 (ubsan_maybe_instrument_array_ref): Likewise.
4931 (ubsan_maybe_instrument_reference_or_call): Likewise.
4932
4933 2017-06-11 Jason Merrill <jason@redhat.com>
4934
4935 * c-ada-spec.c, c-pragma.c: Use id_equal.
4936
4937 2017-06-04 Marek Polacek <polacek@redhat.com>
4938
4939 PR c/80919
4940 * c-format.c (matching_type_p): Return false if any of the types
4941 requires structural equality.
4942
4943 2017-06-02 Martin Sebor <msebor@redhat.com>
4944
4945 PR c/80892
4946 * c-warn.c (conversion_warning): Use -Wconversion for integer
4947 conversion and -Wfloat-conversion for floating one.
4948
4949 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
4950
4951 * c.opt (Wsizeof-pointer-div): New warning option.
4952
4953 2017-06-01 Volker Reichelt <v.reichelt@netcologne.de>
4954
4955 * c.opt (Wcatch-value): New shortcut for Wcatch-value=1.
4956 (Wcatch-value=1): Enable by -Wall.
4957
4958 2017-05-30 David Malcolm <dmalcolm@redhat.com>
4959
4960 * c-format.c (gcc_cxxdiag_char_table): Add 'H' and 'I' to
4961 format_chars.
4962 * c.opt (fdiagnostics-show-template-tree): New option.
4963 (felide-type): New option.
4964
4965 2017-05-25 Volker Reichelt <v.reichelt@netcologne.de>
4966
4967 * c.opt (Wcatch-value=): New C++ warning flag.
4968
4969 2017-05-24 Nathan Sidwell <nathan@acm.org>
4970
4971 * c=common.c (field_decl_cmp, resort_field_decl_cmp): Adjust T
4972 const casts to avoid warning.
4973
4974 2017-05-24 Martin Sebor <msebor@redhat.com>
4975
4976 PR c/80731
4977 * c-common.h (unsafe_conversion_p): Add a function argument.
4978 * c-common.c (unsafe_conversion_p): Same.
4979 Add type names and values to diagnostics.
4980 (scalar_to_vector): Adjust.
4981 * c-warn.c (constant_expression_error): Add a function argument.
4982 Add type names and values to diagnostics.
4983 (conversion_warning): Add a function argument.
4984 Add type names and values to diagnostics.
4985 (warnings_for_convert_and_check): Same.
4986
4987 2017-05-19 Jason Merrill <jason@redhat.com>
4988
4989 * c-warn.c (match_case_to_enum_1): Don't warn about enums with no
4990 enumerators.
4991
4992 2017-05-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
4993
4994 * c-format.c (locus): Move out of function scope,
4995 add GTY attribute.
4996
4997 2017-05-19 Nathan Sidwell <nathan@acm.org>
4998
4999 * c-opts.c (class_dump_file, class_dump_flags): Delete.
5000 (c_common_parse_file): Remove class dump handling.
5001 (get_dump_info): Likewise.
5002
5003 2017-05-19 Richard Biener <rguenther@suse.de>
5004
5005 PR c++/80593
5006 * c-warn.c (strict_aliasing_warning): Do not warn for accesses
5007 to alias-set zero memory.
5008
5009 2017-05-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
5010
5011 * c-format.c (local_tree_type_node): Add GTY attribute.
5012
5013 2017-05-18 Marek Polacek <polacek@redhat.com>
5014
5015 * c-common.c (c_common_type_for_size): Use NULL_TREE instead of 0.
5016 (c_common_fixed_point_type_for_size): Likewise.
5017 (c_common_type_for_mode): Likewise.
5018 (shorten_compare): Likewise.
5019 (c_promoting_integer_type_p): Use false/true instead of 0/1.
5020 * c-pragma.c (maybe_apply_renaming_pragma): Use NULL_TREE instead of 0.
5021
5022 2017-05-18 Marek Polacek <polacek@redhat.com>
5023
5024 * c-common.c (self_promoting_args_p): Change the return type to bool.
5025 Use false/true instead of 0/1.
5026 * c-common.h (self_promoting_args_p): Update.
5027
5028 2017-05-17 Marek Polacek <polacek@redhat.com>
5029
5030 * c-common.c: Use NULL_TREE instead of 0 where appropriate.
5031 * c-warn.c: Likewise.
5032
5033 2017-05-17 Ville Voutilainen <ville.voutilainen@gmail.com>
5034
5035 Implement new C++ intrinsics __is_assignable and __is_constructible.
5036 * c-common.c (__is_assignable, __is_constructible): New.
5037 * c-common.h (RID_IS_ASSIGNABLE, RID_IS_CONSTRUCTIBLE): Likewise.
5038
5039 2017-05-17 Martin Liska <mliska@suse.cz>
5040
5041 * c-common.h: Introduce dump_flags_t type and
5042 use it instead of int type.
5043 * c-gimplify.c (c_genericize): Likewise.
5044 * c-opts.c: Likewise.
5045
5046 2017-05-17 Marek Polacek <polacek@redhat.com>
5047
5048 * c-common.c (c_save_expr): Remove.
5049 (c_common_truthvalue_conversion): Remove a call to c_save_expr.
5050 * c-common.h (c_save_expr): Remove declaration.
5051
5052 2017-05-09 Volker Reichelt <v.reichelt@netcologne.de>
5053
5054 PR c/35441
5055 * c-pretty-print.c (c_pretty_printer::expression): Handle MAX_EXPR,
5056 MIN_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, LROTATE_EXPR, RROTATE_EXPR.
5057 (c_pretty_printer::postfix_expression): Handle MAX_EXPR, MIN_EXPR.
5058 (c_pretty_printer::multiplicative_expression): Handle EXACT_DIV_EXPR,
5059 RDIV_EXPR.
5060 (pp_c_shift_expression): Handle LROTATE_EXPR, RROTATE_EXPR.
5061
5062 2017-05-09 Marek Polacek <polacek@redhat.com>
5063
5064 PR c/80525
5065 * c-warn.c (unwrap_c_maybe_const): New.
5066 (warn_logical_operator): Call it.
5067
5068 2017-05-09 Nathan Sidwell <nathan@acm.org>
5069
5070 * c-common.c (c_register_builtin_type): Use pushdecl lang_hook.
5071 * c-common.h (pushdecl_top_level, pushdecl): Don't declare here.
5072
5073 2017-05-08 Martin Sebor <msebor@redhat.com>
5074
5075 PR translation/80280
5076 * c-format.h (struct format_flag_spec): Add new member.
5077 (T89_T): New macro.
5078 * c-format.c (local_tree_type_node): New global.
5079 (printf_flag_specs, asm_fprintf_flag_spec): Initialize new data.
5080 (gcc_diag_flag_specs, scanf_flag_specs, strftime_flag_specs): Ditto.
5081 (strfmon_flag_specs): Likewise.
5082 (gcc_diag_char_table, gcc_cdiag_char_table): Split up specifiers
5083 with distinct quoting properties.
5084 (gcc_tdiag_char_table, gcc_cxxdiag_char_table): Same.
5085 (flag_chars_t::validate): Add argument and handle bad quoting.
5086 (check_format_info_main): Handle quoting problems.
5087 (init_dynamic_diag_info): Simplify.
5088
5089 2017-05-08 Jason Merrill <jason@redhat.com>
5090
5091 * c-opts.c (c_common_post_options): Update defaults for
5092 flag_abi_version and flag_abi_compat_version.
5093
5094 2017-05-05 David Malcolm <dmalcolm@redhat.com>
5095
5096 * c-common.c (c_cpp_error): Replace report_diagnostic
5097 with diagnostic_report_diagnostic.
5098
5099 2017-05-04 Martin Sebor <msebor@redhat.com>
5100
5101 PR translation/80280
5102 * c-attribs.c (handle_alias_ifunc_attribute): Quote a %D directive.
5103 (handle_weakref_attribute): Same.
5104
5105 2017-05-03 Nathan Sidwell <nathan@acm.org>
5106
5107 Canonicalize canonical type hashing
5108 * c-common.c (complete_array_type): Use type_hash_canon.
5109
5110 2017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
5111
5112 PR c++/80038
5113 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): Remove
5114 prototype.
5115 (cilk_install_body_pedigree_operations): Likewise.
5116 * cilk.c (cilk_set_spawn_marker): Mark functions that should be
5117 detatched.
5118 (cilk_gimplify_call_params_in_spawned_fn): Remove.
5119 (cilk_install_body_pedigree_operations): Likewise.
5120 (gimplify_cilk_spawn): Add EXPR_STMT and CLEANUP_POINT_EXPR
5121 unwrapping.
5122
5123 2017-04-27 Jakub Jelinek <jakub@redhat.com>
5124
5125 PR c++/80534
5126 * c-common.c (complete_array_type): Only hash TYPE_TYPELESS_STORAGE
5127 flag on non-aggregate element types.
5128
5129 2017-04-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
5130
5131 * c-common.c (c_type_hasher, type_hash_table): Remove.
5132 (c_common_get_alias_set): Remove unreachable code.
5133 * c-opts.c (c_common_post_options): Make sure cc1 takes only one file.
5134
5135 2017-04-20 Volker Reichelt <v.reichelt@netcologne.de>
5136
5137 * c.opt (Wextra-semi): New C++ warning flag.
5138
5139 2017-04-20 Jakub Jelinek <jakub@redhat.com>
5140
5141 PR middle-end/80423
5142 * c-common.c (complete_array_type): Preserve TYPE_TYPELESS_STORAGE.
5143
5144 2017-04-18 Jakub Jelinek <jakub@redhat.com>
5145
5146 PR middle-end/79788
5147 PR middle-end/80375
5148 * c-common.c (c_common_type_for_mode): Don't handle
5149 widest_*_literal_type_node here.
5150 c_common_signed_or_unsigned_type): Likewise.
5151 (c_common_nodes_and_builtins): Set widest_*_literal_type_node
5152 to *intTI_type_node or *intDI_type_node depending on whether
5153 TImode is supported by the target or not.
5154
5155 2017-04-10 Martin Liska <mliska@suse.cz>
5156
5157 PR sanitizer/80350
5158 * c-ubsan.c (ubsan_instrument_shift): Evaluate RHS before
5159 doing an UBSAN check.
5160
5161 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
5162
5163 * c-warn.c (do_warn_double_promotion): Fix typo in comment.
5164
5165 2017-03-31 Jakub Jelinek <jakub@redhat.com>
5166
5167 PR c++/79572
5168 * c-ubsan.h (ubsan_maybe_instrument_reference): Change argument to
5169 tree *.
5170 * c-ubsan.c (ubsan_maybe_instrument_reference): Likewise. Handle
5171 not just NOP_EXPR to REFERENCE_TYPE, but also INTEGER_CST with
5172 REFERENCE_TYPE.
5173
5174 2017-03-31 David Malcolm <dmalcolm@redhat.com>
5175
5176 PR documentation/78732
5177 * c.opt (Wendif-labels): Fix description to refer to
5178 #else rather than #elif.
5179
5180 2017-03-31 Jakub Jelinek <jakub@redhat.com>
5181
5182 PR libstdc++/80251
5183 * c-common.h (enum rid): Add RID_IS_AGGREGATE.
5184 * c-common.c (c_common_reswords): Add __is_aggregate trait.
5185
5186 2017-03-27 Jakub Jelinek <jakub@redhat.com>
5187
5188 PR middle-end/80162
5189 * c-common.c (c_common_mark_addressable_vec): Don't set
5190 TREE_ADDRESSABLE on DECL_HARD_REGISTER.
5191
5192 2017-03-21 Martin Sebor <msebor@redhat.com>
5193
5194 PR c++/79548
5195 * c-common.c (set_underlying_type): Mark type used only when
5196 original del is declared unused.
5197
5198 2017-03-10 David Malcolm <dmalcolm@redhat.com>
5199
5200 PR translation/79848
5201 * c-format.c (check_format_string): Simplify uses of "%<%s%>" to
5202 "%qs".
5203
5204 2017-03-10 David Malcolm <dmalcolm@redhat.com>
5205
5206 PR c/79921
5207 * c-indentation.c (warn_for_misleading_indentation): Remove parens
5208 from inform's message, so that xgettext can locate it.
5209
5210 2017-03-09 Marek Polacek <polacek@redhat.com>
5211
5212 PR c++/79962
5213 PR c++/79984
5214 * c-attribs.c (handle_nonnull_attribute): Save the result of default
5215 conversion to the attribute list.
5216
5217 2017-03-09 Martin Liska <mliska@suse.cz>
5218
5219 * c-ada-spec.c (macro_length): Increment value instead of a pointer.
5220
5221 2017-03-03 Jason Merrill <jason@redhat.com>
5222
5223 * c.opt (Wnoexcept-type): New.
5224
5225 2017-03-02 Richard Biener <rguenther@suse.de>
5226
5227 PR c/79756
5228 * c-common.c (c_common_mark_addressable_vec): Look through
5229 C_MAYBE_CONST_EXPR.
5230
5231 2017-02-28 Martin Liska <mliska@suse.cz>
5232
5233 * c.opt: Replace space with tabular for options of <number>
5234 type.
5235
5236 2017-02-28 Martin Liska <mliska@suse.cz>
5237
5238 * c.opt: Fix --help=option -Q for options which are of
5239 an enum type.
5240
5241 2017-02-24 Jakub Jelinek <jakub@redhat.com>
5242
5243 PR c++/79588
5244 * c-common.c (check_function_restrict): New function.
5245 (check_function_arguments): Add FNDECL argument. Call
5246 check_function_restrict if -Wrestrict.
5247 * c-warn.c (warn_for_restrict): Remove ARGS argument, add ARGARRAY
5248 and NARGS. Use auto_vec for ARG_POSITIONS, simplify.
5249 * c-common.h (check_function_arguments): Add FNDECL argument.
5250 (warn_for_restrict): Remove ARGS argument, add ARGARRAY and NARGS.
5251
5252 2017-02-24 Eric Botcazou <ebotcazou@adacore.com>
5253
5254 * c-ada-spec.c (dump_ada_function_declaration): Add comment about the
5255 treatment of parameters with pointer-to-tagged type and tidy up.
5256 (print_ada_methods): Remove the special treatment of C++ static member
5257 functions.
5258
5259 2017-02-22 Martin Liska <mliska@suse.cz>
5260
5261 * c.opt: Replace inequality signs with square brackets
5262 for -Wnornalized.
5263
5264 2017-02-21 Jakub Jelinek <jakub@redhat.com>
5265
5266 PR c++/79641
5267 * c-attribs.c (handle_mode_attribute): Use build_qualified_type to
5268 preserve quals.
5269
5270 2017-02-17 Joseph Myers <joseph@codesourcery.com>
5271
5272 * c-cppbuiltin.c (builtin_define_float_constants): Define
5273 __DECIMAL_DIG__ to the value for long double.
5274
5275 2017-02-15 Marek Polacek <polacek@redhat.com>
5276
5277 PR c/79515
5278 * c-warn.c (do_warn_double_promotion): Don't warn if an invalid
5279 conversion has occured.
5280
5281 2017-01-24 David Malcolm <dmalcolm@redhat.com>
5282
5283 * c-common.c (c_common_reswords): Add "__RTL".
5284 * c-common.h (enum rid): Add RID_RTL.
5285
5286 2017-01-20 Marek Polacek <polacek@redhat.com>
5287
5288 PR c/64279
5289 * c-common.h (do_warn_duplicated_branches_r): Declare.
5290 * c-gimplify.c (c_genericize): Walk the function tree calling
5291 do_warn_duplicated_branches_r.
5292 * c-warn.c (expr_from_macro_expansion_r): New.
5293 (do_warn_duplicated_branches): New.
5294 (do_warn_duplicated_branches_r): New.
5295 * c.opt (Wduplicated-branches): New option.
5296
5297 2017-01-17 David Malcolm <dmalcolm@redhat.com>
5298
5299 PR c++/71497
5300 * c-indentation.c (warn_for_misleading_indentation): Use the past
5301 subjunctive in the note.
5302
5303 2017-01-17 Aldy Hernandez <aldyh@redhat.com>
5304
5305 PR c/79116
5306 * array-notation-common.c (cilkplus_extract_an_triplets): Convert
5307 start type to integer_type.
5308
5309 2017-01-16 Jakub Jelinek <jakub@redhat.com>
5310
5311 PR driver/49726
5312 * c.opt (gen-decls): Add Driver flag.
5313
5314 2017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
5315
5316 Revert:
5317 2017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
5318
5319 PR c++/71737
5320 * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
5321
5322 2017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
5323
5324 PR c++/71737
5325 * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
5326
5327 2017-01-12 Martin Sebor <msebor@redhat.com>
5328
5329 (-Wformat-overflow): ...to this.
5330
5331 2017-01-11 Martin Sebor <msebor@redhat.com>
5332
5333 PR c/78768
5334 * c.opt (-Walloca-larger-than, -Wformat-length, -Wformat-truncation):
5335 Also enable for LTO.
5336
5337 2017-01-10 Jason Merrill <jason@redhat.com>
5338
5339 Implement P0195R2, C++17 variadic using.
5340 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_variadic_using.
5341
5342 2017-01-09 Jakub Jelinek <jakub@redhat.com>
5343
5344 PR translation/79019
5345 PR translation/79020
5346 * c.opt (Wnormalized=): Fix typo in description.
5347
5348 2017-01-08 Martin Sebor <msebor@redhat.com>
5349
5350 PR middle-end/77708
5351 * c.opt (-Wformat-truncation): New option.
5352
5353 2017-01-06 Alexandre Oliva <aoliva@redhat.com>
5354
5355 * c-pretty-print.c (pp_c_tree_decl_identifier): Convert 16-bit
5356 value to unsigned short to fit in 4 hex digits without
5357 warnings.
5358
5359 2017-01-05 Eric Botcazou <ebotcazou@adacore.com>
5360
5361 * c.opt (fsso-struct): Add 'native' value.
5362
5363 2017-01-05 Martin Liska <mliska@suse.cz>
5364
5365 PR pch/78970
5366 * c-opts.c (c_common_post_options): Reject '-' filename for a precompiled
5367 header.
5368
5369 2017-01-04 Marek Polacek <polacek@redhat.com>
5370
5371 PR c++/64767
5372 * c.opt (Wpointer-compare): New option.
5373
5374 2017-01-04 Jakub Jelinek <jakub@redhat.com>
5375
5376 PR driver/78957
5377 * c.opt (fsso-struct=): Add RejectNegative.
5378
5379 2017-01-01 Jakub Jelinek <jakub@redhat.com>
5380
5381 Update copyright years.
5382
5383 2016-12-29 Martin Liska <mliska@suse.cz>
5384
5385 PR c/78933
5386 * c.opt (strong-eval-order): Add RejectNegative keyword.
5387
5388 2016-12-22 Jason Merrill <jason@redhat.com>
5389
5390 Implement P0522R0, matching of template template arguments.
5391 * c-cppbuiltin.c (c_cpp_builtins): Define
5392 __cpp_template_template_args.
5393
5394 2016-12-21 Jakub Jelinek <jakub@redhat.com>
5395
5396 PR bootstrap/78817
5397 * c-common.c (struct nonnull_arg_ctx): New type.
5398 (check_function_nonnull): Return bool instead of void. Use
5399 nonnull_arg_ctx as context rather than just location_t.
5400 (check_nonnull_arg): Adjust for the new context type, set
5401 warned_p to true if a warning has been diagnosed.
5402 (check_function_arguments): Return bool instead of void.
5403 * c-common.h (check_function_arguments): Adjust prototype.
5404
5405 2016-12-21 Jason Merrill <jason@redhat.com>
5406
5407 * c.opt (-fnew-ttp-matching): New flag.
5408 * c-opts.c (c_common_post_options): Default on if -std=c++1z.
5409
5410 2016-12-14 Martin Jambor <mjambor@suse.cz>
5411
5412 * c-omp.c: Include omp-general.h instead of omp-low.h.
5413 (c_finish_oacc_wait): Adjusted call to find_omp_clause to use its new
5414 name.
5415
5416 2016-12-14 Martin Sebor <msebor@redhat.com>
5417
5418 PR c/17308
5419 * c-common.c (check_nonnull_arg): Disable when optimization
5420 is enabled.
5421
5422 2016-12-12 Marek Polacek <polacek@redhat.com>
5423
5424 PR c++/78647
5425 * c-common.c (attribute_fallthrough_p): Return false for
5426 error_mark_node.
5427
5428 2016-12-08 Martin Sebor <msebor@redhat.com>
5429
5430 PR c/78284
5431 * c.opt (-Walloc-zero, -Walloc-size-larger-than): New options.
5432
5433 2016-12-08 Martin Sebor <msebor@redhat.com>
5434
5435 PR c/78165
5436 * c-pretty-print (pp_c_integer_constant): Avoid formatting type
5437 suffix.
5438
5439 2016-12-07 Martin Sebor <msebor@redhat.com>
5440
5441 PR c/53562
5442 PR middle-end/77784
5443 PR middle-end/78149
5444 PR middle-end/78138
5445 * c.opt (-Wstringop-overflow): New option.
5446
5447 2016-12-02 Maxim Ostapenko <m.ostapenko@samsung.com>
5448
5449 * c-attribs.c (asan odr indicator): New attribute.
5450 (handle_asan_odr_indicator_attribute): New function.
5451
5452 2016-11-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5453
5454 * c-common.c (c_common_nodes_and_builtins): Remove initialization of
5455 ptrdiff_type_node;
5456
5457 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
5458
5459 * c-common.c (excess_precision_mode_join): New.
5460 (c_ts18661_flt_eval_method): New.
5461 (c_c11_flt_eval_method): Likewise.
5462 (c_flt_eval_method): Likewise.
5463 * c-common.h (excess_precision_mode_join): New.
5464 (c_flt_eval_method): Likewise.
5465 * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): New.
5466 (cpp_iec_559_value): Call it.
5467 (c_cpp_builtins): Modify logic for __LIBGCC_*_EXCESS_PRECISION__,
5468 call c_flt_eval_method to set __FLT_EVAL_METHOD__ and
5469 __FLT_EVAL_METHOD_TS_18661_3__.
5470
5471 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
5472
5473 * c-opts.c (c_common_post_options): Add logic to handle the default
5474 case for -fpermitted-flt-eval-methods.
5475
5476 2016-11-23 Paolo Bonzini <bonzini@gnu.org>
5477
5478 * c.opt (Wexpansion-to-defined): New.
5479
5480 2016-11-23 Jakub Jelinek <jakub@redhat.com>
5481
5482 PR target/78451
5483 * c-pragma.c (handle_pragma_target): Don't replace
5484 current_target_pragma, but chainon the new args to the current one.
5485
5486 2016-11-22 Nathan Sidwell <nathan@acm.org>
5487
5488 * array-notation-common.c (cilkplus_extract_an_trplets): Fix
5489 indentation and formatting.
5490
5491 2016-11-21 Martin Sebor <msebor@redhat.com>
5492
5493 * c.opt (-fprintf-return-value): Enable by default.
5494
5495 2016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
5496
5497 PR c++/71973
5498 * c.opt (-Wbuiltin-declaration-mismatch): New warning.
5499 * c-common.c (c_common_nodes_and_builtins): Initialize
5500 const_tm_ptr_type_node.
5501
5502 2016-11-16 Marek Polacek <polacek@redhat.com>
5503
5504 PR c/78285
5505 * c-common.c (c_add_case_label): Turn error_at calls into inform.
5506
5507 2016-11-14 Jakub Jelinek <jakub@redhat.com>
5508
5509 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_structured_bindings.
5510
5511 2016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
5512 Richard Biener <rguenther@suse.de>
5513
5514 * c-common.h (c_common_resword): Add RID_GIMPLE, RID_PHI types.
5515 * c-common.h (enum rid): Add RID_GIMPLE, RID_PHI.
5516 * c.opt (fgimple): New option.
5517
5518 2016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5519
5520 PR c/35503
5521 * c-common.h (warn_for_restrict): Declare.
5522 * c-warn.c: Include gcc-rich-location.h.
5523 (warn_for_restrict): New function.
5524 * c-format.c (gcc_tdiag_char_table): Add entry for "Z" specifier.
5525 (gcc_cdiag_char_table): Likewise.
5526 (gcc_cxxdiag_char_table): Likewise.
5527 * c.opt (Wrestrict): New option.
5528
5529 2016-11-13 Eric Botcazou <ebotcazou@adacore.com>
5530
5531 * c-ada-spec.c (print_ada_declaration): For typedef declarations, look
5532 for nested types only if the type is a record or union and dump SLOC.
5533
5534 2016-11-09 Jason Merrill <jason@redhat.com>
5535
5536 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_template_auto.
5537
5538 2016-11-09 Jakub Jelinek <jakub@redhat.com>
5539
5540 * c-ubsan.c (ubsan_instrument_shift): Handle split
5541 -fsanitize=shift-base and -fsanitize=shift-exponent.
5542
5543 2016-11-07 Jason Merrill <jason@redhat.com>
5544
5545 * c.opt (Wc++1z-compat): New.
5546 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_noexcept_function_type.
5547
5548 2016-11-07 Martin Liska <mliska@suse.cz>
5549
5550 * c-warn.c (warn_for_unused_label): Save all labels used
5551 in goto or in &label.
5552
5553 2016-11-03 Jason Merrill <jason@redhat.com>
5554
5555 * c-cppbuiltin.c (c_cpp_builtins): Correct
5556 __cpp_inheriting_constructors.
5557
5558 2016-11-01 Jason Merrill <jason@redhat.com>
5559
5560 * c-cppbuiltin.c (c_cpp_builtins): Update
5561 __cpp_inheriting_constructors.
5562
5563 * c.opt (-fnew-inheriting-ctors): New.
5564 * c-opts.c: Default to on for ABI 11+.
5565
5566 2016-10-31 Jakub Jelinek <jakub@redhat.com>
5567
5568 PR c++/77948
5569 * c.opt (fext-numeric-literals): Add Var and Init.
5570 * c-opts.c (c_common_handle_option): Don't clear
5571 cpp_opts->ext_numeric_literals for -std=c++{11,14,1z}.
5572 (c_common_post_options): Clear it here if not set
5573 explicitly.
5574
5575 2016-10-28 Aldy Hernandez <aldyh@redhat.com>
5576
5577 PR debug/77773
5578 * c-pretty-print.c (simple_type_specifier): Do not dereference `t'
5579 if NULL.
5580
5581 2016-10-25 Jakub Jelinek <jakub@redhat.com>
5582
5583 * c-common.h (enum rid): Add RID_BUILTIN_LAUNDER.
5584 * c-common.c (c_common_reswords): Add __builtin_launder.
5585
5586 2016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
5587
5588 * c-common.c (c_common_truthvalue_conversion): Warn for
5589 multiplications in boolean context. Fix the quoting of '<<' and '<'
5590 in the shift warning.
5591
5592 2016-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
5593
5594 * c-common.c (c_common_truthvalue_conversion): Fix the comment.
5595
5596 2016-10-20 Jason Merrill <jason@redhat.com>
5597
5598 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_concepts value.
5599
5600 2016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
5601
5602 * c-common.c (c_common_truthvalue_conversion): Warn only for signed
5603 integer shift ops in boolean context.
5604
5605 2016-10-18 Aldy Hernandez <aldyh@redhat.com>
5606
5607 * c.opt (Walloca): New.
5608 (Walloca-larger-than=): New.
5609 (Wvla-larger-than=): New.
5610
5611 2016-10-17 Marek Polacek <polacek@redhat.com>
5612
5613 * c-warn.c (find_array_ref_with_const_idx_r): Remove parameter names.
5614 Return immediately when finding a match.
5615 (warn_tautological_cmp): Remove a boolean variable that is no longer
5616 needed.
5617
5618 2016-10-17 Marek Polacek <polacek@redhat.com>
5619
5620 * c-attribs.c: New file.
5621 * c-common.c: Move attributes handling to c-attribs.c.
5622 (get_nonnull_operand): No longer static.
5623 * c-common.h: Move the declarations from c-attribs.c to its own section.
5624
5625 2016-10-14 Jason Merrill <jason@redhat.com>
5626
5627 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_aggregate_bases
5628 and __cpp_deduction_guides.
5629
5630 2016-10-13 Jason Merrill <jason@redhat.com>
5631
5632 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_inline_variables.
5633
5634 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
5635
5636 * c-cppbuiltin.c: Include memmodel.h.
5637 * c-opts.c: Likewise.
5638 * c-pragma.c: Likewise.
5639 * c-warn.c: Likewise.
5640
5641 2016-10-12 Jakub Jelinek <jakub@redhat.com>
5642
5643 * c.opt (Wextra): Add as C/C++/ObjC/ObjC++ option.
5644 (Wimplicit-fallthrough=): Enable for these languages by -Wextra.
5645 * c-opts.c (sanitize_cpp_opts): Initialize
5646 cpp_opts->cpp_warn_implicit_fallthrough.
5647
5648 2016-10-11 Marek Polacek <polacek@redhat.com>
5649
5650 * c-common.c (warning_candidate_p): Change the return type to bool
5651 and return true/false instead of 1/0.
5652 (vector_mode_valid_p): Likewise.
5653
5654 2016-10-11 Marek Polacek <polacek@redhat.com>
5655
5656 * c-common.c (fold_for_warn): No longer static.
5657 (bool_promoted_to_int_p): Likewise.
5658 (c_common_get_narrower): Likewise.
5659 (constant_expression_warning): Move to c-warn.c.
5660 (constant_expression_error): Likewise.
5661 (overflow_warning): Likewise.
5662 (warn_logical_operator): Likewise.
5663 (find_array_ref_with_const_idx_r): Likewise.
5664 (warn_tautological_cmp): Likewise.
5665 (expr_has_boolean_operands_p): Likewise.
5666 (warn_logical_not_parentheses): Likewise.
5667 (warn_if_unused_value): Likewise.
5668 (strict_aliasing_warning): Likewise.
5669 (sizeof_pointer_memaccess_warning): Likewise.
5670 (check_main_parameter_types): Likewise.
5671 (conversion_warning): Likewise.
5672 (warnings_for_convert_and_check): Likewise.
5673 (match_case_to_enum_1): Likewise.
5674 (match_case_to_enum): Likewise.
5675 (c_do_switch_warnings): Likewise.
5676 (warn_for_omitted_condop): Likewise.
5677 (readonly_error): Likewise.
5678 (lvalue_error): Likewise.
5679 (invalid_indirection_error): Likewise.
5680 (warn_array_subscript_with_type_char): Likewise.
5681 (warn_about_parentheses): Likewise.
5682 (warn_for_unused_label): Likewise.
5683 (warn_for_div_by_zero): Likewise.
5684 (warn_for_memset): Likewise.
5685 (warn_for_sign_compare): Likewise.
5686 (do_warn_double_promotion): Likewise.
5687 (do_warn_unused_parameter): Likewise.
5688 (record_locally_defined_typedef): Likewise.
5689 (maybe_record_typedef_use): Likewise.
5690 (maybe_warn_unused_local_typedefs): Likewise.
5691 (maybe_warn_bool_compare): Likewise.
5692 (maybe_warn_shift_overflow): Likewise.
5693 (warn_duplicated_cond_add_or_warn): Likewise.
5694 (diagnose_mismatched_attributes): Likewise.
5695 * c-common.h: Move the declarations from c-warn.c to its own section.
5696 * c-warn.c: New file.
5697
5698 2016-10-08 Jason Merrill <jason@redhat.com>
5699
5700 * c-common.c (c_common_truthvalue_conversion): Don't distribute
5701 into COND_EXPR in C++.
5702
5703 2016-10-08 Jakub Jelinek <jakub@redhat.com>
5704
5705 * c-lex.c (c_lex_with_flags) <case CPP_COMMENT>: For CPP_COMMENT
5706 token with PREV_FALLTHROUGH, skip all following CPP_PADDING and
5707 CPP_COMMENT tokens and set add_flags to PREV_FALLTHROUGH afterwards.
5708
5709 2016-10-07 Jakub Jelinek <jakub@redhat.com>
5710
5711 Implement LWG2296 helper intrinsic
5712 * c-common.h (enum rid): Add RID_ADDRESSOF.
5713 * c-common.c (c_common_reswords): Add __builtin_addressof.
5714
5715 2016-10-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
5716
5717 PR c++/77700
5718 * c-common.c (c_common_truthvalue_conversion): Warn also for
5719 suspicious enum values in boolean context.
5720
5721 2016-10-06 Jakub Jelinek <jakub@redhat.com>
5722
5723 Implement P0258R2 - helper for C++17
5724 std::has_unique_object_representations trait
5725 * c-common.h (enum rid): Add RID_HAS_UNIQUE_OBJ_REPRESENTATIONS.
5726 * c-common.c (c_common_reswords): Add
5727 __has_unique_object_representations.
5728
5729 2016-10-05 Jakub Jelinek <jakub@redhat.com>
5730
5731 PR sanitizer/66343
5732 * c-ubsan.c (ubsan_instrument_return): Don't call
5733 initialize_sanitizer_builtins here.
5734
5735 2016-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
5736
5737 * c-common.c (c_common_truthvalue_conversion): Warn also for suspicious
5738 conditional expression in boolean context when only one arm is
5739 non-boolean.
5740
5741 2016-10-05 Jakub Jelinek <jakub@redhat.com>
5742
5743 PR sanitizer/77823
5744 * c-ubsan.c (ubsan_instrument_shift): Return NULL_TREE if type0
5745 is not integral.
5746
5747 * c-common.c (c_common_reswords): Update comment for C++11.
5748
5749 2016-10-04 Jason Merrill <jason@redhat.com>
5750
5751 * c-common.c (make_tree_vector_from_ctor): New.
5752 * c-common.h: Declare it.
5753
5754 2016-10-04 Jakub Jelinek <jakub@redhat.com>
5755
5756 * c-cppbuiltin.c (c_cpp_builtins): Don't define
5757 __LIBGCC_JCR_SECTION_NAME__.
5758
5759 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
5760
5761 * c-common.c (c_common_truthvalue_conversion): Warn for suspicious
5762 left shift in boolean context.
5763
5764 2016-09-29 Jakub Jelinek <jakub@redhat.com>
5765
5766 Implement P0001R1 - C++17 removal of register storage class specifier
5767 * c.opt (Wregister): New warning.
5768 * c-opts.c (c_common_post_options): Enable -Wregister by
5769 default for C++17.
5770
5771 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
5772
5773 * c-opts.c (c_common_post_options): Remove special case for
5774 TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard
5775 in C++.
5776
5777 2016-09-27 Jakub Jelinek <jakub@redhat.com>
5778
5779 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for
5780 -std=c++1z.
5781
5782 * c-ada-spec.c (print_ada_declaration): Remove break after return.
5783
5784 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
5785
5786 * c-common.c: Include memmodel.h.
5787
5788 2016-09-26 Marek Polacek <polacek@redhat.com>
5789
5790 * c-lex.c (c_common_has_attribute): Handle attribute fallthrough.
5791
5792 2016-09-26 Marek Polacek <polacek@redhat.com>
5793
5794 PR c/7652
5795 * c-common.c (c_common_attribute_table): Add fallthrough attribute.
5796 (handle_fallthrough_attribute): New function.
5797 (attribute_fallthrough_p): New function.
5798 * c-common.h (attribute_fallthrough_p): Declare.
5799
5800 2016-09-24 Marek Polacek <polacek@redhat.com>
5801
5802 PR c/77490
5803 * c.opt (Wbool-operation): New.
5804
5805 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
5806
5807 * c-common.c (c_common_truthvalue_conversion): Inhibit
5808 Wint-in-bool-context warning with from_macro_definition_at.
5809 Mention the expression will always evaluate to true.
5810
5811 2016-09-21 Martin Sebor <msebor@redhat.com>
5812
5813 PR bootstrap/77676
5814 * c.opt (fprintf-return-value): Temporarily initialize to zero
5815 to unblock bootstrap failures.
5816
5817 2016-09-21 Jakub Jelinek <jakub@redhat.com>
5818
5819 PR c++/77651
5820 * c.opt (Waligned-new=): Add RejectNegative.
5821 (faligned-new=): Likewise. Spelling fix - change
5822 aligned_new_threshhold to aligned_new_threshold.
5823 * c-cppbuiltin.c (c_cpp_builtins): Change aligned_new_threshhold
5824 to aligned_new_threshold.
5825
5826 2016-09-20 Martin Sebor <msebor@redhat.com>
5827
5828 PR middle-end/49905
5829 * c.opt: Add -Wformat-length and -fprintf-return-value.
5830
5831 2016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
5832
5833 PR c++/77434
5834 * c.opt (Wint-in-bool-context): New warning.
5835 * c-common.c (c_common_truthvalue_conversion): Warn on integer
5836 constants in boolean context.
5837
5838 2016-09-19 Joseph Myers <joseph@codesourcery.com>
5839
5840 * c-common.c (max_align_t_align): Also consider alignment of
5841 float128_type_node.
5842
5843 2016-09-15 Jason Merrill <jason@redhat.com>
5844
5845 * c-common.c (check_cxx_fundamental_alignment_constraints): Check
5846 DECL_EXTERNAL.
5847
5848 2016-09-14 Jason Merrill <jason@redhat.com>
5849
5850 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
5851 limit FIELD_DECL, either.
5852
5853 2016-09-14 Marek Polacek <polacek@redhat.com>
5854
5855 * c-common.c (c_common_truthvalue_conversion): Use false instead of 0.
5856 * c-common.h (build_unary_op): Change nonconvert parameter type to bool.
5857 * c-omp.c (c_finish_omp_atomic): Use false instead of 0.
5858
5859 2016-09-13 David Malcolm <dmalcolm@redhat.com>
5860
5861 * c-common.c (warn_logical_not_parentheses): Replace
5862 rich_location::add_fixit_insert calls with add_fixit_insert_before
5863 and add_fixit_insert_after, eliminating the "next_loc" calculation.
5864
5865 2016-09-13 Jason Merrill <jason@redhat.com>
5866 Tom de Vries <tom@codesourcery.com>
5867
5868 PR c++/77427
5869 * c-common.c (set_underlying_type): Don't treat array as builtin type.
5870
5871 2016-09-13 Jason Merrill <jason@redhat.com>
5872
5873 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
5874 limit types at all.
5875
5876 2016-09-12 Jason Merrill <jason@redhat.com>
5877
5878 * c-common.c (check_cxx_fundamental_alignment_constraints): Fix
5879 bit/byte confusion, allow large alignment for types.
5880
5881 2016-09-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
5882
5883 PR c++/77496
5884 * c-common.c (warn_for_omitted_condop): Also warn for boolean data.
5885
5886 2016-09-12 David Malcolm <dmalcolm@redhat.com>
5887
5888 PR c/72858
5889 * c-format.c (argument_parser::check_argument_type): Add params
5890 "type_start" and "conversion_char". Use the former to generate
5891 offset_to_type_start and pass it and conversion_char to
5892 check_format_types.
5893 (check_format_info_main): Capture the start of the type
5894 information as "type_start", and pass it an format_char
5895 to arg_parser.check_argument_type.
5896 (check_format_types): Provide an example in the leading comment.
5897 Add params "offset_to_type_start" and "conversion_char"; pass
5898 them to format_type_warning calls.
5899 (test_get_modifier_for_format_len): Likewise.
5900 (matching_type_p): New function.
5901 (get_format_for_type): Add param "conversion_char" and move
5902 implementation into...
5903 (get_format_for_type_1): ...new function, called twice.
5904 Use new function matching_type_p rather than checking for
5905 TYPE_CANONICAL equality.
5906 (get_corrected_substring): New function.
5907 (format_type_warning): Provide an example in the leading comment.
5908 Add params "offset_to_type_start" and "conversion_char". Replace
5909 call to get_format_for_type with call to get_corrected_substring
5910 and move rejection of hints for widths/precisions there.
5911 (assert_format_for_type_streq): Add param "conversion_char".
5912 (ASSERT_FORMAT_FOR_TYPE_STREQ): Add param CONVERSION_CHAR.
5913 (test_get_format_for_type_printf): Add conversion chars to the
5914 tests, adding coverage for various combinations of integer
5915 vs double conversions, and for preserving octal and hexadecimal
5916 conversions.
5917 (test_get_format_for_type_scanf): Add conversion chars to the
5918 tests.
5919
5920 2016-09-10 Tom de Vries <tom@codesourcery.com>
5921
5922 PR C/71602
5923 * c-common.c (build_va_arg): Handle more strict
5924 targetm.canonical_va_list_type. Replace first argument type error with
5925 assert.
5926
5927 2016-09-09 Martin Sebor <msebor@redhat.com>
5928
5929 PR c/77520
5930 PR c/77521
5931 * c-format.c (argument_parser::find_format_char_info): Use %qc
5932 format directive unconditionally.
5933
5934 2016-09-09 Jason Merrill <jason@redhat.com>
5935
5936 Implement C++17 new of over-aligned types.
5937 * c.opt: Add -faligned-new and -Waligned-new.
5938 * c-common.c (max_align_t_align): Split out from...
5939 (cxx_fundamental_alignment_p): ...here.
5940 * c-common.h: Declare it.
5941 * c-cppbuiltin.c (c_cpp_builtins): Handle aligned new.
5942
5943 2016-09-09 Joseph Myers <joseph@codesourcery.com>
5944
5945 * c-cppbuiltin.c (builtin_define_type_width): New function.
5946 (builtin_define_stdint_macros, c_cpp_builtins): Define type width
5947 macros.
5948
5949 2016-09-07 David Malcolm <dmalcolm@redhat.com>
5950
5951 * c-common.c (get_cpp_ttype_from_string_type): Handle being passed
5952 a POINTER_TYPE.
5953 (substring_loc::get_location): Move to substring-locations.c,
5954 keeping implementation as...
5955 (c_get_substring_location): New function, from the above, reworked
5956 to use accessors rather than member lookup.
5957 * c-common.h (class substring_loc): Move to substring-locations.h,
5958 replacing with a forward decl.
5959 (c_get_substring_location): New decl.
5960 * c-format.c: Include "substring-locations.h".
5961 (format_warning_va): Move to substring-locations.c.
5962 (format_warning_at_substring): Likewise.
5963
5964 2016-09-06 Martin Sebor <msebor@redhat.com>
5965
5966 PR c/77336
5967 * c-format.c (check_function_format): Avoid issuing warnings for
5968 functions unless they call format functions with non-constant
5969 format strings.
5970
5971 2016-09-06 Richard Biener <rguenther@suse.de>
5972
5973 PR c/77450
5974 * c-common.c (c_common_mark_addressable_vec): Handle
5975 COMPOUND_LITERAL_EXPR.
5976
5977 2016-09-05 Marek Polacek <polacek@redhat.com>
5978
5979 PR c/77423
5980 * c-common.c (bool_promoted_to_int_p): New function.
5981 (expr_has_boolean_operands_p): New function.
5982 (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p.
5983 (maybe_warn_bool_compare): Use bool_promoted_to_int_p.
5984
5985 2016-09-04 Tom de Vries <tom@codesourcery.com>
5986
5987 revert:
5988 2016-08-29 Tom de Vries <tom@codesourcery.com>
5989
5990 * c-common.c (build_va_arg): Replace first argument type error
5991 with assert.
5992
5993 2016-09-02 Jakub Jelinek <jakub@redhat.com>
5994
5995 PR c/65467
5996 * c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions.
5997 (c_finish_omp_for): Reject _Atomic qualified iterators.
5998
5999 2016-09-01 Martin Sebor <msebor@redhat.com>
6000
6001 * c-ada-spec.c (dump_ada_function_declaration): Increase buffer
6002 size to guarantee it fits the output of the formatted function
6003 regardless of its arguments.
6004
6005 2016-09-01 Marek Polacek <polacek@redhat.com>
6006
6007 PR c/7652
6008 * c-common.c (resolve_overloaded_builtin): Fix formatting. Add
6009 FALLTHRU comments.
6010
6011 2016-08-29 Marek Polacek <polacek@redhat.com>
6012
6013 PR c/77292
6014 * c-common.c (warn_logical_not_parentheses): Don't warn for
6015 a comparison or a logical operator.
6016
6017 2016-08-29 Tom de Vries <tom@codesourcery.com>
6018
6019 * c-common.c (build_va_arg): Fix type comparison assert.
6020
6021 2016-08-29 Tom de Vries <tom@codesourcery.com>
6022
6023 * c-common.c (build_va_arg): Replace first argument type error
6024 with assert.
6025
6026 2016-08-29 Tom de Vries <tom@codesourcery.com>
6027
6028 PR c/77398
6029 * c-common.c (build_va_arg): Add first argument error. Build va_arg
6030 with error_mark_node as va_list instead of with illegal va_list.
6031
6032 2016-08-25 Marek Polacek <polacek@redhat.com>
6033 David Malcolm <dmalcolm@redhat.com>
6034
6035 * c-common.c (warn_logical_not_parentheses): Print fixit hints.
6036 * c-common.h (warn_logical_not_parentheses): Update declaration.
6037
6038 2016-08-22 Marek Polacek <polacek@redhat.com>
6039
6040 PR c++/77321
6041 * c-common.c (warn_for_memset): Check type for null.
6042
6043 2016-08-22 Joseph Myers <joseph@codesourcery.com>
6044
6045 * c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and
6046 _FloatNx types for suffixes for built-in functions.
6047
6048 2016-08-19 Joseph Myers <joseph@codesourcery.com>
6049
6050 PR c/32187
6051 * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32)
6052 (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X)
6053 (RID_FLOAT128X): New enum rid values.
6054 (CASE_RID_FLOATN_NX): New macro.
6055 * c-common.c (c_common_reswords): Add _FloatN and _FloatNx
6056 keywords.
6057 (c_common_type_for_mode): Check for _FloatN and _FloatNx and
6058 corresponding complex types.
6059 (c_common_nodes_and_builtins): For non-C++, register _FloatN and
6060 _FloatNx and corresponding complex types.
6061 (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX.
6062 * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN
6063 and _FloatNx types for the widest type for determining
6064 DECIMAL_DIG. Define __LDBL_DECIMAL_DIG__ as well as
6065 __DECIMAL_DIG__ for long double. Handle FMA_SUFFIX being NULL.
6066 (c_cpp_builtins): Call builtin_define_float_constants for _FloatN
6067 and _FloatNx types.
6068 * c-lex.c (interpret_float): Handle _FloatN and _FloatNx
6069 constants.
6070 * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and
6071 _FloatNx types.
6072
6073 2016-08-18 David Malcolm <dmalcolm@redhat.com>
6074
6075 * c-opts.c (c_diagnostic_finalizer): Update for change to
6076 diagnostic_show_locus.
6077
6078 2016-08-18 David Malcolm <dmalcolm@redhat.com>
6079
6080 * c-common.c: Include "spellcheck.h".
6081 (cb_get_suggestion): New function.
6082 * c-common.h (cb_get_suggestion): New decl.
6083 * c-lex.c (init_c_lex): Initialize cb->get_suggestion to
6084 cb_get_suggestion.
6085
6086 2016-08-18 Marek Polacek <polacek@redhat.com>
6087
6088 PR c/71514
6089 * c-common.c (get_atomic_generic_size): Disallow pointer-to-function
6090 and pointer-to-VLA.
6091
6092 2016-08-16 David Malcolm <dmalcolm@redhat.com>
6093
6094 PR c/72857
6095 * c-common.c (substring_loc::get_range): Rename to...
6096 (substring_loc::get_location): ...this, converting param from a
6097 source_range * to a location_t *. Call
6098 get_source_location_for_substring rather than
6099 get_source_range_for_substring, and pass in m_caret_idx.
6100 * c-common.h (substring_loc::substring_loc): Add param "caret_idx".
6101 (substring_loc::get_range): Replace with...
6102 (substring_loc::get_location): ...this.
6103 (substring_loc::set_caret_index): New method.
6104 (substring_loc): Add field m_caret_idx.
6105 * c-format.c (format_warning_va): Update for above changes.
6106 Rename local "substring_loc" to "fmt_substring_loc" to avoid
6107 clashing with type name.
6108 (format_warning_at_char): Add caret_idx param to substring_loc ctor.
6109 (check_argument_type): Likewise.
6110 (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc"
6111 Use a copy when emitting warnings, setting the caret index from TYPE.
6112
6113 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
6114 Arnaud Charlet <charlet@adacore.com>
6115
6116 * c-ada-spec.c (dump_number): New function.
6117 (handle_escape_character): Likewise.
6118 (print_ada_macros): Add handling of constant integers and strings.
6119
6120 2016-08-12 Marek Polacek <polacek@redhat.com>
6121
6122 PR c/7652
6123 * c-common.c (scalar_to_vector): Adjust fall through comment.
6124 * c-opts.c (c_common_handle_option): Likewise.
6125 * c-pragma.c (handle_pragma_pack): Add FALLTHRU.
6126 * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust
6127 fall through comment.
6128 * cilk.c (extract_free_variables): Add FALLTHRU.
6129
6130 2016-08-10 Jason Merrill <jason@redhat.com>
6131
6132 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr.
6133
6134 2016-08-09 Jason Merrill <jason@redhat.com>
6135
6136 * c-common.c (c_common_attribute_table): vector_size affects type
6137 identity.
6138
6139 2016-08-09 Marek Polacek <polacek@redhat.com>
6140
6141 PR c/7652
6142 * c-ada-spec.c (dump_generic_ada_node): Add return.
6143
6144 2016-08-09 Jason Merrill <jason@redhat.com>
6145
6146 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for
6147 C++17 constexpr lambdas.
6148
6149 2016-08-08 David Malcolm <dmalcolm@redhat.com>
6150
6151 PR c/64955
6152 * c-common.h (selftest::c_format_c_tests): New declaration.
6153 (selftest::run_c_tests): New declaration.
6154 * c-format.c: Include "selftest.h.
6155 (format_warning_va): Add param "corrected_substring" and use
6156 it to add a replacement fix-it hint.
6157 (format_warning_at_substring): Likewise.
6158 (format_warning_at_char): Update for new param of
6159 format_warning_va.
6160 (argument_parser::check_argument_type): Pass "fki" to
6161 check_format_types.
6162 (check_format_types): Add param "fki" and pass it to
6163 format_type_warning.
6164 (deref_n_times): New function.
6165 (get_modifier_for_format_len): New function.
6166 (selftest::test_get_modifier_for_format_len): New function.
6167 (get_format_for_type): New function.
6168 (format_type_warning): Add param "fki" and use it to attempt
6169 to provide hints for argument types when calling
6170 format_warning_at_substring.
6171 (selftest::get_info): New function.
6172 (selftest::assert_format_for_type_streq): New function.
6173 (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro.
6174 (selftest::test_get_format_for_type_printf): New function.
6175 (selftest::test_get_format_for_type_scanf): New function.
6176 (selftest::c_format_c_tests): New function.
6177
6178 2016-08-08 David Malcolm <dmalcolm@redhat.com>
6179
6180 PR c/52952
6181 * c-format.c: Include "diagnostic.h".
6182 (location_column_from_byte_offset): Delete.
6183 (location_from_offset): Delete.
6184 (format_warning_va): New function.
6185 (format_warning_at_substring): New function.
6186 (format_warning_at_char): New function.
6187 (check_format_arg): Capture location of format_tree and pass to
6188 check_format_info_main.
6189 (argument_parser): Add fields "start_of_this_format" and
6190 "format_string_cst".
6191 (flag_chars_t::validate): Add param "format_string_cst". Convert
6192 warning_at call using location_from_offset to call to
6193 format_warning_at_char.
6194 (argument_parser::argument_parser): Add param "format_string_cst_"
6195 and use use it to initialize field "format_string_cst".
6196 Initialize new field "start_of_this_format".
6197 (argument_parser::read_format_flags): Convert warning_at call
6198 using location_from_offset to a call to format_warning_at_char.
6199 (argument_parser::read_any_format_left_precision): Likewise.
6200 (argument_parser::read_any_format_precision): Likewise.
6201 (argument_parser::read_any_other_modifier): Likewise.
6202 (argument_parser::find_format_char_info): Likewise, in three places.
6203 (argument_parser::parse_any_scan_set): Likewise, in one place.
6204 (argument_parser::handle_conversions): Likewise, in two places.
6205 (argument_parser::check_argument_type): Add param "fmt_param_loc"
6206 and use it to make a substring_loc. Pass the latter to
6207 check_format_types.
6208 (check_format_info_main): Add params "fmt_param_loc" and
6209 "format_string_cst". Convert warning_at calls using
6210 location_from_offset to calls to format_warning_at_char. Pass the
6211 new params to the arg_parser ctor. Pass "format_string_cst" to
6212 flag_chars.validate. Pass "fmt_param_loc" to
6213 arg_parser.check_argument_type.
6214 (check_format_types): Convert first param from a location_t
6215 to a const substring_loc & and rename to "fmt_loc". Attempt
6216 to extract the range of the relevant parameter and pass it
6217 to format_type_warning.
6218 (format_type_warning): Convert first param from a location_t
6219 to a const substring_loc & and rename to "fmt_loc". Add
6220 params "param_range" and "type". Replace calls to warning_at
6221 with calls to format_warning_at_substring.
6222
6223 2016-08-08 David Malcolm <dmalcolm@redhat.com>
6224
6225 * c-format.c (class flag_chars_t): New class.
6226 (struct length_modifier): New struct.
6227 (class argument_parser): New class.
6228 (flag_chars_t::flag_chars_t): New ctor.
6229 (flag_chars_t::has_char_p): New method.
6230 (flag_chars_t::add_char): New method.
6231 (flag_chars_t::validate): New method.
6232 (flag_chars_t::get_alloc_flag): New method.
6233 (flag_chars_t::assignment_suppression_p): New method.
6234 (argument_parser::argument_parser): New ctor.
6235 (argument_parser::read_any_dollar): New method.
6236 (argument_parser::read_format_flags): New method.
6237 (argument_parser::read_any_format_width): New method.
6238 (argument_parser::read_any_format_left_precision): New method.
6239 (argument_parser::read_any_format_precision): New method.
6240 (argument_parser::handle_alloc_chars): New method.
6241 (argument_parser::read_any_length_modifier): New method.
6242 (argument_parser::read_any_other_modifier): New method.
6243 (argument_parser::find_format_char_info): New method.
6244 (argument_parser::validate_flag_pairs): New method.
6245 (argument_parser::give_y2k_warnings): New method.
6246 (argument_parser::parse_any_scan_set): New method.
6247 (argument_parser::handle_conversions): New method.
6248 (argument_parser::check_argument_type): New method.
6249 (check_format_info_main): Introduce classes argument_parser
6250 and flag_chars_t, moving the code within the loop into methods
6251 of these classes. Make various locals "const".
6252
6253 2016-08-05 David Malcolm <dmalcolm@redhat.com>
6254
6255 * c-common.c: Include "substring-locations.h".
6256 (get_cpp_ttype_from_string_type): New function.
6257 (g_string_concat_db): New global.
6258 (substring_loc::get_range): New method.
6259 * c-common.h (g_string_concat_db): New declaration.
6260 (class substring_loc): New class.
6261 * c-lex.c (lex_string): When concatenating strings, capture the
6262 locations of all tokens using a new obstack, and record the
6263 concatenation locations within g_string_concat_db.
6264 * c-opts.c (c_common_init_options): Construct g_string_concat_db
6265 on the ggc-heap.
6266
6267 2016-07-29 Marek Polacek <polacek@redhat.com>
6268
6269 PR c/71926
6270 * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the
6271 parentheses warning.
6272
6273 PR c/71574
6274 * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL.
6275
6276 2016-07-28 Martin Liska <mliska@suse.cz>
6277
6278 PR gcov-profile/68025
6279 * c-common.c (handle_no_profile_instrument_function_attribute):
6280
6281 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
6282
6283 * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of
6284 BITS_PER_UNIT_LOG.
6285
6286 2016-07-25 Jason Merrill <jason@redhat.com>
6287
6288 PR c++/65970
6289 * c.opt (fconstexpr-loop-limit): New.
6290
6291 2016-07-22 Martin Sebor <msebor@redhat.com>
6292
6293 PR c++/71675
6294 * c-common.c (resolve_overloaded_builtin): Avoid converting
6295 __atomic_compare_exchange_n return type to that of what its
6296 first argument points to.
6297
6298 2016-07-22 Uros Bizjak <ubizjak@gmail.com>
6299
6300 * c-common.c: Use HOST_WIDE_INT_M1U instead of
6301 ~(unsigned HOST_WIDE_INT) 0.
6302
6303 2016-07-22 Martin Liska <mliska@suse.cz>
6304
6305 PR gcov-profile/69028
6306 PR gcov-profile/62047
6307 * cilk.c (create_cilk_helper_decl): Set location of a new decl
6308 to the current_function_decl.
6309
6310 2016-07-21 Jason Merrill <jason@redhat.com>
6311
6312 PR c++/65168
6313 * c-common.c (c_common_truthvalue_conversion): Check
6314 c_inhibit_evaluation_warnings for warning about address of
6315 reference.
6316
6317 2016-07-20 David Malcolm <dmalcolm@redhat.com>
6318
6319 * c-common.h (lookup_name_fuzzy): Convert return type from tree to
6320 const char *.
6321
6322 2016-07-15 Jason Merrill <jason@redhat.com>
6323
6324 * c-opts.c (c_common_post_options): Update -fabi-version default to 11.
6325
6326 2016-07-15 Jakub Jelinek <jakub@redhat.com>
6327
6328 PR c/71858
6329 * c-common.h (enum lookup_name_fuzzy_kind): Add
6330 FUZZY_LOOKUP_FUNCTION_NAME.
6331
6332 2016-07-08 Jason Merrill <jason@redhat.com>
6333
6334 P0145: Refining Expression Order for C++.
6335 * c.opts (-fargs-in-order): Rename to -fstrong-eval-order.
6336 * c-opts.c: Adjust.
6337
6338 2016-07-05 Markus Trippelsdorf <markus@trippelsdorf.de>
6339
6340 PR c++/71214
6341 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.
6342
6343 2016-06-29 Thomas Schwinge <thomas@codesourcery.com>
6344
6345 * c-pragma.h (enum pragma_kind): Rename
6346 PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE. Adjust all
6347 users.
6348
6349 2016-06-29 Richard Biener <rguenther@suse.de>
6350
6351 PR middle-end/71002
6352 * c-common.c (c_common_get_alias_set): Remove union type punning case.
6353
6354 2016-06-24 Jason Merrill <jason@redhat.com>
6355
6356 P0145R2: Refining Expression Order for C++.
6357 * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of
6358 MODIFY_EXPR.
6359
6360 2016-06-24 Jakub Jelinek <jakub@redhat.com>
6361
6362 * c-common.c (check_builtin_function_arguments): Require last
6363 argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type.
6364 Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW
6365 if the last argument is pointer to enumerated or boolean type.
6366
6367 2016-06-22 David Malcolm <dmalcolm@redhat.com>
6368
6369 PR c/70339
6370 * c-common.h (enum lookup_name_fuzzy_kind): New enum.
6371 (lookup_name_fuzzy): New prototype.
6372
6373 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
6374
6375 * c-common.c (get_source_date_epoch): Use int64_t instead of long long.
6376
6377 2016-06-14 Jason Merrill <jason@redhat.com>
6378
6379 P0145R2: Refining Expression Order for C++.
6380 * c.opt (fargs-in-order): New.
6381 * c-opts.c (c_common_post_options): Adjust flag_args_in_order.
6382
6383 2016-06-13 Jakub Jelinek <jakub@redhat.com>
6384
6385 PR sanitizer/71498
6386 * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
6387 all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.
6388
6389 PR preprocessor/71183
6390 * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch
6391 to cb_get_source_date_epoch.
6392
6393 2016-06-10 Jakub Jelinek <jakub@redhat.com>
6394
6395 PR c/68657
6396 * c.opt (Wpsabi): Add Warning flag.
6397
6398 2016-06-10 Martin Sebor <msebor@redhat.com>
6399
6400 PR c/71392
6401 * c-common.c (handle_nonnull_attribute): Accept
6402 the nonnull attribute in type-generic builtins.
6403
6404 2016-06-09 Martin Sebor <msebor@redhat.com>
6405
6406 PR c/70883
6407 * c-common.c (builtin_function_validate_nargs): Make text of error
6408 message consistent with others like it.
6409
6410 2016-06-08 Martin Sebor <msebor@redhat.com>
6411 Jakub Jelinek <jakub@redhat.com>
6412
6413 PR c++/70507
6414 PR c/68120
6415 * c-common.c (check_builtin_function_arguments): Handle
6416 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
6417
6418 2016-06-08 Richard Biener <rguenther@suse.de>
6419
6420 * c-common.c (parse_optimize_options): Improve diagnostic messages.
6421
6422 2016-06-07 Richard Biener <rguenther@suse.de>
6423
6424 PR c/61564
6425 * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION
6426 options and warn about others.
6427
6428 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
6429
6430 * c-common.c (get_source_date_epoch): Rename to
6431 cb_get_source_date_epoch.
6432 * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
6433 message when the parsing fails. Use error_at instead of fatal_error.
6434 * c-common.h (get_source_date_epoch): Rename to
6435 cb_get_source_date_epoch.
6436 * c-common.h (cb_get_source_date_epoch): Prototype.
6437 * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
6438 * c-common.h (c_omp_region_type): Remove trailing comma.
6439 * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
6440 * c-lex.c (c_lex_with_flags): Remove initialization of
6441 pfile->source_date_epoch.
6442
6443 2016-05-30 Jakub Jelinek <jakub@redhat.com>
6444
6445 PR c++/71349
6446 * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
6447 C_OMP_CLAUSE_SPLIT_TARGET. Put OMP_CLAUSE_NOWAIT to
6448 C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
6449 instead of C_OMP_CLAUSE_SPLIT_FOR.
6450
6451 2016-05-24 Richard Biener <rguenther@suse.de>
6452
6453 PR middle-end/70434
6454 PR c/69504
6455 * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
6456 (convert_vector_to_array_for_subscript): ... this.
6457 * c-common.c (convert_vector_to_pointer_for_subscript): Use a
6458 VIEW_CONVERT_EXPR to an array type. Rename to ...
6459 (convert_vector_to_array_for_subscript): ... this.
6460
6461 2016-05-12 Marek Polacek <polacek@redhat.com>
6462
6463 PR c/70756
6464 * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
6465 size_in_bytes and pass LOC to it.
6466
6467 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
6468
6469 PR c/43651
6470 * c.opt (Wduplicate-decl-specifier): New option.
6471
6472 2016-05-11 Marek Polacek <polacek@redhat.com>
6473
6474 PR c++/71024
6475 * c-common.c (diagnose_mismatched_attributes): New function.
6476 * c-common.h (diagnose_mismatched_attributes): Declare.
6477
6478 2016-05-04 Marek Polacek <polacek@redhat.com>
6479
6480 * c.opt (Wdangling-else): New option.
6481
6482 2016-05-03 Marek Polacek <polacek@redhat.com>
6483
6484 PR c/70859
6485 * c-common.c (builtin_function_validate_nargs): Add location
6486 parameter. Use it.
6487 (check_builtin_function_arguments): Add location and arguments
6488 parameters. Use them.
6489 * c-common.h (check_builtin_function_arguments): Update declaration.
6490
6491 2016-05-03 Richard Biener <rguenther@suse.de>
6492
6493 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
6494 allow call args to gimplify to SSA names.
6495
6496 2016-05-03 Marek Polacek <polacek@redhat.com>
6497
6498 * c-common.h (enum c_omp_region_type): Remove stray comma.
6499
6500 2016-05-02 Cesar Philippidis <cesar@codesourcery.com>
6501
6502 * c-common.h (enum c_omp_region_type): Define.
6503
6504 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
6505
6506 * c-common.c (shorten_compare): Use wi::to_wide.
6507
6508 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
6509
6510 PR middle-end/70626
6511 * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
6512 * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
6513 reduction clauses in acc parallel loops.
6514
6515 2016-04-29 Marek Polacek <polacek@redhat.com>
6516
6517 PR c/70852
6518 * c-common.c (warn_for_memset): Check domain before accessing it.
6519
6520 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
6521
6522 PR/69089
6523 * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
6524 "aligned" attribute.
6525
6526 2016-04-28 Jason Merrill <jason@redhat.com>
6527
6528 * c-lex.c (c_common_has_attribute): Handle nodiscard.
6529
6530 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
6531 Matthias Klose <doko@debian.org>
6532
6533 * c-common.c (get_source_date_epoch): New function, gets the environment
6534 variable SOURCE_DATE_EPOCH and parses it as long long with error
6535 handling.
6536 * c-common.h (get_source_date_epoch): Prototype.
6537 * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
6538
6539 2015-04-27 Ryan Burn <contact@rnburn.com>
6540
6541 PR c++/69024
6542 PR c++/68997
6543 * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
6544 (cilk_recognize_spawn): Renamed from recognize_spawn and change to
6545 external linkage.
6546 (cilk_detect_and_unwrap): Corresponding changes.
6547 (extract_free_variables): Don't extract free variables from
6548 AGGR_INIT_EXPR slot.
6549 * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
6550 (cilk_recognize_spawn): Likewise.
6551
6552 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
6553
6554 * c.opt (Wmemset-elt-size): New option.
6555 * c-common.c (warn_for_memset): New function.
6556 * c-common.h (warn_for_memset): Declare.
6557
6558 2016-04-25 Jason Merrill <jason@redhat.com>
6559
6560 * c-common.c (handle_unused_attribute): Accept CONST_DECL.
6561 No longer static.
6562 * c-common.h: Declare it.
6563 * c-lex.c (c_common_has_attribute): Add maybe_unused.
6564
6565 2016-04-22 Jason Merrill <jason@redhat.com>
6566
6567 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
6568
6569 2016-04-20 Ilya Verbin <ilya.verbin@intel.com>
6570
6571 PR c++/69363
6572 * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
6573 * c-common.h (c_finish_cilk_clauses): Remove declaration.
6574
6575 2016-04-18 Michael Matz <matz@suse.de>
6576
6577 * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
6578 and SET_DECL_ALIGN.
6579
6580 2016-04-17 Eric Botcazou <ebotcazou@adacore.com>
6581
6582 * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
6583 (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
6584 to incomplete types.
6585 (dump_nested_type): Remove redundant tests and tidy up.
6586 (print_ada_declaration): Also set TREE_VISITED on the declaration of
6587 a type which is the typedef of an original type.
6588
6589 2016-04-15 Marek Polacek <polacek@redhat.com>
6590
6591 PR c/70651
6592 * c-common.c (build_va_arg): Change two asserts into errors and return
6593 error_mark_node.
6594
6595 2016-04-13 Marek Polacek <polacek@redhat.com>
6596
6597 PR c++/70639
6598 * c-indentation.c (should_warn_for_misleading_indentation): Bail out
6599 for switch statements, too.
6600
6601 2016-03-28 Jason Merrill <jason@redhat.com>
6602
6603 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
6604
6605 2016-03-23 Marek Polacek <polacek@redhat.com>
6606
6607 PR c++/69884
6608 * c.opt (Wignored-attributes): New option.
6609
6610 2016-03-22 David Malcolm <dmalcolm@redhat.com>
6611
6612 PR c/69993
6613 * c-indentation.c (warn_for_misleading_indentation): Rewrite the
6614 diagnostic text, reversing the order of the warning and note so
6615 that they appear in source order.
6616
6617 2016-03-17 Marek Polacek <polacek@redhat.com>
6618
6619 PR c/69407
6620 * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
6621 operations.
6622
6623 2016-03-14 Jason Merrill <jason@redhat.com>
6624
6625 * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
6626
6627 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
6628
6629 2016-03-09 Richard Biener <rguenther@suse.de>
6630
6631 PR c/70143
6632 * c-common.c (strict_aliasing_warning): Add back
6633 alias_sets_conflict_p check.
6634
6635 2016-03-08 Jason Merrill <jason@redhat.com>
6636
6637 * c-opts.c (set_std_cxx1z): Don't enable concepts.
6638
6639 2016-03-04 David Malcolm <dmalcolm@redhat.com>
6640
6641 PR c/68187
6642 * c-indentation.c (get_visual_column): Move code to determine next
6643 tab stop to...
6644 (next_tab_stop): ...this new function.
6645 (line_contains_hash_if): Delete function.
6646 (detect_preprocessor_logic): Delete function.
6647 (get_first_nws_vis_column): New function.
6648 (detect_intervening_unindent): New function.
6649 (should_warn_for_misleading_indentation): Replace call to
6650 detect_preprocessor_logic with a call to
6651 detect_intervening_unindent.
6652
6653 2016-03-04 David Malcolm <dmalcolm@redhat.com>
6654
6655 PR c/68187
6656 * c-indentation.c (should_warn_for_misleading_indentation): When
6657 suppressing warnings about cases where the guard and body are on
6658 the same column, only use the first non-whitespace column in place
6659 of the guard token column when dealing with "else" clauses.
6660 When rejecting aligned BODY and NEXT, loosen the requirement
6661 from equality with the first non-whitespace of guard to simply
6662 that they not be indented relative to it.
6663
6664 2016-03-04 Richard Biener <rguenther@suse.de>
6665
6666 PR c++/70054
6667 * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
6668 instead of alias_sets_conflict_p.
6669
6670 2016-03-01 Marek Polacek <polacek@redhat.com>
6671
6672 PR c++/69795
6673 * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
6674 any DECL.
6675
6676 2016-02-22 Martin Sebor <msebor@redhat.com>
6677
6678 PR middle-end/69780
6679 * c-common.c (check_builtin_function_arguments): Validate and
6680 reject invalid arguments to __builtin_alloca_with_align.
6681
6682 2016-02-20 Mark Wielaard <mjw@redhat.com>
6683
6684 PR c/28901
6685 * c.opt (Wunused-const-variable): Turn into Alias for...
6686 (Wunused-const-variable=): New option.
6687
6688 2016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
6689
6690 PR c++/69865
6691 * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
6692 here...
6693 (c_common_init_options): ...to here.
6694 (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
6695
6696 2016-02-19 Jakub Jelinek <jakub@redhat.com>
6697
6698 PR c++/69826
6699 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
6700 (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
6701 flag_preprocess_only.
6702
6703 2016-02-16 Jakub Jelinek <jakub@redhat.com>
6704
6705 PR c/69835
6706 * c.opt (Wnonnull-compare): Enable for -Wall.
6707
6708 2016-02-15 Jakub Jelinek <jakub@redhat.com>
6709
6710 PR c++/69797
6711 * c-common.c (sync_resolve_size): Diagnose too few arguments
6712 even when params is non-NULL empty vector.
6713
6714 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
6715
6716 PR target/60410
6717 * c.opt (fshort-double): Remove.
6718
6719 2016-02-05 Martin Sebor <msebor@redhat.com>
6720
6721 PR c++/69662
6722 * c.opt (Warning options): Update -Wplacement-new to take
6723 an optional argument.
6724
6725 2016-02-01 Jakub Jelinek <jakub@redhat.com>
6726
6727 PR preprocessor/69543
6728 PR c/69558
6729 * c-pragma.c (handle_pragma_diagnostic): Pass input_location
6730 instead of loc to control_warning_option.
6731
6732 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
6733
6734 * c.opt (fopenacc-dim=): New option.
6735
6736 2016-01-27 Ryan Burn <contact@rnburn.com>
6737
6738 PR cilkplus/69267
6739 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
6740 gimplify_arg. Removed superfluous post_p argument.
6741 * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
6742 superfluous post_p argument.
6743 * c-gimplify.c (c_gimplify_expr): Likewise.
6744
6745 2016-01-26 David Malcolm <dmalcolm@redhat.com>
6746
6747 PR other/69006
6748 * c-opts.c (c_diagnostic_finalizer): Replace invocation of
6749 pp_newline_and_flush with pp_flush.
6750
6751 2016-01-20 Martin Sebor <msebor@redhat.com>
6752
6753 PR c/69405
6754 * c-common.c (sync_resolve_size): Avoid printing diagnostic about
6755 an incompatible argument when the argument isn't a valid tree node.
6756
6757 2016-01-18 Jason Merrill <jason@redhat.com>
6758
6759 PR c++/68767
6760 * c-common.c (check_function_arguments_recurse): Fold the whole
6761 COND_EXPR, not just the condition.
6762
6763 2016-01-18 Tom de Vries <tom@codesourcery.com>
6764
6765 * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
6766 classify as loop clause.
6767
6768 2016-01-15 Jakub Jelinek <jakub@redhat.com>
6769
6770 PR bootstrap/68271
6771 * c-pragma.c (c_register_pragma_1): Adjust comment to note that
6772 C++ FE no longer has limit on number of pragmas.
6773
6774 2015-01-14 Ryan Burn <contact@rnburn.com>
6775
6776 PR c++/69048
6777 * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
6778 to add missing cleanup point.
6779
6780 2016-01-14 David Malcolm <dmalcolm@redhat.com>
6781
6782 PR c++/68819
6783 * c-indentation.c (get_visual_column): Add location_t param.
6784 Handle the column number being zero by effectively disabling the
6785 warning, with an "inform".
6786 (should_warn_for_misleading_indentation): Add location_t argument
6787 for all uses of get_visual_column.
6788
6789 2016-01-10 Patrick Palka <ppalka@gcc.gnu.org>
6790
6791 PR c++/69029
6792 * c-indentation.c (should_warn_for_misleading_indentation):
6793 Don't warn about do-while statements.
6794
6795 2016-01-07 Martin Sebor <msebor@redhat.com>
6796
6797 PR c/68966
6798 * c-common.c (sync_resolve_size): Reject first argument when it's
6799 a pointer to _Bool.
6800
6801 2016-01-05 David Malcolm <dmalcolm@redhat.com>
6802
6803 PR c/69122
6804 * c-indentation.c (get_visual_column): Remove default argument.
6805 (should_warn_for_misleading_indentation): For the multiline case,
6806 update call to get_visual_column for next_stmt_exploc so that it
6807 captures the location of the first non-whitespace character in the
6808 relevant line. Don't issue warnings if there is non-whitespace
6809 before the next statement.
6810
6811 2016-01-04 Jakub Jelinek <jakub@redhat.com>
6812
6813 Update copyright years.
6814
6815 2015-12-21 David Malcolm <dmalcolm@redhat.com>
6816
6817 * c-common.c (binary_op_error): Convert first param from
6818 location_t to rich_location * and use it when emitting an error.
6819 * c-common.h (binary_op_error): Convert first param from
6820 location_t to rich_location *.
6821
6822 2015-12-16 David Malcolm <dmalcolm@redhat.com>
6823
6824 * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
6825 * c-lex.c (conflict_marker_get_final_tok_kind): New function.
6826
6827 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
6828
6829 * c-common.c (c_common_attribute_table): Handle "omp declare target
6830 link" attribute.
6831
6832 2015-12-14 Jakub Jelinek <jakub@redhat.com>
6833
6834 PR c/68833
6835 * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
6836
6837 2014-12-12 Tobias Burnus <burnus@net-b.de>
6838
6839 PR fortran/68815
6840 * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
6841 specifiers (%d, %i,%u and %c).
6842
6843 2015-12-10 David Malcolm <dmalcolm@redhat.com>
6844
6845 * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
6846
6847 2015-12-08 Jakub Jelinek <jakub@redhat.com>
6848
6849 PR c/48088
6850 PR c/68657
6851 * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
6852 * c-pragma.c (handle_pragma_diagnostic): Adjust
6853 control_warning_option caller.
6854
6855 2015-12-07 David Malcolm <dmalcolm@redhat.com>
6856
6857 * c-common.c (c_cpp_error): Update for change to
6858 rich_location::set_range.
6859
6860 2015-12-04 Paolo Bonzini <bonzini@gnu.org>
6861
6862 * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
6863 shifting 1 out of the sign bit.
6864
6865 2015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
6866
6867 * c-common.c (c_common_attribute_table[]): Update max arguments
6868 count for "simd" attribute.
6869 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
6870
6871 2015-12-03 Jakub Jelinek <jakub@redhat.com>
6872
6873 PR preprocessor/57580
6874 * c-ppoutput.c (print): Change printed field to bool.
6875 Move src_file last for smaller padding.
6876 (init_pp_output): Set print.printed to false instead of 0.
6877 (scan_translation_unit): Fix up formatting. Set print.printed
6878 to true after printing something other than newline.
6879 (scan_translation_unit_trad): Set print.printed to true instead of 1.
6880 (maybe_print_line_1): Set print.printed to false instead of 0.
6881 (print_line_1): Likewise.
6882 (do_line_change): Set print.printed to true instead of 1.
6883 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
6884 dump_macro): Set print.printed to false after printing newline.
6885
6886 2015-12-02 Jason Merrill <jason@redhat.com>
6887
6888 * c-common.c (fold_for_warn): New.
6889 (warn_logical_operator, warn_tautological_cmp)
6890 (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
6891
6892 * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
6893 (c_fully_fold_internal, decl_constant_value_for_optimization):
6894 Move to c/c-fold.c.
6895 * c-common.h: Don't declare decl_constant_value_for_optimization.
6896
6897 2015-12-02 Joseph Myers <joseph@codesourcery.com>
6898
6899 PR c/68162
6900 * c-common.h (c_build_qualified_type): Add extra default
6901 arguments.
6902
6903 2015-12-01 Julian Brown <julian@codesourcery.com>
6904 Cesar Philippidis <cesar@codesourcery.com>
6905 James Norris <James_Norris@mentor.com>
6906
6907 * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
6908 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
6909 (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
6910
6911 2015-11-30 Eric Botcazou <ebotcazou@adacore.com>
6912
6913 * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
6914 (decl_sloc_common): Delete and move bulk of processing to...
6915 (decl_sloc): ...here.
6916 (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
6917 (dump_ada_double_name): Remove S parameter and compute the suffix.
6918 (dump_ada_array_type): Add PARENT parameter. Simplify computation of
6919 element type and deal with an anonymous one.
6920 (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
6921 (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type
6922 and remove reference to QUAL_UNION_TYPE.
6923 (dump_nested_types): Make 2 passes on the fields and move bulk to...
6924 (dump_nested_type): ...here. New function extracted from above.
6925 Generate a full declaration for anonymous element type of arrays.
6926 (print_ada_declaration): Really skip anonymous declarations. Remove
6927 references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type.
6928 Clean up processing of declarations of array types and objects.
6929 (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
6930 Remove obsolete code and tidy up.
6931
6932 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
6933
6934 PR c/67581
6935 * c-common.c (handle_transparent_union_attribute): Update
6936 also type variants.
6937
6938 2015-11-27 Martin Liska <mliska@suse.cz>
6939
6940 PR c++/68312
6941 * array-notation-common.c (cilkplus_extract_an_triplets):
6942 Release vector of vectors.
6943 * cilk.c (gimplify_cilk_spawn): Free allocated memory.
6944
6945 2015-11-26 Eric Botcazou <ebotcazou@adacore.com>
6946
6947 PR c++/68527
6948 * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
6949 (print_ada_struct_decl): Likewise.
6950
6951 2015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
6952
6953 PR c++/68001
6954 * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
6955 * cilk.c (recognize_spawn): Determine location in a more precise
6956 way.
6957
6958 2015-11-19 Jason Merrill <jason@redhat.com>
6959
6960 * c-common.c (shorten_compare): But look through macros from
6961 system headers.
6962
6963 2015-11-18 Jason Merrill <jason@redhat.com>
6964
6965 * c-common.c (shorten_compare): Don't -Wtype-limits if the
6966 non-constant operand comes from a macro.
6967
6968 2015-11-17 Jason Merrill <jason@redhat.com>
6969
6970 PR bootstrap/68346
6971 * c-common.c (warn_tautological_cmp): Fold before checking for
6972 constants.
6973
6974 2015-11-16 Marek Polacek <polacek@redhat.com>
6975
6976 PR c++/68362
6977 * c-common.c (check_case_bounds): Fold low and high cases.
6978
6979 2015-11-16 Marek Polacek <polacek@redhat.com>
6980
6981 * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
6982 * c-common.c (c_common_get_alias_set): Likewise.
6983 (handle_visibility_attribute): Likewise.
6984
6985 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
6986
6987 * c-common.c (handle_simd_attribute): New.
6988 (struct attribute_spec): Add entry for "simd".
6989 (handle_simd_attribute): New.
6990
6991 2015-11-13 Kai Tietz <ktietz70@googlemail.com>
6992
6993 * c-lex.c (interpret_float): Use fold_convert.
6994
6995 2015-11-13 David Malcolm <dmalcolm@redhat.com>
6996
6997 * c-common.c (c_fully_fold_internal): Capture existing souce_range,
6998 and store it on the result.
6999 * c-opts.c (c_common_init_options): Set
7000 global_dc->colorize_source_p.
7001
7002 2015-11-12 James Norris <jnorris@codesourcery.com>
7003 Joseph Myers <joseph@codesourcery.com>
7004
7005 * c-pragma.c (oacc_pragmas): Add entry for declare directive.
7006 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
7007 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
7008 PRAGMA_OACC_CLAUSE_LINK.
7009
7010 2015-11-11 Marek Polacek <polacek@redhat.com>
7011
7012 PR c/68107
7013 PR c++/68266
7014 * c-common.c (valid_array_size_p): New function.
7015 * c-common.h (valid_array_size_p): Declare.
7016
7017 2015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
7018
7019 PR bootstrap/68271
7020 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
7021
7022 2015-11-11 Andrew MacLeod <amacleod@redhat.com>
7023
7024 * array-notation-common.c: Remove unused header files.
7025 * c-ada-spec.c: Likewise.
7026 * c-cilkplus.c: Likewise.
7027 * c-common.c: Likewise.
7028 * c-cppbuiltin.c: Likewise.
7029 * c-dump.c: Likewise.
7030 * c-format.c: Likewise.
7031 * c-gimplify.c: Likewise.
7032 * c-indentation.c: Likewise.
7033 * c-lex.c: Likewise.
7034 * c-omp.c: Likewise.
7035 * c-opts.c: Likewise.
7036 * c-pch.c: Likewise.
7037 * c-ppoutput.c: Likewise.
7038 * c-pragma.c: Likewise.
7039 * c-pretty-print.c: Likewise.
7040 * c-semantics.c: Likewise.
7041 * c-ubsan.c: Likewise.
7042 * cilk.c: Likewise.
7043 * stub-objc.c: Likewise.
7044
7045 2015-11-09 Thomas Schwinge <thomas@codesourcery.com>
7046 Cesar Philippidis <cesar@codesourcery.com>
7047 James Norris <jnorris@codesourcery.com>
7048 Julian Brown <julian@codesourcery.com>
7049 Nathan Sidwell <nathan@codesourcery.com>
7050
7051 * c-pragma.c (oacc_pragmas): Add "routine".
7052 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
7053
7054 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
7055
7056 * c-common.c (c_common_attributes): Add scalar_storage_order.
7057 (handle_scalar_storage_order_attribute): New function.
7058 * c-pragma.c (global_sso): New variable.
7059 (maybe_apply_pragma_scalar_storage_order): New function.
7060 (handle_pragma_scalar_storage_order): Likewise.
7061 (init_pragma): Register scalar_storage_order.
7062 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
7063 * c.opt (Wscalar-storage-order): New warning.
7064 (fsso-struct=): New option.
7065
7066 2015-11-08 Martin Sebor <msebor@redhat.com>
7067
7068 * c.opt (Wplacement-new): Add a period to the end of a sentence.
7069
7070 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7071
7072 * c-common.c: Don't undef DEF_BUILTIN.
7073
7074 2015-11-06 David Malcolm <dmalcolm@redhat.com>
7075
7076 * c-common.c (c_cpp_error): Convert parameter from location_t to
7077 rich_location *. Eliminate the "column_override" parameter and
7078 the call to diagnostic_override_column.
7079 Update the "done_lexing" clause to set range 0
7080 on the rich_location, rather than overwriting a location_t.
7081 * c-common.h (c_cpp_error): Convert parameter from location_t to
7082 rich_location *. Eliminate the "column_override" parameter.
7083
7084 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
7085 Thomas Schwinge <thomas@codesourcery.com>
7086 James Norris <jnorris@codesourcery.com>
7087
7088 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
7089 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
7090 clauses with parallel and kernels and loops.
7091 * c-pragma.h (enum pragma_omp_clause): Add entries for
7092 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
7093 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
7094 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
7095 INDEPENDENT,SEQ}.
7096 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
7097
7098 2015-11-05 Martin Sebor <msebor@redhat.com>
7099
7100 PR c++/67942
7101 * c.opt (-Wplacement-new): New option.
7102
7103 2015-11-05 Jakub Jelinek <jakub@redhat.com>
7104
7105 * c-common.h (c_finish_omp_atomic): Add TEST argument.
7106 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
7107 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
7108 save_expr or create_tmp_var* if TEST is true.
7109 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
7110 Don't call add_stmt here.
7111 (struct c_omp_check_loop_iv_data): New type.
7112 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
7113 c_omp_check_loop_iv_exprs): New functions.
7114 (c_omp_split_clauses): Adjust for lastprivate being allowed on
7115 distribute.
7116 (c_omp_declare_simd_clauses_to_numbers): Change
7117 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
7118 (c_omp_declare_simd_clauses_to_decls): Similarly change those
7119 from numbers to PARM_DECLs.
7120
7121 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
7122
7123 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
7124 flag_checking.
7125
7126 2015-11-03 Bernd Schmidt <bschmidt@redhat.com>
7127
7128 PR c++-common/67882
7129 * c-common.h (fold_offsetof_1): Add argument.
7130 * c-common.c (fold_offsetof_1): Diagnose more invalid
7131 offsetof expressions that reference elements past the end of
7132 an array.
7133
7134 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
7135 Chung-Lin Tang <cltang@codesourcery.com>
7136
7137 * c-pragma.c (oacc_pragmas): Add "atomic".
7138 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
7139
7140 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
7141
7142 * c-common.c (handle_target_clones_attribute): New.
7143 (c_common_attribute_table): Add handle_target_clones_attribute.
7144 (handle_always_inline_attribute): Add check on target_clones attribute.
7145 (handle_target_attribute): Ditto.
7146
7147 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
7148
7149 * array-notation-common.c: Reorder #include's and remove duplicates.
7150 * c-ada-spec.c: Likewise.
7151 * c-cilkplus.c: Likewise.
7152 * c-common.c: Likewise.
7153 * c-cppbuiltin.c: Likewise.
7154 * c-dump.c: Likewise.
7155 * c-format.c: Likewise.
7156 * c-gimplify.c: Likewise.
7157 * c-indentation.c: Likewise.
7158 * c-lex.c: Likewise.
7159 * c-omp.c: Likewise.
7160 * c-opts.c: Likewise.
7161 * c-pch.c: Likewise.
7162 * c-ppoutput.c: Likewise.
7163 * c-pragma.c: Likewise.
7164 * c-pretty-print.c: Likewise.
7165 * c-semantics.c: Likewise.
7166 * c-ubsan.c: Likewise.
7167 * cilk.c: Likewise.
7168 * stub-objc.c: Likewise.
7169
7170 2015-10-28 Jason Merrill <jason@redhat.com>
7171
7172 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
7173
7174 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
7175 James Norris <jnorris@codesourcery.com>
7176 Cesar Philippidis <cesar@codesourcery.com>
7177
7178 PR c/64765
7179 PR c/64880
7180 * c-common.h (c_oacc_split_loop_clauses): Declare function.
7181 * c-omp.c (c_oacc_split_loop_clauses): New function.
7182
7183 2015-10-21 Martin Sebor <msebor@redhat.com>
7184
7185 PR driver/68043
7186 * c.opt: End each sentence that describes an option with a period.
7187
7188 2015-10-20 Marek Polacek <polacek@redhat.com>
7189
7190 * array-notation-common.c (is_cilkplus_vector_p): Define.
7191 * c-common.h (is_cilkplus_vector_p): Declare.
7192
7193 2015-10-20 Marek Polacek <polacek@redhat.com>
7194
7195 * c.opt (std=gnu++11): Do not describe as experimental.
7196 (std=gnu++14): Likewise.
7197
7198 2015-10-19 Jason Merrill <jason@redhat.com>
7199
7200 * c-cppbuiltin.c (c_cpp_builtins): Define
7201 __cpp_nontype_template_args.
7202
7203 2015-10-19 Jason Merrill <jason@redhat.com>
7204
7205 * c-cppbuiltin.c (c_cpp_builtins): Define
7206 __cpp_enumerator_attributes, __cpp_fold_expressions,
7207 __cpp_unicode_characters.
7208
7209 2015-10-13 Jakub Jelinek <jakub@redhat.com>
7210 Aldy Hernandez <aldyh@redhat.com>
7211
7212 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
7213 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
7214 (c_define_builtins): Likewise.
7215 * c-common.h (enum c_omp_clause_split): Add
7216 C_OMP_CLAUSE_SPLIT_TASKLOOP.
7217 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
7218 (c_finish_omp_for): Add ORIG_DECLV argument.
7219 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
7220 201511 instead of 201307.
7221 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
7222 OMP_CRITICAL_CLAUSES to it.
7223 (c_finish_omp_ordered): Add CLAUSES argument, set
7224 OMP_ORDERED_CLAUSES to it.
7225 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
7226 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
7227 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
7228 constructs and new OpenMP 4.5 clauses. Clear
7229 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
7230 verification code.
7231 * c-pragma.c (omp_pragmas_simd): Add taskloop.
7232 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
7233 (enum pragma_omp_clause): Add
7234 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
7235 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
7236
7237 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
7238
7239 * c-lex.c (interpret_float): Use real_equal instead of
7240 REAL_VALUES_EQUAL.
7241
7242 2015-10-04 Jason Merrill <jason@redhat.com>
7243
7244 Implement N4514, C++ Extensions for Transactional Memory.
7245 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
7246 (c_common_attribute_table): Add transaction_safe_dynamic.
7247 transaction_safe now affects type identity.
7248 (handle_tm_attribute): Handle transaction_safe_dynamic.
7249 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
7250 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
7251 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
7252 (D_TRANSMEM): New.
7253 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
7254 * c-pretty-print.c (pp_c_attributes_display): Don't print
7255 transaction_safe in C++.
7256
7257 2015-10-02 Marek Polacek <polacek@redhat.com>
7258
7259 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
7260
7261 2015-10-02 Marek Polacek <polacek@redhat.com>
7262
7263 PR c/64249
7264 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
7265 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
7266 * c.opt (Wduplicated-cond): New option.
7267
7268 2015-10-01 Joseph Myers <joseph@codesourcery.com>
7269
7270 * c.opt (std=c11): Do not describe as experimental.
7271 (std=gnu11): Likewise.
7272 (std=iso9899:2011): Likewise.
7273
7274 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
7275
7276 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
7277 (DEF_FUNCTION_TYPE_VAR_11): Delete.
7278
7279 2015-09-25 Marek Polacek <polacek@redhat.com>
7280
7281 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
7282 (ubsan_instrument_shift): Likewise.
7283
7284 2015-09-25 Marek Polacek <polacek@redhat.com>
7285
7286 PR sanitizer/64906
7287 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
7288
7289 2015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
7290
7291 * c-indentation.c (should_warn_for_misleading_indentation):
7292 Compare next_stmt_vis_column with guard_line_first_nws instead
7293 of with guard_line_vis_column.
7294
7295 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
7296
7297 PR c/49654
7298 PR c/49655
7299 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
7300 options and options not valid for the current language.
7301
7302 2015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
7303
7304 * c-indentation.c (should_warn_for_misleading_indentation):
7305 Float out and consolidate the calls to get_visual_column that
7306 are passed guard_exploc as an argument. Compare
7307 next_stmt_vis_column with guard_line_first_nws instead of with
7308 body_line_first_nws.
7309
7310 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
7311
7312 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
7313 Wnamespaces): New C++ warnings.
7314
7315 2015-09-22 Jason Merrill <jason@redhat.com>
7316
7317 * c-common.h (abi_compat_version_crosses): New.
7318 (warn_abi_version): Declare.
7319 * c-common.c: Define it.
7320 * c-opts.c (c_common_post_options): Handle it.
7321 flag_abi_compat_version defaults to 8.
7322
7323 2015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
7324
7325 Complete the implementation of N4230, Nested namespace definition.
7326 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
7327 __cpp_nested_namespace_definitions.
7328
7329 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
7330
7331 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
7332
7333 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
7334
7335 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
7336 when warning.
7337 * c-pragma.h (pragma_lex): Add optional loc argument.
7338
7339 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
7340
7341 * c-format.c (check_format_arg): Adjust to use common block size in all
7342 object pools.
7343
7344 2015-09-15 David Malcolm <dmalcolm@redhat.com>
7345
7346 * c-format.c (location_from_offset): Update for change in
7347 signature of location_get_source_line.
7348 * c-indentation.c (get_visual_column): Likewise.
7349 (line_contains_hash_if): Likewise.
7350
7351 2015-09-14 Marek Polacek <polacek@redhat.com>
7352
7353 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
7354 setting various warnings.
7355
7356 2015-09-14 Marek Polacek <polacek@redhat.com>
7357
7358 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
7359 a negative value.
7360
7361 2015-09-11 Mark Wielaard <mjw@redhat.com>
7362
7363 PR c/28901
7364 * c.opt (Wunused-variable): Option from common.opt.
7365 (Wunused-const-variable): New option.
7366
7367 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
7368
7369 PR c++/53184
7370 * c.opt ([Wsubobject-linkage]): Add.
7371
7372 2015-09-03 Martin Sebor <msebor@redhat.com>
7373
7374 PR c/66516
7375 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
7376 functions.
7377 * c-common.c (reject_gcc_builtin): Define.
7378
7379 2015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
7380
7381 PR middle-end/60586
7382 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
7383 prototype.
7384 * c-gimplify.c (c_gimplify_expr): Added a call to the function
7385 cilk_gimplify_call_params_in_spawned_fn.
7386 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
7387 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
7388 unwrapping.
7389
7390 2015-08-25 Marek Polacek <polacek@redhat.com>
7391
7392 PR middle-end/67330
7393 * c-common.c (handle_weak_attribute): Don't check whether the
7394 visibility can be changed here.
7395
7396 2015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
7397
7398 * c-lex.c (c_lex_with_flags): Use explicit locations.
7399
7400 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
7401
7402 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
7403 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
7404
7405 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7406
7407 PR middle-end/36757
7408 * c-common.c (check_builtin_function_arguments): Add check
7409 for BUILT_IN_SIGNBIT argument.
7410
7411 2015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
7412
7413 PR c++/67160
7414 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
7415 in c++1z mode.
7416
7417 2015-08-17 Marek Polacek <polacek@redhat.com>
7418
7419 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
7420 with whitespaces before qualifier names.
7421
7422 2015-08-12 Marek Polacek <polacek@redhat.com>
7423
7424 PR c++/55095
7425 * c-common.c (maybe_warn_shift_overflow): Properly handle
7426 left-shifting 1 into the sign bit.
7427
7428 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
7429
7430 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
7431
7432 2015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
7433 Braden Obrzut <admin@maniacsvault.net>
7434 Jason Merrill <jason@redhat.com>
7435
7436 Add C++ Concepts TS support.
7437 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
7438 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
7439 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
7440 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
7441 * c-opts.c (set_std_cxx1z): Set flag_concepts.
7442 * c.opt (fconcepts): New.
7443
7444 2015-08-02 Martin Sebor <msebor@redhat.com>
7445
7446 * c.opt (-Wframe-address): New warning option.
7447
7448 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
7449
7450 * c-indentation.c (should_warn_for_misleading_indentation):
7451 Improve heuristics.
7452
7453 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
7454
7455 * c-indentation.c (get_visual_column): Add parameter first_nws,
7456 use it. Update comment documenting the function.
7457 (is_first_nonwhitespace_on_line): Remove.
7458 (should_warn_for_misleading_indentation): Replace usage of
7459 of is_first_nonwhitespace_on_line with get_visual_column.
7460
7461 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
7462
7463 * c-indentation.h (struct token_indent_info): Define.
7464 (get_token_indent_info): Define.
7465 (warn_for_misleading_information): Declare.
7466 * c-common.h (warn_for_misleading_information): Remove.
7467 * c-identation.c (warn_for_misleading_indentation):
7468 Change declaration to take three token_indent_infos. Adjust
7469 accordingly.
7470 * c-identation.c (should_warn_for_misleading_indentation):
7471 Likewise. Bail out early if the body is a compound statement.
7472 (guard_tinfo_to_string): Define.
7473
7474 2015-07-30 Jason Merrill <jason@redhat.com>
7475
7476 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
7477 '*' for reference decay.
7478
7479 2015-07-30 Marek Polacek <polacek@redhat.com>
7480
7481 * c-common.c (warn_tautological_cmp): Bail for float types.
7482
7483 2015-07-27 Marek Polacek <polacek@redhat.com>
7484
7485 PR bootstrap/67030
7486 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
7487
7488 2015-07-27 Marek Polacek <polacek@redhat.com>
7489
7490 PR c++/66555
7491 PR c/54979
7492 * c-common.c (find_array_ref_with_const_idx_r): New function.
7493 (warn_tautological_cmp): New function.
7494 * c-common.h (warn_tautological_cmp): Declare.
7495 * c.opt (Wtautological-compare): New option.
7496
7497 2015-07-23 Marek Polacek <polacek@redhat.com>
7498
7499 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
7500 (ubsan_instrument_shift): Likewise.
7501
7502 2015-07-23 Marek Polacek <polacek@redhat.com>
7503
7504 PR sanitizer/66908
7505 * c-ubsan.c: Include gimplify.h.
7506 (ubsan_instrument_division): Unshare OP0 and OP1.
7507 (ubsan_instrument_shift): Likewise.
7508
7509 2015-07-20 Marek Polacek <polacek@redhat.com>
7510 Richard Sandiford <richard.sandiford@arm.com>
7511
7512 PR c++/55095
7513 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
7514 Use EXPR_LOC_OR_LOC.
7515 (maybe_warn_shift_overflow): New function.
7516 * c-common.h (maybe_warn_shift_overflow): Declare.
7517 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
7518 * c.opt (Wshift-overflow): New option.
7519
7520 2015-07-16 Martin Liska <mliska@suse.cz>
7521
7522 * c-format.c (static void check_format_info_main): Use
7523 object_allocator instead of pool_allocator.
7524 (check_format_arg): Likewise.
7525 (check_format_info_main): Likewise.
7526
7527 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
7528
7529 * c-opts.c: Remove multiline #include comment.
7530
7531 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
7532
7533 * c-common.c: Fix double word typos.
7534
7535 2015-07-10 Eric Botcazou <ebotcazou@adacore.com>
7536
7537 * c-ada-spec.h (cpp_operation): Revert latest change.
7538 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
7539 constructors and destructors.
7540
7541 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
7542
7543 * c-common.h: Adjust includes for flags.h changes.
7544 * stub-objc.c: Likewise.
7545
7546 2015-07-08 Eric Botcazou <ebotcazou@adacore.com>
7547
7548 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
7549 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
7550
7551 2015-07-08 Jakub Jelinek <jakub@redhat.com>
7552
7553 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
7554 are to be removed, return NULL rather than original clauses list.
7555
7556 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
7557
7558 * array-notation-common.c: Adjust includes.
7559 * c-ada-spec.c: Likewise.
7560 * c-cilkplus.c: Likewise.
7561 * c-common.h: Likewise.
7562 * c-cppbuiltin.c: Likewise.
7563 * c-dump.c: Likewise.
7564 * c-format.c: Likewise.
7565 * c-gimplify.c: Likewise.
7566 * c-indentation.c: Likewise.
7567 * c-lex.c: Likewise.
7568 * c-omp.c: Likewise.
7569 * c-opts.c: Likewise.
7570 * c-pch.c: Likewise.
7571 * c-ppoutput.c: Likewise.
7572 * c-pragma.c: Likewise.
7573 * c-pretty-print.c: Likewise.
7574 * c-semantics.c: Likewise.
7575 * c-ubsan.c: Likewise.
7576 * cilk.c: Likewise.
7577 * stub-objc.c: Likewise.
7578
7579 2015-07-07 Eric Botcazou <ebotcazou@adacore.com>
7580
7581 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
7582 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
7583
7584 2015-07-01 Jason Merrill <jason@redhat.com>
7585
7586 * c-common.h (D_CXX11): Rename from D_CXX0X.
7587 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
7588 * c-common.c: Adjust.
7589
7590 * c-opts.c (c_common_post_options): Default to C++14.
7591
7592 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
7593
7594 2015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
7595
7596 Implement N4197 - Adding u8 character literals
7597 * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
7598 CPP_CHAR.
7599 * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
7600 CPP_UTF8CHAR_USERDEF tokens.
7601 * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
7602 and CPP_UTF8CHAR tokens.
7603 (lex_charconst): Treat CPP_UTF8CHAR token.
7604
7605 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
7606
7607 PR fortran/66605
7608 * c-common.c (do_warn_unused_parameter): Move here.
7609 * c-common.h (do_warn_unused_parameter): Declare.
7610
7611 2015-06-29 Marek Polacek <polacek@redhat.com>
7612
7613 PR c/66322
7614 * c-common.c (check_case_bounds): Add bool * parameter. Set
7615 OUTSIDE_RANGE_P.
7616 (c_add_case_label): Add bool * parameter. Pass it down to
7617 check_case_bounds.
7618 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
7619 warning here.
7620 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
7621 declarations.
7622
7623 2015-06-27 Marek Polacek <polacek@redhat.com>
7624
7625 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
7626 or VECTOR_INTEGER_TYPE_P throughout.
7627 * c-gimplify.c: Likewise.
7628
7629 2015-06-26 Marek Polacek <polacek@redhat.com>
7630
7631 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
7632 * c-common.c (c_fully_fold_internal): Likewise.
7633 (c_alignof_expr): Likewise.
7634 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
7635 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
7636 * cilk.c (create_parm_list): Likewise.
7637
7638 2015-06-26 Marek Polacek <polacek@redhat.com>
7639
7640 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
7641
7642 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
7643
7644 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
7645 * c-gimplify.c: Likewise.
7646 * c-pragma.c: Likewise.
7647 * c-ubsan.c: Likewise.
7648 * cilk.c: Likewise.
7649
7650 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7651
7652 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
7653 ggc_hasher.
7654
7655 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
7656
7657 * cilk.c: Move calls.h after tm.h in the include chain.
7658
7659 2015-06-25 Marek Polacek <polacek@redhat.com>
7660
7661 * array-notation-common.c: Use VAR_P throughout.
7662 * c-ada-spec.c: Likewise.
7663 * c-common.c: Likewise.
7664 * c-format.c: Likewise.
7665 * c-gimplify.c: Likewise.
7666 * c-omp.c: Likewise.
7667 * c-pragma.c: Likewise.
7668 * c-pretty-print.c: Likewise.
7669 * cilk.c: Likewise.
7670
7671 2015-06-25 Marek Polacek <polacek@redhat.com>
7672
7673 * cilk.c (extract_free_variables): Use is_global_var.
7674
7675 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
7676
7677 * c-common.c: Don't include target-def.h.
7678
7679 2015-06-23 Marek Polacek <polacek@redhat.com>
7680
7681 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
7682 when comparing INTEGER_CSTs.
7683
7684 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
7685
7686 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
7687 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
7688 (dump_ada_template): Skip partially specialized types.
7689
7690 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
7691
7692 * c-common.c (scalar_to_vector): Use std::swap instead of manually
7693 swapping.
7694
7695 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
7696
7697 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
7698 * c-ada-spec.c: Likewise.
7699 * c-cilkplus.c: Likewise.
7700 * c-common.c: Likewise.
7701 * c-common.h: Likewise.
7702 * c-cppbuiltin.c: Likewise.
7703 * c-dump.c: Likewise.
7704 * c-format.c: Likewise.
7705 * c-gimplify.c: Likewise.
7706 * c-indentation.c: Likewise.
7707 * c-lex.c: Likewise.
7708 * c-omp.c: Likewise.
7709 * c-opts.c: Likewise.
7710 * c-pch.c: Likewise.
7711 * c-ppoutput.c: Likewise.
7712 * c-pragma.c: Likewise.
7713 * c-pretty-print.c: Likewise.
7714 * c-semantics.c: Likewise.
7715 * c-ubsan.c: Likewise.
7716 * cilk.c: Likewise.
7717 * stub-objc.c: Likewise.
7718
7719 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
7720
7721 PR c++/65168
7722 * c-common.c (c_common_truthvalue_conversion): Warn when
7723 converting an address of a reference to a truth value.
7724
7725 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
7726
7727 * array-notation-common.c : Adjust include files.
7728 * c-ada-spec.c : Likewise.
7729 * c-cilkplus.c : Likewise.
7730 * c-common.c : Likewise.
7731 * c-common.h : Likewise.
7732 * c-cppbuiltin.c : Likewise.
7733 * c-dump.c : Likewise.
7734 * c-format.c : Likewise.
7735 * c-gimplify.c : Likewise.
7736 * c-indentation.c : Likewise.
7737 * c-lex.c : Likewise.
7738 * c-omp.c : Likewise.
7739 * c-opts.c : Likewise.
7740 * c-pch.c : Likewise.
7741 * c-ppoutput.c : Likewise.
7742 * c-pragma.c : Likewise.
7743 * c-pretty-print.c : Likewise.
7744 * c-semantics.c : Likewise.
7745 * c-ubsan.c : Likewise.
7746 * cilk.c : Likewise.
7747 * stub-objc.c : Likewise.
7748
7749 2015-06-08 Marek Polacek <polacek@redhat.com>
7750
7751 PR c/66415
7752 * c-format.c (location_from_offset): Return LOC if LINE is null.
7753
7754 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
7755
7756 * c-common.h (c_parse_final_cleanups): New prototype.
7757 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
7758
7759 2015-06-04 Sriraman Tallam <tmsriram@google.com>
7760
7761 * c-common.c (noplt): New attribute.
7762 (handle_noplt_attribute): New handler.
7763
7764 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
7765
7766 * array-notation-common.c: Adjust includes for restructured coretypes.h.
7767 * c-ada-spec.c: Likewise.
7768 * c-cilkplus.c: Likewise.
7769 * c-common.c: Likewise.
7770 * c-common.h: Likewise.
7771 * c-cppbuiltin.c: Likewise.
7772 * c-dump.c: Likewise.
7773 * c-format.c: Likewise.
7774 * c-gimplify.c: Likewise.
7775 * c-indentation.c: Likewise.
7776 * c-lex.c: Likewise.
7777 * c-omp.c: Likewise.
7778 * c-opts.c: Likewise.
7779 * c-pch.c: Likewise.
7780 * c-ppoutput.c: Likewise.
7781 * c-pragma.c: Likewise.
7782 * c-pretty-print.c: Likewise.
7783 * c-semantics.c: Likewise.
7784 * c-ubsan.c: Likewise.
7785 * cilk.c: Likewise.
7786 * stub-objc.c: Likewise.
7787
7788 2015-06-02 David Malcolm <dmalcolm@redhat.com>
7789
7790 PR c/66220:
7791 * c-indentation.c (should_warn_for_misleading_indentation): Use
7792 expand_location rather than expand_location_to_spelling_point.
7793 Don't warn if the guarding statement is more indented than the
7794 next/body stmts.
7795
7796 2015-06-02 David Malcolm <dmalcolm@redhat.com>
7797
7798 * c-indentation.c (warn_for_misleading_indentation): Bail out
7799 immediately if -Wmisleading-indentation isn't enabled.
7800
7801 2015-06-01 Martin Liska <mliska@suse.cz>
7802
7803 * c-format.c (check_format_arg):Use new type-based pool allocator.
7804 (check_format_info_main) Likewise.
7805
7806 2015-05-31 Eric Botcazou <ebotcazou@adacore.com>
7807
7808 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
7809 (has_nontrivial_methods): Likewise.
7810
7811 2015-05-25 Marek Polacek <polacek@redhat.com>
7812
7813 * c-ubsan.c (ubsan_instrument_shift): Use type0.
7814
7815 2015-05-22 Marek Polacek <polacek@redhat.com>
7816
7817 PR c/47043
7818 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
7819
7820 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7821
7822 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
7823 STACK_GROWS_DOWNWARD.
7824
7825 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7826
7827 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
7828 STACK_GROWS_DOWNWARD rather than if it is defined.
7829
7830 2015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
7831
7832 PR c/52952
7833 * c-format.c (location_column_from_byte_offset): New.
7834 (location_from_offset): New.
7835 (struct format_wanted_type): Add offset_loc field.
7836 (check_format_info): Move handling of location for extra arguments
7837 closer to the point of warning.
7838 (check_format_info_main): Pass the result of location_from_offset
7839 to warning_at.
7840 (format_type_warning): Pass the result of location_from_offset
7841 to warning_at.
7842
7843 2015-05-20 Marek Polacek <polacek@redhat.com>
7844
7845 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
7846
7847 2015-05-20 Marek Polacek <polacek@redhat.com>
7848
7849 * c-ada-spec.c (dump_sloc): Use DECL_P.
7850
7851 2015-05-20 Marek Polacek <polacek@redhat.com>
7852
7853 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
7854 * c-common.c: Likewise.
7855
7856 2015-05-19 David Malcolm <dmalcolm@redhat.com>
7857
7858 * c-common.h (fe_file_change): Strengthen param from
7859 const line_map * to const line_map_ordinary *.
7860 (pp_file_change): Likewise.
7861 * c-lex.c (fe_file_change): Likewise.
7862 (cb_define): Use linemap_check_ordinary when invoking
7863 SOURCE_LINE.
7864 (cb_undef): Likewise.
7865 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
7866 invoking cb_file_change.
7867 (c_finish_options): Likewise.
7868 (push_command_line_include): Likewise.
7869 (cb_file_change): Strengthen param "new_map" from
7870 const line_map * to const line_map_ordinary *.
7871 * c-ppoutput.c (cb_define): Likewise for local "map".
7872 (pp_file_change): Likewise for param "map" and local "from".
7873
7874 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
7875
7876 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
7877
7878 2015-05-18 Tom de Vries <tom@codesourcery.com>
7879
7880 * c-common.c (build_va_arg_1): New function.
7881 (build_va_arg): Add address operator to va_list operand if necessary.
7882
7883 2015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
7884
7885 PR c/48956
7886 * c-common.c (int_safely_convertible_to_real_p): Define.
7887 (unsafe_conversion_p): Check conversions involving complex types.
7888 (conversion_warning): Add new warning message for conversions which
7889 discard imaginary component.
7890 * c-common.h: (enum conversion_safety): Add new enumerator for such
7891 conversions.
7892
7893 2015-05-14 Marek Polacek <polacek@redhat.com>
7894
7895 PR c/66066
7896 PR c/66127
7897 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
7898 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
7899 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
7900 use it. If FOR_INT_CONST, require that all evaluated operands be
7901 INTEGER_CSTs.
7902
7903 2015-05-12 David Malcolm <dmalcolm@redhat.com>
7904
7905 * c-common.h (warn_for_misleading_indentation): New prototype.
7906 * c-indentation.c: New file.
7907 * c.opt (Wmisleading-indentation): New option.
7908
7909 2015-05-12 Tom de Vries <tom@codesourcery.com>
7910
7911 PR tree-optimization/66010
7912 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
7913
7914 2015-05-09 Jason Merrill <jason@redhat.com>
7915
7916 * c-opts.c (c_common_post_options): Also clear
7917 cpp_opts->cpp_warn_cxx11_compat.
7918
7919 * c-common.h (enum cxx_dialect): Add cxx_unset.
7920 * c-common.c (cxx_dialect): Initialize to cxx_unset.
7921 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
7922
7923 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
7924 (std=gnu++0x): Mark as Undocumented.
7925 (std=gnu++1y): Add deprecated message.
7926
7927 2015-05-08 Jason Merrill <jason@redhat.com>
7928
7929 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
7930 * c-opts.c: Adjust.
7931
7932 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
7933
7934 2015-05-08 Marek Polacek <polacek@redhat.com>
7935
7936 PR c/64918
7937 * c.opt (Woverride-init-side-effects): New option.
7938
7939 2015-05-07 Marek Polacek <polacek@redhat.com>
7940
7941 PR c/65179
7942 * c-common.c (c_fully_fold_internal): Warn when left shifting a
7943 negative value.
7944 * c.opt (Wshift-negative-value): New option.
7945 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
7946 when -Wextra and C99/C++11 mode.
7947
7948 2015-05-07 Marek Polacek <polacek@redhat.com>
7949 Martin Uecker <uecker@eecs.berkeley.edu>
7950
7951 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
7952 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
7953
7954 2015-05-05 Jason Merrill <jason@redhat.com>
7955
7956 * c.opt (Wterminate): New.
7957
7958 2015-04-30 Marek Polacek <polacek@redhat.com>
7959
7960 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
7961 require that the non-constant be of a boolean type.
7962
7963 2015-04-29 Josh Triplett <josh@joshtriplett.org>
7964
7965 * c-common.c (handle_section_attribute): Refactor to reduce
7966 nesting and distinguish between error cases.
7967
7968 2015-04-29 Marek Polacek <polacek@redhat.com>
7969
7970 PR c/64610
7971 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
7972 with 0/1.
7973
7974 2015-04-29 Jakub Jelinek <jakub@redhat.com>
7975
7976 * c-common.h (omp_clause_mask): Unconditionally define as a class.
7977 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
7978 HOST_BITS_PER_WIDE_INT.
7979
7980 2015-04-28 Tom de Vries <tom@codesourcery.com>
7981
7982 PR tree-optimization/65887
7983 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
7984
7985 2015-04-28 Eric Botcazou <ebotcazou@adacore.com>
7986 Pierre-Marie de Rodat <derodat@adacore.com>
7987
7988 * c-ada-spec.c (in_function): Delete.
7989 (dump_generic_ada_node): Do not change in_function and remove the
7990 redundant code dealing with it.
7991 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
7992 (print_ada_methods): Output the static member functions in a nested
7993 package after the regular methods as well as associated renamings.
7994
7995 2015-04-24 Marek Polacek <polacek@redhat.com>
7996
7997 PR c/65830
7998 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
7999 and OPT_Wshift_count_overflow.
8000
8001 PR c/63357
8002 * c-common.c (warn_logical_operator): Warn if the operands have the
8003 same expressions.
8004
8005 2015-04-24 Marek Polacek <polacek@redhat.com>
8006
8007 PR c/61534
8008 * c-common.c (warn_logical_operator): Bail if either operand comes
8009 from a macro expansion.
8010
8011 2015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
8012
8013 PR target/55143
8014 * c-common.c (c_default_pointer_mode): Add definition.
8015 * c-common.h (c_default_pointer_mode): Add declaration.
8016
8017 2015-03-11 Jakub Jelinek <jakub@redhat.com>
8018
8019 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
8020 on record_builtin_type argument.
8021
8022 2015-03-10 Jakub Jelinek <jakub@redhat.com>
8023
8024 PR c/65120
8025 * c-common.c (warn_logical_not_parentheses): Don't warn for
8026 !x == 0 or !x != 0.
8027
8028 2015-03-07 Marek Polacek <polacek@redhat.com>
8029
8030 PR sanitizer/65280
8031 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
8032 before trying to figure out whether we have a flexible array member.
8033
8034 2015-03-06 Eric Botcazou <ebotcazou@adacore.com>
8035 Jonathan Wakely <jwakely.gcc@gmail.com>
8036
8037 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
8038
8039 2015-03-05 Eric Botcazou <ebotcazou@adacore.com>
8040
8041 PR ada/65319
8042 * c-ada-spec.c (print_destructor): Remove obsolete code.
8043
8044 2015-03-01 Eric Botcazou <ebotcazou@adacore.com>
8045
8046 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
8047 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
8048 DECL_TEMPLATE_RESULT emulations.
8049 (dump_ada_template)): Add guard for TYPE_METHODS.
8050
8051 2015-02-27 Marek Polacek <polacek@redhat.com>
8052
8053 PR c/65040
8054 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
8055
8056 2015-02-27 Kai Tietz <ktietz@redhat.com>
8057
8058 PR c/35330
8059 * c-pragma.c (handle_pragma_weak): Do not try to create
8060 weak/alias of declarations not being function, or variable
8061 declarations.
8062
8063 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
8064
8065 PR libgomp/64625
8066 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
8067 Remove macros.
8068 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
8069
8070 2015-02-16 Marek Polacek <polacek@redhat.com>
8071
8072 PR c/65066
8073 * c-format.c (check_format_types): Handle null param.
8074
8075 2015-02-13 Marek Polacek <polacek@redhat.com>
8076
8077 PR c/65040
8078 * c-format.c (check_format_types): Don't warn about different
8079 signedness if the original value is in the range of WANTED_TYPE.
8080
8081 2015-02-12 Jason Merrill <jason@redhat.com>
8082
8083 PR c++/64956
8084 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
8085 to the current highest version.
8086 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
8087
8088 2015-02-04 Jakub Jelinek <jakub@redhat.com>
8089
8090 PR c/64824
8091 PR c/64868
8092 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
8093 instead of RDIV_EXPR. Use build_binary_op instead of
8094 build2_loc.
8095
8096 2015-01-30 Joseph Myers <joseph@codesourcery.com>
8097
8098 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
8099 to pass input_location as first argument.
8100
8101 2015-01-23 Tom de Vries <tom@codesourcery.com>
8102
8103 PR libgomp/64672
8104 * c.opt (fopenacc): Mark as LTO option.
8105
8106 2015-01-23 Tom de Vries <tom@codesourcery.com>
8107
8108 PR libgomp/64707
8109 * c.opt (fopenmp): Mark as LTO option.
8110
8111 2015-01-21 Jakub Jelinek <jakub@redhat.com>
8112
8113 PR c/63307
8114 * cilk.c (fill_decls_vec): Only put decls into vector v.
8115 (compare_decls): Fix up formatting.
8116
8117 2015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
8118
8119 PR c/63307
8120 * cilk.c: Include vec.h.
8121 (struct cilk_decls): New structure.
8122 (wrapper_parm_cb): Split this function to...
8123 (fill_decls_vec): ...this...
8124 (create_parm_list): ...and this.
8125 (compare_decls): New function.
8126 (for_local_cb): Remove.
8127 (wrapper_local_cb): Ditto.
8128 (build_wrapper_type): For now first traverse and fill vector of
8129 declarations then sort it and then deal with sorted vector.
8130 (cilk_outline): Ditto.
8131 (declare_one_free_variable): Ditto.
8132
8133 2015-01-21 Jason Merrill <jason@redhat.com>
8134
8135 PR c++/64629
8136 * c-format.c (check_format_arg): Call decl_constant_value.
8137
8138 2015-01-19 Martin Liska <mliska@suse.cz>
8139
8140 * c-common.c (handle_noicf_attribute): New function.
8141
8142 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
8143 Bernd Schmidt <bernds@codesourcery.com>
8144 James Norris <jnorris@codesourcery.com>
8145 Cesar Philippidis <cesar@codesourcery.com>
8146 Ilmir Usmanov <i.usmanov@samsung.com>
8147 Jakub Jelinek <jakub@redhat.com>
8148
8149 * c.opt (fopenacc): New option.
8150 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
8151 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
8152 New macros.
8153 * c-common.h (c_finish_oacc_wait): New prototype.
8154 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
8155 (c_finish_oacc_wait): New function.
8156 * c-pragma.c (oacc_pragmas): New variable.
8157 (c_pp_lookup_pragma, init_pragma): Handle it.
8158 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
8159 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
8160 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
8161 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
8162 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
8163 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
8164 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
8165 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
8166 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
8167 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
8168 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
8169 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
8170 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
8171 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
8172 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
8173 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
8174 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
8175 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
8176 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
8177 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
8178 PRAGMA_OACC_CLAUSE_WORKER.
8179
8180 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
8181
8182 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
8183 for the new option fstack-protector_explicit.
8184 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
8185 (handle_stack_protect_attribute): New function.
8186
8187 2015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
8188
8189 * c.opt: New option -Warray-bounds=.
8190
8191 2015-01-09 Michael Collison <michael.collison@linaro.org>
8192
8193 * array-notation-common.c: Include hash-set.h, machmode.h,
8194 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
8195 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
8196 * c-ada-spec.c: Ditto.
8197 * c-cilkplus.c: Ditto.
8198 * c-common.c: Include input.h due to flattening of tree.h.
8199 Define macro GCC_C_COMMON_C.
8200 * c-common.h: Flatten tree.h header files into c-common.h.
8201 Remove include of tree-core.h.
8202 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
8203 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
8204 fold-const.h, wide-int.h, and inchash.h due to
8205 flattening of tree.h.
8206 * c-dump.c: Ditto.
8207 * c-format.c: Flatten tree.h header files into c-common.h.
8208 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
8209 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
8210 fold-const.h, wide-int.h, and inchash.h due to
8211 flattening of tree.h.
8212 * c-dump.c: Include hash-set.h, machmode.h,
8213 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
8214 fold-const.h, wide-int.h, and inchash.h due to
8215 flattening of tree.h.
8216 * c-format.c: Include hash-set.h, machmode.h,
8217 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
8218 fold-const.h, wide-int.h, inchash.h and real.h due to
8219 flattening of tree.h.
8220 * c-gimplify.c: Include hash-set.h, machmode.h,
8221 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
8222 fold-const.h, wide-int.h, and inchash.h due to
8223 flattening of tree.h.
8224 * cilk.c: Ditto.
8225 * c-lex.c: Ditto.
8226 * c-omp.c: Ditto.
8227 * c-opts.c: Ditto.
8228 * c-pch.c: Ditto.
8229 * c-ppoutput.c: Ditto.
8230 * c-pragma.c: Ditto.
8231 * c-pretty-print.c: Ditto.
8232 * c-semantics.c: Ditto.
8233 * c-ubsan.c: Ditto.
8234 * stub-objc.c: Ditto.
8235
8236 2015-01-08 Jason Merrill <jason@redhat.com>
8237
8238 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
8239 do_ubsan_in_current_function.
8240 (ubsan_maybe_instrument_reference_or_call): Likewise.
8241 * c-ubsan.h: Declare it.
8242
8243 2015-01-08 Mike Stump <mikestump@comcast.net>
8244
8245 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
8246
8247 2015-01-07 Marek Polacek <polacek@redhat.com>
8248
8249 PR c/64440
8250 * c-common.c (c_fully_fold_internal): Warn for division and modulo
8251 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
8252
8253 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
8254
8255 PR c++/31397
8256 * c.opt (Wsuggest-override): New option.
8257
8258 2015-01-05 Jakub Jelinek <jakub@redhat.com>
8259
8260 Update copyright years.
8261
8262 2015-01-05 Marek Polacek <polacek@redhat.com>
8263
8264 PR c/64423
8265 * c-common.c (warn_array_subscript_with_type_char): Add location_t
8266 parameter. Use it.
8267 * c-common.h (warn_array_subscript_with_type_char): Update
8268 declaration.
8269
8270 2014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
8271
8272 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
8273 Control macro with flag_sized_deallocation.
8274
8275 2014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
8276
8277 * c.opt (Wdiscarded-array-qualifiers): New option.
8278
8279 2014-12-19 Jakub Jelinek <jakub@redhat.com>
8280
8281 PR preprocessor/63831
8282 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
8283 and __has_cpp_attribute here.
8284 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
8285 c_common_has_attribute.
8286 * c-common.h (c_common_has_attribute): New prototype.
8287 * c-lex.c (init_c_lex): Set cb->has_attribute to
8288 c_common_has_attribute instead of cb_has_attribute.
8289 (get_token_no_padding): New function.
8290 (cb_has_attribute): Renamed to ...
8291 (c_common_has_attribute): ... this. No longer static. Use
8292 get_token_no_padding, require ()s, don't build TREE_LIST
8293 unnecessarily, fix up formatting, adjust diagnostics, call
8294 init_attributes.
8295
8296 2014-12-15 Jason Merrill <jason@redhat.com>
8297
8298 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
8299 (-Wsized-deallocation): New.
8300 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
8301 to on in C++14 and up.
8302
8303 2014-12-11 Jason Merrill <jason@redhat.com>
8304
8305 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
8306
8307 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
8308 we aren't complaining about VLAs.
8309
8310 2014-12-06 Marek Polacek <polacek@redhat.com>
8311
8312 PR tree-optimization/64183
8313 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
8314 shift-expression if it is integer_type_node. Use types_compatible_p.
8315
8316 2014-11-29 Jakub Jelinek <jakub@redhat.com>
8317
8318 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
8319 last argument from create_tmp_var_raw and create_tmp_var calls.
8320 * cilk.c (gimplify_cilk_spawn): Likewise.
8321 * c-omp.c (c_finish_omp_atomic): Likewise.
8322
8323 2014-11-28 Marek Polacek <polacek@redhat.com>
8324
8325 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
8326 instead of unsigned_type_node.
8327
8328 2014-11-28 Marek Polacek <polacek@redhat.com>
8329
8330 PR c/63862
8331 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
8332 to op1_utype.
8333 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
8334 expression to unsigned_type_node.
8335
8336 2014-11-20 Mark Wielaard <mjw@redhat.com>
8337
8338 PR debug/38757
8339 * c-opts.c (set_std_c89): Set lang_hooks.name.
8340 (set_std_c99): Likewise.
8341 (set_std_c11): Likewise.
8342 (set_std_cxx98): Likewise.
8343 (set_std_cxx11): Likewise.
8344 (set_std_cxx14): Likewise.
8345 (set_std_cxx1z): Likewise.
8346
8347 2014-11-21 Jakub Jelinek <jakub@redhat.com>
8348
8349 PR target/63764
8350 * c-common.h (convert_vector_to_pointer_for_subscript): Change
8351 return type to bool.
8352 * c-common.c: Include gimple-expr.h.
8353 (convert_vector_to_pointer_for_subscript): Change return type to
8354 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
8355 and copy it into a TARGET_EXPR and use that instead of *vecp
8356 directly.
8357
8358 2014-11-19 David Malcolm <dmalcolm@redhat.com>
8359
8360 Merger of git branch "gimple-classes-v2-option-3".
8361 * ChangeLog.gimple-classes: New.
8362 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
8363 from being just a vec<gimple> to a vec<gbind *>.
8364
8365 2014-11-18 Jakub Jelinek <jakub@redhat.com>
8366
8367 PR sanitizer/63813
8368 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
8369 argument to ptype, set type to TREE_TYPE (ptype). Don't call
8370 get_pointer_alignment for non-pointers. Use ptype, or if it is
8371 reference type, corresponding pointer type, as type of kind
8372 argument.
8373 (ubsan_maybe_instrument_reference,
8374 ubsan_maybe_instrument_member_call): Adjust callers.
8375
8376 2014-11-15 Marek Polacek <polacek@redhat.com>
8377
8378 PR middle-end/63884
8379 * array-notation-common.c (is_sec_implicit_index_fn): Return false
8380 for NULL fndecl.
8381 (extract_array_notation_exprs): Return for NULL node.
8382
8383 2014-11-12 Joseph Myers <joseph@codesourcery.com>
8384
8385 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
8386 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
8387
8388 2014-11-12 Jakub Jelinek <jakub@redhat.com>
8389
8390 PR c/59708
8391 * c-common.c (check_builtin_function_arguments): Handle
8392 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
8393
8394 2014-11-10 Andi Kleen <ak@linux.intel.com>
8395
8396 PR c/60804
8397 * c-common.h (check_no_cilk): Declare.
8398 * cilk.c (get_error_location): New function.
8399 (check_no_cilk): Dito.
8400
8401 2014-11-10 Andi Kleen <ak@linux.intel.com>
8402
8403 * cilk.c (recognize_spawn): Use expression location
8404 for error message.
8405
8406 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
8407
8408 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
8409
8410 2014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
8411
8412 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
8413 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
8414 (__cpp_range_based_for, __cpp_initializer_lists,
8415 __cpp_delegating_constructors, __cpp_nsdmi,
8416 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
8417 for C++11; (__cpp_attribute_deprecated): Remove in favor of
8418 __has_cpp_attribute.
8419 * c-lex.c (cb_has_attribute): New callback CPP function;
8420 (init_c_lex): Set has_attribute callback.
8421
8422 2014-11-04 Richard Biener <rguenther@suse.de>
8423
8424 * c-common.c (shorten_compare): Do not shorten mixed
8425 DFP and non-DFP compares.
8426
8427 2014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
8428
8429 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
8430 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
8431 Commentary and rearrangement of tests.
8432 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
8433 Commentary and rearrangement of tests.
8434 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto.
8435 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
8436
8437 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
8438
8439 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
8440 enum from machine_mode.
8441
8442 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
8443
8444 * c-common.c: Adjust include files.
8445 * c-gimplify.c: Ditto.
8446 * cilk.c: Ditto.
8447 * c-pragma.c: Ditto.
8448 * c-ubsan.c: Ditto.
8449
8450 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
8451
8452 * c-gimplify.c: Adjust include files.
8453
8454 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
8455
8456 PR c++/53061
8457 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
8458 c_common_initialize_diagnostics.
8459 * c-common.h: Likewise.
8460
8461 2014-10-24 Marek Polacek <polacek@redhat.com>
8462
8463 PR c/56980
8464 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
8465 print "struct"/"union"/"enum" for typedefed names.
8466
8467 2014-10-23 Marek Polacek <polacek@redhat.com>
8468
8469 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
8470 in unsigned type.
8471
8472 2014-10-22 Jakub Jelinek <jakub@redhat.com>
8473 Yury Gribov <y.gribov@samsung.com>
8474
8475 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
8476 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
8477 instead of flag_sanitize_recover as bool flag.
8478
8479 2014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
8480
8481 * cilk.c: Revert previous change.
8482
8483 2014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
8484
8485 PR c/63307
8486 * cilk.c: Include vec.h.
8487 (struct cilk_decls): New structure.
8488 (wrapper_parm_cb): Split this function to...
8489 (fill_decls_vec): ...this...
8490 (create_parm_list): ...and this.
8491 (compare_decls): New function.
8492 (for_local_cb): Remove.
8493 (wrapper_local_cb): Ditto.
8494 (build_wrapper_type): For now first traverse and fill vector of
8495 declarations then sort it and then deal with sorted vector.
8496 (cilk_outline): Ditto.
8497 (declare_one_free_variable): Ditto.
8498
8499 2014-10-17 Marek Polacek <polacek@redhat.com>
8500
8501 * c-opts.c (c_common_post_options): Set warn_implicit_int.
8502 * c.opt (Wimplicit-int): Initialize to -1.
8503
8504 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
8505
8506 * c-pragma.c: Adjust include files.
8507 * c-semantics.c: Likewise.
8508
8509 2014-10-16 DJ Delorie <dj@redhat.com>
8510
8511 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
8512 multiples of bytes.
8513
8514 2014-10-14 Jason Merrill <jason@redhat.com>
8515
8516 PR c++/63455
8517 * c-common.h (CPP_PREPARSED_EXPR): New.
8518 (N_CP_TTYPES): Adjust.
8519
8520 2014-10-15 Marek Polacek <polacek@redhat.com>
8521
8522 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
8523
8524 2014-10-14 DJ Delorie <dj@redhat.com>
8525
8526 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
8527 types, not just __int128.
8528 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
8529 types, not just __int128.
8530 (cpp_atomic_builtins): Round pointer sizes up.
8531 (type_suffix): Use type precision, not specific types.
8532 * c-common.c (c_common_reswords): Remove __int128 special case.
8533 (c_common_type_for_size): Check for all __intN types, not just
8534 __int128.
8535 (c_common_type_for_mode): Likewise.
8536 (c_common_signed_or_unsigned_type): Likewise.
8537 (c_build_bitfield_integer_type): Likewise.
8538 (c_common_nodes_and_builtins): Likewise.
8539 (keyword_begins_type_specifier): Likewise.
8540 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
8541 __intN variants.
8542
8543 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
8544
8545 * c-common.c: Use hash_table instead of hashtab.
8546
8547 2014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
8548
8549 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
8550 C++11 section.
8551
8552 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
8553
8554 PR c++/54427
8555 PR c++/57198
8556 PR c++/58845
8557 * c-common.c (warn_logical_operator): Punt for vectors.
8558
8559 2014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
8560
8561 Implement SD-6: SG10 Feature Test Recommendations
8562 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
8563 macros and the __has_header macro.
8564
8565 2014-09-30 Jason Merrill <jason@redhat.com>
8566
8567 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
8568 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
8569 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
8570
8571 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
8572 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
8573
8574 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
8575 * c-common.c (c_common_reswords): Remove __is_convertible_to.
8576
8577 2014-09-24 Marek Polacek <polacek@redhat.com>
8578
8579 PR c/61405
8580 PR c/53874
8581 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
8582
8583 2014-09-23 Andi Kleen <ak@linux.intel.com>
8584
8585 * c-common.c (handle_no_reorder_attribute): New function.
8586 (c_common_attribute_table): Add no_reorder attribute.
8587
8588 2014-09-22 Joseph Myers <joseph@codesourcery.com>
8589
8590 * c-cppbuiltin.c (c_cpp_builtins): Define
8591 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
8592 modes.
8593
8594 2014-09-18 Joseph Myers <joseph@codesourcery.com>
8595
8596 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
8597 for supported floating-point modes.
8598
8599 2014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
8600
8601 * c.opt (Wpsabi): Use LangEnabledBy.
8602 * c-opts.c (c_common_handle_option): Do not handle here.
8603
8604 2014-09-12 Joseph Myers <joseph@codesourcery.com>
8605
8606 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
8607 macros for floating-point modes.
8608
8609 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
8610
8611 PR target/58757
8612 * c-cppbuiltin.c (builtin_define_float_constants): Correct
8613 __*_DENORM_MIN__ without denormals.
8614
8615 2014-09-10 Jakub Jelinek <jakub@redhat.com>
8616
8617 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
8618 ubsan_instrument_vla, ubsan_instrument_return): Adjust
8619 ubsan_create_data callers.
8620 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
8621 index is constant or BIT_AND_EXPR with constant mask and is
8622 small enough for the bound.
8623 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
8624 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
8625
8626 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
8627
8628 * c.opt: Add CppReason to various flags.
8629 (Wdate-time): Re-sort.
8630 * c-common.c: Include c-common.h earlier.
8631 (struct reason_option_codes_t): Delete.
8632 (c_option_controlling_cpp_error): Prefix global type and struct
8633 with cpp_.
8634
8635 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
8636
8637 * c.opt (Wnormalized): New.
8638 (Wnormalized=): Use Enum and Reject Negative.
8639 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
8640
8641 2014-09-08 Joseph Myers <joseph@codesourcery.com>
8642
8643 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
8644 digits of floating-point modes if -fbuilding-libgcc.
8645
8646 2014-09-05 Joseph Myers <joseph@codesourcery.com>
8647
8648 * c-cppbuiltin.c (c_cpp_builtins): Also define
8649 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
8650 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
8651 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
8652 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
8653 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
8654 __LIBGCC_STACK_GROWS_DOWNWARD__,
8655 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
8656 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
8657 __LIBGCC_DWARF_FRAME_REGISTERS__,
8658 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
8659 __LIBGCC_STACK_POINTER_REGNUM__ and
8660 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
8661 (builtin_define_with_value): Handle backslash-escaping in string
8662 macro values.
8663
8664 2014-09-05 Richard Biener <rguenther@suse.de>
8665
8666 PR middle-end/63148
8667 * c-format.c (check_format_arg): Properly handle
8668 effectively signed POINTER_PLUS_EXPR offset.
8669
8670 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
8671
8672 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
8673 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
8674 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
8675 and Init.
8676 * c-opts.c (c_common_handle_option): Do not handle here.
8677 (sanitize_cpp_opts): Likewise.
8678 * c-common.c (struct reason_option_codes_t): Handle
8679 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
8680
8681 2014-09-03 Marek Polacek <polacek@redhat.com>
8682
8683 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
8684
8685 2014-09-02 Jakub Jelinek <jakub@redhat.com>
8686 Balaji V. Iyer <balaji.v.iyer@intel.com>
8687 Igor Zamyatin <igor.zamyatin@intel.com>
8688
8689 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
8690 * c-common.c (c_common_reswords): Added _Cilk_for.
8691 * c-common.h (enum rid): Added RID_CILK_FOR.
8692 (cilk_for_number_of_iterations): Add declaration.
8693 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
8694 CILK_FOR.
8695 * c-pragma.c (init_pragma): Register "grainsize" pragma.
8696 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
8697
8698 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
8699
8700 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
8701 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
8702 Wundef): Use CPP, Var and Init.
8703 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
8704
8705 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
8706
8707 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
8708 * c-opts.c (c_common_handle_option): Do not handle here.
8709
8710 2014-08-25 Jason Merrill <jason@redhat.com>
8711
8712 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
8713 -std=c++14 and -std=gnu++14, rather than the reverse.
8714 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
8715 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
8716 * c-common.h (cxx_dialect): Remove cxx1y.
8717
8718 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
8719
8720 * c-common.h (enum cxx_dialect): Add cxx14.
8721 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
8722 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
8723 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
8724
8725 2014-08-22 Jason Merrill <jason@redhat.com>
8726
8727 * c.opt (std=gnu++17): Fix alias.
8728
8729 2014-08-22 Marek Polacek <polacek@redhat.com>
8730
8731 PR c++/62199
8732 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
8733 check for vector types. Drop LHS argument.
8734 * c-common.h (warn_logical_not_parentheses): Adjust.
8735
8736 2014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
8737
8738 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
8739 (Wmultichar): Likewise.
8740 (Wdate-time): Use C-family languages instead of Common. Use CPP
8741 and Var.
8742 * c-opts.c (c_common_handle_option): Do not handle the above
8743 options here.
8744 (sanitize_cpp_opts): Likewise.
8745
8746 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
8747
8748 PR fortran/44054
8749 * c-opts.c: Include tree-diagnostics.h.
8750 (c_diagnostic_finalizer): New.
8751 (c_common_initialize_diagnostics): Use it.
8752
8753 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
8754
8755 PR preprocessor/51303
8756 * c-common.c (struct reason_option_codes_t option_codes):
8757 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
8758
8759 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
8760
8761 PR c/60975
8762 PR c/53063
8763 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
8764 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
8765 (c_common_post_options): Call init_global_opts_from_cpp.
8766 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
8767
8768 2014-08-19 Marek Polacek <polacek@redhat.com>
8769
8770 PR c++/62153
8771 * c-common.c (maybe_warn_bool_compare): New function.
8772 * c-common.h (maybe_warn_bool_compare): Declare.
8773 * c.opt (Wbool-compare): New option.
8774
8775 2014-08-19 Marek Polacek <polacek@redhat.com>
8776
8777 * c.opt (Wc99-c11-compat): New option.
8778
8779 2014-08-19 Marek Polacek <polacek@redhat.com>
8780
8781 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
8782 to warn_c90_c99_compat.
8783 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
8784 to -1.
8785
8786 2014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
8787 Steven Bosscher <steven@gcc.gnu.org>
8788
8789 PR c/52952
8790 * c-format.c: Add extra_arg_loc and format_string_loc to struct
8791 format_check_results.
8792 (check_function_format): Use true and add comment for boolean
8793 argument.
8794 (finish_dollar_format_checking): Use explicit location when warning.
8795 (check_format_info): Likewise.
8796 (check_format_arg): Set extra_arg_loc and format_string_loc.
8797 (check_format_info_main): Use explicit location when warning.
8798 (check_format_types): Pass explicit location.
8799 (format_type_warning): Likewise.
8800
8801 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
8802
8803 PR fortran/44054
8804 * c-format.c: Handle Fortran flags.
8805
8806 2014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
8807
8808 PR other/61962
8809 * array-notation-common.c (find_rank): Added handling for other
8810 types of references.
8811
8812 2014-08-10 Marek Polacek <polacek@redhat.com>
8813
8814 PR c/51849
8815 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
8816 * c.opt (Wc90-c99-compat): Add option.
8817
8818 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
8819
8820 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
8821
8822 2014-08-03 Marek Polacek <polacek@redhat.com>
8823
8824 * c-common.c (check_case_value): Add location_t parameter. Use it.
8825 (c_add_case_label): Pass loc to check_case_value.
8826
8827 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
8828
8829 * cilk.c: Use hash_map instead of pointer_map.
8830
8831 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
8832
8833 * c-gimplify.c: Use hash_set instead of pointer_set.
8834
8835 2014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
8836
8837 PR middle-end/61455
8838 * array-notation-common.c (extract_array_notation_exprs): Handling
8839 of DECL_EXPR added.
8840
8841 2014-08-01 Jakub Jelinek <jakub@redhat.com>
8842
8843 * c-common.h (min_align_of_type): Removed prototype.
8844 * c-common.c (min_align_of_type): Removed.
8845 * c-ubsan.h (ubsan_maybe_instrument_reference,
8846 ubsan_maybe_instrument_member_call): New prototypes.
8847 * c-ubsan.c: Include stor-layout.h and builtins.h.
8848 (ubsan_maybe_instrument_reference_or_call,
8849 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
8850 functions.
8851
8852 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
8853
8854 PR c++/60517
8855 * c.opt (-Wreturn-local-addr): Move to common.opt.
8856
8857 2014-07-30 Jason Merrill <jason@redhat.com>
8858
8859 PR c++/61659
8860 PR c++/61687
8861 Revert:
8862 * c.opt (-fuse-all-virtuals): New.
8863
8864 2014-07-30 Tom Tromey <tromey@redhat.com>
8865
8866 PR c/59855
8867 * c.opt (Wdesignated-init): New option.
8868 * c-common.c (c_common_attribute_table): Add "designated_init".
8869 (handle_designated_init): New function.
8870
8871 2014-07-24 Marek Polacek <polacek@redhat.com>
8872
8873 PR c/57653
8874 * c-opts.c (c_finish_options): If -imacros is in effect, return.
8875
8876 2014-07-16 Dodji Seketeli <dodji@redhat.com>
8877
8878 PR preprocessor/60723 - missing system-ness marks for macro tokens
8879 * c-ppoutput.c (struct print::prev_was_system_token): New data
8880 member.
8881 (init_pp_output): Initialize it.
8882 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
8883 (do_line_change): Return a flag saying if a line marker was
8884 emitted or not.
8885 (scan_translation_unit): Detect if the system-ness of the token we
8886 are about to emit is different from the one of the previously
8887 emitted token. If so, emit a line marker. Avoid emitting useless
8888 adjacent line markers. Avoid emitting line markers for tokens
8889 originating from the expansion of built-in macros.
8890 (scan_translation_unit_directives_only): Adjust.
8891
8892 2014-07-15 Marek Polacek <polacek@redhat.com>
8893
8894 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
8895 TYPE_MAX_VALUE is NULL.
8896
8897 2014-07-14 Jakub Jelinek <jakub@redhat.com>
8898
8899 PR middle-end/61294
8900 * c.opt (Wmemset-transposed-args): New warning.
8901
8902 2014-07-10 Jason Merrill <jason@redhat.com>
8903
8904 PR c++/61659
8905 PR c++/61687
8906 * c.opt (-fuse-all-virtuals): New.
8907
8908 2014-07-09 Richard Biener <rguenther@suse.de>
8909
8910 PR c-family/61741
8911 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
8912 using unsigned arithmetic if overflow does not wrap instead of
8913 if overflow is undefined.
8914
8915 2014-07-06 Marek Polacek <polacek@redhat.com>
8916
8917 PR c/6940
8918 * c.opt (Wsizeof-array-argument): New option.
8919
8920 2014-07-03 Jakub Jelinek <jakub@redhat.com>
8921
8922 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
8923 comments->count <= 1, as comments->entries might be NULL.
8924
8925 2014-07-01 Marek Polacek <polacek@redhat.com>
8926
8927 * c.opt (Wint-conversion): New option.
8928
8929 2014-07-01 Marek Polacek <polacek@redhat.com>
8930
8931 PR c/58286
8932 * c.opt (Wincompatible-pointer-types): New option.
8933
8934 2014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
8935
8936 PR c++/51400
8937 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
8938 Do not discard TYPE_QUALS of type.
8939
8940 2014-06-26 Jason Merrill <jason@redhat.com>
8941
8942 * c-common.h (enum cxx_dialect): Add cxx1z.
8943 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
8944 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
8945
8946 2014-06-26 Teresa Johnson <tejohnson@google.com>
8947
8948 * c-common.h (get_dump_info): Declare.
8949 * c-gimplify.c (c_genericize): Use saved dump files.
8950 * c-opts.c (c_common_parse_file): Begin and end dumps
8951 once around parsing invocation.
8952 (get_dump_info): New function.
8953
8954 2014-06-23 Marek Polacek <polacek@redhat.com>
8955 Andrew MacLeod <amacleod@redhat.com>
8956
8957 PR c/61553
8958 * c-common.c (get_atomic_generic_size): Don't segfault if the
8959 type doesn't have a size.
8960
8961 2014-06-20 Marek Polacek <polacek@redhat.com>
8962
8963 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
8964 (ubsan_walk_array_refs_r): New function.
8965 (c_genericize): Instrument array bounds.
8966 * c-ubsan.c: Include "internal-fn.h".
8967 (ubsan_instrument_division): Mark instrumented arrays as having
8968 side effects. Adjust ubsan_type_descriptor call.
8969 (ubsan_instrument_shift): Likewise.
8970 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
8971 (ubsan_instrument_bounds): New function.
8972 (ubsan_array_ref_instrumented_p): New function.
8973 (ubsan_maybe_instrument_array_ref): New function.
8974 * c-ubsan.h (ubsan_instrument_bounds): Declare.
8975 (ubsan_array_ref_instrumented_p): Declare.
8976 (ubsan_maybe_instrument_array_ref): Declare.
8977
8978 2014-06-20 Hale Wang <hale.wang@arm.com>
8979
8980 PR lto/61123
8981 * c.opt (fshort-enums): Add to LTO.
8982 * c.opt (fshort-wchar): Likewise.
8983
8984 2014-06-16 Marek Polacek <polacek@redhat.com>
8985
8986 PR c/60439
8987 * c.opt (Wswitch-bool): Add Var.
8988
8989 2014-06-12 Jakub Jelinek <jakub@redhat.com>
8990
8991 PR middle-end/61486
8992 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
8993 #pragma omp target teams or
8994 #pragma omp {,target }teams distribute simd.
8995
8996 2014-06-12 Jason Merrill <jason@redhat.com>
8997
8998 * c.opt (Wabi=, fabi-compat-version): New.
8999 * c-opts.c (c_common_handle_option): Handle -Wabi=.
9000 (c_common_post_options): Handle flag_abi_compat_version default.
9001 Disallow -fabi-compat-version=1.
9002 * c-common.h (abi_version_crosses): New.
9003
9004 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
9005
9006 * c-common.c (handle_section_attribute): Update handling for
9007 section names that are no longer trees.
9008
9009 2014-06-10 Jakub Jelinek <jakub@redhat.com>
9010
9011 PR fortran/60928
9012 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
9013 (omp_pragmas): ... back here.
9014
9015 2014-06-05 Marek Polacek <polacek@redhat.com>
9016
9017 PR c/49706
9018 * c-common.c (warn_logical_not_parentheses): New function.
9019 * c-common.h (warn_logical_not_parentheses): Declare.
9020 * c.opt (Wlogical-not-parentheses): New option.
9021
9022 2014-06-04 Marek Polacek <polacek@redhat.com>
9023
9024 PR c/30020
9025 * c-common.c (check_case_bounds): Add location parameter.
9026 Use it.
9027 (c_add_case_label): Pass loc to check_case_bounds.
9028
9029 2014-06-03 Marek Polacek <polacek@redhat.com>
9030
9031 PR c/60439
9032 * c.opt (Wswitch-bool): New option.
9033
9034 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
9035
9036 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
9037 Remove prototypes.
9038 (record_types_used_by_current_var_decl): Move prototype to where
9039 it belongs.
9040
9041 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
9042 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
9043 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
9044
9045 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
9046
9047 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
9048 * c-common.c (c_common_nodes_and_builtins): Don't initialize
9049 void_zero_node.
9050 * c-pretty-print.c (pp_c_void_constant): New function.
9051 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
9052 (c_pretty_printer::expression): Handle VOID_CST.
9053 * cilk.c (extract_free_variables): Likewise.
9054 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
9055 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
9056
9057 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
9058
9059 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
9060 * c-pragma.c (push_alignment): Adjust.
9061 (handle_pragma_push_options): Likewise.
9062
9063 2014-05-09 Marek Polacek <polacek@redhat.com>
9064
9065 PR c/50459
9066 * c-common.c (check_user_alignment): Return -1 if alignment is error
9067 node.
9068 (handle_aligned_attribute): Don't call default_conversion on
9069 FUNCTION_DECLs.
9070 (handle_vector_size_attribute): Likewise.
9071 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
9072 (handle_sentinel_attribute): Call default_conversion and allow even
9073 integral types as an argument.
9074
9075 2014-05-08 Marek Polacek <polacek@redhat.com>
9076
9077 PR c/61053
9078 * c-common.c (min_align_of_type): New function factored out from...
9079 (c_sizeof_or_alignof_type): ...here.
9080 * c-common.h (min_align_of_type): Declare.
9081
9082 2014-05-08 Marek Polacek <polacek@redhat.com>
9083
9084 PR c/61077
9085 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
9086 parameter type of main.
9087
9088 2014-05-07 DJ Delorie <dj@redhat.com>
9089
9090 * c-cppbuiltin.c (print_bits_of_hex): New.
9091 (builtin_define_type_minmax): Print values using hex so as not to
9092 require a pre-computed list of string values.
9093
9094 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
9095 Mike Stump <mikestump@comcast.net>
9096 Richard Sandiford <rdsandiford@googlemail.com>
9097
9098 * c-ada-spec.c: Include wide-int.h.
9099 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
9100 (dump_generic_ada_node): Use wide-int interfaces.
9101 * c-common.c: Include wide-int-print.h.
9102 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
9103 (pointer_int_sum): Use wide-int interfaces.
9104 (c_common_nodes_and_builtins): Use make_int_cst.
9105 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
9106 (handle_alloc_size_attribute): Use wide-int interfaces.
9107 (get_nonnull_operand): Likewise.
9108 * c-format.c (get_constant): Use tree_fits_uhwi_p.
9109 * c-lex.c: Include wide-int.h.
9110 (narrowest_unsigned_type): Take a widest_int rather than two
9111 HOST_WIDE_INTs.
9112 (narrowest_signed_type): Likewise.
9113 (interpret_integer): Update accordingly. Use wide-int interfaces.
9114 (lex_charconst): Use wide-int interfaces.
9115 * c-pretty-print.c: Include wide-int.h.
9116 (pp_c_integer_constant): Use wide-int interfaces.
9117 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
9118 INT_CST_LT_UNSIGNED.
9119
9120 2014-05-06 Richard Biener <rguenther@suse.de>
9121
9122 * c-opts.c (c_common_post_options): For -freestanding,
9123 -fno-hosted and -fno-builtin disable pattern recognition
9124 if not enabled explicitely.
9125
9126 2014-05-02 Marek Polacek <polacek@redhat.com>
9127
9128 * c.opt (Wsizeof-pointer-memaccess): Describe option.
9129
9130 2014-05-01 Marek Polacek <polacek@redhat.com>
9131
9132 PR c/43245
9133 * c.opt (Wdiscarded-qualifiers): Add.
9134
9135 2014-04-30 Marek Polacek <polacek@redhat.com>
9136
9137 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
9138 INT_MIN / -1 sanitization only for integer types.
9139
9140 2014-04-25 Marek Polacek <polacek@redhat.com>
9141
9142 PR c/18079
9143 * c-common.c (handle_noinline_attribute): Warn if the attribute
9144 conflicts with always_inline attribute.
9145 (handle_always_inline_attribute): Warn if the attribute conflicts
9146 with noinline attribute.
9147
9148 2014-04-25 Marek Polacek <polacek@redhat.com>
9149
9150 PR c/60156
9151 * c-common.c (check_main_parameter_types): Warn about variadic main.
9152
9153 2014-04-24 Mike Stump <mikestump@comcast.net>
9154
9155 * c.opt (Wshadow-ivar): Default to on.
9156
9157 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
9158
9159 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
9160
9161 2014-04-23 Marek Polacek <polacek@redhat.com>
9162
9163 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
9164
9165 2014-04-22 Jakub Jelinek <jakub@redhat.com>
9166
9167 PR sanitizer/60275
9168 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
9169 if flag_sanitize_undefined_trap_on_error.
9170 (ubsan_instrument_division, ubsan_instrument_shift,
9171 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
9172 if !flag_sanitize_recover.
9173
9174 2014-04-22 Marc Glisse <marc.glisse@inria.fr>
9175
9176 PR libstdc++/43622
9177 * c-common.c (registered_builtin_types): Make non-static.
9178 * c-common.h (registered_builtin_types): Declare.
9179
9180 2014-04-14 Richard Biener <rguenther@suse.de>
9181 Marc Glisse <marc.glisse@inria.fr>
9182
9183 PR c/60819
9184 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
9185 apply may-alias the scalar pointer type when applicable.
9186
9187 2014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
9188
9189 PR middle-end/60467
9190 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
9191 as possible argument for Cilk_spawn.
9192
9193 2014-04-11 Tobias Burnus <burnus@net-b.de>
9194
9195 PR c/60194
9196 * c.opt (Wformat-signedness): Add
9197 * c-format.c(check_format_types): Use it.
9198
9199 2014-04-11 Jason Merrill <jason@redhat.com>
9200
9201 PR c++/57926
9202 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
9203 default_conversion for an array argument.
9204
9205 2014-04-08 Marek Polacek <polacek@redhat.com>
9206
9207 PR sanitizer/60745
9208 * c-ubsan.c: Include asan.h.
9209 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
9210
9211 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
9212
9213 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
9214
9215 2014-04-02 Marek Polacek <polacek@redhat.com>
9216
9217 * c-common.h (c_expand_expr): Remove declaration.
9218
9219 2014-03-28 Jakub Jelinek <jakub@redhat.com>
9220
9221 PR c++/60689
9222 * c-common.c (add_atomic_size_parameter): When creating new
9223 params vector, push the size argument first.
9224
9225 2014-03-26 Jakub Jelinek <jakub@redhat.com>
9226
9227 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
9228 ubsan_instrument_vla, ubsan_instrument_return): Adjust
9229 ubsan_create_data callers.
9230
9231 2014-03-22 Jakub Jelinek <jakub@redhat.com>
9232
9233 PR debug/60603
9234 * c-opts.c (c_finish_options): Restore cb_file_change call to
9235 <built-in>.
9236
9237 2014-03-13 Jakub Jelinek <jakub@redhat.com>
9238
9239 PR middle-end/36282
9240 * c-pragma.c (apply_pragma_weak): Only look at
9241 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
9242 DECL_ASSEMBLER_NAME_SET_P (decl).
9243 (maybe_apply_pending_pragma_weaks): Exit early if
9244 vec_safe_is_empty (pending_weaks) rather than only when
9245 !pending_weaks.
9246 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
9247 set assembler name back to NULL afterwards.
9248
9249 2014-03-11 Jason Merrill <jason@redhat.com>
9250
9251 * c.opt: Add -std=gnu++14.
9252
9253 2014-03-11 Ian Bolton <ian.bolton@arm.com>
9254
9255 * c-opts.c (c_common_post_options): Don't override
9256 -ffp-contract=fast if unsafe-math-optimizations is on.
9257
9258 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
9259
9260 * c.opt: Enable LTO FE for fshort-double.
9261
9262 2014-03-07 Jason Merrill <jason@redhat.com>
9263
9264 * c.opt: Add -std=c++14.
9265
9266 2014-03-06 Marek Polacek <polacek@redhat.com>
9267
9268 PR c/60197
9269 * cilk.c (contains_cilk_spawn_stmt): New function.
9270 (contains_cilk_spawn_stmt_walker): Likewise.
9271 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
9272 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
9273
9274 2014-03-03 Jakub Jelinek <jakub@redhat.com>
9275
9276 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
9277 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
9278 even when flag_preprocess_only.
9279
9280 2014-02-26 Jason Merrill <jason@redhat.com>
9281
9282 PR c++/59231
9283 PR c++/11586
9284 * c-common.c (shorten_compare): Don't check
9285 c_inhibit_evaluation_warnings.
9286
9287 2014-02-19 Jakub Jelinek <jakub@redhat.com>
9288
9289 PR c/37743
9290 * c-common.c (c_common_nodes_and_builtins): When initializing
9291 c_uint{16,32,64}_type_node, also set corresponding
9292 uint{16,32,64}_type_node to the same value.
9293
9294 PR c++/60267
9295 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
9296 for PRAGMA_IVDEP if flag_preprocess_only.
9297
9298 2014-02-12 Jakub Jelinek <jakub@redhat.com>
9299
9300 PR c/60101
9301 * c-common.c (merge_tlist): If copy is true, call new_tlist,
9302 if false, add ADD itself, rather than vice versa.
9303 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
9304 copy. For SAVE_EXPR, only call merge_tlist once.
9305
9306 2014-02-08 Jakub Jelinek <jakub@redhat.com>
9307
9308 PR middle-end/60092
9309 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
9310 and tree_to_uhwi.
9311 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
9312 functions.
9313 (c_common_attribute_table): Add alloc_align and assume_aligned
9314 attributes.
9315
9316 2014-02-06 Marek Polacek <polacek@redhat.com>
9317
9318 PR c/60087
9319 * c-common.c (warn_for_sign_compare): Call warning_at with location
9320 instead of warning.
9321
9322 2014-02-05 Marek Polacek <polacek@redhat.com>
9323
9324 PR c/53123
9325 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
9326 statement.
9327
9328 2014-02-04 Marek Polacek <polacek@redhat.com>
9329
9330 PR c/60036
9331 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
9332 SAVE_EXPR.
9333
9334 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
9335
9336 PR c++/53017
9337 PR c++/59211
9338 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
9339 handle_vector_size_attribute, handle_nonnull_attribute): Call
9340 default_conversion on the attribute argument.
9341 (handle_nonnull_attribute): Increment the argument number.
9342
9343 2014-01-31 Marek Polacek <polacek@redhat.com>
9344
9345 PR c/59963
9346 * c-common.c (add_atomic_size_parameter): Pass vNULL to
9347 build_function_call_vec.
9348 (resolve_overloaded_builtin): Likewise.
9349 * c-common.h (build_function_call_vec): Adjust declaration.
9350
9351 2014-01-30 Marek Polacek <polacek@redhat.com>
9352
9353 PR c/59940
9354 * c-common.h (unsafe_conversion_p): Adjust declaration.
9355 (warnings_for_convert_and_check): Likewise.
9356 (convert_and_check): Likewise.
9357 * c-common.c (unsafe_conversion_p): Add location parameter. Call
9358 expansion_point_location_if_in_system_header on it.
9359 (warnings_for_convert_and_check): Add location parameter. Call
9360 expansion_point_location_if_in_system_header on it. Use it.
9361 (convert_and_check): Add location parameter. Use it.
9362 (conversion_warning): Likewise.
9363 (c_add_case_label): Adjust convert_and_check calls.
9364 (scalar_to_vector): Adjust unsafe_conversion_p calls.
9365
9366 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
9367
9368 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
9369 flag_cilkplus.
9370 * c-pragma.c (init_pragma): Likewise.
9371 * c.opt: Likewise.
9372
9373 2014-01-23 Marek Polacek <polacek@redhat.com>
9374
9375 PR c/59846
9376 * c-common.c (shorten_compare): Add location_t parameter.
9377 * c-common.h (shorten_binary_op): Adjust declaration.
9378
9379 2014-01-23 Marek Polacek <polacek@redhat.com>
9380
9381 PR c/58346
9382 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
9383 * c-common.h: Declare it.
9384
9385 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
9386
9387 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
9388 * c-ada-spec.c (dump_ads): Likewise.
9389 (cpp_check): Likewise.
9390 (dump_ada_specs): Likewise.
9391
9392 2014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
9393
9394 PR c++/49718
9395 * c-common.c (handle_no_instrument_function_attribute): Allow
9396 no_instrument_function attribute in class member
9397 definition/declaration.
9398
9399 2014-01-15 Jakub Jelinek <jakub@redhat.com>
9400
9401 PR c/58943
9402 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
9403 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
9404 being COMPOUND_EXPR.
9405 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
9406 operand a SAVE_EXPR and second MODIFY_EXPR.
9407
9408 2014-01-09 Jakub Jelinek <jakub@redhat.com>
9409
9410 PR target/58115
9411 * c-pch.c (c_common_write_pch): Call
9412 prepare_target_option_nodes_for_pch.
9413
9414 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
9415
9416 Update copyright years
9417
9418 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
9419
9420 * array-notation-common.c, c-cilkplus.c: Use the standard form for
9421 the copyright notice.
9422
9423 2013-12-28 Eric Botcazou <ebotcazou@adacore.com>
9424
9425 * c-ada-spec.c (print_constructor): New function.
9426 (print_destructor): Retrieve the origin of the destructor.
9427 (print_ada_declaration): Revamp handling of constructors/destructors.
9428
9429 2013-12-23 Stuart Hastings <stuart@apple.com>
9430 Bill Maddox <maddox@google.com>
9431 Jason Merrill <jason@redhat.com>
9432
9433 * c.opt: Add -fdeclone-ctor-dtor.
9434 * c-opts.c (c_common_post_options): Default to on iff -Os.
9435
9436 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
9437
9438 * c-common.c (c_common_attribute_table): Added "cilk simd function"
9439 attribute.
9440 * c-pragma.h (enum pragma_cilk_clause): Remove.
9441 (enum pragma_omp_clause): Added the following fields:
9442 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
9443 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
9444 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
9445 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
9446 PRAGMA_CILK_CLAUSE_UNIFORM.
9447
9448
9449 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
9450
9451 * cilk.c (cilk_outline): Made this function non-static.
9452 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
9453 (create_cilk_wrapper): Added a new parameter: a function pointer.
9454 (c_install_body_w_frame_cleanup): Remove
9455 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
9456 * c-common.h (cilk_outline): New prototype.
9457 (gimplify_cilk_spawn): Removed two parameters.
9458 (cilk_install_body_with_frame_cleanup): New prototype.
9459 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
9460 CILK_SPAWN_STMT case.
9461
9462 2013-12-11 Bernd Schmidt <bernds@codesourcery.com>
9463
9464 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
9465
9466 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
9467 (int_array_type_node): Remove.
9468 * c-common.c (c_common_nodes_and_builtins): Don't build it.
9469
9470 2013-12-05 Marek Polacek <polacek@redhat.com>
9471
9472 PR c/52023
9473 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
9474 [ADJUST_FIELD_ALIGN].
9475
9476 2013-12-04 Joseph Myers <joseph@codesourcery.com>
9477
9478 PR c/52023
9479 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
9480 and check field alignment if set.
9481 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
9482 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
9483
9484 2013-12-04 Jakub Jelinek <jakub@redhat.com>
9485 Marek Polacek <polacek@redhat.com>
9486
9487 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
9488 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
9489
9490 2013-11-29 H.J. Lu <hongjiu.lu@intel.com>
9491
9492 PR c/59309
9493 * cilk.c (gimplify_cilk_spawn): Properly handle function without
9494 arguments.
9495
9496 2013-11-29 Jakub Jelinek <jakub@redhat.com>
9497
9498 PR c/59280
9499 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
9500 goto invalid. If it is error_mark_node, don't issue further
9501 diagnostics.
9502
9503 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
9504
9505 * c.opt (Wopenmp-simd): New.
9506
9507 2013-11-22 Jakub Jelinek <jakub@redhat.com>
9508
9509 * c-ubsan.h (ubsan_instrument_return): New prototype.
9510 * c-ubsan.c (ubsan_instrument_return): New function.
9511
9512 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
9513
9514 * c-common.c: Add required include files from gimple.h.
9515 * c-gimplify.c: Likewise.
9516 * cilk.c: Likewise.
9517
9518 2013-11-22 David Malcolm <dmalcolm@redhat.com>
9519
9520 * c-common.c (unsafe_conversion_p): Remove use of
9521 EXPR_LOC_OR_HERE macro.
9522 (conversion_warning): Likewise.
9523 (warnings_for_convert_and_check): Likewise.
9524 (warn_for_collisions_1): Likewise.
9525 (shorten_compare): Likewise, and remove use of in_system_header
9526 macro, using the location from the former.
9527 * c-lex.c (dump_one_header): Remove use of input_filename macro.
9528 (cb_def_pragma): Remove use of in_system_header macro.
9529 (lex_string): Likewise.
9530 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
9531
9532 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
9533 Mike Stump <mikestump@comcast.net>
9534 Richard Sandiford <rdsandiford@googlemail.com>
9535
9536 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
9537 instead of TREE_INT_CST_LOW, in cases where there is a protecting
9538 tree_fits_shwi_p or tree_fits_uhwi_p.
9539 (dump_generic_ada_node): Likewise.
9540 * c-format.c (check_format_arg): Likewise.
9541 * c-pretty-print.c (pp_c_integer_constant): Likewise.
9542
9543 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
9544
9545 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
9546
9547 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
9548
9549 PR c/53001
9550 * c-common.c (unsafe_conversion_p): Make this function
9551 return an enumeration with more detail.
9552 (conversion_warning): Use the new return type of
9553 unsafe_conversion_p to separately warn either about conversions
9554 that lower floating point number precision or about the other
9555 kinds of conversions.
9556 * c-common.h (enum conversion_safety): New enumeration.
9557 (unsafe_conversion_p): switching return type to
9558 conversion_safety enumeration.
9559 * c.opt: Adding new warning -Wfloat-conversion and
9560 enabling it with -Wconversion.
9561
9562 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
9563
9564 * c-opts.c: Include plugin.h.
9565 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
9566
9567 2013-11-19 Marek Polacek <polacek@redhat.com>
9568
9569 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
9570 call.
9571 (ubsan_instrument_shift): Likewise.
9572 (ubsan_instrument_vla): Likewise.
9573
9574 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
9575
9576 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
9577 cast to unsigned type.
9578
9579 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
9580
9581 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
9582 tree_low_cst.
9583 (complete_array_type): Update comment to refer to tree_to_[su]hwi
9584 rather than tree_low_cst.
9585
9586 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
9587
9588 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
9589 tree_to_uhwi throughout.
9590
9591 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
9592
9593 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
9594 tree_low_cst (..., 0) with tree_to_shwi throughout.
9595
9596 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
9597
9598 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
9599 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
9600
9601 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
9602
9603 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
9604 host_integerp (..., 0) with tree_fits_shwi_p throughout.
9605
9606 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
9607
9608 * c-cilkplus.c: New file.
9609 * c-common.c (readonly_error): Add location argument.
9610 * c-common.h (readonly_error): Same.
9611 (c_finish_cilk_clauses): Protoize.
9612 (c_check_cilk_loop): Same.
9613 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
9614 Do not fail on error_mark_node.
9615 Abstract increment canonicalization to here...
9616 (c_omp_for_incr_canonicalize_ptr): New.
9617 c-pragma.c (init_pragma): Register "simd" pragma.
9618 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
9619 (enum pragma_cilk_clause): New.
9620
9621 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
9622
9623 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
9624 wchar_type and host_integerp checks.
9625
9626 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
9627
9628 * c-common.c: Likewise.
9629 * c-gimplify.c: Likewise.
9630 * cilk.c: Likewise.
9631
9632 2013-11-14 Diego Novillo <dnovillo@google.com>
9633
9634 * c-common.c: Include fold-const.h.
9635 Include stor-layout.h.
9636 Include calls.h.
9637 Include stringpool.h.
9638 Include attribs.h.
9639 Include varasm.h.
9640 Include trans-mem.h.
9641 * c-cppbuiltin.c: Include stor-layout.h.
9642 Include stringpool.h.
9643 * c-format.c: Include stringpool.h.
9644 * c-lex.c: Include stringpool.h.
9645 Include stor-layout.h.
9646 * c-pragma.c: Include stringpool.h.
9647 Include attribs.h.
9648 Include varasm.h.
9649 Include gcc-symtab.h.
9650 * c-pretty-print.c: Include stor-layout.h.
9651 Include attribs.h.
9652 * cilk.c: Include stringpool.h.
9653 Include calls.h.
9654
9655 2013-11-13 Joseph Myers <joseph@codesourcery.com>
9656
9657 * c-common.h (enum rid): Add RID_AUTO_TYPE.
9658 * c-common.c (c_common_reswords): Add __auto_type.
9659 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
9660
9661 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
9662
9663 * c-common.c: Include gimplify.h.
9664 * c-gimplify.c: Likewise.
9665 * cilk.c: Likewise.
9666 * c-omp.c: Include gimple-expr.h instead of gimple.h.
9667 * c-ubsan.c: Don't include gimple.h.
9668
9669 2013-11-12 Joseph Myers <joseph@codesourcery.com>
9670
9671 * c-common.c (c_common_reswords): Add _Thread_local.
9672
9673 2013-11-09 Joseph Myers <joseph@codesourcery.com>
9674
9675 * c-common.c (atomic_size_supported_p): New function.
9676 (resolve_overloaded_atomic_exchange)
9677 (resolve_overloaded_atomic_compare_exchange)
9678 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
9679 Use it instead of comparing size with a local list of sizes.
9680
9681 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
9682 Joseph Myers <joseph@codesourcery.com>
9683
9684 * c-common.h (enum rid): Add RID_ATOMIC.
9685 * c-common.c (c_common_reswords): Add _Atomic.
9686 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
9687 (keyword_is_type_qualifier): Accept RID_ATOMIC.
9688 * c-format.c (check_format_types): Check for extra _Atomic
9689 qualifiers in format argument.
9690 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
9691 (pp_c_type_qualifier_list): Mention _Atomic in comment.
9692
9693 2013-11-06 Tobias Burnus <burnus@net-b.de>
9694
9695 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
9696
9697 2013-11-06 Joseph Myers <joseph@codesourcery.com>
9698
9699 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
9700 standards modes.
9701 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
9702 to mean lack of IEEE 754 support.
9703
9704 2013-11-05 Tobias Burnus <burnus@net-b.de>
9705
9706 * c.opt (-Wdate-time): New option
9707 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
9708
9709 2013-11-05 Joseph Myers <joseph@codesourcery.com>
9710
9711 * c-cppbuiltin.c (cpp_iec_559_value): Test
9712 flag_excess_precision_cmdline not flag_excess_precision.
9713
9714 2013-11-05 Tobias Burnus <burnus@net-b.de>
9715
9716 * c.opt (fopenmp-simd): New option.
9717 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
9718 (omp_pragmas): ... this new struct.
9719 (c_pp_lookup_pragma): Also walk omp_pragmas.
9720 (init_pragma): Init pragmas for -fopenmp-simd.
9721
9722 2013-11-04 Marek Polacek <polacek@redhat.com>
9723
9724 PR c++/58979
9725 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
9726
9727 2013-11-04 Joseph Myers <joseph@codesourcery.com>
9728
9729 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
9730 New functions.
9731 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
9732
9733 2013-11-04 Eric Botcazou <ebotcazou@adacore.com>
9734
9735 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
9736 (dump_ada_specs): Adjust prototype of second callback.
9737 * c-ada-spec.c (cpp_check): New global variable.
9738 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
9739 (print_generic_ada_decl): Likewise.
9740 (has_static_fields): Change return type to bool and add guard.
9741 (has_nontrivial_methods): New predicate.
9742 (is_tagged_type): Change return type to bool.
9743 (separate_class_package): Call has_nontrivial_methods.
9744 (pp_ada_tree_identifier): Minor tweaks.
9745 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
9746 (dump_ada_array_domains): Likewise.
9747 (dump_ada_array_type): Likewise.
9748 (dump_template_types): Remove cpp_check parameter and do not pass it to
9749 dump_generic_ada_node.
9750 (dump_ada_template): Likewise.
9751 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
9752 recursively.
9753 (print_ada_methods): Change return type to integer. Remove cpp_check
9754 parameter and do not pass it down.
9755 (dump_nested_types): Remove cpp_check parameter and do not pass it to
9756 dump_generic_ada_node.
9757 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
9758 accessing methods.
9759 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
9760 down. Use has_nontrivial_methods to recognize C++ classes. Use return
9761 value of print_ada_methods.
9762 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
9763 Set cpp_check to it before invoking dump_ada_nodes.
9764 (dump_ada_specs): Likewise.
9765
9766 2013-11-03 Marek Polacek <polacek@redhat.com>
9767
9768 * c-ubsan.c: Don't include hash-table.h.
9769 (ubsan_instrument_vla): New function.
9770 * c-ubsan.h: Declare it.
9771
9772 2013-10-31 David Malcolm <dmalcolm@redhat.com>
9773
9774 Automated part of renaming of symtab_node_base to symtab_node.
9775
9776 Patch autogenerated by rename_symtab.py from
9777 https://github.com/davidmalcolm/gcc-refactoring-scripts
9778 revision 58bb219cc090b2f4516a9297d868c245495ee622
9779
9780 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
9781 symtab_node_base to symtab_node.
9782
9783 2013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
9784
9785 Implement C++14 digit separators.
9786 * c-lex.c (interpret_float): Remove digit separators from scratch string
9787 before building real literal.
9788
9789 2013-10-30 Jakub Jelinek <jakub@redhat.com>
9790
9791 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
9792
9793 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
9794
9795 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
9796 fields.
9797 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
9798 enabled.
9799 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
9800 (insert_cilk_frame): New prototype.
9801 (cilk_init_builtins): Likewise.
9802 (gimplify_cilk_spawn): Likewise.
9803 (c_cilk_install_body_w_frame_cleanup): Likewise.
9804 (cilk_detect_spawn_and_unwrap): Likewise.
9805 (cilk_set_spawn_marker): Likewise.
9806 (build_cilk_sync): Likewise.
9807 (build_cilk_spawn): Likewise.
9808 * cilk.c: New file.
9809
9810 2013-10-29 David Malcolm <dmalcolm@redhat.com>
9811
9812 Patch autogenerated by refactor_symtab.py from
9813 https://github.com/davidmalcolm/gcc-refactoring-scripts
9814 revision 58bb219cc090b2f4516a9297d868c245495ee622
9815
9816 * c-gimplify.c (c_genericize): Update for conversion of symtab types
9817 to a true class hierarchy.
9818 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
9819
9820 2013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
9821
9822 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
9823
9824 2013-10-26 Jeff Law <law@redhat.com>
9825
9826 * c-common.c (c_define_builtins): Remove mudflap support.
9827 * c.opt: Ignore and warn for mudflap options.
9828
9829 2013-10-24 Tobias Burnus <burnus@net-b.de>
9830
9831 PR other/33426
9832 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
9833 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
9834
9835 2013-10-23 Jason Merrill <jason@redhat.com>
9836
9837 * c-format.c (gcc_cxxdiag_char_table): Add %X.
9838
9839 2013-10-11 Jakub Jelinek <jakub@redhat.com>
9840
9841 * c-common.h (omp_clause_mask::operator !=): New method.
9842 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
9843 instead of if (mask & something) tests everywhere.
9844
9845 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
9846 201307 instead of 201107.
9847 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
9848 (c_common_attribute_table): Add "omp declare target" and
9849 "omp declare simd" attributes.
9850 (handle_omp_declare_target_attribute,
9851 handle_omp_declare_simd_attribute): New functions.
9852 * c-omp.c: Include c-pragma.h.
9853 (c_finish_omp_taskgroup): New function.
9854 (c_finish_omp_atomic): Add swapped argument, if true,
9855 build the operation first with rhs, lhs arguments and use NOP_EXPR
9856 build_modify_expr.
9857 (c_finish_omp_for): Add code argument, pass it down to make_code.
9858 (c_omp_split_clauses): New function.
9859 (c_split_parallel_clauses): Removed.
9860 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
9861 c_omp_declare_simd_clauses_to_decls): New functions.
9862 * c-common.h (omp_clause_mask): New type.
9863 (OMP_CLAUSE_MASK_1): Define.
9864 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
9865 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
9866 omp_clause_mask::operator |, omp_clause_mask::operator &,
9867 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
9868 omp_clause_mask::operator ==): New methods.
9869 (enum c_omp_clause_split): New.
9870 (c_finish_omp_taskgroup): New prototype.
9871 (c_finish_omp_atomic): Add swapped argument.
9872 (c_finish_omp_for): Add code argument.
9873 (c_omp_split_clauses): New prototype.
9874 (c_split_parallel_clauses): Removed.
9875 (c_omp_declare_simd_clauses_to_numbers,
9876 c_omp_declare_simd_clauses_to_decls): New prototypes.
9877 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
9878 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
9879 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
9880 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
9881 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
9882 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
9883 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
9884 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
9885 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
9886 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
9887 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
9888 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
9889 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
9890 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
9891 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
9892 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
9893 PRAGMA_OMP_CLAUSE_UNIFORM.
9894
9895 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
9896
9897 PR tree-optimization/20318
9898 * c-common.c (handle_returns_nonnull_attribute): New function.
9899 (c_common_attribute_table): Add returns_nonnull.
9900
9901 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
9902
9903 PR c++/19476
9904 * c.opt (fcheck-new): Move to common.opt.
9905
9906 2013-09-25 Marek Polacek <polacek@redhat.com>
9907 Jakub Jelinek <jakub@redhat.com>
9908
9909 PR sanitizer/58413
9910 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
9911 an expression if we can prove it is correct.
9912 (ubsan_instrument_division): Likewise. Remove unnecessary
9913 check.
9914
9915 2013-09-18 Marek Polacek <polacek@redhat.com>
9916
9917 PR sanitizer/58411
9918 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
9919 Declare it.
9920 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
9921
9922 2013-09-14 Iain Sandoe <iain@codesourcery.com>
9923
9924 PR target/48094
9925 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
9926 fobjc-gc, freplace-objc-classes): Accept for LTO.
9927
9928 2013-09-13 Jacek Caban <jacek@codeweavers.com>
9929
9930 * c-target.def: New hook
9931
9932 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
9933
9934 PR c++/43452
9935 * c.opt (Wdelete-incomplete): Add.
9936
9937 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
9938
9939 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
9940 (vector_types_compatible_elements_p): New function.
9941 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
9942 declaration.
9943 (vector_types_compatible_elements_p): Declare.
9944
9945 2013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
9946
9947 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
9948 a virtual member function.
9949 (pp_simple_type_specifier): Remove.
9950 (pp_c_type_specifier): Likewise.
9951 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
9952 Rename from pp_c_type_specifier. Adjust.
9953 (c_pretty_printer::c_pretty_printer): Do not assign to
9954 simple_type_specifier.
9955
9956 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
9957
9958 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
9959 member function.
9960 (c_pretty_printer::storage_class_specifier): Likewise.
9961 (c_pretty_printer::initializer): Likewise.
9962 (pp_declaration): Remove.
9963 (pp_declaration_specifiers): Likewise.
9964 (pp_abstract_declarator): Likewise.
9965 (pp_declarator): Likewise.
9966 (pp_type_id): Likewise.
9967 (pp_statement): Likewise.
9968 (pp_constant): Likewise.
9969 (pp_id_expression): Likewise.
9970 (pp_primary_expression): Likewise.
9971 (pp_unary_expression): Likewise.
9972 (pp_multiplicative_expression): Likewise.
9973 (pp_conditional_expression): Likewise.
9974 (pp_assignment_expression): Likewise.
9975 (pp_expression): Likewise.
9976 (pp_c_type_id): Likewise.
9977 (pp_c_storage_class_specifier): Likewise.
9978 * c-pretty-print.c (pp_c_type_cast): Tidy.
9979 (pp_c_pointer): Likewise.
9980 (pp_c_type_specifier): Likewise.
9981 (pp_c_parameter_type_list): Likewise.
9982 (pp_c_function_definition): Likewise.
9983 (pp_c_init_declarator): Likewise.
9984 (pp_c_initializer_list): Likewise.
9985 (pp_c_constructor_elts): Likewise.
9986 (c_pretty_printer::direct_abstract_declarator): Likewise.
9987 (c_pretty_printer::declaration_specifiers): Likewise.
9988 (c_pretty_printer::primary_expression): Likewise.
9989 (c_pretty_printer::postfix_expression): Likewise.
9990 (c_pretty_printer::type_id): Rename from pp_c_type_id.
9991 (c_pretty_printer::storage_class_specifier): Rename from
9992 pp_c_storage_class_specifier.
9993 (c_pretty_printer::initializer): Rename from pp_c_initializer.
9994 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
9995 storage_class_specifier, initializer, offset_list, flags.
9996
9997 2013-08-30 Marek Polacek <polacek@redhat.com>
9998
9999 * c-ubsan.c: New file.
10000 * c-ubsan.h: New file.
10001
10002 2013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
10003
10004 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
10005 member function.
10006 (c_pretty_printer::declaration_specifiers): Likewise.
10007 (c_pretty_printer::declarator): Likewise.
10008 (c_pretty_printer::abstract_declarator): Likewise.
10009 (c_pretty_printer::direct_abstract_declarator): Likewise.
10010 (c_pretty_printer::direct_declarator): Likewise.
10011 (c_pretty_printer::function_specifier): Likewise.
10012 (pp_declaration): Adjust.
10013 (pp_declaration_specifiers): Likewise.
10014 (pp_abstract_declarator): Likewise.
10015 (pp_direct_declarator): Likewise.
10016 (pp_function_specifier): Likewise.
10017 (pp_direct_abstract_declarator): Remove as unused.
10018 (pp_c_declaration): Remove.
10019 (pp_c_declaration_specifiers): Likewise.
10020 (pp_c_declarator): Likewise.
10021 (pp_c_direct_declarator): Likewise.
10022 (pp_c_function_specifier): Likewise.
10023 (pp_c_direct_abstract_declarator): Likewise.
10024 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
10025 from pp_c_abstract_declarator. Adjust.
10026 (c_pretty_printer::direct_abstract_declarator): Rename from
10027 pp_c_direct_abstract_declarator. Adjust.
10028 (c_pretty_printer::function_specifier): Rename from
10029 pp_c_function_specifier. Adjust.
10030 (c_pretty_printer::declaration_specifiers): Rename from
10031 pp_c_declaration_specifiers. Adjust.
10032 (c_pretty_printer::direct_declarator): Rename from
10033 pp_c_direct_declarator. Adjust.
10034 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
10035 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
10036 (c_pretty_printer::c_pretty_printer): Do not assign to
10037 declaration, declaration_specifiers, declarator,
10038 direct_declarator, direct_abstract_declarator, function_specifier.
10039
10040 2013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
10041
10042 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
10043 virtual member function.
10044 (c_pretty_printer::multiplicative_expression): Likewise.
10045 (c_pretty_printer::conditional_expression): Likewise.
10046 (c_pretty_printer::assignment_expression): Likewise.
10047 (c_pretty_printer::expression): Likewise.
10048 (pp_unary_expression): Adjust.
10049 (pp_multiplicative_expression): Likewise.
10050 (pp_assignment_expression): Likewise.
10051 (pp_conditional_expression): Likewise.
10052 (pp_expression): Likewise.
10053 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
10054 from pp_c_unary_expression. Adjust.
10055 (c_pretty_printer::multiplicative_expression): Rename from
10056 pp_c_multiplicative_expression. Adjust.
10057 (c_pretty_printer::conditional_expression): Rename from
10058 pp_c_conditional_expression. Adjust.
10059 (c_pretty_printer::assignment_expression): Rename from
10060 pp_c_assignment_expression. Adjust.
10061 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
10062 (c_pretty_printer::c_pretty_printer): Do not assign to
10063 unary_expression, multiplicative_expression,
10064 conditional_expression, expression.
10065
10066 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
10067
10068 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
10069 virtual member function.
10070 (pp_postfix_expression): Adjust.
10071 (pp_c_postfix_expression): Remove.
10072 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
10073 from pp_c_postfix_expression. Adjust.
10074 (c_pretty_printer::c_pretty_printer): Do not assign to
10075 postfix_expression.
10076
10077 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
10078
10079 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
10080 virtua member function.
10081 (pp_primary_expression): Adjust.
10082 (pp_c_primary_expression): Remove.
10083 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
10084 from pp_c_primary_expression. Adjust.
10085 (pp_c_initializer_list): Use pp_primary_expression.
10086 (c_pretty_printer::c_pretty_printer): Do not assign to
10087 primary_expression.
10088
10089 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
10090
10091 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
10092 * c-pretty-print.c (M_): Remove.
10093 (c_pretty_printer::translate_string): Define.
10094 (pp_c_type_specifier): Use it.
10095 (pp_c_primary_expression): Likewise.
10096 (pp_c_expression): Likewise.
10097
10098 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
10099
10100 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
10101 virtual function.
10102 (pp_c_id_expression): Remove.
10103 (pp_id_expression): Adjust.
10104 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
10105 pp_c_id_expression. Adjust.
10106 (pp_c_postfix_expression): Use pp_id_expression.
10107 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
10108
10109 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
10110
10111 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
10112 member function.
10113 (pp_constant): Adjust.
10114 (pp_c_constant): Remove.
10115 * c-pretty-print.c (c_pretty_printer::constant): Rename from
10116 pp_c_constant. Adjust.
10117 (pp_c_constant)
10118 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
10119 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
10120
10121 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
10122
10123 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
10124 (c_pretty_printer::c_pretty_printer): Declare.
10125 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
10126 c_pretty_printer_init. Adjust.
10127 (print_c_tree): Do not call c_pretty_printer_init.
10128 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
10129
10130 2013-08-09 Arnaud Charlet <charlet@adacore.com>
10131
10132 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
10133
10134 2013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
10135
10136 PR c++/58080
10137 * c-common.c (pointer_int_sum): Add bool parameter.
10138 * c-common.h (pointer_int_sum): Adjust declaration.
10139
10140 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
10141
10142 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
10143 c_pretty_printer variable.
10144
10145 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
10146
10147 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
10148 (pp_base): Remove.
10149 (pp_c_base): Likewise. Adjust users.
10150 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
10151 (pp_c_whitespace): Do not call pp_base.
10152 (pp_c_left_paren): Likewise.
10153 (pp_c_right_paren): Likewise.
10154 (pp_c_left_brace): Likewise.
10155 (pp_c_right_brace): Likewise.
10156 (pp_c_left_bracket): Likewise.
10157 (pp_c_right_bracket): Likewise.
10158 (pp_c_dot): Likewise.
10159 (pp_c_ampersand): Likewise.
10160 (pp_c_star): Likewise.
10161 (pp_c_arrow): Likewise.
10162 (pp_c_semicolon): Likewise.
10163 (pp_c_complement): Likewise.
10164 (pp_c_exclamation): Likewise.
10165 (pp_c_direct_declarator): Likewise.
10166 (pp_c_ws_string): Likewise.
10167 (pp_c_identifier): Likewise.
10168 (pp_c_statement): Likewise.
10169 (print_c_tree): Likewise.
10170
10171 2013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
10172
10173 PR c++/58072
10174 * c-common.c (c_parse_error): Catch user-defined literal tokens and
10175 provide useful error strings.
10176
10177 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
10178
10179 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
10180 printer functions instead of pp_string or operators and punctuators.
10181 (dump_generic_ada_node): Likewise.
10182 * c-pretty-print.c (pp_c_type_specifier): Likewise.
10183 (pp_c_relational_expression): Likewise.
10184 (pp_c_logical_or_expression): Likewise.
10185
10186 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
10187
10188 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
10189 functions instead of pp_character.
10190 (pp_ada_tree_identifier): Likewise.
10191 (dump_ada_double_name): Likewise.
10192 (dump_ada_function_declaration): Likewise.
10193 (dump_ada_array_domains): Likewise.
10194 (dump_template_types): Likewise.
10195 (dump_generic_ada_node): Likewise.
10196 (print_ada_declaration): Likewise.
10197 (print_ada_struct_decl): Likewise.
10198 * c-pretty-print.c (pp_c_integer_constant): Likewise.
10199
10200 2013-07-23 Tom Tromey <tromey@redhat.com>
10201
10202 * c-common.h (enum rid) <RID_GENERIC>: New constant.
10203 * c-common.c (c_common_reswords): Add _Generic.
10204
10205 2013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
10206
10207 * c-common.c: Fix typos.
10208 * c-common.h: Likewise.
10209
10210 2013-07-13 Lubos Lunak <l.lunak@suse.cz>
10211
10212 PR c++/55203
10213 * c-common.c (c_common_attribute_table): Add warn_unused.
10214 (handle_warn_unused_attribute): New.
10215
10216 2013-07-10 Jakub Jelinek <jakub@redhat.com>
10217
10218 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
10219 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
10220
10221 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
10222
10223 PR c++/57869
10224 * c.opt: Add Wconditionally-supported.
10225
10226 2013-07-08 Graham Stott <graham.stott@btinternet.com>
10227
10228 * array-notation-common.c (length_mismatch_in_expr_p): Delete
10229 unused variables l_length and l_node.
10230
10231 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
10232
10233 PR c/57821
10234 * c-common.c (complete_array_type): Delay folding first index
10235 like other indices. When folding, check for index overflow.
10236
10237 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
10238
10239 PR c++/57509
10240 * c-common.h (c_build_vec_perm_expr): New complain argument.
10241 * c-common.c (c_build_vec_perm_expr): Likewise.
10242 Use save_expr also in C++.
10243
10244 2013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
10245
10246 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
10247 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
10248 * c-opts.c (c_common_post_options): Likewise.
10249
10250 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
10251
10252 * array-notation-common.c (length_mismatch_in_expr): Changed the
10253 parameter type's from a dynamic array to a vec_tree. Also removed
10254 the size parameters.
10255 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
10256 the change above.
10257
10258 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
10259
10260 * c-common.h (struct cilkplus_an_parts): New structure.
10261 (struct cilkplus_an_loop_parts): Likewise.
10262 (cilkplus_extract_an_triplets): New prototype.
10263 (fix_sec_implicit_args): Likewise.
10264 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
10265 (fix_sec_implicit_args): Likewise.
10266
10267 2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
10268
10269 * array-notation-common.c (find_inv_trees): Removed an unwanted
10270 typecasting.
10271 * c-common.h (struct inv_list::additional_tcodes): Changed type from
10272 enum rid to enum tree_code.
10273
10274 2013-06-11 Jan Hubicka <jh@suse.cz>
10275
10276 * c-common.c (handle_alias_ifunc_attribute): Do not set
10277 DECL_EXTERNAL for weakref variables.
10278 * c-pragma.c (handle_pragma_weak): Make sure aliases
10279 are not declared as external.
10280
10281 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
10282
10283 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
10284 function from c/c-array-notation.c.
10285 (is_cilkplus_reduce_builtin): Likewise.
10286 (find_rank): Likewise.
10287 (extract_array_notation_exprs): Likewise.
10288 (replace_array_notations): Likewise.
10289 (find_inv_trees): Likewise.
10290 (replace_inv_trees): Likewise.
10291 (contains_array_notation_expr): Likewise.
10292 (find_correct_array_notation_type): Likewise.
10293 * c-common.h (struct inv_list): Moved this struct from the file
10294 c/c-array-notation.c and added a new field called additional tcodes.
10295 (length_mismatch_in_expr_p): New prototype.
10296 (is_cilkplus_reduce_builtin): Likewise.
10297 (find_rank): Likewise.
10298 (extract_array_notation_exprs): Likewise.
10299 (replace_array_notation): Likewise.
10300 (find_inv_trees): Likewise.
10301 (replace_inv_trees): Likewise.
10302 (find_correct_array_notation_type): Likewise.
10303
10304 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
10305
10306 * c-common.c (c_define_builtins): When cilkplus is enabled, the
10307 function array_notation_init_builtins is called.
10308 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
10309 * c-common.def (ARRAY_NOTATION_REF): New tree.
10310 * c-common.h (build_array_notation_expr): New function declaration.
10311 (build_array_notation_ref): Likewise.
10312 (extract_sec_implicit_index_arg): New extern declaration.
10313 (is_sec_implicit_index_fn): Likewise.
10314 (ARRAY_NOTATION_CHECK): New define.
10315 (ARRAY_NOTATION_ARRAY): Likewise.
10316 (ARRAY_NOTATION_START): Likewise.
10317 (ARRAY_NOTATION_LENGTH): Likewise.
10318 (ARRAY_NOTATION_STRIDE): Likewise.
10319 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
10320 ARRAY_NOTATION_REF.
10321 (pp_c_expression): Likewise.
10322 * c.opt (flag_enable_cilkplus): New flag.
10323 * array-notation-common.c: New file.
10324
10325 2013-05-14 Jakub Jelinek <jakub@redhat.com>
10326
10327 PR c++/57274
10328 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
10329
10330 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
10331
10332 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
10333 vectors.
10334
10335 2013-05-07 Han Shen <shenhan@google.com>
10336
10337 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
10338
10339 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
10340
10341 * c-common.c (check_user_alignment): Emit error for negative values.
10342
10343 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
10344
10345 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
10346
10347 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
10348
10349 * c-cppbuiltin.c (c_cpp_builtins): Do not define
10350 __GXX_EXPERIMENTAL_CXX1Y__.
10351
10352 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
10353 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10354
10355 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
10356 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
10357 to simply use OPT_Wpointer_arith.
10358 (c_sizeof_or_alignof_type): Likewise.
10359
10360 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
10361
10362 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
10363
10364 2013-04-12 Jakub Jelinek <jakub@redhat.com>
10365
10366 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
10367 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
10368 specifiers.
10369
10370 2013-04-07 Steven Bosscher <steven@gcc.gnu.org>
10371
10372 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
10373
10374 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
10375
10376 * c-common.c (pointer_int_sum): Remove dead code.
10377
10378 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
10379
10380 PR middle-end/56524
10381 * c-common.c (handle_optimize_attribute): Don't call
10382 save_optabs_if_changed.
10383
10384 2013-03-05 Jakub Jelinek <jakub@redhat.com>
10385
10386 PR middle-end/56461
10387 * c-pch.c (pch_init): Free target_validity at the end.
10388
10389 2013-03-04 Jakub Jelinek <jakub@redhat.com>
10390
10391 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
10392
10393 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
10394 Jakub Jelinek <jakub@redhat.com>
10395
10396 PR sanitizer/56454
10397 * c-common.c (handle_no_sanitize_address_attribute): New function.
10398 (c_common_attribute_table): Add no_sanitize_address attribute.
10399 (handle_no_address_safety_analysis_attribute): Add
10400 no_sanitize_address attribute, not no_address_safety_analysis
10401 attribute.
10402
10403 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
10404
10405 PR target/52555
10406 * c-common.c (handle_optimize_attribute): Call
10407 save_optabs_if_changed.
10408
10409 2013-02-18 Jakub Jelinek <jakub@redhat.com>
10410 Steven Bosscher <steven@gcc.gnu.org>
10411
10412 PR pch/54117
10413 * c-opts.c (c_common_post_options): If debug info is enabled
10414 and non-dwarf*, refuse to load PCH files and when writing PCH
10415 file warn.
10416
10417 2013-02-05 Jakub Jelinek <jakub@redhat.com>
10418
10419 PR middle-end/56167
10420 * c-common.c (handle_error_attribute): Fix condition.
10421
10422 2013-01-30 Jakub Jelinek <jakub@redhat.com>
10423
10424 PR c++/55742
10425 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
10426
10427 2013-01-18 Jason Merrill <jason@redhat.com>
10428
10429 PR target/54908
10430 * c.opt (-fextern-tls-init): New.
10431 * c-opts.c (c_common_post_options): Handle it.
10432
10433 2013-01-09 Jakub Jelinek <jakub@redhat.com>
10434
10435 PR c/48418
10436 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
10437 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
10438 and is either negative or bigger or equal to type precision
10439 of the first operand.
10440
10441 2012-12-03 Marek Polacek <polacek@redhat.com>
10442
10443 PR c/55570
10444 * c-common.c (check_user_alignment): Swap order of tests,
10445 check TREE_CODE first.
10446
10447 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
10448
10449 PR c++/52654
10450 * c-common.h (overflow_type): New enum.
10451 (build_userdef_literal): Add overflow_type argument.
10452 (tree_userdef_literal): Add overflow_type.
10453 (USERDEF_LITERAL_OVERFLOW): New access macro.
10454 * c-common.c (build_userdef_literal): Add overflow_type
10455 argument.
10456 * c-lex.c (c_lex_with_flags): Add overflow_type to
10457 build_userdef_literal calls.
10458 (interpret_integer, interpret_float): Add overflow_type argument.
10459
10460 2012-11-28 Richard Biener <rguenther@suse.de>
10461
10462 PR c/35634
10463 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
10464 here and use a type with proper overflow behavior for types that would
10465 need to be promoted for the arithmetic.
10466
10467 2012-11-23 Jakub Jelinek <jakub@redhat.com>
10468
10469 PR sanitizer/55435
10470 * c-common.c (handle_no_address_safety_analysis_attribute): New
10471 function.
10472 (c_common_attribute_table): Add no_address_safety_analysis.
10473
10474 2012-11-16 Simon Baldwin <simonb@google.com>
10475
10476 * c.opt: Add f[no-]canonical-system-headers.
10477 * c-opts.c (c_common_handle_option): Handle
10478 OPT_fcanonical_system_headers.
10479
10480 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
10481
10482 PR c++/54413
10483 * c-opts.c (c_common_handle_option): Set new flags.
10484 * c.opt: Describe new flags.
10485
10486 2012-11-09 Jason Merrill <jason@redhat.com>
10487
10488 * c.opt (Wabi-tag): New.
10489
10490 2012-11-09 Andi Kleen <ak@linux.intel.com>
10491
10492 PR 55139
10493 * c-common.c (get_atomic_generic_size): Mask with
10494 MEMMODEL_MASK
10495
10496 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
10497
10498 PR c/53063
10499 * c.opt (Wformat): Make it Alias Wformat=1.
10500 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
10501 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
10502 LangEnabledBy.
10503 (Wformat=): RejectNegative. Use LangEnabledBy.
10504 (Wnonnull): Use LangEnabledBy.
10505 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
10506 * c-format.c (set_Wformat): Delete.
10507 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
10508 (maybe_read_dollar_number): Likewise.
10509 (avoid_dollar_number): Likewise.
10510 (finish_dollar_format_checking): Likewise.
10511 (check_format_info): Likewise.
10512 (check_format_info_main): Likewise.
10513 (check_format_types): Likewise.
10514 (format_type_warning): Likewise.
10515 * c-common.c (int): Likewise.
10516 (check_function_sentinel): Likewise.
10517 * c-common.h (warn_format,set_Wformat): Do not declare here.
10518
10519 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
10520
10521 PR c/53063
10522 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
10523 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
10524 Use LangEnabledBy.
10525 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
10526 common.opt.
10527 (Wvariadic-macros): Init(1).
10528 * c-opts.c (c_common_handle_option): Do not handle them
10529 explicitly.
10530 (c_common_post_options): Likewise.
10531 (sanitize_cpp_opts): warn_unused_macros is now
10532 cpp_warn_unused_macros.
10533 (push_command_line_include): Likewise.
10534 * c-common.c (warn_unknown_pragmas): Do not define.
10535 * c-common.h (warn_unknown_pragmas): Do not declare.
10536
10537 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
10538
10539 PR c/51294
10540 * c-common.c (conversion_warning): Handle conditional expressions.
10541
10542 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
10543
10544 PR c++/54930
10545 * c.opt (Wreturn_local_addr): Define new option.
10546
10547 2012-10-25 Jason Merrill <jason@redhat.com>
10548
10549 * c.opt (Wvirtual-move-assign): New.
10550
10551 * c.opt (Winherited-variadic-ctor): New.
10552
10553 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
10554
10555 PR c++/54427
10556 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
10557
10558 2012-10-23 Joseph Myers <joseph@codesourcery.com>
10559
10560 * c-common.h (pch_cpp_save_state): Declare.
10561 * c-target.def (c_preinclude): New hook.
10562 * c-opts.c (done_preinclude): New.
10563 (push_command_line_include): Handle default preincluded header.
10564 (cb_file_change): Call pch_cpp_save_state when calling
10565 push_command_line_include.
10566 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
10567 (pch_cpp_save_state): New.
10568 (pch_init): Call pch_cpp_save_state conditionally, instead of
10569 calling cpp_save_state.
10570
10571 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
10572
10573 PR c/53063
10574 PR c/40989
10575 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
10576 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
10577 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
10578 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
10579 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
10580 * c-opts.c (c_common_handle_option): Remove explicit handling from
10581 here.
10582 (c_common_post_options): Likewise.
10583
10584 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
10585
10586 * c-ada-spec.c (LOCATION_COL): Delete.
10587 (compare_location): New function.
10588 (compare_node): Use it.
10589 (compare_comment): Likewise.
10590
10591 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
10592
10593 PR c/53063
10594 PR c/40989
10595 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
10596 * c-opts.c (c_common_handle_option): Do not set them here. Add
10597 comment.
10598 (c_common_post_options): Likewise.
10599
10600 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
10601
10602 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
10603 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
10604 Remove POINTER_TYPE handling, add large unsigned handling and use
10605 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
10606
10607 2012-10-12 Jakub Jelinek <jakub@redhat.com>
10608
10609 PR c/54381
10610 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
10611 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
10612 locs and array of 3 trees instead of just single loc and single
10613 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
10614 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
10615 For *cmp* builtins that take two sources strings report warnings
10616 about first and second source, not about destination and source.
10617
10618 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
10619
10620 PR c++/53055
10621 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
10622
10623 2012-10-11 Eric Botcazou <ebotcazou@adacore.com>
10624
10625 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
10626 declaring something coming from another file.
10627
10628 2012-10-10 Arnaud Charlet <charlet@adacore.com>
10629
10630 PR ada/54845
10631 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
10632
10633 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
10634
10635 PR c++/54194
10636 * c-common.c (warn_about_parentheses): Add location_t parameter;
10637 use EXPR_LOC_OR_LOC.
10638 * c-common.h: Update declaration.
10639
10640 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
10641
10642 PR c++/54427
10643 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
10644 more operations. Make error messages optional.
10645 * c-common.h (enum stv_conv): Moved from c-typeck.c.
10646 (scalar_to_vector): Declare.
10647
10648 2012-10-08 Jason Merrill <jason@redhat.com>
10649
10650 * c-common.c (c_common_reswords): Add thread_local.
10651
10652 2012-10-08 Dodji Seketeli <dodji@redhat.com>
10653
10654 PR c++/53528 C++11 attribute support
10655 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
10656 new functions.
10657 * c-common.c (check_cxx_fundamental_alignment_constraints): New
10658 static function.
10659 (handle_aligned_attribute): In choose strictest alignment
10660 among many. Use new check_cxx_fundamental_alignment_constraints.
10661 (handle_transparent_union_attribute): In c++11 attribute syntax,
10662 don't look through typedefs.
10663
10664 2012-10-04 Arnaud Charlet <charlet@adacore.com>
10665
10666 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
10667 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
10668 out of dumpfile.h.
10669
10670 2012-09-25 Dehao Chen <dehao@google.com>
10671
10672 PR middle-end/54645
10673 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
10674 map when read in the pch.
10675
10676 2012-09-18 Arnaud Charlet <charlet@adacore.com>
10677
10678 * c-ada-spec.c: Style fixes.
10679
10680 2012-09-18 Thomas Quinot <quinot@adacore.com>
10681
10682 * c.opt (-fada-spec-parent): Define new command line switch.
10683 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
10684 is specified, generate binding spec as a child of the specified unit.
10685
10686 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
10687 Manuel López-Ibáñez <manu@gcc.gnu.org>
10688
10689 PR c++/53210
10690 * c.opt ([Winit-self]): Enabled by -Wall in C++.
10691
10692 2012-08-23 Arnaud Charlet <charlet@adacore.com>
10693
10694 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
10695 for pointers, and add missing Convention C pragma.
10696 (print_ada_struct_decl): Add missing aliased keyword.
10697 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
10698
10699 2012-08-17 Jakub Jelinek <jakub@redhat.com>
10700
10701 * c-common.c (sizeof_pointer_memaccess_warning): New function.
10702 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
10703 * c-opts.c (c_common_handle_option): Enable it for -Wall.
10704 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
10705 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
10706
10707 2012-08-10 Richard Guenther <rguenther@suse.de>
10708
10709 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
10710
10711 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
10712
10713 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
10714 instead of separate pp_newline and pp_flush.
10715 (print_c_tree): Likewise.
10716
10717 2012-07-26 Richard Henderson <rth@redhat.com>
10718
10719 * c-common.c (handle_hot_attribute): Allow labels.
10720 (handle_cold_attribute): Likewise.
10721
10722 2012-07-20 Jakub Jelinek <jakub@redhat.com>
10723
10724 PR c++/28656
10725 * c-common.c (check_function_nonnull): Handle multiple nonnull
10726 attributes properly.
10727
10728 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
10729
10730 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
10731 * c-ada-spec.c: Likewise.
10732 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
10733
10734 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
10735
10736 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
10737 Remove code conditional on it.
10738
10739 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
10740
10741 * c-gimplify.c: Do not include basic-block.h.
10742 * c-common.c: Do not include linfuncs.h.
10743
10744 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
10745
10746 * c-common.h: Include tree.h.
10747
10748 2012-07-02 Jason Merrill <jason@redhat.com>
10749
10750 PR c++/53524
10751 * c-common.c (get_priority): Call default_conversion.
10752
10753 2012-07-01 Uros Bizjak <ubizjak@gmail.com>
10754
10755 * c-pch.c (c_common_write_pch): Remove unused variables.
10756
10757 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
10758
10759 * cppspec.c: Moved from gcc/ to here.
10760
10761 2012-06-27 Kai Tietz <ktietz@redhat.com>
10762
10763 PR preprocessor/37215
10764 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
10765
10766 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
10767
10768 * c-common.h (c_common_print_pch_checksum): Remove.
10769 * c-pch.c: Do not include output.h.
10770 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
10771 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
10772 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
10773 (struct c_pch_header): Remove.
10774 (get_ident): Update gpch version.
10775 (pch_init): Do not print executable_checksum to asm_out_file.
10776 Do not fail if there is no asm_out_file to read back from. Set
10777 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
10778 (c_common_write_pch): Verify that nothing was written to asm_out_file
10779 since pch_init was called. Do not write a c_pch_header, and do not
10780 copy from asm_out_file to the PCH.
10781 (c_common_read_pch): Do not read a c_pch_header, and do not restore
10782 the content of asm_out_file from the PCH.
10783 (c_common_print_pch_checksum): Remove.
10784 * c-opts.c (c_common_init): Print out executable_checksum directly.
10785
10786 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
10787
10788 * c-target.def (objc_declare_unresolved_class_reference,
10789 objc_declare_class_definition): Add new hooks.
10790
10791 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
10792
10793 * c-lex.c: Do not include output.h.
10794 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
10795 Remove uses of ASM_OUTPUT_IDENT.
10796
10797 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
10798
10799 PR c++/51033
10800 * c-common.h (c_build_vec_perm_expr): Move decl here.
10801 * c-common.c (c_build_vec_perm_expr): Move definition
10802 here.
10803
10804 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
10805
10806 * c.opt (fconserve-space): Turn into a no-op.
10807
10808 2012-06-04 Sterling Augustine <saugustine@google.com>
10809
10810 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
10811 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
10812 both the start and end of the function.
10813
10814 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
10815
10816 * c-common.c: Do not include output.h.
10817 * c-pragma.c: Likewise.
10818
10819 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
10820
10821 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
10822 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
10823 (lang_decl_name): Handle namespace decls.
10824
10825 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
10826
10827 * c-ada-spec.c: Do not include output.h.
10828 * c-semantics.c: Likewise.
10829
10830 2012-05-29 Joseph Myers <joseph@codesourcery.com>
10831
10832 * c-common.c: Fix typo.
10833
10834 2012-05-29 Michael Matz <matz@suse.de>
10835
10836 * c-common.h (c_expand_decl): Remove prototype.
10837
10838 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
10839
10840 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
10841 * c-opts.c (c_common_handle_option): Remove code handling
10842 warn_missing_braces.
10843
10844 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
10845
10846 PR c++/25137
10847 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
10848 -Wmissing_braces.
10849
10850 2012-05-22 Dodji Seketeli <dodji@redhat.com>
10851
10852 PR c++/53322
10853 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
10854
10855 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
10856
10857 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
10858 * c-opts.c (c_common_handle_option): Do not handle explicitly
10859 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
10860
10861 2012-05-16 Dodji Seketeli <dodji@redhat.com>
10862
10863 PR preprocessor/7263
10864 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
10865 to cpp_classify_number. For diagnostics, use the precise location
10866 instead of the global input_location.
10867
10868 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
10869
10870 PR c++/11856
10871 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
10872
10873 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
10874
10875 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
10876
10877 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
10878
10879 PR 53063
10880 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
10881 Wreorder): Use LangEnabledBy.
10882 * c-opts.c (c_common_handle_option): Do not enable them
10883 explicitly. Call lang-specific generated functions.
10884 (c_common_post_options): Do not set them here.
10885
10886 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
10887
10888 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
10889 Wmissing-field-initializers,Wmissing-parameter-type,
10890 Wold-style-declaration,Woverride-init): Use EnabledBy.
10891 * c-opts.c (c_common_post_options): Do not set here explicitly.
10892
10893 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
10894
10895 PR 53063
10896 * c-opts.c (c_common_handle_option): Use handle_generated_option
10897 to enable sub-options.
10898
10899 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
10900
10901 PR c++/53158
10902 * c-common.c (warnings_for_convert_and_check): Use warning_at.
10903
10904 2012-05-10 Richard Guenther <rguenther@suse.de>
10905
10906 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
10907 adjust commentary about TYPE_IS_SIZETYPE types.
10908
10909 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
10910
10911 PR c++/53261
10912 * c-common.c (warn_logical_operator): Check that argument of
10913 integer_zerop is not NULL.
10914
10915 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
10916
10917 PR c/43772
10918 * c-common.c (warn_logical_operator): Do not warn if either side
10919 is already true or false.
10920
10921 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
10922
10923 PR c/51712
10924 * c-common.c (expr_original_type): New.
10925 (shorten_compare): Do not warn for enumeration types.
10926
10927 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
10928
10929 * c.opt (fpermissive): Add Var(flag_permissive).
10930
10931 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
10932
10933 PR c++/51033
10934 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
10935 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
10936
10937 2012-04-30 Dodji Seketeli <dodji@redhat.com>
10938
10939 Add -Wvarargs option
10940 * c.opt (Wvarargs): Define new option.
10941
10942 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
10943
10944 * c-common.c (check_function_arguments): Replace
10945 Wmissing-format-attribute with Wsuggest-attribute=format.
10946
10947 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
10948
10949 * c.opt (Wsuggest-attribute=format): New. Alias of
10950 Wmissing-format-attribute.
10951 * c-format.c (decode_format_type): Replace
10952 Wmissing-format-attribute with Wsuggest-attribute=format.
10953 (check_function_format): Likewise.
10954
10955 2012-04-27 Ollie Wild <aaw@google.com>
10956
10957 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
10958 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
10959 * c.opt: Add Wliteral-suffix.
10960
10961 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
10962
10963 PR c/44774
10964 * c.opt (Wpedantic): New.
10965 (pedantic): Alias Wpedantic.
10966 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
10967 (c_common_post_options): Likewise.
10968 (sanitize_cpp_opts): Likewise.
10969 * c-lex.c (interpret_float): Likewise.
10970 * c-format.c (check_format_types): Likewise.
10971 * c-common.c (pointer_int_sum): Likewise.
10972 (c_sizeof_or_alignof_type): Likewise.
10973 (c_add_case_label): Likewise.
10974 (c_do_switch_warnings): Likewise.
10975 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
10976
10977 2012-04-15 Jason Merrill <jason@redhat.com>
10978
10979 PR c++/52818
10980 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
10981 (C_STD_NAME): Distinguish between C++98 and C++11.
10982
10983 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
10984
10985 PR target/52624
10986 * c-common.h (uint16_type_node): Rename into...
10987 (c_uint16_type_node): ...this.
10988 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
10989 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
10990
10991 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
10992
10993 * c-common.c (warn_if_unused_value): Move definition to here.
10994 * c-common.h (warn_if_unused_value): Move declaration to here.
10995
10996 2012-03-23 William Bader <williambader@hotmail.com>
10997
10998 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
10999
11000 2012-03-20 Jason Merrill <jason@redhat.com>
11001
11002 * c-common.h (enum cxx_dialect): Add cxx1y.
11003 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
11004 test.
11005 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
11006 * c-opts.c (c_common_post_options): Likewise.
11007 (set_std_cxx1y): New.
11008 (c_common_handle_option): Call it.
11009 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
11010
11011 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
11012
11013 PR c++/14710
11014 * c.opt ([Wuseless-cast]): Add.
11015
11016 2012-03-16 Richard Guenther <rguenther@suse.de>
11017
11018 * c-pretty-print.c (pp_c_initializer_list): Adjust.
11019
11020 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
11021
11022 PR c++/44783
11023 * c.opt (ftemplate-backtrace-limit) Add.
11024
11025 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11026
11027 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
11028 handling.
11029 * c-pragma.c (handle_pragma_extern_prefix): Remove.
11030 (init_pragma): Don't register extern_prefix.
11031
11032 2012-03-12 Richard Guenther <rguenther@suse.de>
11033
11034 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
11035 (builtin_type_for_size): Likewise.
11036
11037 2012-02-13 Jakub Jelinek <jakub@redhat.com>
11038
11039 PR c++/52215
11040 * c-common.c (sync_resolve_params): Don't decide whether to convert
11041 or not based on TYPE_SIZE comparison, convert whenever arg_type
11042 is unsigned INTEGER_TYPE.
11043
11044 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
11045
11046 PR c/52118
11047 * c.opt ([Wunused-local-typedefs]): Fix description.
11048
11049 2012-01-24 Mike Stump <mikestump@comcast.net>
11050
11051 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
11052 exactly.
11053
11054 2012-01-18 Richard Guenther <rguenther@suse.de>
11055
11056 * c-opts.c (c_common_post_options): Reset LTO flags if
11057 we are about to generate a PCH.
11058
11059 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
11060
11061 PR c++/51777
11062 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
11063 use pp_unsigned_wide_integer.
11064
11065 2012-01-10 Richard Guenther <rguenther@suse.de>
11066
11067 PR middle-end/51806
11068 * c-opts.c (c_common_handle_option): Move -Werror handling
11069 to language independent code.
11070
11071 2012-01-05 Richard Guenther <rguenther@suse.de>
11072
11073 PR middle-end/51764
11074 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
11075 from common.opt.
11076
11077 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
11078
11079 PR c++/51316
11080 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
11081 of array types with an unknown bound.
11082
11083 2011-12-20 Joseph Myers <joseph@codesourcery.com>
11084
11085 * c-common.c (flag_isoc99): Update comment to refer to C11.
11086 (flag_isoc1x): Change to flag_isoc11.
11087 * c-common.h (flag_isoc99): Update comment to refer to C11.
11088 (flag_isoc1x): Change to flag_isoc11.
11089 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
11090 C11.
11091 * c-opts.c (set_std_c1x): Change to set_std_c11.
11092 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
11093 Call set_std_c11.
11094 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
11095 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
11096 * c.opt (std=c1x): Change to std=c11. Document as non-draft
11097 standard.
11098 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
11099 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
11100 (std=gnu1x): Make alias of std=gnu11.
11101
11102 2011-12-19 Jason Merrill <jason@redhat.com>
11103
11104 PR c++/51228
11105 * c-common.c (handle_transparent_union_attribute): Check the first
11106 field if the type is complete.
11107
11108 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
11109
11110 PR libstdc++/51365
11111 * c-common.c (RID_IS_FINAL): Add.
11112 * c-common.h (RID_IS_FINAL): Add.
11113
11114 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
11115
11116 * c.opt (fgnu-runtime): Provide full description.
11117 (fnext-runtime): Likewise.
11118 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
11119
11120 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
11121
11122 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
11123 predefines in one place. Add LOCK_FREE predefines.
11124 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
11125 new func.
11126
11127 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
11128
11129 PR c/51256
11130 * c-common.c (get_atomic_generic_size): Check for various error
11131 conditions
11132 (resolve_overloaded_atomic_exchange,
11133 resolve_overloaded_atomic_compare_exchange,
11134 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
11135 error_mark_node for error conditions.
11136
11137 2011-11-08 Richard Guenther <rguenther@suse.de>
11138
11139 PR middle-end/51010
11140 * c-pretty-print.c (pp_c_expression): Handle SSA_NAMEs.
11141
11142 2011-11-07 Richard Henderson <rth@redhat.com>
11143 Aldy Hernandez <aldyh@redhat.com>
11144 Torvald Riegel <triegel@redhat.com>
11145
11146 Merged from transactional-memory.
11147
11148 * c-common.c (handle_tm_wrap_attribute,
11149 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
11150 (struct c_common_reswords): Added __transaction* keywords.
11151 (struct c_common_attribute_table): Added transaction* and tm_regparm
11152 attributes.
11153 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
11154 masks.
11155 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
11156 find_tm_attribute): Declare.
11157
11158 2011-11-07 Jason Merrill <jason@redhat.com>
11159
11160 PR c++/35688
11161 * c-common.c, c-common.h: Revert yesterday's changes.
11162
11163 2011-11-06 Jason Merrill <jason@redhat.com>
11164
11165 PR c++/35688
11166 * c-common.c (decl_has_visibility_attr): Split out from...
11167 (c_determine_visibility): ...here.
11168 * c-common.h: Declare it.
11169
11170 2011-11-06 Joseph Myers <joseph@codesourcery.com>
11171
11172 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
11173 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
11174 type.
11175 (check_user_alignment): New. Split out of
11176 handle_aligned_attribute. Disallow integer constants with
11177 noninteger types. Conditionally allow zero.
11178 (handle_aligned_attribute): Use check_user_alignment.
11179 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
11180
11181 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
11182 Richard Henderson <rth@redhat.com>
11183
11184 Merged from cxx-mem-model.
11185
11186 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
11187 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
11188 parameters that are the same type size.
11189 (get_atomic_generic_size): New. Find size of generic
11190 atomic function parameters and do typechecking.
11191 (add_atomic_size_parameter): New. Insert size into parameter list.
11192 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
11193 either __atomic_exchange_n or external library call.
11194 (resolve_overloaded_atomic_compare_exchange): Restructure
11195 __atomic_compare_exchange to either _n variant or external library call.
11196 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
11197 __atomic_load_n or an external library call.
11198 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
11199 __atomic_store_n or an external library call.
11200 (resolve_overloaded_builtin): Handle new __atomic builtins.
11201
11202 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
11203
11204 PR c++/50608
11205 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
11206 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
11207 <INDIRECT_REF>: Return the argument.
11208 <ARRAY_REF>: Remove special code for negative offset.
11209 Call fold_build_pointer_plus instead of size_binop.
11210 (fold_offsetof): Remove STOP_REF argument and adjust.
11211 * c-common.h (fold_offsetof_1): Declare.
11212 (fold_offsetof): Remove STOP_REF argument.
11213
11214 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
11215
11216 PR c++/50810
11217 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
11218 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
11219 Wnarrowing for C++0x and C++98.
11220 * c.opt ([Wnarrowing]): Update.
11221
11222 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
11223
11224 PR c++/44277
11225 * c.opt: Add Wzero-as-null-pointer-constant.
11226
11227 2011-10-31 Jason Merrill <jason@redhat.com>
11228
11229 * c.opt (-fdeduce-init-list): Off by default.
11230
11231 PR c++/50920
11232 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
11233 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
11234 and -Wc++11-compat.
11235 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
11236
11237 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
11238
11239 PR c++/30066
11240 * c.opt (fvisibility-inlines-hidden): Description change.
11241
11242 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
11243
11244 Implement C++11 user-defined literals.
11245 * c-common.c (build_userdef_literal): New.
11246 * c-common.def: New tree code.
11247 * c-common.h (tree_userdef_literal): New tree struct and accessors.
11248 * c-lex.c (interpret_float): Add suffix parm.
11249 (c_lex_with_flags): Build literal tokens.
11250
11251 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
11252
11253 PR c++/50841
11254 Revert:
11255 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
11256
11257 PR c++/50810
11258 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
11259 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
11260 Wnarrowing for C++0x and C++98.
11261 * c.opt ([Wnarrowing]): Update.
11262
11263 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
11264
11265 PR c++/50810
11266 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
11267 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
11268 Wnarrowing for C++0x and C++98.
11269 * c.opt ([Wnarrowing]): Update.
11270
11271 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
11272
11273 PR c++/45385
11274 * c-common.c (conversion_warning): Remove code looking for
11275 artificial operands.
11276
11277 2011-10-18 Dodji Seketeli <dodji@redhat.com>
11278
11279 PR bootstrap/50760
11280 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
11281 !NO_IMPLICIT_EXTERN_C.
11282
11283 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
11284
11285 * c-common.c (c_common_reswords): Add __bases,
11286 __direct_bases.
11287 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
11288
11289 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
11290
11291 PR c++/50757
11292 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
11293
11294 2011-10-15 Tom Tromey <tromey@redhat.com>
11295 Dodji Seketeli <dodji@redhat.com>
11296
11297 * c.opt (fdebug-cpp): New option.
11298 * c-opts.c (c_common_handle_option): Handle the option.
11299 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
11300 output stream in parameter. Factorized from ...
11301 (maybe_print_line): ... this. Dump location debug information when
11302 -fdebug-cpp is in effect.
11303 (print_line_1): New static function. Takes an output stream in
11304 parameter. Factorized from ...
11305 (print_line): ... here. Dump location information when -fdebug-cpp
11306 is in effect.
11307 (scan_translation_unit): Dump location information when
11308 -fdebug-cpp is in effect.
11309
11310 2011-10-15 Tom Tromey <tromey@redhat.com>
11311 Dodji Seketeli <dodji@redhat.com>
11312
11313 * c.opt (ftrack-macro-expansion): New option. Handle it with and
11314 without argument.
11315 * c-opts.c (c_common_handle_option)<case
11316 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
11317 cases. Handle -ftrack-macro-expansion with and without argument.
11318
11319 2011-10-15 Tom Tromey <tromey@redhat.com>
11320 Dodji Seketeli <dodji@redhat.com>
11321
11322 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
11323 (print_line, cb_define, do_line_change): Adjust to avoid touching
11324 the internals of struct line_map. Use the public API instead.
11325 * c-pch.c (c_common_read_pch): Likewise.
11326 * c-lex.c (fe_file_change): Likewise.
11327
11328 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
11329
11330 PR c++/17212
11331 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
11332
11333 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
11334
11335 PR c++/33067
11336 * c-pretty-print.c (pp_c_floating_constant): Output
11337 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
11338
11339 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
11340
11341 * c-common.c (def_builtin_1): Delete old interface with two
11342 parallel arrays to hold standard builtin declarations, and replace
11343 it with a function based interface that can support creating
11344 builtins on the fly in the future. Change all uses, and poison
11345 the old names. Make sure 0 is not a legitimate builtin index.
11346 * c-omp.c (c_finish_omp_barrier): Ditto.
11347 (c_finish_omp_taskwait): Ditto.
11348 (c_finish_omp_flush): Ditto.
11349
11350 2011-10-11 Tristan Gingold <gingold@adacore.com>
11351
11352 * c.opt: (fallow-parameterless-variadic-functions): New.
11353
11354 2011-09-08 Dodji Seketeli <dodji@redhat.com>
11355
11356 PR c++/33255 - Support -Wunused-local-typedefs warning
11357 * c-common.h (struct c_language_function::local_typedefs): New
11358 field.
11359 (record_locally_defined_typedef, maybe_record_typedef_use)
11360 (maybe_warn_unused_local_typedefs): Declare new functions.
11361 * c-common.c (record_locally_defined_typedef)
11362 (maybe_record_typedef_use)
11363 (maybe_warn_unused_local_typedefs): Define new functions.
11364 * c.opt: Declare new -Wunused-local-typedefs flag.
11365
11366 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
11367
11368 PR middle-end/50266
11369 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
11370 computations.
11371
11372 2011-09-05 Richard Guenther <rguenther@suse.de>
11373
11374 * c-common.c (complete_array_type): Use ssize_int (-1) instead
11375 of integer_minus_one_node for empty array upper bounds.
11376
11377 2011-08-28 Dodji Seketeli <dodji@redhat.com>
11378
11379 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
11380 it's the first time it's being called on this main TU.
11381
11382 2011-08-24 Richard Guenther <rguenther@suse.de>
11383
11384 PR c/49396
11385 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
11386
11387 2011-08-22 Gabriel Charette <gchare@google.com>
11388
11389 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
11390 defined in cpp_init_builtins and c_cpp_builtins.
11391
11392 2011-08-19 Joseph Myers <joseph@codesourcery.com>
11393
11394 * c-common.c (c_common_reswords): Add __builtin_complex.
11395 * c-common.h (RID_BUILTIN_COMPLEX): New.
11396
11397 2011-08-18 Joseph Myers <joseph@codesourcery.com>
11398
11399 * c-common.c (c_common_reswords): Add _Noreturn.
11400 (keyword_is_function_specifier): Handle RID_NORETURN.
11401 * c-common.h (RID_NORETURN): New.
11402
11403 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
11404
11405 * c-common.c (unsafe_conversion_p): New function. Check if it is
11406 unsafe to convert an expression to the type.
11407 (conversion_warning): Adjust, use unsafe_conversion_p.
11408 * c-common.h (unsafe_conversion_p): New function declaration.
11409
11410 2011-08-02 Jakub Jelinek <jakub@redhat.com>
11411
11412 * c-common.h (c_finish_omp_atomic): Adjust prototype.
11413 (c_finish_omp_taskyield): New prototype.
11414 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
11415 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
11416 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
11417 or RHS1 have side-effects, evaluate those too in the right spot,
11418 if it is a decl and LHS is also a decl, error out if they
11419 aren't the same.
11420 (c_finish_omp_taskyield): New function.
11421 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
11422 * c-pragma.c (omp_pragmas): Add taskyield.
11423 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
11424 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
11425 PRAGMA_OMP_CLAUSE_MERGEABLE.
11426
11427 2011-07-25 Dodji Seketeli <dodji@redhat.com>
11428
11429 * c-common.h (set_underlying_type): Remove parm name from
11430 declaration.
11431
11432 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
11433
11434 * c-pretty-print.h: Search c-common.h in c-family.
11435
11436 2011-07-22 Jason Merrill <jason@redhat.com>
11437
11438 PR c++/49793
11439 * c.opt (Wnarrowing): New.
11440
11441 PR c++/30112
11442 * c-common.h: Declare c_linkage_bindings.
11443 * c-pragma.c (handle_pragma_redefine_extname): Use it.
11444
11445 PR c++/49813
11446 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
11447 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
11448 as flag_isoc99 for 'restrict'.
11449 (pp_c_specifier_qualifier_list): Likewise for _Complex.
11450
11451 2011-07-21 Ian Lance Taylor <iant@google.com>
11452
11453 PR middle-end/49705
11454 * c-common.c (c_disable_warnings): New static function.
11455 (c_enable_warnings): New static function.
11456 (c_fully_fold_internal): Change local unused_p to bool. Call
11457 c_disable_warnings and c_enable_warnings rather than change
11458 c_inhibit_evaluation_warnings.
11459
11460 2011-07-20 Jason Merrill <jason@redhat.com>
11461
11462 PR c++/6709 (DR 743)
11463 PR c++/42603 (DR 950)
11464 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
11465 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
11466 (CPP_DECLTYPE): New.
11467 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
11468
11469 2011-07-19 Richard Guenther <rguenther@suse.de>
11470
11471 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
11472 * c-omp.c (c_finish_omp_for): Likewise.
11473
11474 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
11475
11476 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
11477 body on the next line.
11478
11479 2011-07-08 Jason Merrill <jason@redhat.com>
11480
11481 PR c++/45437
11482 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
11483
11484 PR c++/49673
11485 * c-common.c (c_apply_type_quals_to_decl): Don't check
11486 TYPE_NEEDS_CONSTRUCTING.
11487
11488 2011-07-06 Richard Guenther <rguenther@suse.de>
11489
11490 * c-common.c (c_common_nodes_and_builtins):
11491 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
11492
11493 2011-07-05 Richard Guenther <rguenther@suse.de>
11494
11495 * c-common.c (c_common_nodes_and_builtins): Build all common
11496 tree nodes first.
11497
11498 2011-06-27 Jakub Jelinek <jakub@redhat.com>
11499
11500 * c-common.h (c_tree_chain_next): New static inline function.
11501
11502 * c-common.c (check_builtin_function_arguments): Handle
11503 BUILT_IN_ASSUME_ALIGNED.
11504
11505 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
11506
11507 * c-common.c: Add sync_ or SYNC__ to builtin names.
11508 * c-omp.c: Add sync_ or SYNC__ to builtin names.
11509
11510 2011-06-20 Pierre Vittet <piervit@pvittet.com>
11511
11512 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
11513 handler.
11514 (gen_pragma_handler): New union.
11515 (internal_pragma_handler): New type.
11516 (c_register_pragma_with_data)
11517 (c_register_pragma_with_expansion_and_data): New functions.
11518
11519 * c-pragma.c (registered_pragmas, c_register_pragma_1)
11520 (c_register_pragma, c_register_pragma_with_expansion)
11521 (c_invoke_pragma_handler): Changed to work with
11522 internal_pragma_handler.
11523 (c_register_pragma_with_data)
11524 (c_register_pragma_with_expansion_and_data): New functions.
11525
11526 2011-06-14 Joseph Myers <joseph@codesourcery.com>
11527
11528 * c-common.c: Include common/common-target.h.
11529 (handle_section_attribute): Use
11530 targetm_common.have_named_sections.
11531 * c-cppbuiltin.c: Include common/common-target.h.
11532 (c_cpp_builtins): Use targetm_common.except_unwind_info.
11533
11534 2011-06-10 Richard Guenther <rguenther@suse.de>
11535
11536 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
11537 to print a IDENTIFIER_NODE.
11538
11539 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11540 Joseph Myers <joseph@codesourcery.com>
11541
11542 * c.opt (fbuilding-libgcc): New option.
11543 * c-cppbuiltin.c (c_cpp_builtins): Define
11544 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
11545
11546 2011-06-07 Jason Merrill <jason@redhat.com>
11547
11548 * c-common.c (max_tinst_depth): Lower default to 900.
11549
11550 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
11551
11552 2011-06-07 Richard Guenther <rguenther@suse.de>
11553
11554 * c-common.c (c_common_nodes_and_builtins): Do not set
11555 size_type_node or call set_sizetype.
11556
11557 2011-06-07 Dodji Seketeli <dodji@redhat.com>
11558
11559 PR debug/49130
11560 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
11561 type when using pointer comparison to compare types.
11562
11563 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
11564
11565 * c.opt: Add -Wdelete-non-virtual-dtor.
11566 * c-opts.c (c_common_handle_option): Include it in -Wall.
11567
11568 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
11569
11570 PR bootstrap/49190
11571
11572 Revert:
11573 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
11574
11575 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
11576 not tree_common.
11577
11578 2011-05-27 Jakub Jelinek <jakub@redhat.com>
11579
11580 PR c++/49165
11581 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
11582 C++ don't call c_common_truthvalue_conversion on void type arms.
11583
11584 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
11585
11586 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
11587 (stmt_list_stack): Define.
11588 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
11589 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
11590
11591 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
11592
11593 * c-common.c (warning_candidate_p): Check for BLOCKs.
11594
11595 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
11596
11597 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
11598 not tree_common.
11599
11600 2011-05-25 Jakub Jelinek <jakub@redhat.com>
11601
11602 * c-common.c (def_fn_type): Remove extra va_end.
11603
11604 2011-05-23 Jason Merrill <jason@redhat.com>
11605
11606 PR c++/48106
11607 * c-common.c (c_common_get_narrower): New.
11608 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
11609
11610 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
11611
11612 * c-common.h (check_function_arguments): Tweak prototype of
11613 check_function_arguments.
11614 * c-common.c (check_function_arguments): Likewise. Adjust
11615 calls to check_function_nonnull, check_function_format, and
11616 check_function_sentinel.
11617 (check_function_sentinel): Take a FUNCTION_TYPE rather than
11618 separate attributes and typelist arguments. Use
11619 FOREACH_FUNCTION_ARGS to iterate over argument types.
11620
11621 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
11622
11623 * c-common.c (c_common_reswords): Reorder.
11624 * c-common.h (rid): Likewise.
11625
11626 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
11627
11628 * c-common.c (def_fn_type): Don't call build_function_type, call
11629 build_function_type_array or build_varargs_function_type_array
11630 instead.
11631 (c_common_nodes_and_builtins): Likewise.
11632
11633 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
11634
11635 * c-common.c (c_add_case_label): Omit the loc argument to
11636 build_case_label.
11637 * c-common.h (build_case_label): Remove.
11638 * c-semantics.c (build_case_label): Remove.
11639
11640 2011-05-05 Joseph Myers <joseph@codesourcery.com>
11641
11642 * c-objc.h (objc_start_method_definition): Update prototype.
11643 * stub-objc.c (objc_start_method_definition): Add extra parameter.
11644
11645 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
11646
11647 * c-common.c (check_main_parameter_types): Reindent. Don't use
11648 TYPE_ARG_TYPES directly.
11649 (handle_nonnull_attribute): Likewise.
11650 (sync_resolve_params): Likewise.
11651 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
11652 to check_format_string.
11653 (handle_format_attribute): Likewise.
11654 (check_format_string): Take a function type to examine instead of
11655 a type list. Use a function_arg_iterator to step through argument
11656 types.
11657
11658 2011-05-04 Richard Guenther <rguenther@suse.de>
11659
11660 * c-common.c (fix_string_type): Use size_int for index type bounds.
11661 (start_fname_decls): Do not pass NULL to build_int_cst.
11662 (c_init_attributes): Likewise.
11663 * c-lex.c (c_lex_with_flags): Likewise.
11664
11665 2011-04-27 Jason Merrill <jason@redhat.com>
11666
11667 * c-common.c (make_tree_vector_from_list): New.
11668 * c-common.h: Declare it.
11669
11670 2011-04-26 Richard Guenther <rguenther@suse.de>
11671
11672 PR preprocessor/48248
11673 * c-ppoutput.c (maybe_print_line): Always optimize newlines
11674 for output size with -P.
11675
11676 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
11677
11678 * c-common.c (struct c_common_resword): Add __underlying_type.
11679 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
11680
11681 2011-04-20 Jim Meyering <meyering@redhat.com>
11682
11683 * c-format.c (init_dollar_format_checking): Remove useless
11684 if-before-free.
11685
11686 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
11687
11688 * c-objc.h (objc_get_interface_ivars): Removed.
11689 (objc_detect_field_duplicates): New.
11690 * stub-objc.c: Likewise.
11691
11692 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
11693
11694 * stub-objc.c (objc_declare_protocols): Renamed to
11695 objc_declare_protocol.
11696 * c-objc.h: Likewise.
11697
11698 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
11699
11700 * stub-objc.c (objc_declare_class): Updated argument name.
11701
11702 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
11703
11704 * c-common.h (c_common_init_ts): Declare.
11705 * c-common.c (c_common_init_ts): Define.
11706
11707 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
11708
11709 * c-objc.h (objc_build_message_expr): Updated prototype.
11710 * stub-objc.c (objc_build_message_expr): Likewise.
11711
11712 2011-04-12 Martin Jambor <mjambor@suse.cz>
11713
11714 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
11715 of cgraph_node.
11716
11717 2011-04-11 Richard Guenther <rguenther@suse.de>
11718
11719 * c-common.c (complete_array_type): Build a range type of
11720 proper type.
11721
11722 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
11723
11724 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
11725 (handle_type_generic_attribute): Likewise.
11726
11727 2011-04-07 Jason Merrill <jason@redhat.com>
11728
11729 PR c++/48450
11730 * c-common.c (c_common_truthvalue_conversion): Don't ignore
11731 conversion from C++0x scoped enum.
11732
11733 2011-04-06 Joseph Myers <joseph@codesourcery.com>
11734
11735 * c-target-def.h: New file.
11736 * c-target.def: New file.
11737 * c-target.h: New file.
11738 * c-common.c (targetcm): Don't define here.
11739 * c-common.h (default_handle_c_option): Declare.
11740 * c-format.c: Include c-target.h instead of target.h.
11741 * c-opts.c: Include c-target.h instead of target.h. Explicitly
11742 include tm.h.
11743 (default_handle_c_option): Move from targhooks.c.
11744
11745 2011-03-29 Jakub Jelinek <jakub@redhat.com>
11746
11747 PR preprocessor/48248
11748 * c-ppoutput.c (print): Add src_file field.
11749 (init_pp_output): Initialize it.
11750 (maybe_print_line): Don't optimize by adding up to 8 newlines
11751 if map->to_file and print.src_file are different file.
11752 (print_line): Update print.src_file.
11753
11754 2011-03-25 Kai Tietz <ktietz@redhat.com>
11755
11756 * c-ada-spec.c (compare_comment): Use filename_cmp
11757 instead of strcmp for filename.
11758
11759 2011-03-25 Jeff Law <law@redhat.com>
11760
11761 * c-common.c (def_fn_type): Add missing va_end.
11762
11763 2011-03-25 Jason Merrill <jason@redhat.com>
11764
11765 * c.opt: Add -std=c++03.
11766
11767 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
11768
11769 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
11770
11771 2011-03-17 Kai Tietz <ktietz@redhat.com>
11772
11773 PR target/12171
11774 * c-pretty-print.c (pp_c_specifier_qualifier_list):
11775 Display allowed attributes for function pointer types.
11776 (pp_c_attributes_display): New function to display
11777 attributes having affects_type_identity flag set to true.
11778 * c-pretty-print.h (pp_c_attributes_display): New prototype.
11779
11780 * c-common.c (c_common_attribute_table):
11781 Add new element.
11782 (c_common_format_attribute_table): Likewise.
11783
11784 2011-03-18 Jason Merrill <jason@redhat.com>
11785
11786 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
11787 * c-common.h: Don't declare it here.
11788 * c-common.c: Or define it here.
11789 * c-opts.c (c_common_handle_option): Or set it here.
11790
11791 PR c++/35315
11792 * c-common.c (handle_transparent_union_attribute): Don't
11793 make a duplicate type in C++.
11794
11795 2011-03-15 Jason Merrill <jason@redhat.com>
11796
11797 * c-common.c (max_constexpr_depth): New.
11798 * c-common.h: Declare it.
11799 * c-opts.c (c_common_handle_option): Set it.
11800 * c.opt (fconstexpr-depth): New option.
11801
11802 2011-03-11 Jason Merrill <jason@redhat.com>
11803
11804 * c-common.c (attribute_takes_identifier_p): Add missing const.
11805
11806 PR c++/46803
11807 * c-common.c (attribute_takes_identifier_p): Assume that an
11808 unknown attribute takes an identifier.
11809
11810 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
11811
11812 PR c/47786
11813 * c-common.c (c_type_hash): Call list_length instead of iterating
11814 through DECL_CHAIN. Rename 'i' to 'n_elements'.
11815
11816 2011-02-19 Jakub Jelinek <jakub@redhat.com>
11817
11818 PR c/47809
11819 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
11820
11821 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
11822
11823 * c.opt (fobjc-abi-version=) New.
11824 (fobjc-nilcheck): New.
11825
11826 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
11827
11828 PR c++/46890
11829 * c-common.h (keyword_is_decl_specifier): Declare.
11830 * c-common.c (keyword_is_decl_specifier): Define.
11831 (keyword_is_function_specifier): New function.
11832
11833 2011-01-26 Jakub Jelinek <jakub@redhat.com>
11834
11835 PR c/47473
11836 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
11837 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
11838 REAL_TYPE.
11839
11840 2011-01-26 Arnaud Charlet <charlet@adacore.com>
11841
11842 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
11843
11844 2011-01-26 Jakub Jelinek <jakub@redhat.com>
11845
11846 PR pch/47430
11847 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
11848 after init_c_lex if pch_file is set.
11849
11850 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
11851
11852 PR c++/43601
11853 * c.opt (-fkeep-inline-dllexport): New switch.
11854
11855 2011-01-12 Richard Guenther <rguenther@suse.de>
11856
11857 PR middle-end/32511
11858 * c-common.c (handle_weak_attribute): Warn instead of error
11859 on declaring an inline function weak.
11860
11861 2011-01-05 Tom Tromey <tromey@redhat.com>
11862
11863 * c-common.h (lvalue_error): Update.
11864 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
11865 not error.
11866
11867 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
11868
11869 PR objc/47075
11870 * c-objc.h (objc_finish_message_expr): Added argument to
11871 prototype.
11872
11873 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
11874
11875 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
11876 Use prototype_p.
11877
11878 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
11879
11880 * c-objc.h (objc_maybe_warn_exceptions): New.
11881 * stub-objc.c (objc_maybe_warn_exceptions): New.
11882
11883 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
11884
11885 * c-common.h (readonly_error): Declare.
11886 * c-common.c (readonly_error): Define.
11887
11888 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
11889
11890 * c-common.h (invalid_indirection_error): Declare.
11891 * c-common.c (invalid_indirection_error): Define.
11892
11893 2010-12-03 Richard Guenther <rguenther@suse.de>
11894
11895 PR c/46745
11896 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
11897 (pp_c_unary_expression): Likewise.
11898 (pp_c_expression): Likewise.
11899
11900 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
11901
11902 * c-common.h (objc_finish_function): New.
11903 (objc_non_volatilized_type): Removed.
11904 (objc_type_quals_match): Removed.
11905 * stub-objc.c (objc_finish_function): New.
11906 (objc_non_volatilized_type): Removed.
11907 (objc_type_quals_match): Removed.
11908
11909 2010-11-30 Joseph Myers <joseph@codesourcery.com>
11910
11911 * c-common.h (parse_optimize_options): Declare.
11912 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
11913 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
11914
11915 2010-11-29 Joseph Myers <joseph@codesourcery.com>
11916
11917 * c-opts.c (check_deps_environment_vars): Use getenv instead of
11918 GET_ENVIRONMENT.
11919 * c-pch.c (O_BINARY): Don't define here.
11920 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
11921
11922 2010-11-25 Joseph Myers <joseph@codesourcery.com>
11923
11924 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
11925 targetm.except_unwind_info.
11926
11927 2010-11-23 Joseph Myers <joseph@codesourcery.com>
11928
11929 * c-opts.c (c_common_handle_option): Pass location to
11930 set_struct_debug_option.
11931
11932 2010-11-23 Joseph Myers <joseph@codesourcery.com>
11933
11934 * c-common.c (visibility_options): Move from ../opts.c.
11935 * c-common.h (struct visibility_flags, visibility_options):
11936 Declare here.
11937 * c-opts.c (finish_options): Rename to c_finish_options.
11938 (c_common_init): Update call to finish_options.
11939
11940 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
11941
11942 PR objc/34033
11943 * c-lex.c (lex_string): Check that each string in an Objective-C
11944 string concat sequence starts with either one or zero '@', and
11945 that there are no spurious '@' signs at the end.
11946
11947 2010-11-20 Joseph Myers <joseph@codesourcery.com>
11948
11949 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
11950 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
11951 HANDLE_PRAGMA_VISIBILITY.
11952 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
11953 HANDLE_PRAGMA_VISIBILITY): Don't define.
11954 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
11955
11956 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
11957
11958 PR c++/16189
11959 PR c++/36888
11960 PR c++/45331
11961 * c-common.h (keyword_begins_type_specifier): Declare.
11962 (keyword_is_storage_class_specifier): Declare.
11963 (keyword_is_type_qualifier): Declare.
11964 * c-common.c (keyword_begins_type_specifier): New function.
11965 (keyword_is_storage_class_specifier): New function.
11966 (keyword_is_type_qualifier): Declare.
11967
11968 2010-11-19 Joseph Myers <joseph@codesourcery.com>
11969
11970 PR c/46547
11971 * c-common.c (in_late_binary_op): Define.
11972 (c_common_truthvalue_conversion): Check in_late_binary_op before
11973 calling c_save_expr.
11974 * c-common.h (in_late_binary_op): Declare.
11975
11976 2010-11-19 Joseph Myers <joseph@codesourcery.com>
11977
11978 * c-opts.c (c_common_handle_option): Update calls to
11979 set_struct_debug_option.
11980
11981 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
11982
11983 * c-common.h (objc_declare_protocols): Added additional argument.
11984 * stub-objc.c (objc_declare_protocol): Same change.
11985
11986 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
11987
11988 PR c/33193
11989 * c-common.h (build_real_imag_expr): Declare.
11990 * c-semantics.c (build_real_imag_expr): Define.
11991
11992 2010-11-17 Joseph Myers <joseph@codesourcery.com>
11993
11994 * c-opts.c (c_common_parse_file): Take no arguments.
11995 * c-common.h (c_common_parse_file): Update prototype.
11996
11997 2010-11-16 Jakub Jelinek <jakub@redhat.com>
11998
11999 PR c++/46401
12000 * c-common.c (warning_candidate_p): Don't track non-const calls
12001 or STRING_CSTs.
12002
12003 2010-11-15 Ian Lance Taylor <iant@google.com>
12004
12005 * c-lex.c (init_c_lex): Set macro debug callbacks if
12006 flag_dump_go_spec is set.
12007
12008 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
12009
12010 * c-common.h (objc_build_incr_expr_for_property_ref): New.
12011 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
12012
12013 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
12014
12015 PR preprocessor/45038
12016 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
12017 dialects.
12018
12019 2010-11-12 Joseph Myers <joseph@codesourcery.com>
12020
12021 * c-common.h (c_family_lang_mask): Declare.
12022 * c-opts.c (c_family_lang_mask): Make extern.
12023 * c-pragma.c (handle_pragma_diagnostic): Use
12024 control_warning_option.
12025
12026 2010-11-12 Joseph Myers <joseph@codesourcery.com>
12027
12028 * c-common.c (parse_optimize_options): Update call to
12029 decode_options.
12030 * c-common.h (c_common_handle_option): Update prototype.
12031 * c-opts.c (c_common_handle_option): Take location_t parameter and
12032 pass it to other functions.
12033
12034 2010-11-11 Joseph Myers <joseph@codesourcery.com>
12035
12036 * c-opts.c (warning_as_error_callback): Remove.
12037 (c_common_initialize_diagnostics): Don't call
12038 register_warning_as_error_callback.
12039 (c_common_handle_option): Handle -Werror=normalized= here.
12040
12041 2010-11-10 Joseph Myers <joseph@codesourcery.com>
12042
12043 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
12044 in diagnostic.
12045 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
12046 letter.
12047 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
12048 Remove trailing '.' from diagnostics.
12049 * c.opt (Wwrite-strings_: Avoid '`' in help text.
12050
12051 2010-11-10 Joseph Myers <joseph@codesourcery.com>
12052
12053 * c-common.c (parse_optimize_options): Pass global_dc to
12054 decode_options.
12055 * c-opts.c (c_common_handle_option): Pass &global_options to
12056 set_Wstrict_aliasing.
12057 * c.opt (v): Don't mark Common or document here.
12058
12059 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
12060
12061 PR target/44981
12062 * c-format.c (format_type): New type gcc_objc_string_format_type.
12063 (valid_stringptr_type_p): New.
12064 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
12065 (check_format_string): Pass expected type, use
12066 valid_stringptr_type_p (), check that the format string types are
12067 consistent with the format specification.
12068 (decode_format_attr): Warn if NSString is used outside objective-c.
12069 (format_types_orig): Add NSString.
12070 (format_name): New.
12071 (format_flags): New.
12072 (check_format_arg): Handle format strings requiring an external parser.
12073 first_target_format_type: New variable.
12074 (handle_format_attribute): Set up first_target_format_type, pass the
12075 expected format arg string type to check_format_string().
12076 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
12077 * stub-objc.c (objc_string_ref_type_p): New.
12078 (objc_check_format_arg): New.
12079
12080 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
12081
12082 Fixed using the Objective-C 2.0 dot-syntax with class names.
12083 * c-common.h (objc_build_class_component_ref): New.
12084 * stub-objc.c (objc_build_class_component_ref): New.
12085
12086 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
12087
12088 * c.opt (Wproperty-assign-default): New option.
12089
12090 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
12091
12092 Implemented -fobjc-std=objc1 flag.
12093 * c.opt (fobjc-std=objc1): New option.
12094
12095 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
12096
12097 Implemented format and noreturn attributes for Objective-C methods.
12098 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
12099 attribute for Objective-C methods.
12100
12101 2010-10-31 Jason Merrill <jason@redhat.com>
12102
12103 * c-common.c (conversion_warning, warn_for_collisions_1): Use
12104 EXPR_LOC_OR_HERE.
12105
12106 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
12107
12108 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
12109 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
12110 (objc_add_property_declaration): Removed arguments for copies and
12111 ivar.
12112 (objc_build_getter_call): Renamed to
12113 objc_maybe_build_component_ref.
12114 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
12115 (objc_is_property_ref): New.
12116 * c-common.c (c_common_reswords): Removed copies and ivar.
12117 * stub-objc.c (objc_add_property_declaration): Removed arguments
12118 for copies and ivar.
12119 (objc_build_getter_call): Renamed to
12120 objc_maybe_build_component_ref.
12121 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
12122 (objc_is_property_ref): New.
12123
12124 2010-10-29 Arnaud Charlet <charlet@adacore.com>
12125 Matthew Gingell <gingell@adacore.com>
12126
12127 * c-ada-spec.c (separate_class_package): New function.
12128 (pp_ada_tree_identifier): Prefix references to C++ classes with the
12129 name of their enclosing package.
12130 (print_ada_declaration): Use separate_class_package.
12131
12132 2010-10-27 Jason Merrill <jason@redhat.com>
12133
12134 * c-common.c (c_common_reswords): Add __is_literal_type.
12135 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
12136
12137 * c-common.c (check_case_value): Remove special C++ code.
12138
12139 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
12140
12141 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
12142 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
12143 and RID_LAST_PATTR.
12144 (objc_add_property_declaration): Added additional arguments.
12145 (objc_property_attribute_kind): Removed.
12146 (objc_set_property_attr): Removed.
12147 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
12148 copy and nonatomic.
12149 * stub-objc.c (objc_add_property_declaration): Added additional
12150 arguments.
12151 (objc_set_property_attr): Removed.
12152
12153 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
12154
12155 * c-common.h (objc_add_property_variable): Renamed to
12156 objc_add_property_declaration. Added location argument.
12157 * stub-objc.c (objc_add_property_variable): Same change.
12158
12159 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
12160
12161 * c-common.h (objc_maybe_printable_name): New.
12162 * stub-objc.c (objc_maybe_printable_name): New.
12163
12164 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
12165 Andrew Pinski <pinskia@gmail.com>
12166
12167 * c-common.h (c_common_mark_addressable_vec): Declare.
12168 * c-common.c (c_common_mark_addressable_vec): New function.
12169
12170 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
12171
12172 * c-common.h (objc_set_method_type): Removed.
12173 (objc_add_method_declaration): Added boolean argument.
12174 (objc_start_method_definition): Same change.
12175 (objc_build_method_signature): Same change.
12176 * stub-objc.c (objc_set_method_type): Removed.
12177 (objc_add_method_declaration): Added boolean argument.
12178 (objc_start_method_definition): Same change.
12179 (objc_build_method_signature): Same change.
12180
12181 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
12182
12183 * c-common.h (finish_file): Removed.
12184 (objc_write_global_declarations): New.
12185 * c-opts.c (c_common_parse_file): Do not call finish_file.
12186 * stub-objc.c (objc_write_global_declarations): New.
12187
12188 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
12189
12190 Implemented parsing @synthesize and @dynamic for
12191 Objective-C/Objective-C++.
12192 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
12193 (objc_add_synthesize_declaration): New.
12194 (objc_add_dynamic_declaration): New.
12195 * c-common.c (c_common_reswords): Add synthesize and dynamic.
12196 * stub-objc.c (objc_add_synthesize_declaration): New.
12197 (objc_add_dynamic_declaration): New.
12198
12199 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
12200
12201 PR target/46041
12202 * c-cppbuiltin.c (mode_has_fma): Move function here from
12203 builtins.c. Don't use the fma optab, instead just use the
12204 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
12205 using -save-temps.
12206
12207 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
12208
12209 Merge from 'apple/trunk' branch on FSF servers.
12210
12211 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
12212
12213 Radar 4330422
12214 * c-common.h (objc_non_volatilized_type): New declaration
12215 * stub-objc.c (objc_non_volatilized_type): New stub.
12216
12217 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
12218
12219 Merge from 'apple/trunk' branch on FSF servers.
12220
12221 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
12222
12223 Radar 4133425
12224 * c-common.h (objc_diagnose_private_ivar): New decl.
12225 * stub-objc.c (objc_diagnose_private_ivar): New stub.
12226
12227 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
12228
12229 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
12230 * c-common.h (enum rid): Add RID_AT_PACKAGE.
12231 (objc_ivar_visibility_kind): New enum.
12232 (objc_set_visibility): Adjust prototype to use visibility enum.
12233 * stub-objc.c (objc_set_visibility): Adjust stub to use
12234 visibility enum.
12235
12236 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
12237
12238 * c-cppbuiltin.c (builtin_define_float_constants): Emit
12239 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
12240 has the appropriate fma builtins.
12241 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
12242
12243 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
12244
12245 merge from FSF apple 'trunk' branch.
12246 2006 Fariborz Jahanian <fjahanian@apple.com>
12247
12248 Radars 4436866, 4505126, 4506903, 4517826
12249 * c-common.c (c_common_resword): Define @property and its attributes.
12250 * c-common.h: Define property attribute enum entries.
12251 (OBJC_IS_PATTR_KEYWORD): New.
12252 (objc_property_attribute_kind): New enum.
12253 Declare objc_set_property_attr (), objc_add_property_variable (),
12254 objc_build_getter_call () and objc_build_setter_call ().
12255 * stub-objc.c (objc_set_property_attr): New stub.
12256 (objc_add_property_variable): Likewise.
12257 (objc_build_getter_call): Likewise.
12258 (objc_build_setter_call) Likewise.
12259
12260 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
12261
12262 merge from FSF apple 'trunk' branch.
12263 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
12264
12265 Radar 3803157 (method attributes)
12266 * c-common.c (handle_deprecated_attribute): Recognize
12267 objc methods as valid declarations.
12268 * c-common.h: Declare objc_method_decl ().
12269 * stub-objc.c (objc_method_decl): New stub.
12270
12271 2010-10-08 Joseph Myers <joseph@codesourcery.com>
12272
12273 * c-common.c (parse_optimize_options): Call
12274 decode_cmdline_options_to_array_default_mask before
12275 decode_options. Update arguments to decode_options.
12276 * c-common.h (c_common_init_options_struct): Declare.
12277 * c-opts.c (c_common_init_options_struct): New. Split out from
12278 c_common_init_options.
12279
12280 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
12281
12282 Implemented fast enumeration for Objective-C.
12283 * c-common.h (objc_finish_foreach_loop): New.
12284 * stub-objc.c (objc_finish_foreach_loop): New.
12285
12286 2010-10-05 Joseph Myers <joseph@codesourcery.com>
12287
12288 * c-common.h (struct diagnostic_context): Don't declare here.
12289 (c_common_initialize_diagnostics): Declare using
12290 diagnostic_context typedef.
12291 * c-opts.c (c_common_handle_option): Pass global_dc to
12292 handle_generated_option.
12293
12294 2010-10-04 Joseph Myers <joseph@codesourcery.com>
12295
12296 * c-opts.c (c_common_handle_option): Pass &global_options_set to
12297 handle_generated_option.
12298
12299 2010-10-03 Ian Lance Taylor <iant@google.com>
12300
12301 * c.opt (-fplan9-extensions): New option.
12302
12303 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12304
12305 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
12306 Remove.
12307 (c_cpp_builtins): Call functions from cppbuiltin.c instead
12308 of duplicating code.
12309
12310 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
12311
12312 * c-common.c: Add two new entries for @optional
12313 and @required keywords.
12314
12315 merge from FSF 'apple/trunk' branch.
12316 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
12317
12318 Radar 4386773
12319 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
12320 objective-c keywords.
12321 (objc_set_method_opt): New declaration.
12322 * stub-objc.c (objc_set_method_opt): New stub.
12323
12324 2010-09-30 Joseph Myers <joseph@codesourcery.com>
12325
12326 * c-common.c (handle_optimize_attribute): Pass &global_options to
12327 cl_optimization_save and cl_optimization_restore.
12328 * c-opts.c (c_common_handle_option): Pass &global_options to
12329 handle_generated_option.
12330 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
12331 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
12332 &global_options to cl_optimization_restore.
12333
12334 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
12335
12336 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
12337 Objective-C/Objective-C++ keywords.
12338
12339 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
12340
12341 Merge from 'apple/trunk' branch on FSF servers.
12342
12343 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
12344
12345 Radar 4281748
12346 * c-common.h (objc_check_global_decl): New declaration.
12347 * stub-objc.c (objc_check_global_decl): New stub.
12348
12349 2010-09-29 Joseph Myers <joseph@codesourcery.com>
12350
12351 * c.opt: Don't use VarExists.
12352
12353 2010-09-29 Joseph Myers <joseph@codesourcery.com>
12354
12355 * c-common.c (c_cpp_error): Update names of diagnostic_context
12356 members.
12357 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
12358 cl_optimization members.
12359 * c-opts.c (warning_as_error_callback, c_common_handle_option,
12360 sanitize_cpp_opts, finish_options): Update names of cpp_options
12361 members.
12362
12363 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
12364
12365 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
12366 (objc_is_reserved_word): Removed.
12367 * c-common.c: Updated comments.
12368 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
12369 objc_is_reserved_word.
12370 * stub-objc.c (objc_is_reserved_word): Removed.
12371
12372 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
12373
12374 * c-common.h (objc_add_method_declaration): Adjust prototype to
12375 include attributes.
12376 (objc_start_method_definition): Likewise.
12377 (objc_build_keyword_decl): Likewise.
12378 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
12379 (objc_start_method_definition): Likewise.
12380 (objc_build_keyword_decl): Likewise.
12381
12382 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
12383
12384 * c-common.h (objc_start_class_interface): Adjust prototype.
12385 (objc_start_category_interface): Likewise.
12386 (objc_start_protocol): Likewise.
12387 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
12388 (objc_start_class_interface): Likewise.
12389 (objc_start_category_interface): Likewise.
12390
12391 2010-09-27 Ian Lance Taylor <iant@google.com>
12392
12393 * c-common.c (c_common_attribute_table): Add no_split_stack.
12394 (handle_no_split_stack_attribute): New static function.
12395
12396 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
12397
12398 Merge from 'apple/trunk' branch on FSF servers.
12399
12400 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
12401
12402 Radar 4229905
12403 * c-common.h (objc_have_common_type): New declaration.
12404 * stub-objc.c (objc_have_common_type): New stub.
12405
12406 2005-06-22 Ziemowit Laski <zlaski@apple.com>
12407
12408 Radar 4154928
12409 * c-common.h (objc_common_type): New prototype.
12410 * stub-objc.c (objc_common_type): New stub.
12411
12412 2010-09-24 Jan Hubicka <jh@suse.cz>
12413
12414 * c-common.c (handle_leaf_attribute): New function.
12415 (struct attribute_spec c_common_att): Add leaf.
12416
12417 2010-09-22 Joseph Myers <joseph@codesourcery.com>
12418
12419 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
12420 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
12421 -dump, -dump=, -imacros, -imacros=, -include, -include=,
12422 -include-barrier, -include-directory, -include-directory=,
12423 -include-directory-after, -include-directory-after=,
12424 -include-prefix, -include-prefix=, -include-with-prefix,
12425 -include-with-prefix=, -include-with-prefix-after,
12426 -include-with-prefix-after=, -include-with-prefix-before,
12427 -include-with-prefix-before=, -no-integrated-cpp,
12428 -no-line-commands, -no-standard-includes, -no-warnings, -output,
12429 -output=, -pedantic, -pedantic-errors, -preprocess,
12430 -print-missing-file-dependencies, -trace-includes, -traditional,
12431 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
12432 -user-dependencies, -verbose, -write-dependencies,
12433 -write-user-dependencies, no-integrated-cpp, traditional): New.
12434
12435 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
12436
12437 PR objc/23710
12438 * c-common.h (objc_start_method_definition): Return bool instead
12439 of void.
12440 * stub-objc.c (objc_start_method_definition): Return bool instead
12441 of void.
12442
12443 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
12444
12445 PR objc/25965
12446 * c-common.h (objc_get_interface_ivars): New declaration.
12447 * stub-objc.c (objc_get_interface_ivars): New stub.
12448
12449 2010-09-15 Ian Lance Taylor <iant@google.com>
12450
12451 * c-common.c (parse_optimize_options): Do not capitalize warning
12452 messages. Remove period at end of warning message.
12453
12454 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
12455
12456 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
12457 (handle_alias_attribute): ... here.
12458 (handle_ifunc_attribute): New.
12459
12460 2010-09-06 Mark Mitchell <mark@codesourcery.com>
12461
12462 * c-common.h (do_warn_double_promotion): Declare.
12463 * c-common.c (do_warn_double_promotion): Define.
12464
12465 2010-09-05 Mark Mitchell <mark@codesourcery.com>
12466
12467 * c.opt (Wdouble-promotion): New.
12468
12469 2010-09-02 Joseph Myers <joseph@codesourcery.com>
12470
12471 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
12472 fvtable-thunks, fxref): Mark no longer supported in help text.
12473
12474 2010-09-02 Joseph Myers <joseph@codesourcery.com>
12475
12476 * c.opt (Wimport, fall-virtual, falt-external-templates,
12477 fdefault-inline, fenum-int-equiv, fexternal-templates,
12478 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
12479 fname-mangling-version-, fnew-abi, fnonnull-objects,
12480 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
12481 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
12482 applicable.
12483 (fhandle-exceptions): Mark with Alias and Warn.
12484 * c-opts.c (c_common_handle_option): Don't handle options marked
12485 as ignored.
12486
12487 2010-09-02 Joseph Myers <joseph@codesourcery.com>
12488
12489 * c.opt (Wcomments, Werror-implicit-function-declaration,
12490 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
12491 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
12492 aliases.
12493 * c-common.c (option_codes): Use OPT_Wcomment instead of
12494 OPT_Wcomments.
12495 * c-opts.c (warning_as_error_callback, c_common_handle_option):
12496 Don't handle options marked as aliases.
12497
12498 2010-08-25 Richard Guenther <rguenther@suse.de>
12499
12500 * c-common.c (c_common_get_alias_set): Remove special
12501 handling for pointers.
12502
12503 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
12504
12505 * c-common.c: Use FOR_EACH_VEC_ELT.
12506 * c-gimplify.c: Likewise.
12507 * c-pragma.c: Likewise.
12508
12509 2010-08-16 Joseph Myers <joseph@codesourcery.com>
12510
12511 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
12512 RejectDriver.
12513 (MMDX): Change back to MMD. Mark NoDriverArg instead of
12514 RejectDriver.
12515 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
12516 instead of OPT_MDX and OPT_MMDX.
12517
12518 2010-08-16 Joseph Myers <joseph@codesourcery.com>
12519
12520 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
12521
12522 2010-08-12 Joseph Myers <joseph@codesourcery.com>
12523
12524 * c.opt (MD, MMD): Change to MDX and MMDX.
12525 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
12526
12527 2010-08-11 Joseph Myers <joseph@codesourcery.com>
12528
12529 * c-opts.c (c_common_handle_option): Call handle_generated_option
12530 instead of handle_option.
12531
12532 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
12533
12534 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
12535 (maybe_apply_renaming_pragma): Delete unneeded declarations.
12536
12537 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
12538
12539 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
12540 (pending_redefine_extname): Change type to a VEC.
12541 (add_to_renaming_pragma_list): Update for new type of
12542 pending_redefine_extname.
12543 (maybe_apply_renaming_pragma): Likewise.
12544
12545 2010-08-04 Arnaud Charlet <charlet@adacore.com>
12546
12547 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
12548 visited.
12549 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
12550 decide whether a type has already been declared/seen.
12551 Do not go to the original type.
12552 (dump_nested_types): New parameter forward.
12553 Generate forward declaration if needed and mark type as visited.
12554 (print_ada_declaration): Call dump_nested_types if not already done.
12555 Mark types as visited.
12556
12557 2010-08-03 Joseph Myers <joseph@codesourcery.com>
12558
12559 * c.opt (-print-pch-checksum): Remove option.
12560 * c-opts.c (c_common_handle_option): Don't handle
12561 OPT_print_pch_checksum.
12562
12563 2010-07-27 Joseph Myers <joseph@codesourcery.com>
12564
12565 * c-common.h (c_common_handle_option): Update prototype and return
12566 value type.
12567 * c-opts.c (c_common_handle_option): Update prototype and return
12568 value type. Update calls to handle_option and
12569 enable_warning_as_error.
12570
12571 2010-07-27 Jakub Jelinek <jakub@redhat.com>
12572
12573 PR c/45079
12574 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
12575
12576 2010-07-27 Joseph Myers <joseph@codesourcery.com>
12577
12578 * c-common.h (c_common_missing_argument): Remove.
12579 * c-opts.c (c_common_missing_argument): Remove.
12580 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
12581 idirafter, imacros, include, isysroot, isystem, iquote): Add
12582 MissingArgError.
12583 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
12584
12585 2010-07-27 Joseph Myers <joseph@codesourcery.com>
12586
12587 * c-common.h (c_common_option_lang_mask,
12588 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
12589 New.
12590 (c_common_init_options): Update prototype.
12591 * c-opts.c (c_common_option_lang_mask): New.
12592 (c_common_initialize_diagnostics): Split out of
12593 c_common_init_options.
12594 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
12595 New.
12596 (c_common_init_options): Update prototype. Use decoded options in
12597 search for -lang-asm.
12598
12599 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
12600
12601 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
12602 * c-format.c: Likewise.
12603
12604 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
12605
12606 * c-common.h: Include diagnostic-core.h. Error if already
12607 included.
12608 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
12609
12610 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
12611
12612 * c-common.c (IN_GCC_FRONTEND): Do not undef.
12613 Do not include expr.h
12614 (vector_mode_valid_p): Move here.
12615
12616 2010-06-21 DJ Delorie <dj@redhat.com>
12617
12618 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
12619 allow these pragmas anywhere.
12620
12621 2010-06-14 Jakub Jelinek <jakub@redhat.com>
12622
12623 PR bootstrap/44509
12624 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
12625 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
12626 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
12627 ggc_strdup instead of xstrdup.
12628
12629 2010-06-10 Jakub Jelinek <jakub@redhat.com>
12630
12631 * c-cppbuiltin.c: Include cpp-id-data.h.
12632 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
12633 (lazy_hex_fp_value): New function.
12634 (builtin_define_with_hex_fp_value): Provide definitions lazily.
12635
12636 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
12637
12638 * c-gimplify.c: Do not include tree-flow.h
12639
12640 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
12641
12642 PR other/44034
12643 * c-common.c: Rename targetm member:
12644 targetm.enum_va_list -> targetm.enum_va_list_p
12645
12646 2010-06-28 Anatoly Sokolov <aesok@post.ru>
12647
12648 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
12649
12650 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
12651
12652 * c-cppbuiltin.c: Do not include except.h.
12653
12654 2010-06-24 Andi Kleen <ak@linux.intel.com>
12655
12656 * c-common.c (warn_for_omitted_condop): New.
12657 * c-common.h (warn_for_omitted_condop): Add prototype.
12658
12659 2010-06-21 Joseph Myers <joseph@codesourcery.com>
12660
12661 * c.opt (lang-objc): Remove.
12662 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
12663
12664 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
12665
12666 * c-opts.c: Include "tm_p.h".
12667
12668 2010-06-20 Joseph Myers <joseph@codesourcery.com>
12669
12670 * c-common.c (parse_optimize_options): Update call to
12671 decode_options.
12672
12673 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
12674
12675 * c-common.c (record_types_used_by_current_var_decl): Adjust for
12676 new type of types_used_by_cur_var_decl.
12677
12678 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
12679
12680 PR bootstrap/44512
12681 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
12682 for C++ standard compliance.
12683
12684 2010-06-16 Jason Merrill <jason@redhat.com>
12685
12686 * c.opt: Add -Wnoexcept.
12687
12688 2010-06-16 Richard Guenther <rguenther@suse.de>
12689
12690 PR c/44555
12691 * c-common.c (c_common_truthvalue_conversion): Remove
12692 premature and wrong optimization concering ADDR_EXPRs.
12693
12694 2010-06-15 Arnaud Charlet <charlet@adacore.com>
12695
12696 * c-ada-spec.c (dump_sloc): Remove column info.
12697 (is_simple_enum): New function.
12698 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
12699 enum types when relevant.
12700
12701 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
12702
12703 * c-common.c (conversion_warning): Warn at expression
12704 location.
12705
12706 2010-06-10 Joseph Myers <joseph@codesourcery.com>
12707
12708 * c-opts.c (c_common_handle_option): Don't handle
12709 OPT_fshow_column.
12710
12711 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
12712
12713 * c-pragma.c (push_alignment): Use typed GC allocation.
12714 (handle_pragma_push_options): Likewise.
12715
12716 * c-common.c (parse_optimize_options): Likewise.
12717
12718 * c-common.h (struct sorted_fields_type): Add variable_size GTY
12719 option.
12720
12721 2010-06-07 Joseph Myers <joseph@codesourcery.com>
12722
12723 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
12724 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
12725 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
12726 flag_signed_bitfields, warn_strict_null_sentinel,
12727 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
12728 flag_gen_declaration, flag_no_gnu_keywords,
12729 flag_implement_inlines, flag_implicit_templates,
12730 flag_implicit_inline_templates, flag_optional_diags,
12731 flag_elide_constructors, flag_default_inline, flag_rtti,
12732 flag_conserve_space, flag_access_control, flag_check_new,
12733 flag_new_for_scope, flag_weak, flag_working_directory,
12734 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
12735 flag_enforce_eh_specs, flag_threadsafe_statics,
12736 flag_pretty_templates): Remove.
12737 * c-common.h (flag_preprocess_only, flag_nil_receivers,
12738 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
12739 flag_replace_objc_classes, flag_undef, flag_no_builtin,
12740 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
12741 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
12742 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
12743 flag_no_gnu_keywords, flag_implement_inlines,
12744 flag_implicit_templates, flag_implicit_inline_templates,
12745 flag_optional_diags, flag_elide_constructors, flag_default_inline,
12746 flag_rtti, flag_conserve_space, flag_access_control,
12747 flag_check_new, flag_new_for_scope, flag_weak,
12748 flag_working_directory, flag_use_cxa_atexit,
12749 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
12750 flag_threadsafe_statics, flag_pretty_templates,
12751 warn_strict_null_sentinel): Remove.
12752 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
12753 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
12754 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
12755 fimplicit-inline-templates, fimplicit-templates,
12756 flax-vector-conversions, fms-extensions, fnil-receivers,
12757 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
12758 frtti, fshort-double, fshort-enums, fshort-wchar,
12759 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
12760 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
12761 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
12762 gen-decls, undef): Use Var.
12763 (fdefault-inline, foptional-diags): Document as doing nothing.
12764 * c-opts.c (c_common_handle_option): Remove cases for options now
12765 using Var. Mark ignored options as such.
12766
12767 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
12768
12769 * c-common.c: Moved to here from parent directory.
12770 * c-common.def: Likewise.
12771 * c-common.h: Likewise.
12772 * c-cppbuiltin.c: Likewise.
12773 * c-dump.c: Likewise.
12774 * c-format.c: Likewise.
12775 * c-format.h : Likewise.
12776 * c-gimplify.c: Likewise.
12777 * c-lex.c: Likewise.
12778 * c-omp.c: Likewise.
12779 * c.opt: Likewise.
12780 * c-opts.c: Likewise.
12781 * c-pch.c: Likewise.
12782 * c-ppoutput.c: Likewise.
12783 * c-pragma.c: Likewise.
12784 * c-pragma.h: Likewise.
12785 * c-pretty-print.c: Likewise.
12786 * c-pretty-print.h: Likewise.
12787 * c-semantics.c: Likewise.
12788 * stub-objc.c: Likewise.
12789
12790 * c-common.c: Include gt-c-family-c-common.h.
12791 * c-pragma.c: Include gt-c-family-c-pragma.h.
12792 \f
12793 Copyright (C) 2010-2022 Free Software Foundation, Inc.
12794
12795 Copying and distribution of this file, with or without modification,
12796 are permitted in any medium without royalty provided the copyright
12797 notice and this notice are preserved.