]> gcc.gnu.org Git - gcc.git/blame - gcc/c-family/ChangeLog
testsuite: fix AIX testsuite failures
[gcc.git] / gcc / c-family / ChangeLog
CommitLineData
f16f65f8
GA
12021-06-11 Jakub Jelinek <jakub@redhat.com>
2
3 PR c++/100974
4 * c-cppbuiltin.c (c_cpp_builtins): Predefine __cpp_if_consteval for
5 -std=c++2b for P1938R3 consteval if support.
6
4f625f47
GA
72021-06-09 Jason Merrill <jason@redhat.com>
8
9 PR c++/100879
10 * c-warn.c (warn_for_sign_compare): Remove C++ enum mismatch
11 warning.
12
438aac59
GA
132021-06-07 Martin Liska <mliska@suse.cz>
14
15 * c-target.def: Split long lines and replace them
16 with '\n\'.
17
600f90cb
GA
182021-06-04 Martin Sebor <msebor@redhat.com>
19
20 PR c/100783
21 * c-attribs.c (positional_argument): Bail on erroneous types.
22
232021-06-04 Martin Sebor <msebor@redhat.com>
24
25 * c-warn.c (warn_parm_array_mismatch): Check TREE_PURPOSE to test
26 for element presence.
27
440c8a0a
GA
282021-06-03 Eric Botcazou <ebotcazou@adacore.com>
29
30 * c-ada-spec.c (dump_ada_macros): Minor tweaks.
31 (dump_ada_decl_name): Likewise.
32 (dump_anonymous_type_name): Remove parent parameter and adjust.
33 (dump_sloc): Minor tweak.
34 (dump_ada_array_type): Remove type parameter and adjust.
35 (dump_ada_enum_type): Remove parent parameter and adjust.
36 (dump_ada_node): Adjust calls to above functions.
37 (dumped_anonymous_types): New global variable.
38 (dump_nested_types_1): Rename into...
39 (dump_nested_types): ...this.
40 (dump_nested_type): Remove parent and dumped_types parameters.
41 <ARRAY_TYPE>: Replace dumped_types with dumped_anonymous_types.
42 Adjust calls to dump_anonymous_type_name and dump_ada_array_type.
43 (dump_ada_specs): Initialize and free dumped_anonymous_types.
44
452021-06-03 Eric Botcazou <ebotcazou@adacore.com>
46
47 * c-ada-spec.c (pp_ada_tree_identifier): Tidy up.
48 (dump_ada_node) <POINTER_TYPE>: Deal specially with external subtypes.
49
502021-06-03 Eric Botcazou <ebotcazou@adacore.com>
51
52 * c-ada-spec.c (dump_ada_enum_type): Dump a prefix for constants.
53 (htable_t): New typedef.
54 (overloaded_names): Use it.
55 (add_name): New function.
56 (init_overloaded_names): Use add_name to populate the table and add
57 special cases for sigaction and stat.
58 (overloaded_name_p): Rename into...
59 (overloading_index): ...this. Do not initialize overloaded_names table
60 here. Return the index or zero.
61 (dump_ada_declaration): Minor tweaks. Do not skip overloaded functions
62 but add an overloading suffix instead.
63 (dump_ada_specs): Initialize overloaded_names tables here.
64
b75978d1
GA
652021-06-01 Martin Liska <mliska@suse.cz>
66
67 PR other/100759
68 * c-attribs.c (handle_optimize_attribute): Limit sanity check
69 to a situation where we are not in processing of an optimize
70 pragma.
71 * c-pragma.c (handle_pragma_pop_options): Restore target
72 options.
73
ee682192
GA
742021-05-31 Indu Bhagat <indu.bhagat@oracle.com>
75
76 PR testsuite/100749
77 * c-pch.c (c_common_valid_pch): Use xstrdup for debug format set names.
78
792021-05-31 Richard Biener <rguenther@suse.de>
80
81 PR c++/88601
82 * c-common.c: Include tree-vector-builder.h and
83 vec-perm-indices.h.
84 (c_common_reswords): Add __builtin_shufflevector.
85 (c_build_shufflevector): New funtion.
86 * c-common.h (enum rid): Add RID_BUILTIN_SHUFFLEVECTOR.
87 (c_build_shufflevector): Declare.
88
48166757
GA
892021-05-28 Jakub Jelinek <jakub@redhat.com>
90
91 PR middle-end/99928
92 * c-omp.c (c_omp_split_clauses): For reduction clause if combined with
93 target add a map tofrom clause with OMP_CLAUSE_MAP_IMPLICIT.
94
952021-05-28 Tobias Burnus <tobias@codesourcery.com>
96
97 * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_AFFINITY.
98
2bc6dace
GA
992021-05-25 Martin Liska <mliska@suse.cz>
100
101 PR tree-optimization/92860
102 PR target/99592
103 * c-attribs.c (handle_optimize_attribute): Save target node
104 before calling parse_optimize_options and save it in case
105 it changes.
106 * c-pragma.c (handle_pragma_target): Similarly for pragma.
107 (handle_pragma_pop_options): Likewise here.
108
1092021-05-25 Martin Liska <mliska@suse.cz>
110
111 * c-attribs.c (handle_no_sanitize_coverage_attribute): New.
112
1132021-05-25 Jakub Jelinek <jakub@redhat.com>
114
115 PR middle-end/99928
116 * c-omp.c (c_omp_split_clauses): Copy reduction to teams when teams is
117 combined with simd and not with taskloop or for.
118
2832d51b
GA
1192021-05-21 Jakub Jelinek <jakub@redhat.com>
120
121 PR middle-end/99928
122 * c-omp.c (c_omp_split_clauses): Set OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT
123 on firstprivate clause copy going to target construct, and for
124 target simd set also OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET bit.
125
ea34e2ed
GA
1262021-05-20 Jonathan Wakely <jwakely@redhat.com>
127
128 * c.opt (Wc++11-extensions, Wc++14-extensions)
129 (Wc++17-extensions, Wc++20-extensions, Wc++23-extensions): New
130 options.
131
1322021-05-20 Indu Bhagat <indu.bhagat@oracle.com>
133
134 * c-lex.c (init_c_lex): Use dwarf_debuginfo_p.
135
1362021-05-20 Indu Bhagat <indu.bhagat@oracle.com>
137
138 * c-opts.c (c_common_post_options): Adjust access to debug_type_names.
139 * c-pch.c (struct c_pch_validity): Use type uint32_t.
140 (pch_init): Renamed member.
141 (c_common_valid_pch): Adjust access to debug_type_names.
142
65f32e5d
GA
1432021-05-19 Martin Sebor <msebor@redhat.com>
144
145 PR c/100619
146 * c-attribs.c (build_attr_access_from_parms): Handle arbitrarily many
147 bounds.
148
a8daf9a1
GA
1492021-05-18 Richard Biener <rguenther@suse.de>
150
151 PR c/100547
152 * c-attribs.c (type_valid_for_vector_size): Reject too large nunits.
153 Reword existing nunit diagnostic.
154
a7ffc1ef
GA
1552021-05-17 Joern Rennecke <joern.rennecke@embecosm.com>
156
157 * c-common.c (braced_list_to_string): Return CTOR unchanged
158 if host and target character sizes don't match.
159
87a7d10c
GA
1602021-05-14 Martin Liska <mliska@suse.cz>
161
162 * c.opt: Add Warning keyword for 2 options.
163
f9af11c7
GA
1642021-05-13 Martin Liska <mliska@suse.cz>
165
166 PR middle-end/100504
167 * c-attribs.c (handle_target_clones_attribute): Expect a string
168 argument to target_clone argument.
169
037e3661
GA
1702021-05-11 Joseph Myers <joseph@codesourcery.com>
171
172 * c-lex.c (interpret_float): Handle digit separators for C2X.
173
aa891c56
GA
1742021-05-10 Martin Liska <mliska@suse.cz>
175
176 * c-ada-spec.c (print_destructor): Use startswith
177 function instead of strncmp.
178 (dump_ada_declaration): Likewise.
179 * c-common.c (disable_builtin_function): Likewise.
180 (def_builtin_1): Likewise.
181 * c-format.c (check_tokens): Likewise.
182 (check_plain): Likewise.
183 (convert_format_name_to_system_name): Likewise.
184
e4ff4ffb
GA
1852021-04-28 Patrick McGehearty <patrick.mcgehearty@oracle.com>
186
187 * c-cppbuiltin.c (c_cpp_builtins): Add supporting macros for new
188 complex divide
189
c0fa3f2f
GA
1902021-04-26 Thomas Schwinge <thomas@codesourcery.com>
191 Nathan Sidwell <nathan@codesourcery.com>
192 Tom de Vries <vries@codesourcery.com>
193 Julian Brown <julian@codesourcery.com>
194 Kwok Cheung Yeung <kcy@codesourcery.com>
195
196 * c.opt (Wopenacc-parallelism): New.
197
6e81e015
GA
1982021-04-19 Thomas Schwinge <thomas@codesourcery.com>
199
200 * c.opt (fopenacc-kernels=): Remove.
201
019a9220
GA
2022021-04-08 Jakub Jelinek <jakub@redhat.com>
203
204 * c-warn.c (do_warn_double_promotion): Fix comment typo,
205 occured -> occurred.
206 (check_alignment_of_packed_member): Fix a comment typo,
207 memeber -> member.
208 (warn_parm_ptrarray_mismatch): Fix comment typos, os -> of
209 and onless -> unless.
210 (warn_parm_array_mismatch): Fix comment typos, declaratation
211 -> declaration and woud -> would. Fix up comment indentation.
212
2132021-04-08 Martin Sebor <msebor@redhat.com>
214
215 PR middle-end/99883
216 * c.opt (Wmismatched-new-delete): Correct spelling.
217
b1da9916
GA
2182021-04-05 Eric Botcazou <ebotcazou@adacore.com>
219
220 * c-ada-spec.c (is_simple_enum): Minor tweaks.
221 (dump_ada_enum_type): Add TYPE and PARENT parameters. For non-simple
222 enumeral types use again the type name for the enumeration constants.
223 (dump_ada_node): Adjust call to dump_ada_enum_type.
224 (dump_nested_type): Likewise.
225
f1607029
GA
2262021-04-01 Jason Merrill <jason@redhat.com>
227
228 PR c++/98481
229 * c-opts.c (c_common_post_options): Bump latest_abi_version.
230
4493b1c1
GA
2312021-03-25 Jakub Jelinek <jakub@redhat.com>
232
233 PR c++/99565
234 * c-warn.c (do_warn_duplicated_branches): Pass also
235 OEP_ADDRESS_OF_SAME_FIELD to operand_equal_p.
236
6af7b307
GA
2372021-03-20 Jakub Jelinek <jakub@redhat.com>
238
239 PR debug/99230
240 * c-gimplify.c (c_genericize_control_stmt): Handle STATEMENT_LIST.
241
ceae9533
GA
2422021-03-05 Eric Botcazou <ebotcazou@adacore.com>
243
244 * c-ada-spec.c (dump_ada_declaration) <TYPE_DECL>: Dump nested types
245 after entering the separate class package, if any.
246
67f10d28
GA
2472021-03-04 Richard Biener <rguenther@suse.de>
248
249 * c-pretty-print.c (c_pretty_printer::direct_abstract_declarator):
250 Handle ERROR_MARK.
251
2522021-03-04 Jakub Jelinek <jakub@redhat.com>
253
254 PR c/99325
255 * c-ppoutput.c (print): Change src_line type from int to unsigned.
256 (token_streamer::stream) Likewise.
257 (maybe_print_line_1): Likewise. Don't strcmp src_file if src_loc is
258 UNKNOWN_LOCATION.
259
f3641ac7
GA
2602021-03-03 Jakub Jelinek <jakub@redhat.com>
261
262 PR c/99324
263 * c-common.c (build_va_arg): Call c_common_mark_addressable_vec
264 instead of mark_addressable. Fix a comment typo -
265 neutrallly -> neutrally.
266
2c83c3fb
GA
2672021-02-28 Jakub Jelinek <jakub@redhat.com>
268
269 PR c/99304
270 * c-attribs.c (handle_malloc_attribute): Fix a typo in inform
271 message - refernced -> referenced. Remove superfluous space before
272 closing paren of function calls.
273
daa68844
GA
2742021-02-25 Nathan Sidwell <nathan@acm.org>
275
276 PR c++/99166
277 * c.opt (-flang-info-module-cmi): Renamed option.
278
50352c6c
GA
2792021-02-19 Nathan Sidwell <nathan@acm.org>
280
281 * c.opt (flang-info-module-read, flang-info-module-read=): New.
282
bf81237e
GA
2832021-02-18 H.J. Lu <hjl.tools@gmail.com>
284
285 PR target/99113
286 * c-attribs.c (c_common_attribute_table): Add the "retain"
287 attribute.
288 (handle_retain_attribute): New function.
289
0e804ce3
GA
2902021-02-16 Marek Polacek <polacek@redhat.com>
291
292 PR c++/99062
293 * c-attribs.c (handle_assume_aligned_attribute): Check that the
294 alignment argument is non-negative. Tweak a warning message.
295
fab095da
GA
2962021-02-12 Martin Sebor <msebor@redhat.com>
297
298 PR c/99055
299 * c-warn.c (warn_parm_array_mismatch): Free strings returned from
300 print_generic_expr_to_str.
301
4b37c3ea
GA
3022021-02-10 Richard Biener <rguenther@suse.de>
303
304 * c-common.c (parse_optimize_options): Free decoded_options.
305
a19dd5e6
GA
3062021-02-04 emsr <3dw4rd@verizon.net>
307
308 * c-cppbuiltin.c (c_cpp_builtins): __cpp_size_t_suffix=202011L.
309
9faaa807
GA
3102021-02-03 Ed Smith-Rowland <3dw4rd@verizon.net>
311
312 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_size_t_suffix.
313 * c-lex.c (interpret_integer): Set node type for size literal.
314
85d04a2e
GA
3152021-01-28 Jakub Jelinek <jakub@redhat.com>
316
317 * c.opt (-std=c++2a, -std=c++20, -std=gnu++2a, -std=gnu++20): Remove
318 draft from description.
319 (-std=c++2b): Fix a pasto, 2020 -> 2023.
320
e62bb7f0
GA
3212021-01-26 Paul Fee <paul.f.fee@gmail.com>
322
323 * c-common.h (cxx_dialect): Add cxx23 as a dialect.
324 * c.opt: Add options for -std=c++23, std=c++2b, -std=gnu++23
325 and -std=gnu++2b
326 * c-opts.c (set_std_cxx23): New.
327 (c_common_handle_option): Set options when -std=c++23 is enabled.
328 (c_common_post_options): Adjust comments.
329 (set_std_cxx20): Likewise.
330
161e4c08
GA
3312021-01-25 Martin Sebor <msebor@redhat.com>
332
333 PR c++/98646
334 * c-common.c (check_nonnull_arg): Adjust warning text.
335
4c9bcd5c
GA
3362021-01-17 Martin Sebor <msebor@redhat.com>
337
338 * c-pretty-print.c (c_pretty_printer::primary_expression): Don't
339 assume SSA_NAME_IDENTIFIER evaluates to nonzero.
340
59cf67d1
GA
3412021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
342
343 * c-pragma.h (pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_DETACH.
344 Redefine PRAGMA_OACC_CLAUSE_DETACH.
345
2f7f0d32
GA
3462021-01-15 Jakub Jelinek <jakub@redhat.com>
347
348 PR tree-optimization/98597
349 * c-pretty-print.c: Include options.h.
350 (c_fold_indirect_ref_for_warn): New function.
351 (print_mem_ref): Use it. If it returns something that has compatible
352 type and is TBAA compatible with zero offset, print it and return,
353 otherwise print it using offsetof syntax or array ref syntax. Fix up
354 printing if MEM_REFs first operand is ADDR_EXPR, or when the first
355 argument has pointer to array type. Print pointers using the standard
356 formatting.
357
6851dda2
GA
3582021-01-12 Martin Sebor <msebor@redhat.com>
359
360 PR c/98597
361 PR c/98592
362 * c-pretty-print.c (print_mem_ref): Avoid assuming MEM_REF operand
363 has pointer type. Remove redundant code. Avoid calling
364 gimple_canonical_types_compatible_p.
365
7d187e4f
GA
3662021-01-07 Martin Sebor <msebor@redhat.com>
367
368 PR middle-end/98578
369 * c-pretty-print.c (print_mem_ref): Strip array from access type.
370 Avoid assuming acces type's size is constant. Correct condition
371 guarding the printing of a parenthesis.
372
942ae5be
GA
3732021-01-06 Martin Sebor <msebor@redhat.com>
374
375 PR c++/95768
376 * c-pretty-print.c (c_pretty_printer::primary_expression): For
377 SSA_NAMEs print VLA names and GIMPLE defining statements.
378 (print_mem_ref): New function.
379 (c_pretty_printer::unary_expression): Call it.
380
3812021-01-06 Richard Biener <rguenther@suse.de>
382
383 PR tree-optimization/95582
384 * c-attribs.c (c_common_attribute_table): Add entry for
385 signed_bool_precision.
386 (handle_signed_bool_precision_attribute): New.
387
8daa719b
GA
3882020-12-24 Iain Sandoe <iain@sandoe.co.uk>
389
390 * c.opt: Add -stdlib= option and enumerations for
391 libstdc++ and libc++.
392
eefe499f
GA
3932020-12-16 Martin Liska <mliska@suse.cz>
394
395 * c.opt: Remove usage of Report.
396
d52945ce
GA
3972020-12-14 Martin Sebor <msebor@redhat.com>
398
399 PR middle-end/98166
400 PR c++/57111
401 PR middle-end/98160
402 * c-attribs.c (maybe_add_noinline): New function.
403 (handle_malloc_attribute): Call it. Use ATTR_FLAG_INTERNAL.
404 Implicitly add attribute noinline to functions not declared inline
405 and warn on those.
406
ca2bd949
GA
4072020-12-09 Tobias Burnus <tobias@codesourcery.com>
408
409 * c-pragma.c (omp_pragmas): Add 'allocate'.
410 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_ALLOCATE.
411
f6e8e279
GA
4122020-12-08 Jakub Jelinek <jakub@redhat.com>
413
414 PR c++/98187
415 * c-pragma.c (omp_pragmas): Remove "master".
416 (omp_pragmas_simd): Add "master".
417
bc8a7013
GA
4182020-12-07 Marek Polacek <polacek@redhat.com>
419
420 PR c++/98126
421 * c-common.c (verify_tree_lim_r): New function.
422 (verify_sequence_points): Use it. Use nullptr instead of 0.
423
b8dd0ef7
GA
4242020-12-03 Martin Sebor <msebor@redhat.com>
425
426 PR c++/90629
427 PR middle-end/94527
428 * c-attribs.c (handle_dealloc_attribute): New function.
429 (handle_malloc_attribute): Handle argument forms of attribute.
430 * c.opt (-Wmismatched-dealloc): New option.
431 (-Wmismatched-new-delete): New option.
432
4332020-12-03 Jakub Jelinek <jakub@redhat.com>
434
435 PR libstdc++/93121
436 * c-common.h (enum rid): Add RID_BUILTIN_BIT_CAST.
437 * c-common.c (c_common_reswords): Add __builtin_bit_cast.
438
e0f5e792
GA
4392020-12-01 JeanHeyd Meneide <phdofthehouse@gmail.com>
440
441 * c-cppbuiltin.c (c_cpp_builtins): Add predefined
442 {__GNUC_EXECUTION_CHARSET_NAME} and
443 _WIDE_EXECUTION_CHARSET_NAME} macros.
444
4452020-12-01 Nathan Sidwell <nathan@acm.org>
446
447 * c-common.c (module, import, export): New internal tokens (with
448 trailing space).
449 * c-common.h (RID__MODULE, RID__IMPORT & RID__EXPORT): Enumerate
450 them.
451 (D_CXX_MODULES, D_CXX_MODULES_FLAGS): Enable them.
452 * c-cppbuiltin.c (c_cpp_builtins): Feature macro.
453
4542020-12-01 Nathan Sidwell <nathan@acm.org>
455
456 * c-opts.c (c_common_init_options): Ask for module dependencies.
457 (c_common_handle_option): Handle -Mmodules -Mno-modules.
458 * c-pch.c (c_common_valid_pch): ... does not play with C++
459 modules.
460 * c.opt (Mmodules, Mno-modules): New preprocessor dependency
461 options.
462 (fmodules-ts, fmodule-header, fmodule-implicit-inline)
463 (fmodule-only, fmodule-mapper, fmodule-lazy)
464 (fmodule-version-ignore, Winvalid-imported-macros)
465 (flang-info-include-translate, flang-info-include-translate-not):
466 New options
467
5fbf0ecb
GA
4682020-11-28 Eric Botcazou <ebotcazou@adacore.com>
469
470 * c-ada-spec.c (dump_nested_type) <RECORD_TYPE>: Remove obsolete code.
471 (dump_ada_structure): Also deal with convention, unchecked union and
472 bit-field for nested types. In the latter case, print an Alignment
473 aspect along with the Pack aspect.
474
360258da
GA
4752020-11-25 Martin Sebor <msebor@redhat.com>
476
477 PR bootstrap/94982
478 * c-attribs.c (handle_patchable_function_entry_attribute): Avoid
479 -Wformat-diag.
480
1e2c9a27
GA
4812020-11-24 Martin Sebor <msebor@redhat.com>
482
483 * c-warn.c (warn_parm_array_mismatch): Avoid invalid redeclarations.
484
8e6198d0
GA
4852020-11-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
486
487 * c-attribs.c (handle_special_var_sec_attribute): New.
488 (handle_noinit_attribute): Remove.
489 (attr_noinit_exclusions): Rename to...
490 (attr_section_exclusions): ...this, and add "persistent" attribute
491 exclusion.
492 (c_common_attribute_table): Add "persistent" attribute.
493
7a97e2fc
GA
4942020-11-21 Aaron Sawdey <acsawdey@linux.ibm.com>
495
496 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
497 Treat opaque types like other types.
498 (c_pretty_printer::direct_abstract_declarator): Opaque types are
499 supported types.
500
82e5048e
GA
5012020-11-20 Martin Sebor <msebor@redhat.com>
502
503 * c-warn.c (warn_parm_array_mismatch): Bail on invalid redeclarations
504 with fewer arguments.
505
5062020-11-20 Martin Sebor <msebor@redhat.com>
507
508 PR middle-end/97879
509 * c-attribs.c (handle_access_attribute): Handle ATTR_FLAG_INTERNAL.
510 Error out on invalid modes.
511
5122020-11-20 Jakub Jelinek <jakub@redhat.com>
513
514 PR libstdc++/88101
515 * c-common.c (check_builtin_function_arguments): Handle
516 BUILT_IN_CLEAR_PADDING.
517
25bb75f8
GA
5182020-11-18 Nathan Sidwell <nathan@acm.org>
519
520 * c-lex.c (c_lex_with_flags): CPP_HEADER_NAMEs can now be seen.
521
4dabb037
GA
5222020-11-17 Nathan Sidwell <nathan@acm.org>
523
524 * c-common.h (enum c_tree_index): Reorder to place lazy fields
525 after newly-added CTI_MODULE_HWM.
526
5272020-11-17 Joseph Myers <joseph@codesourcery.com>
528
529 * c-cppbuiltin.c (builtin_define_float_constants): Define
530 "*_IS_IEC_60559__" macros.
531
5322020-11-17 Nathan Sidwell <nathan@acm.org>
533
534 * c-lex.c: #include "langhooks.h".
535 (cb_undef): Maybe call preprocess_undef lang hook.
536 * c-opts.c (c_common_post_options): Maybe call preprocess_options
537 lang hook.
538 (push_command_line_include): Maybe call preprocess_main_file lang
539 hook.
540 (cb_file_change): Likewise.
541 * c-ppoutput.c: #include "langhooks.h.
542 (scan_translation_unit): Maybe call preprocess_token lang hook.
543 (class do_streamer): New, derive from token_streamer.
544 (directives_only_cb): Data pointer is do_streamer, call
545 preprocess_token lang hook.
546 (scan_translation_unit_directives_only): Use do_streamer.
547 (print_line_1): Move src_line recording to after string output.
548 (cb_undef): Maybe call preprocess_undef lang hook.
549
5502020-11-17 Nathan Sidwell <nathan@acm.org>
551
552 * c-ppoutput.c (scan_translation_unit): Use token_streamer, remove
553 code duplicating that functionality.
554
5552020-11-17 Jakub Jelinek <jakub@redhat.com>
556
557 PR c/90628
558 * c-common.c (check_builtin_function_arguments)
559 <case BUILT_IN_ADD_OVERFLOW>: Diagnose when last argument is pointer
560 to _Atomic. For the TYPE_READONLY case, adjust message to be usable
561 for more builtins and argument positions.
562
29c5d9ce
GA
5632020-11-16 Iain Sandoe <iain@sandoe.co.uk>
564
565 PR objc/97854
566 * stub-objc.c: Include c-common.h to declare enum rid.
567
77f67db2
GA
5682020-11-13 Jakub Jelinek <jakub@redhat.com>
569
570 PR c++/63287
571 * c-cppbuiltin.c: Include configargs.h.
572 (c_cpp_builtins): For C++11 and later if THREAD_MODEL_SPEC is not
573 defined, predefine __STDCPP_THREADS__ to 1 unless thread_model is
574 "single".
575
5762020-11-13 Gergö Barany <gergo@codesourcery.com>
577 Thomas Schwinge <thomas@codesourcery.com>
578
579 * c.opt (fopenacc-kernels): Add.
580
5812020-11-13 Jason Merrill <jason@redhat.com>
582
583 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_using_enum.
584
5852020-11-13 Piotr H. Dabrowski <phd@phd.re>
586
587 PR c++/91318
588 * c-cppbuiltin.c: c_cpp_builtins_optimize_pragma(): use cpp_define_unused()
589
5902020-11-13 Martin Liska <mliska@suse.cz>
591
592 * c-attribs.c (build_attr_access_from_parms): Format properly.
593
5942020-11-13 Iain Sandoe <iain@sandoe.co.uk>
595
596 PR objc/90707
597 * c-common.c (c_common_reswords): null_unspecified, nullable,
598 nonnull, null_resettable: New keywords.
599 * c-common.h (enum rid): RID_NULL_UNSPECIFIED, RID_NULLABLE,
600 RID_NONNULL, RID_NULL_RESETTABLE: New.
601 (OBJC_IS_PATTR_KEYWORD): Include nullability keywords in the
602 ranges accepted for property attributes.
603 * c-attribs.c (handle_objc_nullability_attribute): New.
604 * c-objc.h (enum objc_property_attribute_group): Add
605 OBJC_PROPATTR_GROUP_NULLABLE.
606 (enum objc_property_attribute_kind):Add
607 OBJC_PROPERTY_ATTR_NULL_UNSPECIFIED, OBJC_PROPERTY_ATTR_NULLABLE,
608 OBJC_PROPERTY_ATTR_NONNULL, OBJC_PROPERTY_ATTR_NULL_RESETTABLE.
609
6102020-11-13 Iain Sandoe <iain@sandoe.co.uk>
611
612 PR objc/77404
613 * c-attribs.c (handle_objc_root_class_attribute): New
614 * c-objc.h (objc_start_class_interface): Add a location
615 value for the position of the class name.
616 * c.opt: Add Wobjc-root-class.
617 * stub-objc.c (objc_start_class_interface): Add a location
618 value for the position of the class name.
619
a5a11525
GA
6202020-11-12 Joseph Myers <joseph@codesourcery.com>
621
622 * c-lex.c (c_common_has_attribute): Take argument std_syntax.
623 Allow scope for C. Handle standard attributes for C. Do not
624 accept unscoped attributes if std_syntax and not handled as
625 standard attributes.
626 * c-common.h (c_common_has_attribute): Update prototype.
627
6282020-11-12 Nicholas Guriev <guriev-ns@ya.ru>
629
630 PR pch/86674
631 * c-pch.c (c_common_valid_pch): Use cpp_warning with CPP_W_INVALID_PCH
632 reason to fix -Werror=invalid-pch and -Wno-error=invalid-pch switches.
633
0f5f9ed5
GA
6342020-11-11 Patrick Palka <ppalka@redhat.com>
635
636 PR c++/88115
637 * c-opts.c (c_common_post_options): Update latest_abi_version.
638
bb622641
GA
6392020-11-10 Jakub Jelinek <jakub@redhat.com>
640
641 PR c/97748
642 * c-common.h (warn_if_unused_value): Add quiet argument defaulted
643 to false.
644 * c-warn.c (warn_if_unused_value): Likewise. Pass it down
645 recursively and just return true instead of warning if it is true.
646 Handle COMPLEX_EXPR.
647
6482020-11-10 Chung-Lin Tang <cltang@codesourcery.com>
649
650 * c-common.h (c_omp_adjust_map_clauses): New declaration.
651 * c-omp.c (struct map_clause): Helper type for c_omp_adjust_map_clauses.
652 (c_omp_adjust_map_clauses): New function.
653
2bee28dd
GA
6542020-11-09 Marek Polacek <polacek@redhat.com>
655
656 DR 1914
657 * c-common.c (attribute_fallthrough_p): Tweak the warning
658 message.
659
6602020-11-09 Patrick Palka <ppalka@redhat.com>
661
662 * c-pragma.c (handle_pragma_diagnostic): Split the
663 unknown-option -Wpragmas diagnostic into a warning and a
664 subsequent note containing a spelling suggestion. Avoid
665 computing the suggestion if -Wpragmas warnings are being
666 suppressed.
667
6682020-11-09 Patrick Palka <ppalka@redhat.com>
669
670 PR testsuite/97117
671 * c-indentation.c (get_visual_column): Remove location_t
672 parameter. Move the column-tracking diagnostic code from here
673 to ...
674 (should_warn_for_misleading_indentation): ... here, before the
675 early exit for when the loci are not all distinct. Don't pass a
676 location_t argument to get_visual_column.
677 (assert_get_visual_column_succeeds): Don't pass a location_t
678 argument to get_visual_column.
679 (assert_get_visual_column_fails): Likewise.
680
fb95de7a
GA
6812020-11-08 Iain Sandoe <iain@sandoe.co.uk>
682
683 * c-common.h (OBJC_IS_PATTR_KEYWORD): Add class to the list
684 of keywords accepted in @property attribute contexts.
685 * c-objc.h (enum objc_property_attribute_group): Add
686 OBJC_PROPATTR_GROUP_CLASS.
687 (enum objc_property_attribute_kind): Add
688 OBJC_PROPERTY_ATTR_CLASS.
689
2da7ee05
GA
6902020-11-07 Iain Sandoe <iain@sandoe.co.uk>
691
692 * c-common.c (c_common_reswords): Add 'atomic' property
693 attribute.
694 * c-common.h (enum rid): Add RID_PROPATOMIC for atomic
695 property attributes.
696
6972020-11-07 Iain Sandoe <iain@sandoe.co.uk>
698
699 * c-attribs.c (handle_nsobject_attribute): New.
700 * c.opt: Add WNSObject-attribute.
701
44cab2d8
GA
7022020-11-06 Iain Sandoe <iain@sandoe.co.uk>
703
704 * c-objc.h (enum objc_property_attribute_group): New
705 (enum objc_property_attribute_kind): New.
706 (OBJC_PROPATTR_GROUP_MASK): New.
707 (struct property_attribute_info): Small class encapsulating
708 parser output from property attributes.
709 (objc_prop_attr_kind_for_rid): New
710 (objc_add_property_declaration): Simplify interface.
711 * stub-objc.c (enum rid): Dummy type.
712 (objc_add_property_declaration): Simplify interface.
713 (objc_prop_attr_kind_for_rid): New.
714
7152020-11-06 Nathan Sidwell <nathan@acm.org>
716
717 * c-ada-spec.c (collect_ada_nodes): Rename
718 DECL_IS_BUILTIN->DECL_IS_UNDECLARED_BUILTIN.
719 (collect_ada_node): Likewise.
720 (dump_forward_type): Likewise.
721 * c-common.c (set_underlying_type): Rename
722 DECL_IS_BUILTIN->DECL_IS_UNDECLARED_BUILTIN.
723 (user_facing_original_type, c_common_finalize_early_debug): Likewise.
724
7252020-11-06 Jakub Jelinek <jakub@redhat.com>
726
727 * c-common.c (verify_sequence_points): Remove DEBUG_FUNCTION.
728
0cfd9109
GA
7292020-11-05 Marek Polacek <polacek@redhat.com>
730
731 PR c++/97675
732 * c.opt (Wexceptions): New option.
733
7342020-11-05 Marek Polacek <polacek@redhat.com>
735
736 PR c++/25814
737 * c.opt (Wvexing-parse): New option.
738
35c125cb
GA
7392020-11-04 Jakub Jelinek <jakub@redhat.com>
740
741 PR c++/97670
742 * c-omp.c (c_omp_split_clauses): Look through array reductions to find
743 underlying decl to clear in the allocate_head bitmap.
744
7452020-11-04 Iain Sandoe <iain@sandoe.co.uk>
746
747 * c-objc.h (objc_non_constant_expr_p): New.
748 * stub-objc.c (objc_non_constant_expr_p): New.
749
fd2325ea
GA
7502020-11-03 Nathan Sidwell <nathan@acm.org>
751
752 * c.opt (MQ,MT): Reword description to be make-agnostic.
753
88ce3d5f
GA
7542020-11-02 Nathan Sidwell <nathan@acm.org>
755
756 * c-opts.c (c_common_post_options): Move var decl to its
757 initialization point.
758
7592020-11-01 Iain Sandoe <iain@sandoe.co.uk>
760
761 * c-lex.c (c_lex_with_flags): When combining '@' with a
762 keyword for Objective-C, combine the location ranges too.
763
7642020-10-30 Qing Zhao <qing.zhao@oracle.com>
765 H.J.Lu <hjl.tools@gmail.com>
766
767 * c-attribs.c (c_common_attribute_table): Add new attribute
768 zero_call_used_regs.
769 (handle_zero_call_used_regs_attribute): New function.
770
e93aae4a
GA
7712020-10-28 Marek Polacek <polacek@redhat.com>
772
773 PR c++/97573
774 * c-opts.c (c_common_post_options): In C++20, turn on
775 -Wdeprecated-enum-enum-conversion and
776 -Wdeprecated-enum-float-conversion.
777 * c.opt (Wdeprecated-enum-enum-conversion,
778 Wdeprecated-enum-float-conversion): New options.
779 (Wenum-conversion): Allow for C++ too.
780
7812020-10-28 Jakub Jelinek <jakub@redhat.com>
782
783 * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALLOCATE.
784 * c-omp.c: Include bitmap.h.
785 (c_omp_split_clauses): Handle OMP_CLAUSE_ALLOCATE.
786
f19e7c8d
GA
7872020-10-26 Ville Voutilainen <ville.voutilainen@gmail.com>
788
789 * c-common.c (__is_nothrow_assignable): New.
790 (__is_nothrow_constructible): Likewise.
791 * c-common.h (RID_IS_NOTHROW_ASSIGNABLE): New.
792 (RID_IS_NOTHROW_CONSTRUCTIBLE): Likewise.
793
efe71fcc
GA
7942020-10-23 Jan Hubicka <hubicka@ucw.cz>
795
796 * c-common.c (c_common_finalize_early_debug): Update for new thunk api.
797
7982020-10-23 Marek Polacek <polacek@redhat.com>
799
800 PR c++/91741
801 * c-common.c (verify_tree): Handle PAREN_SIZEOF_EXPR.
802 (c_common_init_ts): Likewise.
803 * c-common.def (PAREN_SIZEOF_EXPR): New tree code.
804 * c-common.h (maybe_warn_sizeof_array_div): Declare.
805 * c-warn.c (sizeof_pointer_memaccess_warning): Unwrap NOP_EXPRs.
806 (maybe_warn_sizeof_array_div): New function.
807 * c.opt (Wsizeof-array-div): New option.
808
8092020-10-23 Martin Sebor <msebor@redhat.com>
810
811 PR c/97463
812 * c-warn.c (warn_parm_ptrarray_mismatch): Move null test earlier.
813
56ddd5e2
GA
8142020-10-22 Martin Liska <mliska@suse.cz>
815
816 PR c/94722
817 * c-attribs.c (handle_no_stack_protect_function_attribute): New.
818 (handle_stack_protect_attribute): Add error message for a
819 no_stack_protector function.
820
8212020-10-22 Martin Liska <mliska@suse.cz>
822
823 * c-cppbuiltin.c (c_cpp_builtins): Use the stack_protector enum.
824
8252020-10-22 Jan Hubicka <hubicka@ucw.cz>
826
827 * c-gimplify.c: Include tree-nested.h
828 (c_genericize): Update for new nested function info.
829
b2698c21
GA
8302020-10-14 Martin Sebor <msebor@redhat.com>
831
832 PR c/97413
833 * c-attribs.c (build_attr_access_from_parms): Wrap chain of VLA
834 bounds in an extra list.
835
7e9282ae
GA
8362020-10-05 Richard Biener <rguenther@suse.de>
837 Jakub Jelinek <jakub@redhat.com>
838
839 PR c++/97197
840 * c-pretty-print.c: Include langhooks.h.
841 (c_pretty_printer::postfix_expression): Handle TARGET_MEM_REF as
842 expression.
843 (c_pretty_printer::expression): Handle TARGET_MEM_REF as
844 unary_expression.
845 (c_pretty_printer::unary_expression): Handle TARGET_MEM_REF.
846
660bfe61
GA
8472020-09-30 Martin Sebor <msebor@redhat.com>
848
849 PR middle-end/97189
850 * c-attribs.c (append_access_attr): Use the function declaration
851 location for a warning about an attribute access argument.
852
93bca37c
GA
8532020-09-29 Marek Polacek <polacek@redhat.com>
854
855 PR c++/94695
856 * c.opt (Wrange-loop-construct): New option.
857
82b77dee
GA
8582020-09-23 Martin Sebor <msebor@redhat.com>
859
860 PR c/97131
861 * c-warn.c (warn_parm_ptrarray_mismatch): Handle more invalid input.
862
8632020-09-23 Marek Polacek <polacek@redhat.com>
864
865 PR c/97125
866 * c-gimplify.c (c_genericize): Only call do_warn_duplicated_branches_r
867 after loops and other structured control constructs have been lowered.
868
521d2711
GA
8692020-09-22 Jakub Jelinek <jakub@redhat.com>
870
871 * c.opt (Wbuiltin-declaration-mismatch): Fix typo in variable name:
872 warn_builtin_declaraion_mismatch -> warn_builtin_declaration_mismatch.
873
44135373
GA
8742020-09-21 Marek Polacek <polacek@redhat.com>
875
876 * c.opt (Wctad-maybe-unsupported): New option.
877
2fe5b7d1
GA
8782020-09-19 Martin Sebor <msebor@redhat.com>
879
880 PR c/50584
881 * c-common.h (warn_parm_array_mismatch): Declare new function.
882 (has_attribute): Move declaration of an existing function.
883 (build_attr_access_from_parms): Declare new function.
884 * c-warn.c (parm_array_as_string): Define new function.
885 (plus_one): Define new function.
886 (warn_parm_ptrarray_mismatch): Define new function.
887 (warn_parm_array_mismatch): Define new function.
888 (vla_bound_parm_decl): New function.
889 * c.opt (-Warray-parameter, -Wvla-parameter): New options.
890 * c-pretty-print.c (pp_c_type_qualifier_list): Don't print array type
891 qualifiers here...
892 (c_pretty_printer::direct_abstract_declarator): ...but instead print
893 them in brackets here. Also print [static]. Strip extraneous
894 expressions from VLA bounds.
895
8962020-09-19 Martin Sebor <msebor@redhat.com>
897
898 PR c/50584
899 * c-attribs.c (c_common_attribute_table): Add "arg spec" attribute.
900 (handle_argspec_attribute): New function.
901 (get_argument, get_argument_type): New functions.
902 (append_access_attrs): Add overload. Handle internal attribute
903 representation in addition to external.
904 (handle_access_attribute): Handle internal attribute representation
905 in addition to external.
906 (build_attr_access_from_parms): New function.
907
9082020-09-19 Sandra Loosemore <sandra@codesourcery.com>
909
910 * c-gimplify.c (genericize_c_loop): Rewrite to match
911 c_finish_loop in c-typeck.c.
912
9132020-09-19 Sandra Loosemore <sandra@codesourcery.com>
914
915 * c-common.c (c_block_may_fallthrough): New, split from
916 cxx_block_may_fallthrough in the cp front end.
917 (c_common_init_ts): Move handling of loop and switch-related
918 statements here from the cp front end.
919 * c-common.def (FOR_STMT, WHILE_STMT, DO_STMT): Move here from
920 cp front end.
921 (BREAK_STMT, CONTINUE_STMT, SWITCH_STMT): Likewise.
922 * c-common.h (c_block_may_fallthru): Declare.
923 (bc_state_t): Move here from cp front end.
924 (save_bc_state, restore_bc_state): Declare.
925 (c_genericize_control_stmt): Declare.
926 (WHILE_COND, WHILE_BODY): Likewise.
927 (DO_COND, DO_BODY): Likewise.
928 (FOR_INIT_STMT, FOR_COND, FOR_EXPR, FOR_BODY, FOR_SCOPE): Likewise.
929 (SWITCH_STMT_COND, SWITCH_STMT_BODY): Likewise.
930 (SWITCH_STMT_TYPE, SWITCH_STMT_SCOPE): Likewise.
931 (SWITCH_STMT_ALL_CASES_P, SWITCH_STMT_NO_BREAK_P): Likewise.
932 (LABEL_DECL_BREAK, LABEL_DECL_CONTINUE): Likewise.
933 * c-dump.c (dump_stmt): Copy from cp front end.
934 (c_dump_tree): Move code to handle structured loop and switch
935 tree nodes here from cp front end.
936 * c-gimplify.c: Adjust includes.
937 (enum bc_t, bc_label, begin_bc_block, finish_bc_block): Move from
938 cp front end.
939 (save_bc_state, restore_bc_state): New functions using old code
940 from cp front end.
941 (get_bc_label, expr_loc_or_loc): Move from cp front end.
942 (genericize_c_loop): Move from cp front end.
943 (genericize_for_stmt, genericize_while_stmt): Likewise.
944 (genericize_do_stmt, genericize_switch_stmt): Likewise.
945 (genericize_continue_stmt, genericize_break_stmt): Likewise.
946 (genericize_omp_for_stmt): Likewise.
947 (c_genericize_control_stmt): New function using code split from
948 cp front end.
949 (c_genericize_control_r): New.
950 (c_genericize): Call walk_tree with c_genericize_control_r.
951 * c-pretty-print.c (c_pretty_printer::statement): Move code to handle
952 structured loop and switch tree nodes here from cp front end.
953
2aad20c0
GA
9542020-09-17 Patrick Palka <ppalka@redhat.com>
955
956 PR c/80076
957 * c-indentation.c (should_warn_for_misleading_indentation): Move
958 declarations of local variables closer to their first use.
959 Handle virtual token locations by resolving them to their
960 respective macro expansion points. If all three tokens are
961 produced from the same macro expansion, then instead use their
962 loci within the macro definition.
963
ecde1b0a
GA
9642020-09-16 Martin Sebor <msebor@redhat.com>
965
966 PR c/78666
967 PR c/96126
968 * c-attribs.c (validate_attr_args): New function.
969 (validate_attr_arg): Same.
970 (handle_section_attribute): Call it. Introduce a local variable.
971 (handle_alloc_size_attribute): Same.
972 (handle_alloc_align_attribute): Same.
973
50a71cd0
GA
9742020-09-14 Jakub Jelinek <jakub@redhat.com>
975
976 * c-attribs.c (handle_optimize_attribute): Adjust
977 cl_optimization_save, cl_optimization_restore and
978 build_optimization_node callers.
979 * c-pragma.c (handle_pragma_optimize): Adjust
980 build_optimization_node caller.
981 (handle_pragma_push_options): Adjust
982 build_optimization_node and build_target_option_node callers.
983 (handle_pragma_pop_options, handle_pragma_reset_options):
984 Adjust cl_optimization_restore callers.
985
8f7ea26a
GA
9862020-08-28 Martin Sebor <msebor@redhat.com>
987
988 * c.opt (Wstringop-overread): New option.
989
a6493809
GA
9902020-08-11 Jakub Jelinek <jakub@redhat.com>
991
992 PR c/96545
993 * c-common.c (get_atomic_generic_size): Require that first argument's
994 type points to a complete type and use tree_fits_uhwi_p instead of
995 just INTEGER_CST TREE_CODE check for the TYPE_SIZE_UNIT.
996
48cc2e46
GA
9972020-07-31 Martin Sebor <msebor@redhat.com>
998
999 PR c++/96003
1000 * c-common.c (check_function_arguments_recurse): Return early when
1001 no-warning bit is set.
1002
10032020-07-31 Richard Biener <rguenther@suse.de>
1004
1005 PR debug/96383
1006 * c-common.h (c_common_finalize_early_debug): Declare.
1007 * c-common.c: Include debug.h.
1008 (c_common_finalize_early_debug): finalize_early_debug langhook
1009 implementation generating debug for extern declarations.
1010
e71dab87
GA
10112020-07-27 Nathan Sidwell <nathan@acm.org>
1012
1013 * c-common.c (try_to_locate_new_include_insertion_point): Use
1014 strcmp, not pointer equality.
1015
ae2e0bc1
GA
10162020-07-25 Martin Sebor <msebor@redhat.com>
1017
1018 PR c++/96310
1019 * c-common.c (check_nonnull_arg): Print note only when warning was
1020 issued.
1021
3ea9abca
GA
10222020-07-22 Tobias Burnus <tobias@codesourcery.com>
1023
1024 * c-omp.c (c_finish_omp_critical): Check for no name but
1025 nonzero hint provided.
1026
0933f508
GA
10272020-07-20 Jason Merrill <jason@redhat.com>
1028
1029 * c-cppbuiltin.c (c_cpp_builtins): Update
1030 __cpp_nontype_template_args for C++20.
1031
10322020-07-20 Martin Sebor <msebor@redhat.com>
1033
1034 PR c/96249
1035 * c.opt: Remove stray text.
1036
8ca07a30
GA
10372020-07-14 Lewis Hyatt <lhyatt@gmail.com>
1038
1039 PR other/86904
1040 * c-indentation.c (should_warn_for_misleading_indentation): Get
1041 global tabstop from the new source.
1042 * c-opts.c (c_common_handle_option): Remove handling of -ftabstop, which
1043 is now a common option.
1044 * c.opt: Likewise.
1045
a82c4c4c 10462020-07-08 Eric Botcazou <ebotcazou@adacore.com>
50873cc5
GA
1047
1048 * c.opt (Wscalar-storage-order): Add explicit variable.
1049
f60ee68d
GA
10502020-07-07 Nathan Sidwell <nathan@acm.org>
1051
1052 * c-opts.c (c_common_post_options): Add 'injecting' arg to
1053 cpp_read_main_file.
1054 (c_finish_options): Add linemap_line_start calls for builtin and cmd
1055 maps. Force token position to line_table's highest line.
1056 * c-ppoutput.c (print_line_1): Refactor, print line zero.
1057 (cb_define): Always increment source line.
1058
4077d74c
GA
10592020-07-06 Martin Sebor <msebor@redhat.com>
1060
1061 PR c++/95984
1062 * c-common.c (check_function_nonnull): Avoid checking syntesized calls
1063 to stub lambda objects with null this pointer.
1064 (check_nonnull_arg): Handle C++ nullptr.
1065
b5f24739
GA
10662020-07-02 Jason Merrill <jason@redhat.com>
1067 Jakub Jelinek <jakub@redhat.com>
1068
1069 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_consteval.
1070
46fbb6c6
GA
10712020-06-30 Jakub Jelinek <jakub@redhat.com>
1072
1073 PR c++/95963
1074 * c-common.c (check_function_arguments_recurse): Don't crash on
1075 calls to internal functions.
1076
69273534
GA
10772020-06-28 Martin Sebor <msebor@redhat.com>
1078
1079 PR c++/86568
1080 * c-common.c (struct nonnull_arg_ctx): Add members.
1081 (check_function_nonnull): Use nonnull_arg_ctx as argument. Handle
1082 C++ member functions specially. Consider the this pointer implicitly
1083 nonnull.
1084 (check_nonnull_arg): Use location of argument when available.
1085 (check_function_arguments): Use nonnull_arg_ctx as argument.
1086
9a33c41f
GA
10872020-06-27 Jakub Jelinek <jakub@redhat.com>
1088
1089 PR middle-end/95903
1090 * c-common.c (pointer_int_sum): Use TYPE_OVERFLOW_UNDEFINED instead of
1091 !TYPE_UNSIGNED check to see if we can apply distributive law and handle
1092 smaller precision intop operands separately.
1093
c9c05f73
GA
10942020-06-26 Marek Polacek <polacek@redhat.com>
1095
1096 * c-opts.c (c_common_init_options): Default to gnu++17.
1097
aff95ee7
GA
10982020-06-17 Jonathan Wakely <jwakely@redhat.com>
1099
bd0a89dc 1100 PR c/95378
aff95ee7
GA
1101 * c-common.c (get_atomic_generic_size): Check cv-qualifiers in
1102 pointer arguments.
1103
56638b9b
GA
11042020-06-16 Jakub Jelinek <jakub@redhat.com>
1105
1106 * c-common.h (c_omp_check_loop_iv_exprs): Add an int argument.
1107 * c-omp.c (struct c_omp_check_loop_iv_data): Add maybe_nonrect and
1108 idx members.
1109 (c_omp_is_loop_iterator): New function.
1110 (c_omp_check_loop_iv_r): Use it. Add support for silent scanning
1111 if outer loop iterator is present. Perform duplicate checking through
1112 hash_set in the function rather than expecting caller to do that.
1113 Pass NULL instead of d->ppset to walk_tree_1.
1114 (c_omp_check_nonrect_loop_iv): New function.
1115 (c_omp_check_loop_iv): Use it. Fill in new members, allow
1116 non-rectangular loop forms, diagnose multiple associated loops with
1117 the same iterator. Pass NULL instead of &pset to walk_tree_1.
1118 (c_omp_check_loop_iv_exprs): Likewise.
1119
ec6ffbb9
GA
11202020-06-10 Martin Liska <mliska@suse.cz>
1121
1122 PR tree-optimization/92860
1123 * c-attribs.c (handle_optimize_attribute):
1124 Save global options and compare it after parsing of function
1125 attribute.
1126 * c-pragma.c (opt_stack::saved_global_options): New field.
1127 (handle_pragma_push_options): Save global_options.
1128 (handle_pragma_pop_options): Compare them after pop.
1129
b952c2cf
GA
11302020-06-09 Jakub Jelinek <jakub@redhat.com>
1131
1132 PR c/95580
1133 * c-pretty-print.c (c_pretty_printer::unary_expression): Handle the
1134 case when MEM_REF's first argument has type pointer to incomplete type.
1135
1a59f3db
GA
11362020-06-05 Jason Merrill <jason@redhat.com>
1137
1138 * c-pretty-print.c (pp_c_additive_expression): Handle negative
1139 operand to POINTER_PLUS_EXPR.
1140
3add3425
GA
11412020-06-04 Martin Sebor <msebor@redhat.com>
1142
1143 PR middle-end/10138
1144 PR middle-end/95136
1145 * c-attribs.c (append_access_attrs): Handle attr_access::none.
1146 (handle_access_attribute): Same.
1147
9a5b7438
GA
11482020-06-03 Mark Wielaard <mark@klomp.org>
1149
1150 * known-headers.cc (get_cp_stdlib_header_for_string_macro_name):
1151 New function.
1152 * known-headers.h (get_cp_stdlib_header_for_string_macro_name):
1153 New function declaration.
1154
11552020-06-03 Mark Wielaard <mark@klomp.org>
1156
1157 * known-headers.cc (get_string_macro_hint): New function.
1158 (get_stdlib_header_for_name): Use get_string_macro_hint.
1159 (get_c_stdlib_header_for_string_macro_name): New function.
1160 * known-headers.h (get_c_stdlib_header_for_string_macro_name):
1161 New function declaration.
1162
11632020-06-03 Tobias Burnus <tobias@codesourcery.com>
1164
1165 * c-common.h (c_omp_predetermined_mapping): Declare.
1166 * c-omp.c (c_omp_predetermined_mapping): New.
1167
af114c38
MW
11682020-05-22 Mark Wielaard <mark@klomp.org>
1169
1170 * known-headers.cc (get_stdlib_header_for_name): Add a new
1171 stdlib_hint array for stdbool and stdint.
1172
45c50b6a
MW
11732020-05-22 Mark Wielaard <mark@klomp.org>
1174
1175 * known-headers.cc (get_stdlib_header_for_name): Return
1176 "<stdbool.h>" for "bool", "true" or "false" when STDLIB_C and
1177 flag_isoc99.
1178
c22027a0
NS
11792020-05-20 Nathan Sidwell <nathan@acm.org>
1180
38a4db21
NS
1181 * c-common.c (try_to_locate_new_include_insertion_point): Revert change.
1182
c22027a0
NS
1183 * c-common.c (try_to_locate_new_include_insertion_point): Use
1184 strcmp to compare filenames.
1185 * c-lex.c (init_c_lex): Move declaration to initialization.
1186 * c-opts.c (handle_deferred_opts): Move cpp_get_deps call into
1187 deferred count loop.
1188
29f0e90d
JM
11892020-05-15 Jason Merrill <jason@redhat.com>
1190
1191 * c-opts.c (set_std_cxx20): Set flag_coroutines.
1192
b04445d4
JM
11932020-05-13 Jason Merrill <jason@redhat.com>
1194
1195 * c.opt (std=c++20): Make c++2a the alias.
1196 (std=gnu++20): Likewise.
1197 * c-common.h (cxx_dialect): Change cxx2a to cxx20.
1198 * c-opts.c: Adjust.
1199 * c-cppbuiltin.c: Adjust.
1200 * c-ubsan.c: Adjust.
1201 * c-warn.c: Adjust.
1202
11dd3be5
EB
12032020-05-12 Eric Botcazou <ebotcazou@adacore.com>
1204
1205 * c-ada-spec.c (dump_ads): Output pragma Warnings ("U"); on entry.
1206
b224c376
NS
12072020-05-08 Nathan Sidwell <nathan@acm.org>
1208
1209 Reimplement directives only processing.
1210 * c-ppoutput.c (token_streamer): Ne.
1211 (directives_only_cb): New. Swallow ...
1212 (print_lines_directives_only): ... this.
1213 (scan_translation_unit_directives_only): Reimplment using the
1214 published interface.
1215
f1d94677
MP
12162020-05-07 Marek Polacek <polacek@redhat.com>
1217
1218 * c-format.c (badwords): Add "nonstatic".
1219
9b95bb52
JJ
1220202-05-07 Jakub Jelinek <jakub@redhat.com>
1221
1222 PR c/94968
1223 * c-common.c (speculation_safe_value_resolve_params): Return false if
1224 error_operand_p (val2).
1225 (resolve_overloaded_builtin) <case BUILT_IN_SPECULATION_SAFE_VALUE_N>:
1226 Remove extraneous semicolon.
1227
530b4409 12282020-05-06 qing zhao <qing.zhao@oracle.com>
1229
1230 PR c/94230
1231 * c-indentation.c (get_visual_column): Add a hint to use the new
1232 -flarge-source-files option.
1233
b776bdca
SSF
12342020-05-05 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
1235
1236 * c-attribs.c (handle_vector_size_attribute): Add attribute
1237 nonnull for argument args in order to silence warning of
1238 uninitialized variable usage. Since this is local to the
1239 compilation unit and thus cannot be checked at call sides by the
1240 compiler, added an assert statement in order to verify this.
1241
6607bdd9
L
12422020-05-01 H.J. Lu <hongjiu.lu@intel.com>
1243
1244 PR target/93492
1245 * c-attribs.c (handle_patchable_function_entry_attribute): Limit
1246 value to USHRT_MAX (65535).
1247
691eeb65
JJ
12482020-04-29 Jakub Jelinek <jakub@redhat.com>
1249
1250 * c-format.c (PP_FORMAT_CHAR_TABLE): Add %{ and %}.
1251
26d76be7
JJ
12522020-04-27 Jakub Jelinek <jakub@redhat.com>
1253
1254 PR c/94755
1255 * c-common.c (resolve_overloaded_builtin): Return error_mark_node for
1256 fncode == BUILT_IN_NONE before initialization of first_param.
1257
7291b2ed
MP
12582020-04-23 Marek Polacek <polacek@redhat.com>
1259
1260 PR c++/94733
1261 * c-attribs.c (find_tm_attribute): Use get_attribute_name instead of
1262 TREE_PURPOSE.
1263
58a29af8
PP
12642020-04-14 Patrick Palka <ppalka@redhat.com>
1265
1266 PR c++/85278
1267 * c-pretty-print.c (pp_c_pointer) <case REFERENCE_TYPE>: Print a double
1268 ampersand if it's an rvalue reference type.
1269
09f04139
MS
12702020-04-13 Martin Sebor <msebor@redhat.com>
1271
1272 PR c/92326
1273 * c-pretty-print.c (c_pretty_printer::direct_abstract_declarator): Avoid
1274 printing array bound for flexible array members.
1275
ee26baf4
IS
12762020-04-13 Iain Sandoe <iain@sandoe.co.uk>
1277
1278 * c-cppbuiltin.c (c_cpp_builtins): Update coroutines builtin
1279 define, per n4861.
1280
75efe9cb
RB
12812020-04-02 Richard Biener <rguenther@suse.de>
1282
1283 PR c/94392
1284 * c-opts.c (c_common_post_options): Enable -ffinite-loops
1285 for -O2 and C++11 or newer.
1286
75defde9
PP
12872020-03-28 Patrick Palka <ppalka@redhat.com>
1288
1289 * c.opt: Add -fconcepts-diagnostics-depth.
1290
52f24a9e
MS
12912020-03-27 Martin Sebor <msebor@redhat.com>
1292
1293 PR c++/94346
1294 * c-attribs.c (handle_copy_attribute): Avoid passing expressions
1295 to decl_attributes. Make handling of different kinds of entities
1296 more robust.
1297
ccacf77b
MS
12982020-03-27 Martin Sebor <msebor@redhat.com>
1299
1300 PR c++/94098
1301 * c-attribs.c (handle_access_attribute): Avoid setting TYPE_ATTRIBUTES
1302 here.
1303
ca6c7225
JJ
13042020-03-23 Jakub Jelinek <jakub@redhat.com>
1305
1306 PR c++/91993
1307 * c-warn.c (warnings_for_convert_and_check): For expr and/or
1308 result being COMPOUND_EXPRs, skip to ultimate rhs.
1309
1aa22b19
RS
13102020-03-20 Richard Sandiford <richard.sandiford@arm.com>
1311
1312 PR middle-end/94072
1313 * c-common.c (c_common_type_for_mode): Before using a registered
1314 built-in type, check that the vectorness of the type matches
1315 the vectorness of the mode.
1316
700d4cb0
JJ
13172020-03-17 Jakub Jelinek <jakub@redhat.com>
1318
1319 * c-common.c (resolve_overloaded_builtin): Fix up duplicated word
1320 issue in a diagnostic message.
1321
b408e010
LH
13222020-03-15 Lewis Hyatt <lhyatt@gmail.com>
1323
1324 * c.opt: Avoid redundancy in the help text.
1325
e78e50d5
MP
13262020-03-02 Marek Polacek <polacek@redhat.com>
1327
1328 PR c++/93958 - add missing -std=gnu++20.
1329 * c.opt: Add -std=gnu++20.
1330
649e1741
MS
13312020-03-01 Martin Sebor <msebor@redhat.com>
1332
1333 PR c++/92721
1334 * c-attribs.c (append_access_attrs): Correctly handle attribute.
1335 (handle_access_attribute): Same.
1336
7b60f3ba
JJ
13372020-02-25 Jakub Jelinek <jakub@redhat.com>
1338
1339 PR c/93858
1340 * c-pragma.c (handle_pragma_diagnostic): Add missing ? after
1341 "did you mean" hint in diagnostics.
1342
fb260504
JM
13432020-02-15 Jason Merrill <jason@redhat.com>
1344
1345 * c.opt: Add -std=c++20.
1346
1d757b09
EB
13472020-02-14 Eric Botcazou <ebotcazou@adacore.com>
1348
1349 * c-ada-spec.c: Include bitmap.h.
1350 (dump_ada_double_name): Rename into...
1351 (dump_anonymous_type_name): ...this. Always use the TYPE_UID.
1352 (dump_ada_array_type): Adjust to above renaming. Robustify.
1353 (dump_nested_types_1): New function copied from... Add dumped_types
1354 parameter and pass it down to dump_nested_type.
1355 (dump_nested_types): ...this. Remove parent parameter. Just call
1356 dump_nested_types_1 on an automatic bitmap.
1357 (dump_nested_type): Add dumped_types parameter.
1358 <ARRAY_TYPE>: Do not dump it if already present in dumped_types.
1359 Adjust recursive calls and adjust to above renaming.
1360 (dump_ada_declaration): Adjust call to dump_nested_types.
1361 Tidy up and adjust to above renaming.
1362 (dump_ada_specs): Initialize and release bitmap obstack.
1363
0cc575e4
MS
13642020-02-10 Martin Sebor <msebor@redhat.com>
1365
1366 PR c/93640
1367 * c-attribs.c (handle_access_attribute): Correct off-by-one mistakes.
1368
a59aa302
JJ
13692020-02-10 Jakub Jelinek <jakub@redhat.com>
1370
1371 PR other/93641
1372 * c-format.c (check_plain): Fix up last argument of strncasecmp.
1373 Remove useless extra test.
1374
e464fc90
TB
13752020-02-03 Julian Brown <julian@codesourcery.com>
1376 Tobias Burnus <tobias@codesourcery.com>
1377
1378 * c-cppbuiltin.c (c_cpp_builtins): Update _OPENACC define to 201711.
1379
e3b6c052
JM
13802020-01-29 Jason Merrill <jason@redhat.com>
1381
1382 PR c++/89357
1383 * c-attribs.c (check_cxx_fundamental_alignment_constraints): Remove.
1384
6d00f052
JM
13852020-01-23 Jason Merrill <jason@redhat.com>
1386
1387 * c-warn.c (conversion_warning): Change -Wsign-conversion handling.
1388
8a990ffa
MS
13892020-01-23 Martin Sebor <msebor@redhat.com>
1390
1391 PR c/84919
1392 * c-common.c (check_function_arguments): Avoid overlap checking
1393 of sprintf functions.
1394
55b7df8b
JM
13952020-01-22 Jason Merrill <jason@redhat.com>
1396
1397 PR testsuite/93391 - PR 40752 test fails with unsigned plain char.
1398 PR c++/40752
1399 * c-warn.c (conversion_warning): Check operands only after checking
1400 the whole expression. Don't check second operand of + for sign.
1401
c77074d0
JM
14022020-01-21 Jason Merrill <jason@redhat.com>
1403 Manuel López-Ibáñez <manu@gcc.gnu.org>
1404
1405 PR c++/40752 - useless -Wconversion with short +=.
1406 * c.opt (-Warith-conversion): New.
1407 * c-warn.c (conversion_warning): Recurse for operands of
1408 operators. Only warn about the whole expression with
1409 -Warith-conversion.
1410
731dbfc3
JM
14112020-01-21 Jason Merrill <jason@redhat.com>
1412
1413 * c-common.c (unsafe_conversion_p): Don't warn, return UNSAFE_SIGN.
1414 * c-warn.c (conversion_warning): Warn about UNSAFE_SIGN.
1415
ad1a3914
NS
14162020-01-20 Nathan Sidwell <nathan@acm.org>
1417
1418 PR preprocessor/80005
1419 * c-cppbuiltins.c (c_cpp_builtins): Don't define __has_include{,_next}.
1420
49789fd0
IS
14212020-01-18 Iain Sandoe <iain@sandoe.co.uk>
1422
1423 * c-common.c (co_await, co_yield, co_return): New.
1424 * c-common.h (RID_CO_AWAIT, RID_CO_YIELD,
1425 RID_CO_RETURN): New enumeration values.
1426 (D_CXX_COROUTINES): Bit to identify coroutines are active.
1427 (D_CXX_COROUTINES_FLAGS): Guard for coroutine keywords.
1428 * c-cppbuiltin.c (__cpp_coroutines): New cpp define.
1429 * c.opt (fcoroutines): New command-line switch.
1430
4bc1899b
DM
14312020-01-10 David Malcolm <dmalcolm@redhat.com>
1432
1433 * c-format.c (local_event_ptr_node): New.
1434 (PP_FORMAT_CHAR_TABLE): Add entry for "%@".
1435 (init_dynamic_diag_info): Initialize local_event_ptr_node.
1436 * c-format.h (T_EVENT_PTR): New define.
1437
f25e33fa
MS
14382020-01-10 Martin Sebor <msebor@redhat.com>
1439
1440 PR c/93132
1441 * c-attribs.c (append_access_attrs): Validate against the translated
1442 access string rather than the human-readable representation.
1443
8d9254fc
JJ
14442020-01-01 Jakub Jelinek <jakub@redhat.com>
1445
1446 Update copyright years.
1447
39292e25
EB
14482019-12-20 Eric Botcazou <ebotcazou@adacore.com>
1449
1450 * c-ada-spec.h (decl_sloc): Delete.
1451 * c-ada-spec.c (decl_sloc): Make static.
1452
519d7496
JB
14532019-12-19 Julian Brown <julian@codesourcery.com>
1454
1455 * c-common.h (c_omp_map_clause_name): Add prototype.
1456 * c-omp.c (c_omp_map_clause_name): New function.
1457 * c-pragma.h (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ATTACH and
1458 PRAGMA_OACC_CLAUSE_DETACH.
1459
a6163563
JB
14602019-12-19 Julian Brown <julian@codesourcery.com>
1461 Maciej W. Rozycki <macro@codesourcery.com>
1462 Tobias Burnus <tobias@codesourcery.com>
1463 Thomas Schwinge <thomas@codesourcery.com>
1464
1465 * c-pragma.h (pragma_omp_clause): Add
1466 PRAGMA_OACC_CLAUSE_NO_CREATE.
1467
e8f1ade2
MS
14682019-12-17 Martin Sebor <msebor@redhat.com>
1469
1470 PR c++/61339
1471 * c.opt (-Wmismatched-tags, -Wredundant-tags): New options.
1472
368877a1
DM
14732019-12-11 David Malcolm <dmalcolm@redhat.com>
1474
1475 * c-pretty-print.c (c_pretty_printer::clone): New vfunc
1476 implementation.
1477 * c-pretty-print.h (c_pretty_printer::clone): New vfunc decl.
1478
d68f5d45
DM
14792019-12-09 David Malcolm <dmalcolm@redhat.com>
1480
1481 * c-format.c (range_label_for_format_type_mismatch::get_text):
1482 Replace label_text ctor called with true with label_text::take.
1483
d3e28653
DM
14842019-12-09 David Malcolm <dmalcolm@redhat.com>
1485
1486 * c-format.c (selftest::test_type_mismatch_range_labels): Remove
1487 initial newline from expected outputs.
1488 * c-opts.c (c_diagnostic_finalizer): Add pp_newline call before
1489 call to diagnostic_show_locus.
1490
abd6d8cc
JJ
14912019-12-06 Jakub Jelinek <jakub@redhat.com>
1492
1493 * c-cppbuiltin.c (c_cpp_builtins): Don't define __cpp_consteval for
1494 now.
1495
7906797e
MP
14962019-12-05 Marek Polacek <polacek@redhat.com>
1497 Jakub Jelinek <jakub@redhat.com>
1498
1499 PR c++/91353 - P1331R2: Allow trivial default init in constexpr contexts.
1500 * c-cppbuiltin.c (c_cpp_builtins): Adjust the value of __cpp_constexpr.
1501
5c04da88
MP
15022019-12-05 Marek Polacek <polacek@redhat.com>
1503
1504 PR c++/92271 - make __is_same alias for __is_same_as.
1505 * c-common.c: Add __is_same, an alias for __is_same_as.
1506
43aae289
MP
15072019-12-03 Marek Polacek <polacek@redhat.com>
1508
1509 PR c++/91363 - P0960R3: Parenthesized initialization of aggregates.
1510 * c-cppbuiltin.c (c_cpp_builtins): Predefine
1511 __cpp_aggregate_paren_init=201902 for -std=c++2a.
1512
d7ddfbcb
JH
15132019-11-30 Jan Hubicka <hubicka@ucw.cz>
1514
1515 * c-attribs.c (handle_symver_attribute): New function
1516 (c_common_attributes): Add symver.
1517
65ef05d0
RS
15182019-11-30 Richard Sandiford <richard.sandiford@arm.com>
1519
1520 * c-common.c (pointer_int_sum): Use verify_type_context to check
1521 whether the target allows pointer arithmetic for the types involved.
1522 (c_sizeof_or_alignof_type, c_alignof_expr): Use verify_type_context
1523 to check whether the target allows sizeof and alignof operations
1524 for the types involved.
1525
1a291106
JM
15262019-11-27 Jason Merrill <jason@redhat.com>
1527
1528 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_deduction_guides.
1529
05d6cb1a
JJ
15302019-11-26 Jakub Jelinek <jakub@redhat.com>
1531
1532 PR c++/61414
1533 * c-attribs.c (handle_mode_attribute): Add mode attribute to
1534 ENUMERAL_TYPEs.
1535
5b8d9367
JM
15362019-11-25 Joseph Myers <joseph@codesourcery.com>
1537
1538 PR c/91985
1539 * c-common.c (c_common_type_for_mode): Handle decimal
1540 floating-point types being NULL_TREE.
1541 * c-format.c (get_format_for_type_1): Handle specified types being
1542 NULL_TREE.
1543 * c-lex.c (interpret_float): Give an error for decimal
1544 floating-point constants when decimal floating-point not
1545 supported.
1546
1fbf51cb
JJ
15472019-11-23 Jakub Jelinek <jakub@redhat.com>
1548
1549 PR middle-end/83859
1550 * c-attribs.c (append_access_attrs): Avoid buffer overflow. Avoid
1551 memory leak. Use XNEWVEC macro. Use auto_diagnostic_group to
1552 group warning with inform together.
1553 (handle_access_attribute): Formatting fix.
1554
761df906
JJ
15552019-11-22 Jakub Jelinek <jakub@redhat.com>
1556
bdaf8be1
JJ
1557 PR c/90677
1558 * c-common.h (identifier_global_tag): Declare.
1559 * c-format.c (get_pointer_to_named_type): Renamed to ...
1560 (get_named_type): ... this. Use identifier_global_tag instead of
1561 identifier_global_value, handle the return value being a TYPE_P.
1562 (init_dynamic_diag_info): Adjust get_pointer_to_named_type callers
1563 to call get_named_type instead. Formatting fixes.
1564
c2ecce6d 1565 Implement P1902R1, Missing feature-test macros 2017-2019.
761df906
JJ
1566 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_init_captures
1567 and __cpp_generic_lambdas for -std=c++2a. Define
1568 __cpp_designated_initializers, __cpp_constexpr_in_decltype and
1569 __cpp_consteval for -std=c++2a. Remove a FIXME comment about
1570 __cpp_concepts for -std=c++2a.
1571
54aa6b58
MS
15722019-11-22 Martin Sebor <msebor@redhat.com>
1573
1574 PR middle-end/83859
1575 * c-attribs.c (handle_access_attribute): New function.
1576 (c_common_attribute_table): Add new attribute.
1577 (get_argument_type): New function.
1578 (append_access_attrs): New function.
1579 (get_nonnull_operand): Rename...
1580 (get_attribute_operand): ...to this.
1581 * c-common.c (get_nonnull_operand): Rename...
1582 (get_attribute_operand): ...to this.
1583
6c80b1b5
JM
15842019-11-21 Joseph Myers <joseph@codesourcery.com>
1585
1586 * c-attribs.c (handle_fallthrough_attribute): Use pedwarn instead
1587 of warning.
1588
192961ff
JM
15892019-11-19 Joseph Myers <joseph@codesourcery.com>
1590
1591 * c-common.c (attribute_fallthrough_p): In C, use pedwarn not
1592 warning for standard attributes mixed with fallthrough attributes.
1593
f8aea5e3
JM
15942019-11-15 Joseph Myers <joseph@codesourcery.com>
1595
1596 * c-attribs.c (handle_fallthrough_attribute): Remove static.
1597 * c-common.h (handle_fallthrough_attribute): Declare.
1598
2cc94aa8
JM
15992019-11-15 Joseph Myers <joseph@codesourcery.com>
1600
1601 * c-attribs.c (handle_deprecated_attribute): Remove static.
1602 * c-common.h (handle_deprecated_attribute): Declare.
1603
7c5890cc
JM
16042019-11-14 Joseph Myers <joseph@codesourcery.com>
1605
1606 * c-lex.c (lex_charconst): Make CPP_UTF8CHAR constants unsigned
1607 char for C.
1608
b2417b59
JJ
16092019-11-14 Jakub Jelinek <jakub@redhat.com>
1610
d0ec7c93
JJ
1611 * c-omp.c (c_omp_check_context_selector): Add nvidia to the list of
1612 valid vendors.
1613
b2417b59
JJ
1614 * c-omp.c (c_omp_check_context_selector): Handle name lists
1615 containing string literals. Don't diagnose atomic_default_mem_order
1616 with multiple props.
1617
00be2a5f
JM
16182019-11-13 Joseph Myers <joseph@codesourcery.com>
1619
1620 * c-cppbuiltin.c (builtin_define_float_constants): Also define
1621 NORM_MAX constants. Update call to get_max_float.
1622 (LAZY_HEX_FP_VALUES_CNT): Update value to include NORM_MAX
1623 constants.
1624
2dbad62d
EB
16252019-11-13 Eric Botcazou <ebotcazou@adacore.com>
1626
1627 * c-ada-spec.c (get_underlying_decl): Do not look through typedefs.
1628 (dump_forward_type): Do not generate a declaration for function types.
1629 (dump_nested_type) <ARRAY_TYPE>: Do not generate a nested declaration
1630 of the component type if it is declared in another file.
1631
6ed76044
ML
16322019-11-12 Martin Liska <mliska@suse.cz>
1633
1634 * c-opts.c (c_common_post_options):
1635 Use SET_OPTION_IF_UNSET.
1636
62aee289
MR
16372019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
1638 Frederik Harwath <frederik@codesourcery.com>
1639
1640 gcc/c-family/
1641 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_SERIAL enumeration
1642 constant.
1643 * c-pragma.c (oacc_pragmas): Add "serial" entry.
1644
f486280c
RS
16452019-11-08 Richard Sandiford <richard.sandiford@arm.com>
1646
1647 * c-common.h (gnu_vector_type_p): New function.
1648 * c-common.c (c_build_vec_perm_expr): Require __builtin_shuffle
1649 vectors to satisfy gnu_vector_type_p.
1650 (c_build_vec_convert): Likewise __builtin_convertvector.
1651 (convert_vector_to_array_for_subscript): Likewise when applying
1652 implicit vector to array conversion.
1653 (scalar_to_vector): Likewise when converting vector-scalar
1654 operations to vector-vector operations.
1655
017c6491
JM
16562019-11-08 Joseph Myers <joseph@codesourcery.com>
1657
1658 * c.opt (Wold-style-definition): Initialize to -1.
1659 * c-opts.c (c_common_post_options): Set warn_old_style_definition
1660 to flag_isoc2x if not set explicitly.
1661
c01bd174
JM
16622019-11-07 Joseph Myers <joseph@codesourcery.com>
1663
1664 * c-attribs.c (parse_tm_stmt_attr): Handle scoped attributes.
1665
0df65305
JM
16662019-11-05 Jason Merrill <jason@redhat.com>
1667
1668 * c-opts.c (c_common_post_options): -fconcepts-ts implies
1669 -fconcepts.
1670
e0c866dd
KK
16712019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
1672
1673 * c-opts.c (c_common_post_options): Update
1674 latest_abi_version.
1675
f968ef9b
JJ
16762019-11-02 Jakub Jelinek <jakub@redhat.com>
1677
d0c464d2
JJ
1678 * c-common.h (c_omp_get_context_selector): Remove.
1679 * c-omp.c (c_omp_get_context_selector): Moved to omp-general.c
1680 and renamed to omp_get_context_selector.
1681
917dd789
JJ
1682 * c-omp.c (c_omp_mark_declare_variant): Use
1683 omp_context_selector_set_compare.
1684
f968ef9b
JJ
1685 PR c++/88335 - Implement P1073R3: Immediate functions
1686 * c-common.h (enum rid): Add RID_CONSTEVAL.
1687 * c-common.c (c_common_reswords): Add consteval.
1688
5f6705b7
JJ
16892019-11-01 Martin Sebor <msebor@redhat.com>
1690
1691 PR middle-end/91679
1692 PR middle-end/91647
1693 PR middle-end/91463
1694 PR middle-end/92312
1695 * c-pretty-print.c (direct_abstract_declarator): Print
1696 bound in zero-length arrays.
1697 * c.opt (-Wzero-length-bounds): New option.
1698
43f1814c
NS
16992019-10-30 Nathan Sidwell <nathan@acm.org>
1700
1701 * c-cppbuiltin.c (c_cpp_builtins): Add 'L' suffix to feature
1702 macros.
1703
ad1539d5
MS
17042019-10-28 Martin Sebor <msebor@redhat.com>
1705
1706 PR c/66970
1707 * c-common.c (c_common_nodes_and_builtins): Call c_define_builtins
1708 even when only preprocessing.
1709 * c-common.h (names_builtin_p): Declare new function.
1710 * c-lex.c (init_c_lex): Set has_builtin.
1711 (c_common_has_builtin): Define a new function.
1712 * c-ppoutput.c (init_pp_output): Set has_builtin.
1713
135df52c
JJ
17142019-10-24 Jakub Jelinek <jakub@redhat.com>
1715
1716 * c-common.h (c_omp_context_selector_matches): Remove.
1717 * c-omp.c (c_omp_context_selector_matches): Remove.
1718 * c-attribs.c (c_common_attribute_table): Add
1719 "omp declare target {host,nohost,block}" attributes.
1720
8ad0c477
JM
17212019-10-17 JeanHeyd Meneide <phdofthehouse@gmail.com>
1722
1723 * c-lex.c (c_common_has_attribute): Update nodiscard value.
1724
56898e43
RS
17252019-10-14 Richard Sandiford <richard.sandiford@arm.com>
1726
1727 * c-common.h (user_facing_original_type_p): Declare.
1728 * c-common.c: Include c-spellcheck.h.
1729 (user_facing_original_type_p): New function.
1730
20de9568
JJ
17312019-10-12 Jakub Jelinek <jakub@redhat.com>
1732
1733 * c-common.h (c_omp_mark_declare_variant,
1734 c_omp_context_selector_matches): Declare.
1735 * c-omp.c: Include attribs.h, gimplify.h, cgraph.h, symbol-summary.h
1736 and hsa-common.h.
1737 (c_omp_get_context_selector): Support second argument NULL.
1738 (c_omp_mark_declare_variant, c_omp_context_selector_matches): New
1739 functions.
1740 * c-attribs.c (c_common_attribute_table): Remove "omp declare variant"
1741 attribute, add "omp declare variant base" and
1742 "omp declare variant variant" attributes.
1743
175a85b2
JM
17442019-10-11 Joseph Myers <joseph@codesourcery.com>
1745
1746 * c.opt (Wc11-c2x-compat): Add CPP(cpp_warn_c11_c2x_compat)
1747 CppReason(CPP_W_C11_C2X_COMPAT).
1748
fe2bc27c
JM
17492019-10-11 Joseph Myers <joseph@codesourcery.com>
1750
1751 * c-common.c (c_common_reswords): Do not use D_EXT for _Decimal32,
1752 _Decimal64 and _Decimal128.
1753
27dfdc0f
JM
17542019-10-10 Joseph Myers <joseph@codesourcery.com>
1755
1756 * c-cppbuiltin.c (c_cpp_builtins): Do not define macros for DFP
1757 types if DFP not supported.
1758
94e7f906
JJ
17592019-10-10 Jakub Jelinek <jakub@redhat.com>
1760
1761 * c-common.h (c_omp_check_context_selector,
1762 c_omp_get_context_selector): Declare.
1763 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): Fix spelling
1764 in diagnostic message.
1765 (c_omp_check_context_selector, c_omp_get_context_selector): New
1766 functions.
1767 * c-attribs.c (c_common_attribute_table): Add "omp declare variant"
1768 attribute.
1769 (handle_omp_declare_variant_attribute): New function.
1770
a7160771
MS
17712019-10-09 Martin Sebor <msebor@redhat.com>
1772
1773 PR tree-optimization/90879
1774 * c.opt (-Wstring-compare): New option.
1775
cb57504a
JM
17762019-10-08 Andrew Sutton <asutton@lock3software.com>
1777 Jason Merrill <jason@redhat.com>
1778
1779 Update the concepts implementation to conform to the C++20
1780 specification, improve compile times, and generally clean up
1781 the implementation.
1782
1783 * c-cppbuiltin.c (c_cpp_builtins): Use new feature test values for
1784 concepts when -std=c++2a. Bump __cpp_concepts to 201907.
1785 * c.opt: Add -Wconcepts-ts.
1786 * c-opts.c (c_common_post_options): Warn when -fconcepts is used
1787 with -std=c++2a. Disable warning for -fconcepts in C++20 mode.
1788 (set_std_cxx2a): Enable concepts by default.
1789
fbb2a6dc
JM
17902019-10-08 Joseph Myers <joseph@codesourcery.com>
1791
1792 * c-opts.c (c_common_post_options): Set
1793 -fno-fp-int-builtin-inexact for C2X.
1794
8e007055
JJ
17952019-10-05 Jakub Jelinek <jakub@redhat.com>
1796
1797 PR c++/91369 - Implement P0784R7: constexpr new
1798 * c-cppbuiltin.c (c_cpp_builtins): Predefine
1799 __cpp_constexpr_dynamic_alloc=201907 for -std=c++2a.
1800
843f104d
JM
18012019-10-04 Joseph Myers <joseph@codesourcery.com>
1802
1803 PR c/82752
1804 * c-format.c (C_STD_VER): Handle C2x.
1805 (C_STD_NAME): Likewise.
1806 (strftime_flag_specs): Add 'O' modifier with 'p' flag.
1807 (time_char_table): Use separate entry for 'B' and 'b', with 'O'
1808 modifier allowed and 'p' flag.
1809 * c-format.h (enum format_std_version): Add STD_C2X.
1810 (struct format_char_info): Mention 'p' in comment on flags2.
1811
e9c9a142
DM
18122019-10-01 David Malcolm <dmalcolm@redhat.com>
1813
1814 * c-opts.c (c_diagnostic_finalizer): Temporarily clear prefix when
1815 calling diagnostic_show_locus, rather than destroying it afterwards.
1816
7552c36a
JJ
18172019-10-01 Jakub Jelinek <jakub@redhat.com>
1818
1819 PR c++/91925
1820 * c-warn.c (check_alignment_of_packed_member): Ignore FIELD_DECLs
1821 with NULL DECL_FIELD_OFFSET.
1822
8209db25
RS
18232019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1824
1825 * c-pretty-print.c (pp_c_specifier_qualifier_list): If a vector type
1826 has a type name, use it in preference to the __vector syntax.
1827
9343bf99
RS
18282019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1829
1830 * c-pretty-print.c (pp_c_parameter_type_list): Avoid printing
1831 two spaces between a comma and "...".
1832
59bc434a
JJ
18332019-09-27 Jakub Jelinek <jakub@redhat.com>
1834
1835 PR c++/88203
1836 * c-common.h (c_omp_predefined_variable): Declare.
1837 * c-omp.c (c_omp_predefined_variable): New function.
1838 (c_omp_predetermined_sharing): Return OMP_CLAUSE_DEFAULT_SHARED
1839 for predefined variables.
1840
c6447c20
RS
18412019-09-27 Richard Sandiford <richard.sandiford@arm.com>
1842
1843 * c-common.h (build_function_call_vec): Take the original
1844 function decl as an optional final parameter.
1845 (check_builtin_function_arguments): Take the original function decl.
1846 * c-common.c (check_builtin_function_arguments): Likewise.
1847 Handle all built-in functions, not just BUILT_IN_NORMAL ones.
1848 Use targetm.check_builtin_call to check BUILT_IN_MD functions.
1849
c4438114
JM
18502019-09-15 Jason Merrill <jason@redhat.com>
1851
1852 * c-warn.c (warn_logical_operator): Strip location wrappers. Don't
1853 fold_for_warn in "|| mask" warning.
1854
68a57628
ML
18552019-09-10 Martin Liska <mliska@suse.cz>
1856
1857 * c.opt: Use newly added WarnRemoved.
1858
f48ef52e
ML
18592019-09-09 Martin Liska <mliska@suse.cz>
1860
1861 * c.opt: Update comment of removed
1862 options that are preserved only for backward
1863 compatibility.
1864
67f6e649
ML
18652019-09-06 Martin Liska <mliska@suse.cz>
1866
1867 PR c++/91125
1868 * c-common.c: Remove definition of flag_use_repository.
1869 * c-common.h: Likewise.
1870 * c-opts.c (c_common_handle_option):
1871 Do not handle OPT_frepo option.
1872 * c.opt: Mark the option with Deprecated.
1873
db9d2274
MP
18742019-09-04 Marek Polacek <polacek@redhat.com>
1875
1876 * c.opt (fdeduce-init-list): Ignored.
1877
68e2c199
PK
18782019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1879
1880 PR c/78736
1881 * c.opt (Wenum-conversion): New option.
1882
7a4418a5
JL
18832019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1884
1885 * c-attribs.c (handle_section_attribute): Call the
1886 handle_generic_attribute target hook after performing target
1887 independent processing.
1888 (handle_noinit_attribute): Likewise.
1889
5f76ab15
ILT
18902019-09-03 Ian Lance Taylor <iant@golang.org>
1891
1892 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Always expand
1893 when using -fgo-dump-spec.
1894
ae0d3f6a
ML
18952019-09-02 Martin Liska <mliska@suse.cz>
1896
1897 PR c++/91155
1898 * c-common.c (fname_as_string): Use cxx_printable_name for
1899 __PRETTY_FUNCTION__ same as was used before r265711.
1900
8a902edb
MP
19012019-08-28 Marek Polacek <polacek@redhat.com>
1902
1903 Implement P1152R4: Deprecating some uses of volatile.
1904 PR c++/91361
1905 * c-opts.c (c_common_post_options): Enable -Wvolatile by
1906 default for C++2a, unless -Wno-deprecated.
1907 * c.opt (Wvolatile): New warning.
1908
4742dbe7
MP
19092019-08-28 Marek Polacek <polacek@redhat.com>
1910
1911 PR c++/91360 - Implement C++20 P1143R2: constinit.
1912 * c-common.c (c_common_reswords): Add constinit and __constinit.
1913 (keyword_is_decl_specifier): Handle RID_CONSTINIT.
1914 * c-common.h (enum rid): Add RID_CONSTINIT, RID_FIRST_CXX20, and
1915 RID_LAST_CXX20.
1916 (D_CXX20): Define.
1917 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_constinit.
1918 * c-format.c (cxx_keywords): Add "constinit".
1919 * c.opt (Wc++2a-compat, Wc++20-compat): New options.
1920
6a074892
JJ
19212019-08-27 Jakub Jelinek <jakub@redhat.com>
1922
1923 PR c++/91415
1924 * c-common.c (verify_tree): For LSHIFT_EXPR, RSHIFT_EXPR,
1925 COMPONENT_REF and ARRAY_REF in cxx_dialect >= cxx17 mode handle it
1926 like COMPOUND_EXPR rather than normal expression.
1927
22f8849d
IS
19282019-08-23 Iain Sandoe <iain@sandoe.co.uk>
1929
1930 PR pch/61250
1931 * c-lex.c (c_lex_with_flags): Don't call
1932 c_common_no_more_pch () from here.
1933
df375b03
JJ
19342019-08-23 Jakub Jelinek <jakub@redhat.com>
1935
1936 PR middle-end/91283
1937 * c-common.c (c_ts18661_flt_eval_method): Use flag_excess_precision
1938 instead of flag_excess_precision_cmdline.
1939 * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): Likewise.
1940 * c-opts.c (c_common_post_options): Likewise.
1941
14b7950f
MS
19422019-08-22 Martin Sebor <msebor@redhat.com>
1943
1944 PR middle-end/91490
1945 * c-common.c (braced_list_to_string): Add argument and overload.
1946 Handle flexible length arrays and unions.
1947
8bb2ee59
EB
19482019-08-21 Eric Botcazou <ebotcazou@adacore.com>
1949
1950 * c-ada-spec.c (dump_ada_function_declaration): Be prepared for broken
1951 function declarations where arguments are missing. Rename variables.
1952
21c1e205
RB
19532019-08-15 Richard Biener <rguenther@suse.de>
1954
1955 * c-common.c (c_stddef_cpp_builtins): When the GIMPLE FE is
1956 enabled, define __SIZETYPE__.
1957
f0033821
CL
19582019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
1959
1960 * c-attribs.c (c_common_attribute_table): Add "noinit" entry. Add
1961 exclusion with "section" attribute.
1962 (attr_noinit_exclusions): New table.
1963 (handle_noinit_attribute): New function.
1964
4d732405
RS
19652019-08-13 Richard Sandiford <richard.sandiford@arm.com>
1966
1967 PR middle-end/91421
1968 * c-common.c (resolve_overloaded_builtin): Use
1969 copy_decl_built_in_function.
1970
51ad8481
MS
19712019-08-13 Martin Sebor <msebor@redhat.com>
1972
1973 PR c/80619
1974 * c-format.c (printf_length_specs): Set FMT_LEN_w for "w".
1975 (asm_fprintf_length_spec): Same.
1976 * c-format.h (format_lengths): Add FMT_LEN_w.
1977
77eb117f
JJ
19782019-08-10 Jakub Jelinek <jakub@redhat.com>
1979
1980 * c-pragma.h (enum pragma_omp_clause): Add
1981 PRAGMA_OMP_CLAUSE_DEVICE_TYPE.
1982
398e3feb
JJ
19832019-08-07 Jakub Jelinek <jakub@redhat.com>
1984
1985 * c-pragma.h (enum pragma_omp_clause): Add
1986 PRAGMA_OMP_CLAUSE_USE_DEVICE_ADDR. Set PRAGMA_OACC_CLAUSE_USE_DEVICE
1987 equal to PRAGMA_OMP_CLAUSE_USE_DEVICE_PTR instead of being a separate
1988 enumeration value.
1989
ab574db6
MP
19902019-08-05 Marek Polacek <polacek@redhat.com>
1991
1992 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
1993 * c-opts.c (c_common_post_options): Enable -Wcomma-subscript by
1994 default for C++2a, unless -Wno-deprecated.
1995 * c.opt (Wcomma-subscript): New warning.
1996
554a530f
JJ
19972019-07-20 Jakub Jelinek <jakub@redhat.com>
1998
1999 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_LOOP.
2000 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_BIND.
2001 * c-pragma.c (omp_pragmas_simd): Add PRAGMA_OMP_LOOP entry.
2002 * c-common.h (enum c_omp_clause_split): Add C_OMP_CLAUSE_SPLIT_LOOP.
2003 * c-omp.c (c_omp_split_clauses): Add support for 4 new combined
2004 constructs with the loop construct.
2005
1a888209
JJ
20062019-07-13 Jakub Jelinek <jakub@redhat.com>
2007
2008 PR c/91149
2009 * c-omp.c (c_omp_split_clauses): Fix a pasto in
2010 OMP_CLAUSE_REDUCTION_TASK handling.
2011
1fdd6f04
JJ
20122019-07-12 Jakub Jelinek <jakub@redhat.com>
2013
2014 * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ORDER.
2015 * c-omp.c (c_omp_split_clauses): Handle splitting of OMP_CLAUSE_ORDER.
2016
99b1c316
MS
20172019-07-09 Martin Sebor <msebor@redhat.com>
2018
2019 PR c++/61339
1fdd6f04 2020 * c-opts.c (handle_deferred_opts): Change class-key of PODs to struct
99b1c316
MS
2021 and others to class.
2022 * c-pretty-print.h: Same.
2023
6c1dae73
MS
20242019-07-09 Martin Sebor <msebor@redhat.com>
2025
2026 PR c++/61339
2027 * c-format.c (check_argument_type): Change class-key from class to
2028 struct and vice versa to match convention and avoid -Wclass-is-pod
2029 and -Wstruct-no-pod.
2030 * c-pretty-print.h: Same.
2031
8ba6ea87
ML
20322019-07-03 Martin Liska <mliska@suse.cz>
2033
2034 * c-common.c (try_to_locate_new_include_insertion_point): Remove
2035 dead assignemts.
2036
83eb9522
JJ
20372019-07-03 Jakub Jelinek <jakub@redhat.com>
2038
2039 * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_REDUCTION_INSCAN
2040 clauses on OMP_FOR rather than OMP_PARALLEL when OMP_FOR is combined
2041 with OMP_PARALLEL.
2042
1c6ffbab
QZ
20432019-07-02 qing zhao <qing.zhao@oracle.com>
2044
2045 PR preprocessor/90581
2046 * c-opts.c (c_common_handle_option): Handle -fmax-include-depth.
2047 * c.opt: Add new option -fmax-include-depth.
2048
7ffc7de5
JM
20492019-06-26 Jason Merrill <jason@redhat.com>
2050
2051 PR c++/55442 - memory-hog with highly recursive constexpr.
2052 * c.opt (fconstexpr-loop-limit): New.
2053
361af3e4
JJ
20542019-06-25 Jakub Jelinek <jakub@redhat.com>
2055
2056 PR sanitizer/90954
2057 * c-omp.c (c_finish_omp_atomic): Allow tree_invariant_p in addition
2058 to SAVE_EXPR in first operand of a COMPOUND_EXPR.
2059
ab20d992
JJ
20602019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2061
2062 * c-common.c (c_common_nodes_and_builtins): Define
2063 alternate "__intN__" name for "__intN" types.
2064
f4af4019
JH
20652019-06-24 Jan Hubicka <jh@suse.cz>
2066
2067 * c-common.c (braced_lists_to_strings): Check that
2068 type is array or integer prior checking string flag.
2069
da9e9b57
MB
20702019-06-21 Matthew Beliveau <mbelivea@redhat.com>
2071
2072 PR c++/90875 - added -Wswitch-outside-range option
2073 * c.opt (Wswitch-outside-range): Added new option.
2074 * c-warn.c (c_do_switch_warnings): Use OPT_Wswitch-outside-range.
2075
3f3d6a6f
MP
20762019-06-21 Marek Polacek <polacek@redhat.com>
2077
2078 PR c++/90953 - ICE with -Wmissing-format-attribute.
2079 * c-common.c (check_function_arguments_recurse): Use
2080 get_attribute_name.
2081 (check_missing_format_attribute): Likewise.
2082
1bf32c11
MP
20832019-06-19 Marek Polacek <polacek@redhat.com>
2084
2085 PR c++/60364 - noreturn after first decl not diagnosed.
2086 * c-attribs.c (handle_noreturn_attribute): No longer static.
2087 * c-common.h (handle_noreturn_attribute, attr_noreturn_exclusions):
2088 Declare.
2089 * c-format.c (check_function_format): Use get_attribute_name.
2090
a04c0734
MS
20912019-06-19 Martin Sebor <msebor@redhat.com>
2092
2093 PR translation/90156
2094 * c-format.c (function_format_info::format_type): Adjust type.
2095 (function_format_info::is_raw): New member.
2096 (decode_format_type): Adjust signature. Handle "raw" diag attributes.
2097 (decode_format_attr): Adjust call to decode_format_type.
2098 Avoid a redundant call to convert_format_name_to_system_name.
2099 Avoid abbreviating the word "arguments" in a diagnostic.
2100 (format_warning_substr): New function.
2101 (avoid_dollar_number): Quote dollar sign in a diagnostic.
2102 (finish_dollar_format_checking): Same.
2103 (check_format_info): Same.
2104 (struct baltoks_t): New.
2105 (c_opers, c_keywords, cxx_keywords, badwords, contrs): New arrays.
2106 (maybe_diag_unbalanced_tokens, check_tokens, check_plain): New
2107 functions.
2108 (check_format_info_main): Call check_plain. Use baltoks_t. Call
2109 maybe_diag_unbalanced_tokens.
2110 (handle_format_attribute): Spell out the word "arguments" in
2111 a diagnostic.
2112
d3786ebb
MB
21132019-06-11 Matthew Beliveau <mbelivea@redhat.com>
2114
2115 PR c++/90449 - add -Winaccessible-base option.
2116 * c.opt (Winaccessible-base): New option.
2117
bf38f7e9
JJ
21182019-06-10 Jakub Jelinek <jakub@redhat.com>
2119
2120 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_SCAN.
2121 * c-pragma.c (omp_pragmas_simd): Add #pragma omp scan.
2122 * c-omp.c (c_omp_split_clauses): Diagnose inscan reductions on
2123 combined/composite constructs where it is not allowed. Copy over
2124 OMP_CLAUSE_REDUCTION_INSCAN.
2125
0ecf545c
MS
21262019-06-05 Martin Sebor <msebor@redhat.com>
2127
2128 * c-attribs.c (handle_mode_attribute): Adjust quoting and hyphenation.
2129 (handle_alias_ifunc_attribute): Same.
2130 (handle_copy_attribute): Same.
2131 (handle_weakref_attribute): Same.
2132 (handle_nonnull_attribute): Same.
2133 * c-warn.c (warn_for_sign_compare): Same.
2134 (warn_for_restrict): Same.
2135 * c.opt: Same.
2136
36b34127
MS
21372019-06-05 Martin Sebor <msebor@redhat.com>
2138
2139 * c-pragma.c (handle_pragma_weak): Adjust quoting in a diagnostic.
2140 * c.opt (-Wformat-diag): Remove a spurious period.
2141
357a352f
JJ
21422019-05-29 Jakub Jelinek <jakub@redhat.com>
2143
2144 PR c/90628
2145 * c-common.c (check_builtin_function_arguments)
2146 <case BUILTIN_*_OVERFLOW>: Diagnose pointer to const qualified integer
2147 as last argument.
2148
2b8235ea
EB
21492019-05-23 Eric Botcazou <ebotcazou@adacore.com>
2150
2151 * c-ada-spec.c (compare_node): Compare the DECL_UIDs as a last resort.
2152
6d86ddc4
ML
21532019-05-22 Martin Liska <mliska@suse.cz>
2154
2155 PR lto/90500
2156 * c-attribs.c (handle_copy_attribute): Do not copy
2157 target_clones attribute.
2158
419ba5b9
EB
21592019-05-21 Eric Botcazou <ebotcazou@adacore.com>
2160
2161 * c-ada-spec.h (enum cpp_operation): Add IS_ASSIGNMENT_OPERATOR.
2162 * c-ada-spec.c (print_assignment_operator): New function.
2163 (dump_ada_declaration) <FUNCTION_DECL>: Call it do dump explicit copy
2164 assignment operators declared as methods and filter out the others.
2165
e03436e7
TS
21662019-05-17 Thomas Schwinge <thomas@codesourcery.com>
2167
2168 PR c/89433
2169 * c-attribs.c (c_common_attribute_table): Set min_len to -1 for
2170 "omp declare target".
2171
a9c697b8
MS
21722019-05-16 Martin Sebor <msebor@redhat.com>
2173
ab20d992
JJ
2174 * c-attribs.c (handle_no_sanitize_attribute): Quote identifiers,
2175 keywords, operators, and types in diagnostics.
2176 (handle_scalar_storage_order_attribute): Same.
2177 (handle_mode_attribute): Same.
2178 (handle_visibility_attribute): Same.
2179 (handle_assume_aligned_attribute): Same.
2180 (handle_no_split_stack_attribute): Same.
2181 * c-common.c (shorten_compare): Same.
2182 (c_common_truthvalue_conversion): Same.
2183 (cb_get_source_date_epoch): Same.
2184 * c-lex.c (cb_def_pragma): Quote keywords, operators, and types
2185 in diagnostics.
2186 (interpret_float): Same.
2187 * c-omp.c (c_finish_omp_for): Same.
2188 * c-opts.c (c_common_post_options): Same.
2189 * c-pch.c (c_common_pch_pragma): Same.
2190 * c-pragma.c (pop_alignment): Same.
2191 (handle_pragma_pack): Same.
2192 (apply_pragma_weak): Same.
2193 (handle_pragma_weak): Same.
2194 (handle_pragma_scalar_storage_order): Same.
2195 (handle_pragma_redefine_extname): Same.
2196 (add_to_renaming_pragma_list): Same.
2197 (maybe_apply_renaming_pragma): Same.
2198 (push_visibility): Same.
2199 (handle_pragma_visibility): Same.
2200 (handle_pragma_optimize): Same.
2201 (handle_pragma_message): Same.
2202 * c-warn.c (warn_for_omitted_condop): Same.
2203 (lvalue_error): Same.
a9c697b8 2204
6b943512
RB
22052019-05-15 Richard Biener <rguenther@suse.de>
2206
2207 PR c/90474
2208 * c-common.c (c_common_mark_addressable_vec): Also mark
2209 a COMPOUND_LITERAL_EXPR_DECL addressable similar to
2210 c_mark_addressable.
ab20d992 2211
b744fc85
NS
22122019-05-06 Nathan Sidwell <nathan@acm.org>
2213
2214 * c-opts.c (handle_defered_opts): Rename struct deps to struc mkdeps.
2215
598f50d7
NS
22162019-04-30 Nathan Sidwell <nathan@acm.org>
2217
2218 * c-common.c (c_common_init_ts): Use MARK_TS_EXP. Mark SIZEOF_EXPR.
2219
5bcc5a3b
ML
22202019-04-30 Martin Liska <mliska@suse.cz>
2221
2222 * c-pragma.c (handle_pragma_diagnostic): Provide hints
2223 for unknown options.
2224
e78a87f7
RS
22252019-04-26 Richard Sandiford <richard.sandiford@arm.com>
2226
2227 * c-warn.c (strict_aliasing_warning): Apply COMPLETE_TYPE_P to
2228 the pointer target rather than the pointer itself.
2229
c280b7ee
JJ
22302019-04-19 Jakub Jelinek <jakub@redhat.com>
2231
2232 PR c/89888
2233 * c-common.h (c_add_case_label): Remove orig_type and outside_range_p
2234 arguments.
2235 (c_do_switch_warnings): Remove outside_range_p argument.
2236 * c-common.c (check_case_bounds): Removed.
2237 (c_add_case_label): Remove orig_type and outside_range_p arguments.
2238 Don't call check_case_bounds. Fold low_value as well as high_value.
2239 * c-warn.c (c_do_switch_warnings): Remove outside_range_p argument.
2240 Check for case labels outside of range of original type here and
2241 adjust them.
2242
8e8225e6
JJ
22432019-04-12 Jakub Jelinek <jakub@redhat.com>
2244
63b8a166
JJ
2245 PR translation/90041
2246 * c.opt (-fhandle-exceptions): Use %< and %> around option names
2247 in the Warn diagnostics.
2248
8e8225e6
JJ
2249 PR c/89946
2250 * c-attribs.c (handle_patchable_function_entry_attribute): Add
2251 function comment. Warn if arguments of the attribute are not positive
2252 integer constants.
2253
53a3f614
EB
22542019-04-09 Eric Botcazou <ebotcazou@adacore.com>
2255
2256 * c-ada-spec.c (print_destructor): Deal with deleting destructors.
2257 (dump_ada_declaration) <FUNCTION_DECL>: Likewise.
2258
22be5873
EB
22592019-04-07 Eric Botcazou <ebotcazou@adacore.com>
2260
2261 * c-ada-spec.c (is_float128): New predicate extracted from...
2262 (dump_ada_node) <COMPLEX_TYPE>: Use it to recognize __cfloat128.
2263 <REAL_TYPE>: ...here. Call it.
2264
34facf20
DM
22652019-04-05 David Malcolm <dmalcolm@redhat.com>
2266
2267 PR c/89985
2268 * c-warn.c (check_address_or_pointer_of_packed_member): Add
2269 auto_diagnostic_group. Guard inform calls by result of
2270 warning_at call.
2271
05564120
MP
22722019-04-05 Marek Polacek <polacek@redhat.com>
2273
ab20d992 2274 PR c++/89973 - -Waddress-of-packed-member ICE with invalid conversion.
05564120
MP
2275 * c-warn.c (check_address_or_pointer_of_packed_member): Check the type
2276 of RHS.
2277
7a506c3c
JM
22782019-04-03 Jason Merrill <jason@redhat.com>
2279
2280 PR c++/86586 - -fcompare-debug=-Wsign-compare.
2281 * c-warn.c (warn_for_sign_compare): Call fold_for_warn.
2282
ddeae8c8
MS
22832019-04-01 Martin Sebor <msebor@redhat.com>
2284
2285 PR c/89685
2286 * c-attribs.c (handle_copy_attribute): Handle references and
2287 non-constant expressions.
2288
a15ffa22
JJ
22892019-03-22 Jakub Jelinek <jakub@redhat.com>
2290
2291 PR c++/87481
2292 * c.opt (-fconstexpr-ops-limit=): New option.
2293
36a3a7a3
JJ
22942019-03-21 Jakub Jelinek <jakub@redhat.com>
2295
2296 * c-common.c (per_file_includes_t): Use false as Lazy in hash_set
2297 template param.
2298
bec1da64
MS
22992019-03-19 Martin Sebor <msebor@redhat.com>
2300
2301 PR tree-optimization/89688
2302 * c-common.c (braced_list_to_string): Make static.
2303 (braced_lists_to_strings): Define new function.
2304 * c-common.h (braced_list_to_string): Remove.
2305 (braced_lists_to_strings): Declare.
2306
1fe61adf
ML
23072019-03-12 Martin Liska <mliska@suse.cz>
2308
2309 * c-opts.c (c_common_handle_option): Wrap option with %< and %>.
2310
93964ebd
ML
23112019-03-11 Martin Liska <mliska@suse.cz>
2312
2313 * c-opts.c (c_common_post_options): Wrap apostrophes
2314 in gcc internal format with %'.
2315
a3f9f006
ML
23162019-03-11 Martin Liska <mliska@suse.cz>
2317
2318 * c-attribs.c (handle_nocf_check_attribute): Wrap an option name
2319 in a string format message and fix GNU coding style.
2320 * c-common.c (vector_types_convertible_p): Likewise.
2321 (c_build_vec_perm_expr): Likewise.
2322 * c-indentation.c (get_visual_column): Likewise.
2323 * c-opts.c (c_common_handle_option): Likewise.
2324 (c_common_post_options): Likewise.
2325 (sanitize_cpp_opts): Likewise.
2326 * c-pch.c (c_common_pch_pragma): Likewise.
2327 * c-pragma.c (handle_pragma_pack): Likewise.
2328
1db01ff9
JJ
23292019-03-08 Jakub Jelinek <jakub@redhat.com>
2330
2331 PR tree-optimization/89550
2332 * c-common.c (c_common_truthvalue_conversion): Only set
2333 TREE_NO_WARNING if warning_at returned true.
2334 * c-warn.c (overflow_warning, warn_logical_operator): Likewise.
2335
ba790e6f
JJ
23362019-02-25 Sandra Loosemore <sandra@codesourcery.com>
2337 Martin Sebor <msebor@gmail.com>
2338
2339 * c.opt (Wmissing-attributes): Clean up doc string.
2340
7da73ba7
JJ
23412019-02-25 Jakub Jelinek <jakub@redhat.com>
2342
2343 PR c/89495
2344 * c-format.c (maybe_read_dollar_number): Compute nargnum in
2345 HOST_WIDE_INT type to avoid overflows and change overflow_flag
2346 checking.
2347
921bb9d1
RB
23482019-02-22 Richard Biener <rguenther@suse.de>
2349
2350 * c-pch.c (no_checksum): Remove.
2351 (pch_init): Remove assertion that executable_checksum is not
2352 all zero.
2353 (c_common_valid_pch): Likewise.
2354
e2ebb05c
MS
23552019-02-18 Martin Sebor <msebor@redhat.com>
2356
2357 PR middle-end/89294
2358 * c-common.c (invalid_array_size_error): Handle cst_size_not_constant.
2359
3fe53000
DM
23602019-02-16 David Malcolm <dmalcolm@redhat.com>
2361
2362 PR c++/88680
2363 * c-common.c (shorten_compare): Call fold_for_warn on op0 when
2364 implementing -Wtype-limits.
2365
28a8cef1
MS
23662019-02-11 Martin Sebor <msebor@redhat.com>
2367
2368 PR c++/87996
2369 * c-common.c (invalid_array_size_error): New function.
2370 (valid_array_size_p): Call it. Handle size as well as type.
2371 * c-common.h (valid_constant_size_p): New function.
2372 (enum cst_size_error): New type.
2373
ec2be203
DM
23742019-01-31 David Malcolm <dmalcolm@redhat.com>
2375
2376 PR c/89122
2377 * known-headers.cc (get_stdlib_header_for_name): Add
2378 {FLT|DBL|LDBL}_{MAX|MIN} to "hints" array.
2379
8936f047
JJ
23802019-01-31 Jakub Jelinek <jakub@redhat.com>
2381
2382 PR libstdc++/88170
2383 * c-pretty-print.c (pp_c_enumeration_constant): Print always as
2384 a C cast in pp_c_flag_gnu_v3 mode.
2385
6a335b96
JJ
23862019-01-29 Jakub Jelinek <jakub@redhat.com>
2387
2388 PR c/86125
2389 * c-common.c (c_common_nodes_and_builtins): Build type variants for
2390 builtin_structptr_types types even for C.
2391
2a06eba5
BE
23922019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
2393
2394 * c-warn.c (check_address_or_pointer_of_packed_member): Handle the case
2395 when rhs is of array type correctly. Fix handling of nested structures.
2396 Fix handling of indirect_ref together with nop_expr and/or addr_expr.
2397 (check_and_warn_address_or_pointer_of_packed_member): Fix handling of
2398 type casts within nested compound expressions.
2399
18a23298
JJ
24002019-01-22 Jakub Jelinek <jakub@redhat.com>
2401
2402 PR middle-end/88968
2403 * c-omp.c (c_finish_omp_atomic): For bitfield atomics, update type
2404 variable after using BIT_FIELD_REF.
2405
420183d9
L
24062019-01-18 H.J. Lu <hongjiu.lu@intel.com>
2407
2408 PR c/51628
2409 PR c/88664
2410 * c-common.h (warn_for_address_or_pointer_of_packed_member):
2411 Remove the boolean argument.
2412 * c-warn.c (check_address_of_packed_member): Renamed to ...
2413 (check_address_or_pointer_of_packed_member): This. Also
2414 warn pointer conversion.
2415 (check_and_warn_address_of_packed_member): Renamed to ...
2416 (check_and_warn_address_or_pointer_of_packed_member): This.
2417 Also warn pointer conversion.
2418 (warn_for_address_or_pointer_of_packed_member): Remove the
2419 boolean argument. Don't check pointer conversion here.
2420
99063eee
RS
24212019-01-15 Richard Sandiford <richard.sandiford@arm.com>
2422
2423 PR inline-asm/52813
2424 * c.opt (Wdeprecated): Move documentation and variable to common.opt.
2425
a30d0196
JJ
24262019-01-14 Jakub Jelinek <jakub@redhat.com>
2427
2428 * c-cppbuiltin.c (c_cpp_builtin): Define __cpp_guaranteed_copy_elision
2429 and __cpp_nontype_template_parameter_auto. Add a comment that
2430 __cpp_template_auto is deprecated.
2431
2d91f79d
TH
24322019-01-14 Tom Honermann <tom@honermann.net>
2433
2434 Implement P0482R5, char8_t: A type for UTF-8 characters and strings
2435 * c-common.c (c_common_reswords): Add char8_t.
2436 (fix_string_type): Use char8_t for the type of u8 string literals.
2437 (c_common_get_alias_set): char8_t doesn't alias.
2438 (c_common_nodes_and_builtins): Define char8_t as a builtin type in
2439 C++.
2440 (c_stddef_cpp_builtins): Add __CHAR8_TYPE__.
2441 (keyword_begins_type_specifier): Add RID_CHAR8.
2442 * c-common.h (rid): Add RID_CHAR8.
2443 (c_tree_index): Add CTI_CHAR8_TYPE and CTI_CHAR8_ARRAY_TYPE.
2444 Define D_CXX_CHAR8_T and D_CXX_CHAR8_T_FLAGS.
2445 Define char8_type_node and char8_array_type_node.
2446 * c-cppbuiltin.c (cpp_atomic_builtins): Predefine
2447 __GCC_ATOMIC_CHAR8_T_LOCK_FREE.
2448 (c_cpp_builtins): Predefine __cpp_char8_t.
2449 * c-lex.c (lex_string): Use char8_array_type_node as the type of
2450 CPP_UTF8STRING.
2451 (lex_charconst): Use char8_type_node as the type of CPP_UTF8CHAR.
2452 * c-opts.c: If not otherwise specified, enable -fchar8_t when
2453 targeting C++2a.
2454 * c.opt: Add the -fchar8_t command line option.
2455
23db6ced
MS
24562019-01-14 Martin Sebor <msebor@redhat.com>
2457
2458 PR target/88638
2459 * c-attribs.c (positional_argument): Call valid_format_string_type_p
2460 and issue errors if it fails.
2461 * c-common.h (valid_format_string_type_p): Declare.
2462 * c-format.c (valid_stringptr_type_p): Rename...
2463 (valid_format_string_type_p): ...to this and make extern.
2464 (handle_format_arg_attribute): Adjust to new name.
2465 (check_format_string): Same.
2466
234c3818
L
24672019-01-13 H.J. Lu <hongjiu.lu@intel.com>
2468
2469 * c-warn.c (warn_for_address_or_pointer_of_packed_member):
2470 Replace "may may" with "may" in warning message.
2471
d8fcab68
JJ
24722019-01-07 Jakub Jelinek <jakub@redhat.com>
2473
2474 PR c++/85052
2475 * c-common.h (enum rid): Add RID_BUILTIN_CONVERTVECTOR.
2476 (c_build_vec_convert): Declare.
2477 * c-common.c (c_build_vec_convert): New function.
2478
29d24852
MS
24792019-01-04 Martin Sebor <msebor@redhat.com>
2480
2481 PR c/88546
2482 * c-attribs.c (handle_copy_attribute): Avoid copying attribute leaf.
2483 Handle C++ empty throw specification and C11 _Noreturn.
2484 (has_attribute): Also handle C11 _Noreturn.
2485
9069a4c9
MS
24862019-01-04 Martin Sebor <msebor@redhat.com>
2487
2488 PR c/88363
2489 * c-attribs.c (positional_argument): Also accept enumerated types.
2490
a5544970
JJ
24912019-01-01 Jakub Jelinek <jakub@redhat.com>
2492
2493 Update copyright years.
2494
da77eace
L
24952018-12-20 H.J. Lu <hongjiu.lu@intel.com>
2496
2497 PR c/51628
2498 * c-common.h (warn_for_address_or_pointer_of_packed_member): New.
2499 * c-warn.c (check_alignment_of_packed_member): New function.
2500 (check_address_of_packed_member): Likewise.
2501 (check_and_warn_address_of_packed_member): Likewise.
2502 (warn_for_address_or_pointer_of_packed_member): Likewise.
2503 * c.opt: Add -Wno-address-of-packed-member.
2504
573767d4
DM
25052018-12-20 David Malcolm <dmalcolm@redhat.com>
2506
2507 PR c++/87504
2508 * c-warn.c (get_outermost_macro_expansion): New function.
2509 (spelled_the_same_p): Use it to unwind the macro expansions, and
2510 compare the outermost macro in each nested expansion, rather than
2511 the innermost.
2512
a14feb3c
DM
25132018-12-19 David Malcolm <dmalcolm@redhat.com>
2514
2515 PR c++/87504
2516 * c-common.h (warn_tautological_cmp): Convert 1st param from
2517 location_t to const op_location_t &.
2518 * c-warn.c (find_array_ref_with_const_idx_r): Call fold_for_warn
2519 when testing for INTEGER_CST.
2520 (warn_tautological_bitwise_comparison): Convert 1st param from
2521 location_t to const op_location_t &; use it to build a
2522 binary_op_rich_location, and use this.
2523 (spelled_the_same_p): New function.
2524 (warn_tautological_cmp): Convert 1st param from location_t to
2525 const op_location_t &. Warn for macro expansions if
2526 spelled_the_same_p. Use binary_op_rich_location.
2527
dfd7fdca
DM
25282018-12-19 David Malcolm <dmalcolm@redhat.com>
2529
2530 PR c++/43064
2531 PR c++/43486
2532 * c-common.c (unsafe_conversion_p): Fold any location wrapper.
2533 (verify_tree): Handle location wrappers.
2534 (c_common_truthvalue_conversion): Strip any location wrapper.
2535 Handle CONST_DECL.
2536 (fold_offsetof): Strip any location wrapper.
2537 (complete_array_type): Likewise for initial_value.
2538 (convert_vector_to_array_for_subscript): Call fold_for_warn on the
2539 index before checking for INTEGER_CST.
2540 * c-pretty-print.c (c_pretty_printer::primary_expression): Don't
2541 print parentheses around location wrappers.
2542 * c-warn.c (warn_logical_operator): Call fold_for_warn on op_right
2543 before checking for INTEGER_CST.
2544 (warn_tautological_bitwise_comparison): Call
2545 tree_strip_any_location_wrapper on lhs, rhs, and bitop's operand
2546 before checking for INTEGER_CST.
2547 (readonly_error): Strip any location wrapper.
2548 (warn_array_subscript_with_type_char): Strip location wrappers
2549 before checking for INTEGER_CST. Use the location of the index if
2550 available.
2551
5c8b3702
JM
25522018-12-06 Jason Merrill <jason@redhat.com>
2553
2554 PR c++/88136 - -Wdeprecated-copy false positives
2555 * c.opt (Wdeprecated-copy-dtor): New.
2556 (Wdeprecated-copy): Move to -Wextra.
2557
673670da
MS
25582018-11-29 Martin Sebor <msebor@redhat.com>
2559
2560 PR c/88172
2561 PR testsuite/88208
2562 * c-attribs.c (common_handle_aligned_attribute): Silently avoid setting
2563 alignments to values less than the target requires.
2564 (has_attribute): For attribute aligned consider both the attribute
2565 and the alignment bits.
2566 * c-common.c (c_init_attributes): Optionally issue a warning for
2567 zero alignment.
2568
04864ec8
MS
25692018-11-28 Martin Sebor <msebor@redhat.com>
2570
2571 PR c/88065
2572 PR c/87297
2573 * c-warn.c (sizeof_pointer_memaccess_warning): Bail if source
2574 or destination is an error.
2575
ace83db0
JJ
25762018-11-28 Jakub Jelinek <jakub@redhat.com>
2577
2578 PR c++/88215
2579 * c-ubsan.c: Include langhooks.h.
2580 (ubsan_instrument_division): Change gcc_assert that main variants
2581 of op0 and op1 types are equal to gcc_checking_assert that the
2582 main variants are compatible types.
2583
da193a27
EB
25842018-11-27 Eric Botcazou <ebotcazou@adacore.com>
2585
2586 * c-ada-spec.c: Include stringpool.h.
2587 (has_static_fields): Return false for incomplete types.
2588 (is_tagged_type): Likewise.
2589 (has_nontrivial_methods): Likewise.
2590 (dump_ada_node) <INTEGER_TYPE>: Deal specifically with __int128.
2591 (struct overloaded_name_hash): New structure.
2592 (struct overloaded_name_hasher): Likewise.
2593 (overloaded_names): New global variable.
2594 (init_overloaded_names): New static function.
2595 (overloaded_name_p): New predicate.
2596 (dump_ada_declaration) <TYPE_DECL>: Tidy up and set TREE_VISITED
2597 on the TYPE_STUB_DECL of the original type of a typedef, if any.
2598 <FUNCTION_DECL>: Bail out for an unsupported overloaded name.
2599 Remove always-true condition and dump forward types.
2600 (dump_ada_specs): Delete overloaded_names.
2601
98f08eb8
MS
26022018-11-20 Martin Sebor <msebor@redhat.com>
2603
2604 * c-attribs.c (type_for_vector_size): New function.
2605 (type_valid_for_vector_size): Same.
2606 (handle_vector_size_attribute): Move code to the functions above
2607 and call them.
2608 (validate_attribute, has_attribute): New functions.
2609 * c-common.h (has_attribute): Declare.
2610 (rid): Add RID_HAS_ATTRIBUTE_EXPRESSION.
2611 * c-common.c (c_common_resword): Same.
2612
2674fa47
JM
26132018-11-16 Jason Merrill <jason@redhat.com>
2614
2615 * c-lex.c (c_common_has_attribute): Handle likely/unlikely.
2616 * c-attribs.c (attr_cold_hot_exclusions): Make public.
2617
258b3854
JJ
26182018-11-16 Jakub Jelinek <jakub@redhat.com>
2619
2620 PR middle-end/87854
2621 * c-common.c (fix_string_type): Reject string literals larger than
2622 TYPE_MAX_VALUE (ssizetype) bytes.
2623
1d249509
MS
26242018-11-15 Martin Sebor <msebor@redhat.com>
2625
2626 PR c++/87541
2627 PR c++/87542
2628 * c-attribs.c (positional_argument): New function.
2629 (handle_alloc_size_attribute): Use it and simplify.
2630 (handle_alloc_align_attribute): Same.
2631 (handle_assume_aligned_attribute): Same.
2632 (handle_nonnull_attribute): Same.
2633 * c-common.c (check_function_arguments): Pass fntype to
2634 check_function_format.
2635 * c-common.h (check_function_format): Add an argument.
2636 (PosArgFlags, positional_argument): Declare new type and function.
2637 * c-format.c (decode_format_attr): Add arguments.
2638 (check_format_string, get_constant): Same.
2639 (convert_format_name_to_system_name): Adjust.
2640
478dd60d
DM
26412018-11-15 David Malcolm <dmalcolm@redhat.com>
2642
2643 PR other/19165
2644 * c-opts.c (c_diagnostic_finalizer): Add diagnostic_t param.
2645
8cca0163
JJ
26462018-11-14 Jakub Jelinek <jakub@redhat.com>
2647
8ee09943
JJ
2648 P1236R1 - Signed integers are two's complement
2649 * c-warn.c (maybe_warn_shift_overflow): Don't warn for c++2a.
2650 * c-ubsan.c (ubsan_instrument_shift): Make signed shifts
2651 with in-range second operand well defined for -std=c++2a.
2652
8cca0163
JJ
2653 PR other/88007
2654 * c-common.c (parse_optimize_options): Allocate option string from
2655 opts_obstack rather than as GC memory. Move the allocation after
2656 warning for invalid option.
2657
620e594b
DM
26582018-11-13 David Malcolm <dmalcolm@redhat.com>
2659
2660 * c-common.c (c_get_substring_location): Update for renaming of
2661 get_source_location_for_substring to get_location_within_string.
2662 * c-lex.c: Replace "source_location" with "location_t".
2663 * c-opts.c: Likewise.
2664 * c-ppoutput.c: Likewise.
2665
f9731de3
MS
26662018-11-13 Martin Sebor <msebor@redhat.com>
2667
2668 PR middle-end/81824
2669 * c-attribs.c (handle_copy_attribute): Exclude inlining attributes.
2670 (handle_tls_model_attribute): Improve diagnostics.
2671
e4bd6d5e
JM
26722018-11-12 Jason Merrill <jason@redhat.com>
2673
a6bb6b07
JM
2674 * c-cppbuiltin.c (c_cpp_builtins): Define
2675 __cpp_impl_destroying_delete.
2676
e4bd6d5e
JM
2677 * c-cppbuiltin.c (c_cpp_builtins): Change __cpp_explicit_bool to
2678 __cpp_conditional_explicit.
2679
79a2c428
MS
26802018-11-09 Martin Sebor <msebor@redhat.com>
2681
2682 PR middle-end/81824
2683 * c-attribs.c (handle_copy_attribute): New function.
2684
4c7bd361
MS
26852018-11-09 Martin Sebor <msebor@redhat.com>
2686
2687 PR c/87795
2688 * c-common.c (check_user_alignment): Use MAX_OFILE_ALIGNMENT.
2689
28567c40
JJ
26902018-11-08 Jakub Jelinek <jakub@redhat.com>
2691
2692 * c-common.h (c_finish_omp_taskgroup): Add CLAUSES argument.
2693 (c_finish_omp_atomic): Replace bool SEQ_CST argument with
2694 enum omp_memory_order MEMORY_ORDER.
2695 (c_finish_omp_flush): Add MO argument.
2696 (c_omp_depend_t_p, c_finish_omp_depobj): Declare.
2697 (c_finish_omp_for): Add FINAL_P argument.
2698 * c-omp.c: Include memmodel.h.
2699 (c_finish_omp_taskgroup): Add CLAUSES argument. Set
2700 OMP_TASKGROUP_CLAUSES to it.
2701 (c_finish_omp_atomic): Replace bool SEQ_CST argument with
2702 enum omp_memory_order MEMORY_ORDER. Set OMP_ATOMIC_MEMORY_ORDER
2703 instead of OMP_ATOMIC_SEQ_CST.
2704 (c_omp_depend_t_p, c_finish_omp_depobj): New functions.
2705 (c_finish_omp_flush): Add MO argument, if not MEMMODEL_LAST, emit
2706 __atomic_thread_fence call with the given value.
2707 (check_omp_for_incr_expr): Formatting fixes.
2708 (c_finish_omp_for): Add FINAL_P argument. Allow NE_EXPR
2709 even in OpenMP loops, diagnose if NE_EXPR and incr expression
2710 is not constant expression 1 or -1. Transform NE_EXPR loops
2711 with iterators pointers to VLA into LT_EXPR or GT_EXPR loops.
2712 (c_omp_check_loop_iv_r): Look for orig decl of C++ range for
2713 loops too.
2714 (c_omp_split_clauses): Add support for combined
2715 #pragma omp parallel master and
2716 #pragma omp {,parallel }master taskloop{, simd} constructs.
2717 Handle OMP_CLAUSE_IN_REDUCTION. Handle OMP_CLAUSE_REDUCTION_TASK.
2718 Handle OMP_CLAUSE_NONTEMPORAL. Handle splitting OMP_CLAUSE_IF
2719 also to OMP_SIMD. Copy OMP_CLAUSE_LASTPRIVATE_CONDITIONAL.
2720 (c_omp_predetermined_sharing): Don't return
2721 OMP_CLAUSE_DEFAULT_SHARED for const qualified decls.
2722 * c-pragma.c (omp_pragmas): Add PRAGMA_OMP_DEPOBJ and
2723 PRAGMA_OMP_REQUIRES.
2724 * c-pragma.h (enum pragma_kind): Likewise.
2725 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_NONTEMPORAL
2726 and PRAGMA_OMP_CLAUSE_{IN,TASK}_REDUCTION.
2727
204839e7
DM
27282018-11-08 David Malcolm <dmalcolm@redhat.com>
2729
2730 * c-format.c (gcc_dump_printf_char_table): Add entry for %f.
2731
d8010ee4
DM
27322018-11-08 David Malcolm <dmalcolm@redhat.com>
2733
2734 * c-format.c (local_cgraph_node_ptr_node): New variable.
2735 (gcc_dump_printf_char_table): Add entry for %C.
2736 (get_pointer_to_named_type): New function, taken from the handling
2737 code for "gimple *" from...
2738 (init_dynamic_diag_info): ...here. Add handling for
2739 "cgraph_node *".
2740 * c-format.h (T_CGRAPH_NODE): New.
2741
4be5c72c
JM
27422018-10-19 Jason Merrill <jason@redhat.com>
2743
2744 * c-cppbuiltin.c (c_cpp_builtins): Add
2745 __cpp_nontype_template_parameter_class.
2746
f3f6029d
NS
27472018-10-31 Nathan Sidwell <nathan@acm.org>
2748
ab5324fb
NS
2749 * c-opts.c (c_finish_options): Force command line macro
2750 location. Refactor to avoid repeating main debug hook.
2751 (push_command_line_include): Clarify comment.
2752
f3f6029d
NS
2753 * c-opts.c (c_finish_options): Adjust cpp_force_token_locations call.
2754
91e3ec29
MS
27552018-10-30 Martin Sebor <msebor@redhat.com>
2756
2757 PR middle-end/87041
2758 * c-format.c (check_format_types): Avoid diagnosing null pointer
2759 arguments to printf-family of functions.
2760
b5ff4f5c
MP
27612018-10-30 Marek Polacek <polacek@redhat.com>
2762
2763 Implement P0892R2, explicit(bool).
2764 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_explicit_bool.
2765
7e2de6df
DM
27662018-10-29 David Malcolm <dmalcolm@redhat.com>
2767
2768 * name-hint.h (name_hint::take_deferred): New member function.
2769
b2bf438c
DM
27702018-10-29 David Malcolm <dmalcolm@redhat.com>
2771
2772 PR c++/56856
2773 * c-common.c (check_function_sentinel): Call fold_for_warn on the
2774 argument.
2775 (check_function_restrict): Rename param "argarray" to
2776 "unfolded_argarray", and make a copy named "argarray", calling
2777 fold_for_warn on each argument.
2778 (check_function_arguments): Add note about responsibility for
2779 folding the arguments.
2780
9f936c86
JM
27812018-10-17 Joseph Myers <joseph@codesourcery.com>
2782
2783 * c-common.c (flag_isoc2x): New variable.
2784 * c-common.h (clk_c): Update comment to reference C2X.
2785 (flag_isoc99, flag_isoc11): Update comments to reference future
2786 standard versions in general.
2787 (flag_isoc2x): Declare.
2788 * c-opts.c (set_std_c2x): New function.
2789 (c_common_handle_option): Handle -std=c2x and -std=gnu2x.
2790 (set_std_c89, set_std_c99, set_std_c11, set_std_c17): Set
2791 flag_isoc2x to 0.
2792 * c.opt (Wc11-c2x-compat, std=c2x, std=gnu2x): New options.
2793
7a8a92c4
JM
27942018-10-17 Joseph Myers <joseph@codesourcery.com>
2795
2796 * c.opt (std=c17, std=c18, std=gnu17, std=gnu18, std=iso9899:2017)
2797 (std=iso9899:2018): Document C17 as published in 2018.
2798
4dc003ff
CL
27992018-10-12 Christophe Lyon <christophe.lyon@linaro.org>
2800
2801 PR c++/87364
2802 * c-pretty-print.c (c_pretty_printer::constant): Fix typo.
2803
79371671
WW
28042018-10-11 Will Wray <wjwray@gmail.com>
2805
2806 PR c++/87364
2807 * c-pretty-print.h (pp_c_type_cast): Prototype.
2808 (pp_c_integer_constant): Likewise.
2809 * c-pretty-print.c (pp_c_type_cast): No longer static.
2810 (pp_c_integer_constant): Likewise.
2811 (pp_c_enumeration_constant): Fix loop termination when finding
2812 name of constant. No longer returns a value. Call
2813 pp_c_integer_constant.
2814 (c_pretty_printer::constant): Update for changes to
2815 pp_c_enumeration_constant.
2816
46c62690
JJ
28172018-10-11 Jakub Jelinek <jakub@redhat.com>
2818
2819 * c-lex.c (c_common_has_attribute): Return 201803 instead of 20180312
2820 for no_unique_address.
2821
c24300ba
DM
28222018-10-09 David Malcolm <dmalcolm@redhat.com>
2823
2824 * c-common.c (c_option_controlling_cpp_error): Rename to...
2825 (c_option_controlling_cpp_diagnostic): ...this, and convert
2826 "reason" from int to enum.
2827 (c_cpp_error): Rename to...
2828 (c_cpp_diagnostic): ...this, converting level and reason to enums.
2829 * c-common.h (c_cpp_error): Rename to...
2830 (c_cpp_diagnostic): ...this, converting level and reason to enums.
2831 * c-opts.c (c_common_init_options): Update for renaming.
2832
8656dafa
RS
28332018-10-08 Richard Sandiford <richard.sandiford@arm.com>
2834
2835 PR c/87286
2836 * c-common.c (vector_types_compatible_elements_p): Use
2837 INTEGRAL_TYPE_P instead of checking only for INTEGER_TYPE.
2838
8cff0652
VK
28392018-10-04 Vinay Kumar <vinay.kumar@blackfigtech.com>
2840
2841 * c-attribs.c (get_priority): Add a warning flag warn_prio_ctor_dtor
2842 to generate constructor destructor priority warning.
2843 * c.opt (-Wprio-ctor-dtor): New option.
2844
bedf03a2
JM
28452018-10-01 Jason Merrill <jason@redhat.com>
2846
2847 * c-lex.c (c_common_has_attribute): Add no_unique_address.
2848
6cc430c1
EB
28492018-10-01 Eric Botcazou <ebotcazou@adacore.com>
2850
2851 * c-ada-spec.c (get_underlying_decl): Get to the main type variant.
2852 (dump_ada_node): Add const keyword.
2853
87677ac7
ML
28542018-09-25 Martin Liska <mliska@suse.cz>
2855
2856 * c-common.c (c_common_truthvalue_conversion):
2857 Remove Pascal from documentation.
2858
518196cb
EB
28592018-09-21 Eric Botcazou <ebotcazou@adacore.com>
2860
2861 * c-ada-spec.c: Include diagnostic.h.
2862 (dump_ada_declaration) <RECORD_TYPE>: Issue a warning on packed layout.
2863
a599af84
MP
28642018-09-19 Marek Polacek <polacek@redhat.com>
2865
2866 * c.opt (Wclass-conversion): New.
2867
9c4a4b3c
DM
28682018-09-17 David Malcolm <dmalcolm@redhat.com>
2869
2870 * c-format.c (range_label_for_format_type_mismatch::get_text):
2871 Update for new param.
2872
c896ecfe
DM
28732018-09-17 David Malcolm <dmalcolm@redhat.com>
2874
2875 * c-format.c (format_warning_at_char): Update for introduction of
2876 format_string_diagnostic_t.
2877 (format_type_warning): Likewise.
2878
80c6d1f4
MJ
28792018-09-17 Martin Jambor <mjambor@suse.cz>
2880
2881 PR c/63886
2882 * c.opt (Wabsolute-value): New.
2883
6d900107
BE
28842018-09-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
2885
2886 * c-common.c (complete_flexible_array_elts): New helper function.
2887 * c-common.h (complete_flexible_array_elts): Declare.
2888
b5764229
BE
28892018-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2890
2891 * c-common.c (braced_list_to_string): Remove eval parameter.
2892 Add some more checks. Always create zero-terminated STRING_CST.
2893 * c-common.h (braced_list_to_string): Adjust prototype.
2894
85204e23
DM
28952018-08-27 David Malcolm <dmalcolm@redhat.com>
2896
2897 PR 87091
2898 * c-common.c (c_cpp_error): Update for conversion of show_caret_p
2899 to a tri-state.
2900 (maybe_suggest_missing_token_insertion): Likewise.
2901 (maybe_add_include_fixit): Add param "override_location". If set,
2902 and source-printing is enabled, then override the rich_location's
2903 primary location with that of the insertion point for the fix-it
2904 hint, marking it with SHOW_LINES_WITHOUT_RANGE.
2905 * c-common.h (extern void maybe_add_include_fixit): Add bool
2906 param.
2907 * c-format.c (selftest::test_type_mismatch_range_labels): Update
2908 for conversion of show_caret_p to a tri-state.
2909 * c-warn.c (warn_for_restrict): Likewise.
2910 * known-headers.cc
2911 (suggest_missing_header::~suggest_missing_header): Update call to
2912 maybe_add_include_fixit to suggest overriding the location, as it
2913 is for a note.
2914
3d78e008
ML
29152018-08-27 Martin Liska <mliska@suse.cz>
2916
2917 * c-common.c (check_function_restrict): Use new function
92a285c1
ML
2918 fndecl_built_in_p and remove check for FUNCTION_DECL if
2919 possible.
3d78e008
ML
2920 (check_builtin_function_arguments): Likewise.
2921 (reject_gcc_builtin): Likewise.
2922 * c-warn.c (sizeof_pointer_memaccess_warning): Likewise.
2923
b5be6d0c
MP
29242018-08-26 Marek Polacek <polacek@redhat.com>
2925
2926 PR c++/87029, Implement -Wredundant-move.
2927 * c.opt (Wredundant-move): New option.
2928
79ca9c35
MP
29292018-08-21 Marek Polacek <polacek@redhat.com>
2930
2931 PR c++/86981, Implement -Wpessimizing-move.
2932 * c.opt (Wpessimizing-move): New option.
2933
097f82ec
DM
29342018-08-20 David Malcolm <dmalcolm@redhat.com>
2935
2936 PR other/84889
2937 * c-attribs.c (common_handle_aligned_attribute): Add
2938 auto_diagnostic_group instance.
2939 * c-indentation.c (warn_for_misleading_indentation): Likewise.
2940 * c-opts.c (c_common_post_options): Likewise.
2941 * c-warn.c (warn_logical_not_parentheses): Likewise.
2942 (warn_duplicated_cond_add_or_warn): Likewise.
2943 (warn_for_multistatement_macros): Likewise.
2944
3fb558b1
NS
29452018-08-20 Nathan Sidwell <nathan@acm.org>
2946
2947 * c-ada-spec.c (macro_length, dump_ada_macros): Adjust macro parm
2948 access.
2949
800c0e98
NS
29502018-08-17 Nathan Sidwell <nathan@acm.org>
2951
2952 * c-cppbuiltin.c (struct lazy_hex_fp_value_struct): Remove macro
2953 field.
2954 (laxy_hex_fp_value_count): Make unsigned.
2955 (lazy_hex_fp_value): Provided with macro & lazy number. Directly
2956 manipulate the macro.
2957 (builtin_defin_with_hex_fp_value): Adjust callback name, use
2958 cpp_define_lazily.
2959
6f795a92
DM
29602018-08-17 David Malcolm <dmalcolm@redhat.com>
2961
2962 * c-format.c (enum format_type): Add gcc_dump_printf_format_type.
2963 (gcc_dump_printf_length_specs): New.
2964 (gcc_dump_printf_flag_pairs): New.
2965 (gcc_dump_printf_flag_specs): New.
2966 (gcc_dump_printf_char_table): New.
2967 (format_types_orig): Add entry for "gcc_dump_printf".
2968 (init_dynamic_diag_info): Set up length_char_specs and
2969 conversion_specs for gcc_dump_printf_format_type.
2970 (handle_format_attribute): Handle gcc_dump_printf_format_type.
2971
c5d725c0
NS
29722018-08-17 Nathan Sidwell <nathan@acm.org>
2973
10f04917
NS
2974 * c-ada-spec.c (macro_length, dump_ada_macros): Constify.
2975
c5d725c0
NS
2976 * c-ada-spec.c: Don't #include "cpp-id-data.h"
2977 * c-cppbuiltin.c: Likewise.
2978
c0c12356
ML
29792018-08-17 Martin Liska <mliska@suse.cz>
2980
2981 * c.opt: Remove Warn, Init and Report for options with
92a285c1
ML
2982 Ignore/Deprecated flag. Warning is done automatically for
2983 Deprecated flags.
c0c12356 2984
10fcc142
DM
29852018-08-16 David Malcolm <dmalcolm@redhat.com>
2986
2987 PR c++/70693
2988 * c-common.c (selftest::c_family_tests): Call
2989 selftest::c_indentation_c_tests.
2990 * c-common.h (selftest::c_indentation_c_tests): New decl.
2991 * c-indentation.c: Include "selftest.h".
2992 (next_tab_stop): Add "tab_width" param, rather than accessing
2993 cpp_opts.
2994 (get_visual_column): Likewise. Clarify comment. Bulletproof
2995 against reading past the end of the line.
2996 (get_first_nws_vis_column): Add "tab_width" param.
2997 (detect_intervening_unindent): Likewise.
2998 (should_warn_for_misleading_indentation): Read tab width from
2999 cpp_opts and pass around.
3000 (selftest::test_next_tab_stop): New test.
3001 (selftest::assert_get_visual_column_succeeds): New function.
3002 (ASSERT_GET_VISUAL_COLUMN_SUCCEEDS): New macro.
3003 (selftest::assert_get_visual_column_fails): New function.
3004 (ASSERT_GET_VISUAL_COLUMN_FAILS): New macro.
3005 (selftest::test_get_visual_column): New test.
3006 (selftest::c_indentation_c_tests): New function.
3007
3f6677f4
NS
30082018-08-16 Nathan Sidwell <nathan@acm.org>
3009
3010 * c-ada-spec.c (count_ada_macro): Use cpp_user_macro_p.
3011 (store_ada_macro): Likewise.
3012 * c-ppoutput.c (cb_used_define, dump_macro): Likewise.
3013 * c-spellcheck.cc (should-suggest_as_macro_p): Likewise,
3014
96e6ae57
DM
30152018-08-15 David Malcolm <dmalcolm@redhat.com>
3016
3017 * c-format.c: Include "selftest-diagnostic.h" and
3018 "gcc-rich-location.h".
3019 (format_warning_at_char): Pass NULL for new label params of
3020 format_warning_va.
3021 (class indirection_suffix): New class.
3022 (class range_label_for_format_type_mismatch): New class.
3023 (format_type_warning): Move logic for generating "*" suffix to
3024 class indirection_suffix. Create "fmt_label" and "param_label"
3025 to show their types, and pass them to the
3026 format_warning_at_substring calls.
3027 (selftest::test_type_mismatch_range_labels): New test.
3028 (selftest::c_format_c_tests): Call it.
3029
23aa9f7c
MS
30302018-08-13 Martin Sebor <msebor@redhat.com>
3031
3032 PR tree-optimization/71625
3033 * c-common.c (braced_list_to_string): New function.
3034 * c-common.h (braced_list_to_string): Declare it.
3035
f10a9135
NS
30362018-08-08 Nathan Sidwell <nathan@acm.org>
3037
3038 * c-common.c (try_to_locate_new_include_inertion_point): Use
3039 linemap_included_from_linemap.
3040 * c-lex.c (fe_file_change): Use linemap_included_from.
3041 * c-ppoutput.c (pp_file_change): Likewise.
3042
8a45b051
MS
30432018-08-01 Martin Sebor <msebor@redhat.com>
3044
3045 PR tree-optimization/86650
ab20d992 3046 * c-format.c (gcc_tdiag_char_table): Update comment for "%G".
8a45b051
MS
3047 (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Same.
3048 (init_dynamic_diag_info): Update from "gcall *" to "gimple *".
3049 * c-format.h (T89_G): Update to be "gimple *" rather than
3050 "gcall *".
3051 (local_gcall_ptr_node): Rename...
3052 (local_gimple_ptr_node): ...to this.
3053
e540ccc0
DM
30542018-07-31 David Malcolm <dmalcolm@redhat.com>
3055
3056 * c-format.c (PP_FORMAT_CHAR_TABLE): New macro, based on existing
3057 table entries for gcc_diag_char_table, and the 'Z' entry from
3058 gcc_tdiag_char_table, changing the "chain" entry for 'Z' from
3059 &gcc_tdiag_char_table[0] to &gcc_diag_char_table[0].
3060 (gcc_diag_char_table): Use PP_FORMAT_CHAR_TABLE, implicitly
3061 adding missing "Z" for this table. Remove erroneous "G" and "K"
3062 entries.
3063 (gcc_tdiag_char_table): Use PP_FORMAT_CHAR_TABLE. Remove "v".
3064 (gcc_cdiag_char_table): Use PP_FORMAT_CHAR_TABLE.
3065 (gcc_cxxdiag_char_table): Use PP_FORMAT_CHAR_TABLE. Remove "v".
3066
425fc685
RE
30672018-07-31 Richard Earnshaw <rearnsha@arm.com>
3068
3069 * c-common.c (speculation_safe_resolve_call): New function.
3070 (speculation_safe_resolve_params): New function.
3071 (speculation_safe_resolve_return): New function.
3072 (resolve_overloaded_builtin): Handle __builtin_speculation_safe_value.
3073 * c-cppbuiltin.c (c_cpp_builtins): Add pre-define for
3074 __HAVE_SPECULATION_SAFE_VALUE.
3075
181463c2
DM
30762018-07-20 David Malcolm <dmalcolm@redhat.com>
3077
3078 * c-common.c (c_cpp_error): Remove redundant "line_table"
3079 parameter from call to rich_location::set_range.
3080 (maybe_suggest_missing_token_insertion): Likewise.
3081
0d7f9065
MS
30822018-07-20 Martin Sebor <msebor@redhat.com>
3083
3084 PR middle-end/82063
ab20d992 3085 * c.opt (-Warray-bounds): Remove redundant -Wall.
0d7f9065 3086
00abf86c
MS
30872018-07-20 Martin Sebor <msebor@redhat.com>
3088
3089 PR middle-end/82063
3090 * c-common.h (c_common_handle_option): Change function argument
3091 to HOST_WIDE_INT.
3092 * c-opts.c (c_common_init_options): Same.
3093 (c_common_handle_option): Same. Remove special handling of
3094 OPT_Walloca_larger_than_ and OPT_Wvla_larger_than_.
3095 * c.opt (-Walloc-size-larger-than, -Walloca-larger-than): Change
3096 options to take a HOST_WIDE_INT argument and accept a byte-size
3097 suffix. Initialize.
3098 (-Wvla-larger-than): Same.
3099 (-Wno-alloc-size-larger-than, -Wno-alloca-larger-than): New.
3100 (-Wno-vla-larger-than): Same.
3101
9b452033
JJ
31022018-07-12 Jakub Jelinek <jakub@redhat.com>
3103
3104 * c-attribs.c (c_common_attribute_table): Add
3105 "omp declare target implicit" attribute.
3106
cd0762f3
RB
31072018-07-12 Richard Biener <rguenther@suse.de>
3108
3109 PR c/86453
3110 * c-attribs.c (handle_packed_attribute): Do not build a variant
3111 type with TYPE_PACKED, instead ignore the attribute if we may
3112 not apply to the original type.
3113
0b27c3ed
JJ
31142018-07-10 Jakub Jelinek <jakub@redhat.com>
3115
3116 PR c++/86443
3117 * c-omp.c (c_omp_check_loop_iv_r, c_omp_check_loop_iv): Allow declv
3118 to contain TREE_LIST for both the original class iterator and the
3119 "last" helper var.
3120
e730a0ef
EB
31212018-07-07 Eric Botcazou <ebotcazou@adacore.com>
3122
3123 * c-ada-spec.c (to_ada_name): Remove index parameter.
3124 (pp_ada_tree_identifier): Likewise.
3125 (dump_ada_macros): Adjust call to to_ada_name.
3126 (struct overloaded_name_hash): Delete.
3127 (struct overloaded_name_hasher): Likewise.
3128 (overloaded_names): Likewise.
3129 (compute_overloading_index): Likewise.
3130 (dump_ada_decl_name): Do not call compute_overloading_index and
3131 adjust calls to pp_ada_tree_identifier.
3132 (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
3133 (dump_ada_import): Add spc parameter and switch to aspect syntax.
3134 (dump_ada_function_declaration): Adjust call to pp_ada_tree_identifier.
3135 (dump_ada_enum_type): Remove type and display_convention parameters.
3136 Adjust calls to pp_ada_tree_identifier.
3137 (dump_ada_node): Likewise and for dump_ada_structure.
3138 (dump_nested_type) <ENUMERAL_TYPE>: Adjust call to dump_ada_enum_type
3139 and tidy up.
3140 <RECORD_TYPE>: Adjust call to dump_ada_structure and switch to aspect
3141 syntax.
3142 (print_constructor): Adjust call to pp_ada_tree_identifier.
3143 (print_destructor): Likewise.
3144 (dump_ada_declaration): Switch to aspect syntax.
3145 (dump_ada_structure): Likewise and tidy up. Replace display_convention
3146 parameter with nested parameter.
3147 (dump_ads): Emit pragma Ada_2012 in lieu of pragma Ada_2005.
3148 (dump_ada_specs): Do not delete overloaded_names table.
3149
8de583fc
PB
31502018-07-06 Peter Bergner <bergner@linux.ibm.com>
3151
3152 PR target/86324
e730a0ef 3153 * c-attribs.c (handle_mode_attribute): Call translate_mode_attribute
8de583fc
PB
3154 target hook.
3155
09cff37b
NS
31562018-07-05 Nathan Sidwell <nathan@acm.org>
3157
3158 * c-lex.c (fe_file_change): Check SYSTEM_IMPLICIT_EXTERN_C not
3159 NO_IMPLICIT_EXTERN_C.
3160
98086b2b
ML
31612018-06-28 Martin Liska <mliska@suse.cz>
3162
3163 * cppspec.c: Include opt-suggestions.h.
3164
ab20d992
JJ
31652018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
3166 Thomas Schwinge <thomas@codesourcery.com>
829c6349
CLT
3167 Cesar Philippidis <cesar@codesourcery.com>
3168
3169 * c-pragma.h (enum pragma_omp_clause): Add
3170 PRAGMA_OACC_CLAUSE_{FINALIZE,IF_PRESENT}. Remove
3171 PRAGMA_OACC_CLAUSE_PRESENT_OR_{COPY,COPYIN,COPYOUT,CREATE}.
3172
f41b7612
JJ
31732018-06-20 Jakub Jelinek <jakub@redhat.com>
3174
3175 PR c++/86210
3176 * c-common.c (check_nonnull_arg): Use fold_for_warn. Adjust obsolete
3177 comment.
3178
4252ccd7
MS
31792018-06-18 Martin Sebor <msebor@redhat.com>
3180
3181 PR middle-end/85602
3182 * c-warn.c (sizeof_pointer_memaccess_warning): Check for attribute
3183 nonstring.
3184
e197e64e
KV
31852018-06-16 Kugan Vivekanandarajah <kuganv@linaro.org>
3186
3187 * c-common.c (c_common_truthvalue_conversion): Handle ABSU_EXPR.
3188
34a7a230
JM
31892018-06-13 Jason Merrill <jason@redhat.com>
3190
5cef3733
JM
3191 * c-opts.c (c_common_post_options): Warn about useless -Wabi.
3192 (c_common_handle_option) [OPT_Wabi_]: Remove flag_abi_compat_version
3193 handling.
3194
34a7a230
JM
3195 PR c++/86094 - wrong code with defaulted move ctor.
3196 * c-opts.c (c_common_post_options): Bump the current ABI version to
3197 13. Set warn_abi_version and flag_abi_compat_version to the current
3198 version rather than 0. Fix defaulting flag_abi_compat_version from
3199 warn_abi_version.
3200
bb0f14ae
MS
32012018-06-12 Martin Sebor <msebor@redhat.com>
3202
3203 PR c/85931
3204 * c-warn.c (sizeof_pointer_memaccess_warning): Avoid warning when
3205 sizeof source and destination yields the same value.
3206
3713f2e2
ML
32072018-06-12 Martin Liska <mliska@suse.cz>
3208
3209 * c.opt: Make MPX-related options as Deprecated.
3210
4af78ef8
DM
32112018-06-08 David Malcolm <dmalcolm@redhat.com>
3212
3213 * c-pretty-print.c (c_pretty_printer::statement): Use TDF_NONE
3214 rather than 0.
3215
31db0fe0
ML
32162018-06-08 Martin Liska <mliska@suse.cz>
3217
3218 * c-attribs.c (handle_bnd_variable_size_attribute): Remove support
3219 for MPX (macros, related functions, fields in cgraph_node, ...).
3220 (handle_bnd_legacy): Likewise.
3221 (handle_bnd_instrument): Likewise.
3222 * c.opt: Likewise.
3223
fe16acf2
JJ
32242018-06-06 Jakub Jelinek <jakub@redhat.com>
3225
3226 PR c++/86068
3227 * c-cppbuiltin.c (c_cpp_builtins): Fix a typo, set
3228 __cpp_transactional_memory to 201500 instead of 210500.
3229
4dbdb49b
JM
32302018-06-06 Jason Merrill <jason@redhat.com>
3231
3232 PR c++/85710 - ICE with -Wmemset-elt-size.
3233 * c-warn.c (warn_for_memset): Don't crash on incomplete element type.
3234
f8ad043f
JM
32352018-06-01 Jason Merrill <jason@redhat.com>
3236
3237 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_deduction_guides to
3238 201703.
3239
abc24d93
EB
32402018-06-01 Eric Botcazou <ebotcazou@adacore.com>
3241
3242 * c-ada-spec.c (dump_ada_declaration) <TYPE_DECL>: Generate a forward
3243 declaration for a typedef independently of whether the declaration of
3244 the subtype is generated.
3245
d258f4aa
MS
32462018-05-31 Martin Sebor <msebor@redhat.com>
3247
3248 PR c/82063
3249 * c.opt (-Wno-alloc-size-larger-than): New option.
3250
b67b9225
DP
32512018-04-22 David Pagan <dave.pagan@oracle.com>
3252
3253 PR c/55976
3254 * c-opts.c (c_common_post_options): Set default for warn_return_type
ab20d992 3255 for C++/C++ with ObjC extensions only. For C, makes it possible to
b67b9225
DP
3256 differentiate between default (no option), -Wreturn-type, and
3257 -Wno-return-type.
3258
04eb9c55
JM
32592018-05-29 Jason Merrill <jason@redhat.com>
3260
3261 * c.opt (Winit-list-lifetime): New flag.
3262
b0c31bc6
BE
32632018-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
3264
3265 * c-lex.c (get_fileinfo): Use splay_tree_compare_strings and
3266 splay_tree_delete_pointers.
3267
44284983
JJ
32682018-05-26 Jakub Jelinek <jakub@redhat.com>
3269
3270 PR bootstrap/85921
3271 * c-warn.c (diagnose_mismatched_attributes): Remove unnecessary
3272 noinline variable to workaround broken kernel headers.
3273
b46b715d
JM
32742018-05-18 Jason Merrill <jason@redhat.com>
3275
3276 * c.opt (Wdeprecated-copy): New flag.
3277
40659769
ML
32782018-05-17 Martin Liska <mliska@suse.cz>
3279
3280 * c-warn.c (overflow_warning): Do not use
3281 space in between 'G_' and '('.
3282
403962ea
JM
32832018-05-09 Jason Merrill <jason@redhat.com>
3284
3285 * c-common.c (valid_array_size_p): Add complain parameter.
3286 * c-common.h: ...which defaults to true.
3287
1c9ee609
JJ
32882018-05-11 Jakub Jelinek <jakub@redhat.com>
3289
3290 PR c/85696
3291 * c-omp.c (c_omp_predetermined_sharing): Return
3292 OMP_CLAUSE_DEFAULT_SHARED for artificial vars with integral type.
3293
19916065
ML
32942018-05-11 Martin Liska <mliska@suse.cz>
3295
92a285c1 3296 PR sanitizer/85556
19916065
ML
3297 * c-attribs.c (handle_no_sanitize_attribute): Iterate all
3298 TREE_LIST values.
3299
79e7b1fe
JJ
33002018-05-10 Jakub Jelinek <jakub@redhat.com>
3301
3302 PR c++/85662
3303 * c-common.h (fold_offsetof_1): Removed.
3304 (fold_offsetof): Add TYPE argument defaulted to size_type_node and
3305 CTX argument defaulted to ERROR_MARK.
3306 * c-common.c (fold_offsetof_1): Renamed to ...
3307 (fold_offsetof): ... this. Remove wrapper function. Add TYPE
3308 argument, convert the pointer constant to TYPE and use size_binop
3309 with PLUS_EXPR instead of fold_build_pointer_plus if type is not
3310 a pointer type. Adjust recursive calls.
3311
86c12f76
EB
33122018-05-10 Eric Botcazou <ebotcazou@adacore.com>
3313
3314 PR c++/85400
3315 * c-attribs.c (handle_visibility_attribute): Do not set no_add_attrs.
3316
ee336e84
NS
33172018-05-07 Nathan Sidwell <nathan@acm.org>
3318
3319 * c.opt (ffor-scope): Remove functionality, issue warning.
3320
6c072e21
NS
33212018-05-03 Nathan Sidwell <nathan@acm.org>
3322
3323 * c.opt (ffriend-injection): Remove functionality, issue warning.
3324
2cc7d3a7
DM
33252018-05-01 David Malcolm <dmalcolm@redhat.com>
3326
3327 PR c/84258
3328 * c-format.c (struct format_check_results): Add field
3329 "number_non_char".
3330 (check_format_info): Initialize it, and warn if encountered.
3331 (check_format_arg): Distinguish between wide char and
3332 everything else when detecting arrays of non-char.
3333
7761dfbe
DM
33342018-04-30 David Malcolm <dmalcolm@redhat.com>
3335
3336 * c-format.c (get_corrected_substring): Update for
3337 location_get_source_line returning a char_span. Use a char_span
3338 when handling the prefix of the correction.
3339 * c-indentation.c (get_visual_column): Update for
3340 location_get_source_line returning a char_span.
3341 (get_first_nws_vis_column): Likewise.
3342
62e98ef1
DM
33432018-03-29 David Malcolm <dmalcolm@redhat.com>
3344
3345 PR c++/84269
3346 * known-headers.cc (get_stdlib_header_for_name): Add various names
3347 from <assert.h>, <string.h>, and <memory.h>; add more names from
3348 <stdio.h>.
3349
a7dea617
JJ
33502018-03-27 Jakub Jelinek <jakub@redhat.com>
3351
3352 PR c++/85061
3353 * c-common.c (fold_offsetof_1) <case COMPOUND_EXPR>: Assert that
3354 get_base_address of the second operand is a VAR_P, rather than the
3355 operand itself, and use gcc_checking_assert instead of gcc_assert.
3356
889a3a30
MP
33572018-03-23 Marek Polacek <polacek@redhat.com>
3358
3359 PR c++/85045
3360 * c-pretty-print.c (c_pretty_printer::multiplicative_expression)
3361 <case RDIV_EXPR>: Tweak condition.
3362
452154b9
EB
33632018-03-20 Eric Botcazou <ebotcazou@adacore.com>
3364
3365 * c-ada-spec.c (pp_ada_tree_identifier): Deal specifically with _Bool.
3366
63ecb626
JJ
33672018-03-16 Jakub Jelinek <jakub@redhat.com>
3368
ce811fc4
JJ
3369 PR c/84909
3370 * c-warn.c (conversion_warning): Replace "to to" with "to" in
3371 diagnostics.
3372
63ecb626
JJ
3373 PR c/84910
3374 * c-warn.c (diagnose_mismatched_attributes): Remove trailing space from
3375 diagnostics.
3376
a1295eec
RB
33772018-03-16 Richard Biener <rguenther@suse.de>
3378
3379 PR c/84873
3380 * c-gimplify.c (c_gimplify_expr): Revert previous change. Instead
3381 unshare the possibly folded expression.
3382
919674fb
RB
33832018-03-15 Richard Biener <rguenther@suse.de>
3384
3385 PR c/84873
3386 * c-gimplify.c (c_gimplify_expr): Do not fold expressions.
3387
f99309b2
MS
33882018-03-13 Martin Sebor <msebor@redhat.com>
3389
3390 PR tree-optimization/84725
3391 * c-attribs.c (handle_nonstring_attribute): Allow attribute nonstring
3392 with all three narrow character types, including their qualified forms.
3393
e9b9fa4c
MS
33942018-03-12 Martin Sebor <msebor@redhat.com>
3395
3396 PR tree-optimization/83456
ab20d992 3397 * c-common.c (check_function_restrict): Return bool.
e9b9fa4c
MS
3398 Restore checking of bounded built-in functions.
3399 (check_function_arguments): Also return the result
3400 of warn_for_restrict.
ab20d992
JJ
3401 * c-common.c (check_function_restrict): Return bool.
3402 * c-warn.c (warn_for_restrict): Return bool.
e9b9fa4c 3403
0805d020
MP
34042018-03-02 Marek Polacek <polacek@redhat.com>
3405
3406 PR c++/84171
3407 * c-warn.c (warn_for_sign_compare): Bail out if any of the operands
3408 is erroneous.
3409
ed2a2f08
TS
34102018-03-02 Thomas Schwinge <thomas@codesourcery.com>
3411
3412 * c-attribs.c (c_common_attribute_table): Remove "cilk simd
3413 function".
3414
90abdde0
MP
34152018-03-01 Marek Polacek <polacek@redhat.com>
3416
3417 PR c++/84639
3418 * c-attribs.c (common_handle_aligned_attribute): Don't use invalid
3419 alignment in computation.
3420
c6db43fa
EB
34212018-02-28 Eric Botcazou <ebotcazou@adacore.com>
3422
3423 * c-ada-spec.c (dump_ada_node) <NULLPTR_TYPE>: New case.
3424 <REAL_TYPE>: Deal specifically with _Float128/__float128.
3425
9e25c7ed
EB
34262018-02-28 Eric Botcazou <ebotcazou@adacore.com>
3427
3428 * c-ada-spec.c (dump_ada_double_name) <ENUMERAL_TYPE>: New case.
3429 (is_char_array): Take a type instead of a declaration.
3430 (dump_ada_array_type): Likewise.
3431 (is_simple_enum): Minor tweak.
3432 (dump_ada_enum_type): New function extracted from...
3433 (dump_ada_node) <ENUMERAL_TYPE>: ...here. Invoke it.
3434 <INTEGER_TYPE>: Remove unreachable code.
3435 <RECORD_TYPE>: Likewise. Minor tweaks.
3436 (dump_nested_type) <ARRAY_TYPE>: Adjust to above changes.
3437 <ENUMERAL_TYPE>: New case.
3438 <RECORD_TYPE>: Factor out common code.
3439 (dump_ada_declaration) <ARRAY_TYPE>: Adjust to above changes.
3440 Minor tweaks. Deal with enumeral types.
3441 (dump_ada_structure): Minor tweaks.
3442
09de3550
EB
34432018-02-28 Eric Botcazou <ebotcazou@adacore.com>
3444
3445 * c-ada-spec.c (dump_ada_node) <POINTER_TYPE>: Do not use generic
3446 address for incomplete structures.
3447 (dump_forward_type): Do not bail out for incomplete structures.
3448 (dump_ada_declaration): Do not special-case incomplete structures
3449 for subtypes. Dump them as null records for types.
3450
095d8d4b
EB
34512018-02-28 Eric Botcazou <ebotcazou@adacore.com>
3452
3453 * c-ada-spec.c (dump_ada_import): Use boolean and fix formatting.
3454 (is_char_array): Fix formatting.
3455 (dump_template_types): Likewise.
3456 (dump_generic_ada_node): Rename into...
3457 (dump_ada_node): ...this.
3458 <POINTER_TYPE>: Remove superfluous space. Use generic address for
3459 incomplete structures and not for empty structures. Do not use it
3460 when forward declarations are needed.
3461 (dump_forward_type): New function.
3462 (dump_nested_types): Remove FORWARD parameter. Do not consider
3463 TREE_VISITED and do not generate a forward declaration. Only dump
3464 original nested types for nested declaration.
3465 (dump_nested_type) <POINTER_TYPE>: Call dump_forward_type.
3466 <ARRAY_TYPE>: Likewise if the component type is an anonymous pointer.
3467 <RECORD_TYPE>: Do not consider TREE_VISITED.
3468 (dump_ada_declaration): Use booleans and fix formatting throughout.
3469 <TYPE_DECL>: Skip incomplete structures and not empty structures.
3470 Call dump_forward_type instead of dump_nested_types for a typedef.
3471 Remove superfluous check and adjust call to dump_nested_types.
3472 <POINTER_TYPE>: Call dump_forward_type and fall through.
3473 (dump_ada_struct_decl): Rename into...
3474 (dump_ada_structure): ...this. Do not special-case empty structures.
3475
d4cfd486
MS
34762018-02-27 Martin Sebor <msebor@redhat.com>
3477
3478 PR c++/83871
3479 * c.opt (-Wmissing-attributes): New option.
3480
b22dbd03
ML
34812018-02-21 Martin Liska <mliska@suse.cz>
3482
3483 * c.opt (Wcatch-value=): Add IntegerRange.
3484
883dfe2a
JM
34852018-02-15 Jason Merrill <jason@redhat.com>
3486
3487 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_deduction_guides.
3488
0444aa9c
NS
34892018-02-09 Nathan Sidwell <nathan@acm.org>
3490
3491 PR c/84293
3492 * c-common.h (strict_aliasing_warning): Drop OTYPE arg, insert LOC
3493 arg.
3494 * c-warn.c (strict_aliasing_warning): Drop OTYPE arg, require LOC
3495 arg. Adjust.
3496
cea71f0a
MS
34972018-02-09 Martin Sebor <msebor@redhat.com>
3498
3499 PR lto/84212
3500 * c.opt (-Wstringop-overflow, -Warray-bounds): Add LTO.
3501 (-Walloc-size-larger-than, -Wformat-truncation=): Same.
3502 (-Wmaybe-uninitialized, -Wnonnull, -Wrestrict): Same.
3503 (-Wstrict-overflow, -Wsuggest-attribute): Same.
3504 (-Wuninitialized): Same.
3505
8c8b7be5
EB
35062018-02-09 Eric Botcazou <ebotcazou@adacore.com>
3507
3508 * c-ada-spec.c (dump_ada_declaration): Do not generate the 'constant'
3509 keyword for components.
3510
7c30b12a
PC
35112018-02-02 Paolo Carlini <paolo.carlini@oracle.com>
3512
3513 * c-common.h (DECL_UNNAMED_BIT_FIELD): New.
3514
eece7fe5
JK
35152018-02-02 Julia Koval <julia.koval@intel.com>
3516
3517 * c-common.h (omp_clause_mask): Move to wide_int_bitmask.h.
3518
7d07a93a
MP
35192018-01-29 Marek Polacek <polacek@redhat.com>
3520
3521 PR c/83966
3522 * c-format.c (check_function_format): Check current_function_decl.
3523
53723269
JJ
35242018-01-27 Jakub Jelinek <jakub@redhat.com>
3525
3526 * c-cppbuiltin.c (c_cpp_builtins): Use ggc_strdup for the fp_suffix
3527 argument.
3528 (LAZY_HEX_FP_VALUES_CNT): Define.
3529 (lazy_hex_fp_values): Allow up to LAZY_HEX_FP_VALUES_CNT lazy hex fp
3530 values rather than just 12.
3531 (builtin_define_with_hex_fp_value): Likewise.
3532
7365279f
BK
35332018-01-18 Boris Kolpackov <boris@codesynthesis.com>
3534
92a285c1
ML
3535 PR other/70268
3536 * c.opt (-fmacro-prefix-map): New option.
3537 * c-opts.c (c_common_handle_option): Handle it.
3538 * c-lex.c (init_c_lex): Set remap_filename cpp callback.
3539 * c-ppoutput.c (init_pp_output): Likewise.
7365279f 3540
bb9869d5
DM
35412018-01-17 David Malcolm <dmalcolm@redhat.com>
3542
3543 PR c++/83814
3544 * c-common.c (fold_for_warn): Move to c/c-fold.c and cp/expr.c.
3545
68dc87c3
EB
35462018-01-10 Eric Botcazou <ebotcazou@adacore.com>
3547
3548 * c-ada-spec.c (dump_number): Add FLOAT_P parameter.
3549 Skip 'f' and 'F' characters if it is true.
3550 (store_ada_macro): Minor tweak.
3551 (dump_ada_macros) <CPP_COMMENT>: Likewise.
3552 <CPP_WSTRING>: Likewise.
3553 <CPP_STRING>: Output '&' in the buffer if not the first string.
3554 <CPP_NUMBER>: Adjust calls to dump_number.
3555
9a004410
DM
35562018-01-10 David Malcolm <dmalcolm@redhat.com>
3557
3558 PR c++/43486
3559 * c-common.c: Include "selftest.h".
3560 (get_atomic_generic_size): Perform the test for integral type
3561 before the range test for any integer constant, fixing indentation
3562 of braces. Call fold_for_warn before testing for an INTEGER_CST.
3563 (reject_gcc_builtin): Strip any location wrapper from EXPR.
3564 (selftest::test_fold_for_warn): New function.
3565 (selftest::c_common_c_tests): New function.
3566 (selftest::c_family_tests): Call it, and
3567 selftest::c_pretty_print_c_tests.
3568 * c-common.h (selftest::c_pretty_print_c_tests): New decl.
3569 * c-format.c (check_format_arg): Convert VAR_P check to a
3570 fold_for_warn.
3571 * c-pretty-print.c: Include "selftest.h".
3572 (pp_c_cast_expression): Don't print casts for location wrappers.
3573 (selftest::assert_c_pretty_printer_output): New function.
3574 (ASSERT_C_PRETTY_PRINTER_OUTPUT): New macro.
3575 (selftest::test_location_wrappers): New function.
3576 (selftest::c_pretty_print_c_tests): New function.
3577 * c-warn.c (warn_for_memset): Call fold_for_warn on the arguments.
3578
5c0caeb3
RS
35792018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
3580 Alan Hayward <alan.hayward@arm.com>
3581 David Sherwood <david.sherwood@arm.com>
3582
3583 * c-common.c (c_common_type_for_mode): Handle MODE_VECTOR_BOOL.
3584
73a699ae
RS
35852018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
3586 Alan Hayward <alan.hayward@arm.com>
3587 David Sherwood <david.sherwood@arm.com>
3588
3589 * c-ubsan.c (ubsan_instrument_shift): Treat GET_MODE_BITSIZE
3590 as polynomial.
3591
928686b1
RS
35922018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
3593 Alan Hayward <alan.hayward@arm.com>
3594 David Sherwood <david.sherwood@arm.com>
3595
3596 * c-common.c (vector_types_convertible_p, c_build_vec_perm_expr)
3597 (convert_vector_to_array_for_subscript): Handle polynomial
3598 TYPE_VECTOR_SUBPARTS.
3599 (c_common_type_for_mode): Check valid_vector_subparts_p.
3600 * c-pretty-print.c (pp_c_initializer_list): Handle polynomial
3601 VECTOR_CST_NELTS.
3602
85ec4feb
JJ
36032018-01-03 Jakub Jelinek <jakub@redhat.com>
3604
3605 Update copyright years.
3606
170a8bd6 36072017-12-22 Mike Stump <mikestump@comcast.net>
92a285c1 3608 Eric Botcazou <ebotcazou@adacore.com>
170a8bd6
EB
3609
3610 * c-pragma.c (init_pragma): Register pragma GCC unroll.
3611 * c-pragma.h (enum pragma_kind): Add PRAGMA_UNROLL.
3612
ab20d992 36132017-12-22 Alexandre Oliva <aoliva@redhat.com>
18408e96
AO
3614
3615 PR debug/83527
3616 PR debug/83419
3617 * c-semantics.c (only_debug_stmts_after_p): New.
3618 (pop_stmt_list): Clear side effects in debug-only stmt list.
3619 Check for single nondebug stmt followed by debug stmts only.
3620
c12d20d4
AO
36212017-12-21 Alexandre Oliva <aoliva@redhat.com>
3622
3623 PR debug/83419
3624 * c-semantics.c (pop_stmt_list): Propagate side effects from
3625 single nondebug stmt to container list.
3626
01512446
JJ
36272017-12-19 Jakub Jelinek <jakub@redhat.com>
3628
3629 * known-headers.cc (get_stdlib_header_for_name): Replace Yoda
3630 conditions with typical order conditions.
3631
82cfbd01
MP
36322017-12-18 Marek Polacek <polacek@redhat.com>
3633
3634 * c-warn.c (warn_logical_operator): Return early if -Wlogical-op is
3635 not in effect.
3636
99da11ec
MS
36372017-12-17 Martin Sebor <msebor@redhat.com>
3638
3639 * c-attribs.c (common_handle_aligned_attribute): Avoid issuing
3640 an error for attribute warn_if_not_aligned.
3641
cc8bea0a
MS
36422017-12-16 Martin Sebor <msebor@redhat.com>
3643
3644 PR tree-optimization/78918
3645 * c-common.c (check_function_restrict): Avoid checking built-ins.
3646 * c.opt (-Wrestrict): Include in -Wall.
3647
4849deb1
JJ
36482017-12-15 Jakub Jelinek <jakub@redhat.com>
3649
3650 * c-attribs.c (c_common_attribute_table,
3651 c_common_format_attribute_table): Swap affects_type_identity
3652 and handler fields, adjust comments.
3653
c65e18d3
BE
36542017-12-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
3655
3656 * c.opt (Wcast-function-type): New warning option.
3657 * c-lex.c (get_fileinfo): Avoid warning.
3658 * c-ppoutput.c (scan_translation_unit_directives_only): Remove cast.
3659
2004617a
QZ
36602017-12-14 Qing Zhao <qing.zhao@oracle.com>
3661
7365279f 3662 PR middle_end/79538
2004617a
QZ
3663 * c-cppbuiltin.c (builtin_define_with_hex_fp_value):
3664 Adjust the size of buf1 and buf2, add a new buf to avoid
3665 format-overflow warning.
3666
ab20d992 36672017-12-12 Alexandre Oliva <aoliva@redhat.com>
96a95ac1
AO
3668
3669 * c-semantics.c (pop_stmt_list): Move begin stmt marker into
3670 subsequent statement list.
3671
5d9ae53d
MS
36722017-12-07 Martin Sebor <msebor@redhat.com>
3673
3674 PR c/81544
3675 PR c/81566
3676 * c-attribs.c (attr_aligned_exclusions): New array.
3677 (attr_alloc_exclusions, attr_cold_hot_exclusions): Same.
3678 (attr_common_exclusions, attr_const_pure_exclusions): Same.
3679 (attr_gnu_inline_exclusions, attr_inline_exclusions): Same.
3680 (attr_noreturn_exclusions, attr_returns_twice_exclusions): Same.
3681 (attr_warn_unused_result_exclusions): Same.
3682 (handle_hot_attribute, handle_cold_attribute): Simplify.
3683 (handle_const_attribute): Warn on function returning void.
3684 (handle_pure_attribute): Same.
3685 (handle_aligned_attribute): Diagnose conflicting attribute
3686 specifications.
3687 * c-warn.c (diagnose_mismatched_attributes): Simplify.
3688
c79144f8
DM
36892017-12-06 David Malcolm <dmalcolm@redhat.com>
3690
3691 PR c/83236
3692 * c-common.c (selftest::c_family_tests): Call
3693 selftest::c_spellcheck_cc_tests.
3694 * c-common.h (selftest::c_spellcheck_cc_tests): New decl.
3695 * c-spellcheck.cc: Include "selftest.h".
3696 (name_reserved_for_implementation_p): New function.
3697 (should_suggest_as_macro_p): New function.
3698 (find_closest_macro_cpp_cb): Move the check for NT_MACRO to
3699 should_suggest_as_macro_p and call it.
3700 (selftest::test_name_reserved_for_implementation_p): New function.
3701 (selftest::c_spellcheck_cc_tests): New function.
3702 * c-spellcheck.h (name_reserved_for_implementation_p): New decl.
3703
613bc14f
DM
37042017-12-06 David Malcolm <dmalcolm@redhat.com>
3705
3706 * c-spellcheck.cc: New file, taken from macro-handling code in
3707 spellcheck-tree.c.
3708 * c-spellcheck.h: New file, taken from macro-handling code in
3709 spellcheck-tree.h.
3710
e76c7157
JJ
37112017-12-01 Jakub Jelinek <jakub@redhat.com>
3712
3713 * c-attribs.c (c_common_attribute_table): Remove "cilk simd function"
3714 attribute.
3715 (handle_simd_attribute): Don't check for "cilk simd function"
3716 attribute. Reindent, formatting changes.
3717
b0da4034
JK
37182017-11-30 Julia Koval <julia.koval@intel.com>
3719
3720 * c-common.h (inv_list): Remove.
3721
058f0b9e
JJ
37222017-11-28 Jakub Jelinek <jakub@redhat.com>
3723
3724 PR sanitizer/81275
3725 * c-common.c (c_switch_covers_all_cases_p_1,
3726 c_switch_covers_all_cases_p): New functions.
3727 * c-common.h (c_switch_covers_all_cases_p): Declare.
3728
5e9d6aa4 37292017-11-28 Julia Koval <julia.koval@intel.com>
92a285c1 3730 Sebastian Peryt <sebastian.peryt@intel.com>
5e9d6aa4
JK
3731
3732 * array-notation-common.c: Delete.
3733 * c-cilkplus.c: Ditto.
3734 * c-common.c (_Cilk_spawn, _Cilk_sync, _Cilk_for): Remove.
3735 * c-common.def (ARRAY_NOTATION_REF): Remove.
3736 * c-common.h (RID_CILK_SPAWN, build_array_notation_expr,
3737 build_array_notation_ref, C_ORT_CILK, c_check_cilk_loop,
3738 c_validate_cilk_plus_loop, cilkplus_an_parts,
3739 cilk_ignorable_spawn_rhs_op,
3740 cilk_recognize_spawn): Remove.
3741 * c-gimplify.c (CILK_SPAWN_STMT): Remove.
3742 * c-omp.c: Remove CILK_SIMD check.
3743 * c-pragma.c: Ditto.
3744 * c-pragma.h: Remove CILK related pragmas.
3745 * c-pretty-print.c (c_pretty_printer::postfix_expression): Remove
3746 ARRAY_NOTATION_REF condition.
3747 (c_pretty_printer::expression): Ditto.
3748 * c.opt (fcilkplus): Remove.
3749 * cilk.c: Delete.
3750
1af4ebf5
MG
37512017-11-21 Marc Glisse <marc.glisse@inria.fr>
3752
3753 * c-pretty-print.c (pp_c_additive_expression,
3754 c_pretty_printer::expression): Handle POINTER_DIFF_EXPR.
3755
d44ed508
JJ
37562017-11-21 Jakub Jelinek <jakub@redhat.com>
3757
7d2f0f9b
JJ
3758 * c-common.c (get_nonnull_operand): Use tree_to_uhwi.
3759
d44ed508
JJ
3760 PR c++/83059
3761 * c-common.c (get_atomic_generic_size): Use TREE_INT_CST_LOW
3762 instead of tree_to_uhwi, formatting fix.
3763
26edace6
DM
37642017-11-20 David Malcolm <dmalcolm@redhat.com>
3765
3766 PR c/81404
3767 * known-headers.cc: New file, based on material from c/c-decl.c.
3768 (suggest_missing_header): Copied as-is.
3769 (get_stdlib_header_for_name): New, based on get_c_name_hint but
3770 heavily edited to add C++ support. Add some knowledge about
3771 <limits.h>, <stdint.h>, and <wchar.h>.
3772 * known-headers.h: Likewise.
3773
6c7a259b
DM
37742017-11-20 David Malcolm <dmalcolm@redhat.com>
3775
3776 * c-common.h (enum lookup_name_fuzzy_kind): Move to name-hint.h.
3777 (lookup_name_fuzzy): Likewise. Convert return type from
3778 const char * to name_hint. Add location_t param.
3779 * name-hint.h: New header.
3780
f9c59f7e
JJ
37812017-11-19 Jakub Jelinek <jakub@redhat.com>
3782
3783 PR c/66618
3784 PR c/69960
3785 * c-common.h (c_fully_fold): Add LVAL argument defaulted to false.
3786
1e39313a
JM
37872017-11-16 Joseph Myers <joseph@codesourcery.com>
3788
3789 * c.opt (-std=c17, std=gnu17, -std=iso9899:2017): Refer to 2018
3790 expected publication date of C17.
3791 (-std=c18, -std=gnu18, -std=iso9899:2018): New option aliases.
3792
3ca0dc60
JM
37932017-11-15 Joseph Myers <joseph@codesourcery.com>
3794
3795 PR c/81156
3796 * c-common.c (c_common_reswords): Add __builtin_tgmath.
3797 * c-common.h (enum rid): Add RID_BUILTIN_TGMATH.
3798
025d57f0
MS
37992017-11-10 Martin Sebor <msebor@redhat.com>
3800
3801 PR c/81117
3802 * c-common.c (catenate_strings): Use memcpy instead of strncpy.
3803 * c-warn.c (sizeof_pointer_memaccess_warning): Handle arrays.
3804 * c.opt (-Wstringop-truncation): New option.
3805
1b6fa695
ML
38062017-11-06 Martin Liska <mliska@suse.cz>
3807
3808 PR middle-end/82404
3809 * c-opts.c (c_common_post_options): Set -Wreturn-type for C++
3810 FE.
3811 * c.opt: Set default value of warn_return_type.
3812
64a5912c
DM
38132017-10-31 David Malcolm <dmalcolm@redhat.com>
3814
3815 * c-common.c (binary_op_error): Update for renaming of
3816 error_at_rich_loc.
3817 (c_parse_error): Likewise.
3818 * c-warn.c (warn_logical_not_parentheses): Likewise for
3819 renaming of inform_at_rich_loc.
3820 (warn_for_restrict): Likewise for renaming of
3821 warning_at_rich_loc_n.
3822
c76dc9c3
JM
38232017-10-30 Joseph Myers <joseph@codesourcery.com>
3824
3825 * c.opt (std=c17, std=gnu17, std=iso9899:2017): New options.
3826 * c-opts.c (set_std_c17): New function.
3827 (c_common_init_options): Use gnu17 as default C version.
3828 (c_common_handle_option): Handle -std=c17 and -std=gnu17.
3829
ee5fd23a
MM
38302017-10-27 Michael Meissner <meissner@linux.vnet.ibm.com>
3831
3832 * c-cppbuiltin.c (mode_has_fma): Add support for PowerPC KFmode.
3833 (c_cpp_builtins): If a machine has a fast fma _Float<N> and
3834 _Float<N>X variant, define __FP_FAST_FMA<N> and/or
3835 __FP_FAST_FMA<N>X.
3836
d1047465
MP
38372017-10-23 Marek Polacek <polacek@redhat.com>
3838
3839 PR c/82681
3840 * c-warn.c (warnings_for_convert_and_check): Fix typos.
3841
9e878cf1
EB
38422017-10-19 Eric Botcazou <ebotcazou@adacore.com>
3843
3844 * c-common.c (check_builtin_function_arguments): Also check arguments
3845 of __builtin_alloca_with_align_and_max.
3846
89b6abbb
DM
38472017-10-17 David Malcolm <dmalcolm@redhat.com>
3848
3849 * c-format.c (format_warning_at_char): Pass UNKNOWN_LOCATION
3850 rather than NULL to format_warning_va.
3851 (check_format_types): Likewise when calling format_type_warning.
3852 Remove code to extract source_ranges and source_range * in favor
3853 of just a location_t.
3854 (format_type_warning): Convert source_range * param to a
3855 location_t.
3856
39382c09
JJ
38572017-10-13 Jakub Jelinek <jakub@redhat.com>
3858
3859 * c-gimplify.c (c_gimplify_expr): Handle [LR]ROTATE_EXPR like
3860 [LR]SHIFT_EXPR.
3861
62e1c678
DM
38622017-10-12 David Malcolm <dmalcolm@redhat.com>
3863
3864 * c-common.c (enum missing_token_insertion_kind): New enum.
3865 (get_missing_token_insertion_kind): New function.
3866 (maybe_suggest_missing_token_insertion): New function.
3867 * c-common.h (maybe_suggest_missing_token_insertion): New decl.
3868
b90c9338
NS
38692017-10-11 Nathan Sidwell <nathan@acm.org>
3870
3871 * c-opts.c (add_prefixed_path): Change chain to incpath_kind.
3872 (c_common_handle_option): Update incpath_kind names.
3873
3a266bcd
ML
38742017-10-11 Martin Liska <mliska@suse.cz>
3875
3876 PR sanitizer/82490
3877 * c-attribs.c (handle_no_sanitize_attribute): Report directly
3878 Wattributes warning.
3879
8e6cdc90
RS
38802017-10-10 Richard Sandiford <richard.sandiford@linaro.org>
3881
3882 * c-ada-spec.c (dump_generic_ada_node): Use wi::to_wide when
3883 operating on trees as wide_ints.
3884 * c-common.c (pointer_int_sum): Likewise.
3885 * c-pretty-print.c (pp_c_integer_constant): Likewise.
3886 * c-warn.c (match_case_to_enum_1): Likewise.
3887 (c_do_switch_warnings): Likewise.
3888 (maybe_warn_shift_overflow): Likewise.
3889
802b38c9
JJ
38902017-10-10 Jakub Jelinek <jakub@redhat.com>
3891
3892 PR c/82437
3893 * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_wide
3894 instead of wide_int::from.
3895
4e34b338
JJ
38962017-10-06 Jakub Jelinek <jakub@redhat.com>
3897
3898 PR c/82437
3899 * c-warn.c (warn_tautological_bitwise_comparison): Instead of
3900 using to_widest use wide_int with the larger of the two precisions.
3901
4bc4b2b4
BE
39022017-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
3903
3904 * c-pretty-print.c (pp_c_parameter_type_list): Print ... for variadic
3905 functions.
3906
a1488398
RS
39072017-10-02 Richard Sandiford <richard.sandiford@linaro.org>
3908
3909 * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_widest
3910 when combining the original unconverted comparison operands.
3911
01c9fb68
JJ
39122017-09-29 Jakub Jelinek <jakub@redhat.com>
3913
3914 * c-attribs.c (handle_noipa_attribute): Don't add "stack_protect"
3915 attribute.
3916
6e3e8419
EB
39172017-09-29 Eric Botcazou <ebotcazou@adacore.com>
3918
3919 * c-ada-spec.c (to_ada_name): Add index parameter.
3920 (pp_ada_tree_identifier): Likewise.
3921 (dump_ada_macros): Adjust call to to_ada_name.
3922 (struct overloaded_name_hash): New type.
3923 (struct overloaded_name_hasher): Likewise.
3924 (overloaded_names): New hash table.
3925 (compute_overloading_index): New function.
3926 (dump_ada_decl_name): Call it and pass the result to
3927 pp_ada_tree_identifier.
3928 (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
3929 (dump_ada_function_declaration): Likewise.
3930 (dump_generic_ada_node): Likewise.
3931 (print_constructor): Likewise.
3932 (print_destructor): Likewise.
3933 (dump_ada_specs): Delete overloaded_names table.
3934
79310774
EB
39352017-09-29 Eric Botcazou <ebotcazou@adacore.com>
3936
3937 * c-ada-spec.c (max_ada_macros): Move around.
3938 (store_ada_macro_index): Likewise.
3939 (source_file): Rename into...
3940 (macro_source_file): ...this.
3941 (count_ada_macro): Move around.
3942 (store_ada_macro): Likewise.
3943 (compare_macro): Likewise.
3944 (print_ada_macros): Merge in...
3945 (dump_ada_macros): ...this.
3946 (source_file_base): Rename into...
3947 (current_source_file): ...this.
3948 (print_comment): Move around.
3949 (dump_ada_nodes): Call dump_ada_declaration directly.
3950 (struct with): Change type of limited field to bool.
3951 (append_withs): Change type of limited_access parameter to bool.
3952 (pp_ada_tree_identifie): Likewise.
3953 (dump_ada_decl_nam): Likewise.
3954 (dump_generic_ada_node): Likewise. Do not print the return type.
3955 (to_ada_name): Change type of space_found parameter to bool.
3956 (dump_ada_function_declaration): Return void and change type of
3957 parameters to bool. Also print the return type for a function.
3958 (print_ada_methods): Rename into...
3959 (dump_ada_methods): ...this.
3960 (print_ada_declaration): Rename into ...
3961 (dump_ada_declaration): ...this. Do not print the return type.
3962 (print_ada_struct_decl): Rename into...
3963 (dump_ada_struct_decl): ...this.
3964
7d386d45
JJ
39652017-09-29 Jakub Jelinek <jakub@redhat.com>
3966
3967 * c-attribs.c (handle_packed_attribute): Test DECL_C_BIT_FIELD
3968 rather than DECL_INITIAL.
3969 (common_handle_aligned_attribute): Likewise.
3970
ab20d992 39712017-09-20 Alexandre Oliva <aoliva@redhat.com>
9ed32e27
AO
3972
3973 * c.opt (gen-decls): Add RejectNegative.
3974
026a79f7
AS
39752017-09-15 Andrew Sutton <andrew.n.sutton@gmail.com>
3976 Jakub Jelinek <jakub@redhat.com>
3977
3978 Add support for -std=c++2a.
3979 * c-common.h (cxx_dialect): Add cxx2a as a dialect.
3980 * opt.c: Add options for -std=c++2a and -std=gnu++2a.
3981 * c-opts.c (set_std_cxx2a): New.
3982 (c_common_handle_option): Set options when -std=c++2a is enabled.
3983 (c_common_post_options): Adjust comments.
3984 (set_std_cxx14, set_std_cxx17): Likewise.
3985
4a8ca690
EB
39862017-09-15 Eric Botcazou <ebotcazou@adacore.com>
3987
3988 * c-pragma.c (handle_pragma_scalar_storage_order): Expand on error
3989 message for non-uniform endianness and issue a warning in C++.
3990
7b936140
JJ
39912017-09-15 Jakub Jelinek <jakub@redhat.com>
3992
3993 * c.opt (Wc++1z-compat): Change from option to undocumented alias.
3994 (Wc++17-compat): Change from undocumented alias to option.
3995 (Wnoexcept-type): Enable by Wc++17-compat instead of Wc++1z-compat,
3996 change C++1z to C++17 in description.
3997 (std=c++1z, std=gnu++1z): Change from option to undocumented
3998 deprecated alias.
3999 (std=c++17, std=gnu++17): Change from undocumented alias to option.
4000 Adjust description.
4001 * c-common.h (enum cxx_dialect): Rename cxx1z to cxx17.
4002 * c-opts.c (set_std_cxx1z): Rename to ...
4003 (set_std_cxx17): ... this.
4004 (c_common_handle_option): Rename OPT_std_c__1z to OPT_std_c__17
4005 and OPT_std_gnu__1z to OPT_std_gnu__17. Adjust set_std_cxx1z
7365279f 4006 caller.
7b936140
JJ
4007 (c_common_post_options): Use cxx17 instead of cxx1z. Adjust
4008 comments.
4009
12263f13
L
40102017-09-12 H.J. Lu <hongjiu.lu@intel.com>
4011
4012 * c-attribs.c (common_handle_aligned_attribute): Don't warn
4013 function alignment if warn_if_not_aligned_p is true.
4014
6836632e
NS
40152017-09-12 Nathan Sidwell <nathan@acm.org>
4016
4017 * c-common.c (field_decl_cmp, resort_data, resort_field_decl_cmp,
4018 resort_sorted_fields): Move to c/c-decl.c.
4019 * c-common.h (field_decl_cmp, resort_sorted_fields): Delete.
4020 (struct sorted_fields_type): Move to c/c-lang.h.
4021
019bf9ad
JW
40222017-09-09 Jonathan Wakely <jwakely@redhat.com>
4023
4024 PR c++/81852
4025 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_threadsafe_static_init.
4026
bc7fe952
MP
40272017-09-04 Marek Polacek <polacek@redhat.com>
4028
4029 PR c/81783
4030 * c-warn.c (warn_tautological_bitwise_comparison): New function.
4031 (warn_tautological_cmp): Call it.
4032
ab20d992 40332017-09-01 Boris Kolpackov <boris@codesynthesis.com>
de7c2c6a
BK
4034
4035 * c-opts.c (c_common_finish): Write dependency information even if
4036 there are errors.
4037
d2e05fcb
JJ
40382017-09-01 Jakub Jelinek <jakub@redhat.com>
4039
4040 PR c/81887
4041 * c-pragma.c (omp_pragmas): Move "ordered" entry from here to ...
4042 (omp_pragmas_simd): ... here.
4043 * c-omp.c (c_finish_omp_ordered): If clauses isn't simd clause alone,
4044 create new clauses list containing just simd clause.
4045
18e2a8b8
RS
40462017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
4047 Alan Hayward <alan.hayward@arm.com>
4048 David Sherwood <david.sherwood@arm.com>
4049
4050 * c-attribs.c (vector_mode_valid_p) Fold GET_MODE_INNER call
4051 into scalar_mode_supported_p call.
4052 (handle_mode_attribute): Update call to scalar_mode_supported_p.
4053
16d22000
RS
40542017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
4055 Alan Hayward <alan.hayward@arm.com>
4056 David Sherwood <david.sherwood@arm.com>
4057
4058 * c-common.c (c_common_fixed_point_type_for_size): Use opt_scalar_mode
4059 for the mode iterator.
4060
b397965c
RS
40612017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
4062 Alan Hayward <alan.hayward@arm.com>
4063 David Sherwood <david.sherwood@arm.com>
4064
4065 * c-lex.c (interpret_fixed): Use SCALAR_TYPE_MODE.
4066 * c-common.c (c_build_vec_perm_expr): Likewise.
4067
357b7604
RS
40682017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
4069 Alan Hayward <alan.hayward@arm.com>
4070 David Sherwood <david.sherwood@arm.com>
4071
4072 * c-common.c (c_common_type_for_mode): Use as_a <scalar_int_mode>.
4073
e05c94ba
RS
40742017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
4075 Alan Hayward <alan.hayward@arm.com>
4076 David Sherwood <david.sherwood@arm.com>
4077
4078 * c-attribs.c (handle_mode_attribute): Check for a scalar_int_mode
4079 before calling targetm.addr_space.valid_pointer_mode.
4080
5c20c4af
RS
40812017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
4082 Alan Hayward <alan.hayward@arm.com>
4083 David Sherwood <david.sherwood@arm.com>
4084
4085 * c-cppbuiltin.c (c_cpp_builtins): Use opt_scalar_float_mode.
4086
c94843d2 40872017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
92a285c1
ML
4088 Alan Hayward <alan.hayward@arm.com>
4089 David Sherwood <david.sherwood@arm.com>
c94843d2
RS
4090
4091 * c-common.c (c_common_fixed_point_type_for_size): Use new mode
4092 iterators.
4093 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
4094
4e10a5a7
RS
40952017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
4096 Alan Hayward <alan.hayward@arm.com>
4097 David Sherwood <david.sherwood@arm.com>
4098
4099 * c-cppbuiltin.c (mode_has_fma): Prefix mode names with E_ in
4100 case statements.
4101
130fcab0
ML
41022017-08-29 Martin Liska <mliska@suse.cz>
4103
4104 PR other/39851
4105 * c-common.c (parse_optimize_options): Add argument to function
4106 call.
4107 * c-pragma.c (handle_pragma_diagnostic): Likewise.
4108
14e18d71
DM
41092017-08-24 David Malcolm <dmalcolm@redhat.com>
4110
4111 * c-lex.c (interpret_float): Use token location
4112 when building an EXCESS_PRECISION_EXPR.
4113
2f687306
DM
41142017-08-21 David Malcolm <dmalcolm@redhat.com>
4115
4116 * c-common.c (check_function_arguments): Add "arglogs" param; pass
4117 it to check_function_format.
4118 * c-common.h (check_function_arguments): Add vec<location_t> *
4119 param.
4120 (check_function_format): Likewise.
4121 * c-format.c (struct format_check_context): Add field "arglocs".
4122 (check_function_format): Add param "arglocs"; pass it to
4123 check_format_info.
ab20d992 4124 (check_format_info): Add param "arglocs"; use it to initialize
2f687306
DM
4125 new field of format_ctx.
4126 (check_format_arg): Pass format_ctx->arglocs to new param of
4127 check_format_info_main.
4128 (class argument_parser): New field "arglocs".
4129 (argument_parser::argument_parser): Add "arglocs_" param and use
4130 it to initialize new field.
4131 (argument_parser::check_argument_type): Pass new arglocs field to
4132 check_format_types.
4133 (check_format_info_main): Add param "arglocs", and use it when
4134 constructing arg_parser.
4135 (check_format_types): Add param "arglocs"; use it if non-NULL when
4136 !EXPR_HAS_LOCATION (cur_param) to get at location information.
4137
00aa1fa2
L
41382017-08-18 H.J. Lu <hongjiu.lu@intel.com>
4139
4140 PR c/53037
4141 * c-attribs.c (handle_warn_if_not_aligned_attribute): New.
4142 (c_common_attribute_table): Add warn_if_not_aligned.
4143 (handle_aligned_attribute): Renamed to ...
4144 (common_handle_aligned_attribute): Remove argument, name, and add
4145 argument, warn_if_not_aligned. Handle warn_if_not_aligned.
4146 (handle_aligned_attribute): New.
4147 * c.opt: Add -Wif-not-aligned and -Wpacked-not-aligned.
4148
27be025d
MS
41492017-08-14 Martin Sebor <msebor@redhat.com>
4150
4151 PR c/81117
4152 * c-attribs.c (c_common_attribute_table): Add nonstring entry.
4153 (handle_nonstring_attribute): New function.
4154
da67acb9
MS
41552017-08-14 Martin Sebor <msebor@redhat.com>
4156
4157 PR c/81117
4158 * c-format.h (T89_G): New macro.
4159 * c-format.c (local_gcall_ptr_node): New variable.
4160 (init_dynamic_diag_info): Initialize it.
4161
a8b522b4
ML
41622017-08-11 Martin Liska <mliska@suse.cz>
4163
4164 * c-opts.c (c_common_post_options): Replace ASM_OUTPUT_DEF with
4165 TARGET_SUPPORTS_ALIASES.
4166
32129a17
DM
41672017-08-10 David Malcolm <dmalcolm@redhat.com>
4168
4169 * c-common.c (c_parse_error): Add rich_location * param, using it
4170 rather implicitly using input_location.
4171 * c-common.h (c_parse_error): Add rich_location * param.
4172
30af3a2b
MP
41732017-08-09 Marek Polacek <polacek@redhat.com>
4174
4175 * c-common.c (pointer_int_sum): Use true/false instead of 1/0.
4176 (c_common_truthvalue_conversion): Likewise.
4177 * c-omp.c (c_finish_omp_atomic): Likewise.
4178 * c-common.h (build_binary_op): Update declaration.
4179
314e6352
ML
41802017-08-08 Martin Liska <mliska@suse.cz>
4181
4182 * c-ada-spec.c: Include header files.
4183 * c-ubsan.c: Likewise.
4184 * c-warn.c: Likewise.
4185
56b5041c
JJ
41862017-08-07 Jakub Jelinek <jakub@redhat.com>
4187
4188 PR c/69389
4189 * c-omp.c (c_finish_omp_atomic): Handle atomics on bitfields.
4190
db440138
EB
41912017-08-07 Eric Botcazou <ebotcazou@adacore.com>
4192
4193 * c-ada-spec.c (has_nontrivial_methods): Test for FUNCTION_DECL.
4194 (print_ada_methods): Likewise.
4195 (print_ada_declaration): Likewise.
4196
577eec56
ML
41972017-08-07 Martin Liska <mliska@suse.cz>
4198
4199 * array-notation-common.c: Add new includes.
4200 * c-format.c( handle_format_attribute): Canonicalize a format
4201 function name.
4202 * c-lex.c (c_common_has_attribute): Canonicalize name of an
4203 attribute.
4204 * c-pretty-print.c: Add new include.
4205
b854df3c
EB
42062017-08-05 Eric Botcazou <ebotcazou@adacore.com>
4207
4208 * c-ada-spec.c (has_static_fields): Look only into variables.
4209 (print_constructor): Add TYPE parameter and use it for the name.
4210 (print_destructor): Likewise.
4211 (print_ada_declaration): Adjust to new constructor/destructor names.
4212 Adjust calls to print_constructor and print_destructor.
4213 (print_ada_struct_decl): Do not test TREE_STATIC on FIELD_DECL.
4214 Look only into variables in the final loop.
4215
9f2cb25e
EB
42162017-08-01 Eric Botcazou <ebotcazou@adacore.com>
4217
4218 * c-ada-spec.c (has_static_fields): Look only into fields.
4219 (dump_generic_ada_node): Small tweak.
4220 (dump_nested_types): Look only into fields.
4221 (print_ada_declaration): Look only into methods. Small tweak.
4222 (print_ada_struct_decl): Look only into fields. Use DECL_VIRTUAL_P.
4223
f4bcd9eb
EB
42242017-08-01 Eric Botcazou <ebotcazou@adacore.com>
4225
4226 * c-ada-spec.c (print_generic_ada_decl): Pass correctly-typed constant.
4227 (dump_ada_function_declaration): Likewise.
4228 (dump_generic_ada_node): Likewise.
4229 (print_ada_declaration): Add support for const-qualified variables.
4230
f34ebeb2
ML
42312017-07-31 Martin Liska <mliska@suse.cz>
4232
4233 PR sanitize/81530
4234 * c-ubsan.c (ubsan_maybe_instrument_array_ref):
4235 Guard condition with flag_sanitize_p also with current_function_decl
4236 non-null equality.
4237 (ubsan_maybe_instrument_reference_or_call): Likewise.
4238
218e5d04
UB
42392017-07-30 Uros Bizjak <ubizjak@gmail.com>
4240
4241 * c-format.c (asm_fprintf_char_table): Add 'z' to format_chars.
4242
942047f2
EB
42432017-07-29 Eric Botcazou <ebotcazou@adacore.com>
4244
4245 * c-ada-spec.c (dump_generic_ada_node): Take into account signedness
4246 for enumeral types.
4247 (print_ada_declaration): Add missing guard for record types.
4248
a40ff0ae
JJ
42492017-07-27 Jakub Jelinek <jakub@redhat.com>
4250
4251 PR c/45784
4252 * c-omp.c (c_finish_omp_for): If the condition is wrapped in
4253 rhs of COMPOUND_EXPR(s), skip them and readd their lhs into
4254 new COMPOUND_EXPRs around the rhs of the comparison.
4255
06bd22f6
MP
42562017-07-27 Marek Polacek <polacek@redhat.com>
4257
4258 PR c/81417
4259 * c-warn.c (warn_for_sign_compare): Tweak the warning message. Print
4260 the types.
4261
036ea399
JJ
42622017-07-27 Jakub Jelinek <jakub@redhat.com>
4263
4264 * c-attribs.c (c_common_attribute_table): Add noipa attribute.
4265 (handle_noipa_attribute): New function.
4266
417ca011
TD
42672017-07-07 Torsten Duwe <duwe@suse.de>
4268
4269 * c-attribs.c (c_common_attribute_table): Add entry for
4270 "patchable_function_entry".
4271
5aaa8fb4
NS
42722017-07-20 Nathan Sidwell <nathan@acm.org>
4273
4274 Remove TYPE_METHODS.
4275 * c-ada-spec.c (is_tagged_type, has_nontrivial_methods,
4276 dump_ada_template, print_ada_methods,
4277 print_ada_declaration): Member fns are on TYPE_FIELDS.
4278
ff22eb12
NS
42792017-07-18 Nathan Sidwell <nathan@acm.org>
4280
4281 * c-warn.c (warn_for_memset): Use TYPE_{MIN,MAX}_VALUE.
4282
eea77d1f
DM
42832017-07-14 David Malcolm <dmalcolm@redhat.com>
4284
4285 * c-common.c (try_to_locate_new_include_insertion_point): New
4286 function.
4287 (per_file_includes_t): New typedef.
4288 (added_includes_t): New typedef.
4289 (added_includes): New variable.
4290 (maybe_add_include_fixit): New function.
4291 * c-common.h (maybe_add_include_fixit): New decl.
4292
281ac396
MS
42932017-07-10 Martin Sebor <msebor@redhat.com>
4294
4295 PR other/81345
4296 * c.opt (-Wstringop-overflow): Set defaults in LangEnabledBy.
4297
b6f43128
DM
42982017-07-06 David Malcolm <dmalcolm@redhat.com>
4299
4300 * c-common.c (selftest::c_family_tests): New.
4301 * c-common.h (selftest::run_c_tests): Move decl to c/c-lang.h.
4302 (selftest::c_family_tests): New decl.
4303
efbf55b0
MP
43042017-07-04 Marek Polacek <polacek@redhat.com>
4305
4306 PR c/81231
4307 * c-common.c (sync_resolve_size): Give error for pointers to incomplete
4308 types.
4309
6c86bd88
MP
43102017-07-04 Marek Polacek <polacek@redhat.com>
4311
4312 * c-warn.c (warn_if_unused_value): Remove WITH_CLEANUP_EXPR handling.
4313
17a7218b
ML
43142017-06-28 Martin Liska <mliska@suse.cz>
4315
4316 PR ipa/81128
4317 * c-attribs.c (handle_alias_ifunc_attribute): Append ifunc alias
4318 to a function declaration.
4319
63010089
ML
43202017-06-28 Martin Liska <mliska@suse.cz>
4321
4322 PR driver/79659
4323 * c.opt: Add IntegerRange to various options.
4324
3e2becc4
MP
43252017-06-26 Marek Polacek <polacek@redhat.com>
4326
4327 PR c/80116
4328 * c-common.h (warn_for_multistatement_macros): Declare.
4329 * c-warn.c: Include "c-family/c-indentation.h".
4330 (warn_for_multistatement_macros): New function.
4331 * c.opt (Wmultistatement-macros): New option.
4332 * c-indentation.c (guard_tinfo_to_string): No longer static.
4333 Change the parameter type to "enum rid". Handle RID_SWITCH.
4334 * c-indentation.h (guard_tinfo_to_string): Declare.
4335
2db9b7cd
MG
43362017-06-23 Marc Glisse <marc.glisse@inria.fr>
4337
4338 * c-common.c (c_common_nodes_and_builtins): Use builtin_structptr_types.
4339
c3684b7b
MS
43402017-06-15 Martin Sebor <msebor@redhat.com>
4341
4342 PR c++/80560
4343 * c.opt (-Wclass-memaccess): New option.
4344
e72c4afd
BK
43452017-06-14 Boris Kolpackov <boris@codesynthesis.com>
4346
4347 * c-opts.c (c_common_finish): Handle '-' special value to -MF.
4348
8a516588
MP
43492017-06-13 Marek Polacek <polacek@redhat.com>
4350
4351 PR objc/80949
4352 * c-warn.c (do_warn_duplicated_branches): Return if any of the
4353 branches is null.
4354
45b2222a
ML
43552017-06-13 Martin Liska <mliska@suse.cz>
4356
4357 PR sanitize/78204
4358 * c-attribs.c (add_no_sanitize_value): New function.
4359 (handle_no_sanitize_attribute): Likewise.
4360 (handle_no_sanitize_address_attribute): Use the function.
4361 (handle_no_sanitize_thread_attribute): New function.
4362 (handle_no_address_safety_analysis_attribute): Use
4363 add_no_sanitize_value.
4364 (handle_no_sanitize_undefined_attribute): Likewise.
4365 * c-common.h: Declare new functions.
4366 * c-ubsan.c (ubsan_instrument_division): Use sanitize_flags_p.
4367 (ubsan_instrument_shift): Likewise.
4368 (ubsan_instrument_bounds): Likewise.
4369 (ubsan_maybe_instrument_array_ref): Likewise.
4370 (ubsan_maybe_instrument_reference_or_call): Likewise.
4371
a01f151f
JM
43722017-06-11 Jason Merrill <jason@redhat.com>
4373
4374 * c-ada-spec.c, c-pragma.c: Use id_equal.
4375
3de4ac6d
MP
43762017-06-04 Marek Polacek <polacek@redhat.com>
4377
4378 PR c/80919
4379 * c-format.c (matching_type_p): Return false if any of the types
4380 requires structural equality.
4381
2474f48f
MS
43822017-06-02 Martin Sebor <msebor@redhat.com>
4383
4384 PR c/80892
4385 * c-warn.c (conversion_warning): Use -Wconversion for integer
4386 conversion and -Wfloat-conversion for floating one.
4387
40ffd95f
BE
43882017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
4389
4390 * c.opt (Wsizeof-pointer-div): New warning option.
4391
3fa4634c
VR
43922017-06-01 Volker Reichelt <v.reichelt@netcologne.de>
4393
4394 * c.opt (Wcatch-value): New shortcut for Wcatch-value=1.
4395 (Wcatch-value=1): Enable by -Wall.
4396
f012c8ef
DM
43972017-05-30 David Malcolm <dmalcolm@redhat.com>
4398
4399 * c-format.c (gcc_cxxdiag_char_table): Add 'H' and 'I' to
4400 format_chars.
4401 * c.opt (fdiagnostics-show-template-tree): New option.
4402 (felide-type): New option.
4403
63dbcd13
VR
44042017-05-25 Volker Reichelt <v.reichelt@netcologne.de>
4405
4406 * c.opt (Wcatch-value=): New C++ warning flag.
4407
be136b5c
NS
44082017-05-24 Nathan Sidwell <nathan@acm.org>
4409
4410 * c=common.c (field_decl_cmp, resort_field_decl_cmp): Adjust T
4411 const casts to avoid warning.
4412
3cd211af
MS
44132017-05-24 Martin Sebor <msebor@redhat.com>
4414
4415 PR c/80731
4416 * c-common.h (unsafe_conversion_p): Add a function argument.
4417 * c-common.c (unsafe_conversion_p): Same.
4418 Add type names and values to diagnostics.
4419 (scalar_to_vector): Adjust.
4420 * c-warn.c (constant_expression_error): Add a function argument.
4421 Add type names and values to diagnostics.
4422 (conversion_warning): Add a function argument.
4423 Add type names and values to diagnostics.
4424 (warnings_for_convert_and_check): Same.
4425
1ff7be5a
JM
44262017-05-19 Jason Merrill <jason@redhat.com>
4427
4428 * c-warn.c (match_case_to_enum_1): Don't warn about enums with no
4429 enumerators.
4430
ff502317
BE
44312017-05-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
4432
4433 * c-format.c (locus): Move out of function scope,
4434 add GTY attribute.
4435
2a8a8d7b
NS
44362017-05-19 Nathan Sidwell <nathan@acm.org>
4437
4438 * c-opts.c (class_dump_file, class_dump_flags): Delete.
4439 (c_common_parse_file): Remove class dump handling.
4440 (get_dump_info): Likewise.
4441
39aac208
RB
44422017-05-19 Richard Biener <rguenther@suse.de>
4443
4444 PR c++/80593
4445 * c-warn.c (strict_aliasing_warning): Do not warn for accesses
4446 to alias-set zero memory.
4447
6ecd2339
BE
44482017-05-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
4449
4450 * c-format.c (local_tree_type_node): Add GTY attribute.
4451
6574d78e
MP
44522017-05-18 Marek Polacek <polacek@redhat.com>
4453
4454 * c-common.c (c_common_type_for_size): Use NULL_TREE instead of 0.
4455 (c_common_fixed_point_type_for_size): Likewise.
4456 (c_common_type_for_mode): Likewise.
4457 (shorten_compare): Likewise.
4458 (c_promoting_integer_type_p): Use false/true instead of 0/1.
4459 * c-pragma.c (maybe_apply_renaming_pragma): Use NULL_TREE instead of 0.
4460
e3455240
MP
44612017-05-18 Marek Polacek <polacek@redhat.com>
4462
4463 * c-common.c (self_promoting_args_p): Change the return type to bool.
4464 Use false/true instead of 0/1.
4465 * c-common.h (self_promoting_args_p): Update.
4466
3fa8871b
MP
44672017-05-17 Marek Polacek <polacek@redhat.com>
4468
4469 * c-common.c: Use NULL_TREE instead of 0 where appropriate.
4470 * c-warn.c: Likewise.
4471
b42cc3ca
VV
44722017-05-17 Ville Voutilainen <ville.voutilainen@gmail.com>
4473
4474 Implement new C++ intrinsics __is_assignable and __is_constructible.
4475 * c-common.c (__is_assignable, __is_constructible): New.
4476 * c-common.h (RID_IS_ASSIGNABLE, RID_IS_CONSTRUCTIBLE): Likewise.
4477
1a817418
ML
44782017-05-17 Martin Liska <mliska@suse.cz>
4479
4480 * c-common.h: Introduce dump_flags_t type and
4481 use it instead of int type.
4482 * c-gimplify.c (c_genericize): Likewise.
4483 * c-opts.c: Likewise.
4484
b2fa0a8b
MP
44852017-05-17 Marek Polacek <polacek@redhat.com>
4486
4487 * c-common.c (c_save_expr): Remove.
4488 (c_common_truthvalue_conversion): Remove a call to c_save_expr.
4489 * c-common.h (c_save_expr): Remove declaration.
4490
31c2d57d
VR
44912017-05-09 Volker Reichelt <v.reichelt@netcologne.de>
4492
4493 PR c/35441
4494 * c-pretty-print.c (c_pretty_printer::expression): Handle MAX_EXPR,
4495 MIN_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, LROTATE_EXPR, RROTATE_EXPR.
4496 (c_pretty_printer::postfix_expression): Handle MAX_EXPR, MIN_EXPR.
4497 (c_pretty_printer::multiplicative_expression): Handle EXACT_DIV_EXPR,
4498 RDIV_EXPR.
4499 (pp_c_shift_expression): Handle LROTATE_EXPR, RROTATE_EXPR.
4500
684f84de
MP
45012017-05-09 Marek Polacek <polacek@redhat.com>
4502
4503 PR c/80525
4504 * c-warn.c (unwrap_c_maybe_const): New.
4505 (warn_logical_operator): Call it.
4506
641da50a
NS
45072017-05-09 Nathan Sidwell <nathan@acm.org>
4508
4509 * c-common.c (c_register_builtin_type): Use pushdecl lang_hook.
4510 * c-common.h (pushdecl_top_level, pushdecl): Don't declare here.
4511
631238ac
MS
45122017-05-08 Martin Sebor <msebor@redhat.com>
4513
4514 PR translation/80280
4515 * c-format.h (struct format_flag_spec): Add new member.
4516 (T89_T): New macro.
4517 * c-format.c (local_tree_type_node): New global.
4518 (printf_flag_specs, asm_fprintf_flag_spec): Initialize new data.
4519 (gcc_diag_flag_specs, scanf_flag_specs, strftime_flag_specs): Ditto.
4520 (strfmon_flag_specs): Likewise.
4521 (gcc_diag_char_table, gcc_cdiag_char_table): Split up specifiers
4522 with distinct quoting properties.
4523 (gcc_tdiag_char_table, gcc_cxxdiag_char_table): Same.
4524 (flag_chars_t::validate): Add argument and handle bad quoting.
4525 (check_format_info_main): Handle quoting problems.
4526 (init_dynamic_diag_info): Simplify.
4527
49f0c04c
JM
45282017-05-08 Jason Merrill <jason@redhat.com>
4529
4530 * c-opts.c (c_common_post_options): Update defaults for
4531 flag_abi_version and flag_abi_compat_version.
4532
56d35585
DM
45332017-05-05 David Malcolm <dmalcolm@redhat.com>
4534
4535 * c-common.c (c_cpp_error): Replace report_diagnostic
4536 with diagnostic_report_diagnostic.
4537
0f2c4a8f
MS
45382017-05-04 Martin Sebor <msebor@redhat.com>
4539
4540 PR translation/80280
4541 * c-attribs.c (handle_alias_ifunc_attribute): Quote a %D directive.
4542 (handle_weakref_attribute): Same.
4543
6fe63fb4
NS
45442017-05-03 Nathan Sidwell <nathan@acm.org>
4545
4546 Canonicalize canonical type hashing
4547 * c-common.c (complete_array_type): Use type_hash_canon.
4548
815d9cc6
XR
45492017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
4550
92a285c1 4551 PR c++/80038
815d9cc6
XR
4552 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): Remove
4553 prototype.
4554 (cilk_install_body_pedigree_operations): Likewise.
4555 * cilk.c (cilk_set_spawn_marker): Mark functions that should be
4556 detatched.
4557 (cilk_gimplify_call_params_in_spawned_fn): Remove.
4558 (cilk_install_body_pedigree_operations): Likewise.
4559 (gimplify_cilk_spawn): Add EXPR_STMT and CLEANUP_POINT_EXPR
4560 unwrapping.
4561
f8a36447
JJ
45622017-04-27 Jakub Jelinek <jakub@redhat.com>
4563
4564 PR c++/80534
4565 * c-common.c (complete_array_type): Only hash TYPE_TYPELESS_STORAGE
4566 flag on non-aggregate element types.
4567
7c145456
BE
45682017-04-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
4569
4570 * c-common.c (c_type_hasher, type_hash_table): Remove.
4571 (c_common_get_alias_set): Remove unreachable code.
4572 * c-opts.c (c_common_post_options): Make sure cc1 takes only one file.
4573
c3cbcd45
VR
45742017-04-20 Volker Reichelt <v.reichelt@netcologne.de>
4575
4576 * c.opt (Wextra-semi): New C++ warning flag.
4577
8a59d466
JJ
45782017-04-20 Jakub Jelinek <jakub@redhat.com>
4579
4580 PR middle-end/80423
4581 * c-common.c (complete_array_type): Preserve TYPE_TYPELESS_STORAGE.
4582
8487c9a5
JJ
45832017-04-18 Jakub Jelinek <jakub@redhat.com>
4584
4585 PR middle-end/79788
4586 PR middle-end/80375
4587 * c-common.c (c_common_type_for_mode): Don't handle
4588 widest_*_literal_type_node here.
4589 c_common_signed_or_unsigned_type): Likewise.
4590 (c_common_nodes_and_builtins): Set widest_*_literal_type_node
4591 to *intTI_type_node or *intDI_type_node depending on whether
4592 TImode is supported by the target or not.
4593
3ee0fb02
ML
45942017-04-10 Martin Liska <mliska@suse.cz>
4595
4596 PR sanitizer/80350
4597 * c-ubsan.c (ubsan_instrument_shift): Evaluate RHS before
4598 doing an UBSAN check.
4599
5764ee3c
JW
46002017-04-03 Jonathan Wakely <jwakely@redhat.com>
4601
4602 * c-warn.c (do_warn_double_promotion): Fix typo in comment.
4603
6f3af356
JJ
46042017-03-31 Jakub Jelinek <jakub@redhat.com>
4605
4606 PR c++/79572
4607 * c-ubsan.h (ubsan_maybe_instrument_reference): Change argument to
4608 tree *.
4609 * c-ubsan.c (ubsan_maybe_instrument_reference): Likewise. Handle
4610 not just NOP_EXPR to REFERENCE_TYPE, but also INTEGER_CST with
4611 REFERENCE_TYPE.
4612
f6a7a9d5
DM
46132017-03-31 David Malcolm <dmalcolm@redhat.com>
4614
4615 PR documentation/78732
4616 * c.opt (Wendif-labels): Fix description to refer to
4617 #else rather than #elif.
4618
af88f557
JJ
46192017-03-31 Jakub Jelinek <jakub@redhat.com>
4620
4621 PR libstdc++/80251
4622 * c-common.h (enum rid): Add RID_IS_AGGREGATE.
4623 * c-common.c (c_common_reswords): Add __is_aggregate trait.
4624
a9e4a1a5
JJ
46252017-03-27 Jakub Jelinek <jakub@redhat.com>
4626
4627 PR middle-end/80162
4628 * c-common.c (c_common_mark_addressable_vec): Don't set
4629 TREE_ADDRESSABLE on DECL_HARD_REGISTER.
4630
3f01b620
MS
46312017-03-21 Martin Sebor <msebor@redhat.com>
4632
4633 PR c++/79548
4634 * c-common.c (set_underlying_type): Mark type used only when
4635 original del is declared unused.
4636
2f6f187a
DM
46372017-03-10 David Malcolm <dmalcolm@redhat.com>
4638
4639 PR translation/79848
4640 * c-format.c (check_format_string): Simplify uses of "%<%s%>" to
4641 "%qs".
4642
a02fa805
DM
46432017-03-10 David Malcolm <dmalcolm@redhat.com>
4644
4645 PR c/79921
4646 * c-indentation.c (warn_for_misleading_indentation): Remove parens
4647 from inform's message, so that xgettext can locate it.
4648
822a132c
MP
46492017-03-09 Marek Polacek <polacek@redhat.com>
4650
4651 PR c++/79962
4652 PR c++/79984
4653 * c-attribs.c (handle_nonnull_attribute): Save the result of default
4654 conversion to the attribute list.
4655
bba81f1c
ML
46562017-03-09 Martin Liska <mliska@suse.cz>
4657
4658 * c-ada-spec.c (macro_length): Increment value instead of a pointer.
4659
108154ff
JM
46602017-03-03 Jason Merrill <jason@redhat.com>
4661
4662 * c.opt (Wnoexcept-type): New.
4663
eb0e7c34
RB
46642017-03-02 Richard Biener <rguenther@suse.de>
4665
4666 PR c/79756
4667 * c-common.c (c_common_mark_addressable_vec): Look through
4668 C_MAYBE_CONST_EXPR.
4669
9453ba0a
ML
46702017-02-28 Martin Liska <mliska@suse.cz>
4671
4672 * c.opt: Replace space with tabular for options of <number>
4673 type.
4674
6a825afe
ML
46752017-02-28 Martin Liska <mliska@suse.cz>
4676
4677 * c.opt: Fix --help=option -Q for options which are of
4678 an enum type.
4679
4227c9ad
JJ
46802017-02-24 Jakub Jelinek <jakub@redhat.com>
4681
4682 PR c++/79588
4683 * c-common.c (check_function_restrict): New function.
4684 (check_function_arguments): Add FNDECL argument. Call
4685 check_function_restrict if -Wrestrict.
4686 * c-warn.c (warn_for_restrict): Remove ARGS argument, add ARGARRAY
4687 and NARGS. Use auto_vec for ARG_POSITIONS, simplify.
4688 * c-common.h (check_function_arguments): Add FNDECL argument.
4689 (warn_for_restrict): Remove ARGS argument, add ARGARRAY and NARGS.
4690
59909673
EB
46912017-02-24 Eric Botcazou <ebotcazou@adacore.com>
4692
4693 * c-ada-spec.c (dump_ada_function_declaration): Add comment about the
4694 treatment of parameters with pointer-to-tagged type and tidy up.
4695 (print_ada_methods): Remove the special treatment of C++ static member
4696 functions.
4697
54dcd526
ML
46982017-02-22 Martin Liska <mliska@suse.cz>
4699
4700 * c.opt: Replace inequality signs with square brackets
4701 for -Wnornalized.
4702
00bc9de3
JJ
47032017-02-21 Jakub Jelinek <jakub@redhat.com>
4704
4705 PR c++/79641
4706 * c-attribs.c (handle_mode_attribute): Use build_qualified_type to
4707 preserve quals.
4708
97fcf744
JM
47092017-02-17 Joseph Myers <joseph@codesourcery.com>
4710
4711 * c-cppbuiltin.c (builtin_define_float_constants): Define
4712 __DECIMAL_DIG__ to the value for long double.
4713
c7545f1c
MP
47142017-02-15 Marek Polacek <polacek@redhat.com>
4715
4716 PR c/79515
4717 * c-warn.c (do_warn_double_promotion): Don't warn if an invalid
4718 conversion has occured.
4719
c2e84327
DM
47202017-01-24 David Malcolm <dmalcolm@redhat.com>
4721
4722 * c-common.c (c_common_reswords): Add "__RTL".
4723 * c-common.h (enum rid): Add RID_RTL.
4724
2ebd93e1
MP
47252017-01-20 Marek Polacek <polacek@redhat.com>
4726
4727 PR c/64279
4728 * c-common.h (do_warn_duplicated_branches_r): Declare.
4729 * c-gimplify.c (c_genericize): Walk the function tree calling
4730 do_warn_duplicated_branches_r.
4731 * c-warn.c (expr_from_macro_expansion_r): New.
4732 (do_warn_duplicated_branches): New.
4733 (do_warn_duplicated_branches_r): New.
4734 * c.opt (Wduplicated-branches): New option.
4735
0d80ab91
DM
47362017-01-17 David Malcolm <dmalcolm@redhat.com>
4737
4738 PR c++/71497
4739 * c-indentation.c (warn_for_misleading_indentation): Use the past
4740 subjunctive in the note.
4741
7f991c36
AH
47422017-01-17 Aldy Hernandez <aldyh@redhat.com>
4743
4744 PR c/79116
4745 * array-notation-common.c (cilkplus_extract_an_triplets): Convert
4746 start type to integer_type.
4747
1c70261c
JJ
47482017-01-16 Jakub Jelinek <jakub@redhat.com>
4749
4750 PR driver/49726
4751 * c.opt (gen-decls): Add Driver flag.
4752
1ddca3f3
PC
47532017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
4754
4755 Revert:
4756 2017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
4757
4758 PR c++/71737
4759 * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
4760
7d2f3f1d
PC
47612017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
4762
4763 PR c++/71737
4764 * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
4765
bce6f760
MS
47662017-01-12 Martin Sebor <msebor@redhat.com>
4767
4768 (-Wformat-overflow): ...to this.
4769
bf5fbf46
MS
47702017-01-11 Martin Sebor <msebor@redhat.com>
4771
4772 PR c/78768
4773 * c.opt (-Walloca-larger-than, -Wformat-length, -Wformat-truncation):
4774 Also enable for LTO.
4775
e363df3f
JM
47762017-01-10 Jason Merrill <jason@redhat.com>
4777
4778 Implement P0195R2, C++17 variadic using.
4779 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_variadic_using.
4780
bd2c6270
JJ
47812017-01-09 Jakub Jelinek <jakub@redhat.com>
4782
4783 PR translation/79019
4784 PR translation/79020
4785 * c.opt (Wnormalized=): Fix typo in description.
4786
efcc8d38
MS
47872017-01-08 Martin Sebor <msebor@redhat.com>
4788
4789 PR middle-end/77708
4790 * c.opt (-Wformat-truncation): New option.
4791
ab20d992 47922017-01-06 Alexandre Oliva <aoliva@redhat.com>
435f3f7a
AO
4793
4794 * c-pretty-print.c (pp_c_tree_decl_identifier): Convert 16-bit
4795 value to unsigned short to fit in 4 hex digits without
4796 warnings.
4797
4e89adf9
EB
47982017-01-05 Eric Botcazou <ebotcazou@adacore.com>
4799
4800 * c.opt (fsso-struct): Add 'native' value.
4801
cd445b54
ML
48022017-01-05 Martin Liska <mliska@suse.cz>
4803
4804 PR pch/78970
4805 * c-opts.c (c_common_post_options): Reject '-' filename for a precompiled
4806 header.
4807
a9342885
MP
48082017-01-04 Marek Polacek <polacek@redhat.com>
4809
4810 PR c++/64767
4811 * c.opt (Wpointer-compare): New option.
4812
fc73e60c
JJ
48132017-01-04 Jakub Jelinek <jakub@redhat.com>
4814
4815 PR driver/78957
4816 * c.opt (fsso-struct=): Add RejectNegative.
4817
cbe34bb5
JJ
48182017-01-01 Jakub Jelinek <jakub@redhat.com>
4819
4820 Update copyright years.
4821
d4a6c0ea
ML
48222016-12-29 Martin Liska <mliska@suse.cz>
4823
4824 PR c/78933
4825 * c.opt (strong-eval-order): Add RejectNegative keyword.
4826
67a5ad7c
JM
48272016-12-22 Jason Merrill <jason@redhat.com>
4828
4829 Implement P0522R0, matching of template template arguments.
4830 * c-cppbuiltin.c (c_cpp_builtins): Define
4831 __cpp_template_template_args.
4832
0dba7960
JJ
48332016-12-21 Jakub Jelinek <jakub@redhat.com>
4834
4835 PR bootstrap/78817
4836 * c-common.c (struct nonnull_arg_ctx): New type.
4837 (check_function_nonnull): Return bool instead of void. Use
4838 nonnull_arg_ctx as context rather than just location_t.
4839 (check_nonnull_arg): Adjust for the new context type, set
4840 warned_p to true if a warning has been diagnosed.
4841 (check_function_arguments): Return bool instead of void.
4842 * c-common.h (check_function_arguments): Adjust prototype.
4843
31bfc9b9
JM
48442016-12-21 Jason Merrill <jason@redhat.com>
4845
4846 * c.opt (-fnew-ttp-matching): New flag.
4847 * c-opts.c (c_common_post_options): Default on if -std=c++1z.
4848
629b3d75
MJ
48492016-12-14 Martin Jambor <mjambor@suse.cz>
4850
4851 * c-omp.c: Include omp-general.h instead of omp-low.h.
4852 (c_finish_oacc_wait): Adjusted call to find_omp_clause to use its new
4853 name.
4854
474da67e
MS
48552016-12-14 Martin Sebor <msebor@redhat.com>
4856
4857 PR c/17308
4858 * c-common.c (check_nonnull_arg): Disable when optimization
4859 is enabled.
4860
fe366b87
MP
48612016-12-12 Marek Polacek <polacek@redhat.com>
4862
4863 PR c++/78647
4864 * c-common.c (attribute_fallthrough_p): Return false for
4865 error_mark_node.
4866
8bd9f164
MS
48672016-12-08 Martin Sebor <msebor@redhat.com>
4868
4869 PR c/78284
4870 * c.opt (-Walloc-zero, -Walloc-size-larger-than): New options.
4871
060162e0
MS
48722016-12-08 Martin Sebor <msebor@redhat.com>
4873
4874 PR c/78165
92a285c1
ML
4875 * c-pretty-print (pp_c_integer_constant): Avoid formatting type
4876 suffix.
060162e0 4877
ee92e7ba
MS
48782016-12-07 Martin Sebor <msebor@redhat.com>
4879
4880 PR c/53562
4881 PR middle-end/77784
4882 PR middle-end/78149
4883 PR middle-end/78138
4884 * c.opt (-Wstringop-overflow): New option.
4885
84b0769e
MO
48862016-12-02 Maxim Ostapenko <m.ostapenko@samsung.com>
4887
4888 * c-attribs.c (asan odr indicator): New attribute.
4889 (handle_asan_odr_indicator_attribute): New function.
4890
7fa6a965
PK
48912016-11-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4892
4893 * c-common.c (c_common_nodes_and_builtins): Remove initialization of
4894 ptrdiff_type_node;
4895
56d8ffc1
JG
48962016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
4897
4898 * c-common.c (excess_precision_mode_join): New.
4899 (c_ts18661_flt_eval_method): New.
4900 (c_c11_flt_eval_method): Likewise.
4901 (c_flt_eval_method): Likewise.
4902 * c-common.h (excess_precision_mode_join): New.
4903 (c_flt_eval_method): Likewise.
4904 * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): New.
4905 (cpp_iec_559_value): Call it.
4906 (c_cpp_builtins): Modify logic for __LIBGCC_*_EXCESS_PRECISION__,
4907 call c_flt_eval_method to set __FLT_EVAL_METHOD__ and
4908 __FLT_EVAL_METHOD_TS_18661_3__.
4909
04f0fcf7
JG
49102016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
4911
4912 * c-opts.c (c_common_post_options): Add logic to handle the default
4913 case for -fpermitted-flt-eval-methods.
4914
fb2675cb
PB
49152016-11-23 Paolo Bonzini <bonzini@gnu.org>
4916
4917 * c.opt (Wexpansion-to-defined): New.
4918
ec1c5694
JJ
49192016-11-23 Jakub Jelinek <jakub@redhat.com>
4920
4921 PR target/78451
4922 * c-pragma.c (handle_pragma_target): Don't replace
4923 current_target_pragma, but chainon the new args to the current one.
4924
730c9e75
NS
49252016-11-22 Nathan Sidwell <nathan@acm.org>
4926
4927 * array-notation-common.c (cilkplus_extract_an_trplets): Fix
cacd29be 4928 indentation and formatting.
730c9e75 4929
89990732
MS
49302016-11-21 Martin Sebor <msebor@redhat.com>
4931
4932 * c.opt (-fprintf-return-value): Enable by default.
4933
48330c93
BE
49342016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
4935
4936 PR c++/71973
4937 * c.opt (-Wbuiltin-declaration-mismatch): New warning.
4938 * c-common.c (c_common_nodes_and_builtins): Initialize
4939 const_tm_ptr_type_node.
4940
0d939c95
MP
49412016-11-16 Marek Polacek <polacek@redhat.com>
4942
4943 PR c/78285
4944 * c-common.c (c_add_case_label): Turn error_at calls into inform.
4945
8e745a17
JJ
49462016-11-14 Jakub Jelinek <jakub@redhat.com>
4947
4948 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_structured_bindings.
4949
1ee62b92 49502016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
8e745a17
JJ
4951 Richard Biener <rguenther@suse.de>
4952
4953 * c-common.h (c_common_resword): Add RID_GIMPLE, RID_PHI types.
4954 * c-common.h (enum rid): Add RID_GIMPLE, RID_PHI.
4955 * c.opt (fgimple): New option.
1ee62b92 4956
22b15758
UB
49572016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4958
4959 PR c/35503
4960 * c-common.h (warn_for_restrict): Declare.
4961 * c-warn.c: Include gcc-rich-location.h.
4962 (warn_for_restrict): New function.
4963 * c-format.c (gcc_tdiag_char_table): Add entry for "Z" specifier.
4964 (gcc_cdiag_char_table): Likewise.
4965 (gcc_cxxdiag_char_table): Likewise.
4966 * c.opt (Wrestrict): New option.
4967
4be719cd
EB
49682016-11-13 Eric Botcazou <ebotcazou@adacore.com>
4969
4970 * c-ada-spec.c (print_ada_declaration): For typedef declarations, look
4971 for nested types only if the type is a record or union and dump SLOC.
4972
4a826ca6
JM
49732016-11-09 Jason Merrill <jason@redhat.com>
4974
4975 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_template_auto.
4976
2e955d50
JJ
49772016-11-09 Jakub Jelinek <jakub@redhat.com>
4978
4979 * c-ubsan.c (ubsan_instrument_shift): Handle split
4980 -fsanitize=shift-base and -fsanitize=shift-exponent.
4981
51dc6603
JM
49822016-11-07 Jason Merrill <jason@redhat.com>
4983
4984 * c.opt (Wc++1z-compat): New.
4985 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_noexcept_function_type.
4986
6dc4a604
ML
49872016-11-07 Martin Liska <mliska@suse.cz>
4988
4989 * c-warn.c (warn_for_unused_label): Save all labels used
4990 in goto or in &label.
4991
b302001e
JM
49922016-11-03 Jason Merrill <jason@redhat.com>
4993
4994 * c-cppbuiltin.c (c_cpp_builtins): Correct
4995 __cpp_inheriting_constructors.
4996
31f7f784
JM
49972016-11-01 Jason Merrill <jason@redhat.com>
4998
2bc78e3c
JM
4999 * c-cppbuiltin.c (c_cpp_builtins): Update
5000 __cpp_inheriting_constructors.
5001
31f7f784
JM
5002 * c.opt (-fnew-inheriting-ctors): New.
5003 * c-opts.c: Default to on for ABI 11+.
5004
dcb466ec
JJ
50052016-10-31 Jakub Jelinek <jakub@redhat.com>
5006
5007 PR c++/77948
5008 * c.opt (fext-numeric-literals): Add Var and Init.
5009 * c-opts.c (c_common_handle_option): Don't clear
5010 cpp_opts->ext_numeric_literals for -std=c++{11,14,1z}.
5011 (c_common_post_options): Clear it here if not set
5012 explicitly.
5013
52e1b91e
AH
50142016-10-28 Aldy Hernandez <aldyh@redhat.com>
5015
5016 PR debug/77773
5017 * c-pretty-print.c (simple_type_specifier): Do not dereference `t'
5018 if NULL.
5019
e16f1cc7
JJ
50202016-10-25 Jakub Jelinek <jakub@redhat.com>
5021
5022 * c-common.h (enum rid): Add RID_BUILTIN_LAUNDER.
5023 * c-common.c (c_common_reswords): Add __builtin_launder.
5024
f8348061
BE
50252016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
5026
5027 * c-common.c (c_common_truthvalue_conversion): Warn for
5028 multiplications in boolean context. Fix the quoting of '<<' and '<'
5029 in the shift warning.
5030
eff89e01
BE
50312016-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
5032
5033 * c-common.c (c_common_truthvalue_conversion): Fix the comment.
5034
24bc7bf4
JM
50352016-10-20 Jason Merrill <jason@redhat.com>
5036
5037 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_concepts value.
5038
4c712374
BE
50392016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
5040
5041 * c-common.c (c_common_truthvalue_conversion): Warn only for signed
5042 integer shift ops in boolean context.
5043
50442016-10-18 Aldy Hernandez <aldyh@redhat.com>
adc577c5
AH
5045
5046 * c.opt (Walloca): New.
5047 (Walloca-larger-than=): New.
5048 (Wvla-larger-than=): New.
5049
8fa18c06
MP
50502016-10-17 Marek Polacek <polacek@redhat.com>
5051
5052 * c-warn.c (find_array_ref_with_const_idx_r): Remove parameter names.
5053 Return immediately when finding a match.
5054 (warn_tautological_cmp): Remove a boolean variable that is no longer
5055 needed.
5056
b12b1915
MP
50572016-10-17 Marek Polacek <polacek@redhat.com>
5058
5059 * c-attribs.c: New file.
5060 * c-common.c: Move attributes handling to c-attribs.c.
5061 (get_nonnull_operand): No longer static.
5062 * c-common.h: Move the declarations from c-attribs.c to its own section.
5063
2045acd9
JM
50642016-10-14 Jason Merrill <jason@redhat.com>
5065
5066 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_aggregate_bases
5067 and __cpp_deduction_guides.
5068
14a2c9aa
JM
50692016-10-13 Jason Merrill <jason@redhat.com>
5070
5071 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_inline_variables.
5072
4d0cdd0c
TP
50732016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
5074
5075 * c-cppbuiltin.c: Include memmodel.h.
5076 * c-opts.c: Likewise.
5077 * c-pragma.c: Likewise.
5078 * c-warn.c: Likewise.
5079
70f6d5e1
JJ
50802016-10-12 Jakub Jelinek <jakub@redhat.com>
5081
5082 * c.opt (Wextra): Add as C/C++/ObjC/ObjC++ option.
5083 (Wimplicit-fallthrough=): Enable for these languages by -Wextra.
5084 * c-opts.c (sanitize_cpp_opts): Initialize
5085 cpp_opts->cpp_warn_implicit_fallthrough.
5086
78f61294
MP
50872016-10-11 Marek Polacek <polacek@redhat.com>
5088
5089 * c-common.c (warning_candidate_p): Change the return type to bool
5090 and return true/false instead of 1/0.
5091 (vector_mode_valid_p): Likewise.
5092
038b5cc0
MP
50932016-10-11 Marek Polacek <polacek@redhat.com>
5094
5095 * c-common.c (fold_for_warn): No longer static.
5096 (bool_promoted_to_int_p): Likewise.
5097 (c_common_get_narrower): Likewise.
5098 (constant_expression_warning): Move to c-warn.c.
5099 (constant_expression_error): Likewise.
5100 (overflow_warning): Likewise.
5101 (warn_logical_operator): Likewise.
5102 (find_array_ref_with_const_idx_r): Likewise.
5103 (warn_tautological_cmp): Likewise.
5104 (expr_has_boolean_operands_p): Likewise.
5105 (warn_logical_not_parentheses): Likewise.
5106 (warn_if_unused_value): Likewise.
5107 (strict_aliasing_warning): Likewise.
5108 (sizeof_pointer_memaccess_warning): Likewise.
5109 (check_main_parameter_types): Likewise.
5110 (conversion_warning): Likewise.
5111 (warnings_for_convert_and_check): Likewise.
5112 (match_case_to_enum_1): Likewise.
5113 (match_case_to_enum): Likewise.
5114 (c_do_switch_warnings): Likewise.
5115 (warn_for_omitted_condop): Likewise.
5116 (readonly_error): Likewise.
5117 (lvalue_error): Likewise.
5118 (invalid_indirection_error): Likewise.
5119 (warn_array_subscript_with_type_char): Likewise.
5120 (warn_about_parentheses): Likewise.
5121 (warn_for_unused_label): Likewise.
5122 (warn_for_div_by_zero): Likewise.
5123 (warn_for_memset): Likewise.
5124 (warn_for_sign_compare): Likewise.
5125 (do_warn_double_promotion): Likewise.
5126 (do_warn_unused_parameter): Likewise.
5127 (record_locally_defined_typedef): Likewise.
5128 (maybe_record_typedef_use): Likewise.
5129 (maybe_warn_unused_local_typedefs): Likewise.
5130 (maybe_warn_bool_compare): Likewise.
5131 (maybe_warn_shift_overflow): Likewise.
5132 (warn_duplicated_cond_add_or_warn): Likewise.
5133 (diagnose_mismatched_attributes): Likewise.
5134 * c-common.h: Move the declarations from c-warn.c to its own section.
5135 * c-warn.c: New file.
5136
627be19f
JM
51372016-10-08 Jason Merrill <jason@redhat.com>
5138
5139 * c-common.c (c_common_truthvalue_conversion): Don't distribute
5140 into COND_EXPR in C++.
5141
7bad794a
JJ
51422016-10-08 Jakub Jelinek <jakub@redhat.com>
5143
5144 * c-lex.c (c_lex_with_flags) <case CPP_COMMENT>: For CPP_COMMENT
5145 token with PREV_FALLTHROUGH, skip all following CPP_PADDING and
5146 CPP_COMMENT tokens and set add_flags to PREV_FALLTHROUGH afterwards.
5147
be845b04
JJ
51482016-10-07 Jakub Jelinek <jakub@redhat.com>
5149
5150 Implement LWG2296 helper intrinsic
5151 * c-common.h (enum rid): Add RID_ADDRESSOF.
5152 * c-common.c (c_common_reswords): Add __builtin_addressof.
5153
c09c4992
BE
51542016-10-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
5155
5156 PR c++/77700
5157 * c-common.c (c_common_truthvalue_conversion): Warn also for
5158 suspicious enum values in boolean context.
5159
342cfb3e
JJ
51602016-10-06 Jakub Jelinek <jakub@redhat.com>
5161
5162 Implement P0258R2 - helper for C++17
5163 std::has_unique_object_representations trait
5164 * c-common.h (enum rid): Add RID_HAS_UNIQUE_OBJ_REPRESENTATIONS.
5165 * c-common.c (c_common_reswords): Add
5166 __has_unique_object_representations.
5167
2e69f143
JJ
51682016-10-05 Jakub Jelinek <jakub@redhat.com>
5169
5170 PR sanitizer/66343
5171 * c-ubsan.c (ubsan_instrument_return): Don't call
5172 initialize_sanitizer_builtins here.
5173
700fff34
BE
51742016-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
5175
5176 * c-common.c (c_common_truthvalue_conversion): Warn also for suspicious
5177 conditional expression in boolean context when only one arm is
5178 non-boolean.
5179
9563bfcd
JJ
51802016-10-05 Jakub Jelinek <jakub@redhat.com>
5181
04a32443
JJ
5182 PR sanitizer/77823
5183 * c-ubsan.c (ubsan_instrument_shift): Return NULL_TREE if type0
5184 is not integral.
5185
9563bfcd
JJ
5186 * c-common.c (c_common_reswords): Update comment for C++11.
5187
f1644724
JM
51882016-10-04 Jason Merrill <jason@redhat.com>
5189
5190 * c-common.c (make_tree_vector_from_ctor): New.
5191 * c-common.h: Declare it.
5192
5a79befb
JJ
51932016-10-04 Jakub Jelinek <jakub@redhat.com>
5194
5195 * c-cppbuiltin.c (c_cpp_builtins): Don't define
5196 __LIBGCC_JCR_SECTION_NAME__.
5197
1633d3b9
BE
51982016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
5199
5200 * c-common.c (c_common_truthvalue_conversion): Warn for suspicious
5201 left shift in boolean context.
5202
a2c6e7f2
JJ
52032016-09-29 Jakub Jelinek <jakub@redhat.com>
5204
5205 Implement P0001R1 - C++17 removal of register storage class specifier
5206 * c.opt (Wregister): New warning.
5207 * c-opts.c (c_common_post_options): Enable -Wregister by
5208 default for C++17.
5209
75304c87
JG
52102016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
5211
5212 * c-opts.c (c_common_post_options): Remove special case for
5213 TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard
5214 in C++.
5215
bbfac6da
JJ
52162016-09-27 Jakub Jelinek <jakub@redhat.com>
5217
6e39060a
JJ
5218 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for
5219 -std=c++1z.
5220
bbfac6da
JJ
5221 * c-ada-spec.c (print_ada_declaration): Remove break after return.
5222
e73cf9a2
TP
52232016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
5224
5225 * c-common.c: Include memmodel.h.
5226
c6147dc4
MP
52272016-09-26 Marek Polacek <polacek@redhat.com>
5228
5229 * c-lex.c (c_common_has_attribute): Handle attribute fallthrough.
5230
81fea426
MP
52312016-09-26 Marek Polacek <polacek@redhat.com>
5232
5233 PR c/7652
5234 * c-common.c (c_common_attribute_table): Add fallthrough attribute.
5235 (handle_fallthrough_attribute): New function.
5236 (attribute_fallthrough_p): New function.
5237 * c-common.h (attribute_fallthrough_p): Declare.
5238
9a2300e9
MP
52392016-09-24 Marek Polacek <polacek@redhat.com>
5240
5241 PR c/77490
5242 * c.opt (Wbool-operation): New.
5243
a09e9e35
BE
52442016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
5245
5246 * c-common.c (c_common_truthvalue_conversion): Inhibit
5247 Wint-in-bool-context warning with from_macro_definition_at.
5248 Mention the expression will always evaluate to true.
5249
d43b4ccc
MS
52502016-09-21 Martin Sebor <msebor@redhat.com>
5251
5252 PR bootstrap/77676
5253 * c.opt (fprintf-return-value): Temporarily initialize to zero
5254 to unblock bootstrap failures.
5255
2e1c20b1
JJ
52562016-09-21 Jakub Jelinek <jakub@redhat.com>
5257
5258 PR c++/77651
5259 * c.opt (Waligned-new=): Add RejectNegative.
5260 (faligned-new=): Likewise. Spelling fix - change
5261 aligned_new_threshhold to aligned_new_threshold.
5262 * c-cppbuiltin.c (c_cpp_builtins): Change aligned_new_threshhold
5263 to aligned_new_threshold.
5264
88d0c3f0
MS
52652016-09-20 Martin Sebor <msebor@redhat.com>
5266
5267 PR middle-end/49905
5268 * c.opt: Add -Wformat-length and -fprintf-return-value.
5269
144a96e4
BE
52702016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
5271
5272 PR c++/77434
5273 * c.opt (Wint-in-bool-context): New warning.
5274 * c-common.c (c_common_truthvalue_conversion): Warn on integer
5275 constants in boolean context.
5276
63012d9a
JM
52772016-09-19 Joseph Myers <joseph@codesourcery.com>
5278
5279 * c-common.c (max_align_t_align): Also consider alignment of
5280 float128_type_node.
5281
931388ce
JM
52822016-09-15 Jason Merrill <jason@redhat.com>
5283
5284 * c-common.c (check_cxx_fundamental_alignment_constraints): Check
5285 DECL_EXTERNAL.
5286
38711381
JM
52872016-09-14 Jason Merrill <jason@redhat.com>
5288
5289 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
5290 limit FIELD_DECL, either.
5291
e51fbec3
MP
52922016-09-14 Marek Polacek <polacek@redhat.com>
5293
5294 * c-common.c (c_common_truthvalue_conversion): Use false instead of 0.
5295 * c-common.h (build_unary_op): Change nonconvert parameter type to bool.
5296 * c-omp.c (c_finish_omp_atomic): Use false instead of 0.
5297
254830ba
DM
52982016-09-13 David Malcolm <dmalcolm@redhat.com>
5299
5300 * c-common.c (warn_logical_not_parentheses): Replace
5301 rich_location::add_fixit_insert calls with add_fixit_insert_before
5302 and add_fixit_insert_after, eliminating the "next_loc" calculation.
5303
42763690
JM
53042016-09-13 Jason Merrill <jason@redhat.com>
5305 Tom de Vries <tom@codesourcery.com>
5306
5307 PR c++/77427
5308 * c-common.c (set_underlying_type): Don't treat array as builtin type.
5309
9453eee9
JM
53102016-09-13 Jason Merrill <jason@redhat.com>
5311
5312 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
5313 limit types at all.
5314
e96809e3
JM
53152016-09-12 Jason Merrill <jason@redhat.com>
5316
5317 * c-common.c (check_cxx_fundamental_alignment_constraints): Fix
5318 bit/byte confusion, allow large alignment for types.
5319
54dcdb88
BE
53202016-09-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
5321
5322 PR c++/77496
5323 * c-common.c (warn_for_omitted_condop): Also warn for boolean data.
5324
d1463eb9
DM
53252016-09-12 David Malcolm <dmalcolm@redhat.com>
5326
5327 PR c/72858
5328 * c-format.c (argument_parser::check_argument_type): Add params
5329 "type_start" and "conversion_char". Use the former to generate
5330 offset_to_type_start and pass it and conversion_char to
5331 check_format_types.
5332 (check_format_info_main): Capture the start of the type
5333 information as "type_start", and pass it an format_char
5334 to arg_parser.check_argument_type.
5335 (check_format_types): Provide an example in the leading comment.
5336 Add params "offset_to_type_start" and "conversion_char"; pass
5337 them to format_type_warning calls.
5338 (test_get_modifier_for_format_len): Likewise.
5339 (matching_type_p): New function.
5340 (get_format_for_type): Add param "conversion_char" and move
5341 implementation into...
5342 (get_format_for_type_1): ...new function, called twice.
5343 Use new function matching_type_p rather than checking for
5344 TYPE_CANONICAL equality.
5345 (get_corrected_substring): New function.
5346 (format_type_warning): Provide an example in the leading comment.
5347 Add params "offset_to_type_start" and "conversion_char". Replace
5348 call to get_format_for_type with call to get_corrected_substring
5349 and move rejection of hints for widths/precisions there.
5350 (assert_format_for_type_streq): Add param "conversion_char".
5351 (ASSERT_FORMAT_FOR_TYPE_STREQ): Add param CONVERSION_CHAR.
5352 (test_get_format_for_type_printf): Add conversion chars to the
5353 tests, adding coverage for various combinations of integer
5354 vs double conversions, and for preserving octal and hexadecimal
5355 conversions.
5356 (test_get_format_for_type_scanf): Add conversion chars to the
5357 tests.
5358
5b28efbb
TV
53592016-09-10 Tom de Vries <tom@codesourcery.com>
5360
5361 PR C/71602
5362 * c-common.c (build_va_arg): Handle more strict
5363 targetm.canonical_va_list_type. Replace first argument type error with
5364 assert.
5365
3f0177e7
MS
53662016-09-09 Martin Sebor <msebor@redhat.com>
5367
5368 PR c/77520
5369 PR c/77521
5370 * c-format.c (argument_parser::find_format_char_info): Use %qc
5371 format directive unconditionally.
5372
af63ba4b
JM
53732016-09-09 Jason Merrill <jason@redhat.com>
5374
5375 Implement C++17 new of over-aligned types.
5376 * c.opt: Add -faligned-new and -Waligned-new.
5377 * c-common.c (max_align_t_align): Split out from...
5378 (cxx_fundamental_alignment_p): ...here.
5379 * c-common.h: Declare it.
5380 * c-cppbuiltin.c (c_cpp_builtins): Handle aligned new.
5381
c65248cb
JM
53822016-09-09 Joseph Myers <joseph@codesourcery.com>
5383
5384 * c-cppbuiltin.c (builtin_define_type_width): New function.
5385 (builtin_define_stdint_macros, c_cpp_builtins): Define type width
5386 macros.
5387
e5106e27
DM
53882016-09-07 David Malcolm <dmalcolm@redhat.com>
5389
5390 * c-common.c (get_cpp_ttype_from_string_type): Handle being passed
5391 a POINTER_TYPE.
5392 (substring_loc::get_location): Move to substring-locations.c,
5393 keeping implementation as...
5394 (c_get_substring_location): New function, from the above, reworked
5395 to use accessors rather than member lookup.
5396 * c-common.h (class substring_loc): Move to substring-locations.h,
5397 replacing with a forward decl.
5398 (c_get_substring_location): New decl.
5399 * c-format.c: Include "substring-locations.h".
5400 (format_warning_va): Move to substring-locations.c.
5401 (format_warning_at_substring): Likewise.
5402
ab20d992 54032016-09-06 Martin Sebor <msebor@redhat.com>
a42e7952
MS
5404
5405 PR c/77336
5406 * c-format.c (check_function_format): Avoid issuing warnings for
5407 functions unless they call format functions with non-constant
5408 format strings.
5409
b772a565
RB
54102016-09-06 Richard Biener <rguenther@suse.de>
5411
5412 PR c/77450
5413 * c-common.c (c_common_mark_addressable_vec): Handle
5414 COMPOUND_LITERAL_EXPR.
5415
25ff5dd3
MP
54162016-09-05 Marek Polacek <polacek@redhat.com>
5417
5418 PR c/77423
5419 * c-common.c (bool_promoted_to_int_p): New function.
5420 (expr_has_boolean_operands_p): New function.
5421 (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p.
5422 (maybe_warn_bool_compare): Use bool_promoted_to_int_p.
5423
21234eb5
TV
54242016-09-04 Tom de Vries <tom@codesourcery.com>
5425
5426 revert:
5427 2016-08-29 Tom de Vries <tom@codesourcery.com>
5428
5429 * c-common.c (build_va_arg): Replace first argument type error
5430 with assert.
5431
9dc5773f
JJ
54322016-09-02 Jakub Jelinek <jakub@redhat.com>
5433
5434 PR c/65467
5435 * c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions.
5436 (c_finish_omp_for): Reject _Atomic qualified iterators.
5437
54382016-09-01 Martin Sebor <msebor@redhat.com>
3d7b83b6
MS
5439
5440 * c-ada-spec.c (dump_ada_function_declaration): Increase buffer
5441 size to guarantee it fits the output of the formatted function
5442 regardless of its arguments.
5443
295844f6
MP
54442016-09-01 Marek Polacek <polacek@redhat.com>
5445
5446 PR c/7652
5447 * c-common.c (resolve_overloaded_builtin): Fix formatting. Add
5448 FALLTHRU comments.
5449
3d06b6f2
MP
54502016-08-29 Marek Polacek <polacek@redhat.com>
5451
5452 PR c/77292
5453 * c-common.c (warn_logical_not_parentheses): Don't warn for
5454 a comparison or a logical operator.
5455
34cedad5
TV
54562016-08-29 Tom de Vries <tom@codesourcery.com>
5457
5458 * c-common.c (build_va_arg): Fix type comparison assert.
5459
f162d717
TV
54602016-08-29 Tom de Vries <tom@codesourcery.com>
5461
5462 * c-common.c (build_va_arg): Replace first argument type error
5463 with assert.
5464
ba9bbd6f
TV
54652016-08-29 Tom de Vries <tom@codesourcery.com>
5466
5467 PR c/77398
5468 * c-common.c (build_va_arg): Add first argument error. Build va_arg
5469 with error_mark_node as va_list instead of with illegal va_list.
5470
ebef225f
MP
54712016-08-25 Marek Polacek <polacek@redhat.com>
5472 David Malcolm <dmalcolm@redhat.com>
5473
5474 * c-common.c (warn_logical_not_parentheses): Print fixit hints.
5475 * c-common.h (warn_logical_not_parentheses): Update declaration.
5476
b00e6e75
MP
54772016-08-22 Marek Polacek <polacek@redhat.com>
5478
5479 PR c++/77321
5480 * c-common.c (warn_for_memset): Check type for null.
5481
6dc198e3
JM
54822016-08-22 Joseph Myers <joseph@codesourcery.com>
5483
14ec014e 5484 * c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and
6dc198e3
JM
5485 _FloatNx types for suffixes for built-in functions.
5486
c65699ef
JM
54872016-08-19 Joseph Myers <joseph@codesourcery.com>
5488
5489 PR c/32187
5490 * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32)
5491 (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X)
5492 (RID_FLOAT128X): New enum rid values.
5493 (CASE_RID_FLOATN_NX): New macro.
5494 * c-common.c (c_common_reswords): Add _FloatN and _FloatNx
5495 keywords.
5496 (c_common_type_for_mode): Check for _FloatN and _FloatNx and
5497 corresponding complex types.
5498 (c_common_nodes_and_builtins): For non-C++, register _FloatN and
5499 _FloatNx and corresponding complex types.
5500 (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX.
5501 * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN
5502 and _FloatNx types for the widest type for determining
5503 DECIMAL_DIG. Define __LDBL_DECIMAL_DIG__ as well as
5504 __DECIMAL_DIG__ for long double. Handle FMA_SUFFIX being NULL.
5505 (c_cpp_builtins): Call builtin_define_float_constants for _FloatN
5506 and _FloatNx types.
5507 * c-lex.c (interpret_float): Handle _FloatN and _FloatNx
5508 constants.
5509 * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and
5510 _FloatNx types.
5511
cc015f3a
DM
55122016-08-18 David Malcolm <dmalcolm@redhat.com>
5513
5514 * c-opts.c (c_diagnostic_finalizer): Update for change to
5515 diagnostic_show_locus.
5516
cb18fd07
DM
55172016-08-18 David Malcolm <dmalcolm@redhat.com>
5518
5519 * c-common.c: Include "spellcheck.h".
5520 (cb_get_suggestion): New function.
5521 * c-common.h (cb_get_suggestion): New decl.
5522 * c-lex.c (init_c_lex): Initialize cb->get_suggestion to
5523 cb_get_suggestion.
5524
a76989dc
MP
55252016-08-18 Marek Polacek <polacek@redhat.com>
5526
5527 PR c/71514
5528 * c-common.c (get_atomic_generic_size): Disallow pointer-to-function
5529 and pointer-to-VLA.
5530
65e736c0
DM
55312016-08-16 David Malcolm <dmalcolm@redhat.com>
5532
5533 PR c/72857
5534 * c-common.c (substring_loc::get_range): Rename to...
5535 (substring_loc::get_location): ...this, converting param from a
5536 source_range * to a location_t *. Call
5537 get_source_location_for_substring rather than
5538 get_source_range_for_substring, and pass in m_caret_idx.
5539 * c-common.h (substring_loc::substring_loc): Add param "caret_idx".
5540 (substring_loc::get_range): Replace with...
5541 (substring_loc::get_location): ...this.
5542 (substring_loc::set_caret_index): New method.
5543 (substring_loc): Add field m_caret_idx.
5544 * c-format.c (format_warning_va): Update for above changes.
5545 Rename local "substring_loc" to "fmt_substring_loc" to avoid
5546 clashing with type name.
5547 (format_warning_at_char): Add caret_idx param to substring_loc ctor.
5548 (check_argument_type): Likewise.
5549 (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc"
5550 Use a copy when emitting warnings, setting the caret index from TYPE.
5551
7e1dde14 55522016-08-16 Eric Botcazou <ebotcazou@adacore.com>
8e745a17 5553 Arnaud Charlet <charlet@adacore.com>
7e1dde14
EB
5554
5555 * c-ada-spec.c (dump_number): New function.
5556 (handle_escape_character): Likewise.
5557 (print_ada_macros): Add handling of constant integers and strings.
5558
191816a3
MP
55592016-08-12 Marek Polacek <polacek@redhat.com>
5560
5561 PR c/7652
5562 * c-common.c (scalar_to_vector): Adjust fall through comment.
5563 * c-opts.c (c_common_handle_option): Likewise.
5564 * c-pragma.c (handle_pragma_pack): Add FALLTHRU.
5565 * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust
5566 fall through comment.
5567 * cilk.c (extract_free_variables): Add FALLTHRU.
5568
452df4a4
JM
55692016-08-10 Jason Merrill <jason@redhat.com>
5570
5571 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr.
5572
f3365c12
JM
55732016-08-09 Jason Merrill <jason@redhat.com>
5574
5575 * c-common.c (c_common_attribute_table): vector_size affects type
5576 identity.
5577
f0bc3323
MP
55782016-08-09 Marek Polacek <polacek@redhat.com>
5579
5580 PR c/7652
5581 * c-ada-spec.c (dump_generic_ada_node): Add return.
5582
98e5a19a
JM
55832016-08-09 Jason Merrill <jason@redhat.com>
5584
5585 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for
5586 C++17 constexpr lambdas.
5587
895aa8e1
DM
55882016-08-08 David Malcolm <dmalcolm@redhat.com>
5589
5590 PR c/64955
5591 * c-common.h (selftest::c_format_c_tests): New declaration.
5592 (selftest::run_c_tests): New declaration.
5593 * c-format.c: Include "selftest.h.
5594 (format_warning_va): Add param "corrected_substring" and use
5595 it to add a replacement fix-it hint.
5596 (format_warning_at_substring): Likewise.
5597 (format_warning_at_char): Update for new param of
5598 format_warning_va.
5599 (argument_parser::check_argument_type): Pass "fki" to
5600 check_format_types.
5601 (check_format_types): Add param "fki" and pass it to
5602 format_type_warning.
5603 (deref_n_times): New function.
5604 (get_modifier_for_format_len): New function.
5605 (selftest::test_get_modifier_for_format_len): New function.
5606 (get_format_for_type): New function.
5607 (format_type_warning): Add param "fki" and use it to attempt
5608 to provide hints for argument types when calling
5609 format_warning_at_substring.
5610 (selftest::get_info): New function.
5611 (selftest::assert_format_for_type_streq): New function.
5612 (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro.
5613 (selftest::test_get_format_for_type_printf): New function.
5614 (selftest::test_get_format_for_type_scanf): New function.
5615 (selftest::c_format_c_tests): New function.
5616
e52ed3fe
DM
56172016-08-08 David Malcolm <dmalcolm@redhat.com>
5618
5619 PR c/52952
5620 * c-format.c: Include "diagnostic.h".
5621 (location_column_from_byte_offset): Delete.
5622 (location_from_offset): Delete.
5623 (format_warning_va): New function.
5624 (format_warning_at_substring): New function.
5625 (format_warning_at_char): New function.
5626 (check_format_arg): Capture location of format_tree and pass to
5627 check_format_info_main.
5628 (argument_parser): Add fields "start_of_this_format" and
5629 "format_string_cst".
5630 (flag_chars_t::validate): Add param "format_string_cst". Convert
5631 warning_at call using location_from_offset to call to
5632 format_warning_at_char.
5633 (argument_parser::argument_parser): Add param "format_string_cst_"
5634 and use use it to initialize field "format_string_cst".
5635 Initialize new field "start_of_this_format".
5636 (argument_parser::read_format_flags): Convert warning_at call
5637 using location_from_offset to a call to format_warning_at_char.
5638 (argument_parser::read_any_format_left_precision): Likewise.
5639 (argument_parser::read_any_format_precision): Likewise.
5640 (argument_parser::read_any_other_modifier): Likewise.
5641 (argument_parser::find_format_char_info): Likewise, in three places.
5642 (argument_parser::parse_any_scan_set): Likewise, in one place.
5643 (argument_parser::handle_conversions): Likewise, in two places.
5644 (argument_parser::check_argument_type): Add param "fmt_param_loc"
5645 and use it to make a substring_loc. Pass the latter to
5646 check_format_types.
5647 (check_format_info_main): Add params "fmt_param_loc" and
5648 "format_string_cst". Convert warning_at calls using
5649 location_from_offset to calls to format_warning_at_char. Pass the
5650 new params to the arg_parser ctor. Pass "format_string_cst" to
5651 flag_chars.validate. Pass "fmt_param_loc" to
5652 arg_parser.check_argument_type.
5653 (check_format_types): Convert first param from a location_t
5654 to a const substring_loc & and rename to "fmt_loc". Attempt
5655 to extract the range of the relevant parameter and pass it
5656 to format_type_warning.
5657 (format_type_warning): Convert first param from a location_t
5658 to a const substring_loc & and rename to "fmt_loc". Add
5659 params "param_range" and "type". Replace calls to warning_at
5660 with calls to format_warning_at_substring.
5661
1c4d457e
DM
56622016-08-08 David Malcolm <dmalcolm@redhat.com>
5663
5664 * c-format.c (class flag_chars_t): New class.
5665 (struct length_modifier): New struct.
5666 (class argument_parser): New class.
5667 (flag_chars_t::flag_chars_t): New ctor.
5668 (flag_chars_t::has_char_p): New method.
5669 (flag_chars_t::add_char): New method.
5670 (flag_chars_t::validate): New method.
5671 (flag_chars_t::get_alloc_flag): New method.
5672 (flag_chars_t::assignment_suppression_p): New method.
5673 (argument_parser::argument_parser): New ctor.
5674 (argument_parser::read_any_dollar): New method.
5675 (argument_parser::read_format_flags): New method.
5676 (argument_parser::read_any_format_width): New method.
5677 (argument_parser::read_any_format_left_precision): New method.
5678 (argument_parser::read_any_format_precision): New method.
5679 (argument_parser::handle_alloc_chars): New method.
5680 (argument_parser::read_any_length_modifier): New method.
5681 (argument_parser::read_any_other_modifier): New method.
5682 (argument_parser::find_format_char_info): New method.
5683 (argument_parser::validate_flag_pairs): New method.
5684 (argument_parser::give_y2k_warnings): New method.
5685 (argument_parser::parse_any_scan_set): New method.
5686 (argument_parser::handle_conversions): New method.
5687 (argument_parser::check_argument_type): New method.
5688 (check_format_info_main): Introduce classes argument_parser
5689 and flag_chars_t, moving the code within the loop into methods
5690 of these classes. Make various locals "const".
5691
88fa5555
DM
56922016-08-05 David Malcolm <dmalcolm@redhat.com>
5693
5694 * c-common.c: Include "substring-locations.h".
5695 (get_cpp_ttype_from_string_type): New function.
5696 (g_string_concat_db): New global.
5697 (substring_loc::get_range): New method.
5698 * c-common.h (g_string_concat_db): New declaration.
5699 (class substring_loc): New class.
5700 * c-lex.c (lex_string): When concatenating strings, capture the
5701 locations of all tokens using a new obstack, and record the
5702 concatenation locations within g_string_concat_db.
5703 * c-opts.c (c_common_init_options): Construct g_string_concat_db
5704 on the ggc-heap.
5705
78169471
MP
57062016-07-29 Marek Polacek <polacek@redhat.com>
5707
638fc14f
MP
5708 PR c/71926
5709 * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the
5710 parentheses warning.
5711
78169471
MP
5712 PR c/71574
5713 * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL.
5714
1225d6b1
ML
57152016-07-28 Martin Liska <mliska@suse.cz>
5716
5717 PR gcov-profile/68025
5718 * c-common.c (handle_no_profile_instrument_function_attribute):
5719
ec1e2a40
BE
57202016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
5721
5722 * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of
5723 BITS_PER_UNIT_LOG.
5724
5ec2cd9f
JM
57252016-07-25 Jason Merrill <jason@redhat.com>
5726
5727 PR c++/65970
5728 * c.opt (fconstexpr-loop-limit): New.
5729
9dc5773f 57302016-07-22 Martin Sebor <msebor@redhat.com>
2e6b45af
MS
5731
5732 PR c++/71675
5733 * c-common.c (resolve_overloaded_builtin): Avoid converting
5734 __atomic_compare_exchange_n return type to that of what its
5735 first argument points to.
5736
e3fe09c1
UB
57372016-07-22 Uros Bizjak <ubizjak@gmail.com>
5738
5739 * c-common.c: Use HOST_WIDE_INT_M1U instead of
5740 ~(unsigned HOST_WIDE_INT) 0.
5741
bc91c436
ML
57422016-07-22 Martin Liska <mliska@suse.cz>
5743
5744 PR gcov-profile/69028
5745 PR gcov-profile/62047
5746 * cilk.c (create_cilk_helper_decl): Set location of a new decl
5747 to the current_function_decl.
5748
451dcc66
JM
57492016-07-21 Jason Merrill <jason@redhat.com>
5750
5751 PR c++/65168
5752 * c-common.c (c_common_truthvalue_conversion): Check
5753 c_inhibit_evaluation_warnings for warning about address of
5754 reference.
5755
de6a69ee
DM
57562016-07-20 David Malcolm <dmalcolm@redhat.com>
5757
5758 * c-common.h (lookup_name_fuzzy): Convert return type from tree to
5759 const char *.
5760
d022c55a
JM
57612016-07-15 Jason Merrill <jason@redhat.com>
5762
5763 * c-opts.c (c_common_post_options): Update -fabi-version default to 11.
5764
ddbbcb19
JJ
57652016-07-15 Jakub Jelinek <jakub@redhat.com>
5766
5767 PR c/71858
5768 * c-common.h (enum lookup_name_fuzzy_kind): Add
5769 FUZZY_LOOKUP_FUNCTION_NAME.
5770
d0cf395a
JM
57712016-07-08 Jason Merrill <jason@redhat.com>
5772
5773 P0145: Refining Expression Order for C++.
5774 * c.opts (-fargs-in-order): Rename to -fstrong-eval-order.
5775 * c-opts.c: Adjust.
5776
98d44e93
MT
57772016-07-05 Markus Trippelsdorf <markus@trippelsdorf.de>
5778
5779 PR c++/71214
5780 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.
5781
f9d8d994
TS
57822016-06-29 Thomas Schwinge <thomas@codesourcery.com>
5783
5784 * c-pragma.h (enum pragma_kind): Rename
5785 PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE. Adjust all
5786 users.
5787
4aa83879
RB
57882016-06-29 Richard Biener <rguenther@suse.de>
5789
5790 PR middle-end/71002
5791 * c-common.c (c_common_get_alias_set): Remove union type punning case.
5792
a25bd9e6
JM
57932016-06-24 Jason Merrill <jason@redhat.com>
5794
5795 P0145R2: Refining Expression Order for C++.
5796 * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of
5797 MODIFY_EXPR.
5798
a86451b9
JJ
57992016-06-24 Jakub Jelinek <jakub@redhat.com>
5800
5801 * c-common.c (check_builtin_function_arguments): Require last
5802 argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type.
5803 Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW
5804 if the last argument is pointer to enumerated or boolean type.
5805
1a4f11c8
DM
58062016-06-22 David Malcolm <dmalcolm@redhat.com>
5807
5808 PR c/70339
5809 * c-common.h (enum lookup_name_fuzzy_kind): New enum.
5810 (lookup_name_fuzzy): New prototype.
5811
fe55692c
JDA
58122016-06-21 John David Anglin <danglin@gcc.gnu.org>
5813
5814 * c-common.c (get_source_date_epoch): Use int64_t instead of long long.
5815
4eb24e01
JM
58162016-06-14 Jason Merrill <jason@redhat.com>
5817
5818 P0145R2: Refining Expression Order for C++.
5819 * c.opt (fargs-in-order): New.
5820 * c-opts.c (c_common_post_options): Adjust flag_args_in_order.
5821
ef7cf206
JJ
58222016-06-13 Jakub Jelinek <jakub@redhat.com>
5823
0dda258b
JJ
5824 PR sanitizer/71498
5825 * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
5826 all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.
5827
ef7cf206
JJ
5828 PR preprocessor/71183
5829 * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch
5830 to cb_get_source_date_epoch.
5831
50b15873
JJ
58322016-06-10 Jakub Jelinek <jakub@redhat.com>
5833
5834 PR c/68657
5835 * c.opt (Wpsabi): Add Warning flag.
5836
4d926e34
MS
58372016-06-10 Martin Sebor <msebor@redhat.com>
5838
5839 PR c/71392
14ec014e 5840 * c-common.c (handle_nonnull_attribute): Accept
4d926e34
MS
5841 the nonnull attribute in type-generic builtins.
5842
e01b4e16
MS
58432016-06-09 Martin Sebor <msebor@redhat.com>
5844
5845 PR c/70883
5846 * c-common.c (builtin_function_validate_nargs): Make text of error
5847 message consistent with others like it.
5848
44a845ca
MS
58492016-06-08 Martin Sebor <msebor@redhat.com>
5850 Jakub Jelinek <jakub@redhat.com>
5851
5852 PR c++/70507
5853 PR c/68120
5854 * c-common.c (check_builtin_function_arguments): Handle
5855 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
5856
a80a7051
RB
58572016-06-08 Richard Biener <rguenther@suse.de>
5858
5859 * c-common.c (parse_optimize_options): Improve diagnostic messages.
5860
bfd67b47
RB
58612016-06-07 Richard Biener <rguenther@suse.de>
5862
5863 PR c/61564
5864 * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION
5865 options and warn about others.
5866
15c98b2e
ES
58672016-06-01 Eduard Sanou <dhole@openmailbox.org>
5868
5869 * c-common.c (get_source_date_epoch): Rename to
5870 cb_get_source_date_epoch.
5871 * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
5872 message when the parsing fails. Use error_at instead of fatal_error.
5873 * c-common.h (get_source_date_epoch): Rename to
5874 cb_get_source_date_epoch.
5875 * c-common.h (cb_get_source_date_epoch): Prototype.
5876 * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
5877 * c-common.h (c_omp_region_type): Remove trailing comma.
5878 * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
5879 * c-lex.c (c_lex_with_flags): Remove initialization of
5880 pfile->source_date_epoch.
5881
00631022
JJ
58822016-05-30 Jakub Jelinek <jakub@redhat.com>
5883
5884 PR c++/71349
5885 * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
5886 C_OMP_CLAUSE_SPLIT_TARGET. Put OMP_CLAUSE_NOWAIT to
5887 C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
5888 instead of C_OMP_CLAUSE_SPLIT_FOR.
5889
f17a223d
RB
58902016-05-24 Richard Biener <rguenther@suse.de>
5891
5892 PR middle-end/70434
5893 PR c/69504
5894 * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
5895 (convert_vector_to_array_for_subscript): ... this.
5896 * c-common.c (convert_vector_to_pointer_for_subscript): Use a
5897 VIEW_CONVERT_EXPR to an array type. Rename to ...
5898 (convert_vector_to_array_for_subscript): ... this.
5899
4f2e1536
MP
59002016-05-12 Marek Polacek <polacek@redhat.com>
5901
5902 PR c/70756
5903 * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
5904 size_in_bytes and pass LOC to it.
5905
d6e83a8d
MM
59062016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
5907
5908 PR c/43651
5909 * c.opt (Wduplicate-decl-specifier): New option.
5910
5c3a10fb
MP
59112016-05-11 Marek Polacek <polacek@redhat.com>
5912
5913 PR c++/71024
5914 * c-common.c (diagnose_mismatched_attributes): New function.
5915 * c-common.h (diagnose_mismatched_attributes): Declare.
5916
deef7113
MP
59172016-05-04 Marek Polacek <polacek@redhat.com>
5918
5919 * c.opt (Wdangling-else): New option.
5920
79ce98bc
MP
59212016-05-03 Marek Polacek <polacek@redhat.com>
5922
5923 PR c/70859
5924 * c-common.c (builtin_function_validate_nargs): Add location
5925 parameter. Use it.
5926 (check_builtin_function_arguments): Add location and arguments
5927 parameters. Use them.
5928 * c-common.h (check_builtin_function_arguments): Update declaration.
5929
381cdae4
RB
59302016-05-03 Richard Biener <rguenther@suse.de>
5931
5932 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
5933 allow call args to gimplify to SSA names.
5934
1d793c34
MP
59352016-05-03 Marek Polacek <polacek@redhat.com>
5936
5937 * c-common.h (enum c_omp_region_type): Remove stray comma.
5938
77886428
CP
59392016-05-02 Cesar Philippidis <cesar@codesourcery.com>
5940
5941 * c-common.h (enum c_omp_region_type): Define.
5942
697e0b28
RS
59432016-05-02 Richard Sandiford <richard.sandiford@arm.com>
5944
5945 * c-common.c (shorten_compare): Use wi::to_wide.
5946
e7ff0319
CP
59472016-04-29 Cesar Philippidis <cesar@codesourcery.com>
5948
5949 PR middle-end/70626
5950 * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
5951 * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
5952 reduction clauses in acc parallel loops.
5953
2fff3db8
MP
59542016-04-29 Marek Polacek <polacek@redhat.com>
5955
5956 PR c/70852
5957 * c-common.c (warn_for_memset): Check domain before accessing it.
5958
509063eb
DV
59592016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
5960
5961 PR/69089
5962 * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
5963 "aligned" attribute.
5964
b632761d
JM
59652016-04-28 Jason Merrill <jason@redhat.com>
5966
5967 * c-lex.c (c_common_has_attribute): Handle nodiscard.
5968
174f6622
ES
59692016-04-28 Eduard Sanou <dhole@openmailbox.org>
5970 Matthias Klose <doko@debian.org>
5971
5972 * c-common.c (get_source_date_epoch): New function, gets the environment
7365279f 5973 variable SOURCE_DATE_EPOCH and parses it as long long with error
174f6622
ES
5974 handling.
5975 * c-common.h (get_source_date_epoch): Prototype.
5976 * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
5977
6bc2bb18
RB
59782015-04-27 Ryan Burn <contact@rnburn.com>
5979
5980 PR c++/69024
5981 PR c++/68997
5982 * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
5983 (cilk_recognize_spawn): Renamed from recognize_spawn and change to
5984 external linkage.
5985 (cilk_detect_and_unwrap): Corresponding changes.
5986 (extract_free_variables): Don't extract free variables from
5987 AGGR_INIT_EXPR slot.
5988 * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
5989 (cilk_recognize_spawn): Likewise.
5990
c1e1f433
BS
59912016-04-27 Bernd Schmidt <bschmidt@redhat.com>
5992
5993 * c.opt (Wmemset-elt-size): New option.
5994 * c-common.c (warn_for_memset): New function.
5995 * c-common.h (warn_for_memset): Declare.
5996
d067e05f
JM
59972016-04-25 Jason Merrill <jason@redhat.com>
5998
5999 * c-common.c (handle_unused_attribute): Accept CONST_DECL.
6000 No longer static.
6001 * c-common.h: Declare it.
6002 * c-lex.c (c_common_has_attribute): Add maybe_unused.
6003
9aa36ae5
JM
60042016-04-22 Jason Merrill <jason@redhat.com>
6005
6006 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
6007
477d4906
IV
60082016-04-20 Ilya Verbin <ilya.verbin@intel.com>
6009
6010 PR c++/69363
6011 * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
6012 * c-common.h (c_finish_cilk_clauses): Remove declaration.
6013
fe37c7af
MM
60142016-04-18 Michael Matz <matz@suse.de>
6015
6016 * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
6017 and SET_DECL_ALIGN.
6018
23f2660f
EB
60192016-04-17 Eric Botcazou <ebotcazou@adacore.com>
6020
6021 * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
6022 (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
6023 to incomplete types.
6024 (dump_nested_type): Remove redundant tests and tidy up.
6025 (print_ada_declaration): Also set TREE_VISITED on the declaration of
6026 a type which is the typedef of an original type.
6027
1e77281b
MP
60282016-04-15 Marek Polacek <polacek@redhat.com>
6029
6030 PR c/70651
6031 * c-common.c (build_va_arg): Change two asserts into errors and return
6032 error_mark_node.
6033
b3a77f21
MP
60342016-04-13 Marek Polacek <polacek@redhat.com>
6035
6036 PR c++/70639
6037 * c-indentation.c (should_warn_for_misleading_indentation): Bail out
6038 for switch statements, too.
6039
322b8466
JM
60402016-03-28 Jason Merrill <jason@redhat.com>
6041
6042 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
6043
fbdb6baf
MP
60442016-03-23 Marek Polacek <polacek@redhat.com>
6045
6046 PR c++/69884
6047 * c.opt (Wignored-attributes): New option.
6048
5c240f4d
DM
60492016-03-22 David Malcolm <dmalcolm@redhat.com>
6050
6051 PR c/69993
6052 * c-indentation.c (warn_for_misleading_indentation): Rewrite the
6053 diagnostic text, reversing the order of the warning and note so
6054 that they appear in source order.
6055
14ba7b28
MP
60562016-03-17 Marek Polacek <polacek@redhat.com>
6057
6058 PR c/69407
6059 * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
6060 operations.
6061
08a1cadc
JM
60622016-03-14 Jason Merrill <jason@redhat.com>
6063
2aaeea19
JM
6064 * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
6065
08a1cadc
JM
6066 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
6067
c06d25bb
RB
60682016-03-09 Richard Biener <rguenther@suse.de>
6069
6070 PR c/70143
6071 * c-common.c (strict_aliasing_warning): Add back
6072 alias_sets_conflict_p check.
6073
80aac5c8
JM
60742016-03-08 Jason Merrill <jason@redhat.com>
6075
6076 * c-opts.c (set_std_cxx1z): Don't enable concepts.
6077
64b23c13
DM
60782016-03-04 David Malcolm <dmalcolm@redhat.com>
6079
6080 PR c/68187
6081 * c-indentation.c (get_visual_column): Move code to determine next
6082 tab stop to...
6083 (next_tab_stop): ...this new function.
6084 (line_contains_hash_if): Delete function.
6085 (detect_preprocessor_logic): Delete function.
6086 (get_first_nws_vis_column): New function.
6087 (detect_intervening_unindent): New function.
6088 (should_warn_for_misleading_indentation): Replace call to
6089 detect_preprocessor_logic with a call to
6090 detect_intervening_unindent.
6091
729526f5
DM
60922016-03-04 David Malcolm <dmalcolm@redhat.com>
6093
6094 PR c/68187
6095 * c-indentation.c (should_warn_for_misleading_indentation): When
6096 suppressing warnings about cases where the guard and body are on
6097 the same column, only use the first non-whitespace column in place
6098 of the guard token column when dealing with "else" clauses.
6099 When rejecting aligned BODY and NEXT, loosen the requirement
6100 from equality with the first non-whitespace of guard to simply
6101 that they not be indented relative to it.
6102
e9a35493
RB
61032016-03-04 Richard Biener <rguenther@suse.de>
6104
6105 PR c++/70054
6106 * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
6107 instead of alias_sets_conflict_p.
6108
1be56bc5
MP
61092016-03-01 Marek Polacek <polacek@redhat.com>
6110
6111 PR c++/69795
6112 * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
6113 any DECL.
6114
35886f0b
MS
61152016-02-22 Martin Sebor <msebor@redhat.com>
6116
6117 PR middle-end/69780
6118 * c-common.c (check_builtin_function_arguments): Validate and
6119 reject invalid arguments to __builtin_alloca_with_align.
6120
4246c8da
MW
61212016-02-20 Mark Wielaard <mjw@redhat.com>
6122
6123 PR c/28901
6124 * c.opt (Wunused-const-variable): Turn into Alias for...
6125 (Wunused-const-variable=): New option.
6126
268be88c
BE
61272016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
6128
6129 PR c++/69865
6130 * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
6131 here...
6132 (c_common_init_options): ...to here.
6133 (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
6134
871b3f47
JJ
61352016-02-19 Jakub Jelinek <jakub@redhat.com>
6136
6137 PR c++/69826
6138 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
6139 (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
6140 flag_preprocess_only.
6141
bf14eba2
JJ
61422016-02-16 Jakub Jelinek <jakub@redhat.com>
6143
6144 PR c/69835
6145 * c.opt (Wnonnull-compare): Enable for -Wall.
6146
ba6b3795
JJ
61472016-02-15 Jakub Jelinek <jakub@redhat.com>
6148
6149 PR c++/69797
6150 * c-common.c (sync_resolve_size): Diagnose too few arguments
6151 even when params is non-NULL empty vector.
6152
a011cd92
BS
61532016-02-08 Bernd Schmidt <bschmidt@redhat.com>
6154
6155 PR target/60410
6156 * c.opt (fshort-double): Remove.
6157
46cb9332
MS
61582016-02-05 Martin Sebor <msebor@redhat.com>
6159
6160 PR c++/69662
6161 * c.opt (Warning options): Update -Wplacement-new to take
6162 an optional argument.
6163
e1b81f2b
JJ
61642016-02-01 Jakub Jelinek <jakub@redhat.com>
6165
6166 PR preprocessor/69543
6167 PR c/69558
6168 * c-pragma.c (handle_pragma_diagnostic): Pass input_location
6169 instead of loc to control_warning_option.
6170
b6adbb9f
NS
61712016-02-01 Nathan Sidwell <nathan@codesourcery.com>
6172
6173 * c.opt (fopenacc-dim=): New option.
6174
5d70666e
RB
61752016-01-27 Ryan Burn <contact@rnburn.com>
6176
6177 PR cilkplus/69267
6178 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
6179 gimplify_arg. Removed superfluous post_p argument.
6180 * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
6181 superfluous post_p argument.
6182 * c-gimplify.c (c_gimplify_expr): Likewise.
6183
01e1dea3
DM
61842016-01-26 David Malcolm <dmalcolm@redhat.com>
6185
6186 PR other/69006
6187 * c-opts.c (c_diagnostic_finalizer): Replace invocation of
6188 pp_newline_and_flush with pp_flush.
6189
9f04a53e
MS
61902016-01-20 Martin Sebor <msebor@redhat.com>
6191
6192 PR c/69405
6193 * c-common.c (sync_resolve_size): Avoid printing diagnostic about
6194 an incompatible argument when the argument isn't a valid tree node.
6195
7f26f7df
JM
61962016-01-18 Jason Merrill <jason@redhat.com>
6197
6198 PR c++/68767
6199 * c-common.c (check_function_arguments_recurse): Fold the whole
6200 COND_EXPR, not just the condition.
6201
f62bf092
TV
62022016-01-18 Tom de Vries <tom@codesourcery.com>
6203
6204 * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
6205 classify as loop clause.
6206
e0a575ff
JJ
62072016-01-15 Jakub Jelinek <jakub@redhat.com>
6208
6209 PR bootstrap/68271
6210 * c-pragma.c (c_register_pragma_1): Adjust comment to note that
6211 C++ FE no longer has limit on number of pragmas.
6212
62132015-01-14 Ryan Burn <contact@rnburn.com>
b6e3db06
RB
6214
6215 PR c++/69048
6216 * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
c47eaca6 6217 to add missing cleanup point.
b6e3db06 6218
c7df95d8
DM
62192016-01-14 David Malcolm <dmalcolm@redhat.com>
6220
6221 PR c++/68819
6222 * c-indentation.c (get_visual_column): Add location_t param.
6223 Handle the column number being zero by effectively disabling the
6224 warning, with an "inform".
6225 (should_warn_for_misleading_indentation): Add location_t argument
6226 for all uses of get_visual_column.
6227
21efdd80
PP
62282016-01-10 Patrick Palka <ppalka@gcc.gnu.org>
6229
6230 PR c++/69029
6231 * c-indentation.c (should_warn_for_misleading_indentation):
6232 Don't warn about do-while statements.
6233
7a127fa7
MS
62342016-01-07 Martin Sebor <msebor@redhat.com>
6235
6236 PR c/68966
6237 * c-common.c (sync_resolve_size): Reject first argument when it's
6238 a pointer to _Bool.
6239
c589e975
DM
62402016-01-05 David Malcolm <dmalcolm@redhat.com>
6241
6242 PR c/69122
6243 * c-indentation.c (get_visual_column): Remove default argument.
6244 (should_warn_for_misleading_indentation): For the multiline case,
6245 update call to get_visual_column for next_stmt_exploc so that it
6246 captures the location of the first non-whitespace character in the
6247 relevant line. Don't issue warnings if there is non-whitespace
6248 before the next statement.
6249
818ab71a
JJ
62502016-01-04 Jakub Jelinek <jakub@redhat.com>
6251
6252 Update copyright years.
6253
745e411d
DM
62542015-12-21 David Malcolm <dmalcolm@redhat.com>
6255
6256 * c-common.c (binary_op_error): Convert first param from
6257 location_t to rich_location * and use it when emitting an error.
6258 * c-common.h (binary_op_error): Convert first param from
6259 location_t to rich_location *.
6260
de67c4c3
DM
62612015-12-16 David Malcolm <dmalcolm@redhat.com>
6262
6263 * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
6264 * c-lex.c (conflict_marker_get_final_tok_kind): New function.
6265
4a38b02b
IV
62662015-12-15 Ilya Verbin <ilya.verbin@intel.com>
6267
6268 * c-common.c (c_common_attribute_table): Handle "omp declare target
6269 link" attribute.
6270
54d62f51
JJ
62712015-12-14 Jakub Jelinek <jakub@redhat.com>
6272
6273 PR c/68833
6274 * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
6275
8d4227c8
TB
62762014-12-12 Tobias Burnus <burnus@net-b.de>
6277
6278 PR fortran/68815
6279 * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
6280 specifiers (%d, %i,%u and %c).
6281
f6069ccc
DM
62822015-12-10 David Malcolm <dmalcolm@redhat.com>
6283
6284 * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
6285
63bbf46d
JJ
62862015-12-08 Jakub Jelinek <jakub@redhat.com>
6287
6288 PR c/48088
6289 PR c/68657
6290 * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
6291 * c-pragma.c (handle_pragma_diagnostic): Adjust
6292 control_warning_option caller.
6293
f79520bb
DM
62942015-12-07 David Malcolm <dmalcolm@redhat.com>
6295
6296 * c-common.c (c_cpp_error): Update for change to
6297 rich_location::set_range.
6298
b3d5bc62
JJ
62992015-12-04 Paolo Bonzini <bonzini@gnu.org>
6300
6301 * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
6302 shifting 1 out of the sign bit.
6303
63042015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
6305
6306 * c-common.c (c_common_attribute_table[]): Update max arguments
6307 count for "simd" attribute.
6308 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
6309
6eb4a537
JJ
63102015-12-03 Jakub Jelinek <jakub@redhat.com>
6311
6312 PR preprocessor/57580
6313 * c-ppoutput.c (print): Change printed field to bool.
6314 Move src_file last for smaller padding.
6315 (init_pp_output): Set print.printed to false instead of 0.
6316 (scan_translation_unit): Fix up formatting. Set print.printed
6317 to true after printing something other than newline.
6318 (scan_translation_unit_trad): Set print.printed to true instead of 1.
6319 (maybe_print_line_1): Set print.printed to false instead of 0.
6320 (print_line_1): Likewise.
6321 (do_line_change): Set print.printed to true instead of 1.
6322 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
6323 dump_macro): Set print.printed to false after printing newline.
6324
4250754e
JM
63252015-12-02 Jason Merrill <jason@redhat.com>
6326
f479b43d
JM
6327 * c-common.c (fold_for_warn): New.
6328 (warn_logical_operator, warn_tautological_cmp)
6329 (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
6330
4250754e
JM
6331 * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
6332 (c_fully_fold_internal, decl_constant_value_for_optimization):
6333 Move to c/c-fold.c.
6334 * c-common.h: Don't declare decl_constant_value_for_optimization.
6335
e9e32ee6
JM
63362015-12-02 Joseph Myers <joseph@codesourcery.com>
6337
6338 PR c/68162
6339 * c-common.h (c_build_qualified_type): Add extra default
6340 arguments.
6341
37d5ad46
JB
63422015-12-01 Julian Brown <julian@codesourcery.com>
6343 Cesar Philippidis <cesar@codesourcery.com>
6344 James Norris <James_Norris@mentor.com>
6345
6346 * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
6347 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
6348 (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
6349
f07862c7
EB
63502015-11-30 Eric Botcazou <ebotcazou@adacore.com>
6351
6352 * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
6353 (decl_sloc_common): Delete and move bulk of processing to...
6354 (decl_sloc): ...here.
6355 (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
6356 (dump_ada_double_name): Remove S parameter and compute the suffix.
6357 (dump_ada_array_type): Add PARENT parameter. Simplify computation of
6358 element type and deal with an anonymous one.
6359 (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
6360 (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type
6361 and remove reference to QUAL_UNION_TYPE.
6362 (dump_nested_types): Make 2 passes on the fields and move bulk to...
6363 (dump_nested_type): ...here. New function extracted from above.
6364 Generate a full declaration for anonymous element type of arrays.
6365 (print_ada_declaration): Really skip anonymous declarations. Remove
6366 references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type.
6367 Clean up processing of declarations of array types and objects.
6368 (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
6369 Remove obsolete code and tidy up.
6370
75c8aac3
JH
63712015-11-29 Jan Hubicka <hubicka@ucw.cz>
6372
6373 PR c/67581
6374 * c-common.c (handle_transparent_union_attribute): Update
6375 also type variants.
6376
b58d3df2
ML
63772015-11-27 Martin Liska <mliska@suse.cz>
6378
6379 PR c++/68312
6380 * array-notation-common.c (cilkplus_extract_an_triplets):
6381 Release vector of vectors.
6382 * cilk.c (gimplify_cilk_spawn): Free allocated memory.
6383
89a01fcf
EB
63842015-11-26 Eric Botcazou <ebotcazou@adacore.com>
6385
6386 PR c++/68527
6387 * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
6388 (print_ada_struct_decl): Likewise.
6389
cc5c5226
IZ
63902015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
6391
6392 PR c++/68001
6393 * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
6394 * cilk.c (recognize_spawn): Determine location in a more precise
6395 way.
6396
269adb9d
JM
63972015-11-19 Jason Merrill <jason@redhat.com>
6398
6399 * c-common.c (shorten_compare): But look through macros from
6400 system headers.
6401
d0eccfcd
JM
64022015-11-18 Jason Merrill <jason@redhat.com>
6403
6404 * c-common.c (shorten_compare): Don't -Wtype-limits if the
6405 non-constant operand comes from a macro.
6406
3e44547c
JM
64072015-11-17 Jason Merrill <jason@redhat.com>
6408
6409 PR bootstrap/68346
6410 * c-common.c (warn_tautological_cmp): Fold before checking for
6411 constants.
6412
0f62c7a0
MP
64132015-11-16 Marek Polacek <polacek@redhat.com>
6414
6415 PR c++/68362
6416 * c-common.c (check_case_bounds): Fold low and high cases.
6417
a868811e
MP
64182015-11-16 Marek Polacek <polacek@redhat.com>
6419
6420 * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
6421 * c-common.c (c_common_get_alias_set): Likewise.
6422 (handle_visibility_attribute): Likewise.
6423
fff77217
KY
64242015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
6425
6426 * c-common.c (handle_simd_attribute): New.
6427 (struct attribute_spec): Add entry for "simd".
6428 (handle_simd_attribute): New.
6429
269e63b7
KT
64302015-11-13 Kai Tietz <ktietz70@googlemail.com>
6431
6432 * c-lex.c (interpret_float): Use fold_convert.
6433
ebedc9a3
DM
64342015-11-13 David Malcolm <dmalcolm@redhat.com>
6435
6436 * c-common.c (c_fully_fold_internal): Capture existing souce_range,
6437 and store it on the result.
6438 * c-opts.c (c_common_init_options): Set
6439 global_dc->colorize_source_p.
6440
6e232ba4
JN
64412015-11-12 James Norris <jnorris@codesourcery.com>
6442 Joseph Myers <joseph@codesourcery.com>
6443
7365279f 6444 * c-pragma.c (oacc_pragmas): Add entry for declare directive.
6e232ba4
JN
6445 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
6446 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
6447 PRAGMA_OACC_CLAUSE_LINK.
6448
e78bede6
MP
64492015-11-11 Marek Polacek <polacek@redhat.com>
6450
6451 PR c/68107
6452 PR c++/68266
6453 * c-common.c (valid_array_size_p): New function.
6454 * c-common.h (valid_array_size_p): Declare.
6455
3f8257db 64562015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
4ac93c7c
DH
6457
6458 PR bootstrap/68271
6459 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
6460
69f293c9
AM
64612015-11-11 Andrew MacLeod <amacleod@redhat.com>
6462
6463 * array-notation-common.c: Remove unused header files.
6464 * c-ada-spec.c: Likewise.
6465 * c-cilkplus.c: Likewise.
6466 * c-common.c: Likewise.
6467 * c-cppbuiltin.c: Likewise.
6468 * c-dump.c: Likewise.
6469 * c-format.c: Likewise.
6470 * c-gimplify.c: Likewise.
6471 * c-indentation.c: Likewise.
6472 * c-lex.c: Likewise.
6473 * c-omp.c: Likewise.
6474 * c-opts.c: Likewise.
6475 * c-pch.c: Likewise.
6476 * c-ppoutput.c: Likewise.
6477 * c-pragma.c: Likewise.
6478 * c-pretty-print.c: Likewise.
6479 * c-semantics.c: Likewise.
6480 * c-ubsan.c: Likewise.
6481 * cilk.c: Likewise.
6482 * stub-objc.c: Likewise.
6483
3a40d81d
NS
64842015-11-09 Thomas Schwinge <thomas@codesourcery.com>
6485 Cesar Philippidis <cesar@codesourcery.com>
6486 James Norris <jnorris@codesourcery.com>
6487 Julian Brown <julian@codesourcery.com>
6488 Nathan Sidwell <nathan@codesourcery.com>
6489
6490 * c-pragma.c (oacc_pragmas): Add "routine".
6491 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
6492
ee45a32d
EB
64932015-11-08 Eric Botcazou <ebotcazou@adacore.com>
6494
6495 * c-common.c (c_common_attributes): Add scalar_storage_order.
6496 (handle_scalar_storage_order_attribute): New function.
6497 * c-pragma.c (global_sso): New variable.
6498 (maybe_apply_pragma_scalar_storage_order): New function.
6499 (handle_pragma_scalar_storage_order): Likewise.
6500 (init_pragma): Register scalar_storage_order.
6501 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
6502 * c.opt (Wscalar-storage-order): New warning.
6503 (fsso-struct=): New option.
6504
eb11eb15
MS
65052015-11-08 Martin Sebor <msebor@redhat.com>
6506
6507 * c.opt (Wplacement-new): Add a period to the end of a sentence.
6508
0aad0198
RS
65092015-11-07 Richard Sandiford <richard.sandiford@arm.com>
6510
6511 * c-common.c: Don't undef DEF_BUILTIN.
6512
8a645150
DM
65132015-11-06 David Malcolm <dmalcolm@redhat.com>
6514
6515 * c-common.c (c_cpp_error): Convert parameter from location_t to
6516 rich_location *. Eliminate the "column_override" parameter and
6517 the call to diagnostic_override_column.
6518 Update the "done_lexing" clause to set range 0
6519 on the rich_location, rather than overwriting a location_t.
6520 * c-common.h (c_cpp_error): Convert parameter from location_t to
6521 rich_location *. Eliminate the "column_override" parameter.
6522
7a5e4956
CP
65232015-11-05 Cesar Philippidis <cesar@codesourcery.com>
6524 Thomas Schwinge <thomas@codesourcery.com>
6525 James Norris <jnorris@codesourcery.com>
6526
6527 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
6528 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
6529 clauses with parallel and kernels and loops.
6530 * c-pragma.h (enum pragma_omp_clause): Add entries for
6531 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
6532 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
6533 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
6534 INDEPENDENT,SEQ}.
6535 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
6536
e2f5cc96
MS
65372015-11-05 Martin Sebor <msebor@redhat.com>
6538
6539 PR c++/67942
6540 * c.opt (-Wplacement-new): New option.
6541
e01d41e5
JJ
65422015-11-05 Jakub Jelinek <jakub@redhat.com>
6543
6544 * c-common.h (c_finish_omp_atomic): Add TEST argument.
6545 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
6546 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
6547 save_expr or create_tmp_var* if TEST is true.
6548 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
6549 Don't call add_stmt here.
6550 (struct c_omp_check_loop_iv_data): New type.
6551 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
6552 c_omp_check_loop_iv_exprs): New functions.
6553 (c_omp_split_clauses): Adjust for lastprivate being allowed on
6554 distribute.
6555 (c_omp_declare_simd_clauses_to_numbers): Change
6556 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
6557 (c_omp_declare_simd_clauses_to_decls): Similarly change those
6558 from numbers to PARM_DECLs.
6559
595278be
MM
65602015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
6561
6562 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
6563 flag_checking.
6564
3f8257db 65652015-11-03 Bernd Schmidt <bschmidt@redhat.com>
c85158de
MS
6566
6567 PR c++-common/67882
b3d5bc62
JJ
6568 * c-common.h (fold_offsetof_1): Add argument.
6569 * c-common.c (fold_offsetof_1): Diagnose more invalid
c85158de
MS
6570 offsetof expressions that reference elements past the end of
6571 an array.
6572
4bf9e5a8
TS
65732015-11-03 Thomas Schwinge <thomas@codesourcery.com>
6574 Chung-Lin Tang <cltang@codesourcery.com>
6575
6576 * c-pragma.c (oacc_pragmas): Add "atomic".
6577 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
6578
3b1661a9
ES
65792015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
6580
6581 * c-common.c (handle_target_clones_attribute): New.
6582 (c_common_attribute_table): Add handle_target_clones_attribute.
6583 (handle_always_inline_attribute): Add check on target_clones attribute.
6584 (handle_target_attribute): Ditto.
6585
2adfab87
AM
65862015-10-29 Andrew MacLeod <amacleod@redhat.com>
6587
6588 * array-notation-common.c: Reorder #include's and remove duplicates.
6589 * c-ada-spec.c: Likewise.
6590 * c-cilkplus.c: Likewise.
6591 * c-common.c: Likewise.
6592 * c-cppbuiltin.c: Likewise.
6593 * c-dump.c: Likewise.
6594 * c-format.c: Likewise.
6595 * c-gimplify.c: Likewise.
6596 * c-indentation.c: Likewise.
6597 * c-lex.c: Likewise.
6598 * c-omp.c: Likewise.
6599 * c-opts.c: Likewise.
6600 * c-pch.c: Likewise.
6601 * c-ppoutput.c: Likewise.
6602 * c-pragma.c: Likewise.
6603 * c-pretty-print.c: Likewise.
6604 * c-semantics.c: Likewise.
6605 * c-ubsan.c: Likewise.
6606 * cilk.c: Likewise.
6607 * stub-objc.c: Likewise.
6608
d90ec4f2
JM
66092015-10-28 Jason Merrill <jason@redhat.com>
6610
6611 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
6612
88bae6f4
TS
66132015-10-27 Thomas Schwinge <thomas@codesourcery.com>
6614 James Norris <jnorris@codesourcery.com>
6615 Cesar Philippidis <cesar@codesourcery.com>
6616
6617 PR c/64765
6618 PR c/64880
6619 * c-common.h (c_oacc_split_loop_clauses): Declare function.
6620 * c-omp.c (c_oacc_split_loop_clauses): New function.
6621
b1726d6c
MS
66222015-10-21 Martin Sebor <msebor@redhat.com>
6623
6624 PR driver/68043
6625 * c.opt: End each sentence that describes an option with a period.
6626
fa60eeb9
MP
66272015-10-20 Marek Polacek <polacek@redhat.com>
6628
6629 * array-notation-common.c (is_cilkplus_vector_p): Define.
6630 * c-common.h (is_cilkplus_vector_p): Declare.
6631
95979049
MP
66322015-10-20 Marek Polacek <polacek@redhat.com>
6633
6634 * c.opt (std=gnu++11): Do not describe as experimental.
6635 (std=gnu++14): Likewise.
6636
2a9fb712
JM
66372015-10-19 Jason Merrill <jason@redhat.com>
6638
6639 * c-cppbuiltin.c (c_cpp_builtins): Define
6640 __cpp_nontype_template_args.
6641
13b380a3
JM
66422015-10-19 Jason Merrill <jason@redhat.com>
6643
6644 * c-cppbuiltin.c (c_cpp_builtins): Define
6645 __cpp_enumerator_attributes, __cpp_fold_expressions,
6646 __cpp_unicode_characters.
6647
d9a6bd32
JJ
66482015-10-13 Jakub Jelinek <jakub@redhat.com>
6649 Aldy Hernandez <aldyh@redhat.com>
6650
6651 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
6652 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
6653 (c_define_builtins): Likewise.
6654 * c-common.h (enum c_omp_clause_split): Add
6655 C_OMP_CLAUSE_SPLIT_TASKLOOP.
6656 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
6657 (c_finish_omp_for): Add ORIG_DECLV argument.
6658 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
6659 201511 instead of 201307.
6660 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
6661 OMP_CRITICAL_CLAUSES to it.
6662 (c_finish_omp_ordered): Add CLAUSES argument, set
6663 OMP_ORDERED_CLAUSES to it.
6664 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
6665 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
6666 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
6667 constructs and new OpenMP 4.5 clauses. Clear
6668 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
6669 verification code.
6670 * c-pragma.c (omp_pragmas_simd): Add taskloop.
6671 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
6672 (enum pragma_omp_clause): Add
6673 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
6674 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
6675
624d31fe
RS
66762015-10-05 Richard Sandiford <richard.sandiford@arm.com>
6677
6678 * c-lex.c (interpret_float): Use real_equal instead of
6679 REAL_VALUES_EQUAL.
6680
b8fd7909
JM
66812015-10-04 Jason Merrill <jason@redhat.com>
6682
6683 Implement N4514, C++ Extensions for Transactional Memory.
6684 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
6685 (c_common_attribute_table): Add transaction_safe_dynamic.
6686 transaction_safe now affects type identity.
6687 (handle_tm_attribute): Handle transaction_safe_dynamic.
6688 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
6689 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
6690 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
6691 (D_TRANSMEM): New.
6692 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
6693 * c-pretty-print.c (pp_c_attributes_display): Don't print
6694 transaction_safe in C++.
6695
12651878
MP
66962015-10-02 Marek Polacek <polacek@redhat.com>
6697
6698 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
6699
3e3b8d63
MP
67002015-10-02 Marek Polacek <polacek@redhat.com>
6701
6702 PR c/64249
6703 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
6704 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
6705 * c.opt (Wduplicated-cond): New option.
6706
0d1a8f75
JM
67072015-10-01 Joseph Myers <joseph@codesourcery.com>
6708
6709 * c.opt (std=c11): Do not describe as experimental.
6710 (std=gnu11): Likewise.
6711 (std=iso9899:2011): Likewise.
6712
3e32ee19
NS
67132015-09-28 Nathan Sidwell <nathan@codesourcery.com>
6714
6715 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
6716 (DEF_FUNCTION_TYPE_VAR_11): Delete.
6717
974348ee
MP
67182015-09-25 Marek Polacek <polacek@redhat.com>
6719
6720 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
6721 (ubsan_instrument_shift): Likewise.
6722
15dbc1a6
MP
67232015-09-25 Marek Polacek <polacek@redhat.com>
6724
6725 PR sanitizer/64906
6726 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
6727
6b95d7cc
PP
67282015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
6729
6730 * c-indentation.c (should_warn_for_misleading_indentation):
6731 Compare next_stmt_vis_column with guard_line_first_nws instead
6732 of with guard_line_vis_column.
6733
c1822f9c
MLI
67342015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
6735
6736 PR c/49654
6737 PR c/49655
6738 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
6739 options and options not valid for the current language.
6740
d5398058
PP
67412015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
6742
6743 * c-indentation.c (should_warn_for_misleading_indentation):
6744 Float out and consolidate the calls to get_visual_column that
6745 are passed guard_exploc as an argument. Compare
6746 next_stmt_vis_column with guard_line_first_nws instead of with
6747 body_line_first_nws.
6748
6b333269
NS
67492015-09-22 Nathan Sidwell <nathan@codesourcery.com>
6750
6751 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
6752 Wnamespaces): New C++ warnings.
6753
a75f1574
JM
67542015-09-22 Jason Merrill <jason@redhat.com>
6755
6756 * c-common.h (abi_compat_version_crosses): New.
6757 (warn_abi_version): Declare.
6758 * c-common.c: Define it.
6759 * c-opts.c (c_common_post_options): Handle it.
6760 flag_abi_compat_version defaults to 8.
6761
bdaaa8b7
VV
67622015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
6763
6764 Complete the implementation of N4230, Nested namespace definition.
6765 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
6766 __cpp_nested_namespace_definitions.
6767
eaa797e8
MLI
67682015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
6769
6770 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
6771
c4914de6
MLI
67722015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
6773
6774 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
6775 when warning.
6776 * c-pragma.h (pragma_lex): Add optional loc argument.
6777
fcb87c50
MM
67782015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
6779
6780 * c-format.c (check_format_arg): Adjust to use common block size in all
6781 object pools.
6782
31bdd08a
DM
67832015-09-15 David Malcolm <dmalcolm@redhat.com>
6784
6785 * c-format.c (location_from_offset): Update for change in
6786 signature of location_get_source_line.
6787 * c-indentation.c (get_visual_column): Likewise.
6788 (line_contains_hash_if): Likewise.
6789
aa9f4b4c
MP
67902015-09-14 Marek Polacek <polacek@redhat.com>
6791
6792 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
6793 setting various warnings.
6794
aa256c4a
MP
67952015-09-14 Marek Polacek <polacek@redhat.com>
6796
6797 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
6798 a negative value.
6799
0f876f22
MW
68002015-09-11 Mark Wielaard <mjw@redhat.com>
6801
6802 PR c/28901
6803 * c.opt (Wunused-variable): Option from common.opt.
6804 (Wunused-const-variable): New option.
6805
273aa49e
PC
68062015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
6807
6808 PR c++/53184
6809 * c.opt ([Wsubobject-linkage]): Add.
6810
1807ffc1
MS
68112015-09-03 Martin Sebor <msebor@redhat.com>
6812
6813 PR c/66516
6814 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
6815 functions.
6816 * c-common.c (reject_gcc_builtin): Define.
6817
38942840
BI
68182015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
6819
6820 PR middle-end/60586
6821 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
6822 prototype.
6823 * c-gimplify.c (c_gimplify_expr): Added a call to the function
6824 cilk_gimplify_call_params_in_spawned_fn.
6825 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
6826 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
6827 unwrapping.
6828
c316b5e4
MP
68292015-08-25 Marek Polacek <polacek@redhat.com>
6830
6831 PR middle-end/67330
6832 * c-common.c (handle_weak_attribute): Don't check whether the
6833 visibility can be changed here.
6834
584a7c46
MLI
68352015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
6836
6837 * c-lex.c (c_lex_with_flags): Use explicit locations.
6838
a79683d5
TS
68392015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
6840
6841 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
6842 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
6843
61717a45
FXC
68442015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6845
6846 PR middle-end/36757
6847 * c-common.c (check_builtin_function_arguments): Add check
6848 for BUILT_IN_SIGNBIT argument.
6849
329524f5
PC
68502015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
6851
6852 PR c++/67160
6853 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
6854 in c++1z mode.
6855
4ee55665
MP
68562015-08-17 Marek Polacek <polacek@redhat.com>
6857
6858 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
6859 with whitespaces before qualifier names.
6860
b893e375
MP
68612015-08-12 Marek Polacek <polacek@redhat.com>
6862
6863 PR c++/55095
6864 * c-common.c (maybe_warn_shift_overflow): Properly handle
6865 left-shifting 1 into the sign bit.
6866
c2d89095
MLI
68672015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
6868
6869 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
6870
971e17ff
AS
68712015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
6872 Braden Obrzut <admin@maniacsvault.net>
6873 Jason Merrill <jason@redhat.com>
6874
6875 Add C++ Concepts TS support.
6876 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
6877 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
6878 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
6879 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
6880 * c-opts.c (set_std_cxx1z): Set flag_concepts.
6881 * c.opt (fconcepts): New.
6882
b3d5bc62
JJ
68832015-08-02 Martin Sebor <msebor@redhat.com>
6884
6885 * c.opt (-Wframe-address): New warning option.
6886
8ebca419
PP
68872015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
6888
6889 * c-indentation.c (should_warn_for_misleading_indentation):
6890 Improve heuristics.
6891
1a1e101f
PP
68922015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
6893
6894 * c-indentation.c (get_visual_column): Add parameter first_nws,
6895 use it. Update comment documenting the function.
6896 (is_first_nonwhitespace_on_line): Remove.
6897 (should_warn_for_misleading_indentation): Replace usage of
6898 of is_first_nonwhitespace_on_line with get_visual_column.
6899
992118a1
PP
69002015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
6901
6902 * c-indentation.h (struct token_indent_info): Define.
6903 (get_token_indent_info): Define.
6904 (warn_for_misleading_information): Declare.
6905 * c-common.h (warn_for_misleading_information): Remove.
6906 * c-identation.c (warn_for_misleading_indentation):
6907 Change declaration to take three token_indent_infos. Adjust
6908 accordingly.
6909 * c-identation.c (should_warn_for_misleading_indentation):
6910 Likewise. Bail out early if the body is a compound statement.
6911 (guard_tinfo_to_string): Define.
6912
e8fa3817
JM
69132015-07-30 Jason Merrill <jason@redhat.com>
6914
6915 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
6916 '*' for reference decay.
6917
173864e8
MP
69182015-07-30 Marek Polacek <polacek@redhat.com>
6919
6920 * c-common.c (warn_tautological_cmp): Bail for float types.
6921
f2afe6dd
MP
69222015-07-27 Marek Polacek <polacek@redhat.com>
6923
6924 PR bootstrap/67030
6925 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
6926
05b28fd6
MP
69272015-07-27 Marek Polacek <polacek@redhat.com>
6928
6929 PR c++/66555
6930 PR c/54979
6931 * c-common.c (find_array_ref_with_const_idx_r): New function.
6932 (warn_tautological_cmp): New function.
6933 * c-common.h (warn_tautological_cmp): Declare.
6934 * c.opt (Wtautological-compare): New option.
6935
5a5062b8
MP
69362015-07-23 Marek Polacek <polacek@redhat.com>
6937
6938 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
6939 (ubsan_instrument_shift): Likewise.
6940
dc891fe7
MP
69412015-07-23 Marek Polacek <polacek@redhat.com>
6942
6943 PR sanitizer/66908
6944 * c-ubsan.c: Include gimplify.h.
6945 (ubsan_instrument_division): Unshare OP0 and OP1.
6946 (ubsan_instrument_shift): Likewise.
6947
451b5e48
MP
69482015-07-20 Marek Polacek <polacek@redhat.com>
6949 Richard Sandiford <richard.sandiford@arm.com>
6950
6951 PR c++/55095
6952 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
6953 Use EXPR_LOC_OR_LOC.
6954 (maybe_warn_shift_overflow): New function.
6955 * c-common.h (maybe_warn_shift_overflow): Declare.
6956 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
6957 * c.opt (Wshift-overflow): New option.
6958
fb0b2914
ML
69592015-07-16 Martin Liska <mliska@suse.cz>
6960
6961 * c-format.c (static void check_format_info_main): Use
6962 object_allocator instead of pool_allocator.
6963 (check_format_arg): Likewise.
6964 (check_format_info_main): Likewise.
6965
903f5c23
AM
69662015-07-15 Andrew MacLeod <amacleod@redhat.com>
6967
6968 * c-opts.c: Remove multiline #include comment.
6969
026c3cfd
AH
69702015-07-12 Aldy Hernandez <aldyh@redhat.com>
6971
6972 * c-common.c: Fix double word typos.
6973
bb49ee66
EB
69742015-07-10 Eric Botcazou <ebotcazou@adacore.com>
6975
6976 * c-ada-spec.h (cpp_operation): Revert latest change.
6977 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
6978 constructors and destructors.
6979
1916bcb5
AM
69802015-07-09 Andrew MacLeod <amacleod@redhat.com>
6981
6982 * c-common.h: Adjust includes for flags.h changes.
6983 * stub-objc.c: Likewise.
026c3cfd 6984
a9dcd529
EB
69852015-07-08 Eric Botcazou <ebotcazou@adacore.com>
6986
6987 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
6988 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
6989
b03b462f
JJ
69902015-07-08 Jakub Jelinek <jakub@redhat.com>
6991
6992 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
6993 are to be removed, return NULL rather than original clauses list.
6994
c7131fb2
AM
69952015-07-07 Andrew MacLeod <amacleod@redhat.com>
6996
6997 * array-notation-common.c: Adjust includes.
6998 * c-ada-spec.c: Likewise.
6999 * c-cilkplus.c: Likewise.
7000 * c-common.h: Likewise.
7001 * c-cppbuiltin.c: Likewise.
7002 * c-dump.c: Likewise.
7003 * c-format.c: Likewise.
7004 * c-gimplify.c: Likewise.
7005 * c-indentation.c: Likewise.
7006 * c-lex.c: Likewise.
7007 * c-omp.c: Likewise.
7008 * c-opts.c: Likewise.
7009 * c-pch.c: Likewise.
7010 * c-ppoutput.c: Likewise.
7011 * c-pragma.c: Likewise.
7012 * c-pretty-print.c: Likewise.
7013 * c-semantics.c: Likewise.
7014 * c-ubsan.c: Likewise.
7015 * cilk.c: Likewise.
7016 * stub-objc.c: Likewise.
7017
2a7fb83f
EB
70182015-07-07 Eric Botcazou <ebotcazou@adacore.com>
7019
7020 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
7021 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
7022
a03c9bf1
JM
70232015-07-01 Jason Merrill <jason@redhat.com>
7024
36a85135
JM
7025 * c-common.h (D_CXX11): Rename from D_CXX0X.
7026 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
7027 * c-common.c: Adjust.
7028
e7fa68d5
JM
7029 * c-opts.c (c_common_post_options): Default to C++14.
7030
a03c9bf1
JM
7031 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
7032
fe95b036
ESR
70332015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
7034
7035 Implement N4197 - Adding u8 character literals
b3d5bc62 7036 * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
a64be36b 7037 CPP_CHAR.
b3d5bc62 7038 * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
a64be36b 7039 CPP_UTF8CHAR_USERDEF tokens.
b3d5bc62 7040 * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
a64be36b
EB
7041 and CPP_UTF8CHAR tokens.
7042 (lex_charconst): Treat CPP_UTF8CHAR token.
fe95b036 7043
da2e71c9
MLI
70442015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
7045
7046 PR fortran/66605
7047 * c-common.c (do_warn_unused_parameter): Move here.
7048 * c-common.h (do_warn_unused_parameter): Declare.
7049
b155cfd9
MP
70502015-06-29 Marek Polacek <polacek@redhat.com>
7051
7052 PR c/66322
7053 * c-common.c (check_case_bounds): Add bool * parameter. Set
7054 OUTSIDE_RANGE_P.
7055 (c_add_case_label): Add bool * parameter. Pass it down to
7056 check_case_bounds.
7057 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
7058 warning here.
7059 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
7060 declarations.
7061
31521951
MP
70622015-06-27 Marek Polacek <polacek@redhat.com>
7063
7064 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
7065 or VECTOR_INTEGER_TYPE_P throughout.
7066 * c-gimplify.c: Likewise.
7067
22d03525
MP
70682015-06-26 Marek Polacek <polacek@redhat.com>
7069
7070 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
7071 * c-common.c (c_fully_fold_internal): Likewise.
7072 (c_alignof_expr): Likewise.
7073 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
7074 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
b1726d6c 7075 * cilk.c (create_parm_list): Likewise.
22d03525 7076
af05e6e5
MP
70772015-06-26 Marek Polacek <polacek@redhat.com>
7078
7079 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
7080
f0889939
AM
70812015-06-25 Andrew MacLeod <amacleod@redhat.com>
7082
7083 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
7084 * c-gimplify.c: Likewise.
7085 * c-pragma.c: Likewise.
7086 * c-ubsan.c: Likewise.
7087 * cilk.c: Likewise.
7088
ca752f39
RS
70892015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7090
7091 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
7092 ggc_hasher.
7093
16a16ec7
AM
70942015-06-25 Andrew MacLeod <amacleod@redhat.com>
7095
7096 * cilk.c: Move calls.h after tm.h in the include chain.
7097
0ae9bd27
MP
70982015-06-25 Marek Polacek <polacek@redhat.com>
7099
7100 * array-notation-common.c: Use VAR_P throughout.
7101 * c-ada-spec.c: Likewise.
7102 * c-common.c: Likewise.
7103 * c-format.c: Likewise.
7104 * c-gimplify.c: Likewise.
7105 * c-omp.c: Likewise.
7106 * c-pragma.c: Likewise.
7107 * c-pretty-print.c: Likewise.
7108 * cilk.c: Likewise.
7109
62f9079a
MP
71102015-06-25 Marek Polacek <polacek@redhat.com>
7111
7112 * cilk.c (extract_free_variables): Use is_global_var.
7113
0fa16060
RS
71142015-06-23 Richard Sandiford <richard.sandiford@arm.com>
7115
7116 * c-common.c: Don't include target-def.h.
7117
a68ae2e1
MP
71182015-06-23 Marek Polacek <polacek@redhat.com>
7119
7120 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
7121 when comparing INTEGER_CSTs.
7122
c6a2f2d9
PMR
71232015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
7124
7125 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
7126 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
7127 (dump_ada_template): Skip partially specialized types.
7128
6b4db501
MM
71292015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
7130
7131 * c-common.c (scalar_to_vector): Use std::swap instead of manually
7132 swapping.
7133
abb226c9
AM
71342015-06-17 Andrew MacLeod <amacleod@redhat.com>
7135
7136 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
7137 * c-ada-spec.c: Likewise.
7138 * c-cilkplus.c: Likewise.
7139 * c-common.c: Likewise.
7140 * c-common.h: Likewise.
7141 * c-cppbuiltin.c: Likewise.
7142 * c-dump.c: Likewise.
7143 * c-format.c: Likewise.
7144 * c-gimplify.c: Likewise.
7145 * c-indentation.c: Likewise.
7146 * c-lex.c: Likewise.
7147 * c-omp.c: Likewise.
7148 * c-opts.c: Likewise.
7149 * c-pch.c: Likewise.
7150 * c-ppoutput.c: Likewise.
7151 * c-pragma.c: Likewise.
7152 * c-pretty-print.c: Likewise.
7153 * c-semantics.c: Likewise.
7154 * c-ubsan.c: Likewise.
7155 * cilk.c: Likewise.
7156 * stub-objc.c: Likewise.
7157
076fecad
PP
71582015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
7159
7160 PR c++/65168
7161 * c-common.c (c_common_truthvalue_conversion): Warn when
7162 converting an address of a reference to a truth value.
7163
13fdf2e2
AM
71642015-06-08 Andrew MacLeod <amacleod@redhat.com>
7165
7166 * array-notation-common.c : Adjust include files.
7167 * c-ada-spec.c : Likewise.
7168 * c-cilkplus.c : Likewise.
7169 * c-common.c : Likewise.
7170 * c-common.h : Likewise.
7171 * c-cppbuiltin.c : Likewise.
7172 * c-dump.c : Likewise.
7173 * c-format.c : Likewise.
7174 * c-gimplify.c : Likewise.
7175 * c-indentation.c : Likewise.
7176 * c-lex.c : Likewise.
7177 * c-omp.c : Likewise.
7178 * c-opts.c : Likewise.
7179 * c-pch.c : Likewise.
7180 * c-ppoutput.c : Likewise.
7181 * c-pragma.c : Likewise.
7182 * c-pretty-print.c : Likewise.
7183 * c-semantics.c : Likewise.
7184 * c-ubsan.c : Likewise.
7185 * cilk.c : Likewise.
7186 * stub-objc.c : Likewise.
7187
a1661b90
MP
71882015-06-08 Marek Polacek <polacek@redhat.com>
7189
7190 PR c/66415
7191 * c-format.c (location_from_offset): Return LOC if LINE is null.
7192
d7438551
AH
71932015-06-05 Aldy Hernandez <aldyh@redhat.com>
7194
7195 * c-common.h (c_parse_final_cleanups): New prototype.
7196 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
7197
b3d5bc62
JJ
71982015-06-04 Sriraman Tallam <tmsriram@google.com>
7199
7200 * c-common.c (noplt): New attribute.
7201 (handle_noplt_attribute): New handler.
7202
ecb9f223
AM
72032015-06-04 Andrew MacLeod <amacleod@redhat.com>
7204
7205 * array-notation-common.c: Adjust includes for restructured coretypes.h.
7206 * c-ada-spec.c: Likewise.
7207 * c-cilkplus.c: Likewise.
7208 * c-common.c: Likewise.
7209 * c-common.h: Likewise.
7210 * c-cppbuiltin.c: Likewise.
7211 * c-dump.c: Likewise.
7212 * c-format.c: Likewise.
7213 * c-gimplify.c: Likewise.
7214 * c-indentation.c: Likewise.
7215 * c-lex.c: Likewise.
7216 * c-omp.c: Likewise.
7217 * c-opts.c: Likewise.
7218 * c-pch.c: Likewise.
7219 * c-ppoutput.c: Likewise.
7220 * c-pragma.c: Likewise.
7221 * c-pretty-print.c: Likewise.
7222 * c-semantics.c: Likewise.
7223 * c-ubsan.c: Likewise.
7224 * cilk.c: Likewise.
7225 * stub-objc.c: Likewise.
7226
6ac48155
DM
72272015-06-02 David Malcolm <dmalcolm@redhat.com>
7228
7229 PR c/66220:
7230 * c-indentation.c (should_warn_for_misleading_indentation): Use
7231 expand_location rather than expand_location_to_spelling_point.
7232 Don't warn if the guarding statement is more indented than the
7233 next/body stmts.
7234
773ce42e
DM
72352015-06-02 David Malcolm <dmalcolm@redhat.com>
7236
7237 * c-indentation.c (warn_for_misleading_indentation): Bail out
7238 immediately if -Wmisleading-indentation isn't enabled.
7239
4fef8379
ML
72402015-06-01 Martin Liska <mliska@suse.cz>
7241
7242 * c-format.c (check_format_arg):Use new type-based pool allocator.
7243 (check_format_info_main) Likewise.
7244
1edfb384
EB
72452015-05-31 Eric Botcazou <ebotcazou@adacore.com>
7246
7247 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
7248 (has_nontrivial_methods): Likewise.
7249
9677ef52
MP
72502015-05-25 Marek Polacek <polacek@redhat.com>
7251
7252 * c-ubsan.c (ubsan_instrument_shift): Use type0.
7253
fd5c817a
MP
72542015-05-22 Marek Polacek <polacek@redhat.com>
7255
7256 PR c/47043
7257 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
7258
a2f45fe6 72592015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
581edfa3
TS
7260
7261 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
7262 STACK_GROWS_DOWNWARD.
7263
a2f45fe6 72642015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
62f9f30b
TS
7265
7266 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
7267 STACK_GROWS_DOWNWARD rather than if it is defined.
7268
0fee2ac2 72692015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
b1726d6c 7270
0fee2ac2
MLI
7271 PR c/52952
7272 * c-format.c (location_column_from_byte_offset): New.
7273 (location_from_offset): New.
7274 (struct format_wanted_type): Add offset_loc field.
7275 (check_format_info): Move handling of location for extra arguments
7276 closer to the point of warning.
7277 (check_format_info_main): Pass the result of location_from_offset
7278 to warning_at.
7279 (format_type_warning): Pass the result of location_from_offset
7280 to warning_at.
7281
cf4ef6f7
MP
72822015-05-20 Marek Polacek <polacek@redhat.com>
7283
7284 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
7285
3a65ee74
MP
72862015-05-20 Marek Polacek <polacek@redhat.com>
7287
7288 * c-ada-spec.c (dump_sloc): Use DECL_P.
7289
21b634ae
MP
72902015-05-20 Marek Polacek <polacek@redhat.com>
7291
7292 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
7293 * c-common.c: Likewise.
7294
0e50b624
DM
72952015-05-19 David Malcolm <dmalcolm@redhat.com>
7296
7297 * c-common.h (fe_file_change): Strengthen param from
7298 const line_map * to const line_map_ordinary *.
7299 (pp_file_change): Likewise.
7300 * c-lex.c (fe_file_change): Likewise.
7301 (cb_define): Use linemap_check_ordinary when invoking
7302 SOURCE_LINE.
7303 (cb_undef): Likewise.
7304 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
7305 invoking cb_file_change.
7306 (c_finish_options): Likewise.
7307 (push_command_line_include): Likewise.
7308 (cb_file_change): Strengthen param "new_map" from
7309 const line_map * to const line_map_ordinary *.
7310 * c-ppoutput.c (cb_define): Likewise for local "map".
7311 (pp_file_change): Likewise for param "map" and local "from".
7312
fab27f52
MM
73132015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
7314
7315 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
7316
2fe1d762
TV
73172015-05-18 Tom de Vries <tom@codesourcery.com>
7318
7319 * c-common.c (build_va_arg_1): New function.
7320 (build_va_arg): Add address operator to va_list operand if necessary.
7321
7a37fa90
MM
73222015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
7323
7324 PR c/48956
7325 * c-common.c (int_safely_convertible_to_real_p): Define.
7326 (unsafe_conversion_p): Check conversions involving complex types.
7327 (conversion_warning): Add new warning message for conversions which
7328 discard imaginary component.
7329 * c-common.h: (enum conversion_safety): Add new enumerator for such
7330 conversions.
7331
3aa3c9fc
MP
73322015-05-14 Marek Polacek <polacek@redhat.com>
7333
7334 PR c/66066
7335 PR c/66127
7336 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
7337 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
7338 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
7339 use it. If FOR_INT_CONST, require that all evaluated operands be
7340 INTEGER_CSTs.
7341
c3388e62
DM
73422015-05-12 David Malcolm <dmalcolm@redhat.com>
7343
7344 * c-common.h (warn_for_misleading_indentation): New prototype.
7345 * c-indentation.c: New file.
7346 * c.opt (Wmisleading-indentation): New option.
7347
c7b38fd5
TV
73482015-05-12 Tom de Vries <tom@codesourcery.com>
7349
7350 PR tree-optimization/66010
7351 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
7352
381bf11e
JM
73532015-05-09 Jason Merrill <jason@redhat.com>
7354
edff0c06
JM
7355 * c-opts.c (c_common_post_options): Also clear
7356 cpp_opts->cpp_warn_cxx11_compat.
7357
129211bc
JM
7358 * c-common.h (enum cxx_dialect): Add cxx_unset.
7359 * c-common.c (cxx_dialect): Initialize to cxx_unset.
7360 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
7361
381bf11e
JM
7362 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
7363 (std=gnu++0x): Mark as Undocumented.
7364 (std=gnu++1y): Add deprecated message.
7365
fe191308
JM
73662015-05-08 Jason Merrill <jason@redhat.com>
7367
765189ff
JM
7368 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
7369 * c-opts.c: Adjust.
7370
fe191308
JM
7371 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
7372
755e528f
MP
73732015-05-08 Marek Polacek <polacek@redhat.com>
7374
7375 PR c/64918
7376 * c.opt (Woverride-init-side-effects): New option.
7377
0173bd2a
MP
73782015-05-07 Marek Polacek <polacek@redhat.com>
7379
7380 PR c/65179
7381 * c-common.c (c_fully_fold_internal): Warn when left shifting a
7382 negative value.
7383 * c.opt (Wshift-negative-value): New option.
7384 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
7385 when -Wextra and C99/C++11 mode.
7386
e0f0d3b9
MP
73872015-05-07 Marek Polacek <polacek@redhat.com>
7388 Martin Uecker <uecker@eecs.berkeley.edu>
7389
7390 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
7391 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
7392
8243e2a9
JM
73932015-05-05 Jason Merrill <jason@redhat.com>
7394
7395 * c.opt (Wterminate): New.
7396
577cd070
MP
73972015-04-30 Marek Polacek <polacek@redhat.com>
7398
7399 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
7400 require that the non-constant be of a boolean type.
7401
0373796b
JT
74022015-04-29 Josh Triplett <josh@joshtriplett.org>
7403
e0f0d3b9
MP
7404 * c-common.c (handle_section_attribute): Refactor to reduce
7405 nesting and distinguish between error cases.
0373796b 7406
716c0ba6
MP
74072015-04-29 Marek Polacek <polacek@redhat.com>
7408
7409 PR c/64610
7410 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
7411 with 0/1.
7412
8848828b
JJ
74132015-04-29 Jakub Jelinek <jakub@redhat.com>
7414
7415 * c-common.h (omp_clause_mask): Unconditionally define as a class.
7416 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
7417 HOST_BITS_PER_WIDE_INT.
7418
ecd0e562
TV
74192015-04-28 Tom de Vries <tom@codesourcery.com>
7420
7421 PR tree-optimization/65887
7422 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
7423
2a877204 74242015-04-28 Eric Botcazou <ebotcazou@adacore.com>
e0f0d3b9 7425 Pierre-Marie de Rodat <derodat@adacore.com>
2a877204
EB
7426
7427 * c-ada-spec.c (in_function): Delete.
7428 (dump_generic_ada_node): Do not change in_function and remove the
7429 redundant code dealing with it.
7430 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
7431 (print_ada_methods): Output the static member functions in a nested
7432 package after the regular methods as well as associated renamings.
7433
4853031e
MP
74342015-04-24 Marek Polacek <polacek@redhat.com>
7435
7436 PR c/65830
7437 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
7438 and OPT_Wshift_count_overflow.
7439
8c2b7f79
MP
7440 PR c/63357
7441 * c-common.c (warn_logical_operator): Warn if the operands have the
7442 same expressions.
7443
b8787813
MP
74442015-04-24 Marek Polacek <polacek@redhat.com>
7445
7446 PR c/61534
7447 * c-common.c (warn_logical_operator): Bail if either operand comes
7448 from a macro expansion.
7449
8fba1830
BRF
74502015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7451
7452 PR target/55143
7453 * c-common.c (c_default_pointer_mode): Add definition.
7454 * c-common.h (c_default_pointer_mode): Add declaration.
7455
17958621
JJ
74562015-03-11 Jakub Jelinek <jakub@redhat.com>
7457
7458 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
7459 on record_builtin_type argument.
7460
7ccb1a11
JJ
74612015-03-10 Jakub Jelinek <jakub@redhat.com>
7462
7463 PR c/65120
7464 * c-common.c (warn_logical_not_parentheses): Don't warn for
7465 !x == 0 or !x != 0.
7466
04fd785e
MP
74672015-03-07 Marek Polacek <polacek@redhat.com>
7468
7469 PR sanitizer/65280
7470 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
7471 before trying to figure out whether we have a flexible array member.
7472
a4e26206 74732015-03-06 Eric Botcazou <ebotcazou@adacore.com>
8e745a17 7474 Jonathan Wakely <jwakely.gcc@gmail.com>
a4e26206
EB
7475
7476 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
7477
0d2489f4
EB
74782015-03-05 Eric Botcazou <ebotcazou@adacore.com>
7479
7480 PR ada/65319
7481 * c-ada-spec.c (print_destructor): Remove obsolete code.
7482
83ed54d7
EB
74832015-03-01 Eric Botcazou <ebotcazou@adacore.com>
7484
7485 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
7486 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
7487 DECL_TEMPLATE_RESULT emulations.
7488 (dump_ada_template)): Add guard for TYPE_METHODS.
7489
7631f0e2
MP
74902015-02-27 Marek Polacek <polacek@redhat.com>
7491
7492 PR c/65040
7493 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
7494
d1783ae5
KT
74952015-02-27 Kai Tietz <ktietz@redhat.com>
7496
7497 PR c/35330
7498 * c-pragma.c (handle_pragma_weak): Do not try to create
7499 weak/alias of declarations not being function, or variable
7500 declarations.
7501
56a9f6bc
TS
75022015-02-24 Thomas Schwinge <thomas@codesourcery.com>
7503
7504 PR libgomp/64625
7505 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
7506 Remove macros.
7507 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
7508
3d5cb23d
MP
75092015-02-16 Marek Polacek <polacek@redhat.com>
7510
7511 PR c/65066
7512 * c-format.c (check_format_types): Handle null param.
7513
fa008882
MP
75142015-02-13 Marek Polacek <polacek@redhat.com>
7515
7516 PR c/65040
7517 * c-format.c (check_format_types): Don't warn about different
7518 signedness if the original value is in the range of WANTED_TYPE.
7519
785f21af
JM
75202015-02-12 Jason Merrill <jason@redhat.com>
7521
7522 PR c++/64956
7523 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
7524 to the current highest version.
7525 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
7526
4886ec8e
JJ
75272015-02-04 Jakub Jelinek <jakub@redhat.com>
7528
7529 PR c/64824
7530 PR c/64868
7531 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
7532 instead of RDIV_EXPR. Use build_binary_op instead of
7533 build2_loc.
7534
40fecdd6
JM
75352015-01-30 Joseph Myers <joseph@codesourcery.com>
7536
7537 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
7538 to pass input_location as first argument.
7539
a0c88d06
TV
75402015-01-23 Tom de Vries <tom@codesourcery.com>
7541
7542 PR libgomp/64672
7543 * c.opt (fopenacc): Mark as LTO option.
7544
1506ae0e
TV
75452015-01-23 Tom de Vries <tom@codesourcery.com>
7546
7547 PR libgomp/64707
7548 * c.opt (fopenmp): Mark as LTO option.
7549
31be63ab
JJ
75502015-01-21 Jakub Jelinek <jakub@redhat.com>
7551
7552 PR c/63307
b1726d6c 7553 * cilk.c (fill_decls_vec): Only put decls into vector v.
31be63ab
JJ
7554 (compare_decls): Fix up formatting.
7555
75562015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
7557
7558 PR c/63307
7559 * cilk.c: Include vec.h.
7560 (struct cilk_decls): New structure.
7561 (wrapper_parm_cb): Split this function to...
7562 (fill_decls_vec): ...this...
7563 (create_parm_list): ...and this.
7564 (compare_decls): New function.
7565 (for_local_cb): Remove.
7566 (wrapper_local_cb): Ditto.
7567 (build_wrapper_type): For now first traverse and fill vector of
7568 declarations then sort it and then deal with sorted vector.
7569 (cilk_outline): Ditto.
7570 (declare_one_free_variable): Ditto.
7571
6875457f
JM
75722015-01-21 Jason Merrill <jason@redhat.com>
7573
7574 PR c++/64629
7575 * c-format.c (check_format_arg): Call decl_constant_value.
7576
185c9e56
ML
75772015-01-19 Martin Liska <mliska@suse.cz>
7578
7579 * c-common.c (handle_noicf_attribute): New function.
7580
41dbbb37
TS
75812015-01-15 Thomas Schwinge <thomas@codesourcery.com>
7582 Bernd Schmidt <bernds@codesourcery.com>
7583 James Norris <jnorris@codesourcery.com>
7584 Cesar Philippidis <cesar@codesourcery.com>
7585 Ilmir Usmanov <i.usmanov@samsung.com>
7586 Jakub Jelinek <jakub@redhat.com>
7587
7588 * c.opt (fopenacc): New option.
7589 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
7590 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
7591 New macros.
7592 * c-common.h (c_finish_oacc_wait): New prototype.
7593 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
7594 (c_finish_oacc_wait): New function.
7595 * c-pragma.c (oacc_pragmas): New variable.
7596 (c_pp_lookup_pragma, init_pragma): Handle it.
7597 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
7598 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
7599 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
7600 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
7601 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
7602 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
7603 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
7604 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
7605 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
7606 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
7607 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
7608 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
7609 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
7610 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
7611 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
7612 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
7613 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
7614 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
7615 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
7616 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
7617 PRAGMA_OACC_CLAUSE_WORKER.
7618
3f8257db 76192015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
5434dc07
MD
7620
7621 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
7622 for the new option fstack-protector_explicit.
7623 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
7624 (handle_stack_protect_attribute): New function.
7625
3f8257db 76262015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
de1b5c17
MU
7627
7628 * c.opt: New option -Warray-bounds=.
7629
adfac8df
JJ
76302015-01-09 Michael Collison <michael.collison@linaro.org>
7631
7632 * array-notation-common.c: Include hash-set.h, machmode.h,
7633 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
7634 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
7635 * c-ada-spec.c: Ditto.
7636 * c-cilkplus.c: Ditto.
7637 * c-common.c: Include input.h due to flattening of tree.h.
7638 Define macro GCC_C_COMMON_C.
7639 * c-common.h: Flatten tree.h header files into c-common.h.
7640 Remove include of tree-core.h.
7641 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
7642 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
7643 fold-const.h, wide-int.h, and inchash.h due to
7644 flattening of tree.h.
7645 * c-dump.c: Ditto.
7646 * c-format.c: Flatten tree.h header files into c-common.h.
7647 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
7648 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
7649 fold-const.h, wide-int.h, and inchash.h due to
7650 flattening of tree.h.
7651 * c-dump.c: Include hash-set.h, machmode.h,
7652 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
7653 fold-const.h, wide-int.h, and inchash.h due to
7654 flattening of tree.h.
7655 * c-format.c: Include hash-set.h, machmode.h,
7656 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
7657 fold-const.h, wide-int.h, inchash.h and real.h due to
7658 flattening of tree.h.
7659 * c-gimplify.c: Include hash-set.h, machmode.h,
7660 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
7661 fold-const.h, wide-int.h, and inchash.h due to
7662 flattening of tree.h.
7663 * cilk.c: Ditto.
7664 * c-lex.c: Ditto.
7665 * c-omp.c: Ditto.
7666 * c-opts.c: Ditto.
7667 * c-pch.c: Ditto.
7668 * c-ppoutput.c: Ditto.
7669 * c-pragma.c: Ditto.
7670 * c-pretty-print.c: Ditto.
7671 * c-semantics.c: Ditto.
7672 * c-ubsan.c: Ditto.
7673 * stub-objc.c: Ditto.
7674
f5481fc4
JM
76752015-01-08 Jason Merrill <jason@redhat.com>
7676
7677 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
7678 do_ubsan_in_current_function.
7679 (ubsan_maybe_instrument_reference_or_call): Likewise.
7680 * c-ubsan.h: Declare it.
7681
de35aa66
MS
76822015-01-08 Mike Stump <mikestump@comcast.net>
7683
7684 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
7685
4a9a42ab
MP
76862015-01-07 Marek Polacek <polacek@redhat.com>
7687
7688 PR c/64440
7689 * c-common.c (c_fully_fold_internal): Warn for division and modulo
7690 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
7691
2f42e5de
TS
76922015-01-05 Trevor Saunders <tsaunders@mozilla.com>
7693
7694 PR c++/31397
7695 * c.opt (Wsuggest-override): New option.
7696
5624e564
JJ
76972015-01-05 Jakub Jelinek <jakub@redhat.com>
7698
7699 Update copyright years.
7700
5bd012f8
MP
77012015-01-05 Marek Polacek <polacek@redhat.com>
7702
7703 PR c/64423
7704 * c-common.c (warn_array_subscript_with_type_char): Add location_t
7705 parameter. Use it.
7706 * c-common.h (warn_array_subscript_with_type_char): Update
7707 declaration.
7708
a7fa8d18
ESR
77092014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
7710
7711 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
7712 Control macro with flag_sized_deallocation.
7713
3f8257db 77142014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
768952be
MU
7715
7716 * c.opt (Wdiscarded-array-qualifiers): New option.
7717
1f8d3e84
JJ
77182014-12-19 Jakub Jelinek <jakub@redhat.com>
7719
7720 PR preprocessor/63831
7721 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
7722 and __has_cpp_attribute here.
7723 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
7724 c_common_has_attribute.
7725 * c-common.h (c_common_has_attribute): New prototype.
7726 * c-lex.c (init_c_lex): Set cb->has_attribute to
7727 c_common_has_attribute instead of cb_has_attribute.
7728 (get_token_no_padding): New function.
7729 (cb_has_attribute): Renamed to ...
7730 (c_common_has_attribute): ... this. No longer static. Use
7731 get_token_no_padding, require ()s, don't build TREE_LIST
7732 unnecessarily, fix up formatting, adjust diagnostics, call
7733 init_attributes.
7734
20b06add
JM
77352014-12-15 Jason Merrill <jason@redhat.com>
7736
7737 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
7738 (-Wsized-deallocation): New.
7739 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
7740 to on in C++14 and up.
7741
94a073b2
JM
77422014-12-11 Jason Merrill <jason@redhat.com>
7743
acaa5911
JM
7744 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
7745
94a073b2
JM
7746 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
7747 we aren't complaining about VLAs.
7748
7fb66c15
MP
77492014-12-06 Marek Polacek <polacek@redhat.com>
7750
7751 PR tree-optimization/64183
7752 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
7753 shift-expression if it is integer_type_node. Use types_compatible_p.
7754
b731b390
JJ
77552014-11-29 Jakub Jelinek <jakub@redhat.com>
7756
7757 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
7758 last argument from create_tmp_var_raw and create_tmp_var calls.
7759 * cilk.c (gimplify_cilk_spawn): Likewise.
7760 * c-omp.c (c_finish_omp_atomic): Likewise.
7761
6a4da643
MP
77622014-11-28 Marek Polacek <polacek@redhat.com>
7763
7764 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
7765 instead of unsigned_type_node.
7766
541e35a6
MP
77672014-11-28 Marek Polacek <polacek@redhat.com>
7768
7769 PR c/63862
7770 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
7771 to op1_utype.
7772 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
7773 expression to unsigned_type_node.
7774
dcc97066
MW
77752014-11-20 Mark Wielaard <mjw@redhat.com>
7776
7777 PR debug/38757
7778 * c-opts.c (set_std_c89): Set lang_hooks.name.
7779 (set_std_c99): Likewise.
7780 (set_std_c11): Likewise.
7781 (set_std_cxx98): Likewise.
7782 (set_std_cxx11): Likewise.
7783 (set_std_cxx14): Likewise.
7784 (set_std_cxx1z): Likewise.
7785
aa7da51a
JJ
77862014-11-21 Jakub Jelinek <jakub@redhat.com>
7787
7788 PR target/63764
7789 * c-common.h (convert_vector_to_pointer_for_subscript): Change
7790 return type to bool.
009a3480 7791 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
7792 (convert_vector_to_pointer_for_subscript): Change return type to
7793 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
7794 and copy it into a TARGET_EXPR and use that instead of *vecp
7795 directly.
7796
538dd0b7
DM
77972014-11-19 David Malcolm <dmalcolm@redhat.com>
7798
7799 Merger of git branch "gimple-classes-v2-option-3".
7800 * ChangeLog.gimple-classes: New.
7801 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
7802 from being just a vec<gimple> to a vec<gbind *>.
7803
c39a5e99
JJ
78042014-11-18 Jakub Jelinek <jakub@redhat.com>
7805
7806 PR sanitizer/63813
7807 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
7808 argument to ptype, set type to TREE_TYPE (ptype). Don't call
7809 get_pointer_alignment for non-pointers. Use ptype, or if it is
7810 reference type, corresponding pointer type, as type of kind
7811 argument.
7812 (ubsan_maybe_instrument_reference,
7813 ubsan_maybe_instrument_member_call): Adjust callers.
7814
8537a4a9
MP
78152014-11-15 Marek Polacek <polacek@redhat.com>
7816
7817 PR middle-end/63884
7818 * array-notation-common.c (is_sec_implicit_index_fn): Return false
7819 for NULL fndecl.
7820 (extract_array_notation_exprs): Return for NULL node.
7821
2079956a
JM
78222014-11-12 Joseph Myers <joseph@codesourcery.com>
7823
7824 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
7825 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
7826
1304953e
JJ
78272014-11-12 Jakub Jelinek <jakub@redhat.com>
7828
7829 PR c/59708
7830 * c-common.c (check_builtin_function_arguments): Handle
7831 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
7832
e5e44252
AK
78332014-11-10 Andi Kleen <ak@linux.intel.com>
7834
7835 PR c/60804
7836 * c-common.h (check_no_cilk): Declare.
7837 * cilk.c (get_error_location): New function.
7838 (check_no_cilk): Dito.
7839
e64b984d
AK
78402014-11-10 Andi Kleen <ak@linux.intel.com>
7841
7842 * cilk.c (recognize_spawn): Use expression location
7843 for error message.
7844
13c21655
PC
78452014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
7846
7847 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
7848
42fd12b1
ESR
78492014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
7850
7851 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
7852 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
7853 (__cpp_range_based_for, __cpp_initializer_lists,
7854 __cpp_delegating_constructors, __cpp_nsdmi,
7855 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
7856 for C++11; (__cpp_attribute_deprecated): Remove in favor of
7857 __has_cpp_attribute.
7858 * c-lex.c (cb_has_attribute): New callback CPP function;
7859 (init_c_lex): Set has_attribute callback.
7860
6f450181
RB
78612014-11-04 Richard Biener <rguenther@suse.de>
7862
7863 * c-common.c (shorten_compare): Do not shorten mixed
7864 DFP and non-DFP compares.
7865
26f0e1d6
ESR
78662014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
7867
7868 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
7869 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
7870 Commentary and rearrangement of tests.
7871 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
7872 Commentary and rearrangement of tests.
ab20d992 7873 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto.
26f0e1d6
ESR
7874 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
7875
ef4bddc2
RS
78762014-10-29 Richard Sandiford <richard.sandiford@arm.com>
7877
7878 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
7879 enum from machine_mode.
7880
c582198b
AM
78812014-10-28 Andrew MacLeod <amacleod@redhat.com>
7882
adfac8df
JJ
7883 * c-common.c: Adjust include files.
7884 * c-gimplify.c: Ditto.
7885 * cilk.c: Ditto.
7886 * c-pragma.c: Ditto.
7887 * c-ubsan.c: Ditto.
c582198b 7888
60393bbc
AM
78892014-10-27 Andrew MacLeod <amacleod@redhat.com>
7890
7891 * c-gimplify.c: Adjust include files.
7892
d723bb7c
MLI
78932014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
7894
7895 PR c++/53061
7896 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
7897 c_common_initialize_diagnostics.
7898 * c-common.h: Likewise.
7899
90f3520e
MP
79002014-10-24 Marek Polacek <polacek@redhat.com>
7901
7902 PR c/56980
7903 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
7904 print "struct"/"union"/"enum" for typedefed names.
7905
59d7607a
MP
79062014-10-23 Marek Polacek <polacek@redhat.com>
7907
7908 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
7909 in unsigned type.
7910
d95a2703
JJ
79112014-10-22 Jakub Jelinek <jakub@redhat.com>
7912 Yury Gribov <y.gribov@samsung.com>
7913
7914 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
7915 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
7916 instead of flag_sanitize_recover as bool flag.
7917
8e6ef852
KY
79182014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
7919
7920 * cilk.c: Revert previous change.
7921
948cf550
IZ
79222014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
7923
7924 PR c/63307
7925 * cilk.c: Include vec.h.
7926 (struct cilk_decls): New structure.
7927 (wrapper_parm_cb): Split this function to...
7928 (fill_decls_vec): ...this...
7929 (create_parm_list): ...and this.
7930 (compare_decls): New function.
7931 (for_local_cb): Remove.
7932 (wrapper_local_cb): Ditto.
7933 (build_wrapper_type): For now first traverse and fill vector of
7934 declarations then sort it and then deal with sorted vector.
7935 (cilk_outline): Ditto.
7936 (declare_one_free_variable): Ditto.
7937
92574c7c
MP
79382014-10-17 Marek Polacek <polacek@redhat.com>
7939
7940 * c-opts.c (c_common_post_options): Set warn_implicit_int.
7941 * c.opt (Wimplicit-int): Initialize to -1.
7942
83685514
AM
79432014-10-16 Andrew MacLeod <amacleod@redhat.com>
7944
7945 * c-pragma.c: Adjust include files.
7946 * c-semantics.c: Likewise.
7947
5b8300ea
DD
79482014-10-16 DJ Delorie <dj@redhat.com>
7949
7950 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
7951 multiples of bytes.
7952
5f83e90b
JM
79532014-10-14 Jason Merrill <jason@redhat.com>
7954
7955 PR c++/63455
7956 * c-common.h (CPP_PREPARSED_EXPR): New.
7957 (N_CP_TTYPES): Adjust.
7958
d73326ca
MP
79592014-10-15 Marek Polacek <polacek@redhat.com>
7960
7961 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
7962
78a7c317
DD
79632014-10-14 DJ Delorie <dj@redhat.com>
7964
7965 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
7966 types, not just __int128.
7967 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
7968 types, not just __int128.
7969 (cpp_atomic_builtins): Round pointer sizes up.
7970 (type_suffix): Use type precision, not specific types.
7971 * c-common.c (c_common_reswords): Remove __int128 special case.
7972 (c_common_type_for_size): Check for all __intN types, not just
7973 __int128.
7974 (c_common_type_for_mode): Likewise.
7975 (c_common_signed_or_unsigned_type): Likewise.
7976 (c_build_bitfield_integer_type): Likewise.
7977 (c_common_nodes_and_builtins): Likewise.
7978 (keyword_begins_type_specifier): Likewise.
7979 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
7980 __intN variants.
7981
2a22f99c
TS
79822014-10-12 Trevor Saunders <tsaunders@mozilla.com>
7983
7984 * c-common.c: Use hash_table instead of hashtab.
7985
2a8ef767
ESR
79862014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
7987
adfac8df 7988 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
7989 C++11 section.
7990
3c9aabbd
MG
79912014-10-03 Marc Glisse <marc.glisse@inria.fr>
7992
7993 PR c++/54427
7994 PR c++/57198
7995 PR c++/58845
7996 * c-common.c (warn_logical_operator): Punt for vectors.
7997
a15f7cb8
ESR
79982014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
7999
8000 Implement SD-6: SG10 Feature Test Recommendations
8001 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
8002 macros and the __has_header macro.
8003
8d0cf15e
JM
80042014-09-30 Jason Merrill <jason@redhat.com>
8005
dd5d5481
JM
8006 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
8007 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
8008 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
8009
b752325e
JM
8010 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
8011 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
8012
8d0cf15e
JM
8013 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
8014 * c-common.c (c_common_reswords): Remove __is_convertible_to.
8015
083e891e
MP
80162014-09-24 Marek Polacek <polacek@redhat.com>
8017
8018 PR c/61405
8019 PR c/53874
8020 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
8021
7861b648
AK
80222014-09-23 Andi Kleen <ak@linux.intel.com>
8023
8024 * c-common.c (handle_no_reorder_attribute): New function.
8025 (c_common_attribute_table): Add no_reorder attribute.
8026
9a79452d
JM
80272014-09-22 Joseph Myers <joseph@codesourcery.com>
8028
8029 * c-cppbuiltin.c (c_cpp_builtins): Define
8030 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
8031 modes.
8032
dd69f047
JM
80332014-09-18 Joseph Myers <joseph@codesourcery.com>
8034
8035 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
8036 for supported floating-point modes.
8037
737a4826
MLI
80382014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
8039
8040 * c.opt (Wpsabi): Use LangEnabledBy.
8041 * c-opts.c (c_common_handle_option): Do not handle here.
8042
8cc4b7a2
JM
80432014-09-12 Joseph Myers <joseph@codesourcery.com>
8044
8045 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
8046 macros for floating-point modes.
8047
179b5a55
MG
80482014-09-11 Marc Glisse <marc.glisse@inria.fr>
8049
8050 PR target/58757
8051 * c-cppbuiltin.c (builtin_define_float_constants): Correct
8052 __*_DENORM_MIN__ without denormals.
8053
570a11fe
JJ
80542014-09-10 Jakub Jelinek <jakub@redhat.com>
8055
8056 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
8057 ubsan_instrument_vla, ubsan_instrument_return): Adjust
8058 ubsan_create_data callers.
8059 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
8060 index is constant or BIT_AND_EXPR with constant mask and is
8061 small enough for the bound.
8062 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
8063 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
8064
b559c810
MLI
80652014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
8066
8067 * c.opt: Add CppReason to various flags.
8068 (Wdate-time): Re-sort.
8069 * c-common.c: Include c-common.h earlier.
8070 (struct reason_option_codes_t): Delete.
8071 (c_option_controlling_cpp_error): Prefix global type and struct
8072 with cpp_.
8073
1ef33fd4
MLI
80742014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
8075
8076 * c.opt (Wnormalized): New.
8077 (Wnormalized=): Use Enum and Reject Negative.
8078 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
8079
66bb34c0
JM
80802014-09-08 Joseph Myers <joseph@codesourcery.com>
8081
8082 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
8083 digits of floating-point modes if -fbuilding-libgcc.
8084
53d68b9f
JM
80852014-09-05 Joseph Myers <joseph@codesourcery.com>
8086
8087 * c-cppbuiltin.c (c_cpp_builtins): Also define
8088 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
8089 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
8090 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
8091 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
8092 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
8093 __LIBGCC_STACK_GROWS_DOWNWARD__,
8094 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
8095 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
8096 __LIBGCC_DWARF_FRAME_REGISTERS__,
8097 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
8098 __LIBGCC_STACK_POINTER_REGNUM__ and
8099 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
8100 (builtin_define_with_value): Handle backslash-escaping in string
8101 macro values.
8102
f65586dc
RB
81032014-09-05 Richard Biener <rguenther@suse.de>
8104
8105 PR middle-end/63148
8106 * c-format.c (check_format_arg): Properly handle
8107 effectively signed POINTER_PLUS_EXPR offset.
8108
2b71f4a4
MLI
81092014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
8110
8111 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
8112 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
8113 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
8114 and Init.
8115 * c-opts.c (c_common_handle_option): Do not handle here.
8116 (sanitize_cpp_opts): Likewise.
8117 * c-common.c (struct reason_option_codes_t): Handle
8118 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
8119
d2e4feca
MP
81202014-09-03 Marek Polacek <polacek@redhat.com>
8121
8122 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
8123
9a771876
JJ
81242014-09-02 Jakub Jelinek <jakub@redhat.com>
8125 Balaji V. Iyer <balaji.v.iyer@intel.com>
8126 Igor Zamyatin <igor.zamyatin@intel.com>
8127
8128 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
8129 * c-common.c (c_common_reswords): Added _Cilk_for.
8130 * c-common.h (enum rid): Added RID_CILK_FOR.
8131 (cilk_for_number_of_iterations): Add declaration.
8132 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
8133 CILK_FOR.
8134 * c-pragma.c (init_pragma): Register "grainsize" pragma.
8135 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
8136
81b5d104
MLI
81372014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
8138
8139 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
8140 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
8141 Wundef): Use CPP, Var and Init.
8142 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
8143
b753b37b
MLI
81442014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
8145
8146 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
8147 * c-opts.c (c_common_handle_option): Do not handle here.
8148
028aee17
JM
81492014-08-25 Jason Merrill <jason@redhat.com>
8150
8151 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
8152 -std=c++14 and -std=gnu++14, rather than the reverse.
8153 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
8154 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
8155 * c-common.h (cxx_dialect): Remove cxx1y.
8156
e4276ba5
ESR
81572014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
8158
8159 * c-common.h (enum cxx_dialect): Add cxx14.
8160 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
8161 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
8162 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
8163
a545cacd
JM
81642014-08-22 Jason Merrill <jason@redhat.com>
8165
8166 * c.opt (std=gnu++17): Fix alias.
8167
59ea0364
MP
81682014-08-22 Marek Polacek <polacek@redhat.com>
8169
8170 PR c++/62199
8171 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
8172 check for vector types. Drop LHS argument.
8173 * c-common.h (warn_logical_not_parentheses): Adjust.
8174
596e808c
MLI
81752014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
8176
8177 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
8178 (Wmultichar): Likewise.
8179 (Wdate-time): Use C-family languages instead of Common. Use CPP
8180 and Var.
8181 * c-opts.c (c_common_handle_option): Do not handle the above
8182 options here.
8183 (sanitize_cpp_opts): Likewise.
8184
18767f65
MLI
81852014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
8186
8187 PR fortran/44054
8188 * c-opts.c: Include tree-diagnostics.h.
8189 (c_diagnostic_finalizer): New.
8190 (c_common_initialize_diagnostics): Use it.
8191
b4413594
MLI
81922014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
8193
8194 PR preprocessor/51303
8195 * c-common.c (struct reason_option_codes_t option_codes):
8196 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
8197
43f9a13c
MLI
81982014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
8199
8200 PR c/60975
8201 PR c/53063
8202 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
8203 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
8204 (c_common_post_options): Call init_global_opts_from_cpp.
8205 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
8206
04159acf
MP
82072014-08-19 Marek Polacek <polacek@redhat.com>
8208
8209 PR c++/62153
8210 * c-common.c (maybe_warn_bool_compare): New function.
8211 * c-common.h (maybe_warn_bool_compare): Declare.
8212 * c.opt (Wbool-compare): New option.
8213
35aff4fb
MP
82142014-08-19 Marek Polacek <polacek@redhat.com>
8215
8216 * c.opt (Wc99-c11-compat): New option.
8217
177cce46
MP
82182014-08-19 Marek Polacek <polacek@redhat.com>
8219
8220 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
8221 to warn_c90_c99_compat.
8222 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
8223 to -1.
8224
6ae9194f
MLI
82252014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
8226 Steven Bosscher <steven@gcc.gnu.org>
8227
8228 PR c/52952
8229 * c-format.c: Add extra_arg_loc and format_string_loc to struct
8230 format_check_results.
8231 (check_function_format): Use true and add comment for boolean
8232 argument.
8233 (finish_dollar_format_checking): Use explicit location when warning.
8234 (check_format_info): Likewise.
8235 (check_format_arg): Set extra_arg_loc and format_string_loc.
8236 (check_format_info_main): Use explicit location when warning.
8237 (check_format_types): Pass explicit location.
8238 (format_type_warning): Likewise.
8239
8e54f6d3
MLI
82402014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
8241
8242 PR fortran/44054
8243 * c-format.c: Handle Fortran flags.
8244
cd4e76fc
IZ
82452014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
8246
8247 PR other/61962
8248 * array-notation-common.c (find_rank): Added handling for other
8249 types of references.
8250
f3bede71
MP
82512014-08-10 Marek Polacek <polacek@redhat.com>
8252
8253 PR c/51849
8254 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
8255 * c.opt (Wc90-c99-compat): Add option.
8256
9f25a338
TS
82572014-08-07 Trevor Saunders <tsaunders@mozilla.com>
8258
8259 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
8260
62e4eb35
MP
82612014-08-03 Marek Polacek <polacek@redhat.com>
8262
ab20d992 8263 * c-common.c (check_case_value): Add location_t parameter. Use it.
62e4eb35
MP
8264 (c_add_case_label): Pass loc to check_case_value.
8265
b787e7a2
TS
82662014-08-02 Trevor Saunders <tsaunders@mozilla.com>
8267
8268 * cilk.c: Use hash_map instead of pointer_map.
8269
6e2830c3
TS
82702014-08-02 Trevor Saunders <tsaunders@mozilla.com>
8271
8272 * c-gimplify.c: Use hash_set instead of pointer_set.
8273
a7ee52fb
IZ
82742014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
8275
8276 PR middle-end/61455
8277 * array-notation-common.c (extract_array_notation_exprs): Handling
8278 of DECL_EXPR added.
8279
944fa280
JJ
82802014-08-01 Jakub Jelinek <jakub@redhat.com>
8281
8282 * c-common.h (min_align_of_type): Removed prototype.
8283 * c-common.c (min_align_of_type): Removed.
8284 * c-ubsan.h (ubsan_maybe_instrument_reference,
8285 ubsan_maybe_instrument_member_call): New prototypes.
8286 * c-ubsan.c: Include stor-layout.h and builtins.h.
8287 (ubsan_maybe_instrument_reference_or_call,
8288 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
8289 functions.
8290
b4dfdc11
MG
82912014-07-31 Marc Glisse <marc.glisse@inria.fr>
8292
8293 PR c++/60517
8294 * c.opt (-Wreturn-local-addr): Move to common.opt.
8295
a41844e5
JM
82962014-07-30 Jason Merrill <jason@redhat.com>
8297
8298 PR c++/61659
8299 PR c++/61687
8300 Revert:
8301 * c.opt (-fuse-all-virtuals): New.
8302
976d5a22
TT
83032014-07-30 Tom Tromey <tromey@redhat.com>
8304
8305 PR c/59855
8306 * c.opt (Wdesignated-init): New option.
8307 * c-common.c (c_common_attribute_table): Add "designated_init".
8308 (handle_designated_init): New function.
8309
cdc94aca
MP
83102014-07-24 Marek Polacek <polacek@redhat.com>
8311
8312 PR c/57653
8313 * c-opts.c (c_finish_options): If -imacros is in effect, return.
8314
f41373b6
DS
83152014-07-16 Dodji Seketeli <dodji@redhat.com>
8316
8317 PR preprocessor/60723 - missing system-ness marks for macro tokens
8318 * c-ppoutput.c (struct print::prev_was_system_token): New data
8319 member.
8320 (init_pp_output): Initialize it.
8321 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
8322 (do_line_change): Return a flag saying if a line marker was
8323 emitted or not.
8324 (scan_translation_unit): Detect if the system-ness of the token we
8325 are about to emit is different from the one of the previously
8326 emitted token. If so, emit a line marker. Avoid emitting useless
8327 adjacent line markers. Avoid emitting line markers for tokens
8328 originating from the expansion of built-in macros.
8329 (scan_translation_unit_directives_only): Adjust.
8330
4d661eaa
MP
83312014-07-15 Marek Polacek <polacek@redhat.com>
8332
8333 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
8334 TYPE_MAX_VALUE is NULL.
8335
b108f48f
JJ
83362014-07-14 Jakub Jelinek <jakub@redhat.com>
8337
8338 PR middle-end/61294
8339 * c.opt (Wmemset-transposed-args): New warning.
8340
c0221884
JM
83412014-07-10 Jason Merrill <jason@redhat.com>
8342
8343 PR c++/61659
8344 PR c++/61687
8345 * c.opt (-fuse-all-virtuals): New.
8346
63dfbb95
RB
83472014-07-09 Richard Biener <rguenther@suse.de>
8348
8349 PR c-family/61741
8350 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
8351 using unsigned arithmetic if overflow does not wrap instead of
8352 if overflow is undefined.
8353
773ec47f
MP
83542014-07-06 Marek Polacek <polacek@redhat.com>
8355
8356 PR c/6940
8357 * c.opt (Wsizeof-array-argument): New option.
8358
00a7ba58
JJ
83592014-07-03 Jakub Jelinek <jakub@redhat.com>
8360
b1726d6c 8361 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
00a7ba58
JJ
8362 comments->count <= 1, as comments->entries might be NULL.
8363
52ec0ea3
MP
83642014-07-01 Marek Polacek <polacek@redhat.com>
8365
8366 * c.opt (Wint-conversion): New option.
8367
d5c3d343
MP
83682014-07-01 Marek Polacek <polacek@redhat.com>
8369
8370 PR c/58286
8371 * c.opt (Wincompatible-pointer-types): New option.
8372
6e7ceb17
PC
83732014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
8374
8375 PR c++/51400
8376 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
8377 Do not discard TYPE_QUALS of type.
8378
da73100b
JM
83792014-06-26 Jason Merrill <jason@redhat.com>
8380
8381 * c-common.h (enum cxx_dialect): Add cxx1z.
8382 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
8383 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
8384
08eedf75
TJ
83852014-06-26 Teresa Johnson <tejohnson@google.com>
8386
8387 * c-common.h (get_dump_info): Declare.
8388 * c-gimplify.c (c_genericize): Use saved dump files.
8389 * c-opts.c (c_common_parse_file): Begin and end dumps
8390 once around parsing invocation.
8391 (get_dump_info): New function.
8392
7b56b2f8
MP
83932014-06-23 Marek Polacek <polacek@redhat.com>
8394 Andrew MacLeod <amacleod@redhat.com>
8395
8396 PR c/61553
8397 * c-common.c (get_atomic_generic_size): Don't segfault if the
8398 type doesn't have a size.
8399
0e37a2f3
MP
84002014-06-20 Marek Polacek <polacek@redhat.com>
8401
8402 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
8403 (ubsan_walk_array_refs_r): New function.
8404 (c_genericize): Instrument array bounds.
8405 * c-ubsan.c: Include "internal-fn.h".
8406 (ubsan_instrument_division): Mark instrumented arrays as having
8407 side effects. Adjust ubsan_type_descriptor call.
8408 (ubsan_instrument_shift): Likewise.
8409 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
8410 (ubsan_instrument_bounds): New function.
8411 (ubsan_array_ref_instrumented_p): New function.
8412 (ubsan_maybe_instrument_array_ref): New function.
8413 * c-ubsan.h (ubsan_instrument_bounds): Declare.
8414 (ubsan_array_ref_instrumented_p): Declare.
8415 (ubsan_maybe_instrument_array_ref): Declare.
8416
84172014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
8418
8419 PR lto/61123
8420 * c.opt (fshort-enums): Add to LTO.
8421 * c.opt (fshort-wchar): Likewise.
8422
5c3d09f7
MP
84232014-06-16 Marek Polacek <polacek@redhat.com>
8424
8425 PR c/60439
8426 * c.opt (Wswitch-bool): Add Var.
8427
9cf32741
JJ
84282014-06-12 Jakub Jelinek <jakub@redhat.com>
8429
8430 PR middle-end/61486
8431 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
8432 #pragma omp target teams or
8433 #pragma omp {,target }teams distribute simd.
8434
62984918
JM
84352014-06-12 Jason Merrill <jason@redhat.com>
8436
8437 * c.opt (Wabi=, fabi-compat-version): New.
8438 * c-opts.c (c_common_handle_option): Handle -Wabi=.
8439 (c_common_post_options): Handle flag_abi_compat_version default.
8440 Disallow -fabi-compat-version=1.
8441 * c-common.h (abi_version_crosses): New.
8442
f961457f
JH
84432014-06-11 Jan Hubicka <hubicka@ucw.cz>
8444
adfac8df 8445 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
8446 section names that are no longer trees.
8447
92d28cbb
JJ
84482014-06-10 Jakub Jelinek <jakub@redhat.com>
8449
8450 PR fortran/60928
8451 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
8452 (omp_pragmas): ... back here.
8453
742938c9
MP
84542014-06-05 Marek Polacek <polacek@redhat.com>
8455
8456 PR c/49706
8457 * c-common.c (warn_logical_not_parentheses): New function.
8458 * c-common.h (warn_logical_not_parentheses): Declare.
8459 * c.opt (Wlogical-not-parentheses): New option.
8460
9d548dfb
MP
84612014-06-04 Marek Polacek <polacek@redhat.com>
8462
8463 PR c/30020
8464 * c-common.c (check_case_bounds): Add location parameter.
8465 Use it.
8466 (c_add_case_label): Pass loc to check_case_bounds.
8467
fedfecef
MP
84682014-06-03 Marek Polacek <polacek@redhat.com>
8469
8470 PR c/60439
8471 * c.opt (Wswitch-bool): New option.
8472
f6a7cffc
TS
84732014-05-22 Thomas Schwinge <thomas@codesourcery.com>
8474
040d18b6
TS
8475 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
8476 Remove prototypes.
8477 (record_types_used_by_current_var_decl): Move prototype to where
8478 it belongs.
8479
f6a7cffc
TS
8480 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
8481 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
8482 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
8483
632f2871
RS
84842014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
8485
8486 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
8487 * c-common.c (c_common_nodes_and_builtins): Don't initialize
8488 void_zero_node.
8489 * c-pretty-print.c (pp_c_void_constant): New function.
8490 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
8491 (c_pretty_printer::expression): Handle VOID_CST.
8492 * cilk.c (extract_free_variables): Likewise.
8493 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
8494 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
8495
766090c2
TS
84962014-05-17 Trevor Saunders <tsaunders@mozilla.com>
8497
8498 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
8499 * c-pragma.c (push_alignment): Adjust.
8500 (handle_pragma_push_options): Likewise.
8501
661a0813
MP
85022014-05-09 Marek Polacek <polacek@redhat.com>
8503
8504 PR c/50459
8505 * c-common.c (check_user_alignment): Return -1 if alignment is error
8506 node.
8507 (handle_aligned_attribute): Don't call default_conversion on
8508 FUNCTION_DECLs.
8509 (handle_vector_size_attribute): Likewise.
8510 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
8511 (handle_sentinel_attribute): Call default_conversion and allow even
8512 integral types as an argument.
8513
2793eeab
MP
85142014-05-08 Marek Polacek <polacek@redhat.com>
8515
8516 PR c/61053
8517 * c-common.c (min_align_of_type): New function factored out from...
8518 (c_sizeof_or_alignof_type): ...here.
8519 * c-common.h (min_align_of_type): Declare.
8520
f827930a
MP
85212014-05-08 Marek Polacek <polacek@redhat.com>
8522
8523 PR c/61077
8524 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
8525 parameter type of main.
8526
ca49b74e
DD
85272014-05-07 DJ Delorie <dj@redhat.com>
8528
8529 * c-cppbuiltin.c (print_bits_of_hex): New.
8530 (builtin_define_type_minmax): Print values using hex so as not to
8531 require a pre-computed list of string values.
8532
1d60af08
KZ
85332014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
8534 Mike Stump <mikestump@comcast.net>
8535 Richard Sandiford <rdsandiford@googlemail.com>
8536
8537 * c-ada-spec.c: Include wide-int.h.
8538 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
8539 (dump_generic_ada_node): Use wide-int interfaces.
8540 * c-common.c: Include wide-int-print.h.
8541 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
8542 (pointer_int_sum): Use wide-int interfaces.
8543 (c_common_nodes_and_builtins): Use make_int_cst.
8544 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
8545 (handle_alloc_size_attribute): Use wide-int interfaces.
8546 (get_nonnull_operand): Likewise.
8547 * c-format.c (get_constant): Use tree_fits_uhwi_p.
8548 * c-lex.c: Include wide-int.h.
8549 (narrowest_unsigned_type): Take a widest_int rather than two
8550 HOST_WIDE_INTs.
8551 (narrowest_signed_type): Likewise.
8552 (interpret_integer): Update accordingly. Use wide-int interfaces.
8553 (lex_charconst): Use wide-int interfaces.
8554 * c-pretty-print.c: Include wide-int.h.
8555 (pp_c_integer_constant): Use wide-int interfaces.
8556 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
8557 INT_CST_LT_UNSIGNED.
8558
b15458be
RB
85592014-05-06 Richard Biener <rguenther@suse.de>
8560
8561 * c-opts.c (c_common_post_options): For -freestanding,
8562 -fno-hosted and -fno-builtin disable pattern recognition
8563 if not enabled explicitely.
8564
6577374e
MP
85652014-05-02 Marek Polacek <polacek@redhat.com>
8566
8567 * c.opt (Wsizeof-pointer-memaccess): Describe option.
8568
d00887e8
MP
85692014-05-01 Marek Polacek <polacek@redhat.com>
8570
8571 PR c/43245
8572 * c.opt (Wdiscarded-qualifiers): Add.
8573
f8ed5150
MP
85742014-04-30 Marek Polacek <polacek@redhat.com>
8575
8576 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
8577 INT_MIN / -1 sanitization only for integer types.
8578
45484dcf
MP
85792014-04-25 Marek Polacek <polacek@redhat.com>
8580
8581 PR c/18079
8582 * c-common.c (handle_noinline_attribute): Warn if the attribute
8583 conflicts with always_inline attribute.
8584 (handle_always_inline_attribute): Warn if the attribute conflicts
8585 with noinline attribute.
8586
38e514c0
MP
85872014-04-25 Marek Polacek <polacek@redhat.com>
8588
8589 PR c/60156
8590 * c-common.c (check_main_parameter_types): Warn about variadic main.
8591
44875f92
MS
85922014-04-24 Mike Stump <mikestump@comcast.net>
8593
8594 * c.opt (Wshadow-ivar): Default to on.
8595
dcaaa5a0
DP
85962014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
8597
8598 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
8599
c07d7c02
MP
86002014-04-23 Marek Polacek <polacek@redhat.com>
8601
8602 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
8603
1c33c9b7
JJ
86042014-04-22 Jakub Jelinek <jakub@redhat.com>
8605
8606 PR sanitizer/60275
8607 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
8608 if flag_sanitize_undefined_trap_on_error.
8609 (ubsan_instrument_division, ubsan_instrument_shift,
8610 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
8611 if !flag_sanitize_recover.
8612
793c625f
MG
86132014-04-22 Marc Glisse <marc.glisse@inria.fr>
8614
8615 PR libstdc++/43622
8616 * c-common.c (registered_builtin_types): Make non-static.
8617 * c-common.h (registered_builtin_types): Declare.
8618
b0f1bf36 86192014-04-14 Richard Biener <rguenther@suse.de>
ab20d992 8620 Marc Glisse <marc.glisse@inria.fr>
b0f1bf36
RB
8621
8622 PR c/60819
8623 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
8624 apply may-alias the scalar pointer type when applicable.
8625
3b07fa4a
IZ
86262014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
8627
8628 PR middle-end/60467
8629 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
8630 as possible argument for Cilk_spawn.
8631
cbbd2b1c
TB
86322014-04-11 Tobias Burnus <burnus@net-b.de>
8633
8634 PR c/60194
8635 * c.opt (Wformat-signedness): Add
8636 * c-format.c(check_format_types): Use it.
8637
6415bd5d
JM
86382014-04-11 Jason Merrill <jason@redhat.com>
8639
8640 PR c++/57926
8641 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
8642 default_conversion for an array argument.
8643
6525783a
MP
86442014-04-08 Marek Polacek <polacek@redhat.com>
8645
8646 PR sanitizer/60745
8647 * c-ubsan.c: Include asan.h.
8648 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
8649
880a467b
NS
86502014-04-03 Nathan Sidwell <nathan@codesourcery.com>
8651
8652 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
8653
7b59ff2d
MP
86542014-04-02 Marek Polacek <polacek@redhat.com>
8655
8656 * c-common.h (c_expand_expr): Remove declaration.
8657
8edbfaa6
JJ
86582014-03-28 Jakub Jelinek <jakub@redhat.com>
8659
8660 PR c++/60689
8661 * c-common.c (add_atomic_size_parameter): When creating new
8662 params vector, push the size argument first.
8663
07d72e1d
JJ
86642014-03-26 Jakub Jelinek <jakub@redhat.com>
8665
8666 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
8667 ubsan_instrument_vla, ubsan_instrument_return): Adjust
8668 ubsan_create_data callers.
8669
b35e0fa0
JJ
86702014-03-22 Jakub Jelinek <jakub@redhat.com>
8671
8672 PR debug/60603
8673 * c-opts.c (c_finish_options): Restore cb_file_change call to
8674 <built-in>.
8675
39a1ebb3
JJ
86762014-03-13 Jakub Jelinek <jakub@redhat.com>
8677
8678 PR middle-end/36282
8679 * c-pragma.c (apply_pragma_weak): Only look at
8680 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
8681 DECL_ASSEMBLER_NAME_SET_P (decl).
8682 (maybe_apply_pending_pragma_weaks): Exit early if
8683 vec_safe_is_empty (pending_weaks) rather than only when
8684 !pending_weaks.
8685 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
8686 set assembler name back to NULL afterwards.
8687
a07f6ed2
JM
86882014-03-11 Jason Merrill <jason@redhat.com>
8689
8690 * c.opt: Add -std=gnu++14.
8691
75b107f5
IB
86922014-03-11 Ian Bolton <ian.bolton@arm.com>
8693
8694 * c-opts.c (c_common_post_options): Don't override
8695 -ffp-contract=fast if unsafe-math-optimizations is on.
8696
f42c637e
PM
86972014-03-08 Paulo Matos <paulo@matos-sorge.com>
8698
22b15758 8699 * c.opt: Enable LTO FE for fshort-double.
f42c637e 8700
70e24808
JM
87012014-03-07 Jason Merrill <jason@redhat.com>
8702
8703 * c.opt: Add -std=c++14.
8704
3af9c5e9
MP
87052014-03-06 Marek Polacek <polacek@redhat.com>
8706
8707 PR c/60197
8708 * cilk.c (contains_cilk_spawn_stmt): New function.
8709 (contains_cilk_spawn_stmt_walker): Likewise.
8710 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
8711 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
8712
b3bdf019
JJ
87132014-03-03 Jakub Jelinek <jakub@redhat.com>
8714
8715 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
8716 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
8717 even when flag_preprocess_only.
8718
ca7e759d
JM
87192014-02-26 Jason Merrill <jason@redhat.com>
8720
8721 PR c++/59231
8722 PR c++/11586
8723 * c-common.c (shorten_compare): Don't check
8724 c_inhibit_evaluation_warnings.
8725
28e41874
JJ
87262014-02-19 Jakub Jelinek <jakub@redhat.com>
8727
cca615af
JJ
8728 PR c/37743
8729 * c-common.c (c_common_nodes_and_builtins): When initializing
8730 c_uint{16,32,64}_type_node, also set corresponding
8731 uint{16,32,64}_type_node to the same value.
8732
28e41874
JJ
8733 PR c++/60267
8734 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
8735 for PRAGMA_IVDEP if flag_preprocess_only.
8736
c2bf53a1
JJ
87372014-02-12 Jakub Jelinek <jakub@redhat.com>
8738
8739 PR c/60101
8740 * c-common.c (merge_tlist): If copy is true, call new_tlist,
8741 if false, add ADD itself, rather than vice versa.
8742 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
8743 copy. For SAVE_EXPR, only call merge_tlist once.
8744
8fcbce72
JJ
87452014-02-08 Jakub Jelinek <jakub@redhat.com>
8746
8747 PR middle-end/60092
8748 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
8749 and tree_to_uhwi.
8750 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
8751 functions.
8752 (c_common_attribute_table): Add alloc_align and assume_aligned
8753 attributes.
8754
0a756a3f
MP
87552014-02-06 Marek Polacek <polacek@redhat.com>
8756
8757 PR c/60087
8758 * c-common.c (warn_for_sign_compare): Call warning_at with location
8759 instead of warning.
8760
7ec4847a
MP
87612014-02-05 Marek Polacek <polacek@redhat.com>
8762
8763 PR c/53123
8764 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
8765 statement.
8766
66f20604
MP
87672014-02-04 Marek Polacek <polacek@redhat.com>
8768
8769 PR c/60036
8770 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
8771 SAVE_EXPR.
8772
5d77fb19
MG
87732014-02-03 Marc Glisse <marc.glisse@inria.fr>
8774
8775 PR c++/53017
8776 PR c++/59211
8777 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
8778 handle_vector_size_attribute, handle_nonnull_attribute): Call
8779 default_conversion on the attribute argument.
8780 (handle_nonnull_attribute): Increment the argument number.
8781
81e5eca8
MP
87822014-01-31 Marek Polacek <polacek@redhat.com>
8783
8784 PR c/59963
8785 * c-common.c (add_atomic_size_parameter): Pass vNULL to
8786 build_function_call_vec.
8787 (resolve_overloaded_builtin): Likewise.
8788 * c-common.h (build_function_call_vec): Adjust declaration.
8789
68fca595
MP
87902014-01-30 Marek Polacek <polacek@redhat.com>
8791
8792 PR c/59940
8793 * c-common.h (unsafe_conversion_p): Adjust declaration.
8794 (warnings_for_convert_and_check): Likewise.
8795 (convert_and_check): Likewise.
8796 * c-common.c (unsafe_conversion_p): Add location parameter. Call
8797 expansion_point_location_if_in_system_header on it.
8798 (warnings_for_convert_and_check): Add location parameter. Call
8799 expansion_point_location_if_in_system_header on it. Use it.
8800 (convert_and_check): Add location parameter. Use it.
8801 (conversion_warning): Likewise.
8802 (c_add_case_label): Adjust convert_and_check calls.
8803 (scalar_to_vector): Adjust unsafe_conversion_p calls.
8804
b72271b9
BI
88052014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
8806
8807 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
8808 flag_cilkplus.
8809 * c-pragma.c (init_pragma): Likewise.
8810 * c.opt: Likewise.
8811
393e8e8b
MP
88122014-01-23 Marek Polacek <polacek@redhat.com>
8813
8814 PR c/59846
8815 * c-common.c (shorten_compare): Add location_t parameter.
8816 * c-common.h (shorten_binary_op): Adjust declaration.
8817
f04dda30
MP
88182014-01-23 Marek Polacek <polacek@redhat.com>
8819
8820 PR c/58346
8821 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
8822 * c-common.h: Declare it.
8823
621955cb
EB
88242014-01-20 Eric Botcazou <ebotcazou@adacore.com>
8825
8826 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
8827 * c-ada-spec.c (dump_ads): Likewise.
8828 (cpp_check): Likewise.
8829 (dump_ada_specs): Likewise.
8830
88312014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
8832
8833 PR c++/49718
8834 * c-common.c (handle_no_instrument_function_attribute): Allow
8835 no_instrument_function attribute in class member
8836 definition/declaration.
8837
241f845a
JJ
88382014-01-15 Jakub Jelinek <jakub@redhat.com>
8839
8840 PR c/58943
8841 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
8842 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
8843 being COMPOUND_EXPR.
8844 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
8845 operand a SAVE_EXPR and second MODIFY_EXPR.
8846
e83b8e2e
JJ
88472014-01-09 Jakub Jelinek <jakub@redhat.com>
8848
8849 PR target/58115
8850 * c-pch.c (c_common_write_pch): Call
8851 prepare_target_option_nodes_for_pch.
8852
23a5b65a
RS
88532014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
8854
8855 Update copyright years
8856
f9030485
RS
88572014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
8858
8859 * array-notation-common.c, c-cilkplus.c: Use the standard form for
8860 the copyright notice.
8861
f2aa696b
EB
88622013-12-28 Eric Botcazou <ebotcazou@adacore.com>
8863
8864 * c-ada-spec.c (print_constructor): New function.
8865 (print_destructor): Retrieve the origin of the destructor.
8866 (print_ada_declaration): Revamp handling of constructors/destructors.
8867
3f8257db 88682013-12-23 Stuart Hastings <stuart@apple.com>
1f26ac87
JM
8869 Bill Maddox <maddox@google.com>
8870 Jason Merrill <jason@redhat.com>
8871
8872 * c.opt: Add -fdeclone-ctor-dtor.
8873 * c-opts.c (c_common_post_options): Default to on iff -Os.
8874
41958c28
BI
88752013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
8876
8877 * c-common.c (c_common_attribute_table): Added "cilk simd function"
8878 attribute.
8879 * c-pragma.h (enum pragma_cilk_clause): Remove.
ab20d992 8880 (enum pragma_omp_clause): Added the following fields:
41958c28
BI
8881 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
8882 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
8883 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
8884 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
8885 PRAGMA_CILK_CLAUSE_UNIFORM.
8886
b1726d6c 8887
12893402
BI
88882013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
8889
8890 * cilk.c (cilk_outline): Made this function non-static.
8891 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
8892 (create_cilk_wrapper): Added a new parameter: a function pointer.
8893 (c_install_body_w_frame_cleanup): Remove
8894 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
8895 * c-common.h (cilk_outline): New prototype.
8896 (gimplify_cilk_spawn): Removed two parameters.
8897 (cilk_install_body_with_frame_cleanup): New prototype.
8898 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
8899 CILK_SPAWN_STMT case.
8900
085b42ed
BS
89012013-12-11 Bernd Schmidt <bernds@codesourcery.com>
8902
2ce064c3
BS
8903 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
8904
085b42ed
BS
8905 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
8906 (int_array_type_node): Remove.
8907 * c-common.c (c_common_nodes_and_builtins): Don't build it.
8908
9e36c9ed
MP
89092013-12-05 Marek Polacek <polacek@redhat.com>
8910
8911 PR c/52023
8912 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
8913 [ADJUST_FIELD_ALIGN].
8914
296674db
JM
89152013-12-04 Joseph Myers <joseph@codesourcery.com>
8916
8917 PR c/52023
8918 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
8919 and check field alignment if set.
8920 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
8921 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
8922
b1726d6c 89232013-12-04 Jakub Jelinek <jakub@redhat.com>
31e071ae
MP
8924 Marek Polacek <polacek@redhat.com>
8925
8926 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
8927 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
8928
d7947e19
L
89292013-11-29 H.J. Lu <hongjiu.lu@intel.com>
8930
8931 PR c/59309
8932 * cilk.c (gimplify_cilk_spawn): Properly handle function without
8933 arguments.
8934
fad7652e
JJ
89352013-11-29 Jakub Jelinek <jakub@redhat.com>
8936
8937 PR c/59280
8938 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
8939 goto invalid. If it is error_mark_node, don't issue further
8940 diagnostics.
8941
8b5e1202
SO
89422013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
8943
8944 * c.opt (Wopenmp-simd): New.
8945
0a508bb6
JJ
89462013-11-22 Jakub Jelinek <jakub@redhat.com>
8947
8948 * c-ubsan.h (ubsan_instrument_return): New prototype.
8949 * c-ubsan.c (ubsan_instrument_return): New function.
8950
2fb9a547
AM
89512013-11-22 Andrew MacLeod <amacleod@redhat.com>
8952
8953 * c-common.c: Add required include files from gimple.h.
ab20d992
JJ
8954 * c-gimplify.c: Likewise.
8955 * cilk.c: Likewise.
2fb9a547 8956
8400e75e
DM
89572013-11-22 David Malcolm <dmalcolm@redhat.com>
8958
8959 * c-common.c (unsafe_conversion_p): Remove use of
8960 EXPR_LOC_OR_HERE macro.
8961 (conversion_warning): Likewise.
8962 (warnings_for_convert_and_check): Likewise.
8963 (warn_for_collisions_1): Likewise.
8964 (shorten_compare): Likewise, and remove use of in_system_header
8965 macro, using the location from the former.
8966 * c-lex.c (dump_one_header): Remove use of input_filename macro.
8967 (cb_def_pragma): Remove use of in_system_header macro.
8968 (lex_string): Likewise.
8969 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
8970
eb1ce453
KZ
89712013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
8972 Mike Stump <mikestump@comcast.net>
8973 Richard Sandiford <rdsandiford@googlemail.com>
8974
8975 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
8976 instead of TREE_INT_CST_LOW, in cases where there is a protecting
8977 tree_fits_shwi_p or tree_fits_uhwi_p.
8978 (dump_generic_ada_node): Likewise.
8979 * c-format.c (check_format_arg): Likewise.
8980 * c-pretty-print.c (pp_c_integer_constant): Likewise.
8981
6b3b8c27
KZ
89822013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
8983
8984 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
8985
49b0aa18
JC
89862013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
8987
8988 PR c/53001
8989 * c-common.c (unsafe_conversion_p): Make this function
8990 return an enumeration with more detail.
8991 (conversion_warning): Use the new return type of
8992 unsafe_conversion_p to separately warn either about conversions
8993 that lower floating point number precision or about the other
8994 kinds of conversions.
8995 * c-common.h (enum conversion_safety): New enumeration.
8e745a17
JJ
8996 (unsafe_conversion_p): switching return type to
8997 conversion_safety enumeration.
49b0aa18
JC
8998 * c.opt: Adding new warning -Wfloat-conversion and
8999 enabling it with -Wconversion.
9000
b826515a
BS
90012013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
9002
8e745a17
JJ
9003 * c-opts.c: Include plugin.h.
9004 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
b826515a 9005
b9a55b13
MP
90062013-11-19 Marek Polacek <polacek@redhat.com>
9007
9008 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
9009 call.
9010 (ubsan_instrument_shift): Likewise.
9011 (ubsan_instrument_vla): Likewise.
9012
7d362f6c
RS
90132013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
9014
9015 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
9016 cast to unsigned type.
9017
386b1f1f
RS
90182013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
9019
9020 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
9021 tree_low_cst.
9022 (complete_array_type): Update comment to refer to tree_to_[su]hwi
9023 rather than tree_low_cst.
9024
ae7e9ddd
RS
90252013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
9026
9027 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
9028 tree_to_uhwi throughout.
9029
9439e9a1
RS
90302013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
9031
9032 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
9033 tree_low_cst (..., 0) with tree_to_shwi throughout.
9034
cc269bb6
RS
90352013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
9036
9037 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
9038 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
9039
9541ffee
RS
90402013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
9041
9042 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
9043 host_integerp (..., 0) with tree_fits_shwi_p throughout.
9044
c02065fc
AH
90452013-11-15 Aldy Hernandez <aldyh@redhat.com>
9046
9047 * c-cilkplus.c: New file.
9048 * c-common.c (readonly_error): Add location argument.
9049 * c-common.h (readonly_error): Same.
9050 (c_finish_cilk_clauses): Protoize.
9051 (c_check_cilk_loop): Same.
9052 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
9053 Do not fail on error_mark_node.
9054 Abstract increment canonicalization to here...
9055 (c_omp_for_incr_canonicalize_ptr): New.
9056 c-pragma.c (init_pragma): Register "simd" pragma.
9057 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
9058 (enum pragma_cilk_clause): New.
9059
9cc65f15
RS
90602013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
9061
9062 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
9063 wchar_type and host_integerp checks.
9064
18f429e2
AM
90652013-11-14 Andrew MacLeod <amacleod@redhat.com>
9066
9067 * c-common.c: Likewise.
9068 * c-gimplify.c: Likewise.
9069 * cilk.c: Likewise.
9070
d8a2d370
DN
90712013-11-14 Diego Novillo <dnovillo@google.com>
9072
9073 * c-common.c: Include fold-const.h.
9074 Include stor-layout.h.
9075 Include calls.h.
9076 Include stringpool.h.
9077 Include attribs.h.
9078 Include varasm.h.
9079 Include trans-mem.h.
9080 * c-cppbuiltin.c: Include stor-layout.h.
9081 Include stringpool.h.
9082 * c-format.c: Include stringpool.h.
9083 * c-lex.c: Include stringpool.h.
9084 Include stor-layout.h.
9085 * c-pragma.c: Include stringpool.h.
9086 Include attribs.h.
9087 Include varasm.h.
9088 Include gcc-symtab.h.
9089 * c-pretty-print.c: Include stor-layout.h.
9090 Include attribs.h.
9091 * cilk.c: Include stringpool.h.
9092 Include calls.h.
9093
38b7bc7f
JM
90942013-11-13 Joseph Myers <joseph@codesourcery.com>
9095
9096 * c-common.h (enum rid): Add RID_AUTO_TYPE.
9097 * c-common.c (c_common_reswords): Add __auto_type.
9098 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
9099
45b0be94
AM
91002013-11-12 Andrew MacLeod <amacleod@redhat.com>
9101
18f429e2
AM
9102 * c-common.c: Include gimplify.h.
9103 * c-gimplify.c: Likewise.
9104 * cilk.c: Likewise.
9105 * c-omp.c: Include gimple-expr.h instead of gimple.h.
9106 * c-ubsan.c: Don't include gimple.h.
45b0be94 9107
582d9b50
JM
91082013-11-12 Joseph Myers <joseph@codesourcery.com>
9109
9110 * c-common.c (c_common_reswords): Add _Thread_local.
9111
6b28e197
JM
91122013-11-09 Joseph Myers <joseph@codesourcery.com>
9113
9114 * c-common.c (atomic_size_supported_p): New function.
9115 (resolve_overloaded_atomic_exchange)
9116 (resolve_overloaded_atomic_compare_exchange)
9117 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
9118 Use it instead of comparing size with a local list of sizes.
9119
267bac10
JM
91202013-11-07 Andrew MacLeod <amacleod@redhat.com>
9121 Joseph Myers <joseph@codesourcery.com>
9122
9123 * c-common.h (enum rid): Add RID_ATOMIC.
9124 * c-common.c (c_common_reswords): Add _Atomic.
9125 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
9126 (keyword_is_type_qualifier): Accept RID_ATOMIC.
9127 * c-format.c (check_format_types): Check for extra _Atomic
9128 qualifiers in format argument.
9129 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
9130 (pp_c_type_qualifier_list): Mention _Atomic in comment.
9131
5157b91e
TB
91322013-11-06 Tobias Burnus <burnus@net-b.de>
9133
9134 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
9135
6dbe0958
JM
91362013-11-06 Joseph Myers <joseph@codesourcery.com>
9137
9138 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
9139 standards modes.
9140 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
9141 to mean lack of IEEE 754 support.
9142
e8ff5196
TB
91432013-11-05 Tobias Burnus <burnus@net-b.de>
9144
9145 * c.opt (-Wdate-time): New option
9146 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
9147
254a0760
JM
91482013-11-05 Joseph Myers <joseph@codesourcery.com>
9149
9150 * c-cppbuiltin.c (cpp_iec_559_value): Test
9151 flag_excess_precision_cmdline not flag_excess_precision.
9152
6d7f7e0a
TB
91532013-11-05 Tobias Burnus <burnus@net-b.de>
9154
9155 * c.opt (fopenmp-simd): New option.
9156 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
9157 (omp_pragmas): ... this new struct.
9158 (c_pp_lookup_pragma): Also walk omp_pragmas.
9159 (init_pragma): Init pragmas for -fopenmp-simd.
9160
55a7f02f
MP
91612013-11-04 Marek Polacek <polacek@redhat.com>
9162
9163 PR c++/58979
9164 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
9165
9193fb05
JM
91662013-11-04 Joseph Myers <joseph@codesourcery.com>
9167
9168 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
9169 New functions.
9170 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
9171
94159ecf
EB
91722013-11-04 Eric Botcazou <ebotcazou@adacore.com>
9173
9174 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
9175 (dump_ada_specs): Adjust prototype of second callback.
9176 * c-ada-spec.c (cpp_check): New global variable.
9177 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
9178 (print_generic_ada_decl): Likewise.
9179 (has_static_fields): Change return type to bool and add guard.
9180 (has_nontrivial_methods): New predicate.
9181 (is_tagged_type): Change return type to bool.
9182 (separate_class_package): Call has_nontrivial_methods.
9183 (pp_ada_tree_identifier): Minor tweaks.
9184 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
9185 (dump_ada_array_domains): Likewise.
9186 (dump_ada_array_type): Likewise.
9187 (dump_template_types): Remove cpp_check parameter and do not pass it to
9188 dump_generic_ada_node.
9189 (dump_ada_template): Likewise.
9190 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
9191 recursively.
9192 (print_ada_methods): Change return type to integer. Remove cpp_check
9193 parameter and do not pass it down.
9194 (dump_nested_types): Remove cpp_check parameter and do not pass it to
9195 dump_generic_ada_node.
9196 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
9197 accessing methods.
9198 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
9199 down. Use has_nontrivial_methods to recognize C++ classes. Use return
9200 value of print_ada_methods.
9201 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
9202 Set cpp_check to it before invoking dump_ada_nodes.
9203 (dump_ada_specs): Likewise.
9204
b906f4ca
MP
92052013-11-03 Marek Polacek <polacek@redhat.com>
9206
9207 * c-ubsan.c: Don't include hash-table.h.
9208 (ubsan_instrument_vla): New function.
9209 * c-ubsan.h: Declare it.
9210
5e20cdc9
DM
92112013-10-31 David Malcolm <dmalcolm@redhat.com>
9212
9213 Automated part of renaming of symtab_node_base to symtab_node.
9214
9215 Patch autogenerated by rename_symtab.py from
9216 https://github.com/davidmalcolm/gcc-refactoring-scripts
9217 revision 58bb219cc090b2f4516a9297d868c245495ee622
9218
9219 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
9220 symtab_node_base to symtab_node.
9221
7057e645
ESR
92222013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
9223
8e745a17 9224 Implement C++14 digit separators.
7057e645
ESR
9225 * c-lex.c (interpret_float): Remove digit separators from scratch string
9226 before building real literal.
9227
193ea7bc
JJ
92282013-10-30 Jakub Jelinek <jakub@redhat.com>
9229
9230 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
9231
939b37da
BI
92322013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
9233
9234 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
9235 fields.
9236 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
9237 enabled.
9238 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
9239 (insert_cilk_frame): New prototype.
9240 (cilk_init_builtins): Likewise.
9241 (gimplify_cilk_spawn): Likewise.
9242 (c_cilk_install_body_w_frame_cleanup): Likewise.
9243 (cilk_detect_spawn_and_unwrap): Likewise.
9244 (cilk_set_spawn_marker): Likewise.
9245 (build_cilk_sync): Likewise.
9246 (build_cilk_spawn): Likewise.
9247 * cilk.c: New file.
9248
67348ccc
DM
92492013-10-29 David Malcolm <dmalcolm@redhat.com>
9250
9251 Patch autogenerated by refactor_symtab.py from
9252 https://github.com/davidmalcolm/gcc-refactoring-scripts
9253 revision 58bb219cc090b2f4516a9297d868c245495ee622
9254
9255 * c-gimplify.c (c_genericize): Update for conversion of symtab types
9256 to a true class hierarchy.
9257 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
9258
d570872d
RS
92592013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
9260
9261 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
9262
98906124
JL
92632013-10-26 Jeff Law <law@redhat.com>
9264
adfac8df
JJ
9265 * c-common.c (c_define_builtins): Remove mudflap support.
9266 * c.opt: Ignore and warn for mudflap options.
98906124 9267
d73749df 92682013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
9269
9270 PR other/33426
9271 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
9272 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
9273
3f04b1bb
JM
92742013-10-23 Jason Merrill <jason@redhat.com>
9275
9276 * c-format.c (gcc_cxxdiag_char_table): Add %X.
9277
acf0174b
JJ
92782013-10-11 Jakub Jelinek <jakub@redhat.com>
9279
acd15a28
JJ
9280 * c-common.h (omp_clause_mask::operator !=): New method.
9281 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
9282 instead of if (mask & something) tests everywhere.
9283
acf0174b
JJ
9284 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
9285 201307 instead of 201107.
9286 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
9287 (c_common_attribute_table): Add "omp declare target" and
9288 "omp declare simd" attributes.
9289 (handle_omp_declare_target_attribute,
9290 handle_omp_declare_simd_attribute): New functions.
9291 * c-omp.c: Include c-pragma.h.
9292 (c_finish_omp_taskgroup): New function.
9293 (c_finish_omp_atomic): Add swapped argument, if true,
9294 build the operation first with rhs, lhs arguments and use NOP_EXPR
9295 build_modify_expr.
9296 (c_finish_omp_for): Add code argument, pass it down to make_code.
9297 (c_omp_split_clauses): New function.
9298 (c_split_parallel_clauses): Removed.
9299 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
9300 c_omp_declare_simd_clauses_to_decls): New functions.
9301 * c-common.h (omp_clause_mask): New type.
9302 (OMP_CLAUSE_MASK_1): Define.
9303 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
9304 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
9305 omp_clause_mask::operator |, omp_clause_mask::operator &,
9306 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
9307 omp_clause_mask::operator ==): New methods.
9308 (enum c_omp_clause_split): New.
9309 (c_finish_omp_taskgroup): New prototype.
9310 (c_finish_omp_atomic): Add swapped argument.
9311 (c_finish_omp_for): Add code argument.
9312 (c_omp_split_clauses): New prototype.
9313 (c_split_parallel_clauses): Removed.
9314 (c_omp_declare_simd_clauses_to_numbers,
9315 c_omp_declare_simd_clauses_to_decls): New prototypes.
9316 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
9317 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
9318 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
9319 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
9320 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
9321 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
9322 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
9323 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
9324 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
9325 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
9326 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
9327 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
9328 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
9329 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
9330 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
9331 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
9332 PRAGMA_OMP_CLAUSE_UNIFORM.
9333
826cacfe
MG
93342013-10-09 Marc Glisse <marc.glisse@inria.fr>
9335
9336 PR tree-optimization/20318
9337 * c-common.c (handle_returns_nonnull_attribute): New function.
9338 (c_common_attribute_table): Add returns_nonnull.
9339
2284b034
MG
93402013-10-03 Marc Glisse <marc.glisse@inria.fr>
9341
9342 PR c++/19476
9343 * c.opt (fcheck-new): Move to common.opt.
9344
b56e9788
MP
93452013-09-25 Marek Polacek <polacek@redhat.com>
9346 Jakub Jelinek <jakub@redhat.com>
9347
9348 PR sanitizer/58413
9349 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
9350 an expression if we can prove it is correct.
9351 (ubsan_instrument_division): Likewise. Remove unnecessary
9352 check.
9353
ce6923c5
MP
93542013-09-18 Marek Polacek <polacek@redhat.com>
9355
9356 PR sanitizer/58411
9357 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
9358 Declare it.
9359 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
9360
fb5610fb
IS
93612013-09-14 Iain Sandoe <iain@codesourcery.com>
9362
9363 PR target/48094
9364 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
9365 fobjc-gc, freplace-objc-classes): Accept for LTO.
9366
88b0e79e
JC
93672013-09-13 Jacek Caban <jacek@codeweavers.com>
9368
9369 * c-target.def: New hook
9370
c9b0866a
PC
93712013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
9372
9373 PR c++/43452
9374 * c.opt (Wdelete-incomplete): Add.
9375
0af94e6f
JR
93762013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
9377
9378 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
9379 (vector_types_compatible_elements_p): New function.
9380 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
9381 declaration.
9382 (vector_types_compatible_elements_p): Declare.
9383
7c26172c
GDR
93842013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
9385
9386 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
9387 a virtual member function.
9388 (pp_simple_type_specifier): Remove.
9389 (pp_c_type_specifier): Likewise.
9390 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
9391 Rename from pp_c_type_specifier. Adjust.
9392 (c_pretty_printer::c_pretty_printer): Do not assign to
9393 simple_type_specifier.
9394
20059c8b
GDR
93952013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
9396
9397 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
9398 member function.
9399 (c_pretty_printer::storage_class_specifier): Likewise.
9400 (c_pretty_printer::initializer): Likewise.
9401 (pp_declaration): Remove.
9402 (pp_declaration_specifiers): Likewise.
9403 (pp_abstract_declarator): Likewise.
9404 (pp_declarator): Likewise.
9405 (pp_type_id): Likewise.
9406 (pp_statement): Likewise.
9407 (pp_constant): Likewise.
9408 (pp_id_expression): Likewise.
9409 (pp_primary_expression): Likewise.
9410 (pp_unary_expression): Likewise.
9411 (pp_multiplicative_expression): Likewise.
9412 (pp_conditional_expression): Likewise.
9413 (pp_assignment_expression): Likewise.
9414 (pp_expression): Likewise.
9415 (pp_c_type_id): Likewise.
9416 (pp_c_storage_class_specifier): Likewise.
9417 * c-pretty-print.c (pp_c_type_cast): Tidy.
9418 (pp_c_pointer): Likewise.
9419 (pp_c_type_specifier): Likewise.
9420 (pp_c_parameter_type_list): Likewise.
9421 (pp_c_function_definition): Likewise.
9422 (pp_c_init_declarator): Likewise.
9423 (pp_c_initializer_list): Likewise.
9424 (pp_c_constructor_elts): Likewise.
9425 (c_pretty_printer::direct_abstract_declarator): Likewise.
9426 (c_pretty_printer::declaration_specifiers): Likewise.
9427 (c_pretty_printer::primary_expression): Likewise.
9428 (c_pretty_printer::postfix_expression): Likewise.
9429 (c_pretty_printer::type_id): Rename from pp_c_type_id.
9430 (c_pretty_printer::storage_class_specifier): Rename from
9431 pp_c_storage_class_specifier.
9432 (c_pretty_printer::initializer): Rename from pp_c_initializer.
9433 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
9434 storage_class_specifier, initializer, offset_list, flags.
9435
de5a5fa1
MP
94362013-08-30 Marek Polacek <polacek@redhat.com>
9437
9438 * c-ubsan.c: New file.
9439 * c-ubsan.h: New file.
9440
8f0e4d72
GDR
94412013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
9442
9443 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
9444 member function.
9445 (c_pretty_printer::declaration_specifiers): Likewise.
9446 (c_pretty_printer::declarator): Likewise.
9447 (c_pretty_printer::abstract_declarator): Likewise.
9448 (c_pretty_printer::direct_abstract_declarator): Likewise.
9449 (c_pretty_printer::direct_declarator): Likewise.
9450 (c_pretty_printer::function_specifier): Likewise.
9451 (pp_declaration): Adjust.
9452 (pp_declaration_specifiers): Likewise.
9453 (pp_abstract_declarator): Likewise.
9454 (pp_direct_declarator): Likewise.
9455 (pp_function_specifier): Likewise.
9456 (pp_direct_abstract_declarator): Remove as unused.
9457 (pp_c_declaration): Remove.
9458 (pp_c_declaration_specifiers): Likewise.
9459 (pp_c_declarator): Likewise.
9460 (pp_c_direct_declarator): Likewise.
9461 (pp_c_function_specifier): Likewise.
9462 (pp_c_direct_abstract_declarator): Likewise.
9463 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
9464 from pp_c_abstract_declarator. Adjust.
ab20d992 9465 (c_pretty_printer::direct_abstract_declarator): Rename from
8f0e4d72
GDR
9466 pp_c_direct_abstract_declarator. Adjust.
9467 (c_pretty_printer::function_specifier): Rename from
9468 pp_c_function_specifier. Adjust.
9469 (c_pretty_printer::declaration_specifiers): Rename from
9470 pp_c_declaration_specifiers. Adjust.
9471 (c_pretty_printer::direct_declarator): Rename from
9472 pp_c_direct_declarator. Adjust.
9473 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
9474 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
9475 (c_pretty_printer::c_pretty_printer): Do not assign to
9476 declaration, declaration_specifiers, declarator,
9477 direct_declarator, direct_abstract_declarator, function_specifier.
9478
00d34d3a
GDR
94792013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
9480
9481 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
9482 virtual member function.
9483 (c_pretty_printer::multiplicative_expression): Likewise.
9484 (c_pretty_printer::conditional_expression): Likewise.
9485 (c_pretty_printer::assignment_expression): Likewise.
9486 (c_pretty_printer::expression): Likewise.
9487 (pp_unary_expression): Adjust.
9488 (pp_multiplicative_expression): Likewise.
9489 (pp_assignment_expression): Likewise.
9490 (pp_conditional_expression): Likewise.
9491 (pp_expression): Likewise.
9492 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
9493 from pp_c_unary_expression. Adjust.
9494 (c_pretty_printer::multiplicative_expression): Rename from
9495 pp_c_multiplicative_expression. Adjust.
9496 (c_pretty_printer::conditional_expression): Rename from
9497 pp_c_conditional_expression. Adjust.
9498 (c_pretty_printer::assignment_expression): Rename from
9499 pp_c_assignment_expression. Adjust.
9500 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
9501 (c_pretty_printer::c_pretty_printer): Do not assign to
9502 unary_expression, multiplicative_expression,
9503 conditional_expression, expression.
9504
fb22178f
GDR
95052013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
9506
9507 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
9508 virtual member function.
9509 (pp_postfix_expression): Adjust.
9510 (pp_c_postfix_expression): Remove.
9511 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
9512 from pp_c_postfix_expression. Adjust.
9513 (c_pretty_printer::c_pretty_printer): Do not assign to
9514 postfix_expression.
9515
7ecc2600
GDR
95162013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
9517
9518 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
9519 virtua member function.
9520 (pp_primary_expression): Adjust.
9521 (pp_c_primary_expression): Remove.
9522 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
9523 from pp_c_primary_expression. Adjust.
9524 (pp_c_initializer_list): Use pp_primary_expression.
9525 (c_pretty_printer::c_pretty_printer): Do not assign to
9526 primary_expression.
9527
0691175f
GDR
95282013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
9529
9530 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
9531 * c-pretty-print.c (M_): Remove.
9532 (c_pretty_printer::translate_string): Define.
9533 (pp_c_type_specifier): Use it.
9534 (pp_c_primary_expression): Likewise.
9535 (pp_c_expression): Likewise.
9536
66dfe4c4
GDR
95372013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
9538
9539 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
9540 virtual function.
9541 (pp_c_id_expression): Remove.
9542 (pp_id_expression): Adjust.
9543 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
9544 pp_c_id_expression. Adjust.
9545 (pp_c_postfix_expression): Use pp_id_expression.
9546 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
9547
ca43e9d5
GDR
95482013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
9549
9550 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
9551 member function.
9552 (pp_constant): Adjust.
9553 (pp_c_constant): Remove.
9554 * c-pretty-print.c (c_pretty_printer::constant): Rename from
9555 pp_c_constant. Adjust.
9556 (pp_c_constant)
9557 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
9558 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
9559
da6ca2b5
GDR
95602013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
9561
9562 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
9563 (c_pretty_printer::c_pretty_printer): Declare.
9564 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
9565 c_pretty_printer_init. Adjust.
9566 (print_c_tree): Do not call c_pretty_printer_init.
9567 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
9568
65a372f4
AC
95692013-08-09 Arnaud Charlet <charlet@adacore.com>
9570
9571 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
9572
fd9b0f32
PC
95732013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
9574
9575 PR c++/58080
9576 * c-common.c (pointer_int_sum): Add bool parameter.
9577 * c-common.h (pointer_int_sum): Adjust declaration.
9578
e0aec1e9
GDR
95792013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
9580
9581 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
9582 c_pretty_printer variable.
9583
b066401f
GDR
95842013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
9585
9586 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
9587 (pp_base): Remove.
9588 (pp_c_base): Likewise. Adjust users.
9589 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
9590 (pp_c_whitespace): Do not call pp_base.
9591 (pp_c_left_paren): Likewise.
9592 (pp_c_right_paren): Likewise.
9593 (pp_c_left_brace): Likewise.
9594 (pp_c_right_brace): Likewise.
9595 (pp_c_left_bracket): Likewise.
9596 (pp_c_right_bracket): Likewise.
9597 (pp_c_dot): Likewise.
9598 (pp_c_ampersand): Likewise.
9599 (pp_c_star): Likewise.
9600 (pp_c_arrow): Likewise.
9601 (pp_c_semicolon): Likewise.
9602 (pp_c_complement): Likewise.
9603 (pp_c_exclamation): Likewise.
9604 (pp_c_direct_declarator): Likewise.
9605 (pp_c_ws_string): Likewise.
9606 (pp_c_identifier): Likewise.
9607 (pp_c_statement): Likewise.
9608 (print_c_tree): Likewise.
9609
65e5a578
ESR
96102013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
9611
9612 PR c++/58072
9613 * c-common.c (c_parse_error): Catch user-defined literal tokens and
9614 provide useful error strings.
9615
137a1a27
GDR
96162013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
9617
9618 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
9619 printer functions instead of pp_string or operators and punctuators.
9620 (dump_generic_ada_node): Likewise.
9621 * c-pretty-print.c (pp_c_type_specifier): Likewise.
9622 (pp_c_relational_expression): Likewise.
9623 (pp_c_logical_or_expression): Likewise.
9624
07838b13
GDR
96252013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
9626
9627 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
9628 functions instead of pp_character.
9629 (pp_ada_tree_identifier): Likewise.
9630 (dump_ada_double_name): Likewise.
9631 (dump_ada_function_declaration): Likewise.
9632 (dump_ada_array_domains): Likewise.
9633 (dump_template_types): Likewise.
9634 (dump_generic_ada_node): Likewise.
9635 (print_ada_declaration): Likewise.
9636 (print_ada_struct_decl): Likewise.
9637 * c-pretty-print.c (pp_c_integer_constant): Likewise.
9638
433cc7b0
TT
96392013-07-23 Tom Tromey <tromey@redhat.com>
9640
9641 * c-common.h (enum rid) <RID_GENERIC>: New constant.
9642 * c-common.c (c_common_reswords): Add _Generic.
9643
688010ba
OB
96442013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
9645
9646 * c-common.c: Fix typos.
9647 * c-common.h: Likewise.
9648
2a99e5e6
LL
96492013-07-13 Lubos Lunak <l.lunak@suse.cz>
9650
9651 PR c++/55203
9652 * c-common.c (c_common_attribute_table): Add warn_unused.
9653 (handle_warn_unused_attribute): New.
9654
c26302d5
JJ
96552013-07-10 Jakub Jelinek <jakub@redhat.com>
9656
9657 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
9658 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
9659
dfeadaa0
PC
96602013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
9661
9662 PR c++/57869
9663 * c.opt: Add Wconditionally-supported.
9664
6a2fa4b2
GS
96652013-07-08 Graham Stott <graham.stott@btinternet.com>
9666
adfac8df 9667 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
9668 unused variables l_length and l_node.
9669
ecdbd01a 96702013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
9671
9672 PR c/57821
9673 * c-common.c (complete_array_type): Delay folding first index
9674 like other indices. When folding, check for index overflow.
9675
bedc293e
MG
96762013-06-27 Marc Glisse <marc.glisse@inria.fr>
9677
9678 PR c++/57509
9679 * c-common.h (c_build_vec_perm_expr): New complain argument.
9680 * c-common.c (c_build_vec_perm_expr): Likewise.
9681 Use save_expr also in C++.
9682
604b2bfc
GDR
96832013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
9684
9685 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
9686 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
9687 * c-opts.c (c_common_post_options): Likewise.
9688
dfeadaa0 96892013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
9690
9691 * array-notation-common.c (length_mismatch_in_expr): Changed the
9692 parameter type's from a dynamic array to a vec_tree. Also removed
9693 the size parameters.
9694 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
9695 the change above.
9696
2ce86d2e
BI
96972013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
9698
9699 * c-common.h (struct cilkplus_an_parts): New structure.
9700 (struct cilkplus_an_loop_parts): Likewise.
9701 (cilkplus_extract_an_triplets): New prototype.
9702 (fix_sec_implicit_args): Likewise.
9703 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
9704 (fix_sec_implicit_args): Likewise.
604b2bfc 9705
07a6825b
BI
97062013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
9707
9708 * array-notation-common.c (find_inv_trees): Removed an unwanted
9709 typecasting.
9710 * c-common.h (struct inv_list::additional_tcodes): Changed type from
9711 enum rid to enum tree_code.
9712
08346abd
JH
97132013-06-11 Jan Hubicka <jh@suse.cz>
9714
9715 * c-common.c (handle_alias_ifunc_attribute): Do not set
9716 DECL_EXTERNAL for weakref variables.
9717 * c-pragma.c (handle_pragma_weak): Make sure aliases
9718 are not declared as external.
9719
d60f1706
BI
97202013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
9721
9722 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
9723 function from c/c-array-notation.c.
9724 (is_cilkplus_reduce_builtin): Likewise.
9725 (find_rank): Likewise.
9726 (extract_array_notation_exprs): Likewise.
9727 (replace_array_notations): Likewise.
9728 (find_inv_trees): Likewise.
9729 (replace_inv_trees): Likewise.
9730 (contains_array_notation_expr): Likewise.
9731 (find_correct_array_notation_type): Likewise.
9732 * c-common.h (struct inv_list): Moved this struct from the file
9733 c/c-array-notation.c and added a new field called additional tcodes.
9734 (length_mismatch_in_expr_p): New prototype.
9735 (is_cilkplus_reduce_builtin): Likewise.
9736 (find_rank): Likewise.
9737 (extract_array_notation_exprs): Likewise.
9738 (replace_array_notation): Likewise.
9739 (find_inv_trees): Likewise.
9740 (replace_inv_trees): Likewise.
9741 (find_correct_array_notation_type): Likewise.
dfeadaa0 9742
36536d79
BI
97432013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
9744
9745 * c-common.c (c_define_builtins): When cilkplus is enabled, the
9746 function array_notation_init_builtins is called.
9747 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
9748 * c-common.def (ARRAY_NOTATION_REF): New tree.
9749 * c-common.h (build_array_notation_expr): New function declaration.
9750 (build_array_notation_ref): Likewise.
9751 (extract_sec_implicit_index_arg): New extern declaration.
9752 (is_sec_implicit_index_fn): Likewise.
9753 (ARRAY_NOTATION_CHECK): New define.
9754 (ARRAY_NOTATION_ARRAY): Likewise.
9755 (ARRAY_NOTATION_START): Likewise.
9756 (ARRAY_NOTATION_LENGTH): Likewise.
9757 (ARRAY_NOTATION_STRIDE): Likewise.
9758 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
9759 ARRAY_NOTATION_REF.
9760 (pp_c_expression): Likewise.
9761 * c.opt (flag_enable_cilkplus): New flag.
9762 * array-notation-common.c: New file.
9763
f7716d57
JJ
97642013-05-14 Jakub Jelinek <jakub@redhat.com>
9765
9766 PR c++/57274
9767 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
9768
a5e0cd1d
MG
97692013-05-10 Marc Glisse <marc.glisse@inria.fr>
9770
9771 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
9772 vectors.
9773
f6bc1c4a
HS
97742013-05-07 Han Shen <shenhan@google.com>
9775
9776 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
9777
3f12f6e9
SKS
97782013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
9779
9780 * c-common.c (check_user_alignment): Emit error for negative values.
9781
61949153
PC
97822013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
9783
9784 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
9785
e93e18e9
PC
97862013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
9787
9788 * c-cppbuiltin.c (c_cpp_builtins): Do not define
9789 __GXX_EXPERIMENTAL_CXX1Y__.
9790
44d90fe1 97912013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
8e745a17 9792 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
44d90fe1
PC
9793
9794 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
9795 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
9796 to simply use OPT_Wpointer_arith.
9797 (c_sizeof_or_alignof_type): Likewise.
9798
13f39b2e
PC
97992013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
9800
9801 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
9802
4b84d650
JJ
98032013-04-12 Jakub Jelinek <jakub@redhat.com>
9804
9805 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
9806 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
9807 specifiers.
9808
fb037b5d
SB
98092013-04-07 Steven Bosscher <steven@gcc.gnu.org>
9810
9811 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
9812
4e856798
PC
98132013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
9814
9815 * c-common.c (pointer_int_sum): Remove dead code.
9816
4b1baac8
RS
98172013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
9818
9819 PR middle-end/56524
9820 * c-common.c (handle_optimize_attribute): Don't call
9821 save_optabs_if_changed.
9822
0b50e654
JJ
98232013-03-05 Jakub Jelinek <jakub@redhat.com>
9824
9825 PR middle-end/56461
9826 * c-pch.c (pch_init): Free target_validity at the end.
9827
48c41403
JJ
98282013-03-04 Jakub Jelinek <jakub@redhat.com>
9829
9830 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
9831
e664c61c
KS
98322013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
9833 Jakub Jelinek <jakub@redhat.com>
9834
9835 PR sanitizer/56454
9836 * c-common.c (handle_no_sanitize_address_attribute): New function.
9837 (c_common_attribute_table): Add no_sanitize_address attribute.
9838 (handle_no_address_safety_analysis_attribute): Add
9839 no_sanitize_address attribute, not no_address_safety_analysis
9840 attribute.
9841
a475fd3d 98422013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
9843
9844 PR target/52555
9845 * c-common.c (handle_optimize_attribute): Call
9846 save_optabs_if_changed.
9847
f6007d99
JJ
98482013-02-18 Jakub Jelinek <jakub@redhat.com>
9849 Steven Bosscher <steven@gcc.gnu.org>
9850
9851 PR pch/54117
9852 * c-opts.c (c_common_post_options): If debug info is enabled
9853 and non-dwarf*, refuse to load PCH files and when writing PCH
9854 file warn.
9855
cf35e2b1
JJ
98562013-02-05 Jakub Jelinek <jakub@redhat.com>
9857
9858 PR middle-end/56167
9859 * c-common.c (handle_error_attribute): Fix condition.
9860
32887460
JJ
98612013-01-30 Jakub Jelinek <jakub@redhat.com>
9862
9863 PR c++/55742
9864 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
9865
5af057d8
JM
98662013-01-18 Jason Merrill <jason@redhat.com>
9867
9868 PR target/54908
9869 * c.opt (-fextern-tls-init): New.
9870 * c-opts.c (c_common_post_options): Handle it.
9871
cc83c823
JJ
98722013-01-09 Jakub Jelinek <jakub@redhat.com>
9873
9874 PR c/48418
9875 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
9876 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
9877 and is either negative or bigger or equal to type precision
9878 of the first operand.
9879
a859517f
MP
98802012-12-03 Marek Polacek <polacek@redhat.com>
9881
9882 PR c/55570
9883 * c-common.c (check_user_alignment): Swap order of tests,
9884 check TREE_CODE first.
9885
2d7aa578
ESR
98862012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
9887
9888 PR c++/52654
9889 * c-common.h (overflow_type): New enum.
9890 (build_userdef_literal): Add overflow_type argument.
9891 (tree_userdef_literal): Add overflow_type.
9892 (USERDEF_LITERAL_OVERFLOW): New access macro.
9893 * c-common.c (build_userdef_literal): Add overflow_type
9894 argument.
9895 * c-lex.c (c_lex_with_flags): Add overflow_type to
9896 build_userdef_literal calls.
9897 (interpret_integer, interpret_float): Add overflow_type argument.
9898
cc3c4f62
RB
98992012-11-28 Richard Biener <rguenther@suse.de>
9900
9901 PR c/35634
9902 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
9903 here and use a type with proper overflow behavior for types that would
9904 need to be promoted for the arithmetic.
9905
77bc5132
JJ
99062012-11-23 Jakub Jelinek <jakub@redhat.com>
9907
9908 PR sanitizer/55435
9909 * c-common.c (handle_no_address_safety_analysis_attribute): New
9910 function.
9911 (c_common_attribute_table): Add no_address_safety_analysis.
9912
5dc99c46
SB
99132012-11-16 Simon Baldwin <simonb@google.com>
9914
9915 * c.opt: Add f[no-]canonical-system-headers.
9916 * c-opts.c (c_common_handle_option): Handle
9917 OPT_fcanonical_system_headers.
9918
a4a0016d
ESR
99192012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
9920
9921 PR c++/54413
9922 * c-opts.c (c_common_handle_option): Set new flags.
9923 * c.opt: Describe new flags.
9924
7dbb85a7
JM
99252012-11-09 Jason Merrill <jason@redhat.com>
9926
9927 * c.opt (Wabi-tag): New.
9928
ad7bac31
AK
99292012-11-09 Andi Kleen <ak@linux.intel.com>
9930
9931 PR 55139
9932 * c-common.c (get_atomic_generic_size): Mask with
8e745a17 9933 MEMMODEL_MASK
ad7bac31 9934
7332899a
MLI
99352012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
9936
9937 PR c/53063
9938 * c.opt (Wformat): Make it Alias Wformat=1.
9939 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
9940 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
9941 LangEnabledBy.
9942 (Wformat=): RejectNegative. Use LangEnabledBy.
9943 (Wnonnull): Use LangEnabledBy.
9944 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
9945 * c-format.c (set_Wformat): Delete.
9946 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
ab20d992
JJ
9947 (maybe_read_dollar_number): Likewise.
9948 (avoid_dollar_number): Likewise.
9949 (finish_dollar_format_checking): Likewise.
9950 (check_format_info): Likewise.
9951 (check_format_info_main): Likewise.
9952 (check_format_types): Likewise.
9953 (format_type_warning): Likewise.
9954 * c-common.c (int): Likewise.
9955 (check_function_sentinel): Likewise.
8e745a17 9956 * c-common.h (warn_format,set_Wformat): Do not declare here.
7332899a 9957
34a180a6
MLI
99582012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
9959
9960 PR c/53063
9961 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
9962 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
9963 Use LangEnabledBy.
9964 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
9965 common.opt.
9966 (Wvariadic-macros): Init(1).
9967 * c-opts.c (c_common_handle_option): Do not handle them
9968 explicitly.
9969 (c_common_post_options): Likewise.
9970 (sanitize_cpp_opts): warn_unused_macros is now
9971 cpp_warn_unused_macros.
9972 (push_command_line_include): Likewise.
9973 * c-common.c (warn_unknown_pragmas): Do not define.
9974 * c-common.h (warn_unknown_pragmas): Do not declare.
9975
3f46d6a5
MLI
99762012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
9977
9978 PR c/51294
9979 * c-common.c (conversion_warning): Handle conditional expressions.
9980
880661a4
JW
99812012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
9982
9983 PR c++/54930
9984 * c.opt (Wreturn_local_addr): Define new option.
9985
4514a96b
JM
99862012-10-25 Jason Merrill <jason@redhat.com>
9987
f14edc1a
JM
9988 * c.opt (Wvirtual-move-assign): New.
9989
4514a96b
JM
9990 * c.opt (Winherited-variadic-ctor): New.
9991
93100c6b
MG
99922012-10-25 Marc Glisse <marc.glisse@inria.fr>
9993
9994 PR c++/54427
9995 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
9996
1efcb8c6
JM
99972012-10-23 Joseph Myers <joseph@codesourcery.com>
9998
9999 * c-common.h (pch_cpp_save_state): Declare.
10000 * c-target.def (c_preinclude): New hook.
10001 * c-opts.c (done_preinclude): New.
10002 (push_command_line_include): Handle default preincluded header.
10003 (cb_file_change): Call pch_cpp_save_state when calling
10004 push_command_line_include.
10005 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
10006 (pch_cpp_save_state): New.
10007 (pch_init): Call pch_cpp_save_state conditionally, instead of
10008 calling cpp_save_state.
10009
4a0ae68e
MLI
100102012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
10011
10012 PR c/53063
10013 PR c/40989
10014 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
10015 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
10016 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
10017 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
10018 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
10019 * c-opts.c (c_common_handle_option): Remove explicit handling from
10020 here.
10021 (c_common_post_options): Likewise.
10022
67e4210b
EB
100232012-10-18 Eric Botcazou <ebotcazou@adacore.com>
10024
10025 * c-ada-spec.c (LOCATION_COL): Delete.
10026 (compare_location): New function.
10027 (compare_node): Use it.
10028 (compare_comment): Likewise.
10029
65d4f2cd
MLI
100302012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
10031
10032 PR c/53063
10033 PR c/40989
10034 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
10035 * c-opts.c (c_common_handle_option): Do not set them here. Add
10036 comment.
10037 (c_common_post_options): Likewise.
10038
909881cb
EB
100392012-10-16 Eric Botcazou <ebotcazou@adacore.com>
10040
10041 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
10042 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
10043 Remove POINTER_TYPE handling, add large unsigned handling and use
10044 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
10045
3a785c97
JJ
100462012-10-12 Jakub Jelinek <jakub@redhat.com>
10047
10048 PR c/54381
10049 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
10050 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
10051 locs and array of 3 trees instead of just single loc and single
10052 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
10053 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
10054 For *cmp* builtins that take two sources strings report warnings
10055 about first and second source, not about destination and source.
10056
5e54f81d
MG
100572012-10-12 Marc Glisse <marc.glisse@inria.fr>
10058
10059 PR c++/53055
10060 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
10061
f5b02f1e
EB
100622012-10-11 Eric Botcazou <ebotcazou@adacore.com>
10063
10064 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
10065 declaring something coming from another file.
10066
b46dbc6c
AC
100672012-10-10 Arnaud Charlet <charlet@adacore.com>
10068
f5b02f1e 10069 PR ada/54845
b46dbc6c
AC
10070 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
10071
5d9de0d0
PC
100722012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
10073
10074 PR c++/54194
10075 * c-common.c (warn_about_parentheses): Add location_t parameter;
10076 use EXPR_LOC_OR_LOC.
10077 * c-common.h: Update declaration.
10078
a212e43f
MG
100792012-10-09 Marc Glisse <marc.glisse@inria.fr>
10080
10081 PR c++/54427
10082 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
10083 more operations. Make error messages optional.
10084 * c-common.h (enum stv_conv): Moved from c-typeck.c.
10085 (scalar_to_vector): Declare.
10086
b1db7f91
JM
100872012-10-08 Jason Merrill <jason@redhat.com>
10088
10089 * c-common.c (c_common_reswords): Add thread_local.
10090
e28d52cf
DS
100912012-10-08 Dodji Seketeli <dodji@redhat.com>
10092
10093 PR c++/53528 C++11 attribute support
10094 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
10095 new functions.
10096 * c-common.c (check_cxx_fundamental_alignment_constraints): New
10097 static function.
10098 (handle_aligned_attribute): In choose strictest alignment
10099 among many. Use new check_cxx_fundamental_alignment_constraints.
10100 (handle_transparent_union_attribute): In c++11 attribute syntax,
10101 don't look through typedefs.
10102
3b78de56
AC
101032012-10-04 Arnaud Charlet <charlet@adacore.com>
10104
10105 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
10106 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
10107 out of dumpfile.h.
10108
6040bb5f
DC
101092012-09-25 Dehao Chen <dehao@google.com>
10110
10111 PR middle-end/54645
3b78de56 10112 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
10113 map when read in the pch.
10114
3f8257db 101152012-09-18 Arnaud Charlet <charlet@adacore.com>
0b07a57e
AC
10116
10117 * c-ada-spec.c: Style fixes.
10118
3f8257db 101192012-09-18 Thomas Quinot <quinot@adacore.com>
da5182be
TQ
10120
10121 * c.opt (-fada-spec-parent): Define new command line switch.
10122 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
10123 is specified, generate binding spec as a child of the specified unit.
10124
0ccb505d
PC
101252012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
10126 Manuel López-Ibáñez <manu@gcc.gnu.org>
10127
10128 PR c++/53210
10129 * c.opt ([Winit-self]): Enabled by -Wall in C++.
10130
c583af79
AC
101312012-08-23 Arnaud Charlet <charlet@adacore.com>
10132
10133 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
10134 for pointers, and add missing Convention C pragma.
10135 (print_ada_struct_decl): Add missing aliased keyword.
10136 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
10137
1a4049e7
JJ
101382012-08-17 Jakub Jelinek <jakub@redhat.com>
10139
10140 * c-common.c (sizeof_pointer_memaccess_warning): New function.
10141 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
10142 * c-opts.c (c_common_handle_option): Enable it for -Wall.
10143 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
10144 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
10145
70b5e7dc
RG
101462012-08-10 Richard Guenther <rguenther@suse.de>
10147
10148 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
10149
f8923f7e
SB
101502012-08-07 Steven Bosscher <steven@gcc.gnu.org>
10151
10152 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
10153 instead of separate pp_newline and pp_flush.
10154 (print_c_tree): Likewise.
10155
e45abe1f
RH
101562012-07-26 Richard Henderson <rth@redhat.com>
10157
10158 * c-common.c (handle_hot_attribute): Allow labels.
10159 (handle_cold_attribute): Likewise.
10160
332f1d24
JJ
101612012-07-20 Jakub Jelinek <jakub@redhat.com>
10162
10163 PR c++/28656
10164 * c-common.c (check_function_nonnull): Handle multiple nonnull
10165 attributes properly.
10166
7ee2468b
SB
101672012-07-16 Steven Bosscher <steven@gcc.gnu.org>
10168
10169 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
10170 * c-ada-spec.c: Likewise.
10171 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
10172
ee7b28eb
SB
101732012-07-14 Steven Bosscher <steven@gcc.gnu.org>
10174
10175 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
10176 Remove code conditional on it.
10177
6bdf3519
SB
101782012-07-11 Steven Bosscher <steven@gcc.gnu.org>
10179
10180 * c-gimplify.c: Do not include basic-block.h.
10181 * c-common.c: Do not include linfuncs.h.
10182
532aafad
SB
101832012-07-08 Steven Bosscher <steven@gcc.gnu.org>
10184
10185 * c-common.h: Include tree.h.
10186
8d0d1915
JM
101872012-07-02 Jason Merrill <jason@redhat.com>
10188
10189 PR c++/53524
10190 * c-common.c (get_priority): Call default_conversion.
10191
fbc873ad
UB
101922012-07-01 Uros Bizjak <ubizjak@gmail.com>
10193
10194 * c-pch.c (c_common_write_pch): Remove unused variables.
10195
d4a10d0a
SB
101962012-06-29 Steven Bosscher <steven@gcc.gnu.org>
10197
10198 * cppspec.c: Moved from gcc/ to here.
10199
6f3a2e23
KT
102002012-06-27 Kai Tietz <ktietz@redhat.com>
10201
10202 PR preprocessor/37215
10203 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
10204
8ca92d04
SB
102052012-06-21 Steven Bosscher <steven@gcc.gnu.org>
10206
10207 * c-common.h (c_common_print_pch_checksum): Remove.
10208 * c-pch.c: Do not include output.h.
10209 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
10210 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
10211 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
10212 (struct c_pch_header): Remove.
10213 (get_ident): Update gpch version.
10214 (pch_init): Do not print executable_checksum to asm_out_file.
10215 Do not fail if there is no asm_out_file to read back from. Set
10216 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
10217 (c_common_write_pch): Verify that nothing was written to asm_out_file
10218 since pch_init was called. Do not write a c_pch_header, and do not
10219 copy from asm_out_file to the PCH.
10220 (c_common_read_pch): Do not read a c_pch_header, and do not restore
10221 the content of asm_out_file from the PCH.
10222 (c_common_print_pch_checksum): Remove.
10223 * c-opts.c (c_common_init): Print out executable_checksum directly.
10224
70f42967
SB
102252012-06-19 Steven Bosscher <steven@gcc.gnu.org>
10226
10227 * c-target.def (objc_declare_unresolved_class_reference,
10228 objc_declare_class_definition): Add new hooks.
10229
a8781821
SB
102302012-06-19 Steven Bosscher <steven@gcc.gnu.org>
10231
10232 * c-lex.c: Do not include output.h.
10233 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
10234 Remove uses of ASM_OUTPUT_IDENT.
10235
9e1a8dd1
RR
102362012-06-15 Marc Glisse <marc.glisse@inria.fr>
10237
10238 PR c++/51033
10239 * c-common.h (c_build_vec_perm_expr): Move decl here.
10240 * c-common.c (c_build_vec_perm_expr): Move definition
10241 here.
10242
6f07a821
SB
102432012-06-06 Steven Bosscher <steven@gcc.gnu.org>
10244
10245 * c.opt (fconserve-space): Turn into a no-op.
10246
9faeb493 102472012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
10248
10249 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
10250 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
10251 both the start and end of the function.
10252
a4b7d13c
SB
102532012-06-04 Steven Bosscher <steven@gcc.gnu.org>
10254
10255 * c-common.c: Do not include output.h.
10256 * c-pragma.c: Likewise.
10257
c265f413
SA
102582012-06-04 Steven Bosscher <steven@gcc.gnu.org>
10259
10260 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
10261 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
10262 (lang_decl_name): Handle namespace decls.
10263
be7a421e
SB
102642012-05-31 Steven Bosscher <steven@gcc.gnu.org>
10265
10266 * c-ada-spec.c: Do not include output.h.
10267 * c-semantics.c: Likewise.
10268
65de6659
JM
102692012-05-29 Joseph Myers <joseph@codesourcery.com>
10270
10271 * c-common.c: Fix typo.
10272
ca5f4331
MM
102732012-05-29 Michael Matz <matz@suse.de>
10274
10275 * c-common.h (c_expand_decl): Remove prototype.
10276
4f7f7aca
MLI
102772012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
10278
10279 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
10280 * c-opts.c (c_common_handle_option): Remove code handling
10281 warn_missing_braces.
10282
4a792f9b
PC
102832012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
10284
10285 PR c++/25137
10286 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
10287 -Wmissing_braces.
10288
650dc14a
DS
102892012-05-22 Dodji Seketeli <dodji@redhat.com>
10290
10291 PR c++/53322
10292 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
10293
9b095bf1
MLI
102942012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
10295
10296 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
10297 * c-opts.c (c_common_handle_option): Do not handle explicitly
10298 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
10299
0b2c4be5
DS
103002012-05-16 Dodji Seketeli <dodji@redhat.com>
10301
10302 PR preprocessor/7263
ab20d992 10303 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
0b2c4be5
DS
10304 to cpp_classify_number. For diagnostics, use the precise location
10305 instead of the global input_location.
10306
a1bde5af
PC
103072012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
10308
d02924ef 10309 PR c++/11856
a1bde5af
PC
10310 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
10311
d1ede5f4
BS
103122012-05-14 Bernd Schmidt <bernds@codesourcery.com>
10313
a1bde5af 10314 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 10315
f2bc201f
MLI
103162012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
10317
10318 PR 53063
10319 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
10320 Wreorder): Use LangEnabledBy.
10321 * c-opts.c (c_common_handle_option): Do not enable them
10322 explicitly. Call lang-specific generated functions.
10323 (c_common_post_options): Do not set them here.
10324
95744782
MLI
103252012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
10326
10327 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
10328 Wmissing-field-initializers,Wmissing-parameter-type,
10329 Wold-style-declaration,Woverride-init): Use EnabledBy.
10330 * c-opts.c (c_common_post_options): Do not set here explicitly.
10331
7d5a5747
MLI
103322012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
10333
10334 PR 53063
10335 * c-opts.c (c_common_handle_option): Use handle_generated_option
10336 to enable sub-options.
10337
5a3c9cf2
PC
103382012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
10339
10340 PR c++/53158
10341 * c-common.c (warnings_for_convert_and_check): Use warning_at.
10342
3ac8781c
RG
103432012-05-10 Richard Guenther <rguenther@suse.de>
10344
10345 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
10346 adjust commentary about TYPE_IS_SIZETYPE types.
10347
1e537948
MLI
103482012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
10349
10350 PR c++/53261
10351 * c-common.c (warn_logical_operator): Check that argument of
10352 integer_zerop is not NULL.
10353
f2c4a785
MLI
103542012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
10355
10356 PR c/43772
10357 * c-common.c (warn_logical_operator): Do not warn if either side
10358 is already true or false.
10359
50f305ca
MLI
103602012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
10361
10362 PR c/51712
10363 * c-common.c (expr_original_type): New.
10364 (shorten_compare): Do not warn for enumeration types.
10365
0c3641b0
MLI
103662012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
10367
10368 * c.opt (fpermissive): Add Var(flag_permissive).
10369
7edaa4d2
MG
103702012-04-30 Marc Glisse <marc.glisse@inria.fr>
10371
10372 PR c++/51033
10373 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
10374 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
10375
b9c8da34
DS
103762012-04-30 Dodji Seketeli <dodji@redhat.com>
10377
10378 Add -Wvarargs option
ab20d992 10379 * c.opt (Wvarargs): Define new option.
b9c8da34 10380
e6c69da0
MLI
103812012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
10382
10383 * c-common.c (check_function_arguments): Replace
10384 Wmissing-format-attribute with Wsuggest-attribute=format.
10385
90137d8f
MLI
103862012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
10387
10388 * c.opt (Wsuggest-attribute=format): New. Alias of
10389 Wmissing-format-attribute.
10390 * c-format.c (decode_format_type): Replace
10391 Wmissing-format-attribute with Wsuggest-attribute=format.
10392 (check_function_format): Likewise.
10393
9faeb493 103942012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
10395
10396 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
10397 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
10398 * c.opt: Add Wliteral-suffix.
10399
c1771a20
MLI
104002012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
10401
10402 PR c/44774
10403 * c.opt (Wpedantic): New.
10404 (pedantic): Alias Wpedantic.
10405 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
10406 (c_common_post_options): Likewise.
10407 (sanitize_cpp_opts): Likewise.
10408 * c-lex.c (interpret_float): Likewise.
10409 * c-format.c (check_format_types): Likewise.
10410 * c-common.c (pointer_int_sum): Likewise.
10411 (c_sizeof_or_alignof_type): Likewise.
10412 (c_add_case_label): Likewise.
10413 (c_do_switch_warnings): Likewise.
10414 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
10415
04b391c1
JM
104162012-04-15 Jason Merrill <jason@redhat.com>
10417
10418 PR c++/52818
10419 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
10420 (C_STD_NAME): Distinguish between C++98 and C++11.
10421
ac868f29
EB
104222012-04-11 Eric Botcazou <ebotcazou@adacore.com>
10423
10424 PR target/52624
10425 * c-common.h (uint16_type_node): Rename into...
10426 (c_uint16_type_node): ...this.
10427 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
10428 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
10429
fd4116f4
MLI
104302012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
10431
10432 * c-common.c (warn_if_unused_value): Move definition to here.
10433 * c-common.h (warn_if_unused_value): Move declaration to here.
10434
573ac65e
WB
104352012-03-23 William Bader <williambader@hotmail.com>
10436
10437 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
10438
552b8185
JM
104392012-03-20 Jason Merrill <jason@redhat.com>
10440
10441 * c-common.h (enum cxx_dialect): Add cxx1y.
10442 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
10443 test.
10444 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
10445 * c-opts.c (c_common_post_options): Likewise.
10446 (set_std_cxx1y): New.
10447 (c_common_handle_option): Call it.
10448 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
10449
04398fa8
PC
104502012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
10451
10452 PR c++/14710
10453 * c.opt ([Wuseless-cast]): Add.
10454
d2a12ae7
RG
104552012-03-16 Richard Guenther <rguenther@suse.de>
10456
10457 * c-pretty-print.c (pp_c_initializer_list): Adjust.
10458
a12bf402
MLI
104592012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10460
10461 PR c++/44783
10462 * c.opt (ftemplate-backtrace-limit) Add.
10463
5c30094f
RO
104642012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10465
10466 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
10467 handling.
10468 * c-pragma.c (handle_pragma_extern_prefix): Remove.
10469 (init_pragma): Don't register extern_prefix.
10470
21fa2faf
RG
104712012-03-12 Richard Guenther <rguenther@suse.de>
10472
10473 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
10474 (builtin_type_for_size): Likewise.
10475
e3793c6f
JJ
104762012-02-13 Jakub Jelinek <jakub@redhat.com>
10477
10478 PR c++/52215
10479 * c-common.c (sync_resolve_params): Don't decide whether to convert
10480 or not based on TYPE_SIZE comparison, convert whenever arg_type
10481 is unsigned INTEGER_TYPE.
10482
93286335
PC
104832012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
10484
10485 PR c/52118
10486 * c.opt ([Wunused-local-typedefs]): Fix description.
10487
7a421706
MS
104882012-01-24 Mike Stump <mikestump@comcast.net>
10489
10490 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
10491 exactly.
10492
ba9b1f11
RG
104932012-01-18 Richard Guenther <rguenther@suse.de>
10494
10495 * c-opts.c (c_common_post_options): Reset LTO flags if
10496 we are about to generate a PCH.
10497
465406be
PC
104982012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
10499
10500 PR c++/51777
10501 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
10502 use pp_unsigned_wide_integer.
10503
aee15221
RG
105042012-01-10 Richard Guenther <rguenther@suse.de>
10505
10506 PR middle-end/51806
10507 * c-opts.c (c_common_handle_option): Move -Werror handling
10508 to language independent code.
10509
5720c0dc
RG
105102012-01-05 Richard Guenther <rguenther@suse.de>
10511
10512 PR middle-end/51764
10513 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
10514 from common.opt.
10515
73ac190a
PC
105162011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
10517
10518 PR c++/51316
10519 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
10520 of array types with an unknown bound.
10521
48b0b196
JM
105222011-12-20 Joseph Myers <joseph@codesourcery.com>
10523
10524 * c-common.c (flag_isoc99): Update comment to refer to C11.
10525 (flag_isoc1x): Change to flag_isoc11.
10526 * c-common.h (flag_isoc99): Update comment to refer to C11.
10527 (flag_isoc1x): Change to flag_isoc11.
10528 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
10529 C11.
10530 * c-opts.c (set_std_c1x): Change to set_std_c11.
10531 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
10532 Call set_std_c11.
10533 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
10534 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
10535 * c.opt (std=c1x): Change to std=c11. Document as non-draft
10536 standard.
10537 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
10538 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
10539 (std=gnu1x): Make alias of std=gnu11.
10540
d58d6eb5
JM
105412011-12-19 Jason Merrill <jason@redhat.com>
10542
10543 PR c++/51228
10544 * c-common.c (handle_transparent_union_attribute): Check the first
10545 field if the type is complete.
10546
b3908fcc
JW
105472011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
10548
10549 PR libstdc++/51365
10550 * c-common.c (RID_IS_FINAL): Add.
10551 * c-common.h (RID_IS_FINAL): Add.
10552
fea3ca91
IS
105532011-11-30 Iain Sandoe <iains@gcc.gnu.org>
10554
10555 * c.opt (fgnu-runtime): Provide full description.
10556 (fnext-runtime): Likewise.
10557 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
10558
62bad7cd
AM
105592011-11-28 Andrew MacLeod <amacleod@redhat.com>
10560
10561 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
10562 predefines in one place. Add LOCK_FREE predefines.
10563 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
10564 new func.
10565
c466c4ff
AM
105662011-11-24 Andrew MacLeod <amacleod@redhat.com>
10567
10568 PR c/51256
9faeb493 10569 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 10570 conditions
9faeb493
UB
10571 (resolve_overloaded_atomic_exchange,
10572 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
10573 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
10574 error_mark_node for error conditions.
9faeb493 10575
a5952633
RG
105762011-11-08 Richard Guenther <rguenther@suse.de>
10577
10578 PR middle-end/51010
ab20d992 10579 * c-pretty-print.c (pp_c_expression): Handle SSA_NAMEs.
a5952633 10580
0a35513e
AH
105812011-11-07 Richard Henderson <rth@redhat.com>
10582 Aldy Hernandez <aldyh@redhat.com>
10583 Torvald Riegel <triegel@redhat.com>
10584
10585 Merged from transactional-memory.
10586
10587 * c-common.c (handle_tm_wrap_attribute,
10588 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
10589 (struct c_common_reswords): Added __transaction* keywords.
10590 (struct c_common_attribute_table): Added transaction* and tm_regparm
10591 attributes.
10592 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
10593 masks.
10594 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
10595 find_tm_attribute): Declare.
10596
6d87092d
JM
105972011-11-07 Jason Merrill <jason@redhat.com>
10598
10599 PR c++/35688
10600 * c-common.c, c-common.h: Revert yesterday's changes.
10601
8e7860a1
JM
106022011-11-06 Jason Merrill <jason@redhat.com>
10603
10604 PR c++/35688
10605 * c-common.c (decl_has_visibility_attr): Split out from...
10606 (c_determine_visibility): ...here.
10607 * c-common.h: Declare it.
10608
d19fa6b5
JM
106092011-11-06 Joseph Myers <joseph@codesourcery.com>
10610
10611 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
10612 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
10613 type.
10614 (check_user_alignment): New. Split out of
10615 handle_aligned_attribute. Disallow integer constants with
10616 noninteger types. Conditionally allow zero.
10617 (handle_aligned_attribute): Use check_user_alignment.
10618 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
10619
86951993
AM
106202011-11-06 Andrew MacLeod <amacleod@redhat.com>
10621 Richard Henderson <rth@redhat.com>
10622
10623 Merged from cxx-mem-model.
10624
10625 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 10626 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
10627 parameters that are the same type size.
10628 (get_atomic_generic_size): New. Find size of generic
10629 atomic function parameters and do typechecking.
10630 (add_atomic_size_parameter): New. Insert size into parameter list.
10631 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
10632 either __atomic_exchange_n or external library call.
9faeb493 10633 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 10634 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 10635 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
10636 __atomic_load_n or an external library call.
10637 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
10638 __atomic_store_n or an external library call.
10639 (resolve_overloaded_builtin): Handle new __atomic builtins.
10640
cf9e9959
EB
106412011-11-04 Eric Botcazou <ebotcazou@adacore.com>
10642
10643 PR c++/50608
10644 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
10645 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
10646 <INDIRECT_REF>: Return the argument.
10647 <ARRAY_REF>: Remove special code for negative offset.
10648 Call fold_build_pointer_plus instead of size_binop.
10649 (fold_offsetof): Remove STOP_REF argument and adjust.
10650 * c-common.h (fold_offsetof_1): Declare.
10651 (fold_offsetof): Remove STOP_REF argument.
10652
25339f10
JM
106532011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
10654
10655 PR c++/50810
10656 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
10657 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
10658 Wnarrowing for C++0x and C++98.
10659 * c.opt ([Wnarrowing]): Update.
10660
89401152
PC
106612011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
10662
10663 PR c++/44277
10664 * c.opt: Add Wzero-as-null-pointer-constant.
10665
97e3ad20
JM
106662011-10-31 Jason Merrill <jason@redhat.com>
10667
15694fdd
JM
10668 * c.opt (-fdeduce-init-list): Off by default.
10669
97e3ad20
JM
10670 PR c++/50920
10671 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
10672 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
10673 and -Wc++11-compat.
10674 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
10675
fb9120e3
RAV
106762011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
10677
10678 PR c++/30066
10679 * c.opt (fvisibility-inlines-hidden): Description change.
10680
3ce4f9e4
ESR
106812011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
10682
10683 Implement C++11 user-defined literals.
10684 * c-common.c (build_userdef_literal): New.
10685 * c-common.def: New tree code.
10686 * c-common.h (tree_userdef_literal): New tree struct and accessors.
10687 * c-lex.c (interpret_float): Add suffix parm.
10688 (c_lex_with_flags): Build literal tokens.
10689
5f53c243
PC
106902011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
10691
10692 PR c++/50841
10693 Revert:
10694 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
10695
10696 PR c++/50810
10697 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
10698 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
10699 Wnarrowing for C++0x and C++98.
10700 * c.opt ([Wnarrowing]): Update.
10701
263734e1
PC
107022011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
10703
10704 PR c++/50810
10705 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
10706 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
10707 Wnarrowing for C++0x and C++98.
10708 * c.opt ([Wnarrowing]): Update.
10709
d2e312d7
PC
107102011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
10711
10712 PR c++/45385
10713 * c-common.c (conversion_warning): Remove code looking for
10714 artificial operands.
10715
d17687f6
DS
107162011-10-18 Dodji Seketeli <dodji@redhat.com>
10717
10718 PR bootstrap/50760
10719 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 10720 !NO_IMPLICIT_EXTERN_C.
d17687f6 10721
fc8396e9
PC
107222011-10-17 Michael Spertus <mike_spertus@symantec.com>
10723
10724 * c-common.c (c_common_reswords): Add __bases,
10725 __direct_bases.
10726 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
10727
107282011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
10729
10730 PR c++/50757
10731 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
10732
847e697a
TT
107332011-10-15 Tom Tromey <tromey@redhat.com>
10734 Dodji Seketeli <dodji@redhat.com>
10735
10736 * c.opt (fdebug-cpp): New option.
10737 * c-opts.c (c_common_handle_option): Handle the option.
10738 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
10739 output stream in parameter. Factorized from ...
10740 (maybe_print_line): ... this. Dump location debug information when
10741 -fdebug-cpp is in effect.
10742 (print_line_1): New static function. Takes an output stream in
10743 parameter. Factorized from ...
10744 (print_line): ... here. Dump location information when -fdebug-cpp
10745 is in effect.
10746 (scan_translation_unit): Dump location information when
10747 -fdebug-cpp is in effect.
10748
92582b75
TT
107492011-10-15 Tom Tromey <tromey@redhat.com>
10750 Dodji Seketeli <dodji@redhat.com>
10751
10752 * c.opt (ftrack-macro-expansion): New option. Handle it with and
10753 without argument.
10754 * c-opts.c (c_common_handle_option)<case
10755 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
10756 cases. Handle -ftrack-macro-expansion with and without argument.
10757
46427374
TT
107582011-10-15 Tom Tromey <tromey@redhat.com>
10759 Dodji Seketeli <dodji@redhat.com>
10760
10761 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
10762 (print_line, cb_define, do_line_change): Adjust to avoid touching
10763 the internals of struct line_map. Use the public API instead.
10764 * c-pch.c (c_common_read_pch): Likewise.
10765 * c-lex.c (fe_file_change): Likewise.
10766
fc8396e9
PC
107672011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
10768
10769 PR c++/17212
10770 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
10771
107722011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
10773
10774 PR c++/33067
10775 * c-pretty-print.c (pp_c_floating_constant): Output
10776 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
10777
e79983f4
MM
107782011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
10779
10780 * c-common.c (def_builtin_1): Delete old interface with two
10781 parallel arrays to hold standard builtin declarations, and replace
10782 it with a function based interface that can support creating
10783 builtins on the fly in the future. Change all uses, and poison
10784 the old names. Make sure 0 is not a legitimate builtin index.
10785 * c-omp.c (c_finish_omp_barrier): Ditto.
10786 (c_finish_omp_taskwait): Ditto.
10787 (c_finish_omp_flush): Ditto.
10788
6637388f
TG
107892011-10-11 Tristan Gingold <gingold@adacore.com>
10790
10791 * c.opt: (fallow-parameterless-variadic-functions): New.
10792
3797cb21
DS
107932011-09-08 Dodji Seketeli <dodji@redhat.com>
10794
10795 PR c++/33255 - Support -Wunused-local-typedefs warning
10796 * c-common.h (struct c_language_function::local_typedefs): New
10797 field.
9faeb493
UB
10798 (record_locally_defined_typedef, maybe_record_typedef_use)
10799 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 10800 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
10801 (maybe_record_typedef_use)
10802 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
10803 * c.opt: Declare new -Wunused-local-typedefs flag.
10804
693ddb1b
EB
108052011-09-06 Eric Botcazou <ebotcazou@adacore.com>
10806
10807 PR middle-end/50266
10808 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
10809 computations.
10810
830c740f
RG
108112011-09-05 Richard Guenther <rguenther@suse.de>
10812
10813 * c-common.c (complete_array_type): Use ssize_int (-1) instead
10814 of integer_minus_one_node for empty array upper bounds.
10815
892a371f
DS
108162011-08-28 Dodji Seketeli <dodji@redhat.com>
10817
10818 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
10819 it's the first time it's being called on this main TU.
10820
0e3fdb48
RB
108212011-08-24 Richard Guenther <rguenther@suse.de>
10822
10823 PR c/49396
10824 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
10825
108262011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
10827
10828 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
10829 defined in cpp_init_builtins and c_cpp_builtins.
10830
d4a83c10
JM
108312011-08-19 Joseph Myers <joseph@codesourcery.com>
10832
10833 * c-common.c (c_common_reswords): Add __builtin_complex.
10834 * c-common.h (RID_BUILTIN_COMPLEX): New.
10835
bbceee64
JM
108362011-08-18 Joseph Myers <joseph@codesourcery.com>
10837
10838 * c-common.c (c_common_reswords): Add _Noreturn.
10839 (keyword_is_function_specifier): Handle RID_NORETURN.
10840 * c-common.h (RID_NORETURN): New.
10841
3f8257db 108422011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
0e3a99ae
AS
10843
10844 * c-common.c (unsafe_conversion_p): New function. Check if it is
10845 unsafe to convert an expression to the type.
10846 (conversion_warning): Adjust, use unsafe_conversion_p.
10847 * c-common.h (unsafe_conversion_p): New function declaration.
10848
20906c66
JJ
108492011-08-02 Jakub Jelinek <jakub@redhat.com>
10850
10851 * c-common.h (c_finish_omp_atomic): Adjust prototype.
10852 (c_finish_omp_taskyield): New prototype.
10853 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
10854 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
10855 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
10856 or RHS1 have side-effects, evaluate those too in the right spot,
10857 if it is a decl and LHS is also a decl, error out if they
10858 aren't the same.
10859 (c_finish_omp_taskyield): New function.
10860 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
10861 * c-pragma.c (omp_pragmas): Add taskyield.
10862 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
10863 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
10864 PRAGMA_OMP_CLAUSE_MERGEABLE.
10865
770e5a2e
DS
108662011-07-25 Dodji Seketeli <dodji@redhat.com>
10867
10868 * c-common.h (set_underlying_type): Remove parm name from
10869 declaration.
10870
1baae426
RG
108712011-07-25 Romain Geissler <romain.geissler@gmail.com>
10872
10873 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 10874
fcb21722
JM
108752011-07-22 Jason Merrill <jason@redhat.com>
10876
76f86d00
JM
10877 PR c++/49793
10878 * c.opt (Wnarrowing): New.
10879
3a636414
JM
10880 PR c++/30112
10881 * c-common.h: Declare c_linkage_bindings.
10882 * c-pragma.c (handle_pragma_redefine_extname): Use it.
10883
fcb21722
JM
10884 PR c++/49813
10885 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
10886 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
10887 as flag_isoc99 for 'restrict'.
10888 (pp_c_specifier_qualifier_list): Likewise for _Complex.
10889
02614448
ILT
108902011-07-21 Ian Lance Taylor <iant@google.com>
10891
10892 PR middle-end/49705
10893 * c-common.c (c_disable_warnings): New static function.
10894 (c_enable_warnings): New static function.
10895 (c_fully_fold_internal): Change local unused_p to bool. Call
10896 c_disable_warnings and c_enable_warnings rather than change
10897 c_inhibit_evaluation_warnings.
10898
34429675
JM
108992011-07-20 Jason Merrill <jason@redhat.com>
10900
10901 PR c++/6709 (DR 743)
10902 PR c++/42603 (DR 950)
10903 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
10904 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
10905 (CPP_DECLTYPE): New.
10906 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
10907
5d49b6a7
RG
109082011-07-19 Richard Guenther <rguenther@suse.de>
10909
10910 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
10911 * c-omp.c (c_finish_omp_for): Likewise.
10912
e84a58ff
EB
109132011-07-12 Eric Botcazou <ebotcazou@adacore.com>
10914
10915 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
10916 body on the next line.
10917
329af3c7
JM
109182011-07-08 Jason Merrill <jason@redhat.com>
10919
4063e61b
JM
10920 PR c++/45437
10921 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
10922
329af3c7
JM
10923 PR c++/49673
10924 * c-common.c (c_apply_type_quals_to_decl): Don't check
10925 TYPE_NEEDS_CONSTRUCTING.
10926
1a072294
RG
109272011-07-06 Richard Guenther <rguenther@suse.de>
10928
10929 * c-common.c (c_common_nodes_and_builtins):
10930 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
10931
fce5dddd
RG
109322011-07-05 Richard Guenther <rguenther@suse.de>
10933
10934 * c-common.c (c_common_nodes_and_builtins): Build all common
10935 tree nodes first.
10936
45d439ac
JJ
109372011-06-27 Jakub Jelinek <jakub@redhat.com>
10938
56300785
JJ
10939 * c-common.h (c_tree_chain_next): New static inline function.
10940
45d439ac
JJ
10941 * c-common.c (check_builtin_function_arguments): Handle
10942 BUILT_IN_ASSUME_ALIGNED.
10943
e0a8ecf2
AM
109442011-06-21 Andrew MacLeod <amacleod@redhat.com>
10945
10946 * c-common.c: Add sync_ or SYNC__ to builtin names.
10947 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
10948
109492011-06-20 Pierre Vittet <piervit@pvittet.com>
10950
10951 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
10952 handler.
10953 (gen_pragma_handler): New union.
10954 (internal_pragma_handler): New type.
10955 (c_register_pragma_with_data)
10956 (c_register_pragma_with_expansion_and_data): New functions.
10957
10958 * c-pragma.c (registered_pragmas, c_register_pragma_1)
10959 (c_register_pragma, c_register_pragma_with_expansion)
10960 (c_invoke_pragma_handler): Changed to work with
10961 internal_pragma_handler.
10962 (c_register_pragma_with_data)
10963 (c_register_pragma_with_expansion_and_data): New functions.
10964
677f3fa8
JM
109652011-06-14 Joseph Myers <joseph@codesourcery.com>
10966
10967 * c-common.c: Include common/common-target.h.
10968 (handle_section_attribute): Use
10969 targetm_common.have_named_sections.
10970 * c-cppbuiltin.c: Include common/common-target.h.
10971 (c_cpp_builtins): Use targetm_common.except_unwind_info.
10972
d7fc8c14
RG
109732011-06-10 Richard Guenther <rguenther@suse.de>
10974
10975 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
10976 to print a IDENTIFIER_NODE.
10977
10e48e39
RO
109782011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10979 Joseph Myers <joseph@codesourcery.com>
10980
10981 * c.opt (fbuilding-libgcc): New option.
10982 * c-cppbuiltin.c (c_cpp_builtins): Define
10983 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
10984
6976ae51
JM
109852011-06-07 Jason Merrill <jason@redhat.com>
10986
3ff60975
JM
10987 * c-common.c (max_tinst_depth): Lower default to 900.
10988
6976ae51
JM
10989 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
10990
009db074
RG
109912011-06-07 Richard Guenther <rguenther@suse.de>
10992
10993 * c-common.c (c_common_nodes_and_builtins): Do not set
10994 size_type_node or call set_sizetype.
10995
b4592b92
DS
109962011-06-07 Dodji Seketeli <dodji@redhat.com>
10997
10998 PR debug/49130
10999 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 11000 type when using pointer comparison to compare types.
b4592b92 11001
014ab419
JW
110022011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
11003
11004 * c.opt: Add -Wdelete-non-virtual-dtor.
11005 * c-opts.c (c_common_handle_option): Include it in -Wall.
11006
4f60111f
NF
110072011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
11008
11009 PR bootstrap/49190
11010
11011 Revert:
11012 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
11013
11014 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
11015 not tree_common.
11016
4cc4f2f4
JJ
110172011-05-27 Jakub Jelinek <jakub@redhat.com>
11018
11019 PR c++/49165
11020 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
11021 C++ don't call c_common_truthvalue_conversion on void type arms.
11022
38e01f9e
NF
110232011-05-27 Nathan Froyd <froydnj@codesourcery.com>
11024
11025 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
11026 (stmt_list_stack): Define.
11027 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
11028 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
11029
92e948a8
NF
110302011-05-26 Nathan Froyd <froydnj@codesourcery.com>
11031
11032 * c-common.c (warning_candidate_p): Check for BLOCKs.
11033
a2fc3e63
NF
110342011-05-26 Nathan Froyd <froydnj@codesourcery.com>
11035
11036 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
11037 not tree_common.
11038
0957c029
JJ
110392011-05-25 Jakub Jelinek <jakub@redhat.com>
11040
11041 * c-common.c (def_fn_type): Remove extra va_end.
11042
828fb3ba
JM
110432011-05-23 Jason Merrill <jason@redhat.com>
11044
11045 PR c++/48106
11046 * c-common.c (c_common_get_narrower): New.
11047 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
11048
dde05067
NF
110492011-05-23 Nathan Froyd <froydnj@codesourcery.com>
11050
11051 * c-common.h (check_function_arguments): Tweak prototype of
11052 check_function_arguments.
11053 * c-common.c (check_function_arguments): Likewise. Adjust
11054 calls to check_function_nonnull, check_function_format, and
11055 check_function_sentinel.
11056 (check_function_sentinel): Take a FUNCTION_TYPE rather than
11057 separate attributes and typelist arguments. Use
11058 FOREACH_FUNCTION_ARGS to iterate over argument types.
11059
3c0d13bf
PC
110602011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
11061
11062 * c-common.c (c_common_reswords): Reorder.
11063 * c-common.h (rid): Likewise.
11064
8242dd04
NF
110652011-05-10 Nathan Froyd <froydnj@codesourcery.com>
11066
11067 * c-common.c (def_fn_type): Don't call build_function_type, call
11068 build_function_type_array or build_varargs_function_type_array
11069 instead.
11070 (c_common_nodes_and_builtins): Likewise.
11071
3d528853
NF
110722011-05-05 Nathan Froyd <froydnj@codesourcery.com>
11073
11074 * c-common.c (c_add_case_label): Omit the loc argument to
11075 build_case_label.
11076 * c-common.h (build_case_label): Remove.
11077 * c-semantics.c (build_case_label): Remove.
11078
a04a722b
JM
110792011-05-05 Joseph Myers <joseph@codesourcery.com>
11080
11081 * c-objc.h (objc_start_method_definition): Update prototype.
11082 * stub-objc.c (objc_start_method_definition): Add extra parameter.
11083
e19a18d4
NF
110842011-05-04 Nathan Froyd <froydnj@codesourcery.com>
11085
11086 * c-common.c (check_main_parameter_types): Reindent. Don't use
11087 TYPE_ARG_TYPES directly.
11088 (handle_nonnull_attribute): Likewise.
11089 (sync_resolve_params): Likewise.
11090 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
11091 to check_format_string.
11092 (handle_format_attribute): Likewise.
11093 (check_format_string): Take a function type to examine instead of
11094 a type list. Use a function_arg_iterator to step through argument
11095 types.
11096
c62c040f
RG
110972011-05-04 Richard Guenther <rguenther@suse.de>
11098
11099 * c-common.c (fix_string_type): Use size_int for index type bounds.
11100 (start_fname_decls): Do not pass NULL to build_int_cst.
11101 (c_init_attributes): Likewise.
11102 * c-lex.c (c_lex_with_flags): Likewise.
11103
c12ff9d8
JM
111042011-04-27 Jason Merrill <jason@redhat.com>
11105
11106 * c-common.c (make_tree_vector_from_list): New.
11107 * c-common.h: Declare it.
11108
304dfbe3
RG
111092011-04-26 Richard Guenther <rguenther@suse.de>
11110
11111 PR preprocessor/48248
11112 * c-ppoutput.c (maybe_print_line): Always optimize newlines
11113 for output size with -P.
11114
3c0d13bf
PC
111152011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
11116
11117 * c-common.c (struct c_common_resword): Add __underlying_type.
11118 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
11119
04695783
JM
111202011-04-20 Jim Meyering <meyering@redhat.com>
11121
11122 * c-format.c (init_dollar_format_checking): Remove useless
11123 if-before-free.
11124
0dc33c3c
NP
111252011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
11126
11127 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 11128 (objc_detect_field_duplicates): New.
0dc33c3c 11129 * stub-objc.c: Likewise.
3c0d13bf 11130
c59633d9
NP
111312011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
11132
11133 * stub-objc.c (objc_declare_protocols): Renamed to
11134 objc_declare_protocol.
11135 * c-objc.h: Likewise.
3c0d13bf 11136
32dabdaf
NP
111372011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
11138
11139 * stub-objc.c (objc_declare_class): Updated argument name.
11140
81f653d6
NF
111412011-04-12 Nathan Froyd <froydnj@codesourcery.com>
11142
11143 * c-common.h (c_common_init_ts): Declare.
11144 * c-common.c (c_common_init_ts): Define.
11145
eb345401
NP
111462011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
11147
11148 * c-objc.h (objc_build_message_expr): Updated prototype.
11149 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 11150
a358e188
MJ
111512011-04-12 Martin Jambor <mjambor@suse.cz>
11152
11153 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
11154 of cgraph_node.
11155
e6313a78
RG
111562011-04-11 Richard Guenther <rguenther@suse.de>
11157
11158 * c-common.c (complete_array_type): Build a range type of
11159 proper type.
11160
dcf0c47e
NF
111612011-04-08 Nathan Froyd <froydnj@codesourcery.com>
11162
11163 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
11164 (handle_type_generic_attribute): Likewise.
11165
1ee44b26
JM
111662011-04-07 Jason Merrill <jason@redhat.com>
11167
11168 PR c++/48450
11169 * c-common.c (c_common_truthvalue_conversion): Don't ignore
11170 conversion from C++0x scoped enum.
11171
acce4e77
JM
111722011-04-06 Joseph Myers <joseph@codesourcery.com>
11173
11174 * c-target-def.h: New file.
11175 * c-target.def: New file.
11176 * c-target.h: New file.
11177 * c-common.c (targetcm): Don't define here.
11178 * c-common.h (default_handle_c_option): Declare.
11179 * c-format.c: Include c-target.h instead of target.h.
11180 * c-opts.c: Include c-target.h instead of target.h. Explicitly
11181 include tm.h.
11182 (default_handle_c_option): Move from targhooks.c.
11183
e2eefb55
JJ
111842011-03-29 Jakub Jelinek <jakub@redhat.com>
11185
11186 PR preprocessor/48248
11187 * c-ppoutput.c (print): Add src_file field.
11188 (init_pp_output): Initialize it.
11189 (maybe_print_line): Don't optimize by adding up to 8 newlines
11190 if map->to_file and print.src_file are different file.
11191 (print_line): Update print.src_file.
11192
ba78087b
KT
111932011-03-25 Kai Tietz <ktietz@redhat.com>
11194
11195 * c-ada-spec.c (compare_comment): Use filename_cmp
11196 instead of strcmp for filename.
11197
0edf1bb2
JL
111982011-03-25 Jeff Law <law@redhat.com>
11199
adfac8df 11200 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 11201
c7dc8804
JM
112022011-03-25 Jason Merrill <jason@redhat.com>
11203
11204 * c.opt: Add -std=c++03.
11205
d1d879b1
EB
112062011-03-22 Eric Botcazou <ebotcazou@adacore.com>
11207
11208 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
11209
3f8257db 112102011-03-17 Kai Tietz <ktietz@redhat.com>
62d784f7
KT
11211
11212 PR target/12171
5050afdf
KT
11213 * c-pretty-print.c (pp_c_specifier_qualifier_list):
11214 Display allowed attributes for function pointer types.
11215 (pp_c_attributes_display): New function to display
11216 attributes having affects_type_identity flag set to true.
11217 * c-pretty-print.h (pp_c_attributes_display): New prototype.
11218
62d784f7
KT
11219 * c-common.c (c_common_attribute_table):
11220 Add new element.
11221 (c_common_format_attribute_table): Likewise.
11222
82d37118
JM
112232011-03-18 Jason Merrill <jason@redhat.com>
11224
49a000c3
JM
11225 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
11226 * c-common.h: Don't declare it here.
11227 * c-common.c: Or define it here.
11228 * c-opts.c (c_common_handle_option): Or set it here.
11229
82d37118
JM
11230 PR c++/35315
11231 * c-common.c (handle_transparent_union_attribute): Don't
11232 make a duplicate type in C++.
11233
17bc631c
JM
112342011-03-15 Jason Merrill <jason@redhat.com>
11235
11236 * c-common.c (max_constexpr_depth): New.
11237 * c-common.h: Declare it.
11238 * c-opts.c (c_common_handle_option): Set it.
11239 * c.opt (fconstexpr-depth): New option.
11240
1b9b91a6
JM
112412011-03-11 Jason Merrill <jason@redhat.com>
11242
f231b5ff
JM
11243 * c-common.c (attribute_takes_identifier_p): Add missing const.
11244
1b9b91a6
JM
11245 PR c++/46803
11246 * c-common.c (attribute_takes_identifier_p): Assume that an
11247 unknown attribute takes an identifier.
11248
a19e4d44
NF
112492011-03-07 Nathan Froyd <froydnj@codesourcery.com>
11250
11251 PR c/47786
11252 * c-common.c (c_type_hash): Call list_length instead of iterating
11253 through DECL_CHAIN. Rename 'i' to 'n_elements'.
11254
982d62f6
JJ
112552011-02-19 Jakub Jelinek <jakub@redhat.com>
11256
11257 PR c/47809
11258 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
11259
0a256240
NP
112602011-02-17 Iain Sandoe <iains@gcc.gnu.org>
11261
11262 * c.opt (fobjc-abi-version=) New.
11263 (fobjc-nilcheck): New.
11264
ba9e6dd5
NF
112652011-02-03 Nathan Froyd <froydnj@codesourcery.com>
11266
11267 PR c++/46890
11268 * c-common.h (keyword_is_decl_specifier): Declare.
11269 * c-common.c (keyword_is_decl_specifier): Define.
11270 (keyword_is_function_specifier): New function.
11271
7273813a
JJ
112722011-01-26 Jakub Jelinek <jakub@redhat.com>
11273
11274 PR c/47473
11275 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
11276 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
11277 REAL_TYPE.
11278
908ef79b
AC
112792011-01-26 Arnaud Charlet <charlet@adacore.com>
11280
11281 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
11282
237e9384
JJ
112832011-01-26 Jakub Jelinek <jakub@redhat.com>
11284
11285 PR pch/47430
11286 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
11287 after init_c_lex if pch_file is set.
11288
47ea1edf
DK
112892011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
11290
d4dba752 11291 PR c++/43601
47ea1edf
DK
11292 * c.opt (-fkeep-inline-dllexport): New switch.
11293
2aa9c6ae
RG
112942011-01-12 Richard Guenther <rguenther@suse.de>
11295
11296 PR middle-end/32511
11297 * c-common.c (handle_weak_attribute): Warn instead of error
11298 on declaring an inline function weak.
11299
7bd11157
TT
113002011-01-05 Tom Tromey <tromey@redhat.com>
11301
11302 * c-common.h (lvalue_error): Update.
11303 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
11304 not error.
11305
0e66e494 113062010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 11307
b4f588c4
NP
11308 PR objc/47075
11309 * c-objc.h (objc_finish_message_expr): Added argument to
11310 prototype.
11311
f4da8dce
NF
113122010-12-22 Nathan Froyd <froydnj@codesourcery.com>
11313
11314 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
11315 Use prototype_p.
11316
46270f14
NP
113172010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
11318
11319 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 11320 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 11321
4816c593
NF
113222010-12-10 Nathan Froyd <froydnj@codesourcery.com>
11323
11324 * c-common.h (readonly_error): Declare.
11325 * c-common.c (readonly_error): Define.
11326
7a6daeb0
NF
113272010-12-09 Nathan Froyd <froydnj@codesourcery.com>
11328
11329 * c-common.h (invalid_indirection_error): Declare.
11330 * c-common.c (invalid_indirection_error): Define.
11331
892f6119
RG
113322010-12-03 Richard Guenther <rguenther@suse.de>
11333
11334 PR c/46745
11335 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
11336 (pp_c_unary_expression): Likewise.
11337 (pp_c_expression): Likewise.
11338
6c39e757
NP
113392010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
11340
11341 * c-common.h (objc_finish_function): New.
11342 (objc_non_volatilized_type): Removed.
11343 (objc_type_quals_match): Removed.
11344 * stub-objc.c (objc_finish_function): New.
11345 (objc_non_volatilized_type): Removed.
11346 (objc_type_quals_match): Removed.
9faeb493 11347
7c475d11
JM
113482010-11-30 Joseph Myers <joseph@codesourcery.com>
11349
11350 * c-common.h (parse_optimize_options): Declare.
11351 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
11352 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
11353
71f3e391
JM
113542010-11-29 Joseph Myers <joseph@codesourcery.com>
11355
11356 * c-opts.c (check_deps_environment_vars): Use getenv instead of
11357 GET_ENVIRONMENT.
11358 * c-pch.c (O_BINARY): Don't define here.
11359 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
11360
d5fabb58
JM
113612010-11-25 Joseph Myers <joseph@codesourcery.com>
11362
11363 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
11364 targetm.except_unwind_info.
11365
299404a1
JM
113662010-11-23 Joseph Myers <joseph@codesourcery.com>
11367
11368 * c-opts.c (c_common_handle_option): Pass location to
11369 set_struct_debug_option.
11370
c98cd5bf
JM
113712010-11-23 Joseph Myers <joseph@codesourcery.com>
11372
11373 * c-common.c (visibility_options): Move from ../opts.c.
11374 * c-common.h (struct visibility_flags, visibility_options):
11375 Declare here.
11376 * c-opts.c (finish_options): Rename to c_finish_options.
11377 (c_common_init): Update call to finish_options.
11378
a9546771
NP
113792010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
11380
11381 PR objc/34033
11382 * c-lex.c (lex_string): Check that each string in an Objective-C
11383 string concat sequence starts with either one or zero '@', and
11384 that there are no spurious '@' signs at the end.
11385
24a57808
JM
113862010-11-20 Joseph Myers <joseph@codesourcery.com>
11387
11388 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
11389 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
11390 HANDLE_PRAGMA_VISIBILITY.
11391 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
11392 HANDLE_PRAGMA_VISIBILITY): Don't define.
11393 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
11394
a9aa2c3a
NF
113952010-11-20 Nathan Froyd <froydnj@codesourcery.com>
11396
11397 PR c++/16189
11398 PR c++/36888
11399 PR c++/45331
11400 * c-common.h (keyword_begins_type_specifier): Declare.
11401 (keyword_is_storage_class_specifier): Declare.
11402 (keyword_is_type_qualifier): Declare.
11403 * c-common.c (keyword_begins_type_specifier): New function.
11404 (keyword_is_storage_class_specifier): New function.
11405 (keyword_is_type_qualifier): Declare.
11406
5386338c
JM
114072010-11-19 Joseph Myers <joseph@codesourcery.com>
11408
11409 PR c/46547
11410 * c-common.c (in_late_binary_op): Define.
11411 (c_common_truthvalue_conversion): Check in_late_binary_op before
11412 calling c_save_expr.
11413 * c-common.h (in_late_binary_op): Declare.
11414
69ccdddb
JM
114152010-11-19 Joseph Myers <joseph@codesourcery.com>
11416
11417 * c-opts.c (c_common_handle_option): Update calls to
11418 set_struct_debug_option.
11419
6b192a09
NP
114202010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
11421
11422 * c-common.h (objc_declare_protocols): Added additional argument.
11423 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 11424
fb52b50a
NF
114252010-11-18 Nathan Froyd <froydnj@codesourcery.com>
11426
11427 PR c/33193
11428 * c-common.h (build_real_imag_expr): Declare.
11429 * c-semantics.c (build_real_imag_expr): Define.
11430
b37421c6
JM
114312010-11-17 Joseph Myers <joseph@codesourcery.com>
11432
11433 * c-opts.c (c_common_parse_file): Take no arguments.
11434 * c-common.h (c_common_parse_file): Update prototype.
11435
07078664
JJ
114362010-11-16 Jakub Jelinek <jakub@redhat.com>
11437
11438 PR c++/46401
11439 * c-common.c (warning_candidate_p): Don't track non-const calls
11440 or STRING_CSTs.
11441
c6a13190
ILT
114422010-11-15 Ian Lance Taylor <iant@google.com>
11443
11444 * c-lex.c (init_c_lex): Set macro debug callbacks if
11445 flag_dump_go_spec is set.
11446
925e8657
NP
114472010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
11448
11449 * c-common.h (objc_build_incr_expr_for_property_ref): New.
11450 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
11451
bb0a9581
NF
114522010-11-15 Nathan Froyd <froydnj@codesourcery.com>
11453
11454 PR preprocessor/45038
11455 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
11456 dialects.
11457
c5fa0890
JM
114582010-11-12 Joseph Myers <joseph@codesourcery.com>
11459
11460 * c-common.h (c_family_lang_mask): Declare.
11461 * c-opts.c (c_family_lang_mask): Make extern.
11462 * c-pragma.c (handle_pragma_diagnostic): Use
11463 control_warning_option.
11464
a4d8c676
JM
114652010-11-12 Joseph Myers <joseph@codesourcery.com>
11466
11467 * c-common.c (parse_optimize_options): Update call to
11468 decode_options.
11469 * c-common.h (c_common_handle_option): Update prototype.
11470 * c-opts.c (c_common_handle_option): Take location_t parameter and
11471 pass it to other functions.
11472
f954bd2c
JM
114732010-11-11 Joseph Myers <joseph@codesourcery.com>
11474
11475 * c-opts.c (warning_as_error_callback): Remove.
11476 (c_common_initialize_diagnostics): Don't call
11477 register_warning_as_error_callback.
11478 (c_common_handle_option): Handle -Werror=normalized= here.
11479
d8a07487
JM
114802010-11-10 Joseph Myers <joseph@codesourcery.com>
11481
11482 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
11483 in diagnostic.
11484 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
11485 letter.
11486 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
11487 Remove trailing '.' from diagnostics.
11488 * c.opt (Wwrite-strings_: Avoid '`' in help text.
11489
d5478783
JM
114902010-11-10 Joseph Myers <joseph@codesourcery.com>
11491
11492 * c-common.c (parse_optimize_options): Pass global_dc to
11493 decode_options.
11494 * c-opts.c (c_common_handle_option): Pass &global_options to
11495 set_Wstrict_aliasing.
11496 * c.opt (v): Don't mark Common or document here.
11497
91ebb981
IS
114982010-11-06 Iain Sandoe <iains@gcc.gnu.org>
11499
11500 PR target/44981
11501 * c-format.c (format_type): New type gcc_objc_string_format_type.
11502 (valid_stringptr_type_p): New.
11503 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 11504 (check_format_string): Pass expected type, use
91ebb981
IS
11505 valid_stringptr_type_p (), check that the format string types are
11506 consistent with the format specification.
11507 (decode_format_attr): Warn if NSString is used outside objective-c.
11508 (format_types_orig): Add NSString.
11509 (format_name): New.
11510 (format_flags): New.
11511 (check_format_arg): Handle format strings requiring an external parser.
11512 first_target_format_type: New variable.
11513 (handle_format_attribute): Set up first_target_format_type, pass the
11514 expected format arg string type to check_format_string().
ab20d992 11515 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
91ebb981
IS
11516 * stub-objc.c (objc_string_ref_type_p): New.
11517 (objc_check_format_arg): New.
11518
bede2adc
NP
115192010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
11520
9faeb493 11521 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
11522 * c-common.h (objc_build_class_component_ref): New.
11523 * stub-objc.c (objc_build_class_component_ref): New.
11524
9a179d01
NP
115252010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
11526
11527 * c.opt (Wproperty-assign-default): New option.
11528
22d8d616
NP
115292010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
11530
11531 Implemented -fobjc-std=objc1 flag.
11532 * c.opt (fobjc-std=objc1): New option.
11533
2debdb4f
NP
115342010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
11535
11536 Implemented format and noreturn attributes for Objective-C methods.
11537 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
11538 attribute for Objective-C methods.
11539
ec52b111
JM
115402010-10-31 Jason Merrill <jason@redhat.com>
11541
11542 * c-common.c (conversion_warning, warn_for_collisions_1): Use
11543 EXPR_LOC_OR_HERE.
11544
46a88c12
NP
115452010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
11546
11547 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
11548 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
11549 (objc_add_property_declaration): Removed arguments for copies and
11550 ivar.
11551 (objc_build_getter_call): Renamed to
11552 objc_maybe_build_component_ref.
11553 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
11554 (objc_is_property_ref): New.
11555 * c-common.c (c_common_reswords): Removed copies and ivar.
11556 * stub-objc.c (objc_add_property_declaration): Removed arguments
11557 for copies and ivar.
11558 (objc_build_getter_call): Renamed to
11559 objc_maybe_build_component_ref.
11560 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
11561 (objc_is_property_ref): New.
9faeb493 11562
1e4bf85b
AC
115632010-10-29 Arnaud Charlet <charlet@adacore.com>
11564 Matthew Gingell <gingell@adacore.com>
11565
11566 * c-ada-spec.c (separate_class_package): New function.
11567 (pp_ada_tree_identifier): Prefix references to C++ classes with the
11568 name of their enclosing package.
11569 (print_ada_declaration): Use separate_class_package.
11570
81f0bab2
JM
115712010-10-27 Jason Merrill <jason@redhat.com>
11572
2b08f2c5
JM
11573 * c-common.c (c_common_reswords): Add __is_literal_type.
11574 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
11575
81f0bab2
JM
11576 * c-common.c (check_case_value): Remove special C++ code.
11577
200290f2
NP
115782010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
11579
11580 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
11581 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
11582 and RID_LAST_PATTR.
11583 (objc_add_property_declaration): Added additional arguments.
11584 (objc_property_attribute_kind): Removed.
11585 (objc_set_property_attr): Removed.
11586 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
11587 copy and nonatomic.
11588 * stub-objc.c (objc_add_property_declaration): Added additional
11589 arguments.
11590 (objc_set_property_attr): Removed.
9faeb493 11591
f614132b
NP
115922010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
11593
11594 * c-common.h (objc_add_property_variable): Renamed to
11595 objc_add_property_declaration. Added location argument.
11596 * stub-objc.c (objc_add_property_variable): Same change.
b1726d6c 11597
b8a18805
NP
115982010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
11599
11600 * c-common.h (objc_maybe_printable_name): New.
11601 * stub-objc.c (objc_maybe_printable_name): New.
11602
3f8257db
JJ
116032010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
11604 Andrew Pinski <pinskia@gmail.com>
30cd1c5d
AS
11605
11606 * c-common.h (c_common_mark_addressable_vec): Declare.
11607 * c-common.c (c_common_mark_addressable_vec): New function.
11608
249a82c4
NP
116092010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
11610
11611 * c-common.h (objc_set_method_type): Removed.
11612 (objc_add_method_declaration): Added boolean argument.
11613 (objc_start_method_definition): Same change.
11614 (objc_build_method_signature): Same change.
11615 * stub-objc.c (objc_set_method_type): Removed.
11616 (objc_add_method_declaration): Added boolean argument.
11617 (objc_start_method_definition): Same change.
11618 (objc_build_method_signature): Same change.
11619
977e30bc
NP
116202010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
11621
11622 * c-common.h (finish_file): Removed.
11623 (objc_write_global_declarations): New.
11624 * c-opts.c (c_common_parse_file): Do not call finish_file.
11625 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 11626
da57d1b9
NP
116272010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
11628
11629 Implemented parsing @synthesize and @dynamic for
11630 Objective-C/Objective-C++.
11631 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
11632 (objc_add_synthesize_declaration): New.
11633 (objc_add_dynamic_declaration): New.
11634 * c-common.c (c_common_reswords): Add synthesize and dynamic.
11635 * stub-objc.c (objc_add_synthesize_declaration): New.
11636 (objc_add_dynamic_declaration): New.
9faeb493 11637
0069111f
MM
116382010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
11639
11640 PR target/46041
11641 * c-cppbuiltin.c (mode_has_fma): Move function here from
11642 builtins.c. Don't use the fma optab, instead just use the
11643 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
11644 using -save-temps.
11645
e426b47b
NP
116462010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
11647
11648 Merge from 'apple/trunk' branch on FSF servers.
0069111f 11649
3f8257db 11650 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
e426b47b 11651
9faeb493 11652 Radar 4330422
e426b47b
NP
11653 * c-common.h (objc_non_volatilized_type): New declaration
11654 * stub-objc.c (objc_non_volatilized_type): New stub.
11655
90fbfdc3
NP
116562010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
11657
e426b47b 11658 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3 11659
ab20d992 11660 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
90fbfdc3 11661
9faeb493 11662 Radar 4133425
90fbfdc3 11663 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 11664 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 11665
c37d8c30
IS
116662010-10-17 Iain Sandoe <iains@gcc.gnu.org>
11667
11668 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
11669 * c-common.h (enum rid): Add RID_AT_PACKAGE.
11670 (objc_ivar_visibility_kind): New enum.
11671 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 11672 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
11673 visibility enum.
11674
1b1562a5
MM
116752010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
11676
11677 * c-cppbuiltin.c (builtin_define_float_constants): Emit
11678 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
11679 has the appropriate fma builtins.
11680 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
11681
668ea4b1
IS
116822010-10-14 Iain Sandoe <iains@gcc.gnu.org>
11683
1b1562a5 11684 merge from FSF apple 'trunk' branch.
3f8257db 11685 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 11686
668ea4b1
IS
11687 Radars 4436866, 4505126, 4506903, 4517826
11688 * c-common.c (c_common_resword): Define @property and its attributes.
11689 * c-common.h: Define property attribute enum entries.
11690 (OBJC_IS_PATTR_KEYWORD): New.
11691 (objc_property_attribute_kind): New enum.
11692 Declare objc_set_property_attr (), objc_add_property_variable (),
11693 objc_build_getter_call () and objc_build_setter_call ().
11694 * stub-objc.c (objc_set_property_attr): New stub.
11695 (objc_add_property_variable): Likewise.
11696 (objc_build_getter_call): Likewise.
11697 (objc_build_setter_call) Likewise.
1b1562a5 11698
a1178b30
IS
116992010-10-13 Iain Sandoe <iains@gcc.gnu.org>
11700
1b1562a5 11701 merge from FSF apple 'trunk' branch.
ab20d992 11702 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
a1178b30
IS
11703
11704 Radar 3803157 (method attributes)
11705 * c-common.c (handle_deprecated_attribute): Recognize
11706 objc methods as valid declarations.
11707 * c-common.h: Declare objc_method_decl ().
1b1562a5 11708 * stub-objc.c (objc_method_decl): New stub.
a1178b30 11709
a75bfaa6
JM
117102010-10-08 Joseph Myers <joseph@codesourcery.com>
11711
11712 * c-common.c (parse_optimize_options): Call
11713 decode_cmdline_options_to_array_default_mask before
11714 decode_options. Update arguments to decode_options.
11715 * c-common.h (c_common_init_options_struct): Declare.
11716 * c-opts.c (c_common_init_options_struct): New. Split out from
11717 c_common_init_options.
11718
f05b9d93
NP
117192010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
11720
11721 Implemented fast enumeration for Objective-C.
11722 * c-common.h (objc_finish_foreach_loop): New.
11723 * stub-objc.c (objc_finish_foreach_loop): New.
11724
1ebe4b4f
JM
117252010-10-05 Joseph Myers <joseph@codesourcery.com>
11726
11727 * c-common.h (struct diagnostic_context): Don't declare here.
11728 (c_common_initialize_diagnostics): Declare using
11729 diagnostic_context typedef.
11730 * c-opts.c (c_common_handle_option): Pass global_dc to
11731 handle_generated_option.
11732
d4d24ba4
JM
117332010-10-04 Joseph Myers <joseph@codesourcery.com>
11734
11735 * c-opts.c (c_common_handle_option): Pass &global_options_set to
11736 handle_generated_option.
11737
478a1c5b
ILT
117382010-10-03 Ian Lance Taylor <iant@google.com>
11739
11740 * c.opt (-fplan9-extensions): New option.
11741
82a1c2fe
FXC
117422010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11743
11744 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
11745 Remove.
11746 (c_cpp_builtins): Call functions from cppbuiltin.c instead
11747 of duplicating code.
11748
92902b1b
IS
117492010-09-30 Iain Sandoe <iains@gcc.gnu.org>
11750
11751 * c-common.c: Add two new entries for @optional
11752 and @required keywords.
11753
11754 merge from FSF 'apple/trunk' branch.
3f8257db 11755 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
92902b1b
IS
11756
11757 Radar 4386773
11758 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
11759 objective-c keywords.
11760 (objc_set_method_opt): New declaration.
11761 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 11762
46625112
JM
117632010-09-30 Joseph Myers <joseph@codesourcery.com>
11764
11765 * c-common.c (handle_optimize_attribute): Pass &global_options to
11766 cl_optimization_save and cl_optimization_restore.
11767 * c-opts.c (c_common_handle_option): Pass &global_options to
11768 handle_generated_option.
11769 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
11770 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
11771 &global_options to cl_optimization_restore.
11772
49b91f05
NP
117732010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
11774
11775 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
11776 Objective-C/Objective-C++ keywords.
11777
13ed556f 117782010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 11779
9faeb493
UB
11780 Merge from 'apple/trunk' branch on FSF servers.
11781
3f8257db 11782 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
a6341d57
NP
11783
11784 Radar 4281748
11785 * c-common.h (objc_check_global_decl): New declaration.
11786 * stub-objc.c (objc_check_global_decl): New stub.
11787
f0036cca
JM
117882010-09-29 Joseph Myers <joseph@codesourcery.com>
11789
11790 * c.opt: Don't use VarExists.
11791
e3339d0f
JM
117922010-09-29 Joseph Myers <joseph@codesourcery.com>
11793
11794 * c-common.c (c_cpp_error): Update names of diagnostic_context
11795 members.
11796 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
11797 cl_optimization members.
11798 * c-opts.c (warning_as_error_callback, c_common_handle_option,
11799 sanitize_cpp_opts, finish_options): Update names of cpp_options
11800 members.
11801
1973201f
NP
118022010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
11803
11804 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
11805 (objc_is_reserved_word): Removed.
11806 * c-common.c: Updated comments.
11807 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
11808 objc_is_reserved_word.
11809 * stub-objc.c (objc_is_reserved_word): Removed.
11810
f7e71da5
IS
118112010-09-28 Iain Sandoe <iains@gcc.gnu.org>
11812
9faeb493 11813 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
11814 include attributes.
11815 (objc_start_method_definition): Likewise.
11816 (objc_build_keyword_decl): Likewise.
11817 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
11818 (objc_start_method_definition): Likewise.
11819 (objc_build_keyword_decl): Likewise.
11820
c165dca7
IS
118212010-09-28 Iain Sandoe <iains@gcc.gnu.org>
11822
11823 * c-common.h (objc_start_class_interface): Adjust prototype.
11824 (objc_start_category_interface): Likewise.
11825 (objc_start_protocol): Likewise.
11826 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
11827 (objc_start_class_interface): Likewise.
11828 (objc_start_category_interface): Likewise.
11829
7458026b
ILT
118302010-09-27 Ian Lance Taylor <iant@google.com>
11831
11832 * c-common.c (c_common_attribute_table): Add no_split_stack.
11833 (handle_no_split_stack_attribute): New static function.
11834
b581b85b
NP
118352010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
11836
9faeb493 11837 Merge from 'apple/trunk' branch on FSF servers.
b581b85b 11838
3f8257db 11839 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
b581b85b 11840
9faeb493 11841 Radar 4229905
b581b85b
NP
11842 * c-common.h (objc_have_common_type): New declaration.
11843 * stub-objc.c (objc_have_common_type): New stub.
11844
11845 2005-06-22 Ziemowit Laski <zlaski@apple.com>
11846
11847 Radar 4154928
11848 * c-common.h (objc_common_type): New prototype.
9faeb493 11849 * stub-objc.c (objc_common_type): New stub.
b581b85b 11850
46a4da10
JH
118512010-09-24 Jan Hubicka <jh@suse.cz>
11852
11853 * c-common.c (handle_leaf_attribute): New function.
11854 (struct attribute_spec c_common_att): Add leaf.
11855
e200444e
JM
118562010-09-22 Joseph Myers <joseph@codesourcery.com>
11857
11858 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
11859 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
11860 -dump, -dump=, -imacros, -imacros=, -include, -include=,
11861 -include-barrier, -include-directory, -include-directory=,
11862 -include-directory-after, -include-directory-after=,
11863 -include-prefix, -include-prefix=, -include-with-prefix,
11864 -include-with-prefix=, -include-with-prefix-after,
11865 -include-with-prefix-after=, -include-with-prefix-before,
11866 -include-with-prefix-before=, -no-integrated-cpp,
11867 -no-line-commands, -no-standard-includes, -no-warnings, -output,
11868 -output=, -pedantic, -pedantic-errors, -preprocess,
11869 -print-missing-file-dependencies, -trace-includes, -traditional,
11870 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
11871 -user-dependencies, -verbose, -write-dependencies,
11872 -write-user-dependencies, no-integrated-cpp, traditional): New.
11873
29a80ea6
NP
118742010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
11875
11876 PR objc/23710
ac1fc2fc
NP
11877 * c-common.h (objc_start_method_definition): Return bool instead
11878 of void.
11879 * stub-objc.c (objc_start_method_definition): Return bool instead
11880 of void.
11881
118822010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
11883
11884 PR objc/25965
11885 * c-common.h (objc_get_interface_ivars): New declaration.
11886 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 11887
de621752
ILT
118882010-09-15 Ian Lance Taylor <iant@google.com>
11889
11890 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 11891 messages. Remove period at end of warning message.
de621752 11892
ba885ec5
NS
118932010-09-09 Nathan Sidwell <nathan@codesourcery.com>
11894
11895 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
11896 (handle_alias_attribute): ... here.
11897 (handle_ifunc_attribute): New.
11898
c5ee1358
MM
118992010-09-06 Mark Mitchell <mark@codesourcery.com>
11900
11901 * c-common.h (do_warn_double_promotion): Declare.
11902 * c-common.c (do_warn_double_promotion): Define.
11903
0a0b3574
MM
119042010-09-05 Mark Mitchell <mark@codesourcery.com>
11905
11906 * c.opt (Wdouble-promotion): New.
11907
d1779886
JM
119082010-09-02 Joseph Myers <joseph@codesourcery.com>
11909
11910 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
11911 fvtable-thunks, fxref): Mark no longer supported in help text.
11912
2d2bd949
JM
119132010-09-02 Joseph Myers <joseph@codesourcery.com>
11914
11915 * c.opt (Wimport, fall-virtual, falt-external-templates,
11916 fdefault-inline, fenum-int-equiv, fexternal-templates,
11917 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
11918 fname-mangling-version-, fnew-abi, fnonnull-objects,
11919 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
11920 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
11921 applicable.
11922 (fhandle-exceptions): Mark with Alias and Warn.
11923 * c-opts.c (c_common_handle_option): Don't handle options marked
11924 as ignored.
11925
5de8299c
JM
119262010-09-02 Joseph Myers <joseph@codesourcery.com>
11927
11928 * c.opt (Wcomments, Werror-implicit-function-declaration,
11929 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
11930 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
11931 aliases.
11932 * c-common.c (option_codes): Use OPT_Wcomment instead of
11933 OPT_Wcomments.
11934 * c-opts.c (warning_as_error_callback, c_common_handle_option):
11935 Don't handle options marked as aliases.
11936
0ceb0201
RG
119372010-08-25 Richard Guenther <rguenther@suse.de>
11938
11939 * c-common.c (c_common_get_alias_set): Remove special
11940 handling for pointers.
11941
ac47786e
NF
119422010-08-20 Nathan Froyd <froydnj@codesourcery.com>
11943
11944 * c-common.c: Use FOR_EACH_VEC_ELT.
11945 * c-gimplify.c: Likewise.
11946 * c-pragma.c: Likewise.
11947
c878765b
JM
119482010-08-16 Joseph Myers <joseph@codesourcery.com>
11949
11950 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
11951 RejectDriver.
11952 (MMDX): Change back to MMD. Mark NoDriverArg instead of
11953 RejectDriver.
11954 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
11955 instead of OPT_MDX and OPT_MMDX.
11956
603349bf
JM
119572010-08-16 Joseph Myers <joseph@codesourcery.com>
11958
11959 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
11960
644fa7ac
JM
119612010-08-12 Joseph Myers <joseph@codesourcery.com>
11962
11963 * c.opt (MD, MMD): Change to MDX and MMDX.
11964 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
11965
481e1176
JM
119662010-08-11 Joseph Myers <joseph@codesourcery.com>
11967
11968 * c-opts.c (c_common_handle_option): Call handle_generated_option
11969 instead of handle_option.
11970
ac8dc9f7
NF
119712010-08-08 Nathan Froyd <froydnj@codesourcery.com>
11972
11973 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
11974 (maybe_apply_renaming_pragma): Delete unneeded declarations.
11975
4f8c876d
NF
119762010-08-08 Nathan Froyd <froydnj@codesourcery.com>
11977
11978 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
11979 (pending_redefine_extname): Change type to a VEC.
11980 (add_to_renaming_pragma_list): Update for new type of
11981 pending_redefine_extname.
ac8dc9f7 11982 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 11983
3b0c690e
AC
119842010-08-04 Arnaud Charlet <charlet@adacore.com>
11985
11986 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
11987 visited.
11988 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
11989 decide whether a type has already been declared/seen.
11990 Do not go to the original type.
11991 (dump_nested_types): New parameter forward.
11992 Generate forward declaration if needed and mark type as visited.
11993 (print_ada_declaration): Call dump_nested_types if not already done.
11994 Mark types as visited.
11995
1890bccc
JM
119962010-08-03 Joseph Myers <joseph@codesourcery.com>
11997
11998 * c.opt (-print-pch-checksum): Remove option.
11999 * c-opts.c (c_common_handle_option): Don't handle
12000 OPT_print_pch_checksum.
12001
5f20c657
JM
120022010-07-27 Joseph Myers <joseph@codesourcery.com>
12003
12004 * c-common.h (c_common_handle_option): Update prototype and return
12005 value type.
12006 * c-opts.c (c_common_handle_option): Update prototype and return
12007 value type. Update calls to handle_option and
12008 enable_warning_as_error.
12009
f551f80c
JJ
120102010-07-27 Jakub Jelinek <jakub@redhat.com>
12011
12012 PR c/45079
12013 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
12014
61ff2bdc
JM
120152010-07-27 Joseph Myers <joseph@codesourcery.com>
12016
12017 * c-common.h (c_common_missing_argument): Remove.
12018 * c-opts.c (c_common_missing_argument): Remove.
12019 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
12020 idirafter, imacros, include, isysroot, isystem, iquote): Add
12021 MissingArgError.
12022 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
12023
7a9bf9a4
JM
120242010-07-27 Joseph Myers <joseph@codesourcery.com>
12025
12026 * c-common.h (c_common_option_lang_mask,
12027 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
12028 New.
12029 (c_common_init_options): Update prototype.
12030 * c-opts.c (c_common_option_lang_mask): New.
12031 (c_common_initialize_diagnostics): Split out of
12032 c_common_init_options.
12033 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
12034 New.
12035 (c_common_init_options): Update prototype. Use decoded options in
12036 search for -lang-asm.
12037
910ad8de
NF
120382010-07-15 Nathan Froyd <froydnj@codesourcery.com>
12039
12040 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
12041 * c-format.c: Likewise.
12042
718f9c0f
MLI
120432010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
12044
12045 * c-common.h: Include diagnostic-core.h. Error if already
12046 included.
12047 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
12048
4d451982
MLI
120492010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
12050
adfac8df 12051 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
12052 Do not include expr.h
12053 (vector_mode_valid_p): Move here.
12054
119fe915
SB
120552010-06-21 DJ Delorie <dj@redhat.com>
12056
12057 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
12058 allow these pragmas anywhere.
12059
120602010-06-14 Jakub Jelinek <jakub@redhat.com>
12061
12062 PR bootstrap/44509
12063 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
12064 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
12065 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
12066 ggc_strdup instead of xstrdup.
12067
120682010-06-10 Jakub Jelinek <jakub@redhat.com>
12069
12070 * c-cppbuiltin.c: Include cpp-id-data.h.
12071 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
12072 (lazy_hex_fp_value): New function.
12073 (builtin_define_with_hex_fp_value): Provide definitions lazily.
12074
6662d794
MLI
120752010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
12076
12077 * c-gimplify.c: Do not include tree-flow.h
12078
38f8b050
JR
120792010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
12080
12081 PR other/44034
12082 * c-common.c: Rename targetm member:
12083 targetm.enum_va_list -> targetm.enum_va_list_p
12084
9589f23e
AS
120852010-06-28 Anatoly Sokolov <aesok@post.ru>
12086
12087 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
12088
3b06d379
SB
120892010-06-28 Steven Bosscher <steven@gcc.gnu.org>
12090
12091 * c-cppbuiltin.c: Do not include except.h.
12092
d166d4c3
AK
120932010-06-24 Andi Kleen <ak@linux.intel.com>
12094
9faeb493
UB
12095 * c-common.c (warn_for_omitted_condop): New.
12096 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 12097
70cb8be6
JM
120982010-06-21 Joseph Myers <joseph@codesourcery.com>
12099
12100 * c.opt (lang-objc): Remove.
12101 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
12102
a4c97feb
JR
121032010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
12104
12105 * c-opts.c: Include "tm_p.h".
12106
6e2f1956
JM
121072010-06-20 Joseph Myers <joseph@codesourcery.com>
12108
12109 * c-common.c (parse_optimize_options): Update call to
12110 decode_options.
12111
bc87224e
NF
121122010-06-18 Nathan Froyd <froydnj@codesourcery.com>
12113
12114 * c-common.c (record_types_used_by_current_var_decl): Adjust for
12115 new type of types_used_by_cur_var_decl.
12116
b49cf425
JR
121172010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
12118
12119 PR bootstrap/44512
12120 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
12121 for C++ standard compliance.
12122
59f9c2ed
JM
121232010-06-16 Jason Merrill <jason@redhat.com>
12124
12125 * c.opt: Add -Wnoexcept.
12126
33766b66
RG
121272010-06-16 Richard Guenther <rguenther@suse.de>
12128
12129 PR c/44555
12130 * c-common.c (c_common_truthvalue_conversion): Remove
12131 premature and wrong optimization concering ADDR_EXPRs.
12132
eff7e30c
AC
121332010-06-15 Arnaud Charlet <charlet@adacore.com>
12134
12135 * c-ada-spec.c (dump_sloc): Remove column info.
12136 (is_simple_enum): New function.
12137 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
12138 enum types when relevant.
12139
6312e84d
MLI
121402010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
12141
9faeb493 12142 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
12143 location.
12144
1cb42611
JM
121452010-06-10 Joseph Myers <joseph@codesourcery.com>
12146
12147 * c-opts.c (c_common_handle_option): Don't handle
12148 OPT_fshow_column.
12149
a9429e29
LB
121502010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
12151
12152 * c-pragma.c (push_alignment): Use typed GC allocation.
12153 (handle_pragma_push_options): Likewise.
12154
12155 * c-common.c (parse_optimize_options): Likewise.
12156
12157 * c-common.h (struct sorted_fields_type): Add variable_size GTY
12158 option.
12159
5498f011
JM
121602010-06-07 Joseph Myers <joseph@codesourcery.com>
12161
12162 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
12163 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
12164 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
12165 flag_signed_bitfields, warn_strict_null_sentinel,
12166 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
12167 flag_gen_declaration, flag_no_gnu_keywords,
12168 flag_implement_inlines, flag_implicit_templates,
12169 flag_implicit_inline_templates, flag_optional_diags,
12170 flag_elide_constructors, flag_default_inline, flag_rtti,
12171 flag_conserve_space, flag_access_control, flag_check_new,
12172 flag_new_for_scope, flag_weak, flag_working_directory,
12173 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
12174 flag_enforce_eh_specs, flag_threadsafe_statics,
12175 flag_pretty_templates): Remove.
12176 * c-common.h (flag_preprocess_only, flag_nil_receivers,
12177 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
12178 flag_replace_objc_classes, flag_undef, flag_no_builtin,
12179 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
12180 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
12181 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
12182 flag_no_gnu_keywords, flag_implement_inlines,
12183 flag_implicit_templates, flag_implicit_inline_templates,
12184 flag_optional_diags, flag_elide_constructors, flag_default_inline,
12185 flag_rtti, flag_conserve_space, flag_access_control,
12186 flag_check_new, flag_new_for_scope, flag_weak,
12187 flag_working_directory, flag_use_cxa_atexit,
12188 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
12189 flag_threadsafe_statics, flag_pretty_templates,
12190 warn_strict_null_sentinel): Remove.
12191 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
12192 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
12193 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
12194 fimplicit-inline-templates, fimplicit-templates,
12195 flax-vector-conversions, fms-extensions, fnil-receivers,
12196 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
12197 frtti, fshort-double, fshort-enums, fshort-wchar,
12198 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
12199 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
12200 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
12201 gen-decls, undef): Use Var.
12202 (fdefault-inline, foptional-diags): Document as doing nothing.
12203 * c-opts.c (c_common_handle_option): Remove cases for options now
12204 using Var. Mark ignored options as such.
12205
39dabefd
SB
122062010-06-05 Steven Bosscher <steven@gcc.gnu.org>
12207
9faeb493 12208 * c-common.c: Moved to here from parent directory.
39dabefd
SB
12209 * c-common.def: Likewise.
12210 * c-common.h: Likewise.
12211 * c-cppbuiltin.c: Likewise.
12212 * c-dump.c: Likewise.
12213 * c-format.c: Likewise.
12214 * c-format.h : Likewise.
12215 * c-gimplify.c: Likewise.
12216 * c-lex.c: Likewise.
12217 * c-omp.c: Likewise.
12218 * c.opt: Likewise.
12219 * c-opts.c: Likewise.
12220 * c-pch.c: Likewise.
12221 * c-ppoutput.c: Likewise.
12222 * c-pragma.c: Likewise.
12223 * c-pragma.h: Likewise.
12224 * c-pretty-print.c: Likewise.
12225 * c-pretty-print.h: Likewise.
12226 * c-semantics.c: Likewise.
12227 * stub-objc.c: Likewise.
12228
12229 * c-common.c: Include gt-c-family-c-common.h.
12230 * c-pragma.c: Include gt-c-family-c-pragma.h.
12231\f
c48514be 12232Copyright (C) 2010-2021 Free Software Foundation, Inc.
39dabefd
SB
12233
12234Copying and distribution of this file, with or without modification,
12235are permitted in any medium without royalty provided the copyright
12236notice and this notice are preserved.
This page took 4.398535 seconds and 5 git commands to generate.