]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
PR libstdc++/86963 Implement LWG 2729 constraints on tuple assignment
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
c5d725c0
NS
12018-08-17 Nathan Sidwell <nathan@acm.org>
2
10f04917
NS
3 * c-ada-spec.c (macro_length, dump_ada_macros): Constify.
4
c5d725c0
NS
5 * c-ada-spec.c: Don't #include "cpp-id-data.h"
6 * c-cppbuiltin.c: Likewise.
7
c0c12356
ML
82018-08-17 Martin Liska <mliska@suse.cz>
9
10 * c.opt: Remove Warn, Init and Report for options with
11 Ignore/Deprecated flag. Warning is done automatically for
12 Deprecated flags.
13
10fcc142
DM
142018-08-16 David Malcolm <dmalcolm@redhat.com>
15
16 PR c++/70693
17 * c-common.c (selftest::c_family_tests): Call
18 selftest::c_indentation_c_tests.
19 * c-common.h (selftest::c_indentation_c_tests): New decl.
20 * c-indentation.c: Include "selftest.h".
21 (next_tab_stop): Add "tab_width" param, rather than accessing
22 cpp_opts.
23 (get_visual_column): Likewise. Clarify comment. Bulletproof
24 against reading past the end of the line.
25 (get_first_nws_vis_column): Add "tab_width" param.
26 (detect_intervening_unindent): Likewise.
27 (should_warn_for_misleading_indentation): Read tab width from
28 cpp_opts and pass around.
29 (selftest::test_next_tab_stop): New test.
30 (selftest::assert_get_visual_column_succeeds): New function.
31 (ASSERT_GET_VISUAL_COLUMN_SUCCEEDS): New macro.
32 (selftest::assert_get_visual_column_fails): New function.
33 (ASSERT_GET_VISUAL_COLUMN_FAILS): New macro.
34 (selftest::test_get_visual_column): New test.
35 (selftest::c_indentation_c_tests): New function.
36
3f6677f4
NS
372018-08-16 Nathan Sidwell <nathan@acm.org>
38
39 * c-ada-spec.c (count_ada_macro): Use cpp_user_macro_p.
40 (store_ada_macro): Likewise.
41 * c-ppoutput.c (cb_used_define, dump_macro): Likewise.
42 * c-spellcheck.cc (should-suggest_as_macro_p): Likewise,
43
96e6ae57
DM
442018-08-15 David Malcolm <dmalcolm@redhat.com>
45
46 * c-format.c: Include "selftest-diagnostic.h" and
47 "gcc-rich-location.h".
48 (format_warning_at_char): Pass NULL for new label params of
49 format_warning_va.
50 (class indirection_suffix): New class.
51 (class range_label_for_format_type_mismatch): New class.
52 (format_type_warning): Move logic for generating "*" suffix to
53 class indirection_suffix. Create "fmt_label" and "param_label"
54 to show their types, and pass them to the
55 format_warning_at_substring calls.
56 (selftest::test_type_mismatch_range_labels): New test.
57 (selftest::c_format_c_tests): Call it.
58
23aa9f7c
MS
592018-08-13 Martin Sebor <msebor@redhat.com>
60
61 PR tree-optimization/71625
62 * c-common.c (braced_list_to_string): New function.
63 * c-common.h (braced_list_to_string): Declare it.
64
f10a9135
NS
652018-08-08 Nathan Sidwell <nathan@acm.org>
66
67 * c-common.c (try_to_locate_new_include_inertion_point): Use
68 linemap_included_from_linemap.
69 * c-lex.c (fe_file_change): Use linemap_included_from.
70 * c-ppoutput.c (pp_file_change): Likewise.
71
8a45b051
MS
722018-08-01 Martin Sebor <msebor@redhat.com>
73
74 PR tree-optimization/86650
75 * c-family/c-format.c (gcc_tdiag_char_table): Update comment for "%G".
76 (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Same.
77 (init_dynamic_diag_info): Update from "gcall *" to "gimple *".
78 * c-format.h (T89_G): Update to be "gimple *" rather than
79 "gcall *".
80 (local_gcall_ptr_node): Rename...
81 (local_gimple_ptr_node): ...to this.
82
e540ccc0
DM
832018-07-31 David Malcolm <dmalcolm@redhat.com>
84
85 * c-format.c (PP_FORMAT_CHAR_TABLE): New macro, based on existing
86 table entries for gcc_diag_char_table, and the 'Z' entry from
87 gcc_tdiag_char_table, changing the "chain" entry for 'Z' from
88 &gcc_tdiag_char_table[0] to &gcc_diag_char_table[0].
89 (gcc_diag_char_table): Use PP_FORMAT_CHAR_TABLE, implicitly
90 adding missing "Z" for this table. Remove erroneous "G" and "K"
91 entries.
92 (gcc_tdiag_char_table): Use PP_FORMAT_CHAR_TABLE. Remove "v".
93 (gcc_cdiag_char_table): Use PP_FORMAT_CHAR_TABLE.
94 (gcc_cxxdiag_char_table): Use PP_FORMAT_CHAR_TABLE. Remove "v".
95
425fc685
RE
962018-07-31 Richard Earnshaw <rearnsha@arm.com>
97
98 * c-common.c (speculation_safe_resolve_call): New function.
99 (speculation_safe_resolve_params): New function.
100 (speculation_safe_resolve_return): New function.
101 (resolve_overloaded_builtin): Handle __builtin_speculation_safe_value.
102 * c-cppbuiltin.c (c_cpp_builtins): Add pre-define for
103 __HAVE_SPECULATION_SAFE_VALUE.
104
181463c2
DM
1052018-07-20 David Malcolm <dmalcolm@redhat.com>
106
107 * c-common.c (c_cpp_error): Remove redundant "line_table"
108 parameter from call to rich_location::set_range.
109 (maybe_suggest_missing_token_insertion): Likewise.
110
0d7f9065
MS
1112018-07-20 Martin Sebor <msebor@redhat.com>
112
113 PR middle-end/82063
114 * gcc/c-family/c.opt (-Warray-bounds): Remove redundant -Wall.
115
00abf86c
MS
1162018-07-20 Martin Sebor <msebor@redhat.com>
117
118 PR middle-end/82063
119 * c-common.h (c_common_handle_option): Change function argument
120 to HOST_WIDE_INT.
121 * c-opts.c (c_common_init_options): Same.
122 (c_common_handle_option): Same. Remove special handling of
123 OPT_Walloca_larger_than_ and OPT_Wvla_larger_than_.
124 * c.opt (-Walloc-size-larger-than, -Walloca-larger-than): Change
125 options to take a HOST_WIDE_INT argument and accept a byte-size
126 suffix. Initialize.
127 (-Wvla-larger-than): Same.
128 (-Wno-alloc-size-larger-than, -Wno-alloca-larger-than): New.
129 (-Wno-vla-larger-than): Same.
130
9b452033
JJ
1312018-07-12 Jakub Jelinek <jakub@redhat.com>
132
133 * c-attribs.c (c_common_attribute_table): Add
134 "omp declare target implicit" attribute.
135
cd0762f3
RB
1362018-07-12 Richard Biener <rguenther@suse.de>
137
138 PR c/86453
139 * c-attribs.c (handle_packed_attribute): Do not build a variant
140 type with TYPE_PACKED, instead ignore the attribute if we may
141 not apply to the original type.
142
0b27c3ed
JJ
1432018-07-10 Jakub Jelinek <jakub@redhat.com>
144
145 PR c++/86443
146 * c-omp.c (c_omp_check_loop_iv_r, c_omp_check_loop_iv): Allow declv
147 to contain TREE_LIST for both the original class iterator and the
148 "last" helper var.
149
e730a0ef
EB
1502018-07-07 Eric Botcazou <ebotcazou@adacore.com>
151
152 * c-ada-spec.c (to_ada_name): Remove index parameter.
153 (pp_ada_tree_identifier): Likewise.
154 (dump_ada_macros): Adjust call to to_ada_name.
155 (struct overloaded_name_hash): Delete.
156 (struct overloaded_name_hasher): Likewise.
157 (overloaded_names): Likewise.
158 (compute_overloading_index): Likewise.
159 (dump_ada_decl_name): Do not call compute_overloading_index and
160 adjust calls to pp_ada_tree_identifier.
161 (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
162 (dump_ada_import): Add spc parameter and switch to aspect syntax.
163 (dump_ada_function_declaration): Adjust call to pp_ada_tree_identifier.
164 (dump_ada_enum_type): Remove type and display_convention parameters.
165 Adjust calls to pp_ada_tree_identifier.
166 (dump_ada_node): Likewise and for dump_ada_structure.
167 (dump_nested_type) <ENUMERAL_TYPE>: Adjust call to dump_ada_enum_type
168 and tidy up.
169 <RECORD_TYPE>: Adjust call to dump_ada_structure and switch to aspect
170 syntax.
171 (print_constructor): Adjust call to pp_ada_tree_identifier.
172 (print_destructor): Likewise.
173 (dump_ada_declaration): Switch to aspect syntax.
174 (dump_ada_structure): Likewise and tidy up. Replace display_convention
175 parameter with nested parameter.
176 (dump_ads): Emit pragma Ada_2012 in lieu of pragma Ada_2005.
177 (dump_ada_specs): Do not delete overloaded_names table.
178
8de583fc
PB
1792018-07-06 Peter Bergner <bergner@linux.ibm.com>
180
181 PR target/86324
e730a0ef 182 * c-attribs.c (handle_mode_attribute): Call translate_mode_attribute
8de583fc
PB
183 target hook.
184
09cff37b
NS
1852018-07-05 Nathan Sidwell <nathan@acm.org>
186
187 * c-lex.c (fe_file_change): Check SYSTEM_IMPLICIT_EXTERN_C not
188 NO_IMPLICIT_EXTERN_C.
189
98086b2b
ML
1902018-06-28 Martin Liska <mliska@suse.cz>
191
192 * cppspec.c: Include opt-suggestions.h.
193
829c6349
CLT
1942018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
195 Thomas Schwinge <thomas@codesourcery.com>
196 Cesar Philippidis <cesar@codesourcery.com>
197
198 * c-pragma.h (enum pragma_omp_clause): Add
199 PRAGMA_OACC_CLAUSE_{FINALIZE,IF_PRESENT}. Remove
200 PRAGMA_OACC_CLAUSE_PRESENT_OR_{COPY,COPYIN,COPYOUT,CREATE}.
201
f41b7612
JJ
2022018-06-20 Jakub Jelinek <jakub@redhat.com>
203
204 PR c++/86210
205 * c-common.c (check_nonnull_arg): Use fold_for_warn. Adjust obsolete
206 comment.
207
4252ccd7
MS
2082018-06-18 Martin Sebor <msebor@redhat.com>
209
210 PR middle-end/85602
211 * c-warn.c (sizeof_pointer_memaccess_warning): Check for attribute
212 nonstring.
213
e197e64e
KV
2142018-06-16 Kugan Vivekanandarajah <kuganv@linaro.org>
215
216 * c-common.c (c_common_truthvalue_conversion): Handle ABSU_EXPR.
217
34a7a230
JM
2182018-06-13 Jason Merrill <jason@redhat.com>
219
5cef3733
JM
220 * c-opts.c (c_common_post_options): Warn about useless -Wabi.
221 (c_common_handle_option) [OPT_Wabi_]: Remove flag_abi_compat_version
222 handling.
223
34a7a230
JM
224 PR c++/86094 - wrong code with defaulted move ctor.
225 * c-opts.c (c_common_post_options): Bump the current ABI version to
226 13. Set warn_abi_version and flag_abi_compat_version to the current
227 version rather than 0. Fix defaulting flag_abi_compat_version from
228 warn_abi_version.
229
bb0f14ae
MS
2302018-06-12 Martin Sebor <msebor@redhat.com>
231
232 PR c/85931
233 * c-warn.c (sizeof_pointer_memaccess_warning): Avoid warning when
234 sizeof source and destination yields the same value.
235
3713f2e2
ML
2362018-06-12 Martin Liska <mliska@suse.cz>
237
238 * c.opt: Make MPX-related options as Deprecated.
239
4af78ef8
DM
2402018-06-08 David Malcolm <dmalcolm@redhat.com>
241
242 * c-pretty-print.c (c_pretty_printer::statement): Use TDF_NONE
243 rather than 0.
244
31db0fe0
ML
2452018-06-08 Martin Liska <mliska@suse.cz>
246
247 * c-attribs.c (handle_bnd_variable_size_attribute): Remove support
248 for MPX (macros, related functions, fields in cgraph_node, ...).
249 (handle_bnd_legacy): Likewise.
250 (handle_bnd_instrument): Likewise.
251 * c.opt: Likewise.
252
fe16acf2
JJ
2532018-06-06 Jakub Jelinek <jakub@redhat.com>
254
255 PR c++/86068
256 * c-cppbuiltin.c (c_cpp_builtins): Fix a typo, set
257 __cpp_transactional_memory to 201500 instead of 210500.
258
4dbdb49b
JM
2592018-06-06 Jason Merrill <jason@redhat.com>
260
261 PR c++/85710 - ICE with -Wmemset-elt-size.
262 * c-warn.c (warn_for_memset): Don't crash on incomplete element type.
263
f8ad043f
JM
2642018-06-01 Jason Merrill <jason@redhat.com>
265
266 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_deduction_guides to
267 201703.
268
abc24d93
EB
2692018-06-01 Eric Botcazou <ebotcazou@adacore.com>
270
271 * c-ada-spec.c (dump_ada_declaration) <TYPE_DECL>: Generate a forward
272 declaration for a typedef independently of whether the declaration of
273 the subtype is generated.
274
d258f4aa
MS
2752018-05-31 Martin Sebor <msebor@redhat.com>
276
277 PR c/82063
278 * c.opt (-Wno-alloc-size-larger-than): New option.
279
b67b9225
DP
2802018-04-22 David Pagan <dave.pagan@oracle.com>
281
282 PR c/55976
283 * c-opts.c (c_common_post_options): Set default for warn_return_type
284 for C++/C++ with ObjC extensions only. For C, makes it possible to
285 differentiate between default (no option), -Wreturn-type, and
286 -Wno-return-type.
287
04eb9c55
JM
2882018-05-29 Jason Merrill <jason@redhat.com>
289
290 * c.opt (Winit-list-lifetime): New flag.
291
b0c31bc6
BE
2922018-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
293
294 * c-lex.c (get_fileinfo): Use splay_tree_compare_strings and
295 splay_tree_delete_pointers.
296
44284983
JJ
2972018-05-26 Jakub Jelinek <jakub@redhat.com>
298
299 PR bootstrap/85921
300 * c-warn.c (diagnose_mismatched_attributes): Remove unnecessary
301 noinline variable to workaround broken kernel headers.
302
b46b715d
JM
3032018-05-18 Jason Merrill <jason@redhat.com>
304
305 * c.opt (Wdeprecated-copy): New flag.
306
40659769
ML
3072018-05-17 Martin Liska <mliska@suse.cz>
308
309 * c-warn.c (overflow_warning): Do not use
310 space in between 'G_' and '('.
311
403962ea
JM
3122018-05-09 Jason Merrill <jason@redhat.com>
313
314 * c-common.c (valid_array_size_p): Add complain parameter.
315 * c-common.h: ...which defaults to true.
316
1c9ee609
JJ
3172018-05-11 Jakub Jelinek <jakub@redhat.com>
318
319 PR c/85696
320 * c-omp.c (c_omp_predetermined_sharing): Return
321 OMP_CLAUSE_DEFAULT_SHARED for artificial vars with integral type.
322
19916065
ML
3232018-05-11 Martin Liska <mliska@suse.cz>
324
325 PR sanitizer/85556
326 * c-attribs.c (handle_no_sanitize_attribute): Iterate all
327 TREE_LIST values.
328
79e7b1fe
JJ
3292018-05-10 Jakub Jelinek <jakub@redhat.com>
330
331 PR c++/85662
332 * c-common.h (fold_offsetof_1): Removed.
333 (fold_offsetof): Add TYPE argument defaulted to size_type_node and
334 CTX argument defaulted to ERROR_MARK.
335 * c-common.c (fold_offsetof_1): Renamed to ...
336 (fold_offsetof): ... this. Remove wrapper function. Add TYPE
337 argument, convert the pointer constant to TYPE and use size_binop
338 with PLUS_EXPR instead of fold_build_pointer_plus if type is not
339 a pointer type. Adjust recursive calls.
340
86c12f76
EB
3412018-05-10 Eric Botcazou <ebotcazou@adacore.com>
342
343 PR c++/85400
344 * c-attribs.c (handle_visibility_attribute): Do not set no_add_attrs.
345
ee336e84
NS
3462018-05-07 Nathan Sidwell <nathan@acm.org>
347
348 * c.opt (ffor-scope): Remove functionality, issue warning.
349
6c072e21
NS
3502018-05-03 Nathan Sidwell <nathan@acm.org>
351
352 * c.opt (ffriend-injection): Remove functionality, issue warning.
353
2cc7d3a7
DM
3542018-05-01 David Malcolm <dmalcolm@redhat.com>
355
356 PR c/84258
357 * c-format.c (struct format_check_results): Add field
358 "number_non_char".
359 (check_format_info): Initialize it, and warn if encountered.
360 (check_format_arg): Distinguish between wide char and
361 everything else when detecting arrays of non-char.
362
7761dfbe
DM
3632018-04-30 David Malcolm <dmalcolm@redhat.com>
364
365 * c-format.c (get_corrected_substring): Update for
366 location_get_source_line returning a char_span. Use a char_span
367 when handling the prefix of the correction.
368 * c-indentation.c (get_visual_column): Update for
369 location_get_source_line returning a char_span.
370 (get_first_nws_vis_column): Likewise.
371
62e98ef1
DM
3722018-03-29 David Malcolm <dmalcolm@redhat.com>
373
374 PR c++/84269
375 * known-headers.cc (get_stdlib_header_for_name): Add various names
376 from <assert.h>, <string.h>, and <memory.h>; add more names from
377 <stdio.h>.
378
a7dea617
JJ
3792018-03-27 Jakub Jelinek <jakub@redhat.com>
380
381 PR c++/85061
382 * c-common.c (fold_offsetof_1) <case COMPOUND_EXPR>: Assert that
383 get_base_address of the second operand is a VAR_P, rather than the
384 operand itself, and use gcc_checking_assert instead of gcc_assert.
385
889a3a30
MP
3862018-03-23 Marek Polacek <polacek@redhat.com>
387
388 PR c++/85045
389 * c-pretty-print.c (c_pretty_printer::multiplicative_expression)
390 <case RDIV_EXPR>: Tweak condition.
391
452154b9
EB
3922018-03-20 Eric Botcazou <ebotcazou@adacore.com>
393
394 * c-ada-spec.c (pp_ada_tree_identifier): Deal specifically with _Bool.
395
63ecb626
JJ
3962018-03-16 Jakub Jelinek <jakub@redhat.com>
397
ce811fc4
JJ
398 PR c/84909
399 * c-warn.c (conversion_warning): Replace "to to" with "to" in
400 diagnostics.
401
63ecb626
JJ
402 PR c/84910
403 * c-warn.c (diagnose_mismatched_attributes): Remove trailing space from
404 diagnostics.
405
a1295eec
RB
4062018-03-16 Richard Biener <rguenther@suse.de>
407
408 PR c/84873
409 * c-gimplify.c (c_gimplify_expr): Revert previous change. Instead
410 unshare the possibly folded expression.
411
919674fb
RB
4122018-03-15 Richard Biener <rguenther@suse.de>
413
414 PR c/84873
415 * c-gimplify.c (c_gimplify_expr): Do not fold expressions.
416
f99309b2
MS
4172018-03-13 Martin Sebor <msebor@redhat.com>
418
419 PR tree-optimization/84725
420 * c-attribs.c (handle_nonstring_attribute): Allow attribute nonstring
421 with all three narrow character types, including their qualified forms.
422
e9b9fa4c
MS
4232018-03-12 Martin Sebor <msebor@redhat.com>
424
425 PR tree-optimization/83456
426 * gcc/c-family/c-common.c (check_function_restrict): Return bool.
427 Restore checking of bounded built-in functions.
428 (check_function_arguments): Also return the result
429 of warn_for_restrict.
430 * gcc/c-family/c-common.c (check_function_restrict): Return bool.
431 * gcc/c-family/c-warn.c (warn_for_restrict): Return bool.
432
0805d020
MP
4332018-03-02 Marek Polacek <polacek@redhat.com>
434
435 PR c++/84171
436 * c-warn.c (warn_for_sign_compare): Bail out if any of the operands
437 is erroneous.
438
ed2a2f08
TS
4392018-03-02 Thomas Schwinge <thomas@codesourcery.com>
440
441 * c-attribs.c (c_common_attribute_table): Remove "cilk simd
442 function".
443
90abdde0
MP
4442018-03-01 Marek Polacek <polacek@redhat.com>
445
446 PR c++/84639
447 * c-attribs.c (common_handle_aligned_attribute): Don't use invalid
448 alignment in computation.
449
c6db43fa
EB
4502018-02-28 Eric Botcazou <ebotcazou@adacore.com>
451
452 * c-ada-spec.c (dump_ada_node) <NULLPTR_TYPE>: New case.
453 <REAL_TYPE>: Deal specifically with _Float128/__float128.
454
9e25c7ed
EB
4552018-02-28 Eric Botcazou <ebotcazou@adacore.com>
456
457 * c-ada-spec.c (dump_ada_double_name) <ENUMERAL_TYPE>: New case.
458 (is_char_array): Take a type instead of a declaration.
459 (dump_ada_array_type): Likewise.
460 (is_simple_enum): Minor tweak.
461 (dump_ada_enum_type): New function extracted from...
462 (dump_ada_node) <ENUMERAL_TYPE>: ...here. Invoke it.
463 <INTEGER_TYPE>: Remove unreachable code.
464 <RECORD_TYPE>: Likewise. Minor tweaks.
465 (dump_nested_type) <ARRAY_TYPE>: Adjust to above changes.
466 <ENUMERAL_TYPE>: New case.
467 <RECORD_TYPE>: Factor out common code.
468 (dump_ada_declaration) <ARRAY_TYPE>: Adjust to above changes.
469 Minor tweaks. Deal with enumeral types.
470 (dump_ada_structure): Minor tweaks.
471
09de3550
EB
4722018-02-28 Eric Botcazou <ebotcazou@adacore.com>
473
474 * c-ada-spec.c (dump_ada_node) <POINTER_TYPE>: Do not use generic
475 address for incomplete structures.
476 (dump_forward_type): Do not bail out for incomplete structures.
477 (dump_ada_declaration): Do not special-case incomplete structures
478 for subtypes. Dump them as null records for types.
479
095d8d4b
EB
4802018-02-28 Eric Botcazou <ebotcazou@adacore.com>
481
482 * c-ada-spec.c (dump_ada_import): Use boolean and fix formatting.
483 (is_char_array): Fix formatting.
484 (dump_template_types): Likewise.
485 (dump_generic_ada_node): Rename into...
486 (dump_ada_node): ...this.
487 <POINTER_TYPE>: Remove superfluous space. Use generic address for
488 incomplete structures and not for empty structures. Do not use it
489 when forward declarations are needed.
490 (dump_forward_type): New function.
491 (dump_nested_types): Remove FORWARD parameter. Do not consider
492 TREE_VISITED and do not generate a forward declaration. Only dump
493 original nested types for nested declaration.
494 (dump_nested_type) <POINTER_TYPE>: Call dump_forward_type.
495 <ARRAY_TYPE>: Likewise if the component type is an anonymous pointer.
496 <RECORD_TYPE>: Do not consider TREE_VISITED.
497 (dump_ada_declaration): Use booleans and fix formatting throughout.
498 <TYPE_DECL>: Skip incomplete structures and not empty structures.
499 Call dump_forward_type instead of dump_nested_types for a typedef.
500 Remove superfluous check and adjust call to dump_nested_types.
501 <POINTER_TYPE>: Call dump_forward_type and fall through.
502 (dump_ada_struct_decl): Rename into...
503 (dump_ada_structure): ...this. Do not special-case empty structures.
504
d4cfd486
MS
5052018-02-27 Martin Sebor <msebor@redhat.com>
506
507 PR c++/83871
508 * c.opt (-Wmissing-attributes): New option.
509
b22dbd03
ML
5102018-02-21 Martin Liska <mliska@suse.cz>
511
512 * c.opt (Wcatch-value=): Add IntegerRange.
513
883dfe2a
JM
5142018-02-15 Jason Merrill <jason@redhat.com>
515
516 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_deduction_guides.
517
0444aa9c
NS
5182018-02-09 Nathan Sidwell <nathan@acm.org>
519
520 PR c/84293
521 * c-common.h (strict_aliasing_warning): Drop OTYPE arg, insert LOC
522 arg.
523 * c-warn.c (strict_aliasing_warning): Drop OTYPE arg, require LOC
524 arg. Adjust.
525
cea71f0a
MS
5262018-02-09 Martin Sebor <msebor@redhat.com>
527
528 PR lto/84212
529 * c.opt (-Wstringop-overflow, -Warray-bounds): Add LTO.
530 (-Walloc-size-larger-than, -Wformat-truncation=): Same.
531 (-Wmaybe-uninitialized, -Wnonnull, -Wrestrict): Same.
532 (-Wstrict-overflow, -Wsuggest-attribute): Same.
533 (-Wuninitialized): Same.
534
8c8b7be5
EB
5352018-02-09 Eric Botcazou <ebotcazou@adacore.com>
536
537 * c-ada-spec.c (dump_ada_declaration): Do not generate the 'constant'
538 keyword for components.
539
7c30b12a
PC
5402018-02-02 Paolo Carlini <paolo.carlini@oracle.com>
541
542 * c-common.h (DECL_UNNAMED_BIT_FIELD): New.
543
eece7fe5
JK
5442018-02-02 Julia Koval <julia.koval@intel.com>
545
546 * c-common.h (omp_clause_mask): Move to wide_int_bitmask.h.
547
7d07a93a
MP
5482018-01-29 Marek Polacek <polacek@redhat.com>
549
550 PR c/83966
551 * c-format.c (check_function_format): Check current_function_decl.
552
53723269
JJ
5532018-01-27 Jakub Jelinek <jakub@redhat.com>
554
555 * c-cppbuiltin.c (c_cpp_builtins): Use ggc_strdup for the fp_suffix
556 argument.
557 (LAZY_HEX_FP_VALUES_CNT): Define.
558 (lazy_hex_fp_values): Allow up to LAZY_HEX_FP_VALUES_CNT lazy hex fp
559 values rather than just 12.
560 (builtin_define_with_hex_fp_value): Likewise.
561
7365279f
BK
5622018-01-18 Boris Kolpackov <boris@codesynthesis.com>
563
564 PR other/70268
53723269
JJ
565 * c.opt (-fmacro-prefix-map): New option.
566 * c-opts.c (c_common_handle_option): Handle it.
567 * c-lex.c (init_c_lex): Set remap_filename cpp callback.
568 * c-ppoutput.c (init_pp_output): Likewise.
7365279f 569
bb9869d5
DM
5702018-01-17 David Malcolm <dmalcolm@redhat.com>
571
572 PR c++/83814
573 * c-common.c (fold_for_warn): Move to c/c-fold.c and cp/expr.c.
574
68dc87c3
EB
5752018-01-10 Eric Botcazou <ebotcazou@adacore.com>
576
577 * c-ada-spec.c (dump_number): Add FLOAT_P parameter.
578 Skip 'f' and 'F' characters if it is true.
579 (store_ada_macro): Minor tweak.
580 (dump_ada_macros) <CPP_COMMENT>: Likewise.
581 <CPP_WSTRING>: Likewise.
582 <CPP_STRING>: Output '&' in the buffer if not the first string.
583 <CPP_NUMBER>: Adjust calls to dump_number.
584
9a004410
DM
5852018-01-10 David Malcolm <dmalcolm@redhat.com>
586
587 PR c++/43486
588 * c-common.c: Include "selftest.h".
589 (get_atomic_generic_size): Perform the test for integral type
590 before the range test for any integer constant, fixing indentation
591 of braces. Call fold_for_warn before testing for an INTEGER_CST.
592 (reject_gcc_builtin): Strip any location wrapper from EXPR.
593 (selftest::test_fold_for_warn): New function.
594 (selftest::c_common_c_tests): New function.
595 (selftest::c_family_tests): Call it, and
596 selftest::c_pretty_print_c_tests.
597 * c-common.h (selftest::c_pretty_print_c_tests): New decl.
598 * c-format.c (check_format_arg): Convert VAR_P check to a
599 fold_for_warn.
600 * c-pretty-print.c: Include "selftest.h".
601 (pp_c_cast_expression): Don't print casts for location wrappers.
602 (selftest::assert_c_pretty_printer_output): New function.
603 (ASSERT_C_PRETTY_PRINTER_OUTPUT): New macro.
604 (selftest::test_location_wrappers): New function.
605 (selftest::c_pretty_print_c_tests): New function.
606 * c-warn.c (warn_for_memset): Call fold_for_warn on the arguments.
607
5c0caeb3
RS
6082018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
609 Alan Hayward <alan.hayward@arm.com>
610 David Sherwood <david.sherwood@arm.com>
611
612 * c-common.c (c_common_type_for_mode): Handle MODE_VECTOR_BOOL.
613
73a699ae
RS
6142018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
615 Alan Hayward <alan.hayward@arm.com>
616 David Sherwood <david.sherwood@arm.com>
617
618 * c-ubsan.c (ubsan_instrument_shift): Treat GET_MODE_BITSIZE
619 as polynomial.
620
928686b1
RS
6212018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
622 Alan Hayward <alan.hayward@arm.com>
623 David Sherwood <david.sherwood@arm.com>
624
625 * c-common.c (vector_types_convertible_p, c_build_vec_perm_expr)
626 (convert_vector_to_array_for_subscript): Handle polynomial
627 TYPE_VECTOR_SUBPARTS.
628 (c_common_type_for_mode): Check valid_vector_subparts_p.
629 * c-pretty-print.c (pp_c_initializer_list): Handle polynomial
630 VECTOR_CST_NELTS.
631
85ec4feb
JJ
6322018-01-03 Jakub Jelinek <jakub@redhat.com>
633
634 Update copyright years.
635
170a8bd6
EB
6362017-12-22 Mike Stump <mikestump@comcast.net>
637 Eric Botcazou <ebotcazou@adacore.com>
638
639 * c-pragma.c (init_pragma): Register pragma GCC unroll.
640 * c-pragma.h (enum pragma_kind): Add PRAGMA_UNROLL.
641
18408e96
AO
6422017-12-22 Alexandre Oliva <aoliva@redhat.com>
643
644 PR debug/83527
645 PR debug/83419
646 * c-semantics.c (only_debug_stmts_after_p): New.
647 (pop_stmt_list): Clear side effects in debug-only stmt list.
648 Check for single nondebug stmt followed by debug stmts only.
649
c12d20d4
AO
6502017-12-21 Alexandre Oliva <aoliva@redhat.com>
651
652 PR debug/83419
653 * c-semantics.c (pop_stmt_list): Propagate side effects from
654 single nondebug stmt to container list.
655
01512446
JJ
6562017-12-19 Jakub Jelinek <jakub@redhat.com>
657
658 * known-headers.cc (get_stdlib_header_for_name): Replace Yoda
659 conditions with typical order conditions.
660
82cfbd01
MP
6612017-12-18 Marek Polacek <polacek@redhat.com>
662
663 * c-warn.c (warn_logical_operator): Return early if -Wlogical-op is
664 not in effect.
665
99da11ec
MS
6662017-12-17 Martin Sebor <msebor@redhat.com>
667
668 * c-attribs.c (common_handle_aligned_attribute): Avoid issuing
669 an error for attribute warn_if_not_aligned.
670
cc8bea0a
MS
6712017-12-16 Martin Sebor <msebor@redhat.com>
672
673 PR tree-optimization/78918
674 * c-common.c (check_function_restrict): Avoid checking built-ins.
675 * c.opt (-Wrestrict): Include in -Wall.
676
4849deb1
JJ
6772017-12-15 Jakub Jelinek <jakub@redhat.com>
678
679 * c-attribs.c (c_common_attribute_table,
680 c_common_format_attribute_table): Swap affects_type_identity
681 and handler fields, adjust comments.
682
c65e18d3
BE
6832017-12-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
684
685 * c.opt (Wcast-function-type): New warning option.
686 * c-lex.c (get_fileinfo): Avoid warning.
687 * c-ppoutput.c (scan_translation_unit_directives_only): Remove cast.
688
2004617a
QZ
6892017-12-14 Qing Zhao <qing.zhao@oracle.com>
690
7365279f 691 PR middle_end/79538
2004617a
QZ
692 * c-cppbuiltin.c (builtin_define_with_hex_fp_value):
693 Adjust the size of buf1 and buf2, add a new buf to avoid
694 format-overflow warning.
695
96a95ac1
AO
6962017-12-12 Alexandre Oliva <aoliva@redhat.com>
697
698 * c-semantics.c (pop_stmt_list): Move begin stmt marker into
699 subsequent statement list.
700
5d9ae53d
MS
7012017-12-07 Martin Sebor <msebor@redhat.com>
702
703 PR c/81544
704 PR c/81566
705 * c-attribs.c (attr_aligned_exclusions): New array.
706 (attr_alloc_exclusions, attr_cold_hot_exclusions): Same.
707 (attr_common_exclusions, attr_const_pure_exclusions): Same.
708 (attr_gnu_inline_exclusions, attr_inline_exclusions): Same.
709 (attr_noreturn_exclusions, attr_returns_twice_exclusions): Same.
710 (attr_warn_unused_result_exclusions): Same.
711 (handle_hot_attribute, handle_cold_attribute): Simplify.
712 (handle_const_attribute): Warn on function returning void.
713 (handle_pure_attribute): Same.
714 (handle_aligned_attribute): Diagnose conflicting attribute
715 specifications.
716 * c-warn.c (diagnose_mismatched_attributes): Simplify.
717
c79144f8
DM
7182017-12-06 David Malcolm <dmalcolm@redhat.com>
719
720 PR c/83236
721 * c-common.c (selftest::c_family_tests): Call
722 selftest::c_spellcheck_cc_tests.
723 * c-common.h (selftest::c_spellcheck_cc_tests): New decl.
724 * c-spellcheck.cc: Include "selftest.h".
725 (name_reserved_for_implementation_p): New function.
726 (should_suggest_as_macro_p): New function.
727 (find_closest_macro_cpp_cb): Move the check for NT_MACRO to
728 should_suggest_as_macro_p and call it.
729 (selftest::test_name_reserved_for_implementation_p): New function.
730 (selftest::c_spellcheck_cc_tests): New function.
731 * c-spellcheck.h (name_reserved_for_implementation_p): New decl.
732
613bc14f
DM
7332017-12-06 David Malcolm <dmalcolm@redhat.com>
734
735 * c-spellcheck.cc: New file, taken from macro-handling code in
736 spellcheck-tree.c.
737 * c-spellcheck.h: New file, taken from macro-handling code in
738 spellcheck-tree.h.
739
e76c7157
JJ
7402017-12-01 Jakub Jelinek <jakub@redhat.com>
741
742 * c-attribs.c (c_common_attribute_table): Remove "cilk simd function"
743 attribute.
744 (handle_simd_attribute): Don't check for "cilk simd function"
745 attribute. Reindent, formatting changes.
746
b0da4034
JK
7472017-11-30 Julia Koval <julia.koval@intel.com>
748
749 * c-common.h (inv_list): Remove.
750
058f0b9e
JJ
7512017-11-28 Jakub Jelinek <jakub@redhat.com>
752
753 PR sanitizer/81275
754 * c-common.c (c_switch_covers_all_cases_p_1,
755 c_switch_covers_all_cases_p): New functions.
756 * c-common.h (c_switch_covers_all_cases_p): Declare.
757
5e9d6aa4
JK
7582017-11-28 Julia Koval <julia.koval@intel.com>
759 Sebastian Peryt <sebastian.peryt@intel.com>
760
761 * array-notation-common.c: Delete.
762 * c-cilkplus.c: Ditto.
763 * c-common.c (_Cilk_spawn, _Cilk_sync, _Cilk_for): Remove.
764 * c-common.def (ARRAY_NOTATION_REF): Remove.
765 * c-common.h (RID_CILK_SPAWN, build_array_notation_expr,
766 build_array_notation_ref, C_ORT_CILK, c_check_cilk_loop,
767 c_validate_cilk_plus_loop, cilkplus_an_parts,
768 cilk_ignorable_spawn_rhs_op,
769 cilk_recognize_spawn): Remove.
770 * c-gimplify.c (CILK_SPAWN_STMT): Remove.
771 * c-omp.c: Remove CILK_SIMD check.
772 * c-pragma.c: Ditto.
773 * c-pragma.h: Remove CILK related pragmas.
774 * c-pretty-print.c (c_pretty_printer::postfix_expression): Remove
775 ARRAY_NOTATION_REF condition.
776 (c_pretty_printer::expression): Ditto.
777 * c.opt (fcilkplus): Remove.
778 * cilk.c: Delete.
779
1af4ebf5
MG
7802017-11-21 Marc Glisse <marc.glisse@inria.fr>
781
782 * c-pretty-print.c (pp_c_additive_expression,
783 c_pretty_printer::expression): Handle POINTER_DIFF_EXPR.
784
d44ed508
JJ
7852017-11-21 Jakub Jelinek <jakub@redhat.com>
786
7d2f0f9b
JJ
787 * c-common.c (get_nonnull_operand): Use tree_to_uhwi.
788
d44ed508
JJ
789 PR c++/83059
790 * c-common.c (get_atomic_generic_size): Use TREE_INT_CST_LOW
791 instead of tree_to_uhwi, formatting fix.
792
26edace6
DM
7932017-11-20 David Malcolm <dmalcolm@redhat.com>
794
795 PR c/81404
796 * known-headers.cc: New file, based on material from c/c-decl.c.
797 (suggest_missing_header): Copied as-is.
798 (get_stdlib_header_for_name): New, based on get_c_name_hint but
799 heavily edited to add C++ support. Add some knowledge about
800 <limits.h>, <stdint.h>, and <wchar.h>.
801 * known-headers.h: Likewise.
802
6c7a259b
DM
8032017-11-20 David Malcolm <dmalcolm@redhat.com>
804
805 * c-common.h (enum lookup_name_fuzzy_kind): Move to name-hint.h.
806 (lookup_name_fuzzy): Likewise. Convert return type from
807 const char * to name_hint. Add location_t param.
808 * name-hint.h: New header.
809
f9c59f7e
JJ
8102017-11-19 Jakub Jelinek <jakub@redhat.com>
811
812 PR c/66618
813 PR c/69960
814 * c-common.h (c_fully_fold): Add LVAL argument defaulted to false.
815
1e39313a
JM
8162017-11-16 Joseph Myers <joseph@codesourcery.com>
817
818 * c.opt (-std=c17, std=gnu17, -std=iso9899:2017): Refer to 2018
819 expected publication date of C17.
820 (-std=c18, -std=gnu18, -std=iso9899:2018): New option aliases.
821
3ca0dc60
JM
8222017-11-15 Joseph Myers <joseph@codesourcery.com>
823
824 PR c/81156
825 * c-common.c (c_common_reswords): Add __builtin_tgmath.
826 * c-common.h (enum rid): Add RID_BUILTIN_TGMATH.
827
025d57f0
MS
8282017-11-10 Martin Sebor <msebor@redhat.com>
829
830 PR c/81117
831 * c-common.c (catenate_strings): Use memcpy instead of strncpy.
832 * c-warn.c (sizeof_pointer_memaccess_warning): Handle arrays.
833 * c.opt (-Wstringop-truncation): New option.
834
1b6fa695
ML
8352017-11-06 Martin Liska <mliska@suse.cz>
836
837 PR middle-end/82404
838 * c-opts.c (c_common_post_options): Set -Wreturn-type for C++
839 FE.
840 * c.opt: Set default value of warn_return_type.
841
64a5912c
DM
8422017-10-31 David Malcolm <dmalcolm@redhat.com>
843
844 * c-common.c (binary_op_error): Update for renaming of
845 error_at_rich_loc.
846 (c_parse_error): Likewise.
847 * c-warn.c (warn_logical_not_parentheses): Likewise for
848 renaming of inform_at_rich_loc.
849 (warn_for_restrict): Likewise for renaming of
850 warning_at_rich_loc_n.
851
c76dc9c3
JM
8522017-10-30 Joseph Myers <joseph@codesourcery.com>
853
854 * c.opt (std=c17, std=gnu17, std=iso9899:2017): New options.
855 * c-opts.c (set_std_c17): New function.
856 (c_common_init_options): Use gnu17 as default C version.
857 (c_common_handle_option): Handle -std=c17 and -std=gnu17.
858
ee5fd23a
MM
8592017-10-27 Michael Meissner <meissner@linux.vnet.ibm.com>
860
861 * c-cppbuiltin.c (mode_has_fma): Add support for PowerPC KFmode.
862 (c_cpp_builtins): If a machine has a fast fma _Float<N> and
863 _Float<N>X variant, define __FP_FAST_FMA<N> and/or
864 __FP_FAST_FMA<N>X.
865
d1047465
MP
8662017-10-23 Marek Polacek <polacek@redhat.com>
867
868 PR c/82681
869 * c-warn.c (warnings_for_convert_and_check): Fix typos.
870
9e878cf1
EB
8712017-10-19 Eric Botcazou <ebotcazou@adacore.com>
872
873 * c-common.c (check_builtin_function_arguments): Also check arguments
874 of __builtin_alloca_with_align_and_max.
875
89b6abbb
DM
8762017-10-17 David Malcolm <dmalcolm@redhat.com>
877
878 * c-format.c (format_warning_at_char): Pass UNKNOWN_LOCATION
879 rather than NULL to format_warning_va.
880 (check_format_types): Likewise when calling format_type_warning.
881 Remove code to extract source_ranges and source_range * in favor
882 of just a location_t.
883 (format_type_warning): Convert source_range * param to a
884 location_t.
885
39382c09
JJ
8862017-10-13 Jakub Jelinek <jakub@redhat.com>
887
888 * c-gimplify.c (c_gimplify_expr): Handle [LR]ROTATE_EXPR like
889 [LR]SHIFT_EXPR.
890
62e1c678
DM
8912017-10-12 David Malcolm <dmalcolm@redhat.com>
892
893 * c-common.c (enum missing_token_insertion_kind): New enum.
894 (get_missing_token_insertion_kind): New function.
895 (maybe_suggest_missing_token_insertion): New function.
896 * c-common.h (maybe_suggest_missing_token_insertion): New decl.
897
b90c9338
NS
8982017-10-11 Nathan Sidwell <nathan@acm.org>
899
900 * c-opts.c (add_prefixed_path): Change chain to incpath_kind.
901 (c_common_handle_option): Update incpath_kind names.
902
3a266bcd
ML
9032017-10-11 Martin Liska <mliska@suse.cz>
904
905 PR sanitizer/82490
906 * c-attribs.c (handle_no_sanitize_attribute): Report directly
907 Wattributes warning.
908
8e6cdc90
RS
9092017-10-10 Richard Sandiford <richard.sandiford@linaro.org>
910
911 * c-ada-spec.c (dump_generic_ada_node): Use wi::to_wide when
912 operating on trees as wide_ints.
913 * c-common.c (pointer_int_sum): Likewise.
914 * c-pretty-print.c (pp_c_integer_constant): Likewise.
915 * c-warn.c (match_case_to_enum_1): Likewise.
916 (c_do_switch_warnings): Likewise.
917 (maybe_warn_shift_overflow): Likewise.
918
802b38c9
JJ
9192017-10-10 Jakub Jelinek <jakub@redhat.com>
920
921 PR c/82437
922 * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_wide
923 instead of wide_int::from.
924
4e34b338
JJ
9252017-10-06 Jakub Jelinek <jakub@redhat.com>
926
927 PR c/82437
928 * c-warn.c (warn_tautological_bitwise_comparison): Instead of
929 using to_widest use wide_int with the larger of the two precisions.
930
4bc4b2b4
BE
9312017-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
932
933 * c-pretty-print.c (pp_c_parameter_type_list): Print ... for variadic
934 functions.
935
a1488398
RS
9362017-10-02 Richard Sandiford <richard.sandiford@linaro.org>
937
938 * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_widest
939 when combining the original unconverted comparison operands.
940
01c9fb68
JJ
9412017-09-29 Jakub Jelinek <jakub@redhat.com>
942
943 * c-attribs.c (handle_noipa_attribute): Don't add "stack_protect"
944 attribute.
945
6e3e8419
EB
9462017-09-29 Eric Botcazou <ebotcazou@adacore.com>
947
948 * c-ada-spec.c (to_ada_name): Add index parameter.
949 (pp_ada_tree_identifier): Likewise.
950 (dump_ada_macros): Adjust call to to_ada_name.
951 (struct overloaded_name_hash): New type.
952 (struct overloaded_name_hasher): Likewise.
953 (overloaded_names): New hash table.
954 (compute_overloading_index): New function.
955 (dump_ada_decl_name): Call it and pass the result to
956 pp_ada_tree_identifier.
957 (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
958 (dump_ada_function_declaration): Likewise.
959 (dump_generic_ada_node): Likewise.
960 (print_constructor): Likewise.
961 (print_destructor): Likewise.
962 (dump_ada_specs): Delete overloaded_names table.
963
79310774
EB
9642017-09-29 Eric Botcazou <ebotcazou@adacore.com>
965
966 * c-ada-spec.c (max_ada_macros): Move around.
967 (store_ada_macro_index): Likewise.
968 (source_file): Rename into...
969 (macro_source_file): ...this.
970 (count_ada_macro): Move around.
971 (store_ada_macro): Likewise.
972 (compare_macro): Likewise.
973 (print_ada_macros): Merge in...
974 (dump_ada_macros): ...this.
975 (source_file_base): Rename into...
976 (current_source_file): ...this.
977 (print_comment): Move around.
978 (dump_ada_nodes): Call dump_ada_declaration directly.
979 (struct with): Change type of limited field to bool.
980 (append_withs): Change type of limited_access parameter to bool.
981 (pp_ada_tree_identifie): Likewise.
982 (dump_ada_decl_nam): Likewise.
983 (dump_generic_ada_node): Likewise. Do not print the return type.
984 (to_ada_name): Change type of space_found parameter to bool.
985 (dump_ada_function_declaration): Return void and change type of
986 parameters to bool. Also print the return type for a function.
987 (print_ada_methods): Rename into...
988 (dump_ada_methods): ...this.
989 (print_ada_declaration): Rename into ...
990 (dump_ada_declaration): ...this. Do not print the return type.
991 (print_ada_struct_decl): Rename into...
992 (dump_ada_struct_decl): ...this.
993
7d386d45
JJ
9942017-09-29 Jakub Jelinek <jakub@redhat.com>
995
996 * c-attribs.c (handle_packed_attribute): Test DECL_C_BIT_FIELD
997 rather than DECL_INITIAL.
998 (common_handle_aligned_attribute): Likewise.
999
9ed32e27
AO
10002017-09-20 Alexandre Oliva <aoliva@redhat.com>
1001
1002 * c.opt (gen-decls): Add RejectNegative.
1003
026a79f7
AS
10042017-09-15 Andrew Sutton <andrew.n.sutton@gmail.com>
1005 Jakub Jelinek <jakub@redhat.com>
1006
1007 Add support for -std=c++2a.
1008 * c-common.h (cxx_dialect): Add cxx2a as a dialect.
1009 * opt.c: Add options for -std=c++2a and -std=gnu++2a.
1010 * c-opts.c (set_std_cxx2a): New.
1011 (c_common_handle_option): Set options when -std=c++2a is enabled.
1012 (c_common_post_options): Adjust comments.
1013 (set_std_cxx14, set_std_cxx17): Likewise.
1014
4a8ca690
EB
10152017-09-15 Eric Botcazou <ebotcazou@adacore.com>
1016
1017 * c-pragma.c (handle_pragma_scalar_storage_order): Expand on error
1018 message for non-uniform endianness and issue a warning in C++.
1019
7b936140
JJ
10202017-09-15 Jakub Jelinek <jakub@redhat.com>
1021
1022 * c.opt (Wc++1z-compat): Change from option to undocumented alias.
1023 (Wc++17-compat): Change from undocumented alias to option.
1024 (Wnoexcept-type): Enable by Wc++17-compat instead of Wc++1z-compat,
1025 change C++1z to C++17 in description.
1026 (std=c++1z, std=gnu++1z): Change from option to undocumented
1027 deprecated alias.
1028 (std=c++17, std=gnu++17): Change from undocumented alias to option.
1029 Adjust description.
1030 * c-common.h (enum cxx_dialect): Rename cxx1z to cxx17.
1031 * c-opts.c (set_std_cxx1z): Rename to ...
1032 (set_std_cxx17): ... this.
1033 (c_common_handle_option): Rename OPT_std_c__1z to OPT_std_c__17
1034 and OPT_std_gnu__1z to OPT_std_gnu__17. Adjust set_std_cxx1z
7365279f 1035 caller.
7b936140
JJ
1036 (c_common_post_options): Use cxx17 instead of cxx1z. Adjust
1037 comments.
1038
12263f13
L
10392017-09-12 H.J. Lu <hongjiu.lu@intel.com>
1040
1041 * c-attribs.c (common_handle_aligned_attribute): Don't warn
1042 function alignment if warn_if_not_aligned_p is true.
1043
6836632e
NS
10442017-09-12 Nathan Sidwell <nathan@acm.org>
1045
1046 * c-common.c (field_decl_cmp, resort_data, resort_field_decl_cmp,
1047 resort_sorted_fields): Move to c/c-decl.c.
1048 * c-common.h (field_decl_cmp, resort_sorted_fields): Delete.
1049 (struct sorted_fields_type): Move to c/c-lang.h.
1050
019bf9ad
JW
10512017-09-09 Jonathan Wakely <jwakely@redhat.com>
1052
1053 PR c++/81852
1054 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_threadsafe_static_init.
1055
bc7fe952
MP
10562017-09-04 Marek Polacek <polacek@redhat.com>
1057
1058 PR c/81783
1059 * c-warn.c (warn_tautological_bitwise_comparison): New function.
1060 (warn_tautological_cmp): Call it.
1061
de7c2c6a
BK
10622017-09-01 Boris Kolpackov <boris@codesynthesis.com>
1063
1064 * c-opts.c (c_common_finish): Write dependency information even if
1065 there are errors.
1066
d2e05fcb
JJ
10672017-09-01 Jakub Jelinek <jakub@redhat.com>
1068
1069 PR c/81887
1070 * c-pragma.c (omp_pragmas): Move "ordered" entry from here to ...
1071 (omp_pragmas_simd): ... here.
1072 * c-omp.c (c_finish_omp_ordered): If clauses isn't simd clause alone,
1073 create new clauses list containing just simd clause.
1074
18e2a8b8
RS
10752017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1076 Alan Hayward <alan.hayward@arm.com>
1077 David Sherwood <david.sherwood@arm.com>
1078
1079 * c-attribs.c (vector_mode_valid_p) Fold GET_MODE_INNER call
1080 into scalar_mode_supported_p call.
1081 (handle_mode_attribute): Update call to scalar_mode_supported_p.
1082
16d22000
RS
10832017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1084 Alan Hayward <alan.hayward@arm.com>
1085 David Sherwood <david.sherwood@arm.com>
1086
1087 * c-common.c (c_common_fixed_point_type_for_size): Use opt_scalar_mode
1088 for the mode iterator.
1089
b397965c
RS
10902017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1091 Alan Hayward <alan.hayward@arm.com>
1092 David Sherwood <david.sherwood@arm.com>
1093
1094 * c-lex.c (interpret_fixed): Use SCALAR_TYPE_MODE.
1095 * c-common.c (c_build_vec_perm_expr): Likewise.
1096
357b7604
RS
10972017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1098 Alan Hayward <alan.hayward@arm.com>
1099 David Sherwood <david.sherwood@arm.com>
1100
1101 * c-common.c (c_common_type_for_mode): Use as_a <scalar_int_mode>.
1102
e05c94ba
RS
11032017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1104 Alan Hayward <alan.hayward@arm.com>
1105 David Sherwood <david.sherwood@arm.com>
1106
1107 * c-attribs.c (handle_mode_attribute): Check for a scalar_int_mode
1108 before calling targetm.addr_space.valid_pointer_mode.
1109
5c20c4af
RS
11102017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1111 Alan Hayward <alan.hayward@arm.com>
1112 David Sherwood <david.sherwood@arm.com>
1113
1114 * c-cppbuiltin.c (c_cpp_builtins): Use opt_scalar_float_mode.
1115
c94843d2
RS
11162017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1117 Alan Hayward <alan.hayward@arm.com>
1118 David Sherwood <david.sherwood@arm.com>
1119
1120 * c-common.c (c_common_fixed_point_type_for_size): Use new mode
1121 iterators.
1122 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1123
4e10a5a7
RS
11242017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1125 Alan Hayward <alan.hayward@arm.com>
1126 David Sherwood <david.sherwood@arm.com>
1127
1128 * c-cppbuiltin.c (mode_has_fma): Prefix mode names with E_ in
1129 case statements.
1130
130fcab0
ML
11312017-08-29 Martin Liska <mliska@suse.cz>
1132
1133 PR other/39851
1134 * c-common.c (parse_optimize_options): Add argument to function
1135 call.
1136 * c-pragma.c (handle_pragma_diagnostic): Likewise.
1137
14e18d71
DM
11382017-08-24 David Malcolm <dmalcolm@redhat.com>
1139
1140 * c-lex.c (interpret_float): Use token location
1141 when building an EXCESS_PRECISION_EXPR.
1142
2f687306
DM
11432017-08-21 David Malcolm <dmalcolm@redhat.com>
1144
1145 * c-common.c (check_function_arguments): Add "arglogs" param; pass
1146 it to check_function_format.
1147 * c-common.h (check_function_arguments): Add vec<location_t> *
1148 param.
1149 (check_function_format): Likewise.
1150 * c-format.c (struct format_check_context): Add field "arglocs".
1151 (check_function_format): Add param "arglocs"; pass it to
1152 check_format_info.
1153 (check_format_info): Add param "arglocs"; use it to initialize
1154 new field of format_ctx.
1155 (check_format_arg): Pass format_ctx->arglocs to new param of
1156 check_format_info_main.
1157 (class argument_parser): New field "arglocs".
1158 (argument_parser::argument_parser): Add "arglocs_" param and use
1159 it to initialize new field.
1160 (argument_parser::check_argument_type): Pass new arglocs field to
1161 check_format_types.
1162 (check_format_info_main): Add param "arglocs", and use it when
1163 constructing arg_parser.
1164 (check_format_types): Add param "arglocs"; use it if non-NULL when
1165 !EXPR_HAS_LOCATION (cur_param) to get at location information.
1166
00aa1fa2
L
11672017-08-18 H.J. Lu <hongjiu.lu@intel.com>
1168
1169 PR c/53037
1170 * c-attribs.c (handle_warn_if_not_aligned_attribute): New.
1171 (c_common_attribute_table): Add warn_if_not_aligned.
1172 (handle_aligned_attribute): Renamed to ...
1173 (common_handle_aligned_attribute): Remove argument, name, and add
1174 argument, warn_if_not_aligned. Handle warn_if_not_aligned.
1175 (handle_aligned_attribute): New.
1176 * c.opt: Add -Wif-not-aligned and -Wpacked-not-aligned.
1177
27be025d
MS
11782017-08-14 Martin Sebor <msebor@redhat.com>
1179
1180 PR c/81117
1181 * c-attribs.c (c_common_attribute_table): Add nonstring entry.
1182 (handle_nonstring_attribute): New function.
1183
da67acb9
MS
11842017-08-14 Martin Sebor <msebor@redhat.com>
1185
1186 PR c/81117
1187 * c-format.h (T89_G): New macro.
1188 * c-format.c (local_gcall_ptr_node): New variable.
1189 (init_dynamic_diag_info): Initialize it.
1190
a8b522b4
ML
11912017-08-11 Martin Liska <mliska@suse.cz>
1192
1193 * c-opts.c (c_common_post_options): Replace ASM_OUTPUT_DEF with
1194 TARGET_SUPPORTS_ALIASES.
1195
32129a17
DM
11962017-08-10 David Malcolm <dmalcolm@redhat.com>
1197
1198 * c-common.c (c_parse_error): Add rich_location * param, using it
1199 rather implicitly using input_location.
1200 * c-common.h (c_parse_error): Add rich_location * param.
1201
30af3a2b
MP
12022017-08-09 Marek Polacek <polacek@redhat.com>
1203
1204 * c-common.c (pointer_int_sum): Use true/false instead of 1/0.
1205 (c_common_truthvalue_conversion): Likewise.
1206 * c-omp.c (c_finish_omp_atomic): Likewise.
1207 * c-common.h (build_binary_op): Update declaration.
1208
314e6352
ML
12092017-08-08 Martin Liska <mliska@suse.cz>
1210
1211 * c-ada-spec.c: Include header files.
1212 * c-ubsan.c: Likewise.
1213 * c-warn.c: Likewise.
1214
56b5041c
JJ
12152017-08-07 Jakub Jelinek <jakub@redhat.com>
1216
1217 PR c/69389
1218 * c-omp.c (c_finish_omp_atomic): Handle atomics on bitfields.
1219
db440138
EB
12202017-08-07 Eric Botcazou <ebotcazou@adacore.com>
1221
1222 * c-ada-spec.c (has_nontrivial_methods): Test for FUNCTION_DECL.
1223 (print_ada_methods): Likewise.
1224 (print_ada_declaration): Likewise.
1225
577eec56
ML
12262017-08-07 Martin Liska <mliska@suse.cz>
1227
1228 * array-notation-common.c: Add new includes.
1229 * c-format.c( handle_format_attribute): Canonicalize a format
1230 function name.
1231 * c-lex.c (c_common_has_attribute): Canonicalize name of an
1232 attribute.
1233 * c-pretty-print.c: Add new include.
1234
b854df3c
EB
12352017-08-05 Eric Botcazou <ebotcazou@adacore.com>
1236
1237 * c-ada-spec.c (has_static_fields): Look only into variables.
1238 (print_constructor): Add TYPE parameter and use it for the name.
1239 (print_destructor): Likewise.
1240 (print_ada_declaration): Adjust to new constructor/destructor names.
1241 Adjust calls to print_constructor and print_destructor.
1242 (print_ada_struct_decl): Do not test TREE_STATIC on FIELD_DECL.
1243 Look only into variables in the final loop.
1244
9f2cb25e
EB
12452017-08-01 Eric Botcazou <ebotcazou@adacore.com>
1246
1247 * c-ada-spec.c (has_static_fields): Look only into fields.
1248 (dump_generic_ada_node): Small tweak.
1249 (dump_nested_types): Look only into fields.
1250 (print_ada_declaration): Look only into methods. Small tweak.
1251 (print_ada_struct_decl): Look only into fields. Use DECL_VIRTUAL_P.
1252
f4bcd9eb
EB
12532017-08-01 Eric Botcazou <ebotcazou@adacore.com>
1254
1255 * c-ada-spec.c (print_generic_ada_decl): Pass correctly-typed constant.
1256 (dump_ada_function_declaration): Likewise.
1257 (dump_generic_ada_node): Likewise.
1258 (print_ada_declaration): Add support for const-qualified variables.
1259
f34ebeb2
ML
12602017-07-31 Martin Liska <mliska@suse.cz>
1261
1262 PR sanitize/81530
1263 * c-ubsan.c (ubsan_maybe_instrument_array_ref):
1264 Guard condition with flag_sanitize_p also with current_function_decl
1265 non-null equality.
1266 (ubsan_maybe_instrument_reference_or_call): Likewise.
1267
218e5d04
UB
12682017-07-30 Uros Bizjak <ubizjak@gmail.com>
1269
1270 * c-format.c (asm_fprintf_char_table): Add 'z' to format_chars.
1271
942047f2
EB
12722017-07-29 Eric Botcazou <ebotcazou@adacore.com>
1273
1274 * c-ada-spec.c (dump_generic_ada_node): Take into account signedness
1275 for enumeral types.
1276 (print_ada_declaration): Add missing guard for record types.
1277
a40ff0ae
JJ
12782017-07-27 Jakub Jelinek <jakub@redhat.com>
1279
1280 PR c/45784
1281 * c-omp.c (c_finish_omp_for): If the condition is wrapped in
1282 rhs of COMPOUND_EXPR(s), skip them and readd their lhs into
1283 new COMPOUND_EXPRs around the rhs of the comparison.
1284
06bd22f6
MP
12852017-07-27 Marek Polacek <polacek@redhat.com>
1286
1287 PR c/81417
1288 * c-warn.c (warn_for_sign_compare): Tweak the warning message. Print
1289 the types.
1290
036ea399
JJ
12912017-07-27 Jakub Jelinek <jakub@redhat.com>
1292
1293 * c-attribs.c (c_common_attribute_table): Add noipa attribute.
1294 (handle_noipa_attribute): New function.
1295
417ca011
TD
12962017-07-07 Torsten Duwe <duwe@suse.de>
1297
1298 * c-attribs.c (c_common_attribute_table): Add entry for
1299 "patchable_function_entry".
1300
5aaa8fb4
NS
13012017-07-20 Nathan Sidwell <nathan@acm.org>
1302
1303 Remove TYPE_METHODS.
1304 * c-ada-spec.c (is_tagged_type, has_nontrivial_methods,
1305 dump_ada_template, print_ada_methods,
1306 print_ada_declaration): Member fns are on TYPE_FIELDS.
1307
ff22eb12
NS
13082017-07-18 Nathan Sidwell <nathan@acm.org>
1309
1310 * c-warn.c (warn_for_memset): Use TYPE_{MIN,MAX}_VALUE.
1311
eea77d1f
DM
13122017-07-14 David Malcolm <dmalcolm@redhat.com>
1313
1314 * c-common.c (try_to_locate_new_include_insertion_point): New
1315 function.
1316 (per_file_includes_t): New typedef.
1317 (added_includes_t): New typedef.
1318 (added_includes): New variable.
1319 (maybe_add_include_fixit): New function.
1320 * c-common.h (maybe_add_include_fixit): New decl.
1321
281ac396
MS
13222017-07-10 Martin Sebor <msebor@redhat.com>
1323
1324 PR other/81345
1325 * c.opt (-Wstringop-overflow): Set defaults in LangEnabledBy.
1326
b6f43128
DM
13272017-07-06 David Malcolm <dmalcolm@redhat.com>
1328
1329 * c-common.c (selftest::c_family_tests): New.
1330 * c-common.h (selftest::run_c_tests): Move decl to c/c-lang.h.
1331 (selftest::c_family_tests): New decl.
1332
efbf55b0
MP
13332017-07-04 Marek Polacek <polacek@redhat.com>
1334
1335 PR c/81231
1336 * c-common.c (sync_resolve_size): Give error for pointers to incomplete
1337 types.
1338
6c86bd88
MP
13392017-07-04 Marek Polacek <polacek@redhat.com>
1340
1341 * c-warn.c (warn_if_unused_value): Remove WITH_CLEANUP_EXPR handling.
1342
17a7218b
ML
13432017-06-28 Martin Liska <mliska@suse.cz>
1344
1345 PR ipa/81128
1346 * c-attribs.c (handle_alias_ifunc_attribute): Append ifunc alias
1347 to a function declaration.
1348
63010089
ML
13492017-06-28 Martin Liska <mliska@suse.cz>
1350
1351 PR driver/79659
1352 * c.opt: Add IntegerRange to various options.
1353
3e2becc4
MP
13542017-06-26 Marek Polacek <polacek@redhat.com>
1355
1356 PR c/80116
1357 * c-common.h (warn_for_multistatement_macros): Declare.
1358 * c-warn.c: Include "c-family/c-indentation.h".
1359 (warn_for_multistatement_macros): New function.
1360 * c.opt (Wmultistatement-macros): New option.
1361 * c-indentation.c (guard_tinfo_to_string): No longer static.
1362 Change the parameter type to "enum rid". Handle RID_SWITCH.
1363 * c-indentation.h (guard_tinfo_to_string): Declare.
1364
2db9b7cd
MG
13652017-06-23 Marc Glisse <marc.glisse@inria.fr>
1366
1367 * c-common.c (c_common_nodes_and_builtins): Use builtin_structptr_types.
1368
c3684b7b
MS
13692017-06-15 Martin Sebor <msebor@redhat.com>
1370
1371 PR c++/80560
1372 * c.opt (-Wclass-memaccess): New option.
1373
e72c4afd
BK
13742017-06-14 Boris Kolpackov <boris@codesynthesis.com>
1375
1376 * c-opts.c (c_common_finish): Handle '-' special value to -MF.
1377
8a516588
MP
13782017-06-13 Marek Polacek <polacek@redhat.com>
1379
1380 PR objc/80949
1381 * c-warn.c (do_warn_duplicated_branches): Return if any of the
1382 branches is null.
1383
45b2222a
ML
13842017-06-13 Martin Liska <mliska@suse.cz>
1385
1386 PR sanitize/78204
1387 * c-attribs.c (add_no_sanitize_value): New function.
1388 (handle_no_sanitize_attribute): Likewise.
1389 (handle_no_sanitize_address_attribute): Use the function.
1390 (handle_no_sanitize_thread_attribute): New function.
1391 (handle_no_address_safety_analysis_attribute): Use
1392 add_no_sanitize_value.
1393 (handle_no_sanitize_undefined_attribute): Likewise.
1394 * c-common.h: Declare new functions.
1395 * c-ubsan.c (ubsan_instrument_division): Use sanitize_flags_p.
1396 (ubsan_instrument_shift): Likewise.
1397 (ubsan_instrument_bounds): Likewise.
1398 (ubsan_maybe_instrument_array_ref): Likewise.
1399 (ubsan_maybe_instrument_reference_or_call): Likewise.
1400
a01f151f
JM
14012017-06-11 Jason Merrill <jason@redhat.com>
1402
1403 * c-ada-spec.c, c-pragma.c: Use id_equal.
1404
3de4ac6d
MP
14052017-06-04 Marek Polacek <polacek@redhat.com>
1406
1407 PR c/80919
1408 * c-format.c (matching_type_p): Return false if any of the types
1409 requires structural equality.
1410
2474f48f
MS
14112017-06-02 Martin Sebor <msebor@redhat.com>
1412
1413 PR c/80892
1414 * c-warn.c (conversion_warning): Use -Wconversion for integer
1415 conversion and -Wfloat-conversion for floating one.
1416
40ffd95f
BE
14172017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
1418
1419 * c.opt (Wsizeof-pointer-div): New warning option.
1420
3fa4634c
VR
14212017-06-01 Volker Reichelt <v.reichelt@netcologne.de>
1422
1423 * c.opt (Wcatch-value): New shortcut for Wcatch-value=1.
1424 (Wcatch-value=1): Enable by -Wall.
1425
f012c8ef
DM
14262017-05-30 David Malcolm <dmalcolm@redhat.com>
1427
1428 * c-format.c (gcc_cxxdiag_char_table): Add 'H' and 'I' to
1429 format_chars.
1430 * c.opt (fdiagnostics-show-template-tree): New option.
1431 (felide-type): New option.
1432
63dbcd13
VR
14332017-05-25 Volker Reichelt <v.reichelt@netcologne.de>
1434
1435 * c.opt (Wcatch-value=): New C++ warning flag.
1436
be136b5c
NS
14372017-05-24 Nathan Sidwell <nathan@acm.org>
1438
1439 * c=common.c (field_decl_cmp, resort_field_decl_cmp): Adjust T
1440 const casts to avoid warning.
1441
3cd211af
MS
14422017-05-24 Martin Sebor <msebor@redhat.com>
1443
1444 PR c/80731
1445 * c-common.h (unsafe_conversion_p): Add a function argument.
1446 * c-common.c (unsafe_conversion_p): Same.
1447 Add type names and values to diagnostics.
1448 (scalar_to_vector): Adjust.
1449 * c-warn.c (constant_expression_error): Add a function argument.
1450 Add type names and values to diagnostics.
1451 (conversion_warning): Add a function argument.
1452 Add type names and values to diagnostics.
1453 (warnings_for_convert_and_check): Same.
1454
1ff7be5a
JM
14552017-05-19 Jason Merrill <jason@redhat.com>
1456
1457 * c-warn.c (match_case_to_enum_1): Don't warn about enums with no
1458 enumerators.
1459
ff502317
BE
14602017-05-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
1461
1462 * c-format.c (locus): Move out of function scope,
1463 add GTY attribute.
1464
2a8a8d7b
NS
14652017-05-19 Nathan Sidwell <nathan@acm.org>
1466
1467 * c-opts.c (class_dump_file, class_dump_flags): Delete.
1468 (c_common_parse_file): Remove class dump handling.
1469 (get_dump_info): Likewise.
1470
39aac208
RB
14712017-05-19 Richard Biener <rguenther@suse.de>
1472
1473 PR c++/80593
1474 * c-warn.c (strict_aliasing_warning): Do not warn for accesses
1475 to alias-set zero memory.
1476
6ecd2339
BE
14772017-05-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
1478
1479 * c-format.c (local_tree_type_node): Add GTY attribute.
1480
6574d78e
MP
14812017-05-18 Marek Polacek <polacek@redhat.com>
1482
1483 * c-common.c (c_common_type_for_size): Use NULL_TREE instead of 0.
1484 (c_common_fixed_point_type_for_size): Likewise.
1485 (c_common_type_for_mode): Likewise.
1486 (shorten_compare): Likewise.
1487 (c_promoting_integer_type_p): Use false/true instead of 0/1.
1488 * c-pragma.c (maybe_apply_renaming_pragma): Use NULL_TREE instead of 0.
1489
e3455240
MP
14902017-05-18 Marek Polacek <polacek@redhat.com>
1491
1492 * c-common.c (self_promoting_args_p): Change the return type to bool.
1493 Use false/true instead of 0/1.
1494 * c-common.h (self_promoting_args_p): Update.
1495
3fa8871b
MP
14962017-05-17 Marek Polacek <polacek@redhat.com>
1497
1498 * c-common.c: Use NULL_TREE instead of 0 where appropriate.
1499 * c-warn.c: Likewise.
1500
b42cc3ca
VV
15012017-05-17 Ville Voutilainen <ville.voutilainen@gmail.com>
1502
1503 Implement new C++ intrinsics __is_assignable and __is_constructible.
1504 * c-common.c (__is_assignable, __is_constructible): New.
1505 * c-common.h (RID_IS_ASSIGNABLE, RID_IS_CONSTRUCTIBLE): Likewise.
1506
1a817418
ML
15072017-05-17 Martin Liska <mliska@suse.cz>
1508
1509 * c-common.h: Introduce dump_flags_t type and
1510 use it instead of int type.
1511 * c-gimplify.c (c_genericize): Likewise.
1512 * c-opts.c: Likewise.
1513
b2fa0a8b
MP
15142017-05-17 Marek Polacek <polacek@redhat.com>
1515
1516 * c-common.c (c_save_expr): Remove.
1517 (c_common_truthvalue_conversion): Remove a call to c_save_expr.
1518 * c-common.h (c_save_expr): Remove declaration.
1519
31c2d57d
VR
15202017-05-09 Volker Reichelt <v.reichelt@netcologne.de>
1521
1522 PR c/35441
1523 * c-pretty-print.c (c_pretty_printer::expression): Handle MAX_EXPR,
1524 MIN_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, LROTATE_EXPR, RROTATE_EXPR.
1525 (c_pretty_printer::postfix_expression): Handle MAX_EXPR, MIN_EXPR.
1526 (c_pretty_printer::multiplicative_expression): Handle EXACT_DIV_EXPR,
1527 RDIV_EXPR.
1528 (pp_c_shift_expression): Handle LROTATE_EXPR, RROTATE_EXPR.
1529
684f84de
MP
15302017-05-09 Marek Polacek <polacek@redhat.com>
1531
1532 PR c/80525
1533 * c-warn.c (unwrap_c_maybe_const): New.
1534 (warn_logical_operator): Call it.
1535
641da50a
NS
15362017-05-09 Nathan Sidwell <nathan@acm.org>
1537
1538 * c-common.c (c_register_builtin_type): Use pushdecl lang_hook.
1539 * c-common.h (pushdecl_top_level, pushdecl): Don't declare here.
1540
631238ac
MS
15412017-05-08 Martin Sebor <msebor@redhat.com>
1542
1543 PR translation/80280
1544 * c-format.h (struct format_flag_spec): Add new member.
1545 (T89_T): New macro.
1546 * c-format.c (local_tree_type_node): New global.
1547 (printf_flag_specs, asm_fprintf_flag_spec): Initialize new data.
1548 (gcc_diag_flag_specs, scanf_flag_specs, strftime_flag_specs): Ditto.
1549 (strfmon_flag_specs): Likewise.
1550 (gcc_diag_char_table, gcc_cdiag_char_table): Split up specifiers
1551 with distinct quoting properties.
1552 (gcc_tdiag_char_table, gcc_cxxdiag_char_table): Same.
1553 (flag_chars_t::validate): Add argument and handle bad quoting.
1554 (check_format_info_main): Handle quoting problems.
1555 (init_dynamic_diag_info): Simplify.
1556
49f0c04c
JM
15572017-05-08 Jason Merrill <jason@redhat.com>
1558
1559 * c-opts.c (c_common_post_options): Update defaults for
1560 flag_abi_version and flag_abi_compat_version.
1561
56d35585
DM
15622017-05-05 David Malcolm <dmalcolm@redhat.com>
1563
1564 * c-common.c (c_cpp_error): Replace report_diagnostic
1565 with diagnostic_report_diagnostic.
1566
0f2c4a8f
MS
15672017-05-04 Martin Sebor <msebor@redhat.com>
1568
1569 PR translation/80280
1570 * c-attribs.c (handle_alias_ifunc_attribute): Quote a %D directive.
1571 (handle_weakref_attribute): Same.
1572
6fe63fb4
NS
15732017-05-03 Nathan Sidwell <nathan@acm.org>
1574
1575 Canonicalize canonical type hashing
1576 * c-common.c (complete_array_type): Use type_hash_canon.
1577
815d9cc6
XR
15782017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
1579
1580 PR c++/80038
1581 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): Remove
1582 prototype.
1583 (cilk_install_body_pedigree_operations): Likewise.
1584 * cilk.c (cilk_set_spawn_marker): Mark functions that should be
1585 detatched.
1586 (cilk_gimplify_call_params_in_spawned_fn): Remove.
1587 (cilk_install_body_pedigree_operations): Likewise.
1588 (gimplify_cilk_spawn): Add EXPR_STMT and CLEANUP_POINT_EXPR
1589 unwrapping.
1590
f8a36447
JJ
15912017-04-27 Jakub Jelinek <jakub@redhat.com>
1592
1593 PR c++/80534
1594 * c-common.c (complete_array_type): Only hash TYPE_TYPELESS_STORAGE
1595 flag on non-aggregate element types.
1596
7c145456
BE
15972017-04-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
1598
1599 * c-common.c (c_type_hasher, type_hash_table): Remove.
1600 (c_common_get_alias_set): Remove unreachable code.
1601 * c-opts.c (c_common_post_options): Make sure cc1 takes only one file.
1602
c3cbcd45
VR
16032017-04-20 Volker Reichelt <v.reichelt@netcologne.de>
1604
1605 * c.opt (Wextra-semi): New C++ warning flag.
1606
8a59d466
JJ
16072017-04-20 Jakub Jelinek <jakub@redhat.com>
1608
1609 PR middle-end/80423
1610 * c-common.c (complete_array_type): Preserve TYPE_TYPELESS_STORAGE.
1611
8487c9a5
JJ
16122017-04-18 Jakub Jelinek <jakub@redhat.com>
1613
1614 PR middle-end/79788
1615 PR middle-end/80375
1616 * c-common.c (c_common_type_for_mode): Don't handle
1617 widest_*_literal_type_node here.
1618 c_common_signed_or_unsigned_type): Likewise.
1619 (c_common_nodes_and_builtins): Set widest_*_literal_type_node
1620 to *intTI_type_node or *intDI_type_node depending on whether
1621 TImode is supported by the target or not.
1622
3ee0fb02
ML
16232017-04-10 Martin Liska <mliska@suse.cz>
1624
1625 PR sanitizer/80350
1626 * c-ubsan.c (ubsan_instrument_shift): Evaluate RHS before
1627 doing an UBSAN check.
1628
5764ee3c
JW
16292017-04-03 Jonathan Wakely <jwakely@redhat.com>
1630
1631 * c-warn.c (do_warn_double_promotion): Fix typo in comment.
1632
6f3af356
JJ
16332017-03-31 Jakub Jelinek <jakub@redhat.com>
1634
1635 PR c++/79572
1636 * c-ubsan.h (ubsan_maybe_instrument_reference): Change argument to
1637 tree *.
1638 * c-ubsan.c (ubsan_maybe_instrument_reference): Likewise. Handle
1639 not just NOP_EXPR to REFERENCE_TYPE, but also INTEGER_CST with
1640 REFERENCE_TYPE.
1641
f6a7a9d5
DM
16422017-03-31 David Malcolm <dmalcolm@redhat.com>
1643
1644 PR documentation/78732
1645 * c.opt (Wendif-labels): Fix description to refer to
1646 #else rather than #elif.
1647
af88f557
JJ
16482017-03-31 Jakub Jelinek <jakub@redhat.com>
1649
1650 PR libstdc++/80251
1651 * c-common.h (enum rid): Add RID_IS_AGGREGATE.
1652 * c-common.c (c_common_reswords): Add __is_aggregate trait.
1653
a9e4a1a5
JJ
16542017-03-27 Jakub Jelinek <jakub@redhat.com>
1655
1656 PR middle-end/80162
1657 * c-common.c (c_common_mark_addressable_vec): Don't set
1658 TREE_ADDRESSABLE on DECL_HARD_REGISTER.
1659
3f01b620
MS
16602017-03-21 Martin Sebor <msebor@redhat.com>
1661
1662 PR c++/79548
1663 * c-common.c (set_underlying_type): Mark type used only when
1664 original del is declared unused.
1665
2f6f187a
DM
16662017-03-10 David Malcolm <dmalcolm@redhat.com>
1667
1668 PR translation/79848
1669 * c-format.c (check_format_string): Simplify uses of "%<%s%>" to
1670 "%qs".
1671
a02fa805
DM
16722017-03-10 David Malcolm <dmalcolm@redhat.com>
1673
1674 PR c/79921
1675 * c-indentation.c (warn_for_misleading_indentation): Remove parens
1676 from inform's message, so that xgettext can locate it.
1677
822a132c
MP
16782017-03-09 Marek Polacek <polacek@redhat.com>
1679
1680 PR c++/79962
1681 PR c++/79984
1682 * c-attribs.c (handle_nonnull_attribute): Save the result of default
1683 conversion to the attribute list.
1684
bba81f1c
ML
16852017-03-09 Martin Liska <mliska@suse.cz>
1686
1687 * c-ada-spec.c (macro_length): Increment value instead of a pointer.
1688
108154ff
JM
16892017-03-03 Jason Merrill <jason@redhat.com>
1690
1691 * c.opt (Wnoexcept-type): New.
1692
eb0e7c34
RB
16932017-03-02 Richard Biener <rguenther@suse.de>
1694
1695 PR c/79756
1696 * c-common.c (c_common_mark_addressable_vec): Look through
1697 C_MAYBE_CONST_EXPR.
1698
9453ba0a
ML
16992017-02-28 Martin Liska <mliska@suse.cz>
1700
1701 * c.opt: Replace space with tabular for options of <number>
1702 type.
1703
6a825afe
ML
17042017-02-28 Martin Liska <mliska@suse.cz>
1705
1706 * c.opt: Fix --help=option -Q for options which are of
1707 an enum type.
1708
4227c9ad
JJ
17092017-02-24 Jakub Jelinek <jakub@redhat.com>
1710
1711 PR c++/79588
1712 * c-common.c (check_function_restrict): New function.
1713 (check_function_arguments): Add FNDECL argument. Call
1714 check_function_restrict if -Wrestrict.
1715 * c-warn.c (warn_for_restrict): Remove ARGS argument, add ARGARRAY
1716 and NARGS. Use auto_vec for ARG_POSITIONS, simplify.
1717 * c-common.h (check_function_arguments): Add FNDECL argument.
1718 (warn_for_restrict): Remove ARGS argument, add ARGARRAY and NARGS.
1719
59909673
EB
17202017-02-24 Eric Botcazou <ebotcazou@adacore.com>
1721
1722 * c-ada-spec.c (dump_ada_function_declaration): Add comment about the
1723 treatment of parameters with pointer-to-tagged type and tidy up.
1724 (print_ada_methods): Remove the special treatment of C++ static member
1725 functions.
1726
54dcd526
ML
17272017-02-22 Martin Liska <mliska@suse.cz>
1728
1729 * c.opt: Replace inequality signs with square brackets
1730 for -Wnornalized.
1731
00bc9de3
JJ
17322017-02-21 Jakub Jelinek <jakub@redhat.com>
1733
1734 PR c++/79641
1735 * c-attribs.c (handle_mode_attribute): Use build_qualified_type to
1736 preserve quals.
1737
97fcf744
JM
17382017-02-17 Joseph Myers <joseph@codesourcery.com>
1739
1740 * c-cppbuiltin.c (builtin_define_float_constants): Define
1741 __DECIMAL_DIG__ to the value for long double.
1742
c7545f1c
MP
17432017-02-15 Marek Polacek <polacek@redhat.com>
1744
1745 PR c/79515
1746 * c-warn.c (do_warn_double_promotion): Don't warn if an invalid
1747 conversion has occured.
1748
c2e84327
DM
17492017-01-24 David Malcolm <dmalcolm@redhat.com>
1750
1751 * c-common.c (c_common_reswords): Add "__RTL".
1752 * c-common.h (enum rid): Add RID_RTL.
1753
2ebd93e1
MP
17542017-01-20 Marek Polacek <polacek@redhat.com>
1755
1756 PR c/64279
1757 * c-common.h (do_warn_duplicated_branches_r): Declare.
1758 * c-gimplify.c (c_genericize): Walk the function tree calling
1759 do_warn_duplicated_branches_r.
1760 * c-warn.c (expr_from_macro_expansion_r): New.
1761 (do_warn_duplicated_branches): New.
1762 (do_warn_duplicated_branches_r): New.
1763 * c.opt (Wduplicated-branches): New option.
1764
0d80ab91
DM
17652017-01-17 David Malcolm <dmalcolm@redhat.com>
1766
1767 PR c++/71497
1768 * c-indentation.c (warn_for_misleading_indentation): Use the past
1769 subjunctive in the note.
1770
7f991c36
AH
17712017-01-17 Aldy Hernandez <aldyh@redhat.com>
1772
1773 PR c/79116
1774 * array-notation-common.c (cilkplus_extract_an_triplets): Convert
1775 start type to integer_type.
1776
1c70261c
JJ
17772017-01-16 Jakub Jelinek <jakub@redhat.com>
1778
1779 PR driver/49726
1780 * c.opt (gen-decls): Add Driver flag.
1781
1ddca3f3
PC
17822017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
1783
1784 Revert:
1785 2017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
1786
1787 PR c++/71737
1788 * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
1789
7d2f3f1d
PC
17902017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
1791
1792 PR c++/71737
1793 * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
1794
bce6f760
MS
17952017-01-12 Martin Sebor <msebor@redhat.com>
1796
1797 (-Wformat-overflow): ...to this.
1798
bf5fbf46
MS
17992017-01-11 Martin Sebor <msebor@redhat.com>
1800
1801 PR c/78768
1802 * c.opt (-Walloca-larger-than, -Wformat-length, -Wformat-truncation):
1803 Also enable for LTO.
1804
e363df3f
JM
18052017-01-10 Jason Merrill <jason@redhat.com>
1806
1807 Implement P0195R2, C++17 variadic using.
1808 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_variadic_using.
1809
bd2c6270
JJ
18102017-01-09 Jakub Jelinek <jakub@redhat.com>
1811
1812 PR translation/79019
1813 PR translation/79020
1814 * c.opt (Wnormalized=): Fix typo in description.
1815
efcc8d38
MS
18162017-01-08 Martin Sebor <msebor@redhat.com>
1817
1818 PR middle-end/77708
1819 * c.opt (-Wformat-truncation): New option.
1820
435f3f7a
AO
18212017-01-06 Alexandre Oliva <aoliva@redhat.com>
1822
1823 * c-pretty-print.c (pp_c_tree_decl_identifier): Convert 16-bit
1824 value to unsigned short to fit in 4 hex digits without
1825 warnings.
1826
4e89adf9
EB
18272017-01-05 Eric Botcazou <ebotcazou@adacore.com>
1828
1829 * c.opt (fsso-struct): Add 'native' value.
1830
cd445b54
ML
18312017-01-05 Martin Liska <mliska@suse.cz>
1832
1833 PR pch/78970
1834 * c-opts.c (c_common_post_options): Reject '-' filename for a precompiled
1835 header.
1836
a9342885
MP
18372017-01-04 Marek Polacek <polacek@redhat.com>
1838
1839 PR c++/64767
1840 * c.opt (Wpointer-compare): New option.
1841
fc73e60c
JJ
18422017-01-04 Jakub Jelinek <jakub@redhat.com>
1843
1844 PR driver/78957
1845 * c.opt (fsso-struct=): Add RejectNegative.
1846
cbe34bb5
JJ
18472017-01-01 Jakub Jelinek <jakub@redhat.com>
1848
1849 Update copyright years.
1850
d4a6c0ea
ML
18512016-12-29 Martin Liska <mliska@suse.cz>
1852
1853 PR c/78933
1854 * c.opt (strong-eval-order): Add RejectNegative keyword.
1855
67a5ad7c
JM
18562016-12-22 Jason Merrill <jason@redhat.com>
1857
1858 Implement P0522R0, matching of template template arguments.
1859 * c-cppbuiltin.c (c_cpp_builtins): Define
1860 __cpp_template_template_args.
1861
0dba7960
JJ
18622016-12-21 Jakub Jelinek <jakub@redhat.com>
1863
1864 PR bootstrap/78817
1865 * c-common.c (struct nonnull_arg_ctx): New type.
1866 (check_function_nonnull): Return bool instead of void. Use
1867 nonnull_arg_ctx as context rather than just location_t.
1868 (check_nonnull_arg): Adjust for the new context type, set
1869 warned_p to true if a warning has been diagnosed.
1870 (check_function_arguments): Return bool instead of void.
1871 * c-common.h (check_function_arguments): Adjust prototype.
1872
31bfc9b9
JM
18732016-12-21 Jason Merrill <jason@redhat.com>
1874
1875 * c.opt (-fnew-ttp-matching): New flag.
1876 * c-opts.c (c_common_post_options): Default on if -std=c++1z.
1877
629b3d75
MJ
18782016-12-14 Martin Jambor <mjambor@suse.cz>
1879
1880 * c-omp.c: Include omp-general.h instead of omp-low.h.
1881 (c_finish_oacc_wait): Adjusted call to find_omp_clause to use its new
1882 name.
1883
474da67e
MS
18842016-12-14 Martin Sebor <msebor@redhat.com>
1885
1886 PR c/17308
1887 * c-common.c (check_nonnull_arg): Disable when optimization
1888 is enabled.
1889
fe366b87
MP
18902016-12-12 Marek Polacek <polacek@redhat.com>
1891
1892 PR c++/78647
1893 * c-common.c (attribute_fallthrough_p): Return false for
1894 error_mark_node.
1895
8bd9f164
MS
18962016-12-08 Martin Sebor <msebor@redhat.com>
1897
1898 PR c/78284
1899 * c.opt (-Walloc-zero, -Walloc-size-larger-than): New options.
1900
060162e0
MS
19012016-12-08 Martin Sebor <msebor@redhat.com>
1902
1903 PR c/78165
1d0cf89a
MS
1904 * c-pretty-print (pp_c_integer_constant): Avoid formatting type
1905 suffix.
060162e0 1906
ee92e7ba
MS
19072016-12-07 Martin Sebor <msebor@redhat.com>
1908
1909 PR c/53562
1910 PR middle-end/77784
1911 PR middle-end/78149
1912 PR middle-end/78138
1913 * c.opt (-Wstringop-overflow): New option.
1914
84b0769e
MO
19152016-12-02 Maxim Ostapenko <m.ostapenko@samsung.com>
1916
1917 * c-attribs.c (asan odr indicator): New attribute.
1918 (handle_asan_odr_indicator_attribute): New function.
1919
7fa6a965
PK
19202016-11-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1921
1922 * c-common.c (c_common_nodes_and_builtins): Remove initialization of
1923 ptrdiff_type_node;
1924
56d8ffc1
JG
19252016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
1926
1927 * c-common.c (excess_precision_mode_join): New.
1928 (c_ts18661_flt_eval_method): New.
1929 (c_c11_flt_eval_method): Likewise.
1930 (c_flt_eval_method): Likewise.
1931 * c-common.h (excess_precision_mode_join): New.
1932 (c_flt_eval_method): Likewise.
1933 * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): New.
1934 (cpp_iec_559_value): Call it.
1935 (c_cpp_builtins): Modify logic for __LIBGCC_*_EXCESS_PRECISION__,
1936 call c_flt_eval_method to set __FLT_EVAL_METHOD__ and
1937 __FLT_EVAL_METHOD_TS_18661_3__.
1938
04f0fcf7
JG
19392016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
1940
1941 * c-opts.c (c_common_post_options): Add logic to handle the default
1942 case for -fpermitted-flt-eval-methods.
1943
fb2675cb
PB
19442016-11-23 Paolo Bonzini <bonzini@gnu.org>
1945
1946 * c.opt (Wexpansion-to-defined): New.
1947
ec1c5694
JJ
19482016-11-23 Jakub Jelinek <jakub@redhat.com>
1949
1950 PR target/78451
1951 * c-pragma.c (handle_pragma_target): Don't replace
1952 current_target_pragma, but chainon the new args to the current one.
1953
730c9e75
NS
19542016-11-22 Nathan Sidwell <nathan@acm.org>
1955
1956 * array-notation-common.c (cilkplus_extract_an_trplets): Fix
cacd29be 1957 indentation and formatting.
730c9e75 1958
89990732
MS
19592016-11-21 Martin Sebor <msebor@redhat.com>
1960
1961 * c.opt (-fprintf-return-value): Enable by default.
1962
48330c93
BE
19632016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
1964
1965 PR c++/71973
1966 * c.opt (-Wbuiltin-declaration-mismatch): New warning.
1967 * c-common.c (c_common_nodes_and_builtins): Initialize
1968 const_tm_ptr_type_node.
1969
0d939c95
MP
19702016-11-16 Marek Polacek <polacek@redhat.com>
1971
1972 PR c/78285
1973 * c-common.c (c_add_case_label): Turn error_at calls into inform.
1974
8e745a17
JJ
19752016-11-14 Jakub Jelinek <jakub@redhat.com>
1976
1977 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_structured_bindings.
1978
1ee62b92 19792016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
8e745a17
JJ
1980 Richard Biener <rguenther@suse.de>
1981
1982 * c-common.h (c_common_resword): Add RID_GIMPLE, RID_PHI types.
1983 * c-common.h (enum rid): Add RID_GIMPLE, RID_PHI.
1984 * c.opt (fgimple): New option.
1ee62b92 1985
22b15758
UB
19862016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1987
1988 PR c/35503
1989 * c-common.h (warn_for_restrict): Declare.
1990 * c-warn.c: Include gcc-rich-location.h.
1991 (warn_for_restrict): New function.
1992 * c-format.c (gcc_tdiag_char_table): Add entry for "Z" specifier.
1993 (gcc_cdiag_char_table): Likewise.
1994 (gcc_cxxdiag_char_table): Likewise.
1995 * c.opt (Wrestrict): New option.
1996
4be719cd
EB
19972016-11-13 Eric Botcazou <ebotcazou@adacore.com>
1998
1999 * c-ada-spec.c (print_ada_declaration): For typedef declarations, look
2000 for nested types only if the type is a record or union and dump SLOC.
2001
4a826ca6
JM
20022016-11-09 Jason Merrill <jason@redhat.com>
2003
2004 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_template_auto.
2005
2e955d50
JJ
20062016-11-09 Jakub Jelinek <jakub@redhat.com>
2007
2008 * c-ubsan.c (ubsan_instrument_shift): Handle split
2009 -fsanitize=shift-base and -fsanitize=shift-exponent.
2010
51dc6603
JM
20112016-11-07 Jason Merrill <jason@redhat.com>
2012
2013 * c.opt (Wc++1z-compat): New.
2014 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_noexcept_function_type.
2015
6dc4a604
ML
20162016-11-07 Martin Liska <mliska@suse.cz>
2017
2018 * c-warn.c (warn_for_unused_label): Save all labels used
2019 in goto or in &label.
2020
b302001e
JM
20212016-11-03 Jason Merrill <jason@redhat.com>
2022
2023 * c-cppbuiltin.c (c_cpp_builtins): Correct
2024 __cpp_inheriting_constructors.
2025
31f7f784
JM
20262016-11-01 Jason Merrill <jason@redhat.com>
2027
2bc78e3c
JM
2028 * c-cppbuiltin.c (c_cpp_builtins): Update
2029 __cpp_inheriting_constructors.
2030
31f7f784
JM
2031 * c.opt (-fnew-inheriting-ctors): New.
2032 * c-opts.c: Default to on for ABI 11+.
2033
dcb466ec
JJ
20342016-10-31 Jakub Jelinek <jakub@redhat.com>
2035
2036 PR c++/77948
2037 * c.opt (fext-numeric-literals): Add Var and Init.
2038 * c-opts.c (c_common_handle_option): Don't clear
2039 cpp_opts->ext_numeric_literals for -std=c++{11,14,1z}.
2040 (c_common_post_options): Clear it here if not set
2041 explicitly.
2042
52e1b91e
AH
20432016-10-28 Aldy Hernandez <aldyh@redhat.com>
2044
2045 PR debug/77773
2046 * c-pretty-print.c (simple_type_specifier): Do not dereference `t'
2047 if NULL.
2048
e16f1cc7
JJ
20492016-10-25 Jakub Jelinek <jakub@redhat.com>
2050
2051 * c-common.h (enum rid): Add RID_BUILTIN_LAUNDER.
2052 * c-common.c (c_common_reswords): Add __builtin_launder.
2053
f8348061
BE
20542016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
2055
2056 * c-common.c (c_common_truthvalue_conversion): Warn for
2057 multiplications in boolean context. Fix the quoting of '<<' and '<'
2058 in the shift warning.
2059
eff89e01
BE
20602016-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
2061
2062 * c-common.c (c_common_truthvalue_conversion): Fix the comment.
2063
24bc7bf4
JM
20642016-10-20 Jason Merrill <jason@redhat.com>
2065
2066 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_concepts value.
2067
4c712374
BE
20682016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
2069
2070 * c-common.c (c_common_truthvalue_conversion): Warn only for signed
2071 integer shift ops in boolean context.
2072
20732016-10-18 Aldy Hernandez <aldyh@redhat.com>
adc577c5
AH
2074
2075 * c.opt (Walloca): New.
2076 (Walloca-larger-than=): New.
2077 (Wvla-larger-than=): New.
2078
8fa18c06
MP
20792016-10-17 Marek Polacek <polacek@redhat.com>
2080
2081 * c-warn.c (find_array_ref_with_const_idx_r): Remove parameter names.
2082 Return immediately when finding a match.
2083 (warn_tautological_cmp): Remove a boolean variable that is no longer
2084 needed.
2085
b12b1915
MP
20862016-10-17 Marek Polacek <polacek@redhat.com>
2087
2088 * c-attribs.c: New file.
2089 * c-common.c: Move attributes handling to c-attribs.c.
2090 (get_nonnull_operand): No longer static.
2091 * c-common.h: Move the declarations from c-attribs.c to its own section.
2092
2045acd9
JM
20932016-10-14 Jason Merrill <jason@redhat.com>
2094
2095 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_aggregate_bases
2096 and __cpp_deduction_guides.
2097
14a2c9aa
JM
20982016-10-13 Jason Merrill <jason@redhat.com>
2099
2100 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_inline_variables.
2101
4d0cdd0c
TP
21022016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
2103
2104 * c-cppbuiltin.c: Include memmodel.h.
2105 * c-opts.c: Likewise.
2106 * c-pragma.c: Likewise.
2107 * c-warn.c: Likewise.
2108
70f6d5e1
JJ
21092016-10-12 Jakub Jelinek <jakub@redhat.com>
2110
2111 * c.opt (Wextra): Add as C/C++/ObjC/ObjC++ option.
2112 (Wimplicit-fallthrough=): Enable for these languages by -Wextra.
2113 * c-opts.c (sanitize_cpp_opts): Initialize
2114 cpp_opts->cpp_warn_implicit_fallthrough.
2115
78f61294
MP
21162016-10-11 Marek Polacek <polacek@redhat.com>
2117
2118 * c-common.c (warning_candidate_p): Change the return type to bool
2119 and return true/false instead of 1/0.
2120 (vector_mode_valid_p): Likewise.
2121
038b5cc0
MP
21222016-10-11 Marek Polacek <polacek@redhat.com>
2123
2124 * c-common.c (fold_for_warn): No longer static.
2125 (bool_promoted_to_int_p): Likewise.
2126 (c_common_get_narrower): Likewise.
2127 (constant_expression_warning): Move to c-warn.c.
2128 (constant_expression_error): Likewise.
2129 (overflow_warning): Likewise.
2130 (warn_logical_operator): Likewise.
2131 (find_array_ref_with_const_idx_r): Likewise.
2132 (warn_tautological_cmp): Likewise.
2133 (expr_has_boolean_operands_p): Likewise.
2134 (warn_logical_not_parentheses): Likewise.
2135 (warn_if_unused_value): Likewise.
2136 (strict_aliasing_warning): Likewise.
2137 (sizeof_pointer_memaccess_warning): Likewise.
2138 (check_main_parameter_types): Likewise.
2139 (conversion_warning): Likewise.
2140 (warnings_for_convert_and_check): Likewise.
2141 (match_case_to_enum_1): Likewise.
2142 (match_case_to_enum): Likewise.
2143 (c_do_switch_warnings): Likewise.
2144 (warn_for_omitted_condop): Likewise.
2145 (readonly_error): Likewise.
2146 (lvalue_error): Likewise.
2147 (invalid_indirection_error): Likewise.
2148 (warn_array_subscript_with_type_char): Likewise.
2149 (warn_about_parentheses): Likewise.
2150 (warn_for_unused_label): Likewise.
2151 (warn_for_div_by_zero): Likewise.
2152 (warn_for_memset): Likewise.
2153 (warn_for_sign_compare): Likewise.
2154 (do_warn_double_promotion): Likewise.
2155 (do_warn_unused_parameter): Likewise.
2156 (record_locally_defined_typedef): Likewise.
2157 (maybe_record_typedef_use): Likewise.
2158 (maybe_warn_unused_local_typedefs): Likewise.
2159 (maybe_warn_bool_compare): Likewise.
2160 (maybe_warn_shift_overflow): Likewise.
2161 (warn_duplicated_cond_add_or_warn): Likewise.
2162 (diagnose_mismatched_attributes): Likewise.
2163 * c-common.h: Move the declarations from c-warn.c to its own section.
2164 * c-warn.c: New file.
2165
627be19f
JM
21662016-10-08 Jason Merrill <jason@redhat.com>
2167
2168 * c-common.c (c_common_truthvalue_conversion): Don't distribute
2169 into COND_EXPR in C++.
2170
7bad794a
JJ
21712016-10-08 Jakub Jelinek <jakub@redhat.com>
2172
2173 * c-lex.c (c_lex_with_flags) <case CPP_COMMENT>: For CPP_COMMENT
2174 token with PREV_FALLTHROUGH, skip all following CPP_PADDING and
2175 CPP_COMMENT tokens and set add_flags to PREV_FALLTHROUGH afterwards.
2176
be845b04
JJ
21772016-10-07 Jakub Jelinek <jakub@redhat.com>
2178
2179 Implement LWG2296 helper intrinsic
2180 * c-common.h (enum rid): Add RID_ADDRESSOF.
2181 * c-common.c (c_common_reswords): Add __builtin_addressof.
2182
c09c4992
BE
21832016-10-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
2184
2185 PR c++/77700
2186 * c-common.c (c_common_truthvalue_conversion): Warn also for
2187 suspicious enum values in boolean context.
2188
342cfb3e
JJ
21892016-10-06 Jakub Jelinek <jakub@redhat.com>
2190
2191 Implement P0258R2 - helper for C++17
2192 std::has_unique_object_representations trait
2193 * c-common.h (enum rid): Add RID_HAS_UNIQUE_OBJ_REPRESENTATIONS.
2194 * c-common.c (c_common_reswords): Add
2195 __has_unique_object_representations.
2196
2e69f143
JJ
21972016-10-05 Jakub Jelinek <jakub@redhat.com>
2198
2199 PR sanitizer/66343
2200 * c-ubsan.c (ubsan_instrument_return): Don't call
2201 initialize_sanitizer_builtins here.
2202
700fff34
BE
22032016-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
2204
2205 * c-common.c (c_common_truthvalue_conversion): Warn also for suspicious
2206 conditional expression in boolean context when only one arm is
2207 non-boolean.
2208
9563bfcd
JJ
22092016-10-05 Jakub Jelinek <jakub@redhat.com>
2210
04a32443
JJ
2211 PR sanitizer/77823
2212 * c-ubsan.c (ubsan_instrument_shift): Return NULL_TREE if type0
2213 is not integral.
2214
9563bfcd
JJ
2215 * c-common.c (c_common_reswords): Update comment for C++11.
2216
f1644724
JM
22172016-10-04 Jason Merrill <jason@redhat.com>
2218
2219 * c-common.c (make_tree_vector_from_ctor): New.
2220 * c-common.h: Declare it.
2221
5a79befb
JJ
22222016-10-04 Jakub Jelinek <jakub@redhat.com>
2223
2224 * c-cppbuiltin.c (c_cpp_builtins): Don't define
2225 __LIBGCC_JCR_SECTION_NAME__.
2226
1633d3b9
BE
22272016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
2228
2229 * c-common.c (c_common_truthvalue_conversion): Warn for suspicious
2230 left shift in boolean context.
2231
a2c6e7f2
JJ
22322016-09-29 Jakub Jelinek <jakub@redhat.com>
2233
2234 Implement P0001R1 - C++17 removal of register storage class specifier
2235 * c.opt (Wregister): New warning.
2236 * c-opts.c (c_common_post_options): Enable -Wregister by
2237 default for C++17.
2238
75304c87
JG
22392016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
2240
2241 * c-opts.c (c_common_post_options): Remove special case for
2242 TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard
2243 in C++.
2244
bbfac6da
JJ
22452016-09-27 Jakub Jelinek <jakub@redhat.com>
2246
6e39060a
JJ
2247 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for
2248 -std=c++1z.
2249
bbfac6da
JJ
2250 * c-ada-spec.c (print_ada_declaration): Remove break after return.
2251
e73cf9a2
TP
22522016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
2253
2254 * c-common.c: Include memmodel.h.
2255
c6147dc4
MP
22562016-09-26 Marek Polacek <polacek@redhat.com>
2257
2258 * c-lex.c (c_common_has_attribute): Handle attribute fallthrough.
2259
81fea426
MP
22602016-09-26 Marek Polacek <polacek@redhat.com>
2261
2262 PR c/7652
2263 * c-common.c (c_common_attribute_table): Add fallthrough attribute.
2264 (handle_fallthrough_attribute): New function.
2265 (attribute_fallthrough_p): New function.
2266 * c-common.h (attribute_fallthrough_p): Declare.
2267
9a2300e9
MP
22682016-09-24 Marek Polacek <polacek@redhat.com>
2269
2270 PR c/77490
2271 * c.opt (Wbool-operation): New.
2272
a09e9e35
BE
22732016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
2274
2275 * c-common.c (c_common_truthvalue_conversion): Inhibit
2276 Wint-in-bool-context warning with from_macro_definition_at.
2277 Mention the expression will always evaluate to true.
2278
d43b4ccc
MS
22792016-09-21 Martin Sebor <msebor@redhat.com>
2280
2281 PR bootstrap/77676
2282 * c.opt (fprintf-return-value): Temporarily initialize to zero
2283 to unblock bootstrap failures.
2284
2e1c20b1
JJ
22852016-09-21 Jakub Jelinek <jakub@redhat.com>
2286
2287 PR c++/77651
2288 * c.opt (Waligned-new=): Add RejectNegative.
2289 (faligned-new=): Likewise. Spelling fix - change
2290 aligned_new_threshhold to aligned_new_threshold.
2291 * c-cppbuiltin.c (c_cpp_builtins): Change aligned_new_threshhold
2292 to aligned_new_threshold.
2293
88d0c3f0
MS
22942016-09-20 Martin Sebor <msebor@redhat.com>
2295
2296 PR middle-end/49905
2297 * c.opt: Add -Wformat-length and -fprintf-return-value.
2298
144a96e4
BE
22992016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
2300
2301 PR c++/77434
2302 * c.opt (Wint-in-bool-context): New warning.
2303 * c-common.c (c_common_truthvalue_conversion): Warn on integer
2304 constants in boolean context.
2305
63012d9a
JM
23062016-09-19 Joseph Myers <joseph@codesourcery.com>
2307
2308 * c-common.c (max_align_t_align): Also consider alignment of
2309 float128_type_node.
2310
931388ce
JM
23112016-09-15 Jason Merrill <jason@redhat.com>
2312
2313 * c-common.c (check_cxx_fundamental_alignment_constraints): Check
2314 DECL_EXTERNAL.
2315
38711381
JM
23162016-09-14 Jason Merrill <jason@redhat.com>
2317
2318 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
2319 limit FIELD_DECL, either.
2320
e51fbec3
MP
23212016-09-14 Marek Polacek <polacek@redhat.com>
2322
2323 * c-common.c (c_common_truthvalue_conversion): Use false instead of 0.
2324 * c-common.h (build_unary_op): Change nonconvert parameter type to bool.
2325 * c-omp.c (c_finish_omp_atomic): Use false instead of 0.
2326
254830ba
DM
23272016-09-13 David Malcolm <dmalcolm@redhat.com>
2328
2329 * c-common.c (warn_logical_not_parentheses): Replace
2330 rich_location::add_fixit_insert calls with add_fixit_insert_before
2331 and add_fixit_insert_after, eliminating the "next_loc" calculation.
2332
42763690
JM
23332016-09-13 Jason Merrill <jason@redhat.com>
2334 Tom de Vries <tom@codesourcery.com>
2335
2336 PR c++/77427
2337 * c-common.c (set_underlying_type): Don't treat array as builtin type.
2338
9453eee9
JM
23392016-09-13 Jason Merrill <jason@redhat.com>
2340
2341 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
2342 limit types at all.
2343
e96809e3
JM
23442016-09-12 Jason Merrill <jason@redhat.com>
2345
2346 * c-common.c (check_cxx_fundamental_alignment_constraints): Fix
2347 bit/byte confusion, allow large alignment for types.
2348
54dcdb88
BE
23492016-09-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
2350
2351 PR c++/77496
2352 * c-common.c (warn_for_omitted_condop): Also warn for boolean data.
2353
d1463eb9
DM
23542016-09-12 David Malcolm <dmalcolm@redhat.com>
2355
2356 PR c/72858
2357 * c-format.c (argument_parser::check_argument_type): Add params
2358 "type_start" and "conversion_char". Use the former to generate
2359 offset_to_type_start and pass it and conversion_char to
2360 check_format_types.
2361 (check_format_info_main): Capture the start of the type
2362 information as "type_start", and pass it an format_char
2363 to arg_parser.check_argument_type.
2364 (check_format_types): Provide an example in the leading comment.
2365 Add params "offset_to_type_start" and "conversion_char"; pass
2366 them to format_type_warning calls.
2367 (test_get_modifier_for_format_len): Likewise.
2368 (matching_type_p): New function.
2369 (get_format_for_type): Add param "conversion_char" and move
2370 implementation into...
2371 (get_format_for_type_1): ...new function, called twice.
2372 Use new function matching_type_p rather than checking for
2373 TYPE_CANONICAL equality.
2374 (get_corrected_substring): New function.
2375 (format_type_warning): Provide an example in the leading comment.
2376 Add params "offset_to_type_start" and "conversion_char". Replace
2377 call to get_format_for_type with call to get_corrected_substring
2378 and move rejection of hints for widths/precisions there.
2379 (assert_format_for_type_streq): Add param "conversion_char".
2380 (ASSERT_FORMAT_FOR_TYPE_STREQ): Add param CONVERSION_CHAR.
2381 (test_get_format_for_type_printf): Add conversion chars to the
2382 tests, adding coverage for various combinations of integer
2383 vs double conversions, and for preserving octal and hexadecimal
2384 conversions.
2385 (test_get_format_for_type_scanf): Add conversion chars to the
2386 tests.
2387
5b28efbb
TV
23882016-09-10 Tom de Vries <tom@codesourcery.com>
2389
2390 PR C/71602
2391 * c-common.c (build_va_arg): Handle more strict
2392 targetm.canonical_va_list_type. Replace first argument type error with
2393 assert.
2394
3f0177e7
MS
23952016-09-09 Martin Sebor <msebor@redhat.com>
2396
2397 PR c/77520
2398 PR c/77521
2399 * c-format.c (argument_parser::find_format_char_info): Use %qc
2400 format directive unconditionally.
2401
af63ba4b
JM
24022016-09-09 Jason Merrill <jason@redhat.com>
2403
2404 Implement C++17 new of over-aligned types.
2405 * c.opt: Add -faligned-new and -Waligned-new.
2406 * c-common.c (max_align_t_align): Split out from...
2407 (cxx_fundamental_alignment_p): ...here.
2408 * c-common.h: Declare it.
2409 * c-cppbuiltin.c (c_cpp_builtins): Handle aligned new.
2410
c65248cb
JM
24112016-09-09 Joseph Myers <joseph@codesourcery.com>
2412
2413 * c-cppbuiltin.c (builtin_define_type_width): New function.
2414 (builtin_define_stdint_macros, c_cpp_builtins): Define type width
2415 macros.
2416
e5106e27
DM
24172016-09-07 David Malcolm <dmalcolm@redhat.com>
2418
2419 * c-common.c (get_cpp_ttype_from_string_type): Handle being passed
2420 a POINTER_TYPE.
2421 (substring_loc::get_location): Move to substring-locations.c,
2422 keeping implementation as...
2423 (c_get_substring_location): New function, from the above, reworked
2424 to use accessors rather than member lookup.
2425 * c-common.h (class substring_loc): Move to substring-locations.h,
2426 replacing with a forward decl.
2427 (c_get_substring_location): New decl.
2428 * c-format.c: Include "substring-locations.h".
2429 (format_warning_va): Move to substring-locations.c.
2430 (format_warning_at_substring): Likewise.
2431
a42e7952
MS
24322016-09-06 Martin Sebor <msebor@redhat.com>
2433
2434 PR c/77336
2435 * c-format.c (check_function_format): Avoid issuing warnings for
2436 functions unless they call format functions with non-constant
2437 format strings.
2438
b772a565
RB
24392016-09-06 Richard Biener <rguenther@suse.de>
2440
2441 PR c/77450
2442 * c-common.c (c_common_mark_addressable_vec): Handle
2443 COMPOUND_LITERAL_EXPR.
2444
25ff5dd3
MP
24452016-09-05 Marek Polacek <polacek@redhat.com>
2446
2447 PR c/77423
2448 * c-common.c (bool_promoted_to_int_p): New function.
2449 (expr_has_boolean_operands_p): New function.
2450 (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p.
2451 (maybe_warn_bool_compare): Use bool_promoted_to_int_p.
2452
21234eb5
TV
24532016-09-04 Tom de Vries <tom@codesourcery.com>
2454
2455 revert:
2456 2016-08-29 Tom de Vries <tom@codesourcery.com>
2457
2458 * c-common.c (build_va_arg): Replace first argument type error
2459 with assert.
2460
9dc5773f
JJ
24612016-09-02 Jakub Jelinek <jakub@redhat.com>
2462
2463 PR c/65467
2464 * c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions.
2465 (c_finish_omp_for): Reject _Atomic qualified iterators.
2466
24672016-09-01 Martin Sebor <msebor@redhat.com>
3d7b83b6
MS
2468
2469 * c-ada-spec.c (dump_ada_function_declaration): Increase buffer
2470 size to guarantee it fits the output of the formatted function
2471 regardless of its arguments.
2472
295844f6
MP
24732016-09-01 Marek Polacek <polacek@redhat.com>
2474
2475 PR c/7652
2476 * c-common.c (resolve_overloaded_builtin): Fix formatting. Add
2477 FALLTHRU comments.
2478
3d06b6f2
MP
24792016-08-29 Marek Polacek <polacek@redhat.com>
2480
2481 PR c/77292
2482 * c-common.c (warn_logical_not_parentheses): Don't warn for
2483 a comparison or a logical operator.
2484
34cedad5
TV
24852016-08-29 Tom de Vries <tom@codesourcery.com>
2486
2487 * c-common.c (build_va_arg): Fix type comparison assert.
2488
f162d717
TV
24892016-08-29 Tom de Vries <tom@codesourcery.com>
2490
2491 * c-common.c (build_va_arg): Replace first argument type error
2492 with assert.
2493
ba9bbd6f
TV
24942016-08-29 Tom de Vries <tom@codesourcery.com>
2495
2496 PR c/77398
2497 * c-common.c (build_va_arg): Add first argument error. Build va_arg
2498 with error_mark_node as va_list instead of with illegal va_list.
2499
ebef225f
MP
25002016-08-25 Marek Polacek <polacek@redhat.com>
2501 David Malcolm <dmalcolm@redhat.com>
2502
2503 * c-common.c (warn_logical_not_parentheses): Print fixit hints.
2504 * c-common.h (warn_logical_not_parentheses): Update declaration.
2505
b00e6e75
MP
25062016-08-22 Marek Polacek <polacek@redhat.com>
2507
2508 PR c++/77321
2509 * c-common.c (warn_for_memset): Check type for null.
2510
6dc198e3
JM
25112016-08-22 Joseph Myers <joseph@codesourcery.com>
2512
14ec014e 2513 * c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and
6dc198e3
JM
2514 _FloatNx types for suffixes for built-in functions.
2515
c65699ef
JM
25162016-08-19 Joseph Myers <joseph@codesourcery.com>
2517
2518 PR c/32187
2519 * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32)
2520 (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X)
2521 (RID_FLOAT128X): New enum rid values.
2522 (CASE_RID_FLOATN_NX): New macro.
2523 * c-common.c (c_common_reswords): Add _FloatN and _FloatNx
2524 keywords.
2525 (c_common_type_for_mode): Check for _FloatN and _FloatNx and
2526 corresponding complex types.
2527 (c_common_nodes_and_builtins): For non-C++, register _FloatN and
2528 _FloatNx and corresponding complex types.
2529 (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX.
2530 * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN
2531 and _FloatNx types for the widest type for determining
2532 DECIMAL_DIG. Define __LDBL_DECIMAL_DIG__ as well as
2533 __DECIMAL_DIG__ for long double. Handle FMA_SUFFIX being NULL.
2534 (c_cpp_builtins): Call builtin_define_float_constants for _FloatN
2535 and _FloatNx types.
2536 * c-lex.c (interpret_float): Handle _FloatN and _FloatNx
2537 constants.
2538 * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and
2539 _FloatNx types.
2540
cc015f3a
DM
25412016-08-18 David Malcolm <dmalcolm@redhat.com>
2542
2543 * c-opts.c (c_diagnostic_finalizer): Update for change to
2544 diagnostic_show_locus.
2545
cb18fd07
DM
25462016-08-18 David Malcolm <dmalcolm@redhat.com>
2547
2548 * c-common.c: Include "spellcheck.h".
2549 (cb_get_suggestion): New function.
2550 * c-common.h (cb_get_suggestion): New decl.
2551 * c-lex.c (init_c_lex): Initialize cb->get_suggestion to
2552 cb_get_suggestion.
2553
a76989dc
MP
25542016-08-18 Marek Polacek <polacek@redhat.com>
2555
2556 PR c/71514
2557 * c-common.c (get_atomic_generic_size): Disallow pointer-to-function
2558 and pointer-to-VLA.
2559
65e736c0
DM
25602016-08-16 David Malcolm <dmalcolm@redhat.com>
2561
2562 PR c/72857
2563 * c-common.c (substring_loc::get_range): Rename to...
2564 (substring_loc::get_location): ...this, converting param from a
2565 source_range * to a location_t *. Call
2566 get_source_location_for_substring rather than
2567 get_source_range_for_substring, and pass in m_caret_idx.
2568 * c-common.h (substring_loc::substring_loc): Add param "caret_idx".
2569 (substring_loc::get_range): Replace with...
2570 (substring_loc::get_location): ...this.
2571 (substring_loc::set_caret_index): New method.
2572 (substring_loc): Add field m_caret_idx.
2573 * c-format.c (format_warning_va): Update for above changes.
2574 Rename local "substring_loc" to "fmt_substring_loc" to avoid
2575 clashing with type name.
2576 (format_warning_at_char): Add caret_idx param to substring_loc ctor.
2577 (check_argument_type): Likewise.
2578 (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc"
2579 Use a copy when emitting warnings, setting the caret index from TYPE.
2580
7e1dde14 25812016-08-16 Eric Botcazou <ebotcazou@adacore.com>
8e745a17 2582 Arnaud Charlet <charlet@adacore.com>
7e1dde14
EB
2583
2584 * c-ada-spec.c (dump_number): New function.
2585 (handle_escape_character): Likewise.
2586 (print_ada_macros): Add handling of constant integers and strings.
2587
191816a3
MP
25882016-08-12 Marek Polacek <polacek@redhat.com>
2589
2590 PR c/7652
2591 * c-common.c (scalar_to_vector): Adjust fall through comment.
2592 * c-opts.c (c_common_handle_option): Likewise.
2593 * c-pragma.c (handle_pragma_pack): Add FALLTHRU.
2594 * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust
2595 fall through comment.
2596 * cilk.c (extract_free_variables): Add FALLTHRU.
2597
452df4a4
JM
25982016-08-10 Jason Merrill <jason@redhat.com>
2599
2600 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr.
2601
f3365c12
JM
26022016-08-09 Jason Merrill <jason@redhat.com>
2603
2604 * c-common.c (c_common_attribute_table): vector_size affects type
2605 identity.
2606
f0bc3323
MP
26072016-08-09 Marek Polacek <polacek@redhat.com>
2608
2609 PR c/7652
2610 * c-ada-spec.c (dump_generic_ada_node): Add return.
2611
98e5a19a
JM
26122016-08-09 Jason Merrill <jason@redhat.com>
2613
2614 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for
2615 C++17 constexpr lambdas.
2616
895aa8e1
DM
26172016-08-08 David Malcolm <dmalcolm@redhat.com>
2618
2619 PR c/64955
2620 * c-common.h (selftest::c_format_c_tests): New declaration.
2621 (selftest::run_c_tests): New declaration.
2622 * c-format.c: Include "selftest.h.
2623 (format_warning_va): Add param "corrected_substring" and use
2624 it to add a replacement fix-it hint.
2625 (format_warning_at_substring): Likewise.
2626 (format_warning_at_char): Update for new param of
2627 format_warning_va.
2628 (argument_parser::check_argument_type): Pass "fki" to
2629 check_format_types.
2630 (check_format_types): Add param "fki" and pass it to
2631 format_type_warning.
2632 (deref_n_times): New function.
2633 (get_modifier_for_format_len): New function.
2634 (selftest::test_get_modifier_for_format_len): New function.
2635 (get_format_for_type): New function.
2636 (format_type_warning): Add param "fki" and use it to attempt
2637 to provide hints for argument types when calling
2638 format_warning_at_substring.
2639 (selftest::get_info): New function.
2640 (selftest::assert_format_for_type_streq): New function.
2641 (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro.
2642 (selftest::test_get_format_for_type_printf): New function.
2643 (selftest::test_get_format_for_type_scanf): New function.
2644 (selftest::c_format_c_tests): New function.
2645
e52ed3fe
DM
26462016-08-08 David Malcolm <dmalcolm@redhat.com>
2647
2648 PR c/52952
2649 * c-format.c: Include "diagnostic.h".
2650 (location_column_from_byte_offset): Delete.
2651 (location_from_offset): Delete.
2652 (format_warning_va): New function.
2653 (format_warning_at_substring): New function.
2654 (format_warning_at_char): New function.
2655 (check_format_arg): Capture location of format_tree and pass to
2656 check_format_info_main.
2657 (argument_parser): Add fields "start_of_this_format" and
2658 "format_string_cst".
2659 (flag_chars_t::validate): Add param "format_string_cst". Convert
2660 warning_at call using location_from_offset to call to
2661 format_warning_at_char.
2662 (argument_parser::argument_parser): Add param "format_string_cst_"
2663 and use use it to initialize field "format_string_cst".
2664 Initialize new field "start_of_this_format".
2665 (argument_parser::read_format_flags): Convert warning_at call
2666 using location_from_offset to a call to format_warning_at_char.
2667 (argument_parser::read_any_format_left_precision): Likewise.
2668 (argument_parser::read_any_format_precision): Likewise.
2669 (argument_parser::read_any_other_modifier): Likewise.
2670 (argument_parser::find_format_char_info): Likewise, in three places.
2671 (argument_parser::parse_any_scan_set): Likewise, in one place.
2672 (argument_parser::handle_conversions): Likewise, in two places.
2673 (argument_parser::check_argument_type): Add param "fmt_param_loc"
2674 and use it to make a substring_loc. Pass the latter to
2675 check_format_types.
2676 (check_format_info_main): Add params "fmt_param_loc" and
2677 "format_string_cst". Convert warning_at calls using
2678 location_from_offset to calls to format_warning_at_char. Pass the
2679 new params to the arg_parser ctor. Pass "format_string_cst" to
2680 flag_chars.validate. Pass "fmt_param_loc" to
2681 arg_parser.check_argument_type.
2682 (check_format_types): Convert first param from a location_t
2683 to a const substring_loc & and rename to "fmt_loc". Attempt
2684 to extract the range of the relevant parameter and pass it
2685 to format_type_warning.
2686 (format_type_warning): Convert first param from a location_t
2687 to a const substring_loc & and rename to "fmt_loc". Add
2688 params "param_range" and "type". Replace calls to warning_at
2689 with calls to format_warning_at_substring.
2690
1c4d457e
DM
26912016-08-08 David Malcolm <dmalcolm@redhat.com>
2692
2693 * c-format.c (class flag_chars_t): New class.
2694 (struct length_modifier): New struct.
2695 (class argument_parser): New class.
2696 (flag_chars_t::flag_chars_t): New ctor.
2697 (flag_chars_t::has_char_p): New method.
2698 (flag_chars_t::add_char): New method.
2699 (flag_chars_t::validate): New method.
2700 (flag_chars_t::get_alloc_flag): New method.
2701 (flag_chars_t::assignment_suppression_p): New method.
2702 (argument_parser::argument_parser): New ctor.
2703 (argument_parser::read_any_dollar): New method.
2704 (argument_parser::read_format_flags): New method.
2705 (argument_parser::read_any_format_width): New method.
2706 (argument_parser::read_any_format_left_precision): New method.
2707 (argument_parser::read_any_format_precision): New method.
2708 (argument_parser::handle_alloc_chars): New method.
2709 (argument_parser::read_any_length_modifier): New method.
2710 (argument_parser::read_any_other_modifier): New method.
2711 (argument_parser::find_format_char_info): New method.
2712 (argument_parser::validate_flag_pairs): New method.
2713 (argument_parser::give_y2k_warnings): New method.
2714 (argument_parser::parse_any_scan_set): New method.
2715 (argument_parser::handle_conversions): New method.
2716 (argument_parser::check_argument_type): New method.
2717 (check_format_info_main): Introduce classes argument_parser
2718 and flag_chars_t, moving the code within the loop into methods
2719 of these classes. Make various locals "const".
2720
88fa5555
DM
27212016-08-05 David Malcolm <dmalcolm@redhat.com>
2722
2723 * c-common.c: Include "substring-locations.h".
2724 (get_cpp_ttype_from_string_type): New function.
2725 (g_string_concat_db): New global.
2726 (substring_loc::get_range): New method.
2727 * c-common.h (g_string_concat_db): New declaration.
2728 (class substring_loc): New class.
2729 * c-lex.c (lex_string): When concatenating strings, capture the
2730 locations of all tokens using a new obstack, and record the
2731 concatenation locations within g_string_concat_db.
2732 * c-opts.c (c_common_init_options): Construct g_string_concat_db
2733 on the ggc-heap.
2734
78169471
MP
27352016-07-29 Marek Polacek <polacek@redhat.com>
2736
638fc14f
MP
2737 PR c/71926
2738 * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the
2739 parentheses warning.
2740
78169471
MP
2741 PR c/71574
2742 * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL.
2743
1225d6b1
ML
27442016-07-28 Martin Liska <mliska@suse.cz>
2745
2746 PR gcov-profile/68025
2747 * c-common.c (handle_no_profile_instrument_function_attribute):
2748
ec1e2a40
BE
27492016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
2750
2751 * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of
2752 BITS_PER_UNIT_LOG.
2753
5ec2cd9f
JM
27542016-07-25 Jason Merrill <jason@redhat.com>
2755
2756 PR c++/65970
2757 * c.opt (fconstexpr-loop-limit): New.
2758
9dc5773f 27592016-07-22 Martin Sebor <msebor@redhat.com>
2e6b45af
MS
2760
2761 PR c++/71675
2762 * c-common.c (resolve_overloaded_builtin): Avoid converting
2763 __atomic_compare_exchange_n return type to that of what its
2764 first argument points to.
2765
e3fe09c1
UB
27662016-07-22 Uros Bizjak <ubizjak@gmail.com>
2767
2768 * c-common.c: Use HOST_WIDE_INT_M1U instead of
2769 ~(unsigned HOST_WIDE_INT) 0.
2770
bc91c436
ML
27712016-07-22 Martin Liska <mliska@suse.cz>
2772
2773 PR gcov-profile/69028
2774 PR gcov-profile/62047
2775 * cilk.c (create_cilk_helper_decl): Set location of a new decl
2776 to the current_function_decl.
2777
451dcc66
JM
27782016-07-21 Jason Merrill <jason@redhat.com>
2779
2780 PR c++/65168
2781 * c-common.c (c_common_truthvalue_conversion): Check
2782 c_inhibit_evaluation_warnings for warning about address of
2783 reference.
2784
de6a69ee
DM
27852016-07-20 David Malcolm <dmalcolm@redhat.com>
2786
2787 * c-common.h (lookup_name_fuzzy): Convert return type from tree to
2788 const char *.
2789
d022c55a
JM
27902016-07-15 Jason Merrill <jason@redhat.com>
2791
2792 * c-opts.c (c_common_post_options): Update -fabi-version default to 11.
2793
ddbbcb19
JJ
27942016-07-15 Jakub Jelinek <jakub@redhat.com>
2795
2796 PR c/71858
2797 * c-common.h (enum lookup_name_fuzzy_kind): Add
2798 FUZZY_LOOKUP_FUNCTION_NAME.
2799
d0cf395a
JM
28002016-07-08 Jason Merrill <jason@redhat.com>
2801
2802 P0145: Refining Expression Order for C++.
2803 * c.opts (-fargs-in-order): Rename to -fstrong-eval-order.
2804 * c-opts.c: Adjust.
2805
98d44e93
MT
28062016-07-05 Markus Trippelsdorf <markus@trippelsdorf.de>
2807
2808 PR c++/71214
2809 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.
2810
f9d8d994
TS
28112016-06-29 Thomas Schwinge <thomas@codesourcery.com>
2812
2813 * c-pragma.h (enum pragma_kind): Rename
2814 PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE. Adjust all
2815 users.
2816
4aa83879
RB
28172016-06-29 Richard Biener <rguenther@suse.de>
2818
2819 PR middle-end/71002
2820 * c-common.c (c_common_get_alias_set): Remove union type punning case.
2821
a25bd9e6
JM
28222016-06-24 Jason Merrill <jason@redhat.com>
2823
2824 P0145R2: Refining Expression Order for C++.
2825 * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of
2826 MODIFY_EXPR.
2827
a86451b9
JJ
28282016-06-24 Jakub Jelinek <jakub@redhat.com>
2829
2830 * c-common.c (check_builtin_function_arguments): Require last
2831 argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type.
2832 Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW
2833 if the last argument is pointer to enumerated or boolean type.
2834
1a4f11c8
DM
28352016-06-22 David Malcolm <dmalcolm@redhat.com>
2836
2837 PR c/70339
2838 * c-common.h (enum lookup_name_fuzzy_kind): New enum.
2839 (lookup_name_fuzzy): New prototype.
2840
fe55692c
JDA
28412016-06-21 John David Anglin <danglin@gcc.gnu.org>
2842
2843 * c-common.c (get_source_date_epoch): Use int64_t instead of long long.
2844
4eb24e01
JM
28452016-06-14 Jason Merrill <jason@redhat.com>
2846
2847 P0145R2: Refining Expression Order for C++.
2848 * c.opt (fargs-in-order): New.
2849 * c-opts.c (c_common_post_options): Adjust flag_args_in_order.
2850
ef7cf206
JJ
28512016-06-13 Jakub Jelinek <jakub@redhat.com>
2852
0dda258b
JJ
2853 PR sanitizer/71498
2854 * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
2855 all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.
2856
ef7cf206
JJ
2857 PR preprocessor/71183
2858 * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch
2859 to cb_get_source_date_epoch.
2860
50b15873
JJ
28612016-06-10 Jakub Jelinek <jakub@redhat.com>
2862
2863 PR c/68657
2864 * c.opt (Wpsabi): Add Warning flag.
2865
4d926e34
MS
28662016-06-10 Martin Sebor <msebor@redhat.com>
2867
2868 PR c/71392
14ec014e 2869 * c-common.c (handle_nonnull_attribute): Accept
4d926e34
MS
2870 the nonnull attribute in type-generic builtins.
2871
e01b4e16
MS
28722016-06-09 Martin Sebor <msebor@redhat.com>
2873
2874 PR c/70883
2875 * c-common.c (builtin_function_validate_nargs): Make text of error
2876 message consistent with others like it.
2877
44a845ca
MS
28782016-06-08 Martin Sebor <msebor@redhat.com>
2879 Jakub Jelinek <jakub@redhat.com>
2880
2881 PR c++/70507
2882 PR c/68120
2883 * c-common.c (check_builtin_function_arguments): Handle
2884 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
2885
a80a7051
RB
28862016-06-08 Richard Biener <rguenther@suse.de>
2887
2888 * c-common.c (parse_optimize_options): Improve diagnostic messages.
2889
bfd67b47
RB
28902016-06-07 Richard Biener <rguenther@suse.de>
2891
2892 PR c/61564
2893 * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION
2894 options and warn about others.
2895
15c98b2e
ES
28962016-06-01 Eduard Sanou <dhole@openmailbox.org>
2897
2898 * c-common.c (get_source_date_epoch): Rename to
2899 cb_get_source_date_epoch.
2900 * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
2901 message when the parsing fails. Use error_at instead of fatal_error.
2902 * c-common.h (get_source_date_epoch): Rename to
2903 cb_get_source_date_epoch.
2904 * c-common.h (cb_get_source_date_epoch): Prototype.
2905 * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
2906 * c-common.h (c_omp_region_type): Remove trailing comma.
2907 * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
2908 * c-lex.c (c_lex_with_flags): Remove initialization of
2909 pfile->source_date_epoch.
2910
00631022
JJ
29112016-05-30 Jakub Jelinek <jakub@redhat.com>
2912
2913 PR c++/71349
2914 * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
2915 C_OMP_CLAUSE_SPLIT_TARGET. Put OMP_CLAUSE_NOWAIT to
2916 C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
2917 instead of C_OMP_CLAUSE_SPLIT_FOR.
2918
f17a223d
RB
29192016-05-24 Richard Biener <rguenther@suse.de>
2920
2921 PR middle-end/70434
2922 PR c/69504
2923 * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
2924 (convert_vector_to_array_for_subscript): ... this.
2925 * c-common.c (convert_vector_to_pointer_for_subscript): Use a
2926 VIEW_CONVERT_EXPR to an array type. Rename to ...
2927 (convert_vector_to_array_for_subscript): ... this.
2928
4f2e1536
MP
29292016-05-12 Marek Polacek <polacek@redhat.com>
2930
2931 PR c/70756
2932 * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
2933 size_in_bytes and pass LOC to it.
2934
d6e83a8d
MM
29352016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
2936
2937 PR c/43651
2938 * c.opt (Wduplicate-decl-specifier): New option.
2939
5c3a10fb
MP
29402016-05-11 Marek Polacek <polacek@redhat.com>
2941
2942 PR c++/71024
2943 * c-common.c (diagnose_mismatched_attributes): New function.
2944 * c-common.h (diagnose_mismatched_attributes): Declare.
2945
deef7113
MP
29462016-05-04 Marek Polacek <polacek@redhat.com>
2947
2948 * c.opt (Wdangling-else): New option.
2949
79ce98bc
MP
29502016-05-03 Marek Polacek <polacek@redhat.com>
2951
2952 PR c/70859
2953 * c-common.c (builtin_function_validate_nargs): Add location
2954 parameter. Use it.
2955 (check_builtin_function_arguments): Add location and arguments
2956 parameters. Use them.
2957 * c-common.h (check_builtin_function_arguments): Update declaration.
2958
381cdae4
RB
29592016-05-03 Richard Biener <rguenther@suse.de>
2960
2961 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
2962 allow call args to gimplify to SSA names.
2963
1d793c34
MP
29642016-05-03 Marek Polacek <polacek@redhat.com>
2965
2966 * c-common.h (enum c_omp_region_type): Remove stray comma.
2967
77886428
CP
29682016-05-02 Cesar Philippidis <cesar@codesourcery.com>
2969
2970 * c-common.h (enum c_omp_region_type): Define.
2971
697e0b28
RS
29722016-05-02 Richard Sandiford <richard.sandiford@arm.com>
2973
2974 * c-common.c (shorten_compare): Use wi::to_wide.
2975
e7ff0319
CP
29762016-04-29 Cesar Philippidis <cesar@codesourcery.com>
2977
2978 PR middle-end/70626
2979 * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
2980 * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
2981 reduction clauses in acc parallel loops.
2982
2fff3db8
MP
29832016-04-29 Marek Polacek <polacek@redhat.com>
2984
2985 PR c/70852
2986 * c-common.c (warn_for_memset): Check domain before accessing it.
2987
509063eb
DV
29882016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
2989
2990 PR/69089
2991 * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
2992 "aligned" attribute.
2993
b632761d
JM
29942016-04-28 Jason Merrill <jason@redhat.com>
2995
2996 * c-lex.c (c_common_has_attribute): Handle nodiscard.
2997
174f6622
ES
29982016-04-28 Eduard Sanou <dhole@openmailbox.org>
2999 Matthias Klose <doko@debian.org>
3000
3001 * c-common.c (get_source_date_epoch): New function, gets the environment
7365279f 3002 variable SOURCE_DATE_EPOCH and parses it as long long with error
174f6622
ES
3003 handling.
3004 * c-common.h (get_source_date_epoch): Prototype.
3005 * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
3006
6bc2bb18
RB
30072015-04-27 Ryan Burn <contact@rnburn.com>
3008
3009 PR c++/69024
3010 PR c++/68997
3011 * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
3012 (cilk_recognize_spawn): Renamed from recognize_spawn and change to
3013 external linkage.
3014 (cilk_detect_and_unwrap): Corresponding changes.
3015 (extract_free_variables): Don't extract free variables from
3016 AGGR_INIT_EXPR slot.
3017 * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
3018 (cilk_recognize_spawn): Likewise.
3019
c1e1f433
BS
30202016-04-27 Bernd Schmidt <bschmidt@redhat.com>
3021
3022 * c.opt (Wmemset-elt-size): New option.
3023 * c-common.c (warn_for_memset): New function.
3024 * c-common.h (warn_for_memset): Declare.
3025
d067e05f
JM
30262016-04-25 Jason Merrill <jason@redhat.com>
3027
3028 * c-common.c (handle_unused_attribute): Accept CONST_DECL.
3029 No longer static.
3030 * c-common.h: Declare it.
3031 * c-lex.c (c_common_has_attribute): Add maybe_unused.
3032
9aa36ae5
JM
30332016-04-22 Jason Merrill <jason@redhat.com>
3034
3035 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
3036
477d4906
IV
30372016-04-20 Ilya Verbin <ilya.verbin@intel.com>
3038
3039 PR c++/69363
3040 * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
3041 * c-common.h (c_finish_cilk_clauses): Remove declaration.
3042
fe37c7af
MM
30432016-04-18 Michael Matz <matz@suse.de>
3044
3045 * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
3046 and SET_DECL_ALIGN.
3047
23f2660f
EB
30482016-04-17 Eric Botcazou <ebotcazou@adacore.com>
3049
3050 * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
3051 (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
3052 to incomplete types.
3053 (dump_nested_type): Remove redundant tests and tidy up.
3054 (print_ada_declaration): Also set TREE_VISITED on the declaration of
3055 a type which is the typedef of an original type.
3056
1e77281b
MP
30572016-04-15 Marek Polacek <polacek@redhat.com>
3058
3059 PR c/70651
3060 * c-common.c (build_va_arg): Change two asserts into errors and return
3061 error_mark_node.
3062
b3a77f21
MP
30632016-04-13 Marek Polacek <polacek@redhat.com>
3064
3065 PR c++/70639
3066 * c-indentation.c (should_warn_for_misleading_indentation): Bail out
3067 for switch statements, too.
3068
322b8466
JM
30692016-03-28 Jason Merrill <jason@redhat.com>
3070
3071 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
3072
fbdb6baf
MP
30732016-03-23 Marek Polacek <polacek@redhat.com>
3074
3075 PR c++/69884
3076 * c.opt (Wignored-attributes): New option.
3077
5c240f4d
DM
30782016-03-22 David Malcolm <dmalcolm@redhat.com>
3079
3080 PR c/69993
3081 * c-indentation.c (warn_for_misleading_indentation): Rewrite the
3082 diagnostic text, reversing the order of the warning and note so
3083 that they appear in source order.
3084
14ba7b28
MP
30852016-03-17 Marek Polacek <polacek@redhat.com>
3086
3087 PR c/69407
3088 * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
3089 operations.
3090
08a1cadc
JM
30912016-03-14 Jason Merrill <jason@redhat.com>
3092
2aaeea19
JM
3093 * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
3094
08a1cadc
JM
3095 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
3096
c06d25bb
RB
30972016-03-09 Richard Biener <rguenther@suse.de>
3098
3099 PR c/70143
3100 * c-common.c (strict_aliasing_warning): Add back
3101 alias_sets_conflict_p check.
3102
80aac5c8
JM
31032016-03-08 Jason Merrill <jason@redhat.com>
3104
3105 * c-opts.c (set_std_cxx1z): Don't enable concepts.
3106
64b23c13
DM
31072016-03-04 David Malcolm <dmalcolm@redhat.com>
3108
3109 PR c/68187
3110 * c-indentation.c (get_visual_column): Move code to determine next
3111 tab stop to...
3112 (next_tab_stop): ...this new function.
3113 (line_contains_hash_if): Delete function.
3114 (detect_preprocessor_logic): Delete function.
3115 (get_first_nws_vis_column): New function.
3116 (detect_intervening_unindent): New function.
3117 (should_warn_for_misleading_indentation): Replace call to
3118 detect_preprocessor_logic with a call to
3119 detect_intervening_unindent.
3120
729526f5
DM
31212016-03-04 David Malcolm <dmalcolm@redhat.com>
3122
3123 PR c/68187
3124 * c-indentation.c (should_warn_for_misleading_indentation): When
3125 suppressing warnings about cases where the guard and body are on
3126 the same column, only use the first non-whitespace column in place
3127 of the guard token column when dealing with "else" clauses.
3128 When rejecting aligned BODY and NEXT, loosen the requirement
3129 from equality with the first non-whitespace of guard to simply
3130 that they not be indented relative to it.
3131
e9a35493
RB
31322016-03-04 Richard Biener <rguenther@suse.de>
3133
3134 PR c++/70054
3135 * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
3136 instead of alias_sets_conflict_p.
3137
1be56bc5
MP
31382016-03-01 Marek Polacek <polacek@redhat.com>
3139
3140 PR c++/69795
3141 * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
3142 any DECL.
3143
35886f0b
MS
31442016-02-22 Martin Sebor <msebor@redhat.com>
3145
3146 PR middle-end/69780
3147 * c-common.c (check_builtin_function_arguments): Validate and
3148 reject invalid arguments to __builtin_alloca_with_align.
3149
4246c8da
MW
31502016-02-20 Mark Wielaard <mjw@redhat.com>
3151
3152 PR c/28901
3153 * c.opt (Wunused-const-variable): Turn into Alias for...
3154 (Wunused-const-variable=): New option.
3155
268be88c
BE
31562016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
3157
3158 PR c++/69865
3159 * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
3160 here...
3161 (c_common_init_options): ...to here.
3162 (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
3163
871b3f47
JJ
31642016-02-19 Jakub Jelinek <jakub@redhat.com>
3165
3166 PR c++/69826
3167 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
3168 (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
3169 flag_preprocess_only.
3170
bf14eba2
JJ
31712016-02-16 Jakub Jelinek <jakub@redhat.com>
3172
3173 PR c/69835
3174 * c.opt (Wnonnull-compare): Enable for -Wall.
3175
ba6b3795
JJ
31762016-02-15 Jakub Jelinek <jakub@redhat.com>
3177
3178 PR c++/69797
3179 * c-common.c (sync_resolve_size): Diagnose too few arguments
3180 even when params is non-NULL empty vector.
3181
a011cd92
BS
31822016-02-08 Bernd Schmidt <bschmidt@redhat.com>
3183
3184 PR target/60410
3185 * c.opt (fshort-double): Remove.
3186
46cb9332
MS
31872016-02-05 Martin Sebor <msebor@redhat.com>
3188
3189 PR c++/69662
3190 * c.opt (Warning options): Update -Wplacement-new to take
3191 an optional argument.
3192
e1b81f2b
JJ
31932016-02-01 Jakub Jelinek <jakub@redhat.com>
3194
3195 PR preprocessor/69543
3196 PR c/69558
3197 * c-pragma.c (handle_pragma_diagnostic): Pass input_location
3198 instead of loc to control_warning_option.
3199
b6adbb9f
NS
32002016-02-01 Nathan Sidwell <nathan@codesourcery.com>
3201
3202 * c.opt (fopenacc-dim=): New option.
3203
5d70666e
RB
32042016-01-27 Ryan Burn <contact@rnburn.com>
3205
3206 PR cilkplus/69267
3207 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
3208 gimplify_arg. Removed superfluous post_p argument.
3209 * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
3210 superfluous post_p argument.
3211 * c-gimplify.c (c_gimplify_expr): Likewise.
3212
01e1dea3
DM
32132016-01-26 David Malcolm <dmalcolm@redhat.com>
3214
3215 PR other/69006
3216 * c-opts.c (c_diagnostic_finalizer): Replace invocation of
3217 pp_newline_and_flush with pp_flush.
3218
9f04a53e
MS
32192016-01-20 Martin Sebor <msebor@redhat.com>
3220
3221 PR c/69405
3222 * c-common.c (sync_resolve_size): Avoid printing diagnostic about
3223 an incompatible argument when the argument isn't a valid tree node.
3224
7f26f7df
JM
32252016-01-18 Jason Merrill <jason@redhat.com>
3226
3227 PR c++/68767
3228 * c-common.c (check_function_arguments_recurse): Fold the whole
3229 COND_EXPR, not just the condition.
3230
f62bf092
TV
32312016-01-18 Tom de Vries <tom@codesourcery.com>
3232
3233 * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
3234 classify as loop clause.
3235
e0a575ff
JJ
32362016-01-15 Jakub Jelinek <jakub@redhat.com>
3237
3238 PR bootstrap/68271
3239 * c-pragma.c (c_register_pragma_1): Adjust comment to note that
3240 C++ FE no longer has limit on number of pragmas.
3241
32422015-01-14 Ryan Burn <contact@rnburn.com>
b6e3db06
RB
3243
3244 PR c++/69048
3245 * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
c47eaca6 3246 to add missing cleanup point.
b6e3db06 3247
c7df95d8
DM
32482016-01-14 David Malcolm <dmalcolm@redhat.com>
3249
3250 PR c++/68819
3251 * c-indentation.c (get_visual_column): Add location_t param.
3252 Handle the column number being zero by effectively disabling the
3253 warning, with an "inform".
3254 (should_warn_for_misleading_indentation): Add location_t argument
3255 for all uses of get_visual_column.
3256
21efdd80
PP
32572016-01-10 Patrick Palka <ppalka@gcc.gnu.org>
3258
3259 PR c++/69029
3260 * c-indentation.c (should_warn_for_misleading_indentation):
3261 Don't warn about do-while statements.
3262
7a127fa7
MS
32632016-01-07 Martin Sebor <msebor@redhat.com>
3264
3265 PR c/68966
3266 * c-common.c (sync_resolve_size): Reject first argument when it's
3267 a pointer to _Bool.
3268
c589e975
DM
32692016-01-05 David Malcolm <dmalcolm@redhat.com>
3270
3271 PR c/69122
3272 * c-indentation.c (get_visual_column): Remove default argument.
3273 (should_warn_for_misleading_indentation): For the multiline case,
3274 update call to get_visual_column for next_stmt_exploc so that it
3275 captures the location of the first non-whitespace character in the
3276 relevant line. Don't issue warnings if there is non-whitespace
3277 before the next statement.
3278
818ab71a
JJ
32792016-01-04 Jakub Jelinek <jakub@redhat.com>
3280
3281 Update copyright years.
3282
745e411d
DM
32832015-12-21 David Malcolm <dmalcolm@redhat.com>
3284
3285 * c-common.c (binary_op_error): Convert first param from
3286 location_t to rich_location * and use it when emitting an error.
3287 * c-common.h (binary_op_error): Convert first param from
3288 location_t to rich_location *.
3289
de67c4c3
DM
32902015-12-16 David Malcolm <dmalcolm@redhat.com>
3291
3292 * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
3293 * c-lex.c (conflict_marker_get_final_tok_kind): New function.
3294
4a38b02b
IV
32952015-12-15 Ilya Verbin <ilya.verbin@intel.com>
3296
3297 * c-common.c (c_common_attribute_table): Handle "omp declare target
3298 link" attribute.
3299
54d62f51
JJ
33002015-12-14 Jakub Jelinek <jakub@redhat.com>
3301
3302 PR c/68833
3303 * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
3304
8d4227c8
TB
33052014-12-12 Tobias Burnus <burnus@net-b.de>
3306
3307 PR fortran/68815
3308 * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
3309 specifiers (%d, %i,%u and %c).
3310
f6069ccc
DM
33112015-12-10 David Malcolm <dmalcolm@redhat.com>
3312
3313 * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
3314
63bbf46d
JJ
33152015-12-08 Jakub Jelinek <jakub@redhat.com>
3316
3317 PR c/48088
3318 PR c/68657
3319 * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
3320 * c-pragma.c (handle_pragma_diagnostic): Adjust
3321 control_warning_option caller.
3322
f79520bb
DM
33232015-12-07 David Malcolm <dmalcolm@redhat.com>
3324
3325 * c-common.c (c_cpp_error): Update for change to
3326 rich_location::set_range.
3327
b3d5bc62
JJ
33282015-12-04 Paolo Bonzini <bonzini@gnu.org>
3329
3330 * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
3331 shifting 1 out of the sign bit.
3332
33332015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
3334
3335 * c-common.c (c_common_attribute_table[]): Update max arguments
3336 count for "simd" attribute.
3337 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
3338
6eb4a537
JJ
33392015-12-03 Jakub Jelinek <jakub@redhat.com>
3340
3341 PR preprocessor/57580
3342 * c-ppoutput.c (print): Change printed field to bool.
3343 Move src_file last for smaller padding.
3344 (init_pp_output): Set print.printed to false instead of 0.
3345 (scan_translation_unit): Fix up formatting. Set print.printed
3346 to true after printing something other than newline.
3347 (scan_translation_unit_trad): Set print.printed to true instead of 1.
3348 (maybe_print_line_1): Set print.printed to false instead of 0.
3349 (print_line_1): Likewise.
3350 (do_line_change): Set print.printed to true instead of 1.
3351 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
3352 dump_macro): Set print.printed to false after printing newline.
3353
4250754e
JM
33542015-12-02 Jason Merrill <jason@redhat.com>
3355
f479b43d
JM
3356 * c-common.c (fold_for_warn): New.
3357 (warn_logical_operator, warn_tautological_cmp)
3358 (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
3359
4250754e
JM
3360 * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
3361 (c_fully_fold_internal, decl_constant_value_for_optimization):
3362 Move to c/c-fold.c.
3363 * c-common.h: Don't declare decl_constant_value_for_optimization.
3364
e9e32ee6
JM
33652015-12-02 Joseph Myers <joseph@codesourcery.com>
3366
3367 PR c/68162
3368 * c-common.h (c_build_qualified_type): Add extra default
3369 arguments.
3370
37d5ad46
JB
33712015-12-01 Julian Brown <julian@codesourcery.com>
3372 Cesar Philippidis <cesar@codesourcery.com>
3373 James Norris <James_Norris@mentor.com>
3374
3375 * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
3376 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
3377 (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
3378
f07862c7
EB
33792015-11-30 Eric Botcazou <ebotcazou@adacore.com>
3380
3381 * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
3382 (decl_sloc_common): Delete and move bulk of processing to...
3383 (decl_sloc): ...here.
3384 (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
3385 (dump_ada_double_name): Remove S parameter and compute the suffix.
3386 (dump_ada_array_type): Add PARENT parameter. Simplify computation of
3387 element type and deal with an anonymous one.
3388 (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
3389 (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type
3390 and remove reference to QUAL_UNION_TYPE.
3391 (dump_nested_types): Make 2 passes on the fields and move bulk to...
3392 (dump_nested_type): ...here. New function extracted from above.
3393 Generate a full declaration for anonymous element type of arrays.
3394 (print_ada_declaration): Really skip anonymous declarations. Remove
3395 references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type.
3396 Clean up processing of declarations of array types and objects.
3397 (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
3398 Remove obsolete code and tidy up.
3399
75c8aac3
JH
34002015-11-29 Jan Hubicka <hubicka@ucw.cz>
3401
3402 PR c/67581
3403 * c-common.c (handle_transparent_union_attribute): Update
3404 also type variants.
3405
b58d3df2
ML
34062015-11-27 Martin Liska <mliska@suse.cz>
3407
3408 PR c++/68312
3409 * array-notation-common.c (cilkplus_extract_an_triplets):
3410 Release vector of vectors.
3411 * cilk.c (gimplify_cilk_spawn): Free allocated memory.
3412
89a01fcf
EB
34132015-11-26 Eric Botcazou <ebotcazou@adacore.com>
3414
3415 PR c++/68527
3416 * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
3417 (print_ada_struct_decl): Likewise.
3418
cc5c5226
IZ
34192015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
3420
3421 PR c++/68001
3422 * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
3423 * cilk.c (recognize_spawn): Determine location in a more precise
3424 way.
3425
269adb9d
JM
34262015-11-19 Jason Merrill <jason@redhat.com>
3427
3428 * c-common.c (shorten_compare): But look through macros from
3429 system headers.
3430
d0eccfcd
JM
34312015-11-18 Jason Merrill <jason@redhat.com>
3432
3433 * c-common.c (shorten_compare): Don't -Wtype-limits if the
3434 non-constant operand comes from a macro.
3435
3e44547c
JM
34362015-11-17 Jason Merrill <jason@redhat.com>
3437
3438 PR bootstrap/68346
3439 * c-common.c (warn_tautological_cmp): Fold before checking for
3440 constants.
3441
0f62c7a0
MP
34422015-11-16 Marek Polacek <polacek@redhat.com>
3443
3444 PR c++/68362
3445 * c-common.c (check_case_bounds): Fold low and high cases.
3446
a868811e
MP
34472015-11-16 Marek Polacek <polacek@redhat.com>
3448
3449 * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
3450 * c-common.c (c_common_get_alias_set): Likewise.
3451 (handle_visibility_attribute): Likewise.
3452
fff77217
KY
34532015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
3454
3455 * c-common.c (handle_simd_attribute): New.
3456 (struct attribute_spec): Add entry for "simd".
3457 (handle_simd_attribute): New.
3458
269e63b7
KT
34592015-11-13 Kai Tietz <ktietz70@googlemail.com>
3460
3461 * c-lex.c (interpret_float): Use fold_convert.
3462
ebedc9a3
DM
34632015-11-13 David Malcolm <dmalcolm@redhat.com>
3464
3465 * c-common.c (c_fully_fold_internal): Capture existing souce_range,
3466 and store it on the result.
3467 * c-opts.c (c_common_init_options): Set
3468 global_dc->colorize_source_p.
3469
6e232ba4
JN
34702015-11-12 James Norris <jnorris@codesourcery.com>
3471 Joseph Myers <joseph@codesourcery.com>
3472
7365279f 3473 * c-pragma.c (oacc_pragmas): Add entry for declare directive.
6e232ba4
JN
3474 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
3475 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
3476 PRAGMA_OACC_CLAUSE_LINK.
3477
e78bede6
MP
34782015-11-11 Marek Polacek <polacek@redhat.com>
3479
3480 PR c/68107
3481 PR c++/68266
3482 * c-common.c (valid_array_size_p): New function.
3483 * c-common.h (valid_array_size_p): Declare.
3484
3f8257db 34852015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
4ac93c7c
DH
3486
3487 PR bootstrap/68271
3488 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
3489
69f293c9
AM
34902015-11-11 Andrew MacLeod <amacleod@redhat.com>
3491
3492 * array-notation-common.c: Remove unused header files.
3493 * c-ada-spec.c: Likewise.
3494 * c-cilkplus.c: Likewise.
3495 * c-common.c: Likewise.
3496 * c-cppbuiltin.c: Likewise.
3497 * c-dump.c: Likewise.
3498 * c-format.c: Likewise.
3499 * c-gimplify.c: Likewise.
3500 * c-indentation.c: Likewise.
3501 * c-lex.c: Likewise.
3502 * c-omp.c: Likewise.
3503 * c-opts.c: Likewise.
3504 * c-pch.c: Likewise.
3505 * c-ppoutput.c: Likewise.
3506 * c-pragma.c: Likewise.
3507 * c-pretty-print.c: Likewise.
3508 * c-semantics.c: Likewise.
3509 * c-ubsan.c: Likewise.
3510 * cilk.c: Likewise.
3511 * stub-objc.c: Likewise.
3512
3a40d81d
NS
35132015-11-09 Thomas Schwinge <thomas@codesourcery.com>
3514 Cesar Philippidis <cesar@codesourcery.com>
3515 James Norris <jnorris@codesourcery.com>
3516 Julian Brown <julian@codesourcery.com>
3517 Nathan Sidwell <nathan@codesourcery.com>
3518
3519 * c-pragma.c (oacc_pragmas): Add "routine".
3520 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
3521
ee45a32d
EB
35222015-11-08 Eric Botcazou <ebotcazou@adacore.com>
3523
3524 * c-common.c (c_common_attributes): Add scalar_storage_order.
3525 (handle_scalar_storage_order_attribute): New function.
3526 * c-pragma.c (global_sso): New variable.
3527 (maybe_apply_pragma_scalar_storage_order): New function.
3528 (handle_pragma_scalar_storage_order): Likewise.
3529 (init_pragma): Register scalar_storage_order.
3530 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
3531 * c.opt (Wscalar-storage-order): New warning.
3532 (fsso-struct=): New option.
3533
eb11eb15
MS
35342015-11-08 Martin Sebor <msebor@redhat.com>
3535
3536 * c.opt (Wplacement-new): Add a period to the end of a sentence.
3537
0aad0198
RS
35382015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3539
3540 * c-common.c: Don't undef DEF_BUILTIN.
3541
8a645150
DM
35422015-11-06 David Malcolm <dmalcolm@redhat.com>
3543
3544 * c-common.c (c_cpp_error): Convert parameter from location_t to
3545 rich_location *. Eliminate the "column_override" parameter and
3546 the call to diagnostic_override_column.
3547 Update the "done_lexing" clause to set range 0
3548 on the rich_location, rather than overwriting a location_t.
3549 * c-common.h (c_cpp_error): Convert parameter from location_t to
3550 rich_location *. Eliminate the "column_override" parameter.
3551
7a5e4956
CP
35522015-11-05 Cesar Philippidis <cesar@codesourcery.com>
3553 Thomas Schwinge <thomas@codesourcery.com>
3554 James Norris <jnorris@codesourcery.com>
3555
3556 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
3557 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
3558 clauses with parallel and kernels and loops.
3559 * c-pragma.h (enum pragma_omp_clause): Add entries for
3560 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
3561 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
3562 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
3563 INDEPENDENT,SEQ}.
3564 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
3565
e2f5cc96
MS
35662015-11-05 Martin Sebor <msebor@redhat.com>
3567
3568 PR c++/67942
3569 * c.opt (-Wplacement-new): New option.
3570
e01d41e5
JJ
35712015-11-05 Jakub Jelinek <jakub@redhat.com>
3572
3573 * c-common.h (c_finish_omp_atomic): Add TEST argument.
3574 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
3575 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
3576 save_expr or create_tmp_var* if TEST is true.
3577 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
3578 Don't call add_stmt here.
3579 (struct c_omp_check_loop_iv_data): New type.
3580 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
3581 c_omp_check_loop_iv_exprs): New functions.
3582 (c_omp_split_clauses): Adjust for lastprivate being allowed on
3583 distribute.
3584 (c_omp_declare_simd_clauses_to_numbers): Change
3585 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
3586 (c_omp_declare_simd_clauses_to_decls): Similarly change those
3587 from numbers to PARM_DECLs.
3588
595278be
MM
35892015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
3590
3591 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
3592 flag_checking.
3593
3f8257db 35942015-11-03 Bernd Schmidt <bschmidt@redhat.com>
c85158de
MS
3595
3596 PR c++-common/67882
b3d5bc62
JJ
3597 * c-common.h (fold_offsetof_1): Add argument.
3598 * c-common.c (fold_offsetof_1): Diagnose more invalid
c85158de
MS
3599 offsetof expressions that reference elements past the end of
3600 an array.
3601
4bf9e5a8
TS
36022015-11-03 Thomas Schwinge <thomas@codesourcery.com>
3603 Chung-Lin Tang <cltang@codesourcery.com>
3604
3605 * c-pragma.c (oacc_pragmas): Add "atomic".
3606 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
3607
3b1661a9
ES
36082015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
3609
3610 * c-common.c (handle_target_clones_attribute): New.
3611 (c_common_attribute_table): Add handle_target_clones_attribute.
3612 (handle_always_inline_attribute): Add check on target_clones attribute.
3613 (handle_target_attribute): Ditto.
3614
2adfab87
AM
36152015-10-29 Andrew MacLeod <amacleod@redhat.com>
3616
3617 * array-notation-common.c: Reorder #include's and remove duplicates.
3618 * c-ada-spec.c: Likewise.
3619 * c-cilkplus.c: Likewise.
3620 * c-common.c: Likewise.
3621 * c-cppbuiltin.c: Likewise.
3622 * c-dump.c: Likewise.
3623 * c-format.c: Likewise.
3624 * c-gimplify.c: Likewise.
3625 * c-indentation.c: Likewise.
3626 * c-lex.c: Likewise.
3627 * c-omp.c: Likewise.
3628 * c-opts.c: Likewise.
3629 * c-pch.c: Likewise.
3630 * c-ppoutput.c: Likewise.
3631 * c-pragma.c: Likewise.
3632 * c-pretty-print.c: Likewise.
3633 * c-semantics.c: Likewise.
3634 * c-ubsan.c: Likewise.
3635 * cilk.c: Likewise.
3636 * stub-objc.c: Likewise.
3637
d90ec4f2
JM
36382015-10-28 Jason Merrill <jason@redhat.com>
3639
3640 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
3641
88bae6f4
TS
36422015-10-27 Thomas Schwinge <thomas@codesourcery.com>
3643 James Norris <jnorris@codesourcery.com>
3644 Cesar Philippidis <cesar@codesourcery.com>
3645
3646 PR c/64765
3647 PR c/64880
3648 * c-common.h (c_oacc_split_loop_clauses): Declare function.
3649 * c-omp.c (c_oacc_split_loop_clauses): New function.
3650
b1726d6c
MS
36512015-10-21 Martin Sebor <msebor@redhat.com>
3652
3653 PR driver/68043
3654 * c.opt: End each sentence that describes an option with a period.
3655
fa60eeb9
MP
36562015-10-20 Marek Polacek <polacek@redhat.com>
3657
3658 * array-notation-common.c (is_cilkplus_vector_p): Define.
3659 * c-common.h (is_cilkplus_vector_p): Declare.
3660
95979049
MP
36612015-10-20 Marek Polacek <polacek@redhat.com>
3662
3663 * c.opt (std=gnu++11): Do not describe as experimental.
3664 (std=gnu++14): Likewise.
3665
2a9fb712
JM
36662015-10-19 Jason Merrill <jason@redhat.com>
3667
3668 * c-cppbuiltin.c (c_cpp_builtins): Define
3669 __cpp_nontype_template_args.
3670
13b380a3
JM
36712015-10-19 Jason Merrill <jason@redhat.com>
3672
3673 * c-cppbuiltin.c (c_cpp_builtins): Define
3674 __cpp_enumerator_attributes, __cpp_fold_expressions,
3675 __cpp_unicode_characters.
3676
d9a6bd32
JJ
36772015-10-13 Jakub Jelinek <jakub@redhat.com>
3678 Aldy Hernandez <aldyh@redhat.com>
3679
3680 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
3681 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
3682 (c_define_builtins): Likewise.
3683 * c-common.h (enum c_omp_clause_split): Add
3684 C_OMP_CLAUSE_SPLIT_TASKLOOP.
3685 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
3686 (c_finish_omp_for): Add ORIG_DECLV argument.
3687 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
3688 201511 instead of 201307.
3689 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
3690 OMP_CRITICAL_CLAUSES to it.
3691 (c_finish_omp_ordered): Add CLAUSES argument, set
3692 OMP_ORDERED_CLAUSES to it.
3693 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
3694 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
3695 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
3696 constructs and new OpenMP 4.5 clauses. Clear
3697 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
3698 verification code.
3699 * c-pragma.c (omp_pragmas_simd): Add taskloop.
3700 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
3701 (enum pragma_omp_clause): Add
3702 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
3703 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
3704
624d31fe
RS
37052015-10-05 Richard Sandiford <richard.sandiford@arm.com>
3706
3707 * c-lex.c (interpret_float): Use real_equal instead of
3708 REAL_VALUES_EQUAL.
3709
b8fd7909
JM
37102015-10-04 Jason Merrill <jason@redhat.com>
3711
3712 Implement N4514, C++ Extensions for Transactional Memory.
3713 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
3714 (c_common_attribute_table): Add transaction_safe_dynamic.
3715 transaction_safe now affects type identity.
3716 (handle_tm_attribute): Handle transaction_safe_dynamic.
3717 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
3718 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
3719 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
3720 (D_TRANSMEM): New.
3721 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
3722 * c-pretty-print.c (pp_c_attributes_display): Don't print
3723 transaction_safe in C++.
3724
12651878
MP
37252015-10-02 Marek Polacek <polacek@redhat.com>
3726
3727 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
3728
3e3b8d63
MP
37292015-10-02 Marek Polacek <polacek@redhat.com>
3730
3731 PR c/64249
3732 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
3733 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
3734 * c.opt (Wduplicated-cond): New option.
3735
0d1a8f75
JM
37362015-10-01 Joseph Myers <joseph@codesourcery.com>
3737
3738 * c.opt (std=c11): Do not describe as experimental.
3739 (std=gnu11): Likewise.
3740 (std=iso9899:2011): Likewise.
3741
3e32ee19
NS
37422015-09-28 Nathan Sidwell <nathan@codesourcery.com>
3743
3744 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
3745 (DEF_FUNCTION_TYPE_VAR_11): Delete.
3746
974348ee
MP
37472015-09-25 Marek Polacek <polacek@redhat.com>
3748
3749 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
3750 (ubsan_instrument_shift): Likewise.
3751
15dbc1a6
MP
37522015-09-25 Marek Polacek <polacek@redhat.com>
3753
3754 PR sanitizer/64906
3755 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
3756
6b95d7cc
PP
37572015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
3758
3759 * c-indentation.c (should_warn_for_misleading_indentation):
3760 Compare next_stmt_vis_column with guard_line_first_nws instead
3761 of with guard_line_vis_column.
3762
c1822f9c
MLI
37632015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
3764
3765 PR c/49654
3766 PR c/49655
3767 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
3768 options and options not valid for the current language.
3769
d5398058
PP
37702015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
3771
3772 * c-indentation.c (should_warn_for_misleading_indentation):
3773 Float out and consolidate the calls to get_visual_column that
3774 are passed guard_exploc as an argument. Compare
3775 next_stmt_vis_column with guard_line_first_nws instead of with
3776 body_line_first_nws.
3777
6b333269
NS
37782015-09-22 Nathan Sidwell <nathan@codesourcery.com>
3779
3780 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
3781 Wnamespaces): New C++ warnings.
3782
a75f1574
JM
37832015-09-22 Jason Merrill <jason@redhat.com>
3784
3785 * c-common.h (abi_compat_version_crosses): New.
3786 (warn_abi_version): Declare.
3787 * c-common.c: Define it.
3788 * c-opts.c (c_common_post_options): Handle it.
3789 flag_abi_compat_version defaults to 8.
3790
bdaaa8b7
VV
37912015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
3792
3793 Complete the implementation of N4230, Nested namespace definition.
3794 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
3795 __cpp_nested_namespace_definitions.
3796
eaa797e8
MLI
37972015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
3798
3799 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
3800
c4914de6
MLI
38012015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
3802
3803 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
3804 when warning.
3805 * c-pragma.h (pragma_lex): Add optional loc argument.
3806
fcb87c50
MM
38072015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
3808
3809 * c-format.c (check_format_arg): Adjust to use common block size in all
3810 object pools.
3811
31bdd08a
DM
38122015-09-15 David Malcolm <dmalcolm@redhat.com>
3813
3814 * c-format.c (location_from_offset): Update for change in
3815 signature of location_get_source_line.
3816 * c-indentation.c (get_visual_column): Likewise.
3817 (line_contains_hash_if): Likewise.
3818
aa9f4b4c
MP
38192015-09-14 Marek Polacek <polacek@redhat.com>
3820
3821 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
3822 setting various warnings.
3823
aa256c4a
MP
38242015-09-14 Marek Polacek <polacek@redhat.com>
3825
3826 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
3827 a negative value.
3828
0f876f22
MW
38292015-09-11 Mark Wielaard <mjw@redhat.com>
3830
3831 PR c/28901
3832 * c.opt (Wunused-variable): Option from common.opt.
3833 (Wunused-const-variable): New option.
3834
273aa49e
PC
38352015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
3836
3837 PR c++/53184
3838 * c.opt ([Wsubobject-linkage]): Add.
3839
1807ffc1
MS
38402015-09-03 Martin Sebor <msebor@redhat.com>
3841
3842 PR c/66516
3843 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
3844 functions.
3845 * c-common.c (reject_gcc_builtin): Define.
3846
38942840
BI
38472015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
3848
3849 PR middle-end/60586
3850 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
3851 prototype.
3852 * c-gimplify.c (c_gimplify_expr): Added a call to the function
3853 cilk_gimplify_call_params_in_spawned_fn.
3854 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
3855 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
3856 unwrapping.
3857
c316b5e4
MP
38582015-08-25 Marek Polacek <polacek@redhat.com>
3859
3860 PR middle-end/67330
3861 * c-common.c (handle_weak_attribute): Don't check whether the
3862 visibility can be changed here.
3863
584a7c46
MLI
38642015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
3865
3866 * c-lex.c (c_lex_with_flags): Use explicit locations.
3867
a79683d5
TS
38682015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
3869
3870 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
3871 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
3872
61717a45
FXC
38732015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3874
3875 PR middle-end/36757
3876 * c-common.c (check_builtin_function_arguments): Add check
3877 for BUILT_IN_SIGNBIT argument.
3878
329524f5
PC
38792015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
3880
3881 PR c++/67160
3882 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
3883 in c++1z mode.
3884
4ee55665
MP
38852015-08-17 Marek Polacek <polacek@redhat.com>
3886
3887 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
3888 with whitespaces before qualifier names.
3889
b893e375
MP
38902015-08-12 Marek Polacek <polacek@redhat.com>
3891
3892 PR c++/55095
3893 * c-common.c (maybe_warn_shift_overflow): Properly handle
3894 left-shifting 1 into the sign bit.
3895
c2d89095
MLI
38962015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3897
3898 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
3899
971e17ff
AS
39002015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
3901 Braden Obrzut <admin@maniacsvault.net>
3902 Jason Merrill <jason@redhat.com>
3903
3904 Add C++ Concepts TS support.
3905 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
3906 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
3907 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
3908 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
3909 * c-opts.c (set_std_cxx1z): Set flag_concepts.
3910 * c.opt (fconcepts): New.
3911
b3d5bc62
JJ
39122015-08-02 Martin Sebor <msebor@redhat.com>
3913
3914 * c.opt (-Wframe-address): New warning option.
3915
8ebca419
PP
39162015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
3917
3918 * c-indentation.c (should_warn_for_misleading_indentation):
3919 Improve heuristics.
3920
1a1e101f
PP
39212015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
3922
3923 * c-indentation.c (get_visual_column): Add parameter first_nws,
3924 use it. Update comment documenting the function.
3925 (is_first_nonwhitespace_on_line): Remove.
3926 (should_warn_for_misleading_indentation): Replace usage of
3927 of is_first_nonwhitespace_on_line with get_visual_column.
3928
992118a1
PP
39292015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
3930
3931 * c-indentation.h (struct token_indent_info): Define.
3932 (get_token_indent_info): Define.
3933 (warn_for_misleading_information): Declare.
3934 * c-common.h (warn_for_misleading_information): Remove.
3935 * c-identation.c (warn_for_misleading_indentation):
3936 Change declaration to take three token_indent_infos. Adjust
3937 accordingly.
3938 * c-identation.c (should_warn_for_misleading_indentation):
3939 Likewise. Bail out early if the body is a compound statement.
3940 (guard_tinfo_to_string): Define.
3941
e8fa3817
JM
39422015-07-30 Jason Merrill <jason@redhat.com>
3943
3944 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
3945 '*' for reference decay.
3946
173864e8
MP
39472015-07-30 Marek Polacek <polacek@redhat.com>
3948
3949 * c-common.c (warn_tautological_cmp): Bail for float types.
3950
f2afe6dd
MP
39512015-07-27 Marek Polacek <polacek@redhat.com>
3952
3953 PR bootstrap/67030
3954 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
3955
05b28fd6
MP
39562015-07-27 Marek Polacek <polacek@redhat.com>
3957
3958 PR c++/66555
3959 PR c/54979
3960 * c-common.c (find_array_ref_with_const_idx_r): New function.
3961 (warn_tautological_cmp): New function.
3962 * c-common.h (warn_tautological_cmp): Declare.
3963 * c.opt (Wtautological-compare): New option.
3964
5a5062b8
MP
39652015-07-23 Marek Polacek <polacek@redhat.com>
3966
3967 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
3968 (ubsan_instrument_shift): Likewise.
3969
dc891fe7
MP
39702015-07-23 Marek Polacek <polacek@redhat.com>
3971
3972 PR sanitizer/66908
3973 * c-ubsan.c: Include gimplify.h.
3974 (ubsan_instrument_division): Unshare OP0 and OP1.
3975 (ubsan_instrument_shift): Likewise.
3976
451b5e48
MP
39772015-07-20 Marek Polacek <polacek@redhat.com>
3978 Richard Sandiford <richard.sandiford@arm.com>
3979
3980 PR c++/55095
3981 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
3982 Use EXPR_LOC_OR_LOC.
3983 (maybe_warn_shift_overflow): New function.
3984 * c-common.h (maybe_warn_shift_overflow): Declare.
3985 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
3986 * c.opt (Wshift-overflow): New option.
3987
fb0b2914
ML
39882015-07-16 Martin Liska <mliska@suse.cz>
3989
3990 * c-format.c (static void check_format_info_main): Use
3991 object_allocator instead of pool_allocator.
3992 (check_format_arg): Likewise.
3993 (check_format_info_main): Likewise.
3994
903f5c23
AM
39952015-07-15 Andrew MacLeod <amacleod@redhat.com>
3996
3997 * c-opts.c: Remove multiline #include comment.
3998
026c3cfd
AH
39992015-07-12 Aldy Hernandez <aldyh@redhat.com>
4000
4001 * c-common.c: Fix double word typos.
4002
bb49ee66
EB
40032015-07-10 Eric Botcazou <ebotcazou@adacore.com>
4004
4005 * c-ada-spec.h (cpp_operation): Revert latest change.
4006 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
4007 constructors and destructors.
4008
1916bcb5
AM
40092015-07-09 Andrew MacLeod <amacleod@redhat.com>
4010
4011 * c-common.h: Adjust includes for flags.h changes.
4012 * stub-objc.c: Likewise.
026c3cfd 4013
a9dcd529
EB
40142015-07-08 Eric Botcazou <ebotcazou@adacore.com>
4015
4016 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
4017 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
4018
b03b462f
JJ
40192015-07-08 Jakub Jelinek <jakub@redhat.com>
4020
4021 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
4022 are to be removed, return NULL rather than original clauses list.
4023
c7131fb2
AM
40242015-07-07 Andrew MacLeod <amacleod@redhat.com>
4025
4026 * array-notation-common.c: Adjust includes.
4027 * c-ada-spec.c: Likewise.
4028 * c-cilkplus.c: Likewise.
4029 * c-common.h: Likewise.
4030 * c-cppbuiltin.c: Likewise.
4031 * c-dump.c: Likewise.
4032 * c-format.c: Likewise.
4033 * c-gimplify.c: Likewise.
4034 * c-indentation.c: Likewise.
4035 * c-lex.c: Likewise.
4036 * c-omp.c: Likewise.
4037 * c-opts.c: Likewise.
4038 * c-pch.c: Likewise.
4039 * c-ppoutput.c: Likewise.
4040 * c-pragma.c: Likewise.
4041 * c-pretty-print.c: Likewise.
4042 * c-semantics.c: Likewise.
4043 * c-ubsan.c: Likewise.
4044 * cilk.c: Likewise.
4045 * stub-objc.c: Likewise.
4046
2a7fb83f
EB
40472015-07-07 Eric Botcazou <ebotcazou@adacore.com>
4048
4049 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
4050 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
4051
a03c9bf1
JM
40522015-07-01 Jason Merrill <jason@redhat.com>
4053
36a85135
JM
4054 * c-common.h (D_CXX11): Rename from D_CXX0X.
4055 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
4056 * c-common.c: Adjust.
4057
e7fa68d5
JM
4058 * c-opts.c (c_common_post_options): Default to C++14.
4059
a03c9bf1
JM
4060 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
4061
fe95b036
ESR
40622015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
4063
4064 Implement N4197 - Adding u8 character literals
b3d5bc62 4065 * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
a64be36b 4066 CPP_CHAR.
b3d5bc62 4067 * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
a64be36b 4068 CPP_UTF8CHAR_USERDEF tokens.
b3d5bc62 4069 * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
a64be36b
EB
4070 and CPP_UTF8CHAR tokens.
4071 (lex_charconst): Treat CPP_UTF8CHAR token.
fe95b036 4072
da2e71c9
MLI
40732015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
4074
4075 PR fortran/66605
4076 * c-common.c (do_warn_unused_parameter): Move here.
4077 * c-common.h (do_warn_unused_parameter): Declare.
4078
b155cfd9
MP
40792015-06-29 Marek Polacek <polacek@redhat.com>
4080
4081 PR c/66322
4082 * c-common.c (check_case_bounds): Add bool * parameter. Set
4083 OUTSIDE_RANGE_P.
4084 (c_add_case_label): Add bool * parameter. Pass it down to
4085 check_case_bounds.
4086 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
4087 warning here.
4088 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
4089 declarations.
4090
31521951
MP
40912015-06-27 Marek Polacek <polacek@redhat.com>
4092
4093 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
4094 or VECTOR_INTEGER_TYPE_P throughout.
4095 * c-gimplify.c: Likewise.
4096
22d03525
MP
40972015-06-26 Marek Polacek <polacek@redhat.com>
4098
4099 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
4100 * c-common.c (c_fully_fold_internal): Likewise.
4101 (c_alignof_expr): Likewise.
4102 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
4103 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
b1726d6c 4104 * cilk.c (create_parm_list): Likewise.
22d03525 4105
af05e6e5
MP
41062015-06-26 Marek Polacek <polacek@redhat.com>
4107
4108 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
4109
f0889939
AM
41102015-06-25 Andrew MacLeod <amacleod@redhat.com>
4111
4112 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
4113 * c-gimplify.c: Likewise.
4114 * c-pragma.c: Likewise.
4115 * c-ubsan.c: Likewise.
4116 * cilk.c: Likewise.
4117
ca752f39
RS
41182015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4119
4120 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
4121 ggc_hasher.
4122
16a16ec7
AM
41232015-06-25 Andrew MacLeod <amacleod@redhat.com>
4124
4125 * cilk.c: Move calls.h after tm.h in the include chain.
4126
0ae9bd27
MP
41272015-06-25 Marek Polacek <polacek@redhat.com>
4128
4129 * array-notation-common.c: Use VAR_P throughout.
4130 * c-ada-spec.c: Likewise.
4131 * c-common.c: Likewise.
4132 * c-format.c: Likewise.
4133 * c-gimplify.c: Likewise.
4134 * c-omp.c: Likewise.
4135 * c-pragma.c: Likewise.
4136 * c-pretty-print.c: Likewise.
4137 * cilk.c: Likewise.
4138
62f9079a
MP
41392015-06-25 Marek Polacek <polacek@redhat.com>
4140
4141 * cilk.c (extract_free_variables): Use is_global_var.
4142
0fa16060
RS
41432015-06-23 Richard Sandiford <richard.sandiford@arm.com>
4144
4145 * c-common.c: Don't include target-def.h.
4146
a68ae2e1
MP
41472015-06-23 Marek Polacek <polacek@redhat.com>
4148
4149 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
4150 when comparing INTEGER_CSTs.
4151
c6a2f2d9
PMR
41522015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
4153
4154 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
4155 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
4156 (dump_ada_template): Skip partially specialized types.
4157
6b4db501
MM
41582015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
4159
4160 * c-common.c (scalar_to_vector): Use std::swap instead of manually
4161 swapping.
4162
abb226c9
AM
41632015-06-17 Andrew MacLeod <amacleod@redhat.com>
4164
4165 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
4166 * c-ada-spec.c: Likewise.
4167 * c-cilkplus.c: Likewise.
4168 * c-common.c: Likewise.
4169 * c-common.h: Likewise.
4170 * c-cppbuiltin.c: Likewise.
4171 * c-dump.c: Likewise.
4172 * c-format.c: Likewise.
4173 * c-gimplify.c: Likewise.
4174 * c-indentation.c: Likewise.
4175 * c-lex.c: Likewise.
4176 * c-omp.c: Likewise.
4177 * c-opts.c: Likewise.
4178 * c-pch.c: Likewise.
4179 * c-ppoutput.c: Likewise.
4180 * c-pragma.c: Likewise.
4181 * c-pretty-print.c: Likewise.
4182 * c-semantics.c: Likewise.
4183 * c-ubsan.c: Likewise.
4184 * cilk.c: Likewise.
4185 * stub-objc.c: Likewise.
4186
076fecad
PP
41872015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
4188
4189 PR c++/65168
4190 * c-common.c (c_common_truthvalue_conversion): Warn when
4191 converting an address of a reference to a truth value.
4192
13fdf2e2
AM
41932015-06-08 Andrew MacLeod <amacleod@redhat.com>
4194
4195 * array-notation-common.c : Adjust include files.
4196 * c-ada-spec.c : Likewise.
4197 * c-cilkplus.c : Likewise.
4198 * c-common.c : Likewise.
4199 * c-common.h : Likewise.
4200 * c-cppbuiltin.c : Likewise.
4201 * c-dump.c : Likewise.
4202 * c-format.c : Likewise.
4203 * c-gimplify.c : Likewise.
4204 * c-indentation.c : Likewise.
4205 * c-lex.c : Likewise.
4206 * c-omp.c : Likewise.
4207 * c-opts.c : Likewise.
4208 * c-pch.c : Likewise.
4209 * c-ppoutput.c : Likewise.
4210 * c-pragma.c : Likewise.
4211 * c-pretty-print.c : Likewise.
4212 * c-semantics.c : Likewise.
4213 * c-ubsan.c : Likewise.
4214 * cilk.c : Likewise.
4215 * stub-objc.c : Likewise.
4216
a1661b90
MP
42172015-06-08 Marek Polacek <polacek@redhat.com>
4218
4219 PR c/66415
4220 * c-format.c (location_from_offset): Return LOC if LINE is null.
4221
d7438551
AH
42222015-06-05 Aldy Hernandez <aldyh@redhat.com>
4223
4224 * c-common.h (c_parse_final_cleanups): New prototype.
4225 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
4226
b3d5bc62
JJ
42272015-06-04 Sriraman Tallam <tmsriram@google.com>
4228
4229 * c-common.c (noplt): New attribute.
4230 (handle_noplt_attribute): New handler.
4231
ecb9f223
AM
42322015-06-04 Andrew MacLeod <amacleod@redhat.com>
4233
4234 * array-notation-common.c: Adjust includes for restructured coretypes.h.
4235 * c-ada-spec.c: Likewise.
4236 * c-cilkplus.c: Likewise.
4237 * c-common.c: Likewise.
4238 * c-common.h: Likewise.
4239 * c-cppbuiltin.c: Likewise.
4240 * c-dump.c: Likewise.
4241 * c-format.c: Likewise.
4242 * c-gimplify.c: Likewise.
4243 * c-indentation.c: Likewise.
4244 * c-lex.c: Likewise.
4245 * c-omp.c: Likewise.
4246 * c-opts.c: Likewise.
4247 * c-pch.c: Likewise.
4248 * c-ppoutput.c: Likewise.
4249 * c-pragma.c: Likewise.
4250 * c-pretty-print.c: Likewise.
4251 * c-semantics.c: Likewise.
4252 * c-ubsan.c: Likewise.
4253 * cilk.c: Likewise.
4254 * stub-objc.c: Likewise.
4255
6ac48155
DM
42562015-06-02 David Malcolm <dmalcolm@redhat.com>
4257
4258 PR c/66220:
4259 * c-indentation.c (should_warn_for_misleading_indentation): Use
4260 expand_location rather than expand_location_to_spelling_point.
4261 Don't warn if the guarding statement is more indented than the
4262 next/body stmts.
4263
773ce42e
DM
42642015-06-02 David Malcolm <dmalcolm@redhat.com>
4265
4266 * c-indentation.c (warn_for_misleading_indentation): Bail out
4267 immediately if -Wmisleading-indentation isn't enabled.
4268
4fef8379
ML
42692015-06-01 Martin Liska <mliska@suse.cz>
4270
4271 * c-format.c (check_format_arg):Use new type-based pool allocator.
4272 (check_format_info_main) Likewise.
4273
1edfb384
EB
42742015-05-31 Eric Botcazou <ebotcazou@adacore.com>
4275
4276 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
4277 (has_nontrivial_methods): Likewise.
4278
9677ef52
MP
42792015-05-25 Marek Polacek <polacek@redhat.com>
4280
4281 * c-ubsan.c (ubsan_instrument_shift): Use type0.
4282
fd5c817a
MP
42832015-05-22 Marek Polacek <polacek@redhat.com>
4284
4285 PR c/47043
4286 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
4287
a2f45fe6 42882015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
581edfa3
TS
4289
4290 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
4291 STACK_GROWS_DOWNWARD.
4292
a2f45fe6 42932015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
62f9f30b
TS
4294
4295 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
4296 STACK_GROWS_DOWNWARD rather than if it is defined.
4297
0fee2ac2 42982015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
b1726d6c 4299
0fee2ac2
MLI
4300 PR c/52952
4301 * c-format.c (location_column_from_byte_offset): New.
4302 (location_from_offset): New.
4303 (struct format_wanted_type): Add offset_loc field.
4304 (check_format_info): Move handling of location for extra arguments
4305 closer to the point of warning.
4306 (check_format_info_main): Pass the result of location_from_offset
4307 to warning_at.
4308 (format_type_warning): Pass the result of location_from_offset
4309 to warning_at.
4310
cf4ef6f7
MP
43112015-05-20 Marek Polacek <polacek@redhat.com>
4312
4313 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
4314
3a65ee74
MP
43152015-05-20 Marek Polacek <polacek@redhat.com>
4316
4317 * c-ada-spec.c (dump_sloc): Use DECL_P.
4318
21b634ae
MP
43192015-05-20 Marek Polacek <polacek@redhat.com>
4320
4321 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
4322 * c-common.c: Likewise.
4323
0e50b624
DM
43242015-05-19 David Malcolm <dmalcolm@redhat.com>
4325
4326 * c-common.h (fe_file_change): Strengthen param from
4327 const line_map * to const line_map_ordinary *.
4328 (pp_file_change): Likewise.
4329 * c-lex.c (fe_file_change): Likewise.
4330 (cb_define): Use linemap_check_ordinary when invoking
4331 SOURCE_LINE.
4332 (cb_undef): Likewise.
4333 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
4334 invoking cb_file_change.
4335 (c_finish_options): Likewise.
4336 (push_command_line_include): Likewise.
4337 (cb_file_change): Strengthen param "new_map" from
4338 const line_map * to const line_map_ordinary *.
4339 * c-ppoutput.c (cb_define): Likewise for local "map".
4340 (pp_file_change): Likewise for param "map" and local "from".
4341
fab27f52
MM
43422015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
4343
4344 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
4345
2fe1d762
TV
43462015-05-18 Tom de Vries <tom@codesourcery.com>
4347
4348 * c-common.c (build_va_arg_1): New function.
4349 (build_va_arg): Add address operator to va_list operand if necessary.
4350
7a37fa90
MM
43512015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
4352
4353 PR c/48956
4354 * c-common.c (int_safely_convertible_to_real_p): Define.
4355 (unsafe_conversion_p): Check conversions involving complex types.
4356 (conversion_warning): Add new warning message for conversions which
4357 discard imaginary component.
4358 * c-common.h: (enum conversion_safety): Add new enumerator for such
4359 conversions.
4360
3aa3c9fc
MP
43612015-05-14 Marek Polacek <polacek@redhat.com>
4362
4363 PR c/66066
4364 PR c/66127
4365 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
4366 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
4367 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
4368 use it. If FOR_INT_CONST, require that all evaluated operands be
4369 INTEGER_CSTs.
4370
c3388e62
DM
43712015-05-12 David Malcolm <dmalcolm@redhat.com>
4372
4373 * c-common.h (warn_for_misleading_indentation): New prototype.
4374 * c-indentation.c: New file.
4375 * c.opt (Wmisleading-indentation): New option.
4376
c7b38fd5
TV
43772015-05-12 Tom de Vries <tom@codesourcery.com>
4378
4379 PR tree-optimization/66010
4380 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
4381
381bf11e
JM
43822015-05-09 Jason Merrill <jason@redhat.com>
4383
edff0c06
JM
4384 * c-opts.c (c_common_post_options): Also clear
4385 cpp_opts->cpp_warn_cxx11_compat.
4386
129211bc
JM
4387 * c-common.h (enum cxx_dialect): Add cxx_unset.
4388 * c-common.c (cxx_dialect): Initialize to cxx_unset.
4389 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
4390
381bf11e
JM
4391 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
4392 (std=gnu++0x): Mark as Undocumented.
4393 (std=gnu++1y): Add deprecated message.
4394
fe191308
JM
43952015-05-08 Jason Merrill <jason@redhat.com>
4396
765189ff
JM
4397 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
4398 * c-opts.c: Adjust.
4399
fe191308
JM
4400 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
4401
755e528f
MP
44022015-05-08 Marek Polacek <polacek@redhat.com>
4403
4404 PR c/64918
4405 * c.opt (Woverride-init-side-effects): New option.
4406
0173bd2a
MP
44072015-05-07 Marek Polacek <polacek@redhat.com>
4408
4409 PR c/65179
4410 * c-common.c (c_fully_fold_internal): Warn when left shifting a
4411 negative value.
4412 * c.opt (Wshift-negative-value): New option.
4413 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
4414 when -Wextra and C99/C++11 mode.
4415
e0f0d3b9
MP
44162015-05-07 Marek Polacek <polacek@redhat.com>
4417 Martin Uecker <uecker@eecs.berkeley.edu>
4418
4419 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
4420 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
4421
8243e2a9
JM
44222015-05-05 Jason Merrill <jason@redhat.com>
4423
4424 * c.opt (Wterminate): New.
4425
577cd070
MP
44262015-04-30 Marek Polacek <polacek@redhat.com>
4427
4428 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
4429 require that the non-constant be of a boolean type.
4430
0373796b
JT
44312015-04-29 Josh Triplett <josh@joshtriplett.org>
4432
e0f0d3b9
MP
4433 * c-common.c (handle_section_attribute): Refactor to reduce
4434 nesting and distinguish between error cases.
0373796b 4435
716c0ba6
MP
44362015-04-29 Marek Polacek <polacek@redhat.com>
4437
4438 PR c/64610
4439 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
4440 with 0/1.
4441
8848828b
JJ
44422015-04-29 Jakub Jelinek <jakub@redhat.com>
4443
4444 * c-common.h (omp_clause_mask): Unconditionally define as a class.
4445 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
4446 HOST_BITS_PER_WIDE_INT.
4447
ecd0e562
TV
44482015-04-28 Tom de Vries <tom@codesourcery.com>
4449
4450 PR tree-optimization/65887
4451 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
4452
2a877204 44532015-04-28 Eric Botcazou <ebotcazou@adacore.com>
e0f0d3b9 4454 Pierre-Marie de Rodat <derodat@adacore.com>
2a877204
EB
4455
4456 * c-ada-spec.c (in_function): Delete.
4457 (dump_generic_ada_node): Do not change in_function and remove the
4458 redundant code dealing with it.
4459 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
4460 (print_ada_methods): Output the static member functions in a nested
4461 package after the regular methods as well as associated renamings.
4462
4853031e
MP
44632015-04-24 Marek Polacek <polacek@redhat.com>
4464
4465 PR c/65830
4466 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
4467 and OPT_Wshift_count_overflow.
4468
8c2b7f79
MP
4469 PR c/63357
4470 * c-common.c (warn_logical_operator): Warn if the operands have the
4471 same expressions.
4472
b8787813
MP
44732015-04-24 Marek Polacek <polacek@redhat.com>
4474
4475 PR c/61534
4476 * c-common.c (warn_logical_operator): Bail if either operand comes
4477 from a macro expansion.
4478
8fba1830
BRF
44792015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4480
4481 PR target/55143
4482 * c-common.c (c_default_pointer_mode): Add definition.
4483 * c-common.h (c_default_pointer_mode): Add declaration.
4484
17958621
JJ
44852015-03-11 Jakub Jelinek <jakub@redhat.com>
4486
4487 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
4488 on record_builtin_type argument.
4489
7ccb1a11
JJ
44902015-03-10 Jakub Jelinek <jakub@redhat.com>
4491
4492 PR c/65120
4493 * c-common.c (warn_logical_not_parentheses): Don't warn for
4494 !x == 0 or !x != 0.
4495
04fd785e
MP
44962015-03-07 Marek Polacek <polacek@redhat.com>
4497
4498 PR sanitizer/65280
4499 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
4500 before trying to figure out whether we have a flexible array member.
4501
a4e26206 45022015-03-06 Eric Botcazou <ebotcazou@adacore.com>
8e745a17 4503 Jonathan Wakely <jwakely.gcc@gmail.com>
a4e26206
EB
4504
4505 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
4506
0d2489f4
EB
45072015-03-05 Eric Botcazou <ebotcazou@adacore.com>
4508
4509 PR ada/65319
4510 * c-ada-spec.c (print_destructor): Remove obsolete code.
4511
83ed54d7
EB
45122015-03-01 Eric Botcazou <ebotcazou@adacore.com>
4513
4514 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
4515 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
4516 DECL_TEMPLATE_RESULT emulations.
4517 (dump_ada_template)): Add guard for TYPE_METHODS.
4518
7631f0e2
MP
45192015-02-27 Marek Polacek <polacek@redhat.com>
4520
4521 PR c/65040
4522 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
4523
d1783ae5
KT
45242015-02-27 Kai Tietz <ktietz@redhat.com>
4525
4526 PR c/35330
4527 * c-pragma.c (handle_pragma_weak): Do not try to create
4528 weak/alias of declarations not being function, or variable
4529 declarations.
4530
56a9f6bc
TS
45312015-02-24 Thomas Schwinge <thomas@codesourcery.com>
4532
4533 PR libgomp/64625
4534 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
4535 Remove macros.
4536 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
4537
3d5cb23d
MP
45382015-02-16 Marek Polacek <polacek@redhat.com>
4539
4540 PR c/65066
4541 * c-format.c (check_format_types): Handle null param.
4542
fa008882
MP
45432015-02-13 Marek Polacek <polacek@redhat.com>
4544
4545 PR c/65040
4546 * c-format.c (check_format_types): Don't warn about different
4547 signedness if the original value is in the range of WANTED_TYPE.
4548
785f21af
JM
45492015-02-12 Jason Merrill <jason@redhat.com>
4550
4551 PR c++/64956
4552 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
4553 to the current highest version.
4554 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
4555
4886ec8e
JJ
45562015-02-04 Jakub Jelinek <jakub@redhat.com>
4557
4558 PR c/64824
4559 PR c/64868
4560 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
4561 instead of RDIV_EXPR. Use build_binary_op instead of
4562 build2_loc.
4563
40fecdd6
JM
45642015-01-30 Joseph Myers <joseph@codesourcery.com>
4565
4566 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
4567 to pass input_location as first argument.
4568
a0c88d06
TV
45692015-01-23 Tom de Vries <tom@codesourcery.com>
4570
4571 PR libgomp/64672
4572 * c.opt (fopenacc): Mark as LTO option.
4573
1506ae0e
TV
45742015-01-23 Tom de Vries <tom@codesourcery.com>
4575
4576 PR libgomp/64707
4577 * c.opt (fopenmp): Mark as LTO option.
4578
31be63ab
JJ
45792015-01-21 Jakub Jelinek <jakub@redhat.com>
4580
4581 PR c/63307
b1726d6c 4582 * cilk.c (fill_decls_vec): Only put decls into vector v.
31be63ab
JJ
4583 (compare_decls): Fix up formatting.
4584
45852015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
4586
4587 PR c/63307
4588 * cilk.c: Include vec.h.
4589 (struct cilk_decls): New structure.
4590 (wrapper_parm_cb): Split this function to...
4591 (fill_decls_vec): ...this...
4592 (create_parm_list): ...and this.
4593 (compare_decls): New function.
4594 (for_local_cb): Remove.
4595 (wrapper_local_cb): Ditto.
4596 (build_wrapper_type): For now first traverse and fill vector of
4597 declarations then sort it and then deal with sorted vector.
4598 (cilk_outline): Ditto.
4599 (declare_one_free_variable): Ditto.
4600
6875457f
JM
46012015-01-21 Jason Merrill <jason@redhat.com>
4602
4603 PR c++/64629
4604 * c-format.c (check_format_arg): Call decl_constant_value.
4605
185c9e56
ML
46062015-01-19 Martin Liska <mliska@suse.cz>
4607
4608 * c-common.c (handle_noicf_attribute): New function.
4609
41dbbb37
TS
46102015-01-15 Thomas Schwinge <thomas@codesourcery.com>
4611 Bernd Schmidt <bernds@codesourcery.com>
4612 James Norris <jnorris@codesourcery.com>
4613 Cesar Philippidis <cesar@codesourcery.com>
4614 Ilmir Usmanov <i.usmanov@samsung.com>
4615 Jakub Jelinek <jakub@redhat.com>
4616
4617 * c.opt (fopenacc): New option.
4618 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
4619 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
4620 New macros.
4621 * c-common.h (c_finish_oacc_wait): New prototype.
4622 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
4623 (c_finish_oacc_wait): New function.
4624 * c-pragma.c (oacc_pragmas): New variable.
4625 (c_pp_lookup_pragma, init_pragma): Handle it.
4626 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
4627 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
4628 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
4629 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
4630 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
4631 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
4632 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
4633 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
4634 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
4635 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
4636 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
4637 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
4638 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
4639 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
4640 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
4641 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
4642 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
4643 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
4644 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
4645 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
4646 PRAGMA_OACC_CLAUSE_WORKER.
4647
3f8257db 46482015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
5434dc07
MD
4649
4650 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
4651 for the new option fstack-protector_explicit.
4652 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
4653 (handle_stack_protect_attribute): New function.
4654
3f8257db 46552015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
de1b5c17
MU
4656
4657 * c.opt: New option -Warray-bounds=.
4658
adfac8df
JJ
46592015-01-09 Michael Collison <michael.collison@linaro.org>
4660
4661 * array-notation-common.c: Include hash-set.h, machmode.h,
4662 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4663 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
4664 * c-ada-spec.c: Ditto.
4665 * c-cilkplus.c: Ditto.
4666 * c-common.c: Include input.h due to flattening of tree.h.
4667 Define macro GCC_C_COMMON_C.
4668 * c-common.h: Flatten tree.h header files into c-common.h.
4669 Remove include of tree-core.h.
4670 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
4671 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4672 fold-const.h, wide-int.h, and inchash.h due to
4673 flattening of tree.h.
4674 * c-dump.c: Ditto.
4675 * c-format.c: Flatten tree.h header files into c-common.h.
4676 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
4677 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4678 fold-const.h, wide-int.h, and inchash.h due to
4679 flattening of tree.h.
4680 * c-dump.c: Include hash-set.h, machmode.h,
4681 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4682 fold-const.h, wide-int.h, and inchash.h due to
4683 flattening of tree.h.
4684 * c-format.c: Include hash-set.h, machmode.h,
4685 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4686 fold-const.h, wide-int.h, inchash.h and real.h due to
4687 flattening of tree.h.
4688 * c-gimplify.c: Include hash-set.h, machmode.h,
4689 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4690 fold-const.h, wide-int.h, and inchash.h due to
4691 flattening of tree.h.
4692 * cilk.c: Ditto.
4693 * c-lex.c: Ditto.
4694 * c-omp.c: Ditto.
4695 * c-opts.c: Ditto.
4696 * c-pch.c: Ditto.
4697 * c-ppoutput.c: Ditto.
4698 * c-pragma.c: Ditto.
4699 * c-pretty-print.c: Ditto.
4700 * c-semantics.c: Ditto.
4701 * c-ubsan.c: Ditto.
4702 * stub-objc.c: Ditto.
4703
f5481fc4
JM
47042015-01-08 Jason Merrill <jason@redhat.com>
4705
4706 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
4707 do_ubsan_in_current_function.
4708 (ubsan_maybe_instrument_reference_or_call): Likewise.
4709 * c-ubsan.h: Declare it.
4710
de35aa66
MS
47112015-01-08 Mike Stump <mikestump@comcast.net>
4712
4713 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
4714
4a9a42ab
MP
47152015-01-07 Marek Polacek <polacek@redhat.com>
4716
4717 PR c/64440
4718 * c-common.c (c_fully_fold_internal): Warn for division and modulo
4719 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
4720
2f42e5de
TS
47212015-01-05 Trevor Saunders <tsaunders@mozilla.com>
4722
4723 PR c++/31397
4724 * c.opt (Wsuggest-override): New option.
4725
5624e564
JJ
47262015-01-05 Jakub Jelinek <jakub@redhat.com>
4727
4728 Update copyright years.
4729
5bd012f8
MP
47302015-01-05 Marek Polacek <polacek@redhat.com>
4731
4732 PR c/64423
4733 * c-common.c (warn_array_subscript_with_type_char): Add location_t
4734 parameter. Use it.
4735 * c-common.h (warn_array_subscript_with_type_char): Update
4736 declaration.
4737
a7fa8d18
ESR
47382014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
4739
4740 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
4741 Control macro with flag_sized_deallocation.
4742
3f8257db 47432014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
768952be
MU
4744
4745 * c.opt (Wdiscarded-array-qualifiers): New option.
4746
1f8d3e84
JJ
47472014-12-19 Jakub Jelinek <jakub@redhat.com>
4748
4749 PR preprocessor/63831
4750 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
4751 and __has_cpp_attribute here.
4752 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
4753 c_common_has_attribute.
4754 * c-common.h (c_common_has_attribute): New prototype.
4755 * c-lex.c (init_c_lex): Set cb->has_attribute to
4756 c_common_has_attribute instead of cb_has_attribute.
4757 (get_token_no_padding): New function.
4758 (cb_has_attribute): Renamed to ...
4759 (c_common_has_attribute): ... this. No longer static. Use
4760 get_token_no_padding, require ()s, don't build TREE_LIST
4761 unnecessarily, fix up formatting, adjust diagnostics, call
4762 init_attributes.
4763
20b06add
JM
47642014-12-15 Jason Merrill <jason@redhat.com>
4765
4766 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
4767 (-Wsized-deallocation): New.
4768 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
4769 to on in C++14 and up.
4770
94a073b2
JM
47712014-12-11 Jason Merrill <jason@redhat.com>
4772
acaa5911
JM
4773 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
4774
94a073b2
JM
4775 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
4776 we aren't complaining about VLAs.
4777
7fb66c15
MP
47782014-12-06 Marek Polacek <polacek@redhat.com>
4779
4780 PR tree-optimization/64183
4781 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
4782 shift-expression if it is integer_type_node. Use types_compatible_p.
4783
b731b390
JJ
47842014-11-29 Jakub Jelinek <jakub@redhat.com>
4785
4786 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
4787 last argument from create_tmp_var_raw and create_tmp_var calls.
4788 * cilk.c (gimplify_cilk_spawn): Likewise.
4789 * c-omp.c (c_finish_omp_atomic): Likewise.
4790
6a4da643
MP
47912014-11-28 Marek Polacek <polacek@redhat.com>
4792
4793 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
4794 instead of unsigned_type_node.
4795
541e35a6
MP
47962014-11-28 Marek Polacek <polacek@redhat.com>
4797
4798 PR c/63862
4799 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
4800 to op1_utype.
4801 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
4802 expression to unsigned_type_node.
4803
dcc97066
MW
48042014-11-20 Mark Wielaard <mjw@redhat.com>
4805
4806 PR debug/38757
4807 * c-opts.c (set_std_c89): Set lang_hooks.name.
4808 (set_std_c99): Likewise.
4809 (set_std_c11): Likewise.
4810 (set_std_cxx98): Likewise.
4811 (set_std_cxx11): Likewise.
4812 (set_std_cxx14): Likewise.
4813 (set_std_cxx1z): Likewise.
4814
aa7da51a
JJ
48152014-11-21 Jakub Jelinek <jakub@redhat.com>
4816
4817 PR target/63764
4818 * c-common.h (convert_vector_to_pointer_for_subscript): Change
4819 return type to bool.
009a3480 4820 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
4821 (convert_vector_to_pointer_for_subscript): Change return type to
4822 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
4823 and copy it into a TARGET_EXPR and use that instead of *vecp
4824 directly.
4825
538dd0b7
DM
48262014-11-19 David Malcolm <dmalcolm@redhat.com>
4827
4828 Merger of git branch "gimple-classes-v2-option-3".
4829 * ChangeLog.gimple-classes: New.
4830 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
4831 from being just a vec<gimple> to a vec<gbind *>.
4832
c39a5e99
JJ
48332014-11-18 Jakub Jelinek <jakub@redhat.com>
4834
4835 PR sanitizer/63813
4836 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
4837 argument to ptype, set type to TREE_TYPE (ptype). Don't call
4838 get_pointer_alignment for non-pointers. Use ptype, or if it is
4839 reference type, corresponding pointer type, as type of kind
4840 argument.
4841 (ubsan_maybe_instrument_reference,
4842 ubsan_maybe_instrument_member_call): Adjust callers.
4843
8537a4a9
MP
48442014-11-15 Marek Polacek <polacek@redhat.com>
4845
4846 PR middle-end/63884
4847 * array-notation-common.c (is_sec_implicit_index_fn): Return false
4848 for NULL fndecl.
4849 (extract_array_notation_exprs): Return for NULL node.
4850
2079956a
JM
48512014-11-12 Joseph Myers <joseph@codesourcery.com>
4852
4853 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
4854 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
4855
1304953e
JJ
48562014-11-12 Jakub Jelinek <jakub@redhat.com>
4857
4858 PR c/59708
4859 * c-common.c (check_builtin_function_arguments): Handle
4860 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
4861
e5e44252
AK
48622014-11-10 Andi Kleen <ak@linux.intel.com>
4863
4864 PR c/60804
4865 * c-common.h (check_no_cilk): Declare.
4866 * cilk.c (get_error_location): New function.
4867 (check_no_cilk): Dito.
4868
e64b984d
AK
48692014-11-10 Andi Kleen <ak@linux.intel.com>
4870
4871 * cilk.c (recognize_spawn): Use expression location
4872 for error message.
4873
13c21655
PC
48742014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
4875
4876 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
4877
42fd12b1
ESR
48782014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
4879
4880 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
4881 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
4882 (__cpp_range_based_for, __cpp_initializer_lists,
4883 __cpp_delegating_constructors, __cpp_nsdmi,
4884 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
4885 for C++11; (__cpp_attribute_deprecated): Remove in favor of
4886 __has_cpp_attribute.
4887 * c-lex.c (cb_has_attribute): New callback CPP function;
4888 (init_c_lex): Set has_attribute callback.
4889
6f450181
RB
48902014-11-04 Richard Biener <rguenther@suse.de>
4891
4892 * c-common.c (shorten_compare): Do not shorten mixed
4893 DFP and non-DFP compares.
4894
26f0e1d6
ESR
48952014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
4896
4897 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
4898 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
4899 Commentary and rearrangement of tests.
4900 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
4901 Commentary and rearrangement of tests.
4902 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
4903 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
4904
ef4bddc2
RS
49052014-10-29 Richard Sandiford <richard.sandiford@arm.com>
4906
4907 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
4908 enum from machine_mode.
4909
c582198b
AM
49102014-10-28 Andrew MacLeod <amacleod@redhat.com>
4911
adfac8df
JJ
4912 * c-common.c: Adjust include files.
4913 * c-gimplify.c: Ditto.
4914 * cilk.c: Ditto.
4915 * c-pragma.c: Ditto.
4916 * c-ubsan.c: Ditto.
c582198b 4917
60393bbc
AM
49182014-10-27 Andrew MacLeod <amacleod@redhat.com>
4919
4920 * c-gimplify.c: Adjust include files.
4921
d723bb7c
MLI
49222014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
4923
4924 PR c++/53061
4925 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
4926 c_common_initialize_diagnostics.
4927 * c-common.h: Likewise.
4928
90f3520e
MP
49292014-10-24 Marek Polacek <polacek@redhat.com>
4930
4931 PR c/56980
4932 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
4933 print "struct"/"union"/"enum" for typedefed names.
4934
59d7607a
MP
49352014-10-23 Marek Polacek <polacek@redhat.com>
4936
4937 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
4938 in unsigned type.
4939
d95a2703
JJ
49402014-10-22 Jakub Jelinek <jakub@redhat.com>
4941 Yury Gribov <y.gribov@samsung.com>
4942
4943 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
4944 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
4945 instead of flag_sanitize_recover as bool flag.
4946
8e6ef852
KY
49472014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
4948
4949 * cilk.c: Revert previous change.
4950
948cf550
IZ
49512014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
4952
4953 PR c/63307
4954 * cilk.c: Include vec.h.
4955 (struct cilk_decls): New structure.
4956 (wrapper_parm_cb): Split this function to...
4957 (fill_decls_vec): ...this...
4958 (create_parm_list): ...and this.
4959 (compare_decls): New function.
4960 (for_local_cb): Remove.
4961 (wrapper_local_cb): Ditto.
4962 (build_wrapper_type): For now first traverse and fill vector of
4963 declarations then sort it and then deal with sorted vector.
4964 (cilk_outline): Ditto.
4965 (declare_one_free_variable): Ditto.
4966
92574c7c
MP
49672014-10-17 Marek Polacek <polacek@redhat.com>
4968
4969 * c-opts.c (c_common_post_options): Set warn_implicit_int.
4970 * c.opt (Wimplicit-int): Initialize to -1.
4971
83685514
AM
49722014-10-16 Andrew MacLeod <amacleod@redhat.com>
4973
4974 * c-pragma.c: Adjust include files.
4975 * c-semantics.c: Likewise.
4976
5b8300ea
DD
49772014-10-16 DJ Delorie <dj@redhat.com>
4978
4979 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
4980 multiples of bytes.
4981
5f83e90b
JM
49822014-10-14 Jason Merrill <jason@redhat.com>
4983
4984 PR c++/63455
4985 * c-common.h (CPP_PREPARSED_EXPR): New.
4986 (N_CP_TTYPES): Adjust.
4987
d73326ca
MP
49882014-10-15 Marek Polacek <polacek@redhat.com>
4989
4990 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
4991
78a7c317
DD
49922014-10-14 DJ Delorie <dj@redhat.com>
4993
4994 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
4995 types, not just __int128.
4996 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
4997 types, not just __int128.
4998 (cpp_atomic_builtins): Round pointer sizes up.
4999 (type_suffix): Use type precision, not specific types.
5000 * c-common.c (c_common_reswords): Remove __int128 special case.
5001 (c_common_type_for_size): Check for all __intN types, not just
5002 __int128.
5003 (c_common_type_for_mode): Likewise.
5004 (c_common_signed_or_unsigned_type): Likewise.
5005 (c_build_bitfield_integer_type): Likewise.
5006 (c_common_nodes_and_builtins): Likewise.
5007 (keyword_begins_type_specifier): Likewise.
5008 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
5009 __intN variants.
5010
2a22f99c
TS
50112014-10-12 Trevor Saunders <tsaunders@mozilla.com>
5012
5013 * c-common.c: Use hash_table instead of hashtab.
5014
2a8ef767
ESR
50152014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
5016
adfac8df 5017 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
5018 C++11 section.
5019
3c9aabbd
MG
50202014-10-03 Marc Glisse <marc.glisse@inria.fr>
5021
5022 PR c++/54427
5023 PR c++/57198
5024 PR c++/58845
5025 * c-common.c (warn_logical_operator): Punt for vectors.
5026
a15f7cb8
ESR
50272014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
5028
5029 Implement SD-6: SG10 Feature Test Recommendations
5030 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
5031 macros and the __has_header macro.
5032
8d0cf15e
JM
50332014-09-30 Jason Merrill <jason@redhat.com>
5034
dd5d5481
JM
5035 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
5036 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
5037 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
5038
b752325e
JM
5039 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
5040 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
5041
8d0cf15e
JM
5042 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
5043 * c-common.c (c_common_reswords): Remove __is_convertible_to.
5044
083e891e
MP
50452014-09-24 Marek Polacek <polacek@redhat.com>
5046
5047 PR c/61405
5048 PR c/53874
5049 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
5050
7861b648
AK
50512014-09-23 Andi Kleen <ak@linux.intel.com>
5052
5053 * c-common.c (handle_no_reorder_attribute): New function.
5054 (c_common_attribute_table): Add no_reorder attribute.
5055
9a79452d
JM
50562014-09-22 Joseph Myers <joseph@codesourcery.com>
5057
5058 * c-cppbuiltin.c (c_cpp_builtins): Define
5059 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
5060 modes.
5061
dd69f047
JM
50622014-09-18 Joseph Myers <joseph@codesourcery.com>
5063
5064 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
5065 for supported floating-point modes.
5066
737a4826
MLI
50672014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5068
5069 * c.opt (Wpsabi): Use LangEnabledBy.
5070 * c-opts.c (c_common_handle_option): Do not handle here.
5071
8cc4b7a2
JM
50722014-09-12 Joseph Myers <joseph@codesourcery.com>
5073
5074 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
5075 macros for floating-point modes.
5076
179b5a55
MG
50772014-09-11 Marc Glisse <marc.glisse@inria.fr>
5078
5079 PR target/58757
5080 * c-cppbuiltin.c (builtin_define_float_constants): Correct
5081 __*_DENORM_MIN__ without denormals.
5082
570a11fe
JJ
50832014-09-10 Jakub Jelinek <jakub@redhat.com>
5084
5085 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
5086 ubsan_instrument_vla, ubsan_instrument_return): Adjust
5087 ubsan_create_data callers.
5088 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
5089 index is constant or BIT_AND_EXPR with constant mask and is
5090 small enough for the bound.
5091 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
5092 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
5093
b559c810
MLI
50942014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5095
5096 * c.opt: Add CppReason to various flags.
5097 (Wdate-time): Re-sort.
5098 * c-common.c: Include c-common.h earlier.
5099 (struct reason_option_codes_t): Delete.
5100 (c_option_controlling_cpp_error): Prefix global type and struct
5101 with cpp_.
5102
1ef33fd4
MLI
51032014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5104
5105 * c.opt (Wnormalized): New.
5106 (Wnormalized=): Use Enum and Reject Negative.
5107 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
5108
66bb34c0
JM
51092014-09-08 Joseph Myers <joseph@codesourcery.com>
5110
5111 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
5112 digits of floating-point modes if -fbuilding-libgcc.
5113
53d68b9f
JM
51142014-09-05 Joseph Myers <joseph@codesourcery.com>
5115
5116 * c-cppbuiltin.c (c_cpp_builtins): Also define
5117 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
5118 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
5119 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
5120 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
5121 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
5122 __LIBGCC_STACK_GROWS_DOWNWARD__,
5123 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
5124 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
5125 __LIBGCC_DWARF_FRAME_REGISTERS__,
5126 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
5127 __LIBGCC_STACK_POINTER_REGNUM__ and
5128 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
5129 (builtin_define_with_value): Handle backslash-escaping in string
5130 macro values.
5131
f65586dc
RB
51322014-09-05 Richard Biener <rguenther@suse.de>
5133
5134 PR middle-end/63148
5135 * c-format.c (check_format_arg): Properly handle
5136 effectively signed POINTER_PLUS_EXPR offset.
5137
2b71f4a4
MLI
51382014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
5139
5140 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
5141 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
5142 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
5143 and Init.
5144 * c-opts.c (c_common_handle_option): Do not handle here.
5145 (sanitize_cpp_opts): Likewise.
5146 * c-common.c (struct reason_option_codes_t): Handle
5147 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
5148
d2e4feca
MP
51492014-09-03 Marek Polacek <polacek@redhat.com>
5150
5151 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
5152
9a771876
JJ
51532014-09-02 Jakub Jelinek <jakub@redhat.com>
5154 Balaji V. Iyer <balaji.v.iyer@intel.com>
5155 Igor Zamyatin <igor.zamyatin@intel.com>
5156
5157 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
5158 * c-common.c (c_common_reswords): Added _Cilk_for.
5159 * c-common.h (enum rid): Added RID_CILK_FOR.
5160 (cilk_for_number_of_iterations): Add declaration.
5161 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
5162 CILK_FOR.
5163 * c-pragma.c (init_pragma): Register "grainsize" pragma.
5164 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
5165
81b5d104
MLI
51662014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
5167
5168 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
5169 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
5170 Wundef): Use CPP, Var and Init.
5171 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
5172
b753b37b
MLI
51732014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
5174
5175 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
5176 * c-opts.c (c_common_handle_option): Do not handle here.
5177
028aee17
JM
51782014-08-25 Jason Merrill <jason@redhat.com>
5179
5180 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
5181 -std=c++14 and -std=gnu++14, rather than the reverse.
5182 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
5183 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
5184 * c-common.h (cxx_dialect): Remove cxx1y.
5185
e4276ba5
ESR
51862014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
5187
5188 * c-common.h (enum cxx_dialect): Add cxx14.
5189 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
5190 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
5191 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
5192
a545cacd
JM
51932014-08-22 Jason Merrill <jason@redhat.com>
5194
5195 * c.opt (std=gnu++17): Fix alias.
5196
59ea0364
MP
51972014-08-22 Marek Polacek <polacek@redhat.com>
5198
5199 PR c++/62199
5200 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
5201 check for vector types. Drop LHS argument.
5202 * c-common.h (warn_logical_not_parentheses): Adjust.
5203
596e808c
MLI
52042014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
5205
5206 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
5207 (Wmultichar): Likewise.
5208 (Wdate-time): Use C-family languages instead of Common. Use CPP
5209 and Var.
5210 * c-opts.c (c_common_handle_option): Do not handle the above
5211 options here.
5212 (sanitize_cpp_opts): Likewise.
5213
18767f65
MLI
52142014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
5215
5216 PR fortran/44054
5217 * c-opts.c: Include tree-diagnostics.h.
5218 (c_diagnostic_finalizer): New.
5219 (c_common_initialize_diagnostics): Use it.
5220
b4413594
MLI
52212014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5222
5223 PR preprocessor/51303
5224 * c-common.c (struct reason_option_codes_t option_codes):
5225 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
5226
43f9a13c
MLI
52272014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5228
5229 PR c/60975
5230 PR c/53063
5231 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
5232 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
5233 (c_common_post_options): Call init_global_opts_from_cpp.
5234 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
5235
04159acf
MP
52362014-08-19 Marek Polacek <polacek@redhat.com>
5237
5238 PR c++/62153
5239 * c-common.c (maybe_warn_bool_compare): New function.
5240 * c-common.h (maybe_warn_bool_compare): Declare.
5241 * c.opt (Wbool-compare): New option.
5242
35aff4fb
MP
52432014-08-19 Marek Polacek <polacek@redhat.com>
5244
5245 * c.opt (Wc99-c11-compat): New option.
5246
177cce46
MP
52472014-08-19 Marek Polacek <polacek@redhat.com>
5248
5249 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
5250 to warn_c90_c99_compat.
5251 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
5252 to -1.
5253
6ae9194f
MLI
52542014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
5255 Steven Bosscher <steven@gcc.gnu.org>
5256
5257 PR c/52952
5258 * c-format.c: Add extra_arg_loc and format_string_loc to struct
5259 format_check_results.
5260 (check_function_format): Use true and add comment for boolean
5261 argument.
5262 (finish_dollar_format_checking): Use explicit location when warning.
5263 (check_format_info): Likewise.
5264 (check_format_arg): Set extra_arg_loc and format_string_loc.
5265 (check_format_info_main): Use explicit location when warning.
5266 (check_format_types): Pass explicit location.
5267 (format_type_warning): Likewise.
5268
8e54f6d3
MLI
52692014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5270
5271 PR fortran/44054
5272 * c-format.c: Handle Fortran flags.
5273
cd4e76fc
IZ
52742014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
5275
5276 PR other/61962
5277 * array-notation-common.c (find_rank): Added handling for other
5278 types of references.
5279
f3bede71
MP
52802014-08-10 Marek Polacek <polacek@redhat.com>
5281
5282 PR c/51849
5283 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
5284 * c.opt (Wc90-c99-compat): Add option.
5285
9f25a338
TS
52862014-08-07 Trevor Saunders <tsaunders@mozilla.com>
5287
5288 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
5289
62e4eb35
MP
52902014-08-03 Marek Polacek <polacek@redhat.com>
5291
5292 * c-common.c (check_case_value): Add location_t parameter. Use it.
5293 (c_add_case_label): Pass loc to check_case_value.
5294
b787e7a2
TS
52952014-08-02 Trevor Saunders <tsaunders@mozilla.com>
5296
5297 * cilk.c: Use hash_map instead of pointer_map.
5298
6e2830c3
TS
52992014-08-02 Trevor Saunders <tsaunders@mozilla.com>
5300
5301 * c-gimplify.c: Use hash_set instead of pointer_set.
5302
a7ee52fb
IZ
53032014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
5304
5305 PR middle-end/61455
5306 * array-notation-common.c (extract_array_notation_exprs): Handling
5307 of DECL_EXPR added.
5308
944fa280
JJ
53092014-08-01 Jakub Jelinek <jakub@redhat.com>
5310
5311 * c-common.h (min_align_of_type): Removed prototype.
5312 * c-common.c (min_align_of_type): Removed.
5313 * c-ubsan.h (ubsan_maybe_instrument_reference,
5314 ubsan_maybe_instrument_member_call): New prototypes.
5315 * c-ubsan.c: Include stor-layout.h and builtins.h.
5316 (ubsan_maybe_instrument_reference_or_call,
5317 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
5318 functions.
5319
b4dfdc11
MG
53202014-07-31 Marc Glisse <marc.glisse@inria.fr>
5321
5322 PR c++/60517
5323 * c.opt (-Wreturn-local-addr): Move to common.opt.
5324
a41844e5
JM
53252014-07-30 Jason Merrill <jason@redhat.com>
5326
5327 PR c++/61659
5328 PR c++/61687
5329 Revert:
5330 * c.opt (-fuse-all-virtuals): New.
5331
976d5a22
TT
53322014-07-30 Tom Tromey <tromey@redhat.com>
5333
5334 PR c/59855
5335 * c.opt (Wdesignated-init): New option.
5336 * c-common.c (c_common_attribute_table): Add "designated_init".
5337 (handle_designated_init): New function.
5338
cdc94aca
MP
53392014-07-24 Marek Polacek <polacek@redhat.com>
5340
5341 PR c/57653
5342 * c-opts.c (c_finish_options): If -imacros is in effect, return.
5343
f41373b6
DS
53442014-07-16 Dodji Seketeli <dodji@redhat.com>
5345
5346 PR preprocessor/60723 - missing system-ness marks for macro tokens
5347 * c-ppoutput.c (struct print::prev_was_system_token): New data
5348 member.
5349 (init_pp_output): Initialize it.
5350 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
5351 (do_line_change): Return a flag saying if a line marker was
5352 emitted or not.
5353 (scan_translation_unit): Detect if the system-ness of the token we
5354 are about to emit is different from the one of the previously
5355 emitted token. If so, emit a line marker. Avoid emitting useless
5356 adjacent line markers. Avoid emitting line markers for tokens
5357 originating from the expansion of built-in macros.
5358 (scan_translation_unit_directives_only): Adjust.
5359
4d661eaa
MP
53602014-07-15 Marek Polacek <polacek@redhat.com>
5361
5362 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
5363 TYPE_MAX_VALUE is NULL.
5364
b108f48f
JJ
53652014-07-14 Jakub Jelinek <jakub@redhat.com>
5366
5367 PR middle-end/61294
5368 * c.opt (Wmemset-transposed-args): New warning.
5369
c0221884
JM
53702014-07-10 Jason Merrill <jason@redhat.com>
5371
5372 PR c++/61659
5373 PR c++/61687
5374 * c.opt (-fuse-all-virtuals): New.
5375
63dfbb95
RB
53762014-07-09 Richard Biener <rguenther@suse.de>
5377
5378 PR c-family/61741
5379 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
5380 using unsigned arithmetic if overflow does not wrap instead of
5381 if overflow is undefined.
5382
773ec47f
MP
53832014-07-06 Marek Polacek <polacek@redhat.com>
5384
5385 PR c/6940
5386 * c.opt (Wsizeof-array-argument): New option.
5387
00a7ba58
JJ
53882014-07-03 Jakub Jelinek <jakub@redhat.com>
5389
b1726d6c 5390 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
00a7ba58
JJ
5391 comments->count <= 1, as comments->entries might be NULL.
5392
52ec0ea3
MP
53932014-07-01 Marek Polacek <polacek@redhat.com>
5394
5395 * c.opt (Wint-conversion): New option.
5396
d5c3d343
MP
53972014-07-01 Marek Polacek <polacek@redhat.com>
5398
5399 PR c/58286
5400 * c.opt (Wincompatible-pointer-types): New option.
5401
6e7ceb17
PC
54022014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
5403
5404 PR c++/51400
5405 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
5406 Do not discard TYPE_QUALS of type.
5407
da73100b
JM
54082014-06-26 Jason Merrill <jason@redhat.com>
5409
5410 * c-common.h (enum cxx_dialect): Add cxx1z.
5411 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
5412 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
5413
08eedf75
TJ
54142014-06-26 Teresa Johnson <tejohnson@google.com>
5415
5416 * c-common.h (get_dump_info): Declare.
5417 * c-gimplify.c (c_genericize): Use saved dump files.
5418 * c-opts.c (c_common_parse_file): Begin and end dumps
5419 once around parsing invocation.
5420 (get_dump_info): New function.
5421
7b56b2f8
MP
54222014-06-23 Marek Polacek <polacek@redhat.com>
5423 Andrew MacLeod <amacleod@redhat.com>
5424
5425 PR c/61553
5426 * c-common.c (get_atomic_generic_size): Don't segfault if the
5427 type doesn't have a size.
5428
0e37a2f3
MP
54292014-06-20 Marek Polacek <polacek@redhat.com>
5430
5431 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
5432 (ubsan_walk_array_refs_r): New function.
5433 (c_genericize): Instrument array bounds.
5434 * c-ubsan.c: Include "internal-fn.h".
5435 (ubsan_instrument_division): Mark instrumented arrays as having
5436 side effects. Adjust ubsan_type_descriptor call.
5437 (ubsan_instrument_shift): Likewise.
5438 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
5439 (ubsan_instrument_bounds): New function.
5440 (ubsan_array_ref_instrumented_p): New function.
5441 (ubsan_maybe_instrument_array_ref): New function.
5442 * c-ubsan.h (ubsan_instrument_bounds): Declare.
5443 (ubsan_array_ref_instrumented_p): Declare.
5444 (ubsan_maybe_instrument_array_ref): Declare.
5445
54462014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
5447
5448 PR lto/61123
5449 * c.opt (fshort-enums): Add to LTO.
5450 * c.opt (fshort-wchar): Likewise.
5451
5c3d09f7
MP
54522014-06-16 Marek Polacek <polacek@redhat.com>
5453
5454 PR c/60439
5455 * c.opt (Wswitch-bool): Add Var.
5456
9cf32741
JJ
54572014-06-12 Jakub Jelinek <jakub@redhat.com>
5458
5459 PR middle-end/61486
5460 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
5461 #pragma omp target teams or
5462 #pragma omp {,target }teams distribute simd.
5463
62984918
JM
54642014-06-12 Jason Merrill <jason@redhat.com>
5465
5466 * c.opt (Wabi=, fabi-compat-version): New.
5467 * c-opts.c (c_common_handle_option): Handle -Wabi=.
5468 (c_common_post_options): Handle flag_abi_compat_version default.
5469 Disallow -fabi-compat-version=1.
5470 * c-common.h (abi_version_crosses): New.
5471
f961457f
JH
54722014-06-11 Jan Hubicka <hubicka@ucw.cz>
5473
adfac8df 5474 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
5475 section names that are no longer trees.
5476
92d28cbb
JJ
54772014-06-10 Jakub Jelinek <jakub@redhat.com>
5478
5479 PR fortran/60928
5480 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
5481 (omp_pragmas): ... back here.
5482
742938c9
MP
54832014-06-05 Marek Polacek <polacek@redhat.com>
5484
5485 PR c/49706
5486 * c-common.c (warn_logical_not_parentheses): New function.
5487 * c-common.h (warn_logical_not_parentheses): Declare.
5488 * c.opt (Wlogical-not-parentheses): New option.
5489
9d548dfb
MP
54902014-06-04 Marek Polacek <polacek@redhat.com>
5491
5492 PR c/30020
5493 * c-common.c (check_case_bounds): Add location parameter.
5494 Use it.
5495 (c_add_case_label): Pass loc to check_case_bounds.
5496
fedfecef
MP
54972014-06-03 Marek Polacek <polacek@redhat.com>
5498
5499 PR c/60439
5500 * c.opt (Wswitch-bool): New option.
5501
f6a7cffc
TS
55022014-05-22 Thomas Schwinge <thomas@codesourcery.com>
5503
040d18b6
TS
5504 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
5505 Remove prototypes.
5506 (record_types_used_by_current_var_decl): Move prototype to where
5507 it belongs.
5508
f6a7cffc
TS
5509 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
5510 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
5511 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
5512
632f2871
RS
55132014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
5514
5515 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
5516 * c-common.c (c_common_nodes_and_builtins): Don't initialize
5517 void_zero_node.
5518 * c-pretty-print.c (pp_c_void_constant): New function.
5519 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
5520 (c_pretty_printer::expression): Handle VOID_CST.
5521 * cilk.c (extract_free_variables): Likewise.
5522 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
5523 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
5524
766090c2
TS
55252014-05-17 Trevor Saunders <tsaunders@mozilla.com>
5526
5527 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
5528 * c-pragma.c (push_alignment): Adjust.
5529 (handle_pragma_push_options): Likewise.
5530
661a0813
MP
55312014-05-09 Marek Polacek <polacek@redhat.com>
5532
5533 PR c/50459
5534 * c-common.c (check_user_alignment): Return -1 if alignment is error
5535 node.
5536 (handle_aligned_attribute): Don't call default_conversion on
5537 FUNCTION_DECLs.
5538 (handle_vector_size_attribute): Likewise.
5539 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
5540 (handle_sentinel_attribute): Call default_conversion and allow even
5541 integral types as an argument.
5542
2793eeab
MP
55432014-05-08 Marek Polacek <polacek@redhat.com>
5544
5545 PR c/61053
5546 * c-common.c (min_align_of_type): New function factored out from...
5547 (c_sizeof_or_alignof_type): ...here.
5548 * c-common.h (min_align_of_type): Declare.
5549
f827930a
MP
55502014-05-08 Marek Polacek <polacek@redhat.com>
5551
5552 PR c/61077
5553 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
5554 parameter type of main.
5555
ca49b74e
DD
55562014-05-07 DJ Delorie <dj@redhat.com>
5557
5558 * c-cppbuiltin.c (print_bits_of_hex): New.
5559 (builtin_define_type_minmax): Print values using hex so as not to
5560 require a pre-computed list of string values.
5561
1d60af08
KZ
55622014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
5563 Mike Stump <mikestump@comcast.net>
5564 Richard Sandiford <rdsandiford@googlemail.com>
5565
5566 * c-ada-spec.c: Include wide-int.h.
5567 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
5568 (dump_generic_ada_node): Use wide-int interfaces.
5569 * c-common.c: Include wide-int-print.h.
5570 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
5571 (pointer_int_sum): Use wide-int interfaces.
5572 (c_common_nodes_and_builtins): Use make_int_cst.
5573 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
5574 (handle_alloc_size_attribute): Use wide-int interfaces.
5575 (get_nonnull_operand): Likewise.
5576 * c-format.c (get_constant): Use tree_fits_uhwi_p.
5577 * c-lex.c: Include wide-int.h.
5578 (narrowest_unsigned_type): Take a widest_int rather than two
5579 HOST_WIDE_INTs.
5580 (narrowest_signed_type): Likewise.
5581 (interpret_integer): Update accordingly. Use wide-int interfaces.
5582 (lex_charconst): Use wide-int interfaces.
5583 * c-pretty-print.c: Include wide-int.h.
5584 (pp_c_integer_constant): Use wide-int interfaces.
5585 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
5586 INT_CST_LT_UNSIGNED.
5587
b15458be
RB
55882014-05-06 Richard Biener <rguenther@suse.de>
5589
5590 * c-opts.c (c_common_post_options): For -freestanding,
5591 -fno-hosted and -fno-builtin disable pattern recognition
5592 if not enabled explicitely.
5593
6577374e
MP
55942014-05-02 Marek Polacek <polacek@redhat.com>
5595
5596 * c.opt (Wsizeof-pointer-memaccess): Describe option.
5597
d00887e8
MP
55982014-05-01 Marek Polacek <polacek@redhat.com>
5599
5600 PR c/43245
5601 * c.opt (Wdiscarded-qualifiers): Add.
5602
f8ed5150
MP
56032014-04-30 Marek Polacek <polacek@redhat.com>
5604
5605 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
5606 INT_MIN / -1 sanitization only for integer types.
5607
45484dcf
MP
56082014-04-25 Marek Polacek <polacek@redhat.com>
5609
5610 PR c/18079
5611 * c-common.c (handle_noinline_attribute): Warn if the attribute
5612 conflicts with always_inline attribute.
5613 (handle_always_inline_attribute): Warn if the attribute conflicts
5614 with noinline attribute.
5615
38e514c0
MP
56162014-04-25 Marek Polacek <polacek@redhat.com>
5617
5618 PR c/60156
5619 * c-common.c (check_main_parameter_types): Warn about variadic main.
5620
44875f92
MS
56212014-04-24 Mike Stump <mikestump@comcast.net>
5622
5623 * c.opt (Wshadow-ivar): Default to on.
5624
dcaaa5a0
DP
56252014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
5626
5627 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
5628
c07d7c02
MP
56292014-04-23 Marek Polacek <polacek@redhat.com>
5630
5631 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
5632
1c33c9b7
JJ
56332014-04-22 Jakub Jelinek <jakub@redhat.com>
5634
5635 PR sanitizer/60275
5636 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
5637 if flag_sanitize_undefined_trap_on_error.
5638 (ubsan_instrument_division, ubsan_instrument_shift,
5639 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
5640 if !flag_sanitize_recover.
5641
793c625f
MG
56422014-04-22 Marc Glisse <marc.glisse@inria.fr>
5643
5644 PR libstdc++/43622
5645 * c-common.c (registered_builtin_types): Make non-static.
5646 * c-common.h (registered_builtin_types): Declare.
5647
b0f1bf36
RB
56482014-04-14 Richard Biener <rguenther@suse.de>
5649 Marc Glisse <marc.glisse@inria.fr>
5650
5651 PR c/60819
5652 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
5653 apply may-alias the scalar pointer type when applicable.
5654
3b07fa4a
IZ
56552014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
5656
5657 PR middle-end/60467
5658 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
5659 as possible argument for Cilk_spawn.
5660
cbbd2b1c
TB
56612014-04-11 Tobias Burnus <burnus@net-b.de>
5662
5663 PR c/60194
5664 * c.opt (Wformat-signedness): Add
5665 * c-format.c(check_format_types): Use it.
5666
6415bd5d
JM
56672014-04-11 Jason Merrill <jason@redhat.com>
5668
5669 PR c++/57926
5670 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
5671 default_conversion for an array argument.
5672
6525783a
MP
56732014-04-08 Marek Polacek <polacek@redhat.com>
5674
5675 PR sanitizer/60745
5676 * c-ubsan.c: Include asan.h.
5677 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
5678
880a467b
NS
56792014-04-03 Nathan Sidwell <nathan@codesourcery.com>
5680
5681 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
5682
7b59ff2d
MP
56832014-04-02 Marek Polacek <polacek@redhat.com>
5684
5685 * c-common.h (c_expand_expr): Remove declaration.
5686
8edbfaa6
JJ
56872014-03-28 Jakub Jelinek <jakub@redhat.com>
5688
5689 PR c++/60689
5690 * c-common.c (add_atomic_size_parameter): When creating new
5691 params vector, push the size argument first.
5692
07d72e1d
JJ
56932014-03-26 Jakub Jelinek <jakub@redhat.com>
5694
5695 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
5696 ubsan_instrument_vla, ubsan_instrument_return): Adjust
5697 ubsan_create_data callers.
5698
b35e0fa0
JJ
56992014-03-22 Jakub Jelinek <jakub@redhat.com>
5700
5701 PR debug/60603
5702 * c-opts.c (c_finish_options): Restore cb_file_change call to
5703 <built-in>.
5704
39a1ebb3
JJ
57052014-03-13 Jakub Jelinek <jakub@redhat.com>
5706
5707 PR middle-end/36282
5708 * c-pragma.c (apply_pragma_weak): Only look at
5709 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
5710 DECL_ASSEMBLER_NAME_SET_P (decl).
5711 (maybe_apply_pending_pragma_weaks): Exit early if
5712 vec_safe_is_empty (pending_weaks) rather than only when
5713 !pending_weaks.
5714 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
5715 set assembler name back to NULL afterwards.
5716
a07f6ed2
JM
57172014-03-11 Jason Merrill <jason@redhat.com>
5718
5719 * c.opt: Add -std=gnu++14.
5720
75b107f5
IB
57212014-03-11 Ian Bolton <ian.bolton@arm.com>
5722
5723 * c-opts.c (c_common_post_options): Don't override
5724 -ffp-contract=fast if unsafe-math-optimizations is on.
5725
f42c637e
PM
57262014-03-08 Paulo Matos <paulo@matos-sorge.com>
5727
22b15758 5728 * c.opt: Enable LTO FE for fshort-double.
f42c637e 5729
70e24808
JM
57302014-03-07 Jason Merrill <jason@redhat.com>
5731
5732 * c.opt: Add -std=c++14.
5733
3af9c5e9
MP
57342014-03-06 Marek Polacek <polacek@redhat.com>
5735
5736 PR c/60197
5737 * cilk.c (contains_cilk_spawn_stmt): New function.
5738 (contains_cilk_spawn_stmt_walker): Likewise.
5739 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
5740 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
5741
b3bdf019
JJ
57422014-03-03 Jakub Jelinek <jakub@redhat.com>
5743
5744 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
5745 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
5746 even when flag_preprocess_only.
5747
ca7e759d
JM
57482014-02-26 Jason Merrill <jason@redhat.com>
5749
5750 PR c++/59231
5751 PR c++/11586
5752 * c-common.c (shorten_compare): Don't check
5753 c_inhibit_evaluation_warnings.
5754
28e41874
JJ
57552014-02-19 Jakub Jelinek <jakub@redhat.com>
5756
cca615af
JJ
5757 PR c/37743
5758 * c-common.c (c_common_nodes_and_builtins): When initializing
5759 c_uint{16,32,64}_type_node, also set corresponding
5760 uint{16,32,64}_type_node to the same value.
5761
28e41874
JJ
5762 PR c++/60267
5763 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
5764 for PRAGMA_IVDEP if flag_preprocess_only.
5765
c2bf53a1
JJ
57662014-02-12 Jakub Jelinek <jakub@redhat.com>
5767
5768 PR c/60101
5769 * c-common.c (merge_tlist): If copy is true, call new_tlist,
5770 if false, add ADD itself, rather than vice versa.
5771 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
5772 copy. For SAVE_EXPR, only call merge_tlist once.
5773
8fcbce72
JJ
57742014-02-08 Jakub Jelinek <jakub@redhat.com>
5775
5776 PR middle-end/60092
5777 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
5778 and tree_to_uhwi.
5779 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
5780 functions.
5781 (c_common_attribute_table): Add alloc_align and assume_aligned
5782 attributes.
5783
0a756a3f
MP
57842014-02-06 Marek Polacek <polacek@redhat.com>
5785
5786 PR c/60087
5787 * c-common.c (warn_for_sign_compare): Call warning_at with location
5788 instead of warning.
5789
7ec4847a
MP
57902014-02-05 Marek Polacek <polacek@redhat.com>
5791
5792 PR c/53123
5793 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
5794 statement.
5795
66f20604
MP
57962014-02-04 Marek Polacek <polacek@redhat.com>
5797
5798 PR c/60036
5799 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
5800 SAVE_EXPR.
5801
5d77fb19
MG
58022014-02-03 Marc Glisse <marc.glisse@inria.fr>
5803
5804 PR c++/53017
5805 PR c++/59211
5806 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
5807 handle_vector_size_attribute, handle_nonnull_attribute): Call
5808 default_conversion on the attribute argument.
5809 (handle_nonnull_attribute): Increment the argument number.
5810
81e5eca8
MP
58112014-01-31 Marek Polacek <polacek@redhat.com>
5812
5813 PR c/59963
5814 * c-common.c (add_atomic_size_parameter): Pass vNULL to
5815 build_function_call_vec.
5816 (resolve_overloaded_builtin): Likewise.
5817 * c-common.h (build_function_call_vec): Adjust declaration.
5818
68fca595
MP
58192014-01-30 Marek Polacek <polacek@redhat.com>
5820
5821 PR c/59940
5822 * c-common.h (unsafe_conversion_p): Adjust declaration.
5823 (warnings_for_convert_and_check): Likewise.
5824 (convert_and_check): Likewise.
5825 * c-common.c (unsafe_conversion_p): Add location parameter. Call
5826 expansion_point_location_if_in_system_header on it.
5827 (warnings_for_convert_and_check): Add location parameter. Call
5828 expansion_point_location_if_in_system_header on it. Use it.
5829 (convert_and_check): Add location parameter. Use it.
5830 (conversion_warning): Likewise.
5831 (c_add_case_label): Adjust convert_and_check calls.
5832 (scalar_to_vector): Adjust unsafe_conversion_p calls.
5833
b72271b9
BI
58342014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
5835
5836 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
5837 flag_cilkplus.
5838 * c-pragma.c (init_pragma): Likewise.
5839 * c.opt: Likewise.
5840
393e8e8b
MP
58412014-01-23 Marek Polacek <polacek@redhat.com>
5842
5843 PR c/59846
5844 * c-common.c (shorten_compare): Add location_t parameter.
5845 * c-common.h (shorten_binary_op): Adjust declaration.
5846
f04dda30
MP
58472014-01-23 Marek Polacek <polacek@redhat.com>
5848
5849 PR c/58346
5850 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
5851 * c-common.h: Declare it.
5852
621955cb
EB
58532014-01-20 Eric Botcazou <ebotcazou@adacore.com>
5854
5855 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
5856 * c-ada-spec.c (dump_ads): Likewise.
5857 (cpp_check): Likewise.
5858 (dump_ada_specs): Likewise.
5859
58602014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
5861
5862 PR c++/49718
5863 * c-common.c (handle_no_instrument_function_attribute): Allow
5864 no_instrument_function attribute in class member
5865 definition/declaration.
5866
241f845a
JJ
58672014-01-15 Jakub Jelinek <jakub@redhat.com>
5868
5869 PR c/58943
5870 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
5871 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
5872 being COMPOUND_EXPR.
5873 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
5874 operand a SAVE_EXPR and second MODIFY_EXPR.
5875
e83b8e2e
JJ
58762014-01-09 Jakub Jelinek <jakub@redhat.com>
5877
5878 PR target/58115
5879 * c-pch.c (c_common_write_pch): Call
5880 prepare_target_option_nodes_for_pch.
5881
23a5b65a
RS
58822014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
5883
5884 Update copyright years
5885
f9030485
RS
58862014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
5887
5888 * array-notation-common.c, c-cilkplus.c: Use the standard form for
5889 the copyright notice.
5890
f2aa696b
EB
58912013-12-28 Eric Botcazou <ebotcazou@adacore.com>
5892
5893 * c-ada-spec.c (print_constructor): New function.
5894 (print_destructor): Retrieve the origin of the destructor.
5895 (print_ada_declaration): Revamp handling of constructors/destructors.
5896
3f8257db 58972013-12-23 Stuart Hastings <stuart@apple.com>
1f26ac87
JM
5898 Bill Maddox <maddox@google.com>
5899 Jason Merrill <jason@redhat.com>
5900
5901 * c.opt: Add -fdeclone-ctor-dtor.
5902 * c-opts.c (c_common_post_options): Default to on iff -Os.
5903
41958c28
BI
59042013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
5905
5906 * c-common.c (c_common_attribute_table): Added "cilk simd function"
5907 attribute.
5908 * c-pragma.h (enum pragma_cilk_clause): Remove.
5909 (enum pragma_omp_clause): Added the following fields:
5910 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
5911 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
5912 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
5913 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
5914 PRAGMA_CILK_CLAUSE_UNIFORM.
5915
b1726d6c 5916
12893402
BI
59172013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
5918
5919 * cilk.c (cilk_outline): Made this function non-static.
5920 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
5921 (create_cilk_wrapper): Added a new parameter: a function pointer.
5922 (c_install_body_w_frame_cleanup): Remove
5923 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
5924 * c-common.h (cilk_outline): New prototype.
5925 (gimplify_cilk_spawn): Removed two parameters.
5926 (cilk_install_body_with_frame_cleanup): New prototype.
5927 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
5928 CILK_SPAWN_STMT case.
5929
085b42ed
BS
59302013-12-11 Bernd Schmidt <bernds@codesourcery.com>
5931
2ce064c3
BS
5932 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
5933
085b42ed
BS
5934 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
5935 (int_array_type_node): Remove.
5936 * c-common.c (c_common_nodes_and_builtins): Don't build it.
5937
9e36c9ed
MP
59382013-12-05 Marek Polacek <polacek@redhat.com>
5939
5940 PR c/52023
5941 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
5942 [ADJUST_FIELD_ALIGN].
5943
296674db
JM
59442013-12-04 Joseph Myers <joseph@codesourcery.com>
5945
5946 PR c/52023
5947 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
5948 and check field alignment if set.
5949 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
5950 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
5951
b1726d6c 59522013-12-04 Jakub Jelinek <jakub@redhat.com>
31e071ae
MP
5953 Marek Polacek <polacek@redhat.com>
5954
5955 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
5956 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
5957
d7947e19
L
59582013-11-29 H.J. Lu <hongjiu.lu@intel.com>
5959
5960 PR c/59309
5961 * cilk.c (gimplify_cilk_spawn): Properly handle function without
5962 arguments.
5963
fad7652e
JJ
59642013-11-29 Jakub Jelinek <jakub@redhat.com>
5965
5966 PR c/59280
5967 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
5968 goto invalid. If it is error_mark_node, don't issue further
5969 diagnostics.
5970
8b5e1202
SO
59712013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
5972
5973 * c.opt (Wopenmp-simd): New.
5974
0a508bb6
JJ
59752013-11-22 Jakub Jelinek <jakub@redhat.com>
5976
5977 * c-ubsan.h (ubsan_instrument_return): New prototype.
5978 * c-ubsan.c (ubsan_instrument_return): New function.
5979
2fb9a547
AM
59802013-11-22 Andrew MacLeod <amacleod@redhat.com>
5981
5982 * c-common.c: Add required include files from gimple.h.
5983 * c-gimplify.c: Likewise
5984 * cilk.c: Likewise
5985
8400e75e
DM
59862013-11-22 David Malcolm <dmalcolm@redhat.com>
5987
5988 * c-common.c (unsafe_conversion_p): Remove use of
5989 EXPR_LOC_OR_HERE macro.
5990 (conversion_warning): Likewise.
5991 (warnings_for_convert_and_check): Likewise.
5992 (warn_for_collisions_1): Likewise.
5993 (shorten_compare): Likewise, and remove use of in_system_header
5994 macro, using the location from the former.
5995 * c-lex.c (dump_one_header): Remove use of input_filename macro.
5996 (cb_def_pragma): Remove use of in_system_header macro.
5997 (lex_string): Likewise.
5998 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
5999
eb1ce453
KZ
60002013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
6001 Mike Stump <mikestump@comcast.net>
6002 Richard Sandiford <rdsandiford@googlemail.com>
6003
6004 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
6005 instead of TREE_INT_CST_LOW, in cases where there is a protecting
6006 tree_fits_shwi_p or tree_fits_uhwi_p.
6007 (dump_generic_ada_node): Likewise.
6008 * c-format.c (check_format_arg): Likewise.
6009 * c-pretty-print.c (pp_c_integer_constant): Likewise.
6010
6b3b8c27
KZ
60112013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
6012
6013 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
6014
49b0aa18
JC
60152013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
6016
6017 PR c/53001
6018 * c-common.c (unsafe_conversion_p): Make this function
6019 return an enumeration with more detail.
6020 (conversion_warning): Use the new return type of
6021 unsafe_conversion_p to separately warn either about conversions
6022 that lower floating point number precision or about the other
6023 kinds of conversions.
6024 * c-common.h (enum conversion_safety): New enumeration.
8e745a17
JJ
6025 (unsafe_conversion_p): switching return type to
6026 conversion_safety enumeration.
49b0aa18
JC
6027 * c.opt: Adding new warning -Wfloat-conversion and
6028 enabling it with -Wconversion.
6029
b826515a
BS
60302013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
6031
8e745a17
JJ
6032 * c-opts.c: Include plugin.h.
6033 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
b826515a 6034
b9a55b13
MP
60352013-11-19 Marek Polacek <polacek@redhat.com>
6036
6037 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
6038 call.
6039 (ubsan_instrument_shift): Likewise.
6040 (ubsan_instrument_vla): Likewise.
6041
7d362f6c
RS
60422013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6043
6044 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
6045 cast to unsigned type.
6046
386b1f1f
RS
60472013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6048
6049 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
6050 tree_low_cst.
6051 (complete_array_type): Update comment to refer to tree_to_[su]hwi
6052 rather than tree_low_cst.
6053
ae7e9ddd
RS
60542013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6055
6056 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
6057 tree_to_uhwi throughout.
6058
9439e9a1
RS
60592013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6060
6061 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
6062 tree_low_cst (..., 0) with tree_to_shwi throughout.
6063
cc269bb6
RS
60642013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6065
6066 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
6067 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
6068
9541ffee
RS
60692013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6070
6071 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
6072 host_integerp (..., 0) with tree_fits_shwi_p throughout.
6073
c02065fc
AH
60742013-11-15 Aldy Hernandez <aldyh@redhat.com>
6075
6076 * c-cilkplus.c: New file.
6077 * c-common.c (readonly_error): Add location argument.
6078 * c-common.h (readonly_error): Same.
6079 (c_finish_cilk_clauses): Protoize.
6080 (c_check_cilk_loop): Same.
6081 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
6082 Do not fail on error_mark_node.
6083 Abstract increment canonicalization to here...
6084 (c_omp_for_incr_canonicalize_ptr): New.
6085 c-pragma.c (init_pragma): Register "simd" pragma.
6086 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
6087 (enum pragma_cilk_clause): New.
6088
9cc65f15
RS
60892013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
6090
6091 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
6092 wchar_type and host_integerp checks.
6093
18f429e2
AM
60942013-11-14 Andrew MacLeod <amacleod@redhat.com>
6095
6096 * c-common.c: Likewise.
6097 * c-gimplify.c: Likewise.
6098 * cilk.c: Likewise.
6099
d8a2d370
DN
61002013-11-14 Diego Novillo <dnovillo@google.com>
6101
6102 * c-common.c: Include fold-const.h.
6103 Include stor-layout.h.
6104 Include calls.h.
6105 Include stringpool.h.
6106 Include attribs.h.
6107 Include varasm.h.
6108 Include trans-mem.h.
6109 * c-cppbuiltin.c: Include stor-layout.h.
6110 Include stringpool.h.
6111 * c-format.c: Include stringpool.h.
6112 * c-lex.c: Include stringpool.h.
6113 Include stor-layout.h.
6114 * c-pragma.c: Include stringpool.h.
6115 Include attribs.h.
6116 Include varasm.h.
6117 Include gcc-symtab.h.
6118 * c-pretty-print.c: Include stor-layout.h.
6119 Include attribs.h.
6120 * cilk.c: Include stringpool.h.
6121 Include calls.h.
6122
38b7bc7f
JM
61232013-11-13 Joseph Myers <joseph@codesourcery.com>
6124
6125 * c-common.h (enum rid): Add RID_AUTO_TYPE.
6126 * c-common.c (c_common_reswords): Add __auto_type.
6127 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
6128
45b0be94
AM
61292013-11-12 Andrew MacLeod <amacleod@redhat.com>
6130
18f429e2
AM
6131 * c-common.c: Include gimplify.h.
6132 * c-gimplify.c: Likewise.
6133 * cilk.c: Likewise.
6134 * c-omp.c: Include gimple-expr.h instead of gimple.h.
6135 * c-ubsan.c: Don't include gimple.h.
45b0be94 6136
582d9b50
JM
61372013-11-12 Joseph Myers <joseph@codesourcery.com>
6138
6139 * c-common.c (c_common_reswords): Add _Thread_local.
6140
6b28e197
JM
61412013-11-09 Joseph Myers <joseph@codesourcery.com>
6142
6143 * c-common.c (atomic_size_supported_p): New function.
6144 (resolve_overloaded_atomic_exchange)
6145 (resolve_overloaded_atomic_compare_exchange)
6146 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
6147 Use it instead of comparing size with a local list of sizes.
6148
267bac10
JM
61492013-11-07 Andrew MacLeod <amacleod@redhat.com>
6150 Joseph Myers <joseph@codesourcery.com>
6151
6152 * c-common.h (enum rid): Add RID_ATOMIC.
6153 * c-common.c (c_common_reswords): Add _Atomic.
6154 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
6155 (keyword_is_type_qualifier): Accept RID_ATOMIC.
6156 * c-format.c (check_format_types): Check for extra _Atomic
6157 qualifiers in format argument.
6158 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
6159 (pp_c_type_qualifier_list): Mention _Atomic in comment.
6160
5157b91e
TB
61612013-11-06 Tobias Burnus <burnus@net-b.de>
6162
6163 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
6164
6dbe0958
JM
61652013-11-06 Joseph Myers <joseph@codesourcery.com>
6166
6167 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
6168 standards modes.
6169 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
6170 to mean lack of IEEE 754 support.
6171
e8ff5196
TB
61722013-11-05 Tobias Burnus <burnus@net-b.de>
6173
6174 * c.opt (-Wdate-time): New option
6175 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
6176
254a0760
JM
61772013-11-05 Joseph Myers <joseph@codesourcery.com>
6178
6179 * c-cppbuiltin.c (cpp_iec_559_value): Test
6180 flag_excess_precision_cmdline not flag_excess_precision.
6181
6d7f7e0a
TB
61822013-11-05 Tobias Burnus <burnus@net-b.de>
6183
6184 * c.opt (fopenmp-simd): New option.
6185 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
6186 (omp_pragmas): ... this new struct.
6187 (c_pp_lookup_pragma): Also walk omp_pragmas.
6188 (init_pragma): Init pragmas for -fopenmp-simd.
6189
55a7f02f
MP
61902013-11-04 Marek Polacek <polacek@redhat.com>
6191
6192 PR c++/58979
6193 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
6194
9193fb05
JM
61952013-11-04 Joseph Myers <joseph@codesourcery.com>
6196
6197 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
6198 New functions.
6199 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
6200
94159ecf
EB
62012013-11-04 Eric Botcazou <ebotcazou@adacore.com>
6202
6203 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
6204 (dump_ada_specs): Adjust prototype of second callback.
6205 * c-ada-spec.c (cpp_check): New global variable.
6206 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
6207 (print_generic_ada_decl): Likewise.
6208 (has_static_fields): Change return type to bool and add guard.
6209 (has_nontrivial_methods): New predicate.
6210 (is_tagged_type): Change return type to bool.
6211 (separate_class_package): Call has_nontrivial_methods.
6212 (pp_ada_tree_identifier): Minor tweaks.
6213 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
6214 (dump_ada_array_domains): Likewise.
6215 (dump_ada_array_type): Likewise.
6216 (dump_template_types): Remove cpp_check parameter and do not pass it to
6217 dump_generic_ada_node.
6218 (dump_ada_template): Likewise.
6219 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
6220 recursively.
6221 (print_ada_methods): Change return type to integer. Remove cpp_check
6222 parameter and do not pass it down.
6223 (dump_nested_types): Remove cpp_check parameter and do not pass it to
6224 dump_generic_ada_node.
6225 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
6226 accessing methods.
6227 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
6228 down. Use has_nontrivial_methods to recognize C++ classes. Use return
6229 value of print_ada_methods.
6230 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
6231 Set cpp_check to it before invoking dump_ada_nodes.
6232 (dump_ada_specs): Likewise.
6233
b906f4ca
MP
62342013-11-03 Marek Polacek <polacek@redhat.com>
6235
6236 * c-ubsan.c: Don't include hash-table.h.
6237 (ubsan_instrument_vla): New function.
6238 * c-ubsan.h: Declare it.
6239
5e20cdc9
DM
62402013-10-31 David Malcolm <dmalcolm@redhat.com>
6241
6242 Automated part of renaming of symtab_node_base to symtab_node.
6243
6244 Patch autogenerated by rename_symtab.py from
6245 https://github.com/davidmalcolm/gcc-refactoring-scripts
6246 revision 58bb219cc090b2f4516a9297d868c245495ee622
6247
6248 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
6249 symtab_node_base to symtab_node.
6250
7057e645
ESR
62512013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
6252
8e745a17 6253 Implement C++14 digit separators.
7057e645
ESR
6254 * c-lex.c (interpret_float): Remove digit separators from scratch string
6255 before building real literal.
6256
193ea7bc
JJ
62572013-10-30 Jakub Jelinek <jakub@redhat.com>
6258
6259 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
6260
939b37da
BI
62612013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
6262
6263 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
6264 fields.
6265 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
6266 enabled.
6267 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
6268 (insert_cilk_frame): New prototype.
6269 (cilk_init_builtins): Likewise.
6270 (gimplify_cilk_spawn): Likewise.
6271 (c_cilk_install_body_w_frame_cleanup): Likewise.
6272 (cilk_detect_spawn_and_unwrap): Likewise.
6273 (cilk_set_spawn_marker): Likewise.
6274 (build_cilk_sync): Likewise.
6275 (build_cilk_spawn): Likewise.
6276 * cilk.c: New file.
6277
67348ccc
DM
62782013-10-29 David Malcolm <dmalcolm@redhat.com>
6279
6280 Patch autogenerated by refactor_symtab.py from
6281 https://github.com/davidmalcolm/gcc-refactoring-scripts
6282 revision 58bb219cc090b2f4516a9297d868c245495ee622
6283
6284 * c-gimplify.c (c_genericize): Update for conversion of symtab types
6285 to a true class hierarchy.
6286 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
6287
d570872d
RS
62882013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
6289
6290 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
6291
98906124
JL
62922013-10-26 Jeff Law <law@redhat.com>
6293
adfac8df
JJ
6294 * c-common.c (c_define_builtins): Remove mudflap support.
6295 * c.opt: Ignore and warn for mudflap options.
98906124 6296
d73749df 62972013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
6298
6299 PR other/33426
6300 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
6301 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
6302
3f04b1bb
JM
63032013-10-23 Jason Merrill <jason@redhat.com>
6304
6305 * c-format.c (gcc_cxxdiag_char_table): Add %X.
6306
acf0174b
JJ
63072013-10-11 Jakub Jelinek <jakub@redhat.com>
6308
acd15a28
JJ
6309 * c-common.h (omp_clause_mask::operator !=): New method.
6310 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
6311 instead of if (mask & something) tests everywhere.
6312
acf0174b
JJ
6313 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
6314 201307 instead of 201107.
6315 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
6316 (c_common_attribute_table): Add "omp declare target" and
6317 "omp declare simd" attributes.
6318 (handle_omp_declare_target_attribute,
6319 handle_omp_declare_simd_attribute): New functions.
6320 * c-omp.c: Include c-pragma.h.
6321 (c_finish_omp_taskgroup): New function.
6322 (c_finish_omp_atomic): Add swapped argument, if true,
6323 build the operation first with rhs, lhs arguments and use NOP_EXPR
6324 build_modify_expr.
6325 (c_finish_omp_for): Add code argument, pass it down to make_code.
6326 (c_omp_split_clauses): New function.
6327 (c_split_parallel_clauses): Removed.
6328 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
6329 c_omp_declare_simd_clauses_to_decls): New functions.
6330 * c-common.h (omp_clause_mask): New type.
6331 (OMP_CLAUSE_MASK_1): Define.
6332 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
6333 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
6334 omp_clause_mask::operator |, omp_clause_mask::operator &,
6335 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
6336 omp_clause_mask::operator ==): New methods.
6337 (enum c_omp_clause_split): New.
6338 (c_finish_omp_taskgroup): New prototype.
6339 (c_finish_omp_atomic): Add swapped argument.
6340 (c_finish_omp_for): Add code argument.
6341 (c_omp_split_clauses): New prototype.
6342 (c_split_parallel_clauses): Removed.
6343 (c_omp_declare_simd_clauses_to_numbers,
6344 c_omp_declare_simd_clauses_to_decls): New prototypes.
6345 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
6346 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
6347 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
6348 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
6349 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
6350 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
6351 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
6352 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
6353 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
6354 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
6355 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
6356 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
6357 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
6358 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
6359 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
6360 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
6361 PRAGMA_OMP_CLAUSE_UNIFORM.
6362
826cacfe
MG
63632013-10-09 Marc Glisse <marc.glisse@inria.fr>
6364
6365 PR tree-optimization/20318
6366 * c-common.c (handle_returns_nonnull_attribute): New function.
6367 (c_common_attribute_table): Add returns_nonnull.
6368
2284b034
MG
63692013-10-03 Marc Glisse <marc.glisse@inria.fr>
6370
6371 PR c++/19476
6372 * c.opt (fcheck-new): Move to common.opt.
6373
b56e9788
MP
63742013-09-25 Marek Polacek <polacek@redhat.com>
6375 Jakub Jelinek <jakub@redhat.com>
6376
6377 PR sanitizer/58413
6378 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
6379 an expression if we can prove it is correct.
6380 (ubsan_instrument_division): Likewise. Remove unnecessary
6381 check.
6382
ce6923c5
MP
63832013-09-18 Marek Polacek <polacek@redhat.com>
6384
6385 PR sanitizer/58411
6386 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
6387 Declare it.
6388 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
6389
fb5610fb
IS
63902013-09-14 Iain Sandoe <iain@codesourcery.com>
6391
6392 PR target/48094
6393 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
6394 fobjc-gc, freplace-objc-classes): Accept for LTO.
6395
88b0e79e
JC
63962013-09-13 Jacek Caban <jacek@codeweavers.com>
6397
6398 * c-target.def: New hook
6399
c9b0866a
PC
64002013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
6401
6402 PR c++/43452
6403 * c.opt (Wdelete-incomplete): Add.
6404
0af94e6f
JR
64052013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
6406
6407 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
6408 (vector_types_compatible_elements_p): New function.
6409 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
6410 declaration.
6411 (vector_types_compatible_elements_p): Declare.
6412
7c26172c
GDR
64132013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
6414
6415 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
6416 a virtual member function.
6417 (pp_simple_type_specifier): Remove.
6418 (pp_c_type_specifier): Likewise.
6419 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
6420 Rename from pp_c_type_specifier. Adjust.
6421 (c_pretty_printer::c_pretty_printer): Do not assign to
6422 simple_type_specifier.
6423
20059c8b
GDR
64242013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
6425
6426 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
6427 member function.
6428 (c_pretty_printer::storage_class_specifier): Likewise.
6429 (c_pretty_printer::initializer): Likewise.
6430 (pp_declaration): Remove.
6431 (pp_declaration_specifiers): Likewise.
6432 (pp_abstract_declarator): Likewise.
6433 (pp_declarator): Likewise.
6434 (pp_type_id): Likewise.
6435 (pp_statement): Likewise.
6436 (pp_constant): Likewise.
6437 (pp_id_expression): Likewise.
6438 (pp_primary_expression): Likewise.
6439 (pp_unary_expression): Likewise.
6440 (pp_multiplicative_expression): Likewise.
6441 (pp_conditional_expression): Likewise.
6442 (pp_assignment_expression): Likewise.
6443 (pp_expression): Likewise.
6444 (pp_c_type_id): Likewise.
6445 (pp_c_storage_class_specifier): Likewise.
6446 * c-pretty-print.c (pp_c_type_cast): Tidy.
6447 (pp_c_pointer): Likewise.
6448 (pp_c_type_specifier): Likewise.
6449 (pp_c_parameter_type_list): Likewise.
6450 (pp_c_function_definition): Likewise.
6451 (pp_c_init_declarator): Likewise.
6452 (pp_c_initializer_list): Likewise.
6453 (pp_c_constructor_elts): Likewise.
6454 (c_pretty_printer::direct_abstract_declarator): Likewise.
6455 (c_pretty_printer::declaration_specifiers): Likewise.
6456 (c_pretty_printer::primary_expression): Likewise.
6457 (c_pretty_printer::postfix_expression): Likewise.
6458 (c_pretty_printer::type_id): Rename from pp_c_type_id.
6459 (c_pretty_printer::storage_class_specifier): Rename from
6460 pp_c_storage_class_specifier.
6461 (c_pretty_printer::initializer): Rename from pp_c_initializer.
6462 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
6463 storage_class_specifier, initializer, offset_list, flags.
6464
de5a5fa1
MP
64652013-08-30 Marek Polacek <polacek@redhat.com>
6466
6467 * c-ubsan.c: New file.
6468 * c-ubsan.h: New file.
6469
8f0e4d72
GDR
64702013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
6471
6472 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
6473 member function.
6474 (c_pretty_printer::declaration_specifiers): Likewise.
6475 (c_pretty_printer::declarator): Likewise.
6476 (c_pretty_printer::abstract_declarator): Likewise.
6477 (c_pretty_printer::direct_abstract_declarator): Likewise.
6478 (c_pretty_printer::direct_declarator): Likewise.
6479 (c_pretty_printer::function_specifier): Likewise.
6480 (pp_declaration): Adjust.
6481 (pp_declaration_specifiers): Likewise.
6482 (pp_abstract_declarator): Likewise.
6483 (pp_direct_declarator): Likewise.
6484 (pp_function_specifier): Likewise.
6485 (pp_direct_abstract_declarator): Remove as unused.
6486 (pp_c_declaration): Remove.
6487 (pp_c_declaration_specifiers): Likewise.
6488 (pp_c_declarator): Likewise.
6489 (pp_c_direct_declarator): Likewise.
6490 (pp_c_function_specifier): Likewise.
6491 (pp_c_direct_abstract_declarator): Likewise.
6492 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
6493 from pp_c_abstract_declarator. Adjust.
6494 (c_pretty_printer::direct_abstract_declarator): Rename from
6495 pp_c_direct_abstract_declarator. Adjust.
6496 (c_pretty_printer::function_specifier): Rename from
6497 pp_c_function_specifier. Adjust.
6498 (c_pretty_printer::declaration_specifiers): Rename from
6499 pp_c_declaration_specifiers. Adjust.
6500 (c_pretty_printer::direct_declarator): Rename from
6501 pp_c_direct_declarator. Adjust.
6502 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
6503 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
6504 (c_pretty_printer::c_pretty_printer): Do not assign to
6505 declaration, declaration_specifiers, declarator,
6506 direct_declarator, direct_abstract_declarator, function_specifier.
6507
00d34d3a
GDR
65082013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
6509
6510 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
6511 virtual member function.
6512 (c_pretty_printer::multiplicative_expression): Likewise.
6513 (c_pretty_printer::conditional_expression): Likewise.
6514 (c_pretty_printer::assignment_expression): Likewise.
6515 (c_pretty_printer::expression): Likewise.
6516 (pp_unary_expression): Adjust.
6517 (pp_multiplicative_expression): Likewise.
6518 (pp_assignment_expression): Likewise.
6519 (pp_conditional_expression): Likewise.
6520 (pp_expression): Likewise.
6521 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
6522 from pp_c_unary_expression. Adjust.
6523 (c_pretty_printer::multiplicative_expression): Rename from
6524 pp_c_multiplicative_expression. Adjust.
6525 (c_pretty_printer::conditional_expression): Rename from
6526 pp_c_conditional_expression. Adjust.
6527 (c_pretty_printer::assignment_expression): Rename from
6528 pp_c_assignment_expression. Adjust.
6529 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
6530 (c_pretty_printer::c_pretty_printer): Do not assign to
6531 unary_expression, multiplicative_expression,
6532 conditional_expression, expression.
6533
fb22178f
GDR
65342013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
6535
6536 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
6537 virtual member function.
6538 (pp_postfix_expression): Adjust.
6539 (pp_c_postfix_expression): Remove.
6540 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
6541 from pp_c_postfix_expression. Adjust.
6542 (c_pretty_printer::c_pretty_printer): Do not assign to
6543 postfix_expression.
6544
7ecc2600
GDR
65452013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
6546
6547 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
6548 virtua member function.
6549 (pp_primary_expression): Adjust.
6550 (pp_c_primary_expression): Remove.
6551 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
6552 from pp_c_primary_expression. Adjust.
6553 (pp_c_initializer_list): Use pp_primary_expression.
6554 (c_pretty_printer::c_pretty_printer): Do not assign to
6555 primary_expression.
6556
0691175f
GDR
65572013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
6558
6559 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
6560 * c-pretty-print.c (M_): Remove.
6561 (c_pretty_printer::translate_string): Define.
6562 (pp_c_type_specifier): Use it.
6563 (pp_c_primary_expression): Likewise.
6564 (pp_c_expression): Likewise.
6565
66dfe4c4
GDR
65662013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
6567
6568 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
6569 virtual function.
6570 (pp_c_id_expression): Remove.
6571 (pp_id_expression): Adjust.
6572 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
6573 pp_c_id_expression. Adjust.
6574 (pp_c_postfix_expression): Use pp_id_expression.
6575 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
6576
ca43e9d5
GDR
65772013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
6578
6579 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
6580 member function.
6581 (pp_constant): Adjust.
6582 (pp_c_constant): Remove.
6583 * c-pretty-print.c (c_pretty_printer::constant): Rename from
6584 pp_c_constant. Adjust.
6585 (pp_c_constant)
6586 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
6587 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
6588
da6ca2b5
GDR
65892013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
6590
6591 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
6592 (c_pretty_printer::c_pretty_printer): Declare.
6593 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
6594 c_pretty_printer_init. Adjust.
6595 (print_c_tree): Do not call c_pretty_printer_init.
6596 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
6597
65a372f4
AC
65982013-08-09 Arnaud Charlet <charlet@adacore.com>
6599
6600 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
6601
fd9b0f32
PC
66022013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
6603
6604 PR c++/58080
6605 * c-common.c (pointer_int_sum): Add bool parameter.
6606 * c-common.h (pointer_int_sum): Adjust declaration.
6607
e0aec1e9
GDR
66082013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
6609
6610 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
6611 c_pretty_printer variable.
6612
b066401f
GDR
66132013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
6614
6615 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
6616 (pp_base): Remove.
6617 (pp_c_base): Likewise. Adjust users.
6618 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
6619 (pp_c_whitespace): Do not call pp_base.
6620 (pp_c_left_paren): Likewise.
6621 (pp_c_right_paren): Likewise.
6622 (pp_c_left_brace): Likewise.
6623 (pp_c_right_brace): Likewise.
6624 (pp_c_left_bracket): Likewise.
6625 (pp_c_right_bracket): Likewise.
6626 (pp_c_dot): Likewise.
6627 (pp_c_ampersand): Likewise.
6628 (pp_c_star): Likewise.
6629 (pp_c_arrow): Likewise.
6630 (pp_c_semicolon): Likewise.
6631 (pp_c_complement): Likewise.
6632 (pp_c_exclamation): Likewise.
6633 (pp_c_direct_declarator): Likewise.
6634 (pp_c_ws_string): Likewise.
6635 (pp_c_identifier): Likewise.
6636 (pp_c_statement): Likewise.
6637 (print_c_tree): Likewise.
6638
65e5a578
ESR
66392013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
6640
6641 PR c++/58072
6642 * c-common.c (c_parse_error): Catch user-defined literal tokens and
6643 provide useful error strings.
6644
137a1a27
GDR
66452013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
6646
6647 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
6648 printer functions instead of pp_string or operators and punctuators.
6649 (dump_generic_ada_node): Likewise.
6650 * c-pretty-print.c (pp_c_type_specifier): Likewise.
6651 (pp_c_relational_expression): Likewise.
6652 (pp_c_logical_or_expression): Likewise.
6653
07838b13
GDR
66542013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
6655
6656 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
6657 functions instead of pp_character.
6658 (pp_ada_tree_identifier): Likewise.
6659 (dump_ada_double_name): Likewise.
6660 (dump_ada_function_declaration): Likewise.
6661 (dump_ada_array_domains): Likewise.
6662 (dump_template_types): Likewise.
6663 (dump_generic_ada_node): Likewise.
6664 (print_ada_declaration): Likewise.
6665 (print_ada_struct_decl): Likewise.
6666 * c-pretty-print.c (pp_c_integer_constant): Likewise.
6667
433cc7b0
TT
66682013-07-23 Tom Tromey <tromey@redhat.com>
6669
6670 * c-common.h (enum rid) <RID_GENERIC>: New constant.
6671 * c-common.c (c_common_reswords): Add _Generic.
6672
688010ba
OB
66732013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
6674
6675 * c-common.c: Fix typos.
6676 * c-common.h: Likewise.
6677
2a99e5e6
LL
66782013-07-13 Lubos Lunak <l.lunak@suse.cz>
6679
6680 PR c++/55203
6681 * c-common.c (c_common_attribute_table): Add warn_unused.
6682 (handle_warn_unused_attribute): New.
6683
c26302d5
JJ
66842013-07-10 Jakub Jelinek <jakub@redhat.com>
6685
6686 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
6687 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
6688
dfeadaa0
PC
66892013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
6690
6691 PR c++/57869
6692 * c.opt: Add Wconditionally-supported.
6693
6a2fa4b2
GS
66942013-07-08 Graham Stott <graham.stott@btinternet.com>
6695
adfac8df 6696 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
6697 unused variables l_length and l_node.
6698
ecdbd01a 66992013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
6700
6701 PR c/57821
6702 * c-common.c (complete_array_type): Delay folding first index
6703 like other indices. When folding, check for index overflow.
6704
bedc293e
MG
67052013-06-27 Marc Glisse <marc.glisse@inria.fr>
6706
6707 PR c++/57509
6708 * c-common.h (c_build_vec_perm_expr): New complain argument.
6709 * c-common.c (c_build_vec_perm_expr): Likewise.
6710 Use save_expr also in C++.
6711
604b2bfc
GDR
67122013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
6713
6714 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
6715 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
6716 * c-opts.c (c_common_post_options): Likewise.
6717
dfeadaa0 67182013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
6719
6720 * array-notation-common.c (length_mismatch_in_expr): Changed the
6721 parameter type's from a dynamic array to a vec_tree. Also removed
6722 the size parameters.
6723 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
6724 the change above.
6725
2ce86d2e
BI
67262013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
6727
6728 * c-common.h (struct cilkplus_an_parts): New structure.
6729 (struct cilkplus_an_loop_parts): Likewise.
6730 (cilkplus_extract_an_triplets): New prototype.
6731 (fix_sec_implicit_args): Likewise.
6732 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
6733 (fix_sec_implicit_args): Likewise.
604b2bfc 6734
07a6825b
BI
67352013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
6736
6737 * array-notation-common.c (find_inv_trees): Removed an unwanted
6738 typecasting.
6739 * c-common.h (struct inv_list::additional_tcodes): Changed type from
6740 enum rid to enum tree_code.
6741
08346abd
JH
67422013-06-11 Jan Hubicka <jh@suse.cz>
6743
6744 * c-common.c (handle_alias_ifunc_attribute): Do not set
6745 DECL_EXTERNAL for weakref variables.
6746 * c-pragma.c (handle_pragma_weak): Make sure aliases
6747 are not declared as external.
6748
d60f1706
BI
67492013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
6750
6751 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
6752 function from c/c-array-notation.c.
6753 (is_cilkplus_reduce_builtin): Likewise.
6754 (find_rank): Likewise.
6755 (extract_array_notation_exprs): Likewise.
6756 (replace_array_notations): Likewise.
6757 (find_inv_trees): Likewise.
6758 (replace_inv_trees): Likewise.
6759 (contains_array_notation_expr): Likewise.
6760 (find_correct_array_notation_type): Likewise.
6761 * c-common.h (struct inv_list): Moved this struct from the file
6762 c/c-array-notation.c and added a new field called additional tcodes.
6763 (length_mismatch_in_expr_p): New prototype.
6764 (is_cilkplus_reduce_builtin): Likewise.
6765 (find_rank): Likewise.
6766 (extract_array_notation_exprs): Likewise.
6767 (replace_array_notation): Likewise.
6768 (find_inv_trees): Likewise.
6769 (replace_inv_trees): Likewise.
6770 (find_correct_array_notation_type): Likewise.
dfeadaa0 6771
36536d79
BI
67722013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
6773
6774 * c-common.c (c_define_builtins): When cilkplus is enabled, the
6775 function array_notation_init_builtins is called.
6776 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
6777 * c-common.def (ARRAY_NOTATION_REF): New tree.
6778 * c-common.h (build_array_notation_expr): New function declaration.
6779 (build_array_notation_ref): Likewise.
6780 (extract_sec_implicit_index_arg): New extern declaration.
6781 (is_sec_implicit_index_fn): Likewise.
6782 (ARRAY_NOTATION_CHECK): New define.
6783 (ARRAY_NOTATION_ARRAY): Likewise.
6784 (ARRAY_NOTATION_START): Likewise.
6785 (ARRAY_NOTATION_LENGTH): Likewise.
6786 (ARRAY_NOTATION_STRIDE): Likewise.
6787 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
6788 ARRAY_NOTATION_REF.
6789 (pp_c_expression): Likewise.
6790 * c.opt (flag_enable_cilkplus): New flag.
6791 * array-notation-common.c: New file.
6792
f7716d57
JJ
67932013-05-14 Jakub Jelinek <jakub@redhat.com>
6794
6795 PR c++/57274
6796 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
6797
a5e0cd1d
MG
67982013-05-10 Marc Glisse <marc.glisse@inria.fr>
6799
6800 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
6801 vectors.
6802
f6bc1c4a
HS
68032013-05-07 Han Shen <shenhan@google.com>
6804
6805 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
6806
3f12f6e9
SKS
68072013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
6808
6809 * c-common.c (check_user_alignment): Emit error for negative values.
6810
61949153
PC
68112013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6812
6813 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
6814
e93e18e9
PC
68152013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6816
6817 * c-cppbuiltin.c (c_cpp_builtins): Do not define
6818 __GXX_EXPERIMENTAL_CXX1Y__.
6819
44d90fe1 68202013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
8e745a17 6821 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
44d90fe1
PC
6822
6823 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
6824 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
6825 to simply use OPT_Wpointer_arith.
6826 (c_sizeof_or_alignof_type): Likewise.
6827
13f39b2e
PC
68282013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6829
6830 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
6831
4b84d650
JJ
68322013-04-12 Jakub Jelinek <jakub@redhat.com>
6833
6834 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
6835 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
6836 specifiers.
6837
fb037b5d
SB
68382013-04-07 Steven Bosscher <steven@gcc.gnu.org>
6839
6840 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
6841
4e856798
PC
68422013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
6843
6844 * c-common.c (pointer_int_sum): Remove dead code.
6845
4b1baac8
RS
68462013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
6847
6848 PR middle-end/56524
6849 * c-common.c (handle_optimize_attribute): Don't call
6850 save_optabs_if_changed.
6851
0b50e654
JJ
68522013-03-05 Jakub Jelinek <jakub@redhat.com>
6853
6854 PR middle-end/56461
6855 * c-pch.c (pch_init): Free target_validity at the end.
6856
48c41403
JJ
68572013-03-04 Jakub Jelinek <jakub@redhat.com>
6858
6859 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
6860
e664c61c
KS
68612013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
6862 Jakub Jelinek <jakub@redhat.com>
6863
6864 PR sanitizer/56454
6865 * c-common.c (handle_no_sanitize_address_attribute): New function.
6866 (c_common_attribute_table): Add no_sanitize_address attribute.
6867 (handle_no_address_safety_analysis_attribute): Add
6868 no_sanitize_address attribute, not no_address_safety_analysis
6869 attribute.
6870
a475fd3d 68712013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
6872
6873 PR target/52555
6874 * c-common.c (handle_optimize_attribute): Call
6875 save_optabs_if_changed.
6876
f6007d99
JJ
68772013-02-18 Jakub Jelinek <jakub@redhat.com>
6878 Steven Bosscher <steven@gcc.gnu.org>
6879
6880 PR pch/54117
6881 * c-opts.c (c_common_post_options): If debug info is enabled
6882 and non-dwarf*, refuse to load PCH files and when writing PCH
6883 file warn.
6884
cf35e2b1
JJ
68852013-02-05 Jakub Jelinek <jakub@redhat.com>
6886
6887 PR middle-end/56167
6888 * c-common.c (handle_error_attribute): Fix condition.
6889
32887460
JJ
68902013-01-30 Jakub Jelinek <jakub@redhat.com>
6891
6892 PR c++/55742
6893 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
6894
5af057d8
JM
68952013-01-18 Jason Merrill <jason@redhat.com>
6896
6897 PR target/54908
6898 * c.opt (-fextern-tls-init): New.
6899 * c-opts.c (c_common_post_options): Handle it.
6900
cc83c823
JJ
69012013-01-09 Jakub Jelinek <jakub@redhat.com>
6902
6903 PR c/48418
6904 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
6905 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
6906 and is either negative or bigger or equal to type precision
6907 of the first operand.
6908
a859517f
MP
69092012-12-03 Marek Polacek <polacek@redhat.com>
6910
6911 PR c/55570
6912 * c-common.c (check_user_alignment): Swap order of tests,
6913 check TREE_CODE first.
6914
2d7aa578
ESR
69152012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
6916
6917 PR c++/52654
6918 * c-common.h (overflow_type): New enum.
6919 (build_userdef_literal): Add overflow_type argument.
6920 (tree_userdef_literal): Add overflow_type.
6921 (USERDEF_LITERAL_OVERFLOW): New access macro.
6922 * c-common.c (build_userdef_literal): Add overflow_type
6923 argument.
6924 * c-lex.c (c_lex_with_flags): Add overflow_type to
6925 build_userdef_literal calls.
6926 (interpret_integer, interpret_float): Add overflow_type argument.
6927
cc3c4f62
RB
69282012-11-28 Richard Biener <rguenther@suse.de>
6929
6930 PR c/35634
6931 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
6932 here and use a type with proper overflow behavior for types that would
6933 need to be promoted for the arithmetic.
6934
77bc5132
JJ
69352012-11-23 Jakub Jelinek <jakub@redhat.com>
6936
6937 PR sanitizer/55435
6938 * c-common.c (handle_no_address_safety_analysis_attribute): New
6939 function.
6940 (c_common_attribute_table): Add no_address_safety_analysis.
6941
5dc99c46
SB
69422012-11-16 Simon Baldwin <simonb@google.com>
6943
6944 * c.opt: Add f[no-]canonical-system-headers.
6945 * c-opts.c (c_common_handle_option): Handle
6946 OPT_fcanonical_system_headers.
6947
a4a0016d
ESR
69482012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
6949
6950 PR c++/54413
6951 * c-opts.c (c_common_handle_option): Set new flags.
6952 * c.opt: Describe new flags.
6953
7dbb85a7
JM
69542012-11-09 Jason Merrill <jason@redhat.com>
6955
6956 * c.opt (Wabi-tag): New.
6957
ad7bac31
AK
69582012-11-09 Andi Kleen <ak@linux.intel.com>
6959
6960 PR 55139
6961 * c-common.c (get_atomic_generic_size): Mask with
8e745a17 6962 MEMMODEL_MASK
ad7bac31 6963
7332899a
MLI
69642012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
6965
6966 PR c/53063
6967 * c.opt (Wformat): Make it Alias Wformat=1.
6968 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
6969 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
6970 LangEnabledBy.
6971 (Wformat=): RejectNegative. Use LangEnabledBy.
6972 (Wnonnull): Use LangEnabledBy.
6973 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
6974 * c-format.c (set_Wformat): Delete.
6975 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
8e745a17
JJ
6976 (maybe_read_dollar_number): Likewise.
6977 (avoid_dollar_number): Likewise.
6978 (finish_dollar_format_checking): Likewise.
6979 (check_format_info): Likewise.
6980 (check_format_info_main): Likewise.
6981 (check_format_types): Likewise.
6982 (format_type_warning): Likewise.
6983 * c-common.c (int): Likewise.
6984 (check_function_sentinel): Likewise.
6985 * c-common.h (warn_format,set_Wformat): Do not declare here.
7332899a 6986
34a180a6
MLI
69872012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
6988
6989 PR c/53063
6990 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
6991 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
6992 Use LangEnabledBy.
6993 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
6994 common.opt.
6995 (Wvariadic-macros): Init(1).
6996 * c-opts.c (c_common_handle_option): Do not handle them
6997 explicitly.
6998 (c_common_post_options): Likewise.
6999 (sanitize_cpp_opts): warn_unused_macros is now
7000 cpp_warn_unused_macros.
7001 (push_command_line_include): Likewise.
7002 * c-common.c (warn_unknown_pragmas): Do not define.
7003 * c-common.h (warn_unknown_pragmas): Do not declare.
7004
3f46d6a5
MLI
70052012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
7006
7007 PR c/51294
7008 * c-common.c (conversion_warning): Handle conditional expressions.
7009
880661a4
JW
70102012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
7011
7012 PR c++/54930
7013 * c.opt (Wreturn_local_addr): Define new option.
7014
4514a96b
JM
70152012-10-25 Jason Merrill <jason@redhat.com>
7016
f14edc1a
JM
7017 * c.opt (Wvirtual-move-assign): New.
7018
4514a96b
JM
7019 * c.opt (Winherited-variadic-ctor): New.
7020
93100c6b
MG
70212012-10-25 Marc Glisse <marc.glisse@inria.fr>
7022
7023 PR c++/54427
7024 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
7025
1efcb8c6
JM
70262012-10-23 Joseph Myers <joseph@codesourcery.com>
7027
7028 * c-common.h (pch_cpp_save_state): Declare.
7029 * c-target.def (c_preinclude): New hook.
7030 * c-opts.c (done_preinclude): New.
7031 (push_command_line_include): Handle default preincluded header.
7032 (cb_file_change): Call pch_cpp_save_state when calling
7033 push_command_line_include.
7034 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
7035 (pch_cpp_save_state): New.
7036 (pch_init): Call pch_cpp_save_state conditionally, instead of
7037 calling cpp_save_state.
7038
4a0ae68e
MLI
70392012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
7040
7041 PR c/53063
7042 PR c/40989
7043 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
7044 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
7045 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
7046 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
7047 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
7048 * c-opts.c (c_common_handle_option): Remove explicit handling from
7049 here.
7050 (c_common_post_options): Likewise.
7051
67e4210b
EB
70522012-10-18 Eric Botcazou <ebotcazou@adacore.com>
7053
7054 * c-ada-spec.c (LOCATION_COL): Delete.
7055 (compare_location): New function.
7056 (compare_node): Use it.
7057 (compare_comment): Likewise.
7058
65d4f2cd
MLI
70592012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
7060
7061 PR c/53063
7062 PR c/40989
7063 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
7064 * c-opts.c (c_common_handle_option): Do not set them here. Add
7065 comment.
7066 (c_common_post_options): Likewise.
7067
909881cb
EB
70682012-10-16 Eric Botcazou <ebotcazou@adacore.com>
7069
7070 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
7071 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
7072 Remove POINTER_TYPE handling, add large unsigned handling and use
7073 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
7074
3a785c97
JJ
70752012-10-12 Jakub Jelinek <jakub@redhat.com>
7076
7077 PR c/54381
7078 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
7079 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
7080 locs and array of 3 trees instead of just single loc and single
7081 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
7082 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
7083 For *cmp* builtins that take two sources strings report warnings
7084 about first and second source, not about destination and source.
7085
5e54f81d
MG
70862012-10-12 Marc Glisse <marc.glisse@inria.fr>
7087
7088 PR c++/53055
7089 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
7090
f5b02f1e
EB
70912012-10-11 Eric Botcazou <ebotcazou@adacore.com>
7092
7093 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
7094 declaring something coming from another file.
7095
b46dbc6c
AC
70962012-10-10 Arnaud Charlet <charlet@adacore.com>
7097
f5b02f1e 7098 PR ada/54845
b46dbc6c
AC
7099 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
7100
5d9de0d0
PC
71012012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
7102
7103 PR c++/54194
7104 * c-common.c (warn_about_parentheses): Add location_t parameter;
7105 use EXPR_LOC_OR_LOC.
7106 * c-common.h: Update declaration.
7107
a212e43f
MG
71082012-10-09 Marc Glisse <marc.glisse@inria.fr>
7109
7110 PR c++/54427
7111 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
7112 more operations. Make error messages optional.
7113 * c-common.h (enum stv_conv): Moved from c-typeck.c.
7114 (scalar_to_vector): Declare.
7115
b1db7f91
JM
71162012-10-08 Jason Merrill <jason@redhat.com>
7117
7118 * c-common.c (c_common_reswords): Add thread_local.
7119
e28d52cf
DS
71202012-10-08 Dodji Seketeli <dodji@redhat.com>
7121
7122 PR c++/53528 C++11 attribute support
7123 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
7124 new functions.
7125 * c-common.c (check_cxx_fundamental_alignment_constraints): New
7126 static function.
7127 (handle_aligned_attribute): In choose strictest alignment
7128 among many. Use new check_cxx_fundamental_alignment_constraints.
7129 (handle_transparent_union_attribute): In c++11 attribute syntax,
7130 don't look through typedefs.
7131
3b78de56
AC
71322012-10-04 Arnaud Charlet <charlet@adacore.com>
7133
7134 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
7135 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
7136 out of dumpfile.h.
7137
6040bb5f
DC
71382012-09-25 Dehao Chen <dehao@google.com>
7139
7140 PR middle-end/54645
3b78de56 7141 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
7142 map when read in the pch.
7143
3f8257db 71442012-09-18 Arnaud Charlet <charlet@adacore.com>
0b07a57e
AC
7145
7146 * c-ada-spec.c: Style fixes.
7147
3f8257db 71482012-09-18 Thomas Quinot <quinot@adacore.com>
da5182be
TQ
7149
7150 * c.opt (-fada-spec-parent): Define new command line switch.
7151 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
7152 is specified, generate binding spec as a child of the specified unit.
7153
0ccb505d
PC
71542012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
7155 Manuel López-Ibáñez <manu@gcc.gnu.org>
7156
7157 PR c++/53210
7158 * c.opt ([Winit-self]): Enabled by -Wall in C++.
7159
c583af79
AC
71602012-08-23 Arnaud Charlet <charlet@adacore.com>
7161
7162 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
7163 for pointers, and add missing Convention C pragma.
7164 (print_ada_struct_decl): Add missing aliased keyword.
7165 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
7166
1a4049e7
JJ
71672012-08-17 Jakub Jelinek <jakub@redhat.com>
7168
7169 * c-common.c (sizeof_pointer_memaccess_warning): New function.
7170 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
7171 * c-opts.c (c_common_handle_option): Enable it for -Wall.
7172 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
7173 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
7174
70b5e7dc
RG
71752012-08-10 Richard Guenther <rguenther@suse.de>
7176
7177 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
7178
f8923f7e
SB
71792012-08-07 Steven Bosscher <steven@gcc.gnu.org>
7180
7181 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
7182 instead of separate pp_newline and pp_flush.
7183 (print_c_tree): Likewise.
7184
e45abe1f
RH
71852012-07-26 Richard Henderson <rth@redhat.com>
7186
7187 * c-common.c (handle_hot_attribute): Allow labels.
7188 (handle_cold_attribute): Likewise.
7189
332f1d24
JJ
71902012-07-20 Jakub Jelinek <jakub@redhat.com>
7191
7192 PR c++/28656
7193 * c-common.c (check_function_nonnull): Handle multiple nonnull
7194 attributes properly.
7195
7ee2468b
SB
71962012-07-16 Steven Bosscher <steven@gcc.gnu.org>
7197
7198 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
7199 * c-ada-spec.c: Likewise.
7200 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
7201
ee7b28eb
SB
72022012-07-14 Steven Bosscher <steven@gcc.gnu.org>
7203
7204 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
7205 Remove code conditional on it.
7206
6bdf3519
SB
72072012-07-11 Steven Bosscher <steven@gcc.gnu.org>
7208
7209 * c-gimplify.c: Do not include basic-block.h.
7210 * c-common.c: Do not include linfuncs.h.
7211
532aafad
SB
72122012-07-08 Steven Bosscher <steven@gcc.gnu.org>
7213
7214 * c-common.h: Include tree.h.
7215
8d0d1915
JM
72162012-07-02 Jason Merrill <jason@redhat.com>
7217
7218 PR c++/53524
7219 * c-common.c (get_priority): Call default_conversion.
7220
fbc873ad
UB
72212012-07-01 Uros Bizjak <ubizjak@gmail.com>
7222
7223 * c-pch.c (c_common_write_pch): Remove unused variables.
7224
d4a10d0a
SB
72252012-06-29 Steven Bosscher <steven@gcc.gnu.org>
7226
7227 * cppspec.c: Moved from gcc/ to here.
7228
6f3a2e23
KT
72292012-06-27 Kai Tietz <ktietz@redhat.com>
7230
7231 PR preprocessor/37215
7232 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
7233
8ca92d04
SB
72342012-06-21 Steven Bosscher <steven@gcc.gnu.org>
7235
7236 * c-common.h (c_common_print_pch_checksum): Remove.
7237 * c-pch.c: Do not include output.h.
7238 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
7239 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
7240 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
7241 (struct c_pch_header): Remove.
7242 (get_ident): Update gpch version.
7243 (pch_init): Do not print executable_checksum to asm_out_file.
7244 Do not fail if there is no asm_out_file to read back from. Set
7245 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
7246 (c_common_write_pch): Verify that nothing was written to asm_out_file
7247 since pch_init was called. Do not write a c_pch_header, and do not
7248 copy from asm_out_file to the PCH.
7249 (c_common_read_pch): Do not read a c_pch_header, and do not restore
7250 the content of asm_out_file from the PCH.
7251 (c_common_print_pch_checksum): Remove.
7252 * c-opts.c (c_common_init): Print out executable_checksum directly.
7253
70f42967
SB
72542012-06-19 Steven Bosscher <steven@gcc.gnu.org>
7255
7256 * c-target.def (objc_declare_unresolved_class_reference,
7257 objc_declare_class_definition): Add new hooks.
7258
a8781821
SB
72592012-06-19 Steven Bosscher <steven@gcc.gnu.org>
7260
7261 * c-lex.c: Do not include output.h.
7262 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
7263 Remove uses of ASM_OUTPUT_IDENT.
7264
9e1a8dd1
RR
72652012-06-15 Marc Glisse <marc.glisse@inria.fr>
7266
7267 PR c++/51033
7268 * c-common.h (c_build_vec_perm_expr): Move decl here.
7269 * c-common.c (c_build_vec_perm_expr): Move definition
7270 here.
7271
6f07a821
SB
72722012-06-06 Steven Bosscher <steven@gcc.gnu.org>
7273
7274 * c.opt (fconserve-space): Turn into a no-op.
7275
9faeb493 72762012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
7277
7278 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
7279 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
7280 both the start and end of the function.
7281
a4b7d13c
SB
72822012-06-04 Steven Bosscher <steven@gcc.gnu.org>
7283
7284 * c-common.c: Do not include output.h.
7285 * c-pragma.c: Likewise.
7286
c265f413
SA
72872012-06-04 Steven Bosscher <steven@gcc.gnu.org>
7288
7289 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
7290 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
7291 (lang_decl_name): Handle namespace decls.
7292
be7a421e
SB
72932012-05-31 Steven Bosscher <steven@gcc.gnu.org>
7294
7295 * c-ada-spec.c: Do not include output.h.
7296 * c-semantics.c: Likewise.
7297
65de6659
JM
72982012-05-29 Joseph Myers <joseph@codesourcery.com>
7299
7300 * c-common.c: Fix typo.
7301
ca5f4331
MM
73022012-05-29 Michael Matz <matz@suse.de>
7303
7304 * c-common.h (c_expand_decl): Remove prototype.
7305
4f7f7aca
MLI
73062012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
7307
7308 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
7309 * c-opts.c (c_common_handle_option): Remove code handling
7310 warn_missing_braces.
7311
4a792f9b
PC
73122012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
7313
7314 PR c++/25137
7315 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
7316 -Wmissing_braces.
7317
650dc14a
DS
73182012-05-22 Dodji Seketeli <dodji@redhat.com>
7319
7320 PR c++/53322
7321 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
7322
9b095bf1
MLI
73232012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
7324
7325 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
7326 * c-opts.c (c_common_handle_option): Do not handle explicitly
7327 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
7328
0b2c4be5
DS
73292012-05-16 Dodji Seketeli <dodji@redhat.com>
7330
7331 PR preprocessor/7263
7332 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
7333 to cpp_classify_number. For diagnostics, use the precise location
7334 instead of the global input_location.
7335
a1bde5af
PC
73362012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
7337
d02924ef 7338 PR c++/11856
a1bde5af
PC
7339 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
7340
d1ede5f4
BS
73412012-05-14 Bernd Schmidt <bernds@codesourcery.com>
7342
a1bde5af 7343 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 7344
f2bc201f
MLI
73452012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
7346
7347 PR 53063
7348 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
7349 Wreorder): Use LangEnabledBy.
7350 * c-opts.c (c_common_handle_option): Do not enable them
7351 explicitly. Call lang-specific generated functions.
7352 (c_common_post_options): Do not set them here.
7353
95744782
MLI
73542012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
7355
7356 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
7357 Wmissing-field-initializers,Wmissing-parameter-type,
7358 Wold-style-declaration,Woverride-init): Use EnabledBy.
7359 * c-opts.c (c_common_post_options): Do not set here explicitly.
7360
7d5a5747
MLI
73612012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
7362
7363 PR 53063
7364 * c-opts.c (c_common_handle_option): Use handle_generated_option
7365 to enable sub-options.
7366
5a3c9cf2
PC
73672012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
7368
7369 PR c++/53158
7370 * c-common.c (warnings_for_convert_and_check): Use warning_at.
7371
3ac8781c
RG
73722012-05-10 Richard Guenther <rguenther@suse.de>
7373
7374 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
7375 adjust commentary about TYPE_IS_SIZETYPE types.
7376
1e537948
MLI
73772012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
7378
7379 PR c++/53261
7380 * c-common.c (warn_logical_operator): Check that argument of
7381 integer_zerop is not NULL.
7382
f2c4a785
MLI
73832012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
7384
7385 PR c/43772
7386 * c-common.c (warn_logical_operator): Do not warn if either side
7387 is already true or false.
7388
50f305ca
MLI
73892012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
7390
7391 PR c/51712
7392 * c-common.c (expr_original_type): New.
7393 (shorten_compare): Do not warn for enumeration types.
7394
0c3641b0
MLI
73952012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
7396
7397 * c.opt (fpermissive): Add Var(flag_permissive).
7398
7edaa4d2
MG
73992012-04-30 Marc Glisse <marc.glisse@inria.fr>
7400
7401 PR c++/51033
7402 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
7403 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
7404
b9c8da34
DS
74052012-04-30 Dodji Seketeli <dodji@redhat.com>
7406
7407 Add -Wvarargs option
7408 * c.opt (Wvarargs): Define new option.
7409
e6c69da0
MLI
74102012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
7411
7412 * c-common.c (check_function_arguments): Replace
7413 Wmissing-format-attribute with Wsuggest-attribute=format.
7414
90137d8f
MLI
74152012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
7416
7417 * c.opt (Wsuggest-attribute=format): New. Alias of
7418 Wmissing-format-attribute.
7419 * c-format.c (decode_format_type): Replace
7420 Wmissing-format-attribute with Wsuggest-attribute=format.
7421 (check_function_format): Likewise.
7422
9faeb493 74232012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
7424
7425 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
7426 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
7427 * c.opt: Add Wliteral-suffix.
7428
c1771a20
MLI
74292012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
7430
7431 PR c/44774
7432 * c.opt (Wpedantic): New.
7433 (pedantic): Alias Wpedantic.
7434 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
7435 (c_common_post_options): Likewise.
7436 (sanitize_cpp_opts): Likewise.
7437 * c-lex.c (interpret_float): Likewise.
7438 * c-format.c (check_format_types): Likewise.
7439 * c-common.c (pointer_int_sum): Likewise.
7440 (c_sizeof_or_alignof_type): Likewise.
7441 (c_add_case_label): Likewise.
7442 (c_do_switch_warnings): Likewise.
7443 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
7444
04b391c1
JM
74452012-04-15 Jason Merrill <jason@redhat.com>
7446
7447 PR c++/52818
7448 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
7449 (C_STD_NAME): Distinguish between C++98 and C++11.
7450
ac868f29
EB
74512012-04-11 Eric Botcazou <ebotcazou@adacore.com>
7452
7453 PR target/52624
7454 * c-common.h (uint16_type_node): Rename into...
7455 (c_uint16_type_node): ...this.
7456 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
7457 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
7458
fd4116f4
MLI
74592012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
7460
7461 * c-common.c (warn_if_unused_value): Move definition to here.
7462 * c-common.h (warn_if_unused_value): Move declaration to here.
7463
573ac65e
WB
74642012-03-23 William Bader <williambader@hotmail.com>
7465
7466 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
7467
552b8185
JM
74682012-03-20 Jason Merrill <jason@redhat.com>
7469
7470 * c-common.h (enum cxx_dialect): Add cxx1y.
7471 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
7472 test.
7473 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
7474 * c-opts.c (c_common_post_options): Likewise.
7475 (set_std_cxx1y): New.
7476 (c_common_handle_option): Call it.
7477 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
7478
04398fa8
PC
74792012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
7480
7481 PR c++/14710
7482 * c.opt ([Wuseless-cast]): Add.
7483
d2a12ae7
RG
74842012-03-16 Richard Guenther <rguenther@suse.de>
7485
7486 * c-pretty-print.c (pp_c_initializer_list): Adjust.
7487
a12bf402
MLI
74882012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
7489
7490 PR c++/44783
7491 * c.opt (ftemplate-backtrace-limit) Add.
7492
5c30094f
RO
74932012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7494
7495 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
7496 handling.
7497 * c-pragma.c (handle_pragma_extern_prefix): Remove.
7498 (init_pragma): Don't register extern_prefix.
7499
21fa2faf
RG
75002012-03-12 Richard Guenther <rguenther@suse.de>
7501
7502 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
7503 (builtin_type_for_size): Likewise.
7504
e3793c6f
JJ
75052012-02-13 Jakub Jelinek <jakub@redhat.com>
7506
7507 PR c++/52215
7508 * c-common.c (sync_resolve_params): Don't decide whether to convert
7509 or not based on TYPE_SIZE comparison, convert whenever arg_type
7510 is unsigned INTEGER_TYPE.
7511
93286335
PC
75122012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
7513
7514 PR c/52118
7515 * c.opt ([Wunused-local-typedefs]): Fix description.
7516
7a421706
MS
75172012-01-24 Mike Stump <mikestump@comcast.net>
7518
7519 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
7520 exactly.
7521
ba9b1f11
RG
75222012-01-18 Richard Guenther <rguenther@suse.de>
7523
7524 * c-opts.c (c_common_post_options): Reset LTO flags if
7525 we are about to generate a PCH.
7526
465406be
PC
75272012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
7528
7529 PR c++/51777
7530 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
7531 use pp_unsigned_wide_integer.
7532
aee15221
RG
75332012-01-10 Richard Guenther <rguenther@suse.de>
7534
7535 PR middle-end/51806
7536 * c-opts.c (c_common_handle_option): Move -Werror handling
7537 to language independent code.
7538
5720c0dc
RG
75392012-01-05 Richard Guenther <rguenther@suse.de>
7540
7541 PR middle-end/51764
7542 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
7543 from common.opt.
7544
73ac190a
PC
75452011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
7546
7547 PR c++/51316
7548 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
7549 of array types with an unknown bound.
7550
48b0b196
JM
75512011-12-20 Joseph Myers <joseph@codesourcery.com>
7552
7553 * c-common.c (flag_isoc99): Update comment to refer to C11.
7554 (flag_isoc1x): Change to flag_isoc11.
7555 * c-common.h (flag_isoc99): Update comment to refer to C11.
7556 (flag_isoc1x): Change to flag_isoc11.
7557 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
7558 C11.
7559 * c-opts.c (set_std_c1x): Change to set_std_c11.
7560 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
7561 Call set_std_c11.
7562 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
7563 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
7564 * c.opt (std=c1x): Change to std=c11. Document as non-draft
7565 standard.
7566 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
7567 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
7568 (std=gnu1x): Make alias of std=gnu11.
7569
d58d6eb5
JM
75702011-12-19 Jason Merrill <jason@redhat.com>
7571
7572 PR c++/51228
7573 * c-common.c (handle_transparent_union_attribute): Check the first
7574 field if the type is complete.
7575
b3908fcc
JW
75762011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
7577
7578 PR libstdc++/51365
7579 * c-common.c (RID_IS_FINAL): Add.
7580 * c-common.h (RID_IS_FINAL): Add.
7581
fea3ca91
IS
75822011-11-30 Iain Sandoe <iains@gcc.gnu.org>
7583
7584 * c.opt (fgnu-runtime): Provide full description.
7585 (fnext-runtime): Likewise.
7586 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
7587
62bad7cd
AM
75882011-11-28 Andrew MacLeod <amacleod@redhat.com>
7589
7590 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
7591 predefines in one place. Add LOCK_FREE predefines.
7592 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
7593 new func.
7594
c466c4ff
AM
75952011-11-24 Andrew MacLeod <amacleod@redhat.com>
7596
7597 PR c/51256
9faeb493 7598 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 7599 conditions
9faeb493
UB
7600 (resolve_overloaded_atomic_exchange,
7601 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
7602 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
7603 error_mark_node for error conditions.
9faeb493 7604
a5952633
RG
76052011-11-08 Richard Guenther <rguenther@suse.de>
7606
7607 PR middle-end/51010
7608 c-family/
7609
0a35513e
AH
76102011-11-07 Richard Henderson <rth@redhat.com>
7611 Aldy Hernandez <aldyh@redhat.com>
7612 Torvald Riegel <triegel@redhat.com>
7613
7614 Merged from transactional-memory.
7615
7616 * c-common.c (handle_tm_wrap_attribute,
7617 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
7618 (struct c_common_reswords): Added __transaction* keywords.
7619 (struct c_common_attribute_table): Added transaction* and tm_regparm
7620 attributes.
7621 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
7622 masks.
7623 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
7624 find_tm_attribute): Declare.
7625
6d87092d
JM
76262011-11-07 Jason Merrill <jason@redhat.com>
7627
7628 PR c++/35688
7629 * c-common.c, c-common.h: Revert yesterday's changes.
7630
8e7860a1
JM
76312011-11-06 Jason Merrill <jason@redhat.com>
7632
7633 PR c++/35688
7634 * c-common.c (decl_has_visibility_attr): Split out from...
7635 (c_determine_visibility): ...here.
7636 * c-common.h: Declare it.
7637
d19fa6b5
JM
76382011-11-06 Joseph Myers <joseph@codesourcery.com>
7639
7640 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
7641 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
7642 type.
7643 (check_user_alignment): New. Split out of
7644 handle_aligned_attribute. Disallow integer constants with
7645 noninteger types. Conditionally allow zero.
7646 (handle_aligned_attribute): Use check_user_alignment.
7647 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
7648
86951993
AM
76492011-11-06 Andrew MacLeod <amacleod@redhat.com>
7650 Richard Henderson <rth@redhat.com>
7651
7652 Merged from cxx-mem-model.
7653
7654 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 7655 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
7656 parameters that are the same type size.
7657 (get_atomic_generic_size): New. Find size of generic
7658 atomic function parameters and do typechecking.
7659 (add_atomic_size_parameter): New. Insert size into parameter list.
7660 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
7661 either __atomic_exchange_n or external library call.
9faeb493 7662 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 7663 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 7664 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
7665 __atomic_load_n or an external library call.
7666 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
7667 __atomic_store_n or an external library call.
7668 (resolve_overloaded_builtin): Handle new __atomic builtins.
7669
cf9e9959
EB
76702011-11-04 Eric Botcazou <ebotcazou@adacore.com>
7671
7672 PR c++/50608
7673 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
7674 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
7675 <INDIRECT_REF>: Return the argument.
7676 <ARRAY_REF>: Remove special code for negative offset.
7677 Call fold_build_pointer_plus instead of size_binop.
7678 (fold_offsetof): Remove STOP_REF argument and adjust.
7679 * c-common.h (fold_offsetof_1): Declare.
7680 (fold_offsetof): Remove STOP_REF argument.
7681
25339f10
JM
76822011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
7683
7684 PR c++/50810
7685 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
7686 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
7687 Wnarrowing for C++0x and C++98.
7688 * c.opt ([Wnarrowing]): Update.
7689
89401152
PC
76902011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
7691
7692 PR c++/44277
7693 * c.opt: Add Wzero-as-null-pointer-constant.
7694
97e3ad20
JM
76952011-10-31 Jason Merrill <jason@redhat.com>
7696
15694fdd
JM
7697 * c.opt (-fdeduce-init-list): Off by default.
7698
97e3ad20
JM
7699 PR c++/50920
7700 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
7701 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
7702 and -Wc++11-compat.
7703 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
7704
fb9120e3
RAV
77052011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
7706
7707 PR c++/30066
7708 * c.opt (fvisibility-inlines-hidden): Description change.
7709
3ce4f9e4
ESR
77102011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
7711
7712 Implement C++11 user-defined literals.
7713 * c-common.c (build_userdef_literal): New.
7714 * c-common.def: New tree code.
7715 * c-common.h (tree_userdef_literal): New tree struct and accessors.
7716 * c-lex.c (interpret_float): Add suffix parm.
7717 (c_lex_with_flags): Build literal tokens.
7718
5f53c243
PC
77192011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
7720
7721 PR c++/50841
7722 Revert:
7723 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
7724
7725 PR c++/50810
7726 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
7727 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
7728 Wnarrowing for C++0x and C++98.
7729 * c.opt ([Wnarrowing]): Update.
7730
263734e1
PC
77312011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
7732
7733 PR c++/50810
7734 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
7735 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
7736 Wnarrowing for C++0x and C++98.
7737 * c.opt ([Wnarrowing]): Update.
7738
d2e312d7
PC
77392011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
7740
7741 PR c++/45385
7742 * c-common.c (conversion_warning): Remove code looking for
7743 artificial operands.
7744
d17687f6
DS
77452011-10-18 Dodji Seketeli <dodji@redhat.com>
7746
7747 PR bootstrap/50760
7748 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 7749 !NO_IMPLICIT_EXTERN_C.
d17687f6 7750
fc8396e9
PC
77512011-10-17 Michael Spertus <mike_spertus@symantec.com>
7752
7753 * c-common.c (c_common_reswords): Add __bases,
7754 __direct_bases.
7755 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
7756
77572011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
7758
7759 PR c++/50757
7760 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
7761
847e697a
TT
77622011-10-15 Tom Tromey <tromey@redhat.com>
7763 Dodji Seketeli <dodji@redhat.com>
7764
7765 * c.opt (fdebug-cpp): New option.
7766 * c-opts.c (c_common_handle_option): Handle the option.
7767 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
7768 output stream in parameter. Factorized from ...
7769 (maybe_print_line): ... this. Dump location debug information when
7770 -fdebug-cpp is in effect.
7771 (print_line_1): New static function. Takes an output stream in
7772 parameter. Factorized from ...
7773 (print_line): ... here. Dump location information when -fdebug-cpp
7774 is in effect.
7775 (scan_translation_unit): Dump location information when
7776 -fdebug-cpp is in effect.
7777
92582b75
TT
77782011-10-15 Tom Tromey <tromey@redhat.com>
7779 Dodji Seketeli <dodji@redhat.com>
7780
7781 * c.opt (ftrack-macro-expansion): New option. Handle it with and
7782 without argument.
7783 * c-opts.c (c_common_handle_option)<case
7784 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
7785 cases. Handle -ftrack-macro-expansion with and without argument.
7786
46427374
TT
77872011-10-15 Tom Tromey <tromey@redhat.com>
7788 Dodji Seketeli <dodji@redhat.com>
7789
7790 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
7791 (print_line, cb_define, do_line_change): Adjust to avoid touching
7792 the internals of struct line_map. Use the public API instead.
7793 * c-pch.c (c_common_read_pch): Likewise.
7794 * c-lex.c (fe_file_change): Likewise.
7795
fc8396e9
PC
77962011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
7797
7798 PR c++/17212
7799 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
7800
78012011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
7802
7803 PR c++/33067
7804 * c-pretty-print.c (pp_c_floating_constant): Output
7805 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
7806
e79983f4
MM
78072011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
7808
7809 * c-common.c (def_builtin_1): Delete old interface with two
7810 parallel arrays to hold standard builtin declarations, and replace
7811 it with a function based interface that can support creating
7812 builtins on the fly in the future. Change all uses, and poison
7813 the old names. Make sure 0 is not a legitimate builtin index.
7814 * c-omp.c (c_finish_omp_barrier): Ditto.
7815 (c_finish_omp_taskwait): Ditto.
7816 (c_finish_omp_flush): Ditto.
7817
6637388f
TG
78182011-10-11 Tristan Gingold <gingold@adacore.com>
7819
7820 * c.opt: (fallow-parameterless-variadic-functions): New.
7821
3797cb21
DS
78222011-09-08 Dodji Seketeli <dodji@redhat.com>
7823
7824 PR c++/33255 - Support -Wunused-local-typedefs warning
7825 * c-common.h (struct c_language_function::local_typedefs): New
7826 field.
9faeb493
UB
7827 (record_locally_defined_typedef, maybe_record_typedef_use)
7828 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 7829 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
7830 (maybe_record_typedef_use)
7831 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
7832 * c.opt: Declare new -Wunused-local-typedefs flag.
7833
693ddb1b
EB
78342011-09-06 Eric Botcazou <ebotcazou@adacore.com>
7835
7836 PR middle-end/50266
7837 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
7838 computations.
7839
830c740f
RG
78402011-09-05 Richard Guenther <rguenther@suse.de>
7841
7842 * c-common.c (complete_array_type): Use ssize_int (-1) instead
7843 of integer_minus_one_node for empty array upper bounds.
7844
892a371f
DS
78452011-08-28 Dodji Seketeli <dodji@redhat.com>
7846
7847 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
7848 it's the first time it's being called on this main TU.
7849
0e3fdb48
RB
78502011-08-24 Richard Guenther <rguenther@suse.de>
7851
7852 PR c/49396
7853 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
7854
78552011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
7856
7857 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
7858 defined in cpp_init_builtins and c_cpp_builtins.
7859
d4a83c10
JM
78602011-08-19 Joseph Myers <joseph@codesourcery.com>
7861
7862 * c-common.c (c_common_reswords): Add __builtin_complex.
7863 * c-common.h (RID_BUILTIN_COMPLEX): New.
7864
bbceee64
JM
78652011-08-18 Joseph Myers <joseph@codesourcery.com>
7866
7867 * c-common.c (c_common_reswords): Add _Noreturn.
7868 (keyword_is_function_specifier): Handle RID_NORETURN.
7869 * c-common.h (RID_NORETURN): New.
7870
3f8257db 78712011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
0e3a99ae
AS
7872
7873 * c-common.c (unsafe_conversion_p): New function. Check if it is
7874 unsafe to convert an expression to the type.
7875 (conversion_warning): Adjust, use unsafe_conversion_p.
7876 * c-common.h (unsafe_conversion_p): New function declaration.
7877
20906c66
JJ
78782011-08-02 Jakub Jelinek <jakub@redhat.com>
7879
7880 * c-common.h (c_finish_omp_atomic): Adjust prototype.
7881 (c_finish_omp_taskyield): New prototype.
7882 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
7883 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
7884 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
7885 or RHS1 have side-effects, evaluate those too in the right spot,
7886 if it is a decl and LHS is also a decl, error out if they
7887 aren't the same.
7888 (c_finish_omp_taskyield): New function.
7889 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
7890 * c-pragma.c (omp_pragmas): Add taskyield.
7891 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
7892 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
7893 PRAGMA_OMP_CLAUSE_MERGEABLE.
7894
770e5a2e
DS
78952011-07-25 Dodji Seketeli <dodji@redhat.com>
7896
7897 * c-common.h (set_underlying_type): Remove parm name from
7898 declaration.
7899
1baae426
RG
79002011-07-25 Romain Geissler <romain.geissler@gmail.com>
7901
7902 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 7903
fcb21722
JM
79042011-07-22 Jason Merrill <jason@redhat.com>
7905
76f86d00
JM
7906 PR c++/49793
7907 * c.opt (Wnarrowing): New.
7908
3a636414
JM
7909 PR c++/30112
7910 * c-common.h: Declare c_linkage_bindings.
7911 * c-pragma.c (handle_pragma_redefine_extname): Use it.
7912
fcb21722
JM
7913 PR c++/49813
7914 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
7915 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
7916 as flag_isoc99 for 'restrict'.
7917 (pp_c_specifier_qualifier_list): Likewise for _Complex.
7918
02614448
ILT
79192011-07-21 Ian Lance Taylor <iant@google.com>
7920
7921 PR middle-end/49705
7922 * c-common.c (c_disable_warnings): New static function.
7923 (c_enable_warnings): New static function.
7924 (c_fully_fold_internal): Change local unused_p to bool. Call
7925 c_disable_warnings and c_enable_warnings rather than change
7926 c_inhibit_evaluation_warnings.
7927
34429675
JM
79282011-07-20 Jason Merrill <jason@redhat.com>
7929
7930 PR c++/6709 (DR 743)
7931 PR c++/42603 (DR 950)
7932 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
7933 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
7934 (CPP_DECLTYPE): New.
7935 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
7936
5d49b6a7
RG
79372011-07-19 Richard Guenther <rguenther@suse.de>
7938
7939 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
7940 * c-omp.c (c_finish_omp_for): Likewise.
7941
e84a58ff
EB
79422011-07-12 Eric Botcazou <ebotcazou@adacore.com>
7943
7944 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
7945 body on the next line.
7946
329af3c7
JM
79472011-07-08 Jason Merrill <jason@redhat.com>
7948
4063e61b
JM
7949 PR c++/45437
7950 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
7951
329af3c7
JM
7952 PR c++/49673
7953 * c-common.c (c_apply_type_quals_to_decl): Don't check
7954 TYPE_NEEDS_CONSTRUCTING.
7955
1a072294
RG
79562011-07-06 Richard Guenther <rguenther@suse.de>
7957
7958 * c-common.c (c_common_nodes_and_builtins):
7959 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
7960
fce5dddd
RG
79612011-07-05 Richard Guenther <rguenther@suse.de>
7962
7963 * c-common.c (c_common_nodes_and_builtins): Build all common
7964 tree nodes first.
7965
45d439ac
JJ
79662011-06-27 Jakub Jelinek <jakub@redhat.com>
7967
56300785
JJ
7968 * c-common.h (c_tree_chain_next): New static inline function.
7969
45d439ac
JJ
7970 * c-common.c (check_builtin_function_arguments): Handle
7971 BUILT_IN_ASSUME_ALIGNED.
7972
e0a8ecf2
AM
79732011-06-21 Andrew MacLeod <amacleod@redhat.com>
7974
7975 * c-common.c: Add sync_ or SYNC__ to builtin names.
7976 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
7977
79782011-06-20 Pierre Vittet <piervit@pvittet.com>
7979
7980 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
7981 handler.
7982 (gen_pragma_handler): New union.
7983 (internal_pragma_handler): New type.
7984 (c_register_pragma_with_data)
7985 (c_register_pragma_with_expansion_and_data): New functions.
7986
7987 * c-pragma.c (registered_pragmas, c_register_pragma_1)
7988 (c_register_pragma, c_register_pragma_with_expansion)
7989 (c_invoke_pragma_handler): Changed to work with
7990 internal_pragma_handler.
7991 (c_register_pragma_with_data)
7992 (c_register_pragma_with_expansion_and_data): New functions.
7993
677f3fa8
JM
79942011-06-14 Joseph Myers <joseph@codesourcery.com>
7995
7996 * c-common.c: Include common/common-target.h.
7997 (handle_section_attribute): Use
7998 targetm_common.have_named_sections.
7999 * c-cppbuiltin.c: Include common/common-target.h.
8000 (c_cpp_builtins): Use targetm_common.except_unwind_info.
8001
d7fc8c14
RG
80022011-06-10 Richard Guenther <rguenther@suse.de>
8003
8004 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
8005 to print a IDENTIFIER_NODE.
8006
10e48e39
RO
80072011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8008 Joseph Myers <joseph@codesourcery.com>
8009
8010 * c.opt (fbuilding-libgcc): New option.
8011 * c-cppbuiltin.c (c_cpp_builtins): Define
8012 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
8013
6976ae51
JM
80142011-06-07 Jason Merrill <jason@redhat.com>
8015
3ff60975
JM
8016 * c-common.c (max_tinst_depth): Lower default to 900.
8017
6976ae51
JM
8018 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
8019
009db074
RG
80202011-06-07 Richard Guenther <rguenther@suse.de>
8021
8022 * c-common.c (c_common_nodes_and_builtins): Do not set
8023 size_type_node or call set_sizetype.
8024
b4592b92
DS
80252011-06-07 Dodji Seketeli <dodji@redhat.com>
8026
8027 PR debug/49130
8028 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 8029 type when using pointer comparison to compare types.
b4592b92 8030
014ab419
JW
80312011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
8032
8033 * c.opt: Add -Wdelete-non-virtual-dtor.
8034 * c-opts.c (c_common_handle_option): Include it in -Wall.
8035
4f60111f
NF
80362011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
8037
8038 PR bootstrap/49190
8039
8040 Revert:
8041 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
8042
8043 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
8044 not tree_common.
8045
4cc4f2f4
JJ
80462011-05-27 Jakub Jelinek <jakub@redhat.com>
8047
8048 PR c++/49165
8049 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
8050 C++ don't call c_common_truthvalue_conversion on void type arms.
8051
38e01f9e
NF
80522011-05-27 Nathan Froyd <froydnj@codesourcery.com>
8053
8054 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
8055 (stmt_list_stack): Define.
8056 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
8057 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
8058
92e948a8
NF
80592011-05-26 Nathan Froyd <froydnj@codesourcery.com>
8060
8061 * c-common.c (warning_candidate_p): Check for BLOCKs.
8062
a2fc3e63
NF
80632011-05-26 Nathan Froyd <froydnj@codesourcery.com>
8064
8065 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
8066 not tree_common.
8067
0957c029
JJ
80682011-05-25 Jakub Jelinek <jakub@redhat.com>
8069
8070 * c-common.c (def_fn_type): Remove extra va_end.
8071
828fb3ba
JM
80722011-05-23 Jason Merrill <jason@redhat.com>
8073
8074 PR c++/48106
8075 * c-common.c (c_common_get_narrower): New.
8076 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
8077
dde05067
NF
80782011-05-23 Nathan Froyd <froydnj@codesourcery.com>
8079
8080 * c-common.h (check_function_arguments): Tweak prototype of
8081 check_function_arguments.
8082 * c-common.c (check_function_arguments): Likewise. Adjust
8083 calls to check_function_nonnull, check_function_format, and
8084 check_function_sentinel.
8085 (check_function_sentinel): Take a FUNCTION_TYPE rather than
8086 separate attributes and typelist arguments. Use
8087 FOREACH_FUNCTION_ARGS to iterate over argument types.
8088
3c0d13bf
PC
80892011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
8090
8091 * c-common.c (c_common_reswords): Reorder.
8092 * c-common.h (rid): Likewise.
8093
8242dd04
NF
80942011-05-10 Nathan Froyd <froydnj@codesourcery.com>
8095
8096 * c-common.c (def_fn_type): Don't call build_function_type, call
8097 build_function_type_array or build_varargs_function_type_array
8098 instead.
8099 (c_common_nodes_and_builtins): Likewise.
8100
3d528853
NF
81012011-05-05 Nathan Froyd <froydnj@codesourcery.com>
8102
8103 * c-common.c (c_add_case_label): Omit the loc argument to
8104 build_case_label.
8105 * c-common.h (build_case_label): Remove.
8106 * c-semantics.c (build_case_label): Remove.
8107
a04a722b
JM
81082011-05-05 Joseph Myers <joseph@codesourcery.com>
8109
8110 * c-objc.h (objc_start_method_definition): Update prototype.
8111 * stub-objc.c (objc_start_method_definition): Add extra parameter.
8112
e19a18d4
NF
81132011-05-04 Nathan Froyd <froydnj@codesourcery.com>
8114
8115 * c-common.c (check_main_parameter_types): Reindent. Don't use
8116 TYPE_ARG_TYPES directly.
8117 (handle_nonnull_attribute): Likewise.
8118 (sync_resolve_params): Likewise.
8119 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
8120 to check_format_string.
8121 (handle_format_attribute): Likewise.
8122 (check_format_string): Take a function type to examine instead of
8123 a type list. Use a function_arg_iterator to step through argument
8124 types.
8125
c62c040f
RG
81262011-05-04 Richard Guenther <rguenther@suse.de>
8127
8128 * c-common.c (fix_string_type): Use size_int for index type bounds.
8129 (start_fname_decls): Do not pass NULL to build_int_cst.
8130 (c_init_attributes): Likewise.
8131 * c-lex.c (c_lex_with_flags): Likewise.
8132
c12ff9d8
JM
81332011-04-27 Jason Merrill <jason@redhat.com>
8134
8135 * c-common.c (make_tree_vector_from_list): New.
8136 * c-common.h: Declare it.
8137
304dfbe3
RG
81382011-04-26 Richard Guenther <rguenther@suse.de>
8139
8140 PR preprocessor/48248
8141 * c-ppoutput.c (maybe_print_line): Always optimize newlines
8142 for output size with -P.
8143
3c0d13bf
PC
81442011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
8145
8146 * c-common.c (struct c_common_resword): Add __underlying_type.
8147 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
8148
04695783
JM
81492011-04-20 Jim Meyering <meyering@redhat.com>
8150
8151 * c-format.c (init_dollar_format_checking): Remove useless
8152 if-before-free.
8153
0dc33c3c
NP
81542011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
8155
8156 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 8157 (objc_detect_field_duplicates): New.
0dc33c3c 8158 * stub-objc.c: Likewise.
3c0d13bf 8159
c59633d9
NP
81602011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
8161
8162 * stub-objc.c (objc_declare_protocols): Renamed to
8163 objc_declare_protocol.
8164 * c-objc.h: Likewise.
3c0d13bf 8165
32dabdaf
NP
81662011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
8167
8168 * stub-objc.c (objc_declare_class): Updated argument name.
8169
81f653d6
NF
81702011-04-12 Nathan Froyd <froydnj@codesourcery.com>
8171
8172 * c-common.h (c_common_init_ts): Declare.
8173 * c-common.c (c_common_init_ts): Define.
8174
eb345401
NP
81752011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
8176
8177 * c-objc.h (objc_build_message_expr): Updated prototype.
8178 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 8179
a358e188
MJ
81802011-04-12 Martin Jambor <mjambor@suse.cz>
8181
8182 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
8183 of cgraph_node.
8184
e6313a78
RG
81852011-04-11 Richard Guenther <rguenther@suse.de>
8186
8187 * c-common.c (complete_array_type): Build a range type of
8188 proper type.
8189
dcf0c47e
NF
81902011-04-08 Nathan Froyd <froydnj@codesourcery.com>
8191
8192 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
8193 (handle_type_generic_attribute): Likewise.
8194
1ee44b26
JM
81952011-04-07 Jason Merrill <jason@redhat.com>
8196
8197 PR c++/48450
8198 * c-common.c (c_common_truthvalue_conversion): Don't ignore
8199 conversion from C++0x scoped enum.
8200
acce4e77
JM
82012011-04-06 Joseph Myers <joseph@codesourcery.com>
8202
8203 * c-target-def.h: New file.
8204 * c-target.def: New file.
8205 * c-target.h: New file.
8206 * c-common.c (targetcm): Don't define here.
8207 * c-common.h (default_handle_c_option): Declare.
8208 * c-format.c: Include c-target.h instead of target.h.
8209 * c-opts.c: Include c-target.h instead of target.h. Explicitly
8210 include tm.h.
8211 (default_handle_c_option): Move from targhooks.c.
8212
e2eefb55
JJ
82132011-03-29 Jakub Jelinek <jakub@redhat.com>
8214
8215 PR preprocessor/48248
8216 * c-ppoutput.c (print): Add src_file field.
8217 (init_pp_output): Initialize it.
8218 (maybe_print_line): Don't optimize by adding up to 8 newlines
8219 if map->to_file and print.src_file are different file.
8220 (print_line): Update print.src_file.
8221
ba78087b
KT
82222011-03-25 Kai Tietz <ktietz@redhat.com>
8223
8224 * c-ada-spec.c (compare_comment): Use filename_cmp
8225 instead of strcmp for filename.
8226
0edf1bb2
JL
82272011-03-25 Jeff Law <law@redhat.com>
8228
adfac8df 8229 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 8230
c7dc8804
JM
82312011-03-25 Jason Merrill <jason@redhat.com>
8232
8233 * c.opt: Add -std=c++03.
8234
d1d879b1
EB
82352011-03-22 Eric Botcazou <ebotcazou@adacore.com>
8236
8237 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
8238
3f8257db 82392011-03-17 Kai Tietz <ktietz@redhat.com>
62d784f7
KT
8240
8241 PR target/12171
5050afdf
KT
8242 * c-pretty-print.c (pp_c_specifier_qualifier_list):
8243 Display allowed attributes for function pointer types.
8244 (pp_c_attributes_display): New function to display
8245 attributes having affects_type_identity flag set to true.
8246 * c-pretty-print.h (pp_c_attributes_display): New prototype.
8247
62d784f7
KT
8248 * c-common.c (c_common_attribute_table):
8249 Add new element.
8250 (c_common_format_attribute_table): Likewise.
8251
82d37118
JM
82522011-03-18 Jason Merrill <jason@redhat.com>
8253
49a000c3
JM
8254 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
8255 * c-common.h: Don't declare it here.
8256 * c-common.c: Or define it here.
8257 * c-opts.c (c_common_handle_option): Or set it here.
8258
82d37118
JM
8259 PR c++/35315
8260 * c-common.c (handle_transparent_union_attribute): Don't
8261 make a duplicate type in C++.
8262
17bc631c
JM
82632011-03-15 Jason Merrill <jason@redhat.com>
8264
8265 * c-common.c (max_constexpr_depth): New.
8266 * c-common.h: Declare it.
8267 * c-opts.c (c_common_handle_option): Set it.
8268 * c.opt (fconstexpr-depth): New option.
8269
1b9b91a6
JM
82702011-03-11 Jason Merrill <jason@redhat.com>
8271
f231b5ff
JM
8272 * c-common.c (attribute_takes_identifier_p): Add missing const.
8273
1b9b91a6
JM
8274 PR c++/46803
8275 * c-common.c (attribute_takes_identifier_p): Assume that an
8276 unknown attribute takes an identifier.
8277
a19e4d44
NF
82782011-03-07 Nathan Froyd <froydnj@codesourcery.com>
8279
8280 PR c/47786
8281 * c-common.c (c_type_hash): Call list_length instead of iterating
8282 through DECL_CHAIN. Rename 'i' to 'n_elements'.
8283
982d62f6
JJ
82842011-02-19 Jakub Jelinek <jakub@redhat.com>
8285
8286 PR c/47809
8287 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
8288
0a256240
NP
82892011-02-17 Iain Sandoe <iains@gcc.gnu.org>
8290
8291 * c.opt (fobjc-abi-version=) New.
8292 (fobjc-nilcheck): New.
8293
ba9e6dd5
NF
82942011-02-03 Nathan Froyd <froydnj@codesourcery.com>
8295
8296 PR c++/46890
8297 * c-common.h (keyword_is_decl_specifier): Declare.
8298 * c-common.c (keyword_is_decl_specifier): Define.
8299 (keyword_is_function_specifier): New function.
8300
7273813a
JJ
83012011-01-26 Jakub Jelinek <jakub@redhat.com>
8302
8303 PR c/47473
8304 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
8305 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
8306 REAL_TYPE.
8307
908ef79b
AC
83082011-01-26 Arnaud Charlet <charlet@adacore.com>
8309
8310 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
8311
237e9384
JJ
83122011-01-26 Jakub Jelinek <jakub@redhat.com>
8313
8314 PR pch/47430
8315 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
8316 after init_c_lex if pch_file is set.
8317
47ea1edf
DK
83182011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
8319
d4dba752 8320 PR c++/43601
47ea1edf
DK
8321 * c.opt (-fkeep-inline-dllexport): New switch.
8322
2aa9c6ae
RG
83232011-01-12 Richard Guenther <rguenther@suse.de>
8324
8325 PR middle-end/32511
8326 * c-common.c (handle_weak_attribute): Warn instead of error
8327 on declaring an inline function weak.
8328
7bd11157
TT
83292011-01-05 Tom Tromey <tromey@redhat.com>
8330
8331 * c-common.h (lvalue_error): Update.
8332 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
8333 not error.
8334
0e66e494 83352010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 8336
b4f588c4
NP
8337 PR objc/47075
8338 * c-objc.h (objc_finish_message_expr): Added argument to
8339 prototype.
8340
f4da8dce
NF
83412010-12-22 Nathan Froyd <froydnj@codesourcery.com>
8342
8343 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
8344 Use prototype_p.
8345
46270f14
NP
83462010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
8347
8348 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 8349 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 8350
4816c593
NF
83512010-12-10 Nathan Froyd <froydnj@codesourcery.com>
8352
8353 * c-common.h (readonly_error): Declare.
8354 * c-common.c (readonly_error): Define.
8355
7a6daeb0
NF
83562010-12-09 Nathan Froyd <froydnj@codesourcery.com>
8357
8358 * c-common.h (invalid_indirection_error): Declare.
8359 * c-common.c (invalid_indirection_error): Define.
8360
892f6119
RG
83612010-12-03 Richard Guenther <rguenther@suse.de>
8362
8363 PR c/46745
8364 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
8365 (pp_c_unary_expression): Likewise.
8366 (pp_c_expression): Likewise.
8367
6c39e757
NP
83682010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
8369
8370 * c-common.h (objc_finish_function): New.
8371 (objc_non_volatilized_type): Removed.
8372 (objc_type_quals_match): Removed.
8373 * stub-objc.c (objc_finish_function): New.
8374 (objc_non_volatilized_type): Removed.
8375 (objc_type_quals_match): Removed.
9faeb493 8376
7c475d11
JM
83772010-11-30 Joseph Myers <joseph@codesourcery.com>
8378
8379 * c-common.h (parse_optimize_options): Declare.
8380 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
8381 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
8382
71f3e391
JM
83832010-11-29 Joseph Myers <joseph@codesourcery.com>
8384
8385 * c-opts.c (check_deps_environment_vars): Use getenv instead of
8386 GET_ENVIRONMENT.
8387 * c-pch.c (O_BINARY): Don't define here.
8388 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
8389
d5fabb58
JM
83902010-11-25 Joseph Myers <joseph@codesourcery.com>
8391
8392 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
8393 targetm.except_unwind_info.
8394
299404a1
JM
83952010-11-23 Joseph Myers <joseph@codesourcery.com>
8396
8397 * c-opts.c (c_common_handle_option): Pass location to
8398 set_struct_debug_option.
8399
c98cd5bf
JM
84002010-11-23 Joseph Myers <joseph@codesourcery.com>
8401
8402 * c-common.c (visibility_options): Move from ../opts.c.
8403 * c-common.h (struct visibility_flags, visibility_options):
8404 Declare here.
8405 * c-opts.c (finish_options): Rename to c_finish_options.
8406 (c_common_init): Update call to finish_options.
8407
a9546771
NP
84082010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
8409
8410 PR objc/34033
8411 * c-lex.c (lex_string): Check that each string in an Objective-C
8412 string concat sequence starts with either one or zero '@', and
8413 that there are no spurious '@' signs at the end.
8414
24a57808
JM
84152010-11-20 Joseph Myers <joseph@codesourcery.com>
8416
8417 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
8418 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
8419 HANDLE_PRAGMA_VISIBILITY.
8420 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
8421 HANDLE_PRAGMA_VISIBILITY): Don't define.
8422 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
8423
a9aa2c3a
NF
84242010-11-20 Nathan Froyd <froydnj@codesourcery.com>
8425
8426 PR c++/16189
8427 PR c++/36888
8428 PR c++/45331
8429 * c-common.h (keyword_begins_type_specifier): Declare.
8430 (keyword_is_storage_class_specifier): Declare.
8431 (keyword_is_type_qualifier): Declare.
8432 * c-common.c (keyword_begins_type_specifier): New function.
8433 (keyword_is_storage_class_specifier): New function.
8434 (keyword_is_type_qualifier): Declare.
8435
5386338c
JM
84362010-11-19 Joseph Myers <joseph@codesourcery.com>
8437
8438 PR c/46547
8439 * c-common.c (in_late_binary_op): Define.
8440 (c_common_truthvalue_conversion): Check in_late_binary_op before
8441 calling c_save_expr.
8442 * c-common.h (in_late_binary_op): Declare.
8443
69ccdddb
JM
84442010-11-19 Joseph Myers <joseph@codesourcery.com>
8445
8446 * c-opts.c (c_common_handle_option): Update calls to
8447 set_struct_debug_option.
8448
6b192a09
NP
84492010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
8450
8451 * c-common.h (objc_declare_protocols): Added additional argument.
8452 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 8453
fb52b50a
NF
84542010-11-18 Nathan Froyd <froydnj@codesourcery.com>
8455
8456 PR c/33193
8457 * c-common.h (build_real_imag_expr): Declare.
8458 * c-semantics.c (build_real_imag_expr): Define.
8459
b37421c6
JM
84602010-11-17 Joseph Myers <joseph@codesourcery.com>
8461
8462 * c-opts.c (c_common_parse_file): Take no arguments.
8463 * c-common.h (c_common_parse_file): Update prototype.
8464
07078664
JJ
84652010-11-16 Jakub Jelinek <jakub@redhat.com>
8466
8467 PR c++/46401
8468 * c-common.c (warning_candidate_p): Don't track non-const calls
8469 or STRING_CSTs.
8470
c6a13190
ILT
84712010-11-15 Ian Lance Taylor <iant@google.com>
8472
8473 * c-lex.c (init_c_lex): Set macro debug callbacks if
8474 flag_dump_go_spec is set.
8475
925e8657
NP
84762010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
8477
8478 * c-common.h (objc_build_incr_expr_for_property_ref): New.
8479 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
8480
bb0a9581
NF
84812010-11-15 Nathan Froyd <froydnj@codesourcery.com>
8482
8483 PR preprocessor/45038
8484 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
8485 dialects.
8486
c5fa0890
JM
84872010-11-12 Joseph Myers <joseph@codesourcery.com>
8488
8489 * c-common.h (c_family_lang_mask): Declare.
8490 * c-opts.c (c_family_lang_mask): Make extern.
8491 * c-pragma.c (handle_pragma_diagnostic): Use
8492 control_warning_option.
8493
a4d8c676
JM
84942010-11-12 Joseph Myers <joseph@codesourcery.com>
8495
8496 * c-common.c (parse_optimize_options): Update call to
8497 decode_options.
8498 * c-common.h (c_common_handle_option): Update prototype.
8499 * c-opts.c (c_common_handle_option): Take location_t parameter and
8500 pass it to other functions.
8501
f954bd2c
JM
85022010-11-11 Joseph Myers <joseph@codesourcery.com>
8503
8504 * c-opts.c (warning_as_error_callback): Remove.
8505 (c_common_initialize_diagnostics): Don't call
8506 register_warning_as_error_callback.
8507 (c_common_handle_option): Handle -Werror=normalized= here.
8508
d8a07487
JM
85092010-11-10 Joseph Myers <joseph@codesourcery.com>
8510
8511 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
8512 in diagnostic.
8513 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
8514 letter.
8515 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
8516 Remove trailing '.' from diagnostics.
8517 * c.opt (Wwrite-strings_: Avoid '`' in help text.
8518
d5478783
JM
85192010-11-10 Joseph Myers <joseph@codesourcery.com>
8520
8521 * c-common.c (parse_optimize_options): Pass global_dc to
8522 decode_options.
8523 * c-opts.c (c_common_handle_option): Pass &global_options to
8524 set_Wstrict_aliasing.
8525 * c.opt (v): Don't mark Common or document here.
8526
91ebb981
IS
85272010-11-06 Iain Sandoe <iains@gcc.gnu.org>
8528
8529 PR target/44981
8530 * c-format.c (format_type): New type gcc_objc_string_format_type.
8531 (valid_stringptr_type_p): New.
8532 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 8533 (check_format_string): Pass expected type, use
91ebb981
IS
8534 valid_stringptr_type_p (), check that the format string types are
8535 consistent with the format specification.
8536 (decode_format_attr): Warn if NSString is used outside objective-c.
8537 (format_types_orig): Add NSString.
8538 (format_name): New.
8539 (format_flags): New.
8540 (check_format_arg): Handle format strings requiring an external parser.
8541 first_target_format_type: New variable.
8542 (handle_format_attribute): Set up first_target_format_type, pass the
8543 expected format arg string type to check_format_string().
8544 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
8545 * stub-objc.c (objc_string_ref_type_p): New.
8546 (objc_check_format_arg): New.
8547
bede2adc
NP
85482010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
8549
9faeb493 8550 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
8551 * c-common.h (objc_build_class_component_ref): New.
8552 * stub-objc.c (objc_build_class_component_ref): New.
8553
9a179d01
NP
85542010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
8555
8556 * c.opt (Wproperty-assign-default): New option.
8557
22d8d616
NP
85582010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
8559
8560 Implemented -fobjc-std=objc1 flag.
8561 * c.opt (fobjc-std=objc1): New option.
8562
2debdb4f
NP
85632010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
8564
8565 Implemented format and noreturn attributes for Objective-C methods.
8566 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
8567 attribute for Objective-C methods.
8568
ec52b111
JM
85692010-10-31 Jason Merrill <jason@redhat.com>
8570
8571 * c-common.c (conversion_warning, warn_for_collisions_1): Use
8572 EXPR_LOC_OR_HERE.
8573
46a88c12
NP
85742010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
8575
8576 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
8577 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
8578 (objc_add_property_declaration): Removed arguments for copies and
8579 ivar.
8580 (objc_build_getter_call): Renamed to
8581 objc_maybe_build_component_ref.
8582 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
8583 (objc_is_property_ref): New.
8584 * c-common.c (c_common_reswords): Removed copies and ivar.
8585 * stub-objc.c (objc_add_property_declaration): Removed arguments
8586 for copies and ivar.
8587 (objc_build_getter_call): Renamed to
8588 objc_maybe_build_component_ref.
8589 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
8590 (objc_is_property_ref): New.
9faeb493 8591
1e4bf85b
AC
85922010-10-29 Arnaud Charlet <charlet@adacore.com>
8593 Matthew Gingell <gingell@adacore.com>
8594
8595 * c-ada-spec.c (separate_class_package): New function.
8596 (pp_ada_tree_identifier): Prefix references to C++ classes with the
8597 name of their enclosing package.
8598 (print_ada_declaration): Use separate_class_package.
8599
81f0bab2
JM
86002010-10-27 Jason Merrill <jason@redhat.com>
8601
2b08f2c5
JM
8602 * c-common.c (c_common_reswords): Add __is_literal_type.
8603 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
8604
81f0bab2
JM
8605 * c-common.c (check_case_value): Remove special C++ code.
8606
200290f2
NP
86072010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
8608
8609 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
8610 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
8611 and RID_LAST_PATTR.
8612 (objc_add_property_declaration): Added additional arguments.
8613 (objc_property_attribute_kind): Removed.
8614 (objc_set_property_attr): Removed.
8615 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
8616 copy and nonatomic.
8617 * stub-objc.c (objc_add_property_declaration): Added additional
8618 arguments.
8619 (objc_set_property_attr): Removed.
9faeb493 8620
f614132b
NP
86212010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
8622
8623 * c-common.h (objc_add_property_variable): Renamed to
8624 objc_add_property_declaration. Added location argument.
8625 * stub-objc.c (objc_add_property_variable): Same change.
b1726d6c 8626
b8a18805
NP
86272010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
8628
8629 * c-common.h (objc_maybe_printable_name): New.
8630 * stub-objc.c (objc_maybe_printable_name): New.
8631
3f8257db
JJ
86322010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
8633 Andrew Pinski <pinskia@gmail.com>
30cd1c5d
AS
8634
8635 * c-common.h (c_common_mark_addressable_vec): Declare.
8636 * c-common.c (c_common_mark_addressable_vec): New function.
8637
249a82c4
NP
86382010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
8639
8640 * c-common.h (objc_set_method_type): Removed.
8641 (objc_add_method_declaration): Added boolean argument.
8642 (objc_start_method_definition): Same change.
8643 (objc_build_method_signature): Same change.
8644 * stub-objc.c (objc_set_method_type): Removed.
8645 (objc_add_method_declaration): Added boolean argument.
8646 (objc_start_method_definition): Same change.
8647 (objc_build_method_signature): Same change.
8648
977e30bc
NP
86492010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
8650
8651 * c-common.h (finish_file): Removed.
8652 (objc_write_global_declarations): New.
8653 * c-opts.c (c_common_parse_file): Do not call finish_file.
8654 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 8655
da57d1b9
NP
86562010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
8657
8658 Implemented parsing @synthesize and @dynamic for
8659 Objective-C/Objective-C++.
8660 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
8661 (objc_add_synthesize_declaration): New.
8662 (objc_add_dynamic_declaration): New.
8663 * c-common.c (c_common_reswords): Add synthesize and dynamic.
8664 * stub-objc.c (objc_add_synthesize_declaration): New.
8665 (objc_add_dynamic_declaration): New.
9faeb493 8666
0069111f
MM
86672010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
8668
8669 PR target/46041
8670 * c-cppbuiltin.c (mode_has_fma): Move function here from
8671 builtins.c. Don't use the fma optab, instead just use the
8672 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
8673 using -save-temps.
8674
e426b47b
NP
86752010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
8676
8677 Merge from 'apple/trunk' branch on FSF servers.
0069111f 8678
3f8257db 8679 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
e426b47b 8680
9faeb493 8681 Radar 4330422
e426b47b
NP
8682 * c-common.h (objc_non_volatilized_type): New declaration
8683 * stub-objc.c (objc_non_volatilized_type): New stub.
8684
90fbfdc3
NP
86852010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
8686
e426b47b 8687 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3 8688
3f8257db 8689 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
90fbfdc3 8690
9faeb493 8691 Radar 4133425
90fbfdc3 8692 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 8693 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 8694
c37d8c30
IS
86952010-10-17 Iain Sandoe <iains@gcc.gnu.org>
8696
8697 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
8698 * c-common.h (enum rid): Add RID_AT_PACKAGE.
8699 (objc_ivar_visibility_kind): New enum.
8700 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 8701 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
8702 visibility enum.
8703
1b1562a5
MM
87042010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
8705
8706 * c-cppbuiltin.c (builtin_define_float_constants): Emit
8707 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
8708 has the appropriate fma builtins.
8709 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
8710
668ea4b1
IS
87112010-10-14 Iain Sandoe <iains@gcc.gnu.org>
8712
1b1562a5 8713 merge from FSF apple 'trunk' branch.
3f8257db 8714 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 8715
668ea4b1
IS
8716 Radars 4436866, 4505126, 4506903, 4517826
8717 * c-common.c (c_common_resword): Define @property and its attributes.
8718 * c-common.h: Define property attribute enum entries.
8719 (OBJC_IS_PATTR_KEYWORD): New.
8720 (objc_property_attribute_kind): New enum.
8721 Declare objc_set_property_attr (), objc_add_property_variable (),
8722 objc_build_getter_call () and objc_build_setter_call ().
8723 * stub-objc.c (objc_set_property_attr): New stub.
8724 (objc_add_property_variable): Likewise.
8725 (objc_build_getter_call): Likewise.
8726 (objc_build_setter_call) Likewise.
1b1562a5 8727
a1178b30
IS
87282010-10-13 Iain Sandoe <iains@gcc.gnu.org>
8729
1b1562a5 8730 merge from FSF apple 'trunk' branch.
3f8257db 8731 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
a1178b30
IS
8732
8733 Radar 3803157 (method attributes)
8734 * c-common.c (handle_deprecated_attribute): Recognize
8735 objc methods as valid declarations.
8736 * c-common.h: Declare objc_method_decl ().
1b1562a5 8737 * stub-objc.c (objc_method_decl): New stub.
a1178b30 8738
a75bfaa6
JM
87392010-10-08 Joseph Myers <joseph@codesourcery.com>
8740
8741 * c-common.c (parse_optimize_options): Call
8742 decode_cmdline_options_to_array_default_mask before
8743 decode_options. Update arguments to decode_options.
8744 * c-common.h (c_common_init_options_struct): Declare.
8745 * c-opts.c (c_common_init_options_struct): New. Split out from
8746 c_common_init_options.
8747
f05b9d93
NP
87482010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
8749
8750 Implemented fast enumeration for Objective-C.
8751 * c-common.h (objc_finish_foreach_loop): New.
8752 * stub-objc.c (objc_finish_foreach_loop): New.
8753
1ebe4b4f
JM
87542010-10-05 Joseph Myers <joseph@codesourcery.com>
8755
8756 * c-common.h (struct diagnostic_context): Don't declare here.
8757 (c_common_initialize_diagnostics): Declare using
8758 diagnostic_context typedef.
8759 * c-opts.c (c_common_handle_option): Pass global_dc to
8760 handle_generated_option.
8761
d4d24ba4
JM
87622010-10-04 Joseph Myers <joseph@codesourcery.com>
8763
8764 * c-opts.c (c_common_handle_option): Pass &global_options_set to
8765 handle_generated_option.
8766
478a1c5b
ILT
87672010-10-03 Ian Lance Taylor <iant@google.com>
8768
8769 * c.opt (-fplan9-extensions): New option.
8770
82a1c2fe
FXC
87712010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8772
8773 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
8774 Remove.
8775 (c_cpp_builtins): Call functions from cppbuiltin.c instead
8776 of duplicating code.
8777
92902b1b
IS
87782010-09-30 Iain Sandoe <iains@gcc.gnu.org>
8779
8780 * c-common.c: Add two new entries for @optional
8781 and @required keywords.
8782
8783 merge from FSF 'apple/trunk' branch.
3f8257db 8784 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
92902b1b
IS
8785
8786 Radar 4386773
8787 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
8788 objective-c keywords.
8789 (objc_set_method_opt): New declaration.
8790 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 8791
46625112
JM
87922010-09-30 Joseph Myers <joseph@codesourcery.com>
8793
8794 * c-common.c (handle_optimize_attribute): Pass &global_options to
8795 cl_optimization_save and cl_optimization_restore.
8796 * c-opts.c (c_common_handle_option): Pass &global_options to
8797 handle_generated_option.
8798 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
8799 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
8800 &global_options to cl_optimization_restore.
8801
49b91f05
NP
88022010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
8803
8804 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
8805 Objective-C/Objective-C++ keywords.
8806
13ed556f 88072010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 8808
9faeb493
UB
8809 Merge from 'apple/trunk' branch on FSF servers.
8810
3f8257db 8811 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
a6341d57
NP
8812
8813 Radar 4281748
8814 * c-common.h (objc_check_global_decl): New declaration.
8815 * stub-objc.c (objc_check_global_decl): New stub.
8816
f0036cca
JM
88172010-09-29 Joseph Myers <joseph@codesourcery.com>
8818
8819 * c.opt: Don't use VarExists.
8820
e3339d0f
JM
88212010-09-29 Joseph Myers <joseph@codesourcery.com>
8822
8823 * c-common.c (c_cpp_error): Update names of diagnostic_context
8824 members.
8825 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
8826 cl_optimization members.
8827 * c-opts.c (warning_as_error_callback, c_common_handle_option,
8828 sanitize_cpp_opts, finish_options): Update names of cpp_options
8829 members.
8830
1973201f
NP
88312010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
8832
8833 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
8834 (objc_is_reserved_word): Removed.
8835 * c-common.c: Updated comments.
8836 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
8837 objc_is_reserved_word.
8838 * stub-objc.c (objc_is_reserved_word): Removed.
8839
f7e71da5
IS
88402010-09-28 Iain Sandoe <iains@gcc.gnu.org>
8841
9faeb493 8842 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
8843 include attributes.
8844 (objc_start_method_definition): Likewise.
8845 (objc_build_keyword_decl): Likewise.
8846 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
8847 (objc_start_method_definition): Likewise.
8848 (objc_build_keyword_decl): Likewise.
8849
c165dca7
IS
88502010-09-28 Iain Sandoe <iains@gcc.gnu.org>
8851
8852 * c-common.h (objc_start_class_interface): Adjust prototype.
8853 (objc_start_category_interface): Likewise.
8854 (objc_start_protocol): Likewise.
8855 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
8856 (objc_start_class_interface): Likewise.
8857 (objc_start_category_interface): Likewise.
8858
7458026b
ILT
88592010-09-27 Ian Lance Taylor <iant@google.com>
8860
8861 * c-common.c (c_common_attribute_table): Add no_split_stack.
8862 (handle_no_split_stack_attribute): New static function.
8863
b581b85b
NP
88642010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
8865
9faeb493 8866 Merge from 'apple/trunk' branch on FSF servers.
b581b85b 8867
3f8257db 8868 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
b581b85b 8869
9faeb493 8870 Radar 4229905
b581b85b
NP
8871 * c-common.h (objc_have_common_type): New declaration.
8872 * stub-objc.c (objc_have_common_type): New stub.
8873
8874 2005-06-22 Ziemowit Laski <zlaski@apple.com>
8875
8876 Radar 4154928
8877 * c-common.h (objc_common_type): New prototype.
9faeb493 8878 * stub-objc.c (objc_common_type): New stub.
b581b85b 8879
46a4da10
JH
88802010-09-24 Jan Hubicka <jh@suse.cz>
8881
8882 * c-common.c (handle_leaf_attribute): New function.
8883 (struct attribute_spec c_common_att): Add leaf.
8884
e200444e
JM
88852010-09-22 Joseph Myers <joseph@codesourcery.com>
8886
8887 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
8888 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
8889 -dump, -dump=, -imacros, -imacros=, -include, -include=,
8890 -include-barrier, -include-directory, -include-directory=,
8891 -include-directory-after, -include-directory-after=,
8892 -include-prefix, -include-prefix=, -include-with-prefix,
8893 -include-with-prefix=, -include-with-prefix-after,
8894 -include-with-prefix-after=, -include-with-prefix-before,
8895 -include-with-prefix-before=, -no-integrated-cpp,
8896 -no-line-commands, -no-standard-includes, -no-warnings, -output,
8897 -output=, -pedantic, -pedantic-errors, -preprocess,
8898 -print-missing-file-dependencies, -trace-includes, -traditional,
8899 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
8900 -user-dependencies, -verbose, -write-dependencies,
8901 -write-user-dependencies, no-integrated-cpp, traditional): New.
8902
29a80ea6
NP
89032010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
8904
8905 PR objc/23710
ac1fc2fc
NP
8906 * c-common.h (objc_start_method_definition): Return bool instead
8907 of void.
8908 * stub-objc.c (objc_start_method_definition): Return bool instead
8909 of void.
8910
89112010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
8912
8913 PR objc/25965
8914 * c-common.h (objc_get_interface_ivars): New declaration.
8915 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 8916
de621752
ILT
89172010-09-15 Ian Lance Taylor <iant@google.com>
8918
8919 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 8920 messages. Remove period at end of warning message.
de621752 8921
ba885ec5
NS
89222010-09-09 Nathan Sidwell <nathan@codesourcery.com>
8923
8924 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
8925 (handle_alias_attribute): ... here.
8926 (handle_ifunc_attribute): New.
8927
c5ee1358
MM
89282010-09-06 Mark Mitchell <mark@codesourcery.com>
8929
8930 * c-common.h (do_warn_double_promotion): Declare.
8931 * c-common.c (do_warn_double_promotion): Define.
8932
0a0b3574
MM
89332010-09-05 Mark Mitchell <mark@codesourcery.com>
8934
8935 * c.opt (Wdouble-promotion): New.
8936
d1779886
JM
89372010-09-02 Joseph Myers <joseph@codesourcery.com>
8938
8939 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
8940 fvtable-thunks, fxref): Mark no longer supported in help text.
8941
2d2bd949
JM
89422010-09-02 Joseph Myers <joseph@codesourcery.com>
8943
8944 * c.opt (Wimport, fall-virtual, falt-external-templates,
8945 fdefault-inline, fenum-int-equiv, fexternal-templates,
8946 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
8947 fname-mangling-version-, fnew-abi, fnonnull-objects,
8948 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
8949 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
8950 applicable.
8951 (fhandle-exceptions): Mark with Alias and Warn.
8952 * c-opts.c (c_common_handle_option): Don't handle options marked
8953 as ignored.
8954
5de8299c
JM
89552010-09-02 Joseph Myers <joseph@codesourcery.com>
8956
8957 * c.opt (Wcomments, Werror-implicit-function-declaration,
8958 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
8959 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
8960 aliases.
8961 * c-common.c (option_codes): Use OPT_Wcomment instead of
8962 OPT_Wcomments.
8963 * c-opts.c (warning_as_error_callback, c_common_handle_option):
8964 Don't handle options marked as aliases.
8965
0ceb0201
RG
89662010-08-25 Richard Guenther <rguenther@suse.de>
8967
8968 * c-common.c (c_common_get_alias_set): Remove special
8969 handling for pointers.
8970
ac47786e
NF
89712010-08-20 Nathan Froyd <froydnj@codesourcery.com>
8972
8973 * c-common.c: Use FOR_EACH_VEC_ELT.
8974 * c-gimplify.c: Likewise.
8975 * c-pragma.c: Likewise.
8976
c878765b
JM
89772010-08-16 Joseph Myers <joseph@codesourcery.com>
8978
8979 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
8980 RejectDriver.
8981 (MMDX): Change back to MMD. Mark NoDriverArg instead of
8982 RejectDriver.
8983 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
8984 instead of OPT_MDX and OPT_MMDX.
8985
603349bf
JM
89862010-08-16 Joseph Myers <joseph@codesourcery.com>
8987
8988 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
8989
644fa7ac
JM
89902010-08-12 Joseph Myers <joseph@codesourcery.com>
8991
8992 * c.opt (MD, MMD): Change to MDX and MMDX.
8993 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
8994
481e1176
JM
89952010-08-11 Joseph Myers <joseph@codesourcery.com>
8996
8997 * c-opts.c (c_common_handle_option): Call handle_generated_option
8998 instead of handle_option.
8999
ac8dc9f7
NF
90002010-08-08 Nathan Froyd <froydnj@codesourcery.com>
9001
9002 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
9003 (maybe_apply_renaming_pragma): Delete unneeded declarations.
9004
4f8c876d
NF
90052010-08-08 Nathan Froyd <froydnj@codesourcery.com>
9006
9007 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
9008 (pending_redefine_extname): Change type to a VEC.
9009 (add_to_renaming_pragma_list): Update for new type of
9010 pending_redefine_extname.
ac8dc9f7 9011 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 9012
3b0c690e
AC
90132010-08-04 Arnaud Charlet <charlet@adacore.com>
9014
9015 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
9016 visited.
9017 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
9018 decide whether a type has already been declared/seen.
9019 Do not go to the original type.
9020 (dump_nested_types): New parameter forward.
9021 Generate forward declaration if needed and mark type as visited.
9022 (print_ada_declaration): Call dump_nested_types if not already done.
9023 Mark types as visited.
9024
1890bccc
JM
90252010-08-03 Joseph Myers <joseph@codesourcery.com>
9026
9027 * c.opt (-print-pch-checksum): Remove option.
9028 * c-opts.c (c_common_handle_option): Don't handle
9029 OPT_print_pch_checksum.
9030
5f20c657
JM
90312010-07-27 Joseph Myers <joseph@codesourcery.com>
9032
9033 * c-common.h (c_common_handle_option): Update prototype and return
9034 value type.
9035 * c-opts.c (c_common_handle_option): Update prototype and return
9036 value type. Update calls to handle_option and
9037 enable_warning_as_error.
9038
f551f80c
JJ
90392010-07-27 Jakub Jelinek <jakub@redhat.com>
9040
9041 PR c/45079
9042 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
9043
61ff2bdc
JM
90442010-07-27 Joseph Myers <joseph@codesourcery.com>
9045
9046 * c-common.h (c_common_missing_argument): Remove.
9047 * c-opts.c (c_common_missing_argument): Remove.
9048 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
9049 idirafter, imacros, include, isysroot, isystem, iquote): Add
9050 MissingArgError.
9051 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
9052
7a9bf9a4
JM
90532010-07-27 Joseph Myers <joseph@codesourcery.com>
9054
9055 * c-common.h (c_common_option_lang_mask,
9056 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
9057 New.
9058 (c_common_init_options): Update prototype.
9059 * c-opts.c (c_common_option_lang_mask): New.
9060 (c_common_initialize_diagnostics): Split out of
9061 c_common_init_options.
9062 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
9063 New.
9064 (c_common_init_options): Update prototype. Use decoded options in
9065 search for -lang-asm.
9066
910ad8de
NF
90672010-07-15 Nathan Froyd <froydnj@codesourcery.com>
9068
9069 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
9070 * c-format.c: Likewise.
9071
718f9c0f
MLI
90722010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
9073
9074 * c-common.h: Include diagnostic-core.h. Error if already
9075 included.
9076 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
9077
4d451982
MLI
90782010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
9079
adfac8df 9080 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
9081 Do not include expr.h
9082 (vector_mode_valid_p): Move here.
9083
119fe915
SB
90842010-06-21 DJ Delorie <dj@redhat.com>
9085
9086 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
9087 allow these pragmas anywhere.
9088
90892010-06-14 Jakub Jelinek <jakub@redhat.com>
9090
9091 PR bootstrap/44509
9092 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
9093 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
9094 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
9095 ggc_strdup instead of xstrdup.
9096
90972010-06-10 Jakub Jelinek <jakub@redhat.com>
9098
9099 * c-cppbuiltin.c: Include cpp-id-data.h.
9100 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
9101 (lazy_hex_fp_value): New function.
9102 (builtin_define_with_hex_fp_value): Provide definitions lazily.
9103
6662d794
MLI
91042010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
9105
9106 * c-gimplify.c: Do not include tree-flow.h
9107
38f8b050
JR
91082010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
9109
9110 PR other/44034
9111 * c-common.c: Rename targetm member:
9112 targetm.enum_va_list -> targetm.enum_va_list_p
9113
9589f23e
AS
91142010-06-28 Anatoly Sokolov <aesok@post.ru>
9115
9116 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
9117
3b06d379
SB
91182010-06-28 Steven Bosscher <steven@gcc.gnu.org>
9119
9120 * c-cppbuiltin.c: Do not include except.h.
9121
d166d4c3
AK
91222010-06-24 Andi Kleen <ak@linux.intel.com>
9123
9faeb493
UB
9124 * c-common.c (warn_for_omitted_condop): New.
9125 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 9126
70cb8be6
JM
91272010-06-21 Joseph Myers <joseph@codesourcery.com>
9128
9129 * c.opt (lang-objc): Remove.
9130 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
9131
a4c97feb
JR
91322010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
9133
9134 * c-opts.c: Include "tm_p.h".
9135
6e2f1956
JM
91362010-06-20 Joseph Myers <joseph@codesourcery.com>
9137
9138 * c-common.c (parse_optimize_options): Update call to
9139 decode_options.
9140
bc87224e
NF
91412010-06-18 Nathan Froyd <froydnj@codesourcery.com>
9142
9143 * c-common.c (record_types_used_by_current_var_decl): Adjust for
9144 new type of types_used_by_cur_var_decl.
9145
b49cf425
JR
91462010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
9147
9148 PR bootstrap/44512
9149 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
9150 for C++ standard compliance.
9151
59f9c2ed
JM
91522010-06-16 Jason Merrill <jason@redhat.com>
9153
9154 * c.opt: Add -Wnoexcept.
9155
33766b66
RG
91562010-06-16 Richard Guenther <rguenther@suse.de>
9157
9158 PR c/44555
9159 * c-common.c (c_common_truthvalue_conversion): Remove
9160 premature and wrong optimization concering ADDR_EXPRs.
9161
eff7e30c
AC
91622010-06-15 Arnaud Charlet <charlet@adacore.com>
9163
9164 * c-ada-spec.c (dump_sloc): Remove column info.
9165 (is_simple_enum): New function.
9166 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
9167 enum types when relevant.
9168
6312e84d
MLI
91692010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
9170
9faeb493 9171 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
9172 location.
9173
1cb42611
JM
91742010-06-10 Joseph Myers <joseph@codesourcery.com>
9175
9176 * c-opts.c (c_common_handle_option): Don't handle
9177 OPT_fshow_column.
9178
a9429e29
LB
91792010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9180
9181 * c-pragma.c (push_alignment): Use typed GC allocation.
9182 (handle_pragma_push_options): Likewise.
9183
9184 * c-common.c (parse_optimize_options): Likewise.
9185
9186 * c-common.h (struct sorted_fields_type): Add variable_size GTY
9187 option.
9188
5498f011
JM
91892010-06-07 Joseph Myers <joseph@codesourcery.com>
9190
9191 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
9192 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
9193 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
9194 flag_signed_bitfields, warn_strict_null_sentinel,
9195 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
9196 flag_gen_declaration, flag_no_gnu_keywords,
9197 flag_implement_inlines, flag_implicit_templates,
9198 flag_implicit_inline_templates, flag_optional_diags,
9199 flag_elide_constructors, flag_default_inline, flag_rtti,
9200 flag_conserve_space, flag_access_control, flag_check_new,
9201 flag_new_for_scope, flag_weak, flag_working_directory,
9202 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
9203 flag_enforce_eh_specs, flag_threadsafe_statics,
9204 flag_pretty_templates): Remove.
9205 * c-common.h (flag_preprocess_only, flag_nil_receivers,
9206 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
9207 flag_replace_objc_classes, flag_undef, flag_no_builtin,
9208 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
9209 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
9210 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
9211 flag_no_gnu_keywords, flag_implement_inlines,
9212 flag_implicit_templates, flag_implicit_inline_templates,
9213 flag_optional_diags, flag_elide_constructors, flag_default_inline,
9214 flag_rtti, flag_conserve_space, flag_access_control,
9215 flag_check_new, flag_new_for_scope, flag_weak,
9216 flag_working_directory, flag_use_cxa_atexit,
9217 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
9218 flag_threadsafe_statics, flag_pretty_templates,
9219 warn_strict_null_sentinel): Remove.
9220 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
9221 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
9222 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
9223 fimplicit-inline-templates, fimplicit-templates,
9224 flax-vector-conversions, fms-extensions, fnil-receivers,
9225 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
9226 frtti, fshort-double, fshort-enums, fshort-wchar,
9227 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
9228 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
9229 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
9230 gen-decls, undef): Use Var.
9231 (fdefault-inline, foptional-diags): Document as doing nothing.
9232 * c-opts.c (c_common_handle_option): Remove cases for options now
9233 using Var. Mark ignored options as such.
9234
39dabefd
SB
92352010-06-05 Steven Bosscher <steven@gcc.gnu.org>
9236
9faeb493 9237 * c-common.c: Moved to here from parent directory.
39dabefd
SB
9238 * c-common.def: Likewise.
9239 * c-common.h: Likewise.
9240 * c-cppbuiltin.c: Likewise.
9241 * c-dump.c: Likewise.
9242 * c-format.c: Likewise.
9243 * c-format.h : Likewise.
9244 * c-gimplify.c: Likewise.
9245 * c-lex.c: Likewise.
9246 * c-omp.c: Likewise.
9247 * c.opt: Likewise.
9248 * c-opts.c: Likewise.
9249 * c-pch.c: Likewise.
9250 * c-ppoutput.c: Likewise.
9251 * c-pragma.c: Likewise.
9252 * c-pragma.h: Likewise.
9253 * c-pretty-print.c: Likewise.
9254 * c-pretty-print.h: Likewise.
9255 * c-semantics.c: Likewise.
9256 * stub-objc.c: Likewise.
9257
9258 * c-common.c: Include gt-c-family-c-common.h.
9259 * c-pragma.c: Include gt-c-family-c-pragma.h.
9260\f
85ec4feb 9261Copyright (C) 2010-2018 Free Software Foundation, Inc.
39dabefd
SB
9262
9263Copying and distribution of this file, with or without modification,
9264are permitted in any medium without royalty provided the copyright
9265notice and this notice are preserved.