]> gcc.gnu.org Git - gcc.git/blame - gcc/c-family/ChangeLog
Provide diagnostic hints for missing C++ cinttypes string constants.
[gcc.git] / gcc / c-family / ChangeLog
CommitLineData
af114c38
MW
12020-05-22 Mark Wielaard <mark@klomp.org>
2
3 * known-headers.cc (get_stdlib_header_for_name): Add a new
4 stdlib_hint array for stdbool and stdint.
5
45c50b6a
MW
62020-05-22 Mark Wielaard <mark@klomp.org>
7
8 * known-headers.cc (get_stdlib_header_for_name): Return
9 "<stdbool.h>" for "bool", "true" or "false" when STDLIB_C and
10 flag_isoc99.
11
c22027a0
NS
122020-05-20 Nathan Sidwell <nathan@acm.org>
13
38a4db21
NS
14 * c-common.c (try_to_locate_new_include_insertion_point): Revert change.
15
c22027a0
NS
16 * c-common.c (try_to_locate_new_include_insertion_point): Use
17 strcmp to compare filenames.
18 * c-lex.c (init_c_lex): Move declaration to initialization.
19 * c-opts.c (handle_deferred_opts): Move cpp_get_deps call into
20 deferred count loop.
21
29f0e90d
JM
222020-05-15 Jason Merrill <jason@redhat.com>
23
24 * c-opts.c (set_std_cxx20): Set flag_coroutines.
25
b04445d4
JM
262020-05-13 Jason Merrill <jason@redhat.com>
27
28 * c.opt (std=c++20): Make c++2a the alias.
29 (std=gnu++20): Likewise.
30 * c-common.h (cxx_dialect): Change cxx2a to cxx20.
31 * c-opts.c: Adjust.
32 * c-cppbuiltin.c: Adjust.
33 * c-ubsan.c: Adjust.
34 * c-warn.c: Adjust.
35
11dd3be5
EB
362020-05-12 Eric Botcazou <ebotcazou@adacore.com>
37
38 * c-ada-spec.c (dump_ads): Output pragma Warnings ("U"); on entry.
39
b224c376
NS
402020-05-08 Nathan Sidwell <nathan@acm.org>
41
42 Reimplement directives only processing.
43 * c-ppoutput.c (token_streamer): Ne.
44 (directives_only_cb): New. Swallow ...
45 (print_lines_directives_only): ... this.
46 (scan_translation_unit_directives_only): Reimplment using the
47 published interface.
48
f1d94677
MP
492020-05-07 Marek Polacek <polacek@redhat.com>
50
51 * c-format.c (badwords): Add "nonstatic".
52
9b95bb52
JJ
53202-05-07 Jakub Jelinek <jakub@redhat.com>
54
55 PR c/94968
56 * c-common.c (speculation_safe_value_resolve_params): Return false if
57 error_operand_p (val2).
58 (resolve_overloaded_builtin) <case BUILT_IN_SPECULATION_SAFE_VALUE_N>:
59 Remove extraneous semicolon.
60
530b4409 612020-05-06 qing zhao <qing.zhao@oracle.com>
62
63 PR c/94230
64 * c-indentation.c (get_visual_column): Add a hint to use the new
65 -flarge-source-files option.
66
b776bdca
SSF
672020-05-05 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
68
69 * c-attribs.c (handle_vector_size_attribute): Add attribute
70 nonnull for argument args in order to silence warning of
71 uninitialized variable usage. Since this is local to the
72 compilation unit and thus cannot be checked at call sides by the
73 compiler, added an assert statement in order to verify this.
74
6607bdd9
L
752020-05-01 H.J. Lu <hongjiu.lu@intel.com>
76
77 PR target/93492
78 * c-attribs.c (handle_patchable_function_entry_attribute): Limit
79 value to USHRT_MAX (65535).
80
691eeb65
JJ
812020-04-29 Jakub Jelinek <jakub@redhat.com>
82
83 * c-format.c (PP_FORMAT_CHAR_TABLE): Add %{ and %}.
84
26d76be7
JJ
852020-04-27 Jakub Jelinek <jakub@redhat.com>
86
87 PR c/94755
88 * c-common.c (resolve_overloaded_builtin): Return error_mark_node for
89 fncode == BUILT_IN_NONE before initialization of first_param.
90
7291b2ed
MP
912020-04-23 Marek Polacek <polacek@redhat.com>
92
93 PR c++/94733
94 * c-attribs.c (find_tm_attribute): Use get_attribute_name instead of
95 TREE_PURPOSE.
96
58a29af8
PP
972020-04-14 Patrick Palka <ppalka@redhat.com>
98
99 PR c++/85278
100 * c-pretty-print.c (pp_c_pointer) <case REFERENCE_TYPE>: Print a double
101 ampersand if it's an rvalue reference type.
102
09f04139
MS
1032020-04-13 Martin Sebor <msebor@redhat.com>
104
105 PR c/92326
106 * c-pretty-print.c (c_pretty_printer::direct_abstract_declarator): Avoid
107 printing array bound for flexible array members.
108
ee26baf4
IS
1092020-04-13 Iain Sandoe <iain@sandoe.co.uk>
110
111 * c-cppbuiltin.c (c_cpp_builtins): Update coroutines builtin
112 define, per n4861.
113
75efe9cb
RB
1142020-04-02 Richard Biener <rguenther@suse.de>
115
116 PR c/94392
117 * c-opts.c (c_common_post_options): Enable -ffinite-loops
118 for -O2 and C++11 or newer.
119
75defde9
PP
1202020-03-28 Patrick Palka <ppalka@redhat.com>
121
122 * c.opt: Add -fconcepts-diagnostics-depth.
123
52f24a9e
MS
1242020-03-27 Martin Sebor <msebor@redhat.com>
125
126 PR c++/94346
127 * c-attribs.c (handle_copy_attribute): Avoid passing expressions
128 to decl_attributes. Make handling of different kinds of entities
129 more robust.
130
ccacf77b
MS
1312020-03-27 Martin Sebor <msebor@redhat.com>
132
133 PR c++/94098
134 * c-attribs.c (handle_access_attribute): Avoid setting TYPE_ATTRIBUTES
135 here.
136
ca6c7225
JJ
1372020-03-23 Jakub Jelinek <jakub@redhat.com>
138
139 PR c++/91993
140 * c-warn.c (warnings_for_convert_and_check): For expr and/or
141 result being COMPOUND_EXPRs, skip to ultimate rhs.
142
1aa22b19
RS
1432020-03-20 Richard Sandiford <richard.sandiford@arm.com>
144
145 PR middle-end/94072
146 * c-common.c (c_common_type_for_mode): Before using a registered
147 built-in type, check that the vectorness of the type matches
148 the vectorness of the mode.
149
700d4cb0
JJ
1502020-03-17 Jakub Jelinek <jakub@redhat.com>
151
152 * c-common.c (resolve_overloaded_builtin): Fix up duplicated word
153 issue in a diagnostic message.
154
b408e010
LH
1552020-03-15 Lewis Hyatt <lhyatt@gmail.com>
156
157 * c.opt: Avoid redundancy in the help text.
158
e78e50d5
MP
1592020-03-02 Marek Polacek <polacek@redhat.com>
160
161 PR c++/93958 - add missing -std=gnu++20.
162 * c.opt: Add -std=gnu++20.
163
649e1741
MS
1642020-03-01 Martin Sebor <msebor@redhat.com>
165
166 PR c++/92721
167 * c-attribs.c (append_access_attrs): Correctly handle attribute.
168 (handle_access_attribute): Same.
169
7b60f3ba
JJ
1702020-02-25 Jakub Jelinek <jakub@redhat.com>
171
172 PR c/93858
173 * c-pragma.c (handle_pragma_diagnostic): Add missing ? after
174 "did you mean" hint in diagnostics.
175
fb260504
JM
1762020-02-15 Jason Merrill <jason@redhat.com>
177
178 * c.opt: Add -std=c++20.
179
1d757b09
EB
1802020-02-14 Eric Botcazou <ebotcazou@adacore.com>
181
182 * c-ada-spec.c: Include bitmap.h.
183 (dump_ada_double_name): Rename into...
184 (dump_anonymous_type_name): ...this. Always use the TYPE_UID.
185 (dump_ada_array_type): Adjust to above renaming. Robustify.
186 (dump_nested_types_1): New function copied from... Add dumped_types
187 parameter and pass it down to dump_nested_type.
188 (dump_nested_types): ...this. Remove parent parameter. Just call
189 dump_nested_types_1 on an automatic bitmap.
190 (dump_nested_type): Add dumped_types parameter.
191 <ARRAY_TYPE>: Do not dump it if already present in dumped_types.
192 Adjust recursive calls and adjust to above renaming.
193 (dump_ada_declaration): Adjust call to dump_nested_types.
194 Tidy up and adjust to above renaming.
195 (dump_ada_specs): Initialize and release bitmap obstack.
196
0cc575e4
MS
1972020-02-10 Martin Sebor <msebor@redhat.com>
198
199 PR c/93640
200 * c-attribs.c (handle_access_attribute): Correct off-by-one mistakes.
201
a59aa302
JJ
2022020-02-10 Jakub Jelinek <jakub@redhat.com>
203
204 PR other/93641
205 * c-format.c (check_plain): Fix up last argument of strncasecmp.
206 Remove useless extra test.
207
e464fc90
TB
2082020-02-03 Julian Brown <julian@codesourcery.com>
209 Tobias Burnus <tobias@codesourcery.com>
210
211 * c-cppbuiltin.c (c_cpp_builtins): Update _OPENACC define to 201711.
212
e3b6c052
JM
2132020-01-29 Jason Merrill <jason@redhat.com>
214
215 PR c++/89357
216 * c-attribs.c (check_cxx_fundamental_alignment_constraints): Remove.
217
6d00f052
JM
2182020-01-23 Jason Merrill <jason@redhat.com>
219
220 * c-warn.c (conversion_warning): Change -Wsign-conversion handling.
221
8a990ffa
MS
2222020-01-23 Martin Sebor <msebor@redhat.com>
223
224 PR c/84919
225 * c-common.c (check_function_arguments): Avoid overlap checking
226 of sprintf functions.
227
55b7df8b
JM
2282020-01-22 Jason Merrill <jason@redhat.com>
229
230 PR testsuite/93391 - PR 40752 test fails with unsigned plain char.
231 PR c++/40752
232 * c-warn.c (conversion_warning): Check operands only after checking
233 the whole expression. Don't check second operand of + for sign.
234
c77074d0
JM
2352020-01-21 Jason Merrill <jason@redhat.com>
236 Manuel López-Ibáñez <manu@gcc.gnu.org>
237
238 PR c++/40752 - useless -Wconversion with short +=.
239 * c.opt (-Warith-conversion): New.
240 * c-warn.c (conversion_warning): Recurse for operands of
241 operators. Only warn about the whole expression with
242 -Warith-conversion.
243
731dbfc3
JM
2442020-01-21 Jason Merrill <jason@redhat.com>
245
246 * c-common.c (unsafe_conversion_p): Don't warn, return UNSAFE_SIGN.
247 * c-warn.c (conversion_warning): Warn about UNSAFE_SIGN.
248
ad1a3914
NS
2492020-01-20 Nathan Sidwell <nathan@acm.org>
250
251 PR preprocessor/80005
252 * c-cppbuiltins.c (c_cpp_builtins): Don't define __has_include{,_next}.
253
49789fd0
IS
2542020-01-18 Iain Sandoe <iain@sandoe.co.uk>
255
256 * c-common.c (co_await, co_yield, co_return): New.
257 * c-common.h (RID_CO_AWAIT, RID_CO_YIELD,
258 RID_CO_RETURN): New enumeration values.
259 (D_CXX_COROUTINES): Bit to identify coroutines are active.
260 (D_CXX_COROUTINES_FLAGS): Guard for coroutine keywords.
261 * c-cppbuiltin.c (__cpp_coroutines): New cpp define.
262 * c.opt (fcoroutines): New command-line switch.
263
4bc1899b
DM
2642020-01-10 David Malcolm <dmalcolm@redhat.com>
265
266 * c-format.c (local_event_ptr_node): New.
267 (PP_FORMAT_CHAR_TABLE): Add entry for "%@".
268 (init_dynamic_diag_info): Initialize local_event_ptr_node.
269 * c-format.h (T_EVENT_PTR): New define.
270
f25e33fa
MS
2712020-01-10 Martin Sebor <msebor@redhat.com>
272
273 PR c/93132
274 * c-attribs.c (append_access_attrs): Validate against the translated
275 access string rather than the human-readable representation.
276
8d9254fc
JJ
2772020-01-01 Jakub Jelinek <jakub@redhat.com>
278
279 Update copyright years.
280
39292e25
EB
2812019-12-20 Eric Botcazou <ebotcazou@adacore.com>
282
283 * c-ada-spec.h (decl_sloc): Delete.
284 * c-ada-spec.c (decl_sloc): Make static.
285
519d7496
JB
2862019-12-19 Julian Brown <julian@codesourcery.com>
287
288 * c-common.h (c_omp_map_clause_name): Add prototype.
289 * c-omp.c (c_omp_map_clause_name): New function.
290 * c-pragma.h (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ATTACH and
291 PRAGMA_OACC_CLAUSE_DETACH.
292
a6163563
JB
2932019-12-19 Julian Brown <julian@codesourcery.com>
294 Maciej W. Rozycki <macro@codesourcery.com>
295 Tobias Burnus <tobias@codesourcery.com>
296 Thomas Schwinge <thomas@codesourcery.com>
297
298 * c-pragma.h (pragma_omp_clause): Add
299 PRAGMA_OACC_CLAUSE_NO_CREATE.
300
e8f1ade2
MS
3012019-12-17 Martin Sebor <msebor@redhat.com>
302
303 PR c++/61339
304 * c.opt (-Wmismatched-tags, -Wredundant-tags): New options.
305
368877a1
DM
3062019-12-11 David Malcolm <dmalcolm@redhat.com>
307
308 * c-pretty-print.c (c_pretty_printer::clone): New vfunc
309 implementation.
310 * c-pretty-print.h (c_pretty_printer::clone): New vfunc decl.
311
d68f5d45
DM
3122019-12-09 David Malcolm <dmalcolm@redhat.com>
313
314 * c-format.c (range_label_for_format_type_mismatch::get_text):
315 Replace label_text ctor called with true with label_text::take.
316
d3e28653
DM
3172019-12-09 David Malcolm <dmalcolm@redhat.com>
318
319 * c-format.c (selftest::test_type_mismatch_range_labels): Remove
320 initial newline from expected outputs.
321 * c-opts.c (c_diagnostic_finalizer): Add pp_newline call before
322 call to diagnostic_show_locus.
323
abd6d8cc
JJ
3242019-12-06 Jakub Jelinek <jakub@redhat.com>
325
326 * c-cppbuiltin.c (c_cpp_builtins): Don't define __cpp_consteval for
327 now.
328
7906797e
MP
3292019-12-05 Marek Polacek <polacek@redhat.com>
330 Jakub Jelinek <jakub@redhat.com>
331
332 PR c++/91353 - P1331R2: Allow trivial default init in constexpr contexts.
333 * c-cppbuiltin.c (c_cpp_builtins): Adjust the value of __cpp_constexpr.
334
5c04da88
MP
3352019-12-05 Marek Polacek <polacek@redhat.com>
336
337 PR c++/92271 - make __is_same alias for __is_same_as.
338 * c-common.c: Add __is_same, an alias for __is_same_as.
339
43aae289
MP
3402019-12-03 Marek Polacek <polacek@redhat.com>
341
342 PR c++/91363 - P0960R3: Parenthesized initialization of aggregates.
343 * c-cppbuiltin.c (c_cpp_builtins): Predefine
344 __cpp_aggregate_paren_init=201902 for -std=c++2a.
345
d7ddfbcb
JH
3462019-11-30 Jan Hubicka <hubicka@ucw.cz>
347
348 * c-attribs.c (handle_symver_attribute): New function
349 (c_common_attributes): Add symver.
350
65ef05d0
RS
3512019-11-30 Richard Sandiford <richard.sandiford@arm.com>
352
353 * c-common.c (pointer_int_sum): Use verify_type_context to check
354 whether the target allows pointer arithmetic for the types involved.
355 (c_sizeof_or_alignof_type, c_alignof_expr): Use verify_type_context
356 to check whether the target allows sizeof and alignof operations
357 for the types involved.
358
1a291106
JM
3592019-11-27 Jason Merrill <jason@redhat.com>
360
361 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_deduction_guides.
362
05d6cb1a
JJ
3632019-11-26 Jakub Jelinek <jakub@redhat.com>
364
365 PR c++/61414
366 * c-attribs.c (handle_mode_attribute): Add mode attribute to
367 ENUMERAL_TYPEs.
368
5b8d9367
JM
3692019-11-25 Joseph Myers <joseph@codesourcery.com>
370
371 PR c/91985
372 * c-common.c (c_common_type_for_mode): Handle decimal
373 floating-point types being NULL_TREE.
374 * c-format.c (get_format_for_type_1): Handle specified types being
375 NULL_TREE.
376 * c-lex.c (interpret_float): Give an error for decimal
377 floating-point constants when decimal floating-point not
378 supported.
379
1fbf51cb
JJ
3802019-11-23 Jakub Jelinek <jakub@redhat.com>
381
382 PR middle-end/83859
383 * c-attribs.c (append_access_attrs): Avoid buffer overflow. Avoid
384 memory leak. Use XNEWVEC macro. Use auto_diagnostic_group to
385 group warning with inform together.
386 (handle_access_attribute): Formatting fix.
387
761df906
JJ
3882019-11-22 Jakub Jelinek <jakub@redhat.com>
389
bdaf8be1
JJ
390 PR c/90677
391 * c-common.h (identifier_global_tag): Declare.
392 * c-format.c (get_pointer_to_named_type): Renamed to ...
393 (get_named_type): ... this. Use identifier_global_tag instead of
394 identifier_global_value, handle the return value being a TYPE_P.
395 (init_dynamic_diag_info): Adjust get_pointer_to_named_type callers
396 to call get_named_type instead. Formatting fixes.
397
c2ecce6d 398 Implement P1902R1, Missing feature-test macros 2017-2019.
761df906
JJ
399 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_init_captures
400 and __cpp_generic_lambdas for -std=c++2a. Define
401 __cpp_designated_initializers, __cpp_constexpr_in_decltype and
402 __cpp_consteval for -std=c++2a. Remove a FIXME comment about
403 __cpp_concepts for -std=c++2a.
404
54aa6b58
MS
4052019-11-22 Martin Sebor <msebor@redhat.com>
406
407 PR middle-end/83859
408 * c-attribs.c (handle_access_attribute): New function.
409 (c_common_attribute_table): Add new attribute.
410 (get_argument_type): New function.
411 (append_access_attrs): New function.
412 (get_nonnull_operand): Rename...
413 (get_attribute_operand): ...to this.
414 * c-common.c (get_nonnull_operand): Rename...
415 (get_attribute_operand): ...to this.
416
6c80b1b5
JM
4172019-11-21 Joseph Myers <joseph@codesourcery.com>
418
419 * c-attribs.c (handle_fallthrough_attribute): Use pedwarn instead
420 of warning.
421
192961ff
JM
4222019-11-19 Joseph Myers <joseph@codesourcery.com>
423
424 * c-common.c (attribute_fallthrough_p): In C, use pedwarn not
425 warning for standard attributes mixed with fallthrough attributes.
426
f8aea5e3
JM
4272019-11-15 Joseph Myers <joseph@codesourcery.com>
428
429 * c-attribs.c (handle_fallthrough_attribute): Remove static.
430 * c-common.h (handle_fallthrough_attribute): Declare.
431
2cc94aa8
JM
4322019-11-15 Joseph Myers <joseph@codesourcery.com>
433
434 * c-attribs.c (handle_deprecated_attribute): Remove static.
435 * c-common.h (handle_deprecated_attribute): Declare.
436
7c5890cc
JM
4372019-11-14 Joseph Myers <joseph@codesourcery.com>
438
439 * c-lex.c (lex_charconst): Make CPP_UTF8CHAR constants unsigned
440 char for C.
441
b2417b59
JJ
4422019-11-14 Jakub Jelinek <jakub@redhat.com>
443
d0ec7c93
JJ
444 * c-omp.c (c_omp_check_context_selector): Add nvidia to the list of
445 valid vendors.
446
b2417b59
JJ
447 * c-omp.c (c_omp_check_context_selector): Handle name lists
448 containing string literals. Don't diagnose atomic_default_mem_order
449 with multiple props.
450
00be2a5f
JM
4512019-11-13 Joseph Myers <joseph@codesourcery.com>
452
453 * c-cppbuiltin.c (builtin_define_float_constants): Also define
454 NORM_MAX constants. Update call to get_max_float.
455 (LAZY_HEX_FP_VALUES_CNT): Update value to include NORM_MAX
456 constants.
457
2dbad62d
EB
4582019-11-13 Eric Botcazou <ebotcazou@adacore.com>
459
460 * c-ada-spec.c (get_underlying_decl): Do not look through typedefs.
461 (dump_forward_type): Do not generate a declaration for function types.
462 (dump_nested_type) <ARRAY_TYPE>: Do not generate a nested declaration
463 of the component type if it is declared in another file.
464
6ed76044
ML
4652019-11-12 Martin Liska <mliska@suse.cz>
466
467 * c-opts.c (c_common_post_options):
468 Use SET_OPTION_IF_UNSET.
469
62aee289
MR
4702019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
471 Frederik Harwath <frederik@codesourcery.com>
472
473 gcc/c-family/
474 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_SERIAL enumeration
475 constant.
476 * c-pragma.c (oacc_pragmas): Add "serial" entry.
477
f486280c
RS
4782019-11-08 Richard Sandiford <richard.sandiford@arm.com>
479
480 * c-common.h (gnu_vector_type_p): New function.
481 * c-common.c (c_build_vec_perm_expr): Require __builtin_shuffle
482 vectors to satisfy gnu_vector_type_p.
483 (c_build_vec_convert): Likewise __builtin_convertvector.
484 (convert_vector_to_array_for_subscript): Likewise when applying
485 implicit vector to array conversion.
486 (scalar_to_vector): Likewise when converting vector-scalar
487 operations to vector-vector operations.
488
017c6491
JM
4892019-11-08 Joseph Myers <joseph@codesourcery.com>
490
491 * c.opt (Wold-style-definition): Initialize to -1.
492 * c-opts.c (c_common_post_options): Set warn_old_style_definition
493 to flag_isoc2x if not set explicitly.
494
c01bd174
JM
4952019-11-07 Joseph Myers <joseph@codesourcery.com>
496
497 * c-attribs.c (parse_tm_stmt_attr): Handle scoped attributes.
498
0df65305
JM
4992019-11-05 Jason Merrill <jason@redhat.com>
500
501 * c-opts.c (c_common_post_options): -fconcepts-ts implies
502 -fconcepts.
503
e0c866dd
KK
5042019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
505
506 * c-opts.c (c_common_post_options): Update
507 latest_abi_version.
508
f968ef9b
JJ
5092019-11-02 Jakub Jelinek <jakub@redhat.com>
510
d0c464d2
JJ
511 * c-common.h (c_omp_get_context_selector): Remove.
512 * c-omp.c (c_omp_get_context_selector): Moved to omp-general.c
513 and renamed to omp_get_context_selector.
514
917dd789
JJ
515 * c-omp.c (c_omp_mark_declare_variant): Use
516 omp_context_selector_set_compare.
517
f968ef9b
JJ
518 PR c++/88335 - Implement P1073R3: Immediate functions
519 * c-common.h (enum rid): Add RID_CONSTEVAL.
520 * c-common.c (c_common_reswords): Add consteval.
521
5f6705b7
JJ
5222019-11-01 Martin Sebor <msebor@redhat.com>
523
524 PR middle-end/91679
525 PR middle-end/91647
526 PR middle-end/91463
527 PR middle-end/92312
528 * c-pretty-print.c (direct_abstract_declarator): Print
529 bound in zero-length arrays.
530 * c.opt (-Wzero-length-bounds): New option.
531
43f1814c
NS
5322019-10-30 Nathan Sidwell <nathan@acm.org>
533
534 * c-cppbuiltin.c (c_cpp_builtins): Add 'L' suffix to feature
535 macros.
536
ad1539d5
MS
5372019-10-28 Martin Sebor <msebor@redhat.com>
538
539 PR c/66970
540 * c-common.c (c_common_nodes_and_builtins): Call c_define_builtins
541 even when only preprocessing.
542 * c-common.h (names_builtin_p): Declare new function.
543 * c-lex.c (init_c_lex): Set has_builtin.
544 (c_common_has_builtin): Define a new function.
545 * c-ppoutput.c (init_pp_output): Set has_builtin.
546
135df52c
JJ
5472019-10-24 Jakub Jelinek <jakub@redhat.com>
548
549 * c-common.h (c_omp_context_selector_matches): Remove.
550 * c-omp.c (c_omp_context_selector_matches): Remove.
551 * c-attribs.c (c_common_attribute_table): Add
552 "omp declare target {host,nohost,block}" attributes.
553
8ad0c477
JM
5542019-10-17 JeanHeyd Meneide <phdofthehouse@gmail.com>
555
556 * c-lex.c (c_common_has_attribute): Update nodiscard value.
557
56898e43
RS
5582019-10-14 Richard Sandiford <richard.sandiford@arm.com>
559
560 * c-common.h (user_facing_original_type_p): Declare.
561 * c-common.c: Include c-spellcheck.h.
562 (user_facing_original_type_p): New function.
563
20de9568
JJ
5642019-10-12 Jakub Jelinek <jakub@redhat.com>
565
566 * c-common.h (c_omp_mark_declare_variant,
567 c_omp_context_selector_matches): Declare.
568 * c-omp.c: Include attribs.h, gimplify.h, cgraph.h, symbol-summary.h
569 and hsa-common.h.
570 (c_omp_get_context_selector): Support second argument NULL.
571 (c_omp_mark_declare_variant, c_omp_context_selector_matches): New
572 functions.
573 * c-attribs.c (c_common_attribute_table): Remove "omp declare variant"
574 attribute, add "omp declare variant base" and
575 "omp declare variant variant" attributes.
576
175a85b2
JM
5772019-10-11 Joseph Myers <joseph@codesourcery.com>
578
579 * c.opt (Wc11-c2x-compat): Add CPP(cpp_warn_c11_c2x_compat)
580 CppReason(CPP_W_C11_C2X_COMPAT).
581
fe2bc27c
JM
5822019-10-11 Joseph Myers <joseph@codesourcery.com>
583
584 * c-common.c (c_common_reswords): Do not use D_EXT for _Decimal32,
585 _Decimal64 and _Decimal128.
586
27dfdc0f
JM
5872019-10-10 Joseph Myers <joseph@codesourcery.com>
588
589 * c-cppbuiltin.c (c_cpp_builtins): Do not define macros for DFP
590 types if DFP not supported.
591
94e7f906
JJ
5922019-10-10 Jakub Jelinek <jakub@redhat.com>
593
594 * c-common.h (c_omp_check_context_selector,
595 c_omp_get_context_selector): Declare.
596 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): Fix spelling
597 in diagnostic message.
598 (c_omp_check_context_selector, c_omp_get_context_selector): New
599 functions.
600 * c-attribs.c (c_common_attribute_table): Add "omp declare variant"
601 attribute.
602 (handle_omp_declare_variant_attribute): New function.
603
a7160771
MS
6042019-10-09 Martin Sebor <msebor@redhat.com>
605
606 PR tree-optimization/90879
607 * c.opt (-Wstring-compare): New option.
608
cb57504a
JM
6092019-10-08 Andrew Sutton <asutton@lock3software.com>
610 Jason Merrill <jason@redhat.com>
611
612 Update the concepts implementation to conform to the C++20
613 specification, improve compile times, and generally clean up
614 the implementation.
615
616 * c-cppbuiltin.c (c_cpp_builtins): Use new feature test values for
617 concepts when -std=c++2a. Bump __cpp_concepts to 201907.
618 * c.opt: Add -Wconcepts-ts.
619 * c-opts.c (c_common_post_options): Warn when -fconcepts is used
620 with -std=c++2a. Disable warning for -fconcepts in C++20 mode.
621 (set_std_cxx2a): Enable concepts by default.
622
fbb2a6dc
JM
6232019-10-08 Joseph Myers <joseph@codesourcery.com>
624
625 * c-opts.c (c_common_post_options): Set
626 -fno-fp-int-builtin-inexact for C2X.
627
8e007055
JJ
6282019-10-05 Jakub Jelinek <jakub@redhat.com>
629
630 PR c++/91369 - Implement P0784R7: constexpr new
631 * c-cppbuiltin.c (c_cpp_builtins): Predefine
632 __cpp_constexpr_dynamic_alloc=201907 for -std=c++2a.
633
843f104d
JM
6342019-10-04 Joseph Myers <joseph@codesourcery.com>
635
636 PR c/82752
637 * c-format.c (C_STD_VER): Handle C2x.
638 (C_STD_NAME): Likewise.
639 (strftime_flag_specs): Add 'O' modifier with 'p' flag.
640 (time_char_table): Use separate entry for 'B' and 'b', with 'O'
641 modifier allowed and 'p' flag.
642 * c-format.h (enum format_std_version): Add STD_C2X.
643 (struct format_char_info): Mention 'p' in comment on flags2.
644
e9c9a142
DM
6452019-10-01 David Malcolm <dmalcolm@redhat.com>
646
647 * c-opts.c (c_diagnostic_finalizer): Temporarily clear prefix when
648 calling diagnostic_show_locus, rather than destroying it afterwards.
649
7552c36a
JJ
6502019-10-01 Jakub Jelinek <jakub@redhat.com>
651
652 PR c++/91925
653 * c-warn.c (check_alignment_of_packed_member): Ignore FIELD_DECLs
654 with NULL DECL_FIELD_OFFSET.
655
8209db25
RS
6562019-10-01 Richard Sandiford <richard.sandiford@arm.com>
657
658 * c-pretty-print.c (pp_c_specifier_qualifier_list): If a vector type
659 has a type name, use it in preference to the __vector syntax.
660
9343bf99
RS
6612019-09-30 Richard Sandiford <richard.sandiford@arm.com>
662
663 * c-pretty-print.c (pp_c_parameter_type_list): Avoid printing
664 two spaces between a comma and "...".
665
59bc434a
JJ
6662019-09-27 Jakub Jelinek <jakub@redhat.com>
667
668 PR c++/88203
669 * c-common.h (c_omp_predefined_variable): Declare.
670 * c-omp.c (c_omp_predefined_variable): New function.
671 (c_omp_predetermined_sharing): Return OMP_CLAUSE_DEFAULT_SHARED
672 for predefined variables.
673
c6447c20
RS
6742019-09-27 Richard Sandiford <richard.sandiford@arm.com>
675
676 * c-common.h (build_function_call_vec): Take the original
677 function decl as an optional final parameter.
678 (check_builtin_function_arguments): Take the original function decl.
679 * c-common.c (check_builtin_function_arguments): Likewise.
680 Handle all built-in functions, not just BUILT_IN_NORMAL ones.
681 Use targetm.check_builtin_call to check BUILT_IN_MD functions.
682
c4438114
JM
6832019-09-15 Jason Merrill <jason@redhat.com>
684
685 * c-warn.c (warn_logical_operator): Strip location wrappers. Don't
686 fold_for_warn in "|| mask" warning.
687
68a57628
ML
6882019-09-10 Martin Liska <mliska@suse.cz>
689
690 * c.opt: Use newly added WarnRemoved.
691
f48ef52e
ML
6922019-09-09 Martin Liska <mliska@suse.cz>
693
694 * c.opt: Update comment of removed
695 options that are preserved only for backward
696 compatibility.
697
67f6e649
ML
6982019-09-06 Martin Liska <mliska@suse.cz>
699
700 PR c++/91125
701 * c-common.c: Remove definition of flag_use_repository.
702 * c-common.h: Likewise.
703 * c-opts.c (c_common_handle_option):
704 Do not handle OPT_frepo option.
705 * c.opt: Mark the option with Deprecated.
706
db9d2274
MP
7072019-09-04 Marek Polacek <polacek@redhat.com>
708
709 * c.opt (fdeduce-init-list): Ignored.
710
68e2c199
PK
7112019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
712
713 PR c/78736
714 * c.opt (Wenum-conversion): New option.
715
7a4418a5
JL
7162019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
717
718 * c-attribs.c (handle_section_attribute): Call the
719 handle_generic_attribute target hook after performing target
720 independent processing.
721 (handle_noinit_attribute): Likewise.
722
5f76ab15
ILT
7232019-09-03 Ian Lance Taylor <iant@golang.org>
724
725 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Always expand
726 when using -fgo-dump-spec.
727
ae0d3f6a
ML
7282019-09-02 Martin Liska <mliska@suse.cz>
729
730 PR c++/91155
731 * c-common.c (fname_as_string): Use cxx_printable_name for
732 __PRETTY_FUNCTION__ same as was used before r265711.
733
8a902edb
MP
7342019-08-28 Marek Polacek <polacek@redhat.com>
735
736 Implement P1152R4: Deprecating some uses of volatile.
737 PR c++/91361
738 * c-opts.c (c_common_post_options): Enable -Wvolatile by
739 default for C++2a, unless -Wno-deprecated.
740 * c.opt (Wvolatile): New warning.
741
4742dbe7
MP
7422019-08-28 Marek Polacek <polacek@redhat.com>
743
744 PR c++/91360 - Implement C++20 P1143R2: constinit.
745 * c-common.c (c_common_reswords): Add constinit and __constinit.
746 (keyword_is_decl_specifier): Handle RID_CONSTINIT.
747 * c-common.h (enum rid): Add RID_CONSTINIT, RID_FIRST_CXX20, and
748 RID_LAST_CXX20.
749 (D_CXX20): Define.
750 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_constinit.
751 * c-format.c (cxx_keywords): Add "constinit".
752 * c.opt (Wc++2a-compat, Wc++20-compat): New options.
753
6a074892
JJ
7542019-08-27 Jakub Jelinek <jakub@redhat.com>
755
756 PR c++/91415
757 * c-common.c (verify_tree): For LSHIFT_EXPR, RSHIFT_EXPR,
758 COMPONENT_REF and ARRAY_REF in cxx_dialect >= cxx17 mode handle it
759 like COMPOUND_EXPR rather than normal expression.
760
22f8849d
IS
7612019-08-23 Iain Sandoe <iain@sandoe.co.uk>
762
763 PR pch/61250
764 * c-lex.c (c_lex_with_flags): Don't call
765 c_common_no_more_pch () from here.
766
df375b03
JJ
7672019-08-23 Jakub Jelinek <jakub@redhat.com>
768
769 PR middle-end/91283
770 * c-common.c (c_ts18661_flt_eval_method): Use flag_excess_precision
771 instead of flag_excess_precision_cmdline.
772 * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): Likewise.
773 * c-opts.c (c_common_post_options): Likewise.
774
14b7950f
MS
7752019-08-22 Martin Sebor <msebor@redhat.com>
776
777 PR middle-end/91490
778 * c-common.c (braced_list_to_string): Add argument and overload.
779 Handle flexible length arrays and unions.
780
8bb2ee59
EB
7812019-08-21 Eric Botcazou <ebotcazou@adacore.com>
782
783 * c-ada-spec.c (dump_ada_function_declaration): Be prepared for broken
784 function declarations where arguments are missing. Rename variables.
785
21c1e205
RB
7862019-08-15 Richard Biener <rguenther@suse.de>
787
788 * c-common.c (c_stddef_cpp_builtins): When the GIMPLE FE is
789 enabled, define __SIZETYPE__.
790
f0033821
CL
7912019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
792
793 * c-attribs.c (c_common_attribute_table): Add "noinit" entry. Add
794 exclusion with "section" attribute.
795 (attr_noinit_exclusions): New table.
796 (handle_noinit_attribute): New function.
797
4d732405
RS
7982019-08-13 Richard Sandiford <richard.sandiford@arm.com>
799
800 PR middle-end/91421
801 * c-common.c (resolve_overloaded_builtin): Use
802 copy_decl_built_in_function.
803
51ad8481
MS
8042019-08-13 Martin Sebor <msebor@redhat.com>
805
806 PR c/80619
807 * c-format.c (printf_length_specs): Set FMT_LEN_w for "w".
808 (asm_fprintf_length_spec): Same.
809 * c-format.h (format_lengths): Add FMT_LEN_w.
810
77eb117f
JJ
8112019-08-10 Jakub Jelinek <jakub@redhat.com>
812
813 * c-pragma.h (enum pragma_omp_clause): Add
814 PRAGMA_OMP_CLAUSE_DEVICE_TYPE.
815
398e3feb
JJ
8162019-08-07 Jakub Jelinek <jakub@redhat.com>
817
818 * c-pragma.h (enum pragma_omp_clause): Add
819 PRAGMA_OMP_CLAUSE_USE_DEVICE_ADDR. Set PRAGMA_OACC_CLAUSE_USE_DEVICE
820 equal to PRAGMA_OMP_CLAUSE_USE_DEVICE_PTR instead of being a separate
821 enumeration value.
822
ab574db6
MP
8232019-08-05 Marek Polacek <polacek@redhat.com>
824
825 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
826 * c-opts.c (c_common_post_options): Enable -Wcomma-subscript by
827 default for C++2a, unless -Wno-deprecated.
828 * c.opt (Wcomma-subscript): New warning.
829
554a530f
JJ
8302019-07-20 Jakub Jelinek <jakub@redhat.com>
831
832 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_LOOP.
833 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_BIND.
834 * c-pragma.c (omp_pragmas_simd): Add PRAGMA_OMP_LOOP entry.
835 * c-common.h (enum c_omp_clause_split): Add C_OMP_CLAUSE_SPLIT_LOOP.
836 * c-omp.c (c_omp_split_clauses): Add support for 4 new combined
837 constructs with the loop construct.
838
1a888209
JJ
8392019-07-13 Jakub Jelinek <jakub@redhat.com>
840
841 PR c/91149
842 * c-omp.c (c_omp_split_clauses): Fix a pasto in
843 OMP_CLAUSE_REDUCTION_TASK handling.
844
1fdd6f04
JJ
8452019-07-12 Jakub Jelinek <jakub@redhat.com>
846
847 * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ORDER.
848 * c-omp.c (c_omp_split_clauses): Handle splitting of OMP_CLAUSE_ORDER.
849
99b1c316
MS
8502019-07-09 Martin Sebor <msebor@redhat.com>
851
852 PR c++/61339
1fdd6f04 853 * c-opts.c (handle_deferred_opts): Change class-key of PODs to struct
99b1c316
MS
854 and others to class.
855 * c-pretty-print.h: Same.
856
6c1dae73
MS
8572019-07-09 Martin Sebor <msebor@redhat.com>
858
859 PR c++/61339
860 * c-format.c (check_argument_type): Change class-key from class to
861 struct and vice versa to match convention and avoid -Wclass-is-pod
862 and -Wstruct-no-pod.
863 * c-pretty-print.h: Same.
864
8ba6ea87
ML
8652019-07-03 Martin Liska <mliska@suse.cz>
866
867 * c-common.c (try_to_locate_new_include_insertion_point): Remove
868 dead assignemts.
869
83eb9522
JJ
8702019-07-03 Jakub Jelinek <jakub@redhat.com>
871
872 * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_REDUCTION_INSCAN
873 clauses on OMP_FOR rather than OMP_PARALLEL when OMP_FOR is combined
874 with OMP_PARALLEL.
875
1c6ffbab
QZ
8762019-07-02 qing zhao <qing.zhao@oracle.com>
877
878 PR preprocessor/90581
879 * c-opts.c (c_common_handle_option): Handle -fmax-include-depth.
880 * c.opt: Add new option -fmax-include-depth.
881
7ffc7de5
JM
8822019-06-26 Jason Merrill <jason@redhat.com>
883
884 PR c++/55442 - memory-hog with highly recursive constexpr.
885 * c.opt (fconstexpr-loop-limit): New.
886
361af3e4
JJ
8872019-06-25 Jakub Jelinek <jakub@redhat.com>
888
889 PR sanitizer/90954
890 * c-omp.c (c_finish_omp_atomic): Allow tree_invariant_p in addition
891 to SAVE_EXPR in first operand of a COMPOUND_EXPR.
892
ab20d992
JJ
8932019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
894
895 * c-common.c (c_common_nodes_and_builtins): Define
896 alternate "__intN__" name for "__intN" types.
897
f4af4019
JH
8982019-06-24 Jan Hubicka <jh@suse.cz>
899
900 * c-common.c (braced_lists_to_strings): Check that
901 type is array or integer prior checking string flag.
902
da9e9b57
MB
9032019-06-21 Matthew Beliveau <mbelivea@redhat.com>
904
905 PR c++/90875 - added -Wswitch-outside-range option
906 * c.opt (Wswitch-outside-range): Added new option.
907 * c-warn.c (c_do_switch_warnings): Use OPT_Wswitch-outside-range.
908
3f3d6a6f
MP
9092019-06-21 Marek Polacek <polacek@redhat.com>
910
911 PR c++/90953 - ICE with -Wmissing-format-attribute.
912 * c-common.c (check_function_arguments_recurse): Use
913 get_attribute_name.
914 (check_missing_format_attribute): Likewise.
915
1bf32c11
MP
9162019-06-19 Marek Polacek <polacek@redhat.com>
917
918 PR c++/60364 - noreturn after first decl not diagnosed.
919 * c-attribs.c (handle_noreturn_attribute): No longer static.
920 * c-common.h (handle_noreturn_attribute, attr_noreturn_exclusions):
921 Declare.
922 * c-format.c (check_function_format): Use get_attribute_name.
923
a04c0734
MS
9242019-06-19 Martin Sebor <msebor@redhat.com>
925
926 PR translation/90156
927 * c-format.c (function_format_info::format_type): Adjust type.
928 (function_format_info::is_raw): New member.
929 (decode_format_type): Adjust signature. Handle "raw" diag attributes.
930 (decode_format_attr): Adjust call to decode_format_type.
931 Avoid a redundant call to convert_format_name_to_system_name.
932 Avoid abbreviating the word "arguments" in a diagnostic.
933 (format_warning_substr): New function.
934 (avoid_dollar_number): Quote dollar sign in a diagnostic.
935 (finish_dollar_format_checking): Same.
936 (check_format_info): Same.
937 (struct baltoks_t): New.
938 (c_opers, c_keywords, cxx_keywords, badwords, contrs): New arrays.
939 (maybe_diag_unbalanced_tokens, check_tokens, check_plain): New
940 functions.
941 (check_format_info_main): Call check_plain. Use baltoks_t. Call
942 maybe_diag_unbalanced_tokens.
943 (handle_format_attribute): Spell out the word "arguments" in
944 a diagnostic.
945
d3786ebb
MB
9462019-06-11 Matthew Beliveau <mbelivea@redhat.com>
947
948 PR c++/90449 - add -Winaccessible-base option.
949 * c.opt (Winaccessible-base): New option.
950
bf38f7e9
JJ
9512019-06-10 Jakub Jelinek <jakub@redhat.com>
952
953 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_SCAN.
954 * c-pragma.c (omp_pragmas_simd): Add #pragma omp scan.
955 * c-omp.c (c_omp_split_clauses): Diagnose inscan reductions on
956 combined/composite constructs where it is not allowed. Copy over
957 OMP_CLAUSE_REDUCTION_INSCAN.
958
0ecf545c
MS
9592019-06-05 Martin Sebor <msebor@redhat.com>
960
961 * c-attribs.c (handle_mode_attribute): Adjust quoting and hyphenation.
962 (handle_alias_ifunc_attribute): Same.
963 (handle_copy_attribute): Same.
964 (handle_weakref_attribute): Same.
965 (handle_nonnull_attribute): Same.
966 * c-warn.c (warn_for_sign_compare): Same.
967 (warn_for_restrict): Same.
968 * c.opt: Same.
969
36b34127
MS
9702019-06-05 Martin Sebor <msebor@redhat.com>
971
972 * c-pragma.c (handle_pragma_weak): Adjust quoting in a diagnostic.
973 * c.opt (-Wformat-diag): Remove a spurious period.
974
357a352f
JJ
9752019-05-29 Jakub Jelinek <jakub@redhat.com>
976
977 PR c/90628
978 * c-common.c (check_builtin_function_arguments)
979 <case BUILTIN_*_OVERFLOW>: Diagnose pointer to const qualified integer
980 as last argument.
981
2b8235ea
EB
9822019-05-23 Eric Botcazou <ebotcazou@adacore.com>
983
984 * c-ada-spec.c (compare_node): Compare the DECL_UIDs as a last resort.
985
6d86ddc4
ML
9862019-05-22 Martin Liska <mliska@suse.cz>
987
988 PR lto/90500
989 * c-attribs.c (handle_copy_attribute): Do not copy
990 target_clones attribute.
991
419ba5b9
EB
9922019-05-21 Eric Botcazou <ebotcazou@adacore.com>
993
994 * c-ada-spec.h (enum cpp_operation): Add IS_ASSIGNMENT_OPERATOR.
995 * c-ada-spec.c (print_assignment_operator): New function.
996 (dump_ada_declaration) <FUNCTION_DECL>: Call it do dump explicit copy
997 assignment operators declared as methods and filter out the others.
998
e03436e7
TS
9992019-05-17 Thomas Schwinge <thomas@codesourcery.com>
1000
1001 PR c/89433
1002 * c-attribs.c (c_common_attribute_table): Set min_len to -1 for
1003 "omp declare target".
1004
a9c697b8
MS
10052019-05-16 Martin Sebor <msebor@redhat.com>
1006
ab20d992
JJ
1007 * c-attribs.c (handle_no_sanitize_attribute): Quote identifiers,
1008 keywords, operators, and types in diagnostics.
1009 (handle_scalar_storage_order_attribute): Same.
1010 (handle_mode_attribute): Same.
1011 (handle_visibility_attribute): Same.
1012 (handle_assume_aligned_attribute): Same.
1013 (handle_no_split_stack_attribute): Same.
1014 * c-common.c (shorten_compare): Same.
1015 (c_common_truthvalue_conversion): Same.
1016 (cb_get_source_date_epoch): Same.
1017 * c-lex.c (cb_def_pragma): Quote keywords, operators, and types
1018 in diagnostics.
1019 (interpret_float): Same.
1020 * c-omp.c (c_finish_omp_for): Same.
1021 * c-opts.c (c_common_post_options): Same.
1022 * c-pch.c (c_common_pch_pragma): Same.
1023 * c-pragma.c (pop_alignment): Same.
1024 (handle_pragma_pack): Same.
1025 (apply_pragma_weak): Same.
1026 (handle_pragma_weak): Same.
1027 (handle_pragma_scalar_storage_order): Same.
1028 (handle_pragma_redefine_extname): Same.
1029 (add_to_renaming_pragma_list): Same.
1030 (maybe_apply_renaming_pragma): Same.
1031 (push_visibility): Same.
1032 (handle_pragma_visibility): Same.
1033 (handle_pragma_optimize): Same.
1034 (handle_pragma_message): Same.
1035 * c-warn.c (warn_for_omitted_condop): Same.
1036 (lvalue_error): Same.
a9c697b8 1037
6b943512
RB
10382019-05-15 Richard Biener <rguenther@suse.de>
1039
1040 PR c/90474
1041 * c-common.c (c_common_mark_addressable_vec): Also mark
1042 a COMPOUND_LITERAL_EXPR_DECL addressable similar to
1043 c_mark_addressable.
ab20d992 1044
b744fc85
NS
10452019-05-06 Nathan Sidwell <nathan@acm.org>
1046
1047 * c-opts.c (handle_defered_opts): Rename struct deps to struc mkdeps.
1048
598f50d7
NS
10492019-04-30 Nathan Sidwell <nathan@acm.org>
1050
1051 * c-common.c (c_common_init_ts): Use MARK_TS_EXP. Mark SIZEOF_EXPR.
1052
5bcc5a3b
ML
10532019-04-30 Martin Liska <mliska@suse.cz>
1054
1055 * c-pragma.c (handle_pragma_diagnostic): Provide hints
1056 for unknown options.
1057
e78a87f7
RS
10582019-04-26 Richard Sandiford <richard.sandiford@arm.com>
1059
1060 * c-warn.c (strict_aliasing_warning): Apply COMPLETE_TYPE_P to
1061 the pointer target rather than the pointer itself.
1062
c280b7ee
JJ
10632019-04-19 Jakub Jelinek <jakub@redhat.com>
1064
1065 PR c/89888
1066 * c-common.h (c_add_case_label): Remove orig_type and outside_range_p
1067 arguments.
1068 (c_do_switch_warnings): Remove outside_range_p argument.
1069 * c-common.c (check_case_bounds): Removed.
1070 (c_add_case_label): Remove orig_type and outside_range_p arguments.
1071 Don't call check_case_bounds. Fold low_value as well as high_value.
1072 * c-warn.c (c_do_switch_warnings): Remove outside_range_p argument.
1073 Check for case labels outside of range of original type here and
1074 adjust them.
1075
8e8225e6
JJ
10762019-04-12 Jakub Jelinek <jakub@redhat.com>
1077
63b8a166
JJ
1078 PR translation/90041
1079 * c.opt (-fhandle-exceptions): Use %< and %> around option names
1080 in the Warn diagnostics.
1081
8e8225e6
JJ
1082 PR c/89946
1083 * c-attribs.c (handle_patchable_function_entry_attribute): Add
1084 function comment. Warn if arguments of the attribute are not positive
1085 integer constants.
1086
53a3f614
EB
10872019-04-09 Eric Botcazou <ebotcazou@adacore.com>
1088
1089 * c-ada-spec.c (print_destructor): Deal with deleting destructors.
1090 (dump_ada_declaration) <FUNCTION_DECL>: Likewise.
1091
22be5873
EB
10922019-04-07 Eric Botcazou <ebotcazou@adacore.com>
1093
1094 * c-ada-spec.c (is_float128): New predicate extracted from...
1095 (dump_ada_node) <COMPLEX_TYPE>: Use it to recognize __cfloat128.
1096 <REAL_TYPE>: ...here. Call it.
1097
34facf20
DM
10982019-04-05 David Malcolm <dmalcolm@redhat.com>
1099
1100 PR c/89985
1101 * c-warn.c (check_address_or_pointer_of_packed_member): Add
1102 auto_diagnostic_group. Guard inform calls by result of
1103 warning_at call.
1104
05564120
MP
11052019-04-05 Marek Polacek <polacek@redhat.com>
1106
ab20d992 1107 PR c++/89973 - -Waddress-of-packed-member ICE with invalid conversion.
05564120
MP
1108 * c-warn.c (check_address_or_pointer_of_packed_member): Check the type
1109 of RHS.
1110
7a506c3c
JM
11112019-04-03 Jason Merrill <jason@redhat.com>
1112
1113 PR c++/86586 - -fcompare-debug=-Wsign-compare.
1114 * c-warn.c (warn_for_sign_compare): Call fold_for_warn.
1115
ddeae8c8
MS
11162019-04-01 Martin Sebor <msebor@redhat.com>
1117
1118 PR c/89685
1119 * c-attribs.c (handle_copy_attribute): Handle references and
1120 non-constant expressions.
1121
a15ffa22
JJ
11222019-03-22 Jakub Jelinek <jakub@redhat.com>
1123
1124 PR c++/87481
1125 * c.opt (-fconstexpr-ops-limit=): New option.
1126
36a3a7a3
JJ
11272019-03-21 Jakub Jelinek <jakub@redhat.com>
1128
1129 * c-common.c (per_file_includes_t): Use false as Lazy in hash_set
1130 template param.
1131
bec1da64
MS
11322019-03-19 Martin Sebor <msebor@redhat.com>
1133
1134 PR tree-optimization/89688
1135 * c-common.c (braced_list_to_string): Make static.
1136 (braced_lists_to_strings): Define new function.
1137 * c-common.h (braced_list_to_string): Remove.
1138 (braced_lists_to_strings): Declare.
1139
1fe61adf
ML
11402019-03-12 Martin Liska <mliska@suse.cz>
1141
1142 * c-opts.c (c_common_handle_option): Wrap option with %< and %>.
1143
93964ebd
ML
11442019-03-11 Martin Liska <mliska@suse.cz>
1145
1146 * c-opts.c (c_common_post_options): Wrap apostrophes
1147 in gcc internal format with %'.
1148
a3f9f006
ML
11492019-03-11 Martin Liska <mliska@suse.cz>
1150
1151 * c-attribs.c (handle_nocf_check_attribute): Wrap an option name
1152 in a string format message and fix GNU coding style.
1153 * c-common.c (vector_types_convertible_p): Likewise.
1154 (c_build_vec_perm_expr): Likewise.
1155 * c-indentation.c (get_visual_column): Likewise.
1156 * c-opts.c (c_common_handle_option): Likewise.
1157 (c_common_post_options): Likewise.
1158 (sanitize_cpp_opts): Likewise.
1159 * c-pch.c (c_common_pch_pragma): Likewise.
1160 * c-pragma.c (handle_pragma_pack): Likewise.
1161
1db01ff9
JJ
11622019-03-08 Jakub Jelinek <jakub@redhat.com>
1163
1164 PR tree-optimization/89550
1165 * c-common.c (c_common_truthvalue_conversion): Only set
1166 TREE_NO_WARNING if warning_at returned true.
1167 * c-warn.c (overflow_warning, warn_logical_operator): Likewise.
1168
ba790e6f
JJ
11692019-02-25 Sandra Loosemore <sandra@codesourcery.com>
1170 Martin Sebor <msebor@gmail.com>
1171
1172 * c.opt (Wmissing-attributes): Clean up doc string.
1173
7da73ba7
JJ
11742019-02-25 Jakub Jelinek <jakub@redhat.com>
1175
1176 PR c/89495
1177 * c-format.c (maybe_read_dollar_number): Compute nargnum in
1178 HOST_WIDE_INT type to avoid overflows and change overflow_flag
1179 checking.
1180
921bb9d1
RB
11812019-02-22 Richard Biener <rguenther@suse.de>
1182
1183 * c-pch.c (no_checksum): Remove.
1184 (pch_init): Remove assertion that executable_checksum is not
1185 all zero.
1186 (c_common_valid_pch): Likewise.
1187
e2ebb05c
MS
11882019-02-18 Martin Sebor <msebor@redhat.com>
1189
1190 PR middle-end/89294
1191 * c-common.c (invalid_array_size_error): Handle cst_size_not_constant.
1192
3fe53000
DM
11932019-02-16 David Malcolm <dmalcolm@redhat.com>
1194
1195 PR c++/88680
1196 * c-common.c (shorten_compare): Call fold_for_warn on op0 when
1197 implementing -Wtype-limits.
1198
28a8cef1
MS
11992019-02-11 Martin Sebor <msebor@redhat.com>
1200
1201 PR c++/87996
1202 * c-common.c (invalid_array_size_error): New function.
1203 (valid_array_size_p): Call it. Handle size as well as type.
1204 * c-common.h (valid_constant_size_p): New function.
1205 (enum cst_size_error): New type.
1206
ec2be203
DM
12072019-01-31 David Malcolm <dmalcolm@redhat.com>
1208
1209 PR c/89122
1210 * known-headers.cc (get_stdlib_header_for_name): Add
1211 {FLT|DBL|LDBL}_{MAX|MIN} to "hints" array.
1212
8936f047
JJ
12132019-01-31 Jakub Jelinek <jakub@redhat.com>
1214
1215 PR libstdc++/88170
1216 * c-pretty-print.c (pp_c_enumeration_constant): Print always as
1217 a C cast in pp_c_flag_gnu_v3 mode.
1218
6a335b96
JJ
12192019-01-29 Jakub Jelinek <jakub@redhat.com>
1220
1221 PR c/86125
1222 * c-common.c (c_common_nodes_and_builtins): Build type variants for
1223 builtin_structptr_types types even for C.
1224
2a06eba5
BE
12252019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
1226
1227 * c-warn.c (check_address_or_pointer_of_packed_member): Handle the case
1228 when rhs is of array type correctly. Fix handling of nested structures.
1229 Fix handling of indirect_ref together with nop_expr and/or addr_expr.
1230 (check_and_warn_address_or_pointer_of_packed_member): Fix handling of
1231 type casts within nested compound expressions.
1232
18a23298
JJ
12332019-01-22 Jakub Jelinek <jakub@redhat.com>
1234
1235 PR middle-end/88968
1236 * c-omp.c (c_finish_omp_atomic): For bitfield atomics, update type
1237 variable after using BIT_FIELD_REF.
1238
420183d9
L
12392019-01-18 H.J. Lu <hongjiu.lu@intel.com>
1240
1241 PR c/51628
1242 PR c/88664
1243 * c-common.h (warn_for_address_or_pointer_of_packed_member):
1244 Remove the boolean argument.
1245 * c-warn.c (check_address_of_packed_member): Renamed to ...
1246 (check_address_or_pointer_of_packed_member): This. Also
1247 warn pointer conversion.
1248 (check_and_warn_address_of_packed_member): Renamed to ...
1249 (check_and_warn_address_or_pointer_of_packed_member): This.
1250 Also warn pointer conversion.
1251 (warn_for_address_or_pointer_of_packed_member): Remove the
1252 boolean argument. Don't check pointer conversion here.
1253
99063eee
RS
12542019-01-15 Richard Sandiford <richard.sandiford@arm.com>
1255
1256 PR inline-asm/52813
1257 * c.opt (Wdeprecated): Move documentation and variable to common.opt.
1258
a30d0196
JJ
12592019-01-14 Jakub Jelinek <jakub@redhat.com>
1260
1261 * c-cppbuiltin.c (c_cpp_builtin): Define __cpp_guaranteed_copy_elision
1262 and __cpp_nontype_template_parameter_auto. Add a comment that
1263 __cpp_template_auto is deprecated.
1264
2d91f79d
TH
12652019-01-14 Tom Honermann <tom@honermann.net>
1266
1267 Implement P0482R5, char8_t: A type for UTF-8 characters and strings
1268 * c-common.c (c_common_reswords): Add char8_t.
1269 (fix_string_type): Use char8_t for the type of u8 string literals.
1270 (c_common_get_alias_set): char8_t doesn't alias.
1271 (c_common_nodes_and_builtins): Define char8_t as a builtin type in
1272 C++.
1273 (c_stddef_cpp_builtins): Add __CHAR8_TYPE__.
1274 (keyword_begins_type_specifier): Add RID_CHAR8.
1275 * c-common.h (rid): Add RID_CHAR8.
1276 (c_tree_index): Add CTI_CHAR8_TYPE and CTI_CHAR8_ARRAY_TYPE.
1277 Define D_CXX_CHAR8_T and D_CXX_CHAR8_T_FLAGS.
1278 Define char8_type_node and char8_array_type_node.
1279 * c-cppbuiltin.c (cpp_atomic_builtins): Predefine
1280 __GCC_ATOMIC_CHAR8_T_LOCK_FREE.
1281 (c_cpp_builtins): Predefine __cpp_char8_t.
1282 * c-lex.c (lex_string): Use char8_array_type_node as the type of
1283 CPP_UTF8STRING.
1284 (lex_charconst): Use char8_type_node as the type of CPP_UTF8CHAR.
1285 * c-opts.c: If not otherwise specified, enable -fchar8_t when
1286 targeting C++2a.
1287 * c.opt: Add the -fchar8_t command line option.
1288
23db6ced
MS
12892019-01-14 Martin Sebor <msebor@redhat.com>
1290
1291 PR target/88638
1292 * c-attribs.c (positional_argument): Call valid_format_string_type_p
1293 and issue errors if it fails.
1294 * c-common.h (valid_format_string_type_p): Declare.
1295 * c-format.c (valid_stringptr_type_p): Rename...
1296 (valid_format_string_type_p): ...to this and make extern.
1297 (handle_format_arg_attribute): Adjust to new name.
1298 (check_format_string): Same.
1299
234c3818
L
13002019-01-13 H.J. Lu <hongjiu.lu@intel.com>
1301
1302 * c-warn.c (warn_for_address_or_pointer_of_packed_member):
1303 Replace "may may" with "may" in warning message.
1304
d8fcab68
JJ
13052019-01-07 Jakub Jelinek <jakub@redhat.com>
1306
1307 PR c++/85052
1308 * c-common.h (enum rid): Add RID_BUILTIN_CONVERTVECTOR.
1309 (c_build_vec_convert): Declare.
1310 * c-common.c (c_build_vec_convert): New function.
1311
29d24852
MS
13122019-01-04 Martin Sebor <msebor@redhat.com>
1313
1314 PR c/88546
1315 * c-attribs.c (handle_copy_attribute): Avoid copying attribute leaf.
1316 Handle C++ empty throw specification and C11 _Noreturn.
1317 (has_attribute): Also handle C11 _Noreturn.
1318
9069a4c9
MS
13192019-01-04 Martin Sebor <msebor@redhat.com>
1320
1321 PR c/88363
1322 * c-attribs.c (positional_argument): Also accept enumerated types.
1323
a5544970
JJ
13242019-01-01 Jakub Jelinek <jakub@redhat.com>
1325
1326 Update copyright years.
1327
da77eace
L
13282018-12-20 H.J. Lu <hongjiu.lu@intel.com>
1329
1330 PR c/51628
1331 * c-common.h (warn_for_address_or_pointer_of_packed_member): New.
1332 * c-warn.c (check_alignment_of_packed_member): New function.
1333 (check_address_of_packed_member): Likewise.
1334 (check_and_warn_address_of_packed_member): Likewise.
1335 (warn_for_address_or_pointer_of_packed_member): Likewise.
1336 * c.opt: Add -Wno-address-of-packed-member.
1337
573767d4
DM
13382018-12-20 David Malcolm <dmalcolm@redhat.com>
1339
1340 PR c++/87504
1341 * c-warn.c (get_outermost_macro_expansion): New function.
1342 (spelled_the_same_p): Use it to unwind the macro expansions, and
1343 compare the outermost macro in each nested expansion, rather than
1344 the innermost.
1345
a14feb3c
DM
13462018-12-19 David Malcolm <dmalcolm@redhat.com>
1347
1348 PR c++/87504
1349 * c-common.h (warn_tautological_cmp): Convert 1st param from
1350 location_t to const op_location_t &.
1351 * c-warn.c (find_array_ref_with_const_idx_r): Call fold_for_warn
1352 when testing for INTEGER_CST.
1353 (warn_tautological_bitwise_comparison): Convert 1st param from
1354 location_t to const op_location_t &; use it to build a
1355 binary_op_rich_location, and use this.
1356 (spelled_the_same_p): New function.
1357 (warn_tautological_cmp): Convert 1st param from location_t to
1358 const op_location_t &. Warn for macro expansions if
1359 spelled_the_same_p. Use binary_op_rich_location.
1360
dfd7fdca
DM
13612018-12-19 David Malcolm <dmalcolm@redhat.com>
1362
1363 PR c++/43064
1364 PR c++/43486
1365 * c-common.c (unsafe_conversion_p): Fold any location wrapper.
1366 (verify_tree): Handle location wrappers.
1367 (c_common_truthvalue_conversion): Strip any location wrapper.
1368 Handle CONST_DECL.
1369 (fold_offsetof): Strip any location wrapper.
1370 (complete_array_type): Likewise for initial_value.
1371 (convert_vector_to_array_for_subscript): Call fold_for_warn on the
1372 index before checking for INTEGER_CST.
1373 * c-pretty-print.c (c_pretty_printer::primary_expression): Don't
1374 print parentheses around location wrappers.
1375 * c-warn.c (warn_logical_operator): Call fold_for_warn on op_right
1376 before checking for INTEGER_CST.
1377 (warn_tautological_bitwise_comparison): Call
1378 tree_strip_any_location_wrapper on lhs, rhs, and bitop's operand
1379 before checking for INTEGER_CST.
1380 (readonly_error): Strip any location wrapper.
1381 (warn_array_subscript_with_type_char): Strip location wrappers
1382 before checking for INTEGER_CST. Use the location of the index if
1383 available.
1384
5c8b3702
JM
13852018-12-06 Jason Merrill <jason@redhat.com>
1386
1387 PR c++/88136 - -Wdeprecated-copy false positives
1388 * c.opt (Wdeprecated-copy-dtor): New.
1389 (Wdeprecated-copy): Move to -Wextra.
1390
673670da
MS
13912018-11-29 Martin Sebor <msebor@redhat.com>
1392
1393 PR c/88172
1394 PR testsuite/88208
1395 * c-attribs.c (common_handle_aligned_attribute): Silently avoid setting
1396 alignments to values less than the target requires.
1397 (has_attribute): For attribute aligned consider both the attribute
1398 and the alignment bits.
1399 * c-common.c (c_init_attributes): Optionally issue a warning for
1400 zero alignment.
1401
04864ec8
MS
14022018-11-28 Martin Sebor <msebor@redhat.com>
1403
1404 PR c/88065
1405 PR c/87297
1406 * c-warn.c (sizeof_pointer_memaccess_warning): Bail if source
1407 or destination is an error.
1408
ace83db0
JJ
14092018-11-28 Jakub Jelinek <jakub@redhat.com>
1410
1411 PR c++/88215
1412 * c-ubsan.c: Include langhooks.h.
1413 (ubsan_instrument_division): Change gcc_assert that main variants
1414 of op0 and op1 types are equal to gcc_checking_assert that the
1415 main variants are compatible types.
1416
da193a27
EB
14172018-11-27 Eric Botcazou <ebotcazou@adacore.com>
1418
1419 * c-ada-spec.c: Include stringpool.h.
1420 (has_static_fields): Return false for incomplete types.
1421 (is_tagged_type): Likewise.
1422 (has_nontrivial_methods): Likewise.
1423 (dump_ada_node) <INTEGER_TYPE>: Deal specifically with __int128.
1424 (struct overloaded_name_hash): New structure.
1425 (struct overloaded_name_hasher): Likewise.
1426 (overloaded_names): New global variable.
1427 (init_overloaded_names): New static function.
1428 (overloaded_name_p): New predicate.
1429 (dump_ada_declaration) <TYPE_DECL>: Tidy up and set TREE_VISITED
1430 on the TYPE_STUB_DECL of the original type of a typedef, if any.
1431 <FUNCTION_DECL>: Bail out for an unsupported overloaded name.
1432 Remove always-true condition and dump forward types.
1433 (dump_ada_specs): Delete overloaded_names.
1434
98f08eb8
MS
14352018-11-20 Martin Sebor <msebor@redhat.com>
1436
1437 * c-attribs.c (type_for_vector_size): New function.
1438 (type_valid_for_vector_size): Same.
1439 (handle_vector_size_attribute): Move code to the functions above
1440 and call them.
1441 (validate_attribute, has_attribute): New functions.
1442 * c-common.h (has_attribute): Declare.
1443 (rid): Add RID_HAS_ATTRIBUTE_EXPRESSION.
1444 * c-common.c (c_common_resword): Same.
1445
2674fa47
JM
14462018-11-16 Jason Merrill <jason@redhat.com>
1447
1448 * c-lex.c (c_common_has_attribute): Handle likely/unlikely.
1449 * c-attribs.c (attr_cold_hot_exclusions): Make public.
1450
258b3854
JJ
14512018-11-16 Jakub Jelinek <jakub@redhat.com>
1452
1453 PR middle-end/87854
1454 * c-common.c (fix_string_type): Reject string literals larger than
1455 TYPE_MAX_VALUE (ssizetype) bytes.
1456
1d249509
MS
14572018-11-15 Martin Sebor <msebor@redhat.com>
1458
1459 PR c++/87541
1460 PR c++/87542
1461 * c-attribs.c (positional_argument): New function.
1462 (handle_alloc_size_attribute): Use it and simplify.
1463 (handle_alloc_align_attribute): Same.
1464 (handle_assume_aligned_attribute): Same.
1465 (handle_nonnull_attribute): Same.
1466 * c-common.c (check_function_arguments): Pass fntype to
1467 check_function_format.
1468 * c-common.h (check_function_format): Add an argument.
1469 (PosArgFlags, positional_argument): Declare new type and function.
1470 * c-format.c (decode_format_attr): Add arguments.
1471 (check_format_string, get_constant): Same.
1472 (convert_format_name_to_system_name): Adjust.
1473
478dd60d
DM
14742018-11-15 David Malcolm <dmalcolm@redhat.com>
1475
1476 PR other/19165
1477 * c-opts.c (c_diagnostic_finalizer): Add diagnostic_t param.
1478
8cca0163
JJ
14792018-11-14 Jakub Jelinek <jakub@redhat.com>
1480
8ee09943
JJ
1481 P1236R1 - Signed integers are two's complement
1482 * c-warn.c (maybe_warn_shift_overflow): Don't warn for c++2a.
1483 * c-ubsan.c (ubsan_instrument_shift): Make signed shifts
1484 with in-range second operand well defined for -std=c++2a.
1485
8cca0163
JJ
1486 PR other/88007
1487 * c-common.c (parse_optimize_options): Allocate option string from
1488 opts_obstack rather than as GC memory. Move the allocation after
1489 warning for invalid option.
1490
620e594b
DM
14912018-11-13 David Malcolm <dmalcolm@redhat.com>
1492
1493 * c-common.c (c_get_substring_location): Update for renaming of
1494 get_source_location_for_substring to get_location_within_string.
1495 * c-lex.c: Replace "source_location" with "location_t".
1496 * c-opts.c: Likewise.
1497 * c-ppoutput.c: Likewise.
1498
f9731de3
MS
14992018-11-13 Martin Sebor <msebor@redhat.com>
1500
1501 PR middle-end/81824
1502 * c-attribs.c (handle_copy_attribute): Exclude inlining attributes.
1503 (handle_tls_model_attribute): Improve diagnostics.
1504
e4bd6d5e
JM
15052018-11-12 Jason Merrill <jason@redhat.com>
1506
a6bb6b07
JM
1507 * c-cppbuiltin.c (c_cpp_builtins): Define
1508 __cpp_impl_destroying_delete.
1509
e4bd6d5e
JM
1510 * c-cppbuiltin.c (c_cpp_builtins): Change __cpp_explicit_bool to
1511 __cpp_conditional_explicit.
1512
79a2c428
MS
15132018-11-09 Martin Sebor <msebor@redhat.com>
1514
1515 PR middle-end/81824
1516 * c-attribs.c (handle_copy_attribute): New function.
1517
4c7bd361
MS
15182018-11-09 Martin Sebor <msebor@redhat.com>
1519
1520 PR c/87795
1521 * c-common.c (check_user_alignment): Use MAX_OFILE_ALIGNMENT.
1522
28567c40
JJ
15232018-11-08 Jakub Jelinek <jakub@redhat.com>
1524
1525 * c-common.h (c_finish_omp_taskgroup): Add CLAUSES argument.
1526 (c_finish_omp_atomic): Replace bool SEQ_CST argument with
1527 enum omp_memory_order MEMORY_ORDER.
1528 (c_finish_omp_flush): Add MO argument.
1529 (c_omp_depend_t_p, c_finish_omp_depobj): Declare.
1530 (c_finish_omp_for): Add FINAL_P argument.
1531 * c-omp.c: Include memmodel.h.
1532 (c_finish_omp_taskgroup): Add CLAUSES argument. Set
1533 OMP_TASKGROUP_CLAUSES to it.
1534 (c_finish_omp_atomic): Replace bool SEQ_CST argument with
1535 enum omp_memory_order MEMORY_ORDER. Set OMP_ATOMIC_MEMORY_ORDER
1536 instead of OMP_ATOMIC_SEQ_CST.
1537 (c_omp_depend_t_p, c_finish_omp_depobj): New functions.
1538 (c_finish_omp_flush): Add MO argument, if not MEMMODEL_LAST, emit
1539 __atomic_thread_fence call with the given value.
1540 (check_omp_for_incr_expr): Formatting fixes.
1541 (c_finish_omp_for): Add FINAL_P argument. Allow NE_EXPR
1542 even in OpenMP loops, diagnose if NE_EXPR and incr expression
1543 is not constant expression 1 or -1. Transform NE_EXPR loops
1544 with iterators pointers to VLA into LT_EXPR or GT_EXPR loops.
1545 (c_omp_check_loop_iv_r): Look for orig decl of C++ range for
1546 loops too.
1547 (c_omp_split_clauses): Add support for combined
1548 #pragma omp parallel master and
1549 #pragma omp {,parallel }master taskloop{, simd} constructs.
1550 Handle OMP_CLAUSE_IN_REDUCTION. Handle OMP_CLAUSE_REDUCTION_TASK.
1551 Handle OMP_CLAUSE_NONTEMPORAL. Handle splitting OMP_CLAUSE_IF
1552 also to OMP_SIMD. Copy OMP_CLAUSE_LASTPRIVATE_CONDITIONAL.
1553 (c_omp_predetermined_sharing): Don't return
1554 OMP_CLAUSE_DEFAULT_SHARED for const qualified decls.
1555 * c-pragma.c (omp_pragmas): Add PRAGMA_OMP_DEPOBJ and
1556 PRAGMA_OMP_REQUIRES.
1557 * c-pragma.h (enum pragma_kind): Likewise.
1558 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_NONTEMPORAL
1559 and PRAGMA_OMP_CLAUSE_{IN,TASK}_REDUCTION.
1560
204839e7
DM
15612018-11-08 David Malcolm <dmalcolm@redhat.com>
1562
1563 * c-format.c (gcc_dump_printf_char_table): Add entry for %f.
1564
d8010ee4
DM
15652018-11-08 David Malcolm <dmalcolm@redhat.com>
1566
1567 * c-format.c (local_cgraph_node_ptr_node): New variable.
1568 (gcc_dump_printf_char_table): Add entry for %C.
1569 (get_pointer_to_named_type): New function, taken from the handling
1570 code for "gimple *" from...
1571 (init_dynamic_diag_info): ...here. Add handling for
1572 "cgraph_node *".
1573 * c-format.h (T_CGRAPH_NODE): New.
1574
4be5c72c
JM
15752018-10-19 Jason Merrill <jason@redhat.com>
1576
1577 * c-cppbuiltin.c (c_cpp_builtins): Add
1578 __cpp_nontype_template_parameter_class.
1579
f3f6029d
NS
15802018-10-31 Nathan Sidwell <nathan@acm.org>
1581
ab5324fb
NS
1582 * c-opts.c (c_finish_options): Force command line macro
1583 location. Refactor to avoid repeating main debug hook.
1584 (push_command_line_include): Clarify comment.
1585
f3f6029d
NS
1586 * c-opts.c (c_finish_options): Adjust cpp_force_token_locations call.
1587
91e3ec29
MS
15882018-10-30 Martin Sebor <msebor@redhat.com>
1589
1590 PR middle-end/87041
1591 * c-format.c (check_format_types): Avoid diagnosing null pointer
1592 arguments to printf-family of functions.
1593
b5ff4f5c
MP
15942018-10-30 Marek Polacek <polacek@redhat.com>
1595
1596 Implement P0892R2, explicit(bool).
1597 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_explicit_bool.
1598
7e2de6df
DM
15992018-10-29 David Malcolm <dmalcolm@redhat.com>
1600
1601 * name-hint.h (name_hint::take_deferred): New member function.
1602
b2bf438c
DM
16032018-10-29 David Malcolm <dmalcolm@redhat.com>
1604
1605 PR c++/56856
1606 * c-common.c (check_function_sentinel): Call fold_for_warn on the
1607 argument.
1608 (check_function_restrict): Rename param "argarray" to
1609 "unfolded_argarray", and make a copy named "argarray", calling
1610 fold_for_warn on each argument.
1611 (check_function_arguments): Add note about responsibility for
1612 folding the arguments.
1613
9f936c86
JM
16142018-10-17 Joseph Myers <joseph@codesourcery.com>
1615
1616 * c-common.c (flag_isoc2x): New variable.
1617 * c-common.h (clk_c): Update comment to reference C2X.
1618 (flag_isoc99, flag_isoc11): Update comments to reference future
1619 standard versions in general.
1620 (flag_isoc2x): Declare.
1621 * c-opts.c (set_std_c2x): New function.
1622 (c_common_handle_option): Handle -std=c2x and -std=gnu2x.
1623 (set_std_c89, set_std_c99, set_std_c11, set_std_c17): Set
1624 flag_isoc2x to 0.
1625 * c.opt (Wc11-c2x-compat, std=c2x, std=gnu2x): New options.
1626
7a8a92c4
JM
16272018-10-17 Joseph Myers <joseph@codesourcery.com>
1628
1629 * c.opt (std=c17, std=c18, std=gnu17, std=gnu18, std=iso9899:2017)
1630 (std=iso9899:2018): Document C17 as published in 2018.
1631
4dc003ff
CL
16322018-10-12 Christophe Lyon <christophe.lyon@linaro.org>
1633
1634 PR c++/87364
1635 * c-pretty-print.c (c_pretty_printer::constant): Fix typo.
1636
79371671
WW
16372018-10-11 Will Wray <wjwray@gmail.com>
1638
1639 PR c++/87364
1640 * c-pretty-print.h (pp_c_type_cast): Prototype.
1641 (pp_c_integer_constant): Likewise.
1642 * c-pretty-print.c (pp_c_type_cast): No longer static.
1643 (pp_c_integer_constant): Likewise.
1644 (pp_c_enumeration_constant): Fix loop termination when finding
1645 name of constant. No longer returns a value. Call
1646 pp_c_integer_constant.
1647 (c_pretty_printer::constant): Update for changes to
1648 pp_c_enumeration_constant.
1649
46c62690
JJ
16502018-10-11 Jakub Jelinek <jakub@redhat.com>
1651
1652 * c-lex.c (c_common_has_attribute): Return 201803 instead of 20180312
1653 for no_unique_address.
1654
c24300ba
DM
16552018-10-09 David Malcolm <dmalcolm@redhat.com>
1656
1657 * c-common.c (c_option_controlling_cpp_error): Rename to...
1658 (c_option_controlling_cpp_diagnostic): ...this, and convert
1659 "reason" from int to enum.
1660 (c_cpp_error): Rename to...
1661 (c_cpp_diagnostic): ...this, converting level and reason to enums.
1662 * c-common.h (c_cpp_error): Rename to...
1663 (c_cpp_diagnostic): ...this, converting level and reason to enums.
1664 * c-opts.c (c_common_init_options): Update for renaming.
1665
8656dafa
RS
16662018-10-08 Richard Sandiford <richard.sandiford@arm.com>
1667
1668 PR c/87286
1669 * c-common.c (vector_types_compatible_elements_p): Use
1670 INTEGRAL_TYPE_P instead of checking only for INTEGER_TYPE.
1671
8cff0652
VK
16722018-10-04 Vinay Kumar <vinay.kumar@blackfigtech.com>
1673
1674 * c-attribs.c (get_priority): Add a warning flag warn_prio_ctor_dtor
1675 to generate constructor destructor priority warning.
1676 * c.opt (-Wprio-ctor-dtor): New option.
1677
bedf03a2
JM
16782018-10-01 Jason Merrill <jason@redhat.com>
1679
1680 * c-lex.c (c_common_has_attribute): Add no_unique_address.
1681
6cc430c1
EB
16822018-10-01 Eric Botcazou <ebotcazou@adacore.com>
1683
1684 * c-ada-spec.c (get_underlying_decl): Get to the main type variant.
1685 (dump_ada_node): Add const keyword.
1686
87677ac7
ML
16872018-09-25 Martin Liska <mliska@suse.cz>
1688
1689 * c-common.c (c_common_truthvalue_conversion):
1690 Remove Pascal from documentation.
1691
518196cb
EB
16922018-09-21 Eric Botcazou <ebotcazou@adacore.com>
1693
1694 * c-ada-spec.c: Include diagnostic.h.
1695 (dump_ada_declaration) <RECORD_TYPE>: Issue a warning on packed layout.
1696
a599af84
MP
16972018-09-19 Marek Polacek <polacek@redhat.com>
1698
1699 * c.opt (Wclass-conversion): New.
1700
9c4a4b3c
DM
17012018-09-17 David Malcolm <dmalcolm@redhat.com>
1702
1703 * c-format.c (range_label_for_format_type_mismatch::get_text):
1704 Update for new param.
1705
c896ecfe
DM
17062018-09-17 David Malcolm <dmalcolm@redhat.com>
1707
1708 * c-format.c (format_warning_at_char): Update for introduction of
1709 format_string_diagnostic_t.
1710 (format_type_warning): Likewise.
1711
80c6d1f4
MJ
17122018-09-17 Martin Jambor <mjambor@suse.cz>
1713
1714 PR c/63886
1715 * c.opt (Wabsolute-value): New.
1716
6d900107
BE
17172018-09-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
1718
1719 * c-common.c (complete_flexible_array_elts): New helper function.
1720 * c-common.h (complete_flexible_array_elts): Declare.
1721
b5764229
BE
17222018-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
1723
1724 * c-common.c (braced_list_to_string): Remove eval parameter.
1725 Add some more checks. Always create zero-terminated STRING_CST.
1726 * c-common.h (braced_list_to_string): Adjust prototype.
1727
85204e23
DM
17282018-08-27 David Malcolm <dmalcolm@redhat.com>
1729
1730 PR 87091
1731 * c-common.c (c_cpp_error): Update for conversion of show_caret_p
1732 to a tri-state.
1733 (maybe_suggest_missing_token_insertion): Likewise.
1734 (maybe_add_include_fixit): Add param "override_location". If set,
1735 and source-printing is enabled, then override the rich_location's
1736 primary location with that of the insertion point for the fix-it
1737 hint, marking it with SHOW_LINES_WITHOUT_RANGE.
1738 * c-common.h (extern void maybe_add_include_fixit): Add bool
1739 param.
1740 * c-format.c (selftest::test_type_mismatch_range_labels): Update
1741 for conversion of show_caret_p to a tri-state.
1742 * c-warn.c (warn_for_restrict): Likewise.
1743 * known-headers.cc
1744 (suggest_missing_header::~suggest_missing_header): Update call to
1745 maybe_add_include_fixit to suggest overriding the location, as it
1746 is for a note.
1747
3d78e008
ML
17482018-08-27 Martin Liska <mliska@suse.cz>
1749
1750 * c-common.c (check_function_restrict): Use new function
92a285c1
ML
1751 fndecl_built_in_p and remove check for FUNCTION_DECL if
1752 possible.
3d78e008
ML
1753 (check_builtin_function_arguments): Likewise.
1754 (reject_gcc_builtin): Likewise.
1755 * c-warn.c (sizeof_pointer_memaccess_warning): Likewise.
1756
b5be6d0c
MP
17572018-08-26 Marek Polacek <polacek@redhat.com>
1758
1759 PR c++/87029, Implement -Wredundant-move.
1760 * c.opt (Wredundant-move): New option.
1761
79ca9c35
MP
17622018-08-21 Marek Polacek <polacek@redhat.com>
1763
1764 PR c++/86981, Implement -Wpessimizing-move.
1765 * c.opt (Wpessimizing-move): New option.
1766
097f82ec
DM
17672018-08-20 David Malcolm <dmalcolm@redhat.com>
1768
1769 PR other/84889
1770 * c-attribs.c (common_handle_aligned_attribute): Add
1771 auto_diagnostic_group instance.
1772 * c-indentation.c (warn_for_misleading_indentation): Likewise.
1773 * c-opts.c (c_common_post_options): Likewise.
1774 * c-warn.c (warn_logical_not_parentheses): Likewise.
1775 (warn_duplicated_cond_add_or_warn): Likewise.
1776 (warn_for_multistatement_macros): Likewise.
1777
3fb558b1
NS
17782018-08-20 Nathan Sidwell <nathan@acm.org>
1779
1780 * c-ada-spec.c (macro_length, dump_ada_macros): Adjust macro parm
1781 access.
1782
800c0e98
NS
17832018-08-17 Nathan Sidwell <nathan@acm.org>
1784
1785 * c-cppbuiltin.c (struct lazy_hex_fp_value_struct): Remove macro
1786 field.
1787 (laxy_hex_fp_value_count): Make unsigned.
1788 (lazy_hex_fp_value): Provided with macro & lazy number. Directly
1789 manipulate the macro.
1790 (builtin_defin_with_hex_fp_value): Adjust callback name, use
1791 cpp_define_lazily.
1792
6f795a92
DM
17932018-08-17 David Malcolm <dmalcolm@redhat.com>
1794
1795 * c-format.c (enum format_type): Add gcc_dump_printf_format_type.
1796 (gcc_dump_printf_length_specs): New.
1797 (gcc_dump_printf_flag_pairs): New.
1798 (gcc_dump_printf_flag_specs): New.
1799 (gcc_dump_printf_char_table): New.
1800 (format_types_orig): Add entry for "gcc_dump_printf".
1801 (init_dynamic_diag_info): Set up length_char_specs and
1802 conversion_specs for gcc_dump_printf_format_type.
1803 (handle_format_attribute): Handle gcc_dump_printf_format_type.
1804
c5d725c0
NS
18052018-08-17 Nathan Sidwell <nathan@acm.org>
1806
10f04917
NS
1807 * c-ada-spec.c (macro_length, dump_ada_macros): Constify.
1808
c5d725c0
NS
1809 * c-ada-spec.c: Don't #include "cpp-id-data.h"
1810 * c-cppbuiltin.c: Likewise.
1811
c0c12356
ML
18122018-08-17 Martin Liska <mliska@suse.cz>
1813
1814 * c.opt: Remove Warn, Init and Report for options with
92a285c1
ML
1815 Ignore/Deprecated flag. Warning is done automatically for
1816 Deprecated flags.
c0c12356 1817
10fcc142
DM
18182018-08-16 David Malcolm <dmalcolm@redhat.com>
1819
1820 PR c++/70693
1821 * c-common.c (selftest::c_family_tests): Call
1822 selftest::c_indentation_c_tests.
1823 * c-common.h (selftest::c_indentation_c_tests): New decl.
1824 * c-indentation.c: Include "selftest.h".
1825 (next_tab_stop): Add "tab_width" param, rather than accessing
1826 cpp_opts.
1827 (get_visual_column): Likewise. Clarify comment. Bulletproof
1828 against reading past the end of the line.
1829 (get_first_nws_vis_column): Add "tab_width" param.
1830 (detect_intervening_unindent): Likewise.
1831 (should_warn_for_misleading_indentation): Read tab width from
1832 cpp_opts and pass around.
1833 (selftest::test_next_tab_stop): New test.
1834 (selftest::assert_get_visual_column_succeeds): New function.
1835 (ASSERT_GET_VISUAL_COLUMN_SUCCEEDS): New macro.
1836 (selftest::assert_get_visual_column_fails): New function.
1837 (ASSERT_GET_VISUAL_COLUMN_FAILS): New macro.
1838 (selftest::test_get_visual_column): New test.
1839 (selftest::c_indentation_c_tests): New function.
1840
3f6677f4
NS
18412018-08-16 Nathan Sidwell <nathan@acm.org>
1842
1843 * c-ada-spec.c (count_ada_macro): Use cpp_user_macro_p.
1844 (store_ada_macro): Likewise.
1845 * c-ppoutput.c (cb_used_define, dump_macro): Likewise.
1846 * c-spellcheck.cc (should-suggest_as_macro_p): Likewise,
1847
96e6ae57
DM
18482018-08-15 David Malcolm <dmalcolm@redhat.com>
1849
1850 * c-format.c: Include "selftest-diagnostic.h" and
1851 "gcc-rich-location.h".
1852 (format_warning_at_char): Pass NULL for new label params of
1853 format_warning_va.
1854 (class indirection_suffix): New class.
1855 (class range_label_for_format_type_mismatch): New class.
1856 (format_type_warning): Move logic for generating "*" suffix to
1857 class indirection_suffix. Create "fmt_label" and "param_label"
1858 to show their types, and pass them to the
1859 format_warning_at_substring calls.
1860 (selftest::test_type_mismatch_range_labels): New test.
1861 (selftest::c_format_c_tests): Call it.
1862
23aa9f7c
MS
18632018-08-13 Martin Sebor <msebor@redhat.com>
1864
1865 PR tree-optimization/71625
1866 * c-common.c (braced_list_to_string): New function.
1867 * c-common.h (braced_list_to_string): Declare it.
1868
f10a9135
NS
18692018-08-08 Nathan Sidwell <nathan@acm.org>
1870
1871 * c-common.c (try_to_locate_new_include_inertion_point): Use
1872 linemap_included_from_linemap.
1873 * c-lex.c (fe_file_change): Use linemap_included_from.
1874 * c-ppoutput.c (pp_file_change): Likewise.
1875
8a45b051
MS
18762018-08-01 Martin Sebor <msebor@redhat.com>
1877
1878 PR tree-optimization/86650
ab20d992 1879 * c-format.c (gcc_tdiag_char_table): Update comment for "%G".
8a45b051
MS
1880 (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Same.
1881 (init_dynamic_diag_info): Update from "gcall *" to "gimple *".
1882 * c-format.h (T89_G): Update to be "gimple *" rather than
1883 "gcall *".
1884 (local_gcall_ptr_node): Rename...
1885 (local_gimple_ptr_node): ...to this.
1886
e540ccc0
DM
18872018-07-31 David Malcolm <dmalcolm@redhat.com>
1888
1889 * c-format.c (PP_FORMAT_CHAR_TABLE): New macro, based on existing
1890 table entries for gcc_diag_char_table, and the 'Z' entry from
1891 gcc_tdiag_char_table, changing the "chain" entry for 'Z' from
1892 &gcc_tdiag_char_table[0] to &gcc_diag_char_table[0].
1893 (gcc_diag_char_table): Use PP_FORMAT_CHAR_TABLE, implicitly
1894 adding missing "Z" for this table. Remove erroneous "G" and "K"
1895 entries.
1896 (gcc_tdiag_char_table): Use PP_FORMAT_CHAR_TABLE. Remove "v".
1897 (gcc_cdiag_char_table): Use PP_FORMAT_CHAR_TABLE.
1898 (gcc_cxxdiag_char_table): Use PP_FORMAT_CHAR_TABLE. Remove "v".
1899
425fc685
RE
19002018-07-31 Richard Earnshaw <rearnsha@arm.com>
1901
1902 * c-common.c (speculation_safe_resolve_call): New function.
1903 (speculation_safe_resolve_params): New function.
1904 (speculation_safe_resolve_return): New function.
1905 (resolve_overloaded_builtin): Handle __builtin_speculation_safe_value.
1906 * c-cppbuiltin.c (c_cpp_builtins): Add pre-define for
1907 __HAVE_SPECULATION_SAFE_VALUE.
1908
181463c2
DM
19092018-07-20 David Malcolm <dmalcolm@redhat.com>
1910
1911 * c-common.c (c_cpp_error): Remove redundant "line_table"
1912 parameter from call to rich_location::set_range.
1913 (maybe_suggest_missing_token_insertion): Likewise.
1914
0d7f9065
MS
19152018-07-20 Martin Sebor <msebor@redhat.com>
1916
1917 PR middle-end/82063
ab20d992 1918 * c.opt (-Warray-bounds): Remove redundant -Wall.
0d7f9065 1919
00abf86c
MS
19202018-07-20 Martin Sebor <msebor@redhat.com>
1921
1922 PR middle-end/82063
1923 * c-common.h (c_common_handle_option): Change function argument
1924 to HOST_WIDE_INT.
1925 * c-opts.c (c_common_init_options): Same.
1926 (c_common_handle_option): Same. Remove special handling of
1927 OPT_Walloca_larger_than_ and OPT_Wvla_larger_than_.
1928 * c.opt (-Walloc-size-larger-than, -Walloca-larger-than): Change
1929 options to take a HOST_WIDE_INT argument and accept a byte-size
1930 suffix. Initialize.
1931 (-Wvla-larger-than): Same.
1932 (-Wno-alloc-size-larger-than, -Wno-alloca-larger-than): New.
1933 (-Wno-vla-larger-than): Same.
1934
9b452033
JJ
19352018-07-12 Jakub Jelinek <jakub@redhat.com>
1936
1937 * c-attribs.c (c_common_attribute_table): Add
1938 "omp declare target implicit" attribute.
1939
cd0762f3
RB
19402018-07-12 Richard Biener <rguenther@suse.de>
1941
1942 PR c/86453
1943 * c-attribs.c (handle_packed_attribute): Do not build a variant
1944 type with TYPE_PACKED, instead ignore the attribute if we may
1945 not apply to the original type.
1946
0b27c3ed
JJ
19472018-07-10 Jakub Jelinek <jakub@redhat.com>
1948
1949 PR c++/86443
1950 * c-omp.c (c_omp_check_loop_iv_r, c_omp_check_loop_iv): Allow declv
1951 to contain TREE_LIST for both the original class iterator and the
1952 "last" helper var.
1953
e730a0ef
EB
19542018-07-07 Eric Botcazou <ebotcazou@adacore.com>
1955
1956 * c-ada-spec.c (to_ada_name): Remove index parameter.
1957 (pp_ada_tree_identifier): Likewise.
1958 (dump_ada_macros): Adjust call to to_ada_name.
1959 (struct overloaded_name_hash): Delete.
1960 (struct overloaded_name_hasher): Likewise.
1961 (overloaded_names): Likewise.
1962 (compute_overloading_index): Likewise.
1963 (dump_ada_decl_name): Do not call compute_overloading_index and
1964 adjust calls to pp_ada_tree_identifier.
1965 (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
1966 (dump_ada_import): Add spc parameter and switch to aspect syntax.
1967 (dump_ada_function_declaration): Adjust call to pp_ada_tree_identifier.
1968 (dump_ada_enum_type): Remove type and display_convention parameters.
1969 Adjust calls to pp_ada_tree_identifier.
1970 (dump_ada_node): Likewise and for dump_ada_structure.
1971 (dump_nested_type) <ENUMERAL_TYPE>: Adjust call to dump_ada_enum_type
1972 and tidy up.
1973 <RECORD_TYPE>: Adjust call to dump_ada_structure and switch to aspect
1974 syntax.
1975 (print_constructor): Adjust call to pp_ada_tree_identifier.
1976 (print_destructor): Likewise.
1977 (dump_ada_declaration): Switch to aspect syntax.
1978 (dump_ada_structure): Likewise and tidy up. Replace display_convention
1979 parameter with nested parameter.
1980 (dump_ads): Emit pragma Ada_2012 in lieu of pragma Ada_2005.
1981 (dump_ada_specs): Do not delete overloaded_names table.
1982
8de583fc
PB
19832018-07-06 Peter Bergner <bergner@linux.ibm.com>
1984
1985 PR target/86324
e730a0ef 1986 * c-attribs.c (handle_mode_attribute): Call translate_mode_attribute
8de583fc
PB
1987 target hook.
1988
09cff37b
NS
19892018-07-05 Nathan Sidwell <nathan@acm.org>
1990
1991 * c-lex.c (fe_file_change): Check SYSTEM_IMPLICIT_EXTERN_C not
1992 NO_IMPLICIT_EXTERN_C.
1993
98086b2b
ML
19942018-06-28 Martin Liska <mliska@suse.cz>
1995
1996 * cppspec.c: Include opt-suggestions.h.
1997
ab20d992
JJ
19982018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
1999 Thomas Schwinge <thomas@codesourcery.com>
829c6349
CLT
2000 Cesar Philippidis <cesar@codesourcery.com>
2001
2002 * c-pragma.h (enum pragma_omp_clause): Add
2003 PRAGMA_OACC_CLAUSE_{FINALIZE,IF_PRESENT}. Remove
2004 PRAGMA_OACC_CLAUSE_PRESENT_OR_{COPY,COPYIN,COPYOUT,CREATE}.
2005
f41b7612
JJ
20062018-06-20 Jakub Jelinek <jakub@redhat.com>
2007
2008 PR c++/86210
2009 * c-common.c (check_nonnull_arg): Use fold_for_warn. Adjust obsolete
2010 comment.
2011
4252ccd7
MS
20122018-06-18 Martin Sebor <msebor@redhat.com>
2013
2014 PR middle-end/85602
2015 * c-warn.c (sizeof_pointer_memaccess_warning): Check for attribute
2016 nonstring.
2017
e197e64e
KV
20182018-06-16 Kugan Vivekanandarajah <kuganv@linaro.org>
2019
2020 * c-common.c (c_common_truthvalue_conversion): Handle ABSU_EXPR.
2021
34a7a230
JM
20222018-06-13 Jason Merrill <jason@redhat.com>
2023
5cef3733
JM
2024 * c-opts.c (c_common_post_options): Warn about useless -Wabi.
2025 (c_common_handle_option) [OPT_Wabi_]: Remove flag_abi_compat_version
2026 handling.
2027
34a7a230
JM
2028 PR c++/86094 - wrong code with defaulted move ctor.
2029 * c-opts.c (c_common_post_options): Bump the current ABI version to
2030 13. Set warn_abi_version and flag_abi_compat_version to the current
2031 version rather than 0. Fix defaulting flag_abi_compat_version from
2032 warn_abi_version.
2033
bb0f14ae
MS
20342018-06-12 Martin Sebor <msebor@redhat.com>
2035
2036 PR c/85931
2037 * c-warn.c (sizeof_pointer_memaccess_warning): Avoid warning when
2038 sizeof source and destination yields the same value.
2039
3713f2e2
ML
20402018-06-12 Martin Liska <mliska@suse.cz>
2041
2042 * c.opt: Make MPX-related options as Deprecated.
2043
4af78ef8
DM
20442018-06-08 David Malcolm <dmalcolm@redhat.com>
2045
2046 * c-pretty-print.c (c_pretty_printer::statement): Use TDF_NONE
2047 rather than 0.
2048
31db0fe0
ML
20492018-06-08 Martin Liska <mliska@suse.cz>
2050
2051 * c-attribs.c (handle_bnd_variable_size_attribute): Remove support
2052 for MPX (macros, related functions, fields in cgraph_node, ...).
2053 (handle_bnd_legacy): Likewise.
2054 (handle_bnd_instrument): Likewise.
2055 * c.opt: Likewise.
2056
fe16acf2
JJ
20572018-06-06 Jakub Jelinek <jakub@redhat.com>
2058
2059 PR c++/86068
2060 * c-cppbuiltin.c (c_cpp_builtins): Fix a typo, set
2061 __cpp_transactional_memory to 201500 instead of 210500.
2062
4dbdb49b
JM
20632018-06-06 Jason Merrill <jason@redhat.com>
2064
2065 PR c++/85710 - ICE with -Wmemset-elt-size.
2066 * c-warn.c (warn_for_memset): Don't crash on incomplete element type.
2067
f8ad043f
JM
20682018-06-01 Jason Merrill <jason@redhat.com>
2069
2070 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_deduction_guides to
2071 201703.
2072
abc24d93
EB
20732018-06-01 Eric Botcazou <ebotcazou@adacore.com>
2074
2075 * c-ada-spec.c (dump_ada_declaration) <TYPE_DECL>: Generate a forward
2076 declaration for a typedef independently of whether the declaration of
2077 the subtype is generated.
2078
d258f4aa
MS
20792018-05-31 Martin Sebor <msebor@redhat.com>
2080
2081 PR c/82063
2082 * c.opt (-Wno-alloc-size-larger-than): New option.
2083
b67b9225
DP
20842018-04-22 David Pagan <dave.pagan@oracle.com>
2085
2086 PR c/55976
2087 * c-opts.c (c_common_post_options): Set default for warn_return_type
ab20d992 2088 for C++/C++ with ObjC extensions only. For C, makes it possible to
b67b9225
DP
2089 differentiate between default (no option), -Wreturn-type, and
2090 -Wno-return-type.
2091
04eb9c55
JM
20922018-05-29 Jason Merrill <jason@redhat.com>
2093
2094 * c.opt (Winit-list-lifetime): New flag.
2095
b0c31bc6
BE
20962018-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
2097
2098 * c-lex.c (get_fileinfo): Use splay_tree_compare_strings and
2099 splay_tree_delete_pointers.
2100
44284983
JJ
21012018-05-26 Jakub Jelinek <jakub@redhat.com>
2102
2103 PR bootstrap/85921
2104 * c-warn.c (diagnose_mismatched_attributes): Remove unnecessary
2105 noinline variable to workaround broken kernel headers.
2106
b46b715d
JM
21072018-05-18 Jason Merrill <jason@redhat.com>
2108
2109 * c.opt (Wdeprecated-copy): New flag.
2110
40659769
ML
21112018-05-17 Martin Liska <mliska@suse.cz>
2112
2113 * c-warn.c (overflow_warning): Do not use
2114 space in between 'G_' and '('.
2115
403962ea
JM
21162018-05-09 Jason Merrill <jason@redhat.com>
2117
2118 * c-common.c (valid_array_size_p): Add complain parameter.
2119 * c-common.h: ...which defaults to true.
2120
1c9ee609
JJ
21212018-05-11 Jakub Jelinek <jakub@redhat.com>
2122
2123 PR c/85696
2124 * c-omp.c (c_omp_predetermined_sharing): Return
2125 OMP_CLAUSE_DEFAULT_SHARED for artificial vars with integral type.
2126
19916065
ML
21272018-05-11 Martin Liska <mliska@suse.cz>
2128
92a285c1 2129 PR sanitizer/85556
19916065
ML
2130 * c-attribs.c (handle_no_sanitize_attribute): Iterate all
2131 TREE_LIST values.
2132
79e7b1fe
JJ
21332018-05-10 Jakub Jelinek <jakub@redhat.com>
2134
2135 PR c++/85662
2136 * c-common.h (fold_offsetof_1): Removed.
2137 (fold_offsetof): Add TYPE argument defaulted to size_type_node and
2138 CTX argument defaulted to ERROR_MARK.
2139 * c-common.c (fold_offsetof_1): Renamed to ...
2140 (fold_offsetof): ... this. Remove wrapper function. Add TYPE
2141 argument, convert the pointer constant to TYPE and use size_binop
2142 with PLUS_EXPR instead of fold_build_pointer_plus if type is not
2143 a pointer type. Adjust recursive calls.
2144
86c12f76
EB
21452018-05-10 Eric Botcazou <ebotcazou@adacore.com>
2146
2147 PR c++/85400
2148 * c-attribs.c (handle_visibility_attribute): Do not set no_add_attrs.
2149
ee336e84
NS
21502018-05-07 Nathan Sidwell <nathan@acm.org>
2151
2152 * c.opt (ffor-scope): Remove functionality, issue warning.
2153
6c072e21
NS
21542018-05-03 Nathan Sidwell <nathan@acm.org>
2155
2156 * c.opt (ffriend-injection): Remove functionality, issue warning.
2157
2cc7d3a7
DM
21582018-05-01 David Malcolm <dmalcolm@redhat.com>
2159
2160 PR c/84258
2161 * c-format.c (struct format_check_results): Add field
2162 "number_non_char".
2163 (check_format_info): Initialize it, and warn if encountered.
2164 (check_format_arg): Distinguish between wide char and
2165 everything else when detecting arrays of non-char.
2166
7761dfbe
DM
21672018-04-30 David Malcolm <dmalcolm@redhat.com>
2168
2169 * c-format.c (get_corrected_substring): Update for
2170 location_get_source_line returning a char_span. Use a char_span
2171 when handling the prefix of the correction.
2172 * c-indentation.c (get_visual_column): Update for
2173 location_get_source_line returning a char_span.
2174 (get_first_nws_vis_column): Likewise.
2175
62e98ef1
DM
21762018-03-29 David Malcolm <dmalcolm@redhat.com>
2177
2178 PR c++/84269
2179 * known-headers.cc (get_stdlib_header_for_name): Add various names
2180 from <assert.h>, <string.h>, and <memory.h>; add more names from
2181 <stdio.h>.
2182
a7dea617
JJ
21832018-03-27 Jakub Jelinek <jakub@redhat.com>
2184
2185 PR c++/85061
2186 * c-common.c (fold_offsetof_1) <case COMPOUND_EXPR>: Assert that
2187 get_base_address of the second operand is a VAR_P, rather than the
2188 operand itself, and use gcc_checking_assert instead of gcc_assert.
2189
889a3a30
MP
21902018-03-23 Marek Polacek <polacek@redhat.com>
2191
2192 PR c++/85045
2193 * c-pretty-print.c (c_pretty_printer::multiplicative_expression)
2194 <case RDIV_EXPR>: Tweak condition.
2195
452154b9
EB
21962018-03-20 Eric Botcazou <ebotcazou@adacore.com>
2197
2198 * c-ada-spec.c (pp_ada_tree_identifier): Deal specifically with _Bool.
2199
63ecb626
JJ
22002018-03-16 Jakub Jelinek <jakub@redhat.com>
2201
ce811fc4
JJ
2202 PR c/84909
2203 * c-warn.c (conversion_warning): Replace "to to" with "to" in
2204 diagnostics.
2205
63ecb626
JJ
2206 PR c/84910
2207 * c-warn.c (diagnose_mismatched_attributes): Remove trailing space from
2208 diagnostics.
2209
a1295eec
RB
22102018-03-16 Richard Biener <rguenther@suse.de>
2211
2212 PR c/84873
2213 * c-gimplify.c (c_gimplify_expr): Revert previous change. Instead
2214 unshare the possibly folded expression.
2215
919674fb
RB
22162018-03-15 Richard Biener <rguenther@suse.de>
2217
2218 PR c/84873
2219 * c-gimplify.c (c_gimplify_expr): Do not fold expressions.
2220
f99309b2
MS
22212018-03-13 Martin Sebor <msebor@redhat.com>
2222
2223 PR tree-optimization/84725
2224 * c-attribs.c (handle_nonstring_attribute): Allow attribute nonstring
2225 with all three narrow character types, including their qualified forms.
2226
e9b9fa4c
MS
22272018-03-12 Martin Sebor <msebor@redhat.com>
2228
2229 PR tree-optimization/83456
ab20d992 2230 * c-common.c (check_function_restrict): Return bool.
e9b9fa4c
MS
2231 Restore checking of bounded built-in functions.
2232 (check_function_arguments): Also return the result
2233 of warn_for_restrict.
ab20d992
JJ
2234 * c-common.c (check_function_restrict): Return bool.
2235 * c-warn.c (warn_for_restrict): Return bool.
e9b9fa4c 2236
0805d020
MP
22372018-03-02 Marek Polacek <polacek@redhat.com>
2238
2239 PR c++/84171
2240 * c-warn.c (warn_for_sign_compare): Bail out if any of the operands
2241 is erroneous.
2242
ed2a2f08
TS
22432018-03-02 Thomas Schwinge <thomas@codesourcery.com>
2244
2245 * c-attribs.c (c_common_attribute_table): Remove "cilk simd
2246 function".
2247
90abdde0
MP
22482018-03-01 Marek Polacek <polacek@redhat.com>
2249
2250 PR c++/84639
2251 * c-attribs.c (common_handle_aligned_attribute): Don't use invalid
2252 alignment in computation.
2253
c6db43fa
EB
22542018-02-28 Eric Botcazou <ebotcazou@adacore.com>
2255
2256 * c-ada-spec.c (dump_ada_node) <NULLPTR_TYPE>: New case.
2257 <REAL_TYPE>: Deal specifically with _Float128/__float128.
2258
9e25c7ed
EB
22592018-02-28 Eric Botcazou <ebotcazou@adacore.com>
2260
2261 * c-ada-spec.c (dump_ada_double_name) <ENUMERAL_TYPE>: New case.
2262 (is_char_array): Take a type instead of a declaration.
2263 (dump_ada_array_type): Likewise.
2264 (is_simple_enum): Minor tweak.
2265 (dump_ada_enum_type): New function extracted from...
2266 (dump_ada_node) <ENUMERAL_TYPE>: ...here. Invoke it.
2267 <INTEGER_TYPE>: Remove unreachable code.
2268 <RECORD_TYPE>: Likewise. Minor tweaks.
2269 (dump_nested_type) <ARRAY_TYPE>: Adjust to above changes.
2270 <ENUMERAL_TYPE>: New case.
2271 <RECORD_TYPE>: Factor out common code.
2272 (dump_ada_declaration) <ARRAY_TYPE>: Adjust to above changes.
2273 Minor tweaks. Deal with enumeral types.
2274 (dump_ada_structure): Minor tweaks.
2275
09de3550
EB
22762018-02-28 Eric Botcazou <ebotcazou@adacore.com>
2277
2278 * c-ada-spec.c (dump_ada_node) <POINTER_TYPE>: Do not use generic
2279 address for incomplete structures.
2280 (dump_forward_type): Do not bail out for incomplete structures.
2281 (dump_ada_declaration): Do not special-case incomplete structures
2282 for subtypes. Dump them as null records for types.
2283
095d8d4b
EB
22842018-02-28 Eric Botcazou <ebotcazou@adacore.com>
2285
2286 * c-ada-spec.c (dump_ada_import): Use boolean and fix formatting.
2287 (is_char_array): Fix formatting.
2288 (dump_template_types): Likewise.
2289 (dump_generic_ada_node): Rename into...
2290 (dump_ada_node): ...this.
2291 <POINTER_TYPE>: Remove superfluous space. Use generic address for
2292 incomplete structures and not for empty structures. Do not use it
2293 when forward declarations are needed.
2294 (dump_forward_type): New function.
2295 (dump_nested_types): Remove FORWARD parameter. Do not consider
2296 TREE_VISITED and do not generate a forward declaration. Only dump
2297 original nested types for nested declaration.
2298 (dump_nested_type) <POINTER_TYPE>: Call dump_forward_type.
2299 <ARRAY_TYPE>: Likewise if the component type is an anonymous pointer.
2300 <RECORD_TYPE>: Do not consider TREE_VISITED.
2301 (dump_ada_declaration): Use booleans and fix formatting throughout.
2302 <TYPE_DECL>: Skip incomplete structures and not empty structures.
2303 Call dump_forward_type instead of dump_nested_types for a typedef.
2304 Remove superfluous check and adjust call to dump_nested_types.
2305 <POINTER_TYPE>: Call dump_forward_type and fall through.
2306 (dump_ada_struct_decl): Rename into...
2307 (dump_ada_structure): ...this. Do not special-case empty structures.
2308
d4cfd486
MS
23092018-02-27 Martin Sebor <msebor@redhat.com>
2310
2311 PR c++/83871
2312 * c.opt (-Wmissing-attributes): New option.
2313
b22dbd03
ML
23142018-02-21 Martin Liska <mliska@suse.cz>
2315
2316 * c.opt (Wcatch-value=): Add IntegerRange.
2317
883dfe2a
JM
23182018-02-15 Jason Merrill <jason@redhat.com>
2319
2320 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_deduction_guides.
2321
0444aa9c
NS
23222018-02-09 Nathan Sidwell <nathan@acm.org>
2323
2324 PR c/84293
2325 * c-common.h (strict_aliasing_warning): Drop OTYPE arg, insert LOC
2326 arg.
2327 * c-warn.c (strict_aliasing_warning): Drop OTYPE arg, require LOC
2328 arg. Adjust.
2329
cea71f0a
MS
23302018-02-09 Martin Sebor <msebor@redhat.com>
2331
2332 PR lto/84212
2333 * c.opt (-Wstringop-overflow, -Warray-bounds): Add LTO.
2334 (-Walloc-size-larger-than, -Wformat-truncation=): Same.
2335 (-Wmaybe-uninitialized, -Wnonnull, -Wrestrict): Same.
2336 (-Wstrict-overflow, -Wsuggest-attribute): Same.
2337 (-Wuninitialized): Same.
2338
8c8b7be5
EB
23392018-02-09 Eric Botcazou <ebotcazou@adacore.com>
2340
2341 * c-ada-spec.c (dump_ada_declaration): Do not generate the 'constant'
2342 keyword for components.
2343
7c30b12a
PC
23442018-02-02 Paolo Carlini <paolo.carlini@oracle.com>
2345
2346 * c-common.h (DECL_UNNAMED_BIT_FIELD): New.
2347
eece7fe5
JK
23482018-02-02 Julia Koval <julia.koval@intel.com>
2349
2350 * c-common.h (omp_clause_mask): Move to wide_int_bitmask.h.
2351
7d07a93a
MP
23522018-01-29 Marek Polacek <polacek@redhat.com>
2353
2354 PR c/83966
2355 * c-format.c (check_function_format): Check current_function_decl.
2356
53723269
JJ
23572018-01-27 Jakub Jelinek <jakub@redhat.com>
2358
2359 * c-cppbuiltin.c (c_cpp_builtins): Use ggc_strdup for the fp_suffix
2360 argument.
2361 (LAZY_HEX_FP_VALUES_CNT): Define.
2362 (lazy_hex_fp_values): Allow up to LAZY_HEX_FP_VALUES_CNT lazy hex fp
2363 values rather than just 12.
2364 (builtin_define_with_hex_fp_value): Likewise.
2365
7365279f
BK
23662018-01-18 Boris Kolpackov <boris@codesynthesis.com>
2367
92a285c1
ML
2368 PR other/70268
2369 * c.opt (-fmacro-prefix-map): New option.
2370 * c-opts.c (c_common_handle_option): Handle it.
2371 * c-lex.c (init_c_lex): Set remap_filename cpp callback.
2372 * c-ppoutput.c (init_pp_output): Likewise.
7365279f 2373
bb9869d5
DM
23742018-01-17 David Malcolm <dmalcolm@redhat.com>
2375
2376 PR c++/83814
2377 * c-common.c (fold_for_warn): Move to c/c-fold.c and cp/expr.c.
2378
68dc87c3
EB
23792018-01-10 Eric Botcazou <ebotcazou@adacore.com>
2380
2381 * c-ada-spec.c (dump_number): Add FLOAT_P parameter.
2382 Skip 'f' and 'F' characters if it is true.
2383 (store_ada_macro): Minor tweak.
2384 (dump_ada_macros) <CPP_COMMENT>: Likewise.
2385 <CPP_WSTRING>: Likewise.
2386 <CPP_STRING>: Output '&' in the buffer if not the first string.
2387 <CPP_NUMBER>: Adjust calls to dump_number.
2388
9a004410
DM
23892018-01-10 David Malcolm <dmalcolm@redhat.com>
2390
2391 PR c++/43486
2392 * c-common.c: Include "selftest.h".
2393 (get_atomic_generic_size): Perform the test for integral type
2394 before the range test for any integer constant, fixing indentation
2395 of braces. Call fold_for_warn before testing for an INTEGER_CST.
2396 (reject_gcc_builtin): Strip any location wrapper from EXPR.
2397 (selftest::test_fold_for_warn): New function.
2398 (selftest::c_common_c_tests): New function.
2399 (selftest::c_family_tests): Call it, and
2400 selftest::c_pretty_print_c_tests.
2401 * c-common.h (selftest::c_pretty_print_c_tests): New decl.
2402 * c-format.c (check_format_arg): Convert VAR_P check to a
2403 fold_for_warn.
2404 * c-pretty-print.c: Include "selftest.h".
2405 (pp_c_cast_expression): Don't print casts for location wrappers.
2406 (selftest::assert_c_pretty_printer_output): New function.
2407 (ASSERT_C_PRETTY_PRINTER_OUTPUT): New macro.
2408 (selftest::test_location_wrappers): New function.
2409 (selftest::c_pretty_print_c_tests): New function.
2410 * c-warn.c (warn_for_memset): Call fold_for_warn on the arguments.
2411
5c0caeb3
RS
24122018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
2413 Alan Hayward <alan.hayward@arm.com>
2414 David Sherwood <david.sherwood@arm.com>
2415
2416 * c-common.c (c_common_type_for_mode): Handle MODE_VECTOR_BOOL.
2417
73a699ae
RS
24182018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
2419 Alan Hayward <alan.hayward@arm.com>
2420 David Sherwood <david.sherwood@arm.com>
2421
2422 * c-ubsan.c (ubsan_instrument_shift): Treat GET_MODE_BITSIZE
2423 as polynomial.
2424
928686b1
RS
24252018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
2426 Alan Hayward <alan.hayward@arm.com>
2427 David Sherwood <david.sherwood@arm.com>
2428
2429 * c-common.c (vector_types_convertible_p, c_build_vec_perm_expr)
2430 (convert_vector_to_array_for_subscript): Handle polynomial
2431 TYPE_VECTOR_SUBPARTS.
2432 (c_common_type_for_mode): Check valid_vector_subparts_p.
2433 * c-pretty-print.c (pp_c_initializer_list): Handle polynomial
2434 VECTOR_CST_NELTS.
2435
85ec4feb
JJ
24362018-01-03 Jakub Jelinek <jakub@redhat.com>
2437
2438 Update copyright years.
2439
170a8bd6 24402017-12-22 Mike Stump <mikestump@comcast.net>
92a285c1 2441 Eric Botcazou <ebotcazou@adacore.com>
170a8bd6
EB
2442
2443 * c-pragma.c (init_pragma): Register pragma GCC unroll.
2444 * c-pragma.h (enum pragma_kind): Add PRAGMA_UNROLL.
2445
ab20d992 24462017-12-22 Alexandre Oliva <aoliva@redhat.com>
18408e96
AO
2447
2448 PR debug/83527
2449 PR debug/83419
2450 * c-semantics.c (only_debug_stmts_after_p): New.
2451 (pop_stmt_list): Clear side effects in debug-only stmt list.
2452 Check for single nondebug stmt followed by debug stmts only.
2453
c12d20d4
AO
24542017-12-21 Alexandre Oliva <aoliva@redhat.com>
2455
2456 PR debug/83419
2457 * c-semantics.c (pop_stmt_list): Propagate side effects from
2458 single nondebug stmt to container list.
2459
01512446
JJ
24602017-12-19 Jakub Jelinek <jakub@redhat.com>
2461
2462 * known-headers.cc (get_stdlib_header_for_name): Replace Yoda
2463 conditions with typical order conditions.
2464
82cfbd01
MP
24652017-12-18 Marek Polacek <polacek@redhat.com>
2466
2467 * c-warn.c (warn_logical_operator): Return early if -Wlogical-op is
2468 not in effect.
2469
99da11ec
MS
24702017-12-17 Martin Sebor <msebor@redhat.com>
2471
2472 * c-attribs.c (common_handle_aligned_attribute): Avoid issuing
2473 an error for attribute warn_if_not_aligned.
2474
cc8bea0a
MS
24752017-12-16 Martin Sebor <msebor@redhat.com>
2476
2477 PR tree-optimization/78918
2478 * c-common.c (check_function_restrict): Avoid checking built-ins.
2479 * c.opt (-Wrestrict): Include in -Wall.
2480
4849deb1
JJ
24812017-12-15 Jakub Jelinek <jakub@redhat.com>
2482
2483 * c-attribs.c (c_common_attribute_table,
2484 c_common_format_attribute_table): Swap affects_type_identity
2485 and handler fields, adjust comments.
2486
c65e18d3
BE
24872017-12-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
2488
2489 * c.opt (Wcast-function-type): New warning option.
2490 * c-lex.c (get_fileinfo): Avoid warning.
2491 * c-ppoutput.c (scan_translation_unit_directives_only): Remove cast.
2492
2004617a
QZ
24932017-12-14 Qing Zhao <qing.zhao@oracle.com>
2494
7365279f 2495 PR middle_end/79538
2004617a
QZ
2496 * c-cppbuiltin.c (builtin_define_with_hex_fp_value):
2497 Adjust the size of buf1 and buf2, add a new buf to avoid
2498 format-overflow warning.
2499
ab20d992 25002017-12-12 Alexandre Oliva <aoliva@redhat.com>
96a95ac1
AO
2501
2502 * c-semantics.c (pop_stmt_list): Move begin stmt marker into
2503 subsequent statement list.
2504
5d9ae53d
MS
25052017-12-07 Martin Sebor <msebor@redhat.com>
2506
2507 PR c/81544
2508 PR c/81566
2509 * c-attribs.c (attr_aligned_exclusions): New array.
2510 (attr_alloc_exclusions, attr_cold_hot_exclusions): Same.
2511 (attr_common_exclusions, attr_const_pure_exclusions): Same.
2512 (attr_gnu_inline_exclusions, attr_inline_exclusions): Same.
2513 (attr_noreturn_exclusions, attr_returns_twice_exclusions): Same.
2514 (attr_warn_unused_result_exclusions): Same.
2515 (handle_hot_attribute, handle_cold_attribute): Simplify.
2516 (handle_const_attribute): Warn on function returning void.
2517 (handle_pure_attribute): Same.
2518 (handle_aligned_attribute): Diagnose conflicting attribute
2519 specifications.
2520 * c-warn.c (diagnose_mismatched_attributes): Simplify.
2521
c79144f8
DM
25222017-12-06 David Malcolm <dmalcolm@redhat.com>
2523
2524 PR c/83236
2525 * c-common.c (selftest::c_family_tests): Call
2526 selftest::c_spellcheck_cc_tests.
2527 * c-common.h (selftest::c_spellcheck_cc_tests): New decl.
2528 * c-spellcheck.cc: Include "selftest.h".
2529 (name_reserved_for_implementation_p): New function.
2530 (should_suggest_as_macro_p): New function.
2531 (find_closest_macro_cpp_cb): Move the check for NT_MACRO to
2532 should_suggest_as_macro_p and call it.
2533 (selftest::test_name_reserved_for_implementation_p): New function.
2534 (selftest::c_spellcheck_cc_tests): New function.
2535 * c-spellcheck.h (name_reserved_for_implementation_p): New decl.
2536
613bc14f
DM
25372017-12-06 David Malcolm <dmalcolm@redhat.com>
2538
2539 * c-spellcheck.cc: New file, taken from macro-handling code in
2540 spellcheck-tree.c.
2541 * c-spellcheck.h: New file, taken from macro-handling code in
2542 spellcheck-tree.h.
2543
e76c7157
JJ
25442017-12-01 Jakub Jelinek <jakub@redhat.com>
2545
2546 * c-attribs.c (c_common_attribute_table): Remove "cilk simd function"
2547 attribute.
2548 (handle_simd_attribute): Don't check for "cilk simd function"
2549 attribute. Reindent, formatting changes.
2550
b0da4034
JK
25512017-11-30 Julia Koval <julia.koval@intel.com>
2552
2553 * c-common.h (inv_list): Remove.
2554
058f0b9e
JJ
25552017-11-28 Jakub Jelinek <jakub@redhat.com>
2556
2557 PR sanitizer/81275
2558 * c-common.c (c_switch_covers_all_cases_p_1,
2559 c_switch_covers_all_cases_p): New functions.
2560 * c-common.h (c_switch_covers_all_cases_p): Declare.
2561
5e9d6aa4 25622017-11-28 Julia Koval <julia.koval@intel.com>
92a285c1 2563 Sebastian Peryt <sebastian.peryt@intel.com>
5e9d6aa4
JK
2564
2565 * array-notation-common.c: Delete.
2566 * c-cilkplus.c: Ditto.
2567 * c-common.c (_Cilk_spawn, _Cilk_sync, _Cilk_for): Remove.
2568 * c-common.def (ARRAY_NOTATION_REF): Remove.
2569 * c-common.h (RID_CILK_SPAWN, build_array_notation_expr,
2570 build_array_notation_ref, C_ORT_CILK, c_check_cilk_loop,
2571 c_validate_cilk_plus_loop, cilkplus_an_parts,
2572 cilk_ignorable_spawn_rhs_op,
2573 cilk_recognize_spawn): Remove.
2574 * c-gimplify.c (CILK_SPAWN_STMT): Remove.
2575 * c-omp.c: Remove CILK_SIMD check.
2576 * c-pragma.c: Ditto.
2577 * c-pragma.h: Remove CILK related pragmas.
2578 * c-pretty-print.c (c_pretty_printer::postfix_expression): Remove
2579 ARRAY_NOTATION_REF condition.
2580 (c_pretty_printer::expression): Ditto.
2581 * c.opt (fcilkplus): Remove.
2582 * cilk.c: Delete.
2583
1af4ebf5
MG
25842017-11-21 Marc Glisse <marc.glisse@inria.fr>
2585
2586 * c-pretty-print.c (pp_c_additive_expression,
2587 c_pretty_printer::expression): Handle POINTER_DIFF_EXPR.
2588
d44ed508
JJ
25892017-11-21 Jakub Jelinek <jakub@redhat.com>
2590
7d2f0f9b
JJ
2591 * c-common.c (get_nonnull_operand): Use tree_to_uhwi.
2592
d44ed508
JJ
2593 PR c++/83059
2594 * c-common.c (get_atomic_generic_size): Use TREE_INT_CST_LOW
2595 instead of tree_to_uhwi, formatting fix.
2596
26edace6
DM
25972017-11-20 David Malcolm <dmalcolm@redhat.com>
2598
2599 PR c/81404
2600 * known-headers.cc: New file, based on material from c/c-decl.c.
2601 (suggest_missing_header): Copied as-is.
2602 (get_stdlib_header_for_name): New, based on get_c_name_hint but
2603 heavily edited to add C++ support. Add some knowledge about
2604 <limits.h>, <stdint.h>, and <wchar.h>.
2605 * known-headers.h: Likewise.
2606
6c7a259b
DM
26072017-11-20 David Malcolm <dmalcolm@redhat.com>
2608
2609 * c-common.h (enum lookup_name_fuzzy_kind): Move to name-hint.h.
2610 (lookup_name_fuzzy): Likewise. Convert return type from
2611 const char * to name_hint. Add location_t param.
2612 * name-hint.h: New header.
2613
f9c59f7e
JJ
26142017-11-19 Jakub Jelinek <jakub@redhat.com>
2615
2616 PR c/66618
2617 PR c/69960
2618 * c-common.h (c_fully_fold): Add LVAL argument defaulted to false.
2619
1e39313a
JM
26202017-11-16 Joseph Myers <joseph@codesourcery.com>
2621
2622 * c.opt (-std=c17, std=gnu17, -std=iso9899:2017): Refer to 2018
2623 expected publication date of C17.
2624 (-std=c18, -std=gnu18, -std=iso9899:2018): New option aliases.
2625
3ca0dc60
JM
26262017-11-15 Joseph Myers <joseph@codesourcery.com>
2627
2628 PR c/81156
2629 * c-common.c (c_common_reswords): Add __builtin_tgmath.
2630 * c-common.h (enum rid): Add RID_BUILTIN_TGMATH.
2631
025d57f0
MS
26322017-11-10 Martin Sebor <msebor@redhat.com>
2633
2634 PR c/81117
2635 * c-common.c (catenate_strings): Use memcpy instead of strncpy.
2636 * c-warn.c (sizeof_pointer_memaccess_warning): Handle arrays.
2637 * c.opt (-Wstringop-truncation): New option.
2638
1b6fa695
ML
26392017-11-06 Martin Liska <mliska@suse.cz>
2640
2641 PR middle-end/82404
2642 * c-opts.c (c_common_post_options): Set -Wreturn-type for C++
2643 FE.
2644 * c.opt: Set default value of warn_return_type.
2645
64a5912c
DM
26462017-10-31 David Malcolm <dmalcolm@redhat.com>
2647
2648 * c-common.c (binary_op_error): Update for renaming of
2649 error_at_rich_loc.
2650 (c_parse_error): Likewise.
2651 * c-warn.c (warn_logical_not_parentheses): Likewise for
2652 renaming of inform_at_rich_loc.
2653 (warn_for_restrict): Likewise for renaming of
2654 warning_at_rich_loc_n.
2655
c76dc9c3
JM
26562017-10-30 Joseph Myers <joseph@codesourcery.com>
2657
2658 * c.opt (std=c17, std=gnu17, std=iso9899:2017): New options.
2659 * c-opts.c (set_std_c17): New function.
2660 (c_common_init_options): Use gnu17 as default C version.
2661 (c_common_handle_option): Handle -std=c17 and -std=gnu17.
2662
ee5fd23a
MM
26632017-10-27 Michael Meissner <meissner@linux.vnet.ibm.com>
2664
2665 * c-cppbuiltin.c (mode_has_fma): Add support for PowerPC KFmode.
2666 (c_cpp_builtins): If a machine has a fast fma _Float<N> and
2667 _Float<N>X variant, define __FP_FAST_FMA<N> and/or
2668 __FP_FAST_FMA<N>X.
2669
d1047465
MP
26702017-10-23 Marek Polacek <polacek@redhat.com>
2671
2672 PR c/82681
2673 * c-warn.c (warnings_for_convert_and_check): Fix typos.
2674
9e878cf1
EB
26752017-10-19 Eric Botcazou <ebotcazou@adacore.com>
2676
2677 * c-common.c (check_builtin_function_arguments): Also check arguments
2678 of __builtin_alloca_with_align_and_max.
2679
89b6abbb
DM
26802017-10-17 David Malcolm <dmalcolm@redhat.com>
2681
2682 * c-format.c (format_warning_at_char): Pass UNKNOWN_LOCATION
2683 rather than NULL to format_warning_va.
2684 (check_format_types): Likewise when calling format_type_warning.
2685 Remove code to extract source_ranges and source_range * in favor
2686 of just a location_t.
2687 (format_type_warning): Convert source_range * param to a
2688 location_t.
2689
39382c09
JJ
26902017-10-13 Jakub Jelinek <jakub@redhat.com>
2691
2692 * c-gimplify.c (c_gimplify_expr): Handle [LR]ROTATE_EXPR like
2693 [LR]SHIFT_EXPR.
2694
62e1c678
DM
26952017-10-12 David Malcolm <dmalcolm@redhat.com>
2696
2697 * c-common.c (enum missing_token_insertion_kind): New enum.
2698 (get_missing_token_insertion_kind): New function.
2699 (maybe_suggest_missing_token_insertion): New function.
2700 * c-common.h (maybe_suggest_missing_token_insertion): New decl.
2701
b90c9338
NS
27022017-10-11 Nathan Sidwell <nathan@acm.org>
2703
2704 * c-opts.c (add_prefixed_path): Change chain to incpath_kind.
2705 (c_common_handle_option): Update incpath_kind names.
2706
3a266bcd
ML
27072017-10-11 Martin Liska <mliska@suse.cz>
2708
2709 PR sanitizer/82490
2710 * c-attribs.c (handle_no_sanitize_attribute): Report directly
2711 Wattributes warning.
2712
8e6cdc90
RS
27132017-10-10 Richard Sandiford <richard.sandiford@linaro.org>
2714
2715 * c-ada-spec.c (dump_generic_ada_node): Use wi::to_wide when
2716 operating on trees as wide_ints.
2717 * c-common.c (pointer_int_sum): Likewise.
2718 * c-pretty-print.c (pp_c_integer_constant): Likewise.
2719 * c-warn.c (match_case_to_enum_1): Likewise.
2720 (c_do_switch_warnings): Likewise.
2721 (maybe_warn_shift_overflow): Likewise.
2722
802b38c9
JJ
27232017-10-10 Jakub Jelinek <jakub@redhat.com>
2724
2725 PR c/82437
2726 * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_wide
2727 instead of wide_int::from.
2728
4e34b338
JJ
27292017-10-06 Jakub Jelinek <jakub@redhat.com>
2730
2731 PR c/82437
2732 * c-warn.c (warn_tautological_bitwise_comparison): Instead of
2733 using to_widest use wide_int with the larger of the two precisions.
2734
4bc4b2b4
BE
27352017-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
2736
2737 * c-pretty-print.c (pp_c_parameter_type_list): Print ... for variadic
2738 functions.
2739
a1488398
RS
27402017-10-02 Richard Sandiford <richard.sandiford@linaro.org>
2741
2742 * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_widest
2743 when combining the original unconverted comparison operands.
2744
01c9fb68
JJ
27452017-09-29 Jakub Jelinek <jakub@redhat.com>
2746
2747 * c-attribs.c (handle_noipa_attribute): Don't add "stack_protect"
2748 attribute.
2749
6e3e8419
EB
27502017-09-29 Eric Botcazou <ebotcazou@adacore.com>
2751
2752 * c-ada-spec.c (to_ada_name): Add index parameter.
2753 (pp_ada_tree_identifier): Likewise.
2754 (dump_ada_macros): Adjust call to to_ada_name.
2755 (struct overloaded_name_hash): New type.
2756 (struct overloaded_name_hasher): Likewise.
2757 (overloaded_names): New hash table.
2758 (compute_overloading_index): New function.
2759 (dump_ada_decl_name): Call it and pass the result to
2760 pp_ada_tree_identifier.
2761 (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
2762 (dump_ada_function_declaration): Likewise.
2763 (dump_generic_ada_node): Likewise.
2764 (print_constructor): Likewise.
2765 (print_destructor): Likewise.
2766 (dump_ada_specs): Delete overloaded_names table.
2767
79310774
EB
27682017-09-29 Eric Botcazou <ebotcazou@adacore.com>
2769
2770 * c-ada-spec.c (max_ada_macros): Move around.
2771 (store_ada_macro_index): Likewise.
2772 (source_file): Rename into...
2773 (macro_source_file): ...this.
2774 (count_ada_macro): Move around.
2775 (store_ada_macro): Likewise.
2776 (compare_macro): Likewise.
2777 (print_ada_macros): Merge in...
2778 (dump_ada_macros): ...this.
2779 (source_file_base): Rename into...
2780 (current_source_file): ...this.
2781 (print_comment): Move around.
2782 (dump_ada_nodes): Call dump_ada_declaration directly.
2783 (struct with): Change type of limited field to bool.
2784 (append_withs): Change type of limited_access parameter to bool.
2785 (pp_ada_tree_identifie): Likewise.
2786 (dump_ada_decl_nam): Likewise.
2787 (dump_generic_ada_node): Likewise. Do not print the return type.
2788 (to_ada_name): Change type of space_found parameter to bool.
2789 (dump_ada_function_declaration): Return void and change type of
2790 parameters to bool. Also print the return type for a function.
2791 (print_ada_methods): Rename into...
2792 (dump_ada_methods): ...this.
2793 (print_ada_declaration): Rename into ...
2794 (dump_ada_declaration): ...this. Do not print the return type.
2795 (print_ada_struct_decl): Rename into...
2796 (dump_ada_struct_decl): ...this.
2797
7d386d45
JJ
27982017-09-29 Jakub Jelinek <jakub@redhat.com>
2799
2800 * c-attribs.c (handle_packed_attribute): Test DECL_C_BIT_FIELD
2801 rather than DECL_INITIAL.
2802 (common_handle_aligned_attribute): Likewise.
2803
ab20d992 28042017-09-20 Alexandre Oliva <aoliva@redhat.com>
9ed32e27
AO
2805
2806 * c.opt (gen-decls): Add RejectNegative.
2807
026a79f7
AS
28082017-09-15 Andrew Sutton <andrew.n.sutton@gmail.com>
2809 Jakub Jelinek <jakub@redhat.com>
2810
2811 Add support for -std=c++2a.
2812 * c-common.h (cxx_dialect): Add cxx2a as a dialect.
2813 * opt.c: Add options for -std=c++2a and -std=gnu++2a.
2814 * c-opts.c (set_std_cxx2a): New.
2815 (c_common_handle_option): Set options when -std=c++2a is enabled.
2816 (c_common_post_options): Adjust comments.
2817 (set_std_cxx14, set_std_cxx17): Likewise.
2818
4a8ca690
EB
28192017-09-15 Eric Botcazou <ebotcazou@adacore.com>
2820
2821 * c-pragma.c (handle_pragma_scalar_storage_order): Expand on error
2822 message for non-uniform endianness and issue a warning in C++.
2823
7b936140
JJ
28242017-09-15 Jakub Jelinek <jakub@redhat.com>
2825
2826 * c.opt (Wc++1z-compat): Change from option to undocumented alias.
2827 (Wc++17-compat): Change from undocumented alias to option.
2828 (Wnoexcept-type): Enable by Wc++17-compat instead of Wc++1z-compat,
2829 change C++1z to C++17 in description.
2830 (std=c++1z, std=gnu++1z): Change from option to undocumented
2831 deprecated alias.
2832 (std=c++17, std=gnu++17): Change from undocumented alias to option.
2833 Adjust description.
2834 * c-common.h (enum cxx_dialect): Rename cxx1z to cxx17.
2835 * c-opts.c (set_std_cxx1z): Rename to ...
2836 (set_std_cxx17): ... this.
2837 (c_common_handle_option): Rename OPT_std_c__1z to OPT_std_c__17
2838 and OPT_std_gnu__1z to OPT_std_gnu__17. Adjust set_std_cxx1z
7365279f 2839 caller.
7b936140
JJ
2840 (c_common_post_options): Use cxx17 instead of cxx1z. Adjust
2841 comments.
2842
12263f13
L
28432017-09-12 H.J. Lu <hongjiu.lu@intel.com>
2844
2845 * c-attribs.c (common_handle_aligned_attribute): Don't warn
2846 function alignment if warn_if_not_aligned_p is true.
2847
6836632e
NS
28482017-09-12 Nathan Sidwell <nathan@acm.org>
2849
2850 * c-common.c (field_decl_cmp, resort_data, resort_field_decl_cmp,
2851 resort_sorted_fields): Move to c/c-decl.c.
2852 * c-common.h (field_decl_cmp, resort_sorted_fields): Delete.
2853 (struct sorted_fields_type): Move to c/c-lang.h.
2854
019bf9ad
JW
28552017-09-09 Jonathan Wakely <jwakely@redhat.com>
2856
2857 PR c++/81852
2858 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_threadsafe_static_init.
2859
bc7fe952
MP
28602017-09-04 Marek Polacek <polacek@redhat.com>
2861
2862 PR c/81783
2863 * c-warn.c (warn_tautological_bitwise_comparison): New function.
2864 (warn_tautological_cmp): Call it.
2865
ab20d992 28662017-09-01 Boris Kolpackov <boris@codesynthesis.com>
de7c2c6a
BK
2867
2868 * c-opts.c (c_common_finish): Write dependency information even if
2869 there are errors.
2870
d2e05fcb
JJ
28712017-09-01 Jakub Jelinek <jakub@redhat.com>
2872
2873 PR c/81887
2874 * c-pragma.c (omp_pragmas): Move "ordered" entry from here to ...
2875 (omp_pragmas_simd): ... here.
2876 * c-omp.c (c_finish_omp_ordered): If clauses isn't simd clause alone,
2877 create new clauses list containing just simd clause.
2878
18e2a8b8
RS
28792017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2880 Alan Hayward <alan.hayward@arm.com>
2881 David Sherwood <david.sherwood@arm.com>
2882
2883 * c-attribs.c (vector_mode_valid_p) Fold GET_MODE_INNER call
2884 into scalar_mode_supported_p call.
2885 (handle_mode_attribute): Update call to scalar_mode_supported_p.
2886
16d22000
RS
28872017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2888 Alan Hayward <alan.hayward@arm.com>
2889 David Sherwood <david.sherwood@arm.com>
2890
2891 * c-common.c (c_common_fixed_point_type_for_size): Use opt_scalar_mode
2892 for the mode iterator.
2893
b397965c
RS
28942017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2895 Alan Hayward <alan.hayward@arm.com>
2896 David Sherwood <david.sherwood@arm.com>
2897
2898 * c-lex.c (interpret_fixed): Use SCALAR_TYPE_MODE.
2899 * c-common.c (c_build_vec_perm_expr): Likewise.
2900
357b7604
RS
29012017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2902 Alan Hayward <alan.hayward@arm.com>
2903 David Sherwood <david.sherwood@arm.com>
2904
2905 * c-common.c (c_common_type_for_mode): Use as_a <scalar_int_mode>.
2906
e05c94ba
RS
29072017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2908 Alan Hayward <alan.hayward@arm.com>
2909 David Sherwood <david.sherwood@arm.com>
2910
2911 * c-attribs.c (handle_mode_attribute): Check for a scalar_int_mode
2912 before calling targetm.addr_space.valid_pointer_mode.
2913
5c20c4af
RS
29142017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2915 Alan Hayward <alan.hayward@arm.com>
2916 David Sherwood <david.sherwood@arm.com>
2917
2918 * c-cppbuiltin.c (c_cpp_builtins): Use opt_scalar_float_mode.
2919
c94843d2 29202017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
92a285c1
ML
2921 Alan Hayward <alan.hayward@arm.com>
2922 David Sherwood <david.sherwood@arm.com>
c94843d2
RS
2923
2924 * c-common.c (c_common_fixed_point_type_for_size): Use new mode
2925 iterators.
2926 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2927
4e10a5a7
RS
29282017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2929 Alan Hayward <alan.hayward@arm.com>
2930 David Sherwood <david.sherwood@arm.com>
2931
2932 * c-cppbuiltin.c (mode_has_fma): Prefix mode names with E_ in
2933 case statements.
2934
130fcab0
ML
29352017-08-29 Martin Liska <mliska@suse.cz>
2936
2937 PR other/39851
2938 * c-common.c (parse_optimize_options): Add argument to function
2939 call.
2940 * c-pragma.c (handle_pragma_diagnostic): Likewise.
2941
14e18d71
DM
29422017-08-24 David Malcolm <dmalcolm@redhat.com>
2943
2944 * c-lex.c (interpret_float): Use token location
2945 when building an EXCESS_PRECISION_EXPR.
2946
2f687306
DM
29472017-08-21 David Malcolm <dmalcolm@redhat.com>
2948
2949 * c-common.c (check_function_arguments): Add "arglogs" param; pass
2950 it to check_function_format.
2951 * c-common.h (check_function_arguments): Add vec<location_t> *
2952 param.
2953 (check_function_format): Likewise.
2954 * c-format.c (struct format_check_context): Add field "arglocs".
2955 (check_function_format): Add param "arglocs"; pass it to
2956 check_format_info.
ab20d992 2957 (check_format_info): Add param "arglocs"; use it to initialize
2f687306
DM
2958 new field of format_ctx.
2959 (check_format_arg): Pass format_ctx->arglocs to new param of
2960 check_format_info_main.
2961 (class argument_parser): New field "arglocs".
2962 (argument_parser::argument_parser): Add "arglocs_" param and use
2963 it to initialize new field.
2964 (argument_parser::check_argument_type): Pass new arglocs field to
2965 check_format_types.
2966 (check_format_info_main): Add param "arglocs", and use it when
2967 constructing arg_parser.
2968 (check_format_types): Add param "arglocs"; use it if non-NULL when
2969 !EXPR_HAS_LOCATION (cur_param) to get at location information.
2970
00aa1fa2
L
29712017-08-18 H.J. Lu <hongjiu.lu@intel.com>
2972
2973 PR c/53037
2974 * c-attribs.c (handle_warn_if_not_aligned_attribute): New.
2975 (c_common_attribute_table): Add warn_if_not_aligned.
2976 (handle_aligned_attribute): Renamed to ...
2977 (common_handle_aligned_attribute): Remove argument, name, and add
2978 argument, warn_if_not_aligned. Handle warn_if_not_aligned.
2979 (handle_aligned_attribute): New.
2980 * c.opt: Add -Wif-not-aligned and -Wpacked-not-aligned.
2981
27be025d
MS
29822017-08-14 Martin Sebor <msebor@redhat.com>
2983
2984 PR c/81117
2985 * c-attribs.c (c_common_attribute_table): Add nonstring entry.
2986 (handle_nonstring_attribute): New function.
2987
da67acb9
MS
29882017-08-14 Martin Sebor <msebor@redhat.com>
2989
2990 PR c/81117
2991 * c-format.h (T89_G): New macro.
2992 * c-format.c (local_gcall_ptr_node): New variable.
2993 (init_dynamic_diag_info): Initialize it.
2994
a8b522b4
ML
29952017-08-11 Martin Liska <mliska@suse.cz>
2996
2997 * c-opts.c (c_common_post_options): Replace ASM_OUTPUT_DEF with
2998 TARGET_SUPPORTS_ALIASES.
2999
32129a17
DM
30002017-08-10 David Malcolm <dmalcolm@redhat.com>
3001
3002 * c-common.c (c_parse_error): Add rich_location * param, using it
3003 rather implicitly using input_location.
3004 * c-common.h (c_parse_error): Add rich_location * param.
3005
30af3a2b
MP
30062017-08-09 Marek Polacek <polacek@redhat.com>
3007
3008 * c-common.c (pointer_int_sum): Use true/false instead of 1/0.
3009 (c_common_truthvalue_conversion): Likewise.
3010 * c-omp.c (c_finish_omp_atomic): Likewise.
3011 * c-common.h (build_binary_op): Update declaration.
3012
314e6352
ML
30132017-08-08 Martin Liska <mliska@suse.cz>
3014
3015 * c-ada-spec.c: Include header files.
3016 * c-ubsan.c: Likewise.
3017 * c-warn.c: Likewise.
3018
56b5041c
JJ
30192017-08-07 Jakub Jelinek <jakub@redhat.com>
3020
3021 PR c/69389
3022 * c-omp.c (c_finish_omp_atomic): Handle atomics on bitfields.
3023
db440138
EB
30242017-08-07 Eric Botcazou <ebotcazou@adacore.com>
3025
3026 * c-ada-spec.c (has_nontrivial_methods): Test for FUNCTION_DECL.
3027 (print_ada_methods): Likewise.
3028 (print_ada_declaration): Likewise.
3029
577eec56
ML
30302017-08-07 Martin Liska <mliska@suse.cz>
3031
3032 * array-notation-common.c: Add new includes.
3033 * c-format.c( handle_format_attribute): Canonicalize a format
3034 function name.
3035 * c-lex.c (c_common_has_attribute): Canonicalize name of an
3036 attribute.
3037 * c-pretty-print.c: Add new include.
3038
b854df3c
EB
30392017-08-05 Eric Botcazou <ebotcazou@adacore.com>
3040
3041 * c-ada-spec.c (has_static_fields): Look only into variables.
3042 (print_constructor): Add TYPE parameter and use it for the name.
3043 (print_destructor): Likewise.
3044 (print_ada_declaration): Adjust to new constructor/destructor names.
3045 Adjust calls to print_constructor and print_destructor.
3046 (print_ada_struct_decl): Do not test TREE_STATIC on FIELD_DECL.
3047 Look only into variables in the final loop.
3048
9f2cb25e
EB
30492017-08-01 Eric Botcazou <ebotcazou@adacore.com>
3050
3051 * c-ada-spec.c (has_static_fields): Look only into fields.
3052 (dump_generic_ada_node): Small tweak.
3053 (dump_nested_types): Look only into fields.
3054 (print_ada_declaration): Look only into methods. Small tweak.
3055 (print_ada_struct_decl): Look only into fields. Use DECL_VIRTUAL_P.
3056
f4bcd9eb
EB
30572017-08-01 Eric Botcazou <ebotcazou@adacore.com>
3058
3059 * c-ada-spec.c (print_generic_ada_decl): Pass correctly-typed constant.
3060 (dump_ada_function_declaration): Likewise.
3061 (dump_generic_ada_node): Likewise.
3062 (print_ada_declaration): Add support for const-qualified variables.
3063
f34ebeb2
ML
30642017-07-31 Martin Liska <mliska@suse.cz>
3065
3066 PR sanitize/81530
3067 * c-ubsan.c (ubsan_maybe_instrument_array_ref):
3068 Guard condition with flag_sanitize_p also with current_function_decl
3069 non-null equality.
3070 (ubsan_maybe_instrument_reference_or_call): Likewise.
3071
218e5d04
UB
30722017-07-30 Uros Bizjak <ubizjak@gmail.com>
3073
3074 * c-format.c (asm_fprintf_char_table): Add 'z' to format_chars.
3075
942047f2
EB
30762017-07-29 Eric Botcazou <ebotcazou@adacore.com>
3077
3078 * c-ada-spec.c (dump_generic_ada_node): Take into account signedness
3079 for enumeral types.
3080 (print_ada_declaration): Add missing guard for record types.
3081
a40ff0ae
JJ
30822017-07-27 Jakub Jelinek <jakub@redhat.com>
3083
3084 PR c/45784
3085 * c-omp.c (c_finish_omp_for): If the condition is wrapped in
3086 rhs of COMPOUND_EXPR(s), skip them and readd their lhs into
3087 new COMPOUND_EXPRs around the rhs of the comparison.
3088
06bd22f6
MP
30892017-07-27 Marek Polacek <polacek@redhat.com>
3090
3091 PR c/81417
3092 * c-warn.c (warn_for_sign_compare): Tweak the warning message. Print
3093 the types.
3094
036ea399
JJ
30952017-07-27 Jakub Jelinek <jakub@redhat.com>
3096
3097 * c-attribs.c (c_common_attribute_table): Add noipa attribute.
3098 (handle_noipa_attribute): New function.
3099
417ca011
TD
31002017-07-07 Torsten Duwe <duwe@suse.de>
3101
3102 * c-attribs.c (c_common_attribute_table): Add entry for
3103 "patchable_function_entry".
3104
5aaa8fb4
NS
31052017-07-20 Nathan Sidwell <nathan@acm.org>
3106
3107 Remove TYPE_METHODS.
3108 * c-ada-spec.c (is_tagged_type, has_nontrivial_methods,
3109 dump_ada_template, print_ada_methods,
3110 print_ada_declaration): Member fns are on TYPE_FIELDS.
3111
ff22eb12
NS
31122017-07-18 Nathan Sidwell <nathan@acm.org>
3113
3114 * c-warn.c (warn_for_memset): Use TYPE_{MIN,MAX}_VALUE.
3115
eea77d1f
DM
31162017-07-14 David Malcolm <dmalcolm@redhat.com>
3117
3118 * c-common.c (try_to_locate_new_include_insertion_point): New
3119 function.
3120 (per_file_includes_t): New typedef.
3121 (added_includes_t): New typedef.
3122 (added_includes): New variable.
3123 (maybe_add_include_fixit): New function.
3124 * c-common.h (maybe_add_include_fixit): New decl.
3125
281ac396
MS
31262017-07-10 Martin Sebor <msebor@redhat.com>
3127
3128 PR other/81345
3129 * c.opt (-Wstringop-overflow): Set defaults in LangEnabledBy.
3130
b6f43128
DM
31312017-07-06 David Malcolm <dmalcolm@redhat.com>
3132
3133 * c-common.c (selftest::c_family_tests): New.
3134 * c-common.h (selftest::run_c_tests): Move decl to c/c-lang.h.
3135 (selftest::c_family_tests): New decl.
3136
efbf55b0
MP
31372017-07-04 Marek Polacek <polacek@redhat.com>
3138
3139 PR c/81231
3140 * c-common.c (sync_resolve_size): Give error for pointers to incomplete
3141 types.
3142
6c86bd88
MP
31432017-07-04 Marek Polacek <polacek@redhat.com>
3144
3145 * c-warn.c (warn_if_unused_value): Remove WITH_CLEANUP_EXPR handling.
3146
17a7218b
ML
31472017-06-28 Martin Liska <mliska@suse.cz>
3148
3149 PR ipa/81128
3150 * c-attribs.c (handle_alias_ifunc_attribute): Append ifunc alias
3151 to a function declaration.
3152
63010089
ML
31532017-06-28 Martin Liska <mliska@suse.cz>
3154
3155 PR driver/79659
3156 * c.opt: Add IntegerRange to various options.
3157
3e2becc4
MP
31582017-06-26 Marek Polacek <polacek@redhat.com>
3159
3160 PR c/80116
3161 * c-common.h (warn_for_multistatement_macros): Declare.
3162 * c-warn.c: Include "c-family/c-indentation.h".
3163 (warn_for_multistatement_macros): New function.
3164 * c.opt (Wmultistatement-macros): New option.
3165 * c-indentation.c (guard_tinfo_to_string): No longer static.
3166 Change the parameter type to "enum rid". Handle RID_SWITCH.
3167 * c-indentation.h (guard_tinfo_to_string): Declare.
3168
2db9b7cd
MG
31692017-06-23 Marc Glisse <marc.glisse@inria.fr>
3170
3171 * c-common.c (c_common_nodes_and_builtins): Use builtin_structptr_types.
3172
c3684b7b
MS
31732017-06-15 Martin Sebor <msebor@redhat.com>
3174
3175 PR c++/80560
3176 * c.opt (-Wclass-memaccess): New option.
3177
e72c4afd
BK
31782017-06-14 Boris Kolpackov <boris@codesynthesis.com>
3179
3180 * c-opts.c (c_common_finish): Handle '-' special value to -MF.
3181
8a516588
MP
31822017-06-13 Marek Polacek <polacek@redhat.com>
3183
3184 PR objc/80949
3185 * c-warn.c (do_warn_duplicated_branches): Return if any of the
3186 branches is null.
3187
45b2222a
ML
31882017-06-13 Martin Liska <mliska@suse.cz>
3189
3190 PR sanitize/78204
3191 * c-attribs.c (add_no_sanitize_value): New function.
3192 (handle_no_sanitize_attribute): Likewise.
3193 (handle_no_sanitize_address_attribute): Use the function.
3194 (handle_no_sanitize_thread_attribute): New function.
3195 (handle_no_address_safety_analysis_attribute): Use
3196 add_no_sanitize_value.
3197 (handle_no_sanitize_undefined_attribute): Likewise.
3198 * c-common.h: Declare new functions.
3199 * c-ubsan.c (ubsan_instrument_division): Use sanitize_flags_p.
3200 (ubsan_instrument_shift): Likewise.
3201 (ubsan_instrument_bounds): Likewise.
3202 (ubsan_maybe_instrument_array_ref): Likewise.
3203 (ubsan_maybe_instrument_reference_or_call): Likewise.
3204
a01f151f
JM
32052017-06-11 Jason Merrill <jason@redhat.com>
3206
3207 * c-ada-spec.c, c-pragma.c: Use id_equal.
3208
3de4ac6d
MP
32092017-06-04 Marek Polacek <polacek@redhat.com>
3210
3211 PR c/80919
3212 * c-format.c (matching_type_p): Return false if any of the types
3213 requires structural equality.
3214
2474f48f
MS
32152017-06-02 Martin Sebor <msebor@redhat.com>
3216
3217 PR c/80892
3218 * c-warn.c (conversion_warning): Use -Wconversion for integer
3219 conversion and -Wfloat-conversion for floating one.
3220
40ffd95f
BE
32212017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
3222
3223 * c.opt (Wsizeof-pointer-div): New warning option.
3224
3fa4634c
VR
32252017-06-01 Volker Reichelt <v.reichelt@netcologne.de>
3226
3227 * c.opt (Wcatch-value): New shortcut for Wcatch-value=1.
3228 (Wcatch-value=1): Enable by -Wall.
3229
f012c8ef
DM
32302017-05-30 David Malcolm <dmalcolm@redhat.com>
3231
3232 * c-format.c (gcc_cxxdiag_char_table): Add 'H' and 'I' to
3233 format_chars.
3234 * c.opt (fdiagnostics-show-template-tree): New option.
3235 (felide-type): New option.
3236
63dbcd13
VR
32372017-05-25 Volker Reichelt <v.reichelt@netcologne.de>
3238
3239 * c.opt (Wcatch-value=): New C++ warning flag.
3240
be136b5c
NS
32412017-05-24 Nathan Sidwell <nathan@acm.org>
3242
3243 * c=common.c (field_decl_cmp, resort_field_decl_cmp): Adjust T
3244 const casts to avoid warning.
3245
3cd211af
MS
32462017-05-24 Martin Sebor <msebor@redhat.com>
3247
3248 PR c/80731
3249 * c-common.h (unsafe_conversion_p): Add a function argument.
3250 * c-common.c (unsafe_conversion_p): Same.
3251 Add type names and values to diagnostics.
3252 (scalar_to_vector): Adjust.
3253 * c-warn.c (constant_expression_error): Add a function argument.
3254 Add type names and values to diagnostics.
3255 (conversion_warning): Add a function argument.
3256 Add type names and values to diagnostics.
3257 (warnings_for_convert_and_check): Same.
3258
1ff7be5a
JM
32592017-05-19 Jason Merrill <jason@redhat.com>
3260
3261 * c-warn.c (match_case_to_enum_1): Don't warn about enums with no
3262 enumerators.
3263
ff502317
BE
32642017-05-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
3265
3266 * c-format.c (locus): Move out of function scope,
3267 add GTY attribute.
3268
2a8a8d7b
NS
32692017-05-19 Nathan Sidwell <nathan@acm.org>
3270
3271 * c-opts.c (class_dump_file, class_dump_flags): Delete.
3272 (c_common_parse_file): Remove class dump handling.
3273 (get_dump_info): Likewise.
3274
39aac208
RB
32752017-05-19 Richard Biener <rguenther@suse.de>
3276
3277 PR c++/80593
3278 * c-warn.c (strict_aliasing_warning): Do not warn for accesses
3279 to alias-set zero memory.
3280
6ecd2339
BE
32812017-05-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
3282
3283 * c-format.c (local_tree_type_node): Add GTY attribute.
3284
6574d78e
MP
32852017-05-18 Marek Polacek <polacek@redhat.com>
3286
3287 * c-common.c (c_common_type_for_size): Use NULL_TREE instead of 0.
3288 (c_common_fixed_point_type_for_size): Likewise.
3289 (c_common_type_for_mode): Likewise.
3290 (shorten_compare): Likewise.
3291 (c_promoting_integer_type_p): Use false/true instead of 0/1.
3292 * c-pragma.c (maybe_apply_renaming_pragma): Use NULL_TREE instead of 0.
3293
e3455240
MP
32942017-05-18 Marek Polacek <polacek@redhat.com>
3295
3296 * c-common.c (self_promoting_args_p): Change the return type to bool.
3297 Use false/true instead of 0/1.
3298 * c-common.h (self_promoting_args_p): Update.
3299
3fa8871b
MP
33002017-05-17 Marek Polacek <polacek@redhat.com>
3301
3302 * c-common.c: Use NULL_TREE instead of 0 where appropriate.
3303 * c-warn.c: Likewise.
3304
b42cc3ca
VV
33052017-05-17 Ville Voutilainen <ville.voutilainen@gmail.com>
3306
3307 Implement new C++ intrinsics __is_assignable and __is_constructible.
3308 * c-common.c (__is_assignable, __is_constructible): New.
3309 * c-common.h (RID_IS_ASSIGNABLE, RID_IS_CONSTRUCTIBLE): Likewise.
3310
1a817418
ML
33112017-05-17 Martin Liska <mliska@suse.cz>
3312
3313 * c-common.h: Introduce dump_flags_t type and
3314 use it instead of int type.
3315 * c-gimplify.c (c_genericize): Likewise.
3316 * c-opts.c: Likewise.
3317
b2fa0a8b
MP
33182017-05-17 Marek Polacek <polacek@redhat.com>
3319
3320 * c-common.c (c_save_expr): Remove.
3321 (c_common_truthvalue_conversion): Remove a call to c_save_expr.
3322 * c-common.h (c_save_expr): Remove declaration.
3323
31c2d57d
VR
33242017-05-09 Volker Reichelt <v.reichelt@netcologne.de>
3325
3326 PR c/35441
3327 * c-pretty-print.c (c_pretty_printer::expression): Handle MAX_EXPR,
3328 MIN_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, LROTATE_EXPR, RROTATE_EXPR.
3329 (c_pretty_printer::postfix_expression): Handle MAX_EXPR, MIN_EXPR.
3330 (c_pretty_printer::multiplicative_expression): Handle EXACT_DIV_EXPR,
3331 RDIV_EXPR.
3332 (pp_c_shift_expression): Handle LROTATE_EXPR, RROTATE_EXPR.
3333
684f84de
MP
33342017-05-09 Marek Polacek <polacek@redhat.com>
3335
3336 PR c/80525
3337 * c-warn.c (unwrap_c_maybe_const): New.
3338 (warn_logical_operator): Call it.
3339
641da50a
NS
33402017-05-09 Nathan Sidwell <nathan@acm.org>
3341
3342 * c-common.c (c_register_builtin_type): Use pushdecl lang_hook.
3343 * c-common.h (pushdecl_top_level, pushdecl): Don't declare here.
3344
631238ac
MS
33452017-05-08 Martin Sebor <msebor@redhat.com>
3346
3347 PR translation/80280
3348 * c-format.h (struct format_flag_spec): Add new member.
3349 (T89_T): New macro.
3350 * c-format.c (local_tree_type_node): New global.
3351 (printf_flag_specs, asm_fprintf_flag_spec): Initialize new data.
3352 (gcc_diag_flag_specs, scanf_flag_specs, strftime_flag_specs): Ditto.
3353 (strfmon_flag_specs): Likewise.
3354 (gcc_diag_char_table, gcc_cdiag_char_table): Split up specifiers
3355 with distinct quoting properties.
3356 (gcc_tdiag_char_table, gcc_cxxdiag_char_table): Same.
3357 (flag_chars_t::validate): Add argument and handle bad quoting.
3358 (check_format_info_main): Handle quoting problems.
3359 (init_dynamic_diag_info): Simplify.
3360
49f0c04c
JM
33612017-05-08 Jason Merrill <jason@redhat.com>
3362
3363 * c-opts.c (c_common_post_options): Update defaults for
3364 flag_abi_version and flag_abi_compat_version.
3365
56d35585
DM
33662017-05-05 David Malcolm <dmalcolm@redhat.com>
3367
3368 * c-common.c (c_cpp_error): Replace report_diagnostic
3369 with diagnostic_report_diagnostic.
3370
0f2c4a8f
MS
33712017-05-04 Martin Sebor <msebor@redhat.com>
3372
3373 PR translation/80280
3374 * c-attribs.c (handle_alias_ifunc_attribute): Quote a %D directive.
3375 (handle_weakref_attribute): Same.
3376
6fe63fb4
NS
33772017-05-03 Nathan Sidwell <nathan@acm.org>
3378
3379 Canonicalize canonical type hashing
3380 * c-common.c (complete_array_type): Use type_hash_canon.
3381
815d9cc6
XR
33822017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
3383
92a285c1 3384 PR c++/80038
815d9cc6
XR
3385 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): Remove
3386 prototype.
3387 (cilk_install_body_pedigree_operations): Likewise.
3388 * cilk.c (cilk_set_spawn_marker): Mark functions that should be
3389 detatched.
3390 (cilk_gimplify_call_params_in_spawned_fn): Remove.
3391 (cilk_install_body_pedigree_operations): Likewise.
3392 (gimplify_cilk_spawn): Add EXPR_STMT and CLEANUP_POINT_EXPR
3393 unwrapping.
3394
f8a36447
JJ
33952017-04-27 Jakub Jelinek <jakub@redhat.com>
3396
3397 PR c++/80534
3398 * c-common.c (complete_array_type): Only hash TYPE_TYPELESS_STORAGE
3399 flag on non-aggregate element types.
3400
7c145456
BE
34012017-04-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
3402
3403 * c-common.c (c_type_hasher, type_hash_table): Remove.
3404 (c_common_get_alias_set): Remove unreachable code.
3405 * c-opts.c (c_common_post_options): Make sure cc1 takes only one file.
3406
c3cbcd45
VR
34072017-04-20 Volker Reichelt <v.reichelt@netcologne.de>
3408
3409 * c.opt (Wextra-semi): New C++ warning flag.
3410
8a59d466
JJ
34112017-04-20 Jakub Jelinek <jakub@redhat.com>
3412
3413 PR middle-end/80423
3414 * c-common.c (complete_array_type): Preserve TYPE_TYPELESS_STORAGE.
3415
8487c9a5
JJ
34162017-04-18 Jakub Jelinek <jakub@redhat.com>
3417
3418 PR middle-end/79788
3419 PR middle-end/80375
3420 * c-common.c (c_common_type_for_mode): Don't handle
3421 widest_*_literal_type_node here.
3422 c_common_signed_or_unsigned_type): Likewise.
3423 (c_common_nodes_and_builtins): Set widest_*_literal_type_node
3424 to *intTI_type_node or *intDI_type_node depending on whether
3425 TImode is supported by the target or not.
3426
3ee0fb02
ML
34272017-04-10 Martin Liska <mliska@suse.cz>
3428
3429 PR sanitizer/80350
3430 * c-ubsan.c (ubsan_instrument_shift): Evaluate RHS before
3431 doing an UBSAN check.
3432
5764ee3c
JW
34332017-04-03 Jonathan Wakely <jwakely@redhat.com>
3434
3435 * c-warn.c (do_warn_double_promotion): Fix typo in comment.
3436
6f3af356
JJ
34372017-03-31 Jakub Jelinek <jakub@redhat.com>
3438
3439 PR c++/79572
3440 * c-ubsan.h (ubsan_maybe_instrument_reference): Change argument to
3441 tree *.
3442 * c-ubsan.c (ubsan_maybe_instrument_reference): Likewise. Handle
3443 not just NOP_EXPR to REFERENCE_TYPE, but also INTEGER_CST with
3444 REFERENCE_TYPE.
3445
f6a7a9d5
DM
34462017-03-31 David Malcolm <dmalcolm@redhat.com>
3447
3448 PR documentation/78732
3449 * c.opt (Wendif-labels): Fix description to refer to
3450 #else rather than #elif.
3451
af88f557
JJ
34522017-03-31 Jakub Jelinek <jakub@redhat.com>
3453
3454 PR libstdc++/80251
3455 * c-common.h (enum rid): Add RID_IS_AGGREGATE.
3456 * c-common.c (c_common_reswords): Add __is_aggregate trait.
3457
a9e4a1a5
JJ
34582017-03-27 Jakub Jelinek <jakub@redhat.com>
3459
3460 PR middle-end/80162
3461 * c-common.c (c_common_mark_addressable_vec): Don't set
3462 TREE_ADDRESSABLE on DECL_HARD_REGISTER.
3463
3f01b620
MS
34642017-03-21 Martin Sebor <msebor@redhat.com>
3465
3466 PR c++/79548
3467 * c-common.c (set_underlying_type): Mark type used only when
3468 original del is declared unused.
3469
2f6f187a
DM
34702017-03-10 David Malcolm <dmalcolm@redhat.com>
3471
3472 PR translation/79848
3473 * c-format.c (check_format_string): Simplify uses of "%<%s%>" to
3474 "%qs".
3475
a02fa805
DM
34762017-03-10 David Malcolm <dmalcolm@redhat.com>
3477
3478 PR c/79921
3479 * c-indentation.c (warn_for_misleading_indentation): Remove parens
3480 from inform's message, so that xgettext can locate it.
3481
822a132c
MP
34822017-03-09 Marek Polacek <polacek@redhat.com>
3483
3484 PR c++/79962
3485 PR c++/79984
3486 * c-attribs.c (handle_nonnull_attribute): Save the result of default
3487 conversion to the attribute list.
3488
bba81f1c
ML
34892017-03-09 Martin Liska <mliska@suse.cz>
3490
3491 * c-ada-spec.c (macro_length): Increment value instead of a pointer.
3492
108154ff
JM
34932017-03-03 Jason Merrill <jason@redhat.com>
3494
3495 * c.opt (Wnoexcept-type): New.
3496
eb0e7c34
RB
34972017-03-02 Richard Biener <rguenther@suse.de>
3498
3499 PR c/79756
3500 * c-common.c (c_common_mark_addressable_vec): Look through
3501 C_MAYBE_CONST_EXPR.
3502
9453ba0a
ML
35032017-02-28 Martin Liska <mliska@suse.cz>
3504
3505 * c.opt: Replace space with tabular for options of <number>
3506 type.
3507
6a825afe
ML
35082017-02-28 Martin Liska <mliska@suse.cz>
3509
3510 * c.opt: Fix --help=option -Q for options which are of
3511 an enum type.
3512
4227c9ad
JJ
35132017-02-24 Jakub Jelinek <jakub@redhat.com>
3514
3515 PR c++/79588
3516 * c-common.c (check_function_restrict): New function.
3517 (check_function_arguments): Add FNDECL argument. Call
3518 check_function_restrict if -Wrestrict.
3519 * c-warn.c (warn_for_restrict): Remove ARGS argument, add ARGARRAY
3520 and NARGS. Use auto_vec for ARG_POSITIONS, simplify.
3521 * c-common.h (check_function_arguments): Add FNDECL argument.
3522 (warn_for_restrict): Remove ARGS argument, add ARGARRAY and NARGS.
3523
59909673
EB
35242017-02-24 Eric Botcazou <ebotcazou@adacore.com>
3525
3526 * c-ada-spec.c (dump_ada_function_declaration): Add comment about the
3527 treatment of parameters with pointer-to-tagged type and tidy up.
3528 (print_ada_methods): Remove the special treatment of C++ static member
3529 functions.
3530
54dcd526
ML
35312017-02-22 Martin Liska <mliska@suse.cz>
3532
3533 * c.opt: Replace inequality signs with square brackets
3534 for -Wnornalized.
3535
00bc9de3
JJ
35362017-02-21 Jakub Jelinek <jakub@redhat.com>
3537
3538 PR c++/79641
3539 * c-attribs.c (handle_mode_attribute): Use build_qualified_type to
3540 preserve quals.
3541
97fcf744
JM
35422017-02-17 Joseph Myers <joseph@codesourcery.com>
3543
3544 * c-cppbuiltin.c (builtin_define_float_constants): Define
3545 __DECIMAL_DIG__ to the value for long double.
3546
c7545f1c
MP
35472017-02-15 Marek Polacek <polacek@redhat.com>
3548
3549 PR c/79515
3550 * c-warn.c (do_warn_double_promotion): Don't warn if an invalid
3551 conversion has occured.
3552
c2e84327
DM
35532017-01-24 David Malcolm <dmalcolm@redhat.com>
3554
3555 * c-common.c (c_common_reswords): Add "__RTL".
3556 * c-common.h (enum rid): Add RID_RTL.
3557
2ebd93e1
MP
35582017-01-20 Marek Polacek <polacek@redhat.com>
3559
3560 PR c/64279
3561 * c-common.h (do_warn_duplicated_branches_r): Declare.
3562 * c-gimplify.c (c_genericize): Walk the function tree calling
3563 do_warn_duplicated_branches_r.
3564 * c-warn.c (expr_from_macro_expansion_r): New.
3565 (do_warn_duplicated_branches): New.
3566 (do_warn_duplicated_branches_r): New.
3567 * c.opt (Wduplicated-branches): New option.
3568
0d80ab91
DM
35692017-01-17 David Malcolm <dmalcolm@redhat.com>
3570
3571 PR c++/71497
3572 * c-indentation.c (warn_for_misleading_indentation): Use the past
3573 subjunctive in the note.
3574
7f991c36
AH
35752017-01-17 Aldy Hernandez <aldyh@redhat.com>
3576
3577 PR c/79116
3578 * array-notation-common.c (cilkplus_extract_an_triplets): Convert
3579 start type to integer_type.
3580
1c70261c
JJ
35812017-01-16 Jakub Jelinek <jakub@redhat.com>
3582
3583 PR driver/49726
3584 * c.opt (gen-decls): Add Driver flag.
3585
1ddca3f3
PC
35862017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
3587
3588 Revert:
3589 2017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
3590
3591 PR c++/71737
3592 * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
3593
7d2f3f1d
PC
35942017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
3595
3596 PR c++/71737
3597 * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
3598
bce6f760
MS
35992017-01-12 Martin Sebor <msebor@redhat.com>
3600
3601 (-Wformat-overflow): ...to this.
3602
bf5fbf46
MS
36032017-01-11 Martin Sebor <msebor@redhat.com>
3604
3605 PR c/78768
3606 * c.opt (-Walloca-larger-than, -Wformat-length, -Wformat-truncation):
3607 Also enable for LTO.
3608
e363df3f
JM
36092017-01-10 Jason Merrill <jason@redhat.com>
3610
3611 Implement P0195R2, C++17 variadic using.
3612 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_variadic_using.
3613
bd2c6270
JJ
36142017-01-09 Jakub Jelinek <jakub@redhat.com>
3615
3616 PR translation/79019
3617 PR translation/79020
3618 * c.opt (Wnormalized=): Fix typo in description.
3619
efcc8d38
MS
36202017-01-08 Martin Sebor <msebor@redhat.com>
3621
3622 PR middle-end/77708
3623 * c.opt (-Wformat-truncation): New option.
3624
ab20d992 36252017-01-06 Alexandre Oliva <aoliva@redhat.com>
435f3f7a
AO
3626
3627 * c-pretty-print.c (pp_c_tree_decl_identifier): Convert 16-bit
3628 value to unsigned short to fit in 4 hex digits without
3629 warnings.
3630
4e89adf9
EB
36312017-01-05 Eric Botcazou <ebotcazou@adacore.com>
3632
3633 * c.opt (fsso-struct): Add 'native' value.
3634
cd445b54
ML
36352017-01-05 Martin Liska <mliska@suse.cz>
3636
3637 PR pch/78970
3638 * c-opts.c (c_common_post_options): Reject '-' filename for a precompiled
3639 header.
3640
a9342885
MP
36412017-01-04 Marek Polacek <polacek@redhat.com>
3642
3643 PR c++/64767
3644 * c.opt (Wpointer-compare): New option.
3645
fc73e60c
JJ
36462017-01-04 Jakub Jelinek <jakub@redhat.com>
3647
3648 PR driver/78957
3649 * c.opt (fsso-struct=): Add RejectNegative.
3650
cbe34bb5
JJ
36512017-01-01 Jakub Jelinek <jakub@redhat.com>
3652
3653 Update copyright years.
3654
d4a6c0ea
ML
36552016-12-29 Martin Liska <mliska@suse.cz>
3656
3657 PR c/78933
3658 * c.opt (strong-eval-order): Add RejectNegative keyword.
3659
67a5ad7c
JM
36602016-12-22 Jason Merrill <jason@redhat.com>
3661
3662 Implement P0522R0, matching of template template arguments.
3663 * c-cppbuiltin.c (c_cpp_builtins): Define
3664 __cpp_template_template_args.
3665
0dba7960
JJ
36662016-12-21 Jakub Jelinek <jakub@redhat.com>
3667
3668 PR bootstrap/78817
3669 * c-common.c (struct nonnull_arg_ctx): New type.
3670 (check_function_nonnull): Return bool instead of void. Use
3671 nonnull_arg_ctx as context rather than just location_t.
3672 (check_nonnull_arg): Adjust for the new context type, set
3673 warned_p to true if a warning has been diagnosed.
3674 (check_function_arguments): Return bool instead of void.
3675 * c-common.h (check_function_arguments): Adjust prototype.
3676
31bfc9b9
JM
36772016-12-21 Jason Merrill <jason@redhat.com>
3678
3679 * c.opt (-fnew-ttp-matching): New flag.
3680 * c-opts.c (c_common_post_options): Default on if -std=c++1z.
3681
629b3d75
MJ
36822016-12-14 Martin Jambor <mjambor@suse.cz>
3683
3684 * c-omp.c: Include omp-general.h instead of omp-low.h.
3685 (c_finish_oacc_wait): Adjusted call to find_omp_clause to use its new
3686 name.
3687
474da67e
MS
36882016-12-14 Martin Sebor <msebor@redhat.com>
3689
3690 PR c/17308
3691 * c-common.c (check_nonnull_arg): Disable when optimization
3692 is enabled.
3693
fe366b87
MP
36942016-12-12 Marek Polacek <polacek@redhat.com>
3695
3696 PR c++/78647
3697 * c-common.c (attribute_fallthrough_p): Return false for
3698 error_mark_node.
3699
8bd9f164
MS
37002016-12-08 Martin Sebor <msebor@redhat.com>
3701
3702 PR c/78284
3703 * c.opt (-Walloc-zero, -Walloc-size-larger-than): New options.
3704
060162e0
MS
37052016-12-08 Martin Sebor <msebor@redhat.com>
3706
3707 PR c/78165
92a285c1
ML
3708 * c-pretty-print (pp_c_integer_constant): Avoid formatting type
3709 suffix.
060162e0 3710
ee92e7ba
MS
37112016-12-07 Martin Sebor <msebor@redhat.com>
3712
3713 PR c/53562
3714 PR middle-end/77784
3715 PR middle-end/78149
3716 PR middle-end/78138
3717 * c.opt (-Wstringop-overflow): New option.
3718
84b0769e
MO
37192016-12-02 Maxim Ostapenko <m.ostapenko@samsung.com>
3720
3721 * c-attribs.c (asan odr indicator): New attribute.
3722 (handle_asan_odr_indicator_attribute): New function.
3723
7fa6a965
PK
37242016-11-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3725
3726 * c-common.c (c_common_nodes_and_builtins): Remove initialization of
3727 ptrdiff_type_node;
3728
56d8ffc1
JG
37292016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3730
3731 * c-common.c (excess_precision_mode_join): New.
3732 (c_ts18661_flt_eval_method): New.
3733 (c_c11_flt_eval_method): Likewise.
3734 (c_flt_eval_method): Likewise.
3735 * c-common.h (excess_precision_mode_join): New.
3736 (c_flt_eval_method): Likewise.
3737 * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): New.
3738 (cpp_iec_559_value): Call it.
3739 (c_cpp_builtins): Modify logic for __LIBGCC_*_EXCESS_PRECISION__,
3740 call c_flt_eval_method to set __FLT_EVAL_METHOD__ and
3741 __FLT_EVAL_METHOD_TS_18661_3__.
3742
04f0fcf7
JG
37432016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3744
3745 * c-opts.c (c_common_post_options): Add logic to handle the default
3746 case for -fpermitted-flt-eval-methods.
3747
fb2675cb
PB
37482016-11-23 Paolo Bonzini <bonzini@gnu.org>
3749
3750 * c.opt (Wexpansion-to-defined): New.
3751
ec1c5694
JJ
37522016-11-23 Jakub Jelinek <jakub@redhat.com>
3753
3754 PR target/78451
3755 * c-pragma.c (handle_pragma_target): Don't replace
3756 current_target_pragma, but chainon the new args to the current one.
3757
730c9e75
NS
37582016-11-22 Nathan Sidwell <nathan@acm.org>
3759
3760 * array-notation-common.c (cilkplus_extract_an_trplets): Fix
cacd29be 3761 indentation and formatting.
730c9e75 3762
89990732
MS
37632016-11-21 Martin Sebor <msebor@redhat.com>
3764
3765 * c.opt (-fprintf-return-value): Enable by default.
3766
48330c93
BE
37672016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
3768
3769 PR c++/71973
3770 * c.opt (-Wbuiltin-declaration-mismatch): New warning.
3771 * c-common.c (c_common_nodes_and_builtins): Initialize
3772 const_tm_ptr_type_node.
3773
0d939c95
MP
37742016-11-16 Marek Polacek <polacek@redhat.com>
3775
3776 PR c/78285
3777 * c-common.c (c_add_case_label): Turn error_at calls into inform.
3778
8e745a17
JJ
37792016-11-14 Jakub Jelinek <jakub@redhat.com>
3780
3781 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_structured_bindings.
3782
1ee62b92 37832016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
8e745a17
JJ
3784 Richard Biener <rguenther@suse.de>
3785
3786 * c-common.h (c_common_resword): Add RID_GIMPLE, RID_PHI types.
3787 * c-common.h (enum rid): Add RID_GIMPLE, RID_PHI.
3788 * c.opt (fgimple): New option.
1ee62b92 3789
22b15758
UB
37902016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3791
3792 PR c/35503
3793 * c-common.h (warn_for_restrict): Declare.
3794 * c-warn.c: Include gcc-rich-location.h.
3795 (warn_for_restrict): New function.
3796 * c-format.c (gcc_tdiag_char_table): Add entry for "Z" specifier.
3797 (gcc_cdiag_char_table): Likewise.
3798 (gcc_cxxdiag_char_table): Likewise.
3799 * c.opt (Wrestrict): New option.
3800
4be719cd
EB
38012016-11-13 Eric Botcazou <ebotcazou@adacore.com>
3802
3803 * c-ada-spec.c (print_ada_declaration): For typedef declarations, look
3804 for nested types only if the type is a record or union and dump SLOC.
3805
4a826ca6
JM
38062016-11-09 Jason Merrill <jason@redhat.com>
3807
3808 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_template_auto.
3809
2e955d50
JJ
38102016-11-09 Jakub Jelinek <jakub@redhat.com>
3811
3812 * c-ubsan.c (ubsan_instrument_shift): Handle split
3813 -fsanitize=shift-base and -fsanitize=shift-exponent.
3814
51dc6603
JM
38152016-11-07 Jason Merrill <jason@redhat.com>
3816
3817 * c.opt (Wc++1z-compat): New.
3818 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_noexcept_function_type.
3819
6dc4a604
ML
38202016-11-07 Martin Liska <mliska@suse.cz>
3821
3822 * c-warn.c (warn_for_unused_label): Save all labels used
3823 in goto or in &label.
3824
b302001e
JM
38252016-11-03 Jason Merrill <jason@redhat.com>
3826
3827 * c-cppbuiltin.c (c_cpp_builtins): Correct
3828 __cpp_inheriting_constructors.
3829
31f7f784
JM
38302016-11-01 Jason Merrill <jason@redhat.com>
3831
2bc78e3c
JM
3832 * c-cppbuiltin.c (c_cpp_builtins): Update
3833 __cpp_inheriting_constructors.
3834
31f7f784
JM
3835 * c.opt (-fnew-inheriting-ctors): New.
3836 * c-opts.c: Default to on for ABI 11+.
3837
dcb466ec
JJ
38382016-10-31 Jakub Jelinek <jakub@redhat.com>
3839
3840 PR c++/77948
3841 * c.opt (fext-numeric-literals): Add Var and Init.
3842 * c-opts.c (c_common_handle_option): Don't clear
3843 cpp_opts->ext_numeric_literals for -std=c++{11,14,1z}.
3844 (c_common_post_options): Clear it here if not set
3845 explicitly.
3846
52e1b91e
AH
38472016-10-28 Aldy Hernandez <aldyh@redhat.com>
3848
3849 PR debug/77773
3850 * c-pretty-print.c (simple_type_specifier): Do not dereference `t'
3851 if NULL.
3852
e16f1cc7
JJ
38532016-10-25 Jakub Jelinek <jakub@redhat.com>
3854
3855 * c-common.h (enum rid): Add RID_BUILTIN_LAUNDER.
3856 * c-common.c (c_common_reswords): Add __builtin_launder.
3857
f8348061
BE
38582016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
3859
3860 * c-common.c (c_common_truthvalue_conversion): Warn for
3861 multiplications in boolean context. Fix the quoting of '<<' and '<'
3862 in the shift warning.
3863
eff89e01
BE
38642016-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
3865
3866 * c-common.c (c_common_truthvalue_conversion): Fix the comment.
3867
24bc7bf4
JM
38682016-10-20 Jason Merrill <jason@redhat.com>
3869
3870 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_concepts value.
3871
4c712374
BE
38722016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
3873
3874 * c-common.c (c_common_truthvalue_conversion): Warn only for signed
3875 integer shift ops in boolean context.
3876
38772016-10-18 Aldy Hernandez <aldyh@redhat.com>
adc577c5
AH
3878
3879 * c.opt (Walloca): New.
3880 (Walloca-larger-than=): New.
3881 (Wvla-larger-than=): New.
3882
8fa18c06
MP
38832016-10-17 Marek Polacek <polacek@redhat.com>
3884
3885 * c-warn.c (find_array_ref_with_const_idx_r): Remove parameter names.
3886 Return immediately when finding a match.
3887 (warn_tautological_cmp): Remove a boolean variable that is no longer
3888 needed.
3889
b12b1915
MP
38902016-10-17 Marek Polacek <polacek@redhat.com>
3891
3892 * c-attribs.c: New file.
3893 * c-common.c: Move attributes handling to c-attribs.c.
3894 (get_nonnull_operand): No longer static.
3895 * c-common.h: Move the declarations from c-attribs.c to its own section.
3896
2045acd9
JM
38972016-10-14 Jason Merrill <jason@redhat.com>
3898
3899 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_aggregate_bases
3900 and __cpp_deduction_guides.
3901
14a2c9aa
JM
39022016-10-13 Jason Merrill <jason@redhat.com>
3903
3904 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_inline_variables.
3905
4d0cdd0c
TP
39062016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
3907
3908 * c-cppbuiltin.c: Include memmodel.h.
3909 * c-opts.c: Likewise.
3910 * c-pragma.c: Likewise.
3911 * c-warn.c: Likewise.
3912
70f6d5e1
JJ
39132016-10-12 Jakub Jelinek <jakub@redhat.com>
3914
3915 * c.opt (Wextra): Add as C/C++/ObjC/ObjC++ option.
3916 (Wimplicit-fallthrough=): Enable for these languages by -Wextra.
3917 * c-opts.c (sanitize_cpp_opts): Initialize
3918 cpp_opts->cpp_warn_implicit_fallthrough.
3919
78f61294
MP
39202016-10-11 Marek Polacek <polacek@redhat.com>
3921
3922 * c-common.c (warning_candidate_p): Change the return type to bool
3923 and return true/false instead of 1/0.
3924 (vector_mode_valid_p): Likewise.
3925
038b5cc0
MP
39262016-10-11 Marek Polacek <polacek@redhat.com>
3927
3928 * c-common.c (fold_for_warn): No longer static.
3929 (bool_promoted_to_int_p): Likewise.
3930 (c_common_get_narrower): Likewise.
3931 (constant_expression_warning): Move to c-warn.c.
3932 (constant_expression_error): Likewise.
3933 (overflow_warning): Likewise.
3934 (warn_logical_operator): Likewise.
3935 (find_array_ref_with_const_idx_r): Likewise.
3936 (warn_tautological_cmp): Likewise.
3937 (expr_has_boolean_operands_p): Likewise.
3938 (warn_logical_not_parentheses): Likewise.
3939 (warn_if_unused_value): Likewise.
3940 (strict_aliasing_warning): Likewise.
3941 (sizeof_pointer_memaccess_warning): Likewise.
3942 (check_main_parameter_types): Likewise.
3943 (conversion_warning): Likewise.
3944 (warnings_for_convert_and_check): Likewise.
3945 (match_case_to_enum_1): Likewise.
3946 (match_case_to_enum): Likewise.
3947 (c_do_switch_warnings): Likewise.
3948 (warn_for_omitted_condop): Likewise.
3949 (readonly_error): Likewise.
3950 (lvalue_error): Likewise.
3951 (invalid_indirection_error): Likewise.
3952 (warn_array_subscript_with_type_char): Likewise.
3953 (warn_about_parentheses): Likewise.
3954 (warn_for_unused_label): Likewise.
3955 (warn_for_div_by_zero): Likewise.
3956 (warn_for_memset): Likewise.
3957 (warn_for_sign_compare): Likewise.
3958 (do_warn_double_promotion): Likewise.
3959 (do_warn_unused_parameter): Likewise.
3960 (record_locally_defined_typedef): Likewise.
3961 (maybe_record_typedef_use): Likewise.
3962 (maybe_warn_unused_local_typedefs): Likewise.
3963 (maybe_warn_bool_compare): Likewise.
3964 (maybe_warn_shift_overflow): Likewise.
3965 (warn_duplicated_cond_add_or_warn): Likewise.
3966 (diagnose_mismatched_attributes): Likewise.
3967 * c-common.h: Move the declarations from c-warn.c to its own section.
3968 * c-warn.c: New file.
3969
627be19f
JM
39702016-10-08 Jason Merrill <jason@redhat.com>
3971
3972 * c-common.c (c_common_truthvalue_conversion): Don't distribute
3973 into COND_EXPR in C++.
3974
7bad794a
JJ
39752016-10-08 Jakub Jelinek <jakub@redhat.com>
3976
3977 * c-lex.c (c_lex_with_flags) <case CPP_COMMENT>: For CPP_COMMENT
3978 token with PREV_FALLTHROUGH, skip all following CPP_PADDING and
3979 CPP_COMMENT tokens and set add_flags to PREV_FALLTHROUGH afterwards.
3980
be845b04
JJ
39812016-10-07 Jakub Jelinek <jakub@redhat.com>
3982
3983 Implement LWG2296 helper intrinsic
3984 * c-common.h (enum rid): Add RID_ADDRESSOF.
3985 * c-common.c (c_common_reswords): Add __builtin_addressof.
3986
c09c4992
BE
39872016-10-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
3988
3989 PR c++/77700
3990 * c-common.c (c_common_truthvalue_conversion): Warn also for
3991 suspicious enum values in boolean context.
3992
342cfb3e
JJ
39932016-10-06 Jakub Jelinek <jakub@redhat.com>
3994
3995 Implement P0258R2 - helper for C++17
3996 std::has_unique_object_representations trait
3997 * c-common.h (enum rid): Add RID_HAS_UNIQUE_OBJ_REPRESENTATIONS.
3998 * c-common.c (c_common_reswords): Add
3999 __has_unique_object_representations.
4000
2e69f143
JJ
40012016-10-05 Jakub Jelinek <jakub@redhat.com>
4002
4003 PR sanitizer/66343
4004 * c-ubsan.c (ubsan_instrument_return): Don't call
4005 initialize_sanitizer_builtins here.
4006
700fff34
BE
40072016-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
4008
4009 * c-common.c (c_common_truthvalue_conversion): Warn also for suspicious
4010 conditional expression in boolean context when only one arm is
4011 non-boolean.
4012
9563bfcd
JJ
40132016-10-05 Jakub Jelinek <jakub@redhat.com>
4014
04a32443
JJ
4015 PR sanitizer/77823
4016 * c-ubsan.c (ubsan_instrument_shift): Return NULL_TREE if type0
4017 is not integral.
4018
9563bfcd
JJ
4019 * c-common.c (c_common_reswords): Update comment for C++11.
4020
f1644724
JM
40212016-10-04 Jason Merrill <jason@redhat.com>
4022
4023 * c-common.c (make_tree_vector_from_ctor): New.
4024 * c-common.h: Declare it.
4025
5a79befb
JJ
40262016-10-04 Jakub Jelinek <jakub@redhat.com>
4027
4028 * c-cppbuiltin.c (c_cpp_builtins): Don't define
4029 __LIBGCC_JCR_SECTION_NAME__.
4030
1633d3b9
BE
40312016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
4032
4033 * c-common.c (c_common_truthvalue_conversion): Warn for suspicious
4034 left shift in boolean context.
4035
a2c6e7f2
JJ
40362016-09-29 Jakub Jelinek <jakub@redhat.com>
4037
4038 Implement P0001R1 - C++17 removal of register storage class specifier
4039 * c.opt (Wregister): New warning.
4040 * c-opts.c (c_common_post_options): Enable -Wregister by
4041 default for C++17.
4042
75304c87
JG
40432016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
4044
4045 * c-opts.c (c_common_post_options): Remove special case for
4046 TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard
4047 in C++.
4048
bbfac6da
JJ
40492016-09-27 Jakub Jelinek <jakub@redhat.com>
4050
6e39060a
JJ
4051 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for
4052 -std=c++1z.
4053
bbfac6da
JJ
4054 * c-ada-spec.c (print_ada_declaration): Remove break after return.
4055
e73cf9a2
TP
40562016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
4057
4058 * c-common.c: Include memmodel.h.
4059
c6147dc4
MP
40602016-09-26 Marek Polacek <polacek@redhat.com>
4061
4062 * c-lex.c (c_common_has_attribute): Handle attribute fallthrough.
4063
81fea426
MP
40642016-09-26 Marek Polacek <polacek@redhat.com>
4065
4066 PR c/7652
4067 * c-common.c (c_common_attribute_table): Add fallthrough attribute.
4068 (handle_fallthrough_attribute): New function.
4069 (attribute_fallthrough_p): New function.
4070 * c-common.h (attribute_fallthrough_p): Declare.
4071
9a2300e9
MP
40722016-09-24 Marek Polacek <polacek@redhat.com>
4073
4074 PR c/77490
4075 * c.opt (Wbool-operation): New.
4076
a09e9e35
BE
40772016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
4078
4079 * c-common.c (c_common_truthvalue_conversion): Inhibit
4080 Wint-in-bool-context warning with from_macro_definition_at.
4081 Mention the expression will always evaluate to true.
4082
d43b4ccc
MS
40832016-09-21 Martin Sebor <msebor@redhat.com>
4084
4085 PR bootstrap/77676
4086 * c.opt (fprintf-return-value): Temporarily initialize to zero
4087 to unblock bootstrap failures.
4088
2e1c20b1
JJ
40892016-09-21 Jakub Jelinek <jakub@redhat.com>
4090
4091 PR c++/77651
4092 * c.opt (Waligned-new=): Add RejectNegative.
4093 (faligned-new=): Likewise. Spelling fix - change
4094 aligned_new_threshhold to aligned_new_threshold.
4095 * c-cppbuiltin.c (c_cpp_builtins): Change aligned_new_threshhold
4096 to aligned_new_threshold.
4097
88d0c3f0
MS
40982016-09-20 Martin Sebor <msebor@redhat.com>
4099
4100 PR middle-end/49905
4101 * c.opt: Add -Wformat-length and -fprintf-return-value.
4102
144a96e4
BE
41032016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
4104
4105 PR c++/77434
4106 * c.opt (Wint-in-bool-context): New warning.
4107 * c-common.c (c_common_truthvalue_conversion): Warn on integer
4108 constants in boolean context.
4109
63012d9a
JM
41102016-09-19 Joseph Myers <joseph@codesourcery.com>
4111
4112 * c-common.c (max_align_t_align): Also consider alignment of
4113 float128_type_node.
4114
931388ce
JM
41152016-09-15 Jason Merrill <jason@redhat.com>
4116
4117 * c-common.c (check_cxx_fundamental_alignment_constraints): Check
4118 DECL_EXTERNAL.
4119
38711381
JM
41202016-09-14 Jason Merrill <jason@redhat.com>
4121
4122 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
4123 limit FIELD_DECL, either.
4124
e51fbec3
MP
41252016-09-14 Marek Polacek <polacek@redhat.com>
4126
4127 * c-common.c (c_common_truthvalue_conversion): Use false instead of 0.
4128 * c-common.h (build_unary_op): Change nonconvert parameter type to bool.
4129 * c-omp.c (c_finish_omp_atomic): Use false instead of 0.
4130
254830ba
DM
41312016-09-13 David Malcolm <dmalcolm@redhat.com>
4132
4133 * c-common.c (warn_logical_not_parentheses): Replace
4134 rich_location::add_fixit_insert calls with add_fixit_insert_before
4135 and add_fixit_insert_after, eliminating the "next_loc" calculation.
4136
42763690
JM
41372016-09-13 Jason Merrill <jason@redhat.com>
4138 Tom de Vries <tom@codesourcery.com>
4139
4140 PR c++/77427
4141 * c-common.c (set_underlying_type): Don't treat array as builtin type.
4142
9453eee9
JM
41432016-09-13 Jason Merrill <jason@redhat.com>
4144
4145 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
4146 limit types at all.
4147
e96809e3
JM
41482016-09-12 Jason Merrill <jason@redhat.com>
4149
4150 * c-common.c (check_cxx_fundamental_alignment_constraints): Fix
4151 bit/byte confusion, allow large alignment for types.
4152
54dcdb88
BE
41532016-09-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
4154
4155 PR c++/77496
4156 * c-common.c (warn_for_omitted_condop): Also warn for boolean data.
4157
d1463eb9
DM
41582016-09-12 David Malcolm <dmalcolm@redhat.com>
4159
4160 PR c/72858
4161 * c-format.c (argument_parser::check_argument_type): Add params
4162 "type_start" and "conversion_char". Use the former to generate
4163 offset_to_type_start and pass it and conversion_char to
4164 check_format_types.
4165 (check_format_info_main): Capture the start of the type
4166 information as "type_start", and pass it an format_char
4167 to arg_parser.check_argument_type.
4168 (check_format_types): Provide an example in the leading comment.
4169 Add params "offset_to_type_start" and "conversion_char"; pass
4170 them to format_type_warning calls.
4171 (test_get_modifier_for_format_len): Likewise.
4172 (matching_type_p): New function.
4173 (get_format_for_type): Add param "conversion_char" and move
4174 implementation into...
4175 (get_format_for_type_1): ...new function, called twice.
4176 Use new function matching_type_p rather than checking for
4177 TYPE_CANONICAL equality.
4178 (get_corrected_substring): New function.
4179 (format_type_warning): Provide an example in the leading comment.
4180 Add params "offset_to_type_start" and "conversion_char". Replace
4181 call to get_format_for_type with call to get_corrected_substring
4182 and move rejection of hints for widths/precisions there.
4183 (assert_format_for_type_streq): Add param "conversion_char".
4184 (ASSERT_FORMAT_FOR_TYPE_STREQ): Add param CONVERSION_CHAR.
4185 (test_get_format_for_type_printf): Add conversion chars to the
4186 tests, adding coverage for various combinations of integer
4187 vs double conversions, and for preserving octal and hexadecimal
4188 conversions.
4189 (test_get_format_for_type_scanf): Add conversion chars to the
4190 tests.
4191
5b28efbb
TV
41922016-09-10 Tom de Vries <tom@codesourcery.com>
4193
4194 PR C/71602
4195 * c-common.c (build_va_arg): Handle more strict
4196 targetm.canonical_va_list_type. Replace first argument type error with
4197 assert.
4198
3f0177e7
MS
41992016-09-09 Martin Sebor <msebor@redhat.com>
4200
4201 PR c/77520
4202 PR c/77521
4203 * c-format.c (argument_parser::find_format_char_info): Use %qc
4204 format directive unconditionally.
4205
af63ba4b
JM
42062016-09-09 Jason Merrill <jason@redhat.com>
4207
4208 Implement C++17 new of over-aligned types.
4209 * c.opt: Add -faligned-new and -Waligned-new.
4210 * c-common.c (max_align_t_align): Split out from...
4211 (cxx_fundamental_alignment_p): ...here.
4212 * c-common.h: Declare it.
4213 * c-cppbuiltin.c (c_cpp_builtins): Handle aligned new.
4214
c65248cb
JM
42152016-09-09 Joseph Myers <joseph@codesourcery.com>
4216
4217 * c-cppbuiltin.c (builtin_define_type_width): New function.
4218 (builtin_define_stdint_macros, c_cpp_builtins): Define type width
4219 macros.
4220
e5106e27
DM
42212016-09-07 David Malcolm <dmalcolm@redhat.com>
4222
4223 * c-common.c (get_cpp_ttype_from_string_type): Handle being passed
4224 a POINTER_TYPE.
4225 (substring_loc::get_location): Move to substring-locations.c,
4226 keeping implementation as...
4227 (c_get_substring_location): New function, from the above, reworked
4228 to use accessors rather than member lookup.
4229 * c-common.h (class substring_loc): Move to substring-locations.h,
4230 replacing with a forward decl.
4231 (c_get_substring_location): New decl.
4232 * c-format.c: Include "substring-locations.h".
4233 (format_warning_va): Move to substring-locations.c.
4234 (format_warning_at_substring): Likewise.
4235
ab20d992 42362016-09-06 Martin Sebor <msebor@redhat.com>
a42e7952
MS
4237
4238 PR c/77336
4239 * c-format.c (check_function_format): Avoid issuing warnings for
4240 functions unless they call format functions with non-constant
4241 format strings.
4242
b772a565
RB
42432016-09-06 Richard Biener <rguenther@suse.de>
4244
4245 PR c/77450
4246 * c-common.c (c_common_mark_addressable_vec): Handle
4247 COMPOUND_LITERAL_EXPR.
4248
25ff5dd3
MP
42492016-09-05 Marek Polacek <polacek@redhat.com>
4250
4251 PR c/77423
4252 * c-common.c (bool_promoted_to_int_p): New function.
4253 (expr_has_boolean_operands_p): New function.
4254 (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p.
4255 (maybe_warn_bool_compare): Use bool_promoted_to_int_p.
4256
21234eb5
TV
42572016-09-04 Tom de Vries <tom@codesourcery.com>
4258
4259 revert:
4260 2016-08-29 Tom de Vries <tom@codesourcery.com>
4261
4262 * c-common.c (build_va_arg): Replace first argument type error
4263 with assert.
4264
9dc5773f
JJ
42652016-09-02 Jakub Jelinek <jakub@redhat.com>
4266
4267 PR c/65467
4268 * c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions.
4269 (c_finish_omp_for): Reject _Atomic qualified iterators.
4270
42712016-09-01 Martin Sebor <msebor@redhat.com>
3d7b83b6
MS
4272
4273 * c-ada-spec.c (dump_ada_function_declaration): Increase buffer
4274 size to guarantee it fits the output of the formatted function
4275 regardless of its arguments.
4276
295844f6
MP
42772016-09-01 Marek Polacek <polacek@redhat.com>
4278
4279 PR c/7652
4280 * c-common.c (resolve_overloaded_builtin): Fix formatting. Add
4281 FALLTHRU comments.
4282
3d06b6f2
MP
42832016-08-29 Marek Polacek <polacek@redhat.com>
4284
4285 PR c/77292
4286 * c-common.c (warn_logical_not_parentheses): Don't warn for
4287 a comparison or a logical operator.
4288
34cedad5
TV
42892016-08-29 Tom de Vries <tom@codesourcery.com>
4290
4291 * c-common.c (build_va_arg): Fix type comparison assert.
4292
f162d717
TV
42932016-08-29 Tom de Vries <tom@codesourcery.com>
4294
4295 * c-common.c (build_va_arg): Replace first argument type error
4296 with assert.
4297
ba9bbd6f
TV
42982016-08-29 Tom de Vries <tom@codesourcery.com>
4299
4300 PR c/77398
4301 * c-common.c (build_va_arg): Add first argument error. Build va_arg
4302 with error_mark_node as va_list instead of with illegal va_list.
4303
ebef225f
MP
43042016-08-25 Marek Polacek <polacek@redhat.com>
4305 David Malcolm <dmalcolm@redhat.com>
4306
4307 * c-common.c (warn_logical_not_parentheses): Print fixit hints.
4308 * c-common.h (warn_logical_not_parentheses): Update declaration.
4309
b00e6e75
MP
43102016-08-22 Marek Polacek <polacek@redhat.com>
4311
4312 PR c++/77321
4313 * c-common.c (warn_for_memset): Check type for null.
4314
6dc198e3
JM
43152016-08-22 Joseph Myers <joseph@codesourcery.com>
4316
14ec014e 4317 * c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and
6dc198e3
JM
4318 _FloatNx types for suffixes for built-in functions.
4319
c65699ef
JM
43202016-08-19 Joseph Myers <joseph@codesourcery.com>
4321
4322 PR c/32187
4323 * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32)
4324 (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X)
4325 (RID_FLOAT128X): New enum rid values.
4326 (CASE_RID_FLOATN_NX): New macro.
4327 * c-common.c (c_common_reswords): Add _FloatN and _FloatNx
4328 keywords.
4329 (c_common_type_for_mode): Check for _FloatN and _FloatNx and
4330 corresponding complex types.
4331 (c_common_nodes_and_builtins): For non-C++, register _FloatN and
4332 _FloatNx and corresponding complex types.
4333 (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX.
4334 * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN
4335 and _FloatNx types for the widest type for determining
4336 DECIMAL_DIG. Define __LDBL_DECIMAL_DIG__ as well as
4337 __DECIMAL_DIG__ for long double. Handle FMA_SUFFIX being NULL.
4338 (c_cpp_builtins): Call builtin_define_float_constants for _FloatN
4339 and _FloatNx types.
4340 * c-lex.c (interpret_float): Handle _FloatN and _FloatNx
4341 constants.
4342 * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and
4343 _FloatNx types.
4344
cc015f3a
DM
43452016-08-18 David Malcolm <dmalcolm@redhat.com>
4346
4347 * c-opts.c (c_diagnostic_finalizer): Update for change to
4348 diagnostic_show_locus.
4349
cb18fd07
DM
43502016-08-18 David Malcolm <dmalcolm@redhat.com>
4351
4352 * c-common.c: Include "spellcheck.h".
4353 (cb_get_suggestion): New function.
4354 * c-common.h (cb_get_suggestion): New decl.
4355 * c-lex.c (init_c_lex): Initialize cb->get_suggestion to
4356 cb_get_suggestion.
4357
a76989dc
MP
43582016-08-18 Marek Polacek <polacek@redhat.com>
4359
4360 PR c/71514
4361 * c-common.c (get_atomic_generic_size): Disallow pointer-to-function
4362 and pointer-to-VLA.
4363
65e736c0
DM
43642016-08-16 David Malcolm <dmalcolm@redhat.com>
4365
4366 PR c/72857
4367 * c-common.c (substring_loc::get_range): Rename to...
4368 (substring_loc::get_location): ...this, converting param from a
4369 source_range * to a location_t *. Call
4370 get_source_location_for_substring rather than
4371 get_source_range_for_substring, and pass in m_caret_idx.
4372 * c-common.h (substring_loc::substring_loc): Add param "caret_idx".
4373 (substring_loc::get_range): Replace with...
4374 (substring_loc::get_location): ...this.
4375 (substring_loc::set_caret_index): New method.
4376 (substring_loc): Add field m_caret_idx.
4377 * c-format.c (format_warning_va): Update for above changes.
4378 Rename local "substring_loc" to "fmt_substring_loc" to avoid
4379 clashing with type name.
4380 (format_warning_at_char): Add caret_idx param to substring_loc ctor.
4381 (check_argument_type): Likewise.
4382 (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc"
4383 Use a copy when emitting warnings, setting the caret index from TYPE.
4384
7e1dde14 43852016-08-16 Eric Botcazou <ebotcazou@adacore.com>
8e745a17 4386 Arnaud Charlet <charlet@adacore.com>
7e1dde14
EB
4387
4388 * c-ada-spec.c (dump_number): New function.
4389 (handle_escape_character): Likewise.
4390 (print_ada_macros): Add handling of constant integers and strings.
4391
191816a3
MP
43922016-08-12 Marek Polacek <polacek@redhat.com>
4393
4394 PR c/7652
4395 * c-common.c (scalar_to_vector): Adjust fall through comment.
4396 * c-opts.c (c_common_handle_option): Likewise.
4397 * c-pragma.c (handle_pragma_pack): Add FALLTHRU.
4398 * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust
4399 fall through comment.
4400 * cilk.c (extract_free_variables): Add FALLTHRU.
4401
452df4a4
JM
44022016-08-10 Jason Merrill <jason@redhat.com>
4403
4404 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr.
4405
f3365c12
JM
44062016-08-09 Jason Merrill <jason@redhat.com>
4407
4408 * c-common.c (c_common_attribute_table): vector_size affects type
4409 identity.
4410
f0bc3323
MP
44112016-08-09 Marek Polacek <polacek@redhat.com>
4412
4413 PR c/7652
4414 * c-ada-spec.c (dump_generic_ada_node): Add return.
4415
98e5a19a
JM
44162016-08-09 Jason Merrill <jason@redhat.com>
4417
4418 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for
4419 C++17 constexpr lambdas.
4420
895aa8e1
DM
44212016-08-08 David Malcolm <dmalcolm@redhat.com>
4422
4423 PR c/64955
4424 * c-common.h (selftest::c_format_c_tests): New declaration.
4425 (selftest::run_c_tests): New declaration.
4426 * c-format.c: Include "selftest.h.
4427 (format_warning_va): Add param "corrected_substring" and use
4428 it to add a replacement fix-it hint.
4429 (format_warning_at_substring): Likewise.
4430 (format_warning_at_char): Update for new param of
4431 format_warning_va.
4432 (argument_parser::check_argument_type): Pass "fki" to
4433 check_format_types.
4434 (check_format_types): Add param "fki" and pass it to
4435 format_type_warning.
4436 (deref_n_times): New function.
4437 (get_modifier_for_format_len): New function.
4438 (selftest::test_get_modifier_for_format_len): New function.
4439 (get_format_for_type): New function.
4440 (format_type_warning): Add param "fki" and use it to attempt
4441 to provide hints for argument types when calling
4442 format_warning_at_substring.
4443 (selftest::get_info): New function.
4444 (selftest::assert_format_for_type_streq): New function.
4445 (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro.
4446 (selftest::test_get_format_for_type_printf): New function.
4447 (selftest::test_get_format_for_type_scanf): New function.
4448 (selftest::c_format_c_tests): New function.
4449
e52ed3fe
DM
44502016-08-08 David Malcolm <dmalcolm@redhat.com>
4451
4452 PR c/52952
4453 * c-format.c: Include "diagnostic.h".
4454 (location_column_from_byte_offset): Delete.
4455 (location_from_offset): Delete.
4456 (format_warning_va): New function.
4457 (format_warning_at_substring): New function.
4458 (format_warning_at_char): New function.
4459 (check_format_arg): Capture location of format_tree and pass to
4460 check_format_info_main.
4461 (argument_parser): Add fields "start_of_this_format" and
4462 "format_string_cst".
4463 (flag_chars_t::validate): Add param "format_string_cst". Convert
4464 warning_at call using location_from_offset to call to
4465 format_warning_at_char.
4466 (argument_parser::argument_parser): Add param "format_string_cst_"
4467 and use use it to initialize field "format_string_cst".
4468 Initialize new field "start_of_this_format".
4469 (argument_parser::read_format_flags): Convert warning_at call
4470 using location_from_offset to a call to format_warning_at_char.
4471 (argument_parser::read_any_format_left_precision): Likewise.
4472 (argument_parser::read_any_format_precision): Likewise.
4473 (argument_parser::read_any_other_modifier): Likewise.
4474 (argument_parser::find_format_char_info): Likewise, in three places.
4475 (argument_parser::parse_any_scan_set): Likewise, in one place.
4476 (argument_parser::handle_conversions): Likewise, in two places.
4477 (argument_parser::check_argument_type): Add param "fmt_param_loc"
4478 and use it to make a substring_loc. Pass the latter to
4479 check_format_types.
4480 (check_format_info_main): Add params "fmt_param_loc" and
4481 "format_string_cst". Convert warning_at calls using
4482 location_from_offset to calls to format_warning_at_char. Pass the
4483 new params to the arg_parser ctor. Pass "format_string_cst" to
4484 flag_chars.validate. Pass "fmt_param_loc" to
4485 arg_parser.check_argument_type.
4486 (check_format_types): Convert first param from a location_t
4487 to a const substring_loc & and rename to "fmt_loc". Attempt
4488 to extract the range of the relevant parameter and pass it
4489 to format_type_warning.
4490 (format_type_warning): Convert first param from a location_t
4491 to a const substring_loc & and rename to "fmt_loc". Add
4492 params "param_range" and "type". Replace calls to warning_at
4493 with calls to format_warning_at_substring.
4494
1c4d457e
DM
44952016-08-08 David Malcolm <dmalcolm@redhat.com>
4496
4497 * c-format.c (class flag_chars_t): New class.
4498 (struct length_modifier): New struct.
4499 (class argument_parser): New class.
4500 (flag_chars_t::flag_chars_t): New ctor.
4501 (flag_chars_t::has_char_p): New method.
4502 (flag_chars_t::add_char): New method.
4503 (flag_chars_t::validate): New method.
4504 (flag_chars_t::get_alloc_flag): New method.
4505 (flag_chars_t::assignment_suppression_p): New method.
4506 (argument_parser::argument_parser): New ctor.
4507 (argument_parser::read_any_dollar): New method.
4508 (argument_parser::read_format_flags): New method.
4509 (argument_parser::read_any_format_width): New method.
4510 (argument_parser::read_any_format_left_precision): New method.
4511 (argument_parser::read_any_format_precision): New method.
4512 (argument_parser::handle_alloc_chars): New method.
4513 (argument_parser::read_any_length_modifier): New method.
4514 (argument_parser::read_any_other_modifier): New method.
4515 (argument_parser::find_format_char_info): New method.
4516 (argument_parser::validate_flag_pairs): New method.
4517 (argument_parser::give_y2k_warnings): New method.
4518 (argument_parser::parse_any_scan_set): New method.
4519 (argument_parser::handle_conversions): New method.
4520 (argument_parser::check_argument_type): New method.
4521 (check_format_info_main): Introduce classes argument_parser
4522 and flag_chars_t, moving the code within the loop into methods
4523 of these classes. Make various locals "const".
4524
88fa5555
DM
45252016-08-05 David Malcolm <dmalcolm@redhat.com>
4526
4527 * c-common.c: Include "substring-locations.h".
4528 (get_cpp_ttype_from_string_type): New function.
4529 (g_string_concat_db): New global.
4530 (substring_loc::get_range): New method.
4531 * c-common.h (g_string_concat_db): New declaration.
4532 (class substring_loc): New class.
4533 * c-lex.c (lex_string): When concatenating strings, capture the
4534 locations of all tokens using a new obstack, and record the
4535 concatenation locations within g_string_concat_db.
4536 * c-opts.c (c_common_init_options): Construct g_string_concat_db
4537 on the ggc-heap.
4538
78169471
MP
45392016-07-29 Marek Polacek <polacek@redhat.com>
4540
638fc14f
MP
4541 PR c/71926
4542 * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the
4543 parentheses warning.
4544
78169471
MP
4545 PR c/71574
4546 * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL.
4547
1225d6b1
ML
45482016-07-28 Martin Liska <mliska@suse.cz>
4549
4550 PR gcov-profile/68025
4551 * c-common.c (handle_no_profile_instrument_function_attribute):
4552
ec1e2a40
BE
45532016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
4554
4555 * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of
4556 BITS_PER_UNIT_LOG.
4557
5ec2cd9f
JM
45582016-07-25 Jason Merrill <jason@redhat.com>
4559
4560 PR c++/65970
4561 * c.opt (fconstexpr-loop-limit): New.
4562
9dc5773f 45632016-07-22 Martin Sebor <msebor@redhat.com>
2e6b45af
MS
4564
4565 PR c++/71675
4566 * c-common.c (resolve_overloaded_builtin): Avoid converting
4567 __atomic_compare_exchange_n return type to that of what its
4568 first argument points to.
4569
e3fe09c1
UB
45702016-07-22 Uros Bizjak <ubizjak@gmail.com>
4571
4572 * c-common.c: Use HOST_WIDE_INT_M1U instead of
4573 ~(unsigned HOST_WIDE_INT) 0.
4574
bc91c436
ML
45752016-07-22 Martin Liska <mliska@suse.cz>
4576
4577 PR gcov-profile/69028
4578 PR gcov-profile/62047
4579 * cilk.c (create_cilk_helper_decl): Set location of a new decl
4580 to the current_function_decl.
4581
451dcc66
JM
45822016-07-21 Jason Merrill <jason@redhat.com>
4583
4584 PR c++/65168
4585 * c-common.c (c_common_truthvalue_conversion): Check
4586 c_inhibit_evaluation_warnings for warning about address of
4587 reference.
4588
de6a69ee
DM
45892016-07-20 David Malcolm <dmalcolm@redhat.com>
4590
4591 * c-common.h (lookup_name_fuzzy): Convert return type from tree to
4592 const char *.
4593
d022c55a
JM
45942016-07-15 Jason Merrill <jason@redhat.com>
4595
4596 * c-opts.c (c_common_post_options): Update -fabi-version default to 11.
4597
ddbbcb19
JJ
45982016-07-15 Jakub Jelinek <jakub@redhat.com>
4599
4600 PR c/71858
4601 * c-common.h (enum lookup_name_fuzzy_kind): Add
4602 FUZZY_LOOKUP_FUNCTION_NAME.
4603
d0cf395a
JM
46042016-07-08 Jason Merrill <jason@redhat.com>
4605
4606 P0145: Refining Expression Order for C++.
4607 * c.opts (-fargs-in-order): Rename to -fstrong-eval-order.
4608 * c-opts.c: Adjust.
4609
98d44e93
MT
46102016-07-05 Markus Trippelsdorf <markus@trippelsdorf.de>
4611
4612 PR c++/71214
4613 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.
4614
f9d8d994
TS
46152016-06-29 Thomas Schwinge <thomas@codesourcery.com>
4616
4617 * c-pragma.h (enum pragma_kind): Rename
4618 PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE. Adjust all
4619 users.
4620
4aa83879
RB
46212016-06-29 Richard Biener <rguenther@suse.de>
4622
4623 PR middle-end/71002
4624 * c-common.c (c_common_get_alias_set): Remove union type punning case.
4625
a25bd9e6
JM
46262016-06-24 Jason Merrill <jason@redhat.com>
4627
4628 P0145R2: Refining Expression Order for C++.
4629 * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of
4630 MODIFY_EXPR.
4631
a86451b9
JJ
46322016-06-24 Jakub Jelinek <jakub@redhat.com>
4633
4634 * c-common.c (check_builtin_function_arguments): Require last
4635 argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type.
4636 Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW
4637 if the last argument is pointer to enumerated or boolean type.
4638
1a4f11c8
DM
46392016-06-22 David Malcolm <dmalcolm@redhat.com>
4640
4641 PR c/70339
4642 * c-common.h (enum lookup_name_fuzzy_kind): New enum.
4643 (lookup_name_fuzzy): New prototype.
4644
fe55692c
JDA
46452016-06-21 John David Anglin <danglin@gcc.gnu.org>
4646
4647 * c-common.c (get_source_date_epoch): Use int64_t instead of long long.
4648
4eb24e01
JM
46492016-06-14 Jason Merrill <jason@redhat.com>
4650
4651 P0145R2: Refining Expression Order for C++.
4652 * c.opt (fargs-in-order): New.
4653 * c-opts.c (c_common_post_options): Adjust flag_args_in_order.
4654
ef7cf206
JJ
46552016-06-13 Jakub Jelinek <jakub@redhat.com>
4656
0dda258b
JJ
4657 PR sanitizer/71498
4658 * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
4659 all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.
4660
ef7cf206
JJ
4661 PR preprocessor/71183
4662 * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch
4663 to cb_get_source_date_epoch.
4664
50b15873
JJ
46652016-06-10 Jakub Jelinek <jakub@redhat.com>
4666
4667 PR c/68657
4668 * c.opt (Wpsabi): Add Warning flag.
4669
4d926e34
MS
46702016-06-10 Martin Sebor <msebor@redhat.com>
4671
4672 PR c/71392
14ec014e 4673 * c-common.c (handle_nonnull_attribute): Accept
4d926e34
MS
4674 the nonnull attribute in type-generic builtins.
4675
e01b4e16
MS
46762016-06-09 Martin Sebor <msebor@redhat.com>
4677
4678 PR c/70883
4679 * c-common.c (builtin_function_validate_nargs): Make text of error
4680 message consistent with others like it.
4681
44a845ca
MS
46822016-06-08 Martin Sebor <msebor@redhat.com>
4683 Jakub Jelinek <jakub@redhat.com>
4684
4685 PR c++/70507
4686 PR c/68120
4687 * c-common.c (check_builtin_function_arguments): Handle
4688 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
4689
a80a7051
RB
46902016-06-08 Richard Biener <rguenther@suse.de>
4691
4692 * c-common.c (parse_optimize_options): Improve diagnostic messages.
4693
bfd67b47
RB
46942016-06-07 Richard Biener <rguenther@suse.de>
4695
4696 PR c/61564
4697 * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION
4698 options and warn about others.
4699
15c98b2e
ES
47002016-06-01 Eduard Sanou <dhole@openmailbox.org>
4701
4702 * c-common.c (get_source_date_epoch): Rename to
4703 cb_get_source_date_epoch.
4704 * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
4705 message when the parsing fails. Use error_at instead of fatal_error.
4706 * c-common.h (get_source_date_epoch): Rename to
4707 cb_get_source_date_epoch.
4708 * c-common.h (cb_get_source_date_epoch): Prototype.
4709 * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
4710 * c-common.h (c_omp_region_type): Remove trailing comma.
4711 * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
4712 * c-lex.c (c_lex_with_flags): Remove initialization of
4713 pfile->source_date_epoch.
4714
00631022
JJ
47152016-05-30 Jakub Jelinek <jakub@redhat.com>
4716
4717 PR c++/71349
4718 * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
4719 C_OMP_CLAUSE_SPLIT_TARGET. Put OMP_CLAUSE_NOWAIT to
4720 C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
4721 instead of C_OMP_CLAUSE_SPLIT_FOR.
4722
f17a223d
RB
47232016-05-24 Richard Biener <rguenther@suse.de>
4724
4725 PR middle-end/70434
4726 PR c/69504
4727 * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
4728 (convert_vector_to_array_for_subscript): ... this.
4729 * c-common.c (convert_vector_to_pointer_for_subscript): Use a
4730 VIEW_CONVERT_EXPR to an array type. Rename to ...
4731 (convert_vector_to_array_for_subscript): ... this.
4732
4f2e1536
MP
47332016-05-12 Marek Polacek <polacek@redhat.com>
4734
4735 PR c/70756
4736 * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
4737 size_in_bytes and pass LOC to it.
4738
d6e83a8d
MM
47392016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
4740
4741 PR c/43651
4742 * c.opt (Wduplicate-decl-specifier): New option.
4743
5c3a10fb
MP
47442016-05-11 Marek Polacek <polacek@redhat.com>
4745
4746 PR c++/71024
4747 * c-common.c (diagnose_mismatched_attributes): New function.
4748 * c-common.h (diagnose_mismatched_attributes): Declare.
4749
deef7113
MP
47502016-05-04 Marek Polacek <polacek@redhat.com>
4751
4752 * c.opt (Wdangling-else): New option.
4753
79ce98bc
MP
47542016-05-03 Marek Polacek <polacek@redhat.com>
4755
4756 PR c/70859
4757 * c-common.c (builtin_function_validate_nargs): Add location
4758 parameter. Use it.
4759 (check_builtin_function_arguments): Add location and arguments
4760 parameters. Use them.
4761 * c-common.h (check_builtin_function_arguments): Update declaration.
4762
381cdae4
RB
47632016-05-03 Richard Biener <rguenther@suse.de>
4764
4765 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
4766 allow call args to gimplify to SSA names.
4767
1d793c34
MP
47682016-05-03 Marek Polacek <polacek@redhat.com>
4769
4770 * c-common.h (enum c_omp_region_type): Remove stray comma.
4771
77886428
CP
47722016-05-02 Cesar Philippidis <cesar@codesourcery.com>
4773
4774 * c-common.h (enum c_omp_region_type): Define.
4775
697e0b28
RS
47762016-05-02 Richard Sandiford <richard.sandiford@arm.com>
4777
4778 * c-common.c (shorten_compare): Use wi::to_wide.
4779
e7ff0319
CP
47802016-04-29 Cesar Philippidis <cesar@codesourcery.com>
4781
4782 PR middle-end/70626
4783 * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
4784 * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
4785 reduction clauses in acc parallel loops.
4786
2fff3db8
MP
47872016-04-29 Marek Polacek <polacek@redhat.com>
4788
4789 PR c/70852
4790 * c-common.c (warn_for_memset): Check domain before accessing it.
4791
509063eb
DV
47922016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
4793
4794 PR/69089
4795 * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
4796 "aligned" attribute.
4797
b632761d
JM
47982016-04-28 Jason Merrill <jason@redhat.com>
4799
4800 * c-lex.c (c_common_has_attribute): Handle nodiscard.
4801
174f6622
ES
48022016-04-28 Eduard Sanou <dhole@openmailbox.org>
4803 Matthias Klose <doko@debian.org>
4804
4805 * c-common.c (get_source_date_epoch): New function, gets the environment
7365279f 4806 variable SOURCE_DATE_EPOCH and parses it as long long with error
174f6622
ES
4807 handling.
4808 * c-common.h (get_source_date_epoch): Prototype.
4809 * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
4810
6bc2bb18
RB
48112015-04-27 Ryan Burn <contact@rnburn.com>
4812
4813 PR c++/69024
4814 PR c++/68997
4815 * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
4816 (cilk_recognize_spawn): Renamed from recognize_spawn and change to
4817 external linkage.
4818 (cilk_detect_and_unwrap): Corresponding changes.
4819 (extract_free_variables): Don't extract free variables from
4820 AGGR_INIT_EXPR slot.
4821 * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
4822 (cilk_recognize_spawn): Likewise.
4823
c1e1f433
BS
48242016-04-27 Bernd Schmidt <bschmidt@redhat.com>
4825
4826 * c.opt (Wmemset-elt-size): New option.
4827 * c-common.c (warn_for_memset): New function.
4828 * c-common.h (warn_for_memset): Declare.
4829
d067e05f
JM
48302016-04-25 Jason Merrill <jason@redhat.com>
4831
4832 * c-common.c (handle_unused_attribute): Accept CONST_DECL.
4833 No longer static.
4834 * c-common.h: Declare it.
4835 * c-lex.c (c_common_has_attribute): Add maybe_unused.
4836
9aa36ae5
JM
48372016-04-22 Jason Merrill <jason@redhat.com>
4838
4839 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
4840
477d4906
IV
48412016-04-20 Ilya Verbin <ilya.verbin@intel.com>
4842
4843 PR c++/69363
4844 * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
4845 * c-common.h (c_finish_cilk_clauses): Remove declaration.
4846
fe37c7af
MM
48472016-04-18 Michael Matz <matz@suse.de>
4848
4849 * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
4850 and SET_DECL_ALIGN.
4851
23f2660f
EB
48522016-04-17 Eric Botcazou <ebotcazou@adacore.com>
4853
4854 * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
4855 (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
4856 to incomplete types.
4857 (dump_nested_type): Remove redundant tests and tidy up.
4858 (print_ada_declaration): Also set TREE_VISITED on the declaration of
4859 a type which is the typedef of an original type.
4860
1e77281b
MP
48612016-04-15 Marek Polacek <polacek@redhat.com>
4862
4863 PR c/70651
4864 * c-common.c (build_va_arg): Change two asserts into errors and return
4865 error_mark_node.
4866
b3a77f21
MP
48672016-04-13 Marek Polacek <polacek@redhat.com>
4868
4869 PR c++/70639
4870 * c-indentation.c (should_warn_for_misleading_indentation): Bail out
4871 for switch statements, too.
4872
322b8466
JM
48732016-03-28 Jason Merrill <jason@redhat.com>
4874
4875 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
4876
fbdb6baf
MP
48772016-03-23 Marek Polacek <polacek@redhat.com>
4878
4879 PR c++/69884
4880 * c.opt (Wignored-attributes): New option.
4881
5c240f4d
DM
48822016-03-22 David Malcolm <dmalcolm@redhat.com>
4883
4884 PR c/69993
4885 * c-indentation.c (warn_for_misleading_indentation): Rewrite the
4886 diagnostic text, reversing the order of the warning and note so
4887 that they appear in source order.
4888
14ba7b28
MP
48892016-03-17 Marek Polacek <polacek@redhat.com>
4890
4891 PR c/69407
4892 * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
4893 operations.
4894
08a1cadc
JM
48952016-03-14 Jason Merrill <jason@redhat.com>
4896
2aaeea19
JM
4897 * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
4898
08a1cadc
JM
4899 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
4900
c06d25bb
RB
49012016-03-09 Richard Biener <rguenther@suse.de>
4902
4903 PR c/70143
4904 * c-common.c (strict_aliasing_warning): Add back
4905 alias_sets_conflict_p check.
4906
80aac5c8
JM
49072016-03-08 Jason Merrill <jason@redhat.com>
4908
4909 * c-opts.c (set_std_cxx1z): Don't enable concepts.
4910
64b23c13
DM
49112016-03-04 David Malcolm <dmalcolm@redhat.com>
4912
4913 PR c/68187
4914 * c-indentation.c (get_visual_column): Move code to determine next
4915 tab stop to...
4916 (next_tab_stop): ...this new function.
4917 (line_contains_hash_if): Delete function.
4918 (detect_preprocessor_logic): Delete function.
4919 (get_first_nws_vis_column): New function.
4920 (detect_intervening_unindent): New function.
4921 (should_warn_for_misleading_indentation): Replace call to
4922 detect_preprocessor_logic with a call to
4923 detect_intervening_unindent.
4924
729526f5
DM
49252016-03-04 David Malcolm <dmalcolm@redhat.com>
4926
4927 PR c/68187
4928 * c-indentation.c (should_warn_for_misleading_indentation): When
4929 suppressing warnings about cases where the guard and body are on
4930 the same column, only use the first non-whitespace column in place
4931 of the guard token column when dealing with "else" clauses.
4932 When rejecting aligned BODY and NEXT, loosen the requirement
4933 from equality with the first non-whitespace of guard to simply
4934 that they not be indented relative to it.
4935
e9a35493
RB
49362016-03-04 Richard Biener <rguenther@suse.de>
4937
4938 PR c++/70054
4939 * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
4940 instead of alias_sets_conflict_p.
4941
1be56bc5
MP
49422016-03-01 Marek Polacek <polacek@redhat.com>
4943
4944 PR c++/69795
4945 * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
4946 any DECL.
4947
35886f0b
MS
49482016-02-22 Martin Sebor <msebor@redhat.com>
4949
4950 PR middle-end/69780
4951 * c-common.c (check_builtin_function_arguments): Validate and
4952 reject invalid arguments to __builtin_alloca_with_align.
4953
4246c8da
MW
49542016-02-20 Mark Wielaard <mjw@redhat.com>
4955
4956 PR c/28901
4957 * c.opt (Wunused-const-variable): Turn into Alias for...
4958 (Wunused-const-variable=): New option.
4959
268be88c
BE
49602016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
4961
4962 PR c++/69865
4963 * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
4964 here...
4965 (c_common_init_options): ...to here.
4966 (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
4967
871b3f47
JJ
49682016-02-19 Jakub Jelinek <jakub@redhat.com>
4969
4970 PR c++/69826
4971 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
4972 (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
4973 flag_preprocess_only.
4974
bf14eba2
JJ
49752016-02-16 Jakub Jelinek <jakub@redhat.com>
4976
4977 PR c/69835
4978 * c.opt (Wnonnull-compare): Enable for -Wall.
4979
ba6b3795
JJ
49802016-02-15 Jakub Jelinek <jakub@redhat.com>
4981
4982 PR c++/69797
4983 * c-common.c (sync_resolve_size): Diagnose too few arguments
4984 even when params is non-NULL empty vector.
4985
a011cd92
BS
49862016-02-08 Bernd Schmidt <bschmidt@redhat.com>
4987
4988 PR target/60410
4989 * c.opt (fshort-double): Remove.
4990
46cb9332
MS
49912016-02-05 Martin Sebor <msebor@redhat.com>
4992
4993 PR c++/69662
4994 * c.opt (Warning options): Update -Wplacement-new to take
4995 an optional argument.
4996
e1b81f2b
JJ
49972016-02-01 Jakub Jelinek <jakub@redhat.com>
4998
4999 PR preprocessor/69543
5000 PR c/69558
5001 * c-pragma.c (handle_pragma_diagnostic): Pass input_location
5002 instead of loc to control_warning_option.
5003
b6adbb9f
NS
50042016-02-01 Nathan Sidwell <nathan@codesourcery.com>
5005
5006 * c.opt (fopenacc-dim=): New option.
5007
5d70666e
RB
50082016-01-27 Ryan Burn <contact@rnburn.com>
5009
5010 PR cilkplus/69267
5011 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
5012 gimplify_arg. Removed superfluous post_p argument.
5013 * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
5014 superfluous post_p argument.
5015 * c-gimplify.c (c_gimplify_expr): Likewise.
5016
01e1dea3
DM
50172016-01-26 David Malcolm <dmalcolm@redhat.com>
5018
5019 PR other/69006
5020 * c-opts.c (c_diagnostic_finalizer): Replace invocation of
5021 pp_newline_and_flush with pp_flush.
5022
9f04a53e
MS
50232016-01-20 Martin Sebor <msebor@redhat.com>
5024
5025 PR c/69405
5026 * c-common.c (sync_resolve_size): Avoid printing diagnostic about
5027 an incompatible argument when the argument isn't a valid tree node.
5028
7f26f7df
JM
50292016-01-18 Jason Merrill <jason@redhat.com>
5030
5031 PR c++/68767
5032 * c-common.c (check_function_arguments_recurse): Fold the whole
5033 COND_EXPR, not just the condition.
5034
f62bf092
TV
50352016-01-18 Tom de Vries <tom@codesourcery.com>
5036
5037 * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
5038 classify as loop clause.
5039
e0a575ff
JJ
50402016-01-15 Jakub Jelinek <jakub@redhat.com>
5041
5042 PR bootstrap/68271
5043 * c-pragma.c (c_register_pragma_1): Adjust comment to note that
5044 C++ FE no longer has limit on number of pragmas.
5045
50462015-01-14 Ryan Burn <contact@rnburn.com>
b6e3db06
RB
5047
5048 PR c++/69048
5049 * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
c47eaca6 5050 to add missing cleanup point.
b6e3db06 5051
c7df95d8
DM
50522016-01-14 David Malcolm <dmalcolm@redhat.com>
5053
5054 PR c++/68819
5055 * c-indentation.c (get_visual_column): Add location_t param.
5056 Handle the column number being zero by effectively disabling the
5057 warning, with an "inform".
5058 (should_warn_for_misleading_indentation): Add location_t argument
5059 for all uses of get_visual_column.
5060
21efdd80
PP
50612016-01-10 Patrick Palka <ppalka@gcc.gnu.org>
5062
5063 PR c++/69029
5064 * c-indentation.c (should_warn_for_misleading_indentation):
5065 Don't warn about do-while statements.
5066
7a127fa7
MS
50672016-01-07 Martin Sebor <msebor@redhat.com>
5068
5069 PR c/68966
5070 * c-common.c (sync_resolve_size): Reject first argument when it's
5071 a pointer to _Bool.
5072
c589e975
DM
50732016-01-05 David Malcolm <dmalcolm@redhat.com>
5074
5075 PR c/69122
5076 * c-indentation.c (get_visual_column): Remove default argument.
5077 (should_warn_for_misleading_indentation): For the multiline case,
5078 update call to get_visual_column for next_stmt_exploc so that it
5079 captures the location of the first non-whitespace character in the
5080 relevant line. Don't issue warnings if there is non-whitespace
5081 before the next statement.
5082
818ab71a
JJ
50832016-01-04 Jakub Jelinek <jakub@redhat.com>
5084
5085 Update copyright years.
5086
745e411d
DM
50872015-12-21 David Malcolm <dmalcolm@redhat.com>
5088
5089 * c-common.c (binary_op_error): Convert first param from
5090 location_t to rich_location * and use it when emitting an error.
5091 * c-common.h (binary_op_error): Convert first param from
5092 location_t to rich_location *.
5093
de67c4c3
DM
50942015-12-16 David Malcolm <dmalcolm@redhat.com>
5095
5096 * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
5097 * c-lex.c (conflict_marker_get_final_tok_kind): New function.
5098
4a38b02b
IV
50992015-12-15 Ilya Verbin <ilya.verbin@intel.com>
5100
5101 * c-common.c (c_common_attribute_table): Handle "omp declare target
5102 link" attribute.
5103
54d62f51
JJ
51042015-12-14 Jakub Jelinek <jakub@redhat.com>
5105
5106 PR c/68833
5107 * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
5108
8d4227c8
TB
51092014-12-12 Tobias Burnus <burnus@net-b.de>
5110
5111 PR fortran/68815
5112 * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
5113 specifiers (%d, %i,%u and %c).
5114
f6069ccc
DM
51152015-12-10 David Malcolm <dmalcolm@redhat.com>
5116
5117 * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
5118
63bbf46d
JJ
51192015-12-08 Jakub Jelinek <jakub@redhat.com>
5120
5121 PR c/48088
5122 PR c/68657
5123 * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
5124 * c-pragma.c (handle_pragma_diagnostic): Adjust
5125 control_warning_option caller.
5126
f79520bb
DM
51272015-12-07 David Malcolm <dmalcolm@redhat.com>
5128
5129 * c-common.c (c_cpp_error): Update for change to
5130 rich_location::set_range.
5131
b3d5bc62
JJ
51322015-12-04 Paolo Bonzini <bonzini@gnu.org>
5133
5134 * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
5135 shifting 1 out of the sign bit.
5136
51372015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
5138
5139 * c-common.c (c_common_attribute_table[]): Update max arguments
5140 count for "simd" attribute.
5141 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
5142
6eb4a537
JJ
51432015-12-03 Jakub Jelinek <jakub@redhat.com>
5144
5145 PR preprocessor/57580
5146 * c-ppoutput.c (print): Change printed field to bool.
5147 Move src_file last for smaller padding.
5148 (init_pp_output): Set print.printed to false instead of 0.
5149 (scan_translation_unit): Fix up formatting. Set print.printed
5150 to true after printing something other than newline.
5151 (scan_translation_unit_trad): Set print.printed to true instead of 1.
5152 (maybe_print_line_1): Set print.printed to false instead of 0.
5153 (print_line_1): Likewise.
5154 (do_line_change): Set print.printed to true instead of 1.
5155 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
5156 dump_macro): Set print.printed to false after printing newline.
5157
4250754e
JM
51582015-12-02 Jason Merrill <jason@redhat.com>
5159
f479b43d
JM
5160 * c-common.c (fold_for_warn): New.
5161 (warn_logical_operator, warn_tautological_cmp)
5162 (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
5163
4250754e
JM
5164 * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
5165 (c_fully_fold_internal, decl_constant_value_for_optimization):
5166 Move to c/c-fold.c.
5167 * c-common.h: Don't declare decl_constant_value_for_optimization.
5168
e9e32ee6
JM
51692015-12-02 Joseph Myers <joseph@codesourcery.com>
5170
5171 PR c/68162
5172 * c-common.h (c_build_qualified_type): Add extra default
5173 arguments.
5174
37d5ad46
JB
51752015-12-01 Julian Brown <julian@codesourcery.com>
5176 Cesar Philippidis <cesar@codesourcery.com>
5177 James Norris <James_Norris@mentor.com>
5178
5179 * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
5180 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
5181 (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
5182
f07862c7
EB
51832015-11-30 Eric Botcazou <ebotcazou@adacore.com>
5184
5185 * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
5186 (decl_sloc_common): Delete and move bulk of processing to...
5187 (decl_sloc): ...here.
5188 (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
5189 (dump_ada_double_name): Remove S parameter and compute the suffix.
5190 (dump_ada_array_type): Add PARENT parameter. Simplify computation of
5191 element type and deal with an anonymous one.
5192 (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
5193 (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type
5194 and remove reference to QUAL_UNION_TYPE.
5195 (dump_nested_types): Make 2 passes on the fields and move bulk to...
5196 (dump_nested_type): ...here. New function extracted from above.
5197 Generate a full declaration for anonymous element type of arrays.
5198 (print_ada_declaration): Really skip anonymous declarations. Remove
5199 references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type.
5200 Clean up processing of declarations of array types and objects.
5201 (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
5202 Remove obsolete code and tidy up.
5203
75c8aac3
JH
52042015-11-29 Jan Hubicka <hubicka@ucw.cz>
5205
5206 PR c/67581
5207 * c-common.c (handle_transparent_union_attribute): Update
5208 also type variants.
5209
b58d3df2
ML
52102015-11-27 Martin Liska <mliska@suse.cz>
5211
5212 PR c++/68312
5213 * array-notation-common.c (cilkplus_extract_an_triplets):
5214 Release vector of vectors.
5215 * cilk.c (gimplify_cilk_spawn): Free allocated memory.
5216
89a01fcf
EB
52172015-11-26 Eric Botcazou <ebotcazou@adacore.com>
5218
5219 PR c++/68527
5220 * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
5221 (print_ada_struct_decl): Likewise.
5222
cc5c5226
IZ
52232015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
5224
5225 PR c++/68001
5226 * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
5227 * cilk.c (recognize_spawn): Determine location in a more precise
5228 way.
5229
269adb9d
JM
52302015-11-19 Jason Merrill <jason@redhat.com>
5231
5232 * c-common.c (shorten_compare): But look through macros from
5233 system headers.
5234
d0eccfcd
JM
52352015-11-18 Jason Merrill <jason@redhat.com>
5236
5237 * c-common.c (shorten_compare): Don't -Wtype-limits if the
5238 non-constant operand comes from a macro.
5239
3e44547c
JM
52402015-11-17 Jason Merrill <jason@redhat.com>
5241
5242 PR bootstrap/68346
5243 * c-common.c (warn_tautological_cmp): Fold before checking for
5244 constants.
5245
0f62c7a0
MP
52462015-11-16 Marek Polacek <polacek@redhat.com>
5247
5248 PR c++/68362
5249 * c-common.c (check_case_bounds): Fold low and high cases.
5250
a868811e
MP
52512015-11-16 Marek Polacek <polacek@redhat.com>
5252
5253 * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
5254 * c-common.c (c_common_get_alias_set): Likewise.
5255 (handle_visibility_attribute): Likewise.
5256
fff77217
KY
52572015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
5258
5259 * c-common.c (handle_simd_attribute): New.
5260 (struct attribute_spec): Add entry for "simd".
5261 (handle_simd_attribute): New.
5262
269e63b7
KT
52632015-11-13 Kai Tietz <ktietz70@googlemail.com>
5264
5265 * c-lex.c (interpret_float): Use fold_convert.
5266
ebedc9a3
DM
52672015-11-13 David Malcolm <dmalcolm@redhat.com>
5268
5269 * c-common.c (c_fully_fold_internal): Capture existing souce_range,
5270 and store it on the result.
5271 * c-opts.c (c_common_init_options): Set
5272 global_dc->colorize_source_p.
5273
6e232ba4
JN
52742015-11-12 James Norris <jnorris@codesourcery.com>
5275 Joseph Myers <joseph@codesourcery.com>
5276
7365279f 5277 * c-pragma.c (oacc_pragmas): Add entry for declare directive.
6e232ba4
JN
5278 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
5279 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
5280 PRAGMA_OACC_CLAUSE_LINK.
5281
e78bede6
MP
52822015-11-11 Marek Polacek <polacek@redhat.com>
5283
5284 PR c/68107
5285 PR c++/68266
5286 * c-common.c (valid_array_size_p): New function.
5287 * c-common.h (valid_array_size_p): Declare.
5288
3f8257db 52892015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
4ac93c7c
DH
5290
5291 PR bootstrap/68271
5292 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
5293
69f293c9
AM
52942015-11-11 Andrew MacLeod <amacleod@redhat.com>
5295
5296 * array-notation-common.c: Remove unused header files.
5297 * c-ada-spec.c: Likewise.
5298 * c-cilkplus.c: Likewise.
5299 * c-common.c: Likewise.
5300 * c-cppbuiltin.c: Likewise.
5301 * c-dump.c: Likewise.
5302 * c-format.c: Likewise.
5303 * c-gimplify.c: Likewise.
5304 * c-indentation.c: Likewise.
5305 * c-lex.c: Likewise.
5306 * c-omp.c: Likewise.
5307 * c-opts.c: Likewise.
5308 * c-pch.c: Likewise.
5309 * c-ppoutput.c: Likewise.
5310 * c-pragma.c: Likewise.
5311 * c-pretty-print.c: Likewise.
5312 * c-semantics.c: Likewise.
5313 * c-ubsan.c: Likewise.
5314 * cilk.c: Likewise.
5315 * stub-objc.c: Likewise.
5316
3a40d81d
NS
53172015-11-09 Thomas Schwinge <thomas@codesourcery.com>
5318 Cesar Philippidis <cesar@codesourcery.com>
5319 James Norris <jnorris@codesourcery.com>
5320 Julian Brown <julian@codesourcery.com>
5321 Nathan Sidwell <nathan@codesourcery.com>
5322
5323 * c-pragma.c (oacc_pragmas): Add "routine".
5324 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
5325
ee45a32d
EB
53262015-11-08 Eric Botcazou <ebotcazou@adacore.com>
5327
5328 * c-common.c (c_common_attributes): Add scalar_storage_order.
5329 (handle_scalar_storage_order_attribute): New function.
5330 * c-pragma.c (global_sso): New variable.
5331 (maybe_apply_pragma_scalar_storage_order): New function.
5332 (handle_pragma_scalar_storage_order): Likewise.
5333 (init_pragma): Register scalar_storage_order.
5334 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
5335 * c.opt (Wscalar-storage-order): New warning.
5336 (fsso-struct=): New option.
5337
eb11eb15
MS
53382015-11-08 Martin Sebor <msebor@redhat.com>
5339
5340 * c.opt (Wplacement-new): Add a period to the end of a sentence.
5341
0aad0198
RS
53422015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5343
5344 * c-common.c: Don't undef DEF_BUILTIN.
5345
8a645150
DM
53462015-11-06 David Malcolm <dmalcolm@redhat.com>
5347
5348 * c-common.c (c_cpp_error): Convert parameter from location_t to
5349 rich_location *. Eliminate the "column_override" parameter and
5350 the call to diagnostic_override_column.
5351 Update the "done_lexing" clause to set range 0
5352 on the rich_location, rather than overwriting a location_t.
5353 * c-common.h (c_cpp_error): Convert parameter from location_t to
5354 rich_location *. Eliminate the "column_override" parameter.
5355
7a5e4956
CP
53562015-11-05 Cesar Philippidis <cesar@codesourcery.com>
5357 Thomas Schwinge <thomas@codesourcery.com>
5358 James Norris <jnorris@codesourcery.com>
5359
5360 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
5361 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
5362 clauses with parallel and kernels and loops.
5363 * c-pragma.h (enum pragma_omp_clause): Add entries for
5364 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
5365 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
5366 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
5367 INDEPENDENT,SEQ}.
5368 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
5369
e2f5cc96
MS
53702015-11-05 Martin Sebor <msebor@redhat.com>
5371
5372 PR c++/67942
5373 * c.opt (-Wplacement-new): New option.
5374
e01d41e5
JJ
53752015-11-05 Jakub Jelinek <jakub@redhat.com>
5376
5377 * c-common.h (c_finish_omp_atomic): Add TEST argument.
5378 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
5379 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
5380 save_expr or create_tmp_var* if TEST is true.
5381 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
5382 Don't call add_stmt here.
5383 (struct c_omp_check_loop_iv_data): New type.
5384 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
5385 c_omp_check_loop_iv_exprs): New functions.
5386 (c_omp_split_clauses): Adjust for lastprivate being allowed on
5387 distribute.
5388 (c_omp_declare_simd_clauses_to_numbers): Change
5389 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
5390 (c_omp_declare_simd_clauses_to_decls): Similarly change those
5391 from numbers to PARM_DECLs.
5392
595278be
MM
53932015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
5394
5395 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
5396 flag_checking.
5397
3f8257db 53982015-11-03 Bernd Schmidt <bschmidt@redhat.com>
c85158de
MS
5399
5400 PR c++-common/67882
b3d5bc62
JJ
5401 * c-common.h (fold_offsetof_1): Add argument.
5402 * c-common.c (fold_offsetof_1): Diagnose more invalid
c85158de
MS
5403 offsetof expressions that reference elements past the end of
5404 an array.
5405
4bf9e5a8
TS
54062015-11-03 Thomas Schwinge <thomas@codesourcery.com>
5407 Chung-Lin Tang <cltang@codesourcery.com>
5408
5409 * c-pragma.c (oacc_pragmas): Add "atomic".
5410 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
5411
3b1661a9
ES
54122015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
5413
5414 * c-common.c (handle_target_clones_attribute): New.
5415 (c_common_attribute_table): Add handle_target_clones_attribute.
5416 (handle_always_inline_attribute): Add check on target_clones attribute.
5417 (handle_target_attribute): Ditto.
5418
2adfab87
AM
54192015-10-29 Andrew MacLeod <amacleod@redhat.com>
5420
5421 * array-notation-common.c: Reorder #include's and remove duplicates.
5422 * c-ada-spec.c: Likewise.
5423 * c-cilkplus.c: Likewise.
5424 * c-common.c: Likewise.
5425 * c-cppbuiltin.c: Likewise.
5426 * c-dump.c: Likewise.
5427 * c-format.c: Likewise.
5428 * c-gimplify.c: Likewise.
5429 * c-indentation.c: Likewise.
5430 * c-lex.c: Likewise.
5431 * c-omp.c: Likewise.
5432 * c-opts.c: Likewise.
5433 * c-pch.c: Likewise.
5434 * c-ppoutput.c: Likewise.
5435 * c-pragma.c: Likewise.
5436 * c-pretty-print.c: Likewise.
5437 * c-semantics.c: Likewise.
5438 * c-ubsan.c: Likewise.
5439 * cilk.c: Likewise.
5440 * stub-objc.c: Likewise.
5441
d90ec4f2
JM
54422015-10-28 Jason Merrill <jason@redhat.com>
5443
5444 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
5445
88bae6f4
TS
54462015-10-27 Thomas Schwinge <thomas@codesourcery.com>
5447 James Norris <jnorris@codesourcery.com>
5448 Cesar Philippidis <cesar@codesourcery.com>
5449
5450 PR c/64765
5451 PR c/64880
5452 * c-common.h (c_oacc_split_loop_clauses): Declare function.
5453 * c-omp.c (c_oacc_split_loop_clauses): New function.
5454
b1726d6c
MS
54552015-10-21 Martin Sebor <msebor@redhat.com>
5456
5457 PR driver/68043
5458 * c.opt: End each sentence that describes an option with a period.
5459
fa60eeb9
MP
54602015-10-20 Marek Polacek <polacek@redhat.com>
5461
5462 * array-notation-common.c (is_cilkplus_vector_p): Define.
5463 * c-common.h (is_cilkplus_vector_p): Declare.
5464
95979049
MP
54652015-10-20 Marek Polacek <polacek@redhat.com>
5466
5467 * c.opt (std=gnu++11): Do not describe as experimental.
5468 (std=gnu++14): Likewise.
5469
2a9fb712
JM
54702015-10-19 Jason Merrill <jason@redhat.com>
5471
5472 * c-cppbuiltin.c (c_cpp_builtins): Define
5473 __cpp_nontype_template_args.
5474
13b380a3
JM
54752015-10-19 Jason Merrill <jason@redhat.com>
5476
5477 * c-cppbuiltin.c (c_cpp_builtins): Define
5478 __cpp_enumerator_attributes, __cpp_fold_expressions,
5479 __cpp_unicode_characters.
5480
d9a6bd32
JJ
54812015-10-13 Jakub Jelinek <jakub@redhat.com>
5482 Aldy Hernandez <aldyh@redhat.com>
5483
5484 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
5485 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
5486 (c_define_builtins): Likewise.
5487 * c-common.h (enum c_omp_clause_split): Add
5488 C_OMP_CLAUSE_SPLIT_TASKLOOP.
5489 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
5490 (c_finish_omp_for): Add ORIG_DECLV argument.
5491 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
5492 201511 instead of 201307.
5493 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
5494 OMP_CRITICAL_CLAUSES to it.
5495 (c_finish_omp_ordered): Add CLAUSES argument, set
5496 OMP_ORDERED_CLAUSES to it.
5497 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
5498 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
5499 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
5500 constructs and new OpenMP 4.5 clauses. Clear
5501 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
5502 verification code.
5503 * c-pragma.c (omp_pragmas_simd): Add taskloop.
5504 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
5505 (enum pragma_omp_clause): Add
5506 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
5507 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
5508
624d31fe
RS
55092015-10-05 Richard Sandiford <richard.sandiford@arm.com>
5510
5511 * c-lex.c (interpret_float): Use real_equal instead of
5512 REAL_VALUES_EQUAL.
5513
b8fd7909
JM
55142015-10-04 Jason Merrill <jason@redhat.com>
5515
5516 Implement N4514, C++ Extensions for Transactional Memory.
5517 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
5518 (c_common_attribute_table): Add transaction_safe_dynamic.
5519 transaction_safe now affects type identity.
5520 (handle_tm_attribute): Handle transaction_safe_dynamic.
5521 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
5522 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
5523 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
5524 (D_TRANSMEM): New.
5525 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
5526 * c-pretty-print.c (pp_c_attributes_display): Don't print
5527 transaction_safe in C++.
5528
12651878
MP
55292015-10-02 Marek Polacek <polacek@redhat.com>
5530
5531 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
5532
3e3b8d63
MP
55332015-10-02 Marek Polacek <polacek@redhat.com>
5534
5535 PR c/64249
5536 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
5537 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
5538 * c.opt (Wduplicated-cond): New option.
5539
0d1a8f75
JM
55402015-10-01 Joseph Myers <joseph@codesourcery.com>
5541
5542 * c.opt (std=c11): Do not describe as experimental.
5543 (std=gnu11): Likewise.
5544 (std=iso9899:2011): Likewise.
5545
3e32ee19
NS
55462015-09-28 Nathan Sidwell <nathan@codesourcery.com>
5547
5548 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
5549 (DEF_FUNCTION_TYPE_VAR_11): Delete.
5550
974348ee
MP
55512015-09-25 Marek Polacek <polacek@redhat.com>
5552
5553 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
5554 (ubsan_instrument_shift): Likewise.
5555
15dbc1a6
MP
55562015-09-25 Marek Polacek <polacek@redhat.com>
5557
5558 PR sanitizer/64906
5559 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
5560
6b95d7cc
PP
55612015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
5562
5563 * c-indentation.c (should_warn_for_misleading_indentation):
5564 Compare next_stmt_vis_column with guard_line_first_nws instead
5565 of with guard_line_vis_column.
5566
c1822f9c
MLI
55672015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
5568
5569 PR c/49654
5570 PR c/49655
5571 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
5572 options and options not valid for the current language.
5573
d5398058
PP
55742015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
5575
5576 * c-indentation.c (should_warn_for_misleading_indentation):
5577 Float out and consolidate the calls to get_visual_column that
5578 are passed guard_exploc as an argument. Compare
5579 next_stmt_vis_column with guard_line_first_nws instead of with
5580 body_line_first_nws.
5581
6b333269
NS
55822015-09-22 Nathan Sidwell <nathan@codesourcery.com>
5583
5584 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
5585 Wnamespaces): New C++ warnings.
5586
a75f1574
JM
55872015-09-22 Jason Merrill <jason@redhat.com>
5588
5589 * c-common.h (abi_compat_version_crosses): New.
5590 (warn_abi_version): Declare.
5591 * c-common.c: Define it.
5592 * c-opts.c (c_common_post_options): Handle it.
5593 flag_abi_compat_version defaults to 8.
5594
bdaaa8b7
VV
55952015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
5596
5597 Complete the implementation of N4230, Nested namespace definition.
5598 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
5599 __cpp_nested_namespace_definitions.
5600
eaa797e8
MLI
56012015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
5602
5603 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
5604
c4914de6
MLI
56052015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
5606
5607 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
5608 when warning.
5609 * c-pragma.h (pragma_lex): Add optional loc argument.
5610
fcb87c50
MM
56112015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
5612
5613 * c-format.c (check_format_arg): Adjust to use common block size in all
5614 object pools.
5615
31bdd08a
DM
56162015-09-15 David Malcolm <dmalcolm@redhat.com>
5617
5618 * c-format.c (location_from_offset): Update for change in
5619 signature of location_get_source_line.
5620 * c-indentation.c (get_visual_column): Likewise.
5621 (line_contains_hash_if): Likewise.
5622
aa9f4b4c
MP
56232015-09-14 Marek Polacek <polacek@redhat.com>
5624
5625 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
5626 setting various warnings.
5627
aa256c4a
MP
56282015-09-14 Marek Polacek <polacek@redhat.com>
5629
5630 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
5631 a negative value.
5632
0f876f22
MW
56332015-09-11 Mark Wielaard <mjw@redhat.com>
5634
5635 PR c/28901
5636 * c.opt (Wunused-variable): Option from common.opt.
5637 (Wunused-const-variable): New option.
5638
273aa49e
PC
56392015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
5640
5641 PR c++/53184
5642 * c.opt ([Wsubobject-linkage]): Add.
5643
1807ffc1
MS
56442015-09-03 Martin Sebor <msebor@redhat.com>
5645
5646 PR c/66516
5647 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
5648 functions.
5649 * c-common.c (reject_gcc_builtin): Define.
5650
38942840
BI
56512015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
5652
5653 PR middle-end/60586
5654 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
5655 prototype.
5656 * c-gimplify.c (c_gimplify_expr): Added a call to the function
5657 cilk_gimplify_call_params_in_spawned_fn.
5658 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
5659 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
5660 unwrapping.
5661
c316b5e4
MP
56622015-08-25 Marek Polacek <polacek@redhat.com>
5663
5664 PR middle-end/67330
5665 * c-common.c (handle_weak_attribute): Don't check whether the
5666 visibility can be changed here.
5667
584a7c46
MLI
56682015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
5669
5670 * c-lex.c (c_lex_with_flags): Use explicit locations.
5671
a79683d5
TS
56722015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
5673
5674 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
5675 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
5676
61717a45
FXC
56772015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5678
5679 PR middle-end/36757
5680 * c-common.c (check_builtin_function_arguments): Add check
5681 for BUILT_IN_SIGNBIT argument.
5682
329524f5
PC
56832015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
5684
5685 PR c++/67160
5686 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
5687 in c++1z mode.
5688
4ee55665
MP
56892015-08-17 Marek Polacek <polacek@redhat.com>
5690
5691 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
5692 with whitespaces before qualifier names.
5693
b893e375
MP
56942015-08-12 Marek Polacek <polacek@redhat.com>
5695
5696 PR c++/55095
5697 * c-common.c (maybe_warn_shift_overflow): Properly handle
5698 left-shifting 1 into the sign bit.
5699
c2d89095
MLI
57002015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5701
5702 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
5703
971e17ff
AS
57042015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
5705 Braden Obrzut <admin@maniacsvault.net>
5706 Jason Merrill <jason@redhat.com>
5707
5708 Add C++ Concepts TS support.
5709 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
5710 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
5711 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
5712 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
5713 * c-opts.c (set_std_cxx1z): Set flag_concepts.
5714 * c.opt (fconcepts): New.
5715
b3d5bc62
JJ
57162015-08-02 Martin Sebor <msebor@redhat.com>
5717
5718 * c.opt (-Wframe-address): New warning option.
5719
8ebca419
PP
57202015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
5721
5722 * c-indentation.c (should_warn_for_misleading_indentation):
5723 Improve heuristics.
5724
1a1e101f
PP
57252015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
5726
5727 * c-indentation.c (get_visual_column): Add parameter first_nws,
5728 use it. Update comment documenting the function.
5729 (is_first_nonwhitespace_on_line): Remove.
5730 (should_warn_for_misleading_indentation): Replace usage of
5731 of is_first_nonwhitespace_on_line with get_visual_column.
5732
992118a1
PP
57332015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
5734
5735 * c-indentation.h (struct token_indent_info): Define.
5736 (get_token_indent_info): Define.
5737 (warn_for_misleading_information): Declare.
5738 * c-common.h (warn_for_misleading_information): Remove.
5739 * c-identation.c (warn_for_misleading_indentation):
5740 Change declaration to take three token_indent_infos. Adjust
5741 accordingly.
5742 * c-identation.c (should_warn_for_misleading_indentation):
5743 Likewise. Bail out early if the body is a compound statement.
5744 (guard_tinfo_to_string): Define.
5745
e8fa3817
JM
57462015-07-30 Jason Merrill <jason@redhat.com>
5747
5748 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
5749 '*' for reference decay.
5750
173864e8
MP
57512015-07-30 Marek Polacek <polacek@redhat.com>
5752
5753 * c-common.c (warn_tautological_cmp): Bail for float types.
5754
f2afe6dd
MP
57552015-07-27 Marek Polacek <polacek@redhat.com>
5756
5757 PR bootstrap/67030
5758 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
5759
05b28fd6
MP
57602015-07-27 Marek Polacek <polacek@redhat.com>
5761
5762 PR c++/66555
5763 PR c/54979
5764 * c-common.c (find_array_ref_with_const_idx_r): New function.
5765 (warn_tautological_cmp): New function.
5766 * c-common.h (warn_tautological_cmp): Declare.
5767 * c.opt (Wtautological-compare): New option.
5768
5a5062b8
MP
57692015-07-23 Marek Polacek <polacek@redhat.com>
5770
5771 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
5772 (ubsan_instrument_shift): Likewise.
5773
dc891fe7
MP
57742015-07-23 Marek Polacek <polacek@redhat.com>
5775
5776 PR sanitizer/66908
5777 * c-ubsan.c: Include gimplify.h.
5778 (ubsan_instrument_division): Unshare OP0 and OP1.
5779 (ubsan_instrument_shift): Likewise.
5780
451b5e48
MP
57812015-07-20 Marek Polacek <polacek@redhat.com>
5782 Richard Sandiford <richard.sandiford@arm.com>
5783
5784 PR c++/55095
5785 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
5786 Use EXPR_LOC_OR_LOC.
5787 (maybe_warn_shift_overflow): New function.
5788 * c-common.h (maybe_warn_shift_overflow): Declare.
5789 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
5790 * c.opt (Wshift-overflow): New option.
5791
fb0b2914
ML
57922015-07-16 Martin Liska <mliska@suse.cz>
5793
5794 * c-format.c (static void check_format_info_main): Use
5795 object_allocator instead of pool_allocator.
5796 (check_format_arg): Likewise.
5797 (check_format_info_main): Likewise.
5798
903f5c23
AM
57992015-07-15 Andrew MacLeod <amacleod@redhat.com>
5800
5801 * c-opts.c: Remove multiline #include comment.
5802
026c3cfd
AH
58032015-07-12 Aldy Hernandez <aldyh@redhat.com>
5804
5805 * c-common.c: Fix double word typos.
5806
bb49ee66
EB
58072015-07-10 Eric Botcazou <ebotcazou@adacore.com>
5808
5809 * c-ada-spec.h (cpp_operation): Revert latest change.
5810 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
5811 constructors and destructors.
5812
1916bcb5
AM
58132015-07-09 Andrew MacLeod <amacleod@redhat.com>
5814
5815 * c-common.h: Adjust includes for flags.h changes.
5816 * stub-objc.c: Likewise.
026c3cfd 5817
a9dcd529
EB
58182015-07-08 Eric Botcazou <ebotcazou@adacore.com>
5819
5820 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
5821 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
5822
b03b462f
JJ
58232015-07-08 Jakub Jelinek <jakub@redhat.com>
5824
5825 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
5826 are to be removed, return NULL rather than original clauses list.
5827
c7131fb2
AM
58282015-07-07 Andrew MacLeod <amacleod@redhat.com>
5829
5830 * array-notation-common.c: Adjust includes.
5831 * c-ada-spec.c: Likewise.
5832 * c-cilkplus.c: Likewise.
5833 * c-common.h: Likewise.
5834 * c-cppbuiltin.c: Likewise.
5835 * c-dump.c: Likewise.
5836 * c-format.c: Likewise.
5837 * c-gimplify.c: Likewise.
5838 * c-indentation.c: Likewise.
5839 * c-lex.c: Likewise.
5840 * c-omp.c: Likewise.
5841 * c-opts.c: Likewise.
5842 * c-pch.c: Likewise.
5843 * c-ppoutput.c: Likewise.
5844 * c-pragma.c: Likewise.
5845 * c-pretty-print.c: Likewise.
5846 * c-semantics.c: Likewise.
5847 * c-ubsan.c: Likewise.
5848 * cilk.c: Likewise.
5849 * stub-objc.c: Likewise.
5850
2a7fb83f
EB
58512015-07-07 Eric Botcazou <ebotcazou@adacore.com>
5852
5853 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
5854 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
5855
a03c9bf1
JM
58562015-07-01 Jason Merrill <jason@redhat.com>
5857
36a85135
JM
5858 * c-common.h (D_CXX11): Rename from D_CXX0X.
5859 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
5860 * c-common.c: Adjust.
5861
e7fa68d5
JM
5862 * c-opts.c (c_common_post_options): Default to C++14.
5863
a03c9bf1
JM
5864 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
5865
fe95b036
ESR
58662015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
5867
5868 Implement N4197 - Adding u8 character literals
b3d5bc62 5869 * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
a64be36b 5870 CPP_CHAR.
b3d5bc62 5871 * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
a64be36b 5872 CPP_UTF8CHAR_USERDEF tokens.
b3d5bc62 5873 * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
a64be36b
EB
5874 and CPP_UTF8CHAR tokens.
5875 (lex_charconst): Treat CPP_UTF8CHAR token.
fe95b036 5876
da2e71c9
MLI
58772015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
5878
5879 PR fortran/66605
5880 * c-common.c (do_warn_unused_parameter): Move here.
5881 * c-common.h (do_warn_unused_parameter): Declare.
5882
b155cfd9
MP
58832015-06-29 Marek Polacek <polacek@redhat.com>
5884
5885 PR c/66322
5886 * c-common.c (check_case_bounds): Add bool * parameter. Set
5887 OUTSIDE_RANGE_P.
5888 (c_add_case_label): Add bool * parameter. Pass it down to
5889 check_case_bounds.
5890 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
5891 warning here.
5892 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
5893 declarations.
5894
31521951
MP
58952015-06-27 Marek Polacek <polacek@redhat.com>
5896
5897 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
5898 or VECTOR_INTEGER_TYPE_P throughout.
5899 * c-gimplify.c: Likewise.
5900
22d03525
MP
59012015-06-26 Marek Polacek <polacek@redhat.com>
5902
5903 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
5904 * c-common.c (c_fully_fold_internal): Likewise.
5905 (c_alignof_expr): Likewise.
5906 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
5907 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
b1726d6c 5908 * cilk.c (create_parm_list): Likewise.
22d03525 5909
af05e6e5
MP
59102015-06-26 Marek Polacek <polacek@redhat.com>
5911
5912 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
5913
f0889939
AM
59142015-06-25 Andrew MacLeod <amacleod@redhat.com>
5915
5916 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
5917 * c-gimplify.c: Likewise.
5918 * c-pragma.c: Likewise.
5919 * c-ubsan.c: Likewise.
5920 * cilk.c: Likewise.
5921
ca752f39
RS
59222015-06-25 Richard Sandiford <richard.sandiford@arm.com>
5923
5924 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
5925 ggc_hasher.
5926
16a16ec7
AM
59272015-06-25 Andrew MacLeod <amacleod@redhat.com>
5928
5929 * cilk.c: Move calls.h after tm.h in the include chain.
5930
0ae9bd27
MP
59312015-06-25 Marek Polacek <polacek@redhat.com>
5932
5933 * array-notation-common.c: Use VAR_P throughout.
5934 * c-ada-spec.c: Likewise.
5935 * c-common.c: Likewise.
5936 * c-format.c: Likewise.
5937 * c-gimplify.c: Likewise.
5938 * c-omp.c: Likewise.
5939 * c-pragma.c: Likewise.
5940 * c-pretty-print.c: Likewise.
5941 * cilk.c: Likewise.
5942
62f9079a
MP
59432015-06-25 Marek Polacek <polacek@redhat.com>
5944
5945 * cilk.c (extract_free_variables): Use is_global_var.
5946
0fa16060
RS
59472015-06-23 Richard Sandiford <richard.sandiford@arm.com>
5948
5949 * c-common.c: Don't include target-def.h.
5950
a68ae2e1
MP
59512015-06-23 Marek Polacek <polacek@redhat.com>
5952
5953 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
5954 when comparing INTEGER_CSTs.
5955
c6a2f2d9
PMR
59562015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
5957
5958 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
5959 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
5960 (dump_ada_template): Skip partially specialized types.
5961
6b4db501
MM
59622015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
5963
5964 * c-common.c (scalar_to_vector): Use std::swap instead of manually
5965 swapping.
5966
abb226c9
AM
59672015-06-17 Andrew MacLeod <amacleod@redhat.com>
5968
5969 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
5970 * c-ada-spec.c: Likewise.
5971 * c-cilkplus.c: Likewise.
5972 * c-common.c: Likewise.
5973 * c-common.h: Likewise.
5974 * c-cppbuiltin.c: Likewise.
5975 * c-dump.c: Likewise.
5976 * c-format.c: Likewise.
5977 * c-gimplify.c: Likewise.
5978 * c-indentation.c: Likewise.
5979 * c-lex.c: Likewise.
5980 * c-omp.c: Likewise.
5981 * c-opts.c: Likewise.
5982 * c-pch.c: Likewise.
5983 * c-ppoutput.c: Likewise.
5984 * c-pragma.c: Likewise.
5985 * c-pretty-print.c: Likewise.
5986 * c-semantics.c: Likewise.
5987 * c-ubsan.c: Likewise.
5988 * cilk.c: Likewise.
5989 * stub-objc.c: Likewise.
5990
076fecad
PP
59912015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
5992
5993 PR c++/65168
5994 * c-common.c (c_common_truthvalue_conversion): Warn when
5995 converting an address of a reference to a truth value.
5996
13fdf2e2
AM
59972015-06-08 Andrew MacLeod <amacleod@redhat.com>
5998
5999 * array-notation-common.c : Adjust include files.
6000 * c-ada-spec.c : Likewise.
6001 * c-cilkplus.c : Likewise.
6002 * c-common.c : Likewise.
6003 * c-common.h : Likewise.
6004 * c-cppbuiltin.c : Likewise.
6005 * c-dump.c : Likewise.
6006 * c-format.c : Likewise.
6007 * c-gimplify.c : Likewise.
6008 * c-indentation.c : Likewise.
6009 * c-lex.c : Likewise.
6010 * c-omp.c : Likewise.
6011 * c-opts.c : Likewise.
6012 * c-pch.c : Likewise.
6013 * c-ppoutput.c : Likewise.
6014 * c-pragma.c : Likewise.
6015 * c-pretty-print.c : Likewise.
6016 * c-semantics.c : Likewise.
6017 * c-ubsan.c : Likewise.
6018 * cilk.c : Likewise.
6019 * stub-objc.c : Likewise.
6020
a1661b90
MP
60212015-06-08 Marek Polacek <polacek@redhat.com>
6022
6023 PR c/66415
6024 * c-format.c (location_from_offset): Return LOC if LINE is null.
6025
d7438551
AH
60262015-06-05 Aldy Hernandez <aldyh@redhat.com>
6027
6028 * c-common.h (c_parse_final_cleanups): New prototype.
6029 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
6030
b3d5bc62
JJ
60312015-06-04 Sriraman Tallam <tmsriram@google.com>
6032
6033 * c-common.c (noplt): New attribute.
6034 (handle_noplt_attribute): New handler.
6035
ecb9f223
AM
60362015-06-04 Andrew MacLeod <amacleod@redhat.com>
6037
6038 * array-notation-common.c: Adjust includes for restructured coretypes.h.
6039 * c-ada-spec.c: Likewise.
6040 * c-cilkplus.c: Likewise.
6041 * c-common.c: Likewise.
6042 * c-common.h: Likewise.
6043 * c-cppbuiltin.c: Likewise.
6044 * c-dump.c: Likewise.
6045 * c-format.c: Likewise.
6046 * c-gimplify.c: Likewise.
6047 * c-indentation.c: Likewise.
6048 * c-lex.c: Likewise.
6049 * c-omp.c: Likewise.
6050 * c-opts.c: Likewise.
6051 * c-pch.c: Likewise.
6052 * c-ppoutput.c: Likewise.
6053 * c-pragma.c: Likewise.
6054 * c-pretty-print.c: Likewise.
6055 * c-semantics.c: Likewise.
6056 * c-ubsan.c: Likewise.
6057 * cilk.c: Likewise.
6058 * stub-objc.c: Likewise.
6059
6ac48155
DM
60602015-06-02 David Malcolm <dmalcolm@redhat.com>
6061
6062 PR c/66220:
6063 * c-indentation.c (should_warn_for_misleading_indentation): Use
6064 expand_location rather than expand_location_to_spelling_point.
6065 Don't warn if the guarding statement is more indented than the
6066 next/body stmts.
6067
773ce42e
DM
60682015-06-02 David Malcolm <dmalcolm@redhat.com>
6069
6070 * c-indentation.c (warn_for_misleading_indentation): Bail out
6071 immediately if -Wmisleading-indentation isn't enabled.
6072
4fef8379
ML
60732015-06-01 Martin Liska <mliska@suse.cz>
6074
6075 * c-format.c (check_format_arg):Use new type-based pool allocator.
6076 (check_format_info_main) Likewise.
6077
1edfb384
EB
60782015-05-31 Eric Botcazou <ebotcazou@adacore.com>
6079
6080 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
6081 (has_nontrivial_methods): Likewise.
6082
9677ef52
MP
60832015-05-25 Marek Polacek <polacek@redhat.com>
6084
6085 * c-ubsan.c (ubsan_instrument_shift): Use type0.
6086
fd5c817a
MP
60872015-05-22 Marek Polacek <polacek@redhat.com>
6088
6089 PR c/47043
6090 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
6091
a2f45fe6 60922015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
581edfa3
TS
6093
6094 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
6095 STACK_GROWS_DOWNWARD.
6096
a2f45fe6 60972015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
62f9f30b
TS
6098
6099 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
6100 STACK_GROWS_DOWNWARD rather than if it is defined.
6101
0fee2ac2 61022015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
b1726d6c 6103
0fee2ac2
MLI
6104 PR c/52952
6105 * c-format.c (location_column_from_byte_offset): New.
6106 (location_from_offset): New.
6107 (struct format_wanted_type): Add offset_loc field.
6108 (check_format_info): Move handling of location for extra arguments
6109 closer to the point of warning.
6110 (check_format_info_main): Pass the result of location_from_offset
6111 to warning_at.
6112 (format_type_warning): Pass the result of location_from_offset
6113 to warning_at.
6114
cf4ef6f7
MP
61152015-05-20 Marek Polacek <polacek@redhat.com>
6116
6117 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
6118
3a65ee74
MP
61192015-05-20 Marek Polacek <polacek@redhat.com>
6120
6121 * c-ada-spec.c (dump_sloc): Use DECL_P.
6122
21b634ae
MP
61232015-05-20 Marek Polacek <polacek@redhat.com>
6124
6125 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
6126 * c-common.c: Likewise.
6127
0e50b624
DM
61282015-05-19 David Malcolm <dmalcolm@redhat.com>
6129
6130 * c-common.h (fe_file_change): Strengthen param from
6131 const line_map * to const line_map_ordinary *.
6132 (pp_file_change): Likewise.
6133 * c-lex.c (fe_file_change): Likewise.
6134 (cb_define): Use linemap_check_ordinary when invoking
6135 SOURCE_LINE.
6136 (cb_undef): Likewise.
6137 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
6138 invoking cb_file_change.
6139 (c_finish_options): Likewise.
6140 (push_command_line_include): Likewise.
6141 (cb_file_change): Strengthen param "new_map" from
6142 const line_map * to const line_map_ordinary *.
6143 * c-ppoutput.c (cb_define): Likewise for local "map".
6144 (pp_file_change): Likewise for param "map" and local "from".
6145
fab27f52
MM
61462015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
6147
6148 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
6149
2fe1d762
TV
61502015-05-18 Tom de Vries <tom@codesourcery.com>
6151
6152 * c-common.c (build_va_arg_1): New function.
6153 (build_va_arg): Add address operator to va_list operand if necessary.
6154
7a37fa90
MM
61552015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
6156
6157 PR c/48956
6158 * c-common.c (int_safely_convertible_to_real_p): Define.
6159 (unsafe_conversion_p): Check conversions involving complex types.
6160 (conversion_warning): Add new warning message for conversions which
6161 discard imaginary component.
6162 * c-common.h: (enum conversion_safety): Add new enumerator for such
6163 conversions.
6164
3aa3c9fc
MP
61652015-05-14 Marek Polacek <polacek@redhat.com>
6166
6167 PR c/66066
6168 PR c/66127
6169 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
6170 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
6171 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
6172 use it. If FOR_INT_CONST, require that all evaluated operands be
6173 INTEGER_CSTs.
6174
c3388e62
DM
61752015-05-12 David Malcolm <dmalcolm@redhat.com>
6176
6177 * c-common.h (warn_for_misleading_indentation): New prototype.
6178 * c-indentation.c: New file.
6179 * c.opt (Wmisleading-indentation): New option.
6180
c7b38fd5
TV
61812015-05-12 Tom de Vries <tom@codesourcery.com>
6182
6183 PR tree-optimization/66010
6184 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
6185
381bf11e
JM
61862015-05-09 Jason Merrill <jason@redhat.com>
6187
edff0c06
JM
6188 * c-opts.c (c_common_post_options): Also clear
6189 cpp_opts->cpp_warn_cxx11_compat.
6190
129211bc
JM
6191 * c-common.h (enum cxx_dialect): Add cxx_unset.
6192 * c-common.c (cxx_dialect): Initialize to cxx_unset.
6193 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
6194
381bf11e
JM
6195 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
6196 (std=gnu++0x): Mark as Undocumented.
6197 (std=gnu++1y): Add deprecated message.
6198
fe191308
JM
61992015-05-08 Jason Merrill <jason@redhat.com>
6200
765189ff
JM
6201 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
6202 * c-opts.c: Adjust.
6203
fe191308
JM
6204 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
6205
755e528f
MP
62062015-05-08 Marek Polacek <polacek@redhat.com>
6207
6208 PR c/64918
6209 * c.opt (Woverride-init-side-effects): New option.
6210
0173bd2a
MP
62112015-05-07 Marek Polacek <polacek@redhat.com>
6212
6213 PR c/65179
6214 * c-common.c (c_fully_fold_internal): Warn when left shifting a
6215 negative value.
6216 * c.opt (Wshift-negative-value): New option.
6217 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
6218 when -Wextra and C99/C++11 mode.
6219
e0f0d3b9
MP
62202015-05-07 Marek Polacek <polacek@redhat.com>
6221 Martin Uecker <uecker@eecs.berkeley.edu>
6222
6223 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
6224 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
6225
8243e2a9
JM
62262015-05-05 Jason Merrill <jason@redhat.com>
6227
6228 * c.opt (Wterminate): New.
6229
577cd070
MP
62302015-04-30 Marek Polacek <polacek@redhat.com>
6231
6232 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
6233 require that the non-constant be of a boolean type.
6234
0373796b
JT
62352015-04-29 Josh Triplett <josh@joshtriplett.org>
6236
e0f0d3b9
MP
6237 * c-common.c (handle_section_attribute): Refactor to reduce
6238 nesting and distinguish between error cases.
0373796b 6239
716c0ba6
MP
62402015-04-29 Marek Polacek <polacek@redhat.com>
6241
6242 PR c/64610
6243 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
6244 with 0/1.
6245
8848828b
JJ
62462015-04-29 Jakub Jelinek <jakub@redhat.com>
6247
6248 * c-common.h (omp_clause_mask): Unconditionally define as a class.
6249 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
6250 HOST_BITS_PER_WIDE_INT.
6251
ecd0e562
TV
62522015-04-28 Tom de Vries <tom@codesourcery.com>
6253
6254 PR tree-optimization/65887
6255 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
6256
2a877204 62572015-04-28 Eric Botcazou <ebotcazou@adacore.com>
e0f0d3b9 6258 Pierre-Marie de Rodat <derodat@adacore.com>
2a877204
EB
6259
6260 * c-ada-spec.c (in_function): Delete.
6261 (dump_generic_ada_node): Do not change in_function and remove the
6262 redundant code dealing with it.
6263 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
6264 (print_ada_methods): Output the static member functions in a nested
6265 package after the regular methods as well as associated renamings.
6266
4853031e
MP
62672015-04-24 Marek Polacek <polacek@redhat.com>
6268
6269 PR c/65830
6270 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
6271 and OPT_Wshift_count_overflow.
6272
8c2b7f79
MP
6273 PR c/63357
6274 * c-common.c (warn_logical_operator): Warn if the operands have the
6275 same expressions.
6276
b8787813
MP
62772015-04-24 Marek Polacek <polacek@redhat.com>
6278
6279 PR c/61534
6280 * c-common.c (warn_logical_operator): Bail if either operand comes
6281 from a macro expansion.
6282
8fba1830
BRF
62832015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6284
6285 PR target/55143
6286 * c-common.c (c_default_pointer_mode): Add definition.
6287 * c-common.h (c_default_pointer_mode): Add declaration.
6288
17958621
JJ
62892015-03-11 Jakub Jelinek <jakub@redhat.com>
6290
6291 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
6292 on record_builtin_type argument.
6293
7ccb1a11
JJ
62942015-03-10 Jakub Jelinek <jakub@redhat.com>
6295
6296 PR c/65120
6297 * c-common.c (warn_logical_not_parentheses): Don't warn for
6298 !x == 0 or !x != 0.
6299
04fd785e
MP
63002015-03-07 Marek Polacek <polacek@redhat.com>
6301
6302 PR sanitizer/65280
6303 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
6304 before trying to figure out whether we have a flexible array member.
6305
a4e26206 63062015-03-06 Eric Botcazou <ebotcazou@adacore.com>
8e745a17 6307 Jonathan Wakely <jwakely.gcc@gmail.com>
a4e26206
EB
6308
6309 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
6310
0d2489f4
EB
63112015-03-05 Eric Botcazou <ebotcazou@adacore.com>
6312
6313 PR ada/65319
6314 * c-ada-spec.c (print_destructor): Remove obsolete code.
6315
83ed54d7
EB
63162015-03-01 Eric Botcazou <ebotcazou@adacore.com>
6317
6318 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
6319 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
6320 DECL_TEMPLATE_RESULT emulations.
6321 (dump_ada_template)): Add guard for TYPE_METHODS.
6322
7631f0e2
MP
63232015-02-27 Marek Polacek <polacek@redhat.com>
6324
6325 PR c/65040
6326 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
6327
d1783ae5
KT
63282015-02-27 Kai Tietz <ktietz@redhat.com>
6329
6330 PR c/35330
6331 * c-pragma.c (handle_pragma_weak): Do not try to create
6332 weak/alias of declarations not being function, or variable
6333 declarations.
6334
56a9f6bc
TS
63352015-02-24 Thomas Schwinge <thomas@codesourcery.com>
6336
6337 PR libgomp/64625
6338 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
6339 Remove macros.
6340 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
6341
3d5cb23d
MP
63422015-02-16 Marek Polacek <polacek@redhat.com>
6343
6344 PR c/65066
6345 * c-format.c (check_format_types): Handle null param.
6346
fa008882
MP
63472015-02-13 Marek Polacek <polacek@redhat.com>
6348
6349 PR c/65040
6350 * c-format.c (check_format_types): Don't warn about different
6351 signedness if the original value is in the range of WANTED_TYPE.
6352
785f21af
JM
63532015-02-12 Jason Merrill <jason@redhat.com>
6354
6355 PR c++/64956
6356 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
6357 to the current highest version.
6358 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
6359
4886ec8e
JJ
63602015-02-04 Jakub Jelinek <jakub@redhat.com>
6361
6362 PR c/64824
6363 PR c/64868
6364 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
6365 instead of RDIV_EXPR. Use build_binary_op instead of
6366 build2_loc.
6367
40fecdd6
JM
63682015-01-30 Joseph Myers <joseph@codesourcery.com>
6369
6370 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
6371 to pass input_location as first argument.
6372
a0c88d06
TV
63732015-01-23 Tom de Vries <tom@codesourcery.com>
6374
6375 PR libgomp/64672
6376 * c.opt (fopenacc): Mark as LTO option.
6377
1506ae0e
TV
63782015-01-23 Tom de Vries <tom@codesourcery.com>
6379
6380 PR libgomp/64707
6381 * c.opt (fopenmp): Mark as LTO option.
6382
31be63ab
JJ
63832015-01-21 Jakub Jelinek <jakub@redhat.com>
6384
6385 PR c/63307
b1726d6c 6386 * cilk.c (fill_decls_vec): Only put decls into vector v.
31be63ab
JJ
6387 (compare_decls): Fix up formatting.
6388
63892015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
6390
6391 PR c/63307
6392 * cilk.c: Include vec.h.
6393 (struct cilk_decls): New structure.
6394 (wrapper_parm_cb): Split this function to...
6395 (fill_decls_vec): ...this...
6396 (create_parm_list): ...and this.
6397 (compare_decls): New function.
6398 (for_local_cb): Remove.
6399 (wrapper_local_cb): Ditto.
6400 (build_wrapper_type): For now first traverse and fill vector of
6401 declarations then sort it and then deal with sorted vector.
6402 (cilk_outline): Ditto.
6403 (declare_one_free_variable): Ditto.
6404
6875457f
JM
64052015-01-21 Jason Merrill <jason@redhat.com>
6406
6407 PR c++/64629
6408 * c-format.c (check_format_arg): Call decl_constant_value.
6409
185c9e56
ML
64102015-01-19 Martin Liska <mliska@suse.cz>
6411
6412 * c-common.c (handle_noicf_attribute): New function.
6413
41dbbb37
TS
64142015-01-15 Thomas Schwinge <thomas@codesourcery.com>
6415 Bernd Schmidt <bernds@codesourcery.com>
6416 James Norris <jnorris@codesourcery.com>
6417 Cesar Philippidis <cesar@codesourcery.com>
6418 Ilmir Usmanov <i.usmanov@samsung.com>
6419 Jakub Jelinek <jakub@redhat.com>
6420
6421 * c.opt (fopenacc): New option.
6422 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
6423 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
6424 New macros.
6425 * c-common.h (c_finish_oacc_wait): New prototype.
6426 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
6427 (c_finish_oacc_wait): New function.
6428 * c-pragma.c (oacc_pragmas): New variable.
6429 (c_pp_lookup_pragma, init_pragma): Handle it.
6430 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
6431 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
6432 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
6433 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
6434 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
6435 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
6436 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
6437 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
6438 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
6439 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
6440 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
6441 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
6442 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
6443 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
6444 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
6445 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
6446 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
6447 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
6448 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
6449 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
6450 PRAGMA_OACC_CLAUSE_WORKER.
6451
3f8257db 64522015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
5434dc07
MD
6453
6454 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
6455 for the new option fstack-protector_explicit.
6456 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
6457 (handle_stack_protect_attribute): New function.
6458
3f8257db 64592015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
de1b5c17
MU
6460
6461 * c.opt: New option -Warray-bounds=.
6462
adfac8df
JJ
64632015-01-09 Michael Collison <michael.collison@linaro.org>
6464
6465 * array-notation-common.c: Include hash-set.h, machmode.h,
6466 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
6467 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
6468 * c-ada-spec.c: Ditto.
6469 * c-cilkplus.c: Ditto.
6470 * c-common.c: Include input.h due to flattening of tree.h.
6471 Define macro GCC_C_COMMON_C.
6472 * c-common.h: Flatten tree.h header files into c-common.h.
6473 Remove include of tree-core.h.
6474 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
6475 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
6476 fold-const.h, wide-int.h, and inchash.h due to
6477 flattening of tree.h.
6478 * c-dump.c: Ditto.
6479 * c-format.c: Flatten tree.h header files into c-common.h.
6480 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
6481 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
6482 fold-const.h, wide-int.h, and inchash.h due to
6483 flattening of tree.h.
6484 * c-dump.c: Include hash-set.h, machmode.h,
6485 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
6486 fold-const.h, wide-int.h, and inchash.h due to
6487 flattening of tree.h.
6488 * c-format.c: Include hash-set.h, machmode.h,
6489 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
6490 fold-const.h, wide-int.h, inchash.h and real.h due to
6491 flattening of tree.h.
6492 * c-gimplify.c: Include hash-set.h, machmode.h,
6493 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
6494 fold-const.h, wide-int.h, and inchash.h due to
6495 flattening of tree.h.
6496 * cilk.c: Ditto.
6497 * c-lex.c: Ditto.
6498 * c-omp.c: Ditto.
6499 * c-opts.c: Ditto.
6500 * c-pch.c: Ditto.
6501 * c-ppoutput.c: Ditto.
6502 * c-pragma.c: Ditto.
6503 * c-pretty-print.c: Ditto.
6504 * c-semantics.c: Ditto.
6505 * c-ubsan.c: Ditto.
6506 * stub-objc.c: Ditto.
6507
f5481fc4
JM
65082015-01-08 Jason Merrill <jason@redhat.com>
6509
6510 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
6511 do_ubsan_in_current_function.
6512 (ubsan_maybe_instrument_reference_or_call): Likewise.
6513 * c-ubsan.h: Declare it.
6514
de35aa66
MS
65152015-01-08 Mike Stump <mikestump@comcast.net>
6516
6517 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
6518
4a9a42ab
MP
65192015-01-07 Marek Polacek <polacek@redhat.com>
6520
6521 PR c/64440
6522 * c-common.c (c_fully_fold_internal): Warn for division and modulo
6523 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
6524
2f42e5de
TS
65252015-01-05 Trevor Saunders <tsaunders@mozilla.com>
6526
6527 PR c++/31397
6528 * c.opt (Wsuggest-override): New option.
6529
5624e564
JJ
65302015-01-05 Jakub Jelinek <jakub@redhat.com>
6531
6532 Update copyright years.
6533
5bd012f8
MP
65342015-01-05 Marek Polacek <polacek@redhat.com>
6535
6536 PR c/64423
6537 * c-common.c (warn_array_subscript_with_type_char): Add location_t
6538 parameter. Use it.
6539 * c-common.h (warn_array_subscript_with_type_char): Update
6540 declaration.
6541
a7fa8d18
ESR
65422014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
6543
6544 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
6545 Control macro with flag_sized_deallocation.
6546
3f8257db 65472014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
768952be
MU
6548
6549 * c.opt (Wdiscarded-array-qualifiers): New option.
6550
1f8d3e84
JJ
65512014-12-19 Jakub Jelinek <jakub@redhat.com>
6552
6553 PR preprocessor/63831
6554 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
6555 and __has_cpp_attribute here.
6556 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
6557 c_common_has_attribute.
6558 * c-common.h (c_common_has_attribute): New prototype.
6559 * c-lex.c (init_c_lex): Set cb->has_attribute to
6560 c_common_has_attribute instead of cb_has_attribute.
6561 (get_token_no_padding): New function.
6562 (cb_has_attribute): Renamed to ...
6563 (c_common_has_attribute): ... this. No longer static. Use
6564 get_token_no_padding, require ()s, don't build TREE_LIST
6565 unnecessarily, fix up formatting, adjust diagnostics, call
6566 init_attributes.
6567
20b06add
JM
65682014-12-15 Jason Merrill <jason@redhat.com>
6569
6570 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
6571 (-Wsized-deallocation): New.
6572 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
6573 to on in C++14 and up.
6574
94a073b2
JM
65752014-12-11 Jason Merrill <jason@redhat.com>
6576
acaa5911
JM
6577 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
6578
94a073b2
JM
6579 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
6580 we aren't complaining about VLAs.
6581
7fb66c15
MP
65822014-12-06 Marek Polacek <polacek@redhat.com>
6583
6584 PR tree-optimization/64183
6585 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
6586 shift-expression if it is integer_type_node. Use types_compatible_p.
6587
b731b390
JJ
65882014-11-29 Jakub Jelinek <jakub@redhat.com>
6589
6590 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
6591 last argument from create_tmp_var_raw and create_tmp_var calls.
6592 * cilk.c (gimplify_cilk_spawn): Likewise.
6593 * c-omp.c (c_finish_omp_atomic): Likewise.
6594
6a4da643
MP
65952014-11-28 Marek Polacek <polacek@redhat.com>
6596
6597 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
6598 instead of unsigned_type_node.
6599
541e35a6
MP
66002014-11-28 Marek Polacek <polacek@redhat.com>
6601
6602 PR c/63862
6603 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
6604 to op1_utype.
6605 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
6606 expression to unsigned_type_node.
6607
dcc97066
MW
66082014-11-20 Mark Wielaard <mjw@redhat.com>
6609
6610 PR debug/38757
6611 * c-opts.c (set_std_c89): Set lang_hooks.name.
6612 (set_std_c99): Likewise.
6613 (set_std_c11): Likewise.
6614 (set_std_cxx98): Likewise.
6615 (set_std_cxx11): Likewise.
6616 (set_std_cxx14): Likewise.
6617 (set_std_cxx1z): Likewise.
6618
aa7da51a
JJ
66192014-11-21 Jakub Jelinek <jakub@redhat.com>
6620
6621 PR target/63764
6622 * c-common.h (convert_vector_to_pointer_for_subscript): Change
6623 return type to bool.
009a3480 6624 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
6625 (convert_vector_to_pointer_for_subscript): Change return type to
6626 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
6627 and copy it into a TARGET_EXPR and use that instead of *vecp
6628 directly.
6629
538dd0b7
DM
66302014-11-19 David Malcolm <dmalcolm@redhat.com>
6631
6632 Merger of git branch "gimple-classes-v2-option-3".
6633 * ChangeLog.gimple-classes: New.
6634 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
6635 from being just a vec<gimple> to a vec<gbind *>.
6636
c39a5e99
JJ
66372014-11-18 Jakub Jelinek <jakub@redhat.com>
6638
6639 PR sanitizer/63813
6640 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
6641 argument to ptype, set type to TREE_TYPE (ptype). Don't call
6642 get_pointer_alignment for non-pointers. Use ptype, or if it is
6643 reference type, corresponding pointer type, as type of kind
6644 argument.
6645 (ubsan_maybe_instrument_reference,
6646 ubsan_maybe_instrument_member_call): Adjust callers.
6647
8537a4a9
MP
66482014-11-15 Marek Polacek <polacek@redhat.com>
6649
6650 PR middle-end/63884
6651 * array-notation-common.c (is_sec_implicit_index_fn): Return false
6652 for NULL fndecl.
6653 (extract_array_notation_exprs): Return for NULL node.
6654
2079956a
JM
66552014-11-12 Joseph Myers <joseph@codesourcery.com>
6656
6657 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
6658 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
6659
1304953e
JJ
66602014-11-12 Jakub Jelinek <jakub@redhat.com>
6661
6662 PR c/59708
6663 * c-common.c (check_builtin_function_arguments): Handle
6664 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
6665
e5e44252
AK
66662014-11-10 Andi Kleen <ak@linux.intel.com>
6667
6668 PR c/60804
6669 * c-common.h (check_no_cilk): Declare.
6670 * cilk.c (get_error_location): New function.
6671 (check_no_cilk): Dito.
6672
e64b984d
AK
66732014-11-10 Andi Kleen <ak@linux.intel.com>
6674
6675 * cilk.c (recognize_spawn): Use expression location
6676 for error message.
6677
13c21655
PC
66782014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
6679
6680 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
6681
42fd12b1
ESR
66822014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
6683
6684 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
6685 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
6686 (__cpp_range_based_for, __cpp_initializer_lists,
6687 __cpp_delegating_constructors, __cpp_nsdmi,
6688 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
6689 for C++11; (__cpp_attribute_deprecated): Remove in favor of
6690 __has_cpp_attribute.
6691 * c-lex.c (cb_has_attribute): New callback CPP function;
6692 (init_c_lex): Set has_attribute callback.
6693
6f450181
RB
66942014-11-04 Richard Biener <rguenther@suse.de>
6695
6696 * c-common.c (shorten_compare): Do not shorten mixed
6697 DFP and non-DFP compares.
6698
26f0e1d6
ESR
66992014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
6700
6701 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
6702 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
6703 Commentary and rearrangement of tests.
6704 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
6705 Commentary and rearrangement of tests.
ab20d992 6706 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto.
26f0e1d6
ESR
6707 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
6708
ef4bddc2
RS
67092014-10-29 Richard Sandiford <richard.sandiford@arm.com>
6710
6711 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
6712 enum from machine_mode.
6713
c582198b
AM
67142014-10-28 Andrew MacLeod <amacleod@redhat.com>
6715
adfac8df
JJ
6716 * c-common.c: Adjust include files.
6717 * c-gimplify.c: Ditto.
6718 * cilk.c: Ditto.
6719 * c-pragma.c: Ditto.
6720 * c-ubsan.c: Ditto.
c582198b 6721
60393bbc
AM
67222014-10-27 Andrew MacLeod <amacleod@redhat.com>
6723
6724 * c-gimplify.c: Adjust include files.
6725
d723bb7c
MLI
67262014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
6727
6728 PR c++/53061
6729 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
6730 c_common_initialize_diagnostics.
6731 * c-common.h: Likewise.
6732
90f3520e
MP
67332014-10-24 Marek Polacek <polacek@redhat.com>
6734
6735 PR c/56980
6736 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
6737 print "struct"/"union"/"enum" for typedefed names.
6738
59d7607a
MP
67392014-10-23 Marek Polacek <polacek@redhat.com>
6740
6741 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
6742 in unsigned type.
6743
d95a2703
JJ
67442014-10-22 Jakub Jelinek <jakub@redhat.com>
6745 Yury Gribov <y.gribov@samsung.com>
6746
6747 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
6748 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
6749 instead of flag_sanitize_recover as bool flag.
6750
8e6ef852
KY
67512014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
6752
6753 * cilk.c: Revert previous change.
6754
948cf550
IZ
67552014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
6756
6757 PR c/63307
6758 * cilk.c: Include vec.h.
6759 (struct cilk_decls): New structure.
6760 (wrapper_parm_cb): Split this function to...
6761 (fill_decls_vec): ...this...
6762 (create_parm_list): ...and this.
6763 (compare_decls): New function.
6764 (for_local_cb): Remove.
6765 (wrapper_local_cb): Ditto.
6766 (build_wrapper_type): For now first traverse and fill vector of
6767 declarations then sort it and then deal with sorted vector.
6768 (cilk_outline): Ditto.
6769 (declare_one_free_variable): Ditto.
6770
92574c7c
MP
67712014-10-17 Marek Polacek <polacek@redhat.com>
6772
6773 * c-opts.c (c_common_post_options): Set warn_implicit_int.
6774 * c.opt (Wimplicit-int): Initialize to -1.
6775
83685514
AM
67762014-10-16 Andrew MacLeod <amacleod@redhat.com>
6777
6778 * c-pragma.c: Adjust include files.
6779 * c-semantics.c: Likewise.
6780
5b8300ea
DD
67812014-10-16 DJ Delorie <dj@redhat.com>
6782
6783 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
6784 multiples of bytes.
6785
5f83e90b
JM
67862014-10-14 Jason Merrill <jason@redhat.com>
6787
6788 PR c++/63455
6789 * c-common.h (CPP_PREPARSED_EXPR): New.
6790 (N_CP_TTYPES): Adjust.
6791
d73326ca
MP
67922014-10-15 Marek Polacek <polacek@redhat.com>
6793
6794 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
6795
78a7c317
DD
67962014-10-14 DJ Delorie <dj@redhat.com>
6797
6798 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
6799 types, not just __int128.
6800 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
6801 types, not just __int128.
6802 (cpp_atomic_builtins): Round pointer sizes up.
6803 (type_suffix): Use type precision, not specific types.
6804 * c-common.c (c_common_reswords): Remove __int128 special case.
6805 (c_common_type_for_size): Check for all __intN types, not just
6806 __int128.
6807 (c_common_type_for_mode): Likewise.
6808 (c_common_signed_or_unsigned_type): Likewise.
6809 (c_build_bitfield_integer_type): Likewise.
6810 (c_common_nodes_and_builtins): Likewise.
6811 (keyword_begins_type_specifier): Likewise.
6812 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
6813 __intN variants.
6814
2a22f99c
TS
68152014-10-12 Trevor Saunders <tsaunders@mozilla.com>
6816
6817 * c-common.c: Use hash_table instead of hashtab.
6818
2a8ef767
ESR
68192014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
6820
adfac8df 6821 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
6822 C++11 section.
6823
3c9aabbd
MG
68242014-10-03 Marc Glisse <marc.glisse@inria.fr>
6825
6826 PR c++/54427
6827 PR c++/57198
6828 PR c++/58845
6829 * c-common.c (warn_logical_operator): Punt for vectors.
6830
a15f7cb8
ESR
68312014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
6832
6833 Implement SD-6: SG10 Feature Test Recommendations
6834 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
6835 macros and the __has_header macro.
6836
8d0cf15e
JM
68372014-09-30 Jason Merrill <jason@redhat.com>
6838
dd5d5481
JM
6839 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
6840 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
6841 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
6842
b752325e
JM
6843 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
6844 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
6845
8d0cf15e
JM
6846 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
6847 * c-common.c (c_common_reswords): Remove __is_convertible_to.
6848
083e891e
MP
68492014-09-24 Marek Polacek <polacek@redhat.com>
6850
6851 PR c/61405
6852 PR c/53874
6853 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
6854
7861b648
AK
68552014-09-23 Andi Kleen <ak@linux.intel.com>
6856
6857 * c-common.c (handle_no_reorder_attribute): New function.
6858 (c_common_attribute_table): Add no_reorder attribute.
6859
9a79452d
JM
68602014-09-22 Joseph Myers <joseph@codesourcery.com>
6861
6862 * c-cppbuiltin.c (c_cpp_builtins): Define
6863 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
6864 modes.
6865
dd69f047
JM
68662014-09-18 Joseph Myers <joseph@codesourcery.com>
6867
6868 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
6869 for supported floating-point modes.
6870
737a4826
MLI
68712014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6872
6873 * c.opt (Wpsabi): Use LangEnabledBy.
6874 * c-opts.c (c_common_handle_option): Do not handle here.
6875
8cc4b7a2
JM
68762014-09-12 Joseph Myers <joseph@codesourcery.com>
6877
6878 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
6879 macros for floating-point modes.
6880
179b5a55
MG
68812014-09-11 Marc Glisse <marc.glisse@inria.fr>
6882
6883 PR target/58757
6884 * c-cppbuiltin.c (builtin_define_float_constants): Correct
6885 __*_DENORM_MIN__ without denormals.
6886
570a11fe
JJ
68872014-09-10 Jakub Jelinek <jakub@redhat.com>
6888
6889 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
6890 ubsan_instrument_vla, ubsan_instrument_return): Adjust
6891 ubsan_create_data callers.
6892 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
6893 index is constant or BIT_AND_EXPR with constant mask and is
6894 small enough for the bound.
6895 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
6896 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
6897
b559c810
MLI
68982014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
6899
6900 * c.opt: Add CppReason to various flags.
6901 (Wdate-time): Re-sort.
6902 * c-common.c: Include c-common.h earlier.
6903 (struct reason_option_codes_t): Delete.
6904 (c_option_controlling_cpp_error): Prefix global type and struct
6905 with cpp_.
6906
1ef33fd4
MLI
69072014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
6908
6909 * c.opt (Wnormalized): New.
6910 (Wnormalized=): Use Enum and Reject Negative.
6911 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
6912
66bb34c0
JM
69132014-09-08 Joseph Myers <joseph@codesourcery.com>
6914
6915 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
6916 digits of floating-point modes if -fbuilding-libgcc.
6917
53d68b9f
JM
69182014-09-05 Joseph Myers <joseph@codesourcery.com>
6919
6920 * c-cppbuiltin.c (c_cpp_builtins): Also define
6921 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
6922 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
6923 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
6924 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
6925 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
6926 __LIBGCC_STACK_GROWS_DOWNWARD__,
6927 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
6928 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
6929 __LIBGCC_DWARF_FRAME_REGISTERS__,
6930 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
6931 __LIBGCC_STACK_POINTER_REGNUM__ and
6932 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
6933 (builtin_define_with_value): Handle backslash-escaping in string
6934 macro values.
6935
f65586dc
RB
69362014-09-05 Richard Biener <rguenther@suse.de>
6937
6938 PR middle-end/63148
6939 * c-format.c (check_format_arg): Properly handle
6940 effectively signed POINTER_PLUS_EXPR offset.
6941
2b71f4a4
MLI
69422014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
6943
6944 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
6945 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
6946 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
6947 and Init.
6948 * c-opts.c (c_common_handle_option): Do not handle here.
6949 (sanitize_cpp_opts): Likewise.
6950 * c-common.c (struct reason_option_codes_t): Handle
6951 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
6952
d2e4feca
MP
69532014-09-03 Marek Polacek <polacek@redhat.com>
6954
6955 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
6956
9a771876
JJ
69572014-09-02 Jakub Jelinek <jakub@redhat.com>
6958 Balaji V. Iyer <balaji.v.iyer@intel.com>
6959 Igor Zamyatin <igor.zamyatin@intel.com>
6960
6961 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
6962 * c-common.c (c_common_reswords): Added _Cilk_for.
6963 * c-common.h (enum rid): Added RID_CILK_FOR.
6964 (cilk_for_number_of_iterations): Add declaration.
6965 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
6966 CILK_FOR.
6967 * c-pragma.c (init_pragma): Register "grainsize" pragma.
6968 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
6969
81b5d104
MLI
69702014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
6971
6972 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
6973 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
6974 Wundef): Use CPP, Var and Init.
6975 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
6976
b753b37b
MLI
69772014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
6978
6979 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
6980 * c-opts.c (c_common_handle_option): Do not handle here.
6981
028aee17
JM
69822014-08-25 Jason Merrill <jason@redhat.com>
6983
6984 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
6985 -std=c++14 and -std=gnu++14, rather than the reverse.
6986 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
6987 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
6988 * c-common.h (cxx_dialect): Remove cxx1y.
6989
e4276ba5
ESR
69902014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
6991
6992 * c-common.h (enum cxx_dialect): Add cxx14.
6993 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
6994 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
6995 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
6996
a545cacd
JM
69972014-08-22 Jason Merrill <jason@redhat.com>
6998
6999 * c.opt (std=gnu++17): Fix alias.
7000
59ea0364
MP
70012014-08-22 Marek Polacek <polacek@redhat.com>
7002
7003 PR c++/62199
7004 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
7005 check for vector types. Drop LHS argument.
7006 * c-common.h (warn_logical_not_parentheses): Adjust.
7007
596e808c
MLI
70082014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
7009
7010 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
7011 (Wmultichar): Likewise.
7012 (Wdate-time): Use C-family languages instead of Common. Use CPP
7013 and Var.
7014 * c-opts.c (c_common_handle_option): Do not handle the above
7015 options here.
7016 (sanitize_cpp_opts): Likewise.
7017
18767f65
MLI
70182014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
7019
7020 PR fortran/44054
7021 * c-opts.c: Include tree-diagnostics.h.
7022 (c_diagnostic_finalizer): New.
7023 (c_common_initialize_diagnostics): Use it.
7024
b4413594
MLI
70252014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
7026
7027 PR preprocessor/51303
7028 * c-common.c (struct reason_option_codes_t option_codes):
7029 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
7030
43f9a13c
MLI
70312014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
7032
7033 PR c/60975
7034 PR c/53063
7035 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
7036 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
7037 (c_common_post_options): Call init_global_opts_from_cpp.
7038 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
7039
04159acf
MP
70402014-08-19 Marek Polacek <polacek@redhat.com>
7041
7042 PR c++/62153
7043 * c-common.c (maybe_warn_bool_compare): New function.
7044 * c-common.h (maybe_warn_bool_compare): Declare.
7045 * c.opt (Wbool-compare): New option.
7046
35aff4fb
MP
70472014-08-19 Marek Polacek <polacek@redhat.com>
7048
7049 * c.opt (Wc99-c11-compat): New option.
7050
177cce46
MP
70512014-08-19 Marek Polacek <polacek@redhat.com>
7052
7053 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
7054 to warn_c90_c99_compat.
7055 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
7056 to -1.
7057
6ae9194f
MLI
70582014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
7059 Steven Bosscher <steven@gcc.gnu.org>
7060
7061 PR c/52952
7062 * c-format.c: Add extra_arg_loc and format_string_loc to struct
7063 format_check_results.
7064 (check_function_format): Use true and add comment for boolean
7065 argument.
7066 (finish_dollar_format_checking): Use explicit location when warning.
7067 (check_format_info): Likewise.
7068 (check_format_arg): Set extra_arg_loc and format_string_loc.
7069 (check_format_info_main): Use explicit location when warning.
7070 (check_format_types): Pass explicit location.
7071 (format_type_warning): Likewise.
7072
8e54f6d3
MLI
70732014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
7074
7075 PR fortran/44054
7076 * c-format.c: Handle Fortran flags.
7077
cd4e76fc
IZ
70782014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
7079
7080 PR other/61962
7081 * array-notation-common.c (find_rank): Added handling for other
7082 types of references.
7083
f3bede71
MP
70842014-08-10 Marek Polacek <polacek@redhat.com>
7085
7086 PR c/51849
7087 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
7088 * c.opt (Wc90-c99-compat): Add option.
7089
9f25a338
TS
70902014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7091
7092 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
7093
62e4eb35
MP
70942014-08-03 Marek Polacek <polacek@redhat.com>
7095
ab20d992 7096 * c-common.c (check_case_value): Add location_t parameter. Use it.
62e4eb35
MP
7097 (c_add_case_label): Pass loc to check_case_value.
7098
b787e7a2
TS
70992014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7100
7101 * cilk.c: Use hash_map instead of pointer_map.
7102
6e2830c3
TS
71032014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7104
7105 * c-gimplify.c: Use hash_set instead of pointer_set.
7106
a7ee52fb
IZ
71072014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
7108
7109 PR middle-end/61455
7110 * array-notation-common.c (extract_array_notation_exprs): Handling
7111 of DECL_EXPR added.
7112
944fa280
JJ
71132014-08-01 Jakub Jelinek <jakub@redhat.com>
7114
7115 * c-common.h (min_align_of_type): Removed prototype.
7116 * c-common.c (min_align_of_type): Removed.
7117 * c-ubsan.h (ubsan_maybe_instrument_reference,
7118 ubsan_maybe_instrument_member_call): New prototypes.
7119 * c-ubsan.c: Include stor-layout.h and builtins.h.
7120 (ubsan_maybe_instrument_reference_or_call,
7121 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
7122 functions.
7123
b4dfdc11
MG
71242014-07-31 Marc Glisse <marc.glisse@inria.fr>
7125
7126 PR c++/60517
7127 * c.opt (-Wreturn-local-addr): Move to common.opt.
7128
a41844e5
JM
71292014-07-30 Jason Merrill <jason@redhat.com>
7130
7131 PR c++/61659
7132 PR c++/61687
7133 Revert:
7134 * c.opt (-fuse-all-virtuals): New.
7135
976d5a22
TT
71362014-07-30 Tom Tromey <tromey@redhat.com>
7137
7138 PR c/59855
7139 * c.opt (Wdesignated-init): New option.
7140 * c-common.c (c_common_attribute_table): Add "designated_init".
7141 (handle_designated_init): New function.
7142
cdc94aca
MP
71432014-07-24 Marek Polacek <polacek@redhat.com>
7144
7145 PR c/57653
7146 * c-opts.c (c_finish_options): If -imacros is in effect, return.
7147
f41373b6
DS
71482014-07-16 Dodji Seketeli <dodji@redhat.com>
7149
7150 PR preprocessor/60723 - missing system-ness marks for macro tokens
7151 * c-ppoutput.c (struct print::prev_was_system_token): New data
7152 member.
7153 (init_pp_output): Initialize it.
7154 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
7155 (do_line_change): Return a flag saying if a line marker was
7156 emitted or not.
7157 (scan_translation_unit): Detect if the system-ness of the token we
7158 are about to emit is different from the one of the previously
7159 emitted token. If so, emit a line marker. Avoid emitting useless
7160 adjacent line markers. Avoid emitting line markers for tokens
7161 originating from the expansion of built-in macros.
7162 (scan_translation_unit_directives_only): Adjust.
7163
4d661eaa
MP
71642014-07-15 Marek Polacek <polacek@redhat.com>
7165
7166 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
7167 TYPE_MAX_VALUE is NULL.
7168
b108f48f
JJ
71692014-07-14 Jakub Jelinek <jakub@redhat.com>
7170
7171 PR middle-end/61294
7172 * c.opt (Wmemset-transposed-args): New warning.
7173
c0221884
JM
71742014-07-10 Jason Merrill <jason@redhat.com>
7175
7176 PR c++/61659
7177 PR c++/61687
7178 * c.opt (-fuse-all-virtuals): New.
7179
63dfbb95
RB
71802014-07-09 Richard Biener <rguenther@suse.de>
7181
7182 PR c-family/61741
7183 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
7184 using unsigned arithmetic if overflow does not wrap instead of
7185 if overflow is undefined.
7186
773ec47f
MP
71872014-07-06 Marek Polacek <polacek@redhat.com>
7188
7189 PR c/6940
7190 * c.opt (Wsizeof-array-argument): New option.
7191
00a7ba58
JJ
71922014-07-03 Jakub Jelinek <jakub@redhat.com>
7193
b1726d6c 7194 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
00a7ba58
JJ
7195 comments->count <= 1, as comments->entries might be NULL.
7196
52ec0ea3
MP
71972014-07-01 Marek Polacek <polacek@redhat.com>
7198
7199 * c.opt (Wint-conversion): New option.
7200
d5c3d343
MP
72012014-07-01 Marek Polacek <polacek@redhat.com>
7202
7203 PR c/58286
7204 * c.opt (Wincompatible-pointer-types): New option.
7205
6e7ceb17
PC
72062014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
7207
7208 PR c++/51400
7209 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
7210 Do not discard TYPE_QUALS of type.
7211
da73100b
JM
72122014-06-26 Jason Merrill <jason@redhat.com>
7213
7214 * c-common.h (enum cxx_dialect): Add cxx1z.
7215 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
7216 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
7217
08eedf75
TJ
72182014-06-26 Teresa Johnson <tejohnson@google.com>
7219
7220 * c-common.h (get_dump_info): Declare.
7221 * c-gimplify.c (c_genericize): Use saved dump files.
7222 * c-opts.c (c_common_parse_file): Begin and end dumps
7223 once around parsing invocation.
7224 (get_dump_info): New function.
7225
7b56b2f8
MP
72262014-06-23 Marek Polacek <polacek@redhat.com>
7227 Andrew MacLeod <amacleod@redhat.com>
7228
7229 PR c/61553
7230 * c-common.c (get_atomic_generic_size): Don't segfault if the
7231 type doesn't have a size.
7232
0e37a2f3
MP
72332014-06-20 Marek Polacek <polacek@redhat.com>
7234
7235 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
7236 (ubsan_walk_array_refs_r): New function.
7237 (c_genericize): Instrument array bounds.
7238 * c-ubsan.c: Include "internal-fn.h".
7239 (ubsan_instrument_division): Mark instrumented arrays as having
7240 side effects. Adjust ubsan_type_descriptor call.
7241 (ubsan_instrument_shift): Likewise.
7242 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
7243 (ubsan_instrument_bounds): New function.
7244 (ubsan_array_ref_instrumented_p): New function.
7245 (ubsan_maybe_instrument_array_ref): New function.
7246 * c-ubsan.h (ubsan_instrument_bounds): Declare.
7247 (ubsan_array_ref_instrumented_p): Declare.
7248 (ubsan_maybe_instrument_array_ref): Declare.
7249
72502014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
7251
7252 PR lto/61123
7253 * c.opt (fshort-enums): Add to LTO.
7254 * c.opt (fshort-wchar): Likewise.
7255
5c3d09f7
MP
72562014-06-16 Marek Polacek <polacek@redhat.com>
7257
7258 PR c/60439
7259 * c.opt (Wswitch-bool): Add Var.
7260
9cf32741
JJ
72612014-06-12 Jakub Jelinek <jakub@redhat.com>
7262
7263 PR middle-end/61486
7264 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
7265 #pragma omp target teams or
7266 #pragma omp {,target }teams distribute simd.
7267
62984918
JM
72682014-06-12 Jason Merrill <jason@redhat.com>
7269
7270 * c.opt (Wabi=, fabi-compat-version): New.
7271 * c-opts.c (c_common_handle_option): Handle -Wabi=.
7272 (c_common_post_options): Handle flag_abi_compat_version default.
7273 Disallow -fabi-compat-version=1.
7274 * c-common.h (abi_version_crosses): New.
7275
f961457f
JH
72762014-06-11 Jan Hubicka <hubicka@ucw.cz>
7277
adfac8df 7278 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
7279 section names that are no longer trees.
7280
92d28cbb
JJ
72812014-06-10 Jakub Jelinek <jakub@redhat.com>
7282
7283 PR fortran/60928
7284 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
7285 (omp_pragmas): ... back here.
7286
742938c9
MP
72872014-06-05 Marek Polacek <polacek@redhat.com>
7288
7289 PR c/49706
7290 * c-common.c (warn_logical_not_parentheses): New function.
7291 * c-common.h (warn_logical_not_parentheses): Declare.
7292 * c.opt (Wlogical-not-parentheses): New option.
7293
9d548dfb
MP
72942014-06-04 Marek Polacek <polacek@redhat.com>
7295
7296 PR c/30020
7297 * c-common.c (check_case_bounds): Add location parameter.
7298 Use it.
7299 (c_add_case_label): Pass loc to check_case_bounds.
7300
fedfecef
MP
73012014-06-03 Marek Polacek <polacek@redhat.com>
7302
7303 PR c/60439
7304 * c.opt (Wswitch-bool): New option.
7305
f6a7cffc
TS
73062014-05-22 Thomas Schwinge <thomas@codesourcery.com>
7307
040d18b6
TS
7308 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
7309 Remove prototypes.
7310 (record_types_used_by_current_var_decl): Move prototype to where
7311 it belongs.
7312
f6a7cffc
TS
7313 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
7314 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
7315 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
7316
632f2871
RS
73172014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
7318
7319 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
7320 * c-common.c (c_common_nodes_and_builtins): Don't initialize
7321 void_zero_node.
7322 * c-pretty-print.c (pp_c_void_constant): New function.
7323 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
7324 (c_pretty_printer::expression): Handle VOID_CST.
7325 * cilk.c (extract_free_variables): Likewise.
7326 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
7327 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
7328
766090c2
TS
73292014-05-17 Trevor Saunders <tsaunders@mozilla.com>
7330
7331 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
7332 * c-pragma.c (push_alignment): Adjust.
7333 (handle_pragma_push_options): Likewise.
7334
661a0813
MP
73352014-05-09 Marek Polacek <polacek@redhat.com>
7336
7337 PR c/50459
7338 * c-common.c (check_user_alignment): Return -1 if alignment is error
7339 node.
7340 (handle_aligned_attribute): Don't call default_conversion on
7341 FUNCTION_DECLs.
7342 (handle_vector_size_attribute): Likewise.
7343 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
7344 (handle_sentinel_attribute): Call default_conversion and allow even
7345 integral types as an argument.
7346
2793eeab
MP
73472014-05-08 Marek Polacek <polacek@redhat.com>
7348
7349 PR c/61053
7350 * c-common.c (min_align_of_type): New function factored out from...
7351 (c_sizeof_or_alignof_type): ...here.
7352 * c-common.h (min_align_of_type): Declare.
7353
f827930a
MP
73542014-05-08 Marek Polacek <polacek@redhat.com>
7355
7356 PR c/61077
7357 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
7358 parameter type of main.
7359
ca49b74e
DD
73602014-05-07 DJ Delorie <dj@redhat.com>
7361
7362 * c-cppbuiltin.c (print_bits_of_hex): New.
7363 (builtin_define_type_minmax): Print values using hex so as not to
7364 require a pre-computed list of string values.
7365
1d60af08
KZ
73662014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
7367 Mike Stump <mikestump@comcast.net>
7368 Richard Sandiford <rdsandiford@googlemail.com>
7369
7370 * c-ada-spec.c: Include wide-int.h.
7371 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
7372 (dump_generic_ada_node): Use wide-int interfaces.
7373 * c-common.c: Include wide-int-print.h.
7374 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
7375 (pointer_int_sum): Use wide-int interfaces.
7376 (c_common_nodes_and_builtins): Use make_int_cst.
7377 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
7378 (handle_alloc_size_attribute): Use wide-int interfaces.
7379 (get_nonnull_operand): Likewise.
7380 * c-format.c (get_constant): Use tree_fits_uhwi_p.
7381 * c-lex.c: Include wide-int.h.
7382 (narrowest_unsigned_type): Take a widest_int rather than two
7383 HOST_WIDE_INTs.
7384 (narrowest_signed_type): Likewise.
7385 (interpret_integer): Update accordingly. Use wide-int interfaces.
7386 (lex_charconst): Use wide-int interfaces.
7387 * c-pretty-print.c: Include wide-int.h.
7388 (pp_c_integer_constant): Use wide-int interfaces.
7389 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
7390 INT_CST_LT_UNSIGNED.
7391
b15458be
RB
73922014-05-06 Richard Biener <rguenther@suse.de>
7393
7394 * c-opts.c (c_common_post_options): For -freestanding,
7395 -fno-hosted and -fno-builtin disable pattern recognition
7396 if not enabled explicitely.
7397
6577374e
MP
73982014-05-02 Marek Polacek <polacek@redhat.com>
7399
7400 * c.opt (Wsizeof-pointer-memaccess): Describe option.
7401
d00887e8
MP
74022014-05-01 Marek Polacek <polacek@redhat.com>
7403
7404 PR c/43245
7405 * c.opt (Wdiscarded-qualifiers): Add.
7406
f8ed5150
MP
74072014-04-30 Marek Polacek <polacek@redhat.com>
7408
7409 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
7410 INT_MIN / -1 sanitization only for integer types.
7411
45484dcf
MP
74122014-04-25 Marek Polacek <polacek@redhat.com>
7413
7414 PR c/18079
7415 * c-common.c (handle_noinline_attribute): Warn if the attribute
7416 conflicts with always_inline attribute.
7417 (handle_always_inline_attribute): Warn if the attribute conflicts
7418 with noinline attribute.
7419
38e514c0
MP
74202014-04-25 Marek Polacek <polacek@redhat.com>
7421
7422 PR c/60156
7423 * c-common.c (check_main_parameter_types): Warn about variadic main.
7424
44875f92
MS
74252014-04-24 Mike Stump <mikestump@comcast.net>
7426
7427 * c.opt (Wshadow-ivar): Default to on.
7428
dcaaa5a0
DP
74292014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
7430
7431 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
7432
c07d7c02
MP
74332014-04-23 Marek Polacek <polacek@redhat.com>
7434
7435 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
7436
1c33c9b7
JJ
74372014-04-22 Jakub Jelinek <jakub@redhat.com>
7438
7439 PR sanitizer/60275
7440 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
7441 if flag_sanitize_undefined_trap_on_error.
7442 (ubsan_instrument_division, ubsan_instrument_shift,
7443 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
7444 if !flag_sanitize_recover.
7445
793c625f
MG
74462014-04-22 Marc Glisse <marc.glisse@inria.fr>
7447
7448 PR libstdc++/43622
7449 * c-common.c (registered_builtin_types): Make non-static.
7450 * c-common.h (registered_builtin_types): Declare.
7451
b0f1bf36 74522014-04-14 Richard Biener <rguenther@suse.de>
ab20d992 7453 Marc Glisse <marc.glisse@inria.fr>
b0f1bf36
RB
7454
7455 PR c/60819
7456 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
7457 apply may-alias the scalar pointer type when applicable.
7458
3b07fa4a
IZ
74592014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
7460
7461 PR middle-end/60467
7462 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
7463 as possible argument for Cilk_spawn.
7464
cbbd2b1c
TB
74652014-04-11 Tobias Burnus <burnus@net-b.de>
7466
7467 PR c/60194
7468 * c.opt (Wformat-signedness): Add
7469 * c-format.c(check_format_types): Use it.
7470
6415bd5d
JM
74712014-04-11 Jason Merrill <jason@redhat.com>
7472
7473 PR c++/57926
7474 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
7475 default_conversion for an array argument.
7476
6525783a
MP
74772014-04-08 Marek Polacek <polacek@redhat.com>
7478
7479 PR sanitizer/60745
7480 * c-ubsan.c: Include asan.h.
7481 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
7482
880a467b
NS
74832014-04-03 Nathan Sidwell <nathan@codesourcery.com>
7484
7485 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
7486
7b59ff2d
MP
74872014-04-02 Marek Polacek <polacek@redhat.com>
7488
7489 * c-common.h (c_expand_expr): Remove declaration.
7490
8edbfaa6
JJ
74912014-03-28 Jakub Jelinek <jakub@redhat.com>
7492
7493 PR c++/60689
7494 * c-common.c (add_atomic_size_parameter): When creating new
7495 params vector, push the size argument first.
7496
07d72e1d
JJ
74972014-03-26 Jakub Jelinek <jakub@redhat.com>
7498
7499 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
7500 ubsan_instrument_vla, ubsan_instrument_return): Adjust
7501 ubsan_create_data callers.
7502
b35e0fa0
JJ
75032014-03-22 Jakub Jelinek <jakub@redhat.com>
7504
7505 PR debug/60603
7506 * c-opts.c (c_finish_options): Restore cb_file_change call to
7507 <built-in>.
7508
39a1ebb3
JJ
75092014-03-13 Jakub Jelinek <jakub@redhat.com>
7510
7511 PR middle-end/36282
7512 * c-pragma.c (apply_pragma_weak): Only look at
7513 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
7514 DECL_ASSEMBLER_NAME_SET_P (decl).
7515 (maybe_apply_pending_pragma_weaks): Exit early if
7516 vec_safe_is_empty (pending_weaks) rather than only when
7517 !pending_weaks.
7518 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
7519 set assembler name back to NULL afterwards.
7520
a07f6ed2
JM
75212014-03-11 Jason Merrill <jason@redhat.com>
7522
7523 * c.opt: Add -std=gnu++14.
7524
75b107f5
IB
75252014-03-11 Ian Bolton <ian.bolton@arm.com>
7526
7527 * c-opts.c (c_common_post_options): Don't override
7528 -ffp-contract=fast if unsafe-math-optimizations is on.
7529
f42c637e
PM
75302014-03-08 Paulo Matos <paulo@matos-sorge.com>
7531
22b15758 7532 * c.opt: Enable LTO FE for fshort-double.
f42c637e 7533
70e24808
JM
75342014-03-07 Jason Merrill <jason@redhat.com>
7535
7536 * c.opt: Add -std=c++14.
7537
3af9c5e9
MP
75382014-03-06 Marek Polacek <polacek@redhat.com>
7539
7540 PR c/60197
7541 * cilk.c (contains_cilk_spawn_stmt): New function.
7542 (contains_cilk_spawn_stmt_walker): Likewise.
7543 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
7544 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
7545
b3bdf019
JJ
75462014-03-03 Jakub Jelinek <jakub@redhat.com>
7547
7548 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
7549 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
7550 even when flag_preprocess_only.
7551
ca7e759d
JM
75522014-02-26 Jason Merrill <jason@redhat.com>
7553
7554 PR c++/59231
7555 PR c++/11586
7556 * c-common.c (shorten_compare): Don't check
7557 c_inhibit_evaluation_warnings.
7558
28e41874
JJ
75592014-02-19 Jakub Jelinek <jakub@redhat.com>
7560
cca615af
JJ
7561 PR c/37743
7562 * c-common.c (c_common_nodes_and_builtins): When initializing
7563 c_uint{16,32,64}_type_node, also set corresponding
7564 uint{16,32,64}_type_node to the same value.
7565
28e41874
JJ
7566 PR c++/60267
7567 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
7568 for PRAGMA_IVDEP if flag_preprocess_only.
7569
c2bf53a1
JJ
75702014-02-12 Jakub Jelinek <jakub@redhat.com>
7571
7572 PR c/60101
7573 * c-common.c (merge_tlist): If copy is true, call new_tlist,
7574 if false, add ADD itself, rather than vice versa.
7575 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
7576 copy. For SAVE_EXPR, only call merge_tlist once.
7577
8fcbce72
JJ
75782014-02-08 Jakub Jelinek <jakub@redhat.com>
7579
7580 PR middle-end/60092
7581 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
7582 and tree_to_uhwi.
7583 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
7584 functions.
7585 (c_common_attribute_table): Add alloc_align and assume_aligned
7586 attributes.
7587
0a756a3f
MP
75882014-02-06 Marek Polacek <polacek@redhat.com>
7589
7590 PR c/60087
7591 * c-common.c (warn_for_sign_compare): Call warning_at with location
7592 instead of warning.
7593
7ec4847a
MP
75942014-02-05 Marek Polacek <polacek@redhat.com>
7595
7596 PR c/53123
7597 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
7598 statement.
7599
66f20604
MP
76002014-02-04 Marek Polacek <polacek@redhat.com>
7601
7602 PR c/60036
7603 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
7604 SAVE_EXPR.
7605
5d77fb19
MG
76062014-02-03 Marc Glisse <marc.glisse@inria.fr>
7607
7608 PR c++/53017
7609 PR c++/59211
7610 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
7611 handle_vector_size_attribute, handle_nonnull_attribute): Call
7612 default_conversion on the attribute argument.
7613 (handle_nonnull_attribute): Increment the argument number.
7614
81e5eca8
MP
76152014-01-31 Marek Polacek <polacek@redhat.com>
7616
7617 PR c/59963
7618 * c-common.c (add_atomic_size_parameter): Pass vNULL to
7619 build_function_call_vec.
7620 (resolve_overloaded_builtin): Likewise.
7621 * c-common.h (build_function_call_vec): Adjust declaration.
7622
68fca595
MP
76232014-01-30 Marek Polacek <polacek@redhat.com>
7624
7625 PR c/59940
7626 * c-common.h (unsafe_conversion_p): Adjust declaration.
7627 (warnings_for_convert_and_check): Likewise.
7628 (convert_and_check): Likewise.
7629 * c-common.c (unsafe_conversion_p): Add location parameter. Call
7630 expansion_point_location_if_in_system_header on it.
7631 (warnings_for_convert_and_check): Add location parameter. Call
7632 expansion_point_location_if_in_system_header on it. Use it.
7633 (convert_and_check): Add location parameter. Use it.
7634 (conversion_warning): Likewise.
7635 (c_add_case_label): Adjust convert_and_check calls.
7636 (scalar_to_vector): Adjust unsafe_conversion_p calls.
7637
b72271b9
BI
76382014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
7639
7640 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
7641 flag_cilkplus.
7642 * c-pragma.c (init_pragma): Likewise.
7643 * c.opt: Likewise.
7644
393e8e8b
MP
76452014-01-23 Marek Polacek <polacek@redhat.com>
7646
7647 PR c/59846
7648 * c-common.c (shorten_compare): Add location_t parameter.
7649 * c-common.h (shorten_binary_op): Adjust declaration.
7650
f04dda30
MP
76512014-01-23 Marek Polacek <polacek@redhat.com>
7652
7653 PR c/58346
7654 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
7655 * c-common.h: Declare it.
7656
621955cb
EB
76572014-01-20 Eric Botcazou <ebotcazou@adacore.com>
7658
7659 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
7660 * c-ada-spec.c (dump_ads): Likewise.
7661 (cpp_check): Likewise.
7662 (dump_ada_specs): Likewise.
7663
76642014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
7665
7666 PR c++/49718
7667 * c-common.c (handle_no_instrument_function_attribute): Allow
7668 no_instrument_function attribute in class member
7669 definition/declaration.
7670
241f845a
JJ
76712014-01-15 Jakub Jelinek <jakub@redhat.com>
7672
7673 PR c/58943
7674 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
7675 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
7676 being COMPOUND_EXPR.
7677 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
7678 operand a SAVE_EXPR and second MODIFY_EXPR.
7679
e83b8e2e
JJ
76802014-01-09 Jakub Jelinek <jakub@redhat.com>
7681
7682 PR target/58115
7683 * c-pch.c (c_common_write_pch): Call
7684 prepare_target_option_nodes_for_pch.
7685
23a5b65a
RS
76862014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
7687
7688 Update copyright years
7689
f9030485
RS
76902014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
7691
7692 * array-notation-common.c, c-cilkplus.c: Use the standard form for
7693 the copyright notice.
7694
f2aa696b
EB
76952013-12-28 Eric Botcazou <ebotcazou@adacore.com>
7696
7697 * c-ada-spec.c (print_constructor): New function.
7698 (print_destructor): Retrieve the origin of the destructor.
7699 (print_ada_declaration): Revamp handling of constructors/destructors.
7700
3f8257db 77012013-12-23 Stuart Hastings <stuart@apple.com>
1f26ac87
JM
7702 Bill Maddox <maddox@google.com>
7703 Jason Merrill <jason@redhat.com>
7704
7705 * c.opt: Add -fdeclone-ctor-dtor.
7706 * c-opts.c (c_common_post_options): Default to on iff -Os.
7707
41958c28
BI
77082013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
7709
7710 * c-common.c (c_common_attribute_table): Added "cilk simd function"
7711 attribute.
7712 * c-pragma.h (enum pragma_cilk_clause): Remove.
ab20d992 7713 (enum pragma_omp_clause): Added the following fields:
41958c28
BI
7714 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
7715 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
7716 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
7717 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
7718 PRAGMA_CILK_CLAUSE_UNIFORM.
7719
b1726d6c 7720
12893402
BI
77212013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
7722
7723 * cilk.c (cilk_outline): Made this function non-static.
7724 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
7725 (create_cilk_wrapper): Added a new parameter: a function pointer.
7726 (c_install_body_w_frame_cleanup): Remove
7727 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
7728 * c-common.h (cilk_outline): New prototype.
7729 (gimplify_cilk_spawn): Removed two parameters.
7730 (cilk_install_body_with_frame_cleanup): New prototype.
7731 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
7732 CILK_SPAWN_STMT case.
7733
085b42ed
BS
77342013-12-11 Bernd Schmidt <bernds@codesourcery.com>
7735
2ce064c3
BS
7736 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
7737
085b42ed
BS
7738 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
7739 (int_array_type_node): Remove.
7740 * c-common.c (c_common_nodes_and_builtins): Don't build it.
7741
9e36c9ed
MP
77422013-12-05 Marek Polacek <polacek@redhat.com>
7743
7744 PR c/52023
7745 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
7746 [ADJUST_FIELD_ALIGN].
7747
296674db
JM
77482013-12-04 Joseph Myers <joseph@codesourcery.com>
7749
7750 PR c/52023
7751 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
7752 and check field alignment if set.
7753 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
7754 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
7755
b1726d6c 77562013-12-04 Jakub Jelinek <jakub@redhat.com>
31e071ae
MP
7757 Marek Polacek <polacek@redhat.com>
7758
7759 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
7760 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
7761
d7947e19
L
77622013-11-29 H.J. Lu <hongjiu.lu@intel.com>
7763
7764 PR c/59309
7765 * cilk.c (gimplify_cilk_spawn): Properly handle function without
7766 arguments.
7767
fad7652e
JJ
77682013-11-29 Jakub Jelinek <jakub@redhat.com>
7769
7770 PR c/59280
7771 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
7772 goto invalid. If it is error_mark_node, don't issue further
7773 diagnostics.
7774
8b5e1202
SO
77752013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
7776
7777 * c.opt (Wopenmp-simd): New.
7778
0a508bb6
JJ
77792013-11-22 Jakub Jelinek <jakub@redhat.com>
7780
7781 * c-ubsan.h (ubsan_instrument_return): New prototype.
7782 * c-ubsan.c (ubsan_instrument_return): New function.
7783
2fb9a547
AM
77842013-11-22 Andrew MacLeod <amacleod@redhat.com>
7785
7786 * c-common.c: Add required include files from gimple.h.
ab20d992
JJ
7787 * c-gimplify.c: Likewise.
7788 * cilk.c: Likewise.
2fb9a547 7789
8400e75e
DM
77902013-11-22 David Malcolm <dmalcolm@redhat.com>
7791
7792 * c-common.c (unsafe_conversion_p): Remove use of
7793 EXPR_LOC_OR_HERE macro.
7794 (conversion_warning): Likewise.
7795 (warnings_for_convert_and_check): Likewise.
7796 (warn_for_collisions_1): Likewise.
7797 (shorten_compare): Likewise, and remove use of in_system_header
7798 macro, using the location from the former.
7799 * c-lex.c (dump_one_header): Remove use of input_filename macro.
7800 (cb_def_pragma): Remove use of in_system_header macro.
7801 (lex_string): Likewise.
7802 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
7803
eb1ce453
KZ
78042013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
7805 Mike Stump <mikestump@comcast.net>
7806 Richard Sandiford <rdsandiford@googlemail.com>
7807
7808 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
7809 instead of TREE_INT_CST_LOW, in cases where there is a protecting
7810 tree_fits_shwi_p or tree_fits_uhwi_p.
7811 (dump_generic_ada_node): Likewise.
7812 * c-format.c (check_format_arg): Likewise.
7813 * c-pretty-print.c (pp_c_integer_constant): Likewise.
7814
6b3b8c27
KZ
78152013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
7816
7817 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
7818
49b0aa18
JC
78192013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
7820
7821 PR c/53001
7822 * c-common.c (unsafe_conversion_p): Make this function
7823 return an enumeration with more detail.
7824 (conversion_warning): Use the new return type of
7825 unsafe_conversion_p to separately warn either about conversions
7826 that lower floating point number precision or about the other
7827 kinds of conversions.
7828 * c-common.h (enum conversion_safety): New enumeration.
8e745a17
JJ
7829 (unsafe_conversion_p): switching return type to
7830 conversion_safety enumeration.
49b0aa18
JC
7831 * c.opt: Adding new warning -Wfloat-conversion and
7832 enabling it with -Wconversion.
7833
b826515a
BS
78342013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
7835
8e745a17
JJ
7836 * c-opts.c: Include plugin.h.
7837 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
b826515a 7838
b9a55b13
MP
78392013-11-19 Marek Polacek <polacek@redhat.com>
7840
7841 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
7842 call.
7843 (ubsan_instrument_shift): Likewise.
7844 (ubsan_instrument_vla): Likewise.
7845
7d362f6c
RS
78462013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
7847
7848 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
7849 cast to unsigned type.
7850
386b1f1f
RS
78512013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
7852
7853 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
7854 tree_low_cst.
7855 (complete_array_type): Update comment to refer to tree_to_[su]hwi
7856 rather than tree_low_cst.
7857
ae7e9ddd
RS
78582013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
7859
7860 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
7861 tree_to_uhwi throughout.
7862
9439e9a1
RS
78632013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
7864
7865 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
7866 tree_low_cst (..., 0) with tree_to_shwi throughout.
7867
cc269bb6
RS
78682013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
7869
7870 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
7871 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
7872
9541ffee
RS
78732013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
7874
7875 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
7876 host_integerp (..., 0) with tree_fits_shwi_p throughout.
7877
c02065fc
AH
78782013-11-15 Aldy Hernandez <aldyh@redhat.com>
7879
7880 * c-cilkplus.c: New file.
7881 * c-common.c (readonly_error): Add location argument.
7882 * c-common.h (readonly_error): Same.
7883 (c_finish_cilk_clauses): Protoize.
7884 (c_check_cilk_loop): Same.
7885 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
7886 Do not fail on error_mark_node.
7887 Abstract increment canonicalization to here...
7888 (c_omp_for_incr_canonicalize_ptr): New.
7889 c-pragma.c (init_pragma): Register "simd" pragma.
7890 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
7891 (enum pragma_cilk_clause): New.
7892
9cc65f15
RS
78932013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
7894
7895 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
7896 wchar_type and host_integerp checks.
7897
18f429e2
AM
78982013-11-14 Andrew MacLeod <amacleod@redhat.com>
7899
7900 * c-common.c: Likewise.
7901 * c-gimplify.c: Likewise.
7902 * cilk.c: Likewise.
7903
d8a2d370
DN
79042013-11-14 Diego Novillo <dnovillo@google.com>
7905
7906 * c-common.c: Include fold-const.h.
7907 Include stor-layout.h.
7908 Include calls.h.
7909 Include stringpool.h.
7910 Include attribs.h.
7911 Include varasm.h.
7912 Include trans-mem.h.
7913 * c-cppbuiltin.c: Include stor-layout.h.
7914 Include stringpool.h.
7915 * c-format.c: Include stringpool.h.
7916 * c-lex.c: Include stringpool.h.
7917 Include stor-layout.h.
7918 * c-pragma.c: Include stringpool.h.
7919 Include attribs.h.
7920 Include varasm.h.
7921 Include gcc-symtab.h.
7922 * c-pretty-print.c: Include stor-layout.h.
7923 Include attribs.h.
7924 * cilk.c: Include stringpool.h.
7925 Include calls.h.
7926
38b7bc7f
JM
79272013-11-13 Joseph Myers <joseph@codesourcery.com>
7928
7929 * c-common.h (enum rid): Add RID_AUTO_TYPE.
7930 * c-common.c (c_common_reswords): Add __auto_type.
7931 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
7932
45b0be94
AM
79332013-11-12 Andrew MacLeod <amacleod@redhat.com>
7934
18f429e2
AM
7935 * c-common.c: Include gimplify.h.
7936 * c-gimplify.c: Likewise.
7937 * cilk.c: Likewise.
7938 * c-omp.c: Include gimple-expr.h instead of gimple.h.
7939 * c-ubsan.c: Don't include gimple.h.
45b0be94 7940
582d9b50
JM
79412013-11-12 Joseph Myers <joseph@codesourcery.com>
7942
7943 * c-common.c (c_common_reswords): Add _Thread_local.
7944
6b28e197
JM
79452013-11-09 Joseph Myers <joseph@codesourcery.com>
7946
7947 * c-common.c (atomic_size_supported_p): New function.
7948 (resolve_overloaded_atomic_exchange)
7949 (resolve_overloaded_atomic_compare_exchange)
7950 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
7951 Use it instead of comparing size with a local list of sizes.
7952
267bac10
JM
79532013-11-07 Andrew MacLeod <amacleod@redhat.com>
7954 Joseph Myers <joseph@codesourcery.com>
7955
7956 * c-common.h (enum rid): Add RID_ATOMIC.
7957 * c-common.c (c_common_reswords): Add _Atomic.
7958 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
7959 (keyword_is_type_qualifier): Accept RID_ATOMIC.
7960 * c-format.c (check_format_types): Check for extra _Atomic
7961 qualifiers in format argument.
7962 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
7963 (pp_c_type_qualifier_list): Mention _Atomic in comment.
7964
5157b91e
TB
79652013-11-06 Tobias Burnus <burnus@net-b.de>
7966
7967 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
7968
6dbe0958
JM
79692013-11-06 Joseph Myers <joseph@codesourcery.com>
7970
7971 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
7972 standards modes.
7973 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
7974 to mean lack of IEEE 754 support.
7975
e8ff5196
TB
79762013-11-05 Tobias Burnus <burnus@net-b.de>
7977
7978 * c.opt (-Wdate-time): New option
7979 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
7980
254a0760
JM
79812013-11-05 Joseph Myers <joseph@codesourcery.com>
7982
7983 * c-cppbuiltin.c (cpp_iec_559_value): Test
7984 flag_excess_precision_cmdline not flag_excess_precision.
7985
6d7f7e0a
TB
79862013-11-05 Tobias Burnus <burnus@net-b.de>
7987
7988 * c.opt (fopenmp-simd): New option.
7989 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
7990 (omp_pragmas): ... this new struct.
7991 (c_pp_lookup_pragma): Also walk omp_pragmas.
7992 (init_pragma): Init pragmas for -fopenmp-simd.
7993
55a7f02f
MP
79942013-11-04 Marek Polacek <polacek@redhat.com>
7995
7996 PR c++/58979
7997 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
7998
9193fb05
JM
79992013-11-04 Joseph Myers <joseph@codesourcery.com>
8000
8001 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
8002 New functions.
8003 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
8004
94159ecf
EB
80052013-11-04 Eric Botcazou <ebotcazou@adacore.com>
8006
8007 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
8008 (dump_ada_specs): Adjust prototype of second callback.
8009 * c-ada-spec.c (cpp_check): New global variable.
8010 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
8011 (print_generic_ada_decl): Likewise.
8012 (has_static_fields): Change return type to bool and add guard.
8013 (has_nontrivial_methods): New predicate.
8014 (is_tagged_type): Change return type to bool.
8015 (separate_class_package): Call has_nontrivial_methods.
8016 (pp_ada_tree_identifier): Minor tweaks.
8017 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
8018 (dump_ada_array_domains): Likewise.
8019 (dump_ada_array_type): Likewise.
8020 (dump_template_types): Remove cpp_check parameter and do not pass it to
8021 dump_generic_ada_node.
8022 (dump_ada_template): Likewise.
8023 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
8024 recursively.
8025 (print_ada_methods): Change return type to integer. Remove cpp_check
8026 parameter and do not pass it down.
8027 (dump_nested_types): Remove cpp_check parameter and do not pass it to
8028 dump_generic_ada_node.
8029 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
8030 accessing methods.
8031 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
8032 down. Use has_nontrivial_methods to recognize C++ classes. Use return
8033 value of print_ada_methods.
8034 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
8035 Set cpp_check to it before invoking dump_ada_nodes.
8036 (dump_ada_specs): Likewise.
8037
b906f4ca
MP
80382013-11-03 Marek Polacek <polacek@redhat.com>
8039
8040 * c-ubsan.c: Don't include hash-table.h.
8041 (ubsan_instrument_vla): New function.
8042 * c-ubsan.h: Declare it.
8043
5e20cdc9
DM
80442013-10-31 David Malcolm <dmalcolm@redhat.com>
8045
8046 Automated part of renaming of symtab_node_base to symtab_node.
8047
8048 Patch autogenerated by rename_symtab.py from
8049 https://github.com/davidmalcolm/gcc-refactoring-scripts
8050 revision 58bb219cc090b2f4516a9297d868c245495ee622
8051
8052 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
8053 symtab_node_base to symtab_node.
8054
7057e645
ESR
80552013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
8056
8e745a17 8057 Implement C++14 digit separators.
7057e645
ESR
8058 * c-lex.c (interpret_float): Remove digit separators from scratch string
8059 before building real literal.
8060
193ea7bc
JJ
80612013-10-30 Jakub Jelinek <jakub@redhat.com>
8062
8063 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
8064
939b37da
BI
80652013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
8066
8067 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
8068 fields.
8069 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
8070 enabled.
8071 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
8072 (insert_cilk_frame): New prototype.
8073 (cilk_init_builtins): Likewise.
8074 (gimplify_cilk_spawn): Likewise.
8075 (c_cilk_install_body_w_frame_cleanup): Likewise.
8076 (cilk_detect_spawn_and_unwrap): Likewise.
8077 (cilk_set_spawn_marker): Likewise.
8078 (build_cilk_sync): Likewise.
8079 (build_cilk_spawn): Likewise.
8080 * cilk.c: New file.
8081
67348ccc
DM
80822013-10-29 David Malcolm <dmalcolm@redhat.com>
8083
8084 Patch autogenerated by refactor_symtab.py from
8085 https://github.com/davidmalcolm/gcc-refactoring-scripts
8086 revision 58bb219cc090b2f4516a9297d868c245495ee622
8087
8088 * c-gimplify.c (c_genericize): Update for conversion of symtab types
8089 to a true class hierarchy.
8090 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
8091
d570872d
RS
80922013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
8093
8094 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
8095
98906124
JL
80962013-10-26 Jeff Law <law@redhat.com>
8097
adfac8df
JJ
8098 * c-common.c (c_define_builtins): Remove mudflap support.
8099 * c.opt: Ignore and warn for mudflap options.
98906124 8100
d73749df 81012013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
8102
8103 PR other/33426
8104 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
8105 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
8106
3f04b1bb
JM
81072013-10-23 Jason Merrill <jason@redhat.com>
8108
8109 * c-format.c (gcc_cxxdiag_char_table): Add %X.
8110
acf0174b
JJ
81112013-10-11 Jakub Jelinek <jakub@redhat.com>
8112
acd15a28
JJ
8113 * c-common.h (omp_clause_mask::operator !=): New method.
8114 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
8115 instead of if (mask & something) tests everywhere.
8116
acf0174b
JJ
8117 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
8118 201307 instead of 201107.
8119 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
8120 (c_common_attribute_table): Add "omp declare target" and
8121 "omp declare simd" attributes.
8122 (handle_omp_declare_target_attribute,
8123 handle_omp_declare_simd_attribute): New functions.
8124 * c-omp.c: Include c-pragma.h.
8125 (c_finish_omp_taskgroup): New function.
8126 (c_finish_omp_atomic): Add swapped argument, if true,
8127 build the operation first with rhs, lhs arguments and use NOP_EXPR
8128 build_modify_expr.
8129 (c_finish_omp_for): Add code argument, pass it down to make_code.
8130 (c_omp_split_clauses): New function.
8131 (c_split_parallel_clauses): Removed.
8132 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
8133 c_omp_declare_simd_clauses_to_decls): New functions.
8134 * c-common.h (omp_clause_mask): New type.
8135 (OMP_CLAUSE_MASK_1): Define.
8136 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
8137 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
8138 omp_clause_mask::operator |, omp_clause_mask::operator &,
8139 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
8140 omp_clause_mask::operator ==): New methods.
8141 (enum c_omp_clause_split): New.
8142 (c_finish_omp_taskgroup): New prototype.
8143 (c_finish_omp_atomic): Add swapped argument.
8144 (c_finish_omp_for): Add code argument.
8145 (c_omp_split_clauses): New prototype.
8146 (c_split_parallel_clauses): Removed.
8147 (c_omp_declare_simd_clauses_to_numbers,
8148 c_omp_declare_simd_clauses_to_decls): New prototypes.
8149 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
8150 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
8151 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
8152 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
8153 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
8154 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
8155 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
8156 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
8157 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
8158 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
8159 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
8160 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
8161 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
8162 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
8163 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
8164 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
8165 PRAGMA_OMP_CLAUSE_UNIFORM.
8166
826cacfe
MG
81672013-10-09 Marc Glisse <marc.glisse@inria.fr>
8168
8169 PR tree-optimization/20318
8170 * c-common.c (handle_returns_nonnull_attribute): New function.
8171 (c_common_attribute_table): Add returns_nonnull.
8172
2284b034
MG
81732013-10-03 Marc Glisse <marc.glisse@inria.fr>
8174
8175 PR c++/19476
8176 * c.opt (fcheck-new): Move to common.opt.
8177
b56e9788
MP
81782013-09-25 Marek Polacek <polacek@redhat.com>
8179 Jakub Jelinek <jakub@redhat.com>
8180
8181 PR sanitizer/58413
8182 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
8183 an expression if we can prove it is correct.
8184 (ubsan_instrument_division): Likewise. Remove unnecessary
8185 check.
8186
ce6923c5
MP
81872013-09-18 Marek Polacek <polacek@redhat.com>
8188
8189 PR sanitizer/58411
8190 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
8191 Declare it.
8192 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
8193
fb5610fb
IS
81942013-09-14 Iain Sandoe <iain@codesourcery.com>
8195
8196 PR target/48094
8197 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
8198 fobjc-gc, freplace-objc-classes): Accept for LTO.
8199
88b0e79e
JC
82002013-09-13 Jacek Caban <jacek@codeweavers.com>
8201
8202 * c-target.def: New hook
8203
c9b0866a
PC
82042013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
8205
8206 PR c++/43452
8207 * c.opt (Wdelete-incomplete): Add.
8208
0af94e6f
JR
82092013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
8210
8211 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
8212 (vector_types_compatible_elements_p): New function.
8213 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
8214 declaration.
8215 (vector_types_compatible_elements_p): Declare.
8216
7c26172c
GDR
82172013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
8218
8219 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
8220 a virtual member function.
8221 (pp_simple_type_specifier): Remove.
8222 (pp_c_type_specifier): Likewise.
8223 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
8224 Rename from pp_c_type_specifier. Adjust.
8225 (c_pretty_printer::c_pretty_printer): Do not assign to
8226 simple_type_specifier.
8227
20059c8b
GDR
82282013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
8229
8230 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
8231 member function.
8232 (c_pretty_printer::storage_class_specifier): Likewise.
8233 (c_pretty_printer::initializer): Likewise.
8234 (pp_declaration): Remove.
8235 (pp_declaration_specifiers): Likewise.
8236 (pp_abstract_declarator): Likewise.
8237 (pp_declarator): Likewise.
8238 (pp_type_id): Likewise.
8239 (pp_statement): Likewise.
8240 (pp_constant): Likewise.
8241 (pp_id_expression): Likewise.
8242 (pp_primary_expression): Likewise.
8243 (pp_unary_expression): Likewise.
8244 (pp_multiplicative_expression): Likewise.
8245 (pp_conditional_expression): Likewise.
8246 (pp_assignment_expression): Likewise.
8247 (pp_expression): Likewise.
8248 (pp_c_type_id): Likewise.
8249 (pp_c_storage_class_specifier): Likewise.
8250 * c-pretty-print.c (pp_c_type_cast): Tidy.
8251 (pp_c_pointer): Likewise.
8252 (pp_c_type_specifier): Likewise.
8253 (pp_c_parameter_type_list): Likewise.
8254 (pp_c_function_definition): Likewise.
8255 (pp_c_init_declarator): Likewise.
8256 (pp_c_initializer_list): Likewise.
8257 (pp_c_constructor_elts): Likewise.
8258 (c_pretty_printer::direct_abstract_declarator): Likewise.
8259 (c_pretty_printer::declaration_specifiers): Likewise.
8260 (c_pretty_printer::primary_expression): Likewise.
8261 (c_pretty_printer::postfix_expression): Likewise.
8262 (c_pretty_printer::type_id): Rename from pp_c_type_id.
8263 (c_pretty_printer::storage_class_specifier): Rename from
8264 pp_c_storage_class_specifier.
8265 (c_pretty_printer::initializer): Rename from pp_c_initializer.
8266 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
8267 storage_class_specifier, initializer, offset_list, flags.
8268
de5a5fa1
MP
82692013-08-30 Marek Polacek <polacek@redhat.com>
8270
8271 * c-ubsan.c: New file.
8272 * c-ubsan.h: New file.
8273
8f0e4d72
GDR
82742013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
8275
8276 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
8277 member function.
8278 (c_pretty_printer::declaration_specifiers): Likewise.
8279 (c_pretty_printer::declarator): Likewise.
8280 (c_pretty_printer::abstract_declarator): Likewise.
8281 (c_pretty_printer::direct_abstract_declarator): Likewise.
8282 (c_pretty_printer::direct_declarator): Likewise.
8283 (c_pretty_printer::function_specifier): Likewise.
8284 (pp_declaration): Adjust.
8285 (pp_declaration_specifiers): Likewise.
8286 (pp_abstract_declarator): Likewise.
8287 (pp_direct_declarator): Likewise.
8288 (pp_function_specifier): Likewise.
8289 (pp_direct_abstract_declarator): Remove as unused.
8290 (pp_c_declaration): Remove.
8291 (pp_c_declaration_specifiers): Likewise.
8292 (pp_c_declarator): Likewise.
8293 (pp_c_direct_declarator): Likewise.
8294 (pp_c_function_specifier): Likewise.
8295 (pp_c_direct_abstract_declarator): Likewise.
8296 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
8297 from pp_c_abstract_declarator. Adjust.
ab20d992 8298 (c_pretty_printer::direct_abstract_declarator): Rename from
8f0e4d72
GDR
8299 pp_c_direct_abstract_declarator. Adjust.
8300 (c_pretty_printer::function_specifier): Rename from
8301 pp_c_function_specifier. Adjust.
8302 (c_pretty_printer::declaration_specifiers): Rename from
8303 pp_c_declaration_specifiers. Adjust.
8304 (c_pretty_printer::direct_declarator): Rename from
8305 pp_c_direct_declarator. Adjust.
8306 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
8307 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
8308 (c_pretty_printer::c_pretty_printer): Do not assign to
8309 declaration, declaration_specifiers, declarator,
8310 direct_declarator, direct_abstract_declarator, function_specifier.
8311
00d34d3a
GDR
83122013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
8313
8314 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
8315 virtual member function.
8316 (c_pretty_printer::multiplicative_expression): Likewise.
8317 (c_pretty_printer::conditional_expression): Likewise.
8318 (c_pretty_printer::assignment_expression): Likewise.
8319 (c_pretty_printer::expression): Likewise.
8320 (pp_unary_expression): Adjust.
8321 (pp_multiplicative_expression): Likewise.
8322 (pp_assignment_expression): Likewise.
8323 (pp_conditional_expression): Likewise.
8324 (pp_expression): Likewise.
8325 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
8326 from pp_c_unary_expression. Adjust.
8327 (c_pretty_printer::multiplicative_expression): Rename from
8328 pp_c_multiplicative_expression. Adjust.
8329 (c_pretty_printer::conditional_expression): Rename from
8330 pp_c_conditional_expression. Adjust.
8331 (c_pretty_printer::assignment_expression): Rename from
8332 pp_c_assignment_expression. Adjust.
8333 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
8334 (c_pretty_printer::c_pretty_printer): Do not assign to
8335 unary_expression, multiplicative_expression,
8336 conditional_expression, expression.
8337
fb22178f
GDR
83382013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
8339
8340 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
8341 virtual member function.
8342 (pp_postfix_expression): Adjust.
8343 (pp_c_postfix_expression): Remove.
8344 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
8345 from pp_c_postfix_expression. Adjust.
8346 (c_pretty_printer::c_pretty_printer): Do not assign to
8347 postfix_expression.
8348
7ecc2600
GDR
83492013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
8350
8351 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
8352 virtua member function.
8353 (pp_primary_expression): Adjust.
8354 (pp_c_primary_expression): Remove.
8355 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
8356 from pp_c_primary_expression. Adjust.
8357 (pp_c_initializer_list): Use pp_primary_expression.
8358 (c_pretty_printer::c_pretty_printer): Do not assign to
8359 primary_expression.
8360
0691175f
GDR
83612013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
8362
8363 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
8364 * c-pretty-print.c (M_): Remove.
8365 (c_pretty_printer::translate_string): Define.
8366 (pp_c_type_specifier): Use it.
8367 (pp_c_primary_expression): Likewise.
8368 (pp_c_expression): Likewise.
8369
66dfe4c4
GDR
83702013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
8371
8372 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
8373 virtual function.
8374 (pp_c_id_expression): Remove.
8375 (pp_id_expression): Adjust.
8376 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
8377 pp_c_id_expression. Adjust.
8378 (pp_c_postfix_expression): Use pp_id_expression.
8379 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
8380
ca43e9d5
GDR
83812013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
8382
8383 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
8384 member function.
8385 (pp_constant): Adjust.
8386 (pp_c_constant): Remove.
8387 * c-pretty-print.c (c_pretty_printer::constant): Rename from
8388 pp_c_constant. Adjust.
8389 (pp_c_constant)
8390 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
8391 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
8392
da6ca2b5
GDR
83932013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
8394
8395 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
8396 (c_pretty_printer::c_pretty_printer): Declare.
8397 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
8398 c_pretty_printer_init. Adjust.
8399 (print_c_tree): Do not call c_pretty_printer_init.
8400 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
8401
65a372f4
AC
84022013-08-09 Arnaud Charlet <charlet@adacore.com>
8403
8404 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
8405
fd9b0f32
PC
84062013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
8407
8408 PR c++/58080
8409 * c-common.c (pointer_int_sum): Add bool parameter.
8410 * c-common.h (pointer_int_sum): Adjust declaration.
8411
e0aec1e9
GDR
84122013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
8413
8414 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
8415 c_pretty_printer variable.
8416
b066401f
GDR
84172013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
8418
8419 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
8420 (pp_base): Remove.
8421 (pp_c_base): Likewise. Adjust users.
8422 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
8423 (pp_c_whitespace): Do not call pp_base.
8424 (pp_c_left_paren): Likewise.
8425 (pp_c_right_paren): Likewise.
8426 (pp_c_left_brace): Likewise.
8427 (pp_c_right_brace): Likewise.
8428 (pp_c_left_bracket): Likewise.
8429 (pp_c_right_bracket): Likewise.
8430 (pp_c_dot): Likewise.
8431 (pp_c_ampersand): Likewise.
8432 (pp_c_star): Likewise.
8433 (pp_c_arrow): Likewise.
8434 (pp_c_semicolon): Likewise.
8435 (pp_c_complement): Likewise.
8436 (pp_c_exclamation): Likewise.
8437 (pp_c_direct_declarator): Likewise.
8438 (pp_c_ws_string): Likewise.
8439 (pp_c_identifier): Likewise.
8440 (pp_c_statement): Likewise.
8441 (print_c_tree): Likewise.
8442
65e5a578
ESR
84432013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
8444
8445 PR c++/58072
8446 * c-common.c (c_parse_error): Catch user-defined literal tokens and
8447 provide useful error strings.
8448
137a1a27
GDR
84492013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
8450
8451 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
8452 printer functions instead of pp_string or operators and punctuators.
8453 (dump_generic_ada_node): Likewise.
8454 * c-pretty-print.c (pp_c_type_specifier): Likewise.
8455 (pp_c_relational_expression): Likewise.
8456 (pp_c_logical_or_expression): Likewise.
8457
07838b13
GDR
84582013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
8459
8460 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
8461 functions instead of pp_character.
8462 (pp_ada_tree_identifier): Likewise.
8463 (dump_ada_double_name): Likewise.
8464 (dump_ada_function_declaration): Likewise.
8465 (dump_ada_array_domains): Likewise.
8466 (dump_template_types): Likewise.
8467 (dump_generic_ada_node): Likewise.
8468 (print_ada_declaration): Likewise.
8469 (print_ada_struct_decl): Likewise.
8470 * c-pretty-print.c (pp_c_integer_constant): Likewise.
8471
433cc7b0
TT
84722013-07-23 Tom Tromey <tromey@redhat.com>
8473
8474 * c-common.h (enum rid) <RID_GENERIC>: New constant.
8475 * c-common.c (c_common_reswords): Add _Generic.
8476
688010ba
OB
84772013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
8478
8479 * c-common.c: Fix typos.
8480 * c-common.h: Likewise.
8481
2a99e5e6
LL
84822013-07-13 Lubos Lunak <l.lunak@suse.cz>
8483
8484 PR c++/55203
8485 * c-common.c (c_common_attribute_table): Add warn_unused.
8486 (handle_warn_unused_attribute): New.
8487
c26302d5
JJ
84882013-07-10 Jakub Jelinek <jakub@redhat.com>
8489
8490 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
8491 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
8492
dfeadaa0
PC
84932013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
8494
8495 PR c++/57869
8496 * c.opt: Add Wconditionally-supported.
8497
6a2fa4b2
GS
84982013-07-08 Graham Stott <graham.stott@btinternet.com>
8499
adfac8df 8500 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
8501 unused variables l_length and l_node.
8502
ecdbd01a 85032013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
8504
8505 PR c/57821
8506 * c-common.c (complete_array_type): Delay folding first index
8507 like other indices. When folding, check for index overflow.
8508
bedc293e
MG
85092013-06-27 Marc Glisse <marc.glisse@inria.fr>
8510
8511 PR c++/57509
8512 * c-common.h (c_build_vec_perm_expr): New complain argument.
8513 * c-common.c (c_build_vec_perm_expr): Likewise.
8514 Use save_expr also in C++.
8515
604b2bfc
GDR
85162013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
8517
8518 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
8519 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
8520 * c-opts.c (c_common_post_options): Likewise.
8521
dfeadaa0 85222013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
8523
8524 * array-notation-common.c (length_mismatch_in_expr): Changed the
8525 parameter type's from a dynamic array to a vec_tree. Also removed
8526 the size parameters.
8527 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
8528 the change above.
8529
2ce86d2e
BI
85302013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
8531
8532 * c-common.h (struct cilkplus_an_parts): New structure.
8533 (struct cilkplus_an_loop_parts): Likewise.
8534 (cilkplus_extract_an_triplets): New prototype.
8535 (fix_sec_implicit_args): Likewise.
8536 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
8537 (fix_sec_implicit_args): Likewise.
604b2bfc 8538
07a6825b
BI
85392013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
8540
8541 * array-notation-common.c (find_inv_trees): Removed an unwanted
8542 typecasting.
8543 * c-common.h (struct inv_list::additional_tcodes): Changed type from
8544 enum rid to enum tree_code.
8545
08346abd
JH
85462013-06-11 Jan Hubicka <jh@suse.cz>
8547
8548 * c-common.c (handle_alias_ifunc_attribute): Do not set
8549 DECL_EXTERNAL for weakref variables.
8550 * c-pragma.c (handle_pragma_weak): Make sure aliases
8551 are not declared as external.
8552
d60f1706
BI
85532013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
8554
8555 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
8556 function from c/c-array-notation.c.
8557 (is_cilkplus_reduce_builtin): Likewise.
8558 (find_rank): Likewise.
8559 (extract_array_notation_exprs): Likewise.
8560 (replace_array_notations): Likewise.
8561 (find_inv_trees): Likewise.
8562 (replace_inv_trees): Likewise.
8563 (contains_array_notation_expr): Likewise.
8564 (find_correct_array_notation_type): Likewise.
8565 * c-common.h (struct inv_list): Moved this struct from the file
8566 c/c-array-notation.c and added a new field called additional tcodes.
8567 (length_mismatch_in_expr_p): New prototype.
8568 (is_cilkplus_reduce_builtin): Likewise.
8569 (find_rank): Likewise.
8570 (extract_array_notation_exprs): Likewise.
8571 (replace_array_notation): Likewise.
8572 (find_inv_trees): Likewise.
8573 (replace_inv_trees): Likewise.
8574 (find_correct_array_notation_type): Likewise.
dfeadaa0 8575
36536d79
BI
85762013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
8577
8578 * c-common.c (c_define_builtins): When cilkplus is enabled, the
8579 function array_notation_init_builtins is called.
8580 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
8581 * c-common.def (ARRAY_NOTATION_REF): New tree.
8582 * c-common.h (build_array_notation_expr): New function declaration.
8583 (build_array_notation_ref): Likewise.
8584 (extract_sec_implicit_index_arg): New extern declaration.
8585 (is_sec_implicit_index_fn): Likewise.
8586 (ARRAY_NOTATION_CHECK): New define.
8587 (ARRAY_NOTATION_ARRAY): Likewise.
8588 (ARRAY_NOTATION_START): Likewise.
8589 (ARRAY_NOTATION_LENGTH): Likewise.
8590 (ARRAY_NOTATION_STRIDE): Likewise.
8591 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
8592 ARRAY_NOTATION_REF.
8593 (pp_c_expression): Likewise.
8594 * c.opt (flag_enable_cilkplus): New flag.
8595 * array-notation-common.c: New file.
8596
f7716d57
JJ
85972013-05-14 Jakub Jelinek <jakub@redhat.com>
8598
8599 PR c++/57274
8600 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
8601
a5e0cd1d
MG
86022013-05-10 Marc Glisse <marc.glisse@inria.fr>
8603
8604 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
8605 vectors.
8606
f6bc1c4a
HS
86072013-05-07 Han Shen <shenhan@google.com>
8608
8609 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
8610
3f12f6e9
SKS
86112013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8612
8613 * c-common.c (check_user_alignment): Emit error for negative values.
8614
61949153
PC
86152013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
8616
8617 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
8618
e93e18e9
PC
86192013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
8620
8621 * c-cppbuiltin.c (c_cpp_builtins): Do not define
8622 __GXX_EXPERIMENTAL_CXX1Y__.
8623
44d90fe1 86242013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
8e745a17 8625 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
44d90fe1
PC
8626
8627 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
8628 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
8629 to simply use OPT_Wpointer_arith.
8630 (c_sizeof_or_alignof_type): Likewise.
8631
13f39b2e
PC
86322013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
8633
8634 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
8635
4b84d650
JJ
86362013-04-12 Jakub Jelinek <jakub@redhat.com>
8637
8638 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
8639 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
8640 specifiers.
8641
fb037b5d
SB
86422013-04-07 Steven Bosscher <steven@gcc.gnu.org>
8643
8644 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
8645
4e856798
PC
86462013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
8647
8648 * c-common.c (pointer_int_sum): Remove dead code.
8649
4b1baac8
RS
86502013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
8651
8652 PR middle-end/56524
8653 * c-common.c (handle_optimize_attribute): Don't call
8654 save_optabs_if_changed.
8655
0b50e654
JJ
86562013-03-05 Jakub Jelinek <jakub@redhat.com>
8657
8658 PR middle-end/56461
8659 * c-pch.c (pch_init): Free target_validity at the end.
8660
48c41403
JJ
86612013-03-04 Jakub Jelinek <jakub@redhat.com>
8662
8663 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
8664
e664c61c
KS
86652013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
8666 Jakub Jelinek <jakub@redhat.com>
8667
8668 PR sanitizer/56454
8669 * c-common.c (handle_no_sanitize_address_attribute): New function.
8670 (c_common_attribute_table): Add no_sanitize_address attribute.
8671 (handle_no_address_safety_analysis_attribute): Add
8672 no_sanitize_address attribute, not no_address_safety_analysis
8673 attribute.
8674
a475fd3d 86752013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
8676
8677 PR target/52555
8678 * c-common.c (handle_optimize_attribute): Call
8679 save_optabs_if_changed.
8680
f6007d99
JJ
86812013-02-18 Jakub Jelinek <jakub@redhat.com>
8682 Steven Bosscher <steven@gcc.gnu.org>
8683
8684 PR pch/54117
8685 * c-opts.c (c_common_post_options): If debug info is enabled
8686 and non-dwarf*, refuse to load PCH files and when writing PCH
8687 file warn.
8688
cf35e2b1
JJ
86892013-02-05 Jakub Jelinek <jakub@redhat.com>
8690
8691 PR middle-end/56167
8692 * c-common.c (handle_error_attribute): Fix condition.
8693
32887460
JJ
86942013-01-30 Jakub Jelinek <jakub@redhat.com>
8695
8696 PR c++/55742
8697 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
8698
5af057d8
JM
86992013-01-18 Jason Merrill <jason@redhat.com>
8700
8701 PR target/54908
8702 * c.opt (-fextern-tls-init): New.
8703 * c-opts.c (c_common_post_options): Handle it.
8704
cc83c823
JJ
87052013-01-09 Jakub Jelinek <jakub@redhat.com>
8706
8707 PR c/48418
8708 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
8709 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
8710 and is either negative or bigger or equal to type precision
8711 of the first operand.
8712
a859517f
MP
87132012-12-03 Marek Polacek <polacek@redhat.com>
8714
8715 PR c/55570
8716 * c-common.c (check_user_alignment): Swap order of tests,
8717 check TREE_CODE first.
8718
2d7aa578
ESR
87192012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
8720
8721 PR c++/52654
8722 * c-common.h (overflow_type): New enum.
8723 (build_userdef_literal): Add overflow_type argument.
8724 (tree_userdef_literal): Add overflow_type.
8725 (USERDEF_LITERAL_OVERFLOW): New access macro.
8726 * c-common.c (build_userdef_literal): Add overflow_type
8727 argument.
8728 * c-lex.c (c_lex_with_flags): Add overflow_type to
8729 build_userdef_literal calls.
8730 (interpret_integer, interpret_float): Add overflow_type argument.
8731
cc3c4f62
RB
87322012-11-28 Richard Biener <rguenther@suse.de>
8733
8734 PR c/35634
8735 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
8736 here and use a type with proper overflow behavior for types that would
8737 need to be promoted for the arithmetic.
8738
77bc5132
JJ
87392012-11-23 Jakub Jelinek <jakub@redhat.com>
8740
8741 PR sanitizer/55435
8742 * c-common.c (handle_no_address_safety_analysis_attribute): New
8743 function.
8744 (c_common_attribute_table): Add no_address_safety_analysis.
8745
5dc99c46
SB
87462012-11-16 Simon Baldwin <simonb@google.com>
8747
8748 * c.opt: Add f[no-]canonical-system-headers.
8749 * c-opts.c (c_common_handle_option): Handle
8750 OPT_fcanonical_system_headers.
8751
a4a0016d
ESR
87522012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
8753
8754 PR c++/54413
8755 * c-opts.c (c_common_handle_option): Set new flags.
8756 * c.opt: Describe new flags.
8757
7dbb85a7
JM
87582012-11-09 Jason Merrill <jason@redhat.com>
8759
8760 * c.opt (Wabi-tag): New.
8761
ad7bac31
AK
87622012-11-09 Andi Kleen <ak@linux.intel.com>
8763
8764 PR 55139
8765 * c-common.c (get_atomic_generic_size): Mask with
8e745a17 8766 MEMMODEL_MASK
ad7bac31 8767
7332899a
MLI
87682012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
8769
8770 PR c/53063
8771 * c.opt (Wformat): Make it Alias Wformat=1.
8772 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
8773 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
8774 LangEnabledBy.
8775 (Wformat=): RejectNegative. Use LangEnabledBy.
8776 (Wnonnull): Use LangEnabledBy.
8777 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
8778 * c-format.c (set_Wformat): Delete.
8779 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
ab20d992
JJ
8780 (maybe_read_dollar_number): Likewise.
8781 (avoid_dollar_number): Likewise.
8782 (finish_dollar_format_checking): Likewise.
8783 (check_format_info): Likewise.
8784 (check_format_info_main): Likewise.
8785 (check_format_types): Likewise.
8786 (format_type_warning): Likewise.
8787 * c-common.c (int): Likewise.
8788 (check_function_sentinel): Likewise.
8e745a17 8789 * c-common.h (warn_format,set_Wformat): Do not declare here.
7332899a 8790
34a180a6
MLI
87912012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
8792
8793 PR c/53063
8794 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
8795 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
8796 Use LangEnabledBy.
8797 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
8798 common.opt.
8799 (Wvariadic-macros): Init(1).
8800 * c-opts.c (c_common_handle_option): Do not handle them
8801 explicitly.
8802 (c_common_post_options): Likewise.
8803 (sanitize_cpp_opts): warn_unused_macros is now
8804 cpp_warn_unused_macros.
8805 (push_command_line_include): Likewise.
8806 * c-common.c (warn_unknown_pragmas): Do not define.
8807 * c-common.h (warn_unknown_pragmas): Do not declare.
8808
3f46d6a5
MLI
88092012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
8810
8811 PR c/51294
8812 * c-common.c (conversion_warning): Handle conditional expressions.
8813
880661a4
JW
88142012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
8815
8816 PR c++/54930
8817 * c.opt (Wreturn_local_addr): Define new option.
8818
4514a96b
JM
88192012-10-25 Jason Merrill <jason@redhat.com>
8820
f14edc1a
JM
8821 * c.opt (Wvirtual-move-assign): New.
8822
4514a96b
JM
8823 * c.opt (Winherited-variadic-ctor): New.
8824
93100c6b
MG
88252012-10-25 Marc Glisse <marc.glisse@inria.fr>
8826
8827 PR c++/54427
8828 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
8829
1efcb8c6
JM
88302012-10-23 Joseph Myers <joseph@codesourcery.com>
8831
8832 * c-common.h (pch_cpp_save_state): Declare.
8833 * c-target.def (c_preinclude): New hook.
8834 * c-opts.c (done_preinclude): New.
8835 (push_command_line_include): Handle default preincluded header.
8836 (cb_file_change): Call pch_cpp_save_state when calling
8837 push_command_line_include.
8838 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
8839 (pch_cpp_save_state): New.
8840 (pch_init): Call pch_cpp_save_state conditionally, instead of
8841 calling cpp_save_state.
8842
4a0ae68e
MLI
88432012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
8844
8845 PR c/53063
8846 PR c/40989
8847 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
8848 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
8849 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
8850 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
8851 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
8852 * c-opts.c (c_common_handle_option): Remove explicit handling from
8853 here.
8854 (c_common_post_options): Likewise.
8855
67e4210b
EB
88562012-10-18 Eric Botcazou <ebotcazou@adacore.com>
8857
8858 * c-ada-spec.c (LOCATION_COL): Delete.
8859 (compare_location): New function.
8860 (compare_node): Use it.
8861 (compare_comment): Likewise.
8862
65d4f2cd
MLI
88632012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
8864
8865 PR c/53063
8866 PR c/40989
8867 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
8868 * c-opts.c (c_common_handle_option): Do not set them here. Add
8869 comment.
8870 (c_common_post_options): Likewise.
8871
909881cb
EB
88722012-10-16 Eric Botcazou <ebotcazou@adacore.com>
8873
8874 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
8875 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
8876 Remove POINTER_TYPE handling, add large unsigned handling and use
8877 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
8878
3a785c97
JJ
88792012-10-12 Jakub Jelinek <jakub@redhat.com>
8880
8881 PR c/54381
8882 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
8883 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
8884 locs and array of 3 trees instead of just single loc and single
8885 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
8886 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
8887 For *cmp* builtins that take two sources strings report warnings
8888 about first and second source, not about destination and source.
8889
5e54f81d
MG
88902012-10-12 Marc Glisse <marc.glisse@inria.fr>
8891
8892 PR c++/53055
8893 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
8894
f5b02f1e
EB
88952012-10-11 Eric Botcazou <ebotcazou@adacore.com>
8896
8897 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
8898 declaring something coming from another file.
8899
b46dbc6c
AC
89002012-10-10 Arnaud Charlet <charlet@adacore.com>
8901
f5b02f1e 8902 PR ada/54845
b46dbc6c
AC
8903 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
8904
5d9de0d0
PC
89052012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
8906
8907 PR c++/54194
8908 * c-common.c (warn_about_parentheses): Add location_t parameter;
8909 use EXPR_LOC_OR_LOC.
8910 * c-common.h: Update declaration.
8911
a212e43f
MG
89122012-10-09 Marc Glisse <marc.glisse@inria.fr>
8913
8914 PR c++/54427
8915 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
8916 more operations. Make error messages optional.
8917 * c-common.h (enum stv_conv): Moved from c-typeck.c.
8918 (scalar_to_vector): Declare.
8919
b1db7f91
JM
89202012-10-08 Jason Merrill <jason@redhat.com>
8921
8922 * c-common.c (c_common_reswords): Add thread_local.
8923
e28d52cf
DS
89242012-10-08 Dodji Seketeli <dodji@redhat.com>
8925
8926 PR c++/53528 C++11 attribute support
8927 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
8928 new functions.
8929 * c-common.c (check_cxx_fundamental_alignment_constraints): New
8930 static function.
8931 (handle_aligned_attribute): In choose strictest alignment
8932 among many. Use new check_cxx_fundamental_alignment_constraints.
8933 (handle_transparent_union_attribute): In c++11 attribute syntax,
8934 don't look through typedefs.
8935
3b78de56
AC
89362012-10-04 Arnaud Charlet <charlet@adacore.com>
8937
8938 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
8939 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
8940 out of dumpfile.h.
8941
6040bb5f
DC
89422012-09-25 Dehao Chen <dehao@google.com>
8943
8944 PR middle-end/54645
3b78de56 8945 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
8946 map when read in the pch.
8947
3f8257db 89482012-09-18 Arnaud Charlet <charlet@adacore.com>
0b07a57e
AC
8949
8950 * c-ada-spec.c: Style fixes.
8951
3f8257db 89522012-09-18 Thomas Quinot <quinot@adacore.com>
da5182be
TQ
8953
8954 * c.opt (-fada-spec-parent): Define new command line switch.
8955 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
8956 is specified, generate binding spec as a child of the specified unit.
8957
0ccb505d
PC
89582012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
8959 Manuel López-Ibáñez <manu@gcc.gnu.org>
8960
8961 PR c++/53210
8962 * c.opt ([Winit-self]): Enabled by -Wall in C++.
8963
c583af79
AC
89642012-08-23 Arnaud Charlet <charlet@adacore.com>
8965
8966 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
8967 for pointers, and add missing Convention C pragma.
8968 (print_ada_struct_decl): Add missing aliased keyword.
8969 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
8970
1a4049e7
JJ
89712012-08-17 Jakub Jelinek <jakub@redhat.com>
8972
8973 * c-common.c (sizeof_pointer_memaccess_warning): New function.
8974 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
8975 * c-opts.c (c_common_handle_option): Enable it for -Wall.
8976 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
8977 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
8978
70b5e7dc
RG
89792012-08-10 Richard Guenther <rguenther@suse.de>
8980
8981 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
8982
f8923f7e
SB
89832012-08-07 Steven Bosscher <steven@gcc.gnu.org>
8984
8985 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
8986 instead of separate pp_newline and pp_flush.
8987 (print_c_tree): Likewise.
8988
e45abe1f
RH
89892012-07-26 Richard Henderson <rth@redhat.com>
8990
8991 * c-common.c (handle_hot_attribute): Allow labels.
8992 (handle_cold_attribute): Likewise.
8993
332f1d24
JJ
89942012-07-20 Jakub Jelinek <jakub@redhat.com>
8995
8996 PR c++/28656
8997 * c-common.c (check_function_nonnull): Handle multiple nonnull
8998 attributes properly.
8999
7ee2468b
SB
90002012-07-16 Steven Bosscher <steven@gcc.gnu.org>
9001
9002 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
9003 * c-ada-spec.c: Likewise.
9004 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
9005
ee7b28eb
SB
90062012-07-14 Steven Bosscher <steven@gcc.gnu.org>
9007
9008 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
9009 Remove code conditional on it.
9010
6bdf3519
SB
90112012-07-11 Steven Bosscher <steven@gcc.gnu.org>
9012
9013 * c-gimplify.c: Do not include basic-block.h.
9014 * c-common.c: Do not include linfuncs.h.
9015
532aafad
SB
90162012-07-08 Steven Bosscher <steven@gcc.gnu.org>
9017
9018 * c-common.h: Include tree.h.
9019
8d0d1915
JM
90202012-07-02 Jason Merrill <jason@redhat.com>
9021
9022 PR c++/53524
9023 * c-common.c (get_priority): Call default_conversion.
9024
fbc873ad
UB
90252012-07-01 Uros Bizjak <ubizjak@gmail.com>
9026
9027 * c-pch.c (c_common_write_pch): Remove unused variables.
9028
d4a10d0a
SB
90292012-06-29 Steven Bosscher <steven@gcc.gnu.org>
9030
9031 * cppspec.c: Moved from gcc/ to here.
9032
6f3a2e23
KT
90332012-06-27 Kai Tietz <ktietz@redhat.com>
9034
9035 PR preprocessor/37215
9036 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
9037
8ca92d04
SB
90382012-06-21 Steven Bosscher <steven@gcc.gnu.org>
9039
9040 * c-common.h (c_common_print_pch_checksum): Remove.
9041 * c-pch.c: Do not include output.h.
9042 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
9043 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
9044 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
9045 (struct c_pch_header): Remove.
9046 (get_ident): Update gpch version.
9047 (pch_init): Do not print executable_checksum to asm_out_file.
9048 Do not fail if there is no asm_out_file to read back from. Set
9049 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
9050 (c_common_write_pch): Verify that nothing was written to asm_out_file
9051 since pch_init was called. Do not write a c_pch_header, and do not
9052 copy from asm_out_file to the PCH.
9053 (c_common_read_pch): Do not read a c_pch_header, and do not restore
9054 the content of asm_out_file from the PCH.
9055 (c_common_print_pch_checksum): Remove.
9056 * c-opts.c (c_common_init): Print out executable_checksum directly.
9057
70f42967
SB
90582012-06-19 Steven Bosscher <steven@gcc.gnu.org>
9059
9060 * c-target.def (objc_declare_unresolved_class_reference,
9061 objc_declare_class_definition): Add new hooks.
9062
a8781821
SB
90632012-06-19 Steven Bosscher <steven@gcc.gnu.org>
9064
9065 * c-lex.c: Do not include output.h.
9066 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
9067 Remove uses of ASM_OUTPUT_IDENT.
9068
9e1a8dd1
RR
90692012-06-15 Marc Glisse <marc.glisse@inria.fr>
9070
9071 PR c++/51033
9072 * c-common.h (c_build_vec_perm_expr): Move decl here.
9073 * c-common.c (c_build_vec_perm_expr): Move definition
9074 here.
9075
6f07a821
SB
90762012-06-06 Steven Bosscher <steven@gcc.gnu.org>
9077
9078 * c.opt (fconserve-space): Turn into a no-op.
9079
9faeb493 90802012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
9081
9082 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
9083 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
9084 both the start and end of the function.
9085
a4b7d13c
SB
90862012-06-04 Steven Bosscher <steven@gcc.gnu.org>
9087
9088 * c-common.c: Do not include output.h.
9089 * c-pragma.c: Likewise.
9090
c265f413
SA
90912012-06-04 Steven Bosscher <steven@gcc.gnu.org>
9092
9093 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
9094 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
9095 (lang_decl_name): Handle namespace decls.
9096
be7a421e
SB
90972012-05-31 Steven Bosscher <steven@gcc.gnu.org>
9098
9099 * c-ada-spec.c: Do not include output.h.
9100 * c-semantics.c: Likewise.
9101
65de6659
JM
91022012-05-29 Joseph Myers <joseph@codesourcery.com>
9103
9104 * c-common.c: Fix typo.
9105
ca5f4331
MM
91062012-05-29 Michael Matz <matz@suse.de>
9107
9108 * c-common.h (c_expand_decl): Remove prototype.
9109
4f7f7aca
MLI
91102012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
9111
9112 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
9113 * c-opts.c (c_common_handle_option): Remove code handling
9114 warn_missing_braces.
9115
4a792f9b
PC
91162012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
9117
9118 PR c++/25137
9119 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
9120 -Wmissing_braces.
9121
650dc14a
DS
91222012-05-22 Dodji Seketeli <dodji@redhat.com>
9123
9124 PR c++/53322
9125 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
9126
9b095bf1
MLI
91272012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
9128
9129 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
9130 * c-opts.c (c_common_handle_option): Do not handle explicitly
9131 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
9132
0b2c4be5
DS
91332012-05-16 Dodji Seketeli <dodji@redhat.com>
9134
9135 PR preprocessor/7263
ab20d992 9136 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
0b2c4be5
DS
9137 to cpp_classify_number. For diagnostics, use the precise location
9138 instead of the global input_location.
9139
a1bde5af
PC
91402012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
9141
d02924ef 9142 PR c++/11856
a1bde5af
PC
9143 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
9144
d1ede5f4
BS
91452012-05-14 Bernd Schmidt <bernds@codesourcery.com>
9146
a1bde5af 9147 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 9148
f2bc201f
MLI
91492012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
9150
9151 PR 53063
9152 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
9153 Wreorder): Use LangEnabledBy.
9154 * c-opts.c (c_common_handle_option): Do not enable them
9155 explicitly. Call lang-specific generated functions.
9156 (c_common_post_options): Do not set them here.
9157
95744782
MLI
91582012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
9159
9160 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
9161 Wmissing-field-initializers,Wmissing-parameter-type,
9162 Wold-style-declaration,Woverride-init): Use EnabledBy.
9163 * c-opts.c (c_common_post_options): Do not set here explicitly.
9164
7d5a5747
MLI
91652012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
9166
9167 PR 53063
9168 * c-opts.c (c_common_handle_option): Use handle_generated_option
9169 to enable sub-options.
9170
5a3c9cf2
PC
91712012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
9172
9173 PR c++/53158
9174 * c-common.c (warnings_for_convert_and_check): Use warning_at.
9175
3ac8781c
RG
91762012-05-10 Richard Guenther <rguenther@suse.de>
9177
9178 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
9179 adjust commentary about TYPE_IS_SIZETYPE types.
9180
1e537948
MLI
91812012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
9182
9183 PR c++/53261
9184 * c-common.c (warn_logical_operator): Check that argument of
9185 integer_zerop is not NULL.
9186
f2c4a785
MLI
91872012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
9188
9189 PR c/43772
9190 * c-common.c (warn_logical_operator): Do not warn if either side
9191 is already true or false.
9192
50f305ca
MLI
91932012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
9194
9195 PR c/51712
9196 * c-common.c (expr_original_type): New.
9197 (shorten_compare): Do not warn for enumeration types.
9198
0c3641b0
MLI
91992012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
9200
9201 * c.opt (fpermissive): Add Var(flag_permissive).
9202
7edaa4d2
MG
92032012-04-30 Marc Glisse <marc.glisse@inria.fr>
9204
9205 PR c++/51033
9206 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
9207 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
9208
b9c8da34
DS
92092012-04-30 Dodji Seketeli <dodji@redhat.com>
9210
9211 Add -Wvarargs option
ab20d992 9212 * c.opt (Wvarargs): Define new option.
b9c8da34 9213
e6c69da0
MLI
92142012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
9215
9216 * c-common.c (check_function_arguments): Replace
9217 Wmissing-format-attribute with Wsuggest-attribute=format.
9218
90137d8f
MLI
92192012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
9220
9221 * c.opt (Wsuggest-attribute=format): New. Alias of
9222 Wmissing-format-attribute.
9223 * c-format.c (decode_format_type): Replace
9224 Wmissing-format-attribute with Wsuggest-attribute=format.
9225 (check_function_format): Likewise.
9226
9faeb493 92272012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
9228
9229 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
9230 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
9231 * c.opt: Add Wliteral-suffix.
9232
c1771a20
MLI
92332012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
9234
9235 PR c/44774
9236 * c.opt (Wpedantic): New.
9237 (pedantic): Alias Wpedantic.
9238 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
9239 (c_common_post_options): Likewise.
9240 (sanitize_cpp_opts): Likewise.
9241 * c-lex.c (interpret_float): Likewise.
9242 * c-format.c (check_format_types): Likewise.
9243 * c-common.c (pointer_int_sum): Likewise.
9244 (c_sizeof_or_alignof_type): Likewise.
9245 (c_add_case_label): Likewise.
9246 (c_do_switch_warnings): Likewise.
9247 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
9248
04b391c1
JM
92492012-04-15 Jason Merrill <jason@redhat.com>
9250
9251 PR c++/52818
9252 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
9253 (C_STD_NAME): Distinguish between C++98 and C++11.
9254
ac868f29
EB
92552012-04-11 Eric Botcazou <ebotcazou@adacore.com>
9256
9257 PR target/52624
9258 * c-common.h (uint16_type_node): Rename into...
9259 (c_uint16_type_node): ...this.
9260 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
9261 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
9262
fd4116f4
MLI
92632012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
9264
9265 * c-common.c (warn_if_unused_value): Move definition to here.
9266 * c-common.h (warn_if_unused_value): Move declaration to here.
9267
573ac65e
WB
92682012-03-23 William Bader <williambader@hotmail.com>
9269
9270 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
9271
552b8185
JM
92722012-03-20 Jason Merrill <jason@redhat.com>
9273
9274 * c-common.h (enum cxx_dialect): Add cxx1y.
9275 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
9276 test.
9277 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
9278 * c-opts.c (c_common_post_options): Likewise.
9279 (set_std_cxx1y): New.
9280 (c_common_handle_option): Call it.
9281 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
9282
04398fa8
PC
92832012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
9284
9285 PR c++/14710
9286 * c.opt ([Wuseless-cast]): Add.
9287
d2a12ae7
RG
92882012-03-16 Richard Guenther <rguenther@suse.de>
9289
9290 * c-pretty-print.c (pp_c_initializer_list): Adjust.
9291
a12bf402
MLI
92922012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
9293
9294 PR c++/44783
9295 * c.opt (ftemplate-backtrace-limit) Add.
9296
5c30094f
RO
92972012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9298
9299 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
9300 handling.
9301 * c-pragma.c (handle_pragma_extern_prefix): Remove.
9302 (init_pragma): Don't register extern_prefix.
9303
21fa2faf
RG
93042012-03-12 Richard Guenther <rguenther@suse.de>
9305
9306 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
9307 (builtin_type_for_size): Likewise.
9308
e3793c6f
JJ
93092012-02-13 Jakub Jelinek <jakub@redhat.com>
9310
9311 PR c++/52215
9312 * c-common.c (sync_resolve_params): Don't decide whether to convert
9313 or not based on TYPE_SIZE comparison, convert whenever arg_type
9314 is unsigned INTEGER_TYPE.
9315
93286335
PC
93162012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
9317
9318 PR c/52118
9319 * c.opt ([Wunused-local-typedefs]): Fix description.
9320
7a421706
MS
93212012-01-24 Mike Stump <mikestump@comcast.net>
9322
9323 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
9324 exactly.
9325
ba9b1f11
RG
93262012-01-18 Richard Guenther <rguenther@suse.de>
9327
9328 * c-opts.c (c_common_post_options): Reset LTO flags if
9329 we are about to generate a PCH.
9330
465406be
PC
93312012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
9332
9333 PR c++/51777
9334 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
9335 use pp_unsigned_wide_integer.
9336
aee15221
RG
93372012-01-10 Richard Guenther <rguenther@suse.de>
9338
9339 PR middle-end/51806
9340 * c-opts.c (c_common_handle_option): Move -Werror handling
9341 to language independent code.
9342
5720c0dc
RG
93432012-01-05 Richard Guenther <rguenther@suse.de>
9344
9345 PR middle-end/51764
9346 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
9347 from common.opt.
9348
73ac190a
PC
93492011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
9350
9351 PR c++/51316
9352 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
9353 of array types with an unknown bound.
9354
48b0b196
JM
93552011-12-20 Joseph Myers <joseph@codesourcery.com>
9356
9357 * c-common.c (flag_isoc99): Update comment to refer to C11.
9358 (flag_isoc1x): Change to flag_isoc11.
9359 * c-common.h (flag_isoc99): Update comment to refer to C11.
9360 (flag_isoc1x): Change to flag_isoc11.
9361 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
9362 C11.
9363 * c-opts.c (set_std_c1x): Change to set_std_c11.
9364 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
9365 Call set_std_c11.
9366 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
9367 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
9368 * c.opt (std=c1x): Change to std=c11. Document as non-draft
9369 standard.
9370 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
9371 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
9372 (std=gnu1x): Make alias of std=gnu11.
9373
d58d6eb5
JM
93742011-12-19 Jason Merrill <jason@redhat.com>
9375
9376 PR c++/51228
9377 * c-common.c (handle_transparent_union_attribute): Check the first
9378 field if the type is complete.
9379
b3908fcc
JW
93802011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
9381
9382 PR libstdc++/51365
9383 * c-common.c (RID_IS_FINAL): Add.
9384 * c-common.h (RID_IS_FINAL): Add.
9385
fea3ca91
IS
93862011-11-30 Iain Sandoe <iains@gcc.gnu.org>
9387
9388 * c.opt (fgnu-runtime): Provide full description.
9389 (fnext-runtime): Likewise.
9390 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
9391
62bad7cd
AM
93922011-11-28 Andrew MacLeod <amacleod@redhat.com>
9393
9394 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
9395 predefines in one place. Add LOCK_FREE predefines.
9396 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
9397 new func.
9398
c466c4ff
AM
93992011-11-24 Andrew MacLeod <amacleod@redhat.com>
9400
9401 PR c/51256
9faeb493 9402 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 9403 conditions
9faeb493
UB
9404 (resolve_overloaded_atomic_exchange,
9405 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
9406 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
9407 error_mark_node for error conditions.
9faeb493 9408
a5952633
RG
94092011-11-08 Richard Guenther <rguenther@suse.de>
9410
9411 PR middle-end/51010
ab20d992 9412 * c-pretty-print.c (pp_c_expression): Handle SSA_NAMEs.
a5952633 9413
0a35513e
AH
94142011-11-07 Richard Henderson <rth@redhat.com>
9415 Aldy Hernandez <aldyh@redhat.com>
9416 Torvald Riegel <triegel@redhat.com>
9417
9418 Merged from transactional-memory.
9419
9420 * c-common.c (handle_tm_wrap_attribute,
9421 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
9422 (struct c_common_reswords): Added __transaction* keywords.
9423 (struct c_common_attribute_table): Added transaction* and tm_regparm
9424 attributes.
9425 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
9426 masks.
9427 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
9428 find_tm_attribute): Declare.
9429
6d87092d
JM
94302011-11-07 Jason Merrill <jason@redhat.com>
9431
9432 PR c++/35688
9433 * c-common.c, c-common.h: Revert yesterday's changes.
9434
8e7860a1
JM
94352011-11-06 Jason Merrill <jason@redhat.com>
9436
9437 PR c++/35688
9438 * c-common.c (decl_has_visibility_attr): Split out from...
9439 (c_determine_visibility): ...here.
9440 * c-common.h: Declare it.
9441
d19fa6b5
JM
94422011-11-06 Joseph Myers <joseph@codesourcery.com>
9443
9444 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
9445 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
9446 type.
9447 (check_user_alignment): New. Split out of
9448 handle_aligned_attribute. Disallow integer constants with
9449 noninteger types. Conditionally allow zero.
9450 (handle_aligned_attribute): Use check_user_alignment.
9451 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
9452
86951993
AM
94532011-11-06 Andrew MacLeod <amacleod@redhat.com>
9454 Richard Henderson <rth@redhat.com>
9455
9456 Merged from cxx-mem-model.
9457
9458 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 9459 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
9460 parameters that are the same type size.
9461 (get_atomic_generic_size): New. Find size of generic
9462 atomic function parameters and do typechecking.
9463 (add_atomic_size_parameter): New. Insert size into parameter list.
9464 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
9465 either __atomic_exchange_n or external library call.
9faeb493 9466 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 9467 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 9468 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
9469 __atomic_load_n or an external library call.
9470 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
9471 __atomic_store_n or an external library call.
9472 (resolve_overloaded_builtin): Handle new __atomic builtins.
9473
cf9e9959
EB
94742011-11-04 Eric Botcazou <ebotcazou@adacore.com>
9475
9476 PR c++/50608
9477 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
9478 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
9479 <INDIRECT_REF>: Return the argument.
9480 <ARRAY_REF>: Remove special code for negative offset.
9481 Call fold_build_pointer_plus instead of size_binop.
9482 (fold_offsetof): Remove STOP_REF argument and adjust.
9483 * c-common.h (fold_offsetof_1): Declare.
9484 (fold_offsetof): Remove STOP_REF argument.
9485
25339f10
JM
94862011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
9487
9488 PR c++/50810
9489 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
9490 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
9491 Wnarrowing for C++0x and C++98.
9492 * c.opt ([Wnarrowing]): Update.
9493
89401152
PC
94942011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
9495
9496 PR c++/44277
9497 * c.opt: Add Wzero-as-null-pointer-constant.
9498
97e3ad20
JM
94992011-10-31 Jason Merrill <jason@redhat.com>
9500
15694fdd
JM
9501 * c.opt (-fdeduce-init-list): Off by default.
9502
97e3ad20
JM
9503 PR c++/50920
9504 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
9505 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
9506 and -Wc++11-compat.
9507 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
9508
fb9120e3
RAV
95092011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
9510
9511 PR c++/30066
9512 * c.opt (fvisibility-inlines-hidden): Description change.
9513
3ce4f9e4
ESR
95142011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
9515
9516 Implement C++11 user-defined literals.
9517 * c-common.c (build_userdef_literal): New.
9518 * c-common.def: New tree code.
9519 * c-common.h (tree_userdef_literal): New tree struct and accessors.
9520 * c-lex.c (interpret_float): Add suffix parm.
9521 (c_lex_with_flags): Build literal tokens.
9522
5f53c243
PC
95232011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
9524
9525 PR c++/50841
9526 Revert:
9527 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
9528
9529 PR c++/50810
9530 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
9531 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
9532 Wnarrowing for C++0x and C++98.
9533 * c.opt ([Wnarrowing]): Update.
9534
263734e1
PC
95352011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
9536
9537 PR c++/50810
9538 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
9539 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
9540 Wnarrowing for C++0x and C++98.
9541 * c.opt ([Wnarrowing]): Update.
9542
d2e312d7
PC
95432011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
9544
9545 PR c++/45385
9546 * c-common.c (conversion_warning): Remove code looking for
9547 artificial operands.
9548
d17687f6
DS
95492011-10-18 Dodji Seketeli <dodji@redhat.com>
9550
9551 PR bootstrap/50760
9552 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 9553 !NO_IMPLICIT_EXTERN_C.
d17687f6 9554
fc8396e9
PC
95552011-10-17 Michael Spertus <mike_spertus@symantec.com>
9556
9557 * c-common.c (c_common_reswords): Add __bases,
9558 __direct_bases.
9559 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
9560
95612011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
9562
9563 PR c++/50757
9564 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
9565
847e697a
TT
95662011-10-15 Tom Tromey <tromey@redhat.com>
9567 Dodji Seketeli <dodji@redhat.com>
9568
9569 * c.opt (fdebug-cpp): New option.
9570 * c-opts.c (c_common_handle_option): Handle the option.
9571 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
9572 output stream in parameter. Factorized from ...
9573 (maybe_print_line): ... this. Dump location debug information when
9574 -fdebug-cpp is in effect.
9575 (print_line_1): New static function. Takes an output stream in
9576 parameter. Factorized from ...
9577 (print_line): ... here. Dump location information when -fdebug-cpp
9578 is in effect.
9579 (scan_translation_unit): Dump location information when
9580 -fdebug-cpp is in effect.
9581
92582b75
TT
95822011-10-15 Tom Tromey <tromey@redhat.com>
9583 Dodji Seketeli <dodji@redhat.com>
9584
9585 * c.opt (ftrack-macro-expansion): New option. Handle it with and
9586 without argument.
9587 * c-opts.c (c_common_handle_option)<case
9588 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
9589 cases. Handle -ftrack-macro-expansion with and without argument.
9590
46427374
TT
95912011-10-15 Tom Tromey <tromey@redhat.com>
9592 Dodji Seketeli <dodji@redhat.com>
9593
9594 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
9595 (print_line, cb_define, do_line_change): Adjust to avoid touching
9596 the internals of struct line_map. Use the public API instead.
9597 * c-pch.c (c_common_read_pch): Likewise.
9598 * c-lex.c (fe_file_change): Likewise.
9599
fc8396e9
PC
96002011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
9601
9602 PR c++/17212
9603 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
9604
96052011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
9606
9607 PR c++/33067
9608 * c-pretty-print.c (pp_c_floating_constant): Output
9609 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
9610
e79983f4
MM
96112011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
9612
9613 * c-common.c (def_builtin_1): Delete old interface with two
9614 parallel arrays to hold standard builtin declarations, and replace
9615 it with a function based interface that can support creating
9616 builtins on the fly in the future. Change all uses, and poison
9617 the old names. Make sure 0 is not a legitimate builtin index.
9618 * c-omp.c (c_finish_omp_barrier): Ditto.
9619 (c_finish_omp_taskwait): Ditto.
9620 (c_finish_omp_flush): Ditto.
9621
6637388f
TG
96222011-10-11 Tristan Gingold <gingold@adacore.com>
9623
9624 * c.opt: (fallow-parameterless-variadic-functions): New.
9625
3797cb21
DS
96262011-09-08 Dodji Seketeli <dodji@redhat.com>
9627
9628 PR c++/33255 - Support -Wunused-local-typedefs warning
9629 * c-common.h (struct c_language_function::local_typedefs): New
9630 field.
9faeb493
UB
9631 (record_locally_defined_typedef, maybe_record_typedef_use)
9632 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 9633 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
9634 (maybe_record_typedef_use)
9635 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
9636 * c.opt: Declare new -Wunused-local-typedefs flag.
9637
693ddb1b
EB
96382011-09-06 Eric Botcazou <ebotcazou@adacore.com>
9639
9640 PR middle-end/50266
9641 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
9642 computations.
9643
830c740f
RG
96442011-09-05 Richard Guenther <rguenther@suse.de>
9645
9646 * c-common.c (complete_array_type): Use ssize_int (-1) instead
9647 of integer_minus_one_node for empty array upper bounds.
9648
892a371f
DS
96492011-08-28 Dodji Seketeli <dodji@redhat.com>
9650
9651 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
9652 it's the first time it's being called on this main TU.
9653
0e3fdb48
RB
96542011-08-24 Richard Guenther <rguenther@suse.de>
9655
9656 PR c/49396
9657 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
9658
96592011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
9660
9661 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
9662 defined in cpp_init_builtins and c_cpp_builtins.
9663
d4a83c10
JM
96642011-08-19 Joseph Myers <joseph@codesourcery.com>
9665
9666 * c-common.c (c_common_reswords): Add __builtin_complex.
9667 * c-common.h (RID_BUILTIN_COMPLEX): New.
9668
bbceee64
JM
96692011-08-18 Joseph Myers <joseph@codesourcery.com>
9670
9671 * c-common.c (c_common_reswords): Add _Noreturn.
9672 (keyword_is_function_specifier): Handle RID_NORETURN.
9673 * c-common.h (RID_NORETURN): New.
9674
3f8257db 96752011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
0e3a99ae
AS
9676
9677 * c-common.c (unsafe_conversion_p): New function. Check if it is
9678 unsafe to convert an expression to the type.
9679 (conversion_warning): Adjust, use unsafe_conversion_p.
9680 * c-common.h (unsafe_conversion_p): New function declaration.
9681
20906c66
JJ
96822011-08-02 Jakub Jelinek <jakub@redhat.com>
9683
9684 * c-common.h (c_finish_omp_atomic): Adjust prototype.
9685 (c_finish_omp_taskyield): New prototype.
9686 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
9687 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
9688 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
9689 or RHS1 have side-effects, evaluate those too in the right spot,
9690 if it is a decl and LHS is also a decl, error out if they
9691 aren't the same.
9692 (c_finish_omp_taskyield): New function.
9693 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
9694 * c-pragma.c (omp_pragmas): Add taskyield.
9695 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
9696 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
9697 PRAGMA_OMP_CLAUSE_MERGEABLE.
9698
770e5a2e
DS
96992011-07-25 Dodji Seketeli <dodji@redhat.com>
9700
9701 * c-common.h (set_underlying_type): Remove parm name from
9702 declaration.
9703
1baae426
RG
97042011-07-25 Romain Geissler <romain.geissler@gmail.com>
9705
9706 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 9707
fcb21722
JM
97082011-07-22 Jason Merrill <jason@redhat.com>
9709
76f86d00
JM
9710 PR c++/49793
9711 * c.opt (Wnarrowing): New.
9712
3a636414
JM
9713 PR c++/30112
9714 * c-common.h: Declare c_linkage_bindings.
9715 * c-pragma.c (handle_pragma_redefine_extname): Use it.
9716
fcb21722
JM
9717 PR c++/49813
9718 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
9719 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
9720 as flag_isoc99 for 'restrict'.
9721 (pp_c_specifier_qualifier_list): Likewise for _Complex.
9722
02614448
ILT
97232011-07-21 Ian Lance Taylor <iant@google.com>
9724
9725 PR middle-end/49705
9726 * c-common.c (c_disable_warnings): New static function.
9727 (c_enable_warnings): New static function.
9728 (c_fully_fold_internal): Change local unused_p to bool. Call
9729 c_disable_warnings and c_enable_warnings rather than change
9730 c_inhibit_evaluation_warnings.
9731
34429675
JM
97322011-07-20 Jason Merrill <jason@redhat.com>
9733
9734 PR c++/6709 (DR 743)
9735 PR c++/42603 (DR 950)
9736 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
9737 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
9738 (CPP_DECLTYPE): New.
9739 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
9740
5d49b6a7
RG
97412011-07-19 Richard Guenther <rguenther@suse.de>
9742
9743 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
9744 * c-omp.c (c_finish_omp_for): Likewise.
9745
e84a58ff
EB
97462011-07-12 Eric Botcazou <ebotcazou@adacore.com>
9747
9748 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
9749 body on the next line.
9750
329af3c7
JM
97512011-07-08 Jason Merrill <jason@redhat.com>
9752
4063e61b
JM
9753 PR c++/45437
9754 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
9755
329af3c7
JM
9756 PR c++/49673
9757 * c-common.c (c_apply_type_quals_to_decl): Don't check
9758 TYPE_NEEDS_CONSTRUCTING.
9759
1a072294
RG
97602011-07-06 Richard Guenther <rguenther@suse.de>
9761
9762 * c-common.c (c_common_nodes_and_builtins):
9763 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
9764
fce5dddd
RG
97652011-07-05 Richard Guenther <rguenther@suse.de>
9766
9767 * c-common.c (c_common_nodes_and_builtins): Build all common
9768 tree nodes first.
9769
45d439ac
JJ
97702011-06-27 Jakub Jelinek <jakub@redhat.com>
9771
56300785
JJ
9772 * c-common.h (c_tree_chain_next): New static inline function.
9773
45d439ac
JJ
9774 * c-common.c (check_builtin_function_arguments): Handle
9775 BUILT_IN_ASSUME_ALIGNED.
9776
e0a8ecf2
AM
97772011-06-21 Andrew MacLeod <amacleod@redhat.com>
9778
9779 * c-common.c: Add sync_ or SYNC__ to builtin names.
9780 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
9781
97822011-06-20 Pierre Vittet <piervit@pvittet.com>
9783
9784 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
9785 handler.
9786 (gen_pragma_handler): New union.
9787 (internal_pragma_handler): New type.
9788 (c_register_pragma_with_data)
9789 (c_register_pragma_with_expansion_and_data): New functions.
9790
9791 * c-pragma.c (registered_pragmas, c_register_pragma_1)
9792 (c_register_pragma, c_register_pragma_with_expansion)
9793 (c_invoke_pragma_handler): Changed to work with
9794 internal_pragma_handler.
9795 (c_register_pragma_with_data)
9796 (c_register_pragma_with_expansion_and_data): New functions.
9797
677f3fa8
JM
97982011-06-14 Joseph Myers <joseph@codesourcery.com>
9799
9800 * c-common.c: Include common/common-target.h.
9801 (handle_section_attribute): Use
9802 targetm_common.have_named_sections.
9803 * c-cppbuiltin.c: Include common/common-target.h.
9804 (c_cpp_builtins): Use targetm_common.except_unwind_info.
9805
d7fc8c14
RG
98062011-06-10 Richard Guenther <rguenther@suse.de>
9807
9808 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
9809 to print a IDENTIFIER_NODE.
9810
10e48e39
RO
98112011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9812 Joseph Myers <joseph@codesourcery.com>
9813
9814 * c.opt (fbuilding-libgcc): New option.
9815 * c-cppbuiltin.c (c_cpp_builtins): Define
9816 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
9817
6976ae51
JM
98182011-06-07 Jason Merrill <jason@redhat.com>
9819
3ff60975
JM
9820 * c-common.c (max_tinst_depth): Lower default to 900.
9821
6976ae51
JM
9822 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
9823
009db074
RG
98242011-06-07 Richard Guenther <rguenther@suse.de>
9825
9826 * c-common.c (c_common_nodes_and_builtins): Do not set
9827 size_type_node or call set_sizetype.
9828
b4592b92
DS
98292011-06-07 Dodji Seketeli <dodji@redhat.com>
9830
9831 PR debug/49130
9832 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 9833 type when using pointer comparison to compare types.
b4592b92 9834
014ab419
JW
98352011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
9836
9837 * c.opt: Add -Wdelete-non-virtual-dtor.
9838 * c-opts.c (c_common_handle_option): Include it in -Wall.
9839
4f60111f
NF
98402011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
9841
9842 PR bootstrap/49190
9843
9844 Revert:
9845 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
9846
9847 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
9848 not tree_common.
9849
4cc4f2f4
JJ
98502011-05-27 Jakub Jelinek <jakub@redhat.com>
9851
9852 PR c++/49165
9853 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
9854 C++ don't call c_common_truthvalue_conversion on void type arms.
9855
38e01f9e
NF
98562011-05-27 Nathan Froyd <froydnj@codesourcery.com>
9857
9858 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
9859 (stmt_list_stack): Define.
9860 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
9861 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
9862
92e948a8
NF
98632011-05-26 Nathan Froyd <froydnj@codesourcery.com>
9864
9865 * c-common.c (warning_candidate_p): Check for BLOCKs.
9866
a2fc3e63
NF
98672011-05-26 Nathan Froyd <froydnj@codesourcery.com>
9868
9869 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
9870 not tree_common.
9871
0957c029
JJ
98722011-05-25 Jakub Jelinek <jakub@redhat.com>
9873
9874 * c-common.c (def_fn_type): Remove extra va_end.
9875
828fb3ba
JM
98762011-05-23 Jason Merrill <jason@redhat.com>
9877
9878 PR c++/48106
9879 * c-common.c (c_common_get_narrower): New.
9880 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
9881
dde05067
NF
98822011-05-23 Nathan Froyd <froydnj@codesourcery.com>
9883
9884 * c-common.h (check_function_arguments): Tweak prototype of
9885 check_function_arguments.
9886 * c-common.c (check_function_arguments): Likewise. Adjust
9887 calls to check_function_nonnull, check_function_format, and
9888 check_function_sentinel.
9889 (check_function_sentinel): Take a FUNCTION_TYPE rather than
9890 separate attributes and typelist arguments. Use
9891 FOREACH_FUNCTION_ARGS to iterate over argument types.
9892
3c0d13bf
PC
98932011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
9894
9895 * c-common.c (c_common_reswords): Reorder.
9896 * c-common.h (rid): Likewise.
9897
8242dd04
NF
98982011-05-10 Nathan Froyd <froydnj@codesourcery.com>
9899
9900 * c-common.c (def_fn_type): Don't call build_function_type, call
9901 build_function_type_array or build_varargs_function_type_array
9902 instead.
9903 (c_common_nodes_and_builtins): Likewise.
9904
3d528853
NF
99052011-05-05 Nathan Froyd <froydnj@codesourcery.com>
9906
9907 * c-common.c (c_add_case_label): Omit the loc argument to
9908 build_case_label.
9909 * c-common.h (build_case_label): Remove.
9910 * c-semantics.c (build_case_label): Remove.
9911
a04a722b
JM
99122011-05-05 Joseph Myers <joseph@codesourcery.com>
9913
9914 * c-objc.h (objc_start_method_definition): Update prototype.
9915 * stub-objc.c (objc_start_method_definition): Add extra parameter.
9916
e19a18d4
NF
99172011-05-04 Nathan Froyd <froydnj@codesourcery.com>
9918
9919 * c-common.c (check_main_parameter_types): Reindent. Don't use
9920 TYPE_ARG_TYPES directly.
9921 (handle_nonnull_attribute): Likewise.
9922 (sync_resolve_params): Likewise.
9923 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
9924 to check_format_string.
9925 (handle_format_attribute): Likewise.
9926 (check_format_string): Take a function type to examine instead of
9927 a type list. Use a function_arg_iterator to step through argument
9928 types.
9929
c62c040f
RG
99302011-05-04 Richard Guenther <rguenther@suse.de>
9931
9932 * c-common.c (fix_string_type): Use size_int for index type bounds.
9933 (start_fname_decls): Do not pass NULL to build_int_cst.
9934 (c_init_attributes): Likewise.
9935 * c-lex.c (c_lex_with_flags): Likewise.
9936
c12ff9d8
JM
99372011-04-27 Jason Merrill <jason@redhat.com>
9938
9939 * c-common.c (make_tree_vector_from_list): New.
9940 * c-common.h: Declare it.
9941
304dfbe3
RG
99422011-04-26 Richard Guenther <rguenther@suse.de>
9943
9944 PR preprocessor/48248
9945 * c-ppoutput.c (maybe_print_line): Always optimize newlines
9946 for output size with -P.
9947
3c0d13bf
PC
99482011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
9949
9950 * c-common.c (struct c_common_resword): Add __underlying_type.
9951 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
9952
04695783
JM
99532011-04-20 Jim Meyering <meyering@redhat.com>
9954
9955 * c-format.c (init_dollar_format_checking): Remove useless
9956 if-before-free.
9957
0dc33c3c
NP
99582011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
9959
9960 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 9961 (objc_detect_field_duplicates): New.
0dc33c3c 9962 * stub-objc.c: Likewise.
3c0d13bf 9963
c59633d9
NP
99642011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
9965
9966 * stub-objc.c (objc_declare_protocols): Renamed to
9967 objc_declare_protocol.
9968 * c-objc.h: Likewise.
3c0d13bf 9969
32dabdaf
NP
99702011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
9971
9972 * stub-objc.c (objc_declare_class): Updated argument name.
9973
81f653d6
NF
99742011-04-12 Nathan Froyd <froydnj@codesourcery.com>
9975
9976 * c-common.h (c_common_init_ts): Declare.
9977 * c-common.c (c_common_init_ts): Define.
9978
eb345401
NP
99792011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
9980
9981 * c-objc.h (objc_build_message_expr): Updated prototype.
9982 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 9983
a358e188
MJ
99842011-04-12 Martin Jambor <mjambor@suse.cz>
9985
9986 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
9987 of cgraph_node.
9988
e6313a78
RG
99892011-04-11 Richard Guenther <rguenther@suse.de>
9990
9991 * c-common.c (complete_array_type): Build a range type of
9992 proper type.
9993
dcf0c47e
NF
99942011-04-08 Nathan Froyd <froydnj@codesourcery.com>
9995
9996 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
9997 (handle_type_generic_attribute): Likewise.
9998
1ee44b26
JM
99992011-04-07 Jason Merrill <jason@redhat.com>
10000
10001 PR c++/48450
10002 * c-common.c (c_common_truthvalue_conversion): Don't ignore
10003 conversion from C++0x scoped enum.
10004
acce4e77
JM
100052011-04-06 Joseph Myers <joseph@codesourcery.com>
10006
10007 * c-target-def.h: New file.
10008 * c-target.def: New file.
10009 * c-target.h: New file.
10010 * c-common.c (targetcm): Don't define here.
10011 * c-common.h (default_handle_c_option): Declare.
10012 * c-format.c: Include c-target.h instead of target.h.
10013 * c-opts.c: Include c-target.h instead of target.h. Explicitly
10014 include tm.h.
10015 (default_handle_c_option): Move from targhooks.c.
10016
e2eefb55
JJ
100172011-03-29 Jakub Jelinek <jakub@redhat.com>
10018
10019 PR preprocessor/48248
10020 * c-ppoutput.c (print): Add src_file field.
10021 (init_pp_output): Initialize it.
10022 (maybe_print_line): Don't optimize by adding up to 8 newlines
10023 if map->to_file and print.src_file are different file.
10024 (print_line): Update print.src_file.
10025
ba78087b
KT
100262011-03-25 Kai Tietz <ktietz@redhat.com>
10027
10028 * c-ada-spec.c (compare_comment): Use filename_cmp
10029 instead of strcmp for filename.
10030
0edf1bb2
JL
100312011-03-25 Jeff Law <law@redhat.com>
10032
adfac8df 10033 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 10034
c7dc8804
JM
100352011-03-25 Jason Merrill <jason@redhat.com>
10036
10037 * c.opt: Add -std=c++03.
10038
d1d879b1
EB
100392011-03-22 Eric Botcazou <ebotcazou@adacore.com>
10040
10041 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
10042
3f8257db 100432011-03-17 Kai Tietz <ktietz@redhat.com>
62d784f7
KT
10044
10045 PR target/12171
5050afdf
KT
10046 * c-pretty-print.c (pp_c_specifier_qualifier_list):
10047 Display allowed attributes for function pointer types.
10048 (pp_c_attributes_display): New function to display
10049 attributes having affects_type_identity flag set to true.
10050 * c-pretty-print.h (pp_c_attributes_display): New prototype.
10051
62d784f7
KT
10052 * c-common.c (c_common_attribute_table):
10053 Add new element.
10054 (c_common_format_attribute_table): Likewise.
10055
82d37118
JM
100562011-03-18 Jason Merrill <jason@redhat.com>
10057
49a000c3
JM
10058 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
10059 * c-common.h: Don't declare it here.
10060 * c-common.c: Or define it here.
10061 * c-opts.c (c_common_handle_option): Or set it here.
10062
82d37118
JM
10063 PR c++/35315
10064 * c-common.c (handle_transparent_union_attribute): Don't
10065 make a duplicate type in C++.
10066
17bc631c
JM
100672011-03-15 Jason Merrill <jason@redhat.com>
10068
10069 * c-common.c (max_constexpr_depth): New.
10070 * c-common.h: Declare it.
10071 * c-opts.c (c_common_handle_option): Set it.
10072 * c.opt (fconstexpr-depth): New option.
10073
1b9b91a6
JM
100742011-03-11 Jason Merrill <jason@redhat.com>
10075
f231b5ff
JM
10076 * c-common.c (attribute_takes_identifier_p): Add missing const.
10077
1b9b91a6
JM
10078 PR c++/46803
10079 * c-common.c (attribute_takes_identifier_p): Assume that an
10080 unknown attribute takes an identifier.
10081
a19e4d44
NF
100822011-03-07 Nathan Froyd <froydnj@codesourcery.com>
10083
10084 PR c/47786
10085 * c-common.c (c_type_hash): Call list_length instead of iterating
10086 through DECL_CHAIN. Rename 'i' to 'n_elements'.
10087
982d62f6
JJ
100882011-02-19 Jakub Jelinek <jakub@redhat.com>
10089
10090 PR c/47809
10091 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
10092
0a256240
NP
100932011-02-17 Iain Sandoe <iains@gcc.gnu.org>
10094
10095 * c.opt (fobjc-abi-version=) New.
10096 (fobjc-nilcheck): New.
10097
ba9e6dd5
NF
100982011-02-03 Nathan Froyd <froydnj@codesourcery.com>
10099
10100 PR c++/46890
10101 * c-common.h (keyword_is_decl_specifier): Declare.
10102 * c-common.c (keyword_is_decl_specifier): Define.
10103 (keyword_is_function_specifier): New function.
10104
7273813a
JJ
101052011-01-26 Jakub Jelinek <jakub@redhat.com>
10106
10107 PR c/47473
10108 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
10109 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
10110 REAL_TYPE.
10111
908ef79b
AC
101122011-01-26 Arnaud Charlet <charlet@adacore.com>
10113
10114 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
10115
237e9384
JJ
101162011-01-26 Jakub Jelinek <jakub@redhat.com>
10117
10118 PR pch/47430
10119 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
10120 after init_c_lex if pch_file is set.
10121
47ea1edf
DK
101222011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
10123
d4dba752 10124 PR c++/43601
47ea1edf
DK
10125 * c.opt (-fkeep-inline-dllexport): New switch.
10126
2aa9c6ae
RG
101272011-01-12 Richard Guenther <rguenther@suse.de>
10128
10129 PR middle-end/32511
10130 * c-common.c (handle_weak_attribute): Warn instead of error
10131 on declaring an inline function weak.
10132
7bd11157
TT
101332011-01-05 Tom Tromey <tromey@redhat.com>
10134
10135 * c-common.h (lvalue_error): Update.
10136 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
10137 not error.
10138
0e66e494 101392010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 10140
b4f588c4
NP
10141 PR objc/47075
10142 * c-objc.h (objc_finish_message_expr): Added argument to
10143 prototype.
10144
f4da8dce
NF
101452010-12-22 Nathan Froyd <froydnj@codesourcery.com>
10146
10147 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
10148 Use prototype_p.
10149
46270f14
NP
101502010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
10151
10152 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 10153 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 10154
4816c593
NF
101552010-12-10 Nathan Froyd <froydnj@codesourcery.com>
10156
10157 * c-common.h (readonly_error): Declare.
10158 * c-common.c (readonly_error): Define.
10159
7a6daeb0
NF
101602010-12-09 Nathan Froyd <froydnj@codesourcery.com>
10161
10162 * c-common.h (invalid_indirection_error): Declare.
10163 * c-common.c (invalid_indirection_error): Define.
10164
892f6119
RG
101652010-12-03 Richard Guenther <rguenther@suse.de>
10166
10167 PR c/46745
10168 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
10169 (pp_c_unary_expression): Likewise.
10170 (pp_c_expression): Likewise.
10171
6c39e757
NP
101722010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
10173
10174 * c-common.h (objc_finish_function): New.
10175 (objc_non_volatilized_type): Removed.
10176 (objc_type_quals_match): Removed.
10177 * stub-objc.c (objc_finish_function): New.
10178 (objc_non_volatilized_type): Removed.
10179 (objc_type_quals_match): Removed.
9faeb493 10180
7c475d11
JM
101812010-11-30 Joseph Myers <joseph@codesourcery.com>
10182
10183 * c-common.h (parse_optimize_options): Declare.
10184 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
10185 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
10186
71f3e391
JM
101872010-11-29 Joseph Myers <joseph@codesourcery.com>
10188
10189 * c-opts.c (check_deps_environment_vars): Use getenv instead of
10190 GET_ENVIRONMENT.
10191 * c-pch.c (O_BINARY): Don't define here.
10192 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
10193
d5fabb58
JM
101942010-11-25 Joseph Myers <joseph@codesourcery.com>
10195
10196 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
10197 targetm.except_unwind_info.
10198
299404a1
JM
101992010-11-23 Joseph Myers <joseph@codesourcery.com>
10200
10201 * c-opts.c (c_common_handle_option): Pass location to
10202 set_struct_debug_option.
10203
c98cd5bf
JM
102042010-11-23 Joseph Myers <joseph@codesourcery.com>
10205
10206 * c-common.c (visibility_options): Move from ../opts.c.
10207 * c-common.h (struct visibility_flags, visibility_options):
10208 Declare here.
10209 * c-opts.c (finish_options): Rename to c_finish_options.
10210 (c_common_init): Update call to finish_options.
10211
a9546771
NP
102122010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
10213
10214 PR objc/34033
10215 * c-lex.c (lex_string): Check that each string in an Objective-C
10216 string concat sequence starts with either one or zero '@', and
10217 that there are no spurious '@' signs at the end.
10218
24a57808
JM
102192010-11-20 Joseph Myers <joseph@codesourcery.com>
10220
10221 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
10222 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
10223 HANDLE_PRAGMA_VISIBILITY.
10224 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
10225 HANDLE_PRAGMA_VISIBILITY): Don't define.
10226 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
10227
a9aa2c3a
NF
102282010-11-20 Nathan Froyd <froydnj@codesourcery.com>
10229
10230 PR c++/16189
10231 PR c++/36888
10232 PR c++/45331
10233 * c-common.h (keyword_begins_type_specifier): Declare.
10234 (keyword_is_storage_class_specifier): Declare.
10235 (keyword_is_type_qualifier): Declare.
10236 * c-common.c (keyword_begins_type_specifier): New function.
10237 (keyword_is_storage_class_specifier): New function.
10238 (keyword_is_type_qualifier): Declare.
10239
5386338c
JM
102402010-11-19 Joseph Myers <joseph@codesourcery.com>
10241
10242 PR c/46547
10243 * c-common.c (in_late_binary_op): Define.
10244 (c_common_truthvalue_conversion): Check in_late_binary_op before
10245 calling c_save_expr.
10246 * c-common.h (in_late_binary_op): Declare.
10247
69ccdddb
JM
102482010-11-19 Joseph Myers <joseph@codesourcery.com>
10249
10250 * c-opts.c (c_common_handle_option): Update calls to
10251 set_struct_debug_option.
10252
6b192a09
NP
102532010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
10254
10255 * c-common.h (objc_declare_protocols): Added additional argument.
10256 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 10257
fb52b50a
NF
102582010-11-18 Nathan Froyd <froydnj@codesourcery.com>
10259
10260 PR c/33193
10261 * c-common.h (build_real_imag_expr): Declare.
10262 * c-semantics.c (build_real_imag_expr): Define.
10263
b37421c6
JM
102642010-11-17 Joseph Myers <joseph@codesourcery.com>
10265
10266 * c-opts.c (c_common_parse_file): Take no arguments.
10267 * c-common.h (c_common_parse_file): Update prototype.
10268
07078664
JJ
102692010-11-16 Jakub Jelinek <jakub@redhat.com>
10270
10271 PR c++/46401
10272 * c-common.c (warning_candidate_p): Don't track non-const calls
10273 or STRING_CSTs.
10274
c6a13190
ILT
102752010-11-15 Ian Lance Taylor <iant@google.com>
10276
10277 * c-lex.c (init_c_lex): Set macro debug callbacks if
10278 flag_dump_go_spec is set.
10279
925e8657
NP
102802010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
10281
10282 * c-common.h (objc_build_incr_expr_for_property_ref): New.
10283 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
10284
bb0a9581
NF
102852010-11-15 Nathan Froyd <froydnj@codesourcery.com>
10286
10287 PR preprocessor/45038
10288 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
10289 dialects.
10290
c5fa0890
JM
102912010-11-12 Joseph Myers <joseph@codesourcery.com>
10292
10293 * c-common.h (c_family_lang_mask): Declare.
10294 * c-opts.c (c_family_lang_mask): Make extern.
10295 * c-pragma.c (handle_pragma_diagnostic): Use
10296 control_warning_option.
10297
a4d8c676
JM
102982010-11-12 Joseph Myers <joseph@codesourcery.com>
10299
10300 * c-common.c (parse_optimize_options): Update call to
10301 decode_options.
10302 * c-common.h (c_common_handle_option): Update prototype.
10303 * c-opts.c (c_common_handle_option): Take location_t parameter and
10304 pass it to other functions.
10305
f954bd2c
JM
103062010-11-11 Joseph Myers <joseph@codesourcery.com>
10307
10308 * c-opts.c (warning_as_error_callback): Remove.
10309 (c_common_initialize_diagnostics): Don't call
10310 register_warning_as_error_callback.
10311 (c_common_handle_option): Handle -Werror=normalized= here.
10312
d8a07487
JM
103132010-11-10 Joseph Myers <joseph@codesourcery.com>
10314
10315 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
10316 in diagnostic.
10317 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
10318 letter.
10319 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
10320 Remove trailing '.' from diagnostics.
10321 * c.opt (Wwrite-strings_: Avoid '`' in help text.
10322
d5478783
JM
103232010-11-10 Joseph Myers <joseph@codesourcery.com>
10324
10325 * c-common.c (parse_optimize_options): Pass global_dc to
10326 decode_options.
10327 * c-opts.c (c_common_handle_option): Pass &global_options to
10328 set_Wstrict_aliasing.
10329 * c.opt (v): Don't mark Common or document here.
10330
91ebb981
IS
103312010-11-06 Iain Sandoe <iains@gcc.gnu.org>
10332
10333 PR target/44981
10334 * c-format.c (format_type): New type gcc_objc_string_format_type.
10335 (valid_stringptr_type_p): New.
10336 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 10337 (check_format_string): Pass expected type, use
91ebb981
IS
10338 valid_stringptr_type_p (), check that the format string types are
10339 consistent with the format specification.
10340 (decode_format_attr): Warn if NSString is used outside objective-c.
10341 (format_types_orig): Add NSString.
10342 (format_name): New.
10343 (format_flags): New.
10344 (check_format_arg): Handle format strings requiring an external parser.
10345 first_target_format_type: New variable.
10346 (handle_format_attribute): Set up first_target_format_type, pass the
10347 expected format arg string type to check_format_string().
ab20d992 10348 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
91ebb981
IS
10349 * stub-objc.c (objc_string_ref_type_p): New.
10350 (objc_check_format_arg): New.
10351
bede2adc
NP
103522010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
10353
9faeb493 10354 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
10355 * c-common.h (objc_build_class_component_ref): New.
10356 * stub-objc.c (objc_build_class_component_ref): New.
10357
9a179d01
NP
103582010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
10359
10360 * c.opt (Wproperty-assign-default): New option.
10361
22d8d616
NP
103622010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
10363
10364 Implemented -fobjc-std=objc1 flag.
10365 * c.opt (fobjc-std=objc1): New option.
10366
2debdb4f
NP
103672010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
10368
10369 Implemented format and noreturn attributes for Objective-C methods.
10370 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
10371 attribute for Objective-C methods.
10372
ec52b111
JM
103732010-10-31 Jason Merrill <jason@redhat.com>
10374
10375 * c-common.c (conversion_warning, warn_for_collisions_1): Use
10376 EXPR_LOC_OR_HERE.
10377
46a88c12
NP
103782010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
10379
10380 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
10381 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
10382 (objc_add_property_declaration): Removed arguments for copies and
10383 ivar.
10384 (objc_build_getter_call): Renamed to
10385 objc_maybe_build_component_ref.
10386 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
10387 (objc_is_property_ref): New.
10388 * c-common.c (c_common_reswords): Removed copies and ivar.
10389 * stub-objc.c (objc_add_property_declaration): Removed arguments
10390 for copies and ivar.
10391 (objc_build_getter_call): Renamed to
10392 objc_maybe_build_component_ref.
10393 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
10394 (objc_is_property_ref): New.
9faeb493 10395
1e4bf85b
AC
103962010-10-29 Arnaud Charlet <charlet@adacore.com>
10397 Matthew Gingell <gingell@adacore.com>
10398
10399 * c-ada-spec.c (separate_class_package): New function.
10400 (pp_ada_tree_identifier): Prefix references to C++ classes with the
10401 name of their enclosing package.
10402 (print_ada_declaration): Use separate_class_package.
10403
81f0bab2
JM
104042010-10-27 Jason Merrill <jason@redhat.com>
10405
2b08f2c5
JM
10406 * c-common.c (c_common_reswords): Add __is_literal_type.
10407 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
10408
81f0bab2
JM
10409 * c-common.c (check_case_value): Remove special C++ code.
10410
200290f2
NP
104112010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
10412
10413 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
10414 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
10415 and RID_LAST_PATTR.
10416 (objc_add_property_declaration): Added additional arguments.
10417 (objc_property_attribute_kind): Removed.
10418 (objc_set_property_attr): Removed.
10419 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
10420 copy and nonatomic.
10421 * stub-objc.c (objc_add_property_declaration): Added additional
10422 arguments.
10423 (objc_set_property_attr): Removed.
9faeb493 10424
f614132b
NP
104252010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
10426
10427 * c-common.h (objc_add_property_variable): Renamed to
10428 objc_add_property_declaration. Added location argument.
10429 * stub-objc.c (objc_add_property_variable): Same change.
b1726d6c 10430
b8a18805
NP
104312010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
10432
10433 * c-common.h (objc_maybe_printable_name): New.
10434 * stub-objc.c (objc_maybe_printable_name): New.
10435
3f8257db
JJ
104362010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
10437 Andrew Pinski <pinskia@gmail.com>
30cd1c5d
AS
10438
10439 * c-common.h (c_common_mark_addressable_vec): Declare.
10440 * c-common.c (c_common_mark_addressable_vec): New function.
10441
249a82c4
NP
104422010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
10443
10444 * c-common.h (objc_set_method_type): Removed.
10445 (objc_add_method_declaration): Added boolean argument.
10446 (objc_start_method_definition): Same change.
10447 (objc_build_method_signature): Same change.
10448 * stub-objc.c (objc_set_method_type): Removed.
10449 (objc_add_method_declaration): Added boolean argument.
10450 (objc_start_method_definition): Same change.
10451 (objc_build_method_signature): Same change.
10452
977e30bc
NP
104532010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
10454
10455 * c-common.h (finish_file): Removed.
10456 (objc_write_global_declarations): New.
10457 * c-opts.c (c_common_parse_file): Do not call finish_file.
10458 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 10459
da57d1b9
NP
104602010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
10461
10462 Implemented parsing @synthesize and @dynamic for
10463 Objective-C/Objective-C++.
10464 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
10465 (objc_add_synthesize_declaration): New.
10466 (objc_add_dynamic_declaration): New.
10467 * c-common.c (c_common_reswords): Add synthesize and dynamic.
10468 * stub-objc.c (objc_add_synthesize_declaration): New.
10469 (objc_add_dynamic_declaration): New.
9faeb493 10470
0069111f
MM
104712010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
10472
10473 PR target/46041
10474 * c-cppbuiltin.c (mode_has_fma): Move function here from
10475 builtins.c. Don't use the fma optab, instead just use the
10476 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
10477 using -save-temps.
10478
e426b47b
NP
104792010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
10480
10481 Merge from 'apple/trunk' branch on FSF servers.
0069111f 10482
3f8257db 10483 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
e426b47b 10484
9faeb493 10485 Radar 4330422
e426b47b
NP
10486 * c-common.h (objc_non_volatilized_type): New declaration
10487 * stub-objc.c (objc_non_volatilized_type): New stub.
10488
90fbfdc3
NP
104892010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
10490
e426b47b 10491 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3 10492
ab20d992 10493 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
90fbfdc3 10494
9faeb493 10495 Radar 4133425
90fbfdc3 10496 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 10497 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 10498
c37d8c30
IS
104992010-10-17 Iain Sandoe <iains@gcc.gnu.org>
10500
10501 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
10502 * c-common.h (enum rid): Add RID_AT_PACKAGE.
10503 (objc_ivar_visibility_kind): New enum.
10504 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 10505 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
10506 visibility enum.
10507
1b1562a5
MM
105082010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
10509
10510 * c-cppbuiltin.c (builtin_define_float_constants): Emit
10511 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
10512 has the appropriate fma builtins.
10513 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
10514
668ea4b1
IS
105152010-10-14 Iain Sandoe <iains@gcc.gnu.org>
10516
1b1562a5 10517 merge from FSF apple 'trunk' branch.
3f8257db 10518 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 10519
668ea4b1
IS
10520 Radars 4436866, 4505126, 4506903, 4517826
10521 * c-common.c (c_common_resword): Define @property and its attributes.
10522 * c-common.h: Define property attribute enum entries.
10523 (OBJC_IS_PATTR_KEYWORD): New.
10524 (objc_property_attribute_kind): New enum.
10525 Declare objc_set_property_attr (), objc_add_property_variable (),
10526 objc_build_getter_call () and objc_build_setter_call ().
10527 * stub-objc.c (objc_set_property_attr): New stub.
10528 (objc_add_property_variable): Likewise.
10529 (objc_build_getter_call): Likewise.
10530 (objc_build_setter_call) Likewise.
1b1562a5 10531
a1178b30
IS
105322010-10-13 Iain Sandoe <iains@gcc.gnu.org>
10533
1b1562a5 10534 merge from FSF apple 'trunk' branch.
ab20d992 10535 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
a1178b30
IS
10536
10537 Radar 3803157 (method attributes)
10538 * c-common.c (handle_deprecated_attribute): Recognize
10539 objc methods as valid declarations.
10540 * c-common.h: Declare objc_method_decl ().
1b1562a5 10541 * stub-objc.c (objc_method_decl): New stub.
a1178b30 10542
a75bfaa6
JM
105432010-10-08 Joseph Myers <joseph@codesourcery.com>
10544
10545 * c-common.c (parse_optimize_options): Call
10546 decode_cmdline_options_to_array_default_mask before
10547 decode_options. Update arguments to decode_options.
10548 * c-common.h (c_common_init_options_struct): Declare.
10549 * c-opts.c (c_common_init_options_struct): New. Split out from
10550 c_common_init_options.
10551
f05b9d93
NP
105522010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
10553
10554 Implemented fast enumeration for Objective-C.
10555 * c-common.h (objc_finish_foreach_loop): New.
10556 * stub-objc.c (objc_finish_foreach_loop): New.
10557
1ebe4b4f
JM
105582010-10-05 Joseph Myers <joseph@codesourcery.com>
10559
10560 * c-common.h (struct diagnostic_context): Don't declare here.
10561 (c_common_initialize_diagnostics): Declare using
10562 diagnostic_context typedef.
10563 * c-opts.c (c_common_handle_option): Pass global_dc to
10564 handle_generated_option.
10565
d4d24ba4
JM
105662010-10-04 Joseph Myers <joseph@codesourcery.com>
10567
10568 * c-opts.c (c_common_handle_option): Pass &global_options_set to
10569 handle_generated_option.
10570
478a1c5b
ILT
105712010-10-03 Ian Lance Taylor <iant@google.com>
10572
10573 * c.opt (-fplan9-extensions): New option.
10574
82a1c2fe
FXC
105752010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10576
10577 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
10578 Remove.
10579 (c_cpp_builtins): Call functions from cppbuiltin.c instead
10580 of duplicating code.
10581
92902b1b
IS
105822010-09-30 Iain Sandoe <iains@gcc.gnu.org>
10583
10584 * c-common.c: Add two new entries for @optional
10585 and @required keywords.
10586
10587 merge from FSF 'apple/trunk' branch.
3f8257db 10588 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
92902b1b
IS
10589
10590 Radar 4386773
10591 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
10592 objective-c keywords.
10593 (objc_set_method_opt): New declaration.
10594 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 10595
46625112
JM
105962010-09-30 Joseph Myers <joseph@codesourcery.com>
10597
10598 * c-common.c (handle_optimize_attribute): Pass &global_options to
10599 cl_optimization_save and cl_optimization_restore.
10600 * c-opts.c (c_common_handle_option): Pass &global_options to
10601 handle_generated_option.
10602 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
10603 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
10604 &global_options to cl_optimization_restore.
10605
49b91f05
NP
106062010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
10607
10608 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
10609 Objective-C/Objective-C++ keywords.
10610
13ed556f 106112010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 10612
9faeb493
UB
10613 Merge from 'apple/trunk' branch on FSF servers.
10614
3f8257db 10615 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
a6341d57
NP
10616
10617 Radar 4281748
10618 * c-common.h (objc_check_global_decl): New declaration.
10619 * stub-objc.c (objc_check_global_decl): New stub.
10620
f0036cca
JM
106212010-09-29 Joseph Myers <joseph@codesourcery.com>
10622
10623 * c.opt: Don't use VarExists.
10624
e3339d0f
JM
106252010-09-29 Joseph Myers <joseph@codesourcery.com>
10626
10627 * c-common.c (c_cpp_error): Update names of diagnostic_context
10628 members.
10629 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
10630 cl_optimization members.
10631 * c-opts.c (warning_as_error_callback, c_common_handle_option,
10632 sanitize_cpp_opts, finish_options): Update names of cpp_options
10633 members.
10634
1973201f
NP
106352010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
10636
10637 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
10638 (objc_is_reserved_word): Removed.
10639 * c-common.c: Updated comments.
10640 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
10641 objc_is_reserved_word.
10642 * stub-objc.c (objc_is_reserved_word): Removed.
10643
f7e71da5
IS
106442010-09-28 Iain Sandoe <iains@gcc.gnu.org>
10645
9faeb493 10646 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
10647 include attributes.
10648 (objc_start_method_definition): Likewise.
10649 (objc_build_keyword_decl): Likewise.
10650 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
10651 (objc_start_method_definition): Likewise.
10652 (objc_build_keyword_decl): Likewise.
10653
c165dca7
IS
106542010-09-28 Iain Sandoe <iains@gcc.gnu.org>
10655
10656 * c-common.h (objc_start_class_interface): Adjust prototype.
10657 (objc_start_category_interface): Likewise.
10658 (objc_start_protocol): Likewise.
10659 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
10660 (objc_start_class_interface): Likewise.
10661 (objc_start_category_interface): Likewise.
10662
7458026b
ILT
106632010-09-27 Ian Lance Taylor <iant@google.com>
10664
10665 * c-common.c (c_common_attribute_table): Add no_split_stack.
10666 (handle_no_split_stack_attribute): New static function.
10667
b581b85b
NP
106682010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
10669
9faeb493 10670 Merge from 'apple/trunk' branch on FSF servers.
b581b85b 10671
3f8257db 10672 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
b581b85b 10673
9faeb493 10674 Radar 4229905
b581b85b
NP
10675 * c-common.h (objc_have_common_type): New declaration.
10676 * stub-objc.c (objc_have_common_type): New stub.
10677
10678 2005-06-22 Ziemowit Laski <zlaski@apple.com>
10679
10680 Radar 4154928
10681 * c-common.h (objc_common_type): New prototype.
9faeb493 10682 * stub-objc.c (objc_common_type): New stub.
b581b85b 10683
46a4da10
JH
106842010-09-24 Jan Hubicka <jh@suse.cz>
10685
10686 * c-common.c (handle_leaf_attribute): New function.
10687 (struct attribute_spec c_common_att): Add leaf.
10688
e200444e
JM
106892010-09-22 Joseph Myers <joseph@codesourcery.com>
10690
10691 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
10692 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
10693 -dump, -dump=, -imacros, -imacros=, -include, -include=,
10694 -include-barrier, -include-directory, -include-directory=,
10695 -include-directory-after, -include-directory-after=,
10696 -include-prefix, -include-prefix=, -include-with-prefix,
10697 -include-with-prefix=, -include-with-prefix-after,
10698 -include-with-prefix-after=, -include-with-prefix-before,
10699 -include-with-prefix-before=, -no-integrated-cpp,
10700 -no-line-commands, -no-standard-includes, -no-warnings, -output,
10701 -output=, -pedantic, -pedantic-errors, -preprocess,
10702 -print-missing-file-dependencies, -trace-includes, -traditional,
10703 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
10704 -user-dependencies, -verbose, -write-dependencies,
10705 -write-user-dependencies, no-integrated-cpp, traditional): New.
10706
29a80ea6
NP
107072010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
10708
10709 PR objc/23710
ac1fc2fc
NP
10710 * c-common.h (objc_start_method_definition): Return bool instead
10711 of void.
10712 * stub-objc.c (objc_start_method_definition): Return bool instead
10713 of void.
10714
107152010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
10716
10717 PR objc/25965
10718 * c-common.h (objc_get_interface_ivars): New declaration.
10719 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 10720
de621752
ILT
107212010-09-15 Ian Lance Taylor <iant@google.com>
10722
10723 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 10724 messages. Remove period at end of warning message.
de621752 10725
ba885ec5
NS
107262010-09-09 Nathan Sidwell <nathan@codesourcery.com>
10727
10728 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
10729 (handle_alias_attribute): ... here.
10730 (handle_ifunc_attribute): New.
10731
c5ee1358
MM
107322010-09-06 Mark Mitchell <mark@codesourcery.com>
10733
10734 * c-common.h (do_warn_double_promotion): Declare.
10735 * c-common.c (do_warn_double_promotion): Define.
10736
0a0b3574
MM
107372010-09-05 Mark Mitchell <mark@codesourcery.com>
10738
10739 * c.opt (Wdouble-promotion): New.
10740
d1779886
JM
107412010-09-02 Joseph Myers <joseph@codesourcery.com>
10742
10743 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
10744 fvtable-thunks, fxref): Mark no longer supported in help text.
10745
2d2bd949
JM
107462010-09-02 Joseph Myers <joseph@codesourcery.com>
10747
10748 * c.opt (Wimport, fall-virtual, falt-external-templates,
10749 fdefault-inline, fenum-int-equiv, fexternal-templates,
10750 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
10751 fname-mangling-version-, fnew-abi, fnonnull-objects,
10752 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
10753 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
10754 applicable.
10755 (fhandle-exceptions): Mark with Alias and Warn.
10756 * c-opts.c (c_common_handle_option): Don't handle options marked
10757 as ignored.
10758
5de8299c
JM
107592010-09-02 Joseph Myers <joseph@codesourcery.com>
10760
10761 * c.opt (Wcomments, Werror-implicit-function-declaration,
10762 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
10763 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
10764 aliases.
10765 * c-common.c (option_codes): Use OPT_Wcomment instead of
10766 OPT_Wcomments.
10767 * c-opts.c (warning_as_error_callback, c_common_handle_option):
10768 Don't handle options marked as aliases.
10769
0ceb0201
RG
107702010-08-25 Richard Guenther <rguenther@suse.de>
10771
10772 * c-common.c (c_common_get_alias_set): Remove special
10773 handling for pointers.
10774
ac47786e
NF
107752010-08-20 Nathan Froyd <froydnj@codesourcery.com>
10776
10777 * c-common.c: Use FOR_EACH_VEC_ELT.
10778 * c-gimplify.c: Likewise.
10779 * c-pragma.c: Likewise.
10780
c878765b
JM
107812010-08-16 Joseph Myers <joseph@codesourcery.com>
10782
10783 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
10784 RejectDriver.
10785 (MMDX): Change back to MMD. Mark NoDriverArg instead of
10786 RejectDriver.
10787 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
10788 instead of OPT_MDX and OPT_MMDX.
10789
603349bf
JM
107902010-08-16 Joseph Myers <joseph@codesourcery.com>
10791
10792 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
10793
644fa7ac
JM
107942010-08-12 Joseph Myers <joseph@codesourcery.com>
10795
10796 * c.opt (MD, MMD): Change to MDX and MMDX.
10797 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
10798
481e1176
JM
107992010-08-11 Joseph Myers <joseph@codesourcery.com>
10800
10801 * c-opts.c (c_common_handle_option): Call handle_generated_option
10802 instead of handle_option.
10803
ac8dc9f7
NF
108042010-08-08 Nathan Froyd <froydnj@codesourcery.com>
10805
10806 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
10807 (maybe_apply_renaming_pragma): Delete unneeded declarations.
10808
4f8c876d
NF
108092010-08-08 Nathan Froyd <froydnj@codesourcery.com>
10810
10811 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
10812 (pending_redefine_extname): Change type to a VEC.
10813 (add_to_renaming_pragma_list): Update for new type of
10814 pending_redefine_extname.
ac8dc9f7 10815 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 10816
3b0c690e
AC
108172010-08-04 Arnaud Charlet <charlet@adacore.com>
10818
10819 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
10820 visited.
10821 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
10822 decide whether a type has already been declared/seen.
10823 Do not go to the original type.
10824 (dump_nested_types): New parameter forward.
10825 Generate forward declaration if needed and mark type as visited.
10826 (print_ada_declaration): Call dump_nested_types if not already done.
10827 Mark types as visited.
10828
1890bccc
JM
108292010-08-03 Joseph Myers <joseph@codesourcery.com>
10830
10831 * c.opt (-print-pch-checksum): Remove option.
10832 * c-opts.c (c_common_handle_option): Don't handle
10833 OPT_print_pch_checksum.
10834
5f20c657
JM
108352010-07-27 Joseph Myers <joseph@codesourcery.com>
10836
10837 * c-common.h (c_common_handle_option): Update prototype and return
10838 value type.
10839 * c-opts.c (c_common_handle_option): Update prototype and return
10840 value type. Update calls to handle_option and
10841 enable_warning_as_error.
10842
f551f80c
JJ
108432010-07-27 Jakub Jelinek <jakub@redhat.com>
10844
10845 PR c/45079
10846 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
10847
61ff2bdc
JM
108482010-07-27 Joseph Myers <joseph@codesourcery.com>
10849
10850 * c-common.h (c_common_missing_argument): Remove.
10851 * c-opts.c (c_common_missing_argument): Remove.
10852 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
10853 idirafter, imacros, include, isysroot, isystem, iquote): Add
10854 MissingArgError.
10855 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
10856
7a9bf9a4
JM
108572010-07-27 Joseph Myers <joseph@codesourcery.com>
10858
10859 * c-common.h (c_common_option_lang_mask,
10860 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
10861 New.
10862 (c_common_init_options): Update prototype.
10863 * c-opts.c (c_common_option_lang_mask): New.
10864 (c_common_initialize_diagnostics): Split out of
10865 c_common_init_options.
10866 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
10867 New.
10868 (c_common_init_options): Update prototype. Use decoded options in
10869 search for -lang-asm.
10870
910ad8de
NF
108712010-07-15 Nathan Froyd <froydnj@codesourcery.com>
10872
10873 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
10874 * c-format.c: Likewise.
10875
718f9c0f
MLI
108762010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
10877
10878 * c-common.h: Include diagnostic-core.h. Error if already
10879 included.
10880 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
10881
4d451982
MLI
108822010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
10883
adfac8df 10884 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
10885 Do not include expr.h
10886 (vector_mode_valid_p): Move here.
10887
119fe915
SB
108882010-06-21 DJ Delorie <dj@redhat.com>
10889
10890 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
10891 allow these pragmas anywhere.
10892
108932010-06-14 Jakub Jelinek <jakub@redhat.com>
10894
10895 PR bootstrap/44509
10896 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
10897 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
10898 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
10899 ggc_strdup instead of xstrdup.
10900
109012010-06-10 Jakub Jelinek <jakub@redhat.com>
10902
10903 * c-cppbuiltin.c: Include cpp-id-data.h.
10904 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
10905 (lazy_hex_fp_value): New function.
10906 (builtin_define_with_hex_fp_value): Provide definitions lazily.
10907
6662d794
MLI
109082010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
10909
10910 * c-gimplify.c: Do not include tree-flow.h
10911
38f8b050
JR
109122010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
10913
10914 PR other/44034
10915 * c-common.c: Rename targetm member:
10916 targetm.enum_va_list -> targetm.enum_va_list_p
10917
9589f23e
AS
109182010-06-28 Anatoly Sokolov <aesok@post.ru>
10919
10920 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
10921
3b06d379
SB
109222010-06-28 Steven Bosscher <steven@gcc.gnu.org>
10923
10924 * c-cppbuiltin.c: Do not include except.h.
10925
d166d4c3
AK
109262010-06-24 Andi Kleen <ak@linux.intel.com>
10927
9faeb493
UB
10928 * c-common.c (warn_for_omitted_condop): New.
10929 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 10930
70cb8be6
JM
109312010-06-21 Joseph Myers <joseph@codesourcery.com>
10932
10933 * c.opt (lang-objc): Remove.
10934 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
10935
a4c97feb
JR
109362010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
10937
10938 * c-opts.c: Include "tm_p.h".
10939
6e2f1956
JM
109402010-06-20 Joseph Myers <joseph@codesourcery.com>
10941
10942 * c-common.c (parse_optimize_options): Update call to
10943 decode_options.
10944
bc87224e
NF
109452010-06-18 Nathan Froyd <froydnj@codesourcery.com>
10946
10947 * c-common.c (record_types_used_by_current_var_decl): Adjust for
10948 new type of types_used_by_cur_var_decl.
10949
b49cf425
JR
109502010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
10951
10952 PR bootstrap/44512
10953 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
10954 for C++ standard compliance.
10955
59f9c2ed
JM
109562010-06-16 Jason Merrill <jason@redhat.com>
10957
10958 * c.opt: Add -Wnoexcept.
10959
33766b66
RG
109602010-06-16 Richard Guenther <rguenther@suse.de>
10961
10962 PR c/44555
10963 * c-common.c (c_common_truthvalue_conversion): Remove
10964 premature and wrong optimization concering ADDR_EXPRs.
10965
eff7e30c
AC
109662010-06-15 Arnaud Charlet <charlet@adacore.com>
10967
10968 * c-ada-spec.c (dump_sloc): Remove column info.
10969 (is_simple_enum): New function.
10970 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
10971 enum types when relevant.
10972
6312e84d
MLI
109732010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
10974
9faeb493 10975 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
10976 location.
10977
1cb42611
JM
109782010-06-10 Joseph Myers <joseph@codesourcery.com>
10979
10980 * c-opts.c (c_common_handle_option): Don't handle
10981 OPT_fshow_column.
10982
a9429e29
LB
109832010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
10984
10985 * c-pragma.c (push_alignment): Use typed GC allocation.
10986 (handle_pragma_push_options): Likewise.
10987
10988 * c-common.c (parse_optimize_options): Likewise.
10989
10990 * c-common.h (struct sorted_fields_type): Add variable_size GTY
10991 option.
10992
5498f011
JM
109932010-06-07 Joseph Myers <joseph@codesourcery.com>
10994
10995 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
10996 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
10997 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
10998 flag_signed_bitfields, warn_strict_null_sentinel,
10999 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
11000 flag_gen_declaration, flag_no_gnu_keywords,
11001 flag_implement_inlines, flag_implicit_templates,
11002 flag_implicit_inline_templates, flag_optional_diags,
11003 flag_elide_constructors, flag_default_inline, flag_rtti,
11004 flag_conserve_space, flag_access_control, flag_check_new,
11005 flag_new_for_scope, flag_weak, flag_working_directory,
11006 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
11007 flag_enforce_eh_specs, flag_threadsafe_statics,
11008 flag_pretty_templates): Remove.
11009 * c-common.h (flag_preprocess_only, flag_nil_receivers,
11010 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
11011 flag_replace_objc_classes, flag_undef, flag_no_builtin,
11012 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
11013 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
11014 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
11015 flag_no_gnu_keywords, flag_implement_inlines,
11016 flag_implicit_templates, flag_implicit_inline_templates,
11017 flag_optional_diags, flag_elide_constructors, flag_default_inline,
11018 flag_rtti, flag_conserve_space, flag_access_control,
11019 flag_check_new, flag_new_for_scope, flag_weak,
11020 flag_working_directory, flag_use_cxa_atexit,
11021 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
11022 flag_threadsafe_statics, flag_pretty_templates,
11023 warn_strict_null_sentinel): Remove.
11024 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
11025 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
11026 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
11027 fimplicit-inline-templates, fimplicit-templates,
11028 flax-vector-conversions, fms-extensions, fnil-receivers,
11029 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
11030 frtti, fshort-double, fshort-enums, fshort-wchar,
11031 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
11032 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
11033 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
11034 gen-decls, undef): Use Var.
11035 (fdefault-inline, foptional-diags): Document as doing nothing.
11036 * c-opts.c (c_common_handle_option): Remove cases for options now
11037 using Var. Mark ignored options as such.
11038
39dabefd
SB
110392010-06-05 Steven Bosscher <steven@gcc.gnu.org>
11040
9faeb493 11041 * c-common.c: Moved to here from parent directory.
39dabefd
SB
11042 * c-common.def: Likewise.
11043 * c-common.h: Likewise.
11044 * c-cppbuiltin.c: Likewise.
11045 * c-dump.c: Likewise.
11046 * c-format.c: Likewise.
11047 * c-format.h : Likewise.
11048 * c-gimplify.c: Likewise.
11049 * c-lex.c: Likewise.
11050 * c-omp.c: Likewise.
11051 * c.opt: Likewise.
11052 * c-opts.c: Likewise.
11053 * c-pch.c: Likewise.
11054 * c-ppoutput.c: Likewise.
11055 * c-pragma.c: Likewise.
11056 * c-pragma.h: Likewise.
11057 * c-pretty-print.c: Likewise.
11058 * c-pretty-print.h: Likewise.
11059 * c-semantics.c: Likewise.
11060 * stub-objc.c: Likewise.
11061
11062 * c-common.c: Include gt-c-family-c-common.h.
11063 * c-pragma.c: Include gt-c-family-c-pragma.h.
11064\f
8d9254fc 11065Copyright (C) 2010-2020 Free Software Foundation, Inc.
39dabefd
SB
11066
11067Copying and distribution of this file, with or without modification,
11068are permitted in any medium without royalty provided the copyright
11069notice and this notice are preserved.
This page took 3.755162 seconds and 5 git commands to generate.