]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
rs6000: Don't use r12 for CR save on ELFv2 (PR102107)
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
e11c6046
GA
12021-09-01 Iain Sandoe <iain@sandoe.co.uk>
2
3 * c-attribs.c (handle_unavailable_attribute): New.
4
1e2f030b
GA
52021-08-30 Jason Merrill <jason@redhat.com>
6
7 * c.opt: Add -Wmissing-requires.
8
85d77ac4
GA
92021-08-25 Lewis Hyatt <lhyatt@gmail.com>
10
11 PR other/93067
12 * c-opts.c (c_common_input_charset_cb): New function.
13 (c_common_post_options): Call new function
14 diagnostic_initialize_input_context().
15
7c9e1645
GA
162021-08-20 Tobias Burnus <tobias@codesourcery.com>
17
18 * c-format.c (gcc_gfc_length_specs): Add 'll' and 'w'.
19 (gcc_gfc_char_table): Add T9L_LL and T9L_ULL to
20 "di" and "u", respecitively; fill with BADLEN to match
21 size of 'types'.
22 (get_init_dynamic_hwi): Split off from ...
23 (init_dynamic_diag_info): ... here. Call it.
24 (init_dynamic_gfc_info): Call it.
25
262021-08-20 Jakub Jelinek <jakub@redhat.com>
27
28 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_ERROR.
29 * c-pragma.c (omp_pragmas): Add error directive.
30 * c-omp.c (omp_directives): Uncomment error directive entry.
31
6e529985
GA
322021-08-18 Jakub Jelinek <jakub@redhat.com>
33
34 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_NOTHING.
35 * c-pragma.c (omp_pragmas): Add nothing directive.
36 * c-omp.c (omp_directives): Uncomment nothing directive entry.
37
2d14d64b
GA
382021-08-17 Jakub Jelinek <jakub@redhat.com>
39
40 PR c++/101539
41 * c-common.h (enum rid): Add RID_IS_LAYOUT_COMPATIBLE.
42 * c-common.c (c_common_reswords): Add __is_layout_compatible.
43
442021-08-17 Matt Jacobson <mhjacobson@me.com>
45
46 * c-opts.c (c_common_post_options): Default to
47 flag_objc_sjlj_exceptions = 1 only when flag_objc_abi < 2.
48
492021-08-17 Jakub Jelinek <jakub@redhat.com>
50
51 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_SCOPE.
52 * c-pragma.c (omp_pragmas): Add scope construct.
53 * c-omp.c (omp_directives): Uncomment scope directive entry.
54
9d1d9fc8
GA
552021-08-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
56
57 * c-cppbuiltin.c (c_cpp_builtins): Define
58 __LIBGCC_GCOV_TYPE_SIZE if flag_building_libgcc is true.
59
72be20e2
GA
602021-08-12 Jakub Jelinek <jakub@redhat.com>
61
62 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_MASKED.
63 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FILTER.
64 * c-pragma.c (omp_pragmas_simd): Add masked construct.
65 * c-common.h (enum c_omp_clause_split): Add C_OMP_CLAUSE_SPLIT_MASKED
66 enumerator.
67 (c_finish_omp_masked): Declare.
68 * c-omp.c (c_finish_omp_masked): New function.
69 (c_omp_split_clauses): Handle combined masked constructs.
70
4d17ca1b
GA
712021-07-30 Jakub Jelinek <jakub@redhat.com>
72
73 PR c++/101539
74 * c-common.h (enum rid): Add RID_IS_POINTER_INTERCONVERTIBLE_BASE_OF.
75 * c-common.c (c_common_reswords): Add
76 __is_pointer_interconvertible_base_of.
77
782021-07-29 Richard Biener <rguenther@suse.de>
79
80 PR c/101512
81 * c-common.c (c_common_mark_addressable_vec): Look through
82 C_MAYBE_CONST_EXPR even if not at the toplevel.
83
af3f12e6
GA
842021-07-27 Martin Sebor <msebor@redhat.com>
85
86 PR c/101585
87 * c-warn.c (warn_parm_ptrarray_mismatch): Use OEP_DECL_NAME.
88
ead235f6
GA
892021-07-23 Jakub Jelinek <jakub@redhat.com>
90
91 * c-lex.c (c_common_has_attribute): Call canonicalize_attr_name also
92 on attr_id. Return 1 for omp::directive or omp::sequence in C++11
93 and later.
94
952021-07-23 Jakub Jelinek <jakub@redhat.com>
96
97 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP__START_ and
98 PRAGMA_OMP__LAST_ enumerators.
99
419c6c68
GA
1002021-07-21 Thomas Schwinge <thomas@codesourcery.com>
101 Joseph Myers <joseph@codesourcery.com>
102 Cesar Philippidis <cesar@codesourcery.com>
103
104 * c-pragma.h (pragma_omp_clause): Add 'PRAGMA_OACC_CLAUSE_NOHOST'.
105
92d45509
GA
1062021-07-20 Martin Sebor <msebor@redhat.com>
107
108 * c-common.c (c_build_shufflevector): Adjust by-value argument to
109 by-const-reference.
110 * c-common.h (c_build_shufflevector): Same.
111
87277b6a
GA
1122021-07-16 Andrew Pinski <apinski@marvell.com>
113
114 PR c/101453
115 * c-common.c (parse_optimize_options): Use the correct
116 size for buffer.
117
d97d71a1
GA
1182021-07-15 Martin Sebor <msebor@redhat.com>
119
120 PR c/101289
121 PR c/97548
122 * c-warn.c (warn_parm_array_mismatch): Use OEP_DECL_NAME.
123
c4fee1c6
GA
1242021-07-14 Jason Merrill <jason@redhat.com>
125
126 * c-opts.c (c_common_post_options): Set -fdelete-dead-exceptions.
127
6fba0eea
GA
1282021-07-06 Martin Sebor <msebor@redhat.com>
129
130 * c-format.c (gcc_tdiag_char_table): Remove support for %G and %K.
131 (gcc_cdiag_char_table): Same.
132 (gcc_cxxdiag_char_table): Same.
133
7a60a6e8
GA
1342021-07-02 Jakub Jelinek <jakub@redhat.com>
135
136 * c-common.h (enum c_omp_directive_kind): New enum.
137 (struct c_omp_directive): New type.
138 (c_omp_categorize_directive): Declare.
139 * c-omp.c (omp_directives): New variable.
140 (c_omp_categorize_directive): New function.
141
bea7c16a
GA
1422021-07-01 Eric Botcazou <ebotcazou@adacore.com>
143
144 * c-ada-spec.c (packed_layout): New global variable.
145 (dump_ada_declaration): Set it upon seeing a packed record type.
146 Do not put the "aliased" keyword if it is set.
147 (dump_ada_structure): Add Pack aspect if it is set and clear it.
148
1492021-07-01 Eric Botcazou <ebotcazou@adacore.com>
150
151 * c-ada-spec.c (check_name): Rename into...
152 (check_type_name_conflict): ...this. Minor tweak.
153 (dump_ada_function_declaration): Adjust to above renaming.
154 (dump_ada_array_domains): Fix oversight.
155 (dump_ada_declaration): Call check_type_name_conflict for variables.
156
90708f87
GA
1572021-06-25 Martin Sebor <msebor@redhat.com>
158
159 * c-common.c (c_wrap_maybe_const): Remove TREE_NO_WARNING.
160 (c_common_truthvalue_conversion): Replace direct uses of
161 TREE_NO_WARNING with warning_suppressed_p, suppress_warning, and
162 copy_no_warning.
163 (check_function_arguments_recurse): Same.
164 * c-gimplify.c (c_gimplify_expr): Same.
165 * c-warn.c (overflow_warning): Same.
166 (warn_logical_operator): Same.
167 (warn_if_unused_value): Same.
168 (do_warn_unused_parameter): Same.
169
9aa8327e
GA
1702021-06-24 Jakub Jelinek <jakub@redhat.com>
171
172 * c-common.h (enum c_omp_region_type): Add C_ORT_TARGET and
173 C_ORT_OMP_TARGET.
174 * c-omp.c (c_omp_split_clauses): For OMP_CLAUSE_IN_REDUCTION on
175 combined target constructs also add map (always, tofrom:) clause.
176
ede6c356
GA
1772021-06-15 Robin Dapp <rdapp@linux.ibm.com>
178
179 * c-attribs.c (common_handle_aligned_attribute): Remove short
180 circuit and dead code.
181
8dc48181
GA
1822021-06-14 Jonathan Wakely <jwakely@redhat.com>
183
184 PR c++/101052
185 * known-headers.cc (get_stdlib_header_for_name): Add known
186 headers for EXIT_FAILURE, EXIT_SUCCESS, abort, atexit, calloc,
187 exit, and getenv.
188
8b8c3912
GA
1892021-06-12 Jason Merrill <jason@redhat.com>
190
191 * c-attribs.c (handle_unused_attribute): Handle FIELD_DECL.
192
f16f65f8
GA
1932021-06-11 Jakub Jelinek <jakub@redhat.com>
194
195 PR c++/100974
196 * c-cppbuiltin.c (c_cpp_builtins): Predefine __cpp_if_consteval for
197 -std=c++2b for P1938R3 consteval if support.
198
4f625f47
GA
1992021-06-09 Jason Merrill <jason@redhat.com>
200
201 PR c++/100879
202 * c-warn.c (warn_for_sign_compare): Remove C++ enum mismatch
203 warning.
204
438aac59
GA
2052021-06-07 Martin Liska <mliska@suse.cz>
206
207 * c-target.def: Split long lines and replace them
208 with '\n\'.
209
600f90cb
GA
2102021-06-04 Martin Sebor <msebor@redhat.com>
211
212 PR c/100783
213 * c-attribs.c (positional_argument): Bail on erroneous types.
214
2152021-06-04 Martin Sebor <msebor@redhat.com>
216
217 * c-warn.c (warn_parm_array_mismatch): Check TREE_PURPOSE to test
218 for element presence.
219
440c8a0a
GA
2202021-06-03 Eric Botcazou <ebotcazou@adacore.com>
221
222 * c-ada-spec.c (dump_ada_macros): Minor tweaks.
223 (dump_ada_decl_name): Likewise.
224 (dump_anonymous_type_name): Remove parent parameter and adjust.
225 (dump_sloc): Minor tweak.
226 (dump_ada_array_type): Remove type parameter and adjust.
227 (dump_ada_enum_type): Remove parent parameter and adjust.
228 (dump_ada_node): Adjust calls to above functions.
229 (dumped_anonymous_types): New global variable.
230 (dump_nested_types_1): Rename into...
231 (dump_nested_types): ...this.
232 (dump_nested_type): Remove parent and dumped_types parameters.
233 <ARRAY_TYPE>: Replace dumped_types with dumped_anonymous_types.
234 Adjust calls to dump_anonymous_type_name and dump_ada_array_type.
235 (dump_ada_specs): Initialize and free dumped_anonymous_types.
236
2372021-06-03 Eric Botcazou <ebotcazou@adacore.com>
238
239 * c-ada-spec.c (pp_ada_tree_identifier): Tidy up.
240 (dump_ada_node) <POINTER_TYPE>: Deal specially with external subtypes.
241
2422021-06-03 Eric Botcazou <ebotcazou@adacore.com>
243
244 * c-ada-spec.c (dump_ada_enum_type): Dump a prefix for constants.
245 (htable_t): New typedef.
246 (overloaded_names): Use it.
247 (add_name): New function.
248 (init_overloaded_names): Use add_name to populate the table and add
249 special cases for sigaction and stat.
250 (overloaded_name_p): Rename into...
251 (overloading_index): ...this. Do not initialize overloaded_names table
252 here. Return the index or zero.
253 (dump_ada_declaration): Minor tweaks. Do not skip overloaded functions
254 but add an overloading suffix instead.
255 (dump_ada_specs): Initialize overloaded_names tables here.
256
b75978d1
GA
2572021-06-01 Martin Liska <mliska@suse.cz>
258
259 PR other/100759
260 * c-attribs.c (handle_optimize_attribute): Limit sanity check
261 to a situation where we are not in processing of an optimize
262 pragma.
263 * c-pragma.c (handle_pragma_pop_options): Restore target
264 options.
265
ee682192
GA
2662021-05-31 Indu Bhagat <indu.bhagat@oracle.com>
267
268 PR testsuite/100749
269 * c-pch.c (c_common_valid_pch): Use xstrdup for debug format set names.
270
2712021-05-31 Richard Biener <rguenther@suse.de>
272
273 PR c++/88601
274 * c-common.c: Include tree-vector-builder.h and
275 vec-perm-indices.h.
276 (c_common_reswords): Add __builtin_shufflevector.
277 (c_build_shufflevector): New funtion.
278 * c-common.h (enum rid): Add RID_BUILTIN_SHUFFLEVECTOR.
279 (c_build_shufflevector): Declare.
280
48166757
GA
2812021-05-28 Jakub Jelinek <jakub@redhat.com>
282
283 PR middle-end/99928
284 * c-omp.c (c_omp_split_clauses): For reduction clause if combined with
285 target add a map tofrom clause with OMP_CLAUSE_MAP_IMPLICIT.
286
2872021-05-28 Tobias Burnus <tobias@codesourcery.com>
288
289 * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_AFFINITY.
290
2bc6dace
GA
2912021-05-25 Martin Liska <mliska@suse.cz>
292
293 PR tree-optimization/92860
294 PR target/99592
295 * c-attribs.c (handle_optimize_attribute): Save target node
296 before calling parse_optimize_options and save it in case
297 it changes.
298 * c-pragma.c (handle_pragma_target): Similarly for pragma.
299 (handle_pragma_pop_options): Likewise here.
300
3012021-05-25 Martin Liska <mliska@suse.cz>
302
303 * c-attribs.c (handle_no_sanitize_coverage_attribute): New.
304
3052021-05-25 Jakub Jelinek <jakub@redhat.com>
306
307 PR middle-end/99928
308 * c-omp.c (c_omp_split_clauses): Copy reduction to teams when teams is
309 combined with simd and not with taskloop or for.
310
2832d51b
GA
3112021-05-21 Jakub Jelinek <jakub@redhat.com>
312
313 PR middle-end/99928
314 * c-omp.c (c_omp_split_clauses): Set OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT
315 on firstprivate clause copy going to target construct, and for
316 target simd set also OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET bit.
317
ea34e2ed
GA
3182021-05-20 Jonathan Wakely <jwakely@redhat.com>
319
320 * c.opt (Wc++11-extensions, Wc++14-extensions)
321 (Wc++17-extensions, Wc++20-extensions, Wc++23-extensions): New
322 options.
323
3242021-05-20 Indu Bhagat <indu.bhagat@oracle.com>
325
326 * c-lex.c (init_c_lex): Use dwarf_debuginfo_p.
327
3282021-05-20 Indu Bhagat <indu.bhagat@oracle.com>
329
330 * c-opts.c (c_common_post_options): Adjust access to debug_type_names.
331 * c-pch.c (struct c_pch_validity): Use type uint32_t.
332 (pch_init): Renamed member.
333 (c_common_valid_pch): Adjust access to debug_type_names.
334
65f32e5d
GA
3352021-05-19 Martin Sebor <msebor@redhat.com>
336
337 PR c/100619
338 * c-attribs.c (build_attr_access_from_parms): Handle arbitrarily many
339 bounds.
340
a8daf9a1
GA
3412021-05-18 Richard Biener <rguenther@suse.de>
342
343 PR c/100547
344 * c-attribs.c (type_valid_for_vector_size): Reject too large nunits.
345 Reword existing nunit diagnostic.
346
a7ffc1ef
GA
3472021-05-17 Joern Rennecke <joern.rennecke@embecosm.com>
348
349 * c-common.c (braced_list_to_string): Return CTOR unchanged
350 if host and target character sizes don't match.
351
87a7d10c
GA
3522021-05-14 Martin Liska <mliska@suse.cz>
353
354 * c.opt: Add Warning keyword for 2 options.
355
f9af11c7
GA
3562021-05-13 Martin Liska <mliska@suse.cz>
357
358 PR middle-end/100504
359 * c-attribs.c (handle_target_clones_attribute): Expect a string
360 argument to target_clone argument.
361
037e3661
GA
3622021-05-11 Joseph Myers <joseph@codesourcery.com>
363
364 * c-lex.c (interpret_float): Handle digit separators for C2X.
365
aa891c56
GA
3662021-05-10 Martin Liska <mliska@suse.cz>
367
368 * c-ada-spec.c (print_destructor): Use startswith
369 function instead of strncmp.
370 (dump_ada_declaration): Likewise.
371 * c-common.c (disable_builtin_function): Likewise.
372 (def_builtin_1): Likewise.
373 * c-format.c (check_tokens): Likewise.
374 (check_plain): Likewise.
375 (convert_format_name_to_system_name): Likewise.
376
e4ff4ffb
GA
3772021-04-28 Patrick McGehearty <patrick.mcgehearty@oracle.com>
378
379 * c-cppbuiltin.c (c_cpp_builtins): Add supporting macros for new
380 complex divide
381
c0fa3f2f
GA
3822021-04-26 Thomas Schwinge <thomas@codesourcery.com>
383 Nathan Sidwell <nathan@codesourcery.com>
384 Tom de Vries <vries@codesourcery.com>
385 Julian Brown <julian@codesourcery.com>
386 Kwok Cheung Yeung <kcy@codesourcery.com>
387
388 * c.opt (Wopenacc-parallelism): New.
389
6e81e015
GA
3902021-04-19 Thomas Schwinge <thomas@codesourcery.com>
391
392 * c.opt (fopenacc-kernels=): Remove.
393
019a9220
GA
3942021-04-08 Jakub Jelinek <jakub@redhat.com>
395
396 * c-warn.c (do_warn_double_promotion): Fix comment typo,
397 occured -> occurred.
398 (check_alignment_of_packed_member): Fix a comment typo,
399 memeber -> member.
400 (warn_parm_ptrarray_mismatch): Fix comment typos, os -> of
401 and onless -> unless.
402 (warn_parm_array_mismatch): Fix comment typos, declaratation
403 -> declaration and woud -> would. Fix up comment indentation.
404
4052021-04-08 Martin Sebor <msebor@redhat.com>
406
407 PR middle-end/99883
408 * c.opt (Wmismatched-new-delete): Correct spelling.
409
b1da9916
GA
4102021-04-05 Eric Botcazou <ebotcazou@adacore.com>
411
412 * c-ada-spec.c (is_simple_enum): Minor tweaks.
413 (dump_ada_enum_type): Add TYPE and PARENT parameters. For non-simple
414 enumeral types use again the type name for the enumeration constants.
415 (dump_ada_node): Adjust call to dump_ada_enum_type.
416 (dump_nested_type): Likewise.
417
f1607029
GA
4182021-04-01 Jason Merrill <jason@redhat.com>
419
420 PR c++/98481
421 * c-opts.c (c_common_post_options): Bump latest_abi_version.
422
4493b1c1
GA
4232021-03-25 Jakub Jelinek <jakub@redhat.com>
424
425 PR c++/99565
426 * c-warn.c (do_warn_duplicated_branches): Pass also
427 OEP_ADDRESS_OF_SAME_FIELD to operand_equal_p.
428
6af7b307
GA
4292021-03-20 Jakub Jelinek <jakub@redhat.com>
430
431 PR debug/99230
432 * c-gimplify.c (c_genericize_control_stmt): Handle STATEMENT_LIST.
433
ceae9533
GA
4342021-03-05 Eric Botcazou <ebotcazou@adacore.com>
435
436 * c-ada-spec.c (dump_ada_declaration) <TYPE_DECL>: Dump nested types
437 after entering the separate class package, if any.
438
67f10d28
GA
4392021-03-04 Richard Biener <rguenther@suse.de>
440
441 * c-pretty-print.c (c_pretty_printer::direct_abstract_declarator):
442 Handle ERROR_MARK.
443
4442021-03-04 Jakub Jelinek <jakub@redhat.com>
445
446 PR c/99325
447 * c-ppoutput.c (print): Change src_line type from int to unsigned.
448 (token_streamer::stream) Likewise.
449 (maybe_print_line_1): Likewise. Don't strcmp src_file if src_loc is
450 UNKNOWN_LOCATION.
451
f3641ac7
GA
4522021-03-03 Jakub Jelinek <jakub@redhat.com>
453
454 PR c/99324
455 * c-common.c (build_va_arg): Call c_common_mark_addressable_vec
456 instead of mark_addressable. Fix a comment typo -
457 neutrallly -> neutrally.
458
2c83c3fb
GA
4592021-02-28 Jakub Jelinek <jakub@redhat.com>
460
461 PR c/99304
462 * c-attribs.c (handle_malloc_attribute): Fix a typo in inform
463 message - refernced -> referenced. Remove superfluous space before
464 closing paren of function calls.
465
daa68844
GA
4662021-02-25 Nathan Sidwell <nathan@acm.org>
467
468 PR c++/99166
469 * c.opt (-flang-info-module-cmi): Renamed option.
470
50352c6c
GA
4712021-02-19 Nathan Sidwell <nathan@acm.org>
472
473 * c.opt (flang-info-module-read, flang-info-module-read=): New.
474
bf81237e
GA
4752021-02-18 H.J. Lu <hjl.tools@gmail.com>
476
477 PR target/99113
478 * c-attribs.c (c_common_attribute_table): Add the "retain"
479 attribute.
480 (handle_retain_attribute): New function.
481
0e804ce3
GA
4822021-02-16 Marek Polacek <polacek@redhat.com>
483
484 PR c++/99062
485 * c-attribs.c (handle_assume_aligned_attribute): Check that the
486 alignment argument is non-negative. Tweak a warning message.
487
fab095da
GA
4882021-02-12 Martin Sebor <msebor@redhat.com>
489
490 PR c/99055
491 * c-warn.c (warn_parm_array_mismatch): Free strings returned from
492 print_generic_expr_to_str.
493
4b37c3ea
GA
4942021-02-10 Richard Biener <rguenther@suse.de>
495
496 * c-common.c (parse_optimize_options): Free decoded_options.
497
a19dd5e6
GA
4982021-02-04 emsr <3dw4rd@verizon.net>
499
500 * c-cppbuiltin.c (c_cpp_builtins): __cpp_size_t_suffix=202011L.
501
9faaa807
GA
5022021-02-03 Ed Smith-Rowland <3dw4rd@verizon.net>
503
504 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_size_t_suffix.
505 * c-lex.c (interpret_integer): Set node type for size literal.
506
85d04a2e
GA
5072021-01-28 Jakub Jelinek <jakub@redhat.com>
508
509 * c.opt (-std=c++2a, -std=c++20, -std=gnu++2a, -std=gnu++20): Remove
510 draft from description.
511 (-std=c++2b): Fix a pasto, 2020 -> 2023.
512
e62bb7f0
GA
5132021-01-26 Paul Fee <paul.f.fee@gmail.com>
514
515 * c-common.h (cxx_dialect): Add cxx23 as a dialect.
516 * c.opt: Add options for -std=c++23, std=c++2b, -std=gnu++23
517 and -std=gnu++2b
518 * c-opts.c (set_std_cxx23): New.
519 (c_common_handle_option): Set options when -std=c++23 is enabled.
520 (c_common_post_options): Adjust comments.
521 (set_std_cxx20): Likewise.
522
161e4c08
GA
5232021-01-25 Martin Sebor <msebor@redhat.com>
524
525 PR c++/98646
526 * c-common.c (check_nonnull_arg): Adjust warning text.
527
4c9bcd5c
GA
5282021-01-17 Martin Sebor <msebor@redhat.com>
529
530 * c-pretty-print.c (c_pretty_printer::primary_expression): Don't
531 assume SSA_NAME_IDENTIFIER evaluates to nonzero.
532
59cf67d1
GA
5332021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
534
535 * c-pragma.h (pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_DETACH.
536 Redefine PRAGMA_OACC_CLAUSE_DETACH.
537
2f7f0d32
GA
5382021-01-15 Jakub Jelinek <jakub@redhat.com>
539
540 PR tree-optimization/98597
541 * c-pretty-print.c: Include options.h.
542 (c_fold_indirect_ref_for_warn): New function.
543 (print_mem_ref): Use it. If it returns something that has compatible
544 type and is TBAA compatible with zero offset, print it and return,
545 otherwise print it using offsetof syntax or array ref syntax. Fix up
546 printing if MEM_REFs first operand is ADDR_EXPR, or when the first
547 argument has pointer to array type. Print pointers using the standard
548 formatting.
549
6851dda2
GA
5502021-01-12 Martin Sebor <msebor@redhat.com>
551
552 PR c/98597
553 PR c/98592
554 * c-pretty-print.c (print_mem_ref): Avoid assuming MEM_REF operand
555 has pointer type. Remove redundant code. Avoid calling
556 gimple_canonical_types_compatible_p.
557
7d187e4f
GA
5582021-01-07 Martin Sebor <msebor@redhat.com>
559
560 PR middle-end/98578
561 * c-pretty-print.c (print_mem_ref): Strip array from access type.
562 Avoid assuming acces type's size is constant. Correct condition
563 guarding the printing of a parenthesis.
564
942ae5be
GA
5652021-01-06 Martin Sebor <msebor@redhat.com>
566
567 PR c++/95768
568 * c-pretty-print.c (c_pretty_printer::primary_expression): For
569 SSA_NAMEs print VLA names and GIMPLE defining statements.
570 (print_mem_ref): New function.
571 (c_pretty_printer::unary_expression): Call it.
572
5732021-01-06 Richard Biener <rguenther@suse.de>
574
575 PR tree-optimization/95582
576 * c-attribs.c (c_common_attribute_table): Add entry for
577 signed_bool_precision.
578 (handle_signed_bool_precision_attribute): New.
579
8daa719b
GA
5802020-12-24 Iain Sandoe <iain@sandoe.co.uk>
581
582 * c.opt: Add -stdlib= option and enumerations for
583 libstdc++ and libc++.
584
eefe499f
GA
5852020-12-16 Martin Liska <mliska@suse.cz>
586
587 * c.opt: Remove usage of Report.
588
d52945ce
GA
5892020-12-14 Martin Sebor <msebor@redhat.com>
590
591 PR middle-end/98166
592 PR c++/57111
593 PR middle-end/98160
594 * c-attribs.c (maybe_add_noinline): New function.
595 (handle_malloc_attribute): Call it. Use ATTR_FLAG_INTERNAL.
596 Implicitly add attribute noinline to functions not declared inline
597 and warn on those.
598
ca2bd949
GA
5992020-12-09 Tobias Burnus <tobias@codesourcery.com>
600
601 * c-pragma.c (omp_pragmas): Add 'allocate'.
602 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_ALLOCATE.
603
f6e8e279
GA
6042020-12-08 Jakub Jelinek <jakub@redhat.com>
605
606 PR c++/98187
607 * c-pragma.c (omp_pragmas): Remove "master".
608 (omp_pragmas_simd): Add "master".
609
bc8a7013
GA
6102020-12-07 Marek Polacek <polacek@redhat.com>
611
612 PR c++/98126
613 * c-common.c (verify_tree_lim_r): New function.
614 (verify_sequence_points): Use it. Use nullptr instead of 0.
615
b8dd0ef7
GA
6162020-12-03 Martin Sebor <msebor@redhat.com>
617
618 PR c++/90629
619 PR middle-end/94527
620 * c-attribs.c (handle_dealloc_attribute): New function.
621 (handle_malloc_attribute): Handle argument forms of attribute.
622 * c.opt (-Wmismatched-dealloc): New option.
623 (-Wmismatched-new-delete): New option.
624
6252020-12-03 Jakub Jelinek <jakub@redhat.com>
626
627 PR libstdc++/93121
628 * c-common.h (enum rid): Add RID_BUILTIN_BIT_CAST.
629 * c-common.c (c_common_reswords): Add __builtin_bit_cast.
630
e0f5e792
GA
6312020-12-01 JeanHeyd Meneide <phdofthehouse@gmail.com>
632
633 * c-cppbuiltin.c (c_cpp_builtins): Add predefined
634 {__GNUC_EXECUTION_CHARSET_NAME} and
635 _WIDE_EXECUTION_CHARSET_NAME} macros.
636
6372020-12-01 Nathan Sidwell <nathan@acm.org>
638
639 * c-common.c (module, import, export): New internal tokens (with
640 trailing space).
641 * c-common.h (RID__MODULE, RID__IMPORT & RID__EXPORT): Enumerate
642 them.
643 (D_CXX_MODULES, D_CXX_MODULES_FLAGS): Enable them.
644 * c-cppbuiltin.c (c_cpp_builtins): Feature macro.
645
6462020-12-01 Nathan Sidwell <nathan@acm.org>
647
648 * c-opts.c (c_common_init_options): Ask for module dependencies.
649 (c_common_handle_option): Handle -Mmodules -Mno-modules.
650 * c-pch.c (c_common_valid_pch): ... does not play with C++
651 modules.
652 * c.opt (Mmodules, Mno-modules): New preprocessor dependency
653 options.
654 (fmodules-ts, fmodule-header, fmodule-implicit-inline)
655 (fmodule-only, fmodule-mapper, fmodule-lazy)
656 (fmodule-version-ignore, Winvalid-imported-macros)
657 (flang-info-include-translate, flang-info-include-translate-not):
658 New options
659
5fbf0ecb
GA
6602020-11-28 Eric Botcazou <ebotcazou@adacore.com>
661
662 * c-ada-spec.c (dump_nested_type) <RECORD_TYPE>: Remove obsolete code.
663 (dump_ada_structure): Also deal with convention, unchecked union and
664 bit-field for nested types. In the latter case, print an Alignment
665 aspect along with the Pack aspect.
666
360258da
GA
6672020-11-25 Martin Sebor <msebor@redhat.com>
668
669 PR bootstrap/94982
670 * c-attribs.c (handle_patchable_function_entry_attribute): Avoid
671 -Wformat-diag.
672
1e2c9a27
GA
6732020-11-24 Martin Sebor <msebor@redhat.com>
674
675 * c-warn.c (warn_parm_array_mismatch): Avoid invalid redeclarations.
676
8e6198d0
GA
6772020-11-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
678
679 * c-attribs.c (handle_special_var_sec_attribute): New.
680 (handle_noinit_attribute): Remove.
681 (attr_noinit_exclusions): Rename to...
682 (attr_section_exclusions): ...this, and add "persistent" attribute
683 exclusion.
684 (c_common_attribute_table): Add "persistent" attribute.
685
7a97e2fc
GA
6862020-11-21 Aaron Sawdey <acsawdey@linux.ibm.com>
687
688 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
689 Treat opaque types like other types.
690 (c_pretty_printer::direct_abstract_declarator): Opaque types are
691 supported types.
692
82e5048e
GA
6932020-11-20 Martin Sebor <msebor@redhat.com>
694
695 * c-warn.c (warn_parm_array_mismatch): Bail on invalid redeclarations
696 with fewer arguments.
697
6982020-11-20 Martin Sebor <msebor@redhat.com>
699
700 PR middle-end/97879
701 * c-attribs.c (handle_access_attribute): Handle ATTR_FLAG_INTERNAL.
702 Error out on invalid modes.
703
7042020-11-20 Jakub Jelinek <jakub@redhat.com>
705
706 PR libstdc++/88101
707 * c-common.c (check_builtin_function_arguments): Handle
708 BUILT_IN_CLEAR_PADDING.
709
25bb75f8
GA
7102020-11-18 Nathan Sidwell <nathan@acm.org>
711
712 * c-lex.c (c_lex_with_flags): CPP_HEADER_NAMEs can now be seen.
713
4dabb037
GA
7142020-11-17 Nathan Sidwell <nathan@acm.org>
715
716 * c-common.h (enum c_tree_index): Reorder to place lazy fields
717 after newly-added CTI_MODULE_HWM.
718
7192020-11-17 Joseph Myers <joseph@codesourcery.com>
720
721 * c-cppbuiltin.c (builtin_define_float_constants): Define
722 "*_IS_IEC_60559__" macros.
723
7242020-11-17 Nathan Sidwell <nathan@acm.org>
725
726 * c-lex.c: #include "langhooks.h".
727 (cb_undef): Maybe call preprocess_undef lang hook.
728 * c-opts.c (c_common_post_options): Maybe call preprocess_options
729 lang hook.
730 (push_command_line_include): Maybe call preprocess_main_file lang
731 hook.
732 (cb_file_change): Likewise.
733 * c-ppoutput.c: #include "langhooks.h.
734 (scan_translation_unit): Maybe call preprocess_token lang hook.
735 (class do_streamer): New, derive from token_streamer.
736 (directives_only_cb): Data pointer is do_streamer, call
737 preprocess_token lang hook.
738 (scan_translation_unit_directives_only): Use do_streamer.
739 (print_line_1): Move src_line recording to after string output.
740 (cb_undef): Maybe call preprocess_undef lang hook.
741
7422020-11-17 Nathan Sidwell <nathan@acm.org>
743
744 * c-ppoutput.c (scan_translation_unit): Use token_streamer, remove
745 code duplicating that functionality.
746
7472020-11-17 Jakub Jelinek <jakub@redhat.com>
748
749 PR c/90628
750 * c-common.c (check_builtin_function_arguments)
751 <case BUILT_IN_ADD_OVERFLOW>: Diagnose when last argument is pointer
752 to _Atomic. For the TYPE_READONLY case, adjust message to be usable
753 for more builtins and argument positions.
754
29c5d9ce
GA
7552020-11-16 Iain Sandoe <iain@sandoe.co.uk>
756
757 PR objc/97854
758 * stub-objc.c: Include c-common.h to declare enum rid.
759
77f67db2
GA
7602020-11-13 Jakub Jelinek <jakub@redhat.com>
761
762 PR c++/63287
763 * c-cppbuiltin.c: Include configargs.h.
764 (c_cpp_builtins): For C++11 and later if THREAD_MODEL_SPEC is not
765 defined, predefine __STDCPP_THREADS__ to 1 unless thread_model is
766 "single".
767
7682020-11-13 Gergö Barany <gergo@codesourcery.com>
769 Thomas Schwinge <thomas@codesourcery.com>
770
771 * c.opt (fopenacc-kernels): Add.
772
7732020-11-13 Jason Merrill <jason@redhat.com>
774
775 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_using_enum.
776
7772020-11-13 Piotr H. Dabrowski <phd@phd.re>
778
779 PR c++/91318
780 * c-cppbuiltin.c: c_cpp_builtins_optimize_pragma(): use cpp_define_unused()
781
7822020-11-13 Martin Liska <mliska@suse.cz>
783
784 * c-attribs.c (build_attr_access_from_parms): Format properly.
785
7862020-11-13 Iain Sandoe <iain@sandoe.co.uk>
787
788 PR objc/90707
789 * c-common.c (c_common_reswords): null_unspecified, nullable,
790 nonnull, null_resettable: New keywords.
791 * c-common.h (enum rid): RID_NULL_UNSPECIFIED, RID_NULLABLE,
792 RID_NONNULL, RID_NULL_RESETTABLE: New.
793 (OBJC_IS_PATTR_KEYWORD): Include nullability keywords in the
794 ranges accepted for property attributes.
795 * c-attribs.c (handle_objc_nullability_attribute): New.
796 * c-objc.h (enum objc_property_attribute_group): Add
797 OBJC_PROPATTR_GROUP_NULLABLE.
798 (enum objc_property_attribute_kind):Add
799 OBJC_PROPERTY_ATTR_NULL_UNSPECIFIED, OBJC_PROPERTY_ATTR_NULLABLE,
800 OBJC_PROPERTY_ATTR_NONNULL, OBJC_PROPERTY_ATTR_NULL_RESETTABLE.
801
8022020-11-13 Iain Sandoe <iain@sandoe.co.uk>
803
804 PR objc/77404
805 * c-attribs.c (handle_objc_root_class_attribute): New
806 * c-objc.h (objc_start_class_interface): Add a location
807 value for the position of the class name.
808 * c.opt: Add Wobjc-root-class.
809 * stub-objc.c (objc_start_class_interface): Add a location
810 value for the position of the class name.
811
a5a11525
GA
8122020-11-12 Joseph Myers <joseph@codesourcery.com>
813
814 * c-lex.c (c_common_has_attribute): Take argument std_syntax.
815 Allow scope for C. Handle standard attributes for C. Do not
816 accept unscoped attributes if std_syntax and not handled as
817 standard attributes.
818 * c-common.h (c_common_has_attribute): Update prototype.
819
8202020-11-12 Nicholas Guriev <guriev-ns@ya.ru>
821
822 PR pch/86674
823 * c-pch.c (c_common_valid_pch): Use cpp_warning with CPP_W_INVALID_PCH
824 reason to fix -Werror=invalid-pch and -Wno-error=invalid-pch switches.
825
0f5f9ed5
GA
8262020-11-11 Patrick Palka <ppalka@redhat.com>
827
828 PR c++/88115
829 * c-opts.c (c_common_post_options): Update latest_abi_version.
830
bb622641
GA
8312020-11-10 Jakub Jelinek <jakub@redhat.com>
832
833 PR c/97748
834 * c-common.h (warn_if_unused_value): Add quiet argument defaulted
835 to false.
836 * c-warn.c (warn_if_unused_value): Likewise. Pass it down
837 recursively and just return true instead of warning if it is true.
838 Handle COMPLEX_EXPR.
839
8402020-11-10 Chung-Lin Tang <cltang@codesourcery.com>
841
842 * c-common.h (c_omp_adjust_map_clauses): New declaration.
843 * c-omp.c (struct map_clause): Helper type for c_omp_adjust_map_clauses.
844 (c_omp_adjust_map_clauses): New function.
845
2bee28dd
GA
8462020-11-09 Marek Polacek <polacek@redhat.com>
847
848 DR 1914
849 * c-common.c (attribute_fallthrough_p): Tweak the warning
850 message.
851
8522020-11-09 Patrick Palka <ppalka@redhat.com>
853
854 * c-pragma.c (handle_pragma_diagnostic): Split the
855 unknown-option -Wpragmas diagnostic into a warning and a
856 subsequent note containing a spelling suggestion. Avoid
857 computing the suggestion if -Wpragmas warnings are being
858 suppressed.
859
8602020-11-09 Patrick Palka <ppalka@redhat.com>
861
862 PR testsuite/97117
863 * c-indentation.c (get_visual_column): Remove location_t
864 parameter. Move the column-tracking diagnostic code from here
865 to ...
866 (should_warn_for_misleading_indentation): ... here, before the
867 early exit for when the loci are not all distinct. Don't pass a
868 location_t argument to get_visual_column.
869 (assert_get_visual_column_succeeds): Don't pass a location_t
870 argument to get_visual_column.
871 (assert_get_visual_column_fails): Likewise.
872
fb95de7a
GA
8732020-11-08 Iain Sandoe <iain@sandoe.co.uk>
874
875 * c-common.h (OBJC_IS_PATTR_KEYWORD): Add class to the list
876 of keywords accepted in @property attribute contexts.
877 * c-objc.h (enum objc_property_attribute_group): Add
878 OBJC_PROPATTR_GROUP_CLASS.
879 (enum objc_property_attribute_kind): Add
880 OBJC_PROPERTY_ATTR_CLASS.
881
2da7ee05
GA
8822020-11-07 Iain Sandoe <iain@sandoe.co.uk>
883
884 * c-common.c (c_common_reswords): Add 'atomic' property
885 attribute.
886 * c-common.h (enum rid): Add RID_PROPATOMIC for atomic
887 property attributes.
888
8892020-11-07 Iain Sandoe <iain@sandoe.co.uk>
890
891 * c-attribs.c (handle_nsobject_attribute): New.
892 * c.opt: Add WNSObject-attribute.
893
44cab2d8
GA
8942020-11-06 Iain Sandoe <iain@sandoe.co.uk>
895
896 * c-objc.h (enum objc_property_attribute_group): New
897 (enum objc_property_attribute_kind): New.
898 (OBJC_PROPATTR_GROUP_MASK): New.
899 (struct property_attribute_info): Small class encapsulating
900 parser output from property attributes.
901 (objc_prop_attr_kind_for_rid): New
902 (objc_add_property_declaration): Simplify interface.
903 * stub-objc.c (enum rid): Dummy type.
904 (objc_add_property_declaration): Simplify interface.
905 (objc_prop_attr_kind_for_rid): New.
906
9072020-11-06 Nathan Sidwell <nathan@acm.org>
908
909 * c-ada-spec.c (collect_ada_nodes): Rename
910 DECL_IS_BUILTIN->DECL_IS_UNDECLARED_BUILTIN.
911 (collect_ada_node): Likewise.
912 (dump_forward_type): Likewise.
913 * c-common.c (set_underlying_type): Rename
914 DECL_IS_BUILTIN->DECL_IS_UNDECLARED_BUILTIN.
915 (user_facing_original_type, c_common_finalize_early_debug): Likewise.
916
9172020-11-06 Jakub Jelinek <jakub@redhat.com>
918
919 * c-common.c (verify_sequence_points): Remove DEBUG_FUNCTION.
920
0cfd9109
GA
9212020-11-05 Marek Polacek <polacek@redhat.com>
922
923 PR c++/97675
924 * c.opt (Wexceptions): New option.
925
9262020-11-05 Marek Polacek <polacek@redhat.com>
927
928 PR c++/25814
929 * c.opt (Wvexing-parse): New option.
930
35c125cb
GA
9312020-11-04 Jakub Jelinek <jakub@redhat.com>
932
933 PR c++/97670
934 * c-omp.c (c_omp_split_clauses): Look through array reductions to find
935 underlying decl to clear in the allocate_head bitmap.
936
9372020-11-04 Iain Sandoe <iain@sandoe.co.uk>
938
939 * c-objc.h (objc_non_constant_expr_p): New.
940 * stub-objc.c (objc_non_constant_expr_p): New.
941
fd2325ea
GA
9422020-11-03 Nathan Sidwell <nathan@acm.org>
943
944 * c.opt (MQ,MT): Reword description to be make-agnostic.
945
88ce3d5f
GA
9462020-11-02 Nathan Sidwell <nathan@acm.org>
947
948 * c-opts.c (c_common_post_options): Move var decl to its
949 initialization point.
950
9512020-11-01 Iain Sandoe <iain@sandoe.co.uk>
952
953 * c-lex.c (c_lex_with_flags): When combining '@' with a
954 keyword for Objective-C, combine the location ranges too.
955
9562020-10-30 Qing Zhao <qing.zhao@oracle.com>
957 H.J.Lu <hjl.tools@gmail.com>
958
959 * c-attribs.c (c_common_attribute_table): Add new attribute
960 zero_call_used_regs.
961 (handle_zero_call_used_regs_attribute): New function.
962
e93aae4a
GA
9632020-10-28 Marek Polacek <polacek@redhat.com>
964
965 PR c++/97573
966 * c-opts.c (c_common_post_options): In C++20, turn on
967 -Wdeprecated-enum-enum-conversion and
968 -Wdeprecated-enum-float-conversion.
969 * c.opt (Wdeprecated-enum-enum-conversion,
970 Wdeprecated-enum-float-conversion): New options.
971 (Wenum-conversion): Allow for C++ too.
972
9732020-10-28 Jakub Jelinek <jakub@redhat.com>
974
975 * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALLOCATE.
976 * c-omp.c: Include bitmap.h.
977 (c_omp_split_clauses): Handle OMP_CLAUSE_ALLOCATE.
978
f19e7c8d
GA
9792020-10-26 Ville Voutilainen <ville.voutilainen@gmail.com>
980
981 * c-common.c (__is_nothrow_assignable): New.
982 (__is_nothrow_constructible): Likewise.
983 * c-common.h (RID_IS_NOTHROW_ASSIGNABLE): New.
984 (RID_IS_NOTHROW_CONSTRUCTIBLE): Likewise.
985
efe71fcc
GA
9862020-10-23 Jan Hubicka <hubicka@ucw.cz>
987
988 * c-common.c (c_common_finalize_early_debug): Update for new thunk api.
989
9902020-10-23 Marek Polacek <polacek@redhat.com>
991
992 PR c++/91741
993 * c-common.c (verify_tree): Handle PAREN_SIZEOF_EXPR.
994 (c_common_init_ts): Likewise.
995 * c-common.def (PAREN_SIZEOF_EXPR): New tree code.
996 * c-common.h (maybe_warn_sizeof_array_div): Declare.
997 * c-warn.c (sizeof_pointer_memaccess_warning): Unwrap NOP_EXPRs.
998 (maybe_warn_sizeof_array_div): New function.
999 * c.opt (Wsizeof-array-div): New option.
1000
10012020-10-23 Martin Sebor <msebor@redhat.com>
1002
1003 PR c/97463
1004 * c-warn.c (warn_parm_ptrarray_mismatch): Move null test earlier.
1005
56ddd5e2
GA
10062020-10-22 Martin Liska <mliska@suse.cz>
1007
1008 PR c/94722
1009 * c-attribs.c (handle_no_stack_protect_function_attribute): New.
1010 (handle_stack_protect_attribute): Add error message for a
1011 no_stack_protector function.
1012
10132020-10-22 Martin Liska <mliska@suse.cz>
1014
1015 * c-cppbuiltin.c (c_cpp_builtins): Use the stack_protector enum.
1016
10172020-10-22 Jan Hubicka <hubicka@ucw.cz>
1018
1019 * c-gimplify.c: Include tree-nested.h
1020 (c_genericize): Update for new nested function info.
1021
b2698c21
GA
10222020-10-14 Martin Sebor <msebor@redhat.com>
1023
1024 PR c/97413
1025 * c-attribs.c (build_attr_access_from_parms): Wrap chain of VLA
1026 bounds in an extra list.
1027
7e9282ae
GA
10282020-10-05 Richard Biener <rguenther@suse.de>
1029 Jakub Jelinek <jakub@redhat.com>
1030
1031 PR c++/97197
1032 * c-pretty-print.c: Include langhooks.h.
1033 (c_pretty_printer::postfix_expression): Handle TARGET_MEM_REF as
1034 expression.
1035 (c_pretty_printer::expression): Handle TARGET_MEM_REF as
1036 unary_expression.
1037 (c_pretty_printer::unary_expression): Handle TARGET_MEM_REF.
1038
660bfe61
GA
10392020-09-30 Martin Sebor <msebor@redhat.com>
1040
1041 PR middle-end/97189
1042 * c-attribs.c (append_access_attr): Use the function declaration
1043 location for a warning about an attribute access argument.
1044
93bca37c
GA
10452020-09-29 Marek Polacek <polacek@redhat.com>
1046
1047 PR c++/94695
1048 * c.opt (Wrange-loop-construct): New option.
1049
82b77dee
GA
10502020-09-23 Martin Sebor <msebor@redhat.com>
1051
1052 PR c/97131
1053 * c-warn.c (warn_parm_ptrarray_mismatch): Handle more invalid input.
1054
10552020-09-23 Marek Polacek <polacek@redhat.com>
1056
1057 PR c/97125
1058 * c-gimplify.c (c_genericize): Only call do_warn_duplicated_branches_r
1059 after loops and other structured control constructs have been lowered.
1060
521d2711
GA
10612020-09-22 Jakub Jelinek <jakub@redhat.com>
1062
1063 * c.opt (Wbuiltin-declaration-mismatch): Fix typo in variable name:
1064 warn_builtin_declaraion_mismatch -> warn_builtin_declaration_mismatch.
1065
44135373
GA
10662020-09-21 Marek Polacek <polacek@redhat.com>
1067
1068 * c.opt (Wctad-maybe-unsupported): New option.
1069
2fe5b7d1
GA
10702020-09-19 Martin Sebor <msebor@redhat.com>
1071
1072 PR c/50584
1073 * c-common.h (warn_parm_array_mismatch): Declare new function.
1074 (has_attribute): Move declaration of an existing function.
1075 (build_attr_access_from_parms): Declare new function.
1076 * c-warn.c (parm_array_as_string): Define new function.
1077 (plus_one): Define new function.
1078 (warn_parm_ptrarray_mismatch): Define new function.
1079 (warn_parm_array_mismatch): Define new function.
1080 (vla_bound_parm_decl): New function.
1081 * c.opt (-Warray-parameter, -Wvla-parameter): New options.
1082 * c-pretty-print.c (pp_c_type_qualifier_list): Don't print array type
1083 qualifiers here...
1084 (c_pretty_printer::direct_abstract_declarator): ...but instead print
1085 them in brackets here. Also print [static]. Strip extraneous
1086 expressions from VLA bounds.
1087
10882020-09-19 Martin Sebor <msebor@redhat.com>
1089
1090 PR c/50584
1091 * c-attribs.c (c_common_attribute_table): Add "arg spec" attribute.
1092 (handle_argspec_attribute): New function.
1093 (get_argument, get_argument_type): New functions.
1094 (append_access_attrs): Add overload. Handle internal attribute
1095 representation in addition to external.
1096 (handle_access_attribute): Handle internal attribute representation
1097 in addition to external.
1098 (build_attr_access_from_parms): New function.
1099
11002020-09-19 Sandra Loosemore <sandra@codesourcery.com>
1101
1102 * c-gimplify.c (genericize_c_loop): Rewrite to match
1103 c_finish_loop in c-typeck.c.
1104
11052020-09-19 Sandra Loosemore <sandra@codesourcery.com>
1106
1107 * c-common.c (c_block_may_fallthrough): New, split from
1108 cxx_block_may_fallthrough in the cp front end.
1109 (c_common_init_ts): Move handling of loop and switch-related
1110 statements here from the cp front end.
1111 * c-common.def (FOR_STMT, WHILE_STMT, DO_STMT): Move here from
1112 cp front end.
1113 (BREAK_STMT, CONTINUE_STMT, SWITCH_STMT): Likewise.
1114 * c-common.h (c_block_may_fallthru): Declare.
1115 (bc_state_t): Move here from cp front end.
1116 (save_bc_state, restore_bc_state): Declare.
1117 (c_genericize_control_stmt): Declare.
1118 (WHILE_COND, WHILE_BODY): Likewise.
1119 (DO_COND, DO_BODY): Likewise.
1120 (FOR_INIT_STMT, FOR_COND, FOR_EXPR, FOR_BODY, FOR_SCOPE): Likewise.
1121 (SWITCH_STMT_COND, SWITCH_STMT_BODY): Likewise.
1122 (SWITCH_STMT_TYPE, SWITCH_STMT_SCOPE): Likewise.
1123 (SWITCH_STMT_ALL_CASES_P, SWITCH_STMT_NO_BREAK_P): Likewise.
1124 (LABEL_DECL_BREAK, LABEL_DECL_CONTINUE): Likewise.
1125 * c-dump.c (dump_stmt): Copy from cp front end.
1126 (c_dump_tree): Move code to handle structured loop and switch
1127 tree nodes here from cp front end.
1128 * c-gimplify.c: Adjust includes.
1129 (enum bc_t, bc_label, begin_bc_block, finish_bc_block): Move from
1130 cp front end.
1131 (save_bc_state, restore_bc_state): New functions using old code
1132 from cp front end.
1133 (get_bc_label, expr_loc_or_loc): Move from cp front end.
1134 (genericize_c_loop): Move from cp front end.
1135 (genericize_for_stmt, genericize_while_stmt): Likewise.
1136 (genericize_do_stmt, genericize_switch_stmt): Likewise.
1137 (genericize_continue_stmt, genericize_break_stmt): Likewise.
1138 (genericize_omp_for_stmt): Likewise.
1139 (c_genericize_control_stmt): New function using code split from
1140 cp front end.
1141 (c_genericize_control_r): New.
1142 (c_genericize): Call walk_tree with c_genericize_control_r.
1143 * c-pretty-print.c (c_pretty_printer::statement): Move code to handle
1144 structured loop and switch tree nodes here from cp front end.
1145
2aad20c0
GA
11462020-09-17 Patrick Palka <ppalka@redhat.com>
1147
1148 PR c/80076
1149 * c-indentation.c (should_warn_for_misleading_indentation): Move
1150 declarations of local variables closer to their first use.
1151 Handle virtual token locations by resolving them to their
1152 respective macro expansion points. If all three tokens are
1153 produced from the same macro expansion, then instead use their
1154 loci within the macro definition.
1155
ecde1b0a
GA
11562020-09-16 Martin Sebor <msebor@redhat.com>
1157
1158 PR c/78666
1159 PR c/96126
1160 * c-attribs.c (validate_attr_args): New function.
1161 (validate_attr_arg): Same.
1162 (handle_section_attribute): Call it. Introduce a local variable.
1163 (handle_alloc_size_attribute): Same.
1164 (handle_alloc_align_attribute): Same.
1165
50a71cd0
GA
11662020-09-14 Jakub Jelinek <jakub@redhat.com>
1167
1168 * c-attribs.c (handle_optimize_attribute): Adjust
1169 cl_optimization_save, cl_optimization_restore and
1170 build_optimization_node callers.
1171 * c-pragma.c (handle_pragma_optimize): Adjust
1172 build_optimization_node caller.
1173 (handle_pragma_push_options): Adjust
1174 build_optimization_node and build_target_option_node callers.
1175 (handle_pragma_pop_options, handle_pragma_reset_options):
1176 Adjust cl_optimization_restore callers.
1177
8f7ea26a
GA
11782020-08-28 Martin Sebor <msebor@redhat.com>
1179
1180 * c.opt (Wstringop-overread): New option.
1181
a6493809
GA
11822020-08-11 Jakub Jelinek <jakub@redhat.com>
1183
1184 PR c/96545
1185 * c-common.c (get_atomic_generic_size): Require that first argument's
1186 type points to a complete type and use tree_fits_uhwi_p instead of
1187 just INTEGER_CST TREE_CODE check for the TYPE_SIZE_UNIT.
1188
48cc2e46
GA
11892020-07-31 Martin Sebor <msebor@redhat.com>
1190
1191 PR c++/96003
1192 * c-common.c (check_function_arguments_recurse): Return early when
1193 no-warning bit is set.
1194
11952020-07-31 Richard Biener <rguenther@suse.de>
1196
1197 PR debug/96383
1198 * c-common.h (c_common_finalize_early_debug): Declare.
1199 * c-common.c: Include debug.h.
1200 (c_common_finalize_early_debug): finalize_early_debug langhook
1201 implementation generating debug for extern declarations.
1202
e71dab87
GA
12032020-07-27 Nathan Sidwell <nathan@acm.org>
1204
1205 * c-common.c (try_to_locate_new_include_insertion_point): Use
1206 strcmp, not pointer equality.
1207
ae2e0bc1
GA
12082020-07-25 Martin Sebor <msebor@redhat.com>
1209
1210 PR c++/96310
1211 * c-common.c (check_nonnull_arg): Print note only when warning was
1212 issued.
1213
3ea9abca
GA
12142020-07-22 Tobias Burnus <tobias@codesourcery.com>
1215
1216 * c-omp.c (c_finish_omp_critical): Check for no name but
1217 nonzero hint provided.
1218
0933f508
GA
12192020-07-20 Jason Merrill <jason@redhat.com>
1220
1221 * c-cppbuiltin.c (c_cpp_builtins): Update
1222 __cpp_nontype_template_args for C++20.
1223
12242020-07-20 Martin Sebor <msebor@redhat.com>
1225
1226 PR c/96249
1227 * c.opt: Remove stray text.
1228
8ca07a30
GA
12292020-07-14 Lewis Hyatt <lhyatt@gmail.com>
1230
1231 PR other/86904
1232 * c-indentation.c (should_warn_for_misleading_indentation): Get
1233 global tabstop from the new source.
1234 * c-opts.c (c_common_handle_option): Remove handling of -ftabstop, which
1235 is now a common option.
1236 * c.opt: Likewise.
1237
a82c4c4c 12382020-07-08 Eric Botcazou <ebotcazou@adacore.com>
50873cc5
GA
1239
1240 * c.opt (Wscalar-storage-order): Add explicit variable.
1241
f60ee68d
GA
12422020-07-07 Nathan Sidwell <nathan@acm.org>
1243
1244 * c-opts.c (c_common_post_options): Add 'injecting' arg to
1245 cpp_read_main_file.
1246 (c_finish_options): Add linemap_line_start calls for builtin and cmd
1247 maps. Force token position to line_table's highest line.
1248 * c-ppoutput.c (print_line_1): Refactor, print line zero.
1249 (cb_define): Always increment source line.
1250
4077d74c
GA
12512020-07-06 Martin Sebor <msebor@redhat.com>
1252
1253 PR c++/95984
1254 * c-common.c (check_function_nonnull): Avoid checking syntesized calls
1255 to stub lambda objects with null this pointer.
1256 (check_nonnull_arg): Handle C++ nullptr.
1257
b5f24739
GA
12582020-07-02 Jason Merrill <jason@redhat.com>
1259 Jakub Jelinek <jakub@redhat.com>
1260
1261 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_consteval.
1262
46fbb6c6
GA
12632020-06-30 Jakub Jelinek <jakub@redhat.com>
1264
1265 PR c++/95963
1266 * c-common.c (check_function_arguments_recurse): Don't crash on
1267 calls to internal functions.
1268
69273534
GA
12692020-06-28 Martin Sebor <msebor@redhat.com>
1270
1271 PR c++/86568
1272 * c-common.c (struct nonnull_arg_ctx): Add members.
1273 (check_function_nonnull): Use nonnull_arg_ctx as argument. Handle
1274 C++ member functions specially. Consider the this pointer implicitly
1275 nonnull.
1276 (check_nonnull_arg): Use location of argument when available.
1277 (check_function_arguments): Use nonnull_arg_ctx as argument.
1278
9a33c41f
GA
12792020-06-27 Jakub Jelinek <jakub@redhat.com>
1280
1281 PR middle-end/95903
1282 * c-common.c (pointer_int_sum): Use TYPE_OVERFLOW_UNDEFINED instead of
1283 !TYPE_UNSIGNED check to see if we can apply distributive law and handle
1284 smaller precision intop operands separately.
1285
c9c05f73
GA
12862020-06-26 Marek Polacek <polacek@redhat.com>
1287
1288 * c-opts.c (c_common_init_options): Default to gnu++17.
1289
aff95ee7
GA
12902020-06-17 Jonathan Wakely <jwakely@redhat.com>
1291
bd0a89dc 1292 PR c/95378
aff95ee7
GA
1293 * c-common.c (get_atomic_generic_size): Check cv-qualifiers in
1294 pointer arguments.
1295
56638b9b
GA
12962020-06-16 Jakub Jelinek <jakub@redhat.com>
1297
1298 * c-common.h (c_omp_check_loop_iv_exprs): Add an int argument.
1299 * c-omp.c (struct c_omp_check_loop_iv_data): Add maybe_nonrect and
1300 idx members.
1301 (c_omp_is_loop_iterator): New function.
1302 (c_omp_check_loop_iv_r): Use it. Add support for silent scanning
1303 if outer loop iterator is present. Perform duplicate checking through
1304 hash_set in the function rather than expecting caller to do that.
1305 Pass NULL instead of d->ppset to walk_tree_1.
1306 (c_omp_check_nonrect_loop_iv): New function.
1307 (c_omp_check_loop_iv): Use it. Fill in new members, allow
1308 non-rectangular loop forms, diagnose multiple associated loops with
1309 the same iterator. Pass NULL instead of &pset to walk_tree_1.
1310 (c_omp_check_loop_iv_exprs): Likewise.
1311
ec6ffbb9
GA
13122020-06-10 Martin Liska <mliska@suse.cz>
1313
1314 PR tree-optimization/92860
1315 * c-attribs.c (handle_optimize_attribute):
1316 Save global options and compare it after parsing of function
1317 attribute.
1318 * c-pragma.c (opt_stack::saved_global_options): New field.
1319 (handle_pragma_push_options): Save global_options.
1320 (handle_pragma_pop_options): Compare them after pop.
1321
b952c2cf
GA
13222020-06-09 Jakub Jelinek <jakub@redhat.com>
1323
1324 PR c/95580
1325 * c-pretty-print.c (c_pretty_printer::unary_expression): Handle the
1326 case when MEM_REF's first argument has type pointer to incomplete type.
1327
1a59f3db
GA
13282020-06-05 Jason Merrill <jason@redhat.com>
1329
1330 * c-pretty-print.c (pp_c_additive_expression): Handle negative
1331 operand to POINTER_PLUS_EXPR.
1332
3add3425
GA
13332020-06-04 Martin Sebor <msebor@redhat.com>
1334
1335 PR middle-end/10138
1336 PR middle-end/95136
1337 * c-attribs.c (append_access_attrs): Handle attr_access::none.
1338 (handle_access_attribute): Same.
1339
9a5b7438
GA
13402020-06-03 Mark Wielaard <mark@klomp.org>
1341
1342 * known-headers.cc (get_cp_stdlib_header_for_string_macro_name):
1343 New function.
1344 * known-headers.h (get_cp_stdlib_header_for_string_macro_name):
1345 New function declaration.
1346
13472020-06-03 Mark Wielaard <mark@klomp.org>
1348
1349 * known-headers.cc (get_string_macro_hint): New function.
1350 (get_stdlib_header_for_name): Use get_string_macro_hint.
1351 (get_c_stdlib_header_for_string_macro_name): New function.
1352 * known-headers.h (get_c_stdlib_header_for_string_macro_name):
1353 New function declaration.
1354
13552020-06-03 Tobias Burnus <tobias@codesourcery.com>
1356
1357 * c-common.h (c_omp_predetermined_mapping): Declare.
1358 * c-omp.c (c_omp_predetermined_mapping): New.
1359
af114c38
MW
13602020-05-22 Mark Wielaard <mark@klomp.org>
1361
1362 * known-headers.cc (get_stdlib_header_for_name): Add a new
1363 stdlib_hint array for stdbool and stdint.
1364
45c50b6a
MW
13652020-05-22 Mark Wielaard <mark@klomp.org>
1366
1367 * known-headers.cc (get_stdlib_header_for_name): Return
1368 "<stdbool.h>" for "bool", "true" or "false" when STDLIB_C and
1369 flag_isoc99.
1370
c22027a0
NS
13712020-05-20 Nathan Sidwell <nathan@acm.org>
1372
38a4db21
NS
1373 * c-common.c (try_to_locate_new_include_insertion_point): Revert change.
1374
c22027a0
NS
1375 * c-common.c (try_to_locate_new_include_insertion_point): Use
1376 strcmp to compare filenames.
1377 * c-lex.c (init_c_lex): Move declaration to initialization.
1378 * c-opts.c (handle_deferred_opts): Move cpp_get_deps call into
1379 deferred count loop.
1380
29f0e90d
JM
13812020-05-15 Jason Merrill <jason@redhat.com>
1382
1383 * c-opts.c (set_std_cxx20): Set flag_coroutines.
1384
b04445d4
JM
13852020-05-13 Jason Merrill <jason@redhat.com>
1386
1387 * c.opt (std=c++20): Make c++2a the alias.
1388 (std=gnu++20): Likewise.
1389 * c-common.h (cxx_dialect): Change cxx2a to cxx20.
1390 * c-opts.c: Adjust.
1391 * c-cppbuiltin.c: Adjust.
1392 * c-ubsan.c: Adjust.
1393 * c-warn.c: Adjust.
1394
11dd3be5
EB
13952020-05-12 Eric Botcazou <ebotcazou@adacore.com>
1396
1397 * c-ada-spec.c (dump_ads): Output pragma Warnings ("U"); on entry.
1398
b224c376
NS
13992020-05-08 Nathan Sidwell <nathan@acm.org>
1400
1401 Reimplement directives only processing.
1402 * c-ppoutput.c (token_streamer): Ne.
1403 (directives_only_cb): New. Swallow ...
1404 (print_lines_directives_only): ... this.
1405 (scan_translation_unit_directives_only): Reimplment using the
1406 published interface.
1407
f1d94677
MP
14082020-05-07 Marek Polacek <polacek@redhat.com>
1409
1410 * c-format.c (badwords): Add "nonstatic".
1411
9b95bb52
JJ
1412202-05-07 Jakub Jelinek <jakub@redhat.com>
1413
1414 PR c/94968
1415 * c-common.c (speculation_safe_value_resolve_params): Return false if
1416 error_operand_p (val2).
1417 (resolve_overloaded_builtin) <case BUILT_IN_SPECULATION_SAFE_VALUE_N>:
1418 Remove extraneous semicolon.
1419
530b4409 14202020-05-06 qing zhao <qing.zhao@oracle.com>
1421
1422 PR c/94230
1423 * c-indentation.c (get_visual_column): Add a hint to use the new
1424 -flarge-source-files option.
1425
b776bdca
SSF
14262020-05-05 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
1427
1428 * c-attribs.c (handle_vector_size_attribute): Add attribute
1429 nonnull for argument args in order to silence warning of
1430 uninitialized variable usage. Since this is local to the
1431 compilation unit and thus cannot be checked at call sides by the
1432 compiler, added an assert statement in order to verify this.
1433
6607bdd9
L
14342020-05-01 H.J. Lu <hongjiu.lu@intel.com>
1435
1436 PR target/93492
1437 * c-attribs.c (handle_patchable_function_entry_attribute): Limit
1438 value to USHRT_MAX (65535).
1439
691eeb65
JJ
14402020-04-29 Jakub Jelinek <jakub@redhat.com>
1441
1442 * c-format.c (PP_FORMAT_CHAR_TABLE): Add %{ and %}.
1443
26d76be7
JJ
14442020-04-27 Jakub Jelinek <jakub@redhat.com>
1445
1446 PR c/94755
1447 * c-common.c (resolve_overloaded_builtin): Return error_mark_node for
1448 fncode == BUILT_IN_NONE before initialization of first_param.
1449
7291b2ed
MP
14502020-04-23 Marek Polacek <polacek@redhat.com>
1451
1452 PR c++/94733
1453 * c-attribs.c (find_tm_attribute): Use get_attribute_name instead of
1454 TREE_PURPOSE.
1455
58a29af8
PP
14562020-04-14 Patrick Palka <ppalka@redhat.com>
1457
1458 PR c++/85278
1459 * c-pretty-print.c (pp_c_pointer) <case REFERENCE_TYPE>: Print a double
1460 ampersand if it's an rvalue reference type.
1461
09f04139
MS
14622020-04-13 Martin Sebor <msebor@redhat.com>
1463
1464 PR c/92326
1465 * c-pretty-print.c (c_pretty_printer::direct_abstract_declarator): Avoid
1466 printing array bound for flexible array members.
1467
ee26baf4
IS
14682020-04-13 Iain Sandoe <iain@sandoe.co.uk>
1469
1470 * c-cppbuiltin.c (c_cpp_builtins): Update coroutines builtin
1471 define, per n4861.
1472
75efe9cb
RB
14732020-04-02 Richard Biener <rguenther@suse.de>
1474
1475 PR c/94392
1476 * c-opts.c (c_common_post_options): Enable -ffinite-loops
1477 for -O2 and C++11 or newer.
1478
75defde9
PP
14792020-03-28 Patrick Palka <ppalka@redhat.com>
1480
1481 * c.opt: Add -fconcepts-diagnostics-depth.
1482
52f24a9e
MS
14832020-03-27 Martin Sebor <msebor@redhat.com>
1484
1485 PR c++/94346
1486 * c-attribs.c (handle_copy_attribute): Avoid passing expressions
1487 to decl_attributes. Make handling of different kinds of entities
1488 more robust.
1489
ccacf77b
MS
14902020-03-27 Martin Sebor <msebor@redhat.com>
1491
1492 PR c++/94098
1493 * c-attribs.c (handle_access_attribute): Avoid setting TYPE_ATTRIBUTES
1494 here.
1495
ca6c7225
JJ
14962020-03-23 Jakub Jelinek <jakub@redhat.com>
1497
1498 PR c++/91993
1499 * c-warn.c (warnings_for_convert_and_check): For expr and/or
1500 result being COMPOUND_EXPRs, skip to ultimate rhs.
1501
1aa22b19
RS
15022020-03-20 Richard Sandiford <richard.sandiford@arm.com>
1503
1504 PR middle-end/94072
1505 * c-common.c (c_common_type_for_mode): Before using a registered
1506 built-in type, check that the vectorness of the type matches
1507 the vectorness of the mode.
1508
700d4cb0
JJ
15092020-03-17 Jakub Jelinek <jakub@redhat.com>
1510
1511 * c-common.c (resolve_overloaded_builtin): Fix up duplicated word
1512 issue in a diagnostic message.
1513
b408e010
LH
15142020-03-15 Lewis Hyatt <lhyatt@gmail.com>
1515
1516 * c.opt: Avoid redundancy in the help text.
1517
e78e50d5
MP
15182020-03-02 Marek Polacek <polacek@redhat.com>
1519
1520 PR c++/93958 - add missing -std=gnu++20.
1521 * c.opt: Add -std=gnu++20.
1522
649e1741
MS
15232020-03-01 Martin Sebor <msebor@redhat.com>
1524
1525 PR c++/92721
1526 * c-attribs.c (append_access_attrs): Correctly handle attribute.
1527 (handle_access_attribute): Same.
1528
7b60f3ba
JJ
15292020-02-25 Jakub Jelinek <jakub@redhat.com>
1530
1531 PR c/93858
1532 * c-pragma.c (handle_pragma_diagnostic): Add missing ? after
1533 "did you mean" hint in diagnostics.
1534
fb260504
JM
15352020-02-15 Jason Merrill <jason@redhat.com>
1536
1537 * c.opt: Add -std=c++20.
1538
1d757b09
EB
15392020-02-14 Eric Botcazou <ebotcazou@adacore.com>
1540
1541 * c-ada-spec.c: Include bitmap.h.
1542 (dump_ada_double_name): Rename into...
1543 (dump_anonymous_type_name): ...this. Always use the TYPE_UID.
1544 (dump_ada_array_type): Adjust to above renaming. Robustify.
1545 (dump_nested_types_1): New function copied from... Add dumped_types
1546 parameter and pass it down to dump_nested_type.
1547 (dump_nested_types): ...this. Remove parent parameter. Just call
1548 dump_nested_types_1 on an automatic bitmap.
1549 (dump_nested_type): Add dumped_types parameter.
1550 <ARRAY_TYPE>: Do not dump it if already present in dumped_types.
1551 Adjust recursive calls and adjust to above renaming.
1552 (dump_ada_declaration): Adjust call to dump_nested_types.
1553 Tidy up and adjust to above renaming.
1554 (dump_ada_specs): Initialize and release bitmap obstack.
1555
0cc575e4
MS
15562020-02-10 Martin Sebor <msebor@redhat.com>
1557
1558 PR c/93640
1559 * c-attribs.c (handle_access_attribute): Correct off-by-one mistakes.
1560
a59aa302
JJ
15612020-02-10 Jakub Jelinek <jakub@redhat.com>
1562
1563 PR other/93641
1564 * c-format.c (check_plain): Fix up last argument of strncasecmp.
1565 Remove useless extra test.
1566
e464fc90
TB
15672020-02-03 Julian Brown <julian@codesourcery.com>
1568 Tobias Burnus <tobias@codesourcery.com>
1569
1570 * c-cppbuiltin.c (c_cpp_builtins): Update _OPENACC define to 201711.
1571
e3b6c052
JM
15722020-01-29 Jason Merrill <jason@redhat.com>
1573
1574 PR c++/89357
1575 * c-attribs.c (check_cxx_fundamental_alignment_constraints): Remove.
1576
6d00f052
JM
15772020-01-23 Jason Merrill <jason@redhat.com>
1578
1579 * c-warn.c (conversion_warning): Change -Wsign-conversion handling.
1580
8a990ffa
MS
15812020-01-23 Martin Sebor <msebor@redhat.com>
1582
1583 PR c/84919
1584 * c-common.c (check_function_arguments): Avoid overlap checking
1585 of sprintf functions.
1586
55b7df8b
JM
15872020-01-22 Jason Merrill <jason@redhat.com>
1588
1589 PR testsuite/93391 - PR 40752 test fails with unsigned plain char.
1590 PR c++/40752
1591 * c-warn.c (conversion_warning): Check operands only after checking
1592 the whole expression. Don't check second operand of + for sign.
1593
c77074d0
JM
15942020-01-21 Jason Merrill <jason@redhat.com>
1595 Manuel López-Ibáñez <manu@gcc.gnu.org>
1596
1597 PR c++/40752 - useless -Wconversion with short +=.
1598 * c.opt (-Warith-conversion): New.
1599 * c-warn.c (conversion_warning): Recurse for operands of
1600 operators. Only warn about the whole expression with
1601 -Warith-conversion.
1602
731dbfc3
JM
16032020-01-21 Jason Merrill <jason@redhat.com>
1604
1605 * c-common.c (unsafe_conversion_p): Don't warn, return UNSAFE_SIGN.
1606 * c-warn.c (conversion_warning): Warn about UNSAFE_SIGN.
1607
ad1a3914
NS
16082020-01-20 Nathan Sidwell <nathan@acm.org>
1609
1610 PR preprocessor/80005
1611 * c-cppbuiltins.c (c_cpp_builtins): Don't define __has_include{,_next}.
1612
49789fd0
IS
16132020-01-18 Iain Sandoe <iain@sandoe.co.uk>
1614
1615 * c-common.c (co_await, co_yield, co_return): New.
1616 * c-common.h (RID_CO_AWAIT, RID_CO_YIELD,
1617 RID_CO_RETURN): New enumeration values.
1618 (D_CXX_COROUTINES): Bit to identify coroutines are active.
1619 (D_CXX_COROUTINES_FLAGS): Guard for coroutine keywords.
1620 * c-cppbuiltin.c (__cpp_coroutines): New cpp define.
1621 * c.opt (fcoroutines): New command-line switch.
1622
4bc1899b
DM
16232020-01-10 David Malcolm <dmalcolm@redhat.com>
1624
1625 * c-format.c (local_event_ptr_node): New.
1626 (PP_FORMAT_CHAR_TABLE): Add entry for "%@".
1627 (init_dynamic_diag_info): Initialize local_event_ptr_node.
1628 * c-format.h (T_EVENT_PTR): New define.
1629
f25e33fa
MS
16302020-01-10 Martin Sebor <msebor@redhat.com>
1631
1632 PR c/93132
1633 * c-attribs.c (append_access_attrs): Validate against the translated
1634 access string rather than the human-readable representation.
1635
8d9254fc
JJ
16362020-01-01 Jakub Jelinek <jakub@redhat.com>
1637
1638 Update copyright years.
1639
39292e25
EB
16402019-12-20 Eric Botcazou <ebotcazou@adacore.com>
1641
1642 * c-ada-spec.h (decl_sloc): Delete.
1643 * c-ada-spec.c (decl_sloc): Make static.
1644
519d7496
JB
16452019-12-19 Julian Brown <julian@codesourcery.com>
1646
1647 * c-common.h (c_omp_map_clause_name): Add prototype.
1648 * c-omp.c (c_omp_map_clause_name): New function.
1649 * c-pragma.h (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ATTACH and
1650 PRAGMA_OACC_CLAUSE_DETACH.
1651
a6163563
JB
16522019-12-19 Julian Brown <julian@codesourcery.com>
1653 Maciej W. Rozycki <macro@codesourcery.com>
1654 Tobias Burnus <tobias@codesourcery.com>
1655 Thomas Schwinge <thomas@codesourcery.com>
1656
1657 * c-pragma.h (pragma_omp_clause): Add
1658 PRAGMA_OACC_CLAUSE_NO_CREATE.
1659
e8f1ade2
MS
16602019-12-17 Martin Sebor <msebor@redhat.com>
1661
1662 PR c++/61339
1663 * c.opt (-Wmismatched-tags, -Wredundant-tags): New options.
1664
368877a1
DM
16652019-12-11 David Malcolm <dmalcolm@redhat.com>
1666
1667 * c-pretty-print.c (c_pretty_printer::clone): New vfunc
1668 implementation.
1669 * c-pretty-print.h (c_pretty_printer::clone): New vfunc decl.
1670
d68f5d45
DM
16712019-12-09 David Malcolm <dmalcolm@redhat.com>
1672
1673 * c-format.c (range_label_for_format_type_mismatch::get_text):
1674 Replace label_text ctor called with true with label_text::take.
1675
d3e28653
DM
16762019-12-09 David Malcolm <dmalcolm@redhat.com>
1677
1678 * c-format.c (selftest::test_type_mismatch_range_labels): Remove
1679 initial newline from expected outputs.
1680 * c-opts.c (c_diagnostic_finalizer): Add pp_newline call before
1681 call to diagnostic_show_locus.
1682
abd6d8cc
JJ
16832019-12-06 Jakub Jelinek <jakub@redhat.com>
1684
1685 * c-cppbuiltin.c (c_cpp_builtins): Don't define __cpp_consteval for
1686 now.
1687
7906797e
MP
16882019-12-05 Marek Polacek <polacek@redhat.com>
1689 Jakub Jelinek <jakub@redhat.com>
1690
1691 PR c++/91353 - P1331R2: Allow trivial default init in constexpr contexts.
1692 * c-cppbuiltin.c (c_cpp_builtins): Adjust the value of __cpp_constexpr.
1693
5c04da88
MP
16942019-12-05 Marek Polacek <polacek@redhat.com>
1695
1696 PR c++/92271 - make __is_same alias for __is_same_as.
1697 * c-common.c: Add __is_same, an alias for __is_same_as.
1698
43aae289
MP
16992019-12-03 Marek Polacek <polacek@redhat.com>
1700
1701 PR c++/91363 - P0960R3: Parenthesized initialization of aggregates.
1702 * c-cppbuiltin.c (c_cpp_builtins): Predefine
1703 __cpp_aggregate_paren_init=201902 for -std=c++2a.
1704
d7ddfbcb
JH
17052019-11-30 Jan Hubicka <hubicka@ucw.cz>
1706
1707 * c-attribs.c (handle_symver_attribute): New function
1708 (c_common_attributes): Add symver.
1709
65ef05d0
RS
17102019-11-30 Richard Sandiford <richard.sandiford@arm.com>
1711
1712 * c-common.c (pointer_int_sum): Use verify_type_context to check
1713 whether the target allows pointer arithmetic for the types involved.
1714 (c_sizeof_or_alignof_type, c_alignof_expr): Use verify_type_context
1715 to check whether the target allows sizeof and alignof operations
1716 for the types involved.
1717
1a291106
JM
17182019-11-27 Jason Merrill <jason@redhat.com>
1719
1720 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_deduction_guides.
1721
05d6cb1a
JJ
17222019-11-26 Jakub Jelinek <jakub@redhat.com>
1723
1724 PR c++/61414
1725 * c-attribs.c (handle_mode_attribute): Add mode attribute to
1726 ENUMERAL_TYPEs.
1727
5b8d9367
JM
17282019-11-25 Joseph Myers <joseph@codesourcery.com>
1729
1730 PR c/91985
1731 * c-common.c (c_common_type_for_mode): Handle decimal
1732 floating-point types being NULL_TREE.
1733 * c-format.c (get_format_for_type_1): Handle specified types being
1734 NULL_TREE.
1735 * c-lex.c (interpret_float): Give an error for decimal
1736 floating-point constants when decimal floating-point not
1737 supported.
1738
1fbf51cb
JJ
17392019-11-23 Jakub Jelinek <jakub@redhat.com>
1740
1741 PR middle-end/83859
1742 * c-attribs.c (append_access_attrs): Avoid buffer overflow. Avoid
1743 memory leak. Use XNEWVEC macro. Use auto_diagnostic_group to
1744 group warning with inform together.
1745 (handle_access_attribute): Formatting fix.
1746
761df906
JJ
17472019-11-22 Jakub Jelinek <jakub@redhat.com>
1748
bdaf8be1
JJ
1749 PR c/90677
1750 * c-common.h (identifier_global_tag): Declare.
1751 * c-format.c (get_pointer_to_named_type): Renamed to ...
1752 (get_named_type): ... this. Use identifier_global_tag instead of
1753 identifier_global_value, handle the return value being a TYPE_P.
1754 (init_dynamic_diag_info): Adjust get_pointer_to_named_type callers
1755 to call get_named_type instead. Formatting fixes.
1756
c2ecce6d 1757 Implement P1902R1, Missing feature-test macros 2017-2019.
761df906
JJ
1758 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_init_captures
1759 and __cpp_generic_lambdas for -std=c++2a. Define
1760 __cpp_designated_initializers, __cpp_constexpr_in_decltype and
1761 __cpp_consteval for -std=c++2a. Remove a FIXME comment about
1762 __cpp_concepts for -std=c++2a.
1763
54aa6b58
MS
17642019-11-22 Martin Sebor <msebor@redhat.com>
1765
1766 PR middle-end/83859
1767 * c-attribs.c (handle_access_attribute): New function.
1768 (c_common_attribute_table): Add new attribute.
1769 (get_argument_type): New function.
1770 (append_access_attrs): New function.
1771 (get_nonnull_operand): Rename...
1772 (get_attribute_operand): ...to this.
1773 * c-common.c (get_nonnull_operand): Rename...
1774 (get_attribute_operand): ...to this.
1775
6c80b1b5
JM
17762019-11-21 Joseph Myers <joseph@codesourcery.com>
1777
1778 * c-attribs.c (handle_fallthrough_attribute): Use pedwarn instead
1779 of warning.
1780
192961ff
JM
17812019-11-19 Joseph Myers <joseph@codesourcery.com>
1782
1783 * c-common.c (attribute_fallthrough_p): In C, use pedwarn not
1784 warning for standard attributes mixed with fallthrough attributes.
1785
f8aea5e3
JM
17862019-11-15 Joseph Myers <joseph@codesourcery.com>
1787
1788 * c-attribs.c (handle_fallthrough_attribute): Remove static.
1789 * c-common.h (handle_fallthrough_attribute): Declare.
1790
2cc94aa8
JM
17912019-11-15 Joseph Myers <joseph@codesourcery.com>
1792
1793 * c-attribs.c (handle_deprecated_attribute): Remove static.
1794 * c-common.h (handle_deprecated_attribute): Declare.
1795
7c5890cc
JM
17962019-11-14 Joseph Myers <joseph@codesourcery.com>
1797
1798 * c-lex.c (lex_charconst): Make CPP_UTF8CHAR constants unsigned
1799 char for C.
1800
b2417b59
JJ
18012019-11-14 Jakub Jelinek <jakub@redhat.com>
1802
d0ec7c93
JJ
1803 * c-omp.c (c_omp_check_context_selector): Add nvidia to the list of
1804 valid vendors.
1805
b2417b59
JJ
1806 * c-omp.c (c_omp_check_context_selector): Handle name lists
1807 containing string literals. Don't diagnose atomic_default_mem_order
1808 with multiple props.
1809
00be2a5f
JM
18102019-11-13 Joseph Myers <joseph@codesourcery.com>
1811
1812 * c-cppbuiltin.c (builtin_define_float_constants): Also define
1813 NORM_MAX constants. Update call to get_max_float.
1814 (LAZY_HEX_FP_VALUES_CNT): Update value to include NORM_MAX
1815 constants.
1816
2dbad62d
EB
18172019-11-13 Eric Botcazou <ebotcazou@adacore.com>
1818
1819 * c-ada-spec.c (get_underlying_decl): Do not look through typedefs.
1820 (dump_forward_type): Do not generate a declaration for function types.
1821 (dump_nested_type) <ARRAY_TYPE>: Do not generate a nested declaration
1822 of the component type if it is declared in another file.
1823
6ed76044
ML
18242019-11-12 Martin Liska <mliska@suse.cz>
1825
1826 * c-opts.c (c_common_post_options):
1827 Use SET_OPTION_IF_UNSET.
1828
62aee289
MR
18292019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
1830 Frederik Harwath <frederik@codesourcery.com>
1831
1832 gcc/c-family/
1833 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_SERIAL enumeration
1834 constant.
1835 * c-pragma.c (oacc_pragmas): Add "serial" entry.
1836
f486280c
RS
18372019-11-08 Richard Sandiford <richard.sandiford@arm.com>
1838
1839 * c-common.h (gnu_vector_type_p): New function.
1840 * c-common.c (c_build_vec_perm_expr): Require __builtin_shuffle
1841 vectors to satisfy gnu_vector_type_p.
1842 (c_build_vec_convert): Likewise __builtin_convertvector.
1843 (convert_vector_to_array_for_subscript): Likewise when applying
1844 implicit vector to array conversion.
1845 (scalar_to_vector): Likewise when converting vector-scalar
1846 operations to vector-vector operations.
1847
017c6491
JM
18482019-11-08 Joseph Myers <joseph@codesourcery.com>
1849
1850 * c.opt (Wold-style-definition): Initialize to -1.
1851 * c-opts.c (c_common_post_options): Set warn_old_style_definition
1852 to flag_isoc2x if not set explicitly.
1853
c01bd174
JM
18542019-11-07 Joseph Myers <joseph@codesourcery.com>
1855
1856 * c-attribs.c (parse_tm_stmt_attr): Handle scoped attributes.
1857
0df65305
JM
18582019-11-05 Jason Merrill <jason@redhat.com>
1859
1860 * c-opts.c (c_common_post_options): -fconcepts-ts implies
1861 -fconcepts.
1862
e0c866dd
KK
18632019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
1864
1865 * c-opts.c (c_common_post_options): Update
1866 latest_abi_version.
1867
f968ef9b
JJ
18682019-11-02 Jakub Jelinek <jakub@redhat.com>
1869
d0c464d2
JJ
1870 * c-common.h (c_omp_get_context_selector): Remove.
1871 * c-omp.c (c_omp_get_context_selector): Moved to omp-general.c
1872 and renamed to omp_get_context_selector.
1873
917dd789
JJ
1874 * c-omp.c (c_omp_mark_declare_variant): Use
1875 omp_context_selector_set_compare.
1876
f968ef9b
JJ
1877 PR c++/88335 - Implement P1073R3: Immediate functions
1878 * c-common.h (enum rid): Add RID_CONSTEVAL.
1879 * c-common.c (c_common_reswords): Add consteval.
1880
5f6705b7
JJ
18812019-11-01 Martin Sebor <msebor@redhat.com>
1882
1883 PR middle-end/91679
1884 PR middle-end/91647
1885 PR middle-end/91463
1886 PR middle-end/92312
1887 * c-pretty-print.c (direct_abstract_declarator): Print
1888 bound in zero-length arrays.
1889 * c.opt (-Wzero-length-bounds): New option.
1890
43f1814c
NS
18912019-10-30 Nathan Sidwell <nathan@acm.org>
1892
1893 * c-cppbuiltin.c (c_cpp_builtins): Add 'L' suffix to feature
1894 macros.
1895
ad1539d5
MS
18962019-10-28 Martin Sebor <msebor@redhat.com>
1897
1898 PR c/66970
1899 * c-common.c (c_common_nodes_and_builtins): Call c_define_builtins
1900 even when only preprocessing.
1901 * c-common.h (names_builtin_p): Declare new function.
1902 * c-lex.c (init_c_lex): Set has_builtin.
1903 (c_common_has_builtin): Define a new function.
1904 * c-ppoutput.c (init_pp_output): Set has_builtin.
1905
135df52c
JJ
19062019-10-24 Jakub Jelinek <jakub@redhat.com>
1907
1908 * c-common.h (c_omp_context_selector_matches): Remove.
1909 * c-omp.c (c_omp_context_selector_matches): Remove.
1910 * c-attribs.c (c_common_attribute_table): Add
1911 "omp declare target {host,nohost,block}" attributes.
1912
8ad0c477
JM
19132019-10-17 JeanHeyd Meneide <phdofthehouse@gmail.com>
1914
1915 * c-lex.c (c_common_has_attribute): Update nodiscard value.
1916
56898e43
RS
19172019-10-14 Richard Sandiford <richard.sandiford@arm.com>
1918
1919 * c-common.h (user_facing_original_type_p): Declare.
1920 * c-common.c: Include c-spellcheck.h.
1921 (user_facing_original_type_p): New function.
1922
20de9568
JJ
19232019-10-12 Jakub Jelinek <jakub@redhat.com>
1924
1925 * c-common.h (c_omp_mark_declare_variant,
1926 c_omp_context_selector_matches): Declare.
1927 * c-omp.c: Include attribs.h, gimplify.h, cgraph.h, symbol-summary.h
1928 and hsa-common.h.
1929 (c_omp_get_context_selector): Support second argument NULL.
1930 (c_omp_mark_declare_variant, c_omp_context_selector_matches): New
1931 functions.
1932 * c-attribs.c (c_common_attribute_table): Remove "omp declare variant"
1933 attribute, add "omp declare variant base" and
1934 "omp declare variant variant" attributes.
1935
175a85b2
JM
19362019-10-11 Joseph Myers <joseph@codesourcery.com>
1937
1938 * c.opt (Wc11-c2x-compat): Add CPP(cpp_warn_c11_c2x_compat)
1939 CppReason(CPP_W_C11_C2X_COMPAT).
1940
fe2bc27c
JM
19412019-10-11 Joseph Myers <joseph@codesourcery.com>
1942
1943 * c-common.c (c_common_reswords): Do not use D_EXT for _Decimal32,
1944 _Decimal64 and _Decimal128.
1945
27dfdc0f
JM
19462019-10-10 Joseph Myers <joseph@codesourcery.com>
1947
1948 * c-cppbuiltin.c (c_cpp_builtins): Do not define macros for DFP
1949 types if DFP not supported.
1950
94e7f906
JJ
19512019-10-10 Jakub Jelinek <jakub@redhat.com>
1952
1953 * c-common.h (c_omp_check_context_selector,
1954 c_omp_get_context_selector): Declare.
1955 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): Fix spelling
1956 in diagnostic message.
1957 (c_omp_check_context_selector, c_omp_get_context_selector): New
1958 functions.
1959 * c-attribs.c (c_common_attribute_table): Add "omp declare variant"
1960 attribute.
1961 (handle_omp_declare_variant_attribute): New function.
1962
a7160771
MS
19632019-10-09 Martin Sebor <msebor@redhat.com>
1964
1965 PR tree-optimization/90879
1966 * c.opt (-Wstring-compare): New option.
1967
cb57504a
JM
19682019-10-08 Andrew Sutton <asutton@lock3software.com>
1969 Jason Merrill <jason@redhat.com>
1970
1971 Update the concepts implementation to conform to the C++20
1972 specification, improve compile times, and generally clean up
1973 the implementation.
1974
1975 * c-cppbuiltin.c (c_cpp_builtins): Use new feature test values for
1976 concepts when -std=c++2a. Bump __cpp_concepts to 201907.
1977 * c.opt: Add -Wconcepts-ts.
1978 * c-opts.c (c_common_post_options): Warn when -fconcepts is used
1979 with -std=c++2a. Disable warning for -fconcepts in C++20 mode.
1980 (set_std_cxx2a): Enable concepts by default.
1981
fbb2a6dc
JM
19822019-10-08 Joseph Myers <joseph@codesourcery.com>
1983
1984 * c-opts.c (c_common_post_options): Set
1985 -fno-fp-int-builtin-inexact for C2X.
1986
8e007055
JJ
19872019-10-05 Jakub Jelinek <jakub@redhat.com>
1988
1989 PR c++/91369 - Implement P0784R7: constexpr new
1990 * c-cppbuiltin.c (c_cpp_builtins): Predefine
1991 __cpp_constexpr_dynamic_alloc=201907 for -std=c++2a.
1992
843f104d
JM
19932019-10-04 Joseph Myers <joseph@codesourcery.com>
1994
1995 PR c/82752
1996 * c-format.c (C_STD_VER): Handle C2x.
1997 (C_STD_NAME): Likewise.
1998 (strftime_flag_specs): Add 'O' modifier with 'p' flag.
1999 (time_char_table): Use separate entry for 'B' and 'b', with 'O'
2000 modifier allowed and 'p' flag.
2001 * c-format.h (enum format_std_version): Add STD_C2X.
2002 (struct format_char_info): Mention 'p' in comment on flags2.
2003
e9c9a142
DM
20042019-10-01 David Malcolm <dmalcolm@redhat.com>
2005
2006 * c-opts.c (c_diagnostic_finalizer): Temporarily clear prefix when
2007 calling diagnostic_show_locus, rather than destroying it afterwards.
2008
7552c36a
JJ
20092019-10-01 Jakub Jelinek <jakub@redhat.com>
2010
2011 PR c++/91925
2012 * c-warn.c (check_alignment_of_packed_member): Ignore FIELD_DECLs
2013 with NULL DECL_FIELD_OFFSET.
2014
8209db25
RS
20152019-10-01 Richard Sandiford <richard.sandiford@arm.com>
2016
2017 * c-pretty-print.c (pp_c_specifier_qualifier_list): If a vector type
2018 has a type name, use it in preference to the __vector syntax.
2019
9343bf99
RS
20202019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2021
2022 * c-pretty-print.c (pp_c_parameter_type_list): Avoid printing
2023 two spaces between a comma and "...".
2024
59bc434a
JJ
20252019-09-27 Jakub Jelinek <jakub@redhat.com>
2026
2027 PR c++/88203
2028 * c-common.h (c_omp_predefined_variable): Declare.
2029 * c-omp.c (c_omp_predefined_variable): New function.
2030 (c_omp_predetermined_sharing): Return OMP_CLAUSE_DEFAULT_SHARED
2031 for predefined variables.
2032
c6447c20
RS
20332019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2034
2035 * c-common.h (build_function_call_vec): Take the original
2036 function decl as an optional final parameter.
2037 (check_builtin_function_arguments): Take the original function decl.
2038 * c-common.c (check_builtin_function_arguments): Likewise.
2039 Handle all built-in functions, not just BUILT_IN_NORMAL ones.
2040 Use targetm.check_builtin_call to check BUILT_IN_MD functions.
2041
c4438114
JM
20422019-09-15 Jason Merrill <jason@redhat.com>
2043
2044 * c-warn.c (warn_logical_operator): Strip location wrappers. Don't
2045 fold_for_warn in "|| mask" warning.
2046
68a57628
ML
20472019-09-10 Martin Liska <mliska@suse.cz>
2048
2049 * c.opt: Use newly added WarnRemoved.
2050
f48ef52e
ML
20512019-09-09 Martin Liska <mliska@suse.cz>
2052
2053 * c.opt: Update comment of removed
2054 options that are preserved only for backward
2055 compatibility.
2056
67f6e649
ML
20572019-09-06 Martin Liska <mliska@suse.cz>
2058
2059 PR c++/91125
2060 * c-common.c: Remove definition of flag_use_repository.
2061 * c-common.h: Likewise.
2062 * c-opts.c (c_common_handle_option):
2063 Do not handle OPT_frepo option.
2064 * c.opt: Mark the option with Deprecated.
2065
db9d2274
MP
20662019-09-04 Marek Polacek <polacek@redhat.com>
2067
2068 * c.opt (fdeduce-init-list): Ignored.
2069
68e2c199
PK
20702019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2071
2072 PR c/78736
2073 * c.opt (Wenum-conversion): New option.
2074
7a4418a5
JL
20752019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2076
2077 * c-attribs.c (handle_section_attribute): Call the
2078 handle_generic_attribute target hook after performing target
2079 independent processing.
2080 (handle_noinit_attribute): Likewise.
2081
5f76ab15
ILT
20822019-09-03 Ian Lance Taylor <iant@golang.org>
2083
2084 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Always expand
2085 when using -fgo-dump-spec.
2086
ae0d3f6a
ML
20872019-09-02 Martin Liska <mliska@suse.cz>
2088
2089 PR c++/91155
2090 * c-common.c (fname_as_string): Use cxx_printable_name for
2091 __PRETTY_FUNCTION__ same as was used before r265711.
2092
8a902edb
MP
20932019-08-28 Marek Polacek <polacek@redhat.com>
2094
2095 Implement P1152R4: Deprecating some uses of volatile.
2096 PR c++/91361
2097 * c-opts.c (c_common_post_options): Enable -Wvolatile by
2098 default for C++2a, unless -Wno-deprecated.
2099 * c.opt (Wvolatile): New warning.
2100
4742dbe7
MP
21012019-08-28 Marek Polacek <polacek@redhat.com>
2102
2103 PR c++/91360 - Implement C++20 P1143R2: constinit.
2104 * c-common.c (c_common_reswords): Add constinit and __constinit.
2105 (keyword_is_decl_specifier): Handle RID_CONSTINIT.
2106 * c-common.h (enum rid): Add RID_CONSTINIT, RID_FIRST_CXX20, and
2107 RID_LAST_CXX20.
2108 (D_CXX20): Define.
2109 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_constinit.
2110 * c-format.c (cxx_keywords): Add "constinit".
2111 * c.opt (Wc++2a-compat, Wc++20-compat): New options.
2112
6a074892
JJ
21132019-08-27 Jakub Jelinek <jakub@redhat.com>
2114
2115 PR c++/91415
2116 * c-common.c (verify_tree): For LSHIFT_EXPR, RSHIFT_EXPR,
2117 COMPONENT_REF and ARRAY_REF in cxx_dialect >= cxx17 mode handle it
2118 like COMPOUND_EXPR rather than normal expression.
2119
22f8849d
IS
21202019-08-23 Iain Sandoe <iain@sandoe.co.uk>
2121
2122 PR pch/61250
2123 * c-lex.c (c_lex_with_flags): Don't call
2124 c_common_no_more_pch () from here.
2125
df375b03
JJ
21262019-08-23 Jakub Jelinek <jakub@redhat.com>
2127
2128 PR middle-end/91283
2129 * c-common.c (c_ts18661_flt_eval_method): Use flag_excess_precision
2130 instead of flag_excess_precision_cmdline.
2131 * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): Likewise.
2132 * c-opts.c (c_common_post_options): Likewise.
2133
14b7950f
MS
21342019-08-22 Martin Sebor <msebor@redhat.com>
2135
2136 PR middle-end/91490
2137 * c-common.c (braced_list_to_string): Add argument and overload.
2138 Handle flexible length arrays and unions.
2139
8bb2ee59
EB
21402019-08-21 Eric Botcazou <ebotcazou@adacore.com>
2141
2142 * c-ada-spec.c (dump_ada_function_declaration): Be prepared for broken
2143 function declarations where arguments are missing. Rename variables.
2144
21c1e205
RB
21452019-08-15 Richard Biener <rguenther@suse.de>
2146
2147 * c-common.c (c_stddef_cpp_builtins): When the GIMPLE FE is
2148 enabled, define __SIZETYPE__.
2149
f0033821
CL
21502019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
2151
2152 * c-attribs.c (c_common_attribute_table): Add "noinit" entry. Add
2153 exclusion with "section" attribute.
2154 (attr_noinit_exclusions): New table.
2155 (handle_noinit_attribute): New function.
2156
4d732405
RS
21572019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2158
2159 PR middle-end/91421
2160 * c-common.c (resolve_overloaded_builtin): Use
2161 copy_decl_built_in_function.
2162
51ad8481
MS
21632019-08-13 Martin Sebor <msebor@redhat.com>
2164
2165 PR c/80619
2166 * c-format.c (printf_length_specs): Set FMT_LEN_w for "w".
2167 (asm_fprintf_length_spec): Same.
2168 * c-format.h (format_lengths): Add FMT_LEN_w.
2169
77eb117f
JJ
21702019-08-10 Jakub Jelinek <jakub@redhat.com>
2171
2172 * c-pragma.h (enum pragma_omp_clause): Add
2173 PRAGMA_OMP_CLAUSE_DEVICE_TYPE.
2174
398e3feb
JJ
21752019-08-07 Jakub Jelinek <jakub@redhat.com>
2176
2177 * c-pragma.h (enum pragma_omp_clause): Add
2178 PRAGMA_OMP_CLAUSE_USE_DEVICE_ADDR. Set PRAGMA_OACC_CLAUSE_USE_DEVICE
2179 equal to PRAGMA_OMP_CLAUSE_USE_DEVICE_PTR instead of being a separate
2180 enumeration value.
2181
ab574db6
MP
21822019-08-05 Marek Polacek <polacek@redhat.com>
2183
2184 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
2185 * c-opts.c (c_common_post_options): Enable -Wcomma-subscript by
2186 default for C++2a, unless -Wno-deprecated.
2187 * c.opt (Wcomma-subscript): New warning.
2188
554a530f
JJ
21892019-07-20 Jakub Jelinek <jakub@redhat.com>
2190
2191 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_LOOP.
2192 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_BIND.
2193 * c-pragma.c (omp_pragmas_simd): Add PRAGMA_OMP_LOOP entry.
2194 * c-common.h (enum c_omp_clause_split): Add C_OMP_CLAUSE_SPLIT_LOOP.
2195 * c-omp.c (c_omp_split_clauses): Add support for 4 new combined
2196 constructs with the loop construct.
2197
1a888209
JJ
21982019-07-13 Jakub Jelinek <jakub@redhat.com>
2199
2200 PR c/91149
2201 * c-omp.c (c_omp_split_clauses): Fix a pasto in
2202 OMP_CLAUSE_REDUCTION_TASK handling.
2203
1fdd6f04
JJ
22042019-07-12 Jakub Jelinek <jakub@redhat.com>
2205
2206 * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ORDER.
2207 * c-omp.c (c_omp_split_clauses): Handle splitting of OMP_CLAUSE_ORDER.
2208
99b1c316
MS
22092019-07-09 Martin Sebor <msebor@redhat.com>
2210
2211 PR c++/61339
1fdd6f04 2212 * c-opts.c (handle_deferred_opts): Change class-key of PODs to struct
99b1c316
MS
2213 and others to class.
2214 * c-pretty-print.h: Same.
2215
6c1dae73
MS
22162019-07-09 Martin Sebor <msebor@redhat.com>
2217
2218 PR c++/61339
2219 * c-format.c (check_argument_type): Change class-key from class to
2220 struct and vice versa to match convention and avoid -Wclass-is-pod
2221 and -Wstruct-no-pod.
2222 * c-pretty-print.h: Same.
2223
8ba6ea87
ML
22242019-07-03 Martin Liska <mliska@suse.cz>
2225
2226 * c-common.c (try_to_locate_new_include_insertion_point): Remove
2227 dead assignemts.
2228
83eb9522
JJ
22292019-07-03 Jakub Jelinek <jakub@redhat.com>
2230
2231 * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_REDUCTION_INSCAN
2232 clauses on OMP_FOR rather than OMP_PARALLEL when OMP_FOR is combined
2233 with OMP_PARALLEL.
2234
1c6ffbab
QZ
22352019-07-02 qing zhao <qing.zhao@oracle.com>
2236
2237 PR preprocessor/90581
2238 * c-opts.c (c_common_handle_option): Handle -fmax-include-depth.
2239 * c.opt: Add new option -fmax-include-depth.
2240
7ffc7de5
JM
22412019-06-26 Jason Merrill <jason@redhat.com>
2242
2243 PR c++/55442 - memory-hog with highly recursive constexpr.
2244 * c.opt (fconstexpr-loop-limit): New.
2245
361af3e4
JJ
22462019-06-25 Jakub Jelinek <jakub@redhat.com>
2247
2248 PR sanitizer/90954
2249 * c-omp.c (c_finish_omp_atomic): Allow tree_invariant_p in addition
2250 to SAVE_EXPR in first operand of a COMPOUND_EXPR.
2251
ab20d992
JJ
22522019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2253
2254 * c-common.c (c_common_nodes_and_builtins): Define
2255 alternate "__intN__" name for "__intN" types.
2256
f4af4019
JH
22572019-06-24 Jan Hubicka <jh@suse.cz>
2258
2259 * c-common.c (braced_lists_to_strings): Check that
2260 type is array or integer prior checking string flag.
2261
da9e9b57
MB
22622019-06-21 Matthew Beliveau <mbelivea@redhat.com>
2263
2264 PR c++/90875 - added -Wswitch-outside-range option
2265 * c.opt (Wswitch-outside-range): Added new option.
2266 * c-warn.c (c_do_switch_warnings): Use OPT_Wswitch-outside-range.
2267
3f3d6a6f
MP
22682019-06-21 Marek Polacek <polacek@redhat.com>
2269
2270 PR c++/90953 - ICE with -Wmissing-format-attribute.
2271 * c-common.c (check_function_arguments_recurse): Use
2272 get_attribute_name.
2273 (check_missing_format_attribute): Likewise.
2274
1bf32c11
MP
22752019-06-19 Marek Polacek <polacek@redhat.com>
2276
2277 PR c++/60364 - noreturn after first decl not diagnosed.
2278 * c-attribs.c (handle_noreturn_attribute): No longer static.
2279 * c-common.h (handle_noreturn_attribute, attr_noreturn_exclusions):
2280 Declare.
2281 * c-format.c (check_function_format): Use get_attribute_name.
2282
a04c0734
MS
22832019-06-19 Martin Sebor <msebor@redhat.com>
2284
2285 PR translation/90156
2286 * c-format.c (function_format_info::format_type): Adjust type.
2287 (function_format_info::is_raw): New member.
2288 (decode_format_type): Adjust signature. Handle "raw" diag attributes.
2289 (decode_format_attr): Adjust call to decode_format_type.
2290 Avoid a redundant call to convert_format_name_to_system_name.
2291 Avoid abbreviating the word "arguments" in a diagnostic.
2292 (format_warning_substr): New function.
2293 (avoid_dollar_number): Quote dollar sign in a diagnostic.
2294 (finish_dollar_format_checking): Same.
2295 (check_format_info): Same.
2296 (struct baltoks_t): New.
2297 (c_opers, c_keywords, cxx_keywords, badwords, contrs): New arrays.
2298 (maybe_diag_unbalanced_tokens, check_tokens, check_plain): New
2299 functions.
2300 (check_format_info_main): Call check_plain. Use baltoks_t. Call
2301 maybe_diag_unbalanced_tokens.
2302 (handle_format_attribute): Spell out the word "arguments" in
2303 a diagnostic.
2304
d3786ebb
MB
23052019-06-11 Matthew Beliveau <mbelivea@redhat.com>
2306
2307 PR c++/90449 - add -Winaccessible-base option.
2308 * c.opt (Winaccessible-base): New option.
2309
bf38f7e9
JJ
23102019-06-10 Jakub Jelinek <jakub@redhat.com>
2311
2312 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_SCAN.
2313 * c-pragma.c (omp_pragmas_simd): Add #pragma omp scan.
2314 * c-omp.c (c_omp_split_clauses): Diagnose inscan reductions on
2315 combined/composite constructs where it is not allowed. Copy over
2316 OMP_CLAUSE_REDUCTION_INSCAN.
2317
0ecf545c
MS
23182019-06-05 Martin Sebor <msebor@redhat.com>
2319
2320 * c-attribs.c (handle_mode_attribute): Adjust quoting and hyphenation.
2321 (handle_alias_ifunc_attribute): Same.
2322 (handle_copy_attribute): Same.
2323 (handle_weakref_attribute): Same.
2324 (handle_nonnull_attribute): Same.
2325 * c-warn.c (warn_for_sign_compare): Same.
2326 (warn_for_restrict): Same.
2327 * c.opt: Same.
2328
36b34127
MS
23292019-06-05 Martin Sebor <msebor@redhat.com>
2330
2331 * c-pragma.c (handle_pragma_weak): Adjust quoting in a diagnostic.
2332 * c.opt (-Wformat-diag): Remove a spurious period.
2333
357a352f
JJ
23342019-05-29 Jakub Jelinek <jakub@redhat.com>
2335
2336 PR c/90628
2337 * c-common.c (check_builtin_function_arguments)
2338 <case BUILTIN_*_OVERFLOW>: Diagnose pointer to const qualified integer
2339 as last argument.
2340
2b8235ea
EB
23412019-05-23 Eric Botcazou <ebotcazou@adacore.com>
2342
2343 * c-ada-spec.c (compare_node): Compare the DECL_UIDs as a last resort.
2344
6d86ddc4
ML
23452019-05-22 Martin Liska <mliska@suse.cz>
2346
2347 PR lto/90500
2348 * c-attribs.c (handle_copy_attribute): Do not copy
2349 target_clones attribute.
2350
419ba5b9
EB
23512019-05-21 Eric Botcazou <ebotcazou@adacore.com>
2352
2353 * c-ada-spec.h (enum cpp_operation): Add IS_ASSIGNMENT_OPERATOR.
2354 * c-ada-spec.c (print_assignment_operator): New function.
2355 (dump_ada_declaration) <FUNCTION_DECL>: Call it do dump explicit copy
2356 assignment operators declared as methods and filter out the others.
2357
e03436e7
TS
23582019-05-17 Thomas Schwinge <thomas@codesourcery.com>
2359
2360 PR c/89433
2361 * c-attribs.c (c_common_attribute_table): Set min_len to -1 for
2362 "omp declare target".
2363
a9c697b8
MS
23642019-05-16 Martin Sebor <msebor@redhat.com>
2365
ab20d992
JJ
2366 * c-attribs.c (handle_no_sanitize_attribute): Quote identifiers,
2367 keywords, operators, and types in diagnostics.
2368 (handle_scalar_storage_order_attribute): Same.
2369 (handle_mode_attribute): Same.
2370 (handle_visibility_attribute): Same.
2371 (handle_assume_aligned_attribute): Same.
2372 (handle_no_split_stack_attribute): Same.
2373 * c-common.c (shorten_compare): Same.
2374 (c_common_truthvalue_conversion): Same.
2375 (cb_get_source_date_epoch): Same.
2376 * c-lex.c (cb_def_pragma): Quote keywords, operators, and types
2377 in diagnostics.
2378 (interpret_float): Same.
2379 * c-omp.c (c_finish_omp_for): Same.
2380 * c-opts.c (c_common_post_options): Same.
2381 * c-pch.c (c_common_pch_pragma): Same.
2382 * c-pragma.c (pop_alignment): Same.
2383 (handle_pragma_pack): Same.
2384 (apply_pragma_weak): Same.
2385 (handle_pragma_weak): Same.
2386 (handle_pragma_scalar_storage_order): Same.
2387 (handle_pragma_redefine_extname): Same.
2388 (add_to_renaming_pragma_list): Same.
2389 (maybe_apply_renaming_pragma): Same.
2390 (push_visibility): Same.
2391 (handle_pragma_visibility): Same.
2392 (handle_pragma_optimize): Same.
2393 (handle_pragma_message): Same.
2394 * c-warn.c (warn_for_omitted_condop): Same.
2395 (lvalue_error): Same.
a9c697b8 2396
6b943512
RB
23972019-05-15 Richard Biener <rguenther@suse.de>
2398
2399 PR c/90474
2400 * c-common.c (c_common_mark_addressable_vec): Also mark
2401 a COMPOUND_LITERAL_EXPR_DECL addressable similar to
2402 c_mark_addressable.
ab20d992 2403
b744fc85
NS
24042019-05-06 Nathan Sidwell <nathan@acm.org>
2405
2406 * c-opts.c (handle_defered_opts): Rename struct deps to struc mkdeps.
2407
598f50d7
NS
24082019-04-30 Nathan Sidwell <nathan@acm.org>
2409
2410 * c-common.c (c_common_init_ts): Use MARK_TS_EXP. Mark SIZEOF_EXPR.
2411
5bcc5a3b
ML
24122019-04-30 Martin Liska <mliska@suse.cz>
2413
2414 * c-pragma.c (handle_pragma_diagnostic): Provide hints
2415 for unknown options.
2416
e78a87f7
RS
24172019-04-26 Richard Sandiford <richard.sandiford@arm.com>
2418
2419 * c-warn.c (strict_aliasing_warning): Apply COMPLETE_TYPE_P to
2420 the pointer target rather than the pointer itself.
2421
c280b7ee
JJ
24222019-04-19 Jakub Jelinek <jakub@redhat.com>
2423
2424 PR c/89888
2425 * c-common.h (c_add_case_label): Remove orig_type and outside_range_p
2426 arguments.
2427 (c_do_switch_warnings): Remove outside_range_p argument.
2428 * c-common.c (check_case_bounds): Removed.
2429 (c_add_case_label): Remove orig_type and outside_range_p arguments.
2430 Don't call check_case_bounds. Fold low_value as well as high_value.
2431 * c-warn.c (c_do_switch_warnings): Remove outside_range_p argument.
2432 Check for case labels outside of range of original type here and
2433 adjust them.
2434
8e8225e6
JJ
24352019-04-12 Jakub Jelinek <jakub@redhat.com>
2436
63b8a166
JJ
2437 PR translation/90041
2438 * c.opt (-fhandle-exceptions): Use %< and %> around option names
2439 in the Warn diagnostics.
2440
8e8225e6
JJ
2441 PR c/89946
2442 * c-attribs.c (handle_patchable_function_entry_attribute): Add
2443 function comment. Warn if arguments of the attribute are not positive
2444 integer constants.
2445
53a3f614
EB
24462019-04-09 Eric Botcazou <ebotcazou@adacore.com>
2447
2448 * c-ada-spec.c (print_destructor): Deal with deleting destructors.
2449 (dump_ada_declaration) <FUNCTION_DECL>: Likewise.
2450
22be5873
EB
24512019-04-07 Eric Botcazou <ebotcazou@adacore.com>
2452
2453 * c-ada-spec.c (is_float128): New predicate extracted from...
2454 (dump_ada_node) <COMPLEX_TYPE>: Use it to recognize __cfloat128.
2455 <REAL_TYPE>: ...here. Call it.
2456
34facf20
DM
24572019-04-05 David Malcolm <dmalcolm@redhat.com>
2458
2459 PR c/89985
2460 * c-warn.c (check_address_or_pointer_of_packed_member): Add
2461 auto_diagnostic_group. Guard inform calls by result of
2462 warning_at call.
2463
05564120
MP
24642019-04-05 Marek Polacek <polacek@redhat.com>
2465
ab20d992 2466 PR c++/89973 - -Waddress-of-packed-member ICE with invalid conversion.
05564120
MP
2467 * c-warn.c (check_address_or_pointer_of_packed_member): Check the type
2468 of RHS.
2469
7a506c3c
JM
24702019-04-03 Jason Merrill <jason@redhat.com>
2471
2472 PR c++/86586 - -fcompare-debug=-Wsign-compare.
2473 * c-warn.c (warn_for_sign_compare): Call fold_for_warn.
2474
ddeae8c8
MS
24752019-04-01 Martin Sebor <msebor@redhat.com>
2476
2477 PR c/89685
2478 * c-attribs.c (handle_copy_attribute): Handle references and
2479 non-constant expressions.
2480
a15ffa22
JJ
24812019-03-22 Jakub Jelinek <jakub@redhat.com>
2482
2483 PR c++/87481
2484 * c.opt (-fconstexpr-ops-limit=): New option.
2485
36a3a7a3
JJ
24862019-03-21 Jakub Jelinek <jakub@redhat.com>
2487
2488 * c-common.c (per_file_includes_t): Use false as Lazy in hash_set
2489 template param.
2490
bec1da64
MS
24912019-03-19 Martin Sebor <msebor@redhat.com>
2492
2493 PR tree-optimization/89688
2494 * c-common.c (braced_list_to_string): Make static.
2495 (braced_lists_to_strings): Define new function.
2496 * c-common.h (braced_list_to_string): Remove.
2497 (braced_lists_to_strings): Declare.
2498
1fe61adf
ML
24992019-03-12 Martin Liska <mliska@suse.cz>
2500
2501 * c-opts.c (c_common_handle_option): Wrap option with %< and %>.
2502
93964ebd
ML
25032019-03-11 Martin Liska <mliska@suse.cz>
2504
2505 * c-opts.c (c_common_post_options): Wrap apostrophes
2506 in gcc internal format with %'.
2507
a3f9f006
ML
25082019-03-11 Martin Liska <mliska@suse.cz>
2509
2510 * c-attribs.c (handle_nocf_check_attribute): Wrap an option name
2511 in a string format message and fix GNU coding style.
2512 * c-common.c (vector_types_convertible_p): Likewise.
2513 (c_build_vec_perm_expr): Likewise.
2514 * c-indentation.c (get_visual_column): Likewise.
2515 * c-opts.c (c_common_handle_option): Likewise.
2516 (c_common_post_options): Likewise.
2517 (sanitize_cpp_opts): Likewise.
2518 * c-pch.c (c_common_pch_pragma): Likewise.
2519 * c-pragma.c (handle_pragma_pack): Likewise.
2520
1db01ff9
JJ
25212019-03-08 Jakub Jelinek <jakub@redhat.com>
2522
2523 PR tree-optimization/89550
2524 * c-common.c (c_common_truthvalue_conversion): Only set
2525 TREE_NO_WARNING if warning_at returned true.
2526 * c-warn.c (overflow_warning, warn_logical_operator): Likewise.
2527
ba790e6f
JJ
25282019-02-25 Sandra Loosemore <sandra@codesourcery.com>
2529 Martin Sebor <msebor@gmail.com>
2530
2531 * c.opt (Wmissing-attributes): Clean up doc string.
2532
7da73ba7
JJ
25332019-02-25 Jakub Jelinek <jakub@redhat.com>
2534
2535 PR c/89495
2536 * c-format.c (maybe_read_dollar_number): Compute nargnum in
2537 HOST_WIDE_INT type to avoid overflows and change overflow_flag
2538 checking.
2539
921bb9d1
RB
25402019-02-22 Richard Biener <rguenther@suse.de>
2541
2542 * c-pch.c (no_checksum): Remove.
2543 (pch_init): Remove assertion that executable_checksum is not
2544 all zero.
2545 (c_common_valid_pch): Likewise.
2546
e2ebb05c
MS
25472019-02-18 Martin Sebor <msebor@redhat.com>
2548
2549 PR middle-end/89294
2550 * c-common.c (invalid_array_size_error): Handle cst_size_not_constant.
2551
3fe53000
DM
25522019-02-16 David Malcolm <dmalcolm@redhat.com>
2553
2554 PR c++/88680
2555 * c-common.c (shorten_compare): Call fold_for_warn on op0 when
2556 implementing -Wtype-limits.
2557
28a8cef1
MS
25582019-02-11 Martin Sebor <msebor@redhat.com>
2559
2560 PR c++/87996
2561 * c-common.c (invalid_array_size_error): New function.
2562 (valid_array_size_p): Call it. Handle size as well as type.
2563 * c-common.h (valid_constant_size_p): New function.
2564 (enum cst_size_error): New type.
2565
ec2be203
DM
25662019-01-31 David Malcolm <dmalcolm@redhat.com>
2567
2568 PR c/89122
2569 * known-headers.cc (get_stdlib_header_for_name): Add
2570 {FLT|DBL|LDBL}_{MAX|MIN} to "hints" array.
2571
8936f047
JJ
25722019-01-31 Jakub Jelinek <jakub@redhat.com>
2573
2574 PR libstdc++/88170
2575 * c-pretty-print.c (pp_c_enumeration_constant): Print always as
2576 a C cast in pp_c_flag_gnu_v3 mode.
2577
6a335b96
JJ
25782019-01-29 Jakub Jelinek <jakub@redhat.com>
2579
2580 PR c/86125
2581 * c-common.c (c_common_nodes_and_builtins): Build type variants for
2582 builtin_structptr_types types even for C.
2583
2a06eba5
BE
25842019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
2585
2586 * c-warn.c (check_address_or_pointer_of_packed_member): Handle the case
2587 when rhs is of array type correctly. Fix handling of nested structures.
2588 Fix handling of indirect_ref together with nop_expr and/or addr_expr.
2589 (check_and_warn_address_or_pointer_of_packed_member): Fix handling of
2590 type casts within nested compound expressions.
2591
18a23298
JJ
25922019-01-22 Jakub Jelinek <jakub@redhat.com>
2593
2594 PR middle-end/88968
2595 * c-omp.c (c_finish_omp_atomic): For bitfield atomics, update type
2596 variable after using BIT_FIELD_REF.
2597
420183d9
L
25982019-01-18 H.J. Lu <hongjiu.lu@intel.com>
2599
2600 PR c/51628
2601 PR c/88664
2602 * c-common.h (warn_for_address_or_pointer_of_packed_member):
2603 Remove the boolean argument.
2604 * c-warn.c (check_address_of_packed_member): Renamed to ...
2605 (check_address_or_pointer_of_packed_member): This. Also
2606 warn pointer conversion.
2607 (check_and_warn_address_of_packed_member): Renamed to ...
2608 (check_and_warn_address_or_pointer_of_packed_member): This.
2609 Also warn pointer conversion.
2610 (warn_for_address_or_pointer_of_packed_member): Remove the
2611 boolean argument. Don't check pointer conversion here.
2612
99063eee
RS
26132019-01-15 Richard Sandiford <richard.sandiford@arm.com>
2614
2615 PR inline-asm/52813
2616 * c.opt (Wdeprecated): Move documentation and variable to common.opt.
2617
a30d0196
JJ
26182019-01-14 Jakub Jelinek <jakub@redhat.com>
2619
2620 * c-cppbuiltin.c (c_cpp_builtin): Define __cpp_guaranteed_copy_elision
2621 and __cpp_nontype_template_parameter_auto. Add a comment that
2622 __cpp_template_auto is deprecated.
2623
2d91f79d
TH
26242019-01-14 Tom Honermann <tom@honermann.net>
2625
2626 Implement P0482R5, char8_t: A type for UTF-8 characters and strings
2627 * c-common.c (c_common_reswords): Add char8_t.
2628 (fix_string_type): Use char8_t for the type of u8 string literals.
2629 (c_common_get_alias_set): char8_t doesn't alias.
2630 (c_common_nodes_and_builtins): Define char8_t as a builtin type in
2631 C++.
2632 (c_stddef_cpp_builtins): Add __CHAR8_TYPE__.
2633 (keyword_begins_type_specifier): Add RID_CHAR8.
2634 * c-common.h (rid): Add RID_CHAR8.
2635 (c_tree_index): Add CTI_CHAR8_TYPE and CTI_CHAR8_ARRAY_TYPE.
2636 Define D_CXX_CHAR8_T and D_CXX_CHAR8_T_FLAGS.
2637 Define char8_type_node and char8_array_type_node.
2638 * c-cppbuiltin.c (cpp_atomic_builtins): Predefine
2639 __GCC_ATOMIC_CHAR8_T_LOCK_FREE.
2640 (c_cpp_builtins): Predefine __cpp_char8_t.
2641 * c-lex.c (lex_string): Use char8_array_type_node as the type of
2642 CPP_UTF8STRING.
2643 (lex_charconst): Use char8_type_node as the type of CPP_UTF8CHAR.
2644 * c-opts.c: If not otherwise specified, enable -fchar8_t when
2645 targeting C++2a.
2646 * c.opt: Add the -fchar8_t command line option.
2647
23db6ced
MS
26482019-01-14 Martin Sebor <msebor@redhat.com>
2649
2650 PR target/88638
2651 * c-attribs.c (positional_argument): Call valid_format_string_type_p
2652 and issue errors if it fails.
2653 * c-common.h (valid_format_string_type_p): Declare.
2654 * c-format.c (valid_stringptr_type_p): Rename...
2655 (valid_format_string_type_p): ...to this and make extern.
2656 (handle_format_arg_attribute): Adjust to new name.
2657 (check_format_string): Same.
2658
234c3818
L
26592019-01-13 H.J. Lu <hongjiu.lu@intel.com>
2660
2661 * c-warn.c (warn_for_address_or_pointer_of_packed_member):
2662 Replace "may may" with "may" in warning message.
2663
d8fcab68
JJ
26642019-01-07 Jakub Jelinek <jakub@redhat.com>
2665
2666 PR c++/85052
2667 * c-common.h (enum rid): Add RID_BUILTIN_CONVERTVECTOR.
2668 (c_build_vec_convert): Declare.
2669 * c-common.c (c_build_vec_convert): New function.
2670
29d24852
MS
26712019-01-04 Martin Sebor <msebor@redhat.com>
2672
2673 PR c/88546
2674 * c-attribs.c (handle_copy_attribute): Avoid copying attribute leaf.
2675 Handle C++ empty throw specification and C11 _Noreturn.
2676 (has_attribute): Also handle C11 _Noreturn.
2677
9069a4c9
MS
26782019-01-04 Martin Sebor <msebor@redhat.com>
2679
2680 PR c/88363
2681 * c-attribs.c (positional_argument): Also accept enumerated types.
2682
a5544970
JJ
26832019-01-01 Jakub Jelinek <jakub@redhat.com>
2684
2685 Update copyright years.
2686
da77eace
L
26872018-12-20 H.J. Lu <hongjiu.lu@intel.com>
2688
2689 PR c/51628
2690 * c-common.h (warn_for_address_or_pointer_of_packed_member): New.
2691 * c-warn.c (check_alignment_of_packed_member): New function.
2692 (check_address_of_packed_member): Likewise.
2693 (check_and_warn_address_of_packed_member): Likewise.
2694 (warn_for_address_or_pointer_of_packed_member): Likewise.
2695 * c.opt: Add -Wno-address-of-packed-member.
2696
573767d4
DM
26972018-12-20 David Malcolm <dmalcolm@redhat.com>
2698
2699 PR c++/87504
2700 * c-warn.c (get_outermost_macro_expansion): New function.
2701 (spelled_the_same_p): Use it to unwind the macro expansions, and
2702 compare the outermost macro in each nested expansion, rather than
2703 the innermost.
2704
a14feb3c
DM
27052018-12-19 David Malcolm <dmalcolm@redhat.com>
2706
2707 PR c++/87504
2708 * c-common.h (warn_tautological_cmp): Convert 1st param from
2709 location_t to const op_location_t &.
2710 * c-warn.c (find_array_ref_with_const_idx_r): Call fold_for_warn
2711 when testing for INTEGER_CST.
2712 (warn_tautological_bitwise_comparison): Convert 1st param from
2713 location_t to const op_location_t &; use it to build a
2714 binary_op_rich_location, and use this.
2715 (spelled_the_same_p): New function.
2716 (warn_tautological_cmp): Convert 1st param from location_t to
2717 const op_location_t &. Warn for macro expansions if
2718 spelled_the_same_p. Use binary_op_rich_location.
2719
dfd7fdca
DM
27202018-12-19 David Malcolm <dmalcolm@redhat.com>
2721
2722 PR c++/43064
2723 PR c++/43486
2724 * c-common.c (unsafe_conversion_p): Fold any location wrapper.
2725 (verify_tree): Handle location wrappers.
2726 (c_common_truthvalue_conversion): Strip any location wrapper.
2727 Handle CONST_DECL.
2728 (fold_offsetof): Strip any location wrapper.
2729 (complete_array_type): Likewise for initial_value.
2730 (convert_vector_to_array_for_subscript): Call fold_for_warn on the
2731 index before checking for INTEGER_CST.
2732 * c-pretty-print.c (c_pretty_printer::primary_expression): Don't
2733 print parentheses around location wrappers.
2734 * c-warn.c (warn_logical_operator): Call fold_for_warn on op_right
2735 before checking for INTEGER_CST.
2736 (warn_tautological_bitwise_comparison): Call
2737 tree_strip_any_location_wrapper on lhs, rhs, and bitop's operand
2738 before checking for INTEGER_CST.
2739 (readonly_error): Strip any location wrapper.
2740 (warn_array_subscript_with_type_char): Strip location wrappers
2741 before checking for INTEGER_CST. Use the location of the index if
2742 available.
2743
5c8b3702
JM
27442018-12-06 Jason Merrill <jason@redhat.com>
2745
2746 PR c++/88136 - -Wdeprecated-copy false positives
2747 * c.opt (Wdeprecated-copy-dtor): New.
2748 (Wdeprecated-copy): Move to -Wextra.
2749
673670da
MS
27502018-11-29 Martin Sebor <msebor@redhat.com>
2751
2752 PR c/88172
2753 PR testsuite/88208
2754 * c-attribs.c (common_handle_aligned_attribute): Silently avoid setting
2755 alignments to values less than the target requires.
2756 (has_attribute): For attribute aligned consider both the attribute
2757 and the alignment bits.
2758 * c-common.c (c_init_attributes): Optionally issue a warning for
2759 zero alignment.
2760
04864ec8
MS
27612018-11-28 Martin Sebor <msebor@redhat.com>
2762
2763 PR c/88065
2764 PR c/87297
2765 * c-warn.c (sizeof_pointer_memaccess_warning): Bail if source
2766 or destination is an error.
2767
ace83db0
JJ
27682018-11-28 Jakub Jelinek <jakub@redhat.com>
2769
2770 PR c++/88215
2771 * c-ubsan.c: Include langhooks.h.
2772 (ubsan_instrument_division): Change gcc_assert that main variants
2773 of op0 and op1 types are equal to gcc_checking_assert that the
2774 main variants are compatible types.
2775
da193a27
EB
27762018-11-27 Eric Botcazou <ebotcazou@adacore.com>
2777
2778 * c-ada-spec.c: Include stringpool.h.
2779 (has_static_fields): Return false for incomplete types.
2780 (is_tagged_type): Likewise.
2781 (has_nontrivial_methods): Likewise.
2782 (dump_ada_node) <INTEGER_TYPE>: Deal specifically with __int128.
2783 (struct overloaded_name_hash): New structure.
2784 (struct overloaded_name_hasher): Likewise.
2785 (overloaded_names): New global variable.
2786 (init_overloaded_names): New static function.
2787 (overloaded_name_p): New predicate.
2788 (dump_ada_declaration) <TYPE_DECL>: Tidy up and set TREE_VISITED
2789 on the TYPE_STUB_DECL of the original type of a typedef, if any.
2790 <FUNCTION_DECL>: Bail out for an unsupported overloaded name.
2791 Remove always-true condition and dump forward types.
2792 (dump_ada_specs): Delete overloaded_names.
2793
98f08eb8
MS
27942018-11-20 Martin Sebor <msebor@redhat.com>
2795
2796 * c-attribs.c (type_for_vector_size): New function.
2797 (type_valid_for_vector_size): Same.
2798 (handle_vector_size_attribute): Move code to the functions above
2799 and call them.
2800 (validate_attribute, has_attribute): New functions.
2801 * c-common.h (has_attribute): Declare.
2802 (rid): Add RID_HAS_ATTRIBUTE_EXPRESSION.
2803 * c-common.c (c_common_resword): Same.
2804
2674fa47
JM
28052018-11-16 Jason Merrill <jason@redhat.com>
2806
2807 * c-lex.c (c_common_has_attribute): Handle likely/unlikely.
2808 * c-attribs.c (attr_cold_hot_exclusions): Make public.
2809
258b3854
JJ
28102018-11-16 Jakub Jelinek <jakub@redhat.com>
2811
2812 PR middle-end/87854
2813 * c-common.c (fix_string_type): Reject string literals larger than
2814 TYPE_MAX_VALUE (ssizetype) bytes.
2815
1d249509
MS
28162018-11-15 Martin Sebor <msebor@redhat.com>
2817
2818 PR c++/87541
2819 PR c++/87542
2820 * c-attribs.c (positional_argument): New function.
2821 (handle_alloc_size_attribute): Use it and simplify.
2822 (handle_alloc_align_attribute): Same.
2823 (handle_assume_aligned_attribute): Same.
2824 (handle_nonnull_attribute): Same.
2825 * c-common.c (check_function_arguments): Pass fntype to
2826 check_function_format.
2827 * c-common.h (check_function_format): Add an argument.
2828 (PosArgFlags, positional_argument): Declare new type and function.
2829 * c-format.c (decode_format_attr): Add arguments.
2830 (check_format_string, get_constant): Same.
2831 (convert_format_name_to_system_name): Adjust.
2832
478dd60d
DM
28332018-11-15 David Malcolm <dmalcolm@redhat.com>
2834
2835 PR other/19165
2836 * c-opts.c (c_diagnostic_finalizer): Add diagnostic_t param.
2837
8cca0163
JJ
28382018-11-14 Jakub Jelinek <jakub@redhat.com>
2839
8ee09943
JJ
2840 P1236R1 - Signed integers are two's complement
2841 * c-warn.c (maybe_warn_shift_overflow): Don't warn for c++2a.
2842 * c-ubsan.c (ubsan_instrument_shift): Make signed shifts
2843 with in-range second operand well defined for -std=c++2a.
2844
8cca0163
JJ
2845 PR other/88007
2846 * c-common.c (parse_optimize_options): Allocate option string from
2847 opts_obstack rather than as GC memory. Move the allocation after
2848 warning for invalid option.
2849
620e594b
DM
28502018-11-13 David Malcolm <dmalcolm@redhat.com>
2851
2852 * c-common.c (c_get_substring_location): Update for renaming of
2853 get_source_location_for_substring to get_location_within_string.
2854 * c-lex.c: Replace "source_location" with "location_t".
2855 * c-opts.c: Likewise.
2856 * c-ppoutput.c: Likewise.
2857
f9731de3
MS
28582018-11-13 Martin Sebor <msebor@redhat.com>
2859
2860 PR middle-end/81824
2861 * c-attribs.c (handle_copy_attribute): Exclude inlining attributes.
2862 (handle_tls_model_attribute): Improve diagnostics.
2863
e4bd6d5e
JM
28642018-11-12 Jason Merrill <jason@redhat.com>
2865
a6bb6b07
JM
2866 * c-cppbuiltin.c (c_cpp_builtins): Define
2867 __cpp_impl_destroying_delete.
2868
e4bd6d5e
JM
2869 * c-cppbuiltin.c (c_cpp_builtins): Change __cpp_explicit_bool to
2870 __cpp_conditional_explicit.
2871
79a2c428
MS
28722018-11-09 Martin Sebor <msebor@redhat.com>
2873
2874 PR middle-end/81824
2875 * c-attribs.c (handle_copy_attribute): New function.
2876
4c7bd361
MS
28772018-11-09 Martin Sebor <msebor@redhat.com>
2878
2879 PR c/87795
2880 * c-common.c (check_user_alignment): Use MAX_OFILE_ALIGNMENT.
2881
28567c40
JJ
28822018-11-08 Jakub Jelinek <jakub@redhat.com>
2883
2884 * c-common.h (c_finish_omp_taskgroup): Add CLAUSES argument.
2885 (c_finish_omp_atomic): Replace bool SEQ_CST argument with
2886 enum omp_memory_order MEMORY_ORDER.
2887 (c_finish_omp_flush): Add MO argument.
2888 (c_omp_depend_t_p, c_finish_omp_depobj): Declare.
2889 (c_finish_omp_for): Add FINAL_P argument.
2890 * c-omp.c: Include memmodel.h.
2891 (c_finish_omp_taskgroup): Add CLAUSES argument. Set
2892 OMP_TASKGROUP_CLAUSES to it.
2893 (c_finish_omp_atomic): Replace bool SEQ_CST argument with
2894 enum omp_memory_order MEMORY_ORDER. Set OMP_ATOMIC_MEMORY_ORDER
2895 instead of OMP_ATOMIC_SEQ_CST.
2896 (c_omp_depend_t_p, c_finish_omp_depobj): New functions.
2897 (c_finish_omp_flush): Add MO argument, if not MEMMODEL_LAST, emit
2898 __atomic_thread_fence call with the given value.
2899 (check_omp_for_incr_expr): Formatting fixes.
2900 (c_finish_omp_for): Add FINAL_P argument. Allow NE_EXPR
2901 even in OpenMP loops, diagnose if NE_EXPR and incr expression
2902 is not constant expression 1 or -1. Transform NE_EXPR loops
2903 with iterators pointers to VLA into LT_EXPR or GT_EXPR loops.
2904 (c_omp_check_loop_iv_r): Look for orig decl of C++ range for
2905 loops too.
2906 (c_omp_split_clauses): Add support for combined
2907 #pragma omp parallel master and
2908 #pragma omp {,parallel }master taskloop{, simd} constructs.
2909 Handle OMP_CLAUSE_IN_REDUCTION. Handle OMP_CLAUSE_REDUCTION_TASK.
2910 Handle OMP_CLAUSE_NONTEMPORAL. Handle splitting OMP_CLAUSE_IF
2911 also to OMP_SIMD. Copy OMP_CLAUSE_LASTPRIVATE_CONDITIONAL.
2912 (c_omp_predetermined_sharing): Don't return
2913 OMP_CLAUSE_DEFAULT_SHARED for const qualified decls.
2914 * c-pragma.c (omp_pragmas): Add PRAGMA_OMP_DEPOBJ and
2915 PRAGMA_OMP_REQUIRES.
2916 * c-pragma.h (enum pragma_kind): Likewise.
2917 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_NONTEMPORAL
2918 and PRAGMA_OMP_CLAUSE_{IN,TASK}_REDUCTION.
2919
204839e7
DM
29202018-11-08 David Malcolm <dmalcolm@redhat.com>
2921
2922 * c-format.c (gcc_dump_printf_char_table): Add entry for %f.
2923
d8010ee4
DM
29242018-11-08 David Malcolm <dmalcolm@redhat.com>
2925
2926 * c-format.c (local_cgraph_node_ptr_node): New variable.
2927 (gcc_dump_printf_char_table): Add entry for %C.
2928 (get_pointer_to_named_type): New function, taken from the handling
2929 code for "gimple *" from...
2930 (init_dynamic_diag_info): ...here. Add handling for
2931 "cgraph_node *".
2932 * c-format.h (T_CGRAPH_NODE): New.
2933
4be5c72c
JM
29342018-10-19 Jason Merrill <jason@redhat.com>
2935
2936 * c-cppbuiltin.c (c_cpp_builtins): Add
2937 __cpp_nontype_template_parameter_class.
2938
f3f6029d
NS
29392018-10-31 Nathan Sidwell <nathan@acm.org>
2940
ab5324fb
NS
2941 * c-opts.c (c_finish_options): Force command line macro
2942 location. Refactor to avoid repeating main debug hook.
2943 (push_command_line_include): Clarify comment.
2944
f3f6029d
NS
2945 * c-opts.c (c_finish_options): Adjust cpp_force_token_locations call.
2946
91e3ec29
MS
29472018-10-30 Martin Sebor <msebor@redhat.com>
2948
2949 PR middle-end/87041
2950 * c-format.c (check_format_types): Avoid diagnosing null pointer
2951 arguments to printf-family of functions.
2952
b5ff4f5c
MP
29532018-10-30 Marek Polacek <polacek@redhat.com>
2954
2955 Implement P0892R2, explicit(bool).
2956 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_explicit_bool.
2957
7e2de6df
DM
29582018-10-29 David Malcolm <dmalcolm@redhat.com>
2959
2960 * name-hint.h (name_hint::take_deferred): New member function.
2961
b2bf438c
DM
29622018-10-29 David Malcolm <dmalcolm@redhat.com>
2963
2964 PR c++/56856
2965 * c-common.c (check_function_sentinel): Call fold_for_warn on the
2966 argument.
2967 (check_function_restrict): Rename param "argarray" to
2968 "unfolded_argarray", and make a copy named "argarray", calling
2969 fold_for_warn on each argument.
2970 (check_function_arguments): Add note about responsibility for
2971 folding the arguments.
2972
9f936c86
JM
29732018-10-17 Joseph Myers <joseph@codesourcery.com>
2974
2975 * c-common.c (flag_isoc2x): New variable.
2976 * c-common.h (clk_c): Update comment to reference C2X.
2977 (flag_isoc99, flag_isoc11): Update comments to reference future
2978 standard versions in general.
2979 (flag_isoc2x): Declare.
2980 * c-opts.c (set_std_c2x): New function.
2981 (c_common_handle_option): Handle -std=c2x and -std=gnu2x.
2982 (set_std_c89, set_std_c99, set_std_c11, set_std_c17): Set
2983 flag_isoc2x to 0.
2984 * c.opt (Wc11-c2x-compat, std=c2x, std=gnu2x): New options.
2985
7a8a92c4
JM
29862018-10-17 Joseph Myers <joseph@codesourcery.com>
2987
2988 * c.opt (std=c17, std=c18, std=gnu17, std=gnu18, std=iso9899:2017)
2989 (std=iso9899:2018): Document C17 as published in 2018.
2990
4dc003ff
CL
29912018-10-12 Christophe Lyon <christophe.lyon@linaro.org>
2992
2993 PR c++/87364
2994 * c-pretty-print.c (c_pretty_printer::constant): Fix typo.
2995
79371671
WW
29962018-10-11 Will Wray <wjwray@gmail.com>
2997
2998 PR c++/87364
2999 * c-pretty-print.h (pp_c_type_cast): Prototype.
3000 (pp_c_integer_constant): Likewise.
3001 * c-pretty-print.c (pp_c_type_cast): No longer static.
3002 (pp_c_integer_constant): Likewise.
3003 (pp_c_enumeration_constant): Fix loop termination when finding
3004 name of constant. No longer returns a value. Call
3005 pp_c_integer_constant.
3006 (c_pretty_printer::constant): Update for changes to
3007 pp_c_enumeration_constant.
3008
46c62690
JJ
30092018-10-11 Jakub Jelinek <jakub@redhat.com>
3010
3011 * c-lex.c (c_common_has_attribute): Return 201803 instead of 20180312
3012 for no_unique_address.
3013
c24300ba
DM
30142018-10-09 David Malcolm <dmalcolm@redhat.com>
3015
3016 * c-common.c (c_option_controlling_cpp_error): Rename to...
3017 (c_option_controlling_cpp_diagnostic): ...this, and convert
3018 "reason" from int to enum.
3019 (c_cpp_error): Rename to...
3020 (c_cpp_diagnostic): ...this, converting level and reason to enums.
3021 * c-common.h (c_cpp_error): Rename to...
3022 (c_cpp_diagnostic): ...this, converting level and reason to enums.
3023 * c-opts.c (c_common_init_options): Update for renaming.
3024
8656dafa
RS
30252018-10-08 Richard Sandiford <richard.sandiford@arm.com>
3026
3027 PR c/87286
3028 * c-common.c (vector_types_compatible_elements_p): Use
3029 INTEGRAL_TYPE_P instead of checking only for INTEGER_TYPE.
3030
8cff0652
VK
30312018-10-04 Vinay Kumar <vinay.kumar@blackfigtech.com>
3032
3033 * c-attribs.c (get_priority): Add a warning flag warn_prio_ctor_dtor
3034 to generate constructor destructor priority warning.
3035 * c.opt (-Wprio-ctor-dtor): New option.
3036
bedf03a2
JM
30372018-10-01 Jason Merrill <jason@redhat.com>
3038
3039 * c-lex.c (c_common_has_attribute): Add no_unique_address.
3040
6cc430c1
EB
30412018-10-01 Eric Botcazou <ebotcazou@adacore.com>
3042
3043 * c-ada-spec.c (get_underlying_decl): Get to the main type variant.
3044 (dump_ada_node): Add const keyword.
3045
87677ac7
ML
30462018-09-25 Martin Liska <mliska@suse.cz>
3047
3048 * c-common.c (c_common_truthvalue_conversion):
3049 Remove Pascal from documentation.
3050
518196cb
EB
30512018-09-21 Eric Botcazou <ebotcazou@adacore.com>
3052
3053 * c-ada-spec.c: Include diagnostic.h.
3054 (dump_ada_declaration) <RECORD_TYPE>: Issue a warning on packed layout.
3055
a599af84
MP
30562018-09-19 Marek Polacek <polacek@redhat.com>
3057
3058 * c.opt (Wclass-conversion): New.
3059
9c4a4b3c
DM
30602018-09-17 David Malcolm <dmalcolm@redhat.com>
3061
3062 * c-format.c (range_label_for_format_type_mismatch::get_text):
3063 Update for new param.
3064
c896ecfe
DM
30652018-09-17 David Malcolm <dmalcolm@redhat.com>
3066
3067 * c-format.c (format_warning_at_char): Update for introduction of
3068 format_string_diagnostic_t.
3069 (format_type_warning): Likewise.
3070
80c6d1f4
MJ
30712018-09-17 Martin Jambor <mjambor@suse.cz>
3072
3073 PR c/63886
3074 * c.opt (Wabsolute-value): New.
3075
6d900107
BE
30762018-09-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
3077
3078 * c-common.c (complete_flexible_array_elts): New helper function.
3079 * c-common.h (complete_flexible_array_elts): Declare.
3080
b5764229
BE
30812018-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
3082
3083 * c-common.c (braced_list_to_string): Remove eval parameter.
3084 Add some more checks. Always create zero-terminated STRING_CST.
3085 * c-common.h (braced_list_to_string): Adjust prototype.
3086
85204e23
DM
30872018-08-27 David Malcolm <dmalcolm@redhat.com>
3088
3089 PR 87091
3090 * c-common.c (c_cpp_error): Update for conversion of show_caret_p
3091 to a tri-state.
3092 (maybe_suggest_missing_token_insertion): Likewise.
3093 (maybe_add_include_fixit): Add param "override_location". If set,
3094 and source-printing is enabled, then override the rich_location's
3095 primary location with that of the insertion point for the fix-it
3096 hint, marking it with SHOW_LINES_WITHOUT_RANGE.
3097 * c-common.h (extern void maybe_add_include_fixit): Add bool
3098 param.
3099 * c-format.c (selftest::test_type_mismatch_range_labels): Update
3100 for conversion of show_caret_p to a tri-state.
3101 * c-warn.c (warn_for_restrict): Likewise.
3102 * known-headers.cc
3103 (suggest_missing_header::~suggest_missing_header): Update call to
3104 maybe_add_include_fixit to suggest overriding the location, as it
3105 is for a note.
3106
3d78e008
ML
31072018-08-27 Martin Liska <mliska@suse.cz>
3108
3109 * c-common.c (check_function_restrict): Use new function
92a285c1
ML
3110 fndecl_built_in_p and remove check for FUNCTION_DECL if
3111 possible.
3d78e008
ML
3112 (check_builtin_function_arguments): Likewise.
3113 (reject_gcc_builtin): Likewise.
3114 * c-warn.c (sizeof_pointer_memaccess_warning): Likewise.
3115
b5be6d0c
MP
31162018-08-26 Marek Polacek <polacek@redhat.com>
3117
3118 PR c++/87029, Implement -Wredundant-move.
3119 * c.opt (Wredundant-move): New option.
3120
79ca9c35
MP
31212018-08-21 Marek Polacek <polacek@redhat.com>
3122
3123 PR c++/86981, Implement -Wpessimizing-move.
3124 * c.opt (Wpessimizing-move): New option.
3125
097f82ec
DM
31262018-08-20 David Malcolm <dmalcolm@redhat.com>
3127
3128 PR other/84889
3129 * c-attribs.c (common_handle_aligned_attribute): Add
3130 auto_diagnostic_group instance.
3131 * c-indentation.c (warn_for_misleading_indentation): Likewise.
3132 * c-opts.c (c_common_post_options): Likewise.
3133 * c-warn.c (warn_logical_not_parentheses): Likewise.
3134 (warn_duplicated_cond_add_or_warn): Likewise.
3135 (warn_for_multistatement_macros): Likewise.
3136
3fb558b1
NS
31372018-08-20 Nathan Sidwell <nathan@acm.org>
3138
3139 * c-ada-spec.c (macro_length, dump_ada_macros): Adjust macro parm
3140 access.
3141
800c0e98
NS
31422018-08-17 Nathan Sidwell <nathan@acm.org>
3143
3144 * c-cppbuiltin.c (struct lazy_hex_fp_value_struct): Remove macro
3145 field.
3146 (laxy_hex_fp_value_count): Make unsigned.
3147 (lazy_hex_fp_value): Provided with macro & lazy number. Directly
3148 manipulate the macro.
3149 (builtin_defin_with_hex_fp_value): Adjust callback name, use
3150 cpp_define_lazily.
3151
6f795a92
DM
31522018-08-17 David Malcolm <dmalcolm@redhat.com>
3153
3154 * c-format.c (enum format_type): Add gcc_dump_printf_format_type.
3155 (gcc_dump_printf_length_specs): New.
3156 (gcc_dump_printf_flag_pairs): New.
3157 (gcc_dump_printf_flag_specs): New.
3158 (gcc_dump_printf_char_table): New.
3159 (format_types_orig): Add entry for "gcc_dump_printf".
3160 (init_dynamic_diag_info): Set up length_char_specs and
3161 conversion_specs for gcc_dump_printf_format_type.
3162 (handle_format_attribute): Handle gcc_dump_printf_format_type.
3163
c5d725c0
NS
31642018-08-17 Nathan Sidwell <nathan@acm.org>
3165
10f04917
NS
3166 * c-ada-spec.c (macro_length, dump_ada_macros): Constify.
3167
c5d725c0
NS
3168 * c-ada-spec.c: Don't #include "cpp-id-data.h"
3169 * c-cppbuiltin.c: Likewise.
3170
c0c12356
ML
31712018-08-17 Martin Liska <mliska@suse.cz>
3172
3173 * c.opt: Remove Warn, Init and Report for options with
92a285c1
ML
3174 Ignore/Deprecated flag. Warning is done automatically for
3175 Deprecated flags.
c0c12356 3176
10fcc142
DM
31772018-08-16 David Malcolm <dmalcolm@redhat.com>
3178
3179 PR c++/70693
3180 * c-common.c (selftest::c_family_tests): Call
3181 selftest::c_indentation_c_tests.
3182 * c-common.h (selftest::c_indentation_c_tests): New decl.
3183 * c-indentation.c: Include "selftest.h".
3184 (next_tab_stop): Add "tab_width" param, rather than accessing
3185 cpp_opts.
3186 (get_visual_column): Likewise. Clarify comment. Bulletproof
3187 against reading past the end of the line.
3188 (get_first_nws_vis_column): Add "tab_width" param.
3189 (detect_intervening_unindent): Likewise.
3190 (should_warn_for_misleading_indentation): Read tab width from
3191 cpp_opts and pass around.
3192 (selftest::test_next_tab_stop): New test.
3193 (selftest::assert_get_visual_column_succeeds): New function.
3194 (ASSERT_GET_VISUAL_COLUMN_SUCCEEDS): New macro.
3195 (selftest::assert_get_visual_column_fails): New function.
3196 (ASSERT_GET_VISUAL_COLUMN_FAILS): New macro.
3197 (selftest::test_get_visual_column): New test.
3198 (selftest::c_indentation_c_tests): New function.
3199
3f6677f4
NS
32002018-08-16 Nathan Sidwell <nathan@acm.org>
3201
3202 * c-ada-spec.c (count_ada_macro): Use cpp_user_macro_p.
3203 (store_ada_macro): Likewise.
3204 * c-ppoutput.c (cb_used_define, dump_macro): Likewise.
3205 * c-spellcheck.cc (should-suggest_as_macro_p): Likewise,
3206
96e6ae57
DM
32072018-08-15 David Malcolm <dmalcolm@redhat.com>
3208
3209 * c-format.c: Include "selftest-diagnostic.h" and
3210 "gcc-rich-location.h".
3211 (format_warning_at_char): Pass NULL for new label params of
3212 format_warning_va.
3213 (class indirection_suffix): New class.
3214 (class range_label_for_format_type_mismatch): New class.
3215 (format_type_warning): Move logic for generating "*" suffix to
3216 class indirection_suffix. Create "fmt_label" and "param_label"
3217 to show their types, and pass them to the
3218 format_warning_at_substring calls.
3219 (selftest::test_type_mismatch_range_labels): New test.
3220 (selftest::c_format_c_tests): Call it.
3221
23aa9f7c
MS
32222018-08-13 Martin Sebor <msebor@redhat.com>
3223
3224 PR tree-optimization/71625
3225 * c-common.c (braced_list_to_string): New function.
3226 * c-common.h (braced_list_to_string): Declare it.
3227
f10a9135
NS
32282018-08-08 Nathan Sidwell <nathan@acm.org>
3229
3230 * c-common.c (try_to_locate_new_include_inertion_point): Use
3231 linemap_included_from_linemap.
3232 * c-lex.c (fe_file_change): Use linemap_included_from.
3233 * c-ppoutput.c (pp_file_change): Likewise.
3234
8a45b051
MS
32352018-08-01 Martin Sebor <msebor@redhat.com>
3236
3237 PR tree-optimization/86650
ab20d992 3238 * c-format.c (gcc_tdiag_char_table): Update comment for "%G".
8a45b051
MS
3239 (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Same.
3240 (init_dynamic_diag_info): Update from "gcall *" to "gimple *".
3241 * c-format.h (T89_G): Update to be "gimple *" rather than
3242 "gcall *".
3243 (local_gcall_ptr_node): Rename...
3244 (local_gimple_ptr_node): ...to this.
3245
e540ccc0
DM
32462018-07-31 David Malcolm <dmalcolm@redhat.com>
3247
3248 * c-format.c (PP_FORMAT_CHAR_TABLE): New macro, based on existing
3249 table entries for gcc_diag_char_table, and the 'Z' entry from
3250 gcc_tdiag_char_table, changing the "chain" entry for 'Z' from
3251 &gcc_tdiag_char_table[0] to &gcc_diag_char_table[0].
3252 (gcc_diag_char_table): Use PP_FORMAT_CHAR_TABLE, implicitly
3253 adding missing "Z" for this table. Remove erroneous "G" and "K"
3254 entries.
3255 (gcc_tdiag_char_table): Use PP_FORMAT_CHAR_TABLE. Remove "v".
3256 (gcc_cdiag_char_table): Use PP_FORMAT_CHAR_TABLE.
3257 (gcc_cxxdiag_char_table): Use PP_FORMAT_CHAR_TABLE. Remove "v".
3258
425fc685
RE
32592018-07-31 Richard Earnshaw <rearnsha@arm.com>
3260
3261 * c-common.c (speculation_safe_resolve_call): New function.
3262 (speculation_safe_resolve_params): New function.
3263 (speculation_safe_resolve_return): New function.
3264 (resolve_overloaded_builtin): Handle __builtin_speculation_safe_value.
3265 * c-cppbuiltin.c (c_cpp_builtins): Add pre-define for
3266 __HAVE_SPECULATION_SAFE_VALUE.
3267
181463c2
DM
32682018-07-20 David Malcolm <dmalcolm@redhat.com>
3269
3270 * c-common.c (c_cpp_error): Remove redundant "line_table"
3271 parameter from call to rich_location::set_range.
3272 (maybe_suggest_missing_token_insertion): Likewise.
3273
0d7f9065
MS
32742018-07-20 Martin Sebor <msebor@redhat.com>
3275
3276 PR middle-end/82063
ab20d992 3277 * c.opt (-Warray-bounds): Remove redundant -Wall.
0d7f9065 3278
00abf86c
MS
32792018-07-20 Martin Sebor <msebor@redhat.com>
3280
3281 PR middle-end/82063
3282 * c-common.h (c_common_handle_option): Change function argument
3283 to HOST_WIDE_INT.
3284 * c-opts.c (c_common_init_options): Same.
3285 (c_common_handle_option): Same. Remove special handling of
3286 OPT_Walloca_larger_than_ and OPT_Wvla_larger_than_.
3287 * c.opt (-Walloc-size-larger-than, -Walloca-larger-than): Change
3288 options to take a HOST_WIDE_INT argument and accept a byte-size
3289 suffix. Initialize.
3290 (-Wvla-larger-than): Same.
3291 (-Wno-alloc-size-larger-than, -Wno-alloca-larger-than): New.
3292 (-Wno-vla-larger-than): Same.
3293
9b452033
JJ
32942018-07-12 Jakub Jelinek <jakub@redhat.com>
3295
3296 * c-attribs.c (c_common_attribute_table): Add
3297 "omp declare target implicit" attribute.
3298
cd0762f3
RB
32992018-07-12 Richard Biener <rguenther@suse.de>
3300
3301 PR c/86453
3302 * c-attribs.c (handle_packed_attribute): Do not build a variant
3303 type with TYPE_PACKED, instead ignore the attribute if we may
3304 not apply to the original type.
3305
0b27c3ed
JJ
33062018-07-10 Jakub Jelinek <jakub@redhat.com>
3307
3308 PR c++/86443
3309 * c-omp.c (c_omp_check_loop_iv_r, c_omp_check_loop_iv): Allow declv
3310 to contain TREE_LIST for both the original class iterator and the
3311 "last" helper var.
3312
e730a0ef
EB
33132018-07-07 Eric Botcazou <ebotcazou@adacore.com>
3314
3315 * c-ada-spec.c (to_ada_name): Remove index parameter.
3316 (pp_ada_tree_identifier): Likewise.
3317 (dump_ada_macros): Adjust call to to_ada_name.
3318 (struct overloaded_name_hash): Delete.
3319 (struct overloaded_name_hasher): Likewise.
3320 (overloaded_names): Likewise.
3321 (compute_overloading_index): Likewise.
3322 (dump_ada_decl_name): Do not call compute_overloading_index and
3323 adjust calls to pp_ada_tree_identifier.
3324 (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
3325 (dump_ada_import): Add spc parameter and switch to aspect syntax.
3326 (dump_ada_function_declaration): Adjust call to pp_ada_tree_identifier.
3327 (dump_ada_enum_type): Remove type and display_convention parameters.
3328 Adjust calls to pp_ada_tree_identifier.
3329 (dump_ada_node): Likewise and for dump_ada_structure.
3330 (dump_nested_type) <ENUMERAL_TYPE>: Adjust call to dump_ada_enum_type
3331 and tidy up.
3332 <RECORD_TYPE>: Adjust call to dump_ada_structure and switch to aspect
3333 syntax.
3334 (print_constructor): Adjust call to pp_ada_tree_identifier.
3335 (print_destructor): Likewise.
3336 (dump_ada_declaration): Switch to aspect syntax.
3337 (dump_ada_structure): Likewise and tidy up. Replace display_convention
3338 parameter with nested parameter.
3339 (dump_ads): Emit pragma Ada_2012 in lieu of pragma Ada_2005.
3340 (dump_ada_specs): Do not delete overloaded_names table.
3341
8de583fc
PB
33422018-07-06 Peter Bergner <bergner@linux.ibm.com>
3343
3344 PR target/86324
e730a0ef 3345 * c-attribs.c (handle_mode_attribute): Call translate_mode_attribute
8de583fc
PB
3346 target hook.
3347
09cff37b
NS
33482018-07-05 Nathan Sidwell <nathan@acm.org>
3349
3350 * c-lex.c (fe_file_change): Check SYSTEM_IMPLICIT_EXTERN_C not
3351 NO_IMPLICIT_EXTERN_C.
3352
98086b2b
ML
33532018-06-28 Martin Liska <mliska@suse.cz>
3354
3355 * cppspec.c: Include opt-suggestions.h.
3356
ab20d992
JJ
33572018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
3358 Thomas Schwinge <thomas@codesourcery.com>
829c6349
CLT
3359 Cesar Philippidis <cesar@codesourcery.com>
3360
3361 * c-pragma.h (enum pragma_omp_clause): Add
3362 PRAGMA_OACC_CLAUSE_{FINALIZE,IF_PRESENT}. Remove
3363 PRAGMA_OACC_CLAUSE_PRESENT_OR_{COPY,COPYIN,COPYOUT,CREATE}.
3364
f41b7612
JJ
33652018-06-20 Jakub Jelinek <jakub@redhat.com>
3366
3367 PR c++/86210
3368 * c-common.c (check_nonnull_arg): Use fold_for_warn. Adjust obsolete
3369 comment.
3370
4252ccd7
MS
33712018-06-18 Martin Sebor <msebor@redhat.com>
3372
3373 PR middle-end/85602
3374 * c-warn.c (sizeof_pointer_memaccess_warning): Check for attribute
3375 nonstring.
3376
e197e64e
KV
33772018-06-16 Kugan Vivekanandarajah <kuganv@linaro.org>
3378
3379 * c-common.c (c_common_truthvalue_conversion): Handle ABSU_EXPR.
3380
34a7a230
JM
33812018-06-13 Jason Merrill <jason@redhat.com>
3382
5cef3733
JM
3383 * c-opts.c (c_common_post_options): Warn about useless -Wabi.
3384 (c_common_handle_option) [OPT_Wabi_]: Remove flag_abi_compat_version
3385 handling.
3386
34a7a230
JM
3387 PR c++/86094 - wrong code with defaulted move ctor.
3388 * c-opts.c (c_common_post_options): Bump the current ABI version to
3389 13. Set warn_abi_version and flag_abi_compat_version to the current
3390 version rather than 0. Fix defaulting flag_abi_compat_version from
3391 warn_abi_version.
3392
bb0f14ae
MS
33932018-06-12 Martin Sebor <msebor@redhat.com>
3394
3395 PR c/85931
3396 * c-warn.c (sizeof_pointer_memaccess_warning): Avoid warning when
3397 sizeof source and destination yields the same value.
3398
3713f2e2
ML
33992018-06-12 Martin Liska <mliska@suse.cz>
3400
3401 * c.opt: Make MPX-related options as Deprecated.
3402
4af78ef8
DM
34032018-06-08 David Malcolm <dmalcolm@redhat.com>
3404
3405 * c-pretty-print.c (c_pretty_printer::statement): Use TDF_NONE
3406 rather than 0.
3407
31db0fe0
ML
34082018-06-08 Martin Liska <mliska@suse.cz>
3409
3410 * c-attribs.c (handle_bnd_variable_size_attribute): Remove support
3411 for MPX (macros, related functions, fields in cgraph_node, ...).
3412 (handle_bnd_legacy): Likewise.
3413 (handle_bnd_instrument): Likewise.
3414 * c.opt: Likewise.
3415
fe16acf2
JJ
34162018-06-06 Jakub Jelinek <jakub@redhat.com>
3417
3418 PR c++/86068
3419 * c-cppbuiltin.c (c_cpp_builtins): Fix a typo, set
3420 __cpp_transactional_memory to 201500 instead of 210500.
3421
4dbdb49b
JM
34222018-06-06 Jason Merrill <jason@redhat.com>
3423
3424 PR c++/85710 - ICE with -Wmemset-elt-size.
3425 * c-warn.c (warn_for_memset): Don't crash on incomplete element type.
3426
f8ad043f
JM
34272018-06-01 Jason Merrill <jason@redhat.com>
3428
3429 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_deduction_guides to
3430 201703.
3431
abc24d93
EB
34322018-06-01 Eric Botcazou <ebotcazou@adacore.com>
3433
3434 * c-ada-spec.c (dump_ada_declaration) <TYPE_DECL>: Generate a forward
3435 declaration for a typedef independently of whether the declaration of
3436 the subtype is generated.
3437
d258f4aa
MS
34382018-05-31 Martin Sebor <msebor@redhat.com>
3439
3440 PR c/82063
3441 * c.opt (-Wno-alloc-size-larger-than): New option.
3442
b67b9225
DP
34432018-04-22 David Pagan <dave.pagan@oracle.com>
3444
3445 PR c/55976
3446 * c-opts.c (c_common_post_options): Set default for warn_return_type
ab20d992 3447 for C++/C++ with ObjC extensions only. For C, makes it possible to
b67b9225
DP
3448 differentiate between default (no option), -Wreturn-type, and
3449 -Wno-return-type.
3450
04eb9c55
JM
34512018-05-29 Jason Merrill <jason@redhat.com>
3452
3453 * c.opt (Winit-list-lifetime): New flag.
3454
b0c31bc6
BE
34552018-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
3456
3457 * c-lex.c (get_fileinfo): Use splay_tree_compare_strings and
3458 splay_tree_delete_pointers.
3459
44284983
JJ
34602018-05-26 Jakub Jelinek <jakub@redhat.com>
3461
3462 PR bootstrap/85921
3463 * c-warn.c (diagnose_mismatched_attributes): Remove unnecessary
3464 noinline variable to workaround broken kernel headers.
3465
b46b715d
JM
34662018-05-18 Jason Merrill <jason@redhat.com>
3467
3468 * c.opt (Wdeprecated-copy): New flag.
3469
40659769
ML
34702018-05-17 Martin Liska <mliska@suse.cz>
3471
3472 * c-warn.c (overflow_warning): Do not use
3473 space in between 'G_' and '('.
3474
403962ea
JM
34752018-05-09 Jason Merrill <jason@redhat.com>
3476
3477 * c-common.c (valid_array_size_p): Add complain parameter.
3478 * c-common.h: ...which defaults to true.
3479
1c9ee609
JJ
34802018-05-11 Jakub Jelinek <jakub@redhat.com>
3481
3482 PR c/85696
3483 * c-omp.c (c_omp_predetermined_sharing): Return
3484 OMP_CLAUSE_DEFAULT_SHARED for artificial vars with integral type.
3485
19916065
ML
34862018-05-11 Martin Liska <mliska@suse.cz>
3487
92a285c1 3488 PR sanitizer/85556
19916065
ML
3489 * c-attribs.c (handle_no_sanitize_attribute): Iterate all
3490 TREE_LIST values.
3491
79e7b1fe
JJ
34922018-05-10 Jakub Jelinek <jakub@redhat.com>
3493
3494 PR c++/85662
3495 * c-common.h (fold_offsetof_1): Removed.
3496 (fold_offsetof): Add TYPE argument defaulted to size_type_node and
3497 CTX argument defaulted to ERROR_MARK.
3498 * c-common.c (fold_offsetof_1): Renamed to ...
3499 (fold_offsetof): ... this. Remove wrapper function. Add TYPE
3500 argument, convert the pointer constant to TYPE and use size_binop
3501 with PLUS_EXPR instead of fold_build_pointer_plus if type is not
3502 a pointer type. Adjust recursive calls.
3503
86c12f76
EB
35042018-05-10 Eric Botcazou <ebotcazou@adacore.com>
3505
3506 PR c++/85400
3507 * c-attribs.c (handle_visibility_attribute): Do not set no_add_attrs.
3508
ee336e84
NS
35092018-05-07 Nathan Sidwell <nathan@acm.org>
3510
3511 * c.opt (ffor-scope): Remove functionality, issue warning.
3512
6c072e21
NS
35132018-05-03 Nathan Sidwell <nathan@acm.org>
3514
3515 * c.opt (ffriend-injection): Remove functionality, issue warning.
3516
2cc7d3a7
DM
35172018-05-01 David Malcolm <dmalcolm@redhat.com>
3518
3519 PR c/84258
3520 * c-format.c (struct format_check_results): Add field
3521 "number_non_char".
3522 (check_format_info): Initialize it, and warn if encountered.
3523 (check_format_arg): Distinguish between wide char and
3524 everything else when detecting arrays of non-char.
3525
7761dfbe
DM
35262018-04-30 David Malcolm <dmalcolm@redhat.com>
3527
3528 * c-format.c (get_corrected_substring): Update for
3529 location_get_source_line returning a char_span. Use a char_span
3530 when handling the prefix of the correction.
3531 * c-indentation.c (get_visual_column): Update for
3532 location_get_source_line returning a char_span.
3533 (get_first_nws_vis_column): Likewise.
3534
62e98ef1
DM
35352018-03-29 David Malcolm <dmalcolm@redhat.com>
3536
3537 PR c++/84269
3538 * known-headers.cc (get_stdlib_header_for_name): Add various names
3539 from <assert.h>, <string.h>, and <memory.h>; add more names from
3540 <stdio.h>.
3541
a7dea617
JJ
35422018-03-27 Jakub Jelinek <jakub@redhat.com>
3543
3544 PR c++/85061
3545 * c-common.c (fold_offsetof_1) <case COMPOUND_EXPR>: Assert that
3546 get_base_address of the second operand is a VAR_P, rather than the
3547 operand itself, and use gcc_checking_assert instead of gcc_assert.
3548
889a3a30
MP
35492018-03-23 Marek Polacek <polacek@redhat.com>
3550
3551 PR c++/85045
3552 * c-pretty-print.c (c_pretty_printer::multiplicative_expression)
3553 <case RDIV_EXPR>: Tweak condition.
3554
452154b9
EB
35552018-03-20 Eric Botcazou <ebotcazou@adacore.com>
3556
3557 * c-ada-spec.c (pp_ada_tree_identifier): Deal specifically with _Bool.
3558
63ecb626
JJ
35592018-03-16 Jakub Jelinek <jakub@redhat.com>
3560
ce811fc4
JJ
3561 PR c/84909
3562 * c-warn.c (conversion_warning): Replace "to to" with "to" in
3563 diagnostics.
3564
63ecb626
JJ
3565 PR c/84910
3566 * c-warn.c (diagnose_mismatched_attributes): Remove trailing space from
3567 diagnostics.
3568
a1295eec
RB
35692018-03-16 Richard Biener <rguenther@suse.de>
3570
3571 PR c/84873
3572 * c-gimplify.c (c_gimplify_expr): Revert previous change. Instead
3573 unshare the possibly folded expression.
3574
919674fb
RB
35752018-03-15 Richard Biener <rguenther@suse.de>
3576
3577 PR c/84873
3578 * c-gimplify.c (c_gimplify_expr): Do not fold expressions.
3579
f99309b2
MS
35802018-03-13 Martin Sebor <msebor@redhat.com>
3581
3582 PR tree-optimization/84725
3583 * c-attribs.c (handle_nonstring_attribute): Allow attribute nonstring
3584 with all three narrow character types, including their qualified forms.
3585
e9b9fa4c
MS
35862018-03-12 Martin Sebor <msebor@redhat.com>
3587
3588 PR tree-optimization/83456
ab20d992 3589 * c-common.c (check_function_restrict): Return bool.
e9b9fa4c
MS
3590 Restore checking of bounded built-in functions.
3591 (check_function_arguments): Also return the result
3592 of warn_for_restrict.
ab20d992
JJ
3593 * c-common.c (check_function_restrict): Return bool.
3594 * c-warn.c (warn_for_restrict): Return bool.
e9b9fa4c 3595
0805d020
MP
35962018-03-02 Marek Polacek <polacek@redhat.com>
3597
3598 PR c++/84171
3599 * c-warn.c (warn_for_sign_compare): Bail out if any of the operands
3600 is erroneous.
3601
ed2a2f08
TS
36022018-03-02 Thomas Schwinge <thomas@codesourcery.com>
3603
3604 * c-attribs.c (c_common_attribute_table): Remove "cilk simd
3605 function".
3606
90abdde0
MP
36072018-03-01 Marek Polacek <polacek@redhat.com>
3608
3609 PR c++/84639
3610 * c-attribs.c (common_handle_aligned_attribute): Don't use invalid
3611 alignment in computation.
3612
c6db43fa
EB
36132018-02-28 Eric Botcazou <ebotcazou@adacore.com>
3614
3615 * c-ada-spec.c (dump_ada_node) <NULLPTR_TYPE>: New case.
3616 <REAL_TYPE>: Deal specifically with _Float128/__float128.
3617
9e25c7ed
EB
36182018-02-28 Eric Botcazou <ebotcazou@adacore.com>
3619
3620 * c-ada-spec.c (dump_ada_double_name) <ENUMERAL_TYPE>: New case.
3621 (is_char_array): Take a type instead of a declaration.
3622 (dump_ada_array_type): Likewise.
3623 (is_simple_enum): Minor tweak.
3624 (dump_ada_enum_type): New function extracted from...
3625 (dump_ada_node) <ENUMERAL_TYPE>: ...here. Invoke it.
3626 <INTEGER_TYPE>: Remove unreachable code.
3627 <RECORD_TYPE>: Likewise. Minor tweaks.
3628 (dump_nested_type) <ARRAY_TYPE>: Adjust to above changes.
3629 <ENUMERAL_TYPE>: New case.
3630 <RECORD_TYPE>: Factor out common code.
3631 (dump_ada_declaration) <ARRAY_TYPE>: Adjust to above changes.
3632 Minor tweaks. Deal with enumeral types.
3633 (dump_ada_structure): Minor tweaks.
3634
09de3550
EB
36352018-02-28 Eric Botcazou <ebotcazou@adacore.com>
3636
3637 * c-ada-spec.c (dump_ada_node) <POINTER_TYPE>: Do not use generic
3638 address for incomplete structures.
3639 (dump_forward_type): Do not bail out for incomplete structures.
3640 (dump_ada_declaration): Do not special-case incomplete structures
3641 for subtypes. Dump them as null records for types.
3642
095d8d4b
EB
36432018-02-28 Eric Botcazou <ebotcazou@adacore.com>
3644
3645 * c-ada-spec.c (dump_ada_import): Use boolean and fix formatting.
3646 (is_char_array): Fix formatting.
3647 (dump_template_types): Likewise.
3648 (dump_generic_ada_node): Rename into...
3649 (dump_ada_node): ...this.
3650 <POINTER_TYPE>: Remove superfluous space. Use generic address for
3651 incomplete structures and not for empty structures. Do not use it
3652 when forward declarations are needed.
3653 (dump_forward_type): New function.
3654 (dump_nested_types): Remove FORWARD parameter. Do not consider
3655 TREE_VISITED and do not generate a forward declaration. Only dump
3656 original nested types for nested declaration.
3657 (dump_nested_type) <POINTER_TYPE>: Call dump_forward_type.
3658 <ARRAY_TYPE>: Likewise if the component type is an anonymous pointer.
3659 <RECORD_TYPE>: Do not consider TREE_VISITED.
3660 (dump_ada_declaration): Use booleans and fix formatting throughout.
3661 <TYPE_DECL>: Skip incomplete structures and not empty structures.
3662 Call dump_forward_type instead of dump_nested_types for a typedef.
3663 Remove superfluous check and adjust call to dump_nested_types.
3664 <POINTER_TYPE>: Call dump_forward_type and fall through.
3665 (dump_ada_struct_decl): Rename into...
3666 (dump_ada_structure): ...this. Do not special-case empty structures.
3667
d4cfd486
MS
36682018-02-27 Martin Sebor <msebor@redhat.com>
3669
3670 PR c++/83871
3671 * c.opt (-Wmissing-attributes): New option.
3672
b22dbd03
ML
36732018-02-21 Martin Liska <mliska@suse.cz>
3674
3675 * c.opt (Wcatch-value=): Add IntegerRange.
3676
883dfe2a
JM
36772018-02-15 Jason Merrill <jason@redhat.com>
3678
3679 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_deduction_guides.
3680
0444aa9c
NS
36812018-02-09 Nathan Sidwell <nathan@acm.org>
3682
3683 PR c/84293
3684 * c-common.h (strict_aliasing_warning): Drop OTYPE arg, insert LOC
3685 arg.
3686 * c-warn.c (strict_aliasing_warning): Drop OTYPE arg, require LOC
3687 arg. Adjust.
3688
cea71f0a
MS
36892018-02-09 Martin Sebor <msebor@redhat.com>
3690
3691 PR lto/84212
3692 * c.opt (-Wstringop-overflow, -Warray-bounds): Add LTO.
3693 (-Walloc-size-larger-than, -Wformat-truncation=): Same.
3694 (-Wmaybe-uninitialized, -Wnonnull, -Wrestrict): Same.
3695 (-Wstrict-overflow, -Wsuggest-attribute): Same.
3696 (-Wuninitialized): Same.
3697
8c8b7be5
EB
36982018-02-09 Eric Botcazou <ebotcazou@adacore.com>
3699
3700 * c-ada-spec.c (dump_ada_declaration): Do not generate the 'constant'
3701 keyword for components.
3702
7c30b12a
PC
37032018-02-02 Paolo Carlini <paolo.carlini@oracle.com>
3704
3705 * c-common.h (DECL_UNNAMED_BIT_FIELD): New.
3706
eece7fe5
JK
37072018-02-02 Julia Koval <julia.koval@intel.com>
3708
3709 * c-common.h (omp_clause_mask): Move to wide_int_bitmask.h.
3710
7d07a93a
MP
37112018-01-29 Marek Polacek <polacek@redhat.com>
3712
3713 PR c/83966
3714 * c-format.c (check_function_format): Check current_function_decl.
3715
53723269
JJ
37162018-01-27 Jakub Jelinek <jakub@redhat.com>
3717
3718 * c-cppbuiltin.c (c_cpp_builtins): Use ggc_strdup for the fp_suffix
3719 argument.
3720 (LAZY_HEX_FP_VALUES_CNT): Define.
3721 (lazy_hex_fp_values): Allow up to LAZY_HEX_FP_VALUES_CNT lazy hex fp
3722 values rather than just 12.
3723 (builtin_define_with_hex_fp_value): Likewise.
3724
7365279f
BK
37252018-01-18 Boris Kolpackov <boris@codesynthesis.com>
3726
92a285c1
ML
3727 PR other/70268
3728 * c.opt (-fmacro-prefix-map): New option.
3729 * c-opts.c (c_common_handle_option): Handle it.
3730 * c-lex.c (init_c_lex): Set remap_filename cpp callback.
3731 * c-ppoutput.c (init_pp_output): Likewise.
7365279f 3732
bb9869d5
DM
37332018-01-17 David Malcolm <dmalcolm@redhat.com>
3734
3735 PR c++/83814
3736 * c-common.c (fold_for_warn): Move to c/c-fold.c and cp/expr.c.
3737
68dc87c3
EB
37382018-01-10 Eric Botcazou <ebotcazou@adacore.com>
3739
3740 * c-ada-spec.c (dump_number): Add FLOAT_P parameter.
3741 Skip 'f' and 'F' characters if it is true.
3742 (store_ada_macro): Minor tweak.
3743 (dump_ada_macros) <CPP_COMMENT>: Likewise.
3744 <CPP_WSTRING>: Likewise.
3745 <CPP_STRING>: Output '&' in the buffer if not the first string.
3746 <CPP_NUMBER>: Adjust calls to dump_number.
3747
9a004410
DM
37482018-01-10 David Malcolm <dmalcolm@redhat.com>
3749
3750 PR c++/43486
3751 * c-common.c: Include "selftest.h".
3752 (get_atomic_generic_size): Perform the test for integral type
3753 before the range test for any integer constant, fixing indentation
3754 of braces. Call fold_for_warn before testing for an INTEGER_CST.
3755 (reject_gcc_builtin): Strip any location wrapper from EXPR.
3756 (selftest::test_fold_for_warn): New function.
3757 (selftest::c_common_c_tests): New function.
3758 (selftest::c_family_tests): Call it, and
3759 selftest::c_pretty_print_c_tests.
3760 * c-common.h (selftest::c_pretty_print_c_tests): New decl.
3761 * c-format.c (check_format_arg): Convert VAR_P check to a
3762 fold_for_warn.
3763 * c-pretty-print.c: Include "selftest.h".
3764 (pp_c_cast_expression): Don't print casts for location wrappers.
3765 (selftest::assert_c_pretty_printer_output): New function.
3766 (ASSERT_C_PRETTY_PRINTER_OUTPUT): New macro.
3767 (selftest::test_location_wrappers): New function.
3768 (selftest::c_pretty_print_c_tests): New function.
3769 * c-warn.c (warn_for_memset): Call fold_for_warn on the arguments.
3770
5c0caeb3
RS
37712018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
3772 Alan Hayward <alan.hayward@arm.com>
3773 David Sherwood <david.sherwood@arm.com>
3774
3775 * c-common.c (c_common_type_for_mode): Handle MODE_VECTOR_BOOL.
3776
73a699ae
RS
37772018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
3778 Alan Hayward <alan.hayward@arm.com>
3779 David Sherwood <david.sherwood@arm.com>
3780
3781 * c-ubsan.c (ubsan_instrument_shift): Treat GET_MODE_BITSIZE
3782 as polynomial.
3783
928686b1
RS
37842018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
3785 Alan Hayward <alan.hayward@arm.com>
3786 David Sherwood <david.sherwood@arm.com>
3787
3788 * c-common.c (vector_types_convertible_p, c_build_vec_perm_expr)
3789 (convert_vector_to_array_for_subscript): Handle polynomial
3790 TYPE_VECTOR_SUBPARTS.
3791 (c_common_type_for_mode): Check valid_vector_subparts_p.
3792 * c-pretty-print.c (pp_c_initializer_list): Handle polynomial
3793 VECTOR_CST_NELTS.
3794
85ec4feb
JJ
37952018-01-03 Jakub Jelinek <jakub@redhat.com>
3796
3797 Update copyright years.
3798
170a8bd6 37992017-12-22 Mike Stump <mikestump@comcast.net>
92a285c1 3800 Eric Botcazou <ebotcazou@adacore.com>
170a8bd6
EB
3801
3802 * c-pragma.c (init_pragma): Register pragma GCC unroll.
3803 * c-pragma.h (enum pragma_kind): Add PRAGMA_UNROLL.
3804
ab20d992 38052017-12-22 Alexandre Oliva <aoliva@redhat.com>
18408e96
AO
3806
3807 PR debug/83527
3808 PR debug/83419
3809 * c-semantics.c (only_debug_stmts_after_p): New.
3810 (pop_stmt_list): Clear side effects in debug-only stmt list.
3811 Check for single nondebug stmt followed by debug stmts only.
3812
c12d20d4
AO
38132017-12-21 Alexandre Oliva <aoliva@redhat.com>
3814
3815 PR debug/83419
3816 * c-semantics.c (pop_stmt_list): Propagate side effects from
3817 single nondebug stmt to container list.
3818
01512446
JJ
38192017-12-19 Jakub Jelinek <jakub@redhat.com>
3820
3821 * known-headers.cc (get_stdlib_header_for_name): Replace Yoda
3822 conditions with typical order conditions.
3823
82cfbd01
MP
38242017-12-18 Marek Polacek <polacek@redhat.com>
3825
3826 * c-warn.c (warn_logical_operator): Return early if -Wlogical-op is
3827 not in effect.
3828
99da11ec
MS
38292017-12-17 Martin Sebor <msebor@redhat.com>
3830
3831 * c-attribs.c (common_handle_aligned_attribute): Avoid issuing
3832 an error for attribute warn_if_not_aligned.
3833
cc8bea0a
MS
38342017-12-16 Martin Sebor <msebor@redhat.com>
3835
3836 PR tree-optimization/78918
3837 * c-common.c (check_function_restrict): Avoid checking built-ins.
3838 * c.opt (-Wrestrict): Include in -Wall.
3839
4849deb1
JJ
38402017-12-15 Jakub Jelinek <jakub@redhat.com>
3841
3842 * c-attribs.c (c_common_attribute_table,
3843 c_common_format_attribute_table): Swap affects_type_identity
3844 and handler fields, adjust comments.
3845
c65e18d3
BE
38462017-12-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
3847
3848 * c.opt (Wcast-function-type): New warning option.
3849 * c-lex.c (get_fileinfo): Avoid warning.
3850 * c-ppoutput.c (scan_translation_unit_directives_only): Remove cast.
3851
2004617a
QZ
38522017-12-14 Qing Zhao <qing.zhao@oracle.com>
3853
7365279f 3854 PR middle_end/79538
2004617a
QZ
3855 * c-cppbuiltin.c (builtin_define_with_hex_fp_value):
3856 Adjust the size of buf1 and buf2, add a new buf to avoid
3857 format-overflow warning.
3858
ab20d992 38592017-12-12 Alexandre Oliva <aoliva@redhat.com>
96a95ac1
AO
3860
3861 * c-semantics.c (pop_stmt_list): Move begin stmt marker into
3862 subsequent statement list.
3863
5d9ae53d
MS
38642017-12-07 Martin Sebor <msebor@redhat.com>
3865
3866 PR c/81544
3867 PR c/81566
3868 * c-attribs.c (attr_aligned_exclusions): New array.
3869 (attr_alloc_exclusions, attr_cold_hot_exclusions): Same.
3870 (attr_common_exclusions, attr_const_pure_exclusions): Same.
3871 (attr_gnu_inline_exclusions, attr_inline_exclusions): Same.
3872 (attr_noreturn_exclusions, attr_returns_twice_exclusions): Same.
3873 (attr_warn_unused_result_exclusions): Same.
3874 (handle_hot_attribute, handle_cold_attribute): Simplify.
3875 (handle_const_attribute): Warn on function returning void.
3876 (handle_pure_attribute): Same.
3877 (handle_aligned_attribute): Diagnose conflicting attribute
3878 specifications.
3879 * c-warn.c (diagnose_mismatched_attributes): Simplify.
3880
c79144f8
DM
38812017-12-06 David Malcolm <dmalcolm@redhat.com>
3882
3883 PR c/83236
3884 * c-common.c (selftest::c_family_tests): Call
3885 selftest::c_spellcheck_cc_tests.
3886 * c-common.h (selftest::c_spellcheck_cc_tests): New decl.
3887 * c-spellcheck.cc: Include "selftest.h".
3888 (name_reserved_for_implementation_p): New function.
3889 (should_suggest_as_macro_p): New function.
3890 (find_closest_macro_cpp_cb): Move the check for NT_MACRO to
3891 should_suggest_as_macro_p and call it.
3892 (selftest::test_name_reserved_for_implementation_p): New function.
3893 (selftest::c_spellcheck_cc_tests): New function.
3894 * c-spellcheck.h (name_reserved_for_implementation_p): New decl.
3895
613bc14f
DM
38962017-12-06 David Malcolm <dmalcolm@redhat.com>
3897
3898 * c-spellcheck.cc: New file, taken from macro-handling code in
3899 spellcheck-tree.c.
3900 * c-spellcheck.h: New file, taken from macro-handling code in
3901 spellcheck-tree.h.
3902
e76c7157
JJ
39032017-12-01 Jakub Jelinek <jakub@redhat.com>
3904
3905 * c-attribs.c (c_common_attribute_table): Remove "cilk simd function"
3906 attribute.
3907 (handle_simd_attribute): Don't check for "cilk simd function"
3908 attribute. Reindent, formatting changes.
3909
b0da4034
JK
39102017-11-30 Julia Koval <julia.koval@intel.com>
3911
3912 * c-common.h (inv_list): Remove.
3913
058f0b9e
JJ
39142017-11-28 Jakub Jelinek <jakub@redhat.com>
3915
3916 PR sanitizer/81275
3917 * c-common.c (c_switch_covers_all_cases_p_1,
3918 c_switch_covers_all_cases_p): New functions.
3919 * c-common.h (c_switch_covers_all_cases_p): Declare.
3920
5e9d6aa4 39212017-11-28 Julia Koval <julia.koval@intel.com>
92a285c1 3922 Sebastian Peryt <sebastian.peryt@intel.com>
5e9d6aa4
JK
3923
3924 * array-notation-common.c: Delete.
3925 * c-cilkplus.c: Ditto.
3926 * c-common.c (_Cilk_spawn, _Cilk_sync, _Cilk_for): Remove.
3927 * c-common.def (ARRAY_NOTATION_REF): Remove.
3928 * c-common.h (RID_CILK_SPAWN, build_array_notation_expr,
3929 build_array_notation_ref, C_ORT_CILK, c_check_cilk_loop,
3930 c_validate_cilk_plus_loop, cilkplus_an_parts,
3931 cilk_ignorable_spawn_rhs_op,
3932 cilk_recognize_spawn): Remove.
3933 * c-gimplify.c (CILK_SPAWN_STMT): Remove.
3934 * c-omp.c: Remove CILK_SIMD check.
3935 * c-pragma.c: Ditto.
3936 * c-pragma.h: Remove CILK related pragmas.
3937 * c-pretty-print.c (c_pretty_printer::postfix_expression): Remove
3938 ARRAY_NOTATION_REF condition.
3939 (c_pretty_printer::expression): Ditto.
3940 * c.opt (fcilkplus): Remove.
3941 * cilk.c: Delete.
3942
1af4ebf5
MG
39432017-11-21 Marc Glisse <marc.glisse@inria.fr>
3944
3945 * c-pretty-print.c (pp_c_additive_expression,
3946 c_pretty_printer::expression): Handle POINTER_DIFF_EXPR.
3947
d44ed508
JJ
39482017-11-21 Jakub Jelinek <jakub@redhat.com>
3949
7d2f0f9b
JJ
3950 * c-common.c (get_nonnull_operand): Use tree_to_uhwi.
3951
d44ed508
JJ
3952 PR c++/83059
3953 * c-common.c (get_atomic_generic_size): Use TREE_INT_CST_LOW
3954 instead of tree_to_uhwi, formatting fix.
3955
26edace6
DM
39562017-11-20 David Malcolm <dmalcolm@redhat.com>
3957
3958 PR c/81404
3959 * known-headers.cc: New file, based on material from c/c-decl.c.
3960 (suggest_missing_header): Copied as-is.
3961 (get_stdlib_header_for_name): New, based on get_c_name_hint but
3962 heavily edited to add C++ support. Add some knowledge about
3963 <limits.h>, <stdint.h>, and <wchar.h>.
3964 * known-headers.h: Likewise.
3965
6c7a259b
DM
39662017-11-20 David Malcolm <dmalcolm@redhat.com>
3967
3968 * c-common.h (enum lookup_name_fuzzy_kind): Move to name-hint.h.
3969 (lookup_name_fuzzy): Likewise. Convert return type from
3970 const char * to name_hint. Add location_t param.
3971 * name-hint.h: New header.
3972
f9c59f7e
JJ
39732017-11-19 Jakub Jelinek <jakub@redhat.com>
3974
3975 PR c/66618
3976 PR c/69960
3977 * c-common.h (c_fully_fold): Add LVAL argument defaulted to false.
3978
1e39313a
JM
39792017-11-16 Joseph Myers <joseph@codesourcery.com>
3980
3981 * c.opt (-std=c17, std=gnu17, -std=iso9899:2017): Refer to 2018
3982 expected publication date of C17.
3983 (-std=c18, -std=gnu18, -std=iso9899:2018): New option aliases.
3984
3ca0dc60
JM
39852017-11-15 Joseph Myers <joseph@codesourcery.com>
3986
3987 PR c/81156
3988 * c-common.c (c_common_reswords): Add __builtin_tgmath.
3989 * c-common.h (enum rid): Add RID_BUILTIN_TGMATH.
3990
025d57f0
MS
39912017-11-10 Martin Sebor <msebor@redhat.com>
3992
3993 PR c/81117
3994 * c-common.c (catenate_strings): Use memcpy instead of strncpy.
3995 * c-warn.c (sizeof_pointer_memaccess_warning): Handle arrays.
3996 * c.opt (-Wstringop-truncation): New option.
3997
1b6fa695
ML
39982017-11-06 Martin Liska <mliska@suse.cz>
3999
4000 PR middle-end/82404
4001 * c-opts.c (c_common_post_options): Set -Wreturn-type for C++
4002 FE.
4003 * c.opt: Set default value of warn_return_type.
4004
64a5912c
DM
40052017-10-31 David Malcolm <dmalcolm@redhat.com>
4006
4007 * c-common.c (binary_op_error): Update for renaming of
4008 error_at_rich_loc.
4009 (c_parse_error): Likewise.
4010 * c-warn.c (warn_logical_not_parentheses): Likewise for
4011 renaming of inform_at_rich_loc.
4012 (warn_for_restrict): Likewise for renaming of
4013 warning_at_rich_loc_n.
4014
c76dc9c3
JM
40152017-10-30 Joseph Myers <joseph@codesourcery.com>
4016
4017 * c.opt (std=c17, std=gnu17, std=iso9899:2017): New options.
4018 * c-opts.c (set_std_c17): New function.
4019 (c_common_init_options): Use gnu17 as default C version.
4020 (c_common_handle_option): Handle -std=c17 and -std=gnu17.
4021
ee5fd23a
MM
40222017-10-27 Michael Meissner <meissner@linux.vnet.ibm.com>
4023
4024 * c-cppbuiltin.c (mode_has_fma): Add support for PowerPC KFmode.
4025 (c_cpp_builtins): If a machine has a fast fma _Float<N> and
4026 _Float<N>X variant, define __FP_FAST_FMA<N> and/or
4027 __FP_FAST_FMA<N>X.
4028
d1047465
MP
40292017-10-23 Marek Polacek <polacek@redhat.com>
4030
4031 PR c/82681
4032 * c-warn.c (warnings_for_convert_and_check): Fix typos.
4033
9e878cf1
EB
40342017-10-19 Eric Botcazou <ebotcazou@adacore.com>
4035
4036 * c-common.c (check_builtin_function_arguments): Also check arguments
4037 of __builtin_alloca_with_align_and_max.
4038
89b6abbb
DM
40392017-10-17 David Malcolm <dmalcolm@redhat.com>
4040
4041 * c-format.c (format_warning_at_char): Pass UNKNOWN_LOCATION
4042 rather than NULL to format_warning_va.
4043 (check_format_types): Likewise when calling format_type_warning.
4044 Remove code to extract source_ranges and source_range * in favor
4045 of just a location_t.
4046 (format_type_warning): Convert source_range * param to a
4047 location_t.
4048
39382c09
JJ
40492017-10-13 Jakub Jelinek <jakub@redhat.com>
4050
4051 * c-gimplify.c (c_gimplify_expr): Handle [LR]ROTATE_EXPR like
4052 [LR]SHIFT_EXPR.
4053
62e1c678
DM
40542017-10-12 David Malcolm <dmalcolm@redhat.com>
4055
4056 * c-common.c (enum missing_token_insertion_kind): New enum.
4057 (get_missing_token_insertion_kind): New function.
4058 (maybe_suggest_missing_token_insertion): New function.
4059 * c-common.h (maybe_suggest_missing_token_insertion): New decl.
4060
b90c9338
NS
40612017-10-11 Nathan Sidwell <nathan@acm.org>
4062
4063 * c-opts.c (add_prefixed_path): Change chain to incpath_kind.
4064 (c_common_handle_option): Update incpath_kind names.
4065
3a266bcd
ML
40662017-10-11 Martin Liska <mliska@suse.cz>
4067
4068 PR sanitizer/82490
4069 * c-attribs.c (handle_no_sanitize_attribute): Report directly
4070 Wattributes warning.
4071
8e6cdc90
RS
40722017-10-10 Richard Sandiford <richard.sandiford@linaro.org>
4073
4074 * c-ada-spec.c (dump_generic_ada_node): Use wi::to_wide when
4075 operating on trees as wide_ints.
4076 * c-common.c (pointer_int_sum): Likewise.
4077 * c-pretty-print.c (pp_c_integer_constant): Likewise.
4078 * c-warn.c (match_case_to_enum_1): Likewise.
4079 (c_do_switch_warnings): Likewise.
4080 (maybe_warn_shift_overflow): Likewise.
4081
802b38c9
JJ
40822017-10-10 Jakub Jelinek <jakub@redhat.com>
4083
4084 PR c/82437
4085 * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_wide
4086 instead of wide_int::from.
4087
4e34b338
JJ
40882017-10-06 Jakub Jelinek <jakub@redhat.com>
4089
4090 PR c/82437
4091 * c-warn.c (warn_tautological_bitwise_comparison): Instead of
4092 using to_widest use wide_int with the larger of the two precisions.
4093
4bc4b2b4
BE
40942017-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
4095
4096 * c-pretty-print.c (pp_c_parameter_type_list): Print ... for variadic
4097 functions.
4098
a1488398
RS
40992017-10-02 Richard Sandiford <richard.sandiford@linaro.org>
4100
4101 * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_widest
4102 when combining the original unconverted comparison operands.
4103
01c9fb68
JJ
41042017-09-29 Jakub Jelinek <jakub@redhat.com>
4105
4106 * c-attribs.c (handle_noipa_attribute): Don't add "stack_protect"
4107 attribute.
4108
6e3e8419
EB
41092017-09-29 Eric Botcazou <ebotcazou@adacore.com>
4110
4111 * c-ada-spec.c (to_ada_name): Add index parameter.
4112 (pp_ada_tree_identifier): Likewise.
4113 (dump_ada_macros): Adjust call to to_ada_name.
4114 (struct overloaded_name_hash): New type.
4115 (struct overloaded_name_hasher): Likewise.
4116 (overloaded_names): New hash table.
4117 (compute_overloading_index): New function.
4118 (dump_ada_decl_name): Call it and pass the result to
4119 pp_ada_tree_identifier.
4120 (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
4121 (dump_ada_function_declaration): Likewise.
4122 (dump_generic_ada_node): Likewise.
4123 (print_constructor): Likewise.
4124 (print_destructor): Likewise.
4125 (dump_ada_specs): Delete overloaded_names table.
4126
79310774
EB
41272017-09-29 Eric Botcazou <ebotcazou@adacore.com>
4128
4129 * c-ada-spec.c (max_ada_macros): Move around.
4130 (store_ada_macro_index): Likewise.
4131 (source_file): Rename into...
4132 (macro_source_file): ...this.
4133 (count_ada_macro): Move around.
4134 (store_ada_macro): Likewise.
4135 (compare_macro): Likewise.
4136 (print_ada_macros): Merge in...
4137 (dump_ada_macros): ...this.
4138 (source_file_base): Rename into...
4139 (current_source_file): ...this.
4140 (print_comment): Move around.
4141 (dump_ada_nodes): Call dump_ada_declaration directly.
4142 (struct with): Change type of limited field to bool.
4143 (append_withs): Change type of limited_access parameter to bool.
4144 (pp_ada_tree_identifie): Likewise.
4145 (dump_ada_decl_nam): Likewise.
4146 (dump_generic_ada_node): Likewise. Do not print the return type.
4147 (to_ada_name): Change type of space_found parameter to bool.
4148 (dump_ada_function_declaration): Return void and change type of
4149 parameters to bool. Also print the return type for a function.
4150 (print_ada_methods): Rename into...
4151 (dump_ada_methods): ...this.
4152 (print_ada_declaration): Rename into ...
4153 (dump_ada_declaration): ...this. Do not print the return type.
4154 (print_ada_struct_decl): Rename into...
4155 (dump_ada_struct_decl): ...this.
4156
7d386d45
JJ
41572017-09-29 Jakub Jelinek <jakub@redhat.com>
4158
4159 * c-attribs.c (handle_packed_attribute): Test DECL_C_BIT_FIELD
4160 rather than DECL_INITIAL.
4161 (common_handle_aligned_attribute): Likewise.
4162
ab20d992 41632017-09-20 Alexandre Oliva <aoliva@redhat.com>
9ed32e27
AO
4164
4165 * c.opt (gen-decls): Add RejectNegative.
4166
026a79f7
AS
41672017-09-15 Andrew Sutton <andrew.n.sutton@gmail.com>
4168 Jakub Jelinek <jakub@redhat.com>
4169
4170 Add support for -std=c++2a.
4171 * c-common.h (cxx_dialect): Add cxx2a as a dialect.
4172 * opt.c: Add options for -std=c++2a and -std=gnu++2a.
4173 * c-opts.c (set_std_cxx2a): New.
4174 (c_common_handle_option): Set options when -std=c++2a is enabled.
4175 (c_common_post_options): Adjust comments.
4176 (set_std_cxx14, set_std_cxx17): Likewise.
4177
4a8ca690
EB
41782017-09-15 Eric Botcazou <ebotcazou@adacore.com>
4179
4180 * c-pragma.c (handle_pragma_scalar_storage_order): Expand on error
4181 message for non-uniform endianness and issue a warning in C++.
4182
7b936140
JJ
41832017-09-15 Jakub Jelinek <jakub@redhat.com>
4184
4185 * c.opt (Wc++1z-compat): Change from option to undocumented alias.
4186 (Wc++17-compat): Change from undocumented alias to option.
4187 (Wnoexcept-type): Enable by Wc++17-compat instead of Wc++1z-compat,
4188 change C++1z to C++17 in description.
4189 (std=c++1z, std=gnu++1z): Change from option to undocumented
4190 deprecated alias.
4191 (std=c++17, std=gnu++17): Change from undocumented alias to option.
4192 Adjust description.
4193 * c-common.h (enum cxx_dialect): Rename cxx1z to cxx17.
4194 * c-opts.c (set_std_cxx1z): Rename to ...
4195 (set_std_cxx17): ... this.
4196 (c_common_handle_option): Rename OPT_std_c__1z to OPT_std_c__17
4197 and OPT_std_gnu__1z to OPT_std_gnu__17. Adjust set_std_cxx1z
7365279f 4198 caller.
7b936140
JJ
4199 (c_common_post_options): Use cxx17 instead of cxx1z. Adjust
4200 comments.
4201
12263f13
L
42022017-09-12 H.J. Lu <hongjiu.lu@intel.com>
4203
4204 * c-attribs.c (common_handle_aligned_attribute): Don't warn
4205 function alignment if warn_if_not_aligned_p is true.
4206
6836632e
NS
42072017-09-12 Nathan Sidwell <nathan@acm.org>
4208
4209 * c-common.c (field_decl_cmp, resort_data, resort_field_decl_cmp,
4210 resort_sorted_fields): Move to c/c-decl.c.
4211 * c-common.h (field_decl_cmp, resort_sorted_fields): Delete.
4212 (struct sorted_fields_type): Move to c/c-lang.h.
4213
019bf9ad
JW
42142017-09-09 Jonathan Wakely <jwakely@redhat.com>
4215
4216 PR c++/81852
4217 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_threadsafe_static_init.
4218
bc7fe952
MP
42192017-09-04 Marek Polacek <polacek@redhat.com>
4220
4221 PR c/81783
4222 * c-warn.c (warn_tautological_bitwise_comparison): New function.
4223 (warn_tautological_cmp): Call it.
4224
ab20d992 42252017-09-01 Boris Kolpackov <boris@codesynthesis.com>
de7c2c6a
BK
4226
4227 * c-opts.c (c_common_finish): Write dependency information even if
4228 there are errors.
4229
d2e05fcb
JJ
42302017-09-01 Jakub Jelinek <jakub@redhat.com>
4231
4232 PR c/81887
4233 * c-pragma.c (omp_pragmas): Move "ordered" entry from here to ...
4234 (omp_pragmas_simd): ... here.
4235 * c-omp.c (c_finish_omp_ordered): If clauses isn't simd clause alone,
4236 create new clauses list containing just simd clause.
4237
18e2a8b8
RS
42382017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
4239 Alan Hayward <alan.hayward@arm.com>
4240 David Sherwood <david.sherwood@arm.com>
4241
4242 * c-attribs.c (vector_mode_valid_p) Fold GET_MODE_INNER call
4243 into scalar_mode_supported_p call.
4244 (handle_mode_attribute): Update call to scalar_mode_supported_p.
4245
16d22000
RS
42462017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
4247 Alan Hayward <alan.hayward@arm.com>
4248 David Sherwood <david.sherwood@arm.com>
4249
4250 * c-common.c (c_common_fixed_point_type_for_size): Use opt_scalar_mode
4251 for the mode iterator.
4252
b397965c
RS
42532017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
4254 Alan Hayward <alan.hayward@arm.com>
4255 David Sherwood <david.sherwood@arm.com>
4256
4257 * c-lex.c (interpret_fixed): Use SCALAR_TYPE_MODE.
4258 * c-common.c (c_build_vec_perm_expr): Likewise.
4259
357b7604
RS
42602017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
4261 Alan Hayward <alan.hayward@arm.com>
4262 David Sherwood <david.sherwood@arm.com>
4263
4264 * c-common.c (c_common_type_for_mode): Use as_a <scalar_int_mode>.
4265
e05c94ba
RS
42662017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
4267 Alan Hayward <alan.hayward@arm.com>
4268 David Sherwood <david.sherwood@arm.com>
4269
4270 * c-attribs.c (handle_mode_attribute): Check for a scalar_int_mode
4271 before calling targetm.addr_space.valid_pointer_mode.
4272
5c20c4af
RS
42732017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
4274 Alan Hayward <alan.hayward@arm.com>
4275 David Sherwood <david.sherwood@arm.com>
4276
4277 * c-cppbuiltin.c (c_cpp_builtins): Use opt_scalar_float_mode.
4278
c94843d2 42792017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
92a285c1
ML
4280 Alan Hayward <alan.hayward@arm.com>
4281 David Sherwood <david.sherwood@arm.com>
c94843d2
RS
4282
4283 * c-common.c (c_common_fixed_point_type_for_size): Use new mode
4284 iterators.
4285 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
4286
4e10a5a7
RS
42872017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
4288 Alan Hayward <alan.hayward@arm.com>
4289 David Sherwood <david.sherwood@arm.com>
4290
4291 * c-cppbuiltin.c (mode_has_fma): Prefix mode names with E_ in
4292 case statements.
4293
130fcab0
ML
42942017-08-29 Martin Liska <mliska@suse.cz>
4295
4296 PR other/39851
4297 * c-common.c (parse_optimize_options): Add argument to function
4298 call.
4299 * c-pragma.c (handle_pragma_diagnostic): Likewise.
4300
14e18d71
DM
43012017-08-24 David Malcolm <dmalcolm@redhat.com>
4302
4303 * c-lex.c (interpret_float): Use token location
4304 when building an EXCESS_PRECISION_EXPR.
4305
2f687306
DM
43062017-08-21 David Malcolm <dmalcolm@redhat.com>
4307
4308 * c-common.c (check_function_arguments): Add "arglogs" param; pass
4309 it to check_function_format.
4310 * c-common.h (check_function_arguments): Add vec<location_t> *
4311 param.
4312 (check_function_format): Likewise.
4313 * c-format.c (struct format_check_context): Add field "arglocs".
4314 (check_function_format): Add param "arglocs"; pass it to
4315 check_format_info.
ab20d992 4316 (check_format_info): Add param "arglocs"; use it to initialize
2f687306
DM
4317 new field of format_ctx.
4318 (check_format_arg): Pass format_ctx->arglocs to new param of
4319 check_format_info_main.
4320 (class argument_parser): New field "arglocs".
4321 (argument_parser::argument_parser): Add "arglocs_" param and use
4322 it to initialize new field.
4323 (argument_parser::check_argument_type): Pass new arglocs field to
4324 check_format_types.
4325 (check_format_info_main): Add param "arglocs", and use it when
4326 constructing arg_parser.
4327 (check_format_types): Add param "arglocs"; use it if non-NULL when
4328 !EXPR_HAS_LOCATION (cur_param) to get at location information.
4329
00aa1fa2
L
43302017-08-18 H.J. Lu <hongjiu.lu@intel.com>
4331
4332 PR c/53037
4333 * c-attribs.c (handle_warn_if_not_aligned_attribute): New.
4334 (c_common_attribute_table): Add warn_if_not_aligned.
4335 (handle_aligned_attribute): Renamed to ...
4336 (common_handle_aligned_attribute): Remove argument, name, and add
4337 argument, warn_if_not_aligned. Handle warn_if_not_aligned.
4338 (handle_aligned_attribute): New.
4339 * c.opt: Add -Wif-not-aligned and -Wpacked-not-aligned.
4340
27be025d
MS
43412017-08-14 Martin Sebor <msebor@redhat.com>
4342
4343 PR c/81117
4344 * c-attribs.c (c_common_attribute_table): Add nonstring entry.
4345 (handle_nonstring_attribute): New function.
4346
da67acb9
MS
43472017-08-14 Martin Sebor <msebor@redhat.com>
4348
4349 PR c/81117
4350 * c-format.h (T89_G): New macro.
4351 * c-format.c (local_gcall_ptr_node): New variable.
4352 (init_dynamic_diag_info): Initialize it.
4353
a8b522b4
ML
43542017-08-11 Martin Liska <mliska@suse.cz>
4355
4356 * c-opts.c (c_common_post_options): Replace ASM_OUTPUT_DEF with
4357 TARGET_SUPPORTS_ALIASES.
4358
32129a17
DM
43592017-08-10 David Malcolm <dmalcolm@redhat.com>
4360
4361 * c-common.c (c_parse_error): Add rich_location * param, using it
4362 rather implicitly using input_location.
4363 * c-common.h (c_parse_error): Add rich_location * param.
4364
30af3a2b
MP
43652017-08-09 Marek Polacek <polacek@redhat.com>
4366
4367 * c-common.c (pointer_int_sum): Use true/false instead of 1/0.
4368 (c_common_truthvalue_conversion): Likewise.
4369 * c-omp.c (c_finish_omp_atomic): Likewise.
4370 * c-common.h (build_binary_op): Update declaration.
4371
314e6352
ML
43722017-08-08 Martin Liska <mliska@suse.cz>
4373
4374 * c-ada-spec.c: Include header files.
4375 * c-ubsan.c: Likewise.
4376 * c-warn.c: Likewise.
4377
56b5041c
JJ
43782017-08-07 Jakub Jelinek <jakub@redhat.com>
4379
4380 PR c/69389
4381 * c-omp.c (c_finish_omp_atomic): Handle atomics on bitfields.
4382
db440138
EB
43832017-08-07 Eric Botcazou <ebotcazou@adacore.com>
4384
4385 * c-ada-spec.c (has_nontrivial_methods): Test for FUNCTION_DECL.
4386 (print_ada_methods): Likewise.
4387 (print_ada_declaration): Likewise.
4388
577eec56
ML
43892017-08-07 Martin Liska <mliska@suse.cz>
4390
4391 * array-notation-common.c: Add new includes.
4392 * c-format.c( handle_format_attribute): Canonicalize a format
4393 function name.
4394 * c-lex.c (c_common_has_attribute): Canonicalize name of an
4395 attribute.
4396 * c-pretty-print.c: Add new include.
4397
b854df3c
EB
43982017-08-05 Eric Botcazou <ebotcazou@adacore.com>
4399
4400 * c-ada-spec.c (has_static_fields): Look only into variables.
4401 (print_constructor): Add TYPE parameter and use it for the name.
4402 (print_destructor): Likewise.
4403 (print_ada_declaration): Adjust to new constructor/destructor names.
4404 Adjust calls to print_constructor and print_destructor.
4405 (print_ada_struct_decl): Do not test TREE_STATIC on FIELD_DECL.
4406 Look only into variables in the final loop.
4407
9f2cb25e
EB
44082017-08-01 Eric Botcazou <ebotcazou@adacore.com>
4409
4410 * c-ada-spec.c (has_static_fields): Look only into fields.
4411 (dump_generic_ada_node): Small tweak.
4412 (dump_nested_types): Look only into fields.
4413 (print_ada_declaration): Look only into methods. Small tweak.
4414 (print_ada_struct_decl): Look only into fields. Use DECL_VIRTUAL_P.
4415
f4bcd9eb
EB
44162017-08-01 Eric Botcazou <ebotcazou@adacore.com>
4417
4418 * c-ada-spec.c (print_generic_ada_decl): Pass correctly-typed constant.
4419 (dump_ada_function_declaration): Likewise.
4420 (dump_generic_ada_node): Likewise.
4421 (print_ada_declaration): Add support for const-qualified variables.
4422
f34ebeb2
ML
44232017-07-31 Martin Liska <mliska@suse.cz>
4424
4425 PR sanitize/81530
4426 * c-ubsan.c (ubsan_maybe_instrument_array_ref):
4427 Guard condition with flag_sanitize_p also with current_function_decl
4428 non-null equality.
4429 (ubsan_maybe_instrument_reference_or_call): Likewise.
4430
218e5d04
UB
44312017-07-30 Uros Bizjak <ubizjak@gmail.com>
4432
4433 * c-format.c (asm_fprintf_char_table): Add 'z' to format_chars.
4434
942047f2
EB
44352017-07-29 Eric Botcazou <ebotcazou@adacore.com>
4436
4437 * c-ada-spec.c (dump_generic_ada_node): Take into account signedness
4438 for enumeral types.
4439 (print_ada_declaration): Add missing guard for record types.
4440
a40ff0ae
JJ
44412017-07-27 Jakub Jelinek <jakub@redhat.com>
4442
4443 PR c/45784
4444 * c-omp.c (c_finish_omp_for): If the condition is wrapped in
4445 rhs of COMPOUND_EXPR(s), skip them and readd their lhs into
4446 new COMPOUND_EXPRs around the rhs of the comparison.
4447
06bd22f6
MP
44482017-07-27 Marek Polacek <polacek@redhat.com>
4449
4450 PR c/81417
4451 * c-warn.c (warn_for_sign_compare): Tweak the warning message. Print
4452 the types.
4453
036ea399
JJ
44542017-07-27 Jakub Jelinek <jakub@redhat.com>
4455
4456 * c-attribs.c (c_common_attribute_table): Add noipa attribute.
4457 (handle_noipa_attribute): New function.
4458
417ca011
TD
44592017-07-07 Torsten Duwe <duwe@suse.de>
4460
4461 * c-attribs.c (c_common_attribute_table): Add entry for
4462 "patchable_function_entry".
4463
5aaa8fb4
NS
44642017-07-20 Nathan Sidwell <nathan@acm.org>
4465
4466 Remove TYPE_METHODS.
4467 * c-ada-spec.c (is_tagged_type, has_nontrivial_methods,
4468 dump_ada_template, print_ada_methods,
4469 print_ada_declaration): Member fns are on TYPE_FIELDS.
4470
ff22eb12
NS
44712017-07-18 Nathan Sidwell <nathan@acm.org>
4472
4473 * c-warn.c (warn_for_memset): Use TYPE_{MIN,MAX}_VALUE.
4474
eea77d1f
DM
44752017-07-14 David Malcolm <dmalcolm@redhat.com>
4476
4477 * c-common.c (try_to_locate_new_include_insertion_point): New
4478 function.
4479 (per_file_includes_t): New typedef.
4480 (added_includes_t): New typedef.
4481 (added_includes): New variable.
4482 (maybe_add_include_fixit): New function.
4483 * c-common.h (maybe_add_include_fixit): New decl.
4484
281ac396
MS
44852017-07-10 Martin Sebor <msebor@redhat.com>
4486
4487 PR other/81345
4488 * c.opt (-Wstringop-overflow): Set defaults in LangEnabledBy.
4489
b6f43128
DM
44902017-07-06 David Malcolm <dmalcolm@redhat.com>
4491
4492 * c-common.c (selftest::c_family_tests): New.
4493 * c-common.h (selftest::run_c_tests): Move decl to c/c-lang.h.
4494 (selftest::c_family_tests): New decl.
4495
efbf55b0
MP
44962017-07-04 Marek Polacek <polacek@redhat.com>
4497
4498 PR c/81231
4499 * c-common.c (sync_resolve_size): Give error for pointers to incomplete
4500 types.
4501
6c86bd88
MP
45022017-07-04 Marek Polacek <polacek@redhat.com>
4503
4504 * c-warn.c (warn_if_unused_value): Remove WITH_CLEANUP_EXPR handling.
4505
17a7218b
ML
45062017-06-28 Martin Liska <mliska@suse.cz>
4507
4508 PR ipa/81128
4509 * c-attribs.c (handle_alias_ifunc_attribute): Append ifunc alias
4510 to a function declaration.
4511
63010089
ML
45122017-06-28 Martin Liska <mliska@suse.cz>
4513
4514 PR driver/79659
4515 * c.opt: Add IntegerRange to various options.
4516
3e2becc4
MP
45172017-06-26 Marek Polacek <polacek@redhat.com>
4518
4519 PR c/80116
4520 * c-common.h (warn_for_multistatement_macros): Declare.
4521 * c-warn.c: Include "c-family/c-indentation.h".
4522 (warn_for_multistatement_macros): New function.
4523 * c.opt (Wmultistatement-macros): New option.
4524 * c-indentation.c (guard_tinfo_to_string): No longer static.
4525 Change the parameter type to "enum rid". Handle RID_SWITCH.
4526 * c-indentation.h (guard_tinfo_to_string): Declare.
4527
2db9b7cd
MG
45282017-06-23 Marc Glisse <marc.glisse@inria.fr>
4529
4530 * c-common.c (c_common_nodes_and_builtins): Use builtin_structptr_types.
4531
c3684b7b
MS
45322017-06-15 Martin Sebor <msebor@redhat.com>
4533
4534 PR c++/80560
4535 * c.opt (-Wclass-memaccess): New option.
4536
e72c4afd
BK
45372017-06-14 Boris Kolpackov <boris@codesynthesis.com>
4538
4539 * c-opts.c (c_common_finish): Handle '-' special value to -MF.
4540
8a516588
MP
45412017-06-13 Marek Polacek <polacek@redhat.com>
4542
4543 PR objc/80949
4544 * c-warn.c (do_warn_duplicated_branches): Return if any of the
4545 branches is null.
4546
45b2222a
ML
45472017-06-13 Martin Liska <mliska@suse.cz>
4548
4549 PR sanitize/78204
4550 * c-attribs.c (add_no_sanitize_value): New function.
4551 (handle_no_sanitize_attribute): Likewise.
4552 (handle_no_sanitize_address_attribute): Use the function.
4553 (handle_no_sanitize_thread_attribute): New function.
4554 (handle_no_address_safety_analysis_attribute): Use
4555 add_no_sanitize_value.
4556 (handle_no_sanitize_undefined_attribute): Likewise.
4557 * c-common.h: Declare new functions.
4558 * c-ubsan.c (ubsan_instrument_division): Use sanitize_flags_p.
4559 (ubsan_instrument_shift): Likewise.
4560 (ubsan_instrument_bounds): Likewise.
4561 (ubsan_maybe_instrument_array_ref): Likewise.
4562 (ubsan_maybe_instrument_reference_or_call): Likewise.
4563
a01f151f
JM
45642017-06-11 Jason Merrill <jason@redhat.com>
4565
4566 * c-ada-spec.c, c-pragma.c: Use id_equal.
4567
3de4ac6d
MP
45682017-06-04 Marek Polacek <polacek@redhat.com>
4569
4570 PR c/80919
4571 * c-format.c (matching_type_p): Return false if any of the types
4572 requires structural equality.
4573
2474f48f
MS
45742017-06-02 Martin Sebor <msebor@redhat.com>
4575
4576 PR c/80892
4577 * c-warn.c (conversion_warning): Use -Wconversion for integer
4578 conversion and -Wfloat-conversion for floating one.
4579
40ffd95f
BE
45802017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
4581
4582 * c.opt (Wsizeof-pointer-div): New warning option.
4583
3fa4634c
VR
45842017-06-01 Volker Reichelt <v.reichelt@netcologne.de>
4585
4586 * c.opt (Wcatch-value): New shortcut for Wcatch-value=1.
4587 (Wcatch-value=1): Enable by -Wall.
4588
f012c8ef
DM
45892017-05-30 David Malcolm <dmalcolm@redhat.com>
4590
4591 * c-format.c (gcc_cxxdiag_char_table): Add 'H' and 'I' to
4592 format_chars.
4593 * c.opt (fdiagnostics-show-template-tree): New option.
4594 (felide-type): New option.
4595
63dbcd13
VR
45962017-05-25 Volker Reichelt <v.reichelt@netcologne.de>
4597
4598 * c.opt (Wcatch-value=): New C++ warning flag.
4599
be136b5c
NS
46002017-05-24 Nathan Sidwell <nathan@acm.org>
4601
4602 * c=common.c (field_decl_cmp, resort_field_decl_cmp): Adjust T
4603 const casts to avoid warning.
4604
3cd211af
MS
46052017-05-24 Martin Sebor <msebor@redhat.com>
4606
4607 PR c/80731
4608 * c-common.h (unsafe_conversion_p): Add a function argument.
4609 * c-common.c (unsafe_conversion_p): Same.
4610 Add type names and values to diagnostics.
4611 (scalar_to_vector): Adjust.
4612 * c-warn.c (constant_expression_error): Add a function argument.
4613 Add type names and values to diagnostics.
4614 (conversion_warning): Add a function argument.
4615 Add type names and values to diagnostics.
4616 (warnings_for_convert_and_check): Same.
4617
1ff7be5a
JM
46182017-05-19 Jason Merrill <jason@redhat.com>
4619
4620 * c-warn.c (match_case_to_enum_1): Don't warn about enums with no
4621 enumerators.
4622
ff502317
BE
46232017-05-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
4624
4625 * c-format.c (locus): Move out of function scope,
4626 add GTY attribute.
4627
2a8a8d7b
NS
46282017-05-19 Nathan Sidwell <nathan@acm.org>
4629
4630 * c-opts.c (class_dump_file, class_dump_flags): Delete.
4631 (c_common_parse_file): Remove class dump handling.
4632 (get_dump_info): Likewise.
4633
39aac208
RB
46342017-05-19 Richard Biener <rguenther@suse.de>
4635
4636 PR c++/80593
4637 * c-warn.c (strict_aliasing_warning): Do not warn for accesses
4638 to alias-set zero memory.
4639
6ecd2339
BE
46402017-05-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
4641
4642 * c-format.c (local_tree_type_node): Add GTY attribute.
4643
6574d78e
MP
46442017-05-18 Marek Polacek <polacek@redhat.com>
4645
4646 * c-common.c (c_common_type_for_size): Use NULL_TREE instead of 0.
4647 (c_common_fixed_point_type_for_size): Likewise.
4648 (c_common_type_for_mode): Likewise.
4649 (shorten_compare): Likewise.
4650 (c_promoting_integer_type_p): Use false/true instead of 0/1.
4651 * c-pragma.c (maybe_apply_renaming_pragma): Use NULL_TREE instead of 0.
4652
e3455240
MP
46532017-05-18 Marek Polacek <polacek@redhat.com>
4654
4655 * c-common.c (self_promoting_args_p): Change the return type to bool.
4656 Use false/true instead of 0/1.
4657 * c-common.h (self_promoting_args_p): Update.
4658
3fa8871b
MP
46592017-05-17 Marek Polacek <polacek@redhat.com>
4660
4661 * c-common.c: Use NULL_TREE instead of 0 where appropriate.
4662 * c-warn.c: Likewise.
4663
b42cc3ca
VV
46642017-05-17 Ville Voutilainen <ville.voutilainen@gmail.com>
4665
4666 Implement new C++ intrinsics __is_assignable and __is_constructible.
4667 * c-common.c (__is_assignable, __is_constructible): New.
4668 * c-common.h (RID_IS_ASSIGNABLE, RID_IS_CONSTRUCTIBLE): Likewise.
4669
1a817418
ML
46702017-05-17 Martin Liska <mliska@suse.cz>
4671
4672 * c-common.h: Introduce dump_flags_t type and
4673 use it instead of int type.
4674 * c-gimplify.c (c_genericize): Likewise.
4675 * c-opts.c: Likewise.
4676
b2fa0a8b
MP
46772017-05-17 Marek Polacek <polacek@redhat.com>
4678
4679 * c-common.c (c_save_expr): Remove.
4680 (c_common_truthvalue_conversion): Remove a call to c_save_expr.
4681 * c-common.h (c_save_expr): Remove declaration.
4682
31c2d57d
VR
46832017-05-09 Volker Reichelt <v.reichelt@netcologne.de>
4684
4685 PR c/35441
4686 * c-pretty-print.c (c_pretty_printer::expression): Handle MAX_EXPR,
4687 MIN_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, LROTATE_EXPR, RROTATE_EXPR.
4688 (c_pretty_printer::postfix_expression): Handle MAX_EXPR, MIN_EXPR.
4689 (c_pretty_printer::multiplicative_expression): Handle EXACT_DIV_EXPR,
4690 RDIV_EXPR.
4691 (pp_c_shift_expression): Handle LROTATE_EXPR, RROTATE_EXPR.
4692
684f84de
MP
46932017-05-09 Marek Polacek <polacek@redhat.com>
4694
4695 PR c/80525
4696 * c-warn.c (unwrap_c_maybe_const): New.
4697 (warn_logical_operator): Call it.
4698
641da50a
NS
46992017-05-09 Nathan Sidwell <nathan@acm.org>
4700
4701 * c-common.c (c_register_builtin_type): Use pushdecl lang_hook.
4702 * c-common.h (pushdecl_top_level, pushdecl): Don't declare here.
4703
631238ac
MS
47042017-05-08 Martin Sebor <msebor@redhat.com>
4705
4706 PR translation/80280
4707 * c-format.h (struct format_flag_spec): Add new member.
4708 (T89_T): New macro.
4709 * c-format.c (local_tree_type_node): New global.
4710 (printf_flag_specs, asm_fprintf_flag_spec): Initialize new data.
4711 (gcc_diag_flag_specs, scanf_flag_specs, strftime_flag_specs): Ditto.
4712 (strfmon_flag_specs): Likewise.
4713 (gcc_diag_char_table, gcc_cdiag_char_table): Split up specifiers
4714 with distinct quoting properties.
4715 (gcc_tdiag_char_table, gcc_cxxdiag_char_table): Same.
4716 (flag_chars_t::validate): Add argument and handle bad quoting.
4717 (check_format_info_main): Handle quoting problems.
4718 (init_dynamic_diag_info): Simplify.
4719
49f0c04c
JM
47202017-05-08 Jason Merrill <jason@redhat.com>
4721
4722 * c-opts.c (c_common_post_options): Update defaults for
4723 flag_abi_version and flag_abi_compat_version.
4724
56d35585
DM
47252017-05-05 David Malcolm <dmalcolm@redhat.com>
4726
4727 * c-common.c (c_cpp_error): Replace report_diagnostic
4728 with diagnostic_report_diagnostic.
4729
0f2c4a8f
MS
47302017-05-04 Martin Sebor <msebor@redhat.com>
4731
4732 PR translation/80280
4733 * c-attribs.c (handle_alias_ifunc_attribute): Quote a %D directive.
4734 (handle_weakref_attribute): Same.
4735
6fe63fb4
NS
47362017-05-03 Nathan Sidwell <nathan@acm.org>
4737
4738 Canonicalize canonical type hashing
4739 * c-common.c (complete_array_type): Use type_hash_canon.
4740
815d9cc6
XR
47412017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
4742
92a285c1 4743 PR c++/80038
815d9cc6
XR
4744 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): Remove
4745 prototype.
4746 (cilk_install_body_pedigree_operations): Likewise.
4747 * cilk.c (cilk_set_spawn_marker): Mark functions that should be
4748 detatched.
4749 (cilk_gimplify_call_params_in_spawned_fn): Remove.
4750 (cilk_install_body_pedigree_operations): Likewise.
4751 (gimplify_cilk_spawn): Add EXPR_STMT and CLEANUP_POINT_EXPR
4752 unwrapping.
4753
f8a36447
JJ
47542017-04-27 Jakub Jelinek <jakub@redhat.com>
4755
4756 PR c++/80534
4757 * c-common.c (complete_array_type): Only hash TYPE_TYPELESS_STORAGE
4758 flag on non-aggregate element types.
4759
7c145456
BE
47602017-04-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
4761
4762 * c-common.c (c_type_hasher, type_hash_table): Remove.
4763 (c_common_get_alias_set): Remove unreachable code.
4764 * c-opts.c (c_common_post_options): Make sure cc1 takes only one file.
4765
c3cbcd45
VR
47662017-04-20 Volker Reichelt <v.reichelt@netcologne.de>
4767
4768 * c.opt (Wextra-semi): New C++ warning flag.
4769
8a59d466
JJ
47702017-04-20 Jakub Jelinek <jakub@redhat.com>
4771
4772 PR middle-end/80423
4773 * c-common.c (complete_array_type): Preserve TYPE_TYPELESS_STORAGE.
4774
8487c9a5
JJ
47752017-04-18 Jakub Jelinek <jakub@redhat.com>
4776
4777 PR middle-end/79788
4778 PR middle-end/80375
4779 * c-common.c (c_common_type_for_mode): Don't handle
4780 widest_*_literal_type_node here.
4781 c_common_signed_or_unsigned_type): Likewise.
4782 (c_common_nodes_and_builtins): Set widest_*_literal_type_node
4783 to *intTI_type_node or *intDI_type_node depending on whether
4784 TImode is supported by the target or not.
4785
3ee0fb02
ML
47862017-04-10 Martin Liska <mliska@suse.cz>
4787
4788 PR sanitizer/80350
4789 * c-ubsan.c (ubsan_instrument_shift): Evaluate RHS before
4790 doing an UBSAN check.
4791
5764ee3c
JW
47922017-04-03 Jonathan Wakely <jwakely@redhat.com>
4793
4794 * c-warn.c (do_warn_double_promotion): Fix typo in comment.
4795
6f3af356
JJ
47962017-03-31 Jakub Jelinek <jakub@redhat.com>
4797
4798 PR c++/79572
4799 * c-ubsan.h (ubsan_maybe_instrument_reference): Change argument to
4800 tree *.
4801 * c-ubsan.c (ubsan_maybe_instrument_reference): Likewise. Handle
4802 not just NOP_EXPR to REFERENCE_TYPE, but also INTEGER_CST with
4803 REFERENCE_TYPE.
4804
f6a7a9d5
DM
48052017-03-31 David Malcolm <dmalcolm@redhat.com>
4806
4807 PR documentation/78732
4808 * c.opt (Wendif-labels): Fix description to refer to
4809 #else rather than #elif.
4810
af88f557
JJ
48112017-03-31 Jakub Jelinek <jakub@redhat.com>
4812
4813 PR libstdc++/80251
4814 * c-common.h (enum rid): Add RID_IS_AGGREGATE.
4815 * c-common.c (c_common_reswords): Add __is_aggregate trait.
4816
a9e4a1a5
JJ
48172017-03-27 Jakub Jelinek <jakub@redhat.com>
4818
4819 PR middle-end/80162
4820 * c-common.c (c_common_mark_addressable_vec): Don't set
4821 TREE_ADDRESSABLE on DECL_HARD_REGISTER.
4822
3f01b620
MS
48232017-03-21 Martin Sebor <msebor@redhat.com>
4824
4825 PR c++/79548
4826 * c-common.c (set_underlying_type): Mark type used only when
4827 original del is declared unused.
4828
2f6f187a
DM
48292017-03-10 David Malcolm <dmalcolm@redhat.com>
4830
4831 PR translation/79848
4832 * c-format.c (check_format_string): Simplify uses of "%<%s%>" to
4833 "%qs".
4834
a02fa805
DM
48352017-03-10 David Malcolm <dmalcolm@redhat.com>
4836
4837 PR c/79921
4838 * c-indentation.c (warn_for_misleading_indentation): Remove parens
4839 from inform's message, so that xgettext can locate it.
4840
822a132c
MP
48412017-03-09 Marek Polacek <polacek@redhat.com>
4842
4843 PR c++/79962
4844 PR c++/79984
4845 * c-attribs.c (handle_nonnull_attribute): Save the result of default
4846 conversion to the attribute list.
4847
bba81f1c
ML
48482017-03-09 Martin Liska <mliska@suse.cz>
4849
4850 * c-ada-spec.c (macro_length): Increment value instead of a pointer.
4851
108154ff
JM
48522017-03-03 Jason Merrill <jason@redhat.com>
4853
4854 * c.opt (Wnoexcept-type): New.
4855
eb0e7c34
RB
48562017-03-02 Richard Biener <rguenther@suse.de>
4857
4858 PR c/79756
4859 * c-common.c (c_common_mark_addressable_vec): Look through
4860 C_MAYBE_CONST_EXPR.
4861
9453ba0a
ML
48622017-02-28 Martin Liska <mliska@suse.cz>
4863
4864 * c.opt: Replace space with tabular for options of <number>
4865 type.
4866
6a825afe
ML
48672017-02-28 Martin Liska <mliska@suse.cz>
4868
4869 * c.opt: Fix --help=option -Q for options which are of
4870 an enum type.
4871
4227c9ad
JJ
48722017-02-24 Jakub Jelinek <jakub@redhat.com>
4873
4874 PR c++/79588
4875 * c-common.c (check_function_restrict): New function.
4876 (check_function_arguments): Add FNDECL argument. Call
4877 check_function_restrict if -Wrestrict.
4878 * c-warn.c (warn_for_restrict): Remove ARGS argument, add ARGARRAY
4879 and NARGS. Use auto_vec for ARG_POSITIONS, simplify.
4880 * c-common.h (check_function_arguments): Add FNDECL argument.
4881 (warn_for_restrict): Remove ARGS argument, add ARGARRAY and NARGS.
4882
59909673
EB
48832017-02-24 Eric Botcazou <ebotcazou@adacore.com>
4884
4885 * c-ada-spec.c (dump_ada_function_declaration): Add comment about the
4886 treatment of parameters with pointer-to-tagged type and tidy up.
4887 (print_ada_methods): Remove the special treatment of C++ static member
4888 functions.
4889
54dcd526
ML
48902017-02-22 Martin Liska <mliska@suse.cz>
4891
4892 * c.opt: Replace inequality signs with square brackets
4893 for -Wnornalized.
4894
00bc9de3
JJ
48952017-02-21 Jakub Jelinek <jakub@redhat.com>
4896
4897 PR c++/79641
4898 * c-attribs.c (handle_mode_attribute): Use build_qualified_type to
4899 preserve quals.
4900
97fcf744
JM
49012017-02-17 Joseph Myers <joseph@codesourcery.com>
4902
4903 * c-cppbuiltin.c (builtin_define_float_constants): Define
4904 __DECIMAL_DIG__ to the value for long double.
4905
c7545f1c
MP
49062017-02-15 Marek Polacek <polacek@redhat.com>
4907
4908 PR c/79515
4909 * c-warn.c (do_warn_double_promotion): Don't warn if an invalid
4910 conversion has occured.
4911
c2e84327
DM
49122017-01-24 David Malcolm <dmalcolm@redhat.com>
4913
4914 * c-common.c (c_common_reswords): Add "__RTL".
4915 * c-common.h (enum rid): Add RID_RTL.
4916
2ebd93e1
MP
49172017-01-20 Marek Polacek <polacek@redhat.com>
4918
4919 PR c/64279
4920 * c-common.h (do_warn_duplicated_branches_r): Declare.
4921 * c-gimplify.c (c_genericize): Walk the function tree calling
4922 do_warn_duplicated_branches_r.
4923 * c-warn.c (expr_from_macro_expansion_r): New.
4924 (do_warn_duplicated_branches): New.
4925 (do_warn_duplicated_branches_r): New.
4926 * c.opt (Wduplicated-branches): New option.
4927
0d80ab91
DM
49282017-01-17 David Malcolm <dmalcolm@redhat.com>
4929
4930 PR c++/71497
4931 * c-indentation.c (warn_for_misleading_indentation): Use the past
4932 subjunctive in the note.
4933
7f991c36
AH
49342017-01-17 Aldy Hernandez <aldyh@redhat.com>
4935
4936 PR c/79116
4937 * array-notation-common.c (cilkplus_extract_an_triplets): Convert
4938 start type to integer_type.
4939
1c70261c
JJ
49402017-01-16 Jakub Jelinek <jakub@redhat.com>
4941
4942 PR driver/49726
4943 * c.opt (gen-decls): Add Driver flag.
4944
1ddca3f3
PC
49452017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
4946
4947 Revert:
4948 2017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
4949
4950 PR c++/71737
4951 * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
4952
7d2f3f1d
PC
49532017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
4954
4955 PR c++/71737
4956 * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
4957
bce6f760
MS
49582017-01-12 Martin Sebor <msebor@redhat.com>
4959
4960 (-Wformat-overflow): ...to this.
4961
bf5fbf46
MS
49622017-01-11 Martin Sebor <msebor@redhat.com>
4963
4964 PR c/78768
4965 * c.opt (-Walloca-larger-than, -Wformat-length, -Wformat-truncation):
4966 Also enable for LTO.
4967
e363df3f
JM
49682017-01-10 Jason Merrill <jason@redhat.com>
4969
4970 Implement P0195R2, C++17 variadic using.
4971 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_variadic_using.
4972
bd2c6270
JJ
49732017-01-09 Jakub Jelinek <jakub@redhat.com>
4974
4975 PR translation/79019
4976 PR translation/79020
4977 * c.opt (Wnormalized=): Fix typo in description.
4978
efcc8d38
MS
49792017-01-08 Martin Sebor <msebor@redhat.com>
4980
4981 PR middle-end/77708
4982 * c.opt (-Wformat-truncation): New option.
4983
ab20d992 49842017-01-06 Alexandre Oliva <aoliva@redhat.com>
435f3f7a
AO
4985
4986 * c-pretty-print.c (pp_c_tree_decl_identifier): Convert 16-bit
4987 value to unsigned short to fit in 4 hex digits without
4988 warnings.
4989
4e89adf9
EB
49902017-01-05 Eric Botcazou <ebotcazou@adacore.com>
4991
4992 * c.opt (fsso-struct): Add 'native' value.
4993
cd445b54
ML
49942017-01-05 Martin Liska <mliska@suse.cz>
4995
4996 PR pch/78970
4997 * c-opts.c (c_common_post_options): Reject '-' filename for a precompiled
4998 header.
4999
a9342885
MP
50002017-01-04 Marek Polacek <polacek@redhat.com>
5001
5002 PR c++/64767
5003 * c.opt (Wpointer-compare): New option.
5004
fc73e60c
JJ
50052017-01-04 Jakub Jelinek <jakub@redhat.com>
5006
5007 PR driver/78957
5008 * c.opt (fsso-struct=): Add RejectNegative.
5009
cbe34bb5
JJ
50102017-01-01 Jakub Jelinek <jakub@redhat.com>
5011
5012 Update copyright years.
5013
d4a6c0ea
ML
50142016-12-29 Martin Liska <mliska@suse.cz>
5015
5016 PR c/78933
5017 * c.opt (strong-eval-order): Add RejectNegative keyword.
5018
67a5ad7c
JM
50192016-12-22 Jason Merrill <jason@redhat.com>
5020
5021 Implement P0522R0, matching of template template arguments.
5022 * c-cppbuiltin.c (c_cpp_builtins): Define
5023 __cpp_template_template_args.
5024
0dba7960
JJ
50252016-12-21 Jakub Jelinek <jakub@redhat.com>
5026
5027 PR bootstrap/78817
5028 * c-common.c (struct nonnull_arg_ctx): New type.
5029 (check_function_nonnull): Return bool instead of void. Use
5030 nonnull_arg_ctx as context rather than just location_t.
5031 (check_nonnull_arg): Adjust for the new context type, set
5032 warned_p to true if a warning has been diagnosed.
5033 (check_function_arguments): Return bool instead of void.
5034 * c-common.h (check_function_arguments): Adjust prototype.
5035
31bfc9b9
JM
50362016-12-21 Jason Merrill <jason@redhat.com>
5037
5038 * c.opt (-fnew-ttp-matching): New flag.
5039 * c-opts.c (c_common_post_options): Default on if -std=c++1z.
5040
629b3d75
MJ
50412016-12-14 Martin Jambor <mjambor@suse.cz>
5042
5043 * c-omp.c: Include omp-general.h instead of omp-low.h.
5044 (c_finish_oacc_wait): Adjusted call to find_omp_clause to use its new
5045 name.
5046
474da67e
MS
50472016-12-14 Martin Sebor <msebor@redhat.com>
5048
5049 PR c/17308
5050 * c-common.c (check_nonnull_arg): Disable when optimization
5051 is enabled.
5052
fe366b87
MP
50532016-12-12 Marek Polacek <polacek@redhat.com>
5054
5055 PR c++/78647
5056 * c-common.c (attribute_fallthrough_p): Return false for
5057 error_mark_node.
5058
8bd9f164
MS
50592016-12-08 Martin Sebor <msebor@redhat.com>
5060
5061 PR c/78284
5062 * c.opt (-Walloc-zero, -Walloc-size-larger-than): New options.
5063
060162e0
MS
50642016-12-08 Martin Sebor <msebor@redhat.com>
5065
5066 PR c/78165
92a285c1
ML
5067 * c-pretty-print (pp_c_integer_constant): Avoid formatting type
5068 suffix.
060162e0 5069
ee92e7ba
MS
50702016-12-07 Martin Sebor <msebor@redhat.com>
5071
5072 PR c/53562
5073 PR middle-end/77784
5074 PR middle-end/78149
5075 PR middle-end/78138
5076 * c.opt (-Wstringop-overflow): New option.
5077
84b0769e
MO
50782016-12-02 Maxim Ostapenko <m.ostapenko@samsung.com>
5079
5080 * c-attribs.c (asan odr indicator): New attribute.
5081 (handle_asan_odr_indicator_attribute): New function.
5082
7fa6a965
PK
50832016-11-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5084
5085 * c-common.c (c_common_nodes_and_builtins): Remove initialization of
5086 ptrdiff_type_node;
5087
56d8ffc1
JG
50882016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
5089
5090 * c-common.c (excess_precision_mode_join): New.
5091 (c_ts18661_flt_eval_method): New.
5092 (c_c11_flt_eval_method): Likewise.
5093 (c_flt_eval_method): Likewise.
5094 * c-common.h (excess_precision_mode_join): New.
5095 (c_flt_eval_method): Likewise.
5096 * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): New.
5097 (cpp_iec_559_value): Call it.
5098 (c_cpp_builtins): Modify logic for __LIBGCC_*_EXCESS_PRECISION__,
5099 call c_flt_eval_method to set __FLT_EVAL_METHOD__ and
5100 __FLT_EVAL_METHOD_TS_18661_3__.
5101
04f0fcf7
JG
51022016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
5103
5104 * c-opts.c (c_common_post_options): Add logic to handle the default
5105 case for -fpermitted-flt-eval-methods.
5106
fb2675cb
PB
51072016-11-23 Paolo Bonzini <bonzini@gnu.org>
5108
5109 * c.opt (Wexpansion-to-defined): New.
5110
ec1c5694
JJ
51112016-11-23 Jakub Jelinek <jakub@redhat.com>
5112
5113 PR target/78451
5114 * c-pragma.c (handle_pragma_target): Don't replace
5115 current_target_pragma, but chainon the new args to the current one.
5116
730c9e75
NS
51172016-11-22 Nathan Sidwell <nathan@acm.org>
5118
5119 * array-notation-common.c (cilkplus_extract_an_trplets): Fix
cacd29be 5120 indentation and formatting.
730c9e75 5121
89990732
MS
51222016-11-21 Martin Sebor <msebor@redhat.com>
5123
5124 * c.opt (-fprintf-return-value): Enable by default.
5125
48330c93
BE
51262016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
5127
5128 PR c++/71973
5129 * c.opt (-Wbuiltin-declaration-mismatch): New warning.
5130 * c-common.c (c_common_nodes_and_builtins): Initialize
5131 const_tm_ptr_type_node.
5132
0d939c95
MP
51332016-11-16 Marek Polacek <polacek@redhat.com>
5134
5135 PR c/78285
5136 * c-common.c (c_add_case_label): Turn error_at calls into inform.
5137
8e745a17
JJ
51382016-11-14 Jakub Jelinek <jakub@redhat.com>
5139
5140 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_structured_bindings.
5141
1ee62b92 51422016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
8e745a17
JJ
5143 Richard Biener <rguenther@suse.de>
5144
5145 * c-common.h (c_common_resword): Add RID_GIMPLE, RID_PHI types.
5146 * c-common.h (enum rid): Add RID_GIMPLE, RID_PHI.
5147 * c.opt (fgimple): New option.
1ee62b92 5148
22b15758
UB
51492016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5150
5151 PR c/35503
5152 * c-common.h (warn_for_restrict): Declare.
5153 * c-warn.c: Include gcc-rich-location.h.
5154 (warn_for_restrict): New function.
5155 * c-format.c (gcc_tdiag_char_table): Add entry for "Z" specifier.
5156 (gcc_cdiag_char_table): Likewise.
5157 (gcc_cxxdiag_char_table): Likewise.
5158 * c.opt (Wrestrict): New option.
5159
4be719cd
EB
51602016-11-13 Eric Botcazou <ebotcazou@adacore.com>
5161
5162 * c-ada-spec.c (print_ada_declaration): For typedef declarations, look
5163 for nested types only if the type is a record or union and dump SLOC.
5164
4a826ca6
JM
51652016-11-09 Jason Merrill <jason@redhat.com>
5166
5167 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_template_auto.
5168
2e955d50
JJ
51692016-11-09 Jakub Jelinek <jakub@redhat.com>
5170
5171 * c-ubsan.c (ubsan_instrument_shift): Handle split
5172 -fsanitize=shift-base and -fsanitize=shift-exponent.
5173
51dc6603
JM
51742016-11-07 Jason Merrill <jason@redhat.com>
5175
5176 * c.opt (Wc++1z-compat): New.
5177 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_noexcept_function_type.
5178
6dc4a604
ML
51792016-11-07 Martin Liska <mliska@suse.cz>
5180
5181 * c-warn.c (warn_for_unused_label): Save all labels used
5182 in goto or in &label.
5183
b302001e
JM
51842016-11-03 Jason Merrill <jason@redhat.com>
5185
5186 * c-cppbuiltin.c (c_cpp_builtins): Correct
5187 __cpp_inheriting_constructors.
5188
31f7f784
JM
51892016-11-01 Jason Merrill <jason@redhat.com>
5190
2bc78e3c
JM
5191 * c-cppbuiltin.c (c_cpp_builtins): Update
5192 __cpp_inheriting_constructors.
5193
31f7f784
JM
5194 * c.opt (-fnew-inheriting-ctors): New.
5195 * c-opts.c: Default to on for ABI 11+.
5196
dcb466ec
JJ
51972016-10-31 Jakub Jelinek <jakub@redhat.com>
5198
5199 PR c++/77948
5200 * c.opt (fext-numeric-literals): Add Var and Init.
5201 * c-opts.c (c_common_handle_option): Don't clear
5202 cpp_opts->ext_numeric_literals for -std=c++{11,14,1z}.
5203 (c_common_post_options): Clear it here if not set
5204 explicitly.
5205
52e1b91e
AH
52062016-10-28 Aldy Hernandez <aldyh@redhat.com>
5207
5208 PR debug/77773
5209 * c-pretty-print.c (simple_type_specifier): Do not dereference `t'
5210 if NULL.
5211
e16f1cc7
JJ
52122016-10-25 Jakub Jelinek <jakub@redhat.com>
5213
5214 * c-common.h (enum rid): Add RID_BUILTIN_LAUNDER.
5215 * c-common.c (c_common_reswords): Add __builtin_launder.
5216
f8348061
BE
52172016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
5218
5219 * c-common.c (c_common_truthvalue_conversion): Warn for
5220 multiplications in boolean context. Fix the quoting of '<<' and '<'
5221 in the shift warning.
5222
eff89e01
BE
52232016-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
5224
5225 * c-common.c (c_common_truthvalue_conversion): Fix the comment.
5226
24bc7bf4
JM
52272016-10-20 Jason Merrill <jason@redhat.com>
5228
5229 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_concepts value.
5230
4c712374
BE
52312016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
5232
5233 * c-common.c (c_common_truthvalue_conversion): Warn only for signed
5234 integer shift ops in boolean context.
5235
52362016-10-18 Aldy Hernandez <aldyh@redhat.com>
adc577c5
AH
5237
5238 * c.opt (Walloca): New.
5239 (Walloca-larger-than=): New.
5240 (Wvla-larger-than=): New.
5241
8fa18c06
MP
52422016-10-17 Marek Polacek <polacek@redhat.com>
5243
5244 * c-warn.c (find_array_ref_with_const_idx_r): Remove parameter names.
5245 Return immediately when finding a match.
5246 (warn_tautological_cmp): Remove a boolean variable that is no longer
5247 needed.
5248
b12b1915
MP
52492016-10-17 Marek Polacek <polacek@redhat.com>
5250
5251 * c-attribs.c: New file.
5252 * c-common.c: Move attributes handling to c-attribs.c.
5253 (get_nonnull_operand): No longer static.
5254 * c-common.h: Move the declarations from c-attribs.c to its own section.
5255
2045acd9
JM
52562016-10-14 Jason Merrill <jason@redhat.com>
5257
5258 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_aggregate_bases
5259 and __cpp_deduction_guides.
5260
14a2c9aa
JM
52612016-10-13 Jason Merrill <jason@redhat.com>
5262
5263 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_inline_variables.
5264
4d0cdd0c
TP
52652016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
5266
5267 * c-cppbuiltin.c: Include memmodel.h.
5268 * c-opts.c: Likewise.
5269 * c-pragma.c: Likewise.
5270 * c-warn.c: Likewise.
5271
70f6d5e1
JJ
52722016-10-12 Jakub Jelinek <jakub@redhat.com>
5273
5274 * c.opt (Wextra): Add as C/C++/ObjC/ObjC++ option.
5275 (Wimplicit-fallthrough=): Enable for these languages by -Wextra.
5276 * c-opts.c (sanitize_cpp_opts): Initialize
5277 cpp_opts->cpp_warn_implicit_fallthrough.
5278
78f61294
MP
52792016-10-11 Marek Polacek <polacek@redhat.com>
5280
5281 * c-common.c (warning_candidate_p): Change the return type to bool
5282 and return true/false instead of 1/0.
5283 (vector_mode_valid_p): Likewise.
5284
038b5cc0
MP
52852016-10-11 Marek Polacek <polacek@redhat.com>
5286
5287 * c-common.c (fold_for_warn): No longer static.
5288 (bool_promoted_to_int_p): Likewise.
5289 (c_common_get_narrower): Likewise.
5290 (constant_expression_warning): Move to c-warn.c.
5291 (constant_expression_error): Likewise.
5292 (overflow_warning): Likewise.
5293 (warn_logical_operator): Likewise.
5294 (find_array_ref_with_const_idx_r): Likewise.
5295 (warn_tautological_cmp): Likewise.
5296 (expr_has_boolean_operands_p): Likewise.
5297 (warn_logical_not_parentheses): Likewise.
5298 (warn_if_unused_value): Likewise.
5299 (strict_aliasing_warning): Likewise.
5300 (sizeof_pointer_memaccess_warning): Likewise.
5301 (check_main_parameter_types): Likewise.
5302 (conversion_warning): Likewise.
5303 (warnings_for_convert_and_check): Likewise.
5304 (match_case_to_enum_1): Likewise.
5305 (match_case_to_enum): Likewise.
5306 (c_do_switch_warnings): Likewise.
5307 (warn_for_omitted_condop): Likewise.
5308 (readonly_error): Likewise.
5309 (lvalue_error): Likewise.
5310 (invalid_indirection_error): Likewise.
5311 (warn_array_subscript_with_type_char): Likewise.
5312 (warn_about_parentheses): Likewise.
5313 (warn_for_unused_label): Likewise.
5314 (warn_for_div_by_zero): Likewise.
5315 (warn_for_memset): Likewise.
5316 (warn_for_sign_compare): Likewise.
5317 (do_warn_double_promotion): Likewise.
5318 (do_warn_unused_parameter): Likewise.
5319 (record_locally_defined_typedef): Likewise.
5320 (maybe_record_typedef_use): Likewise.
5321 (maybe_warn_unused_local_typedefs): Likewise.
5322 (maybe_warn_bool_compare): Likewise.
5323 (maybe_warn_shift_overflow): Likewise.
5324 (warn_duplicated_cond_add_or_warn): Likewise.
5325 (diagnose_mismatched_attributes): Likewise.
5326 * c-common.h: Move the declarations from c-warn.c to its own section.
5327 * c-warn.c: New file.
5328
627be19f
JM
53292016-10-08 Jason Merrill <jason@redhat.com>
5330
5331 * c-common.c (c_common_truthvalue_conversion): Don't distribute
5332 into COND_EXPR in C++.
5333
7bad794a
JJ
53342016-10-08 Jakub Jelinek <jakub@redhat.com>
5335
5336 * c-lex.c (c_lex_with_flags) <case CPP_COMMENT>: For CPP_COMMENT
5337 token with PREV_FALLTHROUGH, skip all following CPP_PADDING and
5338 CPP_COMMENT tokens and set add_flags to PREV_FALLTHROUGH afterwards.
5339
be845b04
JJ
53402016-10-07 Jakub Jelinek <jakub@redhat.com>
5341
5342 Implement LWG2296 helper intrinsic
5343 * c-common.h (enum rid): Add RID_ADDRESSOF.
5344 * c-common.c (c_common_reswords): Add __builtin_addressof.
5345
c09c4992
BE
53462016-10-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
5347
5348 PR c++/77700
5349 * c-common.c (c_common_truthvalue_conversion): Warn also for
5350 suspicious enum values in boolean context.
5351
342cfb3e
JJ
53522016-10-06 Jakub Jelinek <jakub@redhat.com>
5353
5354 Implement P0258R2 - helper for C++17
5355 std::has_unique_object_representations trait
5356 * c-common.h (enum rid): Add RID_HAS_UNIQUE_OBJ_REPRESENTATIONS.
5357 * c-common.c (c_common_reswords): Add
5358 __has_unique_object_representations.
5359
2e69f143
JJ
53602016-10-05 Jakub Jelinek <jakub@redhat.com>
5361
5362 PR sanitizer/66343
5363 * c-ubsan.c (ubsan_instrument_return): Don't call
5364 initialize_sanitizer_builtins here.
5365
700fff34
BE
53662016-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
5367
5368 * c-common.c (c_common_truthvalue_conversion): Warn also for suspicious
5369 conditional expression in boolean context when only one arm is
5370 non-boolean.
5371
9563bfcd
JJ
53722016-10-05 Jakub Jelinek <jakub@redhat.com>
5373
04a32443
JJ
5374 PR sanitizer/77823
5375 * c-ubsan.c (ubsan_instrument_shift): Return NULL_TREE if type0
5376 is not integral.
5377
9563bfcd
JJ
5378 * c-common.c (c_common_reswords): Update comment for C++11.
5379
f1644724
JM
53802016-10-04 Jason Merrill <jason@redhat.com>
5381
5382 * c-common.c (make_tree_vector_from_ctor): New.
5383 * c-common.h: Declare it.
5384
5a79befb
JJ
53852016-10-04 Jakub Jelinek <jakub@redhat.com>
5386
5387 * c-cppbuiltin.c (c_cpp_builtins): Don't define
5388 __LIBGCC_JCR_SECTION_NAME__.
5389
1633d3b9
BE
53902016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
5391
5392 * c-common.c (c_common_truthvalue_conversion): Warn for suspicious
5393 left shift in boolean context.
5394
a2c6e7f2
JJ
53952016-09-29 Jakub Jelinek <jakub@redhat.com>
5396
5397 Implement P0001R1 - C++17 removal of register storage class specifier
5398 * c.opt (Wregister): New warning.
5399 * c-opts.c (c_common_post_options): Enable -Wregister by
5400 default for C++17.
5401
75304c87
JG
54022016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
5403
5404 * c-opts.c (c_common_post_options): Remove special case for
5405 TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard
5406 in C++.
5407
bbfac6da
JJ
54082016-09-27 Jakub Jelinek <jakub@redhat.com>
5409
6e39060a
JJ
5410 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for
5411 -std=c++1z.
5412
bbfac6da
JJ
5413 * c-ada-spec.c (print_ada_declaration): Remove break after return.
5414
e73cf9a2
TP
54152016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
5416
5417 * c-common.c: Include memmodel.h.
5418
c6147dc4
MP
54192016-09-26 Marek Polacek <polacek@redhat.com>
5420
5421 * c-lex.c (c_common_has_attribute): Handle attribute fallthrough.
5422
81fea426
MP
54232016-09-26 Marek Polacek <polacek@redhat.com>
5424
5425 PR c/7652
5426 * c-common.c (c_common_attribute_table): Add fallthrough attribute.
5427 (handle_fallthrough_attribute): New function.
5428 (attribute_fallthrough_p): New function.
5429 * c-common.h (attribute_fallthrough_p): Declare.
5430
9a2300e9
MP
54312016-09-24 Marek Polacek <polacek@redhat.com>
5432
5433 PR c/77490
5434 * c.opt (Wbool-operation): New.
5435
a09e9e35
BE
54362016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
5437
5438 * c-common.c (c_common_truthvalue_conversion): Inhibit
5439 Wint-in-bool-context warning with from_macro_definition_at.
5440 Mention the expression will always evaluate to true.
5441
d43b4ccc
MS
54422016-09-21 Martin Sebor <msebor@redhat.com>
5443
5444 PR bootstrap/77676
5445 * c.opt (fprintf-return-value): Temporarily initialize to zero
5446 to unblock bootstrap failures.
5447
2e1c20b1
JJ
54482016-09-21 Jakub Jelinek <jakub@redhat.com>
5449
5450 PR c++/77651
5451 * c.opt (Waligned-new=): Add RejectNegative.
5452 (faligned-new=): Likewise. Spelling fix - change
5453 aligned_new_threshhold to aligned_new_threshold.
5454 * c-cppbuiltin.c (c_cpp_builtins): Change aligned_new_threshhold
5455 to aligned_new_threshold.
5456
88d0c3f0
MS
54572016-09-20 Martin Sebor <msebor@redhat.com>
5458
5459 PR middle-end/49905
5460 * c.opt: Add -Wformat-length and -fprintf-return-value.
5461
144a96e4
BE
54622016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
5463
5464 PR c++/77434
5465 * c.opt (Wint-in-bool-context): New warning.
5466 * c-common.c (c_common_truthvalue_conversion): Warn on integer
5467 constants in boolean context.
5468
63012d9a
JM
54692016-09-19 Joseph Myers <joseph@codesourcery.com>
5470
5471 * c-common.c (max_align_t_align): Also consider alignment of
5472 float128_type_node.
5473
931388ce
JM
54742016-09-15 Jason Merrill <jason@redhat.com>
5475
5476 * c-common.c (check_cxx_fundamental_alignment_constraints): Check
5477 DECL_EXTERNAL.
5478
38711381
JM
54792016-09-14 Jason Merrill <jason@redhat.com>
5480
5481 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
5482 limit FIELD_DECL, either.
5483
e51fbec3
MP
54842016-09-14 Marek Polacek <polacek@redhat.com>
5485
5486 * c-common.c (c_common_truthvalue_conversion): Use false instead of 0.
5487 * c-common.h (build_unary_op): Change nonconvert parameter type to bool.
5488 * c-omp.c (c_finish_omp_atomic): Use false instead of 0.
5489
254830ba
DM
54902016-09-13 David Malcolm <dmalcolm@redhat.com>
5491
5492 * c-common.c (warn_logical_not_parentheses): Replace
5493 rich_location::add_fixit_insert calls with add_fixit_insert_before
5494 and add_fixit_insert_after, eliminating the "next_loc" calculation.
5495
42763690
JM
54962016-09-13 Jason Merrill <jason@redhat.com>
5497 Tom de Vries <tom@codesourcery.com>
5498
5499 PR c++/77427
5500 * c-common.c (set_underlying_type): Don't treat array as builtin type.
5501
9453eee9
JM
55022016-09-13 Jason Merrill <jason@redhat.com>
5503
5504 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
5505 limit types at all.
5506
e96809e3
JM
55072016-09-12 Jason Merrill <jason@redhat.com>
5508
5509 * c-common.c (check_cxx_fundamental_alignment_constraints): Fix
5510 bit/byte confusion, allow large alignment for types.
5511
54dcdb88
BE
55122016-09-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
5513
5514 PR c++/77496
5515 * c-common.c (warn_for_omitted_condop): Also warn for boolean data.
5516
d1463eb9
DM
55172016-09-12 David Malcolm <dmalcolm@redhat.com>
5518
5519 PR c/72858
5520 * c-format.c (argument_parser::check_argument_type): Add params
5521 "type_start" and "conversion_char". Use the former to generate
5522 offset_to_type_start and pass it and conversion_char to
5523 check_format_types.
5524 (check_format_info_main): Capture the start of the type
5525 information as "type_start", and pass it an format_char
5526 to arg_parser.check_argument_type.
5527 (check_format_types): Provide an example in the leading comment.
5528 Add params "offset_to_type_start" and "conversion_char"; pass
5529 them to format_type_warning calls.
5530 (test_get_modifier_for_format_len): Likewise.
5531 (matching_type_p): New function.
5532 (get_format_for_type): Add param "conversion_char" and move
5533 implementation into...
5534 (get_format_for_type_1): ...new function, called twice.
5535 Use new function matching_type_p rather than checking for
5536 TYPE_CANONICAL equality.
5537 (get_corrected_substring): New function.
5538 (format_type_warning): Provide an example in the leading comment.
5539 Add params "offset_to_type_start" and "conversion_char". Replace
5540 call to get_format_for_type with call to get_corrected_substring
5541 and move rejection of hints for widths/precisions there.
5542 (assert_format_for_type_streq): Add param "conversion_char".
5543 (ASSERT_FORMAT_FOR_TYPE_STREQ): Add param CONVERSION_CHAR.
5544 (test_get_format_for_type_printf): Add conversion chars to the
5545 tests, adding coverage for various combinations of integer
5546 vs double conversions, and for preserving octal and hexadecimal
5547 conversions.
5548 (test_get_format_for_type_scanf): Add conversion chars to the
5549 tests.
5550
5b28efbb
TV
55512016-09-10 Tom de Vries <tom@codesourcery.com>
5552
5553 PR C/71602
5554 * c-common.c (build_va_arg): Handle more strict
5555 targetm.canonical_va_list_type. Replace first argument type error with
5556 assert.
5557
3f0177e7
MS
55582016-09-09 Martin Sebor <msebor@redhat.com>
5559
5560 PR c/77520
5561 PR c/77521
5562 * c-format.c (argument_parser::find_format_char_info): Use %qc
5563 format directive unconditionally.
5564
af63ba4b
JM
55652016-09-09 Jason Merrill <jason@redhat.com>
5566
5567 Implement C++17 new of over-aligned types.
5568 * c.opt: Add -faligned-new and -Waligned-new.
5569 * c-common.c (max_align_t_align): Split out from...
5570 (cxx_fundamental_alignment_p): ...here.
5571 * c-common.h: Declare it.
5572 * c-cppbuiltin.c (c_cpp_builtins): Handle aligned new.
5573
c65248cb
JM
55742016-09-09 Joseph Myers <joseph@codesourcery.com>
5575
5576 * c-cppbuiltin.c (builtin_define_type_width): New function.
5577 (builtin_define_stdint_macros, c_cpp_builtins): Define type width
5578 macros.
5579
e5106e27
DM
55802016-09-07 David Malcolm <dmalcolm@redhat.com>
5581
5582 * c-common.c (get_cpp_ttype_from_string_type): Handle being passed
5583 a POINTER_TYPE.
5584 (substring_loc::get_location): Move to substring-locations.c,
5585 keeping implementation as...
5586 (c_get_substring_location): New function, from the above, reworked
5587 to use accessors rather than member lookup.
5588 * c-common.h (class substring_loc): Move to substring-locations.h,
5589 replacing with a forward decl.
5590 (c_get_substring_location): New decl.
5591 * c-format.c: Include "substring-locations.h".
5592 (format_warning_va): Move to substring-locations.c.
5593 (format_warning_at_substring): Likewise.
5594
ab20d992 55952016-09-06 Martin Sebor <msebor@redhat.com>
a42e7952
MS
5596
5597 PR c/77336
5598 * c-format.c (check_function_format): Avoid issuing warnings for
5599 functions unless they call format functions with non-constant
5600 format strings.
5601
b772a565
RB
56022016-09-06 Richard Biener <rguenther@suse.de>
5603
5604 PR c/77450
5605 * c-common.c (c_common_mark_addressable_vec): Handle
5606 COMPOUND_LITERAL_EXPR.
5607
25ff5dd3
MP
56082016-09-05 Marek Polacek <polacek@redhat.com>
5609
5610 PR c/77423
5611 * c-common.c (bool_promoted_to_int_p): New function.
5612 (expr_has_boolean_operands_p): New function.
5613 (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p.
5614 (maybe_warn_bool_compare): Use bool_promoted_to_int_p.
5615
21234eb5
TV
56162016-09-04 Tom de Vries <tom@codesourcery.com>
5617
5618 revert:
5619 2016-08-29 Tom de Vries <tom@codesourcery.com>
5620
5621 * c-common.c (build_va_arg): Replace first argument type error
5622 with assert.
5623
9dc5773f
JJ
56242016-09-02 Jakub Jelinek <jakub@redhat.com>
5625
5626 PR c/65467
5627 * c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions.
5628 (c_finish_omp_for): Reject _Atomic qualified iterators.
5629
56302016-09-01 Martin Sebor <msebor@redhat.com>
3d7b83b6
MS
5631
5632 * c-ada-spec.c (dump_ada_function_declaration): Increase buffer
5633 size to guarantee it fits the output of the formatted function
5634 regardless of its arguments.
5635
295844f6
MP
56362016-09-01 Marek Polacek <polacek@redhat.com>
5637
5638 PR c/7652
5639 * c-common.c (resolve_overloaded_builtin): Fix formatting. Add
5640 FALLTHRU comments.
5641
3d06b6f2
MP
56422016-08-29 Marek Polacek <polacek@redhat.com>
5643
5644 PR c/77292
5645 * c-common.c (warn_logical_not_parentheses): Don't warn for
5646 a comparison or a logical operator.
5647
34cedad5
TV
56482016-08-29 Tom de Vries <tom@codesourcery.com>
5649
5650 * c-common.c (build_va_arg): Fix type comparison assert.
5651
f162d717
TV
56522016-08-29 Tom de Vries <tom@codesourcery.com>
5653
5654 * c-common.c (build_va_arg): Replace first argument type error
5655 with assert.
5656
ba9bbd6f
TV
56572016-08-29 Tom de Vries <tom@codesourcery.com>
5658
5659 PR c/77398
5660 * c-common.c (build_va_arg): Add first argument error. Build va_arg
5661 with error_mark_node as va_list instead of with illegal va_list.
5662
ebef225f
MP
56632016-08-25 Marek Polacek <polacek@redhat.com>
5664 David Malcolm <dmalcolm@redhat.com>
5665
5666 * c-common.c (warn_logical_not_parentheses): Print fixit hints.
5667 * c-common.h (warn_logical_not_parentheses): Update declaration.
5668
b00e6e75
MP
56692016-08-22 Marek Polacek <polacek@redhat.com>
5670
5671 PR c++/77321
5672 * c-common.c (warn_for_memset): Check type for null.
5673
6dc198e3
JM
56742016-08-22 Joseph Myers <joseph@codesourcery.com>
5675
14ec014e 5676 * c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and
6dc198e3
JM
5677 _FloatNx types for suffixes for built-in functions.
5678
c65699ef
JM
56792016-08-19 Joseph Myers <joseph@codesourcery.com>
5680
5681 PR c/32187
5682 * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32)
5683 (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X)
5684 (RID_FLOAT128X): New enum rid values.
5685 (CASE_RID_FLOATN_NX): New macro.
5686 * c-common.c (c_common_reswords): Add _FloatN and _FloatNx
5687 keywords.
5688 (c_common_type_for_mode): Check for _FloatN and _FloatNx and
5689 corresponding complex types.
5690 (c_common_nodes_and_builtins): For non-C++, register _FloatN and
5691 _FloatNx and corresponding complex types.
5692 (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX.
5693 * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN
5694 and _FloatNx types for the widest type for determining
5695 DECIMAL_DIG. Define __LDBL_DECIMAL_DIG__ as well as
5696 __DECIMAL_DIG__ for long double. Handle FMA_SUFFIX being NULL.
5697 (c_cpp_builtins): Call builtin_define_float_constants for _FloatN
5698 and _FloatNx types.
5699 * c-lex.c (interpret_float): Handle _FloatN and _FloatNx
5700 constants.
5701 * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and
5702 _FloatNx types.
5703
cc015f3a
DM
57042016-08-18 David Malcolm <dmalcolm@redhat.com>
5705
5706 * c-opts.c (c_diagnostic_finalizer): Update for change to
5707 diagnostic_show_locus.
5708
cb18fd07
DM
57092016-08-18 David Malcolm <dmalcolm@redhat.com>
5710
5711 * c-common.c: Include "spellcheck.h".
5712 (cb_get_suggestion): New function.
5713 * c-common.h (cb_get_suggestion): New decl.
5714 * c-lex.c (init_c_lex): Initialize cb->get_suggestion to
5715 cb_get_suggestion.
5716
a76989dc
MP
57172016-08-18 Marek Polacek <polacek@redhat.com>
5718
5719 PR c/71514
5720 * c-common.c (get_atomic_generic_size): Disallow pointer-to-function
5721 and pointer-to-VLA.
5722
65e736c0
DM
57232016-08-16 David Malcolm <dmalcolm@redhat.com>
5724
5725 PR c/72857
5726 * c-common.c (substring_loc::get_range): Rename to...
5727 (substring_loc::get_location): ...this, converting param from a
5728 source_range * to a location_t *. Call
5729 get_source_location_for_substring rather than
5730 get_source_range_for_substring, and pass in m_caret_idx.
5731 * c-common.h (substring_loc::substring_loc): Add param "caret_idx".
5732 (substring_loc::get_range): Replace with...
5733 (substring_loc::get_location): ...this.
5734 (substring_loc::set_caret_index): New method.
5735 (substring_loc): Add field m_caret_idx.
5736 * c-format.c (format_warning_va): Update for above changes.
5737 Rename local "substring_loc" to "fmt_substring_loc" to avoid
5738 clashing with type name.
5739 (format_warning_at_char): Add caret_idx param to substring_loc ctor.
5740 (check_argument_type): Likewise.
5741 (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc"
5742 Use a copy when emitting warnings, setting the caret index from TYPE.
5743
7e1dde14 57442016-08-16 Eric Botcazou <ebotcazou@adacore.com>
8e745a17 5745 Arnaud Charlet <charlet@adacore.com>
7e1dde14
EB
5746
5747 * c-ada-spec.c (dump_number): New function.
5748 (handle_escape_character): Likewise.
5749 (print_ada_macros): Add handling of constant integers and strings.
5750
191816a3
MP
57512016-08-12 Marek Polacek <polacek@redhat.com>
5752
5753 PR c/7652
5754 * c-common.c (scalar_to_vector): Adjust fall through comment.
5755 * c-opts.c (c_common_handle_option): Likewise.
5756 * c-pragma.c (handle_pragma_pack): Add FALLTHRU.
5757 * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust
5758 fall through comment.
5759 * cilk.c (extract_free_variables): Add FALLTHRU.
5760
452df4a4
JM
57612016-08-10 Jason Merrill <jason@redhat.com>
5762
5763 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr.
5764
f3365c12
JM
57652016-08-09 Jason Merrill <jason@redhat.com>
5766
5767 * c-common.c (c_common_attribute_table): vector_size affects type
5768 identity.
5769
f0bc3323
MP
57702016-08-09 Marek Polacek <polacek@redhat.com>
5771
5772 PR c/7652
5773 * c-ada-spec.c (dump_generic_ada_node): Add return.
5774
98e5a19a
JM
57752016-08-09 Jason Merrill <jason@redhat.com>
5776
5777 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for
5778 C++17 constexpr lambdas.
5779
895aa8e1
DM
57802016-08-08 David Malcolm <dmalcolm@redhat.com>
5781
5782 PR c/64955
5783 * c-common.h (selftest::c_format_c_tests): New declaration.
5784 (selftest::run_c_tests): New declaration.
5785 * c-format.c: Include "selftest.h.
5786 (format_warning_va): Add param "corrected_substring" and use
5787 it to add a replacement fix-it hint.
5788 (format_warning_at_substring): Likewise.
5789 (format_warning_at_char): Update for new param of
5790 format_warning_va.
5791 (argument_parser::check_argument_type): Pass "fki" to
5792 check_format_types.
5793 (check_format_types): Add param "fki" and pass it to
5794 format_type_warning.
5795 (deref_n_times): New function.
5796 (get_modifier_for_format_len): New function.
5797 (selftest::test_get_modifier_for_format_len): New function.
5798 (get_format_for_type): New function.
5799 (format_type_warning): Add param "fki" and use it to attempt
5800 to provide hints for argument types when calling
5801 format_warning_at_substring.
5802 (selftest::get_info): New function.
5803 (selftest::assert_format_for_type_streq): New function.
5804 (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro.
5805 (selftest::test_get_format_for_type_printf): New function.
5806 (selftest::test_get_format_for_type_scanf): New function.
5807 (selftest::c_format_c_tests): New function.
5808
e52ed3fe
DM
58092016-08-08 David Malcolm <dmalcolm@redhat.com>
5810
5811 PR c/52952
5812 * c-format.c: Include "diagnostic.h".
5813 (location_column_from_byte_offset): Delete.
5814 (location_from_offset): Delete.
5815 (format_warning_va): New function.
5816 (format_warning_at_substring): New function.
5817 (format_warning_at_char): New function.
5818 (check_format_arg): Capture location of format_tree and pass to
5819 check_format_info_main.
5820 (argument_parser): Add fields "start_of_this_format" and
5821 "format_string_cst".
5822 (flag_chars_t::validate): Add param "format_string_cst". Convert
5823 warning_at call using location_from_offset to call to
5824 format_warning_at_char.
5825 (argument_parser::argument_parser): Add param "format_string_cst_"
5826 and use use it to initialize field "format_string_cst".
5827 Initialize new field "start_of_this_format".
5828 (argument_parser::read_format_flags): Convert warning_at call
5829 using location_from_offset to a call to format_warning_at_char.
5830 (argument_parser::read_any_format_left_precision): Likewise.
5831 (argument_parser::read_any_format_precision): Likewise.
5832 (argument_parser::read_any_other_modifier): Likewise.
5833 (argument_parser::find_format_char_info): Likewise, in three places.
5834 (argument_parser::parse_any_scan_set): Likewise, in one place.
5835 (argument_parser::handle_conversions): Likewise, in two places.
5836 (argument_parser::check_argument_type): Add param "fmt_param_loc"
5837 and use it to make a substring_loc. Pass the latter to
5838 check_format_types.
5839 (check_format_info_main): Add params "fmt_param_loc" and
5840 "format_string_cst". Convert warning_at calls using
5841 location_from_offset to calls to format_warning_at_char. Pass the
5842 new params to the arg_parser ctor. Pass "format_string_cst" to
5843 flag_chars.validate. Pass "fmt_param_loc" to
5844 arg_parser.check_argument_type.
5845 (check_format_types): Convert first param from a location_t
5846 to a const substring_loc & and rename to "fmt_loc". Attempt
5847 to extract the range of the relevant parameter and pass it
5848 to format_type_warning.
5849 (format_type_warning): Convert first param from a location_t
5850 to a const substring_loc & and rename to "fmt_loc". Add
5851 params "param_range" and "type". Replace calls to warning_at
5852 with calls to format_warning_at_substring.
5853
1c4d457e
DM
58542016-08-08 David Malcolm <dmalcolm@redhat.com>
5855
5856 * c-format.c (class flag_chars_t): New class.
5857 (struct length_modifier): New struct.
5858 (class argument_parser): New class.
5859 (flag_chars_t::flag_chars_t): New ctor.
5860 (flag_chars_t::has_char_p): New method.
5861 (flag_chars_t::add_char): New method.
5862 (flag_chars_t::validate): New method.
5863 (flag_chars_t::get_alloc_flag): New method.
5864 (flag_chars_t::assignment_suppression_p): New method.
5865 (argument_parser::argument_parser): New ctor.
5866 (argument_parser::read_any_dollar): New method.
5867 (argument_parser::read_format_flags): New method.
5868 (argument_parser::read_any_format_width): New method.
5869 (argument_parser::read_any_format_left_precision): New method.
5870 (argument_parser::read_any_format_precision): New method.
5871 (argument_parser::handle_alloc_chars): New method.
5872 (argument_parser::read_any_length_modifier): New method.
5873 (argument_parser::read_any_other_modifier): New method.
5874 (argument_parser::find_format_char_info): New method.
5875 (argument_parser::validate_flag_pairs): New method.
5876 (argument_parser::give_y2k_warnings): New method.
5877 (argument_parser::parse_any_scan_set): New method.
5878 (argument_parser::handle_conversions): New method.
5879 (argument_parser::check_argument_type): New method.
5880 (check_format_info_main): Introduce classes argument_parser
5881 and flag_chars_t, moving the code within the loop into methods
5882 of these classes. Make various locals "const".
5883
88fa5555
DM
58842016-08-05 David Malcolm <dmalcolm@redhat.com>
5885
5886 * c-common.c: Include "substring-locations.h".
5887 (get_cpp_ttype_from_string_type): New function.
5888 (g_string_concat_db): New global.
5889 (substring_loc::get_range): New method.
5890 * c-common.h (g_string_concat_db): New declaration.
5891 (class substring_loc): New class.
5892 * c-lex.c (lex_string): When concatenating strings, capture the
5893 locations of all tokens using a new obstack, and record the
5894 concatenation locations within g_string_concat_db.
5895 * c-opts.c (c_common_init_options): Construct g_string_concat_db
5896 on the ggc-heap.
5897
78169471
MP
58982016-07-29 Marek Polacek <polacek@redhat.com>
5899
638fc14f
MP
5900 PR c/71926
5901 * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the
5902 parentheses warning.
5903
78169471
MP
5904 PR c/71574
5905 * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL.
5906
1225d6b1
ML
59072016-07-28 Martin Liska <mliska@suse.cz>
5908
5909 PR gcov-profile/68025
5910 * c-common.c (handle_no_profile_instrument_function_attribute):
5911
ec1e2a40
BE
59122016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
5913
5914 * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of
5915 BITS_PER_UNIT_LOG.
5916
5ec2cd9f
JM
59172016-07-25 Jason Merrill <jason@redhat.com>
5918
5919 PR c++/65970
5920 * c.opt (fconstexpr-loop-limit): New.
5921
9dc5773f 59222016-07-22 Martin Sebor <msebor@redhat.com>
2e6b45af
MS
5923
5924 PR c++/71675
5925 * c-common.c (resolve_overloaded_builtin): Avoid converting
5926 __atomic_compare_exchange_n return type to that of what its
5927 first argument points to.
5928
e3fe09c1
UB
59292016-07-22 Uros Bizjak <ubizjak@gmail.com>
5930
5931 * c-common.c: Use HOST_WIDE_INT_M1U instead of
5932 ~(unsigned HOST_WIDE_INT) 0.
5933
bc91c436
ML
59342016-07-22 Martin Liska <mliska@suse.cz>
5935
5936 PR gcov-profile/69028
5937 PR gcov-profile/62047
5938 * cilk.c (create_cilk_helper_decl): Set location of a new decl
5939 to the current_function_decl.
5940
451dcc66
JM
59412016-07-21 Jason Merrill <jason@redhat.com>
5942
5943 PR c++/65168
5944 * c-common.c (c_common_truthvalue_conversion): Check
5945 c_inhibit_evaluation_warnings for warning about address of
5946 reference.
5947
de6a69ee
DM
59482016-07-20 David Malcolm <dmalcolm@redhat.com>
5949
5950 * c-common.h (lookup_name_fuzzy): Convert return type from tree to
5951 const char *.
5952
d022c55a
JM
59532016-07-15 Jason Merrill <jason@redhat.com>
5954
5955 * c-opts.c (c_common_post_options): Update -fabi-version default to 11.
5956
ddbbcb19
JJ
59572016-07-15 Jakub Jelinek <jakub@redhat.com>
5958
5959 PR c/71858
5960 * c-common.h (enum lookup_name_fuzzy_kind): Add
5961 FUZZY_LOOKUP_FUNCTION_NAME.
5962
d0cf395a
JM
59632016-07-08 Jason Merrill <jason@redhat.com>
5964
5965 P0145: Refining Expression Order for C++.
5966 * c.opts (-fargs-in-order): Rename to -fstrong-eval-order.
5967 * c-opts.c: Adjust.
5968
98d44e93
MT
59692016-07-05 Markus Trippelsdorf <markus@trippelsdorf.de>
5970
5971 PR c++/71214
5972 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.
5973
f9d8d994
TS
59742016-06-29 Thomas Schwinge <thomas@codesourcery.com>
5975
5976 * c-pragma.h (enum pragma_kind): Rename
5977 PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE. Adjust all
5978 users.
5979
4aa83879
RB
59802016-06-29 Richard Biener <rguenther@suse.de>
5981
5982 PR middle-end/71002
5983 * c-common.c (c_common_get_alias_set): Remove union type punning case.
5984
a25bd9e6
JM
59852016-06-24 Jason Merrill <jason@redhat.com>
5986
5987 P0145R2: Refining Expression Order for C++.
5988 * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of
5989 MODIFY_EXPR.
5990
a86451b9
JJ
59912016-06-24 Jakub Jelinek <jakub@redhat.com>
5992
5993 * c-common.c (check_builtin_function_arguments): Require last
5994 argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type.
5995 Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW
5996 if the last argument is pointer to enumerated or boolean type.
5997
1a4f11c8
DM
59982016-06-22 David Malcolm <dmalcolm@redhat.com>
5999
6000 PR c/70339
6001 * c-common.h (enum lookup_name_fuzzy_kind): New enum.
6002 (lookup_name_fuzzy): New prototype.
6003
fe55692c
JDA
60042016-06-21 John David Anglin <danglin@gcc.gnu.org>
6005
6006 * c-common.c (get_source_date_epoch): Use int64_t instead of long long.
6007
4eb24e01
JM
60082016-06-14 Jason Merrill <jason@redhat.com>
6009
6010 P0145R2: Refining Expression Order for C++.
6011 * c.opt (fargs-in-order): New.
6012 * c-opts.c (c_common_post_options): Adjust flag_args_in_order.
6013
ef7cf206
JJ
60142016-06-13 Jakub Jelinek <jakub@redhat.com>
6015
0dda258b
JJ
6016 PR sanitizer/71498
6017 * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
6018 all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.
6019
ef7cf206
JJ
6020 PR preprocessor/71183
6021 * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch
6022 to cb_get_source_date_epoch.
6023
50b15873
JJ
60242016-06-10 Jakub Jelinek <jakub@redhat.com>
6025
6026 PR c/68657
6027 * c.opt (Wpsabi): Add Warning flag.
6028
4d926e34
MS
60292016-06-10 Martin Sebor <msebor@redhat.com>
6030
6031 PR c/71392
14ec014e 6032 * c-common.c (handle_nonnull_attribute): Accept
4d926e34
MS
6033 the nonnull attribute in type-generic builtins.
6034
e01b4e16
MS
60352016-06-09 Martin Sebor <msebor@redhat.com>
6036
6037 PR c/70883
6038 * c-common.c (builtin_function_validate_nargs): Make text of error
6039 message consistent with others like it.
6040
44a845ca
MS
60412016-06-08 Martin Sebor <msebor@redhat.com>
6042 Jakub Jelinek <jakub@redhat.com>
6043
6044 PR c++/70507
6045 PR c/68120
6046 * c-common.c (check_builtin_function_arguments): Handle
6047 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
6048
a80a7051
RB
60492016-06-08 Richard Biener <rguenther@suse.de>
6050
6051 * c-common.c (parse_optimize_options): Improve diagnostic messages.
6052
bfd67b47
RB
60532016-06-07 Richard Biener <rguenther@suse.de>
6054
6055 PR c/61564
6056 * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION
6057 options and warn about others.
6058
15c98b2e
ES
60592016-06-01 Eduard Sanou <dhole@openmailbox.org>
6060
6061 * c-common.c (get_source_date_epoch): Rename to
6062 cb_get_source_date_epoch.
6063 * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
6064 message when the parsing fails. Use error_at instead of fatal_error.
6065 * c-common.h (get_source_date_epoch): Rename to
6066 cb_get_source_date_epoch.
6067 * c-common.h (cb_get_source_date_epoch): Prototype.
6068 * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
6069 * c-common.h (c_omp_region_type): Remove trailing comma.
6070 * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
6071 * c-lex.c (c_lex_with_flags): Remove initialization of
6072 pfile->source_date_epoch.
6073
00631022
JJ
60742016-05-30 Jakub Jelinek <jakub@redhat.com>
6075
6076 PR c++/71349
6077 * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
6078 C_OMP_CLAUSE_SPLIT_TARGET. Put OMP_CLAUSE_NOWAIT to
6079 C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
6080 instead of C_OMP_CLAUSE_SPLIT_FOR.
6081
f17a223d
RB
60822016-05-24 Richard Biener <rguenther@suse.de>
6083
6084 PR middle-end/70434
6085 PR c/69504
6086 * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
6087 (convert_vector_to_array_for_subscript): ... this.
6088 * c-common.c (convert_vector_to_pointer_for_subscript): Use a
6089 VIEW_CONVERT_EXPR to an array type. Rename to ...
6090 (convert_vector_to_array_for_subscript): ... this.
6091
4f2e1536
MP
60922016-05-12 Marek Polacek <polacek@redhat.com>
6093
6094 PR c/70756
6095 * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
6096 size_in_bytes and pass LOC to it.
6097
d6e83a8d
MM
60982016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
6099
6100 PR c/43651
6101 * c.opt (Wduplicate-decl-specifier): New option.
6102
5c3a10fb
MP
61032016-05-11 Marek Polacek <polacek@redhat.com>
6104
6105 PR c++/71024
6106 * c-common.c (diagnose_mismatched_attributes): New function.
6107 * c-common.h (diagnose_mismatched_attributes): Declare.
6108
deef7113
MP
61092016-05-04 Marek Polacek <polacek@redhat.com>
6110
6111 * c.opt (Wdangling-else): New option.
6112
79ce98bc
MP
61132016-05-03 Marek Polacek <polacek@redhat.com>
6114
6115 PR c/70859
6116 * c-common.c (builtin_function_validate_nargs): Add location
6117 parameter. Use it.
6118 (check_builtin_function_arguments): Add location and arguments
6119 parameters. Use them.
6120 * c-common.h (check_builtin_function_arguments): Update declaration.
6121
381cdae4
RB
61222016-05-03 Richard Biener <rguenther@suse.de>
6123
6124 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
6125 allow call args to gimplify to SSA names.
6126
1d793c34
MP
61272016-05-03 Marek Polacek <polacek@redhat.com>
6128
6129 * c-common.h (enum c_omp_region_type): Remove stray comma.
6130
77886428
CP
61312016-05-02 Cesar Philippidis <cesar@codesourcery.com>
6132
6133 * c-common.h (enum c_omp_region_type): Define.
6134
697e0b28
RS
61352016-05-02 Richard Sandiford <richard.sandiford@arm.com>
6136
6137 * c-common.c (shorten_compare): Use wi::to_wide.
6138
e7ff0319
CP
61392016-04-29 Cesar Philippidis <cesar@codesourcery.com>
6140
6141 PR middle-end/70626
6142 * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
6143 * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
6144 reduction clauses in acc parallel loops.
6145
2fff3db8
MP
61462016-04-29 Marek Polacek <polacek@redhat.com>
6147
6148 PR c/70852
6149 * c-common.c (warn_for_memset): Check domain before accessing it.
6150
509063eb
DV
61512016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
6152
6153 PR/69089
6154 * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
6155 "aligned" attribute.
6156
b632761d
JM
61572016-04-28 Jason Merrill <jason@redhat.com>
6158
6159 * c-lex.c (c_common_has_attribute): Handle nodiscard.
6160
174f6622
ES
61612016-04-28 Eduard Sanou <dhole@openmailbox.org>
6162 Matthias Klose <doko@debian.org>
6163
6164 * c-common.c (get_source_date_epoch): New function, gets the environment
7365279f 6165 variable SOURCE_DATE_EPOCH and parses it as long long with error
174f6622
ES
6166 handling.
6167 * c-common.h (get_source_date_epoch): Prototype.
6168 * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
6169
6bc2bb18
RB
61702015-04-27 Ryan Burn <contact@rnburn.com>
6171
6172 PR c++/69024
6173 PR c++/68997
6174 * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
6175 (cilk_recognize_spawn): Renamed from recognize_spawn and change to
6176 external linkage.
6177 (cilk_detect_and_unwrap): Corresponding changes.
6178 (extract_free_variables): Don't extract free variables from
6179 AGGR_INIT_EXPR slot.
6180 * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
6181 (cilk_recognize_spawn): Likewise.
6182
c1e1f433
BS
61832016-04-27 Bernd Schmidt <bschmidt@redhat.com>
6184
6185 * c.opt (Wmemset-elt-size): New option.
6186 * c-common.c (warn_for_memset): New function.
6187 * c-common.h (warn_for_memset): Declare.
6188
d067e05f
JM
61892016-04-25 Jason Merrill <jason@redhat.com>
6190
6191 * c-common.c (handle_unused_attribute): Accept CONST_DECL.
6192 No longer static.
6193 * c-common.h: Declare it.
6194 * c-lex.c (c_common_has_attribute): Add maybe_unused.
6195
9aa36ae5
JM
61962016-04-22 Jason Merrill <jason@redhat.com>
6197
6198 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
6199
477d4906
IV
62002016-04-20 Ilya Verbin <ilya.verbin@intel.com>
6201
6202 PR c++/69363
6203 * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
6204 * c-common.h (c_finish_cilk_clauses): Remove declaration.
6205
fe37c7af
MM
62062016-04-18 Michael Matz <matz@suse.de>
6207
6208 * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
6209 and SET_DECL_ALIGN.
6210
23f2660f
EB
62112016-04-17 Eric Botcazou <ebotcazou@adacore.com>
6212
6213 * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
6214 (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
6215 to incomplete types.
6216 (dump_nested_type): Remove redundant tests and tidy up.
6217 (print_ada_declaration): Also set TREE_VISITED on the declaration of
6218 a type which is the typedef of an original type.
6219
1e77281b
MP
62202016-04-15 Marek Polacek <polacek@redhat.com>
6221
6222 PR c/70651
6223 * c-common.c (build_va_arg): Change two asserts into errors and return
6224 error_mark_node.
6225
b3a77f21
MP
62262016-04-13 Marek Polacek <polacek@redhat.com>
6227
6228 PR c++/70639
6229 * c-indentation.c (should_warn_for_misleading_indentation): Bail out
6230 for switch statements, too.
6231
322b8466
JM
62322016-03-28 Jason Merrill <jason@redhat.com>
6233
6234 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
6235
fbdb6baf
MP
62362016-03-23 Marek Polacek <polacek@redhat.com>
6237
6238 PR c++/69884
6239 * c.opt (Wignored-attributes): New option.
6240
5c240f4d
DM
62412016-03-22 David Malcolm <dmalcolm@redhat.com>
6242
6243 PR c/69993
6244 * c-indentation.c (warn_for_misleading_indentation): Rewrite the
6245 diagnostic text, reversing the order of the warning and note so
6246 that they appear in source order.
6247
14ba7b28
MP
62482016-03-17 Marek Polacek <polacek@redhat.com>
6249
6250 PR c/69407
6251 * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
6252 operations.
6253
08a1cadc
JM
62542016-03-14 Jason Merrill <jason@redhat.com>
6255
2aaeea19
JM
6256 * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
6257
08a1cadc
JM
6258 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
6259
c06d25bb
RB
62602016-03-09 Richard Biener <rguenther@suse.de>
6261
6262 PR c/70143
6263 * c-common.c (strict_aliasing_warning): Add back
6264 alias_sets_conflict_p check.
6265
80aac5c8
JM
62662016-03-08 Jason Merrill <jason@redhat.com>
6267
6268 * c-opts.c (set_std_cxx1z): Don't enable concepts.
6269
64b23c13
DM
62702016-03-04 David Malcolm <dmalcolm@redhat.com>
6271
6272 PR c/68187
6273 * c-indentation.c (get_visual_column): Move code to determine next
6274 tab stop to...
6275 (next_tab_stop): ...this new function.
6276 (line_contains_hash_if): Delete function.
6277 (detect_preprocessor_logic): Delete function.
6278 (get_first_nws_vis_column): New function.
6279 (detect_intervening_unindent): New function.
6280 (should_warn_for_misleading_indentation): Replace call to
6281 detect_preprocessor_logic with a call to
6282 detect_intervening_unindent.
6283
729526f5
DM
62842016-03-04 David Malcolm <dmalcolm@redhat.com>
6285
6286 PR c/68187
6287 * c-indentation.c (should_warn_for_misleading_indentation): When
6288 suppressing warnings about cases where the guard and body are on
6289 the same column, only use the first non-whitespace column in place
6290 of the guard token column when dealing with "else" clauses.
6291 When rejecting aligned BODY and NEXT, loosen the requirement
6292 from equality with the first non-whitespace of guard to simply
6293 that they not be indented relative to it.
6294
e9a35493
RB
62952016-03-04 Richard Biener <rguenther@suse.de>
6296
6297 PR c++/70054
6298 * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
6299 instead of alias_sets_conflict_p.
6300
1be56bc5
MP
63012016-03-01 Marek Polacek <polacek@redhat.com>
6302
6303 PR c++/69795
6304 * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
6305 any DECL.
6306
35886f0b
MS
63072016-02-22 Martin Sebor <msebor@redhat.com>
6308
6309 PR middle-end/69780
6310 * c-common.c (check_builtin_function_arguments): Validate and
6311 reject invalid arguments to __builtin_alloca_with_align.
6312
4246c8da
MW
63132016-02-20 Mark Wielaard <mjw@redhat.com>
6314
6315 PR c/28901
6316 * c.opt (Wunused-const-variable): Turn into Alias for...
6317 (Wunused-const-variable=): New option.
6318
268be88c
BE
63192016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
6320
6321 PR c++/69865
6322 * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
6323 here...
6324 (c_common_init_options): ...to here.
6325 (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
6326
871b3f47
JJ
63272016-02-19 Jakub Jelinek <jakub@redhat.com>
6328
6329 PR c++/69826
6330 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
6331 (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
6332 flag_preprocess_only.
6333
bf14eba2
JJ
63342016-02-16 Jakub Jelinek <jakub@redhat.com>
6335
6336 PR c/69835
6337 * c.opt (Wnonnull-compare): Enable for -Wall.
6338
ba6b3795
JJ
63392016-02-15 Jakub Jelinek <jakub@redhat.com>
6340
6341 PR c++/69797
6342 * c-common.c (sync_resolve_size): Diagnose too few arguments
6343 even when params is non-NULL empty vector.
6344
a011cd92
BS
63452016-02-08 Bernd Schmidt <bschmidt@redhat.com>
6346
6347 PR target/60410
6348 * c.opt (fshort-double): Remove.
6349
46cb9332
MS
63502016-02-05 Martin Sebor <msebor@redhat.com>
6351
6352 PR c++/69662
6353 * c.opt (Warning options): Update -Wplacement-new to take
6354 an optional argument.
6355
e1b81f2b
JJ
63562016-02-01 Jakub Jelinek <jakub@redhat.com>
6357
6358 PR preprocessor/69543
6359 PR c/69558
6360 * c-pragma.c (handle_pragma_diagnostic): Pass input_location
6361 instead of loc to control_warning_option.
6362
b6adbb9f
NS
63632016-02-01 Nathan Sidwell <nathan@codesourcery.com>
6364
6365 * c.opt (fopenacc-dim=): New option.
6366
5d70666e
RB
63672016-01-27 Ryan Burn <contact@rnburn.com>
6368
6369 PR cilkplus/69267
6370 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
6371 gimplify_arg. Removed superfluous post_p argument.
6372 * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
6373 superfluous post_p argument.
6374 * c-gimplify.c (c_gimplify_expr): Likewise.
6375
01e1dea3
DM
63762016-01-26 David Malcolm <dmalcolm@redhat.com>
6377
6378 PR other/69006
6379 * c-opts.c (c_diagnostic_finalizer): Replace invocation of
6380 pp_newline_and_flush with pp_flush.
6381
9f04a53e
MS
63822016-01-20 Martin Sebor <msebor@redhat.com>
6383
6384 PR c/69405
6385 * c-common.c (sync_resolve_size): Avoid printing diagnostic about
6386 an incompatible argument when the argument isn't a valid tree node.
6387
7f26f7df
JM
63882016-01-18 Jason Merrill <jason@redhat.com>
6389
6390 PR c++/68767
6391 * c-common.c (check_function_arguments_recurse): Fold the whole
6392 COND_EXPR, not just the condition.
6393
f62bf092
TV
63942016-01-18 Tom de Vries <tom@codesourcery.com>
6395
6396 * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
6397 classify as loop clause.
6398
e0a575ff
JJ
63992016-01-15 Jakub Jelinek <jakub@redhat.com>
6400
6401 PR bootstrap/68271
6402 * c-pragma.c (c_register_pragma_1): Adjust comment to note that
6403 C++ FE no longer has limit on number of pragmas.
6404
64052015-01-14 Ryan Burn <contact@rnburn.com>
b6e3db06
RB
6406
6407 PR c++/69048
6408 * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
c47eaca6 6409 to add missing cleanup point.
b6e3db06 6410
c7df95d8
DM
64112016-01-14 David Malcolm <dmalcolm@redhat.com>
6412
6413 PR c++/68819
6414 * c-indentation.c (get_visual_column): Add location_t param.
6415 Handle the column number being zero by effectively disabling the
6416 warning, with an "inform".
6417 (should_warn_for_misleading_indentation): Add location_t argument
6418 for all uses of get_visual_column.
6419
21efdd80
PP
64202016-01-10 Patrick Palka <ppalka@gcc.gnu.org>
6421
6422 PR c++/69029
6423 * c-indentation.c (should_warn_for_misleading_indentation):
6424 Don't warn about do-while statements.
6425
7a127fa7
MS
64262016-01-07 Martin Sebor <msebor@redhat.com>
6427
6428 PR c/68966
6429 * c-common.c (sync_resolve_size): Reject first argument when it's
6430 a pointer to _Bool.
6431
c589e975
DM
64322016-01-05 David Malcolm <dmalcolm@redhat.com>
6433
6434 PR c/69122
6435 * c-indentation.c (get_visual_column): Remove default argument.
6436 (should_warn_for_misleading_indentation): For the multiline case,
6437 update call to get_visual_column for next_stmt_exploc so that it
6438 captures the location of the first non-whitespace character in the
6439 relevant line. Don't issue warnings if there is non-whitespace
6440 before the next statement.
6441
818ab71a
JJ
64422016-01-04 Jakub Jelinek <jakub@redhat.com>
6443
6444 Update copyright years.
6445
745e411d
DM
64462015-12-21 David Malcolm <dmalcolm@redhat.com>
6447
6448 * c-common.c (binary_op_error): Convert first param from
6449 location_t to rich_location * and use it when emitting an error.
6450 * c-common.h (binary_op_error): Convert first param from
6451 location_t to rich_location *.
6452
de67c4c3
DM
64532015-12-16 David Malcolm <dmalcolm@redhat.com>
6454
6455 * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
6456 * c-lex.c (conflict_marker_get_final_tok_kind): New function.
6457
4a38b02b
IV
64582015-12-15 Ilya Verbin <ilya.verbin@intel.com>
6459
6460 * c-common.c (c_common_attribute_table): Handle "omp declare target
6461 link" attribute.
6462
54d62f51
JJ
64632015-12-14 Jakub Jelinek <jakub@redhat.com>
6464
6465 PR c/68833
6466 * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
6467
8d4227c8
TB
64682014-12-12 Tobias Burnus <burnus@net-b.de>
6469
6470 PR fortran/68815
6471 * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
6472 specifiers (%d, %i,%u and %c).
6473
f6069ccc
DM
64742015-12-10 David Malcolm <dmalcolm@redhat.com>
6475
6476 * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
6477
63bbf46d
JJ
64782015-12-08 Jakub Jelinek <jakub@redhat.com>
6479
6480 PR c/48088
6481 PR c/68657
6482 * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
6483 * c-pragma.c (handle_pragma_diagnostic): Adjust
6484 control_warning_option caller.
6485
f79520bb
DM
64862015-12-07 David Malcolm <dmalcolm@redhat.com>
6487
6488 * c-common.c (c_cpp_error): Update for change to
6489 rich_location::set_range.
6490
b3d5bc62
JJ
64912015-12-04 Paolo Bonzini <bonzini@gnu.org>
6492
6493 * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
6494 shifting 1 out of the sign bit.
6495
64962015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
6497
6498 * c-common.c (c_common_attribute_table[]): Update max arguments
6499 count for "simd" attribute.
6500 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
6501
6eb4a537
JJ
65022015-12-03 Jakub Jelinek <jakub@redhat.com>
6503
6504 PR preprocessor/57580
6505 * c-ppoutput.c (print): Change printed field to bool.
6506 Move src_file last for smaller padding.
6507 (init_pp_output): Set print.printed to false instead of 0.
6508 (scan_translation_unit): Fix up formatting. Set print.printed
6509 to true after printing something other than newline.
6510 (scan_translation_unit_trad): Set print.printed to true instead of 1.
6511 (maybe_print_line_1): Set print.printed to false instead of 0.
6512 (print_line_1): Likewise.
6513 (do_line_change): Set print.printed to true instead of 1.
6514 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
6515 dump_macro): Set print.printed to false after printing newline.
6516
4250754e
JM
65172015-12-02 Jason Merrill <jason@redhat.com>
6518
f479b43d
JM
6519 * c-common.c (fold_for_warn): New.
6520 (warn_logical_operator, warn_tautological_cmp)
6521 (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
6522
4250754e
JM
6523 * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
6524 (c_fully_fold_internal, decl_constant_value_for_optimization):
6525 Move to c/c-fold.c.
6526 * c-common.h: Don't declare decl_constant_value_for_optimization.
6527
e9e32ee6
JM
65282015-12-02 Joseph Myers <joseph@codesourcery.com>
6529
6530 PR c/68162
6531 * c-common.h (c_build_qualified_type): Add extra default
6532 arguments.
6533
37d5ad46
JB
65342015-12-01 Julian Brown <julian@codesourcery.com>
6535 Cesar Philippidis <cesar@codesourcery.com>
6536 James Norris <James_Norris@mentor.com>
6537
6538 * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
6539 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
6540 (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
6541
f07862c7
EB
65422015-11-30 Eric Botcazou <ebotcazou@adacore.com>
6543
6544 * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
6545 (decl_sloc_common): Delete and move bulk of processing to...
6546 (decl_sloc): ...here.
6547 (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
6548 (dump_ada_double_name): Remove S parameter and compute the suffix.
6549 (dump_ada_array_type): Add PARENT parameter. Simplify computation of
6550 element type and deal with an anonymous one.
6551 (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
6552 (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type
6553 and remove reference to QUAL_UNION_TYPE.
6554 (dump_nested_types): Make 2 passes on the fields and move bulk to...
6555 (dump_nested_type): ...here. New function extracted from above.
6556 Generate a full declaration for anonymous element type of arrays.
6557 (print_ada_declaration): Really skip anonymous declarations. Remove
6558 references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type.
6559 Clean up processing of declarations of array types and objects.
6560 (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
6561 Remove obsolete code and tidy up.
6562
75c8aac3
JH
65632015-11-29 Jan Hubicka <hubicka@ucw.cz>
6564
6565 PR c/67581
6566 * c-common.c (handle_transparent_union_attribute): Update
6567 also type variants.
6568
b58d3df2
ML
65692015-11-27 Martin Liska <mliska@suse.cz>
6570
6571 PR c++/68312
6572 * array-notation-common.c (cilkplus_extract_an_triplets):
6573 Release vector of vectors.
6574 * cilk.c (gimplify_cilk_spawn): Free allocated memory.
6575
89a01fcf
EB
65762015-11-26 Eric Botcazou <ebotcazou@adacore.com>
6577
6578 PR c++/68527
6579 * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
6580 (print_ada_struct_decl): Likewise.
6581
cc5c5226
IZ
65822015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
6583
6584 PR c++/68001
6585 * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
6586 * cilk.c (recognize_spawn): Determine location in a more precise
6587 way.
6588
269adb9d
JM
65892015-11-19 Jason Merrill <jason@redhat.com>
6590
6591 * c-common.c (shorten_compare): But look through macros from
6592 system headers.
6593
d0eccfcd
JM
65942015-11-18 Jason Merrill <jason@redhat.com>
6595
6596 * c-common.c (shorten_compare): Don't -Wtype-limits if the
6597 non-constant operand comes from a macro.
6598
3e44547c
JM
65992015-11-17 Jason Merrill <jason@redhat.com>
6600
6601 PR bootstrap/68346
6602 * c-common.c (warn_tautological_cmp): Fold before checking for
6603 constants.
6604
0f62c7a0
MP
66052015-11-16 Marek Polacek <polacek@redhat.com>
6606
6607 PR c++/68362
6608 * c-common.c (check_case_bounds): Fold low and high cases.
6609
a868811e
MP
66102015-11-16 Marek Polacek <polacek@redhat.com>
6611
6612 * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
6613 * c-common.c (c_common_get_alias_set): Likewise.
6614 (handle_visibility_attribute): Likewise.
6615
fff77217
KY
66162015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
6617
6618 * c-common.c (handle_simd_attribute): New.
6619 (struct attribute_spec): Add entry for "simd".
6620 (handle_simd_attribute): New.
6621
269e63b7
KT
66222015-11-13 Kai Tietz <ktietz70@googlemail.com>
6623
6624 * c-lex.c (interpret_float): Use fold_convert.
6625
ebedc9a3
DM
66262015-11-13 David Malcolm <dmalcolm@redhat.com>
6627
6628 * c-common.c (c_fully_fold_internal): Capture existing souce_range,
6629 and store it on the result.
6630 * c-opts.c (c_common_init_options): Set
6631 global_dc->colorize_source_p.
6632
6e232ba4
JN
66332015-11-12 James Norris <jnorris@codesourcery.com>
6634 Joseph Myers <joseph@codesourcery.com>
6635
7365279f 6636 * c-pragma.c (oacc_pragmas): Add entry for declare directive.
6e232ba4
JN
6637 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
6638 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
6639 PRAGMA_OACC_CLAUSE_LINK.
6640
e78bede6
MP
66412015-11-11 Marek Polacek <polacek@redhat.com>
6642
6643 PR c/68107
6644 PR c++/68266
6645 * c-common.c (valid_array_size_p): New function.
6646 * c-common.h (valid_array_size_p): Declare.
6647
3f8257db 66482015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
4ac93c7c
DH
6649
6650 PR bootstrap/68271
6651 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
6652
69f293c9
AM
66532015-11-11 Andrew MacLeod <amacleod@redhat.com>
6654
6655 * array-notation-common.c: Remove unused header files.
6656 * c-ada-spec.c: Likewise.
6657 * c-cilkplus.c: Likewise.
6658 * c-common.c: Likewise.
6659 * c-cppbuiltin.c: Likewise.
6660 * c-dump.c: Likewise.
6661 * c-format.c: Likewise.
6662 * c-gimplify.c: Likewise.
6663 * c-indentation.c: Likewise.
6664 * c-lex.c: Likewise.
6665 * c-omp.c: Likewise.
6666 * c-opts.c: Likewise.
6667 * c-pch.c: Likewise.
6668 * c-ppoutput.c: Likewise.
6669 * c-pragma.c: Likewise.
6670 * c-pretty-print.c: Likewise.
6671 * c-semantics.c: Likewise.
6672 * c-ubsan.c: Likewise.
6673 * cilk.c: Likewise.
6674 * stub-objc.c: Likewise.
6675
3a40d81d
NS
66762015-11-09 Thomas Schwinge <thomas@codesourcery.com>
6677 Cesar Philippidis <cesar@codesourcery.com>
6678 James Norris <jnorris@codesourcery.com>
6679 Julian Brown <julian@codesourcery.com>
6680 Nathan Sidwell <nathan@codesourcery.com>
6681
6682 * c-pragma.c (oacc_pragmas): Add "routine".
6683 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
6684
ee45a32d
EB
66852015-11-08 Eric Botcazou <ebotcazou@adacore.com>
6686
6687 * c-common.c (c_common_attributes): Add scalar_storage_order.
6688 (handle_scalar_storage_order_attribute): New function.
6689 * c-pragma.c (global_sso): New variable.
6690 (maybe_apply_pragma_scalar_storage_order): New function.
6691 (handle_pragma_scalar_storage_order): Likewise.
6692 (init_pragma): Register scalar_storage_order.
6693 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
6694 * c.opt (Wscalar-storage-order): New warning.
6695 (fsso-struct=): New option.
6696
eb11eb15
MS
66972015-11-08 Martin Sebor <msebor@redhat.com>
6698
6699 * c.opt (Wplacement-new): Add a period to the end of a sentence.
6700
0aad0198
RS
67012015-11-07 Richard Sandiford <richard.sandiford@arm.com>
6702
6703 * c-common.c: Don't undef DEF_BUILTIN.
6704
8a645150
DM
67052015-11-06 David Malcolm <dmalcolm@redhat.com>
6706
6707 * c-common.c (c_cpp_error): Convert parameter from location_t to
6708 rich_location *. Eliminate the "column_override" parameter and
6709 the call to diagnostic_override_column.
6710 Update the "done_lexing" clause to set range 0
6711 on the rich_location, rather than overwriting a location_t.
6712 * c-common.h (c_cpp_error): Convert parameter from location_t to
6713 rich_location *. Eliminate the "column_override" parameter.
6714
7a5e4956
CP
67152015-11-05 Cesar Philippidis <cesar@codesourcery.com>
6716 Thomas Schwinge <thomas@codesourcery.com>
6717 James Norris <jnorris@codesourcery.com>
6718
6719 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
6720 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
6721 clauses with parallel and kernels and loops.
6722 * c-pragma.h (enum pragma_omp_clause): Add entries for
6723 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
6724 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
6725 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
6726 INDEPENDENT,SEQ}.
6727 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
6728
e2f5cc96
MS
67292015-11-05 Martin Sebor <msebor@redhat.com>
6730
6731 PR c++/67942
6732 * c.opt (-Wplacement-new): New option.
6733
e01d41e5
JJ
67342015-11-05 Jakub Jelinek <jakub@redhat.com>
6735
6736 * c-common.h (c_finish_omp_atomic): Add TEST argument.
6737 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
6738 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
6739 save_expr or create_tmp_var* if TEST is true.
6740 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
6741 Don't call add_stmt here.
6742 (struct c_omp_check_loop_iv_data): New type.
6743 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
6744 c_omp_check_loop_iv_exprs): New functions.
6745 (c_omp_split_clauses): Adjust for lastprivate being allowed on
6746 distribute.
6747 (c_omp_declare_simd_clauses_to_numbers): Change
6748 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
6749 (c_omp_declare_simd_clauses_to_decls): Similarly change those
6750 from numbers to PARM_DECLs.
6751
595278be
MM
67522015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
6753
6754 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
6755 flag_checking.
6756
3f8257db 67572015-11-03 Bernd Schmidt <bschmidt@redhat.com>
c85158de
MS
6758
6759 PR c++-common/67882
b3d5bc62
JJ
6760 * c-common.h (fold_offsetof_1): Add argument.
6761 * c-common.c (fold_offsetof_1): Diagnose more invalid
c85158de
MS
6762 offsetof expressions that reference elements past the end of
6763 an array.
6764
4bf9e5a8
TS
67652015-11-03 Thomas Schwinge <thomas@codesourcery.com>
6766 Chung-Lin Tang <cltang@codesourcery.com>
6767
6768 * c-pragma.c (oacc_pragmas): Add "atomic".
6769 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
6770
3b1661a9
ES
67712015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
6772
6773 * c-common.c (handle_target_clones_attribute): New.
6774 (c_common_attribute_table): Add handle_target_clones_attribute.
6775 (handle_always_inline_attribute): Add check on target_clones attribute.
6776 (handle_target_attribute): Ditto.
6777
2adfab87
AM
67782015-10-29 Andrew MacLeod <amacleod@redhat.com>
6779
6780 * array-notation-common.c: Reorder #include's and remove duplicates.
6781 * c-ada-spec.c: Likewise.
6782 * c-cilkplus.c: Likewise.
6783 * c-common.c: Likewise.
6784 * c-cppbuiltin.c: Likewise.
6785 * c-dump.c: Likewise.
6786 * c-format.c: Likewise.
6787 * c-gimplify.c: Likewise.
6788 * c-indentation.c: Likewise.
6789 * c-lex.c: Likewise.
6790 * c-omp.c: Likewise.
6791 * c-opts.c: Likewise.
6792 * c-pch.c: Likewise.
6793 * c-ppoutput.c: Likewise.
6794 * c-pragma.c: Likewise.
6795 * c-pretty-print.c: Likewise.
6796 * c-semantics.c: Likewise.
6797 * c-ubsan.c: Likewise.
6798 * cilk.c: Likewise.
6799 * stub-objc.c: Likewise.
6800
d90ec4f2
JM
68012015-10-28 Jason Merrill <jason@redhat.com>
6802
6803 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
6804
88bae6f4
TS
68052015-10-27 Thomas Schwinge <thomas@codesourcery.com>
6806 James Norris <jnorris@codesourcery.com>
6807 Cesar Philippidis <cesar@codesourcery.com>
6808
6809 PR c/64765
6810 PR c/64880
6811 * c-common.h (c_oacc_split_loop_clauses): Declare function.
6812 * c-omp.c (c_oacc_split_loop_clauses): New function.
6813
b1726d6c
MS
68142015-10-21 Martin Sebor <msebor@redhat.com>
6815
6816 PR driver/68043
6817 * c.opt: End each sentence that describes an option with a period.
6818
fa60eeb9
MP
68192015-10-20 Marek Polacek <polacek@redhat.com>
6820
6821 * array-notation-common.c (is_cilkplus_vector_p): Define.
6822 * c-common.h (is_cilkplus_vector_p): Declare.
6823
95979049
MP
68242015-10-20 Marek Polacek <polacek@redhat.com>
6825
6826 * c.opt (std=gnu++11): Do not describe as experimental.
6827 (std=gnu++14): Likewise.
6828
2a9fb712
JM
68292015-10-19 Jason Merrill <jason@redhat.com>
6830
6831 * c-cppbuiltin.c (c_cpp_builtins): Define
6832 __cpp_nontype_template_args.
6833
13b380a3
JM
68342015-10-19 Jason Merrill <jason@redhat.com>
6835
6836 * c-cppbuiltin.c (c_cpp_builtins): Define
6837 __cpp_enumerator_attributes, __cpp_fold_expressions,
6838 __cpp_unicode_characters.
6839
d9a6bd32
JJ
68402015-10-13 Jakub Jelinek <jakub@redhat.com>
6841 Aldy Hernandez <aldyh@redhat.com>
6842
6843 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
6844 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
6845 (c_define_builtins): Likewise.
6846 * c-common.h (enum c_omp_clause_split): Add
6847 C_OMP_CLAUSE_SPLIT_TASKLOOP.
6848 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
6849 (c_finish_omp_for): Add ORIG_DECLV argument.
6850 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
6851 201511 instead of 201307.
6852 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
6853 OMP_CRITICAL_CLAUSES to it.
6854 (c_finish_omp_ordered): Add CLAUSES argument, set
6855 OMP_ORDERED_CLAUSES to it.
6856 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
6857 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
6858 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
6859 constructs and new OpenMP 4.5 clauses. Clear
6860 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
6861 verification code.
6862 * c-pragma.c (omp_pragmas_simd): Add taskloop.
6863 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
6864 (enum pragma_omp_clause): Add
6865 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
6866 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
6867
624d31fe
RS
68682015-10-05 Richard Sandiford <richard.sandiford@arm.com>
6869
6870 * c-lex.c (interpret_float): Use real_equal instead of
6871 REAL_VALUES_EQUAL.
6872
b8fd7909
JM
68732015-10-04 Jason Merrill <jason@redhat.com>
6874
6875 Implement N4514, C++ Extensions for Transactional Memory.
6876 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
6877 (c_common_attribute_table): Add transaction_safe_dynamic.
6878 transaction_safe now affects type identity.
6879 (handle_tm_attribute): Handle transaction_safe_dynamic.
6880 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
6881 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
6882 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
6883 (D_TRANSMEM): New.
6884 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
6885 * c-pretty-print.c (pp_c_attributes_display): Don't print
6886 transaction_safe in C++.
6887
12651878
MP
68882015-10-02 Marek Polacek <polacek@redhat.com>
6889
6890 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
6891
3e3b8d63
MP
68922015-10-02 Marek Polacek <polacek@redhat.com>
6893
6894 PR c/64249
6895 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
6896 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
6897 * c.opt (Wduplicated-cond): New option.
6898
0d1a8f75
JM
68992015-10-01 Joseph Myers <joseph@codesourcery.com>
6900
6901 * c.opt (std=c11): Do not describe as experimental.
6902 (std=gnu11): Likewise.
6903 (std=iso9899:2011): Likewise.
6904
3e32ee19
NS
69052015-09-28 Nathan Sidwell <nathan@codesourcery.com>
6906
6907 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
6908 (DEF_FUNCTION_TYPE_VAR_11): Delete.
6909
974348ee
MP
69102015-09-25 Marek Polacek <polacek@redhat.com>
6911
6912 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
6913 (ubsan_instrument_shift): Likewise.
6914
15dbc1a6
MP
69152015-09-25 Marek Polacek <polacek@redhat.com>
6916
6917 PR sanitizer/64906
6918 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
6919
6b95d7cc
PP
69202015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
6921
6922 * c-indentation.c (should_warn_for_misleading_indentation):
6923 Compare next_stmt_vis_column with guard_line_first_nws instead
6924 of with guard_line_vis_column.
6925
c1822f9c
MLI
69262015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
6927
6928 PR c/49654
6929 PR c/49655
6930 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
6931 options and options not valid for the current language.
6932
d5398058
PP
69332015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
6934
6935 * c-indentation.c (should_warn_for_misleading_indentation):
6936 Float out and consolidate the calls to get_visual_column that
6937 are passed guard_exploc as an argument. Compare
6938 next_stmt_vis_column with guard_line_first_nws instead of with
6939 body_line_first_nws.
6940
6b333269
NS
69412015-09-22 Nathan Sidwell <nathan@codesourcery.com>
6942
6943 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
6944 Wnamespaces): New C++ warnings.
6945
a75f1574
JM
69462015-09-22 Jason Merrill <jason@redhat.com>
6947
6948 * c-common.h (abi_compat_version_crosses): New.
6949 (warn_abi_version): Declare.
6950 * c-common.c: Define it.
6951 * c-opts.c (c_common_post_options): Handle it.
6952 flag_abi_compat_version defaults to 8.
6953
bdaaa8b7
VV
69542015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
6955
6956 Complete the implementation of N4230, Nested namespace definition.
6957 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
6958 __cpp_nested_namespace_definitions.
6959
eaa797e8
MLI
69602015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
6961
6962 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
6963
c4914de6
MLI
69642015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
6965
6966 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
6967 when warning.
6968 * c-pragma.h (pragma_lex): Add optional loc argument.
6969
fcb87c50
MM
69702015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
6971
6972 * c-format.c (check_format_arg): Adjust to use common block size in all
6973 object pools.
6974
31bdd08a
DM
69752015-09-15 David Malcolm <dmalcolm@redhat.com>
6976
6977 * c-format.c (location_from_offset): Update for change in
6978 signature of location_get_source_line.
6979 * c-indentation.c (get_visual_column): Likewise.
6980 (line_contains_hash_if): Likewise.
6981
aa9f4b4c
MP
69822015-09-14 Marek Polacek <polacek@redhat.com>
6983
6984 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
6985 setting various warnings.
6986
aa256c4a
MP
69872015-09-14 Marek Polacek <polacek@redhat.com>
6988
6989 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
6990 a negative value.
6991
0f876f22
MW
69922015-09-11 Mark Wielaard <mjw@redhat.com>
6993
6994 PR c/28901
6995 * c.opt (Wunused-variable): Option from common.opt.
6996 (Wunused-const-variable): New option.
6997
273aa49e
PC
69982015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
6999
7000 PR c++/53184
7001 * c.opt ([Wsubobject-linkage]): Add.
7002
1807ffc1
MS
70032015-09-03 Martin Sebor <msebor@redhat.com>
7004
7005 PR c/66516
7006 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
7007 functions.
7008 * c-common.c (reject_gcc_builtin): Define.
7009
38942840
BI
70102015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
7011
7012 PR middle-end/60586
7013 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
7014 prototype.
7015 * c-gimplify.c (c_gimplify_expr): Added a call to the function
7016 cilk_gimplify_call_params_in_spawned_fn.
7017 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
7018 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
7019 unwrapping.
7020
c316b5e4
MP
70212015-08-25 Marek Polacek <polacek@redhat.com>
7022
7023 PR middle-end/67330
7024 * c-common.c (handle_weak_attribute): Don't check whether the
7025 visibility can be changed here.
7026
584a7c46
MLI
70272015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
7028
7029 * c-lex.c (c_lex_with_flags): Use explicit locations.
7030
a79683d5
TS
70312015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
7032
7033 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
7034 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
7035
61717a45
FXC
70362015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7037
7038 PR middle-end/36757
7039 * c-common.c (check_builtin_function_arguments): Add check
7040 for BUILT_IN_SIGNBIT argument.
7041
329524f5
PC
70422015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
7043
7044 PR c++/67160
7045 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
7046 in c++1z mode.
7047
4ee55665
MP
70482015-08-17 Marek Polacek <polacek@redhat.com>
7049
7050 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
7051 with whitespaces before qualifier names.
7052
b893e375
MP
70532015-08-12 Marek Polacek <polacek@redhat.com>
7054
7055 PR c++/55095
7056 * c-common.c (maybe_warn_shift_overflow): Properly handle
7057 left-shifting 1 into the sign bit.
7058
c2d89095
MLI
70592015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
7060
7061 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
7062
971e17ff
AS
70632015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
7064 Braden Obrzut <admin@maniacsvault.net>
7065 Jason Merrill <jason@redhat.com>
7066
7067 Add C++ Concepts TS support.
7068 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
7069 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
7070 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
7071 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
7072 * c-opts.c (set_std_cxx1z): Set flag_concepts.
7073 * c.opt (fconcepts): New.
7074
b3d5bc62
JJ
70752015-08-02 Martin Sebor <msebor@redhat.com>
7076
7077 * c.opt (-Wframe-address): New warning option.
7078
8ebca419
PP
70792015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
7080
7081 * c-indentation.c (should_warn_for_misleading_indentation):
7082 Improve heuristics.
7083
1a1e101f
PP
70842015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
7085
7086 * c-indentation.c (get_visual_column): Add parameter first_nws,
7087 use it. Update comment documenting the function.
7088 (is_first_nonwhitespace_on_line): Remove.
7089 (should_warn_for_misleading_indentation): Replace usage of
7090 of is_first_nonwhitespace_on_line with get_visual_column.
7091
992118a1
PP
70922015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
7093
7094 * c-indentation.h (struct token_indent_info): Define.
7095 (get_token_indent_info): Define.
7096 (warn_for_misleading_information): Declare.
7097 * c-common.h (warn_for_misleading_information): Remove.
7098 * c-identation.c (warn_for_misleading_indentation):
7099 Change declaration to take three token_indent_infos. Adjust
7100 accordingly.
7101 * c-identation.c (should_warn_for_misleading_indentation):
7102 Likewise. Bail out early if the body is a compound statement.
7103 (guard_tinfo_to_string): Define.
7104
e8fa3817
JM
71052015-07-30 Jason Merrill <jason@redhat.com>
7106
7107 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
7108 '*' for reference decay.
7109
173864e8
MP
71102015-07-30 Marek Polacek <polacek@redhat.com>
7111
7112 * c-common.c (warn_tautological_cmp): Bail for float types.
7113
f2afe6dd
MP
71142015-07-27 Marek Polacek <polacek@redhat.com>
7115
7116 PR bootstrap/67030
7117 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
7118
05b28fd6
MP
71192015-07-27 Marek Polacek <polacek@redhat.com>
7120
7121 PR c++/66555
7122 PR c/54979
7123 * c-common.c (find_array_ref_with_const_idx_r): New function.
7124 (warn_tautological_cmp): New function.
7125 * c-common.h (warn_tautological_cmp): Declare.
7126 * c.opt (Wtautological-compare): New option.
7127
5a5062b8
MP
71282015-07-23 Marek Polacek <polacek@redhat.com>
7129
7130 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
7131 (ubsan_instrument_shift): Likewise.
7132
dc891fe7
MP
71332015-07-23 Marek Polacek <polacek@redhat.com>
7134
7135 PR sanitizer/66908
7136 * c-ubsan.c: Include gimplify.h.
7137 (ubsan_instrument_division): Unshare OP0 and OP1.
7138 (ubsan_instrument_shift): Likewise.
7139
451b5e48
MP
71402015-07-20 Marek Polacek <polacek@redhat.com>
7141 Richard Sandiford <richard.sandiford@arm.com>
7142
7143 PR c++/55095
7144 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
7145 Use EXPR_LOC_OR_LOC.
7146 (maybe_warn_shift_overflow): New function.
7147 * c-common.h (maybe_warn_shift_overflow): Declare.
7148 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
7149 * c.opt (Wshift-overflow): New option.
7150
fb0b2914
ML
71512015-07-16 Martin Liska <mliska@suse.cz>
7152
7153 * c-format.c (static void check_format_info_main): Use
7154 object_allocator instead of pool_allocator.
7155 (check_format_arg): Likewise.
7156 (check_format_info_main): Likewise.
7157
903f5c23
AM
71582015-07-15 Andrew MacLeod <amacleod@redhat.com>
7159
7160 * c-opts.c: Remove multiline #include comment.
7161
026c3cfd
AH
71622015-07-12 Aldy Hernandez <aldyh@redhat.com>
7163
7164 * c-common.c: Fix double word typos.
7165
bb49ee66
EB
71662015-07-10 Eric Botcazou <ebotcazou@adacore.com>
7167
7168 * c-ada-spec.h (cpp_operation): Revert latest change.
7169 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
7170 constructors and destructors.
7171
1916bcb5
AM
71722015-07-09 Andrew MacLeod <amacleod@redhat.com>
7173
7174 * c-common.h: Adjust includes for flags.h changes.
7175 * stub-objc.c: Likewise.
026c3cfd 7176
a9dcd529
EB
71772015-07-08 Eric Botcazou <ebotcazou@adacore.com>
7178
7179 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
7180 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
7181
b03b462f
JJ
71822015-07-08 Jakub Jelinek <jakub@redhat.com>
7183
7184 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
7185 are to be removed, return NULL rather than original clauses list.
7186
c7131fb2
AM
71872015-07-07 Andrew MacLeod <amacleod@redhat.com>
7188
7189 * array-notation-common.c: Adjust includes.
7190 * c-ada-spec.c: Likewise.
7191 * c-cilkplus.c: Likewise.
7192 * c-common.h: Likewise.
7193 * c-cppbuiltin.c: Likewise.
7194 * c-dump.c: Likewise.
7195 * c-format.c: Likewise.
7196 * c-gimplify.c: Likewise.
7197 * c-indentation.c: Likewise.
7198 * c-lex.c: Likewise.
7199 * c-omp.c: Likewise.
7200 * c-opts.c: Likewise.
7201 * c-pch.c: Likewise.
7202 * c-ppoutput.c: Likewise.
7203 * c-pragma.c: Likewise.
7204 * c-pretty-print.c: Likewise.
7205 * c-semantics.c: Likewise.
7206 * c-ubsan.c: Likewise.
7207 * cilk.c: Likewise.
7208 * stub-objc.c: Likewise.
7209
2a7fb83f
EB
72102015-07-07 Eric Botcazou <ebotcazou@adacore.com>
7211
7212 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
7213 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
7214
a03c9bf1
JM
72152015-07-01 Jason Merrill <jason@redhat.com>
7216
36a85135
JM
7217 * c-common.h (D_CXX11): Rename from D_CXX0X.
7218 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
7219 * c-common.c: Adjust.
7220
e7fa68d5
JM
7221 * c-opts.c (c_common_post_options): Default to C++14.
7222
a03c9bf1
JM
7223 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
7224
fe95b036
ESR
72252015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
7226
7227 Implement N4197 - Adding u8 character literals
b3d5bc62 7228 * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
a64be36b 7229 CPP_CHAR.
b3d5bc62 7230 * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
a64be36b 7231 CPP_UTF8CHAR_USERDEF tokens.
b3d5bc62 7232 * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
a64be36b
EB
7233 and CPP_UTF8CHAR tokens.
7234 (lex_charconst): Treat CPP_UTF8CHAR token.
fe95b036 7235
da2e71c9
MLI
72362015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
7237
7238 PR fortran/66605
7239 * c-common.c (do_warn_unused_parameter): Move here.
7240 * c-common.h (do_warn_unused_parameter): Declare.
7241
b155cfd9
MP
72422015-06-29 Marek Polacek <polacek@redhat.com>
7243
7244 PR c/66322
7245 * c-common.c (check_case_bounds): Add bool * parameter. Set
7246 OUTSIDE_RANGE_P.
7247 (c_add_case_label): Add bool * parameter. Pass it down to
7248 check_case_bounds.
7249 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
7250 warning here.
7251 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
7252 declarations.
7253
31521951
MP
72542015-06-27 Marek Polacek <polacek@redhat.com>
7255
7256 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
7257 or VECTOR_INTEGER_TYPE_P throughout.
7258 * c-gimplify.c: Likewise.
7259
22d03525
MP
72602015-06-26 Marek Polacek <polacek@redhat.com>
7261
7262 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
7263 * c-common.c (c_fully_fold_internal): Likewise.
7264 (c_alignof_expr): Likewise.
7265 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
7266 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
b1726d6c 7267 * cilk.c (create_parm_list): Likewise.
22d03525 7268
af05e6e5
MP
72692015-06-26 Marek Polacek <polacek@redhat.com>
7270
7271 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
7272
f0889939
AM
72732015-06-25 Andrew MacLeod <amacleod@redhat.com>
7274
7275 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
7276 * c-gimplify.c: Likewise.
7277 * c-pragma.c: Likewise.
7278 * c-ubsan.c: Likewise.
7279 * cilk.c: Likewise.
7280
ca752f39
RS
72812015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7282
7283 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
7284 ggc_hasher.
7285
16a16ec7
AM
72862015-06-25 Andrew MacLeod <amacleod@redhat.com>
7287
7288 * cilk.c: Move calls.h after tm.h in the include chain.
7289
0ae9bd27
MP
72902015-06-25 Marek Polacek <polacek@redhat.com>
7291
7292 * array-notation-common.c: Use VAR_P throughout.
7293 * c-ada-spec.c: Likewise.
7294 * c-common.c: Likewise.
7295 * c-format.c: Likewise.
7296 * c-gimplify.c: Likewise.
7297 * c-omp.c: Likewise.
7298 * c-pragma.c: Likewise.
7299 * c-pretty-print.c: Likewise.
7300 * cilk.c: Likewise.
7301
62f9079a
MP
73022015-06-25 Marek Polacek <polacek@redhat.com>
7303
7304 * cilk.c (extract_free_variables): Use is_global_var.
7305
0fa16060
RS
73062015-06-23 Richard Sandiford <richard.sandiford@arm.com>
7307
7308 * c-common.c: Don't include target-def.h.
7309
a68ae2e1
MP
73102015-06-23 Marek Polacek <polacek@redhat.com>
7311
7312 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
7313 when comparing INTEGER_CSTs.
7314
c6a2f2d9
PMR
73152015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
7316
7317 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
7318 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
7319 (dump_ada_template): Skip partially specialized types.
7320
6b4db501
MM
73212015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
7322
7323 * c-common.c (scalar_to_vector): Use std::swap instead of manually
7324 swapping.
7325
abb226c9
AM
73262015-06-17 Andrew MacLeod <amacleod@redhat.com>
7327
7328 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
7329 * c-ada-spec.c: Likewise.
7330 * c-cilkplus.c: Likewise.
7331 * c-common.c: Likewise.
7332 * c-common.h: Likewise.
7333 * c-cppbuiltin.c: Likewise.
7334 * c-dump.c: Likewise.
7335 * c-format.c: Likewise.
7336 * c-gimplify.c: Likewise.
7337 * c-indentation.c: Likewise.
7338 * c-lex.c: Likewise.
7339 * c-omp.c: Likewise.
7340 * c-opts.c: Likewise.
7341 * c-pch.c: Likewise.
7342 * c-ppoutput.c: Likewise.
7343 * c-pragma.c: Likewise.
7344 * c-pretty-print.c: Likewise.
7345 * c-semantics.c: Likewise.
7346 * c-ubsan.c: Likewise.
7347 * cilk.c: Likewise.
7348 * stub-objc.c: Likewise.
7349
076fecad
PP
73502015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
7351
7352 PR c++/65168
7353 * c-common.c (c_common_truthvalue_conversion): Warn when
7354 converting an address of a reference to a truth value.
7355
13fdf2e2
AM
73562015-06-08 Andrew MacLeod <amacleod@redhat.com>
7357
7358 * array-notation-common.c : Adjust include files.
7359 * c-ada-spec.c : Likewise.
7360 * c-cilkplus.c : Likewise.
7361 * c-common.c : Likewise.
7362 * c-common.h : Likewise.
7363 * c-cppbuiltin.c : Likewise.
7364 * c-dump.c : Likewise.
7365 * c-format.c : Likewise.
7366 * c-gimplify.c : Likewise.
7367 * c-indentation.c : Likewise.
7368 * c-lex.c : Likewise.
7369 * c-omp.c : Likewise.
7370 * c-opts.c : Likewise.
7371 * c-pch.c : Likewise.
7372 * c-ppoutput.c : Likewise.
7373 * c-pragma.c : Likewise.
7374 * c-pretty-print.c : Likewise.
7375 * c-semantics.c : Likewise.
7376 * c-ubsan.c : Likewise.
7377 * cilk.c : Likewise.
7378 * stub-objc.c : Likewise.
7379
a1661b90
MP
73802015-06-08 Marek Polacek <polacek@redhat.com>
7381
7382 PR c/66415
7383 * c-format.c (location_from_offset): Return LOC if LINE is null.
7384
d7438551
AH
73852015-06-05 Aldy Hernandez <aldyh@redhat.com>
7386
7387 * c-common.h (c_parse_final_cleanups): New prototype.
7388 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
7389
b3d5bc62
JJ
73902015-06-04 Sriraman Tallam <tmsriram@google.com>
7391
7392 * c-common.c (noplt): New attribute.
7393 (handle_noplt_attribute): New handler.
7394
ecb9f223
AM
73952015-06-04 Andrew MacLeod <amacleod@redhat.com>
7396
7397 * array-notation-common.c: Adjust includes for restructured coretypes.h.
7398 * c-ada-spec.c: Likewise.
7399 * c-cilkplus.c: Likewise.
7400 * c-common.c: Likewise.
7401 * c-common.h: Likewise.
7402 * c-cppbuiltin.c: Likewise.
7403 * c-dump.c: Likewise.
7404 * c-format.c: Likewise.
7405 * c-gimplify.c: Likewise.
7406 * c-indentation.c: Likewise.
7407 * c-lex.c: Likewise.
7408 * c-omp.c: Likewise.
7409 * c-opts.c: Likewise.
7410 * c-pch.c: Likewise.
7411 * c-ppoutput.c: Likewise.
7412 * c-pragma.c: Likewise.
7413 * c-pretty-print.c: Likewise.
7414 * c-semantics.c: Likewise.
7415 * c-ubsan.c: Likewise.
7416 * cilk.c: Likewise.
7417 * stub-objc.c: Likewise.
7418
6ac48155
DM
74192015-06-02 David Malcolm <dmalcolm@redhat.com>
7420
7421 PR c/66220:
7422 * c-indentation.c (should_warn_for_misleading_indentation): Use
7423 expand_location rather than expand_location_to_spelling_point.
7424 Don't warn if the guarding statement is more indented than the
7425 next/body stmts.
7426
773ce42e
DM
74272015-06-02 David Malcolm <dmalcolm@redhat.com>
7428
7429 * c-indentation.c (warn_for_misleading_indentation): Bail out
7430 immediately if -Wmisleading-indentation isn't enabled.
7431
4fef8379
ML
74322015-06-01 Martin Liska <mliska@suse.cz>
7433
7434 * c-format.c (check_format_arg):Use new type-based pool allocator.
7435 (check_format_info_main) Likewise.
7436
1edfb384
EB
74372015-05-31 Eric Botcazou <ebotcazou@adacore.com>
7438
7439 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
7440 (has_nontrivial_methods): Likewise.
7441
9677ef52
MP
74422015-05-25 Marek Polacek <polacek@redhat.com>
7443
7444 * c-ubsan.c (ubsan_instrument_shift): Use type0.
7445
fd5c817a
MP
74462015-05-22 Marek Polacek <polacek@redhat.com>
7447
7448 PR c/47043
7449 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
7450
a2f45fe6 74512015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
581edfa3
TS
7452
7453 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
7454 STACK_GROWS_DOWNWARD.
7455
a2f45fe6 74562015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
62f9f30b
TS
7457
7458 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
7459 STACK_GROWS_DOWNWARD rather than if it is defined.
7460
0fee2ac2 74612015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
b1726d6c 7462
0fee2ac2
MLI
7463 PR c/52952
7464 * c-format.c (location_column_from_byte_offset): New.
7465 (location_from_offset): New.
7466 (struct format_wanted_type): Add offset_loc field.
7467 (check_format_info): Move handling of location for extra arguments
7468 closer to the point of warning.
7469 (check_format_info_main): Pass the result of location_from_offset
7470 to warning_at.
7471 (format_type_warning): Pass the result of location_from_offset
7472 to warning_at.
7473
cf4ef6f7
MP
74742015-05-20 Marek Polacek <polacek@redhat.com>
7475
7476 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
7477
3a65ee74
MP
74782015-05-20 Marek Polacek <polacek@redhat.com>
7479
7480 * c-ada-spec.c (dump_sloc): Use DECL_P.
7481
21b634ae
MP
74822015-05-20 Marek Polacek <polacek@redhat.com>
7483
7484 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
7485 * c-common.c: Likewise.
7486
0e50b624
DM
74872015-05-19 David Malcolm <dmalcolm@redhat.com>
7488
7489 * c-common.h (fe_file_change): Strengthen param from
7490 const line_map * to const line_map_ordinary *.
7491 (pp_file_change): Likewise.
7492 * c-lex.c (fe_file_change): Likewise.
7493 (cb_define): Use linemap_check_ordinary when invoking
7494 SOURCE_LINE.
7495 (cb_undef): Likewise.
7496 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
7497 invoking cb_file_change.
7498 (c_finish_options): Likewise.
7499 (push_command_line_include): Likewise.
7500 (cb_file_change): Strengthen param "new_map" from
7501 const line_map * to const line_map_ordinary *.
7502 * c-ppoutput.c (cb_define): Likewise for local "map".
7503 (pp_file_change): Likewise for param "map" and local "from".
7504
fab27f52
MM
75052015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
7506
7507 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
7508
2fe1d762
TV
75092015-05-18 Tom de Vries <tom@codesourcery.com>
7510
7511 * c-common.c (build_va_arg_1): New function.
7512 (build_va_arg): Add address operator to va_list operand if necessary.
7513
7a37fa90
MM
75142015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
7515
7516 PR c/48956
7517 * c-common.c (int_safely_convertible_to_real_p): Define.
7518 (unsafe_conversion_p): Check conversions involving complex types.
7519 (conversion_warning): Add new warning message for conversions which
7520 discard imaginary component.
7521 * c-common.h: (enum conversion_safety): Add new enumerator for such
7522 conversions.
7523
3aa3c9fc
MP
75242015-05-14 Marek Polacek <polacek@redhat.com>
7525
7526 PR c/66066
7527 PR c/66127
7528 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
7529 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
7530 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
7531 use it. If FOR_INT_CONST, require that all evaluated operands be
7532 INTEGER_CSTs.
7533
c3388e62
DM
75342015-05-12 David Malcolm <dmalcolm@redhat.com>
7535
7536 * c-common.h (warn_for_misleading_indentation): New prototype.
7537 * c-indentation.c: New file.
7538 * c.opt (Wmisleading-indentation): New option.
7539
c7b38fd5
TV
75402015-05-12 Tom de Vries <tom@codesourcery.com>
7541
7542 PR tree-optimization/66010
7543 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
7544
381bf11e
JM
75452015-05-09 Jason Merrill <jason@redhat.com>
7546
edff0c06
JM
7547 * c-opts.c (c_common_post_options): Also clear
7548 cpp_opts->cpp_warn_cxx11_compat.
7549
129211bc
JM
7550 * c-common.h (enum cxx_dialect): Add cxx_unset.
7551 * c-common.c (cxx_dialect): Initialize to cxx_unset.
7552 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
7553
381bf11e
JM
7554 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
7555 (std=gnu++0x): Mark as Undocumented.
7556 (std=gnu++1y): Add deprecated message.
7557
fe191308
JM
75582015-05-08 Jason Merrill <jason@redhat.com>
7559
765189ff
JM
7560 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
7561 * c-opts.c: Adjust.
7562
fe191308
JM
7563 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
7564
755e528f
MP
75652015-05-08 Marek Polacek <polacek@redhat.com>
7566
7567 PR c/64918
7568 * c.opt (Woverride-init-side-effects): New option.
7569
0173bd2a
MP
75702015-05-07 Marek Polacek <polacek@redhat.com>
7571
7572 PR c/65179
7573 * c-common.c (c_fully_fold_internal): Warn when left shifting a
7574 negative value.
7575 * c.opt (Wshift-negative-value): New option.
7576 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
7577 when -Wextra and C99/C++11 mode.
7578
e0f0d3b9
MP
75792015-05-07 Marek Polacek <polacek@redhat.com>
7580 Martin Uecker <uecker@eecs.berkeley.edu>
7581
7582 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
7583 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
7584
8243e2a9
JM
75852015-05-05 Jason Merrill <jason@redhat.com>
7586
7587 * c.opt (Wterminate): New.
7588
577cd070
MP
75892015-04-30 Marek Polacek <polacek@redhat.com>
7590
7591 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
7592 require that the non-constant be of a boolean type.
7593
0373796b
JT
75942015-04-29 Josh Triplett <josh@joshtriplett.org>
7595
e0f0d3b9
MP
7596 * c-common.c (handle_section_attribute): Refactor to reduce
7597 nesting and distinguish between error cases.
0373796b 7598
716c0ba6
MP
75992015-04-29 Marek Polacek <polacek@redhat.com>
7600
7601 PR c/64610
7602 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
7603 with 0/1.
7604
8848828b
JJ
76052015-04-29 Jakub Jelinek <jakub@redhat.com>
7606
7607 * c-common.h (omp_clause_mask): Unconditionally define as a class.
7608 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
7609 HOST_BITS_PER_WIDE_INT.
7610
ecd0e562
TV
76112015-04-28 Tom de Vries <tom@codesourcery.com>
7612
7613 PR tree-optimization/65887
7614 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
7615
2a877204 76162015-04-28 Eric Botcazou <ebotcazou@adacore.com>
e0f0d3b9 7617 Pierre-Marie de Rodat <derodat@adacore.com>
2a877204
EB
7618
7619 * c-ada-spec.c (in_function): Delete.
7620 (dump_generic_ada_node): Do not change in_function and remove the
7621 redundant code dealing with it.
7622 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
7623 (print_ada_methods): Output the static member functions in a nested
7624 package after the regular methods as well as associated renamings.
7625
4853031e
MP
76262015-04-24 Marek Polacek <polacek@redhat.com>
7627
7628 PR c/65830
7629 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
7630 and OPT_Wshift_count_overflow.
7631
8c2b7f79
MP
7632 PR c/63357
7633 * c-common.c (warn_logical_operator): Warn if the operands have the
7634 same expressions.
7635
b8787813
MP
76362015-04-24 Marek Polacek <polacek@redhat.com>
7637
7638 PR c/61534
7639 * c-common.c (warn_logical_operator): Bail if either operand comes
7640 from a macro expansion.
7641
8fba1830
BRF
76422015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7643
7644 PR target/55143
7645 * c-common.c (c_default_pointer_mode): Add definition.
7646 * c-common.h (c_default_pointer_mode): Add declaration.
7647
17958621
JJ
76482015-03-11 Jakub Jelinek <jakub@redhat.com>
7649
7650 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
7651 on record_builtin_type argument.
7652
7ccb1a11
JJ
76532015-03-10 Jakub Jelinek <jakub@redhat.com>
7654
7655 PR c/65120
7656 * c-common.c (warn_logical_not_parentheses): Don't warn for
7657 !x == 0 or !x != 0.
7658
04fd785e
MP
76592015-03-07 Marek Polacek <polacek@redhat.com>
7660
7661 PR sanitizer/65280
7662 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
7663 before trying to figure out whether we have a flexible array member.
7664
a4e26206 76652015-03-06 Eric Botcazou <ebotcazou@adacore.com>
8e745a17 7666 Jonathan Wakely <jwakely.gcc@gmail.com>
a4e26206
EB
7667
7668 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
7669
0d2489f4
EB
76702015-03-05 Eric Botcazou <ebotcazou@adacore.com>
7671
7672 PR ada/65319
7673 * c-ada-spec.c (print_destructor): Remove obsolete code.
7674
83ed54d7
EB
76752015-03-01 Eric Botcazou <ebotcazou@adacore.com>
7676
7677 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
7678 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
7679 DECL_TEMPLATE_RESULT emulations.
7680 (dump_ada_template)): Add guard for TYPE_METHODS.
7681
7631f0e2
MP
76822015-02-27 Marek Polacek <polacek@redhat.com>
7683
7684 PR c/65040
7685 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
7686
d1783ae5
KT
76872015-02-27 Kai Tietz <ktietz@redhat.com>
7688
7689 PR c/35330
7690 * c-pragma.c (handle_pragma_weak): Do not try to create
7691 weak/alias of declarations not being function, or variable
7692 declarations.
7693
56a9f6bc
TS
76942015-02-24 Thomas Schwinge <thomas@codesourcery.com>
7695
7696 PR libgomp/64625
7697 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
7698 Remove macros.
7699 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
7700
3d5cb23d
MP
77012015-02-16 Marek Polacek <polacek@redhat.com>
7702
7703 PR c/65066
7704 * c-format.c (check_format_types): Handle null param.
7705
fa008882
MP
77062015-02-13 Marek Polacek <polacek@redhat.com>
7707
7708 PR c/65040
7709 * c-format.c (check_format_types): Don't warn about different
7710 signedness if the original value is in the range of WANTED_TYPE.
7711
785f21af
JM
77122015-02-12 Jason Merrill <jason@redhat.com>
7713
7714 PR c++/64956
7715 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
7716 to the current highest version.
7717 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
7718
4886ec8e
JJ
77192015-02-04 Jakub Jelinek <jakub@redhat.com>
7720
7721 PR c/64824
7722 PR c/64868
7723 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
7724 instead of RDIV_EXPR. Use build_binary_op instead of
7725 build2_loc.
7726
40fecdd6
JM
77272015-01-30 Joseph Myers <joseph@codesourcery.com>
7728
7729 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
7730 to pass input_location as first argument.
7731
a0c88d06
TV
77322015-01-23 Tom de Vries <tom@codesourcery.com>
7733
7734 PR libgomp/64672
7735 * c.opt (fopenacc): Mark as LTO option.
7736
1506ae0e
TV
77372015-01-23 Tom de Vries <tom@codesourcery.com>
7738
7739 PR libgomp/64707
7740 * c.opt (fopenmp): Mark as LTO option.
7741
31be63ab
JJ
77422015-01-21 Jakub Jelinek <jakub@redhat.com>
7743
7744 PR c/63307
b1726d6c 7745 * cilk.c (fill_decls_vec): Only put decls into vector v.
31be63ab
JJ
7746 (compare_decls): Fix up formatting.
7747
77482015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
7749
7750 PR c/63307
7751 * cilk.c: Include vec.h.
7752 (struct cilk_decls): New structure.
7753 (wrapper_parm_cb): Split this function to...
7754 (fill_decls_vec): ...this...
7755 (create_parm_list): ...and this.
7756 (compare_decls): New function.
7757 (for_local_cb): Remove.
7758 (wrapper_local_cb): Ditto.
7759 (build_wrapper_type): For now first traverse and fill vector of
7760 declarations then sort it and then deal with sorted vector.
7761 (cilk_outline): Ditto.
7762 (declare_one_free_variable): Ditto.
7763
6875457f
JM
77642015-01-21 Jason Merrill <jason@redhat.com>
7765
7766 PR c++/64629
7767 * c-format.c (check_format_arg): Call decl_constant_value.
7768
185c9e56
ML
77692015-01-19 Martin Liska <mliska@suse.cz>
7770
7771 * c-common.c (handle_noicf_attribute): New function.
7772
41dbbb37
TS
77732015-01-15 Thomas Schwinge <thomas@codesourcery.com>
7774 Bernd Schmidt <bernds@codesourcery.com>
7775 James Norris <jnorris@codesourcery.com>
7776 Cesar Philippidis <cesar@codesourcery.com>
7777 Ilmir Usmanov <i.usmanov@samsung.com>
7778 Jakub Jelinek <jakub@redhat.com>
7779
7780 * c.opt (fopenacc): New option.
7781 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
7782 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
7783 New macros.
7784 * c-common.h (c_finish_oacc_wait): New prototype.
7785 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
7786 (c_finish_oacc_wait): New function.
7787 * c-pragma.c (oacc_pragmas): New variable.
7788 (c_pp_lookup_pragma, init_pragma): Handle it.
7789 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
7790 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
7791 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
7792 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
7793 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
7794 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
7795 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
7796 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
7797 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
7798 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
7799 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
7800 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
7801 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
7802 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
7803 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
7804 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
7805 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
7806 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
7807 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
7808 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
7809 PRAGMA_OACC_CLAUSE_WORKER.
7810
3f8257db 78112015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
5434dc07
MD
7812
7813 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
7814 for the new option fstack-protector_explicit.
7815 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
7816 (handle_stack_protect_attribute): New function.
7817
3f8257db 78182015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
de1b5c17
MU
7819
7820 * c.opt: New option -Warray-bounds=.
7821
adfac8df
JJ
78222015-01-09 Michael Collison <michael.collison@linaro.org>
7823
7824 * array-notation-common.c: Include hash-set.h, machmode.h,
7825 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
7826 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
7827 * c-ada-spec.c: Ditto.
7828 * c-cilkplus.c: Ditto.
7829 * c-common.c: Include input.h due to flattening of tree.h.
7830 Define macro GCC_C_COMMON_C.
7831 * c-common.h: Flatten tree.h header files into c-common.h.
7832 Remove include of tree-core.h.
7833 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
7834 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
7835 fold-const.h, wide-int.h, and inchash.h due to
7836 flattening of tree.h.
7837 * c-dump.c: Ditto.
7838 * c-format.c: Flatten tree.h header files into c-common.h.
7839 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
7840 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
7841 fold-const.h, wide-int.h, and inchash.h due to
7842 flattening of tree.h.
7843 * c-dump.c: Include hash-set.h, machmode.h,
7844 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
7845 fold-const.h, wide-int.h, and inchash.h due to
7846 flattening of tree.h.
7847 * c-format.c: Include hash-set.h, machmode.h,
7848 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
7849 fold-const.h, wide-int.h, inchash.h and real.h due to
7850 flattening of tree.h.
7851 * c-gimplify.c: Include hash-set.h, machmode.h,
7852 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
7853 fold-const.h, wide-int.h, and inchash.h due to
7854 flattening of tree.h.
7855 * cilk.c: Ditto.
7856 * c-lex.c: Ditto.
7857 * c-omp.c: Ditto.
7858 * c-opts.c: Ditto.
7859 * c-pch.c: Ditto.
7860 * c-ppoutput.c: Ditto.
7861 * c-pragma.c: Ditto.
7862 * c-pretty-print.c: Ditto.
7863 * c-semantics.c: Ditto.
7864 * c-ubsan.c: Ditto.
7865 * stub-objc.c: Ditto.
7866
f5481fc4
JM
78672015-01-08 Jason Merrill <jason@redhat.com>
7868
7869 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
7870 do_ubsan_in_current_function.
7871 (ubsan_maybe_instrument_reference_or_call): Likewise.
7872 * c-ubsan.h: Declare it.
7873
de35aa66
MS
78742015-01-08 Mike Stump <mikestump@comcast.net>
7875
7876 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
7877
4a9a42ab
MP
78782015-01-07 Marek Polacek <polacek@redhat.com>
7879
7880 PR c/64440
7881 * c-common.c (c_fully_fold_internal): Warn for division and modulo
7882 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
7883
2f42e5de
TS
78842015-01-05 Trevor Saunders <tsaunders@mozilla.com>
7885
7886 PR c++/31397
7887 * c.opt (Wsuggest-override): New option.
7888
5624e564
JJ
78892015-01-05 Jakub Jelinek <jakub@redhat.com>
7890
7891 Update copyright years.
7892
5bd012f8
MP
78932015-01-05 Marek Polacek <polacek@redhat.com>
7894
7895 PR c/64423
7896 * c-common.c (warn_array_subscript_with_type_char): Add location_t
7897 parameter. Use it.
7898 * c-common.h (warn_array_subscript_with_type_char): Update
7899 declaration.
7900
a7fa8d18
ESR
79012014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
7902
7903 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
7904 Control macro with flag_sized_deallocation.
7905
3f8257db 79062014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
768952be
MU
7907
7908 * c.opt (Wdiscarded-array-qualifiers): New option.
7909
1f8d3e84
JJ
79102014-12-19 Jakub Jelinek <jakub@redhat.com>
7911
7912 PR preprocessor/63831
7913 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
7914 and __has_cpp_attribute here.
7915 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
7916 c_common_has_attribute.
7917 * c-common.h (c_common_has_attribute): New prototype.
7918 * c-lex.c (init_c_lex): Set cb->has_attribute to
7919 c_common_has_attribute instead of cb_has_attribute.
7920 (get_token_no_padding): New function.
7921 (cb_has_attribute): Renamed to ...
7922 (c_common_has_attribute): ... this. No longer static. Use
7923 get_token_no_padding, require ()s, don't build TREE_LIST
7924 unnecessarily, fix up formatting, adjust diagnostics, call
7925 init_attributes.
7926
20b06add
JM
79272014-12-15 Jason Merrill <jason@redhat.com>
7928
7929 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
7930 (-Wsized-deallocation): New.
7931 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
7932 to on in C++14 and up.
7933
94a073b2
JM
79342014-12-11 Jason Merrill <jason@redhat.com>
7935
acaa5911
JM
7936 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
7937
94a073b2
JM
7938 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
7939 we aren't complaining about VLAs.
7940
7fb66c15
MP
79412014-12-06 Marek Polacek <polacek@redhat.com>
7942
7943 PR tree-optimization/64183
7944 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
7945 shift-expression if it is integer_type_node. Use types_compatible_p.
7946
b731b390
JJ
79472014-11-29 Jakub Jelinek <jakub@redhat.com>
7948
7949 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
7950 last argument from create_tmp_var_raw and create_tmp_var calls.
7951 * cilk.c (gimplify_cilk_spawn): Likewise.
7952 * c-omp.c (c_finish_omp_atomic): Likewise.
7953
6a4da643
MP
79542014-11-28 Marek Polacek <polacek@redhat.com>
7955
7956 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
7957 instead of unsigned_type_node.
7958
541e35a6
MP
79592014-11-28 Marek Polacek <polacek@redhat.com>
7960
7961 PR c/63862
7962 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
7963 to op1_utype.
7964 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
7965 expression to unsigned_type_node.
7966
dcc97066
MW
79672014-11-20 Mark Wielaard <mjw@redhat.com>
7968
7969 PR debug/38757
7970 * c-opts.c (set_std_c89): Set lang_hooks.name.
7971 (set_std_c99): Likewise.
7972 (set_std_c11): Likewise.
7973 (set_std_cxx98): Likewise.
7974 (set_std_cxx11): Likewise.
7975 (set_std_cxx14): Likewise.
7976 (set_std_cxx1z): Likewise.
7977
aa7da51a
JJ
79782014-11-21 Jakub Jelinek <jakub@redhat.com>
7979
7980 PR target/63764
7981 * c-common.h (convert_vector_to_pointer_for_subscript): Change
7982 return type to bool.
009a3480 7983 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
7984 (convert_vector_to_pointer_for_subscript): Change return type to
7985 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
7986 and copy it into a TARGET_EXPR and use that instead of *vecp
7987 directly.
7988
538dd0b7
DM
79892014-11-19 David Malcolm <dmalcolm@redhat.com>
7990
7991 Merger of git branch "gimple-classes-v2-option-3".
7992 * ChangeLog.gimple-classes: New.
7993 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
7994 from being just a vec<gimple> to a vec<gbind *>.
7995
c39a5e99
JJ
79962014-11-18 Jakub Jelinek <jakub@redhat.com>
7997
7998 PR sanitizer/63813
7999 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
8000 argument to ptype, set type to TREE_TYPE (ptype). Don't call
8001 get_pointer_alignment for non-pointers. Use ptype, or if it is
8002 reference type, corresponding pointer type, as type of kind
8003 argument.
8004 (ubsan_maybe_instrument_reference,
8005 ubsan_maybe_instrument_member_call): Adjust callers.
8006
8537a4a9
MP
80072014-11-15 Marek Polacek <polacek@redhat.com>
8008
8009 PR middle-end/63884
8010 * array-notation-common.c (is_sec_implicit_index_fn): Return false
8011 for NULL fndecl.
8012 (extract_array_notation_exprs): Return for NULL node.
8013
2079956a
JM
80142014-11-12 Joseph Myers <joseph@codesourcery.com>
8015
8016 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
8017 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
8018
1304953e
JJ
80192014-11-12 Jakub Jelinek <jakub@redhat.com>
8020
8021 PR c/59708
8022 * c-common.c (check_builtin_function_arguments): Handle
8023 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
8024
e5e44252
AK
80252014-11-10 Andi Kleen <ak@linux.intel.com>
8026
8027 PR c/60804
8028 * c-common.h (check_no_cilk): Declare.
8029 * cilk.c (get_error_location): New function.
8030 (check_no_cilk): Dito.
8031
e64b984d
AK
80322014-11-10 Andi Kleen <ak@linux.intel.com>
8033
8034 * cilk.c (recognize_spawn): Use expression location
8035 for error message.
8036
13c21655
PC
80372014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
8038
8039 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
8040
42fd12b1
ESR
80412014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
8042
8043 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
8044 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
8045 (__cpp_range_based_for, __cpp_initializer_lists,
8046 __cpp_delegating_constructors, __cpp_nsdmi,
8047 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
8048 for C++11; (__cpp_attribute_deprecated): Remove in favor of
8049 __has_cpp_attribute.
8050 * c-lex.c (cb_has_attribute): New callback CPP function;
8051 (init_c_lex): Set has_attribute callback.
8052
6f450181
RB
80532014-11-04 Richard Biener <rguenther@suse.de>
8054
8055 * c-common.c (shorten_compare): Do not shorten mixed
8056 DFP and non-DFP compares.
8057
26f0e1d6
ESR
80582014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
8059
8060 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
8061 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
8062 Commentary and rearrangement of tests.
8063 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
8064 Commentary and rearrangement of tests.
ab20d992 8065 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto.
26f0e1d6
ESR
8066 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
8067
ef4bddc2
RS
80682014-10-29 Richard Sandiford <richard.sandiford@arm.com>
8069
8070 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
8071 enum from machine_mode.
8072
c582198b
AM
80732014-10-28 Andrew MacLeod <amacleod@redhat.com>
8074
adfac8df
JJ
8075 * c-common.c: Adjust include files.
8076 * c-gimplify.c: Ditto.
8077 * cilk.c: Ditto.
8078 * c-pragma.c: Ditto.
8079 * c-ubsan.c: Ditto.
c582198b 8080
60393bbc
AM
80812014-10-27 Andrew MacLeod <amacleod@redhat.com>
8082
8083 * c-gimplify.c: Adjust include files.
8084
d723bb7c
MLI
80852014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
8086
8087 PR c++/53061
8088 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
8089 c_common_initialize_diagnostics.
8090 * c-common.h: Likewise.
8091
90f3520e
MP
80922014-10-24 Marek Polacek <polacek@redhat.com>
8093
8094 PR c/56980
8095 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
8096 print "struct"/"union"/"enum" for typedefed names.
8097
59d7607a
MP
80982014-10-23 Marek Polacek <polacek@redhat.com>
8099
8100 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
8101 in unsigned type.
8102
d95a2703
JJ
81032014-10-22 Jakub Jelinek <jakub@redhat.com>
8104 Yury Gribov <y.gribov@samsung.com>
8105
8106 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
8107 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
8108 instead of flag_sanitize_recover as bool flag.
8109
8e6ef852
KY
81102014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
8111
8112 * cilk.c: Revert previous change.
8113
948cf550
IZ
81142014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
8115
8116 PR c/63307
8117 * cilk.c: Include vec.h.
8118 (struct cilk_decls): New structure.
8119 (wrapper_parm_cb): Split this function to...
8120 (fill_decls_vec): ...this...
8121 (create_parm_list): ...and this.
8122 (compare_decls): New function.
8123 (for_local_cb): Remove.
8124 (wrapper_local_cb): Ditto.
8125 (build_wrapper_type): For now first traverse and fill vector of
8126 declarations then sort it and then deal with sorted vector.
8127 (cilk_outline): Ditto.
8128 (declare_one_free_variable): Ditto.
8129
92574c7c
MP
81302014-10-17 Marek Polacek <polacek@redhat.com>
8131
8132 * c-opts.c (c_common_post_options): Set warn_implicit_int.
8133 * c.opt (Wimplicit-int): Initialize to -1.
8134
83685514
AM
81352014-10-16 Andrew MacLeod <amacleod@redhat.com>
8136
8137 * c-pragma.c: Adjust include files.
8138 * c-semantics.c: Likewise.
8139
5b8300ea
DD
81402014-10-16 DJ Delorie <dj@redhat.com>
8141
8142 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
8143 multiples of bytes.
8144
5f83e90b
JM
81452014-10-14 Jason Merrill <jason@redhat.com>
8146
8147 PR c++/63455
8148 * c-common.h (CPP_PREPARSED_EXPR): New.
8149 (N_CP_TTYPES): Adjust.
8150
d73326ca
MP
81512014-10-15 Marek Polacek <polacek@redhat.com>
8152
8153 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
8154
78a7c317
DD
81552014-10-14 DJ Delorie <dj@redhat.com>
8156
8157 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
8158 types, not just __int128.
8159 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
8160 types, not just __int128.
8161 (cpp_atomic_builtins): Round pointer sizes up.
8162 (type_suffix): Use type precision, not specific types.
8163 * c-common.c (c_common_reswords): Remove __int128 special case.
8164 (c_common_type_for_size): Check for all __intN types, not just
8165 __int128.
8166 (c_common_type_for_mode): Likewise.
8167 (c_common_signed_or_unsigned_type): Likewise.
8168 (c_build_bitfield_integer_type): Likewise.
8169 (c_common_nodes_and_builtins): Likewise.
8170 (keyword_begins_type_specifier): Likewise.
8171 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
8172 __intN variants.
8173
2a22f99c
TS
81742014-10-12 Trevor Saunders <tsaunders@mozilla.com>
8175
8176 * c-common.c: Use hash_table instead of hashtab.
8177
2a8ef767
ESR
81782014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
8179
adfac8df 8180 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
8181 C++11 section.
8182
3c9aabbd
MG
81832014-10-03 Marc Glisse <marc.glisse@inria.fr>
8184
8185 PR c++/54427
8186 PR c++/57198
8187 PR c++/58845
8188 * c-common.c (warn_logical_operator): Punt for vectors.
8189
a15f7cb8
ESR
81902014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
8191
8192 Implement SD-6: SG10 Feature Test Recommendations
8193 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
8194 macros and the __has_header macro.
8195
8d0cf15e
JM
81962014-09-30 Jason Merrill <jason@redhat.com>
8197
dd5d5481
JM
8198 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
8199 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
8200 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
8201
b752325e
JM
8202 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
8203 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
8204
8d0cf15e
JM
8205 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
8206 * c-common.c (c_common_reswords): Remove __is_convertible_to.
8207
083e891e
MP
82082014-09-24 Marek Polacek <polacek@redhat.com>
8209
8210 PR c/61405
8211 PR c/53874
8212 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
8213
7861b648
AK
82142014-09-23 Andi Kleen <ak@linux.intel.com>
8215
8216 * c-common.c (handle_no_reorder_attribute): New function.
8217 (c_common_attribute_table): Add no_reorder attribute.
8218
9a79452d
JM
82192014-09-22 Joseph Myers <joseph@codesourcery.com>
8220
8221 * c-cppbuiltin.c (c_cpp_builtins): Define
8222 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
8223 modes.
8224
dd69f047
JM
82252014-09-18 Joseph Myers <joseph@codesourcery.com>
8226
8227 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
8228 for supported floating-point modes.
8229
737a4826
MLI
82302014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
8231
8232 * c.opt (Wpsabi): Use LangEnabledBy.
8233 * c-opts.c (c_common_handle_option): Do not handle here.
8234
8cc4b7a2
JM
82352014-09-12 Joseph Myers <joseph@codesourcery.com>
8236
8237 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
8238 macros for floating-point modes.
8239
179b5a55
MG
82402014-09-11 Marc Glisse <marc.glisse@inria.fr>
8241
8242 PR target/58757
8243 * c-cppbuiltin.c (builtin_define_float_constants): Correct
8244 __*_DENORM_MIN__ without denormals.
8245
570a11fe
JJ
82462014-09-10 Jakub Jelinek <jakub@redhat.com>
8247
8248 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
8249 ubsan_instrument_vla, ubsan_instrument_return): Adjust
8250 ubsan_create_data callers.
8251 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
8252 index is constant or BIT_AND_EXPR with constant mask and is
8253 small enough for the bound.
8254 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
8255 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
8256
b559c810
MLI
82572014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
8258
8259 * c.opt: Add CppReason to various flags.
8260 (Wdate-time): Re-sort.
8261 * c-common.c: Include c-common.h earlier.
8262 (struct reason_option_codes_t): Delete.
8263 (c_option_controlling_cpp_error): Prefix global type and struct
8264 with cpp_.
8265
1ef33fd4
MLI
82662014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
8267
8268 * c.opt (Wnormalized): New.
8269 (Wnormalized=): Use Enum and Reject Negative.
8270 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
8271
66bb34c0
JM
82722014-09-08 Joseph Myers <joseph@codesourcery.com>
8273
8274 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
8275 digits of floating-point modes if -fbuilding-libgcc.
8276
53d68b9f
JM
82772014-09-05 Joseph Myers <joseph@codesourcery.com>
8278
8279 * c-cppbuiltin.c (c_cpp_builtins): Also define
8280 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
8281 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
8282 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
8283 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
8284 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
8285 __LIBGCC_STACK_GROWS_DOWNWARD__,
8286 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
8287 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
8288 __LIBGCC_DWARF_FRAME_REGISTERS__,
8289 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
8290 __LIBGCC_STACK_POINTER_REGNUM__ and
8291 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
8292 (builtin_define_with_value): Handle backslash-escaping in string
8293 macro values.
8294
f65586dc
RB
82952014-09-05 Richard Biener <rguenther@suse.de>
8296
8297 PR middle-end/63148
8298 * c-format.c (check_format_arg): Properly handle
8299 effectively signed POINTER_PLUS_EXPR offset.
8300
2b71f4a4
MLI
83012014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
8302
8303 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
8304 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
8305 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
8306 and Init.
8307 * c-opts.c (c_common_handle_option): Do not handle here.
8308 (sanitize_cpp_opts): Likewise.
8309 * c-common.c (struct reason_option_codes_t): Handle
8310 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
8311
d2e4feca
MP
83122014-09-03 Marek Polacek <polacek@redhat.com>
8313
8314 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
8315
9a771876
JJ
83162014-09-02 Jakub Jelinek <jakub@redhat.com>
8317 Balaji V. Iyer <balaji.v.iyer@intel.com>
8318 Igor Zamyatin <igor.zamyatin@intel.com>
8319
8320 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
8321 * c-common.c (c_common_reswords): Added _Cilk_for.
8322 * c-common.h (enum rid): Added RID_CILK_FOR.
8323 (cilk_for_number_of_iterations): Add declaration.
8324 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
8325 CILK_FOR.
8326 * c-pragma.c (init_pragma): Register "grainsize" pragma.
8327 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
8328
81b5d104
MLI
83292014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
8330
8331 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
8332 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
8333 Wundef): Use CPP, Var and Init.
8334 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
8335
b753b37b
MLI
83362014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
8337
8338 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
8339 * c-opts.c (c_common_handle_option): Do not handle here.
8340
028aee17
JM
83412014-08-25 Jason Merrill <jason@redhat.com>
8342
8343 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
8344 -std=c++14 and -std=gnu++14, rather than the reverse.
8345 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
8346 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
8347 * c-common.h (cxx_dialect): Remove cxx1y.
8348
e4276ba5
ESR
83492014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
8350
8351 * c-common.h (enum cxx_dialect): Add cxx14.
8352 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
8353 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
8354 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
8355
a545cacd
JM
83562014-08-22 Jason Merrill <jason@redhat.com>
8357
8358 * c.opt (std=gnu++17): Fix alias.
8359
59ea0364
MP
83602014-08-22 Marek Polacek <polacek@redhat.com>
8361
8362 PR c++/62199
8363 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
8364 check for vector types. Drop LHS argument.
8365 * c-common.h (warn_logical_not_parentheses): Adjust.
8366
596e808c
MLI
83672014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
8368
8369 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
8370 (Wmultichar): Likewise.
8371 (Wdate-time): Use C-family languages instead of Common. Use CPP
8372 and Var.
8373 * c-opts.c (c_common_handle_option): Do not handle the above
8374 options here.
8375 (sanitize_cpp_opts): Likewise.
8376
18767f65
MLI
83772014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
8378
8379 PR fortran/44054
8380 * c-opts.c: Include tree-diagnostics.h.
8381 (c_diagnostic_finalizer): New.
8382 (c_common_initialize_diagnostics): Use it.
8383
b4413594
MLI
83842014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
8385
8386 PR preprocessor/51303
8387 * c-common.c (struct reason_option_codes_t option_codes):
8388 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
8389
43f9a13c
MLI
83902014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
8391
8392 PR c/60975
8393 PR c/53063
8394 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
8395 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
8396 (c_common_post_options): Call init_global_opts_from_cpp.
8397 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
8398
04159acf
MP
83992014-08-19 Marek Polacek <polacek@redhat.com>
8400
8401 PR c++/62153
8402 * c-common.c (maybe_warn_bool_compare): New function.
8403 * c-common.h (maybe_warn_bool_compare): Declare.
8404 * c.opt (Wbool-compare): New option.
8405
35aff4fb
MP
84062014-08-19 Marek Polacek <polacek@redhat.com>
8407
8408 * c.opt (Wc99-c11-compat): New option.
8409
177cce46
MP
84102014-08-19 Marek Polacek <polacek@redhat.com>
8411
8412 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
8413 to warn_c90_c99_compat.
8414 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
8415 to -1.
8416
6ae9194f
MLI
84172014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
8418 Steven Bosscher <steven@gcc.gnu.org>
8419
8420 PR c/52952
8421 * c-format.c: Add extra_arg_loc and format_string_loc to struct
8422 format_check_results.
8423 (check_function_format): Use true and add comment for boolean
8424 argument.
8425 (finish_dollar_format_checking): Use explicit location when warning.
8426 (check_format_info): Likewise.
8427 (check_format_arg): Set extra_arg_loc and format_string_loc.
8428 (check_format_info_main): Use explicit location when warning.
8429 (check_format_types): Pass explicit location.
8430 (format_type_warning): Likewise.
8431
8e54f6d3
MLI
84322014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
8433
8434 PR fortran/44054
8435 * c-format.c: Handle Fortran flags.
8436
cd4e76fc
IZ
84372014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
8438
8439 PR other/61962
8440 * array-notation-common.c (find_rank): Added handling for other
8441 types of references.
8442
f3bede71
MP
84432014-08-10 Marek Polacek <polacek@redhat.com>
8444
8445 PR c/51849
8446 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
8447 * c.opt (Wc90-c99-compat): Add option.
8448
9f25a338
TS
84492014-08-07 Trevor Saunders <tsaunders@mozilla.com>
8450
8451 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
8452
62e4eb35
MP
84532014-08-03 Marek Polacek <polacek@redhat.com>
8454
ab20d992 8455 * c-common.c (check_case_value): Add location_t parameter. Use it.
62e4eb35
MP
8456 (c_add_case_label): Pass loc to check_case_value.
8457
b787e7a2
TS
84582014-08-02 Trevor Saunders <tsaunders@mozilla.com>
8459
8460 * cilk.c: Use hash_map instead of pointer_map.
8461
6e2830c3
TS
84622014-08-02 Trevor Saunders <tsaunders@mozilla.com>
8463
8464 * c-gimplify.c: Use hash_set instead of pointer_set.
8465
a7ee52fb
IZ
84662014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
8467
8468 PR middle-end/61455
8469 * array-notation-common.c (extract_array_notation_exprs): Handling
8470 of DECL_EXPR added.
8471
944fa280
JJ
84722014-08-01 Jakub Jelinek <jakub@redhat.com>
8473
8474 * c-common.h (min_align_of_type): Removed prototype.
8475 * c-common.c (min_align_of_type): Removed.
8476 * c-ubsan.h (ubsan_maybe_instrument_reference,
8477 ubsan_maybe_instrument_member_call): New prototypes.
8478 * c-ubsan.c: Include stor-layout.h and builtins.h.
8479 (ubsan_maybe_instrument_reference_or_call,
8480 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
8481 functions.
8482
b4dfdc11
MG
84832014-07-31 Marc Glisse <marc.glisse@inria.fr>
8484
8485 PR c++/60517
8486 * c.opt (-Wreturn-local-addr): Move to common.opt.
8487
a41844e5
JM
84882014-07-30 Jason Merrill <jason@redhat.com>
8489
8490 PR c++/61659
8491 PR c++/61687
8492 Revert:
8493 * c.opt (-fuse-all-virtuals): New.
8494
976d5a22
TT
84952014-07-30 Tom Tromey <tromey@redhat.com>
8496
8497 PR c/59855
8498 * c.opt (Wdesignated-init): New option.
8499 * c-common.c (c_common_attribute_table): Add "designated_init".
8500 (handle_designated_init): New function.
8501
cdc94aca
MP
85022014-07-24 Marek Polacek <polacek@redhat.com>
8503
8504 PR c/57653
8505 * c-opts.c (c_finish_options): If -imacros is in effect, return.
8506
f41373b6
DS
85072014-07-16 Dodji Seketeli <dodji@redhat.com>
8508
8509 PR preprocessor/60723 - missing system-ness marks for macro tokens
8510 * c-ppoutput.c (struct print::prev_was_system_token): New data
8511 member.
8512 (init_pp_output): Initialize it.
8513 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
8514 (do_line_change): Return a flag saying if a line marker was
8515 emitted or not.
8516 (scan_translation_unit): Detect if the system-ness of the token we
8517 are about to emit is different from the one of the previously
8518 emitted token. If so, emit a line marker. Avoid emitting useless
8519 adjacent line markers. Avoid emitting line markers for tokens
8520 originating from the expansion of built-in macros.
8521 (scan_translation_unit_directives_only): Adjust.
8522
4d661eaa
MP
85232014-07-15 Marek Polacek <polacek@redhat.com>
8524
8525 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
8526 TYPE_MAX_VALUE is NULL.
8527
b108f48f
JJ
85282014-07-14 Jakub Jelinek <jakub@redhat.com>
8529
8530 PR middle-end/61294
8531 * c.opt (Wmemset-transposed-args): New warning.
8532
c0221884
JM
85332014-07-10 Jason Merrill <jason@redhat.com>
8534
8535 PR c++/61659
8536 PR c++/61687
8537 * c.opt (-fuse-all-virtuals): New.
8538
63dfbb95
RB
85392014-07-09 Richard Biener <rguenther@suse.de>
8540
8541 PR c-family/61741
8542 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
8543 using unsigned arithmetic if overflow does not wrap instead of
8544 if overflow is undefined.
8545
773ec47f
MP
85462014-07-06 Marek Polacek <polacek@redhat.com>
8547
8548 PR c/6940
8549 * c.opt (Wsizeof-array-argument): New option.
8550
00a7ba58
JJ
85512014-07-03 Jakub Jelinek <jakub@redhat.com>
8552
b1726d6c 8553 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
00a7ba58
JJ
8554 comments->count <= 1, as comments->entries might be NULL.
8555
52ec0ea3
MP
85562014-07-01 Marek Polacek <polacek@redhat.com>
8557
8558 * c.opt (Wint-conversion): New option.
8559
d5c3d343
MP
85602014-07-01 Marek Polacek <polacek@redhat.com>
8561
8562 PR c/58286
8563 * c.opt (Wincompatible-pointer-types): New option.
8564
6e7ceb17
PC
85652014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
8566
8567 PR c++/51400
8568 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
8569 Do not discard TYPE_QUALS of type.
8570
da73100b
JM
85712014-06-26 Jason Merrill <jason@redhat.com>
8572
8573 * c-common.h (enum cxx_dialect): Add cxx1z.
8574 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
8575 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
8576
08eedf75
TJ
85772014-06-26 Teresa Johnson <tejohnson@google.com>
8578
8579 * c-common.h (get_dump_info): Declare.
8580 * c-gimplify.c (c_genericize): Use saved dump files.
8581 * c-opts.c (c_common_parse_file): Begin and end dumps
8582 once around parsing invocation.
8583 (get_dump_info): New function.
8584
7b56b2f8
MP
85852014-06-23 Marek Polacek <polacek@redhat.com>
8586 Andrew MacLeod <amacleod@redhat.com>
8587
8588 PR c/61553
8589 * c-common.c (get_atomic_generic_size): Don't segfault if the
8590 type doesn't have a size.
8591
0e37a2f3
MP
85922014-06-20 Marek Polacek <polacek@redhat.com>
8593
8594 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
8595 (ubsan_walk_array_refs_r): New function.
8596 (c_genericize): Instrument array bounds.
8597 * c-ubsan.c: Include "internal-fn.h".
8598 (ubsan_instrument_division): Mark instrumented arrays as having
8599 side effects. Adjust ubsan_type_descriptor call.
8600 (ubsan_instrument_shift): Likewise.
8601 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
8602 (ubsan_instrument_bounds): New function.
8603 (ubsan_array_ref_instrumented_p): New function.
8604 (ubsan_maybe_instrument_array_ref): New function.
8605 * c-ubsan.h (ubsan_instrument_bounds): Declare.
8606 (ubsan_array_ref_instrumented_p): Declare.
8607 (ubsan_maybe_instrument_array_ref): Declare.
8608
86092014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
8610
8611 PR lto/61123
8612 * c.opt (fshort-enums): Add to LTO.
8613 * c.opt (fshort-wchar): Likewise.
8614
5c3d09f7
MP
86152014-06-16 Marek Polacek <polacek@redhat.com>
8616
8617 PR c/60439
8618 * c.opt (Wswitch-bool): Add Var.
8619
9cf32741
JJ
86202014-06-12 Jakub Jelinek <jakub@redhat.com>
8621
8622 PR middle-end/61486
8623 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
8624 #pragma omp target teams or
8625 #pragma omp {,target }teams distribute simd.
8626
62984918
JM
86272014-06-12 Jason Merrill <jason@redhat.com>
8628
8629 * c.opt (Wabi=, fabi-compat-version): New.
8630 * c-opts.c (c_common_handle_option): Handle -Wabi=.
8631 (c_common_post_options): Handle flag_abi_compat_version default.
8632 Disallow -fabi-compat-version=1.
8633 * c-common.h (abi_version_crosses): New.
8634
f961457f
JH
86352014-06-11 Jan Hubicka <hubicka@ucw.cz>
8636
adfac8df 8637 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
8638 section names that are no longer trees.
8639
92d28cbb
JJ
86402014-06-10 Jakub Jelinek <jakub@redhat.com>
8641
8642 PR fortran/60928
8643 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
8644 (omp_pragmas): ... back here.
8645
742938c9
MP
86462014-06-05 Marek Polacek <polacek@redhat.com>
8647
8648 PR c/49706
8649 * c-common.c (warn_logical_not_parentheses): New function.
8650 * c-common.h (warn_logical_not_parentheses): Declare.
8651 * c.opt (Wlogical-not-parentheses): New option.
8652
9d548dfb
MP
86532014-06-04 Marek Polacek <polacek@redhat.com>
8654
8655 PR c/30020
8656 * c-common.c (check_case_bounds): Add location parameter.
8657 Use it.
8658 (c_add_case_label): Pass loc to check_case_bounds.
8659
fedfecef
MP
86602014-06-03 Marek Polacek <polacek@redhat.com>
8661
8662 PR c/60439
8663 * c.opt (Wswitch-bool): New option.
8664
f6a7cffc
TS
86652014-05-22 Thomas Schwinge <thomas@codesourcery.com>
8666
040d18b6
TS
8667 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
8668 Remove prototypes.
8669 (record_types_used_by_current_var_decl): Move prototype to where
8670 it belongs.
8671
f6a7cffc
TS
8672 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
8673 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
8674 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
8675
632f2871
RS
86762014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
8677
8678 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
8679 * c-common.c (c_common_nodes_and_builtins): Don't initialize
8680 void_zero_node.
8681 * c-pretty-print.c (pp_c_void_constant): New function.
8682 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
8683 (c_pretty_printer::expression): Handle VOID_CST.
8684 * cilk.c (extract_free_variables): Likewise.
8685 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
8686 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
8687
766090c2
TS
86882014-05-17 Trevor Saunders <tsaunders@mozilla.com>
8689
8690 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
8691 * c-pragma.c (push_alignment): Adjust.
8692 (handle_pragma_push_options): Likewise.
8693
661a0813
MP
86942014-05-09 Marek Polacek <polacek@redhat.com>
8695
8696 PR c/50459
8697 * c-common.c (check_user_alignment): Return -1 if alignment is error
8698 node.
8699 (handle_aligned_attribute): Don't call default_conversion on
8700 FUNCTION_DECLs.
8701 (handle_vector_size_attribute): Likewise.
8702 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
8703 (handle_sentinel_attribute): Call default_conversion and allow even
8704 integral types as an argument.
8705
2793eeab
MP
87062014-05-08 Marek Polacek <polacek@redhat.com>
8707
8708 PR c/61053
8709 * c-common.c (min_align_of_type): New function factored out from...
8710 (c_sizeof_or_alignof_type): ...here.
8711 * c-common.h (min_align_of_type): Declare.
8712
f827930a
MP
87132014-05-08 Marek Polacek <polacek@redhat.com>
8714
8715 PR c/61077
8716 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
8717 parameter type of main.
8718
ca49b74e
DD
87192014-05-07 DJ Delorie <dj@redhat.com>
8720
8721 * c-cppbuiltin.c (print_bits_of_hex): New.
8722 (builtin_define_type_minmax): Print values using hex so as not to
8723 require a pre-computed list of string values.
8724
1d60af08
KZ
87252014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
8726 Mike Stump <mikestump@comcast.net>
8727 Richard Sandiford <rdsandiford@googlemail.com>
8728
8729 * c-ada-spec.c: Include wide-int.h.
8730 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
8731 (dump_generic_ada_node): Use wide-int interfaces.
8732 * c-common.c: Include wide-int-print.h.
8733 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
8734 (pointer_int_sum): Use wide-int interfaces.
8735 (c_common_nodes_and_builtins): Use make_int_cst.
8736 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
8737 (handle_alloc_size_attribute): Use wide-int interfaces.
8738 (get_nonnull_operand): Likewise.
8739 * c-format.c (get_constant): Use tree_fits_uhwi_p.
8740 * c-lex.c: Include wide-int.h.
8741 (narrowest_unsigned_type): Take a widest_int rather than two
8742 HOST_WIDE_INTs.
8743 (narrowest_signed_type): Likewise.
8744 (interpret_integer): Update accordingly. Use wide-int interfaces.
8745 (lex_charconst): Use wide-int interfaces.
8746 * c-pretty-print.c: Include wide-int.h.
8747 (pp_c_integer_constant): Use wide-int interfaces.
8748 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
8749 INT_CST_LT_UNSIGNED.
8750
b15458be
RB
87512014-05-06 Richard Biener <rguenther@suse.de>
8752
8753 * c-opts.c (c_common_post_options): For -freestanding,
8754 -fno-hosted and -fno-builtin disable pattern recognition
8755 if not enabled explicitely.
8756
6577374e
MP
87572014-05-02 Marek Polacek <polacek@redhat.com>
8758
8759 * c.opt (Wsizeof-pointer-memaccess): Describe option.
8760
d00887e8
MP
87612014-05-01 Marek Polacek <polacek@redhat.com>
8762
8763 PR c/43245
8764 * c.opt (Wdiscarded-qualifiers): Add.
8765
f8ed5150
MP
87662014-04-30 Marek Polacek <polacek@redhat.com>
8767
8768 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
8769 INT_MIN / -1 sanitization only for integer types.
8770
45484dcf
MP
87712014-04-25 Marek Polacek <polacek@redhat.com>
8772
8773 PR c/18079
8774 * c-common.c (handle_noinline_attribute): Warn if the attribute
8775 conflicts with always_inline attribute.
8776 (handle_always_inline_attribute): Warn if the attribute conflicts
8777 with noinline attribute.
8778
38e514c0
MP
87792014-04-25 Marek Polacek <polacek@redhat.com>
8780
8781 PR c/60156
8782 * c-common.c (check_main_parameter_types): Warn about variadic main.
8783
44875f92
MS
87842014-04-24 Mike Stump <mikestump@comcast.net>
8785
8786 * c.opt (Wshadow-ivar): Default to on.
8787
dcaaa5a0
DP
87882014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
8789
8790 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
8791
c07d7c02
MP
87922014-04-23 Marek Polacek <polacek@redhat.com>
8793
8794 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
8795
1c33c9b7
JJ
87962014-04-22 Jakub Jelinek <jakub@redhat.com>
8797
8798 PR sanitizer/60275
8799 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
8800 if flag_sanitize_undefined_trap_on_error.
8801 (ubsan_instrument_division, ubsan_instrument_shift,
8802 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
8803 if !flag_sanitize_recover.
8804
793c625f
MG
88052014-04-22 Marc Glisse <marc.glisse@inria.fr>
8806
8807 PR libstdc++/43622
8808 * c-common.c (registered_builtin_types): Make non-static.
8809 * c-common.h (registered_builtin_types): Declare.
8810
b0f1bf36 88112014-04-14 Richard Biener <rguenther@suse.de>
ab20d992 8812 Marc Glisse <marc.glisse@inria.fr>
b0f1bf36
RB
8813
8814 PR c/60819
8815 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
8816 apply may-alias the scalar pointer type when applicable.
8817
3b07fa4a
IZ
88182014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
8819
8820 PR middle-end/60467
8821 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
8822 as possible argument for Cilk_spawn.
8823
cbbd2b1c
TB
88242014-04-11 Tobias Burnus <burnus@net-b.de>
8825
8826 PR c/60194
8827 * c.opt (Wformat-signedness): Add
8828 * c-format.c(check_format_types): Use it.
8829
6415bd5d
JM
88302014-04-11 Jason Merrill <jason@redhat.com>
8831
8832 PR c++/57926
8833 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
8834 default_conversion for an array argument.
8835
6525783a
MP
88362014-04-08 Marek Polacek <polacek@redhat.com>
8837
8838 PR sanitizer/60745
8839 * c-ubsan.c: Include asan.h.
8840 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
8841
880a467b
NS
88422014-04-03 Nathan Sidwell <nathan@codesourcery.com>
8843
8844 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
8845
7b59ff2d
MP
88462014-04-02 Marek Polacek <polacek@redhat.com>
8847
8848 * c-common.h (c_expand_expr): Remove declaration.
8849
8edbfaa6
JJ
88502014-03-28 Jakub Jelinek <jakub@redhat.com>
8851
8852 PR c++/60689
8853 * c-common.c (add_atomic_size_parameter): When creating new
8854 params vector, push the size argument first.
8855
07d72e1d
JJ
88562014-03-26 Jakub Jelinek <jakub@redhat.com>
8857
8858 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
8859 ubsan_instrument_vla, ubsan_instrument_return): Adjust
8860 ubsan_create_data callers.
8861
b35e0fa0
JJ
88622014-03-22 Jakub Jelinek <jakub@redhat.com>
8863
8864 PR debug/60603
8865 * c-opts.c (c_finish_options): Restore cb_file_change call to
8866 <built-in>.
8867
39a1ebb3
JJ
88682014-03-13 Jakub Jelinek <jakub@redhat.com>
8869
8870 PR middle-end/36282
8871 * c-pragma.c (apply_pragma_weak): Only look at
8872 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
8873 DECL_ASSEMBLER_NAME_SET_P (decl).
8874 (maybe_apply_pending_pragma_weaks): Exit early if
8875 vec_safe_is_empty (pending_weaks) rather than only when
8876 !pending_weaks.
8877 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
8878 set assembler name back to NULL afterwards.
8879
a07f6ed2
JM
88802014-03-11 Jason Merrill <jason@redhat.com>
8881
8882 * c.opt: Add -std=gnu++14.
8883
75b107f5
IB
88842014-03-11 Ian Bolton <ian.bolton@arm.com>
8885
8886 * c-opts.c (c_common_post_options): Don't override
8887 -ffp-contract=fast if unsafe-math-optimizations is on.
8888
f42c637e
PM
88892014-03-08 Paulo Matos <paulo@matos-sorge.com>
8890
22b15758 8891 * c.opt: Enable LTO FE for fshort-double.
f42c637e 8892
70e24808
JM
88932014-03-07 Jason Merrill <jason@redhat.com>
8894
8895 * c.opt: Add -std=c++14.
8896
3af9c5e9
MP
88972014-03-06 Marek Polacek <polacek@redhat.com>
8898
8899 PR c/60197
8900 * cilk.c (contains_cilk_spawn_stmt): New function.
8901 (contains_cilk_spawn_stmt_walker): Likewise.
8902 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
8903 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
8904
b3bdf019
JJ
89052014-03-03 Jakub Jelinek <jakub@redhat.com>
8906
8907 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
8908 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
8909 even when flag_preprocess_only.
8910
ca7e759d
JM
89112014-02-26 Jason Merrill <jason@redhat.com>
8912
8913 PR c++/59231
8914 PR c++/11586
8915 * c-common.c (shorten_compare): Don't check
8916 c_inhibit_evaluation_warnings.
8917
28e41874
JJ
89182014-02-19 Jakub Jelinek <jakub@redhat.com>
8919
cca615af
JJ
8920 PR c/37743
8921 * c-common.c (c_common_nodes_and_builtins): When initializing
8922 c_uint{16,32,64}_type_node, also set corresponding
8923 uint{16,32,64}_type_node to the same value.
8924
28e41874
JJ
8925 PR c++/60267
8926 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
8927 for PRAGMA_IVDEP if flag_preprocess_only.
8928
c2bf53a1
JJ
89292014-02-12 Jakub Jelinek <jakub@redhat.com>
8930
8931 PR c/60101
8932 * c-common.c (merge_tlist): If copy is true, call new_tlist,
8933 if false, add ADD itself, rather than vice versa.
8934 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
8935 copy. For SAVE_EXPR, only call merge_tlist once.
8936
8fcbce72
JJ
89372014-02-08 Jakub Jelinek <jakub@redhat.com>
8938
8939 PR middle-end/60092
8940 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
8941 and tree_to_uhwi.
8942 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
8943 functions.
8944 (c_common_attribute_table): Add alloc_align and assume_aligned
8945 attributes.
8946
0a756a3f
MP
89472014-02-06 Marek Polacek <polacek@redhat.com>
8948
8949 PR c/60087
8950 * c-common.c (warn_for_sign_compare): Call warning_at with location
8951 instead of warning.
8952
7ec4847a
MP
89532014-02-05 Marek Polacek <polacek@redhat.com>
8954
8955 PR c/53123
8956 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
8957 statement.
8958
66f20604
MP
89592014-02-04 Marek Polacek <polacek@redhat.com>
8960
8961 PR c/60036
8962 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
8963 SAVE_EXPR.
8964
5d77fb19
MG
89652014-02-03 Marc Glisse <marc.glisse@inria.fr>
8966
8967 PR c++/53017
8968 PR c++/59211
8969 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
8970 handle_vector_size_attribute, handle_nonnull_attribute): Call
8971 default_conversion on the attribute argument.
8972 (handle_nonnull_attribute): Increment the argument number.
8973
81e5eca8
MP
89742014-01-31 Marek Polacek <polacek@redhat.com>
8975
8976 PR c/59963
8977 * c-common.c (add_atomic_size_parameter): Pass vNULL to
8978 build_function_call_vec.
8979 (resolve_overloaded_builtin): Likewise.
8980 * c-common.h (build_function_call_vec): Adjust declaration.
8981
68fca595
MP
89822014-01-30 Marek Polacek <polacek@redhat.com>
8983
8984 PR c/59940
8985 * c-common.h (unsafe_conversion_p): Adjust declaration.
8986 (warnings_for_convert_and_check): Likewise.
8987 (convert_and_check): Likewise.
8988 * c-common.c (unsafe_conversion_p): Add location parameter. Call
8989 expansion_point_location_if_in_system_header on it.
8990 (warnings_for_convert_and_check): Add location parameter. Call
8991 expansion_point_location_if_in_system_header on it. Use it.
8992 (convert_and_check): Add location parameter. Use it.
8993 (conversion_warning): Likewise.
8994 (c_add_case_label): Adjust convert_and_check calls.
8995 (scalar_to_vector): Adjust unsafe_conversion_p calls.
8996
b72271b9
BI
89972014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
8998
8999 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
9000 flag_cilkplus.
9001 * c-pragma.c (init_pragma): Likewise.
9002 * c.opt: Likewise.
9003
393e8e8b
MP
90042014-01-23 Marek Polacek <polacek@redhat.com>
9005
9006 PR c/59846
9007 * c-common.c (shorten_compare): Add location_t parameter.
9008 * c-common.h (shorten_binary_op): Adjust declaration.
9009
f04dda30
MP
90102014-01-23 Marek Polacek <polacek@redhat.com>
9011
9012 PR c/58346
9013 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
9014 * c-common.h: Declare it.
9015
621955cb
EB
90162014-01-20 Eric Botcazou <ebotcazou@adacore.com>
9017
9018 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
9019 * c-ada-spec.c (dump_ads): Likewise.
9020 (cpp_check): Likewise.
9021 (dump_ada_specs): Likewise.
9022
90232014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
9024
9025 PR c++/49718
9026 * c-common.c (handle_no_instrument_function_attribute): Allow
9027 no_instrument_function attribute in class member
9028 definition/declaration.
9029
241f845a
JJ
90302014-01-15 Jakub Jelinek <jakub@redhat.com>
9031
9032 PR c/58943
9033 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
9034 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
9035 being COMPOUND_EXPR.
9036 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
9037 operand a SAVE_EXPR and second MODIFY_EXPR.
9038
e83b8e2e
JJ
90392014-01-09 Jakub Jelinek <jakub@redhat.com>
9040
9041 PR target/58115
9042 * c-pch.c (c_common_write_pch): Call
9043 prepare_target_option_nodes_for_pch.
9044
23a5b65a
RS
90452014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
9046
9047 Update copyright years
9048
f9030485
RS
90492014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
9050
9051 * array-notation-common.c, c-cilkplus.c: Use the standard form for
9052 the copyright notice.
9053
f2aa696b
EB
90542013-12-28 Eric Botcazou <ebotcazou@adacore.com>
9055
9056 * c-ada-spec.c (print_constructor): New function.
9057 (print_destructor): Retrieve the origin of the destructor.
9058 (print_ada_declaration): Revamp handling of constructors/destructors.
9059
3f8257db 90602013-12-23 Stuart Hastings <stuart@apple.com>
1f26ac87
JM
9061 Bill Maddox <maddox@google.com>
9062 Jason Merrill <jason@redhat.com>
9063
9064 * c.opt: Add -fdeclone-ctor-dtor.
9065 * c-opts.c (c_common_post_options): Default to on iff -Os.
9066
41958c28
BI
90672013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
9068
9069 * c-common.c (c_common_attribute_table): Added "cilk simd function"
9070 attribute.
9071 * c-pragma.h (enum pragma_cilk_clause): Remove.
ab20d992 9072 (enum pragma_omp_clause): Added the following fields:
41958c28
BI
9073 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
9074 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
9075 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
9076 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
9077 PRAGMA_CILK_CLAUSE_UNIFORM.
9078
b1726d6c 9079
12893402
BI
90802013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
9081
9082 * cilk.c (cilk_outline): Made this function non-static.
9083 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
9084 (create_cilk_wrapper): Added a new parameter: a function pointer.
9085 (c_install_body_w_frame_cleanup): Remove
9086 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
9087 * c-common.h (cilk_outline): New prototype.
9088 (gimplify_cilk_spawn): Removed two parameters.
9089 (cilk_install_body_with_frame_cleanup): New prototype.
9090 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
9091 CILK_SPAWN_STMT case.
9092
085b42ed
BS
90932013-12-11 Bernd Schmidt <bernds@codesourcery.com>
9094
2ce064c3
BS
9095 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
9096
085b42ed
BS
9097 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
9098 (int_array_type_node): Remove.
9099 * c-common.c (c_common_nodes_and_builtins): Don't build it.
9100
9e36c9ed
MP
91012013-12-05 Marek Polacek <polacek@redhat.com>
9102
9103 PR c/52023
9104 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
9105 [ADJUST_FIELD_ALIGN].
9106
296674db
JM
91072013-12-04 Joseph Myers <joseph@codesourcery.com>
9108
9109 PR c/52023
9110 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
9111 and check field alignment if set.
9112 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
9113 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
9114
b1726d6c 91152013-12-04 Jakub Jelinek <jakub@redhat.com>
31e071ae
MP
9116 Marek Polacek <polacek@redhat.com>
9117
9118 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
9119 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
9120
d7947e19
L
91212013-11-29 H.J. Lu <hongjiu.lu@intel.com>
9122
9123 PR c/59309
9124 * cilk.c (gimplify_cilk_spawn): Properly handle function without
9125 arguments.
9126
fad7652e
JJ
91272013-11-29 Jakub Jelinek <jakub@redhat.com>
9128
9129 PR c/59280
9130 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
9131 goto invalid. If it is error_mark_node, don't issue further
9132 diagnostics.
9133
8b5e1202
SO
91342013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
9135
9136 * c.opt (Wopenmp-simd): New.
9137
0a508bb6
JJ
91382013-11-22 Jakub Jelinek <jakub@redhat.com>
9139
9140 * c-ubsan.h (ubsan_instrument_return): New prototype.
9141 * c-ubsan.c (ubsan_instrument_return): New function.
9142
2fb9a547
AM
91432013-11-22 Andrew MacLeod <amacleod@redhat.com>
9144
9145 * c-common.c: Add required include files from gimple.h.
ab20d992
JJ
9146 * c-gimplify.c: Likewise.
9147 * cilk.c: Likewise.
2fb9a547 9148
8400e75e
DM
91492013-11-22 David Malcolm <dmalcolm@redhat.com>
9150
9151 * c-common.c (unsafe_conversion_p): Remove use of
9152 EXPR_LOC_OR_HERE macro.
9153 (conversion_warning): Likewise.
9154 (warnings_for_convert_and_check): Likewise.
9155 (warn_for_collisions_1): Likewise.
9156 (shorten_compare): Likewise, and remove use of in_system_header
9157 macro, using the location from the former.
9158 * c-lex.c (dump_one_header): Remove use of input_filename macro.
9159 (cb_def_pragma): Remove use of in_system_header macro.
9160 (lex_string): Likewise.
9161 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
9162
eb1ce453
KZ
91632013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
9164 Mike Stump <mikestump@comcast.net>
9165 Richard Sandiford <rdsandiford@googlemail.com>
9166
9167 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
9168 instead of TREE_INT_CST_LOW, in cases where there is a protecting
9169 tree_fits_shwi_p or tree_fits_uhwi_p.
9170 (dump_generic_ada_node): Likewise.
9171 * c-format.c (check_format_arg): Likewise.
9172 * c-pretty-print.c (pp_c_integer_constant): Likewise.
9173
6b3b8c27
KZ
91742013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
9175
9176 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
9177
49b0aa18
JC
91782013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
9179
9180 PR c/53001
9181 * c-common.c (unsafe_conversion_p): Make this function
9182 return an enumeration with more detail.
9183 (conversion_warning): Use the new return type of
9184 unsafe_conversion_p to separately warn either about conversions
9185 that lower floating point number precision or about the other
9186 kinds of conversions.
9187 * c-common.h (enum conversion_safety): New enumeration.
8e745a17
JJ
9188 (unsafe_conversion_p): switching return type to
9189 conversion_safety enumeration.
49b0aa18
JC
9190 * c.opt: Adding new warning -Wfloat-conversion and
9191 enabling it with -Wconversion.
9192
b826515a
BS
91932013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
9194
8e745a17
JJ
9195 * c-opts.c: Include plugin.h.
9196 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
b826515a 9197
b9a55b13
MP
91982013-11-19 Marek Polacek <polacek@redhat.com>
9199
9200 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
9201 call.
9202 (ubsan_instrument_shift): Likewise.
9203 (ubsan_instrument_vla): Likewise.
9204
7d362f6c
RS
92052013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
9206
9207 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
9208 cast to unsigned type.
9209
386b1f1f
RS
92102013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
9211
9212 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
9213 tree_low_cst.
9214 (complete_array_type): Update comment to refer to tree_to_[su]hwi
9215 rather than tree_low_cst.
9216
ae7e9ddd
RS
92172013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
9218
9219 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
9220 tree_to_uhwi throughout.
9221
9439e9a1
RS
92222013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
9223
9224 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
9225 tree_low_cst (..., 0) with tree_to_shwi throughout.
9226
cc269bb6
RS
92272013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
9228
9229 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
9230 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
9231
9541ffee
RS
92322013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
9233
9234 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
9235 host_integerp (..., 0) with tree_fits_shwi_p throughout.
9236
c02065fc
AH
92372013-11-15 Aldy Hernandez <aldyh@redhat.com>
9238
9239 * c-cilkplus.c: New file.
9240 * c-common.c (readonly_error): Add location argument.
9241 * c-common.h (readonly_error): Same.
9242 (c_finish_cilk_clauses): Protoize.
9243 (c_check_cilk_loop): Same.
9244 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
9245 Do not fail on error_mark_node.
9246 Abstract increment canonicalization to here...
9247 (c_omp_for_incr_canonicalize_ptr): New.
9248 c-pragma.c (init_pragma): Register "simd" pragma.
9249 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
9250 (enum pragma_cilk_clause): New.
9251
9cc65f15
RS
92522013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
9253
9254 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
9255 wchar_type and host_integerp checks.
9256
18f429e2
AM
92572013-11-14 Andrew MacLeod <amacleod@redhat.com>
9258
9259 * c-common.c: Likewise.
9260 * c-gimplify.c: Likewise.
9261 * cilk.c: Likewise.
9262
d8a2d370
DN
92632013-11-14 Diego Novillo <dnovillo@google.com>
9264
9265 * c-common.c: Include fold-const.h.
9266 Include stor-layout.h.
9267 Include calls.h.
9268 Include stringpool.h.
9269 Include attribs.h.
9270 Include varasm.h.
9271 Include trans-mem.h.
9272 * c-cppbuiltin.c: Include stor-layout.h.
9273 Include stringpool.h.
9274 * c-format.c: Include stringpool.h.
9275 * c-lex.c: Include stringpool.h.
9276 Include stor-layout.h.
9277 * c-pragma.c: Include stringpool.h.
9278 Include attribs.h.
9279 Include varasm.h.
9280 Include gcc-symtab.h.
9281 * c-pretty-print.c: Include stor-layout.h.
9282 Include attribs.h.
9283 * cilk.c: Include stringpool.h.
9284 Include calls.h.
9285
38b7bc7f
JM
92862013-11-13 Joseph Myers <joseph@codesourcery.com>
9287
9288 * c-common.h (enum rid): Add RID_AUTO_TYPE.
9289 * c-common.c (c_common_reswords): Add __auto_type.
9290 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
9291
45b0be94
AM
92922013-11-12 Andrew MacLeod <amacleod@redhat.com>
9293
18f429e2
AM
9294 * c-common.c: Include gimplify.h.
9295 * c-gimplify.c: Likewise.
9296 * cilk.c: Likewise.
9297 * c-omp.c: Include gimple-expr.h instead of gimple.h.
9298 * c-ubsan.c: Don't include gimple.h.
45b0be94 9299
582d9b50
JM
93002013-11-12 Joseph Myers <joseph@codesourcery.com>
9301
9302 * c-common.c (c_common_reswords): Add _Thread_local.
9303
6b28e197
JM
93042013-11-09 Joseph Myers <joseph@codesourcery.com>
9305
9306 * c-common.c (atomic_size_supported_p): New function.
9307 (resolve_overloaded_atomic_exchange)
9308 (resolve_overloaded_atomic_compare_exchange)
9309 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
9310 Use it instead of comparing size with a local list of sizes.
9311
267bac10
JM
93122013-11-07 Andrew MacLeod <amacleod@redhat.com>
9313 Joseph Myers <joseph@codesourcery.com>
9314
9315 * c-common.h (enum rid): Add RID_ATOMIC.
9316 * c-common.c (c_common_reswords): Add _Atomic.
9317 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
9318 (keyword_is_type_qualifier): Accept RID_ATOMIC.
9319 * c-format.c (check_format_types): Check for extra _Atomic
9320 qualifiers in format argument.
9321 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
9322 (pp_c_type_qualifier_list): Mention _Atomic in comment.
9323
5157b91e
TB
93242013-11-06 Tobias Burnus <burnus@net-b.de>
9325
9326 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
9327
6dbe0958
JM
93282013-11-06 Joseph Myers <joseph@codesourcery.com>
9329
9330 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
9331 standards modes.
9332 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
9333 to mean lack of IEEE 754 support.
9334
e8ff5196
TB
93352013-11-05 Tobias Burnus <burnus@net-b.de>
9336
9337 * c.opt (-Wdate-time): New option
9338 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
9339
254a0760
JM
93402013-11-05 Joseph Myers <joseph@codesourcery.com>
9341
9342 * c-cppbuiltin.c (cpp_iec_559_value): Test
9343 flag_excess_precision_cmdline not flag_excess_precision.
9344
6d7f7e0a
TB
93452013-11-05 Tobias Burnus <burnus@net-b.de>
9346
9347 * c.opt (fopenmp-simd): New option.
9348 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
9349 (omp_pragmas): ... this new struct.
9350 (c_pp_lookup_pragma): Also walk omp_pragmas.
9351 (init_pragma): Init pragmas for -fopenmp-simd.
9352
55a7f02f
MP
93532013-11-04 Marek Polacek <polacek@redhat.com>
9354
9355 PR c++/58979
9356 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
9357
9193fb05
JM
93582013-11-04 Joseph Myers <joseph@codesourcery.com>
9359
9360 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
9361 New functions.
9362 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
9363
94159ecf
EB
93642013-11-04 Eric Botcazou <ebotcazou@adacore.com>
9365
9366 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
9367 (dump_ada_specs): Adjust prototype of second callback.
9368 * c-ada-spec.c (cpp_check): New global variable.
9369 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
9370 (print_generic_ada_decl): Likewise.
9371 (has_static_fields): Change return type to bool and add guard.
9372 (has_nontrivial_methods): New predicate.
9373 (is_tagged_type): Change return type to bool.
9374 (separate_class_package): Call has_nontrivial_methods.
9375 (pp_ada_tree_identifier): Minor tweaks.
9376 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
9377 (dump_ada_array_domains): Likewise.
9378 (dump_ada_array_type): Likewise.
9379 (dump_template_types): Remove cpp_check parameter and do not pass it to
9380 dump_generic_ada_node.
9381 (dump_ada_template): Likewise.
9382 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
9383 recursively.
9384 (print_ada_methods): Change return type to integer. Remove cpp_check
9385 parameter and do not pass it down.
9386 (dump_nested_types): Remove cpp_check parameter and do not pass it to
9387 dump_generic_ada_node.
9388 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
9389 accessing methods.
9390 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
9391 down. Use has_nontrivial_methods to recognize C++ classes. Use return
9392 value of print_ada_methods.
9393 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
9394 Set cpp_check to it before invoking dump_ada_nodes.
9395 (dump_ada_specs): Likewise.
9396
b906f4ca
MP
93972013-11-03 Marek Polacek <polacek@redhat.com>
9398
9399 * c-ubsan.c: Don't include hash-table.h.
9400 (ubsan_instrument_vla): New function.
9401 * c-ubsan.h: Declare it.
9402
5e20cdc9
DM
94032013-10-31 David Malcolm <dmalcolm@redhat.com>
9404
9405 Automated part of renaming of symtab_node_base to symtab_node.
9406
9407 Patch autogenerated by rename_symtab.py from
9408 https://github.com/davidmalcolm/gcc-refactoring-scripts
9409 revision 58bb219cc090b2f4516a9297d868c245495ee622
9410
9411 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
9412 symtab_node_base to symtab_node.
9413
7057e645
ESR
94142013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
9415
8e745a17 9416 Implement C++14 digit separators.
7057e645
ESR
9417 * c-lex.c (interpret_float): Remove digit separators from scratch string
9418 before building real literal.
9419
193ea7bc
JJ
94202013-10-30 Jakub Jelinek <jakub@redhat.com>
9421
9422 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
9423
939b37da
BI
94242013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
9425
9426 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
9427 fields.
9428 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
9429 enabled.
9430 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
9431 (insert_cilk_frame): New prototype.
9432 (cilk_init_builtins): Likewise.
9433 (gimplify_cilk_spawn): Likewise.
9434 (c_cilk_install_body_w_frame_cleanup): Likewise.
9435 (cilk_detect_spawn_and_unwrap): Likewise.
9436 (cilk_set_spawn_marker): Likewise.
9437 (build_cilk_sync): Likewise.
9438 (build_cilk_spawn): Likewise.
9439 * cilk.c: New file.
9440
67348ccc
DM
94412013-10-29 David Malcolm <dmalcolm@redhat.com>
9442
9443 Patch autogenerated by refactor_symtab.py from
9444 https://github.com/davidmalcolm/gcc-refactoring-scripts
9445 revision 58bb219cc090b2f4516a9297d868c245495ee622
9446
9447 * c-gimplify.c (c_genericize): Update for conversion of symtab types
9448 to a true class hierarchy.
9449 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
9450
d570872d
RS
94512013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
9452
9453 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
9454
98906124
JL
94552013-10-26 Jeff Law <law@redhat.com>
9456
adfac8df
JJ
9457 * c-common.c (c_define_builtins): Remove mudflap support.
9458 * c.opt: Ignore and warn for mudflap options.
98906124 9459
d73749df 94602013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
9461
9462 PR other/33426
9463 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
9464 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
9465
3f04b1bb
JM
94662013-10-23 Jason Merrill <jason@redhat.com>
9467
9468 * c-format.c (gcc_cxxdiag_char_table): Add %X.
9469
acf0174b
JJ
94702013-10-11 Jakub Jelinek <jakub@redhat.com>
9471
acd15a28
JJ
9472 * c-common.h (omp_clause_mask::operator !=): New method.
9473 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
9474 instead of if (mask & something) tests everywhere.
9475
acf0174b
JJ
9476 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
9477 201307 instead of 201107.
9478 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
9479 (c_common_attribute_table): Add "omp declare target" and
9480 "omp declare simd" attributes.
9481 (handle_omp_declare_target_attribute,
9482 handle_omp_declare_simd_attribute): New functions.
9483 * c-omp.c: Include c-pragma.h.
9484 (c_finish_omp_taskgroup): New function.
9485 (c_finish_omp_atomic): Add swapped argument, if true,
9486 build the operation first with rhs, lhs arguments and use NOP_EXPR
9487 build_modify_expr.
9488 (c_finish_omp_for): Add code argument, pass it down to make_code.
9489 (c_omp_split_clauses): New function.
9490 (c_split_parallel_clauses): Removed.
9491 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
9492 c_omp_declare_simd_clauses_to_decls): New functions.
9493 * c-common.h (omp_clause_mask): New type.
9494 (OMP_CLAUSE_MASK_1): Define.
9495 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
9496 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
9497 omp_clause_mask::operator |, omp_clause_mask::operator &,
9498 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
9499 omp_clause_mask::operator ==): New methods.
9500 (enum c_omp_clause_split): New.
9501 (c_finish_omp_taskgroup): New prototype.
9502 (c_finish_omp_atomic): Add swapped argument.
9503 (c_finish_omp_for): Add code argument.
9504 (c_omp_split_clauses): New prototype.
9505 (c_split_parallel_clauses): Removed.
9506 (c_omp_declare_simd_clauses_to_numbers,
9507 c_omp_declare_simd_clauses_to_decls): New prototypes.
9508 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
9509 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
9510 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
9511 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
9512 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
9513 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
9514 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
9515 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
9516 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
9517 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
9518 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
9519 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
9520 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
9521 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
9522 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
9523 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
9524 PRAGMA_OMP_CLAUSE_UNIFORM.
9525
826cacfe
MG
95262013-10-09 Marc Glisse <marc.glisse@inria.fr>
9527
9528 PR tree-optimization/20318
9529 * c-common.c (handle_returns_nonnull_attribute): New function.
9530 (c_common_attribute_table): Add returns_nonnull.
9531
2284b034
MG
95322013-10-03 Marc Glisse <marc.glisse@inria.fr>
9533
9534 PR c++/19476
9535 * c.opt (fcheck-new): Move to common.opt.
9536
b56e9788
MP
95372013-09-25 Marek Polacek <polacek@redhat.com>
9538 Jakub Jelinek <jakub@redhat.com>
9539
9540 PR sanitizer/58413
9541 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
9542 an expression if we can prove it is correct.
9543 (ubsan_instrument_division): Likewise. Remove unnecessary
9544 check.
9545
ce6923c5
MP
95462013-09-18 Marek Polacek <polacek@redhat.com>
9547
9548 PR sanitizer/58411
9549 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
9550 Declare it.
9551 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
9552
fb5610fb
IS
95532013-09-14 Iain Sandoe <iain@codesourcery.com>
9554
9555 PR target/48094
9556 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
9557 fobjc-gc, freplace-objc-classes): Accept for LTO.
9558
88b0e79e
JC
95592013-09-13 Jacek Caban <jacek@codeweavers.com>
9560
9561 * c-target.def: New hook
9562
c9b0866a
PC
95632013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
9564
9565 PR c++/43452
9566 * c.opt (Wdelete-incomplete): Add.
9567
0af94e6f
JR
95682013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
9569
9570 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
9571 (vector_types_compatible_elements_p): New function.
9572 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
9573 declaration.
9574 (vector_types_compatible_elements_p): Declare.
9575
7c26172c
GDR
95762013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
9577
9578 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
9579 a virtual member function.
9580 (pp_simple_type_specifier): Remove.
9581 (pp_c_type_specifier): Likewise.
9582 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
9583 Rename from pp_c_type_specifier. Adjust.
9584 (c_pretty_printer::c_pretty_printer): Do not assign to
9585 simple_type_specifier.
9586
20059c8b
GDR
95872013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
9588
9589 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
9590 member function.
9591 (c_pretty_printer::storage_class_specifier): Likewise.
9592 (c_pretty_printer::initializer): Likewise.
9593 (pp_declaration): Remove.
9594 (pp_declaration_specifiers): Likewise.
9595 (pp_abstract_declarator): Likewise.
9596 (pp_declarator): Likewise.
9597 (pp_type_id): Likewise.
9598 (pp_statement): Likewise.
9599 (pp_constant): Likewise.
9600 (pp_id_expression): Likewise.
9601 (pp_primary_expression): Likewise.
9602 (pp_unary_expression): Likewise.
9603 (pp_multiplicative_expression): Likewise.
9604 (pp_conditional_expression): Likewise.
9605 (pp_assignment_expression): Likewise.
9606 (pp_expression): Likewise.
9607 (pp_c_type_id): Likewise.
9608 (pp_c_storage_class_specifier): Likewise.
9609 * c-pretty-print.c (pp_c_type_cast): Tidy.
9610 (pp_c_pointer): Likewise.
9611 (pp_c_type_specifier): Likewise.
9612 (pp_c_parameter_type_list): Likewise.
9613 (pp_c_function_definition): Likewise.
9614 (pp_c_init_declarator): Likewise.
9615 (pp_c_initializer_list): Likewise.
9616 (pp_c_constructor_elts): Likewise.
9617 (c_pretty_printer::direct_abstract_declarator): Likewise.
9618 (c_pretty_printer::declaration_specifiers): Likewise.
9619 (c_pretty_printer::primary_expression): Likewise.
9620 (c_pretty_printer::postfix_expression): Likewise.
9621 (c_pretty_printer::type_id): Rename from pp_c_type_id.
9622 (c_pretty_printer::storage_class_specifier): Rename from
9623 pp_c_storage_class_specifier.
9624 (c_pretty_printer::initializer): Rename from pp_c_initializer.
9625 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
9626 storage_class_specifier, initializer, offset_list, flags.
9627
de5a5fa1
MP
96282013-08-30 Marek Polacek <polacek@redhat.com>
9629
9630 * c-ubsan.c: New file.
9631 * c-ubsan.h: New file.
9632
8f0e4d72
GDR
96332013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
9634
9635 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
9636 member function.
9637 (c_pretty_printer::declaration_specifiers): Likewise.
9638 (c_pretty_printer::declarator): Likewise.
9639 (c_pretty_printer::abstract_declarator): Likewise.
9640 (c_pretty_printer::direct_abstract_declarator): Likewise.
9641 (c_pretty_printer::direct_declarator): Likewise.
9642 (c_pretty_printer::function_specifier): Likewise.
9643 (pp_declaration): Adjust.
9644 (pp_declaration_specifiers): Likewise.
9645 (pp_abstract_declarator): Likewise.
9646 (pp_direct_declarator): Likewise.
9647 (pp_function_specifier): Likewise.
9648 (pp_direct_abstract_declarator): Remove as unused.
9649 (pp_c_declaration): Remove.
9650 (pp_c_declaration_specifiers): Likewise.
9651 (pp_c_declarator): Likewise.
9652 (pp_c_direct_declarator): Likewise.
9653 (pp_c_function_specifier): Likewise.
9654 (pp_c_direct_abstract_declarator): Likewise.
9655 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
9656 from pp_c_abstract_declarator. Adjust.
ab20d992 9657 (c_pretty_printer::direct_abstract_declarator): Rename from
8f0e4d72
GDR
9658 pp_c_direct_abstract_declarator. Adjust.
9659 (c_pretty_printer::function_specifier): Rename from
9660 pp_c_function_specifier. Adjust.
9661 (c_pretty_printer::declaration_specifiers): Rename from
9662 pp_c_declaration_specifiers. Adjust.
9663 (c_pretty_printer::direct_declarator): Rename from
9664 pp_c_direct_declarator. Adjust.
9665 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
9666 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
9667 (c_pretty_printer::c_pretty_printer): Do not assign to
9668 declaration, declaration_specifiers, declarator,
9669 direct_declarator, direct_abstract_declarator, function_specifier.
9670
00d34d3a
GDR
96712013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
9672
9673 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
9674 virtual member function.
9675 (c_pretty_printer::multiplicative_expression): Likewise.
9676 (c_pretty_printer::conditional_expression): Likewise.
9677 (c_pretty_printer::assignment_expression): Likewise.
9678 (c_pretty_printer::expression): Likewise.
9679 (pp_unary_expression): Adjust.
9680 (pp_multiplicative_expression): Likewise.
9681 (pp_assignment_expression): Likewise.
9682 (pp_conditional_expression): Likewise.
9683 (pp_expression): Likewise.
9684 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
9685 from pp_c_unary_expression. Adjust.
9686 (c_pretty_printer::multiplicative_expression): Rename from
9687 pp_c_multiplicative_expression. Adjust.
9688 (c_pretty_printer::conditional_expression): Rename from
9689 pp_c_conditional_expression. Adjust.
9690 (c_pretty_printer::assignment_expression): Rename from
9691 pp_c_assignment_expression. Adjust.
9692 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
9693 (c_pretty_printer::c_pretty_printer): Do not assign to
9694 unary_expression, multiplicative_expression,
9695 conditional_expression, expression.
9696
fb22178f
GDR
96972013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
9698
9699 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
9700 virtual member function.
9701 (pp_postfix_expression): Adjust.
9702 (pp_c_postfix_expression): Remove.
9703 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
9704 from pp_c_postfix_expression. Adjust.
9705 (c_pretty_printer::c_pretty_printer): Do not assign to
9706 postfix_expression.
9707
7ecc2600
GDR
97082013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
9709
9710 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
9711 virtua member function.
9712 (pp_primary_expression): Adjust.
9713 (pp_c_primary_expression): Remove.
9714 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
9715 from pp_c_primary_expression. Adjust.
9716 (pp_c_initializer_list): Use pp_primary_expression.
9717 (c_pretty_printer::c_pretty_printer): Do not assign to
9718 primary_expression.
9719
0691175f
GDR
97202013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
9721
9722 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
9723 * c-pretty-print.c (M_): Remove.
9724 (c_pretty_printer::translate_string): Define.
9725 (pp_c_type_specifier): Use it.
9726 (pp_c_primary_expression): Likewise.
9727 (pp_c_expression): Likewise.
9728
66dfe4c4
GDR
97292013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
9730
9731 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
9732 virtual function.
9733 (pp_c_id_expression): Remove.
9734 (pp_id_expression): Adjust.
9735 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
9736 pp_c_id_expression. Adjust.
9737 (pp_c_postfix_expression): Use pp_id_expression.
9738 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
9739
ca43e9d5
GDR
97402013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
9741
9742 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
9743 member function.
9744 (pp_constant): Adjust.
9745 (pp_c_constant): Remove.
9746 * c-pretty-print.c (c_pretty_printer::constant): Rename from
9747 pp_c_constant. Adjust.
9748 (pp_c_constant)
9749 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
9750 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
9751
da6ca2b5
GDR
97522013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
9753
9754 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
9755 (c_pretty_printer::c_pretty_printer): Declare.
9756 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
9757 c_pretty_printer_init. Adjust.
9758 (print_c_tree): Do not call c_pretty_printer_init.
9759 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
9760
65a372f4
AC
97612013-08-09 Arnaud Charlet <charlet@adacore.com>
9762
9763 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
9764
fd9b0f32
PC
97652013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
9766
9767 PR c++/58080
9768 * c-common.c (pointer_int_sum): Add bool parameter.
9769 * c-common.h (pointer_int_sum): Adjust declaration.
9770
e0aec1e9
GDR
97712013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
9772
9773 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
9774 c_pretty_printer variable.
9775
b066401f
GDR
97762013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
9777
9778 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
9779 (pp_base): Remove.
9780 (pp_c_base): Likewise. Adjust users.
9781 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
9782 (pp_c_whitespace): Do not call pp_base.
9783 (pp_c_left_paren): Likewise.
9784 (pp_c_right_paren): Likewise.
9785 (pp_c_left_brace): Likewise.
9786 (pp_c_right_brace): Likewise.
9787 (pp_c_left_bracket): Likewise.
9788 (pp_c_right_bracket): Likewise.
9789 (pp_c_dot): Likewise.
9790 (pp_c_ampersand): Likewise.
9791 (pp_c_star): Likewise.
9792 (pp_c_arrow): Likewise.
9793 (pp_c_semicolon): Likewise.
9794 (pp_c_complement): Likewise.
9795 (pp_c_exclamation): Likewise.
9796 (pp_c_direct_declarator): Likewise.
9797 (pp_c_ws_string): Likewise.
9798 (pp_c_identifier): Likewise.
9799 (pp_c_statement): Likewise.
9800 (print_c_tree): Likewise.
9801
65e5a578
ESR
98022013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
9803
9804 PR c++/58072
9805 * c-common.c (c_parse_error): Catch user-defined literal tokens and
9806 provide useful error strings.
9807
137a1a27
GDR
98082013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
9809
9810 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
9811 printer functions instead of pp_string or operators and punctuators.
9812 (dump_generic_ada_node): Likewise.
9813 * c-pretty-print.c (pp_c_type_specifier): Likewise.
9814 (pp_c_relational_expression): Likewise.
9815 (pp_c_logical_or_expression): Likewise.
9816
07838b13
GDR
98172013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
9818
9819 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
9820 functions instead of pp_character.
9821 (pp_ada_tree_identifier): Likewise.
9822 (dump_ada_double_name): Likewise.
9823 (dump_ada_function_declaration): Likewise.
9824 (dump_ada_array_domains): Likewise.
9825 (dump_template_types): Likewise.
9826 (dump_generic_ada_node): Likewise.
9827 (print_ada_declaration): Likewise.
9828 (print_ada_struct_decl): Likewise.
9829 * c-pretty-print.c (pp_c_integer_constant): Likewise.
9830
433cc7b0
TT
98312013-07-23 Tom Tromey <tromey@redhat.com>
9832
9833 * c-common.h (enum rid) <RID_GENERIC>: New constant.
9834 * c-common.c (c_common_reswords): Add _Generic.
9835
688010ba
OB
98362013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
9837
9838 * c-common.c: Fix typos.
9839 * c-common.h: Likewise.
9840
2a99e5e6
LL
98412013-07-13 Lubos Lunak <l.lunak@suse.cz>
9842
9843 PR c++/55203
9844 * c-common.c (c_common_attribute_table): Add warn_unused.
9845 (handle_warn_unused_attribute): New.
9846
c26302d5
JJ
98472013-07-10 Jakub Jelinek <jakub@redhat.com>
9848
9849 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
9850 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
9851
dfeadaa0
PC
98522013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
9853
9854 PR c++/57869
9855 * c.opt: Add Wconditionally-supported.
9856
6a2fa4b2
GS
98572013-07-08 Graham Stott <graham.stott@btinternet.com>
9858
adfac8df 9859 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
9860 unused variables l_length and l_node.
9861
ecdbd01a 98622013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
9863
9864 PR c/57821
9865 * c-common.c (complete_array_type): Delay folding first index
9866 like other indices. When folding, check for index overflow.
9867
bedc293e
MG
98682013-06-27 Marc Glisse <marc.glisse@inria.fr>
9869
9870 PR c++/57509
9871 * c-common.h (c_build_vec_perm_expr): New complain argument.
9872 * c-common.c (c_build_vec_perm_expr): Likewise.
9873 Use save_expr also in C++.
9874
604b2bfc
GDR
98752013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
9876
9877 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
9878 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
9879 * c-opts.c (c_common_post_options): Likewise.
9880
dfeadaa0 98812013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
9882
9883 * array-notation-common.c (length_mismatch_in_expr): Changed the
9884 parameter type's from a dynamic array to a vec_tree. Also removed
9885 the size parameters.
9886 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
9887 the change above.
9888
2ce86d2e
BI
98892013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
9890
9891 * c-common.h (struct cilkplus_an_parts): New structure.
9892 (struct cilkplus_an_loop_parts): Likewise.
9893 (cilkplus_extract_an_triplets): New prototype.
9894 (fix_sec_implicit_args): Likewise.
9895 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
9896 (fix_sec_implicit_args): Likewise.
604b2bfc 9897
07a6825b
BI
98982013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
9899
9900 * array-notation-common.c (find_inv_trees): Removed an unwanted
9901 typecasting.
9902 * c-common.h (struct inv_list::additional_tcodes): Changed type from
9903 enum rid to enum tree_code.
9904
08346abd
JH
99052013-06-11 Jan Hubicka <jh@suse.cz>
9906
9907 * c-common.c (handle_alias_ifunc_attribute): Do not set
9908 DECL_EXTERNAL for weakref variables.
9909 * c-pragma.c (handle_pragma_weak): Make sure aliases
9910 are not declared as external.
9911
d60f1706
BI
99122013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
9913
9914 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
9915 function from c/c-array-notation.c.
9916 (is_cilkplus_reduce_builtin): Likewise.
9917 (find_rank): Likewise.
9918 (extract_array_notation_exprs): Likewise.
9919 (replace_array_notations): Likewise.
9920 (find_inv_trees): Likewise.
9921 (replace_inv_trees): Likewise.
9922 (contains_array_notation_expr): Likewise.
9923 (find_correct_array_notation_type): Likewise.
9924 * c-common.h (struct inv_list): Moved this struct from the file
9925 c/c-array-notation.c and added a new field called additional tcodes.
9926 (length_mismatch_in_expr_p): New prototype.
9927 (is_cilkplus_reduce_builtin): Likewise.
9928 (find_rank): Likewise.
9929 (extract_array_notation_exprs): Likewise.
9930 (replace_array_notation): Likewise.
9931 (find_inv_trees): Likewise.
9932 (replace_inv_trees): Likewise.
9933 (find_correct_array_notation_type): Likewise.
dfeadaa0 9934
36536d79
BI
99352013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
9936
9937 * c-common.c (c_define_builtins): When cilkplus is enabled, the
9938 function array_notation_init_builtins is called.
9939 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
9940 * c-common.def (ARRAY_NOTATION_REF): New tree.
9941 * c-common.h (build_array_notation_expr): New function declaration.
9942 (build_array_notation_ref): Likewise.
9943 (extract_sec_implicit_index_arg): New extern declaration.
9944 (is_sec_implicit_index_fn): Likewise.
9945 (ARRAY_NOTATION_CHECK): New define.
9946 (ARRAY_NOTATION_ARRAY): Likewise.
9947 (ARRAY_NOTATION_START): Likewise.
9948 (ARRAY_NOTATION_LENGTH): Likewise.
9949 (ARRAY_NOTATION_STRIDE): Likewise.
9950 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
9951 ARRAY_NOTATION_REF.
9952 (pp_c_expression): Likewise.
9953 * c.opt (flag_enable_cilkplus): New flag.
9954 * array-notation-common.c: New file.
9955
f7716d57
JJ
99562013-05-14 Jakub Jelinek <jakub@redhat.com>
9957
9958 PR c++/57274
9959 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
9960
a5e0cd1d
MG
99612013-05-10 Marc Glisse <marc.glisse@inria.fr>
9962
9963 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
9964 vectors.
9965
f6bc1c4a
HS
99662013-05-07 Han Shen <shenhan@google.com>
9967
9968 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
9969
3f12f6e9
SKS
99702013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
9971
9972 * c-common.c (check_user_alignment): Emit error for negative values.
9973
61949153
PC
99742013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
9975
9976 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
9977
e93e18e9
PC
99782013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
9979
9980 * c-cppbuiltin.c (c_cpp_builtins): Do not define
9981 __GXX_EXPERIMENTAL_CXX1Y__.
9982
44d90fe1 99832013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
8e745a17 9984 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
44d90fe1
PC
9985
9986 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
9987 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
9988 to simply use OPT_Wpointer_arith.
9989 (c_sizeof_or_alignof_type): Likewise.
9990
13f39b2e
PC
99912013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
9992
9993 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
9994
4b84d650
JJ
99952013-04-12 Jakub Jelinek <jakub@redhat.com>
9996
9997 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
9998 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
9999 specifiers.
10000
fb037b5d
SB
100012013-04-07 Steven Bosscher <steven@gcc.gnu.org>
10002
10003 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
10004
4e856798
PC
100052013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
10006
10007 * c-common.c (pointer_int_sum): Remove dead code.
10008
4b1baac8
RS
100092013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
10010
10011 PR middle-end/56524
10012 * c-common.c (handle_optimize_attribute): Don't call
10013 save_optabs_if_changed.
10014
0b50e654
JJ
100152013-03-05 Jakub Jelinek <jakub@redhat.com>
10016
10017 PR middle-end/56461
10018 * c-pch.c (pch_init): Free target_validity at the end.
10019
48c41403
JJ
100202013-03-04 Jakub Jelinek <jakub@redhat.com>
10021
10022 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
10023
e664c61c
KS
100242013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
10025 Jakub Jelinek <jakub@redhat.com>
10026
10027 PR sanitizer/56454
10028 * c-common.c (handle_no_sanitize_address_attribute): New function.
10029 (c_common_attribute_table): Add no_sanitize_address attribute.
10030 (handle_no_address_safety_analysis_attribute): Add
10031 no_sanitize_address attribute, not no_address_safety_analysis
10032 attribute.
10033
a475fd3d 100342013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
10035
10036 PR target/52555
10037 * c-common.c (handle_optimize_attribute): Call
10038 save_optabs_if_changed.
10039
f6007d99
JJ
100402013-02-18 Jakub Jelinek <jakub@redhat.com>
10041 Steven Bosscher <steven@gcc.gnu.org>
10042
10043 PR pch/54117
10044 * c-opts.c (c_common_post_options): If debug info is enabled
10045 and non-dwarf*, refuse to load PCH files and when writing PCH
10046 file warn.
10047
cf35e2b1
JJ
100482013-02-05 Jakub Jelinek <jakub@redhat.com>
10049
10050 PR middle-end/56167
10051 * c-common.c (handle_error_attribute): Fix condition.
10052
32887460
JJ
100532013-01-30 Jakub Jelinek <jakub@redhat.com>
10054
10055 PR c++/55742
10056 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
10057
5af057d8
JM
100582013-01-18 Jason Merrill <jason@redhat.com>
10059
10060 PR target/54908
10061 * c.opt (-fextern-tls-init): New.
10062 * c-opts.c (c_common_post_options): Handle it.
10063
cc83c823
JJ
100642013-01-09 Jakub Jelinek <jakub@redhat.com>
10065
10066 PR c/48418
10067 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
10068 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
10069 and is either negative or bigger or equal to type precision
10070 of the first operand.
10071
a859517f
MP
100722012-12-03 Marek Polacek <polacek@redhat.com>
10073
10074 PR c/55570
10075 * c-common.c (check_user_alignment): Swap order of tests,
10076 check TREE_CODE first.
10077
2d7aa578
ESR
100782012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
10079
10080 PR c++/52654
10081 * c-common.h (overflow_type): New enum.
10082 (build_userdef_literal): Add overflow_type argument.
10083 (tree_userdef_literal): Add overflow_type.
10084 (USERDEF_LITERAL_OVERFLOW): New access macro.
10085 * c-common.c (build_userdef_literal): Add overflow_type
10086 argument.
10087 * c-lex.c (c_lex_with_flags): Add overflow_type to
10088 build_userdef_literal calls.
10089 (interpret_integer, interpret_float): Add overflow_type argument.
10090
cc3c4f62
RB
100912012-11-28 Richard Biener <rguenther@suse.de>
10092
10093 PR c/35634
10094 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
10095 here and use a type with proper overflow behavior for types that would
10096 need to be promoted for the arithmetic.
10097
77bc5132
JJ
100982012-11-23 Jakub Jelinek <jakub@redhat.com>
10099
10100 PR sanitizer/55435
10101 * c-common.c (handle_no_address_safety_analysis_attribute): New
10102 function.
10103 (c_common_attribute_table): Add no_address_safety_analysis.
10104
5dc99c46
SB
101052012-11-16 Simon Baldwin <simonb@google.com>
10106
10107 * c.opt: Add f[no-]canonical-system-headers.
10108 * c-opts.c (c_common_handle_option): Handle
10109 OPT_fcanonical_system_headers.
10110
a4a0016d
ESR
101112012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
10112
10113 PR c++/54413
10114 * c-opts.c (c_common_handle_option): Set new flags.
10115 * c.opt: Describe new flags.
10116
7dbb85a7
JM
101172012-11-09 Jason Merrill <jason@redhat.com>
10118
10119 * c.opt (Wabi-tag): New.
10120
ad7bac31
AK
101212012-11-09 Andi Kleen <ak@linux.intel.com>
10122
10123 PR 55139
10124 * c-common.c (get_atomic_generic_size): Mask with
8e745a17 10125 MEMMODEL_MASK
ad7bac31 10126
7332899a
MLI
101272012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
10128
10129 PR c/53063
10130 * c.opt (Wformat): Make it Alias Wformat=1.
10131 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
10132 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
10133 LangEnabledBy.
10134 (Wformat=): RejectNegative. Use LangEnabledBy.
10135 (Wnonnull): Use LangEnabledBy.
10136 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
10137 * c-format.c (set_Wformat): Delete.
10138 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
ab20d992
JJ
10139 (maybe_read_dollar_number): Likewise.
10140 (avoid_dollar_number): Likewise.
10141 (finish_dollar_format_checking): Likewise.
10142 (check_format_info): Likewise.
10143 (check_format_info_main): Likewise.
10144 (check_format_types): Likewise.
10145 (format_type_warning): Likewise.
10146 * c-common.c (int): Likewise.
10147 (check_function_sentinel): Likewise.
8e745a17 10148 * c-common.h (warn_format,set_Wformat): Do not declare here.
7332899a 10149
34a180a6
MLI
101502012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
10151
10152 PR c/53063
10153 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
10154 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
10155 Use LangEnabledBy.
10156 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
10157 common.opt.
10158 (Wvariadic-macros): Init(1).
10159 * c-opts.c (c_common_handle_option): Do not handle them
10160 explicitly.
10161 (c_common_post_options): Likewise.
10162 (sanitize_cpp_opts): warn_unused_macros is now
10163 cpp_warn_unused_macros.
10164 (push_command_line_include): Likewise.
10165 * c-common.c (warn_unknown_pragmas): Do not define.
10166 * c-common.h (warn_unknown_pragmas): Do not declare.
10167
3f46d6a5
MLI
101682012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
10169
10170 PR c/51294
10171 * c-common.c (conversion_warning): Handle conditional expressions.
10172
880661a4
JW
101732012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
10174
10175 PR c++/54930
10176 * c.opt (Wreturn_local_addr): Define new option.
10177
4514a96b
JM
101782012-10-25 Jason Merrill <jason@redhat.com>
10179
f14edc1a
JM
10180 * c.opt (Wvirtual-move-assign): New.
10181
4514a96b
JM
10182 * c.opt (Winherited-variadic-ctor): New.
10183
93100c6b
MG
101842012-10-25 Marc Glisse <marc.glisse@inria.fr>
10185
10186 PR c++/54427
10187 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
10188
1efcb8c6
JM
101892012-10-23 Joseph Myers <joseph@codesourcery.com>
10190
10191 * c-common.h (pch_cpp_save_state): Declare.
10192 * c-target.def (c_preinclude): New hook.
10193 * c-opts.c (done_preinclude): New.
10194 (push_command_line_include): Handle default preincluded header.
10195 (cb_file_change): Call pch_cpp_save_state when calling
10196 push_command_line_include.
10197 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
10198 (pch_cpp_save_state): New.
10199 (pch_init): Call pch_cpp_save_state conditionally, instead of
10200 calling cpp_save_state.
10201
4a0ae68e
MLI
102022012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
10203
10204 PR c/53063
10205 PR c/40989
10206 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
10207 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
10208 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
10209 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
10210 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
10211 * c-opts.c (c_common_handle_option): Remove explicit handling from
10212 here.
10213 (c_common_post_options): Likewise.
10214
67e4210b
EB
102152012-10-18 Eric Botcazou <ebotcazou@adacore.com>
10216
10217 * c-ada-spec.c (LOCATION_COL): Delete.
10218 (compare_location): New function.
10219 (compare_node): Use it.
10220 (compare_comment): Likewise.
10221
65d4f2cd
MLI
102222012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
10223
10224 PR c/53063
10225 PR c/40989
10226 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
10227 * c-opts.c (c_common_handle_option): Do not set them here. Add
10228 comment.
10229 (c_common_post_options): Likewise.
10230
909881cb
EB
102312012-10-16 Eric Botcazou <ebotcazou@adacore.com>
10232
10233 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
10234 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
10235 Remove POINTER_TYPE handling, add large unsigned handling and use
10236 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
10237
3a785c97
JJ
102382012-10-12 Jakub Jelinek <jakub@redhat.com>
10239
10240 PR c/54381
10241 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
10242 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
10243 locs and array of 3 trees instead of just single loc and single
10244 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
10245 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
10246 For *cmp* builtins that take two sources strings report warnings
10247 about first and second source, not about destination and source.
10248
5e54f81d
MG
102492012-10-12 Marc Glisse <marc.glisse@inria.fr>
10250
10251 PR c++/53055
10252 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
10253
f5b02f1e
EB
102542012-10-11 Eric Botcazou <ebotcazou@adacore.com>
10255
10256 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
10257 declaring something coming from another file.
10258
b46dbc6c
AC
102592012-10-10 Arnaud Charlet <charlet@adacore.com>
10260
f5b02f1e 10261 PR ada/54845
b46dbc6c
AC
10262 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
10263
5d9de0d0
PC
102642012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
10265
10266 PR c++/54194
10267 * c-common.c (warn_about_parentheses): Add location_t parameter;
10268 use EXPR_LOC_OR_LOC.
10269 * c-common.h: Update declaration.
10270
a212e43f
MG
102712012-10-09 Marc Glisse <marc.glisse@inria.fr>
10272
10273 PR c++/54427
10274 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
10275 more operations. Make error messages optional.
10276 * c-common.h (enum stv_conv): Moved from c-typeck.c.
10277 (scalar_to_vector): Declare.
10278
b1db7f91
JM
102792012-10-08 Jason Merrill <jason@redhat.com>
10280
10281 * c-common.c (c_common_reswords): Add thread_local.
10282
e28d52cf
DS
102832012-10-08 Dodji Seketeli <dodji@redhat.com>
10284
10285 PR c++/53528 C++11 attribute support
10286 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
10287 new functions.
10288 * c-common.c (check_cxx_fundamental_alignment_constraints): New
10289 static function.
10290 (handle_aligned_attribute): In choose strictest alignment
10291 among many. Use new check_cxx_fundamental_alignment_constraints.
10292 (handle_transparent_union_attribute): In c++11 attribute syntax,
10293 don't look through typedefs.
10294
3b78de56
AC
102952012-10-04 Arnaud Charlet <charlet@adacore.com>
10296
10297 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
10298 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
10299 out of dumpfile.h.
10300
6040bb5f
DC
103012012-09-25 Dehao Chen <dehao@google.com>
10302
10303 PR middle-end/54645
3b78de56 10304 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
10305 map when read in the pch.
10306
3f8257db 103072012-09-18 Arnaud Charlet <charlet@adacore.com>
0b07a57e
AC
10308
10309 * c-ada-spec.c: Style fixes.
10310
3f8257db 103112012-09-18 Thomas Quinot <quinot@adacore.com>
da5182be
TQ
10312
10313 * c.opt (-fada-spec-parent): Define new command line switch.
10314 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
10315 is specified, generate binding spec as a child of the specified unit.
10316
0ccb505d
PC
103172012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
10318 Manuel López-Ibáñez <manu@gcc.gnu.org>
10319
10320 PR c++/53210
10321 * c.opt ([Winit-self]): Enabled by -Wall in C++.
10322
c583af79
AC
103232012-08-23 Arnaud Charlet <charlet@adacore.com>
10324
10325 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
10326 for pointers, and add missing Convention C pragma.
10327 (print_ada_struct_decl): Add missing aliased keyword.
10328 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
10329
1a4049e7
JJ
103302012-08-17 Jakub Jelinek <jakub@redhat.com>
10331
10332 * c-common.c (sizeof_pointer_memaccess_warning): New function.
10333 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
10334 * c-opts.c (c_common_handle_option): Enable it for -Wall.
10335 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
10336 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
10337
70b5e7dc
RG
103382012-08-10 Richard Guenther <rguenther@suse.de>
10339
10340 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
10341
f8923f7e
SB
103422012-08-07 Steven Bosscher <steven@gcc.gnu.org>
10343
10344 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
10345 instead of separate pp_newline and pp_flush.
10346 (print_c_tree): Likewise.
10347
e45abe1f
RH
103482012-07-26 Richard Henderson <rth@redhat.com>
10349
10350 * c-common.c (handle_hot_attribute): Allow labels.
10351 (handle_cold_attribute): Likewise.
10352
332f1d24
JJ
103532012-07-20 Jakub Jelinek <jakub@redhat.com>
10354
10355 PR c++/28656
10356 * c-common.c (check_function_nonnull): Handle multiple nonnull
10357 attributes properly.
10358
7ee2468b
SB
103592012-07-16 Steven Bosscher <steven@gcc.gnu.org>
10360
10361 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
10362 * c-ada-spec.c: Likewise.
10363 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
10364
ee7b28eb
SB
103652012-07-14 Steven Bosscher <steven@gcc.gnu.org>
10366
10367 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
10368 Remove code conditional on it.
10369
6bdf3519
SB
103702012-07-11 Steven Bosscher <steven@gcc.gnu.org>
10371
10372 * c-gimplify.c: Do not include basic-block.h.
10373 * c-common.c: Do not include linfuncs.h.
10374
532aafad
SB
103752012-07-08 Steven Bosscher <steven@gcc.gnu.org>
10376
10377 * c-common.h: Include tree.h.
10378
8d0d1915
JM
103792012-07-02 Jason Merrill <jason@redhat.com>
10380
10381 PR c++/53524
10382 * c-common.c (get_priority): Call default_conversion.
10383
fbc873ad
UB
103842012-07-01 Uros Bizjak <ubizjak@gmail.com>
10385
10386 * c-pch.c (c_common_write_pch): Remove unused variables.
10387
d4a10d0a
SB
103882012-06-29 Steven Bosscher <steven@gcc.gnu.org>
10389
10390 * cppspec.c: Moved from gcc/ to here.
10391
6f3a2e23
KT
103922012-06-27 Kai Tietz <ktietz@redhat.com>
10393
10394 PR preprocessor/37215
10395 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
10396
8ca92d04
SB
103972012-06-21 Steven Bosscher <steven@gcc.gnu.org>
10398
10399 * c-common.h (c_common_print_pch_checksum): Remove.
10400 * c-pch.c: Do not include output.h.
10401 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
10402 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
10403 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
10404 (struct c_pch_header): Remove.
10405 (get_ident): Update gpch version.
10406 (pch_init): Do not print executable_checksum to asm_out_file.
10407 Do not fail if there is no asm_out_file to read back from. Set
10408 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
10409 (c_common_write_pch): Verify that nothing was written to asm_out_file
10410 since pch_init was called. Do not write a c_pch_header, and do not
10411 copy from asm_out_file to the PCH.
10412 (c_common_read_pch): Do not read a c_pch_header, and do not restore
10413 the content of asm_out_file from the PCH.
10414 (c_common_print_pch_checksum): Remove.
10415 * c-opts.c (c_common_init): Print out executable_checksum directly.
10416
70f42967
SB
104172012-06-19 Steven Bosscher <steven@gcc.gnu.org>
10418
10419 * c-target.def (objc_declare_unresolved_class_reference,
10420 objc_declare_class_definition): Add new hooks.
10421
a8781821
SB
104222012-06-19 Steven Bosscher <steven@gcc.gnu.org>
10423
10424 * c-lex.c: Do not include output.h.
10425 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
10426 Remove uses of ASM_OUTPUT_IDENT.
10427
9e1a8dd1
RR
104282012-06-15 Marc Glisse <marc.glisse@inria.fr>
10429
10430 PR c++/51033
10431 * c-common.h (c_build_vec_perm_expr): Move decl here.
10432 * c-common.c (c_build_vec_perm_expr): Move definition
10433 here.
10434
6f07a821
SB
104352012-06-06 Steven Bosscher <steven@gcc.gnu.org>
10436
10437 * c.opt (fconserve-space): Turn into a no-op.
10438
9faeb493 104392012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
10440
10441 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
10442 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
10443 both the start and end of the function.
10444
a4b7d13c
SB
104452012-06-04 Steven Bosscher <steven@gcc.gnu.org>
10446
10447 * c-common.c: Do not include output.h.
10448 * c-pragma.c: Likewise.
10449
c265f413
SA
104502012-06-04 Steven Bosscher <steven@gcc.gnu.org>
10451
10452 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
10453 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
10454 (lang_decl_name): Handle namespace decls.
10455
be7a421e
SB
104562012-05-31 Steven Bosscher <steven@gcc.gnu.org>
10457
10458 * c-ada-spec.c: Do not include output.h.
10459 * c-semantics.c: Likewise.
10460
65de6659
JM
104612012-05-29 Joseph Myers <joseph@codesourcery.com>
10462
10463 * c-common.c: Fix typo.
10464
ca5f4331
MM
104652012-05-29 Michael Matz <matz@suse.de>
10466
10467 * c-common.h (c_expand_decl): Remove prototype.
10468
4f7f7aca
MLI
104692012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
10470
10471 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
10472 * c-opts.c (c_common_handle_option): Remove code handling
10473 warn_missing_braces.
10474
4a792f9b
PC
104752012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
10476
10477 PR c++/25137
10478 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
10479 -Wmissing_braces.
10480
650dc14a
DS
104812012-05-22 Dodji Seketeli <dodji@redhat.com>
10482
10483 PR c++/53322
10484 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
10485
9b095bf1
MLI
104862012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
10487
10488 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
10489 * c-opts.c (c_common_handle_option): Do not handle explicitly
10490 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
10491
0b2c4be5
DS
104922012-05-16 Dodji Seketeli <dodji@redhat.com>
10493
10494 PR preprocessor/7263
ab20d992 10495 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
0b2c4be5
DS
10496 to cpp_classify_number. For diagnostics, use the precise location
10497 instead of the global input_location.
10498
a1bde5af
PC
104992012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
10500
d02924ef 10501 PR c++/11856
a1bde5af
PC
10502 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
10503
d1ede5f4
BS
105042012-05-14 Bernd Schmidt <bernds@codesourcery.com>
10505
a1bde5af 10506 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 10507
f2bc201f
MLI
105082012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
10509
10510 PR 53063
10511 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
10512 Wreorder): Use LangEnabledBy.
10513 * c-opts.c (c_common_handle_option): Do not enable them
10514 explicitly. Call lang-specific generated functions.
10515 (c_common_post_options): Do not set them here.
10516
95744782
MLI
105172012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
10518
10519 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
10520 Wmissing-field-initializers,Wmissing-parameter-type,
10521 Wold-style-declaration,Woverride-init): Use EnabledBy.
10522 * c-opts.c (c_common_post_options): Do not set here explicitly.
10523
7d5a5747
MLI
105242012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
10525
10526 PR 53063
10527 * c-opts.c (c_common_handle_option): Use handle_generated_option
10528 to enable sub-options.
10529
5a3c9cf2
PC
105302012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
10531
10532 PR c++/53158
10533 * c-common.c (warnings_for_convert_and_check): Use warning_at.
10534
3ac8781c
RG
105352012-05-10 Richard Guenther <rguenther@suse.de>
10536
10537 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
10538 adjust commentary about TYPE_IS_SIZETYPE types.
10539
1e537948
MLI
105402012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
10541
10542 PR c++/53261
10543 * c-common.c (warn_logical_operator): Check that argument of
10544 integer_zerop is not NULL.
10545
f2c4a785
MLI
105462012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
10547
10548 PR c/43772
10549 * c-common.c (warn_logical_operator): Do not warn if either side
10550 is already true or false.
10551
50f305ca
MLI
105522012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
10553
10554 PR c/51712
10555 * c-common.c (expr_original_type): New.
10556 (shorten_compare): Do not warn for enumeration types.
10557
0c3641b0
MLI
105582012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
10559
10560 * c.opt (fpermissive): Add Var(flag_permissive).
10561
7edaa4d2
MG
105622012-04-30 Marc Glisse <marc.glisse@inria.fr>
10563
10564 PR c++/51033
10565 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
10566 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
10567
b9c8da34
DS
105682012-04-30 Dodji Seketeli <dodji@redhat.com>
10569
10570 Add -Wvarargs option
ab20d992 10571 * c.opt (Wvarargs): Define new option.
b9c8da34 10572
e6c69da0
MLI
105732012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
10574
10575 * c-common.c (check_function_arguments): Replace
10576 Wmissing-format-attribute with Wsuggest-attribute=format.
10577
90137d8f
MLI
105782012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
10579
10580 * c.opt (Wsuggest-attribute=format): New. Alias of
10581 Wmissing-format-attribute.
10582 * c-format.c (decode_format_type): Replace
10583 Wmissing-format-attribute with Wsuggest-attribute=format.
10584 (check_function_format): Likewise.
10585
9faeb493 105862012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
10587
10588 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
10589 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
10590 * c.opt: Add Wliteral-suffix.
10591
c1771a20
MLI
105922012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
10593
10594 PR c/44774
10595 * c.opt (Wpedantic): New.
10596 (pedantic): Alias Wpedantic.
10597 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
10598 (c_common_post_options): Likewise.
10599 (sanitize_cpp_opts): Likewise.
10600 * c-lex.c (interpret_float): Likewise.
10601 * c-format.c (check_format_types): Likewise.
10602 * c-common.c (pointer_int_sum): Likewise.
10603 (c_sizeof_or_alignof_type): Likewise.
10604 (c_add_case_label): Likewise.
10605 (c_do_switch_warnings): Likewise.
10606 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
10607
04b391c1
JM
106082012-04-15 Jason Merrill <jason@redhat.com>
10609
10610 PR c++/52818
10611 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
10612 (C_STD_NAME): Distinguish between C++98 and C++11.
10613
ac868f29
EB
106142012-04-11 Eric Botcazou <ebotcazou@adacore.com>
10615
10616 PR target/52624
10617 * c-common.h (uint16_type_node): Rename into...
10618 (c_uint16_type_node): ...this.
10619 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
10620 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
10621
fd4116f4
MLI
106222012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
10623
10624 * c-common.c (warn_if_unused_value): Move definition to here.
10625 * c-common.h (warn_if_unused_value): Move declaration to here.
10626
573ac65e
WB
106272012-03-23 William Bader <williambader@hotmail.com>
10628
10629 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
10630
552b8185
JM
106312012-03-20 Jason Merrill <jason@redhat.com>
10632
10633 * c-common.h (enum cxx_dialect): Add cxx1y.
10634 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
10635 test.
10636 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
10637 * c-opts.c (c_common_post_options): Likewise.
10638 (set_std_cxx1y): New.
10639 (c_common_handle_option): Call it.
10640 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
10641
04398fa8
PC
106422012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
10643
10644 PR c++/14710
10645 * c.opt ([Wuseless-cast]): Add.
10646
d2a12ae7
RG
106472012-03-16 Richard Guenther <rguenther@suse.de>
10648
10649 * c-pretty-print.c (pp_c_initializer_list): Adjust.
10650
a12bf402
MLI
106512012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10652
10653 PR c++/44783
10654 * c.opt (ftemplate-backtrace-limit) Add.
10655
5c30094f
RO
106562012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10657
10658 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
10659 handling.
10660 * c-pragma.c (handle_pragma_extern_prefix): Remove.
10661 (init_pragma): Don't register extern_prefix.
10662
21fa2faf
RG
106632012-03-12 Richard Guenther <rguenther@suse.de>
10664
10665 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
10666 (builtin_type_for_size): Likewise.
10667
e3793c6f
JJ
106682012-02-13 Jakub Jelinek <jakub@redhat.com>
10669
10670 PR c++/52215
10671 * c-common.c (sync_resolve_params): Don't decide whether to convert
10672 or not based on TYPE_SIZE comparison, convert whenever arg_type
10673 is unsigned INTEGER_TYPE.
10674
93286335
PC
106752012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
10676
10677 PR c/52118
10678 * c.opt ([Wunused-local-typedefs]): Fix description.
10679
7a421706
MS
106802012-01-24 Mike Stump <mikestump@comcast.net>
10681
10682 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
10683 exactly.
10684
ba9b1f11
RG
106852012-01-18 Richard Guenther <rguenther@suse.de>
10686
10687 * c-opts.c (c_common_post_options): Reset LTO flags if
10688 we are about to generate a PCH.
10689
465406be
PC
106902012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
10691
10692 PR c++/51777
10693 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
10694 use pp_unsigned_wide_integer.
10695
aee15221
RG
106962012-01-10 Richard Guenther <rguenther@suse.de>
10697
10698 PR middle-end/51806
10699 * c-opts.c (c_common_handle_option): Move -Werror handling
10700 to language independent code.
10701
5720c0dc
RG
107022012-01-05 Richard Guenther <rguenther@suse.de>
10703
10704 PR middle-end/51764
10705 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
10706 from common.opt.
10707
73ac190a
PC
107082011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
10709
10710 PR c++/51316
10711 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
10712 of array types with an unknown bound.
10713
48b0b196
JM
107142011-12-20 Joseph Myers <joseph@codesourcery.com>
10715
10716 * c-common.c (flag_isoc99): Update comment to refer to C11.
10717 (flag_isoc1x): Change to flag_isoc11.
10718 * c-common.h (flag_isoc99): Update comment to refer to C11.
10719 (flag_isoc1x): Change to flag_isoc11.
10720 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
10721 C11.
10722 * c-opts.c (set_std_c1x): Change to set_std_c11.
10723 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
10724 Call set_std_c11.
10725 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
10726 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
10727 * c.opt (std=c1x): Change to std=c11. Document as non-draft
10728 standard.
10729 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
10730 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
10731 (std=gnu1x): Make alias of std=gnu11.
10732
d58d6eb5
JM
107332011-12-19 Jason Merrill <jason@redhat.com>
10734
10735 PR c++/51228
10736 * c-common.c (handle_transparent_union_attribute): Check the first
10737 field if the type is complete.
10738
b3908fcc
JW
107392011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
10740
10741 PR libstdc++/51365
10742 * c-common.c (RID_IS_FINAL): Add.
10743 * c-common.h (RID_IS_FINAL): Add.
10744
fea3ca91
IS
107452011-11-30 Iain Sandoe <iains@gcc.gnu.org>
10746
10747 * c.opt (fgnu-runtime): Provide full description.
10748 (fnext-runtime): Likewise.
10749 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
10750
62bad7cd
AM
107512011-11-28 Andrew MacLeod <amacleod@redhat.com>
10752
10753 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
10754 predefines in one place. Add LOCK_FREE predefines.
10755 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
10756 new func.
10757
c466c4ff
AM
107582011-11-24 Andrew MacLeod <amacleod@redhat.com>
10759
10760 PR c/51256
9faeb493 10761 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 10762 conditions
9faeb493
UB
10763 (resolve_overloaded_atomic_exchange,
10764 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
10765 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
10766 error_mark_node for error conditions.
9faeb493 10767
a5952633
RG
107682011-11-08 Richard Guenther <rguenther@suse.de>
10769
10770 PR middle-end/51010
ab20d992 10771 * c-pretty-print.c (pp_c_expression): Handle SSA_NAMEs.
a5952633 10772
0a35513e
AH
107732011-11-07 Richard Henderson <rth@redhat.com>
10774 Aldy Hernandez <aldyh@redhat.com>
10775 Torvald Riegel <triegel@redhat.com>
10776
10777 Merged from transactional-memory.
10778
10779 * c-common.c (handle_tm_wrap_attribute,
10780 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
10781 (struct c_common_reswords): Added __transaction* keywords.
10782 (struct c_common_attribute_table): Added transaction* and tm_regparm
10783 attributes.
10784 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
10785 masks.
10786 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
10787 find_tm_attribute): Declare.
10788
6d87092d
JM
107892011-11-07 Jason Merrill <jason@redhat.com>
10790
10791 PR c++/35688
10792 * c-common.c, c-common.h: Revert yesterday's changes.
10793
8e7860a1
JM
107942011-11-06 Jason Merrill <jason@redhat.com>
10795
10796 PR c++/35688
10797 * c-common.c (decl_has_visibility_attr): Split out from...
10798 (c_determine_visibility): ...here.
10799 * c-common.h: Declare it.
10800
d19fa6b5
JM
108012011-11-06 Joseph Myers <joseph@codesourcery.com>
10802
10803 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
10804 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
10805 type.
10806 (check_user_alignment): New. Split out of
10807 handle_aligned_attribute. Disallow integer constants with
10808 noninteger types. Conditionally allow zero.
10809 (handle_aligned_attribute): Use check_user_alignment.
10810 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
10811
86951993
AM
108122011-11-06 Andrew MacLeod <amacleod@redhat.com>
10813 Richard Henderson <rth@redhat.com>
10814
10815 Merged from cxx-mem-model.
10816
10817 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 10818 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
10819 parameters that are the same type size.
10820 (get_atomic_generic_size): New. Find size of generic
10821 atomic function parameters and do typechecking.
10822 (add_atomic_size_parameter): New. Insert size into parameter list.
10823 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
10824 either __atomic_exchange_n or external library call.
9faeb493 10825 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 10826 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 10827 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
10828 __atomic_load_n or an external library call.
10829 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
10830 __atomic_store_n or an external library call.
10831 (resolve_overloaded_builtin): Handle new __atomic builtins.
10832
cf9e9959
EB
108332011-11-04 Eric Botcazou <ebotcazou@adacore.com>
10834
10835 PR c++/50608
10836 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
10837 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
10838 <INDIRECT_REF>: Return the argument.
10839 <ARRAY_REF>: Remove special code for negative offset.
10840 Call fold_build_pointer_plus instead of size_binop.
10841 (fold_offsetof): Remove STOP_REF argument and adjust.
10842 * c-common.h (fold_offsetof_1): Declare.
10843 (fold_offsetof): Remove STOP_REF argument.
10844
25339f10
JM
108452011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
10846
10847 PR c++/50810
10848 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
10849 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
10850 Wnarrowing for C++0x and C++98.
10851 * c.opt ([Wnarrowing]): Update.
10852
89401152
PC
108532011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
10854
10855 PR c++/44277
10856 * c.opt: Add Wzero-as-null-pointer-constant.
10857
97e3ad20
JM
108582011-10-31 Jason Merrill <jason@redhat.com>
10859
15694fdd
JM
10860 * c.opt (-fdeduce-init-list): Off by default.
10861
97e3ad20
JM
10862 PR c++/50920
10863 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
10864 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
10865 and -Wc++11-compat.
10866 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
10867
fb9120e3
RAV
108682011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
10869
10870 PR c++/30066
10871 * c.opt (fvisibility-inlines-hidden): Description change.
10872
3ce4f9e4
ESR
108732011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
10874
10875 Implement C++11 user-defined literals.
10876 * c-common.c (build_userdef_literal): New.
10877 * c-common.def: New tree code.
10878 * c-common.h (tree_userdef_literal): New tree struct and accessors.
10879 * c-lex.c (interpret_float): Add suffix parm.
10880 (c_lex_with_flags): Build literal tokens.
10881
5f53c243
PC
108822011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
10883
10884 PR c++/50841
10885 Revert:
10886 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
10887
10888 PR c++/50810
10889 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
10890 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
10891 Wnarrowing for C++0x and C++98.
10892 * c.opt ([Wnarrowing]): Update.
10893
263734e1
PC
108942011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
10895
10896 PR c++/50810
10897 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
10898 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
10899 Wnarrowing for C++0x and C++98.
10900 * c.opt ([Wnarrowing]): Update.
10901
d2e312d7
PC
109022011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
10903
10904 PR c++/45385
10905 * c-common.c (conversion_warning): Remove code looking for
10906 artificial operands.
10907
d17687f6
DS
109082011-10-18 Dodji Seketeli <dodji@redhat.com>
10909
10910 PR bootstrap/50760
10911 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 10912 !NO_IMPLICIT_EXTERN_C.
d17687f6 10913
fc8396e9
PC
109142011-10-17 Michael Spertus <mike_spertus@symantec.com>
10915
10916 * c-common.c (c_common_reswords): Add __bases,
10917 __direct_bases.
10918 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
10919
109202011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
10921
10922 PR c++/50757
10923 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
10924
847e697a
TT
109252011-10-15 Tom Tromey <tromey@redhat.com>
10926 Dodji Seketeli <dodji@redhat.com>
10927
10928 * c.opt (fdebug-cpp): New option.
10929 * c-opts.c (c_common_handle_option): Handle the option.
10930 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
10931 output stream in parameter. Factorized from ...
10932 (maybe_print_line): ... this. Dump location debug information when
10933 -fdebug-cpp is in effect.
10934 (print_line_1): New static function. Takes an output stream in
10935 parameter. Factorized from ...
10936 (print_line): ... here. Dump location information when -fdebug-cpp
10937 is in effect.
10938 (scan_translation_unit): Dump location information when
10939 -fdebug-cpp is in effect.
10940
92582b75
TT
109412011-10-15 Tom Tromey <tromey@redhat.com>
10942 Dodji Seketeli <dodji@redhat.com>
10943
10944 * c.opt (ftrack-macro-expansion): New option. Handle it with and
10945 without argument.
10946 * c-opts.c (c_common_handle_option)<case
10947 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
10948 cases. Handle -ftrack-macro-expansion with and without argument.
10949
46427374
TT
109502011-10-15 Tom Tromey <tromey@redhat.com>
10951 Dodji Seketeli <dodji@redhat.com>
10952
10953 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
10954 (print_line, cb_define, do_line_change): Adjust to avoid touching
10955 the internals of struct line_map. Use the public API instead.
10956 * c-pch.c (c_common_read_pch): Likewise.
10957 * c-lex.c (fe_file_change): Likewise.
10958
fc8396e9
PC
109592011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
10960
10961 PR c++/17212
10962 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
10963
109642011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
10965
10966 PR c++/33067
10967 * c-pretty-print.c (pp_c_floating_constant): Output
10968 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
10969
e79983f4
MM
109702011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
10971
10972 * c-common.c (def_builtin_1): Delete old interface with two
10973 parallel arrays to hold standard builtin declarations, and replace
10974 it with a function based interface that can support creating
10975 builtins on the fly in the future. Change all uses, and poison
10976 the old names. Make sure 0 is not a legitimate builtin index.
10977 * c-omp.c (c_finish_omp_barrier): Ditto.
10978 (c_finish_omp_taskwait): Ditto.
10979 (c_finish_omp_flush): Ditto.
10980
6637388f
TG
109812011-10-11 Tristan Gingold <gingold@adacore.com>
10982
10983 * c.opt: (fallow-parameterless-variadic-functions): New.
10984
3797cb21
DS
109852011-09-08 Dodji Seketeli <dodji@redhat.com>
10986
10987 PR c++/33255 - Support -Wunused-local-typedefs warning
10988 * c-common.h (struct c_language_function::local_typedefs): New
10989 field.
9faeb493
UB
10990 (record_locally_defined_typedef, maybe_record_typedef_use)
10991 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 10992 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
10993 (maybe_record_typedef_use)
10994 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
10995 * c.opt: Declare new -Wunused-local-typedefs flag.
10996
693ddb1b
EB
109972011-09-06 Eric Botcazou <ebotcazou@adacore.com>
10998
10999 PR middle-end/50266
11000 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
11001 computations.
11002
830c740f
RG
110032011-09-05 Richard Guenther <rguenther@suse.de>
11004
11005 * c-common.c (complete_array_type): Use ssize_int (-1) instead
11006 of integer_minus_one_node for empty array upper bounds.
11007
892a371f
DS
110082011-08-28 Dodji Seketeli <dodji@redhat.com>
11009
11010 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
11011 it's the first time it's being called on this main TU.
11012
0e3fdb48
RB
110132011-08-24 Richard Guenther <rguenther@suse.de>
11014
11015 PR c/49396
11016 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
11017
110182011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
11019
11020 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
11021 defined in cpp_init_builtins and c_cpp_builtins.
11022
d4a83c10
JM
110232011-08-19 Joseph Myers <joseph@codesourcery.com>
11024
11025 * c-common.c (c_common_reswords): Add __builtin_complex.
11026 * c-common.h (RID_BUILTIN_COMPLEX): New.
11027
bbceee64
JM
110282011-08-18 Joseph Myers <joseph@codesourcery.com>
11029
11030 * c-common.c (c_common_reswords): Add _Noreturn.
11031 (keyword_is_function_specifier): Handle RID_NORETURN.
11032 * c-common.h (RID_NORETURN): New.
11033
3f8257db 110342011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
0e3a99ae
AS
11035
11036 * c-common.c (unsafe_conversion_p): New function. Check if it is
11037 unsafe to convert an expression to the type.
11038 (conversion_warning): Adjust, use unsafe_conversion_p.
11039 * c-common.h (unsafe_conversion_p): New function declaration.
11040
20906c66
JJ
110412011-08-02 Jakub Jelinek <jakub@redhat.com>
11042
11043 * c-common.h (c_finish_omp_atomic): Adjust prototype.
11044 (c_finish_omp_taskyield): New prototype.
11045 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
11046 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
11047 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
11048 or RHS1 have side-effects, evaluate those too in the right spot,
11049 if it is a decl and LHS is also a decl, error out if they
11050 aren't the same.
11051 (c_finish_omp_taskyield): New function.
11052 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
11053 * c-pragma.c (omp_pragmas): Add taskyield.
11054 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
11055 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
11056 PRAGMA_OMP_CLAUSE_MERGEABLE.
11057
770e5a2e
DS
110582011-07-25 Dodji Seketeli <dodji@redhat.com>
11059
11060 * c-common.h (set_underlying_type): Remove parm name from
11061 declaration.
11062
1baae426
RG
110632011-07-25 Romain Geissler <romain.geissler@gmail.com>
11064
11065 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 11066
fcb21722
JM
110672011-07-22 Jason Merrill <jason@redhat.com>
11068
76f86d00
JM
11069 PR c++/49793
11070 * c.opt (Wnarrowing): New.
11071
3a636414
JM
11072 PR c++/30112
11073 * c-common.h: Declare c_linkage_bindings.
11074 * c-pragma.c (handle_pragma_redefine_extname): Use it.
11075
fcb21722
JM
11076 PR c++/49813
11077 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
11078 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
11079 as flag_isoc99 for 'restrict'.
11080 (pp_c_specifier_qualifier_list): Likewise for _Complex.
11081
02614448
ILT
110822011-07-21 Ian Lance Taylor <iant@google.com>
11083
11084 PR middle-end/49705
11085 * c-common.c (c_disable_warnings): New static function.
11086 (c_enable_warnings): New static function.
11087 (c_fully_fold_internal): Change local unused_p to bool. Call
11088 c_disable_warnings and c_enable_warnings rather than change
11089 c_inhibit_evaluation_warnings.
11090
34429675
JM
110912011-07-20 Jason Merrill <jason@redhat.com>
11092
11093 PR c++/6709 (DR 743)
11094 PR c++/42603 (DR 950)
11095 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
11096 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
11097 (CPP_DECLTYPE): New.
11098 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
11099
5d49b6a7
RG
111002011-07-19 Richard Guenther <rguenther@suse.de>
11101
11102 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
11103 * c-omp.c (c_finish_omp_for): Likewise.
11104
e84a58ff
EB
111052011-07-12 Eric Botcazou <ebotcazou@adacore.com>
11106
11107 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
11108 body on the next line.
11109
329af3c7
JM
111102011-07-08 Jason Merrill <jason@redhat.com>
11111
4063e61b
JM
11112 PR c++/45437
11113 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
11114
329af3c7
JM
11115 PR c++/49673
11116 * c-common.c (c_apply_type_quals_to_decl): Don't check
11117 TYPE_NEEDS_CONSTRUCTING.
11118
1a072294
RG
111192011-07-06 Richard Guenther <rguenther@suse.de>
11120
11121 * c-common.c (c_common_nodes_and_builtins):
11122 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
11123
fce5dddd
RG
111242011-07-05 Richard Guenther <rguenther@suse.de>
11125
11126 * c-common.c (c_common_nodes_and_builtins): Build all common
11127 tree nodes first.
11128
45d439ac
JJ
111292011-06-27 Jakub Jelinek <jakub@redhat.com>
11130
56300785
JJ
11131 * c-common.h (c_tree_chain_next): New static inline function.
11132
45d439ac
JJ
11133 * c-common.c (check_builtin_function_arguments): Handle
11134 BUILT_IN_ASSUME_ALIGNED.
11135
e0a8ecf2
AM
111362011-06-21 Andrew MacLeod <amacleod@redhat.com>
11137
11138 * c-common.c: Add sync_ or SYNC__ to builtin names.
11139 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
11140
111412011-06-20 Pierre Vittet <piervit@pvittet.com>
11142
11143 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
11144 handler.
11145 (gen_pragma_handler): New union.
11146 (internal_pragma_handler): New type.
11147 (c_register_pragma_with_data)
11148 (c_register_pragma_with_expansion_and_data): New functions.
11149
11150 * c-pragma.c (registered_pragmas, c_register_pragma_1)
11151 (c_register_pragma, c_register_pragma_with_expansion)
11152 (c_invoke_pragma_handler): Changed to work with
11153 internal_pragma_handler.
11154 (c_register_pragma_with_data)
11155 (c_register_pragma_with_expansion_and_data): New functions.
11156
677f3fa8
JM
111572011-06-14 Joseph Myers <joseph@codesourcery.com>
11158
11159 * c-common.c: Include common/common-target.h.
11160 (handle_section_attribute): Use
11161 targetm_common.have_named_sections.
11162 * c-cppbuiltin.c: Include common/common-target.h.
11163 (c_cpp_builtins): Use targetm_common.except_unwind_info.
11164
d7fc8c14
RG
111652011-06-10 Richard Guenther <rguenther@suse.de>
11166
11167 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
11168 to print a IDENTIFIER_NODE.
11169
10e48e39
RO
111702011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11171 Joseph Myers <joseph@codesourcery.com>
11172
11173 * c.opt (fbuilding-libgcc): New option.
11174 * c-cppbuiltin.c (c_cpp_builtins): Define
11175 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
11176
6976ae51
JM
111772011-06-07 Jason Merrill <jason@redhat.com>
11178
3ff60975
JM
11179 * c-common.c (max_tinst_depth): Lower default to 900.
11180
6976ae51
JM
11181 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
11182
009db074
RG
111832011-06-07 Richard Guenther <rguenther@suse.de>
11184
11185 * c-common.c (c_common_nodes_and_builtins): Do not set
11186 size_type_node or call set_sizetype.
11187
b4592b92
DS
111882011-06-07 Dodji Seketeli <dodji@redhat.com>
11189
11190 PR debug/49130
11191 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 11192 type when using pointer comparison to compare types.
b4592b92 11193
014ab419
JW
111942011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
11195
11196 * c.opt: Add -Wdelete-non-virtual-dtor.
11197 * c-opts.c (c_common_handle_option): Include it in -Wall.
11198
4f60111f
NF
111992011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
11200
11201 PR bootstrap/49190
11202
11203 Revert:
11204 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
11205
11206 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
11207 not tree_common.
11208
4cc4f2f4
JJ
112092011-05-27 Jakub Jelinek <jakub@redhat.com>
11210
11211 PR c++/49165
11212 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
11213 C++ don't call c_common_truthvalue_conversion on void type arms.
11214
38e01f9e
NF
112152011-05-27 Nathan Froyd <froydnj@codesourcery.com>
11216
11217 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
11218 (stmt_list_stack): Define.
11219 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
11220 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
11221
92e948a8
NF
112222011-05-26 Nathan Froyd <froydnj@codesourcery.com>
11223
11224 * c-common.c (warning_candidate_p): Check for BLOCKs.
11225
a2fc3e63
NF
112262011-05-26 Nathan Froyd <froydnj@codesourcery.com>
11227
11228 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
11229 not tree_common.
11230
0957c029
JJ
112312011-05-25 Jakub Jelinek <jakub@redhat.com>
11232
11233 * c-common.c (def_fn_type): Remove extra va_end.
11234
828fb3ba
JM
112352011-05-23 Jason Merrill <jason@redhat.com>
11236
11237 PR c++/48106
11238 * c-common.c (c_common_get_narrower): New.
11239 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
11240
dde05067
NF
112412011-05-23 Nathan Froyd <froydnj@codesourcery.com>
11242
11243 * c-common.h (check_function_arguments): Tweak prototype of
11244 check_function_arguments.
11245 * c-common.c (check_function_arguments): Likewise. Adjust
11246 calls to check_function_nonnull, check_function_format, and
11247 check_function_sentinel.
11248 (check_function_sentinel): Take a FUNCTION_TYPE rather than
11249 separate attributes and typelist arguments. Use
11250 FOREACH_FUNCTION_ARGS to iterate over argument types.
11251
3c0d13bf
PC
112522011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
11253
11254 * c-common.c (c_common_reswords): Reorder.
11255 * c-common.h (rid): Likewise.
11256
8242dd04
NF
112572011-05-10 Nathan Froyd <froydnj@codesourcery.com>
11258
11259 * c-common.c (def_fn_type): Don't call build_function_type, call
11260 build_function_type_array or build_varargs_function_type_array
11261 instead.
11262 (c_common_nodes_and_builtins): Likewise.
11263
3d528853
NF
112642011-05-05 Nathan Froyd <froydnj@codesourcery.com>
11265
11266 * c-common.c (c_add_case_label): Omit the loc argument to
11267 build_case_label.
11268 * c-common.h (build_case_label): Remove.
11269 * c-semantics.c (build_case_label): Remove.
11270
a04a722b
JM
112712011-05-05 Joseph Myers <joseph@codesourcery.com>
11272
11273 * c-objc.h (objc_start_method_definition): Update prototype.
11274 * stub-objc.c (objc_start_method_definition): Add extra parameter.
11275
e19a18d4
NF
112762011-05-04 Nathan Froyd <froydnj@codesourcery.com>
11277
11278 * c-common.c (check_main_parameter_types): Reindent. Don't use
11279 TYPE_ARG_TYPES directly.
11280 (handle_nonnull_attribute): Likewise.
11281 (sync_resolve_params): Likewise.
11282 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
11283 to check_format_string.
11284 (handle_format_attribute): Likewise.
11285 (check_format_string): Take a function type to examine instead of
11286 a type list. Use a function_arg_iterator to step through argument
11287 types.
11288
c62c040f
RG
112892011-05-04 Richard Guenther <rguenther@suse.de>
11290
11291 * c-common.c (fix_string_type): Use size_int for index type bounds.
11292 (start_fname_decls): Do not pass NULL to build_int_cst.
11293 (c_init_attributes): Likewise.
11294 * c-lex.c (c_lex_with_flags): Likewise.
11295
c12ff9d8
JM
112962011-04-27 Jason Merrill <jason@redhat.com>
11297
11298 * c-common.c (make_tree_vector_from_list): New.
11299 * c-common.h: Declare it.
11300
304dfbe3
RG
113012011-04-26 Richard Guenther <rguenther@suse.de>
11302
11303 PR preprocessor/48248
11304 * c-ppoutput.c (maybe_print_line): Always optimize newlines
11305 for output size with -P.
11306
3c0d13bf
PC
113072011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
11308
11309 * c-common.c (struct c_common_resword): Add __underlying_type.
11310 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
11311
04695783
JM
113122011-04-20 Jim Meyering <meyering@redhat.com>
11313
11314 * c-format.c (init_dollar_format_checking): Remove useless
11315 if-before-free.
11316
0dc33c3c
NP
113172011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
11318
11319 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 11320 (objc_detect_field_duplicates): New.
0dc33c3c 11321 * stub-objc.c: Likewise.
3c0d13bf 11322
c59633d9
NP
113232011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
11324
11325 * stub-objc.c (objc_declare_protocols): Renamed to
11326 objc_declare_protocol.
11327 * c-objc.h: Likewise.
3c0d13bf 11328
32dabdaf
NP
113292011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
11330
11331 * stub-objc.c (objc_declare_class): Updated argument name.
11332
81f653d6
NF
113332011-04-12 Nathan Froyd <froydnj@codesourcery.com>
11334
11335 * c-common.h (c_common_init_ts): Declare.
11336 * c-common.c (c_common_init_ts): Define.
11337
eb345401
NP
113382011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
11339
11340 * c-objc.h (objc_build_message_expr): Updated prototype.
11341 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 11342
a358e188
MJ
113432011-04-12 Martin Jambor <mjambor@suse.cz>
11344
11345 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
11346 of cgraph_node.
11347
e6313a78
RG
113482011-04-11 Richard Guenther <rguenther@suse.de>
11349
11350 * c-common.c (complete_array_type): Build a range type of
11351 proper type.
11352
dcf0c47e
NF
113532011-04-08 Nathan Froyd <froydnj@codesourcery.com>
11354
11355 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
11356 (handle_type_generic_attribute): Likewise.
11357
1ee44b26
JM
113582011-04-07 Jason Merrill <jason@redhat.com>
11359
11360 PR c++/48450
11361 * c-common.c (c_common_truthvalue_conversion): Don't ignore
11362 conversion from C++0x scoped enum.
11363
acce4e77
JM
113642011-04-06 Joseph Myers <joseph@codesourcery.com>
11365
11366 * c-target-def.h: New file.
11367 * c-target.def: New file.
11368 * c-target.h: New file.
11369 * c-common.c (targetcm): Don't define here.
11370 * c-common.h (default_handle_c_option): Declare.
11371 * c-format.c: Include c-target.h instead of target.h.
11372 * c-opts.c: Include c-target.h instead of target.h. Explicitly
11373 include tm.h.
11374 (default_handle_c_option): Move from targhooks.c.
11375
e2eefb55
JJ
113762011-03-29 Jakub Jelinek <jakub@redhat.com>
11377
11378 PR preprocessor/48248
11379 * c-ppoutput.c (print): Add src_file field.
11380 (init_pp_output): Initialize it.
11381 (maybe_print_line): Don't optimize by adding up to 8 newlines
11382 if map->to_file and print.src_file are different file.
11383 (print_line): Update print.src_file.
11384
ba78087b
KT
113852011-03-25 Kai Tietz <ktietz@redhat.com>
11386
11387 * c-ada-spec.c (compare_comment): Use filename_cmp
11388 instead of strcmp for filename.
11389
0edf1bb2
JL
113902011-03-25 Jeff Law <law@redhat.com>
11391
adfac8df 11392 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 11393
c7dc8804
JM
113942011-03-25 Jason Merrill <jason@redhat.com>
11395
11396 * c.opt: Add -std=c++03.
11397
d1d879b1
EB
113982011-03-22 Eric Botcazou <ebotcazou@adacore.com>
11399
11400 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
11401
3f8257db 114022011-03-17 Kai Tietz <ktietz@redhat.com>
62d784f7
KT
11403
11404 PR target/12171
5050afdf
KT
11405 * c-pretty-print.c (pp_c_specifier_qualifier_list):
11406 Display allowed attributes for function pointer types.
11407 (pp_c_attributes_display): New function to display
11408 attributes having affects_type_identity flag set to true.
11409 * c-pretty-print.h (pp_c_attributes_display): New prototype.
11410
62d784f7
KT
11411 * c-common.c (c_common_attribute_table):
11412 Add new element.
11413 (c_common_format_attribute_table): Likewise.
11414
82d37118
JM
114152011-03-18 Jason Merrill <jason@redhat.com>
11416
49a000c3
JM
11417 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
11418 * c-common.h: Don't declare it here.
11419 * c-common.c: Or define it here.
11420 * c-opts.c (c_common_handle_option): Or set it here.
11421
82d37118
JM
11422 PR c++/35315
11423 * c-common.c (handle_transparent_union_attribute): Don't
11424 make a duplicate type in C++.
11425
17bc631c
JM
114262011-03-15 Jason Merrill <jason@redhat.com>
11427
11428 * c-common.c (max_constexpr_depth): New.
11429 * c-common.h: Declare it.
11430 * c-opts.c (c_common_handle_option): Set it.
11431 * c.opt (fconstexpr-depth): New option.
11432
1b9b91a6
JM
114332011-03-11 Jason Merrill <jason@redhat.com>
11434
f231b5ff
JM
11435 * c-common.c (attribute_takes_identifier_p): Add missing const.
11436
1b9b91a6
JM
11437 PR c++/46803
11438 * c-common.c (attribute_takes_identifier_p): Assume that an
11439 unknown attribute takes an identifier.
11440
a19e4d44
NF
114412011-03-07 Nathan Froyd <froydnj@codesourcery.com>
11442
11443 PR c/47786
11444 * c-common.c (c_type_hash): Call list_length instead of iterating
11445 through DECL_CHAIN. Rename 'i' to 'n_elements'.
11446
982d62f6
JJ
114472011-02-19 Jakub Jelinek <jakub@redhat.com>
11448
11449 PR c/47809
11450 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
11451
0a256240
NP
114522011-02-17 Iain Sandoe <iains@gcc.gnu.org>
11453
11454 * c.opt (fobjc-abi-version=) New.
11455 (fobjc-nilcheck): New.
11456
ba9e6dd5
NF
114572011-02-03 Nathan Froyd <froydnj@codesourcery.com>
11458
11459 PR c++/46890
11460 * c-common.h (keyword_is_decl_specifier): Declare.
11461 * c-common.c (keyword_is_decl_specifier): Define.
11462 (keyword_is_function_specifier): New function.
11463
7273813a
JJ
114642011-01-26 Jakub Jelinek <jakub@redhat.com>
11465
11466 PR c/47473
11467 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
11468 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
11469 REAL_TYPE.
11470
908ef79b
AC
114712011-01-26 Arnaud Charlet <charlet@adacore.com>
11472
11473 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
11474
237e9384
JJ
114752011-01-26 Jakub Jelinek <jakub@redhat.com>
11476
11477 PR pch/47430
11478 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
11479 after init_c_lex if pch_file is set.
11480
47ea1edf
DK
114812011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
11482
d4dba752 11483 PR c++/43601
47ea1edf
DK
11484 * c.opt (-fkeep-inline-dllexport): New switch.
11485
2aa9c6ae
RG
114862011-01-12 Richard Guenther <rguenther@suse.de>
11487
11488 PR middle-end/32511
11489 * c-common.c (handle_weak_attribute): Warn instead of error
11490 on declaring an inline function weak.
11491
7bd11157
TT
114922011-01-05 Tom Tromey <tromey@redhat.com>
11493
11494 * c-common.h (lvalue_error): Update.
11495 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
11496 not error.
11497
0e66e494 114982010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 11499
b4f588c4
NP
11500 PR objc/47075
11501 * c-objc.h (objc_finish_message_expr): Added argument to
11502 prototype.
11503
f4da8dce
NF
115042010-12-22 Nathan Froyd <froydnj@codesourcery.com>
11505
11506 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
11507 Use prototype_p.
11508
46270f14
NP
115092010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
11510
11511 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 11512 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 11513
4816c593
NF
115142010-12-10 Nathan Froyd <froydnj@codesourcery.com>
11515
11516 * c-common.h (readonly_error): Declare.
11517 * c-common.c (readonly_error): Define.
11518
7a6daeb0
NF
115192010-12-09 Nathan Froyd <froydnj@codesourcery.com>
11520
11521 * c-common.h (invalid_indirection_error): Declare.
11522 * c-common.c (invalid_indirection_error): Define.
11523
892f6119
RG
115242010-12-03 Richard Guenther <rguenther@suse.de>
11525
11526 PR c/46745
11527 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
11528 (pp_c_unary_expression): Likewise.
11529 (pp_c_expression): Likewise.
11530
6c39e757
NP
115312010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
11532
11533 * c-common.h (objc_finish_function): New.
11534 (objc_non_volatilized_type): Removed.
11535 (objc_type_quals_match): Removed.
11536 * stub-objc.c (objc_finish_function): New.
11537 (objc_non_volatilized_type): Removed.
11538 (objc_type_quals_match): Removed.
9faeb493 11539
7c475d11
JM
115402010-11-30 Joseph Myers <joseph@codesourcery.com>
11541
11542 * c-common.h (parse_optimize_options): Declare.
11543 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
11544 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
11545
71f3e391
JM
115462010-11-29 Joseph Myers <joseph@codesourcery.com>
11547
11548 * c-opts.c (check_deps_environment_vars): Use getenv instead of
11549 GET_ENVIRONMENT.
11550 * c-pch.c (O_BINARY): Don't define here.
11551 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
11552
d5fabb58
JM
115532010-11-25 Joseph Myers <joseph@codesourcery.com>
11554
11555 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
11556 targetm.except_unwind_info.
11557
299404a1
JM
115582010-11-23 Joseph Myers <joseph@codesourcery.com>
11559
11560 * c-opts.c (c_common_handle_option): Pass location to
11561 set_struct_debug_option.
11562
c98cd5bf
JM
115632010-11-23 Joseph Myers <joseph@codesourcery.com>
11564
11565 * c-common.c (visibility_options): Move from ../opts.c.
11566 * c-common.h (struct visibility_flags, visibility_options):
11567 Declare here.
11568 * c-opts.c (finish_options): Rename to c_finish_options.
11569 (c_common_init): Update call to finish_options.
11570
a9546771
NP
115712010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
11572
11573 PR objc/34033
11574 * c-lex.c (lex_string): Check that each string in an Objective-C
11575 string concat sequence starts with either one or zero '@', and
11576 that there are no spurious '@' signs at the end.
11577
24a57808
JM
115782010-11-20 Joseph Myers <joseph@codesourcery.com>
11579
11580 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
11581 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
11582 HANDLE_PRAGMA_VISIBILITY.
11583 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
11584 HANDLE_PRAGMA_VISIBILITY): Don't define.
11585 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
11586
a9aa2c3a
NF
115872010-11-20 Nathan Froyd <froydnj@codesourcery.com>
11588
11589 PR c++/16189
11590 PR c++/36888
11591 PR c++/45331
11592 * c-common.h (keyword_begins_type_specifier): Declare.
11593 (keyword_is_storage_class_specifier): Declare.
11594 (keyword_is_type_qualifier): Declare.
11595 * c-common.c (keyword_begins_type_specifier): New function.
11596 (keyword_is_storage_class_specifier): New function.
11597 (keyword_is_type_qualifier): Declare.
11598
5386338c
JM
115992010-11-19 Joseph Myers <joseph@codesourcery.com>
11600
11601 PR c/46547
11602 * c-common.c (in_late_binary_op): Define.
11603 (c_common_truthvalue_conversion): Check in_late_binary_op before
11604 calling c_save_expr.
11605 * c-common.h (in_late_binary_op): Declare.
11606
69ccdddb
JM
116072010-11-19 Joseph Myers <joseph@codesourcery.com>
11608
11609 * c-opts.c (c_common_handle_option): Update calls to
11610 set_struct_debug_option.
11611
6b192a09
NP
116122010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
11613
11614 * c-common.h (objc_declare_protocols): Added additional argument.
11615 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 11616
fb52b50a
NF
116172010-11-18 Nathan Froyd <froydnj@codesourcery.com>
11618
11619 PR c/33193
11620 * c-common.h (build_real_imag_expr): Declare.
11621 * c-semantics.c (build_real_imag_expr): Define.
11622
b37421c6
JM
116232010-11-17 Joseph Myers <joseph@codesourcery.com>
11624
11625 * c-opts.c (c_common_parse_file): Take no arguments.
11626 * c-common.h (c_common_parse_file): Update prototype.
11627
07078664
JJ
116282010-11-16 Jakub Jelinek <jakub@redhat.com>
11629
11630 PR c++/46401
11631 * c-common.c (warning_candidate_p): Don't track non-const calls
11632 or STRING_CSTs.
11633
c6a13190
ILT
116342010-11-15 Ian Lance Taylor <iant@google.com>
11635
11636 * c-lex.c (init_c_lex): Set macro debug callbacks if
11637 flag_dump_go_spec is set.
11638
925e8657
NP
116392010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
11640
11641 * c-common.h (objc_build_incr_expr_for_property_ref): New.
11642 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
11643
bb0a9581
NF
116442010-11-15 Nathan Froyd <froydnj@codesourcery.com>
11645
11646 PR preprocessor/45038
11647 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
11648 dialects.
11649
c5fa0890
JM
116502010-11-12 Joseph Myers <joseph@codesourcery.com>
11651
11652 * c-common.h (c_family_lang_mask): Declare.
11653 * c-opts.c (c_family_lang_mask): Make extern.
11654 * c-pragma.c (handle_pragma_diagnostic): Use
11655 control_warning_option.
11656
a4d8c676
JM
116572010-11-12 Joseph Myers <joseph@codesourcery.com>
11658
11659 * c-common.c (parse_optimize_options): Update call to
11660 decode_options.
11661 * c-common.h (c_common_handle_option): Update prototype.
11662 * c-opts.c (c_common_handle_option): Take location_t parameter and
11663 pass it to other functions.
11664
f954bd2c
JM
116652010-11-11 Joseph Myers <joseph@codesourcery.com>
11666
11667 * c-opts.c (warning_as_error_callback): Remove.
11668 (c_common_initialize_diagnostics): Don't call
11669 register_warning_as_error_callback.
11670 (c_common_handle_option): Handle -Werror=normalized= here.
11671
d8a07487
JM
116722010-11-10 Joseph Myers <joseph@codesourcery.com>
11673
11674 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
11675 in diagnostic.
11676 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
11677 letter.
11678 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
11679 Remove trailing '.' from diagnostics.
11680 * c.opt (Wwrite-strings_: Avoid '`' in help text.
11681
d5478783
JM
116822010-11-10 Joseph Myers <joseph@codesourcery.com>
11683
11684 * c-common.c (parse_optimize_options): Pass global_dc to
11685 decode_options.
11686 * c-opts.c (c_common_handle_option): Pass &global_options to
11687 set_Wstrict_aliasing.
11688 * c.opt (v): Don't mark Common or document here.
11689
91ebb981
IS
116902010-11-06 Iain Sandoe <iains@gcc.gnu.org>
11691
11692 PR target/44981
11693 * c-format.c (format_type): New type gcc_objc_string_format_type.
11694 (valid_stringptr_type_p): New.
11695 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 11696 (check_format_string): Pass expected type, use
91ebb981
IS
11697 valid_stringptr_type_p (), check that the format string types are
11698 consistent with the format specification.
11699 (decode_format_attr): Warn if NSString is used outside objective-c.
11700 (format_types_orig): Add NSString.
11701 (format_name): New.
11702 (format_flags): New.
11703 (check_format_arg): Handle format strings requiring an external parser.
11704 first_target_format_type: New variable.
11705 (handle_format_attribute): Set up first_target_format_type, pass the
11706 expected format arg string type to check_format_string().
ab20d992 11707 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
91ebb981
IS
11708 * stub-objc.c (objc_string_ref_type_p): New.
11709 (objc_check_format_arg): New.
11710
bede2adc
NP
117112010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
11712
9faeb493 11713 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
11714 * c-common.h (objc_build_class_component_ref): New.
11715 * stub-objc.c (objc_build_class_component_ref): New.
11716
9a179d01
NP
117172010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
11718
11719 * c.opt (Wproperty-assign-default): New option.
11720
22d8d616
NP
117212010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
11722
11723 Implemented -fobjc-std=objc1 flag.
11724 * c.opt (fobjc-std=objc1): New option.
11725
2debdb4f
NP
117262010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
11727
11728 Implemented format and noreturn attributes for Objective-C methods.
11729 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
11730 attribute for Objective-C methods.
11731
ec52b111
JM
117322010-10-31 Jason Merrill <jason@redhat.com>
11733
11734 * c-common.c (conversion_warning, warn_for_collisions_1): Use
11735 EXPR_LOC_OR_HERE.
11736
46a88c12
NP
117372010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
11738
11739 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
11740 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
11741 (objc_add_property_declaration): Removed arguments for copies and
11742 ivar.
11743 (objc_build_getter_call): Renamed to
11744 objc_maybe_build_component_ref.
11745 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
11746 (objc_is_property_ref): New.
11747 * c-common.c (c_common_reswords): Removed copies and ivar.
11748 * stub-objc.c (objc_add_property_declaration): Removed arguments
11749 for copies and ivar.
11750 (objc_build_getter_call): Renamed to
11751 objc_maybe_build_component_ref.
11752 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
11753 (objc_is_property_ref): New.
9faeb493 11754
1e4bf85b
AC
117552010-10-29 Arnaud Charlet <charlet@adacore.com>
11756 Matthew Gingell <gingell@adacore.com>
11757
11758 * c-ada-spec.c (separate_class_package): New function.
11759 (pp_ada_tree_identifier): Prefix references to C++ classes with the
11760 name of their enclosing package.
11761 (print_ada_declaration): Use separate_class_package.
11762
81f0bab2
JM
117632010-10-27 Jason Merrill <jason@redhat.com>
11764
2b08f2c5
JM
11765 * c-common.c (c_common_reswords): Add __is_literal_type.
11766 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
11767
81f0bab2
JM
11768 * c-common.c (check_case_value): Remove special C++ code.
11769
200290f2
NP
117702010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
11771
11772 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
11773 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
11774 and RID_LAST_PATTR.
11775 (objc_add_property_declaration): Added additional arguments.
11776 (objc_property_attribute_kind): Removed.
11777 (objc_set_property_attr): Removed.
11778 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
11779 copy and nonatomic.
11780 * stub-objc.c (objc_add_property_declaration): Added additional
11781 arguments.
11782 (objc_set_property_attr): Removed.
9faeb493 11783
f614132b
NP
117842010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
11785
11786 * c-common.h (objc_add_property_variable): Renamed to
11787 objc_add_property_declaration. Added location argument.
11788 * stub-objc.c (objc_add_property_variable): Same change.
b1726d6c 11789
b8a18805
NP
117902010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
11791
11792 * c-common.h (objc_maybe_printable_name): New.
11793 * stub-objc.c (objc_maybe_printable_name): New.
11794
3f8257db
JJ
117952010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
11796 Andrew Pinski <pinskia@gmail.com>
30cd1c5d
AS
11797
11798 * c-common.h (c_common_mark_addressable_vec): Declare.
11799 * c-common.c (c_common_mark_addressable_vec): New function.
11800
249a82c4
NP
118012010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
11802
11803 * c-common.h (objc_set_method_type): Removed.
11804 (objc_add_method_declaration): Added boolean argument.
11805 (objc_start_method_definition): Same change.
11806 (objc_build_method_signature): Same change.
11807 * stub-objc.c (objc_set_method_type): Removed.
11808 (objc_add_method_declaration): Added boolean argument.
11809 (objc_start_method_definition): Same change.
11810 (objc_build_method_signature): Same change.
11811
977e30bc
NP
118122010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
11813
11814 * c-common.h (finish_file): Removed.
11815 (objc_write_global_declarations): New.
11816 * c-opts.c (c_common_parse_file): Do not call finish_file.
11817 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 11818
da57d1b9
NP
118192010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
11820
11821 Implemented parsing @synthesize and @dynamic for
11822 Objective-C/Objective-C++.
11823 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
11824 (objc_add_synthesize_declaration): New.
11825 (objc_add_dynamic_declaration): New.
11826 * c-common.c (c_common_reswords): Add synthesize and dynamic.
11827 * stub-objc.c (objc_add_synthesize_declaration): New.
11828 (objc_add_dynamic_declaration): New.
9faeb493 11829
0069111f
MM
118302010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
11831
11832 PR target/46041
11833 * c-cppbuiltin.c (mode_has_fma): Move function here from
11834 builtins.c. Don't use the fma optab, instead just use the
11835 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
11836 using -save-temps.
11837
e426b47b
NP
118382010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
11839
11840 Merge from 'apple/trunk' branch on FSF servers.
0069111f 11841
3f8257db 11842 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
e426b47b 11843
9faeb493 11844 Radar 4330422
e426b47b
NP
11845 * c-common.h (objc_non_volatilized_type): New declaration
11846 * stub-objc.c (objc_non_volatilized_type): New stub.
11847
90fbfdc3
NP
118482010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
11849
e426b47b 11850 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3 11851
ab20d992 11852 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
90fbfdc3 11853
9faeb493 11854 Radar 4133425
90fbfdc3 11855 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 11856 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 11857
c37d8c30
IS
118582010-10-17 Iain Sandoe <iains@gcc.gnu.org>
11859
11860 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
11861 * c-common.h (enum rid): Add RID_AT_PACKAGE.
11862 (objc_ivar_visibility_kind): New enum.
11863 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 11864 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
11865 visibility enum.
11866
1b1562a5
MM
118672010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
11868
11869 * c-cppbuiltin.c (builtin_define_float_constants): Emit
11870 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
11871 has the appropriate fma builtins.
11872 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
11873
668ea4b1
IS
118742010-10-14 Iain Sandoe <iains@gcc.gnu.org>
11875
1b1562a5 11876 merge from FSF apple 'trunk' branch.
3f8257db 11877 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 11878
668ea4b1
IS
11879 Radars 4436866, 4505126, 4506903, 4517826
11880 * c-common.c (c_common_resword): Define @property and its attributes.
11881 * c-common.h: Define property attribute enum entries.
11882 (OBJC_IS_PATTR_KEYWORD): New.
11883 (objc_property_attribute_kind): New enum.
11884 Declare objc_set_property_attr (), objc_add_property_variable (),
11885 objc_build_getter_call () and objc_build_setter_call ().
11886 * stub-objc.c (objc_set_property_attr): New stub.
11887 (objc_add_property_variable): Likewise.
11888 (objc_build_getter_call): Likewise.
11889 (objc_build_setter_call) Likewise.
1b1562a5 11890
a1178b30
IS
118912010-10-13 Iain Sandoe <iains@gcc.gnu.org>
11892
1b1562a5 11893 merge from FSF apple 'trunk' branch.
ab20d992 11894 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
a1178b30
IS
11895
11896 Radar 3803157 (method attributes)
11897 * c-common.c (handle_deprecated_attribute): Recognize
11898 objc methods as valid declarations.
11899 * c-common.h: Declare objc_method_decl ().
1b1562a5 11900 * stub-objc.c (objc_method_decl): New stub.
a1178b30 11901
a75bfaa6
JM
119022010-10-08 Joseph Myers <joseph@codesourcery.com>
11903
11904 * c-common.c (parse_optimize_options): Call
11905 decode_cmdline_options_to_array_default_mask before
11906 decode_options. Update arguments to decode_options.
11907 * c-common.h (c_common_init_options_struct): Declare.
11908 * c-opts.c (c_common_init_options_struct): New. Split out from
11909 c_common_init_options.
11910
f05b9d93
NP
119112010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
11912
11913 Implemented fast enumeration for Objective-C.
11914 * c-common.h (objc_finish_foreach_loop): New.
11915 * stub-objc.c (objc_finish_foreach_loop): New.
11916
1ebe4b4f
JM
119172010-10-05 Joseph Myers <joseph@codesourcery.com>
11918
11919 * c-common.h (struct diagnostic_context): Don't declare here.
11920 (c_common_initialize_diagnostics): Declare using
11921 diagnostic_context typedef.
11922 * c-opts.c (c_common_handle_option): Pass global_dc to
11923 handle_generated_option.
11924
d4d24ba4
JM
119252010-10-04 Joseph Myers <joseph@codesourcery.com>
11926
11927 * c-opts.c (c_common_handle_option): Pass &global_options_set to
11928 handle_generated_option.
11929
478a1c5b
ILT
119302010-10-03 Ian Lance Taylor <iant@google.com>
11931
11932 * c.opt (-fplan9-extensions): New option.
11933
82a1c2fe
FXC
119342010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11935
11936 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
11937 Remove.
11938 (c_cpp_builtins): Call functions from cppbuiltin.c instead
11939 of duplicating code.
11940
92902b1b
IS
119412010-09-30 Iain Sandoe <iains@gcc.gnu.org>
11942
11943 * c-common.c: Add two new entries for @optional
11944 and @required keywords.
11945
11946 merge from FSF 'apple/trunk' branch.
3f8257db 11947 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
92902b1b
IS
11948
11949 Radar 4386773
11950 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
11951 objective-c keywords.
11952 (objc_set_method_opt): New declaration.
11953 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 11954
46625112
JM
119552010-09-30 Joseph Myers <joseph@codesourcery.com>
11956
11957 * c-common.c (handle_optimize_attribute): Pass &global_options to
11958 cl_optimization_save and cl_optimization_restore.
11959 * c-opts.c (c_common_handle_option): Pass &global_options to
11960 handle_generated_option.
11961 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
11962 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
11963 &global_options to cl_optimization_restore.
11964
49b91f05
NP
119652010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
11966
11967 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
11968 Objective-C/Objective-C++ keywords.
11969
13ed556f 119702010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 11971
9faeb493
UB
11972 Merge from 'apple/trunk' branch on FSF servers.
11973
3f8257db 11974 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
a6341d57
NP
11975
11976 Radar 4281748
11977 * c-common.h (objc_check_global_decl): New declaration.
11978 * stub-objc.c (objc_check_global_decl): New stub.
11979
f0036cca
JM
119802010-09-29 Joseph Myers <joseph@codesourcery.com>
11981
11982 * c.opt: Don't use VarExists.
11983
e3339d0f
JM
119842010-09-29 Joseph Myers <joseph@codesourcery.com>
11985
11986 * c-common.c (c_cpp_error): Update names of diagnostic_context
11987 members.
11988 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
11989 cl_optimization members.
11990 * c-opts.c (warning_as_error_callback, c_common_handle_option,
11991 sanitize_cpp_opts, finish_options): Update names of cpp_options
11992 members.
11993
1973201f
NP
119942010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
11995
11996 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
11997 (objc_is_reserved_word): Removed.
11998 * c-common.c: Updated comments.
11999 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
12000 objc_is_reserved_word.
12001 * stub-objc.c (objc_is_reserved_word): Removed.
12002
f7e71da5
IS
120032010-09-28 Iain Sandoe <iains@gcc.gnu.org>
12004
9faeb493 12005 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
12006 include attributes.
12007 (objc_start_method_definition): Likewise.
12008 (objc_build_keyword_decl): Likewise.
12009 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
12010 (objc_start_method_definition): Likewise.
12011 (objc_build_keyword_decl): Likewise.
12012
c165dca7
IS
120132010-09-28 Iain Sandoe <iains@gcc.gnu.org>
12014
12015 * c-common.h (objc_start_class_interface): Adjust prototype.
12016 (objc_start_category_interface): Likewise.
12017 (objc_start_protocol): Likewise.
12018 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
12019 (objc_start_class_interface): Likewise.
12020 (objc_start_category_interface): Likewise.
12021
7458026b
ILT
120222010-09-27 Ian Lance Taylor <iant@google.com>
12023
12024 * c-common.c (c_common_attribute_table): Add no_split_stack.
12025 (handle_no_split_stack_attribute): New static function.
12026
b581b85b
NP
120272010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
12028
9faeb493 12029 Merge from 'apple/trunk' branch on FSF servers.
b581b85b 12030
3f8257db 12031 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
b581b85b 12032
9faeb493 12033 Radar 4229905
b581b85b
NP
12034 * c-common.h (objc_have_common_type): New declaration.
12035 * stub-objc.c (objc_have_common_type): New stub.
12036
12037 2005-06-22 Ziemowit Laski <zlaski@apple.com>
12038
12039 Radar 4154928
12040 * c-common.h (objc_common_type): New prototype.
9faeb493 12041 * stub-objc.c (objc_common_type): New stub.
b581b85b 12042
46a4da10
JH
120432010-09-24 Jan Hubicka <jh@suse.cz>
12044
12045 * c-common.c (handle_leaf_attribute): New function.
12046 (struct attribute_spec c_common_att): Add leaf.
12047
e200444e
JM
120482010-09-22 Joseph Myers <joseph@codesourcery.com>
12049
12050 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
12051 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
12052 -dump, -dump=, -imacros, -imacros=, -include, -include=,
12053 -include-barrier, -include-directory, -include-directory=,
12054 -include-directory-after, -include-directory-after=,
12055 -include-prefix, -include-prefix=, -include-with-prefix,
12056 -include-with-prefix=, -include-with-prefix-after,
12057 -include-with-prefix-after=, -include-with-prefix-before,
12058 -include-with-prefix-before=, -no-integrated-cpp,
12059 -no-line-commands, -no-standard-includes, -no-warnings, -output,
12060 -output=, -pedantic, -pedantic-errors, -preprocess,
12061 -print-missing-file-dependencies, -trace-includes, -traditional,
12062 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
12063 -user-dependencies, -verbose, -write-dependencies,
12064 -write-user-dependencies, no-integrated-cpp, traditional): New.
12065
29a80ea6
NP
120662010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
12067
12068 PR objc/23710
ac1fc2fc
NP
12069 * c-common.h (objc_start_method_definition): Return bool instead
12070 of void.
12071 * stub-objc.c (objc_start_method_definition): Return bool instead
12072 of void.
12073
120742010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
12075
12076 PR objc/25965
12077 * c-common.h (objc_get_interface_ivars): New declaration.
12078 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 12079
de621752
ILT
120802010-09-15 Ian Lance Taylor <iant@google.com>
12081
12082 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 12083 messages. Remove period at end of warning message.
de621752 12084
ba885ec5
NS
120852010-09-09 Nathan Sidwell <nathan@codesourcery.com>
12086
12087 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
12088 (handle_alias_attribute): ... here.
12089 (handle_ifunc_attribute): New.
12090
c5ee1358
MM
120912010-09-06 Mark Mitchell <mark@codesourcery.com>
12092
12093 * c-common.h (do_warn_double_promotion): Declare.
12094 * c-common.c (do_warn_double_promotion): Define.
12095
0a0b3574
MM
120962010-09-05 Mark Mitchell <mark@codesourcery.com>
12097
12098 * c.opt (Wdouble-promotion): New.
12099
d1779886
JM
121002010-09-02 Joseph Myers <joseph@codesourcery.com>
12101
12102 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
12103 fvtable-thunks, fxref): Mark no longer supported in help text.
12104
2d2bd949
JM
121052010-09-02 Joseph Myers <joseph@codesourcery.com>
12106
12107 * c.opt (Wimport, fall-virtual, falt-external-templates,
12108 fdefault-inline, fenum-int-equiv, fexternal-templates,
12109 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
12110 fname-mangling-version-, fnew-abi, fnonnull-objects,
12111 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
12112 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
12113 applicable.
12114 (fhandle-exceptions): Mark with Alias and Warn.
12115 * c-opts.c (c_common_handle_option): Don't handle options marked
12116 as ignored.
12117
5de8299c
JM
121182010-09-02 Joseph Myers <joseph@codesourcery.com>
12119
12120 * c.opt (Wcomments, Werror-implicit-function-declaration,
12121 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
12122 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
12123 aliases.
12124 * c-common.c (option_codes): Use OPT_Wcomment instead of
12125 OPT_Wcomments.
12126 * c-opts.c (warning_as_error_callback, c_common_handle_option):
12127 Don't handle options marked as aliases.
12128
0ceb0201
RG
121292010-08-25 Richard Guenther <rguenther@suse.de>
12130
12131 * c-common.c (c_common_get_alias_set): Remove special
12132 handling for pointers.
12133
ac47786e
NF
121342010-08-20 Nathan Froyd <froydnj@codesourcery.com>
12135
12136 * c-common.c: Use FOR_EACH_VEC_ELT.
12137 * c-gimplify.c: Likewise.
12138 * c-pragma.c: Likewise.
12139
c878765b
JM
121402010-08-16 Joseph Myers <joseph@codesourcery.com>
12141
12142 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
12143 RejectDriver.
12144 (MMDX): Change back to MMD. Mark NoDriverArg instead of
12145 RejectDriver.
12146 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
12147 instead of OPT_MDX and OPT_MMDX.
12148
603349bf
JM
121492010-08-16 Joseph Myers <joseph@codesourcery.com>
12150
12151 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
12152
644fa7ac
JM
121532010-08-12 Joseph Myers <joseph@codesourcery.com>
12154
12155 * c.opt (MD, MMD): Change to MDX and MMDX.
12156 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
12157
481e1176
JM
121582010-08-11 Joseph Myers <joseph@codesourcery.com>
12159
12160 * c-opts.c (c_common_handle_option): Call handle_generated_option
12161 instead of handle_option.
12162
ac8dc9f7
NF
121632010-08-08 Nathan Froyd <froydnj@codesourcery.com>
12164
12165 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
12166 (maybe_apply_renaming_pragma): Delete unneeded declarations.
12167
4f8c876d
NF
121682010-08-08 Nathan Froyd <froydnj@codesourcery.com>
12169
12170 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
12171 (pending_redefine_extname): Change type to a VEC.
12172 (add_to_renaming_pragma_list): Update for new type of
12173 pending_redefine_extname.
ac8dc9f7 12174 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 12175
3b0c690e
AC
121762010-08-04 Arnaud Charlet <charlet@adacore.com>
12177
12178 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
12179 visited.
12180 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
12181 decide whether a type has already been declared/seen.
12182 Do not go to the original type.
12183 (dump_nested_types): New parameter forward.
12184 Generate forward declaration if needed and mark type as visited.
12185 (print_ada_declaration): Call dump_nested_types if not already done.
12186 Mark types as visited.
12187
1890bccc
JM
121882010-08-03 Joseph Myers <joseph@codesourcery.com>
12189
12190 * c.opt (-print-pch-checksum): Remove option.
12191 * c-opts.c (c_common_handle_option): Don't handle
12192 OPT_print_pch_checksum.
12193
5f20c657
JM
121942010-07-27 Joseph Myers <joseph@codesourcery.com>
12195
12196 * c-common.h (c_common_handle_option): Update prototype and return
12197 value type.
12198 * c-opts.c (c_common_handle_option): Update prototype and return
12199 value type. Update calls to handle_option and
12200 enable_warning_as_error.
12201
f551f80c
JJ
122022010-07-27 Jakub Jelinek <jakub@redhat.com>
12203
12204 PR c/45079
12205 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
12206
61ff2bdc
JM
122072010-07-27 Joseph Myers <joseph@codesourcery.com>
12208
12209 * c-common.h (c_common_missing_argument): Remove.
12210 * c-opts.c (c_common_missing_argument): Remove.
12211 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
12212 idirafter, imacros, include, isysroot, isystem, iquote): Add
12213 MissingArgError.
12214 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
12215
7a9bf9a4
JM
122162010-07-27 Joseph Myers <joseph@codesourcery.com>
12217
12218 * c-common.h (c_common_option_lang_mask,
12219 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
12220 New.
12221 (c_common_init_options): Update prototype.
12222 * c-opts.c (c_common_option_lang_mask): New.
12223 (c_common_initialize_diagnostics): Split out of
12224 c_common_init_options.
12225 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
12226 New.
12227 (c_common_init_options): Update prototype. Use decoded options in
12228 search for -lang-asm.
12229
910ad8de
NF
122302010-07-15 Nathan Froyd <froydnj@codesourcery.com>
12231
12232 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
12233 * c-format.c: Likewise.
12234
718f9c0f
MLI
122352010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
12236
12237 * c-common.h: Include diagnostic-core.h. Error if already
12238 included.
12239 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
12240
4d451982
MLI
122412010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
12242
adfac8df 12243 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
12244 Do not include expr.h
12245 (vector_mode_valid_p): Move here.
12246
119fe915
SB
122472010-06-21 DJ Delorie <dj@redhat.com>
12248
12249 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
12250 allow these pragmas anywhere.
12251
122522010-06-14 Jakub Jelinek <jakub@redhat.com>
12253
12254 PR bootstrap/44509
12255 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
12256 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
12257 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
12258 ggc_strdup instead of xstrdup.
12259
122602010-06-10 Jakub Jelinek <jakub@redhat.com>
12261
12262 * c-cppbuiltin.c: Include cpp-id-data.h.
12263 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
12264 (lazy_hex_fp_value): New function.
12265 (builtin_define_with_hex_fp_value): Provide definitions lazily.
12266
6662d794
MLI
122672010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
12268
12269 * c-gimplify.c: Do not include tree-flow.h
12270
38f8b050
JR
122712010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
12272
12273 PR other/44034
12274 * c-common.c: Rename targetm member:
12275 targetm.enum_va_list -> targetm.enum_va_list_p
12276
9589f23e
AS
122772010-06-28 Anatoly Sokolov <aesok@post.ru>
12278
12279 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
12280
3b06d379
SB
122812010-06-28 Steven Bosscher <steven@gcc.gnu.org>
12282
12283 * c-cppbuiltin.c: Do not include except.h.
12284
d166d4c3
AK
122852010-06-24 Andi Kleen <ak@linux.intel.com>
12286
9faeb493
UB
12287 * c-common.c (warn_for_omitted_condop): New.
12288 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 12289
70cb8be6
JM
122902010-06-21 Joseph Myers <joseph@codesourcery.com>
12291
12292 * c.opt (lang-objc): Remove.
12293 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
12294
a4c97feb
JR
122952010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
12296
12297 * c-opts.c: Include "tm_p.h".
12298
6e2f1956
JM
122992010-06-20 Joseph Myers <joseph@codesourcery.com>
12300
12301 * c-common.c (parse_optimize_options): Update call to
12302 decode_options.
12303
bc87224e
NF
123042010-06-18 Nathan Froyd <froydnj@codesourcery.com>
12305
12306 * c-common.c (record_types_used_by_current_var_decl): Adjust for
12307 new type of types_used_by_cur_var_decl.
12308
b49cf425
JR
123092010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
12310
12311 PR bootstrap/44512
12312 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
12313 for C++ standard compliance.
12314
59f9c2ed
JM
123152010-06-16 Jason Merrill <jason@redhat.com>
12316
12317 * c.opt: Add -Wnoexcept.
12318
33766b66
RG
123192010-06-16 Richard Guenther <rguenther@suse.de>
12320
12321 PR c/44555
12322 * c-common.c (c_common_truthvalue_conversion): Remove
12323 premature and wrong optimization concering ADDR_EXPRs.
12324
eff7e30c
AC
123252010-06-15 Arnaud Charlet <charlet@adacore.com>
12326
12327 * c-ada-spec.c (dump_sloc): Remove column info.
12328 (is_simple_enum): New function.
12329 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
12330 enum types when relevant.
12331
6312e84d
MLI
123322010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
12333
9faeb493 12334 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
12335 location.
12336
1cb42611
JM
123372010-06-10 Joseph Myers <joseph@codesourcery.com>
12338
12339 * c-opts.c (c_common_handle_option): Don't handle
12340 OPT_fshow_column.
12341
a9429e29
LB
123422010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
12343
12344 * c-pragma.c (push_alignment): Use typed GC allocation.
12345 (handle_pragma_push_options): Likewise.
12346
12347 * c-common.c (parse_optimize_options): Likewise.
12348
12349 * c-common.h (struct sorted_fields_type): Add variable_size GTY
12350 option.
12351
5498f011
JM
123522010-06-07 Joseph Myers <joseph@codesourcery.com>
12353
12354 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
12355 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
12356 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
12357 flag_signed_bitfields, warn_strict_null_sentinel,
12358 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
12359 flag_gen_declaration, flag_no_gnu_keywords,
12360 flag_implement_inlines, flag_implicit_templates,
12361 flag_implicit_inline_templates, flag_optional_diags,
12362 flag_elide_constructors, flag_default_inline, flag_rtti,
12363 flag_conserve_space, flag_access_control, flag_check_new,
12364 flag_new_for_scope, flag_weak, flag_working_directory,
12365 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
12366 flag_enforce_eh_specs, flag_threadsafe_statics,
12367 flag_pretty_templates): Remove.
12368 * c-common.h (flag_preprocess_only, flag_nil_receivers,
12369 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
12370 flag_replace_objc_classes, flag_undef, flag_no_builtin,
12371 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
12372 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
12373 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
12374 flag_no_gnu_keywords, flag_implement_inlines,
12375 flag_implicit_templates, flag_implicit_inline_templates,
12376 flag_optional_diags, flag_elide_constructors, flag_default_inline,
12377 flag_rtti, flag_conserve_space, flag_access_control,
12378 flag_check_new, flag_new_for_scope, flag_weak,
12379 flag_working_directory, flag_use_cxa_atexit,
12380 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
12381 flag_threadsafe_statics, flag_pretty_templates,
12382 warn_strict_null_sentinel): Remove.
12383 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
12384 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
12385 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
12386 fimplicit-inline-templates, fimplicit-templates,
12387 flax-vector-conversions, fms-extensions, fnil-receivers,
12388 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
12389 frtti, fshort-double, fshort-enums, fshort-wchar,
12390 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
12391 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
12392 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
12393 gen-decls, undef): Use Var.
12394 (fdefault-inline, foptional-diags): Document as doing nothing.
12395 * c-opts.c (c_common_handle_option): Remove cases for options now
12396 using Var. Mark ignored options as such.
12397
39dabefd
SB
123982010-06-05 Steven Bosscher <steven@gcc.gnu.org>
12399
9faeb493 12400 * c-common.c: Moved to here from parent directory.
39dabefd
SB
12401 * c-common.def: Likewise.
12402 * c-common.h: Likewise.
12403 * c-cppbuiltin.c: Likewise.
12404 * c-dump.c: Likewise.
12405 * c-format.c: Likewise.
12406 * c-format.h : Likewise.
12407 * c-gimplify.c: Likewise.
12408 * c-lex.c: Likewise.
12409 * c-omp.c: Likewise.
12410 * c.opt: Likewise.
12411 * c-opts.c: Likewise.
12412 * c-pch.c: Likewise.
12413 * c-ppoutput.c: Likewise.
12414 * c-pragma.c: Likewise.
12415 * c-pragma.h: Likewise.
12416 * c-pretty-print.c: Likewise.
12417 * c-pretty-print.h: Likewise.
12418 * c-semantics.c: Likewise.
12419 * stub-objc.c: Likewise.
12420
12421 * c-common.c: Include gt-c-family-c-common.h.
12422 * c-pragma.c: Include gt-c-family-c-pragma.h.
12423\f
c48514be 12424Copyright (C) 2010-2021 Free Software Foundation, Inc.
39dabefd
SB
12425
12426Copying and distribution of this file, with or without modification,
12427are permitted in any medium without royalty provided the copyright
12428notice and this notice are preserved.