]> gcc.gnu.org Git - gcc.git/blame - gcc/c-family/ChangeLog
Implement P0962
[gcc.git] / gcc / c-family / ChangeLog
CommitLineData
452154b9
EB
12018-03-20 Eric Botcazou <ebotcazou@adacore.com>
2
3 * c-ada-spec.c (pp_ada_tree_identifier): Deal specifically with _Bool.
4
63ecb626
JJ
52018-03-16 Jakub Jelinek <jakub@redhat.com>
6
ce811fc4
JJ
7 PR c/84909
8 * c-warn.c (conversion_warning): Replace "to to" with "to" in
9 diagnostics.
10
63ecb626
JJ
11 PR c/84910
12 * c-warn.c (diagnose_mismatched_attributes): Remove trailing space from
13 diagnostics.
14
a1295eec
RB
152018-03-16 Richard Biener <rguenther@suse.de>
16
17 PR c/84873
18 * c-gimplify.c (c_gimplify_expr): Revert previous change. Instead
19 unshare the possibly folded expression.
20
919674fb
RB
212018-03-15 Richard Biener <rguenther@suse.de>
22
23 PR c/84873
24 * c-gimplify.c (c_gimplify_expr): Do not fold expressions.
25
f99309b2
MS
262018-03-13 Martin Sebor <msebor@redhat.com>
27
28 PR tree-optimization/84725
29 * c-attribs.c (handle_nonstring_attribute): Allow attribute nonstring
30 with all three narrow character types, including their qualified forms.
31
e9b9fa4c
MS
322018-03-12 Martin Sebor <msebor@redhat.com>
33
34 PR tree-optimization/83456
35 * gcc/c-family/c-common.c (check_function_restrict): Return bool.
36 Restore checking of bounded built-in functions.
37 (check_function_arguments): Also return the result
38 of warn_for_restrict.
39 * gcc/c-family/c-common.c (check_function_restrict): Return bool.
40 * gcc/c-family/c-warn.c (warn_for_restrict): Return bool.
41
0805d020
MP
422018-03-02 Marek Polacek <polacek@redhat.com>
43
44 PR c++/84171
45 * c-warn.c (warn_for_sign_compare): Bail out if any of the operands
46 is erroneous.
47
ed2a2f08
TS
482018-03-02 Thomas Schwinge <thomas@codesourcery.com>
49
50 * c-attribs.c (c_common_attribute_table): Remove "cilk simd
51 function".
52
90abdde0
MP
532018-03-01 Marek Polacek <polacek@redhat.com>
54
55 PR c++/84639
56 * c-attribs.c (common_handle_aligned_attribute): Don't use invalid
57 alignment in computation.
58
c6db43fa
EB
592018-02-28 Eric Botcazou <ebotcazou@adacore.com>
60
61 * c-ada-spec.c (dump_ada_node) <NULLPTR_TYPE>: New case.
62 <REAL_TYPE>: Deal specifically with _Float128/__float128.
63
9e25c7ed
EB
642018-02-28 Eric Botcazou <ebotcazou@adacore.com>
65
66 * c-ada-spec.c (dump_ada_double_name) <ENUMERAL_TYPE>: New case.
67 (is_char_array): Take a type instead of a declaration.
68 (dump_ada_array_type): Likewise.
69 (is_simple_enum): Minor tweak.
70 (dump_ada_enum_type): New function extracted from...
71 (dump_ada_node) <ENUMERAL_TYPE>: ...here. Invoke it.
72 <INTEGER_TYPE>: Remove unreachable code.
73 <RECORD_TYPE>: Likewise. Minor tweaks.
74 (dump_nested_type) <ARRAY_TYPE>: Adjust to above changes.
75 <ENUMERAL_TYPE>: New case.
76 <RECORD_TYPE>: Factor out common code.
77 (dump_ada_declaration) <ARRAY_TYPE>: Adjust to above changes.
78 Minor tweaks. Deal with enumeral types.
79 (dump_ada_structure): Minor tweaks.
80
09de3550
EB
812018-02-28 Eric Botcazou <ebotcazou@adacore.com>
82
83 * c-ada-spec.c (dump_ada_node) <POINTER_TYPE>: Do not use generic
84 address for incomplete structures.
85 (dump_forward_type): Do not bail out for incomplete structures.
86 (dump_ada_declaration): Do not special-case incomplete structures
87 for subtypes. Dump them as null records for types.
88
095d8d4b
EB
892018-02-28 Eric Botcazou <ebotcazou@adacore.com>
90
91 * c-ada-spec.c (dump_ada_import): Use boolean and fix formatting.
92 (is_char_array): Fix formatting.
93 (dump_template_types): Likewise.
94 (dump_generic_ada_node): Rename into...
95 (dump_ada_node): ...this.
96 <POINTER_TYPE>: Remove superfluous space. Use generic address for
97 incomplete structures and not for empty structures. Do not use it
98 when forward declarations are needed.
99 (dump_forward_type): New function.
100 (dump_nested_types): Remove FORWARD parameter. Do not consider
101 TREE_VISITED and do not generate a forward declaration. Only dump
102 original nested types for nested declaration.
103 (dump_nested_type) <POINTER_TYPE>: Call dump_forward_type.
104 <ARRAY_TYPE>: Likewise if the component type is an anonymous pointer.
105 <RECORD_TYPE>: Do not consider TREE_VISITED.
106 (dump_ada_declaration): Use booleans and fix formatting throughout.
107 <TYPE_DECL>: Skip incomplete structures and not empty structures.
108 Call dump_forward_type instead of dump_nested_types for a typedef.
109 Remove superfluous check and adjust call to dump_nested_types.
110 <POINTER_TYPE>: Call dump_forward_type and fall through.
111 (dump_ada_struct_decl): Rename into...
112 (dump_ada_structure): ...this. Do not special-case empty structures.
113
d4cfd486
MS
1142018-02-27 Martin Sebor <msebor@redhat.com>
115
116 PR c++/83871
117 * c.opt (-Wmissing-attributes): New option.
118
b22dbd03
ML
1192018-02-21 Martin Liska <mliska@suse.cz>
120
121 * c.opt (Wcatch-value=): Add IntegerRange.
122
883dfe2a
JM
1232018-02-15 Jason Merrill <jason@redhat.com>
124
125 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_deduction_guides.
126
0444aa9c
NS
1272018-02-09 Nathan Sidwell <nathan@acm.org>
128
129 PR c/84293
130 * c-common.h (strict_aliasing_warning): Drop OTYPE arg, insert LOC
131 arg.
132 * c-warn.c (strict_aliasing_warning): Drop OTYPE arg, require LOC
133 arg. Adjust.
134
cea71f0a
MS
1352018-02-09 Martin Sebor <msebor@redhat.com>
136
137 PR lto/84212
138 * c.opt (-Wstringop-overflow, -Warray-bounds): Add LTO.
139 (-Walloc-size-larger-than, -Wformat-truncation=): Same.
140 (-Wmaybe-uninitialized, -Wnonnull, -Wrestrict): Same.
141 (-Wstrict-overflow, -Wsuggest-attribute): Same.
142 (-Wuninitialized): Same.
143
8c8b7be5
EB
1442018-02-09 Eric Botcazou <ebotcazou@adacore.com>
145
146 * c-ada-spec.c (dump_ada_declaration): Do not generate the 'constant'
147 keyword for components.
148
7c30b12a
PC
1492018-02-02 Paolo Carlini <paolo.carlini@oracle.com>
150
151 * c-common.h (DECL_UNNAMED_BIT_FIELD): New.
152
eece7fe5
JK
1532018-02-02 Julia Koval <julia.koval@intel.com>
154
155 * c-common.h (omp_clause_mask): Move to wide_int_bitmask.h.
156
7d07a93a
MP
1572018-01-29 Marek Polacek <polacek@redhat.com>
158
159 PR c/83966
160 * c-format.c (check_function_format): Check current_function_decl.
161
53723269
JJ
1622018-01-27 Jakub Jelinek <jakub@redhat.com>
163
164 * c-cppbuiltin.c (c_cpp_builtins): Use ggc_strdup for the fp_suffix
165 argument.
166 (LAZY_HEX_FP_VALUES_CNT): Define.
167 (lazy_hex_fp_values): Allow up to LAZY_HEX_FP_VALUES_CNT lazy hex fp
168 values rather than just 12.
169 (builtin_define_with_hex_fp_value): Likewise.
170
7365279f
BK
1712018-01-18 Boris Kolpackov <boris@codesynthesis.com>
172
173 PR other/70268
53723269
JJ
174 * c.opt (-fmacro-prefix-map): New option.
175 * c-opts.c (c_common_handle_option): Handle it.
176 * c-lex.c (init_c_lex): Set remap_filename cpp callback.
177 * c-ppoutput.c (init_pp_output): Likewise.
7365279f 178
bb9869d5
DM
1792018-01-17 David Malcolm <dmalcolm@redhat.com>
180
181 PR c++/83814
182 * c-common.c (fold_for_warn): Move to c/c-fold.c and cp/expr.c.
183
68dc87c3
EB
1842018-01-10 Eric Botcazou <ebotcazou@adacore.com>
185
186 * c-ada-spec.c (dump_number): Add FLOAT_P parameter.
187 Skip 'f' and 'F' characters if it is true.
188 (store_ada_macro): Minor tweak.
189 (dump_ada_macros) <CPP_COMMENT>: Likewise.
190 <CPP_WSTRING>: Likewise.
191 <CPP_STRING>: Output '&' in the buffer if not the first string.
192 <CPP_NUMBER>: Adjust calls to dump_number.
193
9a004410
DM
1942018-01-10 David Malcolm <dmalcolm@redhat.com>
195
196 PR c++/43486
197 * c-common.c: Include "selftest.h".
198 (get_atomic_generic_size): Perform the test for integral type
199 before the range test for any integer constant, fixing indentation
200 of braces. Call fold_for_warn before testing for an INTEGER_CST.
201 (reject_gcc_builtin): Strip any location wrapper from EXPR.
202 (selftest::test_fold_for_warn): New function.
203 (selftest::c_common_c_tests): New function.
204 (selftest::c_family_tests): Call it, and
205 selftest::c_pretty_print_c_tests.
206 * c-common.h (selftest::c_pretty_print_c_tests): New decl.
207 * c-format.c (check_format_arg): Convert VAR_P check to a
208 fold_for_warn.
209 * c-pretty-print.c: Include "selftest.h".
210 (pp_c_cast_expression): Don't print casts for location wrappers.
211 (selftest::assert_c_pretty_printer_output): New function.
212 (ASSERT_C_PRETTY_PRINTER_OUTPUT): New macro.
213 (selftest::test_location_wrappers): New function.
214 (selftest::c_pretty_print_c_tests): New function.
215 * c-warn.c (warn_for_memset): Call fold_for_warn on the arguments.
216
5c0caeb3
RS
2172018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
218 Alan Hayward <alan.hayward@arm.com>
219 David Sherwood <david.sherwood@arm.com>
220
221 * c-common.c (c_common_type_for_mode): Handle MODE_VECTOR_BOOL.
222
73a699ae
RS
2232018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
224 Alan Hayward <alan.hayward@arm.com>
225 David Sherwood <david.sherwood@arm.com>
226
227 * c-ubsan.c (ubsan_instrument_shift): Treat GET_MODE_BITSIZE
228 as polynomial.
229
928686b1
RS
2302018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
231 Alan Hayward <alan.hayward@arm.com>
232 David Sherwood <david.sherwood@arm.com>
233
234 * c-common.c (vector_types_convertible_p, c_build_vec_perm_expr)
235 (convert_vector_to_array_for_subscript): Handle polynomial
236 TYPE_VECTOR_SUBPARTS.
237 (c_common_type_for_mode): Check valid_vector_subparts_p.
238 * c-pretty-print.c (pp_c_initializer_list): Handle polynomial
239 VECTOR_CST_NELTS.
240
85ec4feb
JJ
2412018-01-03 Jakub Jelinek <jakub@redhat.com>
242
243 Update copyright years.
244
170a8bd6
EB
2452017-12-22 Mike Stump <mikestump@comcast.net>
246 Eric Botcazou <ebotcazou@adacore.com>
247
248 * c-pragma.c (init_pragma): Register pragma GCC unroll.
249 * c-pragma.h (enum pragma_kind): Add PRAGMA_UNROLL.
250
18408e96
AO
2512017-12-22 Alexandre Oliva <aoliva@redhat.com>
252
253 PR debug/83527
254 PR debug/83419
255 * c-semantics.c (only_debug_stmts_after_p): New.
256 (pop_stmt_list): Clear side effects in debug-only stmt list.
257 Check for single nondebug stmt followed by debug stmts only.
258
c12d20d4
AO
2592017-12-21 Alexandre Oliva <aoliva@redhat.com>
260
261 PR debug/83419
262 * c-semantics.c (pop_stmt_list): Propagate side effects from
263 single nondebug stmt to container list.
264
01512446
JJ
2652017-12-19 Jakub Jelinek <jakub@redhat.com>
266
267 * known-headers.cc (get_stdlib_header_for_name): Replace Yoda
268 conditions with typical order conditions.
269
82cfbd01
MP
2702017-12-18 Marek Polacek <polacek@redhat.com>
271
272 * c-warn.c (warn_logical_operator): Return early if -Wlogical-op is
273 not in effect.
274
99da11ec
MS
2752017-12-17 Martin Sebor <msebor@redhat.com>
276
277 * c-attribs.c (common_handle_aligned_attribute): Avoid issuing
278 an error for attribute warn_if_not_aligned.
279
cc8bea0a
MS
2802017-12-16 Martin Sebor <msebor@redhat.com>
281
282 PR tree-optimization/78918
283 * c-common.c (check_function_restrict): Avoid checking built-ins.
284 * c.opt (-Wrestrict): Include in -Wall.
285
4849deb1
JJ
2862017-12-15 Jakub Jelinek <jakub@redhat.com>
287
288 * c-attribs.c (c_common_attribute_table,
289 c_common_format_attribute_table): Swap affects_type_identity
290 and handler fields, adjust comments.
291
c65e18d3
BE
2922017-12-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
293
294 * c.opt (Wcast-function-type): New warning option.
295 * c-lex.c (get_fileinfo): Avoid warning.
296 * c-ppoutput.c (scan_translation_unit_directives_only): Remove cast.
297
2004617a
QZ
2982017-12-14 Qing Zhao <qing.zhao@oracle.com>
299
7365279f 300 PR middle_end/79538
2004617a
QZ
301 * c-cppbuiltin.c (builtin_define_with_hex_fp_value):
302 Adjust the size of buf1 and buf2, add a new buf to avoid
303 format-overflow warning.
304
96a95ac1
AO
3052017-12-12 Alexandre Oliva <aoliva@redhat.com>
306
307 * c-semantics.c (pop_stmt_list): Move begin stmt marker into
308 subsequent statement list.
309
5d9ae53d
MS
3102017-12-07 Martin Sebor <msebor@redhat.com>
311
312 PR c/81544
313 PR c/81566
314 * c-attribs.c (attr_aligned_exclusions): New array.
315 (attr_alloc_exclusions, attr_cold_hot_exclusions): Same.
316 (attr_common_exclusions, attr_const_pure_exclusions): Same.
317 (attr_gnu_inline_exclusions, attr_inline_exclusions): Same.
318 (attr_noreturn_exclusions, attr_returns_twice_exclusions): Same.
319 (attr_warn_unused_result_exclusions): Same.
320 (handle_hot_attribute, handle_cold_attribute): Simplify.
321 (handle_const_attribute): Warn on function returning void.
322 (handle_pure_attribute): Same.
323 (handle_aligned_attribute): Diagnose conflicting attribute
324 specifications.
325 * c-warn.c (diagnose_mismatched_attributes): Simplify.
326
c79144f8
DM
3272017-12-06 David Malcolm <dmalcolm@redhat.com>
328
329 PR c/83236
330 * c-common.c (selftest::c_family_tests): Call
331 selftest::c_spellcheck_cc_tests.
332 * c-common.h (selftest::c_spellcheck_cc_tests): New decl.
333 * c-spellcheck.cc: Include "selftest.h".
334 (name_reserved_for_implementation_p): New function.
335 (should_suggest_as_macro_p): New function.
336 (find_closest_macro_cpp_cb): Move the check for NT_MACRO to
337 should_suggest_as_macro_p and call it.
338 (selftest::test_name_reserved_for_implementation_p): New function.
339 (selftest::c_spellcheck_cc_tests): New function.
340 * c-spellcheck.h (name_reserved_for_implementation_p): New decl.
341
613bc14f
DM
3422017-12-06 David Malcolm <dmalcolm@redhat.com>
343
344 * c-spellcheck.cc: New file, taken from macro-handling code in
345 spellcheck-tree.c.
346 * c-spellcheck.h: New file, taken from macro-handling code in
347 spellcheck-tree.h.
348
e76c7157
JJ
3492017-12-01 Jakub Jelinek <jakub@redhat.com>
350
351 * c-attribs.c (c_common_attribute_table): Remove "cilk simd function"
352 attribute.
353 (handle_simd_attribute): Don't check for "cilk simd function"
354 attribute. Reindent, formatting changes.
355
b0da4034
JK
3562017-11-30 Julia Koval <julia.koval@intel.com>
357
358 * c-common.h (inv_list): Remove.
359
058f0b9e
JJ
3602017-11-28 Jakub Jelinek <jakub@redhat.com>
361
362 PR sanitizer/81275
363 * c-common.c (c_switch_covers_all_cases_p_1,
364 c_switch_covers_all_cases_p): New functions.
365 * c-common.h (c_switch_covers_all_cases_p): Declare.
366
5e9d6aa4
JK
3672017-11-28 Julia Koval <julia.koval@intel.com>
368 Sebastian Peryt <sebastian.peryt@intel.com>
369
370 * array-notation-common.c: Delete.
371 * c-cilkplus.c: Ditto.
372 * c-common.c (_Cilk_spawn, _Cilk_sync, _Cilk_for): Remove.
373 * c-common.def (ARRAY_NOTATION_REF): Remove.
374 * c-common.h (RID_CILK_SPAWN, build_array_notation_expr,
375 build_array_notation_ref, C_ORT_CILK, c_check_cilk_loop,
376 c_validate_cilk_plus_loop, cilkplus_an_parts,
377 cilk_ignorable_spawn_rhs_op,
378 cilk_recognize_spawn): Remove.
379 * c-gimplify.c (CILK_SPAWN_STMT): Remove.
380 * c-omp.c: Remove CILK_SIMD check.
381 * c-pragma.c: Ditto.
382 * c-pragma.h: Remove CILK related pragmas.
383 * c-pretty-print.c (c_pretty_printer::postfix_expression): Remove
384 ARRAY_NOTATION_REF condition.
385 (c_pretty_printer::expression): Ditto.
386 * c.opt (fcilkplus): Remove.
387 * cilk.c: Delete.
388
1af4ebf5
MG
3892017-11-21 Marc Glisse <marc.glisse@inria.fr>
390
391 * c-pretty-print.c (pp_c_additive_expression,
392 c_pretty_printer::expression): Handle POINTER_DIFF_EXPR.
393
d44ed508
JJ
3942017-11-21 Jakub Jelinek <jakub@redhat.com>
395
7d2f0f9b
JJ
396 * c-common.c (get_nonnull_operand): Use tree_to_uhwi.
397
d44ed508
JJ
398 PR c++/83059
399 * c-common.c (get_atomic_generic_size): Use TREE_INT_CST_LOW
400 instead of tree_to_uhwi, formatting fix.
401
26edace6
DM
4022017-11-20 David Malcolm <dmalcolm@redhat.com>
403
404 PR c/81404
405 * known-headers.cc: New file, based on material from c/c-decl.c.
406 (suggest_missing_header): Copied as-is.
407 (get_stdlib_header_for_name): New, based on get_c_name_hint but
408 heavily edited to add C++ support. Add some knowledge about
409 <limits.h>, <stdint.h>, and <wchar.h>.
410 * known-headers.h: Likewise.
411
6c7a259b
DM
4122017-11-20 David Malcolm <dmalcolm@redhat.com>
413
414 * c-common.h (enum lookup_name_fuzzy_kind): Move to name-hint.h.
415 (lookup_name_fuzzy): Likewise. Convert return type from
416 const char * to name_hint. Add location_t param.
417 * name-hint.h: New header.
418
f9c59f7e
JJ
4192017-11-19 Jakub Jelinek <jakub@redhat.com>
420
421 PR c/66618
422 PR c/69960
423 * c-common.h (c_fully_fold): Add LVAL argument defaulted to false.
424
1e39313a
JM
4252017-11-16 Joseph Myers <joseph@codesourcery.com>
426
427 * c.opt (-std=c17, std=gnu17, -std=iso9899:2017): Refer to 2018
428 expected publication date of C17.
429 (-std=c18, -std=gnu18, -std=iso9899:2018): New option aliases.
430
3ca0dc60
JM
4312017-11-15 Joseph Myers <joseph@codesourcery.com>
432
433 PR c/81156
434 * c-common.c (c_common_reswords): Add __builtin_tgmath.
435 * c-common.h (enum rid): Add RID_BUILTIN_TGMATH.
436
025d57f0
MS
4372017-11-10 Martin Sebor <msebor@redhat.com>
438
439 PR c/81117
440 * c-common.c (catenate_strings): Use memcpy instead of strncpy.
441 * c-warn.c (sizeof_pointer_memaccess_warning): Handle arrays.
442 * c.opt (-Wstringop-truncation): New option.
443
1b6fa695
ML
4442017-11-06 Martin Liska <mliska@suse.cz>
445
446 PR middle-end/82404
447 * c-opts.c (c_common_post_options): Set -Wreturn-type for C++
448 FE.
449 * c.opt: Set default value of warn_return_type.
450
64a5912c
DM
4512017-10-31 David Malcolm <dmalcolm@redhat.com>
452
453 * c-common.c (binary_op_error): Update for renaming of
454 error_at_rich_loc.
455 (c_parse_error): Likewise.
456 * c-warn.c (warn_logical_not_parentheses): Likewise for
457 renaming of inform_at_rich_loc.
458 (warn_for_restrict): Likewise for renaming of
459 warning_at_rich_loc_n.
460
c76dc9c3
JM
4612017-10-30 Joseph Myers <joseph@codesourcery.com>
462
463 * c.opt (std=c17, std=gnu17, std=iso9899:2017): New options.
464 * c-opts.c (set_std_c17): New function.
465 (c_common_init_options): Use gnu17 as default C version.
466 (c_common_handle_option): Handle -std=c17 and -std=gnu17.
467
ee5fd23a
MM
4682017-10-27 Michael Meissner <meissner@linux.vnet.ibm.com>
469
470 * c-cppbuiltin.c (mode_has_fma): Add support for PowerPC KFmode.
471 (c_cpp_builtins): If a machine has a fast fma _Float<N> and
472 _Float<N>X variant, define __FP_FAST_FMA<N> and/or
473 __FP_FAST_FMA<N>X.
474
d1047465
MP
4752017-10-23 Marek Polacek <polacek@redhat.com>
476
477 PR c/82681
478 * c-warn.c (warnings_for_convert_and_check): Fix typos.
479
9e878cf1
EB
4802017-10-19 Eric Botcazou <ebotcazou@adacore.com>
481
482 * c-common.c (check_builtin_function_arguments): Also check arguments
483 of __builtin_alloca_with_align_and_max.
484
89b6abbb
DM
4852017-10-17 David Malcolm <dmalcolm@redhat.com>
486
487 * c-format.c (format_warning_at_char): Pass UNKNOWN_LOCATION
488 rather than NULL to format_warning_va.
489 (check_format_types): Likewise when calling format_type_warning.
490 Remove code to extract source_ranges and source_range * in favor
491 of just a location_t.
492 (format_type_warning): Convert source_range * param to a
493 location_t.
494
39382c09
JJ
4952017-10-13 Jakub Jelinek <jakub@redhat.com>
496
497 * c-gimplify.c (c_gimplify_expr): Handle [LR]ROTATE_EXPR like
498 [LR]SHIFT_EXPR.
499
62e1c678
DM
5002017-10-12 David Malcolm <dmalcolm@redhat.com>
501
502 * c-common.c (enum missing_token_insertion_kind): New enum.
503 (get_missing_token_insertion_kind): New function.
504 (maybe_suggest_missing_token_insertion): New function.
505 * c-common.h (maybe_suggest_missing_token_insertion): New decl.
506
b90c9338
NS
5072017-10-11 Nathan Sidwell <nathan@acm.org>
508
509 * c-opts.c (add_prefixed_path): Change chain to incpath_kind.
510 (c_common_handle_option): Update incpath_kind names.
511
3a266bcd
ML
5122017-10-11 Martin Liska <mliska@suse.cz>
513
514 PR sanitizer/82490
515 * c-attribs.c (handle_no_sanitize_attribute): Report directly
516 Wattributes warning.
517
8e6cdc90
RS
5182017-10-10 Richard Sandiford <richard.sandiford@linaro.org>
519
520 * c-ada-spec.c (dump_generic_ada_node): Use wi::to_wide when
521 operating on trees as wide_ints.
522 * c-common.c (pointer_int_sum): Likewise.
523 * c-pretty-print.c (pp_c_integer_constant): Likewise.
524 * c-warn.c (match_case_to_enum_1): Likewise.
525 (c_do_switch_warnings): Likewise.
526 (maybe_warn_shift_overflow): Likewise.
527
802b38c9
JJ
5282017-10-10 Jakub Jelinek <jakub@redhat.com>
529
530 PR c/82437
531 * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_wide
532 instead of wide_int::from.
533
4e34b338
JJ
5342017-10-06 Jakub Jelinek <jakub@redhat.com>
535
536 PR c/82437
537 * c-warn.c (warn_tautological_bitwise_comparison): Instead of
538 using to_widest use wide_int with the larger of the two precisions.
539
4bc4b2b4
BE
5402017-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
541
542 * c-pretty-print.c (pp_c_parameter_type_list): Print ... for variadic
543 functions.
544
a1488398
RS
5452017-10-02 Richard Sandiford <richard.sandiford@linaro.org>
546
547 * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_widest
548 when combining the original unconverted comparison operands.
549
01c9fb68
JJ
5502017-09-29 Jakub Jelinek <jakub@redhat.com>
551
552 * c-attribs.c (handle_noipa_attribute): Don't add "stack_protect"
553 attribute.
554
6e3e8419
EB
5552017-09-29 Eric Botcazou <ebotcazou@adacore.com>
556
557 * c-ada-spec.c (to_ada_name): Add index parameter.
558 (pp_ada_tree_identifier): Likewise.
559 (dump_ada_macros): Adjust call to to_ada_name.
560 (struct overloaded_name_hash): New type.
561 (struct overloaded_name_hasher): Likewise.
562 (overloaded_names): New hash table.
563 (compute_overloading_index): New function.
564 (dump_ada_decl_name): Call it and pass the result to
565 pp_ada_tree_identifier.
566 (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
567 (dump_ada_function_declaration): Likewise.
568 (dump_generic_ada_node): Likewise.
569 (print_constructor): Likewise.
570 (print_destructor): Likewise.
571 (dump_ada_specs): Delete overloaded_names table.
572
79310774
EB
5732017-09-29 Eric Botcazou <ebotcazou@adacore.com>
574
575 * c-ada-spec.c (max_ada_macros): Move around.
576 (store_ada_macro_index): Likewise.
577 (source_file): Rename into...
578 (macro_source_file): ...this.
579 (count_ada_macro): Move around.
580 (store_ada_macro): Likewise.
581 (compare_macro): Likewise.
582 (print_ada_macros): Merge in...
583 (dump_ada_macros): ...this.
584 (source_file_base): Rename into...
585 (current_source_file): ...this.
586 (print_comment): Move around.
587 (dump_ada_nodes): Call dump_ada_declaration directly.
588 (struct with): Change type of limited field to bool.
589 (append_withs): Change type of limited_access parameter to bool.
590 (pp_ada_tree_identifie): Likewise.
591 (dump_ada_decl_nam): Likewise.
592 (dump_generic_ada_node): Likewise. Do not print the return type.
593 (to_ada_name): Change type of space_found parameter to bool.
594 (dump_ada_function_declaration): Return void and change type of
595 parameters to bool. Also print the return type for a function.
596 (print_ada_methods): Rename into...
597 (dump_ada_methods): ...this.
598 (print_ada_declaration): Rename into ...
599 (dump_ada_declaration): ...this. Do not print the return type.
600 (print_ada_struct_decl): Rename into...
601 (dump_ada_struct_decl): ...this.
602
7d386d45
JJ
6032017-09-29 Jakub Jelinek <jakub@redhat.com>
604
605 * c-attribs.c (handle_packed_attribute): Test DECL_C_BIT_FIELD
606 rather than DECL_INITIAL.
607 (common_handle_aligned_attribute): Likewise.
608
9ed32e27
AO
6092017-09-20 Alexandre Oliva <aoliva@redhat.com>
610
611 * c.opt (gen-decls): Add RejectNegative.
612
026a79f7
AS
6132017-09-15 Andrew Sutton <andrew.n.sutton@gmail.com>
614 Jakub Jelinek <jakub@redhat.com>
615
616 Add support for -std=c++2a.
617 * c-common.h (cxx_dialect): Add cxx2a as a dialect.
618 * opt.c: Add options for -std=c++2a and -std=gnu++2a.
619 * c-opts.c (set_std_cxx2a): New.
620 (c_common_handle_option): Set options when -std=c++2a is enabled.
621 (c_common_post_options): Adjust comments.
622 (set_std_cxx14, set_std_cxx17): Likewise.
623
4a8ca690
EB
6242017-09-15 Eric Botcazou <ebotcazou@adacore.com>
625
626 * c-pragma.c (handle_pragma_scalar_storage_order): Expand on error
627 message for non-uniform endianness and issue a warning in C++.
628
7b936140
JJ
6292017-09-15 Jakub Jelinek <jakub@redhat.com>
630
631 * c.opt (Wc++1z-compat): Change from option to undocumented alias.
632 (Wc++17-compat): Change from undocumented alias to option.
633 (Wnoexcept-type): Enable by Wc++17-compat instead of Wc++1z-compat,
634 change C++1z to C++17 in description.
635 (std=c++1z, std=gnu++1z): Change from option to undocumented
636 deprecated alias.
637 (std=c++17, std=gnu++17): Change from undocumented alias to option.
638 Adjust description.
639 * c-common.h (enum cxx_dialect): Rename cxx1z to cxx17.
640 * c-opts.c (set_std_cxx1z): Rename to ...
641 (set_std_cxx17): ... this.
642 (c_common_handle_option): Rename OPT_std_c__1z to OPT_std_c__17
643 and OPT_std_gnu__1z to OPT_std_gnu__17. Adjust set_std_cxx1z
7365279f 644 caller.
7b936140
JJ
645 (c_common_post_options): Use cxx17 instead of cxx1z. Adjust
646 comments.
647
12263f13
L
6482017-09-12 H.J. Lu <hongjiu.lu@intel.com>
649
650 * c-attribs.c (common_handle_aligned_attribute): Don't warn
651 function alignment if warn_if_not_aligned_p is true.
652
6836632e
NS
6532017-09-12 Nathan Sidwell <nathan@acm.org>
654
655 * c-common.c (field_decl_cmp, resort_data, resort_field_decl_cmp,
656 resort_sorted_fields): Move to c/c-decl.c.
657 * c-common.h (field_decl_cmp, resort_sorted_fields): Delete.
658 (struct sorted_fields_type): Move to c/c-lang.h.
659
019bf9ad
JW
6602017-09-09 Jonathan Wakely <jwakely@redhat.com>
661
662 PR c++/81852
663 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_threadsafe_static_init.
664
bc7fe952
MP
6652017-09-04 Marek Polacek <polacek@redhat.com>
666
667 PR c/81783
668 * c-warn.c (warn_tautological_bitwise_comparison): New function.
669 (warn_tautological_cmp): Call it.
670
de7c2c6a
BK
6712017-09-01 Boris Kolpackov <boris@codesynthesis.com>
672
673 * c-opts.c (c_common_finish): Write dependency information even if
674 there are errors.
675
d2e05fcb
JJ
6762017-09-01 Jakub Jelinek <jakub@redhat.com>
677
678 PR c/81887
679 * c-pragma.c (omp_pragmas): Move "ordered" entry from here to ...
680 (omp_pragmas_simd): ... here.
681 * c-omp.c (c_finish_omp_ordered): If clauses isn't simd clause alone,
682 create new clauses list containing just simd clause.
683
18e2a8b8
RS
6842017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
685 Alan Hayward <alan.hayward@arm.com>
686 David Sherwood <david.sherwood@arm.com>
687
688 * c-attribs.c (vector_mode_valid_p) Fold GET_MODE_INNER call
689 into scalar_mode_supported_p call.
690 (handle_mode_attribute): Update call to scalar_mode_supported_p.
691
16d22000
RS
6922017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
693 Alan Hayward <alan.hayward@arm.com>
694 David Sherwood <david.sherwood@arm.com>
695
696 * c-common.c (c_common_fixed_point_type_for_size): Use opt_scalar_mode
697 for the mode iterator.
698
b397965c
RS
6992017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
700 Alan Hayward <alan.hayward@arm.com>
701 David Sherwood <david.sherwood@arm.com>
702
703 * c-lex.c (interpret_fixed): Use SCALAR_TYPE_MODE.
704 * c-common.c (c_build_vec_perm_expr): Likewise.
705
357b7604
RS
7062017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
707 Alan Hayward <alan.hayward@arm.com>
708 David Sherwood <david.sherwood@arm.com>
709
710 * c-common.c (c_common_type_for_mode): Use as_a <scalar_int_mode>.
711
e05c94ba
RS
7122017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
713 Alan Hayward <alan.hayward@arm.com>
714 David Sherwood <david.sherwood@arm.com>
715
716 * c-attribs.c (handle_mode_attribute): Check for a scalar_int_mode
717 before calling targetm.addr_space.valid_pointer_mode.
718
5c20c4af
RS
7192017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
720 Alan Hayward <alan.hayward@arm.com>
721 David Sherwood <david.sherwood@arm.com>
722
723 * c-cppbuiltin.c (c_cpp_builtins): Use opt_scalar_float_mode.
724
c94843d2
RS
7252017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
726 Alan Hayward <alan.hayward@arm.com>
727 David Sherwood <david.sherwood@arm.com>
728
729 * c-common.c (c_common_fixed_point_type_for_size): Use new mode
730 iterators.
731 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
732
4e10a5a7
RS
7332017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
734 Alan Hayward <alan.hayward@arm.com>
735 David Sherwood <david.sherwood@arm.com>
736
737 * c-cppbuiltin.c (mode_has_fma): Prefix mode names with E_ in
738 case statements.
739
130fcab0
ML
7402017-08-29 Martin Liska <mliska@suse.cz>
741
742 PR other/39851
743 * c-common.c (parse_optimize_options): Add argument to function
744 call.
745 * c-pragma.c (handle_pragma_diagnostic): Likewise.
746
14e18d71
DM
7472017-08-24 David Malcolm <dmalcolm@redhat.com>
748
749 * c-lex.c (interpret_float): Use token location
750 when building an EXCESS_PRECISION_EXPR.
751
2f687306
DM
7522017-08-21 David Malcolm <dmalcolm@redhat.com>
753
754 * c-common.c (check_function_arguments): Add "arglogs" param; pass
755 it to check_function_format.
756 * c-common.h (check_function_arguments): Add vec<location_t> *
757 param.
758 (check_function_format): Likewise.
759 * c-format.c (struct format_check_context): Add field "arglocs".
760 (check_function_format): Add param "arglocs"; pass it to
761 check_format_info.
762 (check_format_info): Add param "arglocs"; use it to initialize
763 new field of format_ctx.
764 (check_format_arg): Pass format_ctx->arglocs to new param of
765 check_format_info_main.
766 (class argument_parser): New field "arglocs".
767 (argument_parser::argument_parser): Add "arglocs_" param and use
768 it to initialize new field.
769 (argument_parser::check_argument_type): Pass new arglocs field to
770 check_format_types.
771 (check_format_info_main): Add param "arglocs", and use it when
772 constructing arg_parser.
773 (check_format_types): Add param "arglocs"; use it if non-NULL when
774 !EXPR_HAS_LOCATION (cur_param) to get at location information.
775
00aa1fa2
L
7762017-08-18 H.J. Lu <hongjiu.lu@intel.com>
777
778 PR c/53037
779 * c-attribs.c (handle_warn_if_not_aligned_attribute): New.
780 (c_common_attribute_table): Add warn_if_not_aligned.
781 (handle_aligned_attribute): Renamed to ...
782 (common_handle_aligned_attribute): Remove argument, name, and add
783 argument, warn_if_not_aligned. Handle warn_if_not_aligned.
784 (handle_aligned_attribute): New.
785 * c.opt: Add -Wif-not-aligned and -Wpacked-not-aligned.
786
27be025d
MS
7872017-08-14 Martin Sebor <msebor@redhat.com>
788
789 PR c/81117
790 * c-attribs.c (c_common_attribute_table): Add nonstring entry.
791 (handle_nonstring_attribute): New function.
792
da67acb9
MS
7932017-08-14 Martin Sebor <msebor@redhat.com>
794
795 PR c/81117
796 * c-format.h (T89_G): New macro.
797 * c-format.c (local_gcall_ptr_node): New variable.
798 (init_dynamic_diag_info): Initialize it.
799
a8b522b4
ML
8002017-08-11 Martin Liska <mliska@suse.cz>
801
802 * c-opts.c (c_common_post_options): Replace ASM_OUTPUT_DEF with
803 TARGET_SUPPORTS_ALIASES.
804
32129a17
DM
8052017-08-10 David Malcolm <dmalcolm@redhat.com>
806
807 * c-common.c (c_parse_error): Add rich_location * param, using it
808 rather implicitly using input_location.
809 * c-common.h (c_parse_error): Add rich_location * param.
810
30af3a2b
MP
8112017-08-09 Marek Polacek <polacek@redhat.com>
812
813 * c-common.c (pointer_int_sum): Use true/false instead of 1/0.
814 (c_common_truthvalue_conversion): Likewise.
815 * c-omp.c (c_finish_omp_atomic): Likewise.
816 * c-common.h (build_binary_op): Update declaration.
817
314e6352
ML
8182017-08-08 Martin Liska <mliska@suse.cz>
819
820 * c-ada-spec.c: Include header files.
821 * c-ubsan.c: Likewise.
822 * c-warn.c: Likewise.
823
56b5041c
JJ
8242017-08-07 Jakub Jelinek <jakub@redhat.com>
825
826 PR c/69389
827 * c-omp.c (c_finish_omp_atomic): Handle atomics on bitfields.
828
db440138
EB
8292017-08-07 Eric Botcazou <ebotcazou@adacore.com>
830
831 * c-ada-spec.c (has_nontrivial_methods): Test for FUNCTION_DECL.
832 (print_ada_methods): Likewise.
833 (print_ada_declaration): Likewise.
834
577eec56
ML
8352017-08-07 Martin Liska <mliska@suse.cz>
836
837 * array-notation-common.c: Add new includes.
838 * c-format.c( handle_format_attribute): Canonicalize a format
839 function name.
840 * c-lex.c (c_common_has_attribute): Canonicalize name of an
841 attribute.
842 * c-pretty-print.c: Add new include.
843
b854df3c
EB
8442017-08-05 Eric Botcazou <ebotcazou@adacore.com>
845
846 * c-ada-spec.c (has_static_fields): Look only into variables.
847 (print_constructor): Add TYPE parameter and use it for the name.
848 (print_destructor): Likewise.
849 (print_ada_declaration): Adjust to new constructor/destructor names.
850 Adjust calls to print_constructor and print_destructor.
851 (print_ada_struct_decl): Do not test TREE_STATIC on FIELD_DECL.
852 Look only into variables in the final loop.
853
9f2cb25e
EB
8542017-08-01 Eric Botcazou <ebotcazou@adacore.com>
855
856 * c-ada-spec.c (has_static_fields): Look only into fields.
857 (dump_generic_ada_node): Small tweak.
858 (dump_nested_types): Look only into fields.
859 (print_ada_declaration): Look only into methods. Small tweak.
860 (print_ada_struct_decl): Look only into fields. Use DECL_VIRTUAL_P.
861
f4bcd9eb
EB
8622017-08-01 Eric Botcazou <ebotcazou@adacore.com>
863
864 * c-ada-spec.c (print_generic_ada_decl): Pass correctly-typed constant.
865 (dump_ada_function_declaration): Likewise.
866 (dump_generic_ada_node): Likewise.
867 (print_ada_declaration): Add support for const-qualified variables.
868
f34ebeb2
ML
8692017-07-31 Martin Liska <mliska@suse.cz>
870
871 PR sanitize/81530
872 * c-ubsan.c (ubsan_maybe_instrument_array_ref):
873 Guard condition with flag_sanitize_p also with current_function_decl
874 non-null equality.
875 (ubsan_maybe_instrument_reference_or_call): Likewise.
876
218e5d04
UB
8772017-07-30 Uros Bizjak <ubizjak@gmail.com>
878
879 * c-format.c (asm_fprintf_char_table): Add 'z' to format_chars.
880
942047f2
EB
8812017-07-29 Eric Botcazou <ebotcazou@adacore.com>
882
883 * c-ada-spec.c (dump_generic_ada_node): Take into account signedness
884 for enumeral types.
885 (print_ada_declaration): Add missing guard for record types.
886
a40ff0ae
JJ
8872017-07-27 Jakub Jelinek <jakub@redhat.com>
888
889 PR c/45784
890 * c-omp.c (c_finish_omp_for): If the condition is wrapped in
891 rhs of COMPOUND_EXPR(s), skip them and readd their lhs into
892 new COMPOUND_EXPRs around the rhs of the comparison.
893
06bd22f6
MP
8942017-07-27 Marek Polacek <polacek@redhat.com>
895
896 PR c/81417
897 * c-warn.c (warn_for_sign_compare): Tweak the warning message. Print
898 the types.
899
036ea399
JJ
9002017-07-27 Jakub Jelinek <jakub@redhat.com>
901
902 * c-attribs.c (c_common_attribute_table): Add noipa attribute.
903 (handle_noipa_attribute): New function.
904
417ca011
TD
9052017-07-07 Torsten Duwe <duwe@suse.de>
906
907 * c-attribs.c (c_common_attribute_table): Add entry for
908 "patchable_function_entry".
909
5aaa8fb4
NS
9102017-07-20 Nathan Sidwell <nathan@acm.org>
911
912 Remove TYPE_METHODS.
913 * c-ada-spec.c (is_tagged_type, has_nontrivial_methods,
914 dump_ada_template, print_ada_methods,
915 print_ada_declaration): Member fns are on TYPE_FIELDS.
916
ff22eb12
NS
9172017-07-18 Nathan Sidwell <nathan@acm.org>
918
919 * c-warn.c (warn_for_memset): Use TYPE_{MIN,MAX}_VALUE.
920
eea77d1f
DM
9212017-07-14 David Malcolm <dmalcolm@redhat.com>
922
923 * c-common.c (try_to_locate_new_include_insertion_point): New
924 function.
925 (per_file_includes_t): New typedef.
926 (added_includes_t): New typedef.
927 (added_includes): New variable.
928 (maybe_add_include_fixit): New function.
929 * c-common.h (maybe_add_include_fixit): New decl.
930
281ac396
MS
9312017-07-10 Martin Sebor <msebor@redhat.com>
932
933 PR other/81345
934 * c.opt (-Wstringop-overflow): Set defaults in LangEnabledBy.
935
b6f43128
DM
9362017-07-06 David Malcolm <dmalcolm@redhat.com>
937
938 * c-common.c (selftest::c_family_tests): New.
939 * c-common.h (selftest::run_c_tests): Move decl to c/c-lang.h.
940 (selftest::c_family_tests): New decl.
941
efbf55b0
MP
9422017-07-04 Marek Polacek <polacek@redhat.com>
943
944 PR c/81231
945 * c-common.c (sync_resolve_size): Give error for pointers to incomplete
946 types.
947
6c86bd88
MP
9482017-07-04 Marek Polacek <polacek@redhat.com>
949
950 * c-warn.c (warn_if_unused_value): Remove WITH_CLEANUP_EXPR handling.
951
17a7218b
ML
9522017-06-28 Martin Liska <mliska@suse.cz>
953
954 PR ipa/81128
955 * c-attribs.c (handle_alias_ifunc_attribute): Append ifunc alias
956 to a function declaration.
957
63010089
ML
9582017-06-28 Martin Liska <mliska@suse.cz>
959
960 PR driver/79659
961 * c.opt: Add IntegerRange to various options.
962
3e2becc4
MP
9632017-06-26 Marek Polacek <polacek@redhat.com>
964
965 PR c/80116
966 * c-common.h (warn_for_multistatement_macros): Declare.
967 * c-warn.c: Include "c-family/c-indentation.h".
968 (warn_for_multistatement_macros): New function.
969 * c.opt (Wmultistatement-macros): New option.
970 * c-indentation.c (guard_tinfo_to_string): No longer static.
971 Change the parameter type to "enum rid". Handle RID_SWITCH.
972 * c-indentation.h (guard_tinfo_to_string): Declare.
973
2db9b7cd
MG
9742017-06-23 Marc Glisse <marc.glisse@inria.fr>
975
976 * c-common.c (c_common_nodes_and_builtins): Use builtin_structptr_types.
977
c3684b7b
MS
9782017-06-15 Martin Sebor <msebor@redhat.com>
979
980 PR c++/80560
981 * c.opt (-Wclass-memaccess): New option.
982
e72c4afd
BK
9832017-06-14 Boris Kolpackov <boris@codesynthesis.com>
984
985 * c-opts.c (c_common_finish): Handle '-' special value to -MF.
986
8a516588
MP
9872017-06-13 Marek Polacek <polacek@redhat.com>
988
989 PR objc/80949
990 * c-warn.c (do_warn_duplicated_branches): Return if any of the
991 branches is null.
992
45b2222a
ML
9932017-06-13 Martin Liska <mliska@suse.cz>
994
995 PR sanitize/78204
996 * c-attribs.c (add_no_sanitize_value): New function.
997 (handle_no_sanitize_attribute): Likewise.
998 (handle_no_sanitize_address_attribute): Use the function.
999 (handle_no_sanitize_thread_attribute): New function.
1000 (handle_no_address_safety_analysis_attribute): Use
1001 add_no_sanitize_value.
1002 (handle_no_sanitize_undefined_attribute): Likewise.
1003 * c-common.h: Declare new functions.
1004 * c-ubsan.c (ubsan_instrument_division): Use sanitize_flags_p.
1005 (ubsan_instrument_shift): Likewise.
1006 (ubsan_instrument_bounds): Likewise.
1007 (ubsan_maybe_instrument_array_ref): Likewise.
1008 (ubsan_maybe_instrument_reference_or_call): Likewise.
1009
a01f151f
JM
10102017-06-11 Jason Merrill <jason@redhat.com>
1011
1012 * c-ada-spec.c, c-pragma.c: Use id_equal.
1013
3de4ac6d
MP
10142017-06-04 Marek Polacek <polacek@redhat.com>
1015
1016 PR c/80919
1017 * c-format.c (matching_type_p): Return false if any of the types
1018 requires structural equality.
1019
2474f48f
MS
10202017-06-02 Martin Sebor <msebor@redhat.com>
1021
1022 PR c/80892
1023 * c-warn.c (conversion_warning): Use -Wconversion for integer
1024 conversion and -Wfloat-conversion for floating one.
1025
40ffd95f
BE
10262017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
1027
1028 * c.opt (Wsizeof-pointer-div): New warning option.
1029
3fa4634c
VR
10302017-06-01 Volker Reichelt <v.reichelt@netcologne.de>
1031
1032 * c.opt (Wcatch-value): New shortcut for Wcatch-value=1.
1033 (Wcatch-value=1): Enable by -Wall.
1034
f012c8ef
DM
10352017-05-30 David Malcolm <dmalcolm@redhat.com>
1036
1037 * c-format.c (gcc_cxxdiag_char_table): Add 'H' and 'I' to
1038 format_chars.
1039 * c.opt (fdiagnostics-show-template-tree): New option.
1040 (felide-type): New option.
1041
63dbcd13
VR
10422017-05-25 Volker Reichelt <v.reichelt@netcologne.de>
1043
1044 * c.opt (Wcatch-value=): New C++ warning flag.
1045
be136b5c
NS
10462017-05-24 Nathan Sidwell <nathan@acm.org>
1047
1048 * c=common.c (field_decl_cmp, resort_field_decl_cmp): Adjust T
1049 const casts to avoid warning.
1050
3cd211af
MS
10512017-05-24 Martin Sebor <msebor@redhat.com>
1052
1053 PR c/80731
1054 * c-common.h (unsafe_conversion_p): Add a function argument.
1055 * c-common.c (unsafe_conversion_p): Same.
1056 Add type names and values to diagnostics.
1057 (scalar_to_vector): Adjust.
1058 * c-warn.c (constant_expression_error): Add a function argument.
1059 Add type names and values to diagnostics.
1060 (conversion_warning): Add a function argument.
1061 Add type names and values to diagnostics.
1062 (warnings_for_convert_and_check): Same.
1063
1ff7be5a
JM
10642017-05-19 Jason Merrill <jason@redhat.com>
1065
1066 * c-warn.c (match_case_to_enum_1): Don't warn about enums with no
1067 enumerators.
1068
ff502317
BE
10692017-05-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
1070
1071 * c-format.c (locus): Move out of function scope,
1072 add GTY attribute.
1073
2a8a8d7b
NS
10742017-05-19 Nathan Sidwell <nathan@acm.org>
1075
1076 * c-opts.c (class_dump_file, class_dump_flags): Delete.
1077 (c_common_parse_file): Remove class dump handling.
1078 (get_dump_info): Likewise.
1079
39aac208
RB
10802017-05-19 Richard Biener <rguenther@suse.de>
1081
1082 PR c++/80593
1083 * c-warn.c (strict_aliasing_warning): Do not warn for accesses
1084 to alias-set zero memory.
1085
6ecd2339
BE
10862017-05-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
1087
1088 * c-format.c (local_tree_type_node): Add GTY attribute.
1089
6574d78e
MP
10902017-05-18 Marek Polacek <polacek@redhat.com>
1091
1092 * c-common.c (c_common_type_for_size): Use NULL_TREE instead of 0.
1093 (c_common_fixed_point_type_for_size): Likewise.
1094 (c_common_type_for_mode): Likewise.
1095 (shorten_compare): Likewise.
1096 (c_promoting_integer_type_p): Use false/true instead of 0/1.
1097 * c-pragma.c (maybe_apply_renaming_pragma): Use NULL_TREE instead of 0.
1098
e3455240
MP
10992017-05-18 Marek Polacek <polacek@redhat.com>
1100
1101 * c-common.c (self_promoting_args_p): Change the return type to bool.
1102 Use false/true instead of 0/1.
1103 * c-common.h (self_promoting_args_p): Update.
1104
3fa8871b
MP
11052017-05-17 Marek Polacek <polacek@redhat.com>
1106
1107 * c-common.c: Use NULL_TREE instead of 0 where appropriate.
1108 * c-warn.c: Likewise.
1109
b42cc3ca
VV
11102017-05-17 Ville Voutilainen <ville.voutilainen@gmail.com>
1111
1112 Implement new C++ intrinsics __is_assignable and __is_constructible.
1113 * c-common.c (__is_assignable, __is_constructible): New.
1114 * c-common.h (RID_IS_ASSIGNABLE, RID_IS_CONSTRUCTIBLE): Likewise.
1115
1a817418
ML
11162017-05-17 Martin Liska <mliska@suse.cz>
1117
1118 * c-common.h: Introduce dump_flags_t type and
1119 use it instead of int type.
1120 * c-gimplify.c (c_genericize): Likewise.
1121 * c-opts.c: Likewise.
1122
b2fa0a8b
MP
11232017-05-17 Marek Polacek <polacek@redhat.com>
1124
1125 * c-common.c (c_save_expr): Remove.
1126 (c_common_truthvalue_conversion): Remove a call to c_save_expr.
1127 * c-common.h (c_save_expr): Remove declaration.
1128
31c2d57d
VR
11292017-05-09 Volker Reichelt <v.reichelt@netcologne.de>
1130
1131 PR c/35441
1132 * c-pretty-print.c (c_pretty_printer::expression): Handle MAX_EXPR,
1133 MIN_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, LROTATE_EXPR, RROTATE_EXPR.
1134 (c_pretty_printer::postfix_expression): Handle MAX_EXPR, MIN_EXPR.
1135 (c_pretty_printer::multiplicative_expression): Handle EXACT_DIV_EXPR,
1136 RDIV_EXPR.
1137 (pp_c_shift_expression): Handle LROTATE_EXPR, RROTATE_EXPR.
1138
684f84de
MP
11392017-05-09 Marek Polacek <polacek@redhat.com>
1140
1141 PR c/80525
1142 * c-warn.c (unwrap_c_maybe_const): New.
1143 (warn_logical_operator): Call it.
1144
641da50a
NS
11452017-05-09 Nathan Sidwell <nathan@acm.org>
1146
1147 * c-common.c (c_register_builtin_type): Use pushdecl lang_hook.
1148 * c-common.h (pushdecl_top_level, pushdecl): Don't declare here.
1149
631238ac
MS
11502017-05-08 Martin Sebor <msebor@redhat.com>
1151
1152 PR translation/80280
1153 * c-format.h (struct format_flag_spec): Add new member.
1154 (T89_T): New macro.
1155 * c-format.c (local_tree_type_node): New global.
1156 (printf_flag_specs, asm_fprintf_flag_spec): Initialize new data.
1157 (gcc_diag_flag_specs, scanf_flag_specs, strftime_flag_specs): Ditto.
1158 (strfmon_flag_specs): Likewise.
1159 (gcc_diag_char_table, gcc_cdiag_char_table): Split up specifiers
1160 with distinct quoting properties.
1161 (gcc_tdiag_char_table, gcc_cxxdiag_char_table): Same.
1162 (flag_chars_t::validate): Add argument and handle bad quoting.
1163 (check_format_info_main): Handle quoting problems.
1164 (init_dynamic_diag_info): Simplify.
1165
49f0c04c
JM
11662017-05-08 Jason Merrill <jason@redhat.com>
1167
1168 * c-opts.c (c_common_post_options): Update defaults for
1169 flag_abi_version and flag_abi_compat_version.
1170
56d35585
DM
11712017-05-05 David Malcolm <dmalcolm@redhat.com>
1172
1173 * c-common.c (c_cpp_error): Replace report_diagnostic
1174 with diagnostic_report_diagnostic.
1175
0f2c4a8f
MS
11762017-05-04 Martin Sebor <msebor@redhat.com>
1177
1178 PR translation/80280
1179 * c-attribs.c (handle_alias_ifunc_attribute): Quote a %D directive.
1180 (handle_weakref_attribute): Same.
1181
6fe63fb4
NS
11822017-05-03 Nathan Sidwell <nathan@acm.org>
1183
1184 Canonicalize canonical type hashing
1185 * c-common.c (complete_array_type): Use type_hash_canon.
1186
815d9cc6
XR
11872017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
1188
1189 PR c++/80038
1190 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): Remove
1191 prototype.
1192 (cilk_install_body_pedigree_operations): Likewise.
1193 * cilk.c (cilk_set_spawn_marker): Mark functions that should be
1194 detatched.
1195 (cilk_gimplify_call_params_in_spawned_fn): Remove.
1196 (cilk_install_body_pedigree_operations): Likewise.
1197 (gimplify_cilk_spawn): Add EXPR_STMT and CLEANUP_POINT_EXPR
1198 unwrapping.
1199
f8a36447
JJ
12002017-04-27 Jakub Jelinek <jakub@redhat.com>
1201
1202 PR c++/80534
1203 * c-common.c (complete_array_type): Only hash TYPE_TYPELESS_STORAGE
1204 flag on non-aggregate element types.
1205
7c145456
BE
12062017-04-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
1207
1208 * c-common.c (c_type_hasher, type_hash_table): Remove.
1209 (c_common_get_alias_set): Remove unreachable code.
1210 * c-opts.c (c_common_post_options): Make sure cc1 takes only one file.
1211
c3cbcd45
VR
12122017-04-20 Volker Reichelt <v.reichelt@netcologne.de>
1213
1214 * c.opt (Wextra-semi): New C++ warning flag.
1215
8a59d466
JJ
12162017-04-20 Jakub Jelinek <jakub@redhat.com>
1217
1218 PR middle-end/80423
1219 * c-common.c (complete_array_type): Preserve TYPE_TYPELESS_STORAGE.
1220
8487c9a5
JJ
12212017-04-18 Jakub Jelinek <jakub@redhat.com>
1222
1223 PR middle-end/79788
1224 PR middle-end/80375
1225 * c-common.c (c_common_type_for_mode): Don't handle
1226 widest_*_literal_type_node here.
1227 c_common_signed_or_unsigned_type): Likewise.
1228 (c_common_nodes_and_builtins): Set widest_*_literal_type_node
1229 to *intTI_type_node or *intDI_type_node depending on whether
1230 TImode is supported by the target or not.
1231
3ee0fb02
ML
12322017-04-10 Martin Liska <mliska@suse.cz>
1233
1234 PR sanitizer/80350
1235 * c-ubsan.c (ubsan_instrument_shift): Evaluate RHS before
1236 doing an UBSAN check.
1237
5764ee3c
JW
12382017-04-03 Jonathan Wakely <jwakely@redhat.com>
1239
1240 * c-warn.c (do_warn_double_promotion): Fix typo in comment.
1241
6f3af356
JJ
12422017-03-31 Jakub Jelinek <jakub@redhat.com>
1243
1244 PR c++/79572
1245 * c-ubsan.h (ubsan_maybe_instrument_reference): Change argument to
1246 tree *.
1247 * c-ubsan.c (ubsan_maybe_instrument_reference): Likewise. Handle
1248 not just NOP_EXPR to REFERENCE_TYPE, but also INTEGER_CST with
1249 REFERENCE_TYPE.
1250
f6a7a9d5
DM
12512017-03-31 David Malcolm <dmalcolm@redhat.com>
1252
1253 PR documentation/78732
1254 * c.opt (Wendif-labels): Fix description to refer to
1255 #else rather than #elif.
1256
af88f557
JJ
12572017-03-31 Jakub Jelinek <jakub@redhat.com>
1258
1259 PR libstdc++/80251
1260 * c-common.h (enum rid): Add RID_IS_AGGREGATE.
1261 * c-common.c (c_common_reswords): Add __is_aggregate trait.
1262
a9e4a1a5
JJ
12632017-03-27 Jakub Jelinek <jakub@redhat.com>
1264
1265 PR middle-end/80162
1266 * c-common.c (c_common_mark_addressable_vec): Don't set
1267 TREE_ADDRESSABLE on DECL_HARD_REGISTER.
1268
3f01b620
MS
12692017-03-21 Martin Sebor <msebor@redhat.com>
1270
1271 PR c++/79548
1272 * c-common.c (set_underlying_type): Mark type used only when
1273 original del is declared unused.
1274
2f6f187a
DM
12752017-03-10 David Malcolm <dmalcolm@redhat.com>
1276
1277 PR translation/79848
1278 * c-format.c (check_format_string): Simplify uses of "%<%s%>" to
1279 "%qs".
1280
a02fa805
DM
12812017-03-10 David Malcolm <dmalcolm@redhat.com>
1282
1283 PR c/79921
1284 * c-indentation.c (warn_for_misleading_indentation): Remove parens
1285 from inform's message, so that xgettext can locate it.
1286
822a132c
MP
12872017-03-09 Marek Polacek <polacek@redhat.com>
1288
1289 PR c++/79962
1290 PR c++/79984
1291 * c-attribs.c (handle_nonnull_attribute): Save the result of default
1292 conversion to the attribute list.
1293
bba81f1c
ML
12942017-03-09 Martin Liska <mliska@suse.cz>
1295
1296 * c-ada-spec.c (macro_length): Increment value instead of a pointer.
1297
108154ff
JM
12982017-03-03 Jason Merrill <jason@redhat.com>
1299
1300 * c.opt (Wnoexcept-type): New.
1301
eb0e7c34
RB
13022017-03-02 Richard Biener <rguenther@suse.de>
1303
1304 PR c/79756
1305 * c-common.c (c_common_mark_addressable_vec): Look through
1306 C_MAYBE_CONST_EXPR.
1307
9453ba0a
ML
13082017-02-28 Martin Liska <mliska@suse.cz>
1309
1310 * c.opt: Replace space with tabular for options of <number>
1311 type.
1312
6a825afe
ML
13132017-02-28 Martin Liska <mliska@suse.cz>
1314
1315 * c.opt: Fix --help=option -Q for options which are of
1316 an enum type.
1317
4227c9ad
JJ
13182017-02-24 Jakub Jelinek <jakub@redhat.com>
1319
1320 PR c++/79588
1321 * c-common.c (check_function_restrict): New function.
1322 (check_function_arguments): Add FNDECL argument. Call
1323 check_function_restrict if -Wrestrict.
1324 * c-warn.c (warn_for_restrict): Remove ARGS argument, add ARGARRAY
1325 and NARGS. Use auto_vec for ARG_POSITIONS, simplify.
1326 * c-common.h (check_function_arguments): Add FNDECL argument.
1327 (warn_for_restrict): Remove ARGS argument, add ARGARRAY and NARGS.
1328
59909673
EB
13292017-02-24 Eric Botcazou <ebotcazou@adacore.com>
1330
1331 * c-ada-spec.c (dump_ada_function_declaration): Add comment about the
1332 treatment of parameters with pointer-to-tagged type and tidy up.
1333 (print_ada_methods): Remove the special treatment of C++ static member
1334 functions.
1335
54dcd526
ML
13362017-02-22 Martin Liska <mliska@suse.cz>
1337
1338 * c.opt: Replace inequality signs with square brackets
1339 for -Wnornalized.
1340
00bc9de3
JJ
13412017-02-21 Jakub Jelinek <jakub@redhat.com>
1342
1343 PR c++/79641
1344 * c-attribs.c (handle_mode_attribute): Use build_qualified_type to
1345 preserve quals.
1346
97fcf744
JM
13472017-02-17 Joseph Myers <joseph@codesourcery.com>
1348
1349 * c-cppbuiltin.c (builtin_define_float_constants): Define
1350 __DECIMAL_DIG__ to the value for long double.
1351
c7545f1c
MP
13522017-02-15 Marek Polacek <polacek@redhat.com>
1353
1354 PR c/79515
1355 * c-warn.c (do_warn_double_promotion): Don't warn if an invalid
1356 conversion has occured.
1357
c2e84327
DM
13582017-01-24 David Malcolm <dmalcolm@redhat.com>
1359
1360 * c-common.c (c_common_reswords): Add "__RTL".
1361 * c-common.h (enum rid): Add RID_RTL.
1362
2ebd93e1
MP
13632017-01-20 Marek Polacek <polacek@redhat.com>
1364
1365 PR c/64279
1366 * c-common.h (do_warn_duplicated_branches_r): Declare.
1367 * c-gimplify.c (c_genericize): Walk the function tree calling
1368 do_warn_duplicated_branches_r.
1369 * c-warn.c (expr_from_macro_expansion_r): New.
1370 (do_warn_duplicated_branches): New.
1371 (do_warn_duplicated_branches_r): New.
1372 * c.opt (Wduplicated-branches): New option.
1373
0d80ab91
DM
13742017-01-17 David Malcolm <dmalcolm@redhat.com>
1375
1376 PR c++/71497
1377 * c-indentation.c (warn_for_misleading_indentation): Use the past
1378 subjunctive in the note.
1379
7f991c36
AH
13802017-01-17 Aldy Hernandez <aldyh@redhat.com>
1381
1382 PR c/79116
1383 * array-notation-common.c (cilkplus_extract_an_triplets): Convert
1384 start type to integer_type.
1385
1c70261c
JJ
13862017-01-16 Jakub Jelinek <jakub@redhat.com>
1387
1388 PR driver/49726
1389 * c.opt (gen-decls): Add Driver flag.
1390
1ddca3f3
PC
13912017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
1392
1393 Revert:
1394 2017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
1395
1396 PR c++/71737
1397 * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
1398
7d2f3f1d
PC
13992017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
1400
1401 PR c++/71737
1402 * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
1403
bce6f760
MS
14042017-01-12 Martin Sebor <msebor@redhat.com>
1405
1406 (-Wformat-overflow): ...to this.
1407
bf5fbf46
MS
14082017-01-11 Martin Sebor <msebor@redhat.com>
1409
1410 PR c/78768
1411 * c.opt (-Walloca-larger-than, -Wformat-length, -Wformat-truncation):
1412 Also enable for LTO.
1413
e363df3f
JM
14142017-01-10 Jason Merrill <jason@redhat.com>
1415
1416 Implement P0195R2, C++17 variadic using.
1417 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_variadic_using.
1418
bd2c6270
JJ
14192017-01-09 Jakub Jelinek <jakub@redhat.com>
1420
1421 PR translation/79019
1422 PR translation/79020
1423 * c.opt (Wnormalized=): Fix typo in description.
1424
efcc8d38
MS
14252017-01-08 Martin Sebor <msebor@redhat.com>
1426
1427 PR middle-end/77708
1428 * c.opt (-Wformat-truncation): New option.
1429
435f3f7a
AO
14302017-01-06 Alexandre Oliva <aoliva@redhat.com>
1431
1432 * c-pretty-print.c (pp_c_tree_decl_identifier): Convert 16-bit
1433 value to unsigned short to fit in 4 hex digits without
1434 warnings.
1435
4e89adf9
EB
14362017-01-05 Eric Botcazou <ebotcazou@adacore.com>
1437
1438 * c.opt (fsso-struct): Add 'native' value.
1439
cd445b54
ML
14402017-01-05 Martin Liska <mliska@suse.cz>
1441
1442 PR pch/78970
1443 * c-opts.c (c_common_post_options): Reject '-' filename for a precompiled
1444 header.
1445
a9342885
MP
14462017-01-04 Marek Polacek <polacek@redhat.com>
1447
1448 PR c++/64767
1449 * c.opt (Wpointer-compare): New option.
1450
fc73e60c
JJ
14512017-01-04 Jakub Jelinek <jakub@redhat.com>
1452
1453 PR driver/78957
1454 * c.opt (fsso-struct=): Add RejectNegative.
1455
cbe34bb5
JJ
14562017-01-01 Jakub Jelinek <jakub@redhat.com>
1457
1458 Update copyright years.
1459
d4a6c0ea
ML
14602016-12-29 Martin Liska <mliska@suse.cz>
1461
1462 PR c/78933
1463 * c.opt (strong-eval-order): Add RejectNegative keyword.
1464
67a5ad7c
JM
14652016-12-22 Jason Merrill <jason@redhat.com>
1466
1467 Implement P0522R0, matching of template template arguments.
1468 * c-cppbuiltin.c (c_cpp_builtins): Define
1469 __cpp_template_template_args.
1470
0dba7960
JJ
14712016-12-21 Jakub Jelinek <jakub@redhat.com>
1472
1473 PR bootstrap/78817
1474 * c-common.c (struct nonnull_arg_ctx): New type.
1475 (check_function_nonnull): Return bool instead of void. Use
1476 nonnull_arg_ctx as context rather than just location_t.
1477 (check_nonnull_arg): Adjust for the new context type, set
1478 warned_p to true if a warning has been diagnosed.
1479 (check_function_arguments): Return bool instead of void.
1480 * c-common.h (check_function_arguments): Adjust prototype.
1481
31bfc9b9
JM
14822016-12-21 Jason Merrill <jason@redhat.com>
1483
1484 * c.opt (-fnew-ttp-matching): New flag.
1485 * c-opts.c (c_common_post_options): Default on if -std=c++1z.
1486
629b3d75
MJ
14872016-12-14 Martin Jambor <mjambor@suse.cz>
1488
1489 * c-omp.c: Include omp-general.h instead of omp-low.h.
1490 (c_finish_oacc_wait): Adjusted call to find_omp_clause to use its new
1491 name.
1492
474da67e
MS
14932016-12-14 Martin Sebor <msebor@redhat.com>
1494
1495 PR c/17308
1496 * c-common.c (check_nonnull_arg): Disable when optimization
1497 is enabled.
1498
fe366b87
MP
14992016-12-12 Marek Polacek <polacek@redhat.com>
1500
1501 PR c++/78647
1502 * c-common.c (attribute_fallthrough_p): Return false for
1503 error_mark_node.
1504
8bd9f164
MS
15052016-12-08 Martin Sebor <msebor@redhat.com>
1506
1507 PR c/78284
1508 * c.opt (-Walloc-zero, -Walloc-size-larger-than): New options.
1509
060162e0
MS
15102016-12-08 Martin Sebor <msebor@redhat.com>
1511
1512 PR c/78165
1d0cf89a
MS
1513 * c-pretty-print (pp_c_integer_constant): Avoid formatting type
1514 suffix.
060162e0 1515
ee92e7ba
MS
15162016-12-07 Martin Sebor <msebor@redhat.com>
1517
1518 PR c/53562
1519 PR middle-end/77784
1520 PR middle-end/78149
1521 PR middle-end/78138
1522 * c.opt (-Wstringop-overflow): New option.
1523
84b0769e
MO
15242016-12-02 Maxim Ostapenko <m.ostapenko@samsung.com>
1525
1526 * c-attribs.c (asan odr indicator): New attribute.
1527 (handle_asan_odr_indicator_attribute): New function.
1528
7fa6a965
PK
15292016-11-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1530
1531 * c-common.c (c_common_nodes_and_builtins): Remove initialization of
1532 ptrdiff_type_node;
1533
56d8ffc1
JG
15342016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
1535
1536 * c-common.c (excess_precision_mode_join): New.
1537 (c_ts18661_flt_eval_method): New.
1538 (c_c11_flt_eval_method): Likewise.
1539 (c_flt_eval_method): Likewise.
1540 * c-common.h (excess_precision_mode_join): New.
1541 (c_flt_eval_method): Likewise.
1542 * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): New.
1543 (cpp_iec_559_value): Call it.
1544 (c_cpp_builtins): Modify logic for __LIBGCC_*_EXCESS_PRECISION__,
1545 call c_flt_eval_method to set __FLT_EVAL_METHOD__ and
1546 __FLT_EVAL_METHOD_TS_18661_3__.
1547
04f0fcf7
JG
15482016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
1549
1550 * c-opts.c (c_common_post_options): Add logic to handle the default
1551 case for -fpermitted-flt-eval-methods.
1552
fb2675cb
PB
15532016-11-23 Paolo Bonzini <bonzini@gnu.org>
1554
1555 * c.opt (Wexpansion-to-defined): New.
1556
ec1c5694
JJ
15572016-11-23 Jakub Jelinek <jakub@redhat.com>
1558
1559 PR target/78451
1560 * c-pragma.c (handle_pragma_target): Don't replace
1561 current_target_pragma, but chainon the new args to the current one.
1562
730c9e75
NS
15632016-11-22 Nathan Sidwell <nathan@acm.org>
1564
1565 * array-notation-common.c (cilkplus_extract_an_trplets): Fix
cacd29be 1566 indentation and formatting.
730c9e75 1567
89990732
MS
15682016-11-21 Martin Sebor <msebor@redhat.com>
1569
1570 * c.opt (-fprintf-return-value): Enable by default.
1571
48330c93
BE
15722016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
1573
1574 PR c++/71973
1575 * c.opt (-Wbuiltin-declaration-mismatch): New warning.
1576 * c-common.c (c_common_nodes_and_builtins): Initialize
1577 const_tm_ptr_type_node.
1578
0d939c95
MP
15792016-11-16 Marek Polacek <polacek@redhat.com>
1580
1581 PR c/78285
1582 * c-common.c (c_add_case_label): Turn error_at calls into inform.
1583
8e745a17
JJ
15842016-11-14 Jakub Jelinek <jakub@redhat.com>
1585
1586 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_structured_bindings.
1587
1ee62b92 15882016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
8e745a17
JJ
1589 Richard Biener <rguenther@suse.de>
1590
1591 * c-common.h (c_common_resword): Add RID_GIMPLE, RID_PHI types.
1592 * c-common.h (enum rid): Add RID_GIMPLE, RID_PHI.
1593 * c.opt (fgimple): New option.
1ee62b92 1594
22b15758
UB
15952016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1596
1597 PR c/35503
1598 * c-common.h (warn_for_restrict): Declare.
1599 * c-warn.c: Include gcc-rich-location.h.
1600 (warn_for_restrict): New function.
1601 * c-format.c (gcc_tdiag_char_table): Add entry for "Z" specifier.
1602 (gcc_cdiag_char_table): Likewise.
1603 (gcc_cxxdiag_char_table): Likewise.
1604 * c.opt (Wrestrict): New option.
1605
4be719cd
EB
16062016-11-13 Eric Botcazou <ebotcazou@adacore.com>
1607
1608 * c-ada-spec.c (print_ada_declaration): For typedef declarations, look
1609 for nested types only if the type is a record or union and dump SLOC.
1610
4a826ca6
JM
16112016-11-09 Jason Merrill <jason@redhat.com>
1612
1613 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_template_auto.
1614
2e955d50
JJ
16152016-11-09 Jakub Jelinek <jakub@redhat.com>
1616
1617 * c-ubsan.c (ubsan_instrument_shift): Handle split
1618 -fsanitize=shift-base and -fsanitize=shift-exponent.
1619
51dc6603
JM
16202016-11-07 Jason Merrill <jason@redhat.com>
1621
1622 * c.opt (Wc++1z-compat): New.
1623 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_noexcept_function_type.
1624
6dc4a604
ML
16252016-11-07 Martin Liska <mliska@suse.cz>
1626
1627 * c-warn.c (warn_for_unused_label): Save all labels used
1628 in goto or in &label.
1629
b302001e
JM
16302016-11-03 Jason Merrill <jason@redhat.com>
1631
1632 * c-cppbuiltin.c (c_cpp_builtins): Correct
1633 __cpp_inheriting_constructors.
1634
31f7f784
JM
16352016-11-01 Jason Merrill <jason@redhat.com>
1636
2bc78e3c
JM
1637 * c-cppbuiltin.c (c_cpp_builtins): Update
1638 __cpp_inheriting_constructors.
1639
31f7f784
JM
1640 * c.opt (-fnew-inheriting-ctors): New.
1641 * c-opts.c: Default to on for ABI 11+.
1642
dcb466ec
JJ
16432016-10-31 Jakub Jelinek <jakub@redhat.com>
1644
1645 PR c++/77948
1646 * c.opt (fext-numeric-literals): Add Var and Init.
1647 * c-opts.c (c_common_handle_option): Don't clear
1648 cpp_opts->ext_numeric_literals for -std=c++{11,14,1z}.
1649 (c_common_post_options): Clear it here if not set
1650 explicitly.
1651
52e1b91e
AH
16522016-10-28 Aldy Hernandez <aldyh@redhat.com>
1653
1654 PR debug/77773
1655 * c-pretty-print.c (simple_type_specifier): Do not dereference `t'
1656 if NULL.
1657
e16f1cc7
JJ
16582016-10-25 Jakub Jelinek <jakub@redhat.com>
1659
1660 * c-common.h (enum rid): Add RID_BUILTIN_LAUNDER.
1661 * c-common.c (c_common_reswords): Add __builtin_launder.
1662
f8348061
BE
16632016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
1664
1665 * c-common.c (c_common_truthvalue_conversion): Warn for
1666 multiplications in boolean context. Fix the quoting of '<<' and '<'
1667 in the shift warning.
1668
eff89e01
BE
16692016-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
1670
1671 * c-common.c (c_common_truthvalue_conversion): Fix the comment.
1672
24bc7bf4
JM
16732016-10-20 Jason Merrill <jason@redhat.com>
1674
1675 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_concepts value.
1676
4c712374
BE
16772016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
1678
1679 * c-common.c (c_common_truthvalue_conversion): Warn only for signed
1680 integer shift ops in boolean context.
1681
16822016-10-18 Aldy Hernandez <aldyh@redhat.com>
adc577c5
AH
1683
1684 * c.opt (Walloca): New.
1685 (Walloca-larger-than=): New.
1686 (Wvla-larger-than=): New.
1687
8fa18c06
MP
16882016-10-17 Marek Polacek <polacek@redhat.com>
1689
1690 * c-warn.c (find_array_ref_with_const_idx_r): Remove parameter names.
1691 Return immediately when finding a match.
1692 (warn_tautological_cmp): Remove a boolean variable that is no longer
1693 needed.
1694
b12b1915
MP
16952016-10-17 Marek Polacek <polacek@redhat.com>
1696
1697 * c-attribs.c: New file.
1698 * c-common.c: Move attributes handling to c-attribs.c.
1699 (get_nonnull_operand): No longer static.
1700 * c-common.h: Move the declarations from c-attribs.c to its own section.
1701
2045acd9
JM
17022016-10-14 Jason Merrill <jason@redhat.com>
1703
1704 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_aggregate_bases
1705 and __cpp_deduction_guides.
1706
14a2c9aa
JM
17072016-10-13 Jason Merrill <jason@redhat.com>
1708
1709 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_inline_variables.
1710
4d0cdd0c
TP
17112016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
1712
1713 * c-cppbuiltin.c: Include memmodel.h.
1714 * c-opts.c: Likewise.
1715 * c-pragma.c: Likewise.
1716 * c-warn.c: Likewise.
1717
70f6d5e1
JJ
17182016-10-12 Jakub Jelinek <jakub@redhat.com>
1719
1720 * c.opt (Wextra): Add as C/C++/ObjC/ObjC++ option.
1721 (Wimplicit-fallthrough=): Enable for these languages by -Wextra.
1722 * c-opts.c (sanitize_cpp_opts): Initialize
1723 cpp_opts->cpp_warn_implicit_fallthrough.
1724
78f61294
MP
17252016-10-11 Marek Polacek <polacek@redhat.com>
1726
1727 * c-common.c (warning_candidate_p): Change the return type to bool
1728 and return true/false instead of 1/0.
1729 (vector_mode_valid_p): Likewise.
1730
038b5cc0
MP
17312016-10-11 Marek Polacek <polacek@redhat.com>
1732
1733 * c-common.c (fold_for_warn): No longer static.
1734 (bool_promoted_to_int_p): Likewise.
1735 (c_common_get_narrower): Likewise.
1736 (constant_expression_warning): Move to c-warn.c.
1737 (constant_expression_error): Likewise.
1738 (overflow_warning): Likewise.
1739 (warn_logical_operator): Likewise.
1740 (find_array_ref_with_const_idx_r): Likewise.
1741 (warn_tautological_cmp): Likewise.
1742 (expr_has_boolean_operands_p): Likewise.
1743 (warn_logical_not_parentheses): Likewise.
1744 (warn_if_unused_value): Likewise.
1745 (strict_aliasing_warning): Likewise.
1746 (sizeof_pointer_memaccess_warning): Likewise.
1747 (check_main_parameter_types): Likewise.
1748 (conversion_warning): Likewise.
1749 (warnings_for_convert_and_check): Likewise.
1750 (match_case_to_enum_1): Likewise.
1751 (match_case_to_enum): Likewise.
1752 (c_do_switch_warnings): Likewise.
1753 (warn_for_omitted_condop): Likewise.
1754 (readonly_error): Likewise.
1755 (lvalue_error): Likewise.
1756 (invalid_indirection_error): Likewise.
1757 (warn_array_subscript_with_type_char): Likewise.
1758 (warn_about_parentheses): Likewise.
1759 (warn_for_unused_label): Likewise.
1760 (warn_for_div_by_zero): Likewise.
1761 (warn_for_memset): Likewise.
1762 (warn_for_sign_compare): Likewise.
1763 (do_warn_double_promotion): Likewise.
1764 (do_warn_unused_parameter): Likewise.
1765 (record_locally_defined_typedef): Likewise.
1766 (maybe_record_typedef_use): Likewise.
1767 (maybe_warn_unused_local_typedefs): Likewise.
1768 (maybe_warn_bool_compare): Likewise.
1769 (maybe_warn_shift_overflow): Likewise.
1770 (warn_duplicated_cond_add_or_warn): Likewise.
1771 (diagnose_mismatched_attributes): Likewise.
1772 * c-common.h: Move the declarations from c-warn.c to its own section.
1773 * c-warn.c: New file.
1774
627be19f
JM
17752016-10-08 Jason Merrill <jason@redhat.com>
1776
1777 * c-common.c (c_common_truthvalue_conversion): Don't distribute
1778 into COND_EXPR in C++.
1779
7bad794a
JJ
17802016-10-08 Jakub Jelinek <jakub@redhat.com>
1781
1782 * c-lex.c (c_lex_with_flags) <case CPP_COMMENT>: For CPP_COMMENT
1783 token with PREV_FALLTHROUGH, skip all following CPP_PADDING and
1784 CPP_COMMENT tokens and set add_flags to PREV_FALLTHROUGH afterwards.
1785
be845b04
JJ
17862016-10-07 Jakub Jelinek <jakub@redhat.com>
1787
1788 Implement LWG2296 helper intrinsic
1789 * c-common.h (enum rid): Add RID_ADDRESSOF.
1790 * c-common.c (c_common_reswords): Add __builtin_addressof.
1791
c09c4992
BE
17922016-10-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
1793
1794 PR c++/77700
1795 * c-common.c (c_common_truthvalue_conversion): Warn also for
1796 suspicious enum values in boolean context.
1797
342cfb3e
JJ
17982016-10-06 Jakub Jelinek <jakub@redhat.com>
1799
1800 Implement P0258R2 - helper for C++17
1801 std::has_unique_object_representations trait
1802 * c-common.h (enum rid): Add RID_HAS_UNIQUE_OBJ_REPRESENTATIONS.
1803 * c-common.c (c_common_reswords): Add
1804 __has_unique_object_representations.
1805
2e69f143
JJ
18062016-10-05 Jakub Jelinek <jakub@redhat.com>
1807
1808 PR sanitizer/66343
1809 * c-ubsan.c (ubsan_instrument_return): Don't call
1810 initialize_sanitizer_builtins here.
1811
700fff34
BE
18122016-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
1813
1814 * c-common.c (c_common_truthvalue_conversion): Warn also for suspicious
1815 conditional expression in boolean context when only one arm is
1816 non-boolean.
1817
9563bfcd
JJ
18182016-10-05 Jakub Jelinek <jakub@redhat.com>
1819
04a32443
JJ
1820 PR sanitizer/77823
1821 * c-ubsan.c (ubsan_instrument_shift): Return NULL_TREE if type0
1822 is not integral.
1823
9563bfcd
JJ
1824 * c-common.c (c_common_reswords): Update comment for C++11.
1825
f1644724
JM
18262016-10-04 Jason Merrill <jason@redhat.com>
1827
1828 * c-common.c (make_tree_vector_from_ctor): New.
1829 * c-common.h: Declare it.
1830
5a79befb
JJ
18312016-10-04 Jakub Jelinek <jakub@redhat.com>
1832
1833 * c-cppbuiltin.c (c_cpp_builtins): Don't define
1834 __LIBGCC_JCR_SECTION_NAME__.
1835
1633d3b9
BE
18362016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
1837
1838 * c-common.c (c_common_truthvalue_conversion): Warn for suspicious
1839 left shift in boolean context.
1840
a2c6e7f2
JJ
18412016-09-29 Jakub Jelinek <jakub@redhat.com>
1842
1843 Implement P0001R1 - C++17 removal of register storage class specifier
1844 * c.opt (Wregister): New warning.
1845 * c-opts.c (c_common_post_options): Enable -Wregister by
1846 default for C++17.
1847
75304c87
JG
18482016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
1849
1850 * c-opts.c (c_common_post_options): Remove special case for
1851 TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard
1852 in C++.
1853
bbfac6da
JJ
18542016-09-27 Jakub Jelinek <jakub@redhat.com>
1855
6e39060a
JJ
1856 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for
1857 -std=c++1z.
1858
bbfac6da
JJ
1859 * c-ada-spec.c (print_ada_declaration): Remove break after return.
1860
e73cf9a2
TP
18612016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
1862
1863 * c-common.c: Include memmodel.h.
1864
c6147dc4
MP
18652016-09-26 Marek Polacek <polacek@redhat.com>
1866
1867 * c-lex.c (c_common_has_attribute): Handle attribute fallthrough.
1868
81fea426
MP
18692016-09-26 Marek Polacek <polacek@redhat.com>
1870
1871 PR c/7652
1872 * c-common.c (c_common_attribute_table): Add fallthrough attribute.
1873 (handle_fallthrough_attribute): New function.
1874 (attribute_fallthrough_p): New function.
1875 * c-common.h (attribute_fallthrough_p): Declare.
1876
9a2300e9
MP
18772016-09-24 Marek Polacek <polacek@redhat.com>
1878
1879 PR c/77490
1880 * c.opt (Wbool-operation): New.
1881
a09e9e35
BE
18822016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
1883
1884 * c-common.c (c_common_truthvalue_conversion): Inhibit
1885 Wint-in-bool-context warning with from_macro_definition_at.
1886 Mention the expression will always evaluate to true.
1887
d43b4ccc
MS
18882016-09-21 Martin Sebor <msebor@redhat.com>
1889
1890 PR bootstrap/77676
1891 * c.opt (fprintf-return-value): Temporarily initialize to zero
1892 to unblock bootstrap failures.
1893
2e1c20b1
JJ
18942016-09-21 Jakub Jelinek <jakub@redhat.com>
1895
1896 PR c++/77651
1897 * c.opt (Waligned-new=): Add RejectNegative.
1898 (faligned-new=): Likewise. Spelling fix - change
1899 aligned_new_threshhold to aligned_new_threshold.
1900 * c-cppbuiltin.c (c_cpp_builtins): Change aligned_new_threshhold
1901 to aligned_new_threshold.
1902
88d0c3f0
MS
19032016-09-20 Martin Sebor <msebor@redhat.com>
1904
1905 PR middle-end/49905
1906 * c.opt: Add -Wformat-length and -fprintf-return-value.
1907
144a96e4
BE
19082016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
1909
1910 PR c++/77434
1911 * c.opt (Wint-in-bool-context): New warning.
1912 * c-common.c (c_common_truthvalue_conversion): Warn on integer
1913 constants in boolean context.
1914
63012d9a
JM
19152016-09-19 Joseph Myers <joseph@codesourcery.com>
1916
1917 * c-common.c (max_align_t_align): Also consider alignment of
1918 float128_type_node.
1919
931388ce
JM
19202016-09-15 Jason Merrill <jason@redhat.com>
1921
1922 * c-common.c (check_cxx_fundamental_alignment_constraints): Check
1923 DECL_EXTERNAL.
1924
38711381
JM
19252016-09-14 Jason Merrill <jason@redhat.com>
1926
1927 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
1928 limit FIELD_DECL, either.
1929
e51fbec3
MP
19302016-09-14 Marek Polacek <polacek@redhat.com>
1931
1932 * c-common.c (c_common_truthvalue_conversion): Use false instead of 0.
1933 * c-common.h (build_unary_op): Change nonconvert parameter type to bool.
1934 * c-omp.c (c_finish_omp_atomic): Use false instead of 0.
1935
254830ba
DM
19362016-09-13 David Malcolm <dmalcolm@redhat.com>
1937
1938 * c-common.c (warn_logical_not_parentheses): Replace
1939 rich_location::add_fixit_insert calls with add_fixit_insert_before
1940 and add_fixit_insert_after, eliminating the "next_loc" calculation.
1941
42763690
JM
19422016-09-13 Jason Merrill <jason@redhat.com>
1943 Tom de Vries <tom@codesourcery.com>
1944
1945 PR c++/77427
1946 * c-common.c (set_underlying_type): Don't treat array as builtin type.
1947
9453eee9
JM
19482016-09-13 Jason Merrill <jason@redhat.com>
1949
1950 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
1951 limit types at all.
1952
e96809e3
JM
19532016-09-12 Jason Merrill <jason@redhat.com>
1954
1955 * c-common.c (check_cxx_fundamental_alignment_constraints): Fix
1956 bit/byte confusion, allow large alignment for types.
1957
54dcdb88
BE
19582016-09-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
1959
1960 PR c++/77496
1961 * c-common.c (warn_for_omitted_condop): Also warn for boolean data.
1962
d1463eb9
DM
19632016-09-12 David Malcolm <dmalcolm@redhat.com>
1964
1965 PR c/72858
1966 * c-format.c (argument_parser::check_argument_type): Add params
1967 "type_start" and "conversion_char". Use the former to generate
1968 offset_to_type_start and pass it and conversion_char to
1969 check_format_types.
1970 (check_format_info_main): Capture the start of the type
1971 information as "type_start", and pass it an format_char
1972 to arg_parser.check_argument_type.
1973 (check_format_types): Provide an example in the leading comment.
1974 Add params "offset_to_type_start" and "conversion_char"; pass
1975 them to format_type_warning calls.
1976 (test_get_modifier_for_format_len): Likewise.
1977 (matching_type_p): New function.
1978 (get_format_for_type): Add param "conversion_char" and move
1979 implementation into...
1980 (get_format_for_type_1): ...new function, called twice.
1981 Use new function matching_type_p rather than checking for
1982 TYPE_CANONICAL equality.
1983 (get_corrected_substring): New function.
1984 (format_type_warning): Provide an example in the leading comment.
1985 Add params "offset_to_type_start" and "conversion_char". Replace
1986 call to get_format_for_type with call to get_corrected_substring
1987 and move rejection of hints for widths/precisions there.
1988 (assert_format_for_type_streq): Add param "conversion_char".
1989 (ASSERT_FORMAT_FOR_TYPE_STREQ): Add param CONVERSION_CHAR.
1990 (test_get_format_for_type_printf): Add conversion chars to the
1991 tests, adding coverage for various combinations of integer
1992 vs double conversions, and for preserving octal and hexadecimal
1993 conversions.
1994 (test_get_format_for_type_scanf): Add conversion chars to the
1995 tests.
1996
5b28efbb
TV
19972016-09-10 Tom de Vries <tom@codesourcery.com>
1998
1999 PR C/71602
2000 * c-common.c (build_va_arg): Handle more strict
2001 targetm.canonical_va_list_type. Replace first argument type error with
2002 assert.
2003
3f0177e7
MS
20042016-09-09 Martin Sebor <msebor@redhat.com>
2005
2006 PR c/77520
2007 PR c/77521
2008 * c-format.c (argument_parser::find_format_char_info): Use %qc
2009 format directive unconditionally.
2010
af63ba4b
JM
20112016-09-09 Jason Merrill <jason@redhat.com>
2012
2013 Implement C++17 new of over-aligned types.
2014 * c.opt: Add -faligned-new and -Waligned-new.
2015 * c-common.c (max_align_t_align): Split out from...
2016 (cxx_fundamental_alignment_p): ...here.
2017 * c-common.h: Declare it.
2018 * c-cppbuiltin.c (c_cpp_builtins): Handle aligned new.
2019
c65248cb
JM
20202016-09-09 Joseph Myers <joseph@codesourcery.com>
2021
2022 * c-cppbuiltin.c (builtin_define_type_width): New function.
2023 (builtin_define_stdint_macros, c_cpp_builtins): Define type width
2024 macros.
2025
e5106e27
DM
20262016-09-07 David Malcolm <dmalcolm@redhat.com>
2027
2028 * c-common.c (get_cpp_ttype_from_string_type): Handle being passed
2029 a POINTER_TYPE.
2030 (substring_loc::get_location): Move to substring-locations.c,
2031 keeping implementation as...
2032 (c_get_substring_location): New function, from the above, reworked
2033 to use accessors rather than member lookup.
2034 * c-common.h (class substring_loc): Move to substring-locations.h,
2035 replacing with a forward decl.
2036 (c_get_substring_location): New decl.
2037 * c-format.c: Include "substring-locations.h".
2038 (format_warning_va): Move to substring-locations.c.
2039 (format_warning_at_substring): Likewise.
2040
a42e7952
MS
20412016-09-06 Martin Sebor <msebor@redhat.com>
2042
2043 PR c/77336
2044 * c-format.c (check_function_format): Avoid issuing warnings for
2045 functions unless they call format functions with non-constant
2046 format strings.
2047
b772a565
RB
20482016-09-06 Richard Biener <rguenther@suse.de>
2049
2050 PR c/77450
2051 * c-common.c (c_common_mark_addressable_vec): Handle
2052 COMPOUND_LITERAL_EXPR.
2053
25ff5dd3
MP
20542016-09-05 Marek Polacek <polacek@redhat.com>
2055
2056 PR c/77423
2057 * c-common.c (bool_promoted_to_int_p): New function.
2058 (expr_has_boolean_operands_p): New function.
2059 (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p.
2060 (maybe_warn_bool_compare): Use bool_promoted_to_int_p.
2061
21234eb5
TV
20622016-09-04 Tom de Vries <tom@codesourcery.com>
2063
2064 revert:
2065 2016-08-29 Tom de Vries <tom@codesourcery.com>
2066
2067 * c-common.c (build_va_arg): Replace first argument type error
2068 with assert.
2069
9dc5773f
JJ
20702016-09-02 Jakub Jelinek <jakub@redhat.com>
2071
2072 PR c/65467
2073 * c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions.
2074 (c_finish_omp_for): Reject _Atomic qualified iterators.
2075
20762016-09-01 Martin Sebor <msebor@redhat.com>
3d7b83b6
MS
2077
2078 * c-ada-spec.c (dump_ada_function_declaration): Increase buffer
2079 size to guarantee it fits the output of the formatted function
2080 regardless of its arguments.
2081
295844f6
MP
20822016-09-01 Marek Polacek <polacek@redhat.com>
2083
2084 PR c/7652
2085 * c-common.c (resolve_overloaded_builtin): Fix formatting. Add
2086 FALLTHRU comments.
2087
3d06b6f2
MP
20882016-08-29 Marek Polacek <polacek@redhat.com>
2089
2090 PR c/77292
2091 * c-common.c (warn_logical_not_parentheses): Don't warn for
2092 a comparison or a logical operator.
2093
34cedad5
TV
20942016-08-29 Tom de Vries <tom@codesourcery.com>
2095
2096 * c-common.c (build_va_arg): Fix type comparison assert.
2097
f162d717
TV
20982016-08-29 Tom de Vries <tom@codesourcery.com>
2099
2100 * c-common.c (build_va_arg): Replace first argument type error
2101 with assert.
2102
ba9bbd6f
TV
21032016-08-29 Tom de Vries <tom@codesourcery.com>
2104
2105 PR c/77398
2106 * c-common.c (build_va_arg): Add first argument error. Build va_arg
2107 with error_mark_node as va_list instead of with illegal va_list.
2108
ebef225f
MP
21092016-08-25 Marek Polacek <polacek@redhat.com>
2110 David Malcolm <dmalcolm@redhat.com>
2111
2112 * c-common.c (warn_logical_not_parentheses): Print fixit hints.
2113 * c-common.h (warn_logical_not_parentheses): Update declaration.
2114
b00e6e75
MP
21152016-08-22 Marek Polacek <polacek@redhat.com>
2116
2117 PR c++/77321
2118 * c-common.c (warn_for_memset): Check type for null.
2119
6dc198e3
JM
21202016-08-22 Joseph Myers <joseph@codesourcery.com>
2121
14ec014e 2122 * c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and
6dc198e3
JM
2123 _FloatNx types for suffixes for built-in functions.
2124
c65699ef
JM
21252016-08-19 Joseph Myers <joseph@codesourcery.com>
2126
2127 PR c/32187
2128 * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32)
2129 (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X)
2130 (RID_FLOAT128X): New enum rid values.
2131 (CASE_RID_FLOATN_NX): New macro.
2132 * c-common.c (c_common_reswords): Add _FloatN and _FloatNx
2133 keywords.
2134 (c_common_type_for_mode): Check for _FloatN and _FloatNx and
2135 corresponding complex types.
2136 (c_common_nodes_and_builtins): For non-C++, register _FloatN and
2137 _FloatNx and corresponding complex types.
2138 (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX.
2139 * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN
2140 and _FloatNx types for the widest type for determining
2141 DECIMAL_DIG. Define __LDBL_DECIMAL_DIG__ as well as
2142 __DECIMAL_DIG__ for long double. Handle FMA_SUFFIX being NULL.
2143 (c_cpp_builtins): Call builtin_define_float_constants for _FloatN
2144 and _FloatNx types.
2145 * c-lex.c (interpret_float): Handle _FloatN and _FloatNx
2146 constants.
2147 * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and
2148 _FloatNx types.
2149
cc015f3a
DM
21502016-08-18 David Malcolm <dmalcolm@redhat.com>
2151
2152 * c-opts.c (c_diagnostic_finalizer): Update for change to
2153 diagnostic_show_locus.
2154
cb18fd07
DM
21552016-08-18 David Malcolm <dmalcolm@redhat.com>
2156
2157 * c-common.c: Include "spellcheck.h".
2158 (cb_get_suggestion): New function.
2159 * c-common.h (cb_get_suggestion): New decl.
2160 * c-lex.c (init_c_lex): Initialize cb->get_suggestion to
2161 cb_get_suggestion.
2162
a76989dc
MP
21632016-08-18 Marek Polacek <polacek@redhat.com>
2164
2165 PR c/71514
2166 * c-common.c (get_atomic_generic_size): Disallow pointer-to-function
2167 and pointer-to-VLA.
2168
65e736c0
DM
21692016-08-16 David Malcolm <dmalcolm@redhat.com>
2170
2171 PR c/72857
2172 * c-common.c (substring_loc::get_range): Rename to...
2173 (substring_loc::get_location): ...this, converting param from a
2174 source_range * to a location_t *. Call
2175 get_source_location_for_substring rather than
2176 get_source_range_for_substring, and pass in m_caret_idx.
2177 * c-common.h (substring_loc::substring_loc): Add param "caret_idx".
2178 (substring_loc::get_range): Replace with...
2179 (substring_loc::get_location): ...this.
2180 (substring_loc::set_caret_index): New method.
2181 (substring_loc): Add field m_caret_idx.
2182 * c-format.c (format_warning_va): Update for above changes.
2183 Rename local "substring_loc" to "fmt_substring_loc" to avoid
2184 clashing with type name.
2185 (format_warning_at_char): Add caret_idx param to substring_loc ctor.
2186 (check_argument_type): Likewise.
2187 (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc"
2188 Use a copy when emitting warnings, setting the caret index from TYPE.
2189
7e1dde14 21902016-08-16 Eric Botcazou <ebotcazou@adacore.com>
8e745a17 2191 Arnaud Charlet <charlet@adacore.com>
7e1dde14
EB
2192
2193 * c-ada-spec.c (dump_number): New function.
2194 (handle_escape_character): Likewise.
2195 (print_ada_macros): Add handling of constant integers and strings.
2196
191816a3
MP
21972016-08-12 Marek Polacek <polacek@redhat.com>
2198
2199 PR c/7652
2200 * c-common.c (scalar_to_vector): Adjust fall through comment.
2201 * c-opts.c (c_common_handle_option): Likewise.
2202 * c-pragma.c (handle_pragma_pack): Add FALLTHRU.
2203 * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust
2204 fall through comment.
2205 * cilk.c (extract_free_variables): Add FALLTHRU.
2206
452df4a4
JM
22072016-08-10 Jason Merrill <jason@redhat.com>
2208
2209 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr.
2210
f3365c12
JM
22112016-08-09 Jason Merrill <jason@redhat.com>
2212
2213 * c-common.c (c_common_attribute_table): vector_size affects type
2214 identity.
2215
f0bc3323
MP
22162016-08-09 Marek Polacek <polacek@redhat.com>
2217
2218 PR c/7652
2219 * c-ada-spec.c (dump_generic_ada_node): Add return.
2220
98e5a19a
JM
22212016-08-09 Jason Merrill <jason@redhat.com>
2222
2223 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for
2224 C++17 constexpr lambdas.
2225
895aa8e1
DM
22262016-08-08 David Malcolm <dmalcolm@redhat.com>
2227
2228 PR c/64955
2229 * c-common.h (selftest::c_format_c_tests): New declaration.
2230 (selftest::run_c_tests): New declaration.
2231 * c-format.c: Include "selftest.h.
2232 (format_warning_va): Add param "corrected_substring" and use
2233 it to add a replacement fix-it hint.
2234 (format_warning_at_substring): Likewise.
2235 (format_warning_at_char): Update for new param of
2236 format_warning_va.
2237 (argument_parser::check_argument_type): Pass "fki" to
2238 check_format_types.
2239 (check_format_types): Add param "fki" and pass it to
2240 format_type_warning.
2241 (deref_n_times): New function.
2242 (get_modifier_for_format_len): New function.
2243 (selftest::test_get_modifier_for_format_len): New function.
2244 (get_format_for_type): New function.
2245 (format_type_warning): Add param "fki" and use it to attempt
2246 to provide hints for argument types when calling
2247 format_warning_at_substring.
2248 (selftest::get_info): New function.
2249 (selftest::assert_format_for_type_streq): New function.
2250 (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro.
2251 (selftest::test_get_format_for_type_printf): New function.
2252 (selftest::test_get_format_for_type_scanf): New function.
2253 (selftest::c_format_c_tests): New function.
2254
e52ed3fe
DM
22552016-08-08 David Malcolm <dmalcolm@redhat.com>
2256
2257 PR c/52952
2258 * c-format.c: Include "diagnostic.h".
2259 (location_column_from_byte_offset): Delete.
2260 (location_from_offset): Delete.
2261 (format_warning_va): New function.
2262 (format_warning_at_substring): New function.
2263 (format_warning_at_char): New function.
2264 (check_format_arg): Capture location of format_tree and pass to
2265 check_format_info_main.
2266 (argument_parser): Add fields "start_of_this_format" and
2267 "format_string_cst".
2268 (flag_chars_t::validate): Add param "format_string_cst". Convert
2269 warning_at call using location_from_offset to call to
2270 format_warning_at_char.
2271 (argument_parser::argument_parser): Add param "format_string_cst_"
2272 and use use it to initialize field "format_string_cst".
2273 Initialize new field "start_of_this_format".
2274 (argument_parser::read_format_flags): Convert warning_at call
2275 using location_from_offset to a call to format_warning_at_char.
2276 (argument_parser::read_any_format_left_precision): Likewise.
2277 (argument_parser::read_any_format_precision): Likewise.
2278 (argument_parser::read_any_other_modifier): Likewise.
2279 (argument_parser::find_format_char_info): Likewise, in three places.
2280 (argument_parser::parse_any_scan_set): Likewise, in one place.
2281 (argument_parser::handle_conversions): Likewise, in two places.
2282 (argument_parser::check_argument_type): Add param "fmt_param_loc"
2283 and use it to make a substring_loc. Pass the latter to
2284 check_format_types.
2285 (check_format_info_main): Add params "fmt_param_loc" and
2286 "format_string_cst". Convert warning_at calls using
2287 location_from_offset to calls to format_warning_at_char. Pass the
2288 new params to the arg_parser ctor. Pass "format_string_cst" to
2289 flag_chars.validate. Pass "fmt_param_loc" to
2290 arg_parser.check_argument_type.
2291 (check_format_types): Convert first param from a location_t
2292 to a const substring_loc & and rename to "fmt_loc". Attempt
2293 to extract the range of the relevant parameter and pass it
2294 to format_type_warning.
2295 (format_type_warning): Convert first param from a location_t
2296 to a const substring_loc & and rename to "fmt_loc". Add
2297 params "param_range" and "type". Replace calls to warning_at
2298 with calls to format_warning_at_substring.
2299
1c4d457e
DM
23002016-08-08 David Malcolm <dmalcolm@redhat.com>
2301
2302 * c-format.c (class flag_chars_t): New class.
2303 (struct length_modifier): New struct.
2304 (class argument_parser): New class.
2305 (flag_chars_t::flag_chars_t): New ctor.
2306 (flag_chars_t::has_char_p): New method.
2307 (flag_chars_t::add_char): New method.
2308 (flag_chars_t::validate): New method.
2309 (flag_chars_t::get_alloc_flag): New method.
2310 (flag_chars_t::assignment_suppression_p): New method.
2311 (argument_parser::argument_parser): New ctor.
2312 (argument_parser::read_any_dollar): New method.
2313 (argument_parser::read_format_flags): New method.
2314 (argument_parser::read_any_format_width): New method.
2315 (argument_parser::read_any_format_left_precision): New method.
2316 (argument_parser::read_any_format_precision): New method.
2317 (argument_parser::handle_alloc_chars): New method.
2318 (argument_parser::read_any_length_modifier): New method.
2319 (argument_parser::read_any_other_modifier): New method.
2320 (argument_parser::find_format_char_info): New method.
2321 (argument_parser::validate_flag_pairs): New method.
2322 (argument_parser::give_y2k_warnings): New method.
2323 (argument_parser::parse_any_scan_set): New method.
2324 (argument_parser::handle_conversions): New method.
2325 (argument_parser::check_argument_type): New method.
2326 (check_format_info_main): Introduce classes argument_parser
2327 and flag_chars_t, moving the code within the loop into methods
2328 of these classes. Make various locals "const".
2329
88fa5555
DM
23302016-08-05 David Malcolm <dmalcolm@redhat.com>
2331
2332 * c-common.c: Include "substring-locations.h".
2333 (get_cpp_ttype_from_string_type): New function.
2334 (g_string_concat_db): New global.
2335 (substring_loc::get_range): New method.
2336 * c-common.h (g_string_concat_db): New declaration.
2337 (class substring_loc): New class.
2338 * c-lex.c (lex_string): When concatenating strings, capture the
2339 locations of all tokens using a new obstack, and record the
2340 concatenation locations within g_string_concat_db.
2341 * c-opts.c (c_common_init_options): Construct g_string_concat_db
2342 on the ggc-heap.
2343
78169471
MP
23442016-07-29 Marek Polacek <polacek@redhat.com>
2345
638fc14f
MP
2346 PR c/71926
2347 * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the
2348 parentheses warning.
2349
78169471
MP
2350 PR c/71574
2351 * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL.
2352
1225d6b1
ML
23532016-07-28 Martin Liska <mliska@suse.cz>
2354
2355 PR gcov-profile/68025
2356 * c-common.c (handle_no_profile_instrument_function_attribute):
2357
ec1e2a40
BE
23582016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
2359
2360 * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of
2361 BITS_PER_UNIT_LOG.
2362
5ec2cd9f
JM
23632016-07-25 Jason Merrill <jason@redhat.com>
2364
2365 PR c++/65970
2366 * c.opt (fconstexpr-loop-limit): New.
2367
9dc5773f 23682016-07-22 Martin Sebor <msebor@redhat.com>
2e6b45af
MS
2369
2370 PR c++/71675
2371 * c-common.c (resolve_overloaded_builtin): Avoid converting
2372 __atomic_compare_exchange_n return type to that of what its
2373 first argument points to.
2374
e3fe09c1
UB
23752016-07-22 Uros Bizjak <ubizjak@gmail.com>
2376
2377 * c-common.c: Use HOST_WIDE_INT_M1U instead of
2378 ~(unsigned HOST_WIDE_INT) 0.
2379
bc91c436
ML
23802016-07-22 Martin Liska <mliska@suse.cz>
2381
2382 PR gcov-profile/69028
2383 PR gcov-profile/62047
2384 * cilk.c (create_cilk_helper_decl): Set location of a new decl
2385 to the current_function_decl.
2386
451dcc66
JM
23872016-07-21 Jason Merrill <jason@redhat.com>
2388
2389 PR c++/65168
2390 * c-common.c (c_common_truthvalue_conversion): Check
2391 c_inhibit_evaluation_warnings for warning about address of
2392 reference.
2393
de6a69ee
DM
23942016-07-20 David Malcolm <dmalcolm@redhat.com>
2395
2396 * c-common.h (lookup_name_fuzzy): Convert return type from tree to
2397 const char *.
2398
d022c55a
JM
23992016-07-15 Jason Merrill <jason@redhat.com>
2400
2401 * c-opts.c (c_common_post_options): Update -fabi-version default to 11.
2402
ddbbcb19
JJ
24032016-07-15 Jakub Jelinek <jakub@redhat.com>
2404
2405 PR c/71858
2406 * c-common.h (enum lookup_name_fuzzy_kind): Add
2407 FUZZY_LOOKUP_FUNCTION_NAME.
2408
d0cf395a
JM
24092016-07-08 Jason Merrill <jason@redhat.com>
2410
2411 P0145: Refining Expression Order for C++.
2412 * c.opts (-fargs-in-order): Rename to -fstrong-eval-order.
2413 * c-opts.c: Adjust.
2414
98d44e93
MT
24152016-07-05 Markus Trippelsdorf <markus@trippelsdorf.de>
2416
2417 PR c++/71214
2418 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.
2419
f9d8d994
TS
24202016-06-29 Thomas Schwinge <thomas@codesourcery.com>
2421
2422 * c-pragma.h (enum pragma_kind): Rename
2423 PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE. Adjust all
2424 users.
2425
4aa83879
RB
24262016-06-29 Richard Biener <rguenther@suse.de>
2427
2428 PR middle-end/71002
2429 * c-common.c (c_common_get_alias_set): Remove union type punning case.
2430
a25bd9e6
JM
24312016-06-24 Jason Merrill <jason@redhat.com>
2432
2433 P0145R2: Refining Expression Order for C++.
2434 * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of
2435 MODIFY_EXPR.
2436
a86451b9
JJ
24372016-06-24 Jakub Jelinek <jakub@redhat.com>
2438
2439 * c-common.c (check_builtin_function_arguments): Require last
2440 argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type.
2441 Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW
2442 if the last argument is pointer to enumerated or boolean type.
2443
1a4f11c8
DM
24442016-06-22 David Malcolm <dmalcolm@redhat.com>
2445
2446 PR c/70339
2447 * c-common.h (enum lookup_name_fuzzy_kind): New enum.
2448 (lookup_name_fuzzy): New prototype.
2449
fe55692c
JDA
24502016-06-21 John David Anglin <danglin@gcc.gnu.org>
2451
2452 * c-common.c (get_source_date_epoch): Use int64_t instead of long long.
2453
4eb24e01
JM
24542016-06-14 Jason Merrill <jason@redhat.com>
2455
2456 P0145R2: Refining Expression Order for C++.
2457 * c.opt (fargs-in-order): New.
2458 * c-opts.c (c_common_post_options): Adjust flag_args_in_order.
2459
ef7cf206
JJ
24602016-06-13 Jakub Jelinek <jakub@redhat.com>
2461
0dda258b
JJ
2462 PR sanitizer/71498
2463 * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
2464 all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.
2465
ef7cf206
JJ
2466 PR preprocessor/71183
2467 * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch
2468 to cb_get_source_date_epoch.
2469
50b15873
JJ
24702016-06-10 Jakub Jelinek <jakub@redhat.com>
2471
2472 PR c/68657
2473 * c.opt (Wpsabi): Add Warning flag.
2474
4d926e34
MS
24752016-06-10 Martin Sebor <msebor@redhat.com>
2476
2477 PR c/71392
14ec014e 2478 * c-common.c (handle_nonnull_attribute): Accept
4d926e34
MS
2479 the nonnull attribute in type-generic builtins.
2480
e01b4e16
MS
24812016-06-09 Martin Sebor <msebor@redhat.com>
2482
2483 PR c/70883
2484 * c-common.c (builtin_function_validate_nargs): Make text of error
2485 message consistent with others like it.
2486
44a845ca
MS
24872016-06-08 Martin Sebor <msebor@redhat.com>
2488 Jakub Jelinek <jakub@redhat.com>
2489
2490 PR c++/70507
2491 PR c/68120
2492 * c-common.c (check_builtin_function_arguments): Handle
2493 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
2494
a80a7051
RB
24952016-06-08 Richard Biener <rguenther@suse.de>
2496
2497 * c-common.c (parse_optimize_options): Improve diagnostic messages.
2498
bfd67b47
RB
24992016-06-07 Richard Biener <rguenther@suse.de>
2500
2501 PR c/61564
2502 * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION
2503 options and warn about others.
2504
15c98b2e
ES
25052016-06-01 Eduard Sanou <dhole@openmailbox.org>
2506
2507 * c-common.c (get_source_date_epoch): Rename to
2508 cb_get_source_date_epoch.
2509 * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
2510 message when the parsing fails. Use error_at instead of fatal_error.
2511 * c-common.h (get_source_date_epoch): Rename to
2512 cb_get_source_date_epoch.
2513 * c-common.h (cb_get_source_date_epoch): Prototype.
2514 * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
2515 * c-common.h (c_omp_region_type): Remove trailing comma.
2516 * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
2517 * c-lex.c (c_lex_with_flags): Remove initialization of
2518 pfile->source_date_epoch.
2519
00631022
JJ
25202016-05-30 Jakub Jelinek <jakub@redhat.com>
2521
2522 PR c++/71349
2523 * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
2524 C_OMP_CLAUSE_SPLIT_TARGET. Put OMP_CLAUSE_NOWAIT to
2525 C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
2526 instead of C_OMP_CLAUSE_SPLIT_FOR.
2527
f17a223d
RB
25282016-05-24 Richard Biener <rguenther@suse.de>
2529
2530 PR middle-end/70434
2531 PR c/69504
2532 * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
2533 (convert_vector_to_array_for_subscript): ... this.
2534 * c-common.c (convert_vector_to_pointer_for_subscript): Use a
2535 VIEW_CONVERT_EXPR to an array type. Rename to ...
2536 (convert_vector_to_array_for_subscript): ... this.
2537
4f2e1536
MP
25382016-05-12 Marek Polacek <polacek@redhat.com>
2539
2540 PR c/70756
2541 * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
2542 size_in_bytes and pass LOC to it.
2543
d6e83a8d
MM
25442016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
2545
2546 PR c/43651
2547 * c.opt (Wduplicate-decl-specifier): New option.
2548
5c3a10fb
MP
25492016-05-11 Marek Polacek <polacek@redhat.com>
2550
2551 PR c++/71024
2552 * c-common.c (diagnose_mismatched_attributes): New function.
2553 * c-common.h (diagnose_mismatched_attributes): Declare.
2554
deef7113
MP
25552016-05-04 Marek Polacek <polacek@redhat.com>
2556
2557 * c.opt (Wdangling-else): New option.
2558
79ce98bc
MP
25592016-05-03 Marek Polacek <polacek@redhat.com>
2560
2561 PR c/70859
2562 * c-common.c (builtin_function_validate_nargs): Add location
2563 parameter. Use it.
2564 (check_builtin_function_arguments): Add location and arguments
2565 parameters. Use them.
2566 * c-common.h (check_builtin_function_arguments): Update declaration.
2567
381cdae4
RB
25682016-05-03 Richard Biener <rguenther@suse.de>
2569
2570 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
2571 allow call args to gimplify to SSA names.
2572
1d793c34
MP
25732016-05-03 Marek Polacek <polacek@redhat.com>
2574
2575 * c-common.h (enum c_omp_region_type): Remove stray comma.
2576
77886428
CP
25772016-05-02 Cesar Philippidis <cesar@codesourcery.com>
2578
2579 * c-common.h (enum c_omp_region_type): Define.
2580
697e0b28
RS
25812016-05-02 Richard Sandiford <richard.sandiford@arm.com>
2582
2583 * c-common.c (shorten_compare): Use wi::to_wide.
2584
e7ff0319
CP
25852016-04-29 Cesar Philippidis <cesar@codesourcery.com>
2586
2587 PR middle-end/70626
2588 * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
2589 * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
2590 reduction clauses in acc parallel loops.
2591
2fff3db8
MP
25922016-04-29 Marek Polacek <polacek@redhat.com>
2593
2594 PR c/70852
2595 * c-common.c (warn_for_memset): Check domain before accessing it.
2596
509063eb
DV
25972016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
2598
2599 PR/69089
2600 * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
2601 "aligned" attribute.
2602
b632761d
JM
26032016-04-28 Jason Merrill <jason@redhat.com>
2604
2605 * c-lex.c (c_common_has_attribute): Handle nodiscard.
2606
174f6622
ES
26072016-04-28 Eduard Sanou <dhole@openmailbox.org>
2608 Matthias Klose <doko@debian.org>
2609
2610 * c-common.c (get_source_date_epoch): New function, gets the environment
7365279f 2611 variable SOURCE_DATE_EPOCH and parses it as long long with error
174f6622
ES
2612 handling.
2613 * c-common.h (get_source_date_epoch): Prototype.
2614 * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
2615
6bc2bb18
RB
26162015-04-27 Ryan Burn <contact@rnburn.com>
2617
2618 PR c++/69024
2619 PR c++/68997
2620 * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
2621 (cilk_recognize_spawn): Renamed from recognize_spawn and change to
2622 external linkage.
2623 (cilk_detect_and_unwrap): Corresponding changes.
2624 (extract_free_variables): Don't extract free variables from
2625 AGGR_INIT_EXPR slot.
2626 * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
2627 (cilk_recognize_spawn): Likewise.
2628
c1e1f433
BS
26292016-04-27 Bernd Schmidt <bschmidt@redhat.com>
2630
2631 * c.opt (Wmemset-elt-size): New option.
2632 * c-common.c (warn_for_memset): New function.
2633 * c-common.h (warn_for_memset): Declare.
2634
d067e05f
JM
26352016-04-25 Jason Merrill <jason@redhat.com>
2636
2637 * c-common.c (handle_unused_attribute): Accept CONST_DECL.
2638 No longer static.
2639 * c-common.h: Declare it.
2640 * c-lex.c (c_common_has_attribute): Add maybe_unused.
2641
9aa36ae5
JM
26422016-04-22 Jason Merrill <jason@redhat.com>
2643
2644 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
2645
477d4906
IV
26462016-04-20 Ilya Verbin <ilya.verbin@intel.com>
2647
2648 PR c++/69363
2649 * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
2650 * c-common.h (c_finish_cilk_clauses): Remove declaration.
2651
fe37c7af
MM
26522016-04-18 Michael Matz <matz@suse.de>
2653
2654 * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
2655 and SET_DECL_ALIGN.
2656
23f2660f
EB
26572016-04-17 Eric Botcazou <ebotcazou@adacore.com>
2658
2659 * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
2660 (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
2661 to incomplete types.
2662 (dump_nested_type): Remove redundant tests and tidy up.
2663 (print_ada_declaration): Also set TREE_VISITED on the declaration of
2664 a type which is the typedef of an original type.
2665
1e77281b
MP
26662016-04-15 Marek Polacek <polacek@redhat.com>
2667
2668 PR c/70651
2669 * c-common.c (build_va_arg): Change two asserts into errors and return
2670 error_mark_node.
2671
b3a77f21
MP
26722016-04-13 Marek Polacek <polacek@redhat.com>
2673
2674 PR c++/70639
2675 * c-indentation.c (should_warn_for_misleading_indentation): Bail out
2676 for switch statements, too.
2677
322b8466
JM
26782016-03-28 Jason Merrill <jason@redhat.com>
2679
2680 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
2681
fbdb6baf
MP
26822016-03-23 Marek Polacek <polacek@redhat.com>
2683
2684 PR c++/69884
2685 * c.opt (Wignored-attributes): New option.
2686
5c240f4d
DM
26872016-03-22 David Malcolm <dmalcolm@redhat.com>
2688
2689 PR c/69993
2690 * c-indentation.c (warn_for_misleading_indentation): Rewrite the
2691 diagnostic text, reversing the order of the warning and note so
2692 that they appear in source order.
2693
14ba7b28
MP
26942016-03-17 Marek Polacek <polacek@redhat.com>
2695
2696 PR c/69407
2697 * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
2698 operations.
2699
08a1cadc
JM
27002016-03-14 Jason Merrill <jason@redhat.com>
2701
2aaeea19
JM
2702 * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
2703
08a1cadc
JM
2704 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
2705
c06d25bb
RB
27062016-03-09 Richard Biener <rguenther@suse.de>
2707
2708 PR c/70143
2709 * c-common.c (strict_aliasing_warning): Add back
2710 alias_sets_conflict_p check.
2711
80aac5c8
JM
27122016-03-08 Jason Merrill <jason@redhat.com>
2713
2714 * c-opts.c (set_std_cxx1z): Don't enable concepts.
2715
64b23c13
DM
27162016-03-04 David Malcolm <dmalcolm@redhat.com>
2717
2718 PR c/68187
2719 * c-indentation.c (get_visual_column): Move code to determine next
2720 tab stop to...
2721 (next_tab_stop): ...this new function.
2722 (line_contains_hash_if): Delete function.
2723 (detect_preprocessor_logic): Delete function.
2724 (get_first_nws_vis_column): New function.
2725 (detect_intervening_unindent): New function.
2726 (should_warn_for_misleading_indentation): Replace call to
2727 detect_preprocessor_logic with a call to
2728 detect_intervening_unindent.
2729
729526f5
DM
27302016-03-04 David Malcolm <dmalcolm@redhat.com>
2731
2732 PR c/68187
2733 * c-indentation.c (should_warn_for_misleading_indentation): When
2734 suppressing warnings about cases where the guard and body are on
2735 the same column, only use the first non-whitespace column in place
2736 of the guard token column when dealing with "else" clauses.
2737 When rejecting aligned BODY and NEXT, loosen the requirement
2738 from equality with the first non-whitespace of guard to simply
2739 that they not be indented relative to it.
2740
e9a35493
RB
27412016-03-04 Richard Biener <rguenther@suse.de>
2742
2743 PR c++/70054
2744 * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
2745 instead of alias_sets_conflict_p.
2746
1be56bc5
MP
27472016-03-01 Marek Polacek <polacek@redhat.com>
2748
2749 PR c++/69795
2750 * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
2751 any DECL.
2752
35886f0b
MS
27532016-02-22 Martin Sebor <msebor@redhat.com>
2754
2755 PR middle-end/69780
2756 * c-common.c (check_builtin_function_arguments): Validate and
2757 reject invalid arguments to __builtin_alloca_with_align.
2758
4246c8da
MW
27592016-02-20 Mark Wielaard <mjw@redhat.com>
2760
2761 PR c/28901
2762 * c.opt (Wunused-const-variable): Turn into Alias for...
2763 (Wunused-const-variable=): New option.
2764
268be88c
BE
27652016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
2766
2767 PR c++/69865
2768 * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
2769 here...
2770 (c_common_init_options): ...to here.
2771 (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
2772
871b3f47
JJ
27732016-02-19 Jakub Jelinek <jakub@redhat.com>
2774
2775 PR c++/69826
2776 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
2777 (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
2778 flag_preprocess_only.
2779
bf14eba2
JJ
27802016-02-16 Jakub Jelinek <jakub@redhat.com>
2781
2782 PR c/69835
2783 * c.opt (Wnonnull-compare): Enable for -Wall.
2784
ba6b3795
JJ
27852016-02-15 Jakub Jelinek <jakub@redhat.com>
2786
2787 PR c++/69797
2788 * c-common.c (sync_resolve_size): Diagnose too few arguments
2789 even when params is non-NULL empty vector.
2790
a011cd92
BS
27912016-02-08 Bernd Schmidt <bschmidt@redhat.com>
2792
2793 PR target/60410
2794 * c.opt (fshort-double): Remove.
2795
46cb9332
MS
27962016-02-05 Martin Sebor <msebor@redhat.com>
2797
2798 PR c++/69662
2799 * c.opt (Warning options): Update -Wplacement-new to take
2800 an optional argument.
2801
e1b81f2b
JJ
28022016-02-01 Jakub Jelinek <jakub@redhat.com>
2803
2804 PR preprocessor/69543
2805 PR c/69558
2806 * c-pragma.c (handle_pragma_diagnostic): Pass input_location
2807 instead of loc to control_warning_option.
2808
b6adbb9f
NS
28092016-02-01 Nathan Sidwell <nathan@codesourcery.com>
2810
2811 * c.opt (fopenacc-dim=): New option.
2812
5d70666e
RB
28132016-01-27 Ryan Burn <contact@rnburn.com>
2814
2815 PR cilkplus/69267
2816 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
2817 gimplify_arg. Removed superfluous post_p argument.
2818 * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
2819 superfluous post_p argument.
2820 * c-gimplify.c (c_gimplify_expr): Likewise.
2821
01e1dea3
DM
28222016-01-26 David Malcolm <dmalcolm@redhat.com>
2823
2824 PR other/69006
2825 * c-opts.c (c_diagnostic_finalizer): Replace invocation of
2826 pp_newline_and_flush with pp_flush.
2827
9f04a53e
MS
28282016-01-20 Martin Sebor <msebor@redhat.com>
2829
2830 PR c/69405
2831 * c-common.c (sync_resolve_size): Avoid printing diagnostic about
2832 an incompatible argument when the argument isn't a valid tree node.
2833
7f26f7df
JM
28342016-01-18 Jason Merrill <jason@redhat.com>
2835
2836 PR c++/68767
2837 * c-common.c (check_function_arguments_recurse): Fold the whole
2838 COND_EXPR, not just the condition.
2839
f62bf092
TV
28402016-01-18 Tom de Vries <tom@codesourcery.com>
2841
2842 * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
2843 classify as loop clause.
2844
e0a575ff
JJ
28452016-01-15 Jakub Jelinek <jakub@redhat.com>
2846
2847 PR bootstrap/68271
2848 * c-pragma.c (c_register_pragma_1): Adjust comment to note that
2849 C++ FE no longer has limit on number of pragmas.
2850
28512015-01-14 Ryan Burn <contact@rnburn.com>
b6e3db06
RB
2852
2853 PR c++/69048
2854 * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
c47eaca6 2855 to add missing cleanup point.
b6e3db06 2856
c7df95d8
DM
28572016-01-14 David Malcolm <dmalcolm@redhat.com>
2858
2859 PR c++/68819
2860 * c-indentation.c (get_visual_column): Add location_t param.
2861 Handle the column number being zero by effectively disabling the
2862 warning, with an "inform".
2863 (should_warn_for_misleading_indentation): Add location_t argument
2864 for all uses of get_visual_column.
2865
21efdd80
PP
28662016-01-10 Patrick Palka <ppalka@gcc.gnu.org>
2867
2868 PR c++/69029
2869 * c-indentation.c (should_warn_for_misleading_indentation):
2870 Don't warn about do-while statements.
2871
7a127fa7
MS
28722016-01-07 Martin Sebor <msebor@redhat.com>
2873
2874 PR c/68966
2875 * c-common.c (sync_resolve_size): Reject first argument when it's
2876 a pointer to _Bool.
2877
c589e975
DM
28782016-01-05 David Malcolm <dmalcolm@redhat.com>
2879
2880 PR c/69122
2881 * c-indentation.c (get_visual_column): Remove default argument.
2882 (should_warn_for_misleading_indentation): For the multiline case,
2883 update call to get_visual_column for next_stmt_exploc so that it
2884 captures the location of the first non-whitespace character in the
2885 relevant line. Don't issue warnings if there is non-whitespace
2886 before the next statement.
2887
818ab71a
JJ
28882016-01-04 Jakub Jelinek <jakub@redhat.com>
2889
2890 Update copyright years.
2891
745e411d
DM
28922015-12-21 David Malcolm <dmalcolm@redhat.com>
2893
2894 * c-common.c (binary_op_error): Convert first param from
2895 location_t to rich_location * and use it when emitting an error.
2896 * c-common.h (binary_op_error): Convert first param from
2897 location_t to rich_location *.
2898
de67c4c3
DM
28992015-12-16 David Malcolm <dmalcolm@redhat.com>
2900
2901 * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
2902 * c-lex.c (conflict_marker_get_final_tok_kind): New function.
2903
4a38b02b
IV
29042015-12-15 Ilya Verbin <ilya.verbin@intel.com>
2905
2906 * c-common.c (c_common_attribute_table): Handle "omp declare target
2907 link" attribute.
2908
54d62f51
JJ
29092015-12-14 Jakub Jelinek <jakub@redhat.com>
2910
2911 PR c/68833
2912 * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
2913
8d4227c8
TB
29142014-12-12 Tobias Burnus <burnus@net-b.de>
2915
2916 PR fortran/68815
2917 * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
2918 specifiers (%d, %i,%u and %c).
2919
f6069ccc
DM
29202015-12-10 David Malcolm <dmalcolm@redhat.com>
2921
2922 * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
2923
63bbf46d
JJ
29242015-12-08 Jakub Jelinek <jakub@redhat.com>
2925
2926 PR c/48088
2927 PR c/68657
2928 * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
2929 * c-pragma.c (handle_pragma_diagnostic): Adjust
2930 control_warning_option caller.
2931
f79520bb
DM
29322015-12-07 David Malcolm <dmalcolm@redhat.com>
2933
2934 * c-common.c (c_cpp_error): Update for change to
2935 rich_location::set_range.
2936
b3d5bc62
JJ
29372015-12-04 Paolo Bonzini <bonzini@gnu.org>
2938
2939 * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
2940 shifting 1 out of the sign bit.
2941
29422015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
2943
2944 * c-common.c (c_common_attribute_table[]): Update max arguments
2945 count for "simd" attribute.
2946 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
2947
6eb4a537
JJ
29482015-12-03 Jakub Jelinek <jakub@redhat.com>
2949
2950 PR preprocessor/57580
2951 * c-ppoutput.c (print): Change printed field to bool.
2952 Move src_file last for smaller padding.
2953 (init_pp_output): Set print.printed to false instead of 0.
2954 (scan_translation_unit): Fix up formatting. Set print.printed
2955 to true after printing something other than newline.
2956 (scan_translation_unit_trad): Set print.printed to true instead of 1.
2957 (maybe_print_line_1): Set print.printed to false instead of 0.
2958 (print_line_1): Likewise.
2959 (do_line_change): Set print.printed to true instead of 1.
2960 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
2961 dump_macro): Set print.printed to false after printing newline.
2962
4250754e
JM
29632015-12-02 Jason Merrill <jason@redhat.com>
2964
f479b43d
JM
2965 * c-common.c (fold_for_warn): New.
2966 (warn_logical_operator, warn_tautological_cmp)
2967 (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
2968
4250754e
JM
2969 * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
2970 (c_fully_fold_internal, decl_constant_value_for_optimization):
2971 Move to c/c-fold.c.
2972 * c-common.h: Don't declare decl_constant_value_for_optimization.
2973
e9e32ee6
JM
29742015-12-02 Joseph Myers <joseph@codesourcery.com>
2975
2976 PR c/68162
2977 * c-common.h (c_build_qualified_type): Add extra default
2978 arguments.
2979
37d5ad46
JB
29802015-12-01 Julian Brown <julian@codesourcery.com>
2981 Cesar Philippidis <cesar@codesourcery.com>
2982 James Norris <James_Norris@mentor.com>
2983
2984 * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
2985 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
2986 (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
2987
f07862c7
EB
29882015-11-30 Eric Botcazou <ebotcazou@adacore.com>
2989
2990 * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
2991 (decl_sloc_common): Delete and move bulk of processing to...
2992 (decl_sloc): ...here.
2993 (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
2994 (dump_ada_double_name): Remove S parameter and compute the suffix.
2995 (dump_ada_array_type): Add PARENT parameter. Simplify computation of
2996 element type and deal with an anonymous one.
2997 (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
2998 (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type
2999 and remove reference to QUAL_UNION_TYPE.
3000 (dump_nested_types): Make 2 passes on the fields and move bulk to...
3001 (dump_nested_type): ...here. New function extracted from above.
3002 Generate a full declaration for anonymous element type of arrays.
3003 (print_ada_declaration): Really skip anonymous declarations. Remove
3004 references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type.
3005 Clean up processing of declarations of array types and objects.
3006 (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
3007 Remove obsolete code and tidy up.
3008
75c8aac3
JH
30092015-11-29 Jan Hubicka <hubicka@ucw.cz>
3010
3011 PR c/67581
3012 * c-common.c (handle_transparent_union_attribute): Update
3013 also type variants.
3014
b58d3df2
ML
30152015-11-27 Martin Liska <mliska@suse.cz>
3016
3017 PR c++/68312
3018 * array-notation-common.c (cilkplus_extract_an_triplets):
3019 Release vector of vectors.
3020 * cilk.c (gimplify_cilk_spawn): Free allocated memory.
3021
89a01fcf
EB
30222015-11-26 Eric Botcazou <ebotcazou@adacore.com>
3023
3024 PR c++/68527
3025 * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
3026 (print_ada_struct_decl): Likewise.
3027
cc5c5226
IZ
30282015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
3029
3030 PR c++/68001
3031 * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
3032 * cilk.c (recognize_spawn): Determine location in a more precise
3033 way.
3034
269adb9d
JM
30352015-11-19 Jason Merrill <jason@redhat.com>
3036
3037 * c-common.c (shorten_compare): But look through macros from
3038 system headers.
3039
d0eccfcd
JM
30402015-11-18 Jason Merrill <jason@redhat.com>
3041
3042 * c-common.c (shorten_compare): Don't -Wtype-limits if the
3043 non-constant operand comes from a macro.
3044
3e44547c
JM
30452015-11-17 Jason Merrill <jason@redhat.com>
3046
3047 PR bootstrap/68346
3048 * c-common.c (warn_tautological_cmp): Fold before checking for
3049 constants.
3050
0f62c7a0
MP
30512015-11-16 Marek Polacek <polacek@redhat.com>
3052
3053 PR c++/68362
3054 * c-common.c (check_case_bounds): Fold low and high cases.
3055
a868811e
MP
30562015-11-16 Marek Polacek <polacek@redhat.com>
3057
3058 * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
3059 * c-common.c (c_common_get_alias_set): Likewise.
3060 (handle_visibility_attribute): Likewise.
3061
fff77217
KY
30622015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
3063
3064 * c-common.c (handle_simd_attribute): New.
3065 (struct attribute_spec): Add entry for "simd".
3066 (handle_simd_attribute): New.
3067
269e63b7
KT
30682015-11-13 Kai Tietz <ktietz70@googlemail.com>
3069
3070 * c-lex.c (interpret_float): Use fold_convert.
3071
ebedc9a3
DM
30722015-11-13 David Malcolm <dmalcolm@redhat.com>
3073
3074 * c-common.c (c_fully_fold_internal): Capture existing souce_range,
3075 and store it on the result.
3076 * c-opts.c (c_common_init_options): Set
3077 global_dc->colorize_source_p.
3078
6e232ba4
JN
30792015-11-12 James Norris <jnorris@codesourcery.com>
3080 Joseph Myers <joseph@codesourcery.com>
3081
7365279f 3082 * c-pragma.c (oacc_pragmas): Add entry for declare directive.
6e232ba4
JN
3083 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
3084 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
3085 PRAGMA_OACC_CLAUSE_LINK.
3086
e78bede6
MP
30872015-11-11 Marek Polacek <polacek@redhat.com>
3088
3089 PR c/68107
3090 PR c++/68266
3091 * c-common.c (valid_array_size_p): New function.
3092 * c-common.h (valid_array_size_p): Declare.
3093
3f8257db 30942015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
4ac93c7c
DH
3095
3096 PR bootstrap/68271
3097 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
3098
69f293c9
AM
30992015-11-11 Andrew MacLeod <amacleod@redhat.com>
3100
3101 * array-notation-common.c: Remove unused header files.
3102 * c-ada-spec.c: Likewise.
3103 * c-cilkplus.c: Likewise.
3104 * c-common.c: Likewise.
3105 * c-cppbuiltin.c: Likewise.
3106 * c-dump.c: Likewise.
3107 * c-format.c: Likewise.
3108 * c-gimplify.c: Likewise.
3109 * c-indentation.c: Likewise.
3110 * c-lex.c: Likewise.
3111 * c-omp.c: Likewise.
3112 * c-opts.c: Likewise.
3113 * c-pch.c: Likewise.
3114 * c-ppoutput.c: Likewise.
3115 * c-pragma.c: Likewise.
3116 * c-pretty-print.c: Likewise.
3117 * c-semantics.c: Likewise.
3118 * c-ubsan.c: Likewise.
3119 * cilk.c: Likewise.
3120 * stub-objc.c: Likewise.
3121
3a40d81d
NS
31222015-11-09 Thomas Schwinge <thomas@codesourcery.com>
3123 Cesar Philippidis <cesar@codesourcery.com>
3124 James Norris <jnorris@codesourcery.com>
3125 Julian Brown <julian@codesourcery.com>
3126 Nathan Sidwell <nathan@codesourcery.com>
3127
3128 * c-pragma.c (oacc_pragmas): Add "routine".
3129 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
3130
ee45a32d
EB
31312015-11-08 Eric Botcazou <ebotcazou@adacore.com>
3132
3133 * c-common.c (c_common_attributes): Add scalar_storage_order.
3134 (handle_scalar_storage_order_attribute): New function.
3135 * c-pragma.c (global_sso): New variable.
3136 (maybe_apply_pragma_scalar_storage_order): New function.
3137 (handle_pragma_scalar_storage_order): Likewise.
3138 (init_pragma): Register scalar_storage_order.
3139 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
3140 * c.opt (Wscalar-storage-order): New warning.
3141 (fsso-struct=): New option.
3142
eb11eb15
MS
31432015-11-08 Martin Sebor <msebor@redhat.com>
3144
3145 * c.opt (Wplacement-new): Add a period to the end of a sentence.
3146
0aad0198
RS
31472015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3148
3149 * c-common.c: Don't undef DEF_BUILTIN.
3150
8a645150
DM
31512015-11-06 David Malcolm <dmalcolm@redhat.com>
3152
3153 * c-common.c (c_cpp_error): Convert parameter from location_t to
3154 rich_location *. Eliminate the "column_override" parameter and
3155 the call to diagnostic_override_column.
3156 Update the "done_lexing" clause to set range 0
3157 on the rich_location, rather than overwriting a location_t.
3158 * c-common.h (c_cpp_error): Convert parameter from location_t to
3159 rich_location *. Eliminate the "column_override" parameter.
3160
7a5e4956
CP
31612015-11-05 Cesar Philippidis <cesar@codesourcery.com>
3162 Thomas Schwinge <thomas@codesourcery.com>
3163 James Norris <jnorris@codesourcery.com>
3164
3165 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
3166 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
3167 clauses with parallel and kernels and loops.
3168 * c-pragma.h (enum pragma_omp_clause): Add entries for
3169 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
3170 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
3171 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
3172 INDEPENDENT,SEQ}.
3173 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
3174
e2f5cc96
MS
31752015-11-05 Martin Sebor <msebor@redhat.com>
3176
3177 PR c++/67942
3178 * c.opt (-Wplacement-new): New option.
3179
e01d41e5
JJ
31802015-11-05 Jakub Jelinek <jakub@redhat.com>
3181
3182 * c-common.h (c_finish_omp_atomic): Add TEST argument.
3183 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
3184 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
3185 save_expr or create_tmp_var* if TEST is true.
3186 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
3187 Don't call add_stmt here.
3188 (struct c_omp_check_loop_iv_data): New type.
3189 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
3190 c_omp_check_loop_iv_exprs): New functions.
3191 (c_omp_split_clauses): Adjust for lastprivate being allowed on
3192 distribute.
3193 (c_omp_declare_simd_clauses_to_numbers): Change
3194 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
3195 (c_omp_declare_simd_clauses_to_decls): Similarly change those
3196 from numbers to PARM_DECLs.
3197
595278be
MM
31982015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
3199
3200 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
3201 flag_checking.
3202
3f8257db 32032015-11-03 Bernd Schmidt <bschmidt@redhat.com>
c85158de
MS
3204
3205 PR c++-common/67882
b3d5bc62
JJ
3206 * c-common.h (fold_offsetof_1): Add argument.
3207 * c-common.c (fold_offsetof_1): Diagnose more invalid
c85158de
MS
3208 offsetof expressions that reference elements past the end of
3209 an array.
3210
4bf9e5a8
TS
32112015-11-03 Thomas Schwinge <thomas@codesourcery.com>
3212 Chung-Lin Tang <cltang@codesourcery.com>
3213
3214 * c-pragma.c (oacc_pragmas): Add "atomic".
3215 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
3216
3b1661a9
ES
32172015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
3218
3219 * c-common.c (handle_target_clones_attribute): New.
3220 (c_common_attribute_table): Add handle_target_clones_attribute.
3221 (handle_always_inline_attribute): Add check on target_clones attribute.
3222 (handle_target_attribute): Ditto.
3223
2adfab87
AM
32242015-10-29 Andrew MacLeod <amacleod@redhat.com>
3225
3226 * array-notation-common.c: Reorder #include's and remove duplicates.
3227 * c-ada-spec.c: Likewise.
3228 * c-cilkplus.c: Likewise.
3229 * c-common.c: Likewise.
3230 * c-cppbuiltin.c: Likewise.
3231 * c-dump.c: Likewise.
3232 * c-format.c: Likewise.
3233 * c-gimplify.c: Likewise.
3234 * c-indentation.c: Likewise.
3235 * c-lex.c: Likewise.
3236 * c-omp.c: Likewise.
3237 * c-opts.c: Likewise.
3238 * c-pch.c: Likewise.
3239 * c-ppoutput.c: Likewise.
3240 * c-pragma.c: Likewise.
3241 * c-pretty-print.c: Likewise.
3242 * c-semantics.c: Likewise.
3243 * c-ubsan.c: Likewise.
3244 * cilk.c: Likewise.
3245 * stub-objc.c: Likewise.
3246
d90ec4f2
JM
32472015-10-28 Jason Merrill <jason@redhat.com>
3248
3249 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
3250
88bae6f4
TS
32512015-10-27 Thomas Schwinge <thomas@codesourcery.com>
3252 James Norris <jnorris@codesourcery.com>
3253 Cesar Philippidis <cesar@codesourcery.com>
3254
3255 PR c/64765
3256 PR c/64880
3257 * c-common.h (c_oacc_split_loop_clauses): Declare function.
3258 * c-omp.c (c_oacc_split_loop_clauses): New function.
3259
b1726d6c
MS
32602015-10-21 Martin Sebor <msebor@redhat.com>
3261
3262 PR driver/68043
3263 * c.opt: End each sentence that describes an option with a period.
3264
fa60eeb9
MP
32652015-10-20 Marek Polacek <polacek@redhat.com>
3266
3267 * array-notation-common.c (is_cilkplus_vector_p): Define.
3268 * c-common.h (is_cilkplus_vector_p): Declare.
3269
95979049
MP
32702015-10-20 Marek Polacek <polacek@redhat.com>
3271
3272 * c.opt (std=gnu++11): Do not describe as experimental.
3273 (std=gnu++14): Likewise.
3274
2a9fb712
JM
32752015-10-19 Jason Merrill <jason@redhat.com>
3276
3277 * c-cppbuiltin.c (c_cpp_builtins): Define
3278 __cpp_nontype_template_args.
3279
13b380a3
JM
32802015-10-19 Jason Merrill <jason@redhat.com>
3281
3282 * c-cppbuiltin.c (c_cpp_builtins): Define
3283 __cpp_enumerator_attributes, __cpp_fold_expressions,
3284 __cpp_unicode_characters.
3285
d9a6bd32
JJ
32862015-10-13 Jakub Jelinek <jakub@redhat.com>
3287 Aldy Hernandez <aldyh@redhat.com>
3288
3289 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
3290 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
3291 (c_define_builtins): Likewise.
3292 * c-common.h (enum c_omp_clause_split): Add
3293 C_OMP_CLAUSE_SPLIT_TASKLOOP.
3294 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
3295 (c_finish_omp_for): Add ORIG_DECLV argument.
3296 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
3297 201511 instead of 201307.
3298 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
3299 OMP_CRITICAL_CLAUSES to it.
3300 (c_finish_omp_ordered): Add CLAUSES argument, set
3301 OMP_ORDERED_CLAUSES to it.
3302 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
3303 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
3304 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
3305 constructs and new OpenMP 4.5 clauses. Clear
3306 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
3307 verification code.
3308 * c-pragma.c (omp_pragmas_simd): Add taskloop.
3309 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
3310 (enum pragma_omp_clause): Add
3311 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
3312 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
3313
624d31fe
RS
33142015-10-05 Richard Sandiford <richard.sandiford@arm.com>
3315
3316 * c-lex.c (interpret_float): Use real_equal instead of
3317 REAL_VALUES_EQUAL.
3318
b8fd7909
JM
33192015-10-04 Jason Merrill <jason@redhat.com>
3320
3321 Implement N4514, C++ Extensions for Transactional Memory.
3322 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
3323 (c_common_attribute_table): Add transaction_safe_dynamic.
3324 transaction_safe now affects type identity.
3325 (handle_tm_attribute): Handle transaction_safe_dynamic.
3326 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
3327 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
3328 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
3329 (D_TRANSMEM): New.
3330 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
3331 * c-pretty-print.c (pp_c_attributes_display): Don't print
3332 transaction_safe in C++.
3333
12651878
MP
33342015-10-02 Marek Polacek <polacek@redhat.com>
3335
3336 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
3337
3e3b8d63
MP
33382015-10-02 Marek Polacek <polacek@redhat.com>
3339
3340 PR c/64249
3341 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
3342 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
3343 * c.opt (Wduplicated-cond): New option.
3344
0d1a8f75
JM
33452015-10-01 Joseph Myers <joseph@codesourcery.com>
3346
3347 * c.opt (std=c11): Do not describe as experimental.
3348 (std=gnu11): Likewise.
3349 (std=iso9899:2011): Likewise.
3350
3e32ee19
NS
33512015-09-28 Nathan Sidwell <nathan@codesourcery.com>
3352
3353 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
3354 (DEF_FUNCTION_TYPE_VAR_11): Delete.
3355
974348ee
MP
33562015-09-25 Marek Polacek <polacek@redhat.com>
3357
3358 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
3359 (ubsan_instrument_shift): Likewise.
3360
15dbc1a6
MP
33612015-09-25 Marek Polacek <polacek@redhat.com>
3362
3363 PR sanitizer/64906
3364 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
3365
6b95d7cc
PP
33662015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
3367
3368 * c-indentation.c (should_warn_for_misleading_indentation):
3369 Compare next_stmt_vis_column with guard_line_first_nws instead
3370 of with guard_line_vis_column.
3371
c1822f9c
MLI
33722015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
3373
3374 PR c/49654
3375 PR c/49655
3376 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
3377 options and options not valid for the current language.
3378
d5398058
PP
33792015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
3380
3381 * c-indentation.c (should_warn_for_misleading_indentation):
3382 Float out and consolidate the calls to get_visual_column that
3383 are passed guard_exploc as an argument. Compare
3384 next_stmt_vis_column with guard_line_first_nws instead of with
3385 body_line_first_nws.
3386
6b333269
NS
33872015-09-22 Nathan Sidwell <nathan@codesourcery.com>
3388
3389 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
3390 Wnamespaces): New C++ warnings.
3391
a75f1574
JM
33922015-09-22 Jason Merrill <jason@redhat.com>
3393
3394 * c-common.h (abi_compat_version_crosses): New.
3395 (warn_abi_version): Declare.
3396 * c-common.c: Define it.
3397 * c-opts.c (c_common_post_options): Handle it.
3398 flag_abi_compat_version defaults to 8.
3399
bdaaa8b7
VV
34002015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
3401
3402 Complete the implementation of N4230, Nested namespace definition.
3403 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
3404 __cpp_nested_namespace_definitions.
3405
eaa797e8
MLI
34062015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
3407
3408 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
3409
c4914de6
MLI
34102015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
3411
3412 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
3413 when warning.
3414 * c-pragma.h (pragma_lex): Add optional loc argument.
3415
fcb87c50
MM
34162015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
3417
3418 * c-format.c (check_format_arg): Adjust to use common block size in all
3419 object pools.
3420
31bdd08a
DM
34212015-09-15 David Malcolm <dmalcolm@redhat.com>
3422
3423 * c-format.c (location_from_offset): Update for change in
3424 signature of location_get_source_line.
3425 * c-indentation.c (get_visual_column): Likewise.
3426 (line_contains_hash_if): Likewise.
3427
aa9f4b4c
MP
34282015-09-14 Marek Polacek <polacek@redhat.com>
3429
3430 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
3431 setting various warnings.
3432
aa256c4a
MP
34332015-09-14 Marek Polacek <polacek@redhat.com>
3434
3435 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
3436 a negative value.
3437
0f876f22
MW
34382015-09-11 Mark Wielaard <mjw@redhat.com>
3439
3440 PR c/28901
3441 * c.opt (Wunused-variable): Option from common.opt.
3442 (Wunused-const-variable): New option.
3443
273aa49e
PC
34442015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
3445
3446 PR c++/53184
3447 * c.opt ([Wsubobject-linkage]): Add.
3448
1807ffc1
MS
34492015-09-03 Martin Sebor <msebor@redhat.com>
3450
3451 PR c/66516
3452 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
3453 functions.
3454 * c-common.c (reject_gcc_builtin): Define.
3455
38942840
BI
34562015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
3457
3458 PR middle-end/60586
3459 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
3460 prototype.
3461 * c-gimplify.c (c_gimplify_expr): Added a call to the function
3462 cilk_gimplify_call_params_in_spawned_fn.
3463 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
3464 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
3465 unwrapping.
3466
c316b5e4
MP
34672015-08-25 Marek Polacek <polacek@redhat.com>
3468
3469 PR middle-end/67330
3470 * c-common.c (handle_weak_attribute): Don't check whether the
3471 visibility can be changed here.
3472
584a7c46
MLI
34732015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
3474
3475 * c-lex.c (c_lex_with_flags): Use explicit locations.
3476
a79683d5
TS
34772015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
3478
3479 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
3480 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
3481
61717a45
FXC
34822015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3483
3484 PR middle-end/36757
3485 * c-common.c (check_builtin_function_arguments): Add check
3486 for BUILT_IN_SIGNBIT argument.
3487
329524f5
PC
34882015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
3489
3490 PR c++/67160
3491 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
3492 in c++1z mode.
3493
4ee55665
MP
34942015-08-17 Marek Polacek <polacek@redhat.com>
3495
3496 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
3497 with whitespaces before qualifier names.
3498
b893e375
MP
34992015-08-12 Marek Polacek <polacek@redhat.com>
3500
3501 PR c++/55095
3502 * c-common.c (maybe_warn_shift_overflow): Properly handle
3503 left-shifting 1 into the sign bit.
3504
c2d89095
MLI
35052015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3506
3507 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
3508
971e17ff
AS
35092015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
3510 Braden Obrzut <admin@maniacsvault.net>
3511 Jason Merrill <jason@redhat.com>
3512
3513 Add C++ Concepts TS support.
3514 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
3515 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
3516 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
3517 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
3518 * c-opts.c (set_std_cxx1z): Set flag_concepts.
3519 * c.opt (fconcepts): New.
3520
b3d5bc62
JJ
35212015-08-02 Martin Sebor <msebor@redhat.com>
3522
3523 * c.opt (-Wframe-address): New warning option.
3524
8ebca419
PP
35252015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
3526
3527 * c-indentation.c (should_warn_for_misleading_indentation):
3528 Improve heuristics.
3529
1a1e101f
PP
35302015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
3531
3532 * c-indentation.c (get_visual_column): Add parameter first_nws,
3533 use it. Update comment documenting the function.
3534 (is_first_nonwhitespace_on_line): Remove.
3535 (should_warn_for_misleading_indentation): Replace usage of
3536 of is_first_nonwhitespace_on_line with get_visual_column.
3537
992118a1
PP
35382015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
3539
3540 * c-indentation.h (struct token_indent_info): Define.
3541 (get_token_indent_info): Define.
3542 (warn_for_misleading_information): Declare.
3543 * c-common.h (warn_for_misleading_information): Remove.
3544 * c-identation.c (warn_for_misleading_indentation):
3545 Change declaration to take three token_indent_infos. Adjust
3546 accordingly.
3547 * c-identation.c (should_warn_for_misleading_indentation):
3548 Likewise. Bail out early if the body is a compound statement.
3549 (guard_tinfo_to_string): Define.
3550
e8fa3817
JM
35512015-07-30 Jason Merrill <jason@redhat.com>
3552
3553 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
3554 '*' for reference decay.
3555
173864e8
MP
35562015-07-30 Marek Polacek <polacek@redhat.com>
3557
3558 * c-common.c (warn_tautological_cmp): Bail for float types.
3559
f2afe6dd
MP
35602015-07-27 Marek Polacek <polacek@redhat.com>
3561
3562 PR bootstrap/67030
3563 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
3564
05b28fd6
MP
35652015-07-27 Marek Polacek <polacek@redhat.com>
3566
3567 PR c++/66555
3568 PR c/54979
3569 * c-common.c (find_array_ref_with_const_idx_r): New function.
3570 (warn_tautological_cmp): New function.
3571 * c-common.h (warn_tautological_cmp): Declare.
3572 * c.opt (Wtautological-compare): New option.
3573
5a5062b8
MP
35742015-07-23 Marek Polacek <polacek@redhat.com>
3575
3576 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
3577 (ubsan_instrument_shift): Likewise.
3578
dc891fe7
MP
35792015-07-23 Marek Polacek <polacek@redhat.com>
3580
3581 PR sanitizer/66908
3582 * c-ubsan.c: Include gimplify.h.
3583 (ubsan_instrument_division): Unshare OP0 and OP1.
3584 (ubsan_instrument_shift): Likewise.
3585
451b5e48
MP
35862015-07-20 Marek Polacek <polacek@redhat.com>
3587 Richard Sandiford <richard.sandiford@arm.com>
3588
3589 PR c++/55095
3590 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
3591 Use EXPR_LOC_OR_LOC.
3592 (maybe_warn_shift_overflow): New function.
3593 * c-common.h (maybe_warn_shift_overflow): Declare.
3594 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
3595 * c.opt (Wshift-overflow): New option.
3596
fb0b2914
ML
35972015-07-16 Martin Liska <mliska@suse.cz>
3598
3599 * c-format.c (static void check_format_info_main): Use
3600 object_allocator instead of pool_allocator.
3601 (check_format_arg): Likewise.
3602 (check_format_info_main): Likewise.
3603
903f5c23
AM
36042015-07-15 Andrew MacLeod <amacleod@redhat.com>
3605
3606 * c-opts.c: Remove multiline #include comment.
3607
026c3cfd
AH
36082015-07-12 Aldy Hernandez <aldyh@redhat.com>
3609
3610 * c-common.c: Fix double word typos.
3611
bb49ee66
EB
36122015-07-10 Eric Botcazou <ebotcazou@adacore.com>
3613
3614 * c-ada-spec.h (cpp_operation): Revert latest change.
3615 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
3616 constructors and destructors.
3617
1916bcb5
AM
36182015-07-09 Andrew MacLeod <amacleod@redhat.com>
3619
3620 * c-common.h: Adjust includes for flags.h changes.
3621 * stub-objc.c: Likewise.
026c3cfd 3622
a9dcd529
EB
36232015-07-08 Eric Botcazou <ebotcazou@adacore.com>
3624
3625 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
3626 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
3627
b03b462f
JJ
36282015-07-08 Jakub Jelinek <jakub@redhat.com>
3629
3630 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
3631 are to be removed, return NULL rather than original clauses list.
3632
c7131fb2
AM
36332015-07-07 Andrew MacLeod <amacleod@redhat.com>
3634
3635 * array-notation-common.c: Adjust includes.
3636 * c-ada-spec.c: Likewise.
3637 * c-cilkplus.c: Likewise.
3638 * c-common.h: Likewise.
3639 * c-cppbuiltin.c: Likewise.
3640 * c-dump.c: Likewise.
3641 * c-format.c: Likewise.
3642 * c-gimplify.c: Likewise.
3643 * c-indentation.c: Likewise.
3644 * c-lex.c: Likewise.
3645 * c-omp.c: Likewise.
3646 * c-opts.c: Likewise.
3647 * c-pch.c: Likewise.
3648 * c-ppoutput.c: Likewise.
3649 * c-pragma.c: Likewise.
3650 * c-pretty-print.c: Likewise.
3651 * c-semantics.c: Likewise.
3652 * c-ubsan.c: Likewise.
3653 * cilk.c: Likewise.
3654 * stub-objc.c: Likewise.
3655
2a7fb83f
EB
36562015-07-07 Eric Botcazou <ebotcazou@adacore.com>
3657
3658 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
3659 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
3660
a03c9bf1
JM
36612015-07-01 Jason Merrill <jason@redhat.com>
3662
36a85135
JM
3663 * c-common.h (D_CXX11): Rename from D_CXX0X.
3664 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
3665 * c-common.c: Adjust.
3666
e7fa68d5
JM
3667 * c-opts.c (c_common_post_options): Default to C++14.
3668
a03c9bf1
JM
3669 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
3670
fe95b036
ESR
36712015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
3672
3673 Implement N4197 - Adding u8 character literals
b3d5bc62 3674 * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
a64be36b 3675 CPP_CHAR.
b3d5bc62 3676 * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
a64be36b 3677 CPP_UTF8CHAR_USERDEF tokens.
b3d5bc62 3678 * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
a64be36b
EB
3679 and CPP_UTF8CHAR tokens.
3680 (lex_charconst): Treat CPP_UTF8CHAR token.
fe95b036 3681
da2e71c9
MLI
36822015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3683
3684 PR fortran/66605
3685 * c-common.c (do_warn_unused_parameter): Move here.
3686 * c-common.h (do_warn_unused_parameter): Declare.
3687
b155cfd9
MP
36882015-06-29 Marek Polacek <polacek@redhat.com>
3689
3690 PR c/66322
3691 * c-common.c (check_case_bounds): Add bool * parameter. Set
3692 OUTSIDE_RANGE_P.
3693 (c_add_case_label): Add bool * parameter. Pass it down to
3694 check_case_bounds.
3695 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
3696 warning here.
3697 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
3698 declarations.
3699
31521951
MP
37002015-06-27 Marek Polacek <polacek@redhat.com>
3701
3702 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
3703 or VECTOR_INTEGER_TYPE_P throughout.
3704 * c-gimplify.c: Likewise.
3705
22d03525
MP
37062015-06-26 Marek Polacek <polacek@redhat.com>
3707
3708 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
3709 * c-common.c (c_fully_fold_internal): Likewise.
3710 (c_alignof_expr): Likewise.
3711 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
3712 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
b1726d6c 3713 * cilk.c (create_parm_list): Likewise.
22d03525 3714
af05e6e5
MP
37152015-06-26 Marek Polacek <polacek@redhat.com>
3716
3717 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
3718
f0889939
AM
37192015-06-25 Andrew MacLeod <amacleod@redhat.com>
3720
3721 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
3722 * c-gimplify.c: Likewise.
3723 * c-pragma.c: Likewise.
3724 * c-ubsan.c: Likewise.
3725 * cilk.c: Likewise.
3726
ca752f39
RS
37272015-06-25 Richard Sandiford <richard.sandiford@arm.com>
3728
3729 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
3730 ggc_hasher.
3731
16a16ec7
AM
37322015-06-25 Andrew MacLeod <amacleod@redhat.com>
3733
3734 * cilk.c: Move calls.h after tm.h in the include chain.
3735
0ae9bd27
MP
37362015-06-25 Marek Polacek <polacek@redhat.com>
3737
3738 * array-notation-common.c: Use VAR_P throughout.
3739 * c-ada-spec.c: Likewise.
3740 * c-common.c: Likewise.
3741 * c-format.c: Likewise.
3742 * c-gimplify.c: Likewise.
3743 * c-omp.c: Likewise.
3744 * c-pragma.c: Likewise.
3745 * c-pretty-print.c: Likewise.
3746 * cilk.c: Likewise.
3747
62f9079a
MP
37482015-06-25 Marek Polacek <polacek@redhat.com>
3749
3750 * cilk.c (extract_free_variables): Use is_global_var.
3751
0fa16060
RS
37522015-06-23 Richard Sandiford <richard.sandiford@arm.com>
3753
3754 * c-common.c: Don't include target-def.h.
3755
a68ae2e1
MP
37562015-06-23 Marek Polacek <polacek@redhat.com>
3757
3758 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
3759 when comparing INTEGER_CSTs.
3760
c6a2f2d9
PMR
37612015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
3762
3763 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
3764 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
3765 (dump_ada_template): Skip partially specialized types.
3766
6b4db501
MM
37672015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
3768
3769 * c-common.c (scalar_to_vector): Use std::swap instead of manually
3770 swapping.
3771
abb226c9
AM
37722015-06-17 Andrew MacLeod <amacleod@redhat.com>
3773
3774 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
3775 * c-ada-spec.c: Likewise.
3776 * c-cilkplus.c: Likewise.
3777 * c-common.c: Likewise.
3778 * c-common.h: Likewise.
3779 * c-cppbuiltin.c: Likewise.
3780 * c-dump.c: Likewise.
3781 * c-format.c: Likewise.
3782 * c-gimplify.c: Likewise.
3783 * c-indentation.c: Likewise.
3784 * c-lex.c: Likewise.
3785 * c-omp.c: Likewise.
3786 * c-opts.c: Likewise.
3787 * c-pch.c: Likewise.
3788 * c-ppoutput.c: Likewise.
3789 * c-pragma.c: Likewise.
3790 * c-pretty-print.c: Likewise.
3791 * c-semantics.c: Likewise.
3792 * c-ubsan.c: Likewise.
3793 * cilk.c: Likewise.
3794 * stub-objc.c: Likewise.
3795
076fecad
PP
37962015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
3797
3798 PR c++/65168
3799 * c-common.c (c_common_truthvalue_conversion): Warn when
3800 converting an address of a reference to a truth value.
3801
13fdf2e2
AM
38022015-06-08 Andrew MacLeod <amacleod@redhat.com>
3803
3804 * array-notation-common.c : Adjust include files.
3805 * c-ada-spec.c : Likewise.
3806 * c-cilkplus.c : Likewise.
3807 * c-common.c : Likewise.
3808 * c-common.h : Likewise.
3809 * c-cppbuiltin.c : Likewise.
3810 * c-dump.c : Likewise.
3811 * c-format.c : Likewise.
3812 * c-gimplify.c : Likewise.
3813 * c-indentation.c : Likewise.
3814 * c-lex.c : Likewise.
3815 * c-omp.c : Likewise.
3816 * c-opts.c : Likewise.
3817 * c-pch.c : Likewise.
3818 * c-ppoutput.c : Likewise.
3819 * c-pragma.c : Likewise.
3820 * c-pretty-print.c : Likewise.
3821 * c-semantics.c : Likewise.
3822 * c-ubsan.c : Likewise.
3823 * cilk.c : Likewise.
3824 * stub-objc.c : Likewise.
3825
a1661b90
MP
38262015-06-08 Marek Polacek <polacek@redhat.com>
3827
3828 PR c/66415
3829 * c-format.c (location_from_offset): Return LOC if LINE is null.
3830
d7438551
AH
38312015-06-05 Aldy Hernandez <aldyh@redhat.com>
3832
3833 * c-common.h (c_parse_final_cleanups): New prototype.
3834 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
3835
b3d5bc62
JJ
38362015-06-04 Sriraman Tallam <tmsriram@google.com>
3837
3838 * c-common.c (noplt): New attribute.
3839 (handle_noplt_attribute): New handler.
3840
ecb9f223
AM
38412015-06-04 Andrew MacLeod <amacleod@redhat.com>
3842
3843 * array-notation-common.c: Adjust includes for restructured coretypes.h.
3844 * c-ada-spec.c: Likewise.
3845 * c-cilkplus.c: Likewise.
3846 * c-common.c: Likewise.
3847 * c-common.h: Likewise.
3848 * c-cppbuiltin.c: Likewise.
3849 * c-dump.c: Likewise.
3850 * c-format.c: Likewise.
3851 * c-gimplify.c: Likewise.
3852 * c-indentation.c: Likewise.
3853 * c-lex.c: Likewise.
3854 * c-omp.c: Likewise.
3855 * c-opts.c: Likewise.
3856 * c-pch.c: Likewise.
3857 * c-ppoutput.c: Likewise.
3858 * c-pragma.c: Likewise.
3859 * c-pretty-print.c: Likewise.
3860 * c-semantics.c: Likewise.
3861 * c-ubsan.c: Likewise.
3862 * cilk.c: Likewise.
3863 * stub-objc.c: Likewise.
3864
6ac48155
DM
38652015-06-02 David Malcolm <dmalcolm@redhat.com>
3866
3867 PR c/66220:
3868 * c-indentation.c (should_warn_for_misleading_indentation): Use
3869 expand_location rather than expand_location_to_spelling_point.
3870 Don't warn if the guarding statement is more indented than the
3871 next/body stmts.
3872
773ce42e
DM
38732015-06-02 David Malcolm <dmalcolm@redhat.com>
3874
3875 * c-indentation.c (warn_for_misleading_indentation): Bail out
3876 immediately if -Wmisleading-indentation isn't enabled.
3877
4fef8379
ML
38782015-06-01 Martin Liska <mliska@suse.cz>
3879
3880 * c-format.c (check_format_arg):Use new type-based pool allocator.
3881 (check_format_info_main) Likewise.
3882
1edfb384
EB
38832015-05-31 Eric Botcazou <ebotcazou@adacore.com>
3884
3885 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
3886 (has_nontrivial_methods): Likewise.
3887
9677ef52
MP
38882015-05-25 Marek Polacek <polacek@redhat.com>
3889
3890 * c-ubsan.c (ubsan_instrument_shift): Use type0.
3891
fd5c817a
MP
38922015-05-22 Marek Polacek <polacek@redhat.com>
3893
3894 PR c/47043
3895 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
3896
a2f45fe6 38972015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
581edfa3
TS
3898
3899 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
3900 STACK_GROWS_DOWNWARD.
3901
a2f45fe6 39022015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
62f9f30b
TS
3903
3904 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
3905 STACK_GROWS_DOWNWARD rather than if it is defined.
3906
0fee2ac2 39072015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
b1726d6c 3908
0fee2ac2
MLI
3909 PR c/52952
3910 * c-format.c (location_column_from_byte_offset): New.
3911 (location_from_offset): New.
3912 (struct format_wanted_type): Add offset_loc field.
3913 (check_format_info): Move handling of location for extra arguments
3914 closer to the point of warning.
3915 (check_format_info_main): Pass the result of location_from_offset
3916 to warning_at.
3917 (format_type_warning): Pass the result of location_from_offset
3918 to warning_at.
3919
cf4ef6f7
MP
39202015-05-20 Marek Polacek <polacek@redhat.com>
3921
3922 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
3923
3a65ee74
MP
39242015-05-20 Marek Polacek <polacek@redhat.com>
3925
3926 * c-ada-spec.c (dump_sloc): Use DECL_P.
3927
21b634ae
MP
39282015-05-20 Marek Polacek <polacek@redhat.com>
3929
3930 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
3931 * c-common.c: Likewise.
3932
0e50b624
DM
39332015-05-19 David Malcolm <dmalcolm@redhat.com>
3934
3935 * c-common.h (fe_file_change): Strengthen param from
3936 const line_map * to const line_map_ordinary *.
3937 (pp_file_change): Likewise.
3938 * c-lex.c (fe_file_change): Likewise.
3939 (cb_define): Use linemap_check_ordinary when invoking
3940 SOURCE_LINE.
3941 (cb_undef): Likewise.
3942 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
3943 invoking cb_file_change.
3944 (c_finish_options): Likewise.
3945 (push_command_line_include): Likewise.
3946 (cb_file_change): Strengthen param "new_map" from
3947 const line_map * to const line_map_ordinary *.
3948 * c-ppoutput.c (cb_define): Likewise for local "map".
3949 (pp_file_change): Likewise for param "map" and local "from".
3950
fab27f52
MM
39512015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
3952
3953 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
3954
2fe1d762
TV
39552015-05-18 Tom de Vries <tom@codesourcery.com>
3956
3957 * c-common.c (build_va_arg_1): New function.
3958 (build_va_arg): Add address operator to va_list operand if necessary.
3959
7a37fa90
MM
39602015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
3961
3962 PR c/48956
3963 * c-common.c (int_safely_convertible_to_real_p): Define.
3964 (unsafe_conversion_p): Check conversions involving complex types.
3965 (conversion_warning): Add new warning message for conversions which
3966 discard imaginary component.
3967 * c-common.h: (enum conversion_safety): Add new enumerator for such
3968 conversions.
3969
3aa3c9fc
MP
39702015-05-14 Marek Polacek <polacek@redhat.com>
3971
3972 PR c/66066
3973 PR c/66127
3974 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
3975 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
3976 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
3977 use it. If FOR_INT_CONST, require that all evaluated operands be
3978 INTEGER_CSTs.
3979
c3388e62
DM
39802015-05-12 David Malcolm <dmalcolm@redhat.com>
3981
3982 * c-common.h (warn_for_misleading_indentation): New prototype.
3983 * c-indentation.c: New file.
3984 * c.opt (Wmisleading-indentation): New option.
3985
c7b38fd5
TV
39862015-05-12 Tom de Vries <tom@codesourcery.com>
3987
3988 PR tree-optimization/66010
3989 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
3990
381bf11e
JM
39912015-05-09 Jason Merrill <jason@redhat.com>
3992
edff0c06
JM
3993 * c-opts.c (c_common_post_options): Also clear
3994 cpp_opts->cpp_warn_cxx11_compat.
3995
129211bc
JM
3996 * c-common.h (enum cxx_dialect): Add cxx_unset.
3997 * c-common.c (cxx_dialect): Initialize to cxx_unset.
3998 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
3999
381bf11e
JM
4000 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
4001 (std=gnu++0x): Mark as Undocumented.
4002 (std=gnu++1y): Add deprecated message.
4003
fe191308
JM
40042015-05-08 Jason Merrill <jason@redhat.com>
4005
765189ff
JM
4006 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
4007 * c-opts.c: Adjust.
4008
fe191308
JM
4009 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
4010
755e528f
MP
40112015-05-08 Marek Polacek <polacek@redhat.com>
4012
4013 PR c/64918
4014 * c.opt (Woverride-init-side-effects): New option.
4015
0173bd2a
MP
40162015-05-07 Marek Polacek <polacek@redhat.com>
4017
4018 PR c/65179
4019 * c-common.c (c_fully_fold_internal): Warn when left shifting a
4020 negative value.
4021 * c.opt (Wshift-negative-value): New option.
4022 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
4023 when -Wextra and C99/C++11 mode.
4024
e0f0d3b9
MP
40252015-05-07 Marek Polacek <polacek@redhat.com>
4026 Martin Uecker <uecker@eecs.berkeley.edu>
4027
4028 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
4029 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
4030
8243e2a9
JM
40312015-05-05 Jason Merrill <jason@redhat.com>
4032
4033 * c.opt (Wterminate): New.
4034
577cd070
MP
40352015-04-30 Marek Polacek <polacek@redhat.com>
4036
4037 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
4038 require that the non-constant be of a boolean type.
4039
0373796b
JT
40402015-04-29 Josh Triplett <josh@joshtriplett.org>
4041
e0f0d3b9
MP
4042 * c-common.c (handle_section_attribute): Refactor to reduce
4043 nesting and distinguish between error cases.
0373796b 4044
716c0ba6
MP
40452015-04-29 Marek Polacek <polacek@redhat.com>
4046
4047 PR c/64610
4048 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
4049 with 0/1.
4050
8848828b
JJ
40512015-04-29 Jakub Jelinek <jakub@redhat.com>
4052
4053 * c-common.h (omp_clause_mask): Unconditionally define as a class.
4054 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
4055 HOST_BITS_PER_WIDE_INT.
4056
ecd0e562
TV
40572015-04-28 Tom de Vries <tom@codesourcery.com>
4058
4059 PR tree-optimization/65887
4060 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
4061
2a877204 40622015-04-28 Eric Botcazou <ebotcazou@adacore.com>
e0f0d3b9 4063 Pierre-Marie de Rodat <derodat@adacore.com>
2a877204
EB
4064
4065 * c-ada-spec.c (in_function): Delete.
4066 (dump_generic_ada_node): Do not change in_function and remove the
4067 redundant code dealing with it.
4068 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
4069 (print_ada_methods): Output the static member functions in a nested
4070 package after the regular methods as well as associated renamings.
4071
4853031e
MP
40722015-04-24 Marek Polacek <polacek@redhat.com>
4073
4074 PR c/65830
4075 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
4076 and OPT_Wshift_count_overflow.
4077
8c2b7f79
MP
4078 PR c/63357
4079 * c-common.c (warn_logical_operator): Warn if the operands have the
4080 same expressions.
4081
b8787813
MP
40822015-04-24 Marek Polacek <polacek@redhat.com>
4083
4084 PR c/61534
4085 * c-common.c (warn_logical_operator): Bail if either operand comes
4086 from a macro expansion.
4087
8fba1830
BRF
40882015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4089
4090 PR target/55143
4091 * c-common.c (c_default_pointer_mode): Add definition.
4092 * c-common.h (c_default_pointer_mode): Add declaration.
4093
17958621
JJ
40942015-03-11 Jakub Jelinek <jakub@redhat.com>
4095
4096 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
4097 on record_builtin_type argument.
4098
7ccb1a11
JJ
40992015-03-10 Jakub Jelinek <jakub@redhat.com>
4100
4101 PR c/65120
4102 * c-common.c (warn_logical_not_parentheses): Don't warn for
4103 !x == 0 or !x != 0.
4104
04fd785e
MP
41052015-03-07 Marek Polacek <polacek@redhat.com>
4106
4107 PR sanitizer/65280
4108 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
4109 before trying to figure out whether we have a flexible array member.
4110
a4e26206 41112015-03-06 Eric Botcazou <ebotcazou@adacore.com>
8e745a17 4112 Jonathan Wakely <jwakely.gcc@gmail.com>
a4e26206
EB
4113
4114 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
4115
0d2489f4
EB
41162015-03-05 Eric Botcazou <ebotcazou@adacore.com>
4117
4118 PR ada/65319
4119 * c-ada-spec.c (print_destructor): Remove obsolete code.
4120
83ed54d7
EB
41212015-03-01 Eric Botcazou <ebotcazou@adacore.com>
4122
4123 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
4124 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
4125 DECL_TEMPLATE_RESULT emulations.
4126 (dump_ada_template)): Add guard for TYPE_METHODS.
4127
7631f0e2
MP
41282015-02-27 Marek Polacek <polacek@redhat.com>
4129
4130 PR c/65040
4131 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
4132
d1783ae5
KT
41332015-02-27 Kai Tietz <ktietz@redhat.com>
4134
4135 PR c/35330
4136 * c-pragma.c (handle_pragma_weak): Do not try to create
4137 weak/alias of declarations not being function, or variable
4138 declarations.
4139
56a9f6bc
TS
41402015-02-24 Thomas Schwinge <thomas@codesourcery.com>
4141
4142 PR libgomp/64625
4143 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
4144 Remove macros.
4145 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
4146
3d5cb23d
MP
41472015-02-16 Marek Polacek <polacek@redhat.com>
4148
4149 PR c/65066
4150 * c-format.c (check_format_types): Handle null param.
4151
fa008882
MP
41522015-02-13 Marek Polacek <polacek@redhat.com>
4153
4154 PR c/65040
4155 * c-format.c (check_format_types): Don't warn about different
4156 signedness if the original value is in the range of WANTED_TYPE.
4157
785f21af
JM
41582015-02-12 Jason Merrill <jason@redhat.com>
4159
4160 PR c++/64956
4161 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
4162 to the current highest version.
4163 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
4164
4886ec8e
JJ
41652015-02-04 Jakub Jelinek <jakub@redhat.com>
4166
4167 PR c/64824
4168 PR c/64868
4169 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
4170 instead of RDIV_EXPR. Use build_binary_op instead of
4171 build2_loc.
4172
40fecdd6
JM
41732015-01-30 Joseph Myers <joseph@codesourcery.com>
4174
4175 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
4176 to pass input_location as first argument.
4177
a0c88d06
TV
41782015-01-23 Tom de Vries <tom@codesourcery.com>
4179
4180 PR libgomp/64672
4181 * c.opt (fopenacc): Mark as LTO option.
4182
1506ae0e
TV
41832015-01-23 Tom de Vries <tom@codesourcery.com>
4184
4185 PR libgomp/64707
4186 * c.opt (fopenmp): Mark as LTO option.
4187
31be63ab
JJ
41882015-01-21 Jakub Jelinek <jakub@redhat.com>
4189
4190 PR c/63307
b1726d6c 4191 * cilk.c (fill_decls_vec): Only put decls into vector v.
31be63ab
JJ
4192 (compare_decls): Fix up formatting.
4193
41942015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
4195
4196 PR c/63307
4197 * cilk.c: Include vec.h.
4198 (struct cilk_decls): New structure.
4199 (wrapper_parm_cb): Split this function to...
4200 (fill_decls_vec): ...this...
4201 (create_parm_list): ...and this.
4202 (compare_decls): New function.
4203 (for_local_cb): Remove.
4204 (wrapper_local_cb): Ditto.
4205 (build_wrapper_type): For now first traverse and fill vector of
4206 declarations then sort it and then deal with sorted vector.
4207 (cilk_outline): Ditto.
4208 (declare_one_free_variable): Ditto.
4209
6875457f
JM
42102015-01-21 Jason Merrill <jason@redhat.com>
4211
4212 PR c++/64629
4213 * c-format.c (check_format_arg): Call decl_constant_value.
4214
185c9e56
ML
42152015-01-19 Martin Liska <mliska@suse.cz>
4216
4217 * c-common.c (handle_noicf_attribute): New function.
4218
41dbbb37
TS
42192015-01-15 Thomas Schwinge <thomas@codesourcery.com>
4220 Bernd Schmidt <bernds@codesourcery.com>
4221 James Norris <jnorris@codesourcery.com>
4222 Cesar Philippidis <cesar@codesourcery.com>
4223 Ilmir Usmanov <i.usmanov@samsung.com>
4224 Jakub Jelinek <jakub@redhat.com>
4225
4226 * c.opt (fopenacc): New option.
4227 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
4228 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
4229 New macros.
4230 * c-common.h (c_finish_oacc_wait): New prototype.
4231 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
4232 (c_finish_oacc_wait): New function.
4233 * c-pragma.c (oacc_pragmas): New variable.
4234 (c_pp_lookup_pragma, init_pragma): Handle it.
4235 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
4236 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
4237 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
4238 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
4239 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
4240 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
4241 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
4242 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
4243 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
4244 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
4245 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
4246 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
4247 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
4248 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
4249 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
4250 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
4251 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
4252 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
4253 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
4254 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
4255 PRAGMA_OACC_CLAUSE_WORKER.
4256
3f8257db 42572015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
5434dc07
MD
4258
4259 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
4260 for the new option fstack-protector_explicit.
4261 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
4262 (handle_stack_protect_attribute): New function.
4263
3f8257db 42642015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
de1b5c17
MU
4265
4266 * c.opt: New option -Warray-bounds=.
4267
adfac8df
JJ
42682015-01-09 Michael Collison <michael.collison@linaro.org>
4269
4270 * array-notation-common.c: Include hash-set.h, machmode.h,
4271 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4272 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
4273 * c-ada-spec.c: Ditto.
4274 * c-cilkplus.c: Ditto.
4275 * c-common.c: Include input.h due to flattening of tree.h.
4276 Define macro GCC_C_COMMON_C.
4277 * c-common.h: Flatten tree.h header files into c-common.h.
4278 Remove include of tree-core.h.
4279 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
4280 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4281 fold-const.h, wide-int.h, and inchash.h due to
4282 flattening of tree.h.
4283 * c-dump.c: Ditto.
4284 * c-format.c: Flatten tree.h header files into c-common.h.
4285 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
4286 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4287 fold-const.h, wide-int.h, and inchash.h due to
4288 flattening of tree.h.
4289 * c-dump.c: Include hash-set.h, machmode.h,
4290 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4291 fold-const.h, wide-int.h, and inchash.h due to
4292 flattening of tree.h.
4293 * c-format.c: Include hash-set.h, machmode.h,
4294 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4295 fold-const.h, wide-int.h, inchash.h and real.h due to
4296 flattening of tree.h.
4297 * c-gimplify.c: Include hash-set.h, machmode.h,
4298 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4299 fold-const.h, wide-int.h, and inchash.h due to
4300 flattening of tree.h.
4301 * cilk.c: Ditto.
4302 * c-lex.c: Ditto.
4303 * c-omp.c: Ditto.
4304 * c-opts.c: Ditto.
4305 * c-pch.c: Ditto.
4306 * c-ppoutput.c: Ditto.
4307 * c-pragma.c: Ditto.
4308 * c-pretty-print.c: Ditto.
4309 * c-semantics.c: Ditto.
4310 * c-ubsan.c: Ditto.
4311 * stub-objc.c: Ditto.
4312
f5481fc4
JM
43132015-01-08 Jason Merrill <jason@redhat.com>
4314
4315 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
4316 do_ubsan_in_current_function.
4317 (ubsan_maybe_instrument_reference_or_call): Likewise.
4318 * c-ubsan.h: Declare it.
4319
de35aa66
MS
43202015-01-08 Mike Stump <mikestump@comcast.net>
4321
4322 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
4323
4a9a42ab
MP
43242015-01-07 Marek Polacek <polacek@redhat.com>
4325
4326 PR c/64440
4327 * c-common.c (c_fully_fold_internal): Warn for division and modulo
4328 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
4329
2f42e5de
TS
43302015-01-05 Trevor Saunders <tsaunders@mozilla.com>
4331
4332 PR c++/31397
4333 * c.opt (Wsuggest-override): New option.
4334
5624e564
JJ
43352015-01-05 Jakub Jelinek <jakub@redhat.com>
4336
4337 Update copyright years.
4338
5bd012f8
MP
43392015-01-05 Marek Polacek <polacek@redhat.com>
4340
4341 PR c/64423
4342 * c-common.c (warn_array_subscript_with_type_char): Add location_t
4343 parameter. Use it.
4344 * c-common.h (warn_array_subscript_with_type_char): Update
4345 declaration.
4346
a7fa8d18
ESR
43472014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
4348
4349 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
4350 Control macro with flag_sized_deallocation.
4351
3f8257db 43522014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
768952be
MU
4353
4354 * c.opt (Wdiscarded-array-qualifiers): New option.
4355
1f8d3e84
JJ
43562014-12-19 Jakub Jelinek <jakub@redhat.com>
4357
4358 PR preprocessor/63831
4359 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
4360 and __has_cpp_attribute here.
4361 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
4362 c_common_has_attribute.
4363 * c-common.h (c_common_has_attribute): New prototype.
4364 * c-lex.c (init_c_lex): Set cb->has_attribute to
4365 c_common_has_attribute instead of cb_has_attribute.
4366 (get_token_no_padding): New function.
4367 (cb_has_attribute): Renamed to ...
4368 (c_common_has_attribute): ... this. No longer static. Use
4369 get_token_no_padding, require ()s, don't build TREE_LIST
4370 unnecessarily, fix up formatting, adjust diagnostics, call
4371 init_attributes.
4372
20b06add
JM
43732014-12-15 Jason Merrill <jason@redhat.com>
4374
4375 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
4376 (-Wsized-deallocation): New.
4377 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
4378 to on in C++14 and up.
4379
94a073b2
JM
43802014-12-11 Jason Merrill <jason@redhat.com>
4381
acaa5911
JM
4382 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
4383
94a073b2
JM
4384 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
4385 we aren't complaining about VLAs.
4386
7fb66c15
MP
43872014-12-06 Marek Polacek <polacek@redhat.com>
4388
4389 PR tree-optimization/64183
4390 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
4391 shift-expression if it is integer_type_node. Use types_compatible_p.
4392
b731b390
JJ
43932014-11-29 Jakub Jelinek <jakub@redhat.com>
4394
4395 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
4396 last argument from create_tmp_var_raw and create_tmp_var calls.
4397 * cilk.c (gimplify_cilk_spawn): Likewise.
4398 * c-omp.c (c_finish_omp_atomic): Likewise.
4399
6a4da643
MP
44002014-11-28 Marek Polacek <polacek@redhat.com>
4401
4402 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
4403 instead of unsigned_type_node.
4404
541e35a6
MP
44052014-11-28 Marek Polacek <polacek@redhat.com>
4406
4407 PR c/63862
4408 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
4409 to op1_utype.
4410 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
4411 expression to unsigned_type_node.
4412
dcc97066
MW
44132014-11-20 Mark Wielaard <mjw@redhat.com>
4414
4415 PR debug/38757
4416 * c-opts.c (set_std_c89): Set lang_hooks.name.
4417 (set_std_c99): Likewise.
4418 (set_std_c11): Likewise.
4419 (set_std_cxx98): Likewise.
4420 (set_std_cxx11): Likewise.
4421 (set_std_cxx14): Likewise.
4422 (set_std_cxx1z): Likewise.
4423
aa7da51a
JJ
44242014-11-21 Jakub Jelinek <jakub@redhat.com>
4425
4426 PR target/63764
4427 * c-common.h (convert_vector_to_pointer_for_subscript): Change
4428 return type to bool.
009a3480 4429 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
4430 (convert_vector_to_pointer_for_subscript): Change return type to
4431 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
4432 and copy it into a TARGET_EXPR and use that instead of *vecp
4433 directly.
4434
538dd0b7
DM
44352014-11-19 David Malcolm <dmalcolm@redhat.com>
4436
4437 Merger of git branch "gimple-classes-v2-option-3".
4438 * ChangeLog.gimple-classes: New.
4439 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
4440 from being just a vec<gimple> to a vec<gbind *>.
4441
c39a5e99
JJ
44422014-11-18 Jakub Jelinek <jakub@redhat.com>
4443
4444 PR sanitizer/63813
4445 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
4446 argument to ptype, set type to TREE_TYPE (ptype). Don't call
4447 get_pointer_alignment for non-pointers. Use ptype, or if it is
4448 reference type, corresponding pointer type, as type of kind
4449 argument.
4450 (ubsan_maybe_instrument_reference,
4451 ubsan_maybe_instrument_member_call): Adjust callers.
4452
8537a4a9
MP
44532014-11-15 Marek Polacek <polacek@redhat.com>
4454
4455 PR middle-end/63884
4456 * array-notation-common.c (is_sec_implicit_index_fn): Return false
4457 for NULL fndecl.
4458 (extract_array_notation_exprs): Return for NULL node.
4459
2079956a
JM
44602014-11-12 Joseph Myers <joseph@codesourcery.com>
4461
4462 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
4463 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
4464
1304953e
JJ
44652014-11-12 Jakub Jelinek <jakub@redhat.com>
4466
4467 PR c/59708
4468 * c-common.c (check_builtin_function_arguments): Handle
4469 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
4470
e5e44252
AK
44712014-11-10 Andi Kleen <ak@linux.intel.com>
4472
4473 PR c/60804
4474 * c-common.h (check_no_cilk): Declare.
4475 * cilk.c (get_error_location): New function.
4476 (check_no_cilk): Dito.
4477
e64b984d
AK
44782014-11-10 Andi Kleen <ak@linux.intel.com>
4479
4480 * cilk.c (recognize_spawn): Use expression location
4481 for error message.
4482
13c21655
PC
44832014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
4484
4485 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
4486
42fd12b1
ESR
44872014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
4488
4489 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
4490 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
4491 (__cpp_range_based_for, __cpp_initializer_lists,
4492 __cpp_delegating_constructors, __cpp_nsdmi,
4493 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
4494 for C++11; (__cpp_attribute_deprecated): Remove in favor of
4495 __has_cpp_attribute.
4496 * c-lex.c (cb_has_attribute): New callback CPP function;
4497 (init_c_lex): Set has_attribute callback.
4498
6f450181
RB
44992014-11-04 Richard Biener <rguenther@suse.de>
4500
4501 * c-common.c (shorten_compare): Do not shorten mixed
4502 DFP and non-DFP compares.
4503
26f0e1d6
ESR
45042014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
4505
4506 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
4507 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
4508 Commentary and rearrangement of tests.
4509 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
4510 Commentary and rearrangement of tests.
4511 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
4512 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
4513
ef4bddc2
RS
45142014-10-29 Richard Sandiford <richard.sandiford@arm.com>
4515
4516 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
4517 enum from machine_mode.
4518
c582198b
AM
45192014-10-28 Andrew MacLeod <amacleod@redhat.com>
4520
adfac8df
JJ
4521 * c-common.c: Adjust include files.
4522 * c-gimplify.c: Ditto.
4523 * cilk.c: Ditto.
4524 * c-pragma.c: Ditto.
4525 * c-ubsan.c: Ditto.
c582198b 4526
60393bbc
AM
45272014-10-27 Andrew MacLeod <amacleod@redhat.com>
4528
4529 * c-gimplify.c: Adjust include files.
4530
d723bb7c
MLI
45312014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
4532
4533 PR c++/53061
4534 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
4535 c_common_initialize_diagnostics.
4536 * c-common.h: Likewise.
4537
90f3520e
MP
45382014-10-24 Marek Polacek <polacek@redhat.com>
4539
4540 PR c/56980
4541 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
4542 print "struct"/"union"/"enum" for typedefed names.
4543
59d7607a
MP
45442014-10-23 Marek Polacek <polacek@redhat.com>
4545
4546 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
4547 in unsigned type.
4548
d95a2703
JJ
45492014-10-22 Jakub Jelinek <jakub@redhat.com>
4550 Yury Gribov <y.gribov@samsung.com>
4551
4552 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
4553 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
4554 instead of flag_sanitize_recover as bool flag.
4555
8e6ef852
KY
45562014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
4557
4558 * cilk.c: Revert previous change.
4559
948cf550
IZ
45602014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
4561
4562 PR c/63307
4563 * cilk.c: Include vec.h.
4564 (struct cilk_decls): New structure.
4565 (wrapper_parm_cb): Split this function to...
4566 (fill_decls_vec): ...this...
4567 (create_parm_list): ...and this.
4568 (compare_decls): New function.
4569 (for_local_cb): Remove.
4570 (wrapper_local_cb): Ditto.
4571 (build_wrapper_type): For now first traverse and fill vector of
4572 declarations then sort it and then deal with sorted vector.
4573 (cilk_outline): Ditto.
4574 (declare_one_free_variable): Ditto.
4575
92574c7c
MP
45762014-10-17 Marek Polacek <polacek@redhat.com>
4577
4578 * c-opts.c (c_common_post_options): Set warn_implicit_int.
4579 * c.opt (Wimplicit-int): Initialize to -1.
4580
83685514
AM
45812014-10-16 Andrew MacLeod <amacleod@redhat.com>
4582
4583 * c-pragma.c: Adjust include files.
4584 * c-semantics.c: Likewise.
4585
5b8300ea
DD
45862014-10-16 DJ Delorie <dj@redhat.com>
4587
4588 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
4589 multiples of bytes.
4590
5f83e90b
JM
45912014-10-14 Jason Merrill <jason@redhat.com>
4592
4593 PR c++/63455
4594 * c-common.h (CPP_PREPARSED_EXPR): New.
4595 (N_CP_TTYPES): Adjust.
4596
d73326ca
MP
45972014-10-15 Marek Polacek <polacek@redhat.com>
4598
4599 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
4600
78a7c317
DD
46012014-10-14 DJ Delorie <dj@redhat.com>
4602
4603 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
4604 types, not just __int128.
4605 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
4606 types, not just __int128.
4607 (cpp_atomic_builtins): Round pointer sizes up.
4608 (type_suffix): Use type precision, not specific types.
4609 * c-common.c (c_common_reswords): Remove __int128 special case.
4610 (c_common_type_for_size): Check for all __intN types, not just
4611 __int128.
4612 (c_common_type_for_mode): Likewise.
4613 (c_common_signed_or_unsigned_type): Likewise.
4614 (c_build_bitfield_integer_type): Likewise.
4615 (c_common_nodes_and_builtins): Likewise.
4616 (keyword_begins_type_specifier): Likewise.
4617 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
4618 __intN variants.
4619
2a22f99c
TS
46202014-10-12 Trevor Saunders <tsaunders@mozilla.com>
4621
4622 * c-common.c: Use hash_table instead of hashtab.
4623
2a8ef767
ESR
46242014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
4625
adfac8df 4626 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
4627 C++11 section.
4628
3c9aabbd
MG
46292014-10-03 Marc Glisse <marc.glisse@inria.fr>
4630
4631 PR c++/54427
4632 PR c++/57198
4633 PR c++/58845
4634 * c-common.c (warn_logical_operator): Punt for vectors.
4635
a15f7cb8
ESR
46362014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
4637
4638 Implement SD-6: SG10 Feature Test Recommendations
4639 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
4640 macros and the __has_header macro.
4641
8d0cf15e
JM
46422014-09-30 Jason Merrill <jason@redhat.com>
4643
dd5d5481
JM
4644 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
4645 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
4646 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
4647
b752325e
JM
4648 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
4649 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
4650
8d0cf15e
JM
4651 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
4652 * c-common.c (c_common_reswords): Remove __is_convertible_to.
4653
083e891e
MP
46542014-09-24 Marek Polacek <polacek@redhat.com>
4655
4656 PR c/61405
4657 PR c/53874
4658 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
4659
7861b648
AK
46602014-09-23 Andi Kleen <ak@linux.intel.com>
4661
4662 * c-common.c (handle_no_reorder_attribute): New function.
4663 (c_common_attribute_table): Add no_reorder attribute.
4664
9a79452d
JM
46652014-09-22 Joseph Myers <joseph@codesourcery.com>
4666
4667 * c-cppbuiltin.c (c_cpp_builtins): Define
4668 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
4669 modes.
4670
dd69f047
JM
46712014-09-18 Joseph Myers <joseph@codesourcery.com>
4672
4673 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
4674 for supported floating-point modes.
4675
737a4826
MLI
46762014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
4677
4678 * c.opt (Wpsabi): Use LangEnabledBy.
4679 * c-opts.c (c_common_handle_option): Do not handle here.
4680
8cc4b7a2
JM
46812014-09-12 Joseph Myers <joseph@codesourcery.com>
4682
4683 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
4684 macros for floating-point modes.
4685
179b5a55
MG
46862014-09-11 Marc Glisse <marc.glisse@inria.fr>
4687
4688 PR target/58757
4689 * c-cppbuiltin.c (builtin_define_float_constants): Correct
4690 __*_DENORM_MIN__ without denormals.
4691
570a11fe
JJ
46922014-09-10 Jakub Jelinek <jakub@redhat.com>
4693
4694 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
4695 ubsan_instrument_vla, ubsan_instrument_return): Adjust
4696 ubsan_create_data callers.
4697 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
4698 index is constant or BIT_AND_EXPR with constant mask and is
4699 small enough for the bound.
4700 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
4701 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
4702
b559c810
MLI
47032014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4704
4705 * c.opt: Add CppReason to various flags.
4706 (Wdate-time): Re-sort.
4707 * c-common.c: Include c-common.h earlier.
4708 (struct reason_option_codes_t): Delete.
4709 (c_option_controlling_cpp_error): Prefix global type and struct
4710 with cpp_.
4711
1ef33fd4
MLI
47122014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4713
4714 * c.opt (Wnormalized): New.
4715 (Wnormalized=): Use Enum and Reject Negative.
4716 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
4717
66bb34c0
JM
47182014-09-08 Joseph Myers <joseph@codesourcery.com>
4719
4720 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
4721 digits of floating-point modes if -fbuilding-libgcc.
4722
53d68b9f
JM
47232014-09-05 Joseph Myers <joseph@codesourcery.com>
4724
4725 * c-cppbuiltin.c (c_cpp_builtins): Also define
4726 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
4727 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
4728 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
4729 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
4730 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
4731 __LIBGCC_STACK_GROWS_DOWNWARD__,
4732 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
4733 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
4734 __LIBGCC_DWARF_FRAME_REGISTERS__,
4735 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
4736 __LIBGCC_STACK_POINTER_REGNUM__ and
4737 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
4738 (builtin_define_with_value): Handle backslash-escaping in string
4739 macro values.
4740
f65586dc
RB
47412014-09-05 Richard Biener <rguenther@suse.de>
4742
4743 PR middle-end/63148
4744 * c-format.c (check_format_arg): Properly handle
4745 effectively signed POINTER_PLUS_EXPR offset.
4746
2b71f4a4
MLI
47472014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
4748
4749 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
4750 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
4751 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
4752 and Init.
4753 * c-opts.c (c_common_handle_option): Do not handle here.
4754 (sanitize_cpp_opts): Likewise.
4755 * c-common.c (struct reason_option_codes_t): Handle
4756 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
4757
d2e4feca
MP
47582014-09-03 Marek Polacek <polacek@redhat.com>
4759
4760 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
4761
9a771876
JJ
47622014-09-02 Jakub Jelinek <jakub@redhat.com>
4763 Balaji V. Iyer <balaji.v.iyer@intel.com>
4764 Igor Zamyatin <igor.zamyatin@intel.com>
4765
4766 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
4767 * c-common.c (c_common_reswords): Added _Cilk_for.
4768 * c-common.h (enum rid): Added RID_CILK_FOR.
4769 (cilk_for_number_of_iterations): Add declaration.
4770 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
4771 CILK_FOR.
4772 * c-pragma.c (init_pragma): Register "grainsize" pragma.
4773 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
4774
81b5d104
MLI
47752014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
4776
4777 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
4778 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
4779 Wundef): Use CPP, Var and Init.
4780 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
4781
b753b37b
MLI
47822014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
4783
4784 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
4785 * c-opts.c (c_common_handle_option): Do not handle here.
4786
028aee17
JM
47872014-08-25 Jason Merrill <jason@redhat.com>
4788
4789 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
4790 -std=c++14 and -std=gnu++14, rather than the reverse.
4791 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
4792 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
4793 * c-common.h (cxx_dialect): Remove cxx1y.
4794
e4276ba5
ESR
47952014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
4796
4797 * c-common.h (enum cxx_dialect): Add cxx14.
4798 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
4799 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
4800 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
4801
a545cacd
JM
48022014-08-22 Jason Merrill <jason@redhat.com>
4803
4804 * c.opt (std=gnu++17): Fix alias.
4805
59ea0364
MP
48062014-08-22 Marek Polacek <polacek@redhat.com>
4807
4808 PR c++/62199
4809 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
4810 check for vector types. Drop LHS argument.
4811 * c-common.h (warn_logical_not_parentheses): Adjust.
4812
596e808c
MLI
48132014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
4814
4815 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
4816 (Wmultichar): Likewise.
4817 (Wdate-time): Use C-family languages instead of Common. Use CPP
4818 and Var.
4819 * c-opts.c (c_common_handle_option): Do not handle the above
4820 options here.
4821 (sanitize_cpp_opts): Likewise.
4822
18767f65
MLI
48232014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4824
4825 PR fortran/44054
4826 * c-opts.c: Include tree-diagnostics.h.
4827 (c_diagnostic_finalizer): New.
4828 (c_common_initialize_diagnostics): Use it.
4829
b4413594
MLI
48302014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4831
4832 PR preprocessor/51303
4833 * c-common.c (struct reason_option_codes_t option_codes):
4834 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
4835
43f9a13c
MLI
48362014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4837
4838 PR c/60975
4839 PR c/53063
4840 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
4841 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
4842 (c_common_post_options): Call init_global_opts_from_cpp.
4843 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
4844
04159acf
MP
48452014-08-19 Marek Polacek <polacek@redhat.com>
4846
4847 PR c++/62153
4848 * c-common.c (maybe_warn_bool_compare): New function.
4849 * c-common.h (maybe_warn_bool_compare): Declare.
4850 * c.opt (Wbool-compare): New option.
4851
35aff4fb
MP
48522014-08-19 Marek Polacek <polacek@redhat.com>
4853
4854 * c.opt (Wc99-c11-compat): New option.
4855
177cce46
MP
48562014-08-19 Marek Polacek <polacek@redhat.com>
4857
4858 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
4859 to warn_c90_c99_compat.
4860 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
4861 to -1.
4862
6ae9194f
MLI
48632014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
4864 Steven Bosscher <steven@gcc.gnu.org>
4865
4866 PR c/52952
4867 * c-format.c: Add extra_arg_loc and format_string_loc to struct
4868 format_check_results.
4869 (check_function_format): Use true and add comment for boolean
4870 argument.
4871 (finish_dollar_format_checking): Use explicit location when warning.
4872 (check_format_info): Likewise.
4873 (check_format_arg): Set extra_arg_loc and format_string_loc.
4874 (check_format_info_main): Use explicit location when warning.
4875 (check_format_types): Pass explicit location.
4876 (format_type_warning): Likewise.
4877
8e54f6d3
MLI
48782014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
4879
4880 PR fortran/44054
4881 * c-format.c: Handle Fortran flags.
4882
cd4e76fc
IZ
48832014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
4884
4885 PR other/61962
4886 * array-notation-common.c (find_rank): Added handling for other
4887 types of references.
4888
f3bede71
MP
48892014-08-10 Marek Polacek <polacek@redhat.com>
4890
4891 PR c/51849
4892 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
4893 * c.opt (Wc90-c99-compat): Add option.
4894
9f25a338
TS
48952014-08-07 Trevor Saunders <tsaunders@mozilla.com>
4896
4897 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
4898
62e4eb35
MP
48992014-08-03 Marek Polacek <polacek@redhat.com>
4900
4901 * c-common.c (check_case_value): Add location_t parameter. Use it.
4902 (c_add_case_label): Pass loc to check_case_value.
4903
b787e7a2
TS
49042014-08-02 Trevor Saunders <tsaunders@mozilla.com>
4905
4906 * cilk.c: Use hash_map instead of pointer_map.
4907
6e2830c3
TS
49082014-08-02 Trevor Saunders <tsaunders@mozilla.com>
4909
4910 * c-gimplify.c: Use hash_set instead of pointer_set.
4911
a7ee52fb
IZ
49122014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
4913
4914 PR middle-end/61455
4915 * array-notation-common.c (extract_array_notation_exprs): Handling
4916 of DECL_EXPR added.
4917
944fa280
JJ
49182014-08-01 Jakub Jelinek <jakub@redhat.com>
4919
4920 * c-common.h (min_align_of_type): Removed prototype.
4921 * c-common.c (min_align_of_type): Removed.
4922 * c-ubsan.h (ubsan_maybe_instrument_reference,
4923 ubsan_maybe_instrument_member_call): New prototypes.
4924 * c-ubsan.c: Include stor-layout.h and builtins.h.
4925 (ubsan_maybe_instrument_reference_or_call,
4926 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
4927 functions.
4928
b4dfdc11
MG
49292014-07-31 Marc Glisse <marc.glisse@inria.fr>
4930
4931 PR c++/60517
4932 * c.opt (-Wreturn-local-addr): Move to common.opt.
4933
a41844e5
JM
49342014-07-30 Jason Merrill <jason@redhat.com>
4935
4936 PR c++/61659
4937 PR c++/61687
4938 Revert:
4939 * c.opt (-fuse-all-virtuals): New.
4940
976d5a22
TT
49412014-07-30 Tom Tromey <tromey@redhat.com>
4942
4943 PR c/59855
4944 * c.opt (Wdesignated-init): New option.
4945 * c-common.c (c_common_attribute_table): Add "designated_init".
4946 (handle_designated_init): New function.
4947
cdc94aca
MP
49482014-07-24 Marek Polacek <polacek@redhat.com>
4949
4950 PR c/57653
4951 * c-opts.c (c_finish_options): If -imacros is in effect, return.
4952
f41373b6
DS
49532014-07-16 Dodji Seketeli <dodji@redhat.com>
4954
4955 PR preprocessor/60723 - missing system-ness marks for macro tokens
4956 * c-ppoutput.c (struct print::prev_was_system_token): New data
4957 member.
4958 (init_pp_output): Initialize it.
4959 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
4960 (do_line_change): Return a flag saying if a line marker was
4961 emitted or not.
4962 (scan_translation_unit): Detect if the system-ness of the token we
4963 are about to emit is different from the one of the previously
4964 emitted token. If so, emit a line marker. Avoid emitting useless
4965 adjacent line markers. Avoid emitting line markers for tokens
4966 originating from the expansion of built-in macros.
4967 (scan_translation_unit_directives_only): Adjust.
4968
4d661eaa
MP
49692014-07-15 Marek Polacek <polacek@redhat.com>
4970
4971 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
4972 TYPE_MAX_VALUE is NULL.
4973
b108f48f
JJ
49742014-07-14 Jakub Jelinek <jakub@redhat.com>
4975
4976 PR middle-end/61294
4977 * c.opt (Wmemset-transposed-args): New warning.
4978
c0221884
JM
49792014-07-10 Jason Merrill <jason@redhat.com>
4980
4981 PR c++/61659
4982 PR c++/61687
4983 * c.opt (-fuse-all-virtuals): New.
4984
63dfbb95
RB
49852014-07-09 Richard Biener <rguenther@suse.de>
4986
4987 PR c-family/61741
4988 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
4989 using unsigned arithmetic if overflow does not wrap instead of
4990 if overflow is undefined.
4991
773ec47f
MP
49922014-07-06 Marek Polacek <polacek@redhat.com>
4993
4994 PR c/6940
4995 * c.opt (Wsizeof-array-argument): New option.
4996
00a7ba58
JJ
49972014-07-03 Jakub Jelinek <jakub@redhat.com>
4998
b1726d6c 4999 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
00a7ba58
JJ
5000 comments->count <= 1, as comments->entries might be NULL.
5001
52ec0ea3
MP
50022014-07-01 Marek Polacek <polacek@redhat.com>
5003
5004 * c.opt (Wint-conversion): New option.
5005
d5c3d343
MP
50062014-07-01 Marek Polacek <polacek@redhat.com>
5007
5008 PR c/58286
5009 * c.opt (Wincompatible-pointer-types): New option.
5010
6e7ceb17
PC
50112014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
5012
5013 PR c++/51400
5014 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
5015 Do not discard TYPE_QUALS of type.
5016
da73100b
JM
50172014-06-26 Jason Merrill <jason@redhat.com>
5018
5019 * c-common.h (enum cxx_dialect): Add cxx1z.
5020 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
5021 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
5022
08eedf75
TJ
50232014-06-26 Teresa Johnson <tejohnson@google.com>
5024
5025 * c-common.h (get_dump_info): Declare.
5026 * c-gimplify.c (c_genericize): Use saved dump files.
5027 * c-opts.c (c_common_parse_file): Begin and end dumps
5028 once around parsing invocation.
5029 (get_dump_info): New function.
5030
7b56b2f8
MP
50312014-06-23 Marek Polacek <polacek@redhat.com>
5032 Andrew MacLeod <amacleod@redhat.com>
5033
5034 PR c/61553
5035 * c-common.c (get_atomic_generic_size): Don't segfault if the
5036 type doesn't have a size.
5037
0e37a2f3
MP
50382014-06-20 Marek Polacek <polacek@redhat.com>
5039
5040 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
5041 (ubsan_walk_array_refs_r): New function.
5042 (c_genericize): Instrument array bounds.
5043 * c-ubsan.c: Include "internal-fn.h".
5044 (ubsan_instrument_division): Mark instrumented arrays as having
5045 side effects. Adjust ubsan_type_descriptor call.
5046 (ubsan_instrument_shift): Likewise.
5047 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
5048 (ubsan_instrument_bounds): New function.
5049 (ubsan_array_ref_instrumented_p): New function.
5050 (ubsan_maybe_instrument_array_ref): New function.
5051 * c-ubsan.h (ubsan_instrument_bounds): Declare.
5052 (ubsan_array_ref_instrumented_p): Declare.
5053 (ubsan_maybe_instrument_array_ref): Declare.
5054
50552014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
5056
5057 PR lto/61123
5058 * c.opt (fshort-enums): Add to LTO.
5059 * c.opt (fshort-wchar): Likewise.
5060
5c3d09f7
MP
50612014-06-16 Marek Polacek <polacek@redhat.com>
5062
5063 PR c/60439
5064 * c.opt (Wswitch-bool): Add Var.
5065
9cf32741
JJ
50662014-06-12 Jakub Jelinek <jakub@redhat.com>
5067
5068 PR middle-end/61486
5069 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
5070 #pragma omp target teams or
5071 #pragma omp {,target }teams distribute simd.
5072
62984918
JM
50732014-06-12 Jason Merrill <jason@redhat.com>
5074
5075 * c.opt (Wabi=, fabi-compat-version): New.
5076 * c-opts.c (c_common_handle_option): Handle -Wabi=.
5077 (c_common_post_options): Handle flag_abi_compat_version default.
5078 Disallow -fabi-compat-version=1.
5079 * c-common.h (abi_version_crosses): New.
5080
f961457f
JH
50812014-06-11 Jan Hubicka <hubicka@ucw.cz>
5082
adfac8df 5083 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
5084 section names that are no longer trees.
5085
92d28cbb
JJ
50862014-06-10 Jakub Jelinek <jakub@redhat.com>
5087
5088 PR fortran/60928
5089 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
5090 (omp_pragmas): ... back here.
5091
742938c9
MP
50922014-06-05 Marek Polacek <polacek@redhat.com>
5093
5094 PR c/49706
5095 * c-common.c (warn_logical_not_parentheses): New function.
5096 * c-common.h (warn_logical_not_parentheses): Declare.
5097 * c.opt (Wlogical-not-parentheses): New option.
5098
9d548dfb
MP
50992014-06-04 Marek Polacek <polacek@redhat.com>
5100
5101 PR c/30020
5102 * c-common.c (check_case_bounds): Add location parameter.
5103 Use it.
5104 (c_add_case_label): Pass loc to check_case_bounds.
5105
fedfecef
MP
51062014-06-03 Marek Polacek <polacek@redhat.com>
5107
5108 PR c/60439
5109 * c.opt (Wswitch-bool): New option.
5110
f6a7cffc
TS
51112014-05-22 Thomas Schwinge <thomas@codesourcery.com>
5112
040d18b6
TS
5113 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
5114 Remove prototypes.
5115 (record_types_used_by_current_var_decl): Move prototype to where
5116 it belongs.
5117
f6a7cffc
TS
5118 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
5119 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
5120 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
5121
632f2871
RS
51222014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
5123
5124 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
5125 * c-common.c (c_common_nodes_and_builtins): Don't initialize
5126 void_zero_node.
5127 * c-pretty-print.c (pp_c_void_constant): New function.
5128 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
5129 (c_pretty_printer::expression): Handle VOID_CST.
5130 * cilk.c (extract_free_variables): Likewise.
5131 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
5132 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
5133
766090c2
TS
51342014-05-17 Trevor Saunders <tsaunders@mozilla.com>
5135
5136 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
5137 * c-pragma.c (push_alignment): Adjust.
5138 (handle_pragma_push_options): Likewise.
5139
661a0813
MP
51402014-05-09 Marek Polacek <polacek@redhat.com>
5141
5142 PR c/50459
5143 * c-common.c (check_user_alignment): Return -1 if alignment is error
5144 node.
5145 (handle_aligned_attribute): Don't call default_conversion on
5146 FUNCTION_DECLs.
5147 (handle_vector_size_attribute): Likewise.
5148 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
5149 (handle_sentinel_attribute): Call default_conversion and allow even
5150 integral types as an argument.
5151
2793eeab
MP
51522014-05-08 Marek Polacek <polacek@redhat.com>
5153
5154 PR c/61053
5155 * c-common.c (min_align_of_type): New function factored out from...
5156 (c_sizeof_or_alignof_type): ...here.
5157 * c-common.h (min_align_of_type): Declare.
5158
f827930a
MP
51592014-05-08 Marek Polacek <polacek@redhat.com>
5160
5161 PR c/61077
5162 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
5163 parameter type of main.
5164
ca49b74e
DD
51652014-05-07 DJ Delorie <dj@redhat.com>
5166
5167 * c-cppbuiltin.c (print_bits_of_hex): New.
5168 (builtin_define_type_minmax): Print values using hex so as not to
5169 require a pre-computed list of string values.
5170
1d60af08
KZ
51712014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
5172 Mike Stump <mikestump@comcast.net>
5173 Richard Sandiford <rdsandiford@googlemail.com>
5174
5175 * c-ada-spec.c: Include wide-int.h.
5176 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
5177 (dump_generic_ada_node): Use wide-int interfaces.
5178 * c-common.c: Include wide-int-print.h.
5179 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
5180 (pointer_int_sum): Use wide-int interfaces.
5181 (c_common_nodes_and_builtins): Use make_int_cst.
5182 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
5183 (handle_alloc_size_attribute): Use wide-int interfaces.
5184 (get_nonnull_operand): Likewise.
5185 * c-format.c (get_constant): Use tree_fits_uhwi_p.
5186 * c-lex.c: Include wide-int.h.
5187 (narrowest_unsigned_type): Take a widest_int rather than two
5188 HOST_WIDE_INTs.
5189 (narrowest_signed_type): Likewise.
5190 (interpret_integer): Update accordingly. Use wide-int interfaces.
5191 (lex_charconst): Use wide-int interfaces.
5192 * c-pretty-print.c: Include wide-int.h.
5193 (pp_c_integer_constant): Use wide-int interfaces.
5194 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
5195 INT_CST_LT_UNSIGNED.
5196
b15458be
RB
51972014-05-06 Richard Biener <rguenther@suse.de>
5198
5199 * c-opts.c (c_common_post_options): For -freestanding,
5200 -fno-hosted and -fno-builtin disable pattern recognition
5201 if not enabled explicitely.
5202
6577374e
MP
52032014-05-02 Marek Polacek <polacek@redhat.com>
5204
5205 * c.opt (Wsizeof-pointer-memaccess): Describe option.
5206
d00887e8
MP
52072014-05-01 Marek Polacek <polacek@redhat.com>
5208
5209 PR c/43245
5210 * c.opt (Wdiscarded-qualifiers): Add.
5211
f8ed5150
MP
52122014-04-30 Marek Polacek <polacek@redhat.com>
5213
5214 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
5215 INT_MIN / -1 sanitization only for integer types.
5216
45484dcf
MP
52172014-04-25 Marek Polacek <polacek@redhat.com>
5218
5219 PR c/18079
5220 * c-common.c (handle_noinline_attribute): Warn if the attribute
5221 conflicts with always_inline attribute.
5222 (handle_always_inline_attribute): Warn if the attribute conflicts
5223 with noinline attribute.
5224
38e514c0
MP
52252014-04-25 Marek Polacek <polacek@redhat.com>
5226
5227 PR c/60156
5228 * c-common.c (check_main_parameter_types): Warn about variadic main.
5229
44875f92
MS
52302014-04-24 Mike Stump <mikestump@comcast.net>
5231
5232 * c.opt (Wshadow-ivar): Default to on.
5233
dcaaa5a0
DP
52342014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
5235
5236 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
5237
c07d7c02
MP
52382014-04-23 Marek Polacek <polacek@redhat.com>
5239
5240 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
5241
1c33c9b7
JJ
52422014-04-22 Jakub Jelinek <jakub@redhat.com>
5243
5244 PR sanitizer/60275
5245 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
5246 if flag_sanitize_undefined_trap_on_error.
5247 (ubsan_instrument_division, ubsan_instrument_shift,
5248 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
5249 if !flag_sanitize_recover.
5250
793c625f
MG
52512014-04-22 Marc Glisse <marc.glisse@inria.fr>
5252
5253 PR libstdc++/43622
5254 * c-common.c (registered_builtin_types): Make non-static.
5255 * c-common.h (registered_builtin_types): Declare.
5256
b0f1bf36
RB
52572014-04-14 Richard Biener <rguenther@suse.de>
5258 Marc Glisse <marc.glisse@inria.fr>
5259
5260 PR c/60819
5261 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
5262 apply may-alias the scalar pointer type when applicable.
5263
3b07fa4a
IZ
52642014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
5265
5266 PR middle-end/60467
5267 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
5268 as possible argument for Cilk_spawn.
5269
cbbd2b1c
TB
52702014-04-11 Tobias Burnus <burnus@net-b.de>
5271
5272 PR c/60194
5273 * c.opt (Wformat-signedness): Add
5274 * c-format.c(check_format_types): Use it.
5275
6415bd5d
JM
52762014-04-11 Jason Merrill <jason@redhat.com>
5277
5278 PR c++/57926
5279 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
5280 default_conversion for an array argument.
5281
6525783a
MP
52822014-04-08 Marek Polacek <polacek@redhat.com>
5283
5284 PR sanitizer/60745
5285 * c-ubsan.c: Include asan.h.
5286 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
5287
880a467b
NS
52882014-04-03 Nathan Sidwell <nathan@codesourcery.com>
5289
5290 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
5291
7b59ff2d
MP
52922014-04-02 Marek Polacek <polacek@redhat.com>
5293
5294 * c-common.h (c_expand_expr): Remove declaration.
5295
8edbfaa6
JJ
52962014-03-28 Jakub Jelinek <jakub@redhat.com>
5297
5298 PR c++/60689
5299 * c-common.c (add_atomic_size_parameter): When creating new
5300 params vector, push the size argument first.
5301
07d72e1d
JJ
53022014-03-26 Jakub Jelinek <jakub@redhat.com>
5303
5304 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
5305 ubsan_instrument_vla, ubsan_instrument_return): Adjust
5306 ubsan_create_data callers.
5307
b35e0fa0
JJ
53082014-03-22 Jakub Jelinek <jakub@redhat.com>
5309
5310 PR debug/60603
5311 * c-opts.c (c_finish_options): Restore cb_file_change call to
5312 <built-in>.
5313
39a1ebb3
JJ
53142014-03-13 Jakub Jelinek <jakub@redhat.com>
5315
5316 PR middle-end/36282
5317 * c-pragma.c (apply_pragma_weak): Only look at
5318 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
5319 DECL_ASSEMBLER_NAME_SET_P (decl).
5320 (maybe_apply_pending_pragma_weaks): Exit early if
5321 vec_safe_is_empty (pending_weaks) rather than only when
5322 !pending_weaks.
5323 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
5324 set assembler name back to NULL afterwards.
5325
a07f6ed2
JM
53262014-03-11 Jason Merrill <jason@redhat.com>
5327
5328 * c.opt: Add -std=gnu++14.
5329
75b107f5
IB
53302014-03-11 Ian Bolton <ian.bolton@arm.com>
5331
5332 * c-opts.c (c_common_post_options): Don't override
5333 -ffp-contract=fast if unsafe-math-optimizations is on.
5334
f42c637e
PM
53352014-03-08 Paulo Matos <paulo@matos-sorge.com>
5336
22b15758 5337 * c.opt: Enable LTO FE for fshort-double.
f42c637e 5338
70e24808
JM
53392014-03-07 Jason Merrill <jason@redhat.com>
5340
5341 * c.opt: Add -std=c++14.
5342
3af9c5e9
MP
53432014-03-06 Marek Polacek <polacek@redhat.com>
5344
5345 PR c/60197
5346 * cilk.c (contains_cilk_spawn_stmt): New function.
5347 (contains_cilk_spawn_stmt_walker): Likewise.
5348 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
5349 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
5350
b3bdf019
JJ
53512014-03-03 Jakub Jelinek <jakub@redhat.com>
5352
5353 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
5354 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
5355 even when flag_preprocess_only.
5356
ca7e759d
JM
53572014-02-26 Jason Merrill <jason@redhat.com>
5358
5359 PR c++/59231
5360 PR c++/11586
5361 * c-common.c (shorten_compare): Don't check
5362 c_inhibit_evaluation_warnings.
5363
28e41874
JJ
53642014-02-19 Jakub Jelinek <jakub@redhat.com>
5365
cca615af
JJ
5366 PR c/37743
5367 * c-common.c (c_common_nodes_and_builtins): When initializing
5368 c_uint{16,32,64}_type_node, also set corresponding
5369 uint{16,32,64}_type_node to the same value.
5370
28e41874
JJ
5371 PR c++/60267
5372 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
5373 for PRAGMA_IVDEP if flag_preprocess_only.
5374
c2bf53a1
JJ
53752014-02-12 Jakub Jelinek <jakub@redhat.com>
5376
5377 PR c/60101
5378 * c-common.c (merge_tlist): If copy is true, call new_tlist,
5379 if false, add ADD itself, rather than vice versa.
5380 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
5381 copy. For SAVE_EXPR, only call merge_tlist once.
5382
8fcbce72
JJ
53832014-02-08 Jakub Jelinek <jakub@redhat.com>
5384
5385 PR middle-end/60092
5386 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
5387 and tree_to_uhwi.
5388 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
5389 functions.
5390 (c_common_attribute_table): Add alloc_align and assume_aligned
5391 attributes.
5392
0a756a3f
MP
53932014-02-06 Marek Polacek <polacek@redhat.com>
5394
5395 PR c/60087
5396 * c-common.c (warn_for_sign_compare): Call warning_at with location
5397 instead of warning.
5398
7ec4847a
MP
53992014-02-05 Marek Polacek <polacek@redhat.com>
5400
5401 PR c/53123
5402 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
5403 statement.
5404
66f20604
MP
54052014-02-04 Marek Polacek <polacek@redhat.com>
5406
5407 PR c/60036
5408 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
5409 SAVE_EXPR.
5410
5d77fb19
MG
54112014-02-03 Marc Glisse <marc.glisse@inria.fr>
5412
5413 PR c++/53017
5414 PR c++/59211
5415 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
5416 handle_vector_size_attribute, handle_nonnull_attribute): Call
5417 default_conversion on the attribute argument.
5418 (handle_nonnull_attribute): Increment the argument number.
5419
81e5eca8
MP
54202014-01-31 Marek Polacek <polacek@redhat.com>
5421
5422 PR c/59963
5423 * c-common.c (add_atomic_size_parameter): Pass vNULL to
5424 build_function_call_vec.
5425 (resolve_overloaded_builtin): Likewise.
5426 * c-common.h (build_function_call_vec): Adjust declaration.
5427
68fca595
MP
54282014-01-30 Marek Polacek <polacek@redhat.com>
5429
5430 PR c/59940
5431 * c-common.h (unsafe_conversion_p): Adjust declaration.
5432 (warnings_for_convert_and_check): Likewise.
5433 (convert_and_check): Likewise.
5434 * c-common.c (unsafe_conversion_p): Add location parameter. Call
5435 expansion_point_location_if_in_system_header on it.
5436 (warnings_for_convert_and_check): Add location parameter. Call
5437 expansion_point_location_if_in_system_header on it. Use it.
5438 (convert_and_check): Add location parameter. Use it.
5439 (conversion_warning): Likewise.
5440 (c_add_case_label): Adjust convert_and_check calls.
5441 (scalar_to_vector): Adjust unsafe_conversion_p calls.
5442
b72271b9
BI
54432014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
5444
5445 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
5446 flag_cilkplus.
5447 * c-pragma.c (init_pragma): Likewise.
5448 * c.opt: Likewise.
5449
393e8e8b
MP
54502014-01-23 Marek Polacek <polacek@redhat.com>
5451
5452 PR c/59846
5453 * c-common.c (shorten_compare): Add location_t parameter.
5454 * c-common.h (shorten_binary_op): Adjust declaration.
5455
f04dda30
MP
54562014-01-23 Marek Polacek <polacek@redhat.com>
5457
5458 PR c/58346
5459 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
5460 * c-common.h: Declare it.
5461
621955cb
EB
54622014-01-20 Eric Botcazou <ebotcazou@adacore.com>
5463
5464 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
5465 * c-ada-spec.c (dump_ads): Likewise.
5466 (cpp_check): Likewise.
5467 (dump_ada_specs): Likewise.
5468
54692014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
5470
5471 PR c++/49718
5472 * c-common.c (handle_no_instrument_function_attribute): Allow
5473 no_instrument_function attribute in class member
5474 definition/declaration.
5475
241f845a
JJ
54762014-01-15 Jakub Jelinek <jakub@redhat.com>
5477
5478 PR c/58943
5479 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
5480 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
5481 being COMPOUND_EXPR.
5482 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
5483 operand a SAVE_EXPR and second MODIFY_EXPR.
5484
e83b8e2e
JJ
54852014-01-09 Jakub Jelinek <jakub@redhat.com>
5486
5487 PR target/58115
5488 * c-pch.c (c_common_write_pch): Call
5489 prepare_target_option_nodes_for_pch.
5490
23a5b65a
RS
54912014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
5492
5493 Update copyright years
5494
f9030485
RS
54952014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
5496
5497 * array-notation-common.c, c-cilkplus.c: Use the standard form for
5498 the copyright notice.
5499
f2aa696b
EB
55002013-12-28 Eric Botcazou <ebotcazou@adacore.com>
5501
5502 * c-ada-spec.c (print_constructor): New function.
5503 (print_destructor): Retrieve the origin of the destructor.
5504 (print_ada_declaration): Revamp handling of constructors/destructors.
5505
3f8257db 55062013-12-23 Stuart Hastings <stuart@apple.com>
1f26ac87
JM
5507 Bill Maddox <maddox@google.com>
5508 Jason Merrill <jason@redhat.com>
5509
5510 * c.opt: Add -fdeclone-ctor-dtor.
5511 * c-opts.c (c_common_post_options): Default to on iff -Os.
5512
41958c28
BI
55132013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
5514
5515 * c-common.c (c_common_attribute_table): Added "cilk simd function"
5516 attribute.
5517 * c-pragma.h (enum pragma_cilk_clause): Remove.
5518 (enum pragma_omp_clause): Added the following fields:
5519 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
5520 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
5521 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
5522 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
5523 PRAGMA_CILK_CLAUSE_UNIFORM.
5524
b1726d6c 5525
12893402
BI
55262013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
5527
5528 * cilk.c (cilk_outline): Made this function non-static.
5529 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
5530 (create_cilk_wrapper): Added a new parameter: a function pointer.
5531 (c_install_body_w_frame_cleanup): Remove
5532 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
5533 * c-common.h (cilk_outline): New prototype.
5534 (gimplify_cilk_spawn): Removed two parameters.
5535 (cilk_install_body_with_frame_cleanup): New prototype.
5536 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
5537 CILK_SPAWN_STMT case.
5538
085b42ed
BS
55392013-12-11 Bernd Schmidt <bernds@codesourcery.com>
5540
2ce064c3
BS
5541 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
5542
085b42ed
BS
5543 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
5544 (int_array_type_node): Remove.
5545 * c-common.c (c_common_nodes_and_builtins): Don't build it.
5546
9e36c9ed
MP
55472013-12-05 Marek Polacek <polacek@redhat.com>
5548
5549 PR c/52023
5550 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
5551 [ADJUST_FIELD_ALIGN].
5552
296674db
JM
55532013-12-04 Joseph Myers <joseph@codesourcery.com>
5554
5555 PR c/52023
5556 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
5557 and check field alignment if set.
5558 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
5559 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
5560
b1726d6c 55612013-12-04 Jakub Jelinek <jakub@redhat.com>
31e071ae
MP
5562 Marek Polacek <polacek@redhat.com>
5563
5564 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
5565 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
5566
d7947e19
L
55672013-11-29 H.J. Lu <hongjiu.lu@intel.com>
5568
5569 PR c/59309
5570 * cilk.c (gimplify_cilk_spawn): Properly handle function without
5571 arguments.
5572
fad7652e
JJ
55732013-11-29 Jakub Jelinek <jakub@redhat.com>
5574
5575 PR c/59280
5576 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
5577 goto invalid. If it is error_mark_node, don't issue further
5578 diagnostics.
5579
8b5e1202
SO
55802013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
5581
5582 * c.opt (Wopenmp-simd): New.
5583
0a508bb6
JJ
55842013-11-22 Jakub Jelinek <jakub@redhat.com>
5585
5586 * c-ubsan.h (ubsan_instrument_return): New prototype.
5587 * c-ubsan.c (ubsan_instrument_return): New function.
5588
2fb9a547
AM
55892013-11-22 Andrew MacLeod <amacleod@redhat.com>
5590
5591 * c-common.c: Add required include files from gimple.h.
5592 * c-gimplify.c: Likewise
5593 * cilk.c: Likewise
5594
8400e75e
DM
55952013-11-22 David Malcolm <dmalcolm@redhat.com>
5596
5597 * c-common.c (unsafe_conversion_p): Remove use of
5598 EXPR_LOC_OR_HERE macro.
5599 (conversion_warning): Likewise.
5600 (warnings_for_convert_and_check): Likewise.
5601 (warn_for_collisions_1): Likewise.
5602 (shorten_compare): Likewise, and remove use of in_system_header
5603 macro, using the location from the former.
5604 * c-lex.c (dump_one_header): Remove use of input_filename macro.
5605 (cb_def_pragma): Remove use of in_system_header macro.
5606 (lex_string): Likewise.
5607 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
5608
eb1ce453
KZ
56092013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
5610 Mike Stump <mikestump@comcast.net>
5611 Richard Sandiford <rdsandiford@googlemail.com>
5612
5613 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
5614 instead of TREE_INT_CST_LOW, in cases where there is a protecting
5615 tree_fits_shwi_p or tree_fits_uhwi_p.
5616 (dump_generic_ada_node): Likewise.
5617 * c-format.c (check_format_arg): Likewise.
5618 * c-pretty-print.c (pp_c_integer_constant): Likewise.
5619
6b3b8c27
KZ
56202013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
5621
5622 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
5623
49b0aa18
JC
56242013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
5625
5626 PR c/53001
5627 * c-common.c (unsafe_conversion_p): Make this function
5628 return an enumeration with more detail.
5629 (conversion_warning): Use the new return type of
5630 unsafe_conversion_p to separately warn either about conversions
5631 that lower floating point number precision or about the other
5632 kinds of conversions.
5633 * c-common.h (enum conversion_safety): New enumeration.
8e745a17
JJ
5634 (unsafe_conversion_p): switching return type to
5635 conversion_safety enumeration.
49b0aa18
JC
5636 * c.opt: Adding new warning -Wfloat-conversion and
5637 enabling it with -Wconversion.
5638
b826515a
BS
56392013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
5640
8e745a17
JJ
5641 * c-opts.c: Include plugin.h.
5642 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
b826515a 5643
b9a55b13
MP
56442013-11-19 Marek Polacek <polacek@redhat.com>
5645
5646 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
5647 call.
5648 (ubsan_instrument_shift): Likewise.
5649 (ubsan_instrument_vla): Likewise.
5650
7d362f6c
RS
56512013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5652
5653 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
5654 cast to unsigned type.
5655
386b1f1f
RS
56562013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5657
5658 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
5659 tree_low_cst.
5660 (complete_array_type): Update comment to refer to tree_to_[su]hwi
5661 rather than tree_low_cst.
5662
ae7e9ddd
RS
56632013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5664
5665 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
5666 tree_to_uhwi throughout.
5667
9439e9a1
RS
56682013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5669
5670 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
5671 tree_low_cst (..., 0) with tree_to_shwi throughout.
5672
cc269bb6
RS
56732013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5674
5675 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
5676 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
5677
9541ffee
RS
56782013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5679
5680 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
5681 host_integerp (..., 0) with tree_fits_shwi_p throughout.
5682
c02065fc
AH
56832013-11-15 Aldy Hernandez <aldyh@redhat.com>
5684
5685 * c-cilkplus.c: New file.
5686 * c-common.c (readonly_error): Add location argument.
5687 * c-common.h (readonly_error): Same.
5688 (c_finish_cilk_clauses): Protoize.
5689 (c_check_cilk_loop): Same.
5690 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
5691 Do not fail on error_mark_node.
5692 Abstract increment canonicalization to here...
5693 (c_omp_for_incr_canonicalize_ptr): New.
5694 c-pragma.c (init_pragma): Register "simd" pragma.
5695 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
5696 (enum pragma_cilk_clause): New.
5697
9cc65f15
RS
56982013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
5699
5700 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
5701 wchar_type and host_integerp checks.
5702
18f429e2
AM
57032013-11-14 Andrew MacLeod <amacleod@redhat.com>
5704
5705 * c-common.c: Likewise.
5706 * c-gimplify.c: Likewise.
5707 * cilk.c: Likewise.
5708
d8a2d370
DN
57092013-11-14 Diego Novillo <dnovillo@google.com>
5710
5711 * c-common.c: Include fold-const.h.
5712 Include stor-layout.h.
5713 Include calls.h.
5714 Include stringpool.h.
5715 Include attribs.h.
5716 Include varasm.h.
5717 Include trans-mem.h.
5718 * c-cppbuiltin.c: Include stor-layout.h.
5719 Include stringpool.h.
5720 * c-format.c: Include stringpool.h.
5721 * c-lex.c: Include stringpool.h.
5722 Include stor-layout.h.
5723 * c-pragma.c: Include stringpool.h.
5724 Include attribs.h.
5725 Include varasm.h.
5726 Include gcc-symtab.h.
5727 * c-pretty-print.c: Include stor-layout.h.
5728 Include attribs.h.
5729 * cilk.c: Include stringpool.h.
5730 Include calls.h.
5731
38b7bc7f
JM
57322013-11-13 Joseph Myers <joseph@codesourcery.com>
5733
5734 * c-common.h (enum rid): Add RID_AUTO_TYPE.
5735 * c-common.c (c_common_reswords): Add __auto_type.
5736 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
5737
45b0be94
AM
57382013-11-12 Andrew MacLeod <amacleod@redhat.com>
5739
18f429e2
AM
5740 * c-common.c: Include gimplify.h.
5741 * c-gimplify.c: Likewise.
5742 * cilk.c: Likewise.
5743 * c-omp.c: Include gimple-expr.h instead of gimple.h.
5744 * c-ubsan.c: Don't include gimple.h.
45b0be94 5745
582d9b50
JM
57462013-11-12 Joseph Myers <joseph@codesourcery.com>
5747
5748 * c-common.c (c_common_reswords): Add _Thread_local.
5749
6b28e197
JM
57502013-11-09 Joseph Myers <joseph@codesourcery.com>
5751
5752 * c-common.c (atomic_size_supported_p): New function.
5753 (resolve_overloaded_atomic_exchange)
5754 (resolve_overloaded_atomic_compare_exchange)
5755 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
5756 Use it instead of comparing size with a local list of sizes.
5757
267bac10
JM
57582013-11-07 Andrew MacLeod <amacleod@redhat.com>
5759 Joseph Myers <joseph@codesourcery.com>
5760
5761 * c-common.h (enum rid): Add RID_ATOMIC.
5762 * c-common.c (c_common_reswords): Add _Atomic.
5763 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
5764 (keyword_is_type_qualifier): Accept RID_ATOMIC.
5765 * c-format.c (check_format_types): Check for extra _Atomic
5766 qualifiers in format argument.
5767 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
5768 (pp_c_type_qualifier_list): Mention _Atomic in comment.
5769
5157b91e
TB
57702013-11-06 Tobias Burnus <burnus@net-b.de>
5771
5772 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
5773
6dbe0958
JM
57742013-11-06 Joseph Myers <joseph@codesourcery.com>
5775
5776 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
5777 standards modes.
5778 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
5779 to mean lack of IEEE 754 support.
5780
e8ff5196
TB
57812013-11-05 Tobias Burnus <burnus@net-b.de>
5782
5783 * c.opt (-Wdate-time): New option
5784 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
5785
254a0760
JM
57862013-11-05 Joseph Myers <joseph@codesourcery.com>
5787
5788 * c-cppbuiltin.c (cpp_iec_559_value): Test
5789 flag_excess_precision_cmdline not flag_excess_precision.
5790
6d7f7e0a
TB
57912013-11-05 Tobias Burnus <burnus@net-b.de>
5792
5793 * c.opt (fopenmp-simd): New option.
5794 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
5795 (omp_pragmas): ... this new struct.
5796 (c_pp_lookup_pragma): Also walk omp_pragmas.
5797 (init_pragma): Init pragmas for -fopenmp-simd.
5798
55a7f02f
MP
57992013-11-04 Marek Polacek <polacek@redhat.com>
5800
5801 PR c++/58979
5802 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
5803
9193fb05
JM
58042013-11-04 Joseph Myers <joseph@codesourcery.com>
5805
5806 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
5807 New functions.
5808 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
5809
94159ecf
EB
58102013-11-04 Eric Botcazou <ebotcazou@adacore.com>
5811
5812 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
5813 (dump_ada_specs): Adjust prototype of second callback.
5814 * c-ada-spec.c (cpp_check): New global variable.
5815 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
5816 (print_generic_ada_decl): Likewise.
5817 (has_static_fields): Change return type to bool and add guard.
5818 (has_nontrivial_methods): New predicate.
5819 (is_tagged_type): Change return type to bool.
5820 (separate_class_package): Call has_nontrivial_methods.
5821 (pp_ada_tree_identifier): Minor tweaks.
5822 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
5823 (dump_ada_array_domains): Likewise.
5824 (dump_ada_array_type): Likewise.
5825 (dump_template_types): Remove cpp_check parameter and do not pass it to
5826 dump_generic_ada_node.
5827 (dump_ada_template): Likewise.
5828 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
5829 recursively.
5830 (print_ada_methods): Change return type to integer. Remove cpp_check
5831 parameter and do not pass it down.
5832 (dump_nested_types): Remove cpp_check parameter and do not pass it to
5833 dump_generic_ada_node.
5834 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
5835 accessing methods.
5836 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
5837 down. Use has_nontrivial_methods to recognize C++ classes. Use return
5838 value of print_ada_methods.
5839 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
5840 Set cpp_check to it before invoking dump_ada_nodes.
5841 (dump_ada_specs): Likewise.
5842
b906f4ca
MP
58432013-11-03 Marek Polacek <polacek@redhat.com>
5844
5845 * c-ubsan.c: Don't include hash-table.h.
5846 (ubsan_instrument_vla): New function.
5847 * c-ubsan.h: Declare it.
5848
5e20cdc9
DM
58492013-10-31 David Malcolm <dmalcolm@redhat.com>
5850
5851 Automated part of renaming of symtab_node_base to symtab_node.
5852
5853 Patch autogenerated by rename_symtab.py from
5854 https://github.com/davidmalcolm/gcc-refactoring-scripts
5855 revision 58bb219cc090b2f4516a9297d868c245495ee622
5856
5857 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
5858 symtab_node_base to symtab_node.
5859
7057e645
ESR
58602013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
5861
8e745a17 5862 Implement C++14 digit separators.
7057e645
ESR
5863 * c-lex.c (interpret_float): Remove digit separators from scratch string
5864 before building real literal.
5865
193ea7bc
JJ
58662013-10-30 Jakub Jelinek <jakub@redhat.com>
5867
5868 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
5869
939b37da
BI
58702013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
5871
5872 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
5873 fields.
5874 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
5875 enabled.
5876 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
5877 (insert_cilk_frame): New prototype.
5878 (cilk_init_builtins): Likewise.
5879 (gimplify_cilk_spawn): Likewise.
5880 (c_cilk_install_body_w_frame_cleanup): Likewise.
5881 (cilk_detect_spawn_and_unwrap): Likewise.
5882 (cilk_set_spawn_marker): Likewise.
5883 (build_cilk_sync): Likewise.
5884 (build_cilk_spawn): Likewise.
5885 * cilk.c: New file.
5886
67348ccc
DM
58872013-10-29 David Malcolm <dmalcolm@redhat.com>
5888
5889 Patch autogenerated by refactor_symtab.py from
5890 https://github.com/davidmalcolm/gcc-refactoring-scripts
5891 revision 58bb219cc090b2f4516a9297d868c245495ee622
5892
5893 * c-gimplify.c (c_genericize): Update for conversion of symtab types
5894 to a true class hierarchy.
5895 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
5896
d570872d
RS
58972013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
5898
5899 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
5900
98906124
JL
59012013-10-26 Jeff Law <law@redhat.com>
5902
adfac8df
JJ
5903 * c-common.c (c_define_builtins): Remove mudflap support.
5904 * c.opt: Ignore and warn for mudflap options.
98906124 5905
d73749df 59062013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
5907
5908 PR other/33426
5909 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
5910 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
5911
3f04b1bb
JM
59122013-10-23 Jason Merrill <jason@redhat.com>
5913
5914 * c-format.c (gcc_cxxdiag_char_table): Add %X.
5915
acf0174b
JJ
59162013-10-11 Jakub Jelinek <jakub@redhat.com>
5917
acd15a28
JJ
5918 * c-common.h (omp_clause_mask::operator !=): New method.
5919 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
5920 instead of if (mask & something) tests everywhere.
5921
acf0174b
JJ
5922 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
5923 201307 instead of 201107.
5924 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
5925 (c_common_attribute_table): Add "omp declare target" and
5926 "omp declare simd" attributes.
5927 (handle_omp_declare_target_attribute,
5928 handle_omp_declare_simd_attribute): New functions.
5929 * c-omp.c: Include c-pragma.h.
5930 (c_finish_omp_taskgroup): New function.
5931 (c_finish_omp_atomic): Add swapped argument, if true,
5932 build the operation first with rhs, lhs arguments and use NOP_EXPR
5933 build_modify_expr.
5934 (c_finish_omp_for): Add code argument, pass it down to make_code.
5935 (c_omp_split_clauses): New function.
5936 (c_split_parallel_clauses): Removed.
5937 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
5938 c_omp_declare_simd_clauses_to_decls): New functions.
5939 * c-common.h (omp_clause_mask): New type.
5940 (OMP_CLAUSE_MASK_1): Define.
5941 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
5942 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
5943 omp_clause_mask::operator |, omp_clause_mask::operator &,
5944 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
5945 omp_clause_mask::operator ==): New methods.
5946 (enum c_omp_clause_split): New.
5947 (c_finish_omp_taskgroup): New prototype.
5948 (c_finish_omp_atomic): Add swapped argument.
5949 (c_finish_omp_for): Add code argument.
5950 (c_omp_split_clauses): New prototype.
5951 (c_split_parallel_clauses): Removed.
5952 (c_omp_declare_simd_clauses_to_numbers,
5953 c_omp_declare_simd_clauses_to_decls): New prototypes.
5954 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
5955 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
5956 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
5957 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
5958 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
5959 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
5960 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
5961 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
5962 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
5963 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
5964 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
5965 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
5966 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
5967 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
5968 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
5969 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
5970 PRAGMA_OMP_CLAUSE_UNIFORM.
5971
826cacfe
MG
59722013-10-09 Marc Glisse <marc.glisse@inria.fr>
5973
5974 PR tree-optimization/20318
5975 * c-common.c (handle_returns_nonnull_attribute): New function.
5976 (c_common_attribute_table): Add returns_nonnull.
5977
2284b034
MG
59782013-10-03 Marc Glisse <marc.glisse@inria.fr>
5979
5980 PR c++/19476
5981 * c.opt (fcheck-new): Move to common.opt.
5982
b56e9788
MP
59832013-09-25 Marek Polacek <polacek@redhat.com>
5984 Jakub Jelinek <jakub@redhat.com>
5985
5986 PR sanitizer/58413
5987 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
5988 an expression if we can prove it is correct.
5989 (ubsan_instrument_division): Likewise. Remove unnecessary
5990 check.
5991
ce6923c5
MP
59922013-09-18 Marek Polacek <polacek@redhat.com>
5993
5994 PR sanitizer/58411
5995 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
5996 Declare it.
5997 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
5998
fb5610fb
IS
59992013-09-14 Iain Sandoe <iain@codesourcery.com>
6000
6001 PR target/48094
6002 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
6003 fobjc-gc, freplace-objc-classes): Accept for LTO.
6004
88b0e79e
JC
60052013-09-13 Jacek Caban <jacek@codeweavers.com>
6006
6007 * c-target.def: New hook
6008
c9b0866a
PC
60092013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
6010
6011 PR c++/43452
6012 * c.opt (Wdelete-incomplete): Add.
6013
0af94e6f
JR
60142013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
6015
6016 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
6017 (vector_types_compatible_elements_p): New function.
6018 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
6019 declaration.
6020 (vector_types_compatible_elements_p): Declare.
6021
7c26172c
GDR
60222013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
6023
6024 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
6025 a virtual member function.
6026 (pp_simple_type_specifier): Remove.
6027 (pp_c_type_specifier): Likewise.
6028 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
6029 Rename from pp_c_type_specifier. Adjust.
6030 (c_pretty_printer::c_pretty_printer): Do not assign to
6031 simple_type_specifier.
6032
20059c8b
GDR
60332013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
6034
6035 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
6036 member function.
6037 (c_pretty_printer::storage_class_specifier): Likewise.
6038 (c_pretty_printer::initializer): Likewise.
6039 (pp_declaration): Remove.
6040 (pp_declaration_specifiers): Likewise.
6041 (pp_abstract_declarator): Likewise.
6042 (pp_declarator): Likewise.
6043 (pp_type_id): Likewise.
6044 (pp_statement): Likewise.
6045 (pp_constant): Likewise.
6046 (pp_id_expression): Likewise.
6047 (pp_primary_expression): Likewise.
6048 (pp_unary_expression): Likewise.
6049 (pp_multiplicative_expression): Likewise.
6050 (pp_conditional_expression): Likewise.
6051 (pp_assignment_expression): Likewise.
6052 (pp_expression): Likewise.
6053 (pp_c_type_id): Likewise.
6054 (pp_c_storage_class_specifier): Likewise.
6055 * c-pretty-print.c (pp_c_type_cast): Tidy.
6056 (pp_c_pointer): Likewise.
6057 (pp_c_type_specifier): Likewise.
6058 (pp_c_parameter_type_list): Likewise.
6059 (pp_c_function_definition): Likewise.
6060 (pp_c_init_declarator): Likewise.
6061 (pp_c_initializer_list): Likewise.
6062 (pp_c_constructor_elts): Likewise.
6063 (c_pretty_printer::direct_abstract_declarator): Likewise.
6064 (c_pretty_printer::declaration_specifiers): Likewise.
6065 (c_pretty_printer::primary_expression): Likewise.
6066 (c_pretty_printer::postfix_expression): Likewise.
6067 (c_pretty_printer::type_id): Rename from pp_c_type_id.
6068 (c_pretty_printer::storage_class_specifier): Rename from
6069 pp_c_storage_class_specifier.
6070 (c_pretty_printer::initializer): Rename from pp_c_initializer.
6071 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
6072 storage_class_specifier, initializer, offset_list, flags.
6073
de5a5fa1
MP
60742013-08-30 Marek Polacek <polacek@redhat.com>
6075
6076 * c-ubsan.c: New file.
6077 * c-ubsan.h: New file.
6078
8f0e4d72
GDR
60792013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
6080
6081 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
6082 member function.
6083 (c_pretty_printer::declaration_specifiers): Likewise.
6084 (c_pretty_printer::declarator): Likewise.
6085 (c_pretty_printer::abstract_declarator): Likewise.
6086 (c_pretty_printer::direct_abstract_declarator): Likewise.
6087 (c_pretty_printer::direct_declarator): Likewise.
6088 (c_pretty_printer::function_specifier): Likewise.
6089 (pp_declaration): Adjust.
6090 (pp_declaration_specifiers): Likewise.
6091 (pp_abstract_declarator): Likewise.
6092 (pp_direct_declarator): Likewise.
6093 (pp_function_specifier): Likewise.
6094 (pp_direct_abstract_declarator): Remove as unused.
6095 (pp_c_declaration): Remove.
6096 (pp_c_declaration_specifiers): Likewise.
6097 (pp_c_declarator): Likewise.
6098 (pp_c_direct_declarator): Likewise.
6099 (pp_c_function_specifier): Likewise.
6100 (pp_c_direct_abstract_declarator): Likewise.
6101 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
6102 from pp_c_abstract_declarator. Adjust.
6103 (c_pretty_printer::direct_abstract_declarator): Rename from
6104 pp_c_direct_abstract_declarator. Adjust.
6105 (c_pretty_printer::function_specifier): Rename from
6106 pp_c_function_specifier. Adjust.
6107 (c_pretty_printer::declaration_specifiers): Rename from
6108 pp_c_declaration_specifiers. Adjust.
6109 (c_pretty_printer::direct_declarator): Rename from
6110 pp_c_direct_declarator. Adjust.
6111 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
6112 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
6113 (c_pretty_printer::c_pretty_printer): Do not assign to
6114 declaration, declaration_specifiers, declarator,
6115 direct_declarator, direct_abstract_declarator, function_specifier.
6116
00d34d3a
GDR
61172013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
6118
6119 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
6120 virtual member function.
6121 (c_pretty_printer::multiplicative_expression): Likewise.
6122 (c_pretty_printer::conditional_expression): Likewise.
6123 (c_pretty_printer::assignment_expression): Likewise.
6124 (c_pretty_printer::expression): Likewise.
6125 (pp_unary_expression): Adjust.
6126 (pp_multiplicative_expression): Likewise.
6127 (pp_assignment_expression): Likewise.
6128 (pp_conditional_expression): Likewise.
6129 (pp_expression): Likewise.
6130 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
6131 from pp_c_unary_expression. Adjust.
6132 (c_pretty_printer::multiplicative_expression): Rename from
6133 pp_c_multiplicative_expression. Adjust.
6134 (c_pretty_printer::conditional_expression): Rename from
6135 pp_c_conditional_expression. Adjust.
6136 (c_pretty_printer::assignment_expression): Rename from
6137 pp_c_assignment_expression. Adjust.
6138 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
6139 (c_pretty_printer::c_pretty_printer): Do not assign to
6140 unary_expression, multiplicative_expression,
6141 conditional_expression, expression.
6142
fb22178f
GDR
61432013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
6144
6145 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
6146 virtual member function.
6147 (pp_postfix_expression): Adjust.
6148 (pp_c_postfix_expression): Remove.
6149 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
6150 from pp_c_postfix_expression. Adjust.
6151 (c_pretty_printer::c_pretty_printer): Do not assign to
6152 postfix_expression.
6153
7ecc2600
GDR
61542013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
6155
6156 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
6157 virtua member function.
6158 (pp_primary_expression): Adjust.
6159 (pp_c_primary_expression): Remove.
6160 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
6161 from pp_c_primary_expression. Adjust.
6162 (pp_c_initializer_list): Use pp_primary_expression.
6163 (c_pretty_printer::c_pretty_printer): Do not assign to
6164 primary_expression.
6165
0691175f
GDR
61662013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
6167
6168 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
6169 * c-pretty-print.c (M_): Remove.
6170 (c_pretty_printer::translate_string): Define.
6171 (pp_c_type_specifier): Use it.
6172 (pp_c_primary_expression): Likewise.
6173 (pp_c_expression): Likewise.
6174
66dfe4c4
GDR
61752013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
6176
6177 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
6178 virtual function.
6179 (pp_c_id_expression): Remove.
6180 (pp_id_expression): Adjust.
6181 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
6182 pp_c_id_expression. Adjust.
6183 (pp_c_postfix_expression): Use pp_id_expression.
6184 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
6185
ca43e9d5
GDR
61862013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
6187
6188 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
6189 member function.
6190 (pp_constant): Adjust.
6191 (pp_c_constant): Remove.
6192 * c-pretty-print.c (c_pretty_printer::constant): Rename from
6193 pp_c_constant. Adjust.
6194 (pp_c_constant)
6195 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
6196 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
6197
da6ca2b5
GDR
61982013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
6199
6200 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
6201 (c_pretty_printer::c_pretty_printer): Declare.
6202 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
6203 c_pretty_printer_init. Adjust.
6204 (print_c_tree): Do not call c_pretty_printer_init.
6205 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
6206
65a372f4
AC
62072013-08-09 Arnaud Charlet <charlet@adacore.com>
6208
6209 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
6210
fd9b0f32
PC
62112013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
6212
6213 PR c++/58080
6214 * c-common.c (pointer_int_sum): Add bool parameter.
6215 * c-common.h (pointer_int_sum): Adjust declaration.
6216
e0aec1e9
GDR
62172013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
6218
6219 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
6220 c_pretty_printer variable.
6221
b066401f
GDR
62222013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
6223
6224 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
6225 (pp_base): Remove.
6226 (pp_c_base): Likewise. Adjust users.
6227 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
6228 (pp_c_whitespace): Do not call pp_base.
6229 (pp_c_left_paren): Likewise.
6230 (pp_c_right_paren): Likewise.
6231 (pp_c_left_brace): Likewise.
6232 (pp_c_right_brace): Likewise.
6233 (pp_c_left_bracket): Likewise.
6234 (pp_c_right_bracket): Likewise.
6235 (pp_c_dot): Likewise.
6236 (pp_c_ampersand): Likewise.
6237 (pp_c_star): Likewise.
6238 (pp_c_arrow): Likewise.
6239 (pp_c_semicolon): Likewise.
6240 (pp_c_complement): Likewise.
6241 (pp_c_exclamation): Likewise.
6242 (pp_c_direct_declarator): Likewise.
6243 (pp_c_ws_string): Likewise.
6244 (pp_c_identifier): Likewise.
6245 (pp_c_statement): Likewise.
6246 (print_c_tree): Likewise.
6247
65e5a578
ESR
62482013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
6249
6250 PR c++/58072
6251 * c-common.c (c_parse_error): Catch user-defined literal tokens and
6252 provide useful error strings.
6253
137a1a27
GDR
62542013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
6255
6256 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
6257 printer functions instead of pp_string or operators and punctuators.
6258 (dump_generic_ada_node): Likewise.
6259 * c-pretty-print.c (pp_c_type_specifier): Likewise.
6260 (pp_c_relational_expression): Likewise.
6261 (pp_c_logical_or_expression): Likewise.
6262
07838b13
GDR
62632013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
6264
6265 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
6266 functions instead of pp_character.
6267 (pp_ada_tree_identifier): Likewise.
6268 (dump_ada_double_name): Likewise.
6269 (dump_ada_function_declaration): Likewise.
6270 (dump_ada_array_domains): Likewise.
6271 (dump_template_types): Likewise.
6272 (dump_generic_ada_node): Likewise.
6273 (print_ada_declaration): Likewise.
6274 (print_ada_struct_decl): Likewise.
6275 * c-pretty-print.c (pp_c_integer_constant): Likewise.
6276
433cc7b0
TT
62772013-07-23 Tom Tromey <tromey@redhat.com>
6278
6279 * c-common.h (enum rid) <RID_GENERIC>: New constant.
6280 * c-common.c (c_common_reswords): Add _Generic.
6281
688010ba
OB
62822013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
6283
6284 * c-common.c: Fix typos.
6285 * c-common.h: Likewise.
6286
2a99e5e6
LL
62872013-07-13 Lubos Lunak <l.lunak@suse.cz>
6288
6289 PR c++/55203
6290 * c-common.c (c_common_attribute_table): Add warn_unused.
6291 (handle_warn_unused_attribute): New.
6292
c26302d5
JJ
62932013-07-10 Jakub Jelinek <jakub@redhat.com>
6294
6295 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
6296 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
6297
dfeadaa0
PC
62982013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
6299
6300 PR c++/57869
6301 * c.opt: Add Wconditionally-supported.
6302
6a2fa4b2
GS
63032013-07-08 Graham Stott <graham.stott@btinternet.com>
6304
adfac8df 6305 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
6306 unused variables l_length and l_node.
6307
ecdbd01a 63082013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
6309
6310 PR c/57821
6311 * c-common.c (complete_array_type): Delay folding first index
6312 like other indices. When folding, check for index overflow.
6313
bedc293e
MG
63142013-06-27 Marc Glisse <marc.glisse@inria.fr>
6315
6316 PR c++/57509
6317 * c-common.h (c_build_vec_perm_expr): New complain argument.
6318 * c-common.c (c_build_vec_perm_expr): Likewise.
6319 Use save_expr also in C++.
6320
604b2bfc
GDR
63212013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
6322
6323 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
6324 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
6325 * c-opts.c (c_common_post_options): Likewise.
6326
dfeadaa0 63272013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
6328
6329 * array-notation-common.c (length_mismatch_in_expr): Changed the
6330 parameter type's from a dynamic array to a vec_tree. Also removed
6331 the size parameters.
6332 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
6333 the change above.
6334
2ce86d2e
BI
63352013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
6336
6337 * c-common.h (struct cilkplus_an_parts): New structure.
6338 (struct cilkplus_an_loop_parts): Likewise.
6339 (cilkplus_extract_an_triplets): New prototype.
6340 (fix_sec_implicit_args): Likewise.
6341 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
6342 (fix_sec_implicit_args): Likewise.
604b2bfc 6343
07a6825b
BI
63442013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
6345
6346 * array-notation-common.c (find_inv_trees): Removed an unwanted
6347 typecasting.
6348 * c-common.h (struct inv_list::additional_tcodes): Changed type from
6349 enum rid to enum tree_code.
6350
08346abd
JH
63512013-06-11 Jan Hubicka <jh@suse.cz>
6352
6353 * c-common.c (handle_alias_ifunc_attribute): Do not set
6354 DECL_EXTERNAL for weakref variables.
6355 * c-pragma.c (handle_pragma_weak): Make sure aliases
6356 are not declared as external.
6357
d60f1706
BI
63582013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
6359
6360 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
6361 function from c/c-array-notation.c.
6362 (is_cilkplus_reduce_builtin): Likewise.
6363 (find_rank): Likewise.
6364 (extract_array_notation_exprs): Likewise.
6365 (replace_array_notations): Likewise.
6366 (find_inv_trees): Likewise.
6367 (replace_inv_trees): Likewise.
6368 (contains_array_notation_expr): Likewise.
6369 (find_correct_array_notation_type): Likewise.
6370 * c-common.h (struct inv_list): Moved this struct from the file
6371 c/c-array-notation.c and added a new field called additional tcodes.
6372 (length_mismatch_in_expr_p): New prototype.
6373 (is_cilkplus_reduce_builtin): Likewise.
6374 (find_rank): Likewise.
6375 (extract_array_notation_exprs): Likewise.
6376 (replace_array_notation): Likewise.
6377 (find_inv_trees): Likewise.
6378 (replace_inv_trees): Likewise.
6379 (find_correct_array_notation_type): Likewise.
dfeadaa0 6380
36536d79
BI
63812013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
6382
6383 * c-common.c (c_define_builtins): When cilkplus is enabled, the
6384 function array_notation_init_builtins is called.
6385 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
6386 * c-common.def (ARRAY_NOTATION_REF): New tree.
6387 * c-common.h (build_array_notation_expr): New function declaration.
6388 (build_array_notation_ref): Likewise.
6389 (extract_sec_implicit_index_arg): New extern declaration.
6390 (is_sec_implicit_index_fn): Likewise.
6391 (ARRAY_NOTATION_CHECK): New define.
6392 (ARRAY_NOTATION_ARRAY): Likewise.
6393 (ARRAY_NOTATION_START): Likewise.
6394 (ARRAY_NOTATION_LENGTH): Likewise.
6395 (ARRAY_NOTATION_STRIDE): Likewise.
6396 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
6397 ARRAY_NOTATION_REF.
6398 (pp_c_expression): Likewise.
6399 * c.opt (flag_enable_cilkplus): New flag.
6400 * array-notation-common.c: New file.
6401
f7716d57
JJ
64022013-05-14 Jakub Jelinek <jakub@redhat.com>
6403
6404 PR c++/57274
6405 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
6406
a5e0cd1d
MG
64072013-05-10 Marc Glisse <marc.glisse@inria.fr>
6408
6409 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
6410 vectors.
6411
f6bc1c4a
HS
64122013-05-07 Han Shen <shenhan@google.com>
6413
6414 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
6415
3f12f6e9
SKS
64162013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
6417
6418 * c-common.c (check_user_alignment): Emit error for negative values.
6419
61949153
PC
64202013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6421
6422 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
6423
e93e18e9
PC
64242013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6425
6426 * c-cppbuiltin.c (c_cpp_builtins): Do not define
6427 __GXX_EXPERIMENTAL_CXX1Y__.
6428
44d90fe1 64292013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
8e745a17 6430 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
44d90fe1
PC
6431
6432 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
6433 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
6434 to simply use OPT_Wpointer_arith.
6435 (c_sizeof_or_alignof_type): Likewise.
6436
13f39b2e
PC
64372013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6438
6439 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
6440
4b84d650
JJ
64412013-04-12 Jakub Jelinek <jakub@redhat.com>
6442
6443 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
6444 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
6445 specifiers.
6446
fb037b5d
SB
64472013-04-07 Steven Bosscher <steven@gcc.gnu.org>
6448
6449 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
6450
4e856798
PC
64512013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
6452
6453 * c-common.c (pointer_int_sum): Remove dead code.
6454
4b1baac8
RS
64552013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
6456
6457 PR middle-end/56524
6458 * c-common.c (handle_optimize_attribute): Don't call
6459 save_optabs_if_changed.
6460
0b50e654
JJ
64612013-03-05 Jakub Jelinek <jakub@redhat.com>
6462
6463 PR middle-end/56461
6464 * c-pch.c (pch_init): Free target_validity at the end.
6465
48c41403
JJ
64662013-03-04 Jakub Jelinek <jakub@redhat.com>
6467
6468 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
6469
e664c61c
KS
64702013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
6471 Jakub Jelinek <jakub@redhat.com>
6472
6473 PR sanitizer/56454
6474 * c-common.c (handle_no_sanitize_address_attribute): New function.
6475 (c_common_attribute_table): Add no_sanitize_address attribute.
6476 (handle_no_address_safety_analysis_attribute): Add
6477 no_sanitize_address attribute, not no_address_safety_analysis
6478 attribute.
6479
a475fd3d 64802013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
6481
6482 PR target/52555
6483 * c-common.c (handle_optimize_attribute): Call
6484 save_optabs_if_changed.
6485
f6007d99
JJ
64862013-02-18 Jakub Jelinek <jakub@redhat.com>
6487 Steven Bosscher <steven@gcc.gnu.org>
6488
6489 PR pch/54117
6490 * c-opts.c (c_common_post_options): If debug info is enabled
6491 and non-dwarf*, refuse to load PCH files and when writing PCH
6492 file warn.
6493
cf35e2b1
JJ
64942013-02-05 Jakub Jelinek <jakub@redhat.com>
6495
6496 PR middle-end/56167
6497 * c-common.c (handle_error_attribute): Fix condition.
6498
32887460
JJ
64992013-01-30 Jakub Jelinek <jakub@redhat.com>
6500
6501 PR c++/55742
6502 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
6503
5af057d8
JM
65042013-01-18 Jason Merrill <jason@redhat.com>
6505
6506 PR target/54908
6507 * c.opt (-fextern-tls-init): New.
6508 * c-opts.c (c_common_post_options): Handle it.
6509
cc83c823
JJ
65102013-01-09 Jakub Jelinek <jakub@redhat.com>
6511
6512 PR c/48418
6513 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
6514 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
6515 and is either negative or bigger or equal to type precision
6516 of the first operand.
6517
a859517f
MP
65182012-12-03 Marek Polacek <polacek@redhat.com>
6519
6520 PR c/55570
6521 * c-common.c (check_user_alignment): Swap order of tests,
6522 check TREE_CODE first.
6523
2d7aa578
ESR
65242012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
6525
6526 PR c++/52654
6527 * c-common.h (overflow_type): New enum.
6528 (build_userdef_literal): Add overflow_type argument.
6529 (tree_userdef_literal): Add overflow_type.
6530 (USERDEF_LITERAL_OVERFLOW): New access macro.
6531 * c-common.c (build_userdef_literal): Add overflow_type
6532 argument.
6533 * c-lex.c (c_lex_with_flags): Add overflow_type to
6534 build_userdef_literal calls.
6535 (interpret_integer, interpret_float): Add overflow_type argument.
6536
cc3c4f62
RB
65372012-11-28 Richard Biener <rguenther@suse.de>
6538
6539 PR c/35634
6540 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
6541 here and use a type with proper overflow behavior for types that would
6542 need to be promoted for the arithmetic.
6543
77bc5132
JJ
65442012-11-23 Jakub Jelinek <jakub@redhat.com>
6545
6546 PR sanitizer/55435
6547 * c-common.c (handle_no_address_safety_analysis_attribute): New
6548 function.
6549 (c_common_attribute_table): Add no_address_safety_analysis.
6550
5dc99c46
SB
65512012-11-16 Simon Baldwin <simonb@google.com>
6552
6553 * c.opt: Add f[no-]canonical-system-headers.
6554 * c-opts.c (c_common_handle_option): Handle
6555 OPT_fcanonical_system_headers.
6556
a4a0016d
ESR
65572012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
6558
6559 PR c++/54413
6560 * c-opts.c (c_common_handle_option): Set new flags.
6561 * c.opt: Describe new flags.
6562
7dbb85a7
JM
65632012-11-09 Jason Merrill <jason@redhat.com>
6564
6565 * c.opt (Wabi-tag): New.
6566
ad7bac31
AK
65672012-11-09 Andi Kleen <ak@linux.intel.com>
6568
6569 PR 55139
6570 * c-common.c (get_atomic_generic_size): Mask with
8e745a17 6571 MEMMODEL_MASK
ad7bac31 6572
7332899a
MLI
65732012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
6574
6575 PR c/53063
6576 * c.opt (Wformat): Make it Alias Wformat=1.
6577 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
6578 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
6579 LangEnabledBy.
6580 (Wformat=): RejectNegative. Use LangEnabledBy.
6581 (Wnonnull): Use LangEnabledBy.
6582 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
6583 * c-format.c (set_Wformat): Delete.
6584 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
8e745a17
JJ
6585 (maybe_read_dollar_number): Likewise.
6586 (avoid_dollar_number): Likewise.
6587 (finish_dollar_format_checking): Likewise.
6588 (check_format_info): Likewise.
6589 (check_format_info_main): Likewise.
6590 (check_format_types): Likewise.
6591 (format_type_warning): Likewise.
6592 * c-common.c (int): Likewise.
6593 (check_function_sentinel): Likewise.
6594 * c-common.h (warn_format,set_Wformat): Do not declare here.
7332899a 6595
34a180a6
MLI
65962012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
6597
6598 PR c/53063
6599 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
6600 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
6601 Use LangEnabledBy.
6602 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
6603 common.opt.
6604 (Wvariadic-macros): Init(1).
6605 * c-opts.c (c_common_handle_option): Do not handle them
6606 explicitly.
6607 (c_common_post_options): Likewise.
6608 (sanitize_cpp_opts): warn_unused_macros is now
6609 cpp_warn_unused_macros.
6610 (push_command_line_include): Likewise.
6611 * c-common.c (warn_unknown_pragmas): Do not define.
6612 * c-common.h (warn_unknown_pragmas): Do not declare.
6613
3f46d6a5
MLI
66142012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
6615
6616 PR c/51294
6617 * c-common.c (conversion_warning): Handle conditional expressions.
6618
880661a4
JW
66192012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
6620
6621 PR c++/54930
6622 * c.opt (Wreturn_local_addr): Define new option.
6623
4514a96b
JM
66242012-10-25 Jason Merrill <jason@redhat.com>
6625
f14edc1a
JM
6626 * c.opt (Wvirtual-move-assign): New.
6627
4514a96b
JM
6628 * c.opt (Winherited-variadic-ctor): New.
6629
93100c6b
MG
66302012-10-25 Marc Glisse <marc.glisse@inria.fr>
6631
6632 PR c++/54427
6633 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
6634
1efcb8c6
JM
66352012-10-23 Joseph Myers <joseph@codesourcery.com>
6636
6637 * c-common.h (pch_cpp_save_state): Declare.
6638 * c-target.def (c_preinclude): New hook.
6639 * c-opts.c (done_preinclude): New.
6640 (push_command_line_include): Handle default preincluded header.
6641 (cb_file_change): Call pch_cpp_save_state when calling
6642 push_command_line_include.
6643 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
6644 (pch_cpp_save_state): New.
6645 (pch_init): Call pch_cpp_save_state conditionally, instead of
6646 calling cpp_save_state.
6647
4a0ae68e
MLI
66482012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
6649
6650 PR c/53063
6651 PR c/40989
6652 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
6653 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
6654 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
6655 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
6656 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
6657 * c-opts.c (c_common_handle_option): Remove explicit handling from
6658 here.
6659 (c_common_post_options): Likewise.
6660
67e4210b
EB
66612012-10-18 Eric Botcazou <ebotcazou@adacore.com>
6662
6663 * c-ada-spec.c (LOCATION_COL): Delete.
6664 (compare_location): New function.
6665 (compare_node): Use it.
6666 (compare_comment): Likewise.
6667
65d4f2cd
MLI
66682012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
6669
6670 PR c/53063
6671 PR c/40989
6672 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
6673 * c-opts.c (c_common_handle_option): Do not set them here. Add
6674 comment.
6675 (c_common_post_options): Likewise.
6676
909881cb
EB
66772012-10-16 Eric Botcazou <ebotcazou@adacore.com>
6678
6679 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
6680 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
6681 Remove POINTER_TYPE handling, add large unsigned handling and use
6682 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
6683
3a785c97
JJ
66842012-10-12 Jakub Jelinek <jakub@redhat.com>
6685
6686 PR c/54381
6687 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
6688 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
6689 locs and array of 3 trees instead of just single loc and single
6690 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
6691 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
6692 For *cmp* builtins that take two sources strings report warnings
6693 about first and second source, not about destination and source.
6694
5e54f81d
MG
66952012-10-12 Marc Glisse <marc.glisse@inria.fr>
6696
6697 PR c++/53055
6698 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
6699
f5b02f1e
EB
67002012-10-11 Eric Botcazou <ebotcazou@adacore.com>
6701
6702 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
6703 declaring something coming from another file.
6704
b46dbc6c
AC
67052012-10-10 Arnaud Charlet <charlet@adacore.com>
6706
f5b02f1e 6707 PR ada/54845
b46dbc6c
AC
6708 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
6709
5d9de0d0
PC
67102012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
6711
6712 PR c++/54194
6713 * c-common.c (warn_about_parentheses): Add location_t parameter;
6714 use EXPR_LOC_OR_LOC.
6715 * c-common.h: Update declaration.
6716
a212e43f
MG
67172012-10-09 Marc Glisse <marc.glisse@inria.fr>
6718
6719 PR c++/54427
6720 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
6721 more operations. Make error messages optional.
6722 * c-common.h (enum stv_conv): Moved from c-typeck.c.
6723 (scalar_to_vector): Declare.
6724
b1db7f91
JM
67252012-10-08 Jason Merrill <jason@redhat.com>
6726
6727 * c-common.c (c_common_reswords): Add thread_local.
6728
e28d52cf
DS
67292012-10-08 Dodji Seketeli <dodji@redhat.com>
6730
6731 PR c++/53528 C++11 attribute support
6732 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
6733 new functions.
6734 * c-common.c (check_cxx_fundamental_alignment_constraints): New
6735 static function.
6736 (handle_aligned_attribute): In choose strictest alignment
6737 among many. Use new check_cxx_fundamental_alignment_constraints.
6738 (handle_transparent_union_attribute): In c++11 attribute syntax,
6739 don't look through typedefs.
6740
3b78de56
AC
67412012-10-04 Arnaud Charlet <charlet@adacore.com>
6742
6743 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
6744 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
6745 out of dumpfile.h.
6746
6040bb5f
DC
67472012-09-25 Dehao Chen <dehao@google.com>
6748
6749 PR middle-end/54645
3b78de56 6750 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
6751 map when read in the pch.
6752
3f8257db 67532012-09-18 Arnaud Charlet <charlet@adacore.com>
0b07a57e
AC
6754
6755 * c-ada-spec.c: Style fixes.
6756
3f8257db 67572012-09-18 Thomas Quinot <quinot@adacore.com>
da5182be
TQ
6758
6759 * c.opt (-fada-spec-parent): Define new command line switch.
6760 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
6761 is specified, generate binding spec as a child of the specified unit.
6762
0ccb505d
PC
67632012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
6764 Manuel López-Ibáñez <manu@gcc.gnu.org>
6765
6766 PR c++/53210
6767 * c.opt ([Winit-self]): Enabled by -Wall in C++.
6768
c583af79
AC
67692012-08-23 Arnaud Charlet <charlet@adacore.com>
6770
6771 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
6772 for pointers, and add missing Convention C pragma.
6773 (print_ada_struct_decl): Add missing aliased keyword.
6774 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
6775
1a4049e7
JJ
67762012-08-17 Jakub Jelinek <jakub@redhat.com>
6777
6778 * c-common.c (sizeof_pointer_memaccess_warning): New function.
6779 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
6780 * c-opts.c (c_common_handle_option): Enable it for -Wall.
6781 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
6782 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
6783
70b5e7dc
RG
67842012-08-10 Richard Guenther <rguenther@suse.de>
6785
6786 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
6787
f8923f7e
SB
67882012-08-07 Steven Bosscher <steven@gcc.gnu.org>
6789
6790 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
6791 instead of separate pp_newline and pp_flush.
6792 (print_c_tree): Likewise.
6793
e45abe1f
RH
67942012-07-26 Richard Henderson <rth@redhat.com>
6795
6796 * c-common.c (handle_hot_attribute): Allow labels.
6797 (handle_cold_attribute): Likewise.
6798
332f1d24
JJ
67992012-07-20 Jakub Jelinek <jakub@redhat.com>
6800
6801 PR c++/28656
6802 * c-common.c (check_function_nonnull): Handle multiple nonnull
6803 attributes properly.
6804
7ee2468b
SB
68052012-07-16 Steven Bosscher <steven@gcc.gnu.org>
6806
6807 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
6808 * c-ada-spec.c: Likewise.
6809 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
6810
ee7b28eb
SB
68112012-07-14 Steven Bosscher <steven@gcc.gnu.org>
6812
6813 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
6814 Remove code conditional on it.
6815
6bdf3519
SB
68162012-07-11 Steven Bosscher <steven@gcc.gnu.org>
6817
6818 * c-gimplify.c: Do not include basic-block.h.
6819 * c-common.c: Do not include linfuncs.h.
6820
532aafad
SB
68212012-07-08 Steven Bosscher <steven@gcc.gnu.org>
6822
6823 * c-common.h: Include tree.h.
6824
8d0d1915
JM
68252012-07-02 Jason Merrill <jason@redhat.com>
6826
6827 PR c++/53524
6828 * c-common.c (get_priority): Call default_conversion.
6829
fbc873ad
UB
68302012-07-01 Uros Bizjak <ubizjak@gmail.com>
6831
6832 * c-pch.c (c_common_write_pch): Remove unused variables.
6833
d4a10d0a
SB
68342012-06-29 Steven Bosscher <steven@gcc.gnu.org>
6835
6836 * cppspec.c: Moved from gcc/ to here.
6837
6f3a2e23
KT
68382012-06-27 Kai Tietz <ktietz@redhat.com>
6839
6840 PR preprocessor/37215
6841 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
6842
8ca92d04
SB
68432012-06-21 Steven Bosscher <steven@gcc.gnu.org>
6844
6845 * c-common.h (c_common_print_pch_checksum): Remove.
6846 * c-pch.c: Do not include output.h.
6847 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
6848 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
6849 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
6850 (struct c_pch_header): Remove.
6851 (get_ident): Update gpch version.
6852 (pch_init): Do not print executable_checksum to asm_out_file.
6853 Do not fail if there is no asm_out_file to read back from. Set
6854 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
6855 (c_common_write_pch): Verify that nothing was written to asm_out_file
6856 since pch_init was called. Do not write a c_pch_header, and do not
6857 copy from asm_out_file to the PCH.
6858 (c_common_read_pch): Do not read a c_pch_header, and do not restore
6859 the content of asm_out_file from the PCH.
6860 (c_common_print_pch_checksum): Remove.
6861 * c-opts.c (c_common_init): Print out executable_checksum directly.
6862
70f42967
SB
68632012-06-19 Steven Bosscher <steven@gcc.gnu.org>
6864
6865 * c-target.def (objc_declare_unresolved_class_reference,
6866 objc_declare_class_definition): Add new hooks.
6867
a8781821
SB
68682012-06-19 Steven Bosscher <steven@gcc.gnu.org>
6869
6870 * c-lex.c: Do not include output.h.
6871 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
6872 Remove uses of ASM_OUTPUT_IDENT.
6873
9e1a8dd1
RR
68742012-06-15 Marc Glisse <marc.glisse@inria.fr>
6875
6876 PR c++/51033
6877 * c-common.h (c_build_vec_perm_expr): Move decl here.
6878 * c-common.c (c_build_vec_perm_expr): Move definition
6879 here.
6880
6f07a821
SB
68812012-06-06 Steven Bosscher <steven@gcc.gnu.org>
6882
6883 * c.opt (fconserve-space): Turn into a no-op.
6884
9faeb493 68852012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
6886
6887 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
6888 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
6889 both the start and end of the function.
6890
a4b7d13c
SB
68912012-06-04 Steven Bosscher <steven@gcc.gnu.org>
6892
6893 * c-common.c: Do not include output.h.
6894 * c-pragma.c: Likewise.
6895
c265f413
SA
68962012-06-04 Steven Bosscher <steven@gcc.gnu.org>
6897
6898 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
6899 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
6900 (lang_decl_name): Handle namespace decls.
6901
be7a421e
SB
69022012-05-31 Steven Bosscher <steven@gcc.gnu.org>
6903
6904 * c-ada-spec.c: Do not include output.h.
6905 * c-semantics.c: Likewise.
6906
65de6659
JM
69072012-05-29 Joseph Myers <joseph@codesourcery.com>
6908
6909 * c-common.c: Fix typo.
6910
ca5f4331
MM
69112012-05-29 Michael Matz <matz@suse.de>
6912
6913 * c-common.h (c_expand_decl): Remove prototype.
6914
4f7f7aca
MLI
69152012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
6916
6917 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
6918 * c-opts.c (c_common_handle_option): Remove code handling
6919 warn_missing_braces.
6920
4a792f9b
PC
69212012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
6922
6923 PR c++/25137
6924 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
6925 -Wmissing_braces.
6926
650dc14a
DS
69272012-05-22 Dodji Seketeli <dodji@redhat.com>
6928
6929 PR c++/53322
6930 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
6931
9b095bf1
MLI
69322012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
6933
6934 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
6935 * c-opts.c (c_common_handle_option): Do not handle explicitly
6936 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
6937
0b2c4be5
DS
69382012-05-16 Dodji Seketeli <dodji@redhat.com>
6939
6940 PR preprocessor/7263
6941 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
6942 to cpp_classify_number. For diagnostics, use the precise location
6943 instead of the global input_location.
6944
a1bde5af
PC
69452012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
6946
d02924ef 6947 PR c++/11856
a1bde5af
PC
6948 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
6949
d1ede5f4
BS
69502012-05-14 Bernd Schmidt <bernds@codesourcery.com>
6951
a1bde5af 6952 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 6953
f2bc201f
MLI
69542012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
6955
6956 PR 53063
6957 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
6958 Wreorder): Use LangEnabledBy.
6959 * c-opts.c (c_common_handle_option): Do not enable them
6960 explicitly. Call lang-specific generated functions.
6961 (c_common_post_options): Do not set them here.
6962
95744782
MLI
69632012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
6964
6965 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
6966 Wmissing-field-initializers,Wmissing-parameter-type,
6967 Wold-style-declaration,Woverride-init): Use EnabledBy.
6968 * c-opts.c (c_common_post_options): Do not set here explicitly.
6969
7d5a5747
MLI
69702012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
6971
6972 PR 53063
6973 * c-opts.c (c_common_handle_option): Use handle_generated_option
6974 to enable sub-options.
6975
5a3c9cf2
PC
69762012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
6977
6978 PR c++/53158
6979 * c-common.c (warnings_for_convert_and_check): Use warning_at.
6980
3ac8781c
RG
69812012-05-10 Richard Guenther <rguenther@suse.de>
6982
6983 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
6984 adjust commentary about TYPE_IS_SIZETYPE types.
6985
1e537948
MLI
69862012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
6987
6988 PR c++/53261
6989 * c-common.c (warn_logical_operator): Check that argument of
6990 integer_zerop is not NULL.
6991
f2c4a785
MLI
69922012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
6993
6994 PR c/43772
6995 * c-common.c (warn_logical_operator): Do not warn if either side
6996 is already true or false.
6997
50f305ca
MLI
69982012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
6999
7000 PR c/51712
7001 * c-common.c (expr_original_type): New.
7002 (shorten_compare): Do not warn for enumeration types.
7003
0c3641b0
MLI
70042012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
7005
7006 * c.opt (fpermissive): Add Var(flag_permissive).
7007
7edaa4d2
MG
70082012-04-30 Marc Glisse <marc.glisse@inria.fr>
7009
7010 PR c++/51033
7011 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
7012 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
7013
b9c8da34
DS
70142012-04-30 Dodji Seketeli <dodji@redhat.com>
7015
7016 Add -Wvarargs option
7017 * c.opt (Wvarargs): Define new option.
7018
e6c69da0
MLI
70192012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
7020
7021 * c-common.c (check_function_arguments): Replace
7022 Wmissing-format-attribute with Wsuggest-attribute=format.
7023
90137d8f
MLI
70242012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
7025
7026 * c.opt (Wsuggest-attribute=format): New. Alias of
7027 Wmissing-format-attribute.
7028 * c-format.c (decode_format_type): Replace
7029 Wmissing-format-attribute with Wsuggest-attribute=format.
7030 (check_function_format): Likewise.
7031
9faeb493 70322012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
7033
7034 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
7035 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
7036 * c.opt: Add Wliteral-suffix.
7037
c1771a20
MLI
70382012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
7039
7040 PR c/44774
7041 * c.opt (Wpedantic): New.
7042 (pedantic): Alias Wpedantic.
7043 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
7044 (c_common_post_options): Likewise.
7045 (sanitize_cpp_opts): Likewise.
7046 * c-lex.c (interpret_float): Likewise.
7047 * c-format.c (check_format_types): Likewise.
7048 * c-common.c (pointer_int_sum): Likewise.
7049 (c_sizeof_or_alignof_type): Likewise.
7050 (c_add_case_label): Likewise.
7051 (c_do_switch_warnings): Likewise.
7052 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
7053
04b391c1
JM
70542012-04-15 Jason Merrill <jason@redhat.com>
7055
7056 PR c++/52818
7057 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
7058 (C_STD_NAME): Distinguish between C++98 and C++11.
7059
ac868f29
EB
70602012-04-11 Eric Botcazou <ebotcazou@adacore.com>
7061
7062 PR target/52624
7063 * c-common.h (uint16_type_node): Rename into...
7064 (c_uint16_type_node): ...this.
7065 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
7066 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
7067
fd4116f4
MLI
70682012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
7069
7070 * c-common.c (warn_if_unused_value): Move definition to here.
7071 * c-common.h (warn_if_unused_value): Move declaration to here.
7072
573ac65e
WB
70732012-03-23 William Bader <williambader@hotmail.com>
7074
7075 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
7076
552b8185
JM
70772012-03-20 Jason Merrill <jason@redhat.com>
7078
7079 * c-common.h (enum cxx_dialect): Add cxx1y.
7080 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
7081 test.
7082 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
7083 * c-opts.c (c_common_post_options): Likewise.
7084 (set_std_cxx1y): New.
7085 (c_common_handle_option): Call it.
7086 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
7087
04398fa8
PC
70882012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
7089
7090 PR c++/14710
7091 * c.opt ([Wuseless-cast]): Add.
7092
d2a12ae7
RG
70932012-03-16 Richard Guenther <rguenther@suse.de>
7094
7095 * c-pretty-print.c (pp_c_initializer_list): Adjust.
7096
a12bf402
MLI
70972012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
7098
7099 PR c++/44783
7100 * c.opt (ftemplate-backtrace-limit) Add.
7101
5c30094f
RO
71022012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7103
7104 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
7105 handling.
7106 * c-pragma.c (handle_pragma_extern_prefix): Remove.
7107 (init_pragma): Don't register extern_prefix.
7108
21fa2faf
RG
71092012-03-12 Richard Guenther <rguenther@suse.de>
7110
7111 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
7112 (builtin_type_for_size): Likewise.
7113
e3793c6f
JJ
71142012-02-13 Jakub Jelinek <jakub@redhat.com>
7115
7116 PR c++/52215
7117 * c-common.c (sync_resolve_params): Don't decide whether to convert
7118 or not based on TYPE_SIZE comparison, convert whenever arg_type
7119 is unsigned INTEGER_TYPE.
7120
93286335
PC
71212012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
7122
7123 PR c/52118
7124 * c.opt ([Wunused-local-typedefs]): Fix description.
7125
7a421706
MS
71262012-01-24 Mike Stump <mikestump@comcast.net>
7127
7128 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
7129 exactly.
7130
ba9b1f11
RG
71312012-01-18 Richard Guenther <rguenther@suse.de>
7132
7133 * c-opts.c (c_common_post_options): Reset LTO flags if
7134 we are about to generate a PCH.
7135
465406be
PC
71362012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
7137
7138 PR c++/51777
7139 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
7140 use pp_unsigned_wide_integer.
7141
aee15221
RG
71422012-01-10 Richard Guenther <rguenther@suse.de>
7143
7144 PR middle-end/51806
7145 * c-opts.c (c_common_handle_option): Move -Werror handling
7146 to language independent code.
7147
5720c0dc
RG
71482012-01-05 Richard Guenther <rguenther@suse.de>
7149
7150 PR middle-end/51764
7151 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
7152 from common.opt.
7153
73ac190a
PC
71542011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
7155
7156 PR c++/51316
7157 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
7158 of array types with an unknown bound.
7159
48b0b196
JM
71602011-12-20 Joseph Myers <joseph@codesourcery.com>
7161
7162 * c-common.c (flag_isoc99): Update comment to refer to C11.
7163 (flag_isoc1x): Change to flag_isoc11.
7164 * c-common.h (flag_isoc99): Update comment to refer to C11.
7165 (flag_isoc1x): Change to flag_isoc11.
7166 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
7167 C11.
7168 * c-opts.c (set_std_c1x): Change to set_std_c11.
7169 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
7170 Call set_std_c11.
7171 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
7172 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
7173 * c.opt (std=c1x): Change to std=c11. Document as non-draft
7174 standard.
7175 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
7176 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
7177 (std=gnu1x): Make alias of std=gnu11.
7178
d58d6eb5
JM
71792011-12-19 Jason Merrill <jason@redhat.com>
7180
7181 PR c++/51228
7182 * c-common.c (handle_transparent_union_attribute): Check the first
7183 field if the type is complete.
7184
b3908fcc
JW
71852011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
7186
7187 PR libstdc++/51365
7188 * c-common.c (RID_IS_FINAL): Add.
7189 * c-common.h (RID_IS_FINAL): Add.
7190
fea3ca91
IS
71912011-11-30 Iain Sandoe <iains@gcc.gnu.org>
7192
7193 * c.opt (fgnu-runtime): Provide full description.
7194 (fnext-runtime): Likewise.
7195 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
7196
62bad7cd
AM
71972011-11-28 Andrew MacLeod <amacleod@redhat.com>
7198
7199 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
7200 predefines in one place. Add LOCK_FREE predefines.
7201 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
7202 new func.
7203
c466c4ff
AM
72042011-11-24 Andrew MacLeod <amacleod@redhat.com>
7205
7206 PR c/51256
9faeb493 7207 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 7208 conditions
9faeb493
UB
7209 (resolve_overloaded_atomic_exchange,
7210 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
7211 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
7212 error_mark_node for error conditions.
9faeb493 7213
a5952633
RG
72142011-11-08 Richard Guenther <rguenther@suse.de>
7215
7216 PR middle-end/51010
7217 c-family/
7218
0a35513e
AH
72192011-11-07 Richard Henderson <rth@redhat.com>
7220 Aldy Hernandez <aldyh@redhat.com>
7221 Torvald Riegel <triegel@redhat.com>
7222
7223 Merged from transactional-memory.
7224
7225 * c-common.c (handle_tm_wrap_attribute,
7226 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
7227 (struct c_common_reswords): Added __transaction* keywords.
7228 (struct c_common_attribute_table): Added transaction* and tm_regparm
7229 attributes.
7230 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
7231 masks.
7232 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
7233 find_tm_attribute): Declare.
7234
6d87092d
JM
72352011-11-07 Jason Merrill <jason@redhat.com>
7236
7237 PR c++/35688
7238 * c-common.c, c-common.h: Revert yesterday's changes.
7239
8e7860a1
JM
72402011-11-06 Jason Merrill <jason@redhat.com>
7241
7242 PR c++/35688
7243 * c-common.c (decl_has_visibility_attr): Split out from...
7244 (c_determine_visibility): ...here.
7245 * c-common.h: Declare it.
7246
d19fa6b5
JM
72472011-11-06 Joseph Myers <joseph@codesourcery.com>
7248
7249 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
7250 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
7251 type.
7252 (check_user_alignment): New. Split out of
7253 handle_aligned_attribute. Disallow integer constants with
7254 noninteger types. Conditionally allow zero.
7255 (handle_aligned_attribute): Use check_user_alignment.
7256 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
7257
86951993
AM
72582011-11-06 Andrew MacLeod <amacleod@redhat.com>
7259 Richard Henderson <rth@redhat.com>
7260
7261 Merged from cxx-mem-model.
7262
7263 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 7264 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
7265 parameters that are the same type size.
7266 (get_atomic_generic_size): New. Find size of generic
7267 atomic function parameters and do typechecking.
7268 (add_atomic_size_parameter): New. Insert size into parameter list.
7269 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
7270 either __atomic_exchange_n or external library call.
9faeb493 7271 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 7272 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 7273 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
7274 __atomic_load_n or an external library call.
7275 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
7276 __atomic_store_n or an external library call.
7277 (resolve_overloaded_builtin): Handle new __atomic builtins.
7278
cf9e9959
EB
72792011-11-04 Eric Botcazou <ebotcazou@adacore.com>
7280
7281 PR c++/50608
7282 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
7283 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
7284 <INDIRECT_REF>: Return the argument.
7285 <ARRAY_REF>: Remove special code for negative offset.
7286 Call fold_build_pointer_plus instead of size_binop.
7287 (fold_offsetof): Remove STOP_REF argument and adjust.
7288 * c-common.h (fold_offsetof_1): Declare.
7289 (fold_offsetof): Remove STOP_REF argument.
7290
25339f10
JM
72912011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
7292
7293 PR c++/50810
7294 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
7295 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
7296 Wnarrowing for C++0x and C++98.
7297 * c.opt ([Wnarrowing]): Update.
7298
89401152
PC
72992011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
7300
7301 PR c++/44277
7302 * c.opt: Add Wzero-as-null-pointer-constant.
7303
97e3ad20
JM
73042011-10-31 Jason Merrill <jason@redhat.com>
7305
15694fdd
JM
7306 * c.opt (-fdeduce-init-list): Off by default.
7307
97e3ad20
JM
7308 PR c++/50920
7309 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
7310 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
7311 and -Wc++11-compat.
7312 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
7313
fb9120e3
RAV
73142011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
7315
7316 PR c++/30066
7317 * c.opt (fvisibility-inlines-hidden): Description change.
7318
3ce4f9e4
ESR
73192011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
7320
7321 Implement C++11 user-defined literals.
7322 * c-common.c (build_userdef_literal): New.
7323 * c-common.def: New tree code.
7324 * c-common.h (tree_userdef_literal): New tree struct and accessors.
7325 * c-lex.c (interpret_float): Add suffix parm.
7326 (c_lex_with_flags): Build literal tokens.
7327
5f53c243
PC
73282011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
7329
7330 PR c++/50841
7331 Revert:
7332 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
7333
7334 PR c++/50810
7335 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
7336 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
7337 Wnarrowing for C++0x and C++98.
7338 * c.opt ([Wnarrowing]): Update.
7339
263734e1
PC
73402011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
7341
7342 PR c++/50810
7343 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
7344 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
7345 Wnarrowing for C++0x and C++98.
7346 * c.opt ([Wnarrowing]): Update.
7347
d2e312d7
PC
73482011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
7349
7350 PR c++/45385
7351 * c-common.c (conversion_warning): Remove code looking for
7352 artificial operands.
7353
d17687f6
DS
73542011-10-18 Dodji Seketeli <dodji@redhat.com>
7355
7356 PR bootstrap/50760
7357 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 7358 !NO_IMPLICIT_EXTERN_C.
d17687f6 7359
fc8396e9
PC
73602011-10-17 Michael Spertus <mike_spertus@symantec.com>
7361
7362 * c-common.c (c_common_reswords): Add __bases,
7363 __direct_bases.
7364 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
7365
73662011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
7367
7368 PR c++/50757
7369 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
7370
847e697a
TT
73712011-10-15 Tom Tromey <tromey@redhat.com>
7372 Dodji Seketeli <dodji@redhat.com>
7373
7374 * c.opt (fdebug-cpp): New option.
7375 * c-opts.c (c_common_handle_option): Handle the option.
7376 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
7377 output stream in parameter. Factorized from ...
7378 (maybe_print_line): ... this. Dump location debug information when
7379 -fdebug-cpp is in effect.
7380 (print_line_1): New static function. Takes an output stream in
7381 parameter. Factorized from ...
7382 (print_line): ... here. Dump location information when -fdebug-cpp
7383 is in effect.
7384 (scan_translation_unit): Dump location information when
7385 -fdebug-cpp is in effect.
7386
92582b75
TT
73872011-10-15 Tom Tromey <tromey@redhat.com>
7388 Dodji Seketeli <dodji@redhat.com>
7389
7390 * c.opt (ftrack-macro-expansion): New option. Handle it with and
7391 without argument.
7392 * c-opts.c (c_common_handle_option)<case
7393 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
7394 cases. Handle -ftrack-macro-expansion with and without argument.
7395
46427374
TT
73962011-10-15 Tom Tromey <tromey@redhat.com>
7397 Dodji Seketeli <dodji@redhat.com>
7398
7399 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
7400 (print_line, cb_define, do_line_change): Adjust to avoid touching
7401 the internals of struct line_map. Use the public API instead.
7402 * c-pch.c (c_common_read_pch): Likewise.
7403 * c-lex.c (fe_file_change): Likewise.
7404
fc8396e9
PC
74052011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
7406
7407 PR c++/17212
7408 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
7409
74102011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
7411
7412 PR c++/33067
7413 * c-pretty-print.c (pp_c_floating_constant): Output
7414 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
7415
e79983f4
MM
74162011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
7417
7418 * c-common.c (def_builtin_1): Delete old interface with two
7419 parallel arrays to hold standard builtin declarations, and replace
7420 it with a function based interface that can support creating
7421 builtins on the fly in the future. Change all uses, and poison
7422 the old names. Make sure 0 is not a legitimate builtin index.
7423 * c-omp.c (c_finish_omp_barrier): Ditto.
7424 (c_finish_omp_taskwait): Ditto.
7425 (c_finish_omp_flush): Ditto.
7426
6637388f
TG
74272011-10-11 Tristan Gingold <gingold@adacore.com>
7428
7429 * c.opt: (fallow-parameterless-variadic-functions): New.
7430
3797cb21
DS
74312011-09-08 Dodji Seketeli <dodji@redhat.com>
7432
7433 PR c++/33255 - Support -Wunused-local-typedefs warning
7434 * c-common.h (struct c_language_function::local_typedefs): New
7435 field.
9faeb493
UB
7436 (record_locally_defined_typedef, maybe_record_typedef_use)
7437 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 7438 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
7439 (maybe_record_typedef_use)
7440 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
7441 * c.opt: Declare new -Wunused-local-typedefs flag.
7442
693ddb1b
EB
74432011-09-06 Eric Botcazou <ebotcazou@adacore.com>
7444
7445 PR middle-end/50266
7446 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
7447 computations.
7448
830c740f
RG
74492011-09-05 Richard Guenther <rguenther@suse.de>
7450
7451 * c-common.c (complete_array_type): Use ssize_int (-1) instead
7452 of integer_minus_one_node for empty array upper bounds.
7453
892a371f
DS
74542011-08-28 Dodji Seketeli <dodji@redhat.com>
7455
7456 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
7457 it's the first time it's being called on this main TU.
7458
0e3fdb48
RB
74592011-08-24 Richard Guenther <rguenther@suse.de>
7460
7461 PR c/49396
7462 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
7463
74642011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
7465
7466 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
7467 defined in cpp_init_builtins and c_cpp_builtins.
7468
d4a83c10
JM
74692011-08-19 Joseph Myers <joseph@codesourcery.com>
7470
7471 * c-common.c (c_common_reswords): Add __builtin_complex.
7472 * c-common.h (RID_BUILTIN_COMPLEX): New.
7473
bbceee64
JM
74742011-08-18 Joseph Myers <joseph@codesourcery.com>
7475
7476 * c-common.c (c_common_reswords): Add _Noreturn.
7477 (keyword_is_function_specifier): Handle RID_NORETURN.
7478 * c-common.h (RID_NORETURN): New.
7479
3f8257db 74802011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
0e3a99ae
AS
7481
7482 * c-common.c (unsafe_conversion_p): New function. Check if it is
7483 unsafe to convert an expression to the type.
7484 (conversion_warning): Adjust, use unsafe_conversion_p.
7485 * c-common.h (unsafe_conversion_p): New function declaration.
7486
20906c66
JJ
74872011-08-02 Jakub Jelinek <jakub@redhat.com>
7488
7489 * c-common.h (c_finish_omp_atomic): Adjust prototype.
7490 (c_finish_omp_taskyield): New prototype.
7491 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
7492 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
7493 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
7494 or RHS1 have side-effects, evaluate those too in the right spot,
7495 if it is a decl and LHS is also a decl, error out if they
7496 aren't the same.
7497 (c_finish_omp_taskyield): New function.
7498 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
7499 * c-pragma.c (omp_pragmas): Add taskyield.
7500 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
7501 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
7502 PRAGMA_OMP_CLAUSE_MERGEABLE.
7503
770e5a2e
DS
75042011-07-25 Dodji Seketeli <dodji@redhat.com>
7505
7506 * c-common.h (set_underlying_type): Remove parm name from
7507 declaration.
7508
1baae426
RG
75092011-07-25 Romain Geissler <romain.geissler@gmail.com>
7510
7511 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 7512
fcb21722
JM
75132011-07-22 Jason Merrill <jason@redhat.com>
7514
76f86d00
JM
7515 PR c++/49793
7516 * c.opt (Wnarrowing): New.
7517
3a636414
JM
7518 PR c++/30112
7519 * c-common.h: Declare c_linkage_bindings.
7520 * c-pragma.c (handle_pragma_redefine_extname): Use it.
7521
fcb21722
JM
7522 PR c++/49813
7523 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
7524 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
7525 as flag_isoc99 for 'restrict'.
7526 (pp_c_specifier_qualifier_list): Likewise for _Complex.
7527
02614448
ILT
75282011-07-21 Ian Lance Taylor <iant@google.com>
7529
7530 PR middle-end/49705
7531 * c-common.c (c_disable_warnings): New static function.
7532 (c_enable_warnings): New static function.
7533 (c_fully_fold_internal): Change local unused_p to bool. Call
7534 c_disable_warnings and c_enable_warnings rather than change
7535 c_inhibit_evaluation_warnings.
7536
34429675
JM
75372011-07-20 Jason Merrill <jason@redhat.com>
7538
7539 PR c++/6709 (DR 743)
7540 PR c++/42603 (DR 950)
7541 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
7542 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
7543 (CPP_DECLTYPE): New.
7544 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
7545
5d49b6a7
RG
75462011-07-19 Richard Guenther <rguenther@suse.de>
7547
7548 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
7549 * c-omp.c (c_finish_omp_for): Likewise.
7550
e84a58ff
EB
75512011-07-12 Eric Botcazou <ebotcazou@adacore.com>
7552
7553 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
7554 body on the next line.
7555
329af3c7
JM
75562011-07-08 Jason Merrill <jason@redhat.com>
7557
4063e61b
JM
7558 PR c++/45437
7559 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
7560
329af3c7
JM
7561 PR c++/49673
7562 * c-common.c (c_apply_type_quals_to_decl): Don't check
7563 TYPE_NEEDS_CONSTRUCTING.
7564
1a072294
RG
75652011-07-06 Richard Guenther <rguenther@suse.de>
7566
7567 * c-common.c (c_common_nodes_and_builtins):
7568 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
7569
fce5dddd
RG
75702011-07-05 Richard Guenther <rguenther@suse.de>
7571
7572 * c-common.c (c_common_nodes_and_builtins): Build all common
7573 tree nodes first.
7574
45d439ac
JJ
75752011-06-27 Jakub Jelinek <jakub@redhat.com>
7576
56300785
JJ
7577 * c-common.h (c_tree_chain_next): New static inline function.
7578
45d439ac
JJ
7579 * c-common.c (check_builtin_function_arguments): Handle
7580 BUILT_IN_ASSUME_ALIGNED.
7581
e0a8ecf2
AM
75822011-06-21 Andrew MacLeod <amacleod@redhat.com>
7583
7584 * c-common.c: Add sync_ or SYNC__ to builtin names.
7585 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
7586
75872011-06-20 Pierre Vittet <piervit@pvittet.com>
7588
7589 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
7590 handler.
7591 (gen_pragma_handler): New union.
7592 (internal_pragma_handler): New type.
7593 (c_register_pragma_with_data)
7594 (c_register_pragma_with_expansion_and_data): New functions.
7595
7596 * c-pragma.c (registered_pragmas, c_register_pragma_1)
7597 (c_register_pragma, c_register_pragma_with_expansion)
7598 (c_invoke_pragma_handler): Changed to work with
7599 internal_pragma_handler.
7600 (c_register_pragma_with_data)
7601 (c_register_pragma_with_expansion_and_data): New functions.
7602
677f3fa8
JM
76032011-06-14 Joseph Myers <joseph@codesourcery.com>
7604
7605 * c-common.c: Include common/common-target.h.
7606 (handle_section_attribute): Use
7607 targetm_common.have_named_sections.
7608 * c-cppbuiltin.c: Include common/common-target.h.
7609 (c_cpp_builtins): Use targetm_common.except_unwind_info.
7610
d7fc8c14
RG
76112011-06-10 Richard Guenther <rguenther@suse.de>
7612
7613 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
7614 to print a IDENTIFIER_NODE.
7615
10e48e39
RO
76162011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7617 Joseph Myers <joseph@codesourcery.com>
7618
7619 * c.opt (fbuilding-libgcc): New option.
7620 * c-cppbuiltin.c (c_cpp_builtins): Define
7621 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
7622
6976ae51
JM
76232011-06-07 Jason Merrill <jason@redhat.com>
7624
3ff60975
JM
7625 * c-common.c (max_tinst_depth): Lower default to 900.
7626
6976ae51
JM
7627 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
7628
009db074
RG
76292011-06-07 Richard Guenther <rguenther@suse.de>
7630
7631 * c-common.c (c_common_nodes_and_builtins): Do not set
7632 size_type_node or call set_sizetype.
7633
b4592b92
DS
76342011-06-07 Dodji Seketeli <dodji@redhat.com>
7635
7636 PR debug/49130
7637 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 7638 type when using pointer comparison to compare types.
b4592b92 7639
014ab419
JW
76402011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
7641
7642 * c.opt: Add -Wdelete-non-virtual-dtor.
7643 * c-opts.c (c_common_handle_option): Include it in -Wall.
7644
4f60111f
NF
76452011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
7646
7647 PR bootstrap/49190
7648
7649 Revert:
7650 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
7651
7652 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
7653 not tree_common.
7654
4cc4f2f4
JJ
76552011-05-27 Jakub Jelinek <jakub@redhat.com>
7656
7657 PR c++/49165
7658 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
7659 C++ don't call c_common_truthvalue_conversion on void type arms.
7660
38e01f9e
NF
76612011-05-27 Nathan Froyd <froydnj@codesourcery.com>
7662
7663 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
7664 (stmt_list_stack): Define.
7665 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
7666 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
7667
92e948a8
NF
76682011-05-26 Nathan Froyd <froydnj@codesourcery.com>
7669
7670 * c-common.c (warning_candidate_p): Check for BLOCKs.
7671
a2fc3e63
NF
76722011-05-26 Nathan Froyd <froydnj@codesourcery.com>
7673
7674 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
7675 not tree_common.
7676
0957c029
JJ
76772011-05-25 Jakub Jelinek <jakub@redhat.com>
7678
7679 * c-common.c (def_fn_type): Remove extra va_end.
7680
828fb3ba
JM
76812011-05-23 Jason Merrill <jason@redhat.com>
7682
7683 PR c++/48106
7684 * c-common.c (c_common_get_narrower): New.
7685 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
7686
dde05067
NF
76872011-05-23 Nathan Froyd <froydnj@codesourcery.com>
7688
7689 * c-common.h (check_function_arguments): Tweak prototype of
7690 check_function_arguments.
7691 * c-common.c (check_function_arguments): Likewise. Adjust
7692 calls to check_function_nonnull, check_function_format, and
7693 check_function_sentinel.
7694 (check_function_sentinel): Take a FUNCTION_TYPE rather than
7695 separate attributes and typelist arguments. Use
7696 FOREACH_FUNCTION_ARGS to iterate over argument types.
7697
3c0d13bf
PC
76982011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
7699
7700 * c-common.c (c_common_reswords): Reorder.
7701 * c-common.h (rid): Likewise.
7702
8242dd04
NF
77032011-05-10 Nathan Froyd <froydnj@codesourcery.com>
7704
7705 * c-common.c (def_fn_type): Don't call build_function_type, call
7706 build_function_type_array or build_varargs_function_type_array
7707 instead.
7708 (c_common_nodes_and_builtins): Likewise.
7709
3d528853
NF
77102011-05-05 Nathan Froyd <froydnj@codesourcery.com>
7711
7712 * c-common.c (c_add_case_label): Omit the loc argument to
7713 build_case_label.
7714 * c-common.h (build_case_label): Remove.
7715 * c-semantics.c (build_case_label): Remove.
7716
a04a722b
JM
77172011-05-05 Joseph Myers <joseph@codesourcery.com>
7718
7719 * c-objc.h (objc_start_method_definition): Update prototype.
7720 * stub-objc.c (objc_start_method_definition): Add extra parameter.
7721
e19a18d4
NF
77222011-05-04 Nathan Froyd <froydnj@codesourcery.com>
7723
7724 * c-common.c (check_main_parameter_types): Reindent. Don't use
7725 TYPE_ARG_TYPES directly.
7726 (handle_nonnull_attribute): Likewise.
7727 (sync_resolve_params): Likewise.
7728 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
7729 to check_format_string.
7730 (handle_format_attribute): Likewise.
7731 (check_format_string): Take a function type to examine instead of
7732 a type list. Use a function_arg_iterator to step through argument
7733 types.
7734
c62c040f
RG
77352011-05-04 Richard Guenther <rguenther@suse.de>
7736
7737 * c-common.c (fix_string_type): Use size_int for index type bounds.
7738 (start_fname_decls): Do not pass NULL to build_int_cst.
7739 (c_init_attributes): Likewise.
7740 * c-lex.c (c_lex_with_flags): Likewise.
7741
c12ff9d8
JM
77422011-04-27 Jason Merrill <jason@redhat.com>
7743
7744 * c-common.c (make_tree_vector_from_list): New.
7745 * c-common.h: Declare it.
7746
304dfbe3
RG
77472011-04-26 Richard Guenther <rguenther@suse.de>
7748
7749 PR preprocessor/48248
7750 * c-ppoutput.c (maybe_print_line): Always optimize newlines
7751 for output size with -P.
7752
3c0d13bf
PC
77532011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
7754
7755 * c-common.c (struct c_common_resword): Add __underlying_type.
7756 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
7757
04695783
JM
77582011-04-20 Jim Meyering <meyering@redhat.com>
7759
7760 * c-format.c (init_dollar_format_checking): Remove useless
7761 if-before-free.
7762
0dc33c3c
NP
77632011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
7764
7765 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 7766 (objc_detect_field_duplicates): New.
0dc33c3c 7767 * stub-objc.c: Likewise.
3c0d13bf 7768
c59633d9
NP
77692011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
7770
7771 * stub-objc.c (objc_declare_protocols): Renamed to
7772 objc_declare_protocol.
7773 * c-objc.h: Likewise.
3c0d13bf 7774
32dabdaf
NP
77752011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
7776
7777 * stub-objc.c (objc_declare_class): Updated argument name.
7778
81f653d6
NF
77792011-04-12 Nathan Froyd <froydnj@codesourcery.com>
7780
7781 * c-common.h (c_common_init_ts): Declare.
7782 * c-common.c (c_common_init_ts): Define.
7783
eb345401
NP
77842011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
7785
7786 * c-objc.h (objc_build_message_expr): Updated prototype.
7787 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 7788
a358e188
MJ
77892011-04-12 Martin Jambor <mjambor@suse.cz>
7790
7791 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
7792 of cgraph_node.
7793
e6313a78
RG
77942011-04-11 Richard Guenther <rguenther@suse.de>
7795
7796 * c-common.c (complete_array_type): Build a range type of
7797 proper type.
7798
dcf0c47e
NF
77992011-04-08 Nathan Froyd <froydnj@codesourcery.com>
7800
7801 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
7802 (handle_type_generic_attribute): Likewise.
7803
1ee44b26
JM
78042011-04-07 Jason Merrill <jason@redhat.com>
7805
7806 PR c++/48450
7807 * c-common.c (c_common_truthvalue_conversion): Don't ignore
7808 conversion from C++0x scoped enum.
7809
acce4e77
JM
78102011-04-06 Joseph Myers <joseph@codesourcery.com>
7811
7812 * c-target-def.h: New file.
7813 * c-target.def: New file.
7814 * c-target.h: New file.
7815 * c-common.c (targetcm): Don't define here.
7816 * c-common.h (default_handle_c_option): Declare.
7817 * c-format.c: Include c-target.h instead of target.h.
7818 * c-opts.c: Include c-target.h instead of target.h. Explicitly
7819 include tm.h.
7820 (default_handle_c_option): Move from targhooks.c.
7821
e2eefb55
JJ
78222011-03-29 Jakub Jelinek <jakub@redhat.com>
7823
7824 PR preprocessor/48248
7825 * c-ppoutput.c (print): Add src_file field.
7826 (init_pp_output): Initialize it.
7827 (maybe_print_line): Don't optimize by adding up to 8 newlines
7828 if map->to_file and print.src_file are different file.
7829 (print_line): Update print.src_file.
7830
ba78087b
KT
78312011-03-25 Kai Tietz <ktietz@redhat.com>
7832
7833 * c-ada-spec.c (compare_comment): Use filename_cmp
7834 instead of strcmp for filename.
7835
0edf1bb2
JL
78362011-03-25 Jeff Law <law@redhat.com>
7837
adfac8df 7838 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 7839
c7dc8804
JM
78402011-03-25 Jason Merrill <jason@redhat.com>
7841
7842 * c.opt: Add -std=c++03.
7843
d1d879b1
EB
78442011-03-22 Eric Botcazou <ebotcazou@adacore.com>
7845
7846 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
7847
3f8257db 78482011-03-17 Kai Tietz <ktietz@redhat.com>
62d784f7
KT
7849
7850 PR target/12171
5050afdf
KT
7851 * c-pretty-print.c (pp_c_specifier_qualifier_list):
7852 Display allowed attributes for function pointer types.
7853 (pp_c_attributes_display): New function to display
7854 attributes having affects_type_identity flag set to true.
7855 * c-pretty-print.h (pp_c_attributes_display): New prototype.
7856
62d784f7
KT
7857 * c-common.c (c_common_attribute_table):
7858 Add new element.
7859 (c_common_format_attribute_table): Likewise.
7860
82d37118
JM
78612011-03-18 Jason Merrill <jason@redhat.com>
7862
49a000c3
JM
7863 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
7864 * c-common.h: Don't declare it here.
7865 * c-common.c: Or define it here.
7866 * c-opts.c (c_common_handle_option): Or set it here.
7867
82d37118
JM
7868 PR c++/35315
7869 * c-common.c (handle_transparent_union_attribute): Don't
7870 make a duplicate type in C++.
7871
17bc631c
JM
78722011-03-15 Jason Merrill <jason@redhat.com>
7873
7874 * c-common.c (max_constexpr_depth): New.
7875 * c-common.h: Declare it.
7876 * c-opts.c (c_common_handle_option): Set it.
7877 * c.opt (fconstexpr-depth): New option.
7878
1b9b91a6
JM
78792011-03-11 Jason Merrill <jason@redhat.com>
7880
f231b5ff
JM
7881 * c-common.c (attribute_takes_identifier_p): Add missing const.
7882
1b9b91a6
JM
7883 PR c++/46803
7884 * c-common.c (attribute_takes_identifier_p): Assume that an
7885 unknown attribute takes an identifier.
7886
a19e4d44
NF
78872011-03-07 Nathan Froyd <froydnj@codesourcery.com>
7888
7889 PR c/47786
7890 * c-common.c (c_type_hash): Call list_length instead of iterating
7891 through DECL_CHAIN. Rename 'i' to 'n_elements'.
7892
982d62f6
JJ
78932011-02-19 Jakub Jelinek <jakub@redhat.com>
7894
7895 PR c/47809
7896 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
7897
0a256240
NP
78982011-02-17 Iain Sandoe <iains@gcc.gnu.org>
7899
7900 * c.opt (fobjc-abi-version=) New.
7901 (fobjc-nilcheck): New.
7902
ba9e6dd5
NF
79032011-02-03 Nathan Froyd <froydnj@codesourcery.com>
7904
7905 PR c++/46890
7906 * c-common.h (keyword_is_decl_specifier): Declare.
7907 * c-common.c (keyword_is_decl_specifier): Define.
7908 (keyword_is_function_specifier): New function.
7909
7273813a
JJ
79102011-01-26 Jakub Jelinek <jakub@redhat.com>
7911
7912 PR c/47473
7913 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
7914 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
7915 REAL_TYPE.
7916
908ef79b
AC
79172011-01-26 Arnaud Charlet <charlet@adacore.com>
7918
7919 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
7920
237e9384
JJ
79212011-01-26 Jakub Jelinek <jakub@redhat.com>
7922
7923 PR pch/47430
7924 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
7925 after init_c_lex if pch_file is set.
7926
47ea1edf
DK
79272011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
7928
d4dba752 7929 PR c++/43601
47ea1edf
DK
7930 * c.opt (-fkeep-inline-dllexport): New switch.
7931
2aa9c6ae
RG
79322011-01-12 Richard Guenther <rguenther@suse.de>
7933
7934 PR middle-end/32511
7935 * c-common.c (handle_weak_attribute): Warn instead of error
7936 on declaring an inline function weak.
7937
7bd11157
TT
79382011-01-05 Tom Tromey <tromey@redhat.com>
7939
7940 * c-common.h (lvalue_error): Update.
7941 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
7942 not error.
7943
0e66e494 79442010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 7945
b4f588c4
NP
7946 PR objc/47075
7947 * c-objc.h (objc_finish_message_expr): Added argument to
7948 prototype.
7949
f4da8dce
NF
79502010-12-22 Nathan Froyd <froydnj@codesourcery.com>
7951
7952 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
7953 Use prototype_p.
7954
46270f14
NP
79552010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
7956
7957 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 7958 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 7959
4816c593
NF
79602010-12-10 Nathan Froyd <froydnj@codesourcery.com>
7961
7962 * c-common.h (readonly_error): Declare.
7963 * c-common.c (readonly_error): Define.
7964
7a6daeb0
NF
79652010-12-09 Nathan Froyd <froydnj@codesourcery.com>
7966
7967 * c-common.h (invalid_indirection_error): Declare.
7968 * c-common.c (invalid_indirection_error): Define.
7969
892f6119
RG
79702010-12-03 Richard Guenther <rguenther@suse.de>
7971
7972 PR c/46745
7973 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
7974 (pp_c_unary_expression): Likewise.
7975 (pp_c_expression): Likewise.
7976
6c39e757
NP
79772010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
7978
7979 * c-common.h (objc_finish_function): New.
7980 (objc_non_volatilized_type): Removed.
7981 (objc_type_quals_match): Removed.
7982 * stub-objc.c (objc_finish_function): New.
7983 (objc_non_volatilized_type): Removed.
7984 (objc_type_quals_match): Removed.
9faeb493 7985
7c475d11
JM
79862010-11-30 Joseph Myers <joseph@codesourcery.com>
7987
7988 * c-common.h (parse_optimize_options): Declare.
7989 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
7990 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
7991
71f3e391
JM
79922010-11-29 Joseph Myers <joseph@codesourcery.com>
7993
7994 * c-opts.c (check_deps_environment_vars): Use getenv instead of
7995 GET_ENVIRONMENT.
7996 * c-pch.c (O_BINARY): Don't define here.
7997 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
7998
d5fabb58
JM
79992010-11-25 Joseph Myers <joseph@codesourcery.com>
8000
8001 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
8002 targetm.except_unwind_info.
8003
299404a1
JM
80042010-11-23 Joseph Myers <joseph@codesourcery.com>
8005
8006 * c-opts.c (c_common_handle_option): Pass location to
8007 set_struct_debug_option.
8008
c98cd5bf
JM
80092010-11-23 Joseph Myers <joseph@codesourcery.com>
8010
8011 * c-common.c (visibility_options): Move from ../opts.c.
8012 * c-common.h (struct visibility_flags, visibility_options):
8013 Declare here.
8014 * c-opts.c (finish_options): Rename to c_finish_options.
8015 (c_common_init): Update call to finish_options.
8016
a9546771
NP
80172010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
8018
8019 PR objc/34033
8020 * c-lex.c (lex_string): Check that each string in an Objective-C
8021 string concat sequence starts with either one or zero '@', and
8022 that there are no spurious '@' signs at the end.
8023
24a57808
JM
80242010-11-20 Joseph Myers <joseph@codesourcery.com>
8025
8026 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
8027 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
8028 HANDLE_PRAGMA_VISIBILITY.
8029 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
8030 HANDLE_PRAGMA_VISIBILITY): Don't define.
8031 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
8032
a9aa2c3a
NF
80332010-11-20 Nathan Froyd <froydnj@codesourcery.com>
8034
8035 PR c++/16189
8036 PR c++/36888
8037 PR c++/45331
8038 * c-common.h (keyword_begins_type_specifier): Declare.
8039 (keyword_is_storage_class_specifier): Declare.
8040 (keyword_is_type_qualifier): Declare.
8041 * c-common.c (keyword_begins_type_specifier): New function.
8042 (keyword_is_storage_class_specifier): New function.
8043 (keyword_is_type_qualifier): Declare.
8044
5386338c
JM
80452010-11-19 Joseph Myers <joseph@codesourcery.com>
8046
8047 PR c/46547
8048 * c-common.c (in_late_binary_op): Define.
8049 (c_common_truthvalue_conversion): Check in_late_binary_op before
8050 calling c_save_expr.
8051 * c-common.h (in_late_binary_op): Declare.
8052
69ccdddb
JM
80532010-11-19 Joseph Myers <joseph@codesourcery.com>
8054
8055 * c-opts.c (c_common_handle_option): Update calls to
8056 set_struct_debug_option.
8057
6b192a09
NP
80582010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
8059
8060 * c-common.h (objc_declare_protocols): Added additional argument.
8061 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 8062
fb52b50a
NF
80632010-11-18 Nathan Froyd <froydnj@codesourcery.com>
8064
8065 PR c/33193
8066 * c-common.h (build_real_imag_expr): Declare.
8067 * c-semantics.c (build_real_imag_expr): Define.
8068
b37421c6
JM
80692010-11-17 Joseph Myers <joseph@codesourcery.com>
8070
8071 * c-opts.c (c_common_parse_file): Take no arguments.
8072 * c-common.h (c_common_parse_file): Update prototype.
8073
07078664
JJ
80742010-11-16 Jakub Jelinek <jakub@redhat.com>
8075
8076 PR c++/46401
8077 * c-common.c (warning_candidate_p): Don't track non-const calls
8078 or STRING_CSTs.
8079
c6a13190
ILT
80802010-11-15 Ian Lance Taylor <iant@google.com>
8081
8082 * c-lex.c (init_c_lex): Set macro debug callbacks if
8083 flag_dump_go_spec is set.
8084
925e8657
NP
80852010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
8086
8087 * c-common.h (objc_build_incr_expr_for_property_ref): New.
8088 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
8089
bb0a9581
NF
80902010-11-15 Nathan Froyd <froydnj@codesourcery.com>
8091
8092 PR preprocessor/45038
8093 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
8094 dialects.
8095
c5fa0890
JM
80962010-11-12 Joseph Myers <joseph@codesourcery.com>
8097
8098 * c-common.h (c_family_lang_mask): Declare.
8099 * c-opts.c (c_family_lang_mask): Make extern.
8100 * c-pragma.c (handle_pragma_diagnostic): Use
8101 control_warning_option.
8102
a4d8c676
JM
81032010-11-12 Joseph Myers <joseph@codesourcery.com>
8104
8105 * c-common.c (parse_optimize_options): Update call to
8106 decode_options.
8107 * c-common.h (c_common_handle_option): Update prototype.
8108 * c-opts.c (c_common_handle_option): Take location_t parameter and
8109 pass it to other functions.
8110
f954bd2c
JM
81112010-11-11 Joseph Myers <joseph@codesourcery.com>
8112
8113 * c-opts.c (warning_as_error_callback): Remove.
8114 (c_common_initialize_diagnostics): Don't call
8115 register_warning_as_error_callback.
8116 (c_common_handle_option): Handle -Werror=normalized= here.
8117
d8a07487
JM
81182010-11-10 Joseph Myers <joseph@codesourcery.com>
8119
8120 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
8121 in diagnostic.
8122 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
8123 letter.
8124 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
8125 Remove trailing '.' from diagnostics.
8126 * c.opt (Wwrite-strings_: Avoid '`' in help text.
8127
d5478783
JM
81282010-11-10 Joseph Myers <joseph@codesourcery.com>
8129
8130 * c-common.c (parse_optimize_options): Pass global_dc to
8131 decode_options.
8132 * c-opts.c (c_common_handle_option): Pass &global_options to
8133 set_Wstrict_aliasing.
8134 * c.opt (v): Don't mark Common or document here.
8135
91ebb981
IS
81362010-11-06 Iain Sandoe <iains@gcc.gnu.org>
8137
8138 PR target/44981
8139 * c-format.c (format_type): New type gcc_objc_string_format_type.
8140 (valid_stringptr_type_p): New.
8141 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 8142 (check_format_string): Pass expected type, use
91ebb981
IS
8143 valid_stringptr_type_p (), check that the format string types are
8144 consistent with the format specification.
8145 (decode_format_attr): Warn if NSString is used outside objective-c.
8146 (format_types_orig): Add NSString.
8147 (format_name): New.
8148 (format_flags): New.
8149 (check_format_arg): Handle format strings requiring an external parser.
8150 first_target_format_type: New variable.
8151 (handle_format_attribute): Set up first_target_format_type, pass the
8152 expected format arg string type to check_format_string().
8153 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
8154 * stub-objc.c (objc_string_ref_type_p): New.
8155 (objc_check_format_arg): New.
8156
bede2adc
NP
81572010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
8158
9faeb493 8159 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
8160 * c-common.h (objc_build_class_component_ref): New.
8161 * stub-objc.c (objc_build_class_component_ref): New.
8162
9a179d01
NP
81632010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
8164
8165 * c.opt (Wproperty-assign-default): New option.
8166
22d8d616
NP
81672010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
8168
8169 Implemented -fobjc-std=objc1 flag.
8170 * c.opt (fobjc-std=objc1): New option.
8171
2debdb4f
NP
81722010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
8173
8174 Implemented format and noreturn attributes for Objective-C methods.
8175 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
8176 attribute for Objective-C methods.
8177
ec52b111
JM
81782010-10-31 Jason Merrill <jason@redhat.com>
8179
8180 * c-common.c (conversion_warning, warn_for_collisions_1): Use
8181 EXPR_LOC_OR_HERE.
8182
46a88c12
NP
81832010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
8184
8185 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
8186 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
8187 (objc_add_property_declaration): Removed arguments for copies and
8188 ivar.
8189 (objc_build_getter_call): Renamed to
8190 objc_maybe_build_component_ref.
8191 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
8192 (objc_is_property_ref): New.
8193 * c-common.c (c_common_reswords): Removed copies and ivar.
8194 * stub-objc.c (objc_add_property_declaration): Removed arguments
8195 for copies and ivar.
8196 (objc_build_getter_call): Renamed to
8197 objc_maybe_build_component_ref.
8198 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
8199 (objc_is_property_ref): New.
9faeb493 8200
1e4bf85b
AC
82012010-10-29 Arnaud Charlet <charlet@adacore.com>
8202 Matthew Gingell <gingell@adacore.com>
8203
8204 * c-ada-spec.c (separate_class_package): New function.
8205 (pp_ada_tree_identifier): Prefix references to C++ classes with the
8206 name of their enclosing package.
8207 (print_ada_declaration): Use separate_class_package.
8208
81f0bab2
JM
82092010-10-27 Jason Merrill <jason@redhat.com>
8210
2b08f2c5
JM
8211 * c-common.c (c_common_reswords): Add __is_literal_type.
8212 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
8213
81f0bab2
JM
8214 * c-common.c (check_case_value): Remove special C++ code.
8215
200290f2
NP
82162010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
8217
8218 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
8219 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
8220 and RID_LAST_PATTR.
8221 (objc_add_property_declaration): Added additional arguments.
8222 (objc_property_attribute_kind): Removed.
8223 (objc_set_property_attr): Removed.
8224 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
8225 copy and nonatomic.
8226 * stub-objc.c (objc_add_property_declaration): Added additional
8227 arguments.
8228 (objc_set_property_attr): Removed.
9faeb493 8229
f614132b
NP
82302010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
8231
8232 * c-common.h (objc_add_property_variable): Renamed to
8233 objc_add_property_declaration. Added location argument.
8234 * stub-objc.c (objc_add_property_variable): Same change.
b1726d6c 8235
b8a18805
NP
82362010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
8237
8238 * c-common.h (objc_maybe_printable_name): New.
8239 * stub-objc.c (objc_maybe_printable_name): New.
8240
3f8257db
JJ
82412010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
8242 Andrew Pinski <pinskia@gmail.com>
30cd1c5d
AS
8243
8244 * c-common.h (c_common_mark_addressable_vec): Declare.
8245 * c-common.c (c_common_mark_addressable_vec): New function.
8246
249a82c4
NP
82472010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
8248
8249 * c-common.h (objc_set_method_type): Removed.
8250 (objc_add_method_declaration): Added boolean argument.
8251 (objc_start_method_definition): Same change.
8252 (objc_build_method_signature): Same change.
8253 * stub-objc.c (objc_set_method_type): Removed.
8254 (objc_add_method_declaration): Added boolean argument.
8255 (objc_start_method_definition): Same change.
8256 (objc_build_method_signature): Same change.
8257
977e30bc
NP
82582010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
8259
8260 * c-common.h (finish_file): Removed.
8261 (objc_write_global_declarations): New.
8262 * c-opts.c (c_common_parse_file): Do not call finish_file.
8263 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 8264
da57d1b9
NP
82652010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
8266
8267 Implemented parsing @synthesize and @dynamic for
8268 Objective-C/Objective-C++.
8269 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
8270 (objc_add_synthesize_declaration): New.
8271 (objc_add_dynamic_declaration): New.
8272 * c-common.c (c_common_reswords): Add synthesize and dynamic.
8273 * stub-objc.c (objc_add_synthesize_declaration): New.
8274 (objc_add_dynamic_declaration): New.
9faeb493 8275
0069111f
MM
82762010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
8277
8278 PR target/46041
8279 * c-cppbuiltin.c (mode_has_fma): Move function here from
8280 builtins.c. Don't use the fma optab, instead just use the
8281 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
8282 using -save-temps.
8283
e426b47b
NP
82842010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
8285
8286 Merge from 'apple/trunk' branch on FSF servers.
0069111f 8287
3f8257db 8288 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
e426b47b 8289
9faeb493 8290 Radar 4330422
e426b47b
NP
8291 * c-common.h (objc_non_volatilized_type): New declaration
8292 * stub-objc.c (objc_non_volatilized_type): New stub.
8293
90fbfdc3
NP
82942010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
8295
e426b47b 8296 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3 8297
3f8257db 8298 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
90fbfdc3 8299
9faeb493 8300 Radar 4133425
90fbfdc3 8301 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 8302 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 8303
c37d8c30
IS
83042010-10-17 Iain Sandoe <iains@gcc.gnu.org>
8305
8306 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
8307 * c-common.h (enum rid): Add RID_AT_PACKAGE.
8308 (objc_ivar_visibility_kind): New enum.
8309 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 8310 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
8311 visibility enum.
8312
1b1562a5
MM
83132010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
8314
8315 * c-cppbuiltin.c (builtin_define_float_constants): Emit
8316 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
8317 has the appropriate fma builtins.
8318 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
8319
668ea4b1
IS
83202010-10-14 Iain Sandoe <iains@gcc.gnu.org>
8321
1b1562a5 8322 merge from FSF apple 'trunk' branch.
3f8257db 8323 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 8324
668ea4b1
IS
8325 Radars 4436866, 4505126, 4506903, 4517826
8326 * c-common.c (c_common_resword): Define @property and its attributes.
8327 * c-common.h: Define property attribute enum entries.
8328 (OBJC_IS_PATTR_KEYWORD): New.
8329 (objc_property_attribute_kind): New enum.
8330 Declare objc_set_property_attr (), objc_add_property_variable (),
8331 objc_build_getter_call () and objc_build_setter_call ().
8332 * stub-objc.c (objc_set_property_attr): New stub.
8333 (objc_add_property_variable): Likewise.
8334 (objc_build_getter_call): Likewise.
8335 (objc_build_setter_call) Likewise.
1b1562a5 8336
a1178b30
IS
83372010-10-13 Iain Sandoe <iains@gcc.gnu.org>
8338
1b1562a5 8339 merge from FSF apple 'trunk' branch.
3f8257db 8340 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
a1178b30
IS
8341
8342 Radar 3803157 (method attributes)
8343 * c-common.c (handle_deprecated_attribute): Recognize
8344 objc methods as valid declarations.
8345 * c-common.h: Declare objc_method_decl ().
1b1562a5 8346 * stub-objc.c (objc_method_decl): New stub.
a1178b30 8347
a75bfaa6
JM
83482010-10-08 Joseph Myers <joseph@codesourcery.com>
8349
8350 * c-common.c (parse_optimize_options): Call
8351 decode_cmdline_options_to_array_default_mask before
8352 decode_options. Update arguments to decode_options.
8353 * c-common.h (c_common_init_options_struct): Declare.
8354 * c-opts.c (c_common_init_options_struct): New. Split out from
8355 c_common_init_options.
8356
f05b9d93
NP
83572010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
8358
8359 Implemented fast enumeration for Objective-C.
8360 * c-common.h (objc_finish_foreach_loop): New.
8361 * stub-objc.c (objc_finish_foreach_loop): New.
8362
1ebe4b4f
JM
83632010-10-05 Joseph Myers <joseph@codesourcery.com>
8364
8365 * c-common.h (struct diagnostic_context): Don't declare here.
8366 (c_common_initialize_diagnostics): Declare using
8367 diagnostic_context typedef.
8368 * c-opts.c (c_common_handle_option): Pass global_dc to
8369 handle_generated_option.
8370
d4d24ba4
JM
83712010-10-04 Joseph Myers <joseph@codesourcery.com>
8372
8373 * c-opts.c (c_common_handle_option): Pass &global_options_set to
8374 handle_generated_option.
8375
478a1c5b
ILT
83762010-10-03 Ian Lance Taylor <iant@google.com>
8377
8378 * c.opt (-fplan9-extensions): New option.
8379
82a1c2fe
FXC
83802010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8381
8382 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
8383 Remove.
8384 (c_cpp_builtins): Call functions from cppbuiltin.c instead
8385 of duplicating code.
8386
92902b1b
IS
83872010-09-30 Iain Sandoe <iains@gcc.gnu.org>
8388
8389 * c-common.c: Add two new entries for @optional
8390 and @required keywords.
8391
8392 merge from FSF 'apple/trunk' branch.
3f8257db 8393 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
92902b1b
IS
8394
8395 Radar 4386773
8396 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
8397 objective-c keywords.
8398 (objc_set_method_opt): New declaration.
8399 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 8400
46625112
JM
84012010-09-30 Joseph Myers <joseph@codesourcery.com>
8402
8403 * c-common.c (handle_optimize_attribute): Pass &global_options to
8404 cl_optimization_save and cl_optimization_restore.
8405 * c-opts.c (c_common_handle_option): Pass &global_options to
8406 handle_generated_option.
8407 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
8408 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
8409 &global_options to cl_optimization_restore.
8410
49b91f05
NP
84112010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
8412
8413 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
8414 Objective-C/Objective-C++ keywords.
8415
13ed556f 84162010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 8417
9faeb493
UB
8418 Merge from 'apple/trunk' branch on FSF servers.
8419
3f8257db 8420 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
a6341d57
NP
8421
8422 Radar 4281748
8423 * c-common.h (objc_check_global_decl): New declaration.
8424 * stub-objc.c (objc_check_global_decl): New stub.
8425
f0036cca
JM
84262010-09-29 Joseph Myers <joseph@codesourcery.com>
8427
8428 * c.opt: Don't use VarExists.
8429
e3339d0f
JM
84302010-09-29 Joseph Myers <joseph@codesourcery.com>
8431
8432 * c-common.c (c_cpp_error): Update names of diagnostic_context
8433 members.
8434 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
8435 cl_optimization members.
8436 * c-opts.c (warning_as_error_callback, c_common_handle_option,
8437 sanitize_cpp_opts, finish_options): Update names of cpp_options
8438 members.
8439
1973201f
NP
84402010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
8441
8442 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
8443 (objc_is_reserved_word): Removed.
8444 * c-common.c: Updated comments.
8445 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
8446 objc_is_reserved_word.
8447 * stub-objc.c (objc_is_reserved_word): Removed.
8448
f7e71da5
IS
84492010-09-28 Iain Sandoe <iains@gcc.gnu.org>
8450
9faeb493 8451 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
8452 include attributes.
8453 (objc_start_method_definition): Likewise.
8454 (objc_build_keyword_decl): Likewise.
8455 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
8456 (objc_start_method_definition): Likewise.
8457 (objc_build_keyword_decl): Likewise.
8458
c165dca7
IS
84592010-09-28 Iain Sandoe <iains@gcc.gnu.org>
8460
8461 * c-common.h (objc_start_class_interface): Adjust prototype.
8462 (objc_start_category_interface): Likewise.
8463 (objc_start_protocol): Likewise.
8464 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
8465 (objc_start_class_interface): Likewise.
8466 (objc_start_category_interface): Likewise.
8467
7458026b
ILT
84682010-09-27 Ian Lance Taylor <iant@google.com>
8469
8470 * c-common.c (c_common_attribute_table): Add no_split_stack.
8471 (handle_no_split_stack_attribute): New static function.
8472
b581b85b
NP
84732010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
8474
9faeb493 8475 Merge from 'apple/trunk' branch on FSF servers.
b581b85b 8476
3f8257db 8477 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
b581b85b 8478
9faeb493 8479 Radar 4229905
b581b85b
NP
8480 * c-common.h (objc_have_common_type): New declaration.
8481 * stub-objc.c (objc_have_common_type): New stub.
8482
8483 2005-06-22 Ziemowit Laski <zlaski@apple.com>
8484
8485 Radar 4154928
8486 * c-common.h (objc_common_type): New prototype.
9faeb493 8487 * stub-objc.c (objc_common_type): New stub.
b581b85b 8488
46a4da10
JH
84892010-09-24 Jan Hubicka <jh@suse.cz>
8490
8491 * c-common.c (handle_leaf_attribute): New function.
8492 (struct attribute_spec c_common_att): Add leaf.
8493
e200444e
JM
84942010-09-22 Joseph Myers <joseph@codesourcery.com>
8495
8496 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
8497 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
8498 -dump, -dump=, -imacros, -imacros=, -include, -include=,
8499 -include-barrier, -include-directory, -include-directory=,
8500 -include-directory-after, -include-directory-after=,
8501 -include-prefix, -include-prefix=, -include-with-prefix,
8502 -include-with-prefix=, -include-with-prefix-after,
8503 -include-with-prefix-after=, -include-with-prefix-before,
8504 -include-with-prefix-before=, -no-integrated-cpp,
8505 -no-line-commands, -no-standard-includes, -no-warnings, -output,
8506 -output=, -pedantic, -pedantic-errors, -preprocess,
8507 -print-missing-file-dependencies, -trace-includes, -traditional,
8508 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
8509 -user-dependencies, -verbose, -write-dependencies,
8510 -write-user-dependencies, no-integrated-cpp, traditional): New.
8511
29a80ea6
NP
85122010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
8513
8514 PR objc/23710
ac1fc2fc
NP
8515 * c-common.h (objc_start_method_definition): Return bool instead
8516 of void.
8517 * stub-objc.c (objc_start_method_definition): Return bool instead
8518 of void.
8519
85202010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
8521
8522 PR objc/25965
8523 * c-common.h (objc_get_interface_ivars): New declaration.
8524 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 8525
de621752
ILT
85262010-09-15 Ian Lance Taylor <iant@google.com>
8527
8528 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 8529 messages. Remove period at end of warning message.
de621752 8530
ba885ec5
NS
85312010-09-09 Nathan Sidwell <nathan@codesourcery.com>
8532
8533 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
8534 (handle_alias_attribute): ... here.
8535 (handle_ifunc_attribute): New.
8536
c5ee1358
MM
85372010-09-06 Mark Mitchell <mark@codesourcery.com>
8538
8539 * c-common.h (do_warn_double_promotion): Declare.
8540 * c-common.c (do_warn_double_promotion): Define.
8541
0a0b3574
MM
85422010-09-05 Mark Mitchell <mark@codesourcery.com>
8543
8544 * c.opt (Wdouble-promotion): New.
8545
d1779886
JM
85462010-09-02 Joseph Myers <joseph@codesourcery.com>
8547
8548 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
8549 fvtable-thunks, fxref): Mark no longer supported in help text.
8550
2d2bd949
JM
85512010-09-02 Joseph Myers <joseph@codesourcery.com>
8552
8553 * c.opt (Wimport, fall-virtual, falt-external-templates,
8554 fdefault-inline, fenum-int-equiv, fexternal-templates,
8555 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
8556 fname-mangling-version-, fnew-abi, fnonnull-objects,
8557 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
8558 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
8559 applicable.
8560 (fhandle-exceptions): Mark with Alias and Warn.
8561 * c-opts.c (c_common_handle_option): Don't handle options marked
8562 as ignored.
8563
5de8299c
JM
85642010-09-02 Joseph Myers <joseph@codesourcery.com>
8565
8566 * c.opt (Wcomments, Werror-implicit-function-declaration,
8567 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
8568 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
8569 aliases.
8570 * c-common.c (option_codes): Use OPT_Wcomment instead of
8571 OPT_Wcomments.
8572 * c-opts.c (warning_as_error_callback, c_common_handle_option):
8573 Don't handle options marked as aliases.
8574
0ceb0201
RG
85752010-08-25 Richard Guenther <rguenther@suse.de>
8576
8577 * c-common.c (c_common_get_alias_set): Remove special
8578 handling for pointers.
8579
ac47786e
NF
85802010-08-20 Nathan Froyd <froydnj@codesourcery.com>
8581
8582 * c-common.c: Use FOR_EACH_VEC_ELT.
8583 * c-gimplify.c: Likewise.
8584 * c-pragma.c: Likewise.
8585
c878765b
JM
85862010-08-16 Joseph Myers <joseph@codesourcery.com>
8587
8588 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
8589 RejectDriver.
8590 (MMDX): Change back to MMD. Mark NoDriverArg instead of
8591 RejectDriver.
8592 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
8593 instead of OPT_MDX and OPT_MMDX.
8594
603349bf
JM
85952010-08-16 Joseph Myers <joseph@codesourcery.com>
8596
8597 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
8598
644fa7ac
JM
85992010-08-12 Joseph Myers <joseph@codesourcery.com>
8600
8601 * c.opt (MD, MMD): Change to MDX and MMDX.
8602 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
8603
481e1176
JM
86042010-08-11 Joseph Myers <joseph@codesourcery.com>
8605
8606 * c-opts.c (c_common_handle_option): Call handle_generated_option
8607 instead of handle_option.
8608
ac8dc9f7
NF
86092010-08-08 Nathan Froyd <froydnj@codesourcery.com>
8610
8611 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
8612 (maybe_apply_renaming_pragma): Delete unneeded declarations.
8613
4f8c876d
NF
86142010-08-08 Nathan Froyd <froydnj@codesourcery.com>
8615
8616 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
8617 (pending_redefine_extname): Change type to a VEC.
8618 (add_to_renaming_pragma_list): Update for new type of
8619 pending_redefine_extname.
ac8dc9f7 8620 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 8621
3b0c690e
AC
86222010-08-04 Arnaud Charlet <charlet@adacore.com>
8623
8624 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
8625 visited.
8626 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
8627 decide whether a type has already been declared/seen.
8628 Do not go to the original type.
8629 (dump_nested_types): New parameter forward.
8630 Generate forward declaration if needed and mark type as visited.
8631 (print_ada_declaration): Call dump_nested_types if not already done.
8632 Mark types as visited.
8633
1890bccc
JM
86342010-08-03 Joseph Myers <joseph@codesourcery.com>
8635
8636 * c.opt (-print-pch-checksum): Remove option.
8637 * c-opts.c (c_common_handle_option): Don't handle
8638 OPT_print_pch_checksum.
8639
5f20c657
JM
86402010-07-27 Joseph Myers <joseph@codesourcery.com>
8641
8642 * c-common.h (c_common_handle_option): Update prototype and return
8643 value type.
8644 * c-opts.c (c_common_handle_option): Update prototype and return
8645 value type. Update calls to handle_option and
8646 enable_warning_as_error.
8647
f551f80c
JJ
86482010-07-27 Jakub Jelinek <jakub@redhat.com>
8649
8650 PR c/45079
8651 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
8652
61ff2bdc
JM
86532010-07-27 Joseph Myers <joseph@codesourcery.com>
8654
8655 * c-common.h (c_common_missing_argument): Remove.
8656 * c-opts.c (c_common_missing_argument): Remove.
8657 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
8658 idirafter, imacros, include, isysroot, isystem, iquote): Add
8659 MissingArgError.
8660 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
8661
7a9bf9a4
JM
86622010-07-27 Joseph Myers <joseph@codesourcery.com>
8663
8664 * c-common.h (c_common_option_lang_mask,
8665 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
8666 New.
8667 (c_common_init_options): Update prototype.
8668 * c-opts.c (c_common_option_lang_mask): New.
8669 (c_common_initialize_diagnostics): Split out of
8670 c_common_init_options.
8671 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
8672 New.
8673 (c_common_init_options): Update prototype. Use decoded options in
8674 search for -lang-asm.
8675
910ad8de
NF
86762010-07-15 Nathan Froyd <froydnj@codesourcery.com>
8677
8678 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
8679 * c-format.c: Likewise.
8680
718f9c0f
MLI
86812010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
8682
8683 * c-common.h: Include diagnostic-core.h. Error if already
8684 included.
8685 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
8686
4d451982
MLI
86872010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
8688
adfac8df 8689 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
8690 Do not include expr.h
8691 (vector_mode_valid_p): Move here.
8692
119fe915
SB
86932010-06-21 DJ Delorie <dj@redhat.com>
8694
8695 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
8696 allow these pragmas anywhere.
8697
86982010-06-14 Jakub Jelinek <jakub@redhat.com>
8699
8700 PR bootstrap/44509
8701 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
8702 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
8703 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
8704 ggc_strdup instead of xstrdup.
8705
87062010-06-10 Jakub Jelinek <jakub@redhat.com>
8707
8708 * c-cppbuiltin.c: Include cpp-id-data.h.
8709 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
8710 (lazy_hex_fp_value): New function.
8711 (builtin_define_with_hex_fp_value): Provide definitions lazily.
8712
6662d794
MLI
87132010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
8714
8715 * c-gimplify.c: Do not include tree-flow.h
8716
38f8b050
JR
87172010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
8718
8719 PR other/44034
8720 * c-common.c: Rename targetm member:
8721 targetm.enum_va_list -> targetm.enum_va_list_p
8722
9589f23e
AS
87232010-06-28 Anatoly Sokolov <aesok@post.ru>
8724
8725 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
8726
3b06d379
SB
87272010-06-28 Steven Bosscher <steven@gcc.gnu.org>
8728
8729 * c-cppbuiltin.c: Do not include except.h.
8730
d166d4c3
AK
87312010-06-24 Andi Kleen <ak@linux.intel.com>
8732
9faeb493
UB
8733 * c-common.c (warn_for_omitted_condop): New.
8734 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 8735
70cb8be6
JM
87362010-06-21 Joseph Myers <joseph@codesourcery.com>
8737
8738 * c.opt (lang-objc): Remove.
8739 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
8740
a4c97feb
JR
87412010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
8742
8743 * c-opts.c: Include "tm_p.h".
8744
6e2f1956
JM
87452010-06-20 Joseph Myers <joseph@codesourcery.com>
8746
8747 * c-common.c (parse_optimize_options): Update call to
8748 decode_options.
8749
bc87224e
NF
87502010-06-18 Nathan Froyd <froydnj@codesourcery.com>
8751
8752 * c-common.c (record_types_used_by_current_var_decl): Adjust for
8753 new type of types_used_by_cur_var_decl.
8754
b49cf425
JR
87552010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
8756
8757 PR bootstrap/44512
8758 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
8759 for C++ standard compliance.
8760
59f9c2ed
JM
87612010-06-16 Jason Merrill <jason@redhat.com>
8762
8763 * c.opt: Add -Wnoexcept.
8764
33766b66
RG
87652010-06-16 Richard Guenther <rguenther@suse.de>
8766
8767 PR c/44555
8768 * c-common.c (c_common_truthvalue_conversion): Remove
8769 premature and wrong optimization concering ADDR_EXPRs.
8770
eff7e30c
AC
87712010-06-15 Arnaud Charlet <charlet@adacore.com>
8772
8773 * c-ada-spec.c (dump_sloc): Remove column info.
8774 (is_simple_enum): New function.
8775 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
8776 enum types when relevant.
8777
6312e84d
MLI
87782010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
8779
9faeb493 8780 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
8781 location.
8782
1cb42611
JM
87832010-06-10 Joseph Myers <joseph@codesourcery.com>
8784
8785 * c-opts.c (c_common_handle_option): Don't handle
8786 OPT_fshow_column.
8787
a9429e29
LB
87882010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8789
8790 * c-pragma.c (push_alignment): Use typed GC allocation.
8791 (handle_pragma_push_options): Likewise.
8792
8793 * c-common.c (parse_optimize_options): Likewise.
8794
8795 * c-common.h (struct sorted_fields_type): Add variable_size GTY
8796 option.
8797
5498f011
JM
87982010-06-07 Joseph Myers <joseph@codesourcery.com>
8799
8800 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
8801 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
8802 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
8803 flag_signed_bitfields, warn_strict_null_sentinel,
8804 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
8805 flag_gen_declaration, flag_no_gnu_keywords,
8806 flag_implement_inlines, flag_implicit_templates,
8807 flag_implicit_inline_templates, flag_optional_diags,
8808 flag_elide_constructors, flag_default_inline, flag_rtti,
8809 flag_conserve_space, flag_access_control, flag_check_new,
8810 flag_new_for_scope, flag_weak, flag_working_directory,
8811 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
8812 flag_enforce_eh_specs, flag_threadsafe_statics,
8813 flag_pretty_templates): Remove.
8814 * c-common.h (flag_preprocess_only, flag_nil_receivers,
8815 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
8816 flag_replace_objc_classes, flag_undef, flag_no_builtin,
8817 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
8818 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
8819 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
8820 flag_no_gnu_keywords, flag_implement_inlines,
8821 flag_implicit_templates, flag_implicit_inline_templates,
8822 flag_optional_diags, flag_elide_constructors, flag_default_inline,
8823 flag_rtti, flag_conserve_space, flag_access_control,
8824 flag_check_new, flag_new_for_scope, flag_weak,
8825 flag_working_directory, flag_use_cxa_atexit,
8826 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
8827 flag_threadsafe_statics, flag_pretty_templates,
8828 warn_strict_null_sentinel): Remove.
8829 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
8830 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
8831 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
8832 fimplicit-inline-templates, fimplicit-templates,
8833 flax-vector-conversions, fms-extensions, fnil-receivers,
8834 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
8835 frtti, fshort-double, fshort-enums, fshort-wchar,
8836 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
8837 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
8838 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
8839 gen-decls, undef): Use Var.
8840 (fdefault-inline, foptional-diags): Document as doing nothing.
8841 * c-opts.c (c_common_handle_option): Remove cases for options now
8842 using Var. Mark ignored options as such.
8843
39dabefd
SB
88442010-06-05 Steven Bosscher <steven@gcc.gnu.org>
8845
9faeb493 8846 * c-common.c: Moved to here from parent directory.
39dabefd
SB
8847 * c-common.def: Likewise.
8848 * c-common.h: Likewise.
8849 * c-cppbuiltin.c: Likewise.
8850 * c-dump.c: Likewise.
8851 * c-format.c: Likewise.
8852 * c-format.h : Likewise.
8853 * c-gimplify.c: Likewise.
8854 * c-lex.c: Likewise.
8855 * c-omp.c: Likewise.
8856 * c.opt: Likewise.
8857 * c-opts.c: Likewise.
8858 * c-pch.c: Likewise.
8859 * c-ppoutput.c: Likewise.
8860 * c-pragma.c: Likewise.
8861 * c-pragma.h: Likewise.
8862 * c-pretty-print.c: Likewise.
8863 * c-pretty-print.h: Likewise.
8864 * c-semantics.c: Likewise.
8865 * stub-objc.c: Likewise.
8866
8867 * c-common.c: Include gt-c-family-c-common.h.
8868 * c-pragma.c: Include gt-c-family-c-pragma.h.
8869\f
85ec4feb 8870Copyright (C) 2010-2018 Free Software Foundation, Inc.
39dabefd
SB
8871
8872Copying and distribution of this file, with or without modification,
8873are permitted in any medium without royalty provided the copyright
8874notice and this notice are preserved.
This page took 2.783772 seconds and 5 git commands to generate.