]> gcc.gnu.org Git - gcc.git/blame - gcc/c-family/ChangeLog
c-ada-spec.c (dump_ada_import): Use boolean and fix formatting.
[gcc.git] / gcc / c-family / ChangeLog
CommitLineData
095d8d4b
EB
12018-02-28 Eric Botcazou <ebotcazou@adacore.com>
2
3 * c-ada-spec.c (dump_ada_import): Use boolean and fix formatting.
4 (is_char_array): Fix formatting.
5 (dump_template_types): Likewise.
6 (dump_generic_ada_node): Rename into...
7 (dump_ada_node): ...this.
8 <POINTER_TYPE>: Remove superfluous space. Use generic address for
9 incomplete structures and not for empty structures. Do not use it
10 when forward declarations are needed.
11 (dump_forward_type): New function.
12 (dump_nested_types): Remove FORWARD parameter. Do not consider
13 TREE_VISITED and do not generate a forward declaration. Only dump
14 original nested types for nested declaration.
15 (dump_nested_type) <POINTER_TYPE>: Call dump_forward_type.
16 <ARRAY_TYPE>: Likewise if the component type is an anonymous pointer.
17 <RECORD_TYPE>: Do not consider TREE_VISITED.
18 (dump_ada_declaration): Use booleans and fix formatting throughout.
19 <TYPE_DECL>: Skip incomplete structures and not empty structures.
20 Call dump_forward_type instead of dump_nested_types for a typedef.
21 Remove superfluous check and adjust call to dump_nested_types.
22 <POINTER_TYPE>: Call dump_forward_type and fall through.
23 (dump_ada_struct_decl): Rename into...
24 (dump_ada_structure): ...this. Do not special-case empty structures.
25
d4cfd486
MS
262018-02-27 Martin Sebor <msebor@redhat.com>
27
28 PR c++/83871
29 * c.opt (-Wmissing-attributes): New option.
30
b22dbd03
ML
312018-02-21 Martin Liska <mliska@suse.cz>
32
33 * c.opt (Wcatch-value=): Add IntegerRange.
34
883dfe2a
JM
352018-02-15 Jason Merrill <jason@redhat.com>
36
37 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_deduction_guides.
38
0444aa9c
NS
392018-02-09 Nathan Sidwell <nathan@acm.org>
40
41 PR c/84293
42 * c-common.h (strict_aliasing_warning): Drop OTYPE arg, insert LOC
43 arg.
44 * c-warn.c (strict_aliasing_warning): Drop OTYPE arg, require LOC
45 arg. Adjust.
46
cea71f0a
MS
472018-02-09 Martin Sebor <msebor@redhat.com>
48
49 PR lto/84212
50 * c.opt (-Wstringop-overflow, -Warray-bounds): Add LTO.
51 (-Walloc-size-larger-than, -Wformat-truncation=): Same.
52 (-Wmaybe-uninitialized, -Wnonnull, -Wrestrict): Same.
53 (-Wstrict-overflow, -Wsuggest-attribute): Same.
54 (-Wuninitialized): Same.
55
8c8b7be5
EB
562018-02-09 Eric Botcazou <ebotcazou@adacore.com>
57
58 * c-ada-spec.c (dump_ada_declaration): Do not generate the 'constant'
59 keyword for components.
60
7c30b12a
PC
612018-02-02 Paolo Carlini <paolo.carlini@oracle.com>
62
63 * c-common.h (DECL_UNNAMED_BIT_FIELD): New.
64
eece7fe5
JK
652018-02-02 Julia Koval <julia.koval@intel.com>
66
67 * c-common.h (omp_clause_mask): Move to wide_int_bitmask.h.
68
7d07a93a
MP
692018-01-29 Marek Polacek <polacek@redhat.com>
70
71 PR c/83966
72 * c-format.c (check_function_format): Check current_function_decl.
73
53723269
JJ
742018-01-27 Jakub Jelinek <jakub@redhat.com>
75
76 * c-cppbuiltin.c (c_cpp_builtins): Use ggc_strdup for the fp_suffix
77 argument.
78 (LAZY_HEX_FP_VALUES_CNT): Define.
79 (lazy_hex_fp_values): Allow up to LAZY_HEX_FP_VALUES_CNT lazy hex fp
80 values rather than just 12.
81 (builtin_define_with_hex_fp_value): Likewise.
82
7365279f
BK
832018-01-18 Boris Kolpackov <boris@codesynthesis.com>
84
85 PR other/70268
53723269
JJ
86 * c.opt (-fmacro-prefix-map): New option.
87 * c-opts.c (c_common_handle_option): Handle it.
88 * c-lex.c (init_c_lex): Set remap_filename cpp callback.
89 * c-ppoutput.c (init_pp_output): Likewise.
7365279f 90
bb9869d5
DM
912018-01-17 David Malcolm <dmalcolm@redhat.com>
92
93 PR c++/83814
94 * c-common.c (fold_for_warn): Move to c/c-fold.c and cp/expr.c.
95
68dc87c3
EB
962018-01-10 Eric Botcazou <ebotcazou@adacore.com>
97
98 * c-ada-spec.c (dump_number): Add FLOAT_P parameter.
99 Skip 'f' and 'F' characters if it is true.
100 (store_ada_macro): Minor tweak.
101 (dump_ada_macros) <CPP_COMMENT>: Likewise.
102 <CPP_WSTRING>: Likewise.
103 <CPP_STRING>: Output '&' in the buffer if not the first string.
104 <CPP_NUMBER>: Adjust calls to dump_number.
105
9a004410
DM
1062018-01-10 David Malcolm <dmalcolm@redhat.com>
107
108 PR c++/43486
109 * c-common.c: Include "selftest.h".
110 (get_atomic_generic_size): Perform the test for integral type
111 before the range test for any integer constant, fixing indentation
112 of braces. Call fold_for_warn before testing for an INTEGER_CST.
113 (reject_gcc_builtin): Strip any location wrapper from EXPR.
114 (selftest::test_fold_for_warn): New function.
115 (selftest::c_common_c_tests): New function.
116 (selftest::c_family_tests): Call it, and
117 selftest::c_pretty_print_c_tests.
118 * c-common.h (selftest::c_pretty_print_c_tests): New decl.
119 * c-format.c (check_format_arg): Convert VAR_P check to a
120 fold_for_warn.
121 * c-pretty-print.c: Include "selftest.h".
122 (pp_c_cast_expression): Don't print casts for location wrappers.
123 (selftest::assert_c_pretty_printer_output): New function.
124 (ASSERT_C_PRETTY_PRINTER_OUTPUT): New macro.
125 (selftest::test_location_wrappers): New function.
126 (selftest::c_pretty_print_c_tests): New function.
127 * c-warn.c (warn_for_memset): Call fold_for_warn on the arguments.
128
5c0caeb3
RS
1292018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
130 Alan Hayward <alan.hayward@arm.com>
131 David Sherwood <david.sherwood@arm.com>
132
133 * c-common.c (c_common_type_for_mode): Handle MODE_VECTOR_BOOL.
134
73a699ae
RS
1352018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
136 Alan Hayward <alan.hayward@arm.com>
137 David Sherwood <david.sherwood@arm.com>
138
139 * c-ubsan.c (ubsan_instrument_shift): Treat GET_MODE_BITSIZE
140 as polynomial.
141
928686b1
RS
1422018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
143 Alan Hayward <alan.hayward@arm.com>
144 David Sherwood <david.sherwood@arm.com>
145
146 * c-common.c (vector_types_convertible_p, c_build_vec_perm_expr)
147 (convert_vector_to_array_for_subscript): Handle polynomial
148 TYPE_VECTOR_SUBPARTS.
149 (c_common_type_for_mode): Check valid_vector_subparts_p.
150 * c-pretty-print.c (pp_c_initializer_list): Handle polynomial
151 VECTOR_CST_NELTS.
152
85ec4feb
JJ
1532018-01-03 Jakub Jelinek <jakub@redhat.com>
154
155 Update copyright years.
156
170a8bd6
EB
1572017-12-22 Mike Stump <mikestump@comcast.net>
158 Eric Botcazou <ebotcazou@adacore.com>
159
160 * c-pragma.c (init_pragma): Register pragma GCC unroll.
161 * c-pragma.h (enum pragma_kind): Add PRAGMA_UNROLL.
162
18408e96
AO
1632017-12-22 Alexandre Oliva <aoliva@redhat.com>
164
165 PR debug/83527
166 PR debug/83419
167 * c-semantics.c (only_debug_stmts_after_p): New.
168 (pop_stmt_list): Clear side effects in debug-only stmt list.
169 Check for single nondebug stmt followed by debug stmts only.
170
c12d20d4
AO
1712017-12-21 Alexandre Oliva <aoliva@redhat.com>
172
173 PR debug/83419
174 * c-semantics.c (pop_stmt_list): Propagate side effects from
175 single nondebug stmt to container list.
176
01512446
JJ
1772017-12-19 Jakub Jelinek <jakub@redhat.com>
178
179 * known-headers.cc (get_stdlib_header_for_name): Replace Yoda
180 conditions with typical order conditions.
181
82cfbd01
MP
1822017-12-18 Marek Polacek <polacek@redhat.com>
183
184 * c-warn.c (warn_logical_operator): Return early if -Wlogical-op is
185 not in effect.
186
99da11ec
MS
1872017-12-17 Martin Sebor <msebor@redhat.com>
188
189 * c-attribs.c (common_handle_aligned_attribute): Avoid issuing
190 an error for attribute warn_if_not_aligned.
191
cc8bea0a
MS
1922017-12-16 Martin Sebor <msebor@redhat.com>
193
194 PR tree-optimization/78918
195 * c-common.c (check_function_restrict): Avoid checking built-ins.
196 * c.opt (-Wrestrict): Include in -Wall.
197
4849deb1
JJ
1982017-12-15 Jakub Jelinek <jakub@redhat.com>
199
200 * c-attribs.c (c_common_attribute_table,
201 c_common_format_attribute_table): Swap affects_type_identity
202 and handler fields, adjust comments.
203
c65e18d3
BE
2042017-12-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
205
206 * c.opt (Wcast-function-type): New warning option.
207 * c-lex.c (get_fileinfo): Avoid warning.
208 * c-ppoutput.c (scan_translation_unit_directives_only): Remove cast.
209
2004617a
QZ
2102017-12-14 Qing Zhao <qing.zhao@oracle.com>
211
7365279f 212 PR middle_end/79538
2004617a
QZ
213 * c-cppbuiltin.c (builtin_define_with_hex_fp_value):
214 Adjust the size of buf1 and buf2, add a new buf to avoid
215 format-overflow warning.
216
96a95ac1
AO
2172017-12-12 Alexandre Oliva <aoliva@redhat.com>
218
219 * c-semantics.c (pop_stmt_list): Move begin stmt marker into
220 subsequent statement list.
221
5d9ae53d
MS
2222017-12-07 Martin Sebor <msebor@redhat.com>
223
224 PR c/81544
225 PR c/81566
226 * c-attribs.c (attr_aligned_exclusions): New array.
227 (attr_alloc_exclusions, attr_cold_hot_exclusions): Same.
228 (attr_common_exclusions, attr_const_pure_exclusions): Same.
229 (attr_gnu_inline_exclusions, attr_inline_exclusions): Same.
230 (attr_noreturn_exclusions, attr_returns_twice_exclusions): Same.
231 (attr_warn_unused_result_exclusions): Same.
232 (handle_hot_attribute, handle_cold_attribute): Simplify.
233 (handle_const_attribute): Warn on function returning void.
234 (handle_pure_attribute): Same.
235 (handle_aligned_attribute): Diagnose conflicting attribute
236 specifications.
237 * c-warn.c (diagnose_mismatched_attributes): Simplify.
238
c79144f8
DM
2392017-12-06 David Malcolm <dmalcolm@redhat.com>
240
241 PR c/83236
242 * c-common.c (selftest::c_family_tests): Call
243 selftest::c_spellcheck_cc_tests.
244 * c-common.h (selftest::c_spellcheck_cc_tests): New decl.
245 * c-spellcheck.cc: Include "selftest.h".
246 (name_reserved_for_implementation_p): New function.
247 (should_suggest_as_macro_p): New function.
248 (find_closest_macro_cpp_cb): Move the check for NT_MACRO to
249 should_suggest_as_macro_p and call it.
250 (selftest::test_name_reserved_for_implementation_p): New function.
251 (selftest::c_spellcheck_cc_tests): New function.
252 * c-spellcheck.h (name_reserved_for_implementation_p): New decl.
253
613bc14f
DM
2542017-12-06 David Malcolm <dmalcolm@redhat.com>
255
256 * c-spellcheck.cc: New file, taken from macro-handling code in
257 spellcheck-tree.c.
258 * c-spellcheck.h: New file, taken from macro-handling code in
259 spellcheck-tree.h.
260
e76c7157
JJ
2612017-12-01 Jakub Jelinek <jakub@redhat.com>
262
263 * c-attribs.c (c_common_attribute_table): Remove "cilk simd function"
264 attribute.
265 (handle_simd_attribute): Don't check for "cilk simd function"
266 attribute. Reindent, formatting changes.
267
b0da4034
JK
2682017-11-30 Julia Koval <julia.koval@intel.com>
269
270 * c-common.h (inv_list): Remove.
271
058f0b9e
JJ
2722017-11-28 Jakub Jelinek <jakub@redhat.com>
273
274 PR sanitizer/81275
275 * c-common.c (c_switch_covers_all_cases_p_1,
276 c_switch_covers_all_cases_p): New functions.
277 * c-common.h (c_switch_covers_all_cases_p): Declare.
278
5e9d6aa4
JK
2792017-11-28 Julia Koval <julia.koval@intel.com>
280 Sebastian Peryt <sebastian.peryt@intel.com>
281
282 * array-notation-common.c: Delete.
283 * c-cilkplus.c: Ditto.
284 * c-common.c (_Cilk_spawn, _Cilk_sync, _Cilk_for): Remove.
285 * c-common.def (ARRAY_NOTATION_REF): Remove.
286 * c-common.h (RID_CILK_SPAWN, build_array_notation_expr,
287 build_array_notation_ref, C_ORT_CILK, c_check_cilk_loop,
288 c_validate_cilk_plus_loop, cilkplus_an_parts,
289 cilk_ignorable_spawn_rhs_op,
290 cilk_recognize_spawn): Remove.
291 * c-gimplify.c (CILK_SPAWN_STMT): Remove.
292 * c-omp.c: Remove CILK_SIMD check.
293 * c-pragma.c: Ditto.
294 * c-pragma.h: Remove CILK related pragmas.
295 * c-pretty-print.c (c_pretty_printer::postfix_expression): Remove
296 ARRAY_NOTATION_REF condition.
297 (c_pretty_printer::expression): Ditto.
298 * c.opt (fcilkplus): Remove.
299 * cilk.c: Delete.
300
1af4ebf5
MG
3012017-11-21 Marc Glisse <marc.glisse@inria.fr>
302
303 * c-pretty-print.c (pp_c_additive_expression,
304 c_pretty_printer::expression): Handle POINTER_DIFF_EXPR.
305
d44ed508
JJ
3062017-11-21 Jakub Jelinek <jakub@redhat.com>
307
7d2f0f9b
JJ
308 * c-common.c (get_nonnull_operand): Use tree_to_uhwi.
309
d44ed508
JJ
310 PR c++/83059
311 * c-common.c (get_atomic_generic_size): Use TREE_INT_CST_LOW
312 instead of tree_to_uhwi, formatting fix.
313
26edace6
DM
3142017-11-20 David Malcolm <dmalcolm@redhat.com>
315
316 PR c/81404
317 * known-headers.cc: New file, based on material from c/c-decl.c.
318 (suggest_missing_header): Copied as-is.
319 (get_stdlib_header_for_name): New, based on get_c_name_hint but
320 heavily edited to add C++ support. Add some knowledge about
321 <limits.h>, <stdint.h>, and <wchar.h>.
322 * known-headers.h: Likewise.
323
6c7a259b
DM
3242017-11-20 David Malcolm <dmalcolm@redhat.com>
325
326 * c-common.h (enum lookup_name_fuzzy_kind): Move to name-hint.h.
327 (lookup_name_fuzzy): Likewise. Convert return type from
328 const char * to name_hint. Add location_t param.
329 * name-hint.h: New header.
330
f9c59f7e
JJ
3312017-11-19 Jakub Jelinek <jakub@redhat.com>
332
333 PR c/66618
334 PR c/69960
335 * c-common.h (c_fully_fold): Add LVAL argument defaulted to false.
336
1e39313a
JM
3372017-11-16 Joseph Myers <joseph@codesourcery.com>
338
339 * c.opt (-std=c17, std=gnu17, -std=iso9899:2017): Refer to 2018
340 expected publication date of C17.
341 (-std=c18, -std=gnu18, -std=iso9899:2018): New option aliases.
342
3ca0dc60
JM
3432017-11-15 Joseph Myers <joseph@codesourcery.com>
344
345 PR c/81156
346 * c-common.c (c_common_reswords): Add __builtin_tgmath.
347 * c-common.h (enum rid): Add RID_BUILTIN_TGMATH.
348
025d57f0
MS
3492017-11-10 Martin Sebor <msebor@redhat.com>
350
351 PR c/81117
352 * c-common.c (catenate_strings): Use memcpy instead of strncpy.
353 * c-warn.c (sizeof_pointer_memaccess_warning): Handle arrays.
354 * c.opt (-Wstringop-truncation): New option.
355
1b6fa695
ML
3562017-11-06 Martin Liska <mliska@suse.cz>
357
358 PR middle-end/82404
359 * c-opts.c (c_common_post_options): Set -Wreturn-type for C++
360 FE.
361 * c.opt: Set default value of warn_return_type.
362
64a5912c
DM
3632017-10-31 David Malcolm <dmalcolm@redhat.com>
364
365 * c-common.c (binary_op_error): Update for renaming of
366 error_at_rich_loc.
367 (c_parse_error): Likewise.
368 * c-warn.c (warn_logical_not_parentheses): Likewise for
369 renaming of inform_at_rich_loc.
370 (warn_for_restrict): Likewise for renaming of
371 warning_at_rich_loc_n.
372
c76dc9c3
JM
3732017-10-30 Joseph Myers <joseph@codesourcery.com>
374
375 * c.opt (std=c17, std=gnu17, std=iso9899:2017): New options.
376 * c-opts.c (set_std_c17): New function.
377 (c_common_init_options): Use gnu17 as default C version.
378 (c_common_handle_option): Handle -std=c17 and -std=gnu17.
379
ee5fd23a
MM
3802017-10-27 Michael Meissner <meissner@linux.vnet.ibm.com>
381
382 * c-cppbuiltin.c (mode_has_fma): Add support for PowerPC KFmode.
383 (c_cpp_builtins): If a machine has a fast fma _Float<N> and
384 _Float<N>X variant, define __FP_FAST_FMA<N> and/or
385 __FP_FAST_FMA<N>X.
386
d1047465
MP
3872017-10-23 Marek Polacek <polacek@redhat.com>
388
389 PR c/82681
390 * c-warn.c (warnings_for_convert_and_check): Fix typos.
391
9e878cf1
EB
3922017-10-19 Eric Botcazou <ebotcazou@adacore.com>
393
394 * c-common.c (check_builtin_function_arguments): Also check arguments
395 of __builtin_alloca_with_align_and_max.
396
89b6abbb
DM
3972017-10-17 David Malcolm <dmalcolm@redhat.com>
398
399 * c-format.c (format_warning_at_char): Pass UNKNOWN_LOCATION
400 rather than NULL to format_warning_va.
401 (check_format_types): Likewise when calling format_type_warning.
402 Remove code to extract source_ranges and source_range * in favor
403 of just a location_t.
404 (format_type_warning): Convert source_range * param to a
405 location_t.
406
39382c09
JJ
4072017-10-13 Jakub Jelinek <jakub@redhat.com>
408
409 * c-gimplify.c (c_gimplify_expr): Handle [LR]ROTATE_EXPR like
410 [LR]SHIFT_EXPR.
411
62e1c678
DM
4122017-10-12 David Malcolm <dmalcolm@redhat.com>
413
414 * c-common.c (enum missing_token_insertion_kind): New enum.
415 (get_missing_token_insertion_kind): New function.
416 (maybe_suggest_missing_token_insertion): New function.
417 * c-common.h (maybe_suggest_missing_token_insertion): New decl.
418
b90c9338
NS
4192017-10-11 Nathan Sidwell <nathan@acm.org>
420
421 * c-opts.c (add_prefixed_path): Change chain to incpath_kind.
422 (c_common_handle_option): Update incpath_kind names.
423
3a266bcd
ML
4242017-10-11 Martin Liska <mliska@suse.cz>
425
426 PR sanitizer/82490
427 * c-attribs.c (handle_no_sanitize_attribute): Report directly
428 Wattributes warning.
429
8e6cdc90
RS
4302017-10-10 Richard Sandiford <richard.sandiford@linaro.org>
431
432 * c-ada-spec.c (dump_generic_ada_node): Use wi::to_wide when
433 operating on trees as wide_ints.
434 * c-common.c (pointer_int_sum): Likewise.
435 * c-pretty-print.c (pp_c_integer_constant): Likewise.
436 * c-warn.c (match_case_to_enum_1): Likewise.
437 (c_do_switch_warnings): Likewise.
438 (maybe_warn_shift_overflow): Likewise.
439
802b38c9
JJ
4402017-10-10 Jakub Jelinek <jakub@redhat.com>
441
442 PR c/82437
443 * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_wide
444 instead of wide_int::from.
445
4e34b338
JJ
4462017-10-06 Jakub Jelinek <jakub@redhat.com>
447
448 PR c/82437
449 * c-warn.c (warn_tautological_bitwise_comparison): Instead of
450 using to_widest use wide_int with the larger of the two precisions.
451
4bc4b2b4
BE
4522017-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
453
454 * c-pretty-print.c (pp_c_parameter_type_list): Print ... for variadic
455 functions.
456
a1488398
RS
4572017-10-02 Richard Sandiford <richard.sandiford@linaro.org>
458
459 * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_widest
460 when combining the original unconverted comparison operands.
461
01c9fb68
JJ
4622017-09-29 Jakub Jelinek <jakub@redhat.com>
463
464 * c-attribs.c (handle_noipa_attribute): Don't add "stack_protect"
465 attribute.
466
6e3e8419
EB
4672017-09-29 Eric Botcazou <ebotcazou@adacore.com>
468
469 * c-ada-spec.c (to_ada_name): Add index parameter.
470 (pp_ada_tree_identifier): Likewise.
471 (dump_ada_macros): Adjust call to to_ada_name.
472 (struct overloaded_name_hash): New type.
473 (struct overloaded_name_hasher): Likewise.
474 (overloaded_names): New hash table.
475 (compute_overloading_index): New function.
476 (dump_ada_decl_name): Call it and pass the result to
477 pp_ada_tree_identifier.
478 (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
479 (dump_ada_function_declaration): Likewise.
480 (dump_generic_ada_node): Likewise.
481 (print_constructor): Likewise.
482 (print_destructor): Likewise.
483 (dump_ada_specs): Delete overloaded_names table.
484
79310774
EB
4852017-09-29 Eric Botcazou <ebotcazou@adacore.com>
486
487 * c-ada-spec.c (max_ada_macros): Move around.
488 (store_ada_macro_index): Likewise.
489 (source_file): Rename into...
490 (macro_source_file): ...this.
491 (count_ada_macro): Move around.
492 (store_ada_macro): Likewise.
493 (compare_macro): Likewise.
494 (print_ada_macros): Merge in...
495 (dump_ada_macros): ...this.
496 (source_file_base): Rename into...
497 (current_source_file): ...this.
498 (print_comment): Move around.
499 (dump_ada_nodes): Call dump_ada_declaration directly.
500 (struct with): Change type of limited field to bool.
501 (append_withs): Change type of limited_access parameter to bool.
502 (pp_ada_tree_identifie): Likewise.
503 (dump_ada_decl_nam): Likewise.
504 (dump_generic_ada_node): Likewise. Do not print the return type.
505 (to_ada_name): Change type of space_found parameter to bool.
506 (dump_ada_function_declaration): Return void and change type of
507 parameters to bool. Also print the return type for a function.
508 (print_ada_methods): Rename into...
509 (dump_ada_methods): ...this.
510 (print_ada_declaration): Rename into ...
511 (dump_ada_declaration): ...this. Do not print the return type.
512 (print_ada_struct_decl): Rename into...
513 (dump_ada_struct_decl): ...this.
514
7d386d45
JJ
5152017-09-29 Jakub Jelinek <jakub@redhat.com>
516
517 * c-attribs.c (handle_packed_attribute): Test DECL_C_BIT_FIELD
518 rather than DECL_INITIAL.
519 (common_handle_aligned_attribute): Likewise.
520
9ed32e27
AO
5212017-09-20 Alexandre Oliva <aoliva@redhat.com>
522
523 * c.opt (gen-decls): Add RejectNegative.
524
026a79f7
AS
5252017-09-15 Andrew Sutton <andrew.n.sutton@gmail.com>
526 Jakub Jelinek <jakub@redhat.com>
527
528 Add support for -std=c++2a.
529 * c-common.h (cxx_dialect): Add cxx2a as a dialect.
530 * opt.c: Add options for -std=c++2a and -std=gnu++2a.
531 * c-opts.c (set_std_cxx2a): New.
532 (c_common_handle_option): Set options when -std=c++2a is enabled.
533 (c_common_post_options): Adjust comments.
534 (set_std_cxx14, set_std_cxx17): Likewise.
535
4a8ca690
EB
5362017-09-15 Eric Botcazou <ebotcazou@adacore.com>
537
538 * c-pragma.c (handle_pragma_scalar_storage_order): Expand on error
539 message for non-uniform endianness and issue a warning in C++.
540
7b936140
JJ
5412017-09-15 Jakub Jelinek <jakub@redhat.com>
542
543 * c.opt (Wc++1z-compat): Change from option to undocumented alias.
544 (Wc++17-compat): Change from undocumented alias to option.
545 (Wnoexcept-type): Enable by Wc++17-compat instead of Wc++1z-compat,
546 change C++1z to C++17 in description.
547 (std=c++1z, std=gnu++1z): Change from option to undocumented
548 deprecated alias.
549 (std=c++17, std=gnu++17): Change from undocumented alias to option.
550 Adjust description.
551 * c-common.h (enum cxx_dialect): Rename cxx1z to cxx17.
552 * c-opts.c (set_std_cxx1z): Rename to ...
553 (set_std_cxx17): ... this.
554 (c_common_handle_option): Rename OPT_std_c__1z to OPT_std_c__17
555 and OPT_std_gnu__1z to OPT_std_gnu__17. Adjust set_std_cxx1z
7365279f 556 caller.
7b936140
JJ
557 (c_common_post_options): Use cxx17 instead of cxx1z. Adjust
558 comments.
559
12263f13
L
5602017-09-12 H.J. Lu <hongjiu.lu@intel.com>
561
562 * c-attribs.c (common_handle_aligned_attribute): Don't warn
563 function alignment if warn_if_not_aligned_p is true.
564
6836632e
NS
5652017-09-12 Nathan Sidwell <nathan@acm.org>
566
567 * c-common.c (field_decl_cmp, resort_data, resort_field_decl_cmp,
568 resort_sorted_fields): Move to c/c-decl.c.
569 * c-common.h (field_decl_cmp, resort_sorted_fields): Delete.
570 (struct sorted_fields_type): Move to c/c-lang.h.
571
019bf9ad
JW
5722017-09-09 Jonathan Wakely <jwakely@redhat.com>
573
574 PR c++/81852
575 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_threadsafe_static_init.
576
bc7fe952
MP
5772017-09-04 Marek Polacek <polacek@redhat.com>
578
579 PR c/81783
580 * c-warn.c (warn_tautological_bitwise_comparison): New function.
581 (warn_tautological_cmp): Call it.
582
de7c2c6a
BK
5832017-09-01 Boris Kolpackov <boris@codesynthesis.com>
584
585 * c-opts.c (c_common_finish): Write dependency information even if
586 there are errors.
587
d2e05fcb
JJ
5882017-09-01 Jakub Jelinek <jakub@redhat.com>
589
590 PR c/81887
591 * c-pragma.c (omp_pragmas): Move "ordered" entry from here to ...
592 (omp_pragmas_simd): ... here.
593 * c-omp.c (c_finish_omp_ordered): If clauses isn't simd clause alone,
594 create new clauses list containing just simd clause.
595
18e2a8b8
RS
5962017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
597 Alan Hayward <alan.hayward@arm.com>
598 David Sherwood <david.sherwood@arm.com>
599
600 * c-attribs.c (vector_mode_valid_p) Fold GET_MODE_INNER call
601 into scalar_mode_supported_p call.
602 (handle_mode_attribute): Update call to scalar_mode_supported_p.
603
16d22000
RS
6042017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
605 Alan Hayward <alan.hayward@arm.com>
606 David Sherwood <david.sherwood@arm.com>
607
608 * c-common.c (c_common_fixed_point_type_for_size): Use opt_scalar_mode
609 for the mode iterator.
610
b397965c
RS
6112017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
612 Alan Hayward <alan.hayward@arm.com>
613 David Sherwood <david.sherwood@arm.com>
614
615 * c-lex.c (interpret_fixed): Use SCALAR_TYPE_MODE.
616 * c-common.c (c_build_vec_perm_expr): Likewise.
617
357b7604
RS
6182017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
619 Alan Hayward <alan.hayward@arm.com>
620 David Sherwood <david.sherwood@arm.com>
621
622 * c-common.c (c_common_type_for_mode): Use as_a <scalar_int_mode>.
623
e05c94ba
RS
6242017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
625 Alan Hayward <alan.hayward@arm.com>
626 David Sherwood <david.sherwood@arm.com>
627
628 * c-attribs.c (handle_mode_attribute): Check for a scalar_int_mode
629 before calling targetm.addr_space.valid_pointer_mode.
630
5c20c4af
RS
6312017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
632 Alan Hayward <alan.hayward@arm.com>
633 David Sherwood <david.sherwood@arm.com>
634
635 * c-cppbuiltin.c (c_cpp_builtins): Use opt_scalar_float_mode.
636
c94843d2
RS
6372017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
638 Alan Hayward <alan.hayward@arm.com>
639 David Sherwood <david.sherwood@arm.com>
640
641 * c-common.c (c_common_fixed_point_type_for_size): Use new mode
642 iterators.
643 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
644
4e10a5a7
RS
6452017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
646 Alan Hayward <alan.hayward@arm.com>
647 David Sherwood <david.sherwood@arm.com>
648
649 * c-cppbuiltin.c (mode_has_fma): Prefix mode names with E_ in
650 case statements.
651
130fcab0
ML
6522017-08-29 Martin Liska <mliska@suse.cz>
653
654 PR other/39851
655 * c-common.c (parse_optimize_options): Add argument to function
656 call.
657 * c-pragma.c (handle_pragma_diagnostic): Likewise.
658
14e18d71
DM
6592017-08-24 David Malcolm <dmalcolm@redhat.com>
660
661 * c-lex.c (interpret_float): Use token location
662 when building an EXCESS_PRECISION_EXPR.
663
2f687306
DM
6642017-08-21 David Malcolm <dmalcolm@redhat.com>
665
666 * c-common.c (check_function_arguments): Add "arglogs" param; pass
667 it to check_function_format.
668 * c-common.h (check_function_arguments): Add vec<location_t> *
669 param.
670 (check_function_format): Likewise.
671 * c-format.c (struct format_check_context): Add field "arglocs".
672 (check_function_format): Add param "arglocs"; pass it to
673 check_format_info.
674 (check_format_info): Add param "arglocs"; use it to initialize
675 new field of format_ctx.
676 (check_format_arg): Pass format_ctx->arglocs to new param of
677 check_format_info_main.
678 (class argument_parser): New field "arglocs".
679 (argument_parser::argument_parser): Add "arglocs_" param and use
680 it to initialize new field.
681 (argument_parser::check_argument_type): Pass new arglocs field to
682 check_format_types.
683 (check_format_info_main): Add param "arglocs", and use it when
684 constructing arg_parser.
685 (check_format_types): Add param "arglocs"; use it if non-NULL when
686 !EXPR_HAS_LOCATION (cur_param) to get at location information.
687
00aa1fa2
L
6882017-08-18 H.J. Lu <hongjiu.lu@intel.com>
689
690 PR c/53037
691 * c-attribs.c (handle_warn_if_not_aligned_attribute): New.
692 (c_common_attribute_table): Add warn_if_not_aligned.
693 (handle_aligned_attribute): Renamed to ...
694 (common_handle_aligned_attribute): Remove argument, name, and add
695 argument, warn_if_not_aligned. Handle warn_if_not_aligned.
696 (handle_aligned_attribute): New.
697 * c.opt: Add -Wif-not-aligned and -Wpacked-not-aligned.
698
27be025d
MS
6992017-08-14 Martin Sebor <msebor@redhat.com>
700
701 PR c/81117
702 * c-attribs.c (c_common_attribute_table): Add nonstring entry.
703 (handle_nonstring_attribute): New function.
704
da67acb9
MS
7052017-08-14 Martin Sebor <msebor@redhat.com>
706
707 PR c/81117
708 * c-format.h (T89_G): New macro.
709 * c-format.c (local_gcall_ptr_node): New variable.
710 (init_dynamic_diag_info): Initialize it.
711
a8b522b4
ML
7122017-08-11 Martin Liska <mliska@suse.cz>
713
714 * c-opts.c (c_common_post_options): Replace ASM_OUTPUT_DEF with
715 TARGET_SUPPORTS_ALIASES.
716
32129a17
DM
7172017-08-10 David Malcolm <dmalcolm@redhat.com>
718
719 * c-common.c (c_parse_error): Add rich_location * param, using it
720 rather implicitly using input_location.
721 * c-common.h (c_parse_error): Add rich_location * param.
722
30af3a2b
MP
7232017-08-09 Marek Polacek <polacek@redhat.com>
724
725 * c-common.c (pointer_int_sum): Use true/false instead of 1/0.
726 (c_common_truthvalue_conversion): Likewise.
727 * c-omp.c (c_finish_omp_atomic): Likewise.
728 * c-common.h (build_binary_op): Update declaration.
729
314e6352
ML
7302017-08-08 Martin Liska <mliska@suse.cz>
731
732 * c-ada-spec.c: Include header files.
733 * c-ubsan.c: Likewise.
734 * c-warn.c: Likewise.
735
56b5041c
JJ
7362017-08-07 Jakub Jelinek <jakub@redhat.com>
737
738 PR c/69389
739 * c-omp.c (c_finish_omp_atomic): Handle atomics on bitfields.
740
db440138
EB
7412017-08-07 Eric Botcazou <ebotcazou@adacore.com>
742
743 * c-ada-spec.c (has_nontrivial_methods): Test for FUNCTION_DECL.
744 (print_ada_methods): Likewise.
745 (print_ada_declaration): Likewise.
746
577eec56
ML
7472017-08-07 Martin Liska <mliska@suse.cz>
748
749 * array-notation-common.c: Add new includes.
750 * c-format.c( handle_format_attribute): Canonicalize a format
751 function name.
752 * c-lex.c (c_common_has_attribute): Canonicalize name of an
753 attribute.
754 * c-pretty-print.c: Add new include.
755
b854df3c
EB
7562017-08-05 Eric Botcazou <ebotcazou@adacore.com>
757
758 * c-ada-spec.c (has_static_fields): Look only into variables.
759 (print_constructor): Add TYPE parameter and use it for the name.
760 (print_destructor): Likewise.
761 (print_ada_declaration): Adjust to new constructor/destructor names.
762 Adjust calls to print_constructor and print_destructor.
763 (print_ada_struct_decl): Do not test TREE_STATIC on FIELD_DECL.
764 Look only into variables in the final loop.
765
9f2cb25e
EB
7662017-08-01 Eric Botcazou <ebotcazou@adacore.com>
767
768 * c-ada-spec.c (has_static_fields): Look only into fields.
769 (dump_generic_ada_node): Small tweak.
770 (dump_nested_types): Look only into fields.
771 (print_ada_declaration): Look only into methods. Small tweak.
772 (print_ada_struct_decl): Look only into fields. Use DECL_VIRTUAL_P.
773
f4bcd9eb
EB
7742017-08-01 Eric Botcazou <ebotcazou@adacore.com>
775
776 * c-ada-spec.c (print_generic_ada_decl): Pass correctly-typed constant.
777 (dump_ada_function_declaration): Likewise.
778 (dump_generic_ada_node): Likewise.
779 (print_ada_declaration): Add support for const-qualified variables.
780
f34ebeb2
ML
7812017-07-31 Martin Liska <mliska@suse.cz>
782
783 PR sanitize/81530
784 * c-ubsan.c (ubsan_maybe_instrument_array_ref):
785 Guard condition with flag_sanitize_p also with current_function_decl
786 non-null equality.
787 (ubsan_maybe_instrument_reference_or_call): Likewise.
788
218e5d04
UB
7892017-07-30 Uros Bizjak <ubizjak@gmail.com>
790
791 * c-format.c (asm_fprintf_char_table): Add 'z' to format_chars.
792
942047f2
EB
7932017-07-29 Eric Botcazou <ebotcazou@adacore.com>
794
795 * c-ada-spec.c (dump_generic_ada_node): Take into account signedness
796 for enumeral types.
797 (print_ada_declaration): Add missing guard for record types.
798
a40ff0ae
JJ
7992017-07-27 Jakub Jelinek <jakub@redhat.com>
800
801 PR c/45784
802 * c-omp.c (c_finish_omp_for): If the condition is wrapped in
803 rhs of COMPOUND_EXPR(s), skip them and readd their lhs into
804 new COMPOUND_EXPRs around the rhs of the comparison.
805
06bd22f6
MP
8062017-07-27 Marek Polacek <polacek@redhat.com>
807
808 PR c/81417
809 * c-warn.c (warn_for_sign_compare): Tweak the warning message. Print
810 the types.
811
036ea399
JJ
8122017-07-27 Jakub Jelinek <jakub@redhat.com>
813
814 * c-attribs.c (c_common_attribute_table): Add noipa attribute.
815 (handle_noipa_attribute): New function.
816
417ca011
TD
8172017-07-07 Torsten Duwe <duwe@suse.de>
818
819 * c-attribs.c (c_common_attribute_table): Add entry for
820 "patchable_function_entry".
821
5aaa8fb4
NS
8222017-07-20 Nathan Sidwell <nathan@acm.org>
823
824 Remove TYPE_METHODS.
825 * c-ada-spec.c (is_tagged_type, has_nontrivial_methods,
826 dump_ada_template, print_ada_methods,
827 print_ada_declaration): Member fns are on TYPE_FIELDS.
828
ff22eb12
NS
8292017-07-18 Nathan Sidwell <nathan@acm.org>
830
831 * c-warn.c (warn_for_memset): Use TYPE_{MIN,MAX}_VALUE.
832
eea77d1f
DM
8332017-07-14 David Malcolm <dmalcolm@redhat.com>
834
835 * c-common.c (try_to_locate_new_include_insertion_point): New
836 function.
837 (per_file_includes_t): New typedef.
838 (added_includes_t): New typedef.
839 (added_includes): New variable.
840 (maybe_add_include_fixit): New function.
841 * c-common.h (maybe_add_include_fixit): New decl.
842
281ac396
MS
8432017-07-10 Martin Sebor <msebor@redhat.com>
844
845 PR other/81345
846 * c.opt (-Wstringop-overflow): Set defaults in LangEnabledBy.
847
b6f43128
DM
8482017-07-06 David Malcolm <dmalcolm@redhat.com>
849
850 * c-common.c (selftest::c_family_tests): New.
851 * c-common.h (selftest::run_c_tests): Move decl to c/c-lang.h.
852 (selftest::c_family_tests): New decl.
853
efbf55b0
MP
8542017-07-04 Marek Polacek <polacek@redhat.com>
855
856 PR c/81231
857 * c-common.c (sync_resolve_size): Give error for pointers to incomplete
858 types.
859
6c86bd88
MP
8602017-07-04 Marek Polacek <polacek@redhat.com>
861
862 * c-warn.c (warn_if_unused_value): Remove WITH_CLEANUP_EXPR handling.
863
17a7218b
ML
8642017-06-28 Martin Liska <mliska@suse.cz>
865
866 PR ipa/81128
867 * c-attribs.c (handle_alias_ifunc_attribute): Append ifunc alias
868 to a function declaration.
869
63010089
ML
8702017-06-28 Martin Liska <mliska@suse.cz>
871
872 PR driver/79659
873 * c.opt: Add IntegerRange to various options.
874
3e2becc4
MP
8752017-06-26 Marek Polacek <polacek@redhat.com>
876
877 PR c/80116
878 * c-common.h (warn_for_multistatement_macros): Declare.
879 * c-warn.c: Include "c-family/c-indentation.h".
880 (warn_for_multistatement_macros): New function.
881 * c.opt (Wmultistatement-macros): New option.
882 * c-indentation.c (guard_tinfo_to_string): No longer static.
883 Change the parameter type to "enum rid". Handle RID_SWITCH.
884 * c-indentation.h (guard_tinfo_to_string): Declare.
885
2db9b7cd
MG
8862017-06-23 Marc Glisse <marc.glisse@inria.fr>
887
888 * c-common.c (c_common_nodes_and_builtins): Use builtin_structptr_types.
889
c3684b7b
MS
8902017-06-15 Martin Sebor <msebor@redhat.com>
891
892 PR c++/80560
893 * c.opt (-Wclass-memaccess): New option.
894
e72c4afd
BK
8952017-06-14 Boris Kolpackov <boris@codesynthesis.com>
896
897 * c-opts.c (c_common_finish): Handle '-' special value to -MF.
898
8a516588
MP
8992017-06-13 Marek Polacek <polacek@redhat.com>
900
901 PR objc/80949
902 * c-warn.c (do_warn_duplicated_branches): Return if any of the
903 branches is null.
904
45b2222a
ML
9052017-06-13 Martin Liska <mliska@suse.cz>
906
907 PR sanitize/78204
908 * c-attribs.c (add_no_sanitize_value): New function.
909 (handle_no_sanitize_attribute): Likewise.
910 (handle_no_sanitize_address_attribute): Use the function.
911 (handle_no_sanitize_thread_attribute): New function.
912 (handle_no_address_safety_analysis_attribute): Use
913 add_no_sanitize_value.
914 (handle_no_sanitize_undefined_attribute): Likewise.
915 * c-common.h: Declare new functions.
916 * c-ubsan.c (ubsan_instrument_division): Use sanitize_flags_p.
917 (ubsan_instrument_shift): Likewise.
918 (ubsan_instrument_bounds): Likewise.
919 (ubsan_maybe_instrument_array_ref): Likewise.
920 (ubsan_maybe_instrument_reference_or_call): Likewise.
921
a01f151f
JM
9222017-06-11 Jason Merrill <jason@redhat.com>
923
924 * c-ada-spec.c, c-pragma.c: Use id_equal.
925
3de4ac6d
MP
9262017-06-04 Marek Polacek <polacek@redhat.com>
927
928 PR c/80919
929 * c-format.c (matching_type_p): Return false if any of the types
930 requires structural equality.
931
2474f48f
MS
9322017-06-02 Martin Sebor <msebor@redhat.com>
933
934 PR c/80892
935 * c-warn.c (conversion_warning): Use -Wconversion for integer
936 conversion and -Wfloat-conversion for floating one.
937
40ffd95f
BE
9382017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
939
940 * c.opt (Wsizeof-pointer-div): New warning option.
941
3fa4634c
VR
9422017-06-01 Volker Reichelt <v.reichelt@netcologne.de>
943
944 * c.opt (Wcatch-value): New shortcut for Wcatch-value=1.
945 (Wcatch-value=1): Enable by -Wall.
946
f012c8ef
DM
9472017-05-30 David Malcolm <dmalcolm@redhat.com>
948
949 * c-format.c (gcc_cxxdiag_char_table): Add 'H' and 'I' to
950 format_chars.
951 * c.opt (fdiagnostics-show-template-tree): New option.
952 (felide-type): New option.
953
63dbcd13
VR
9542017-05-25 Volker Reichelt <v.reichelt@netcologne.de>
955
956 * c.opt (Wcatch-value=): New C++ warning flag.
957
be136b5c
NS
9582017-05-24 Nathan Sidwell <nathan@acm.org>
959
960 * c=common.c (field_decl_cmp, resort_field_decl_cmp): Adjust T
961 const casts to avoid warning.
962
3cd211af
MS
9632017-05-24 Martin Sebor <msebor@redhat.com>
964
965 PR c/80731
966 * c-common.h (unsafe_conversion_p): Add a function argument.
967 * c-common.c (unsafe_conversion_p): Same.
968 Add type names and values to diagnostics.
969 (scalar_to_vector): Adjust.
970 * c-warn.c (constant_expression_error): Add a function argument.
971 Add type names and values to diagnostics.
972 (conversion_warning): Add a function argument.
973 Add type names and values to diagnostics.
974 (warnings_for_convert_and_check): Same.
975
1ff7be5a
JM
9762017-05-19 Jason Merrill <jason@redhat.com>
977
978 * c-warn.c (match_case_to_enum_1): Don't warn about enums with no
979 enumerators.
980
ff502317
BE
9812017-05-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
982
983 * c-format.c (locus): Move out of function scope,
984 add GTY attribute.
985
2a8a8d7b
NS
9862017-05-19 Nathan Sidwell <nathan@acm.org>
987
988 * c-opts.c (class_dump_file, class_dump_flags): Delete.
989 (c_common_parse_file): Remove class dump handling.
990 (get_dump_info): Likewise.
991
39aac208
RB
9922017-05-19 Richard Biener <rguenther@suse.de>
993
994 PR c++/80593
995 * c-warn.c (strict_aliasing_warning): Do not warn for accesses
996 to alias-set zero memory.
997
6ecd2339
BE
9982017-05-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
999
1000 * c-format.c (local_tree_type_node): Add GTY attribute.
1001
6574d78e
MP
10022017-05-18 Marek Polacek <polacek@redhat.com>
1003
1004 * c-common.c (c_common_type_for_size): Use NULL_TREE instead of 0.
1005 (c_common_fixed_point_type_for_size): Likewise.
1006 (c_common_type_for_mode): Likewise.
1007 (shorten_compare): Likewise.
1008 (c_promoting_integer_type_p): Use false/true instead of 0/1.
1009 * c-pragma.c (maybe_apply_renaming_pragma): Use NULL_TREE instead of 0.
1010
e3455240
MP
10112017-05-18 Marek Polacek <polacek@redhat.com>
1012
1013 * c-common.c (self_promoting_args_p): Change the return type to bool.
1014 Use false/true instead of 0/1.
1015 * c-common.h (self_promoting_args_p): Update.
1016
3fa8871b
MP
10172017-05-17 Marek Polacek <polacek@redhat.com>
1018
1019 * c-common.c: Use NULL_TREE instead of 0 where appropriate.
1020 * c-warn.c: Likewise.
1021
b42cc3ca
VV
10222017-05-17 Ville Voutilainen <ville.voutilainen@gmail.com>
1023
1024 Implement new C++ intrinsics __is_assignable and __is_constructible.
1025 * c-common.c (__is_assignable, __is_constructible): New.
1026 * c-common.h (RID_IS_ASSIGNABLE, RID_IS_CONSTRUCTIBLE): Likewise.
1027
1a817418
ML
10282017-05-17 Martin Liska <mliska@suse.cz>
1029
1030 * c-common.h: Introduce dump_flags_t type and
1031 use it instead of int type.
1032 * c-gimplify.c (c_genericize): Likewise.
1033 * c-opts.c: Likewise.
1034
b2fa0a8b
MP
10352017-05-17 Marek Polacek <polacek@redhat.com>
1036
1037 * c-common.c (c_save_expr): Remove.
1038 (c_common_truthvalue_conversion): Remove a call to c_save_expr.
1039 * c-common.h (c_save_expr): Remove declaration.
1040
31c2d57d
VR
10412017-05-09 Volker Reichelt <v.reichelt@netcologne.de>
1042
1043 PR c/35441
1044 * c-pretty-print.c (c_pretty_printer::expression): Handle MAX_EXPR,
1045 MIN_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, LROTATE_EXPR, RROTATE_EXPR.
1046 (c_pretty_printer::postfix_expression): Handle MAX_EXPR, MIN_EXPR.
1047 (c_pretty_printer::multiplicative_expression): Handle EXACT_DIV_EXPR,
1048 RDIV_EXPR.
1049 (pp_c_shift_expression): Handle LROTATE_EXPR, RROTATE_EXPR.
1050
684f84de
MP
10512017-05-09 Marek Polacek <polacek@redhat.com>
1052
1053 PR c/80525
1054 * c-warn.c (unwrap_c_maybe_const): New.
1055 (warn_logical_operator): Call it.
1056
641da50a
NS
10572017-05-09 Nathan Sidwell <nathan@acm.org>
1058
1059 * c-common.c (c_register_builtin_type): Use pushdecl lang_hook.
1060 * c-common.h (pushdecl_top_level, pushdecl): Don't declare here.
1061
631238ac
MS
10622017-05-08 Martin Sebor <msebor@redhat.com>
1063
1064 PR translation/80280
1065 * c-format.h (struct format_flag_spec): Add new member.
1066 (T89_T): New macro.
1067 * c-format.c (local_tree_type_node): New global.
1068 (printf_flag_specs, asm_fprintf_flag_spec): Initialize new data.
1069 (gcc_diag_flag_specs, scanf_flag_specs, strftime_flag_specs): Ditto.
1070 (strfmon_flag_specs): Likewise.
1071 (gcc_diag_char_table, gcc_cdiag_char_table): Split up specifiers
1072 with distinct quoting properties.
1073 (gcc_tdiag_char_table, gcc_cxxdiag_char_table): Same.
1074 (flag_chars_t::validate): Add argument and handle bad quoting.
1075 (check_format_info_main): Handle quoting problems.
1076 (init_dynamic_diag_info): Simplify.
1077
49f0c04c
JM
10782017-05-08 Jason Merrill <jason@redhat.com>
1079
1080 * c-opts.c (c_common_post_options): Update defaults for
1081 flag_abi_version and flag_abi_compat_version.
1082
56d35585
DM
10832017-05-05 David Malcolm <dmalcolm@redhat.com>
1084
1085 * c-common.c (c_cpp_error): Replace report_diagnostic
1086 with diagnostic_report_diagnostic.
1087
0f2c4a8f
MS
10882017-05-04 Martin Sebor <msebor@redhat.com>
1089
1090 PR translation/80280
1091 * c-attribs.c (handle_alias_ifunc_attribute): Quote a %D directive.
1092 (handle_weakref_attribute): Same.
1093
6fe63fb4
NS
10942017-05-03 Nathan Sidwell <nathan@acm.org>
1095
1096 Canonicalize canonical type hashing
1097 * c-common.c (complete_array_type): Use type_hash_canon.
1098
815d9cc6
XR
10992017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
1100
1101 PR c++/80038
1102 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): Remove
1103 prototype.
1104 (cilk_install_body_pedigree_operations): Likewise.
1105 * cilk.c (cilk_set_spawn_marker): Mark functions that should be
1106 detatched.
1107 (cilk_gimplify_call_params_in_spawned_fn): Remove.
1108 (cilk_install_body_pedigree_operations): Likewise.
1109 (gimplify_cilk_spawn): Add EXPR_STMT and CLEANUP_POINT_EXPR
1110 unwrapping.
1111
f8a36447
JJ
11122017-04-27 Jakub Jelinek <jakub@redhat.com>
1113
1114 PR c++/80534
1115 * c-common.c (complete_array_type): Only hash TYPE_TYPELESS_STORAGE
1116 flag on non-aggregate element types.
1117
7c145456
BE
11182017-04-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
1119
1120 * c-common.c (c_type_hasher, type_hash_table): Remove.
1121 (c_common_get_alias_set): Remove unreachable code.
1122 * c-opts.c (c_common_post_options): Make sure cc1 takes only one file.
1123
c3cbcd45
VR
11242017-04-20 Volker Reichelt <v.reichelt@netcologne.de>
1125
1126 * c.opt (Wextra-semi): New C++ warning flag.
1127
8a59d466
JJ
11282017-04-20 Jakub Jelinek <jakub@redhat.com>
1129
1130 PR middle-end/80423
1131 * c-common.c (complete_array_type): Preserve TYPE_TYPELESS_STORAGE.
1132
8487c9a5
JJ
11332017-04-18 Jakub Jelinek <jakub@redhat.com>
1134
1135 PR middle-end/79788
1136 PR middle-end/80375
1137 * c-common.c (c_common_type_for_mode): Don't handle
1138 widest_*_literal_type_node here.
1139 c_common_signed_or_unsigned_type): Likewise.
1140 (c_common_nodes_and_builtins): Set widest_*_literal_type_node
1141 to *intTI_type_node or *intDI_type_node depending on whether
1142 TImode is supported by the target or not.
1143
3ee0fb02
ML
11442017-04-10 Martin Liska <mliska@suse.cz>
1145
1146 PR sanitizer/80350
1147 * c-ubsan.c (ubsan_instrument_shift): Evaluate RHS before
1148 doing an UBSAN check.
1149
5764ee3c
JW
11502017-04-03 Jonathan Wakely <jwakely@redhat.com>
1151
1152 * c-warn.c (do_warn_double_promotion): Fix typo in comment.
1153
6f3af356
JJ
11542017-03-31 Jakub Jelinek <jakub@redhat.com>
1155
1156 PR c++/79572
1157 * c-ubsan.h (ubsan_maybe_instrument_reference): Change argument to
1158 tree *.
1159 * c-ubsan.c (ubsan_maybe_instrument_reference): Likewise. Handle
1160 not just NOP_EXPR to REFERENCE_TYPE, but also INTEGER_CST with
1161 REFERENCE_TYPE.
1162
f6a7a9d5
DM
11632017-03-31 David Malcolm <dmalcolm@redhat.com>
1164
1165 PR documentation/78732
1166 * c.opt (Wendif-labels): Fix description to refer to
1167 #else rather than #elif.
1168
af88f557
JJ
11692017-03-31 Jakub Jelinek <jakub@redhat.com>
1170
1171 PR libstdc++/80251
1172 * c-common.h (enum rid): Add RID_IS_AGGREGATE.
1173 * c-common.c (c_common_reswords): Add __is_aggregate trait.
1174
a9e4a1a5
JJ
11752017-03-27 Jakub Jelinek <jakub@redhat.com>
1176
1177 PR middle-end/80162
1178 * c-common.c (c_common_mark_addressable_vec): Don't set
1179 TREE_ADDRESSABLE on DECL_HARD_REGISTER.
1180
3f01b620
MS
11812017-03-21 Martin Sebor <msebor@redhat.com>
1182
1183 PR c++/79548
1184 * c-common.c (set_underlying_type): Mark type used only when
1185 original del is declared unused.
1186
2f6f187a
DM
11872017-03-10 David Malcolm <dmalcolm@redhat.com>
1188
1189 PR translation/79848
1190 * c-format.c (check_format_string): Simplify uses of "%<%s%>" to
1191 "%qs".
1192
a02fa805
DM
11932017-03-10 David Malcolm <dmalcolm@redhat.com>
1194
1195 PR c/79921
1196 * c-indentation.c (warn_for_misleading_indentation): Remove parens
1197 from inform's message, so that xgettext can locate it.
1198
822a132c
MP
11992017-03-09 Marek Polacek <polacek@redhat.com>
1200
1201 PR c++/79962
1202 PR c++/79984
1203 * c-attribs.c (handle_nonnull_attribute): Save the result of default
1204 conversion to the attribute list.
1205
bba81f1c
ML
12062017-03-09 Martin Liska <mliska@suse.cz>
1207
1208 * c-ada-spec.c (macro_length): Increment value instead of a pointer.
1209
108154ff
JM
12102017-03-03 Jason Merrill <jason@redhat.com>
1211
1212 * c.opt (Wnoexcept-type): New.
1213
eb0e7c34
RB
12142017-03-02 Richard Biener <rguenther@suse.de>
1215
1216 PR c/79756
1217 * c-common.c (c_common_mark_addressable_vec): Look through
1218 C_MAYBE_CONST_EXPR.
1219
9453ba0a
ML
12202017-02-28 Martin Liska <mliska@suse.cz>
1221
1222 * c.opt: Replace space with tabular for options of <number>
1223 type.
1224
6a825afe
ML
12252017-02-28 Martin Liska <mliska@suse.cz>
1226
1227 * c.opt: Fix --help=option -Q for options which are of
1228 an enum type.
1229
4227c9ad
JJ
12302017-02-24 Jakub Jelinek <jakub@redhat.com>
1231
1232 PR c++/79588
1233 * c-common.c (check_function_restrict): New function.
1234 (check_function_arguments): Add FNDECL argument. Call
1235 check_function_restrict if -Wrestrict.
1236 * c-warn.c (warn_for_restrict): Remove ARGS argument, add ARGARRAY
1237 and NARGS. Use auto_vec for ARG_POSITIONS, simplify.
1238 * c-common.h (check_function_arguments): Add FNDECL argument.
1239 (warn_for_restrict): Remove ARGS argument, add ARGARRAY and NARGS.
1240
59909673
EB
12412017-02-24 Eric Botcazou <ebotcazou@adacore.com>
1242
1243 * c-ada-spec.c (dump_ada_function_declaration): Add comment about the
1244 treatment of parameters with pointer-to-tagged type and tidy up.
1245 (print_ada_methods): Remove the special treatment of C++ static member
1246 functions.
1247
54dcd526
ML
12482017-02-22 Martin Liska <mliska@suse.cz>
1249
1250 * c.opt: Replace inequality signs with square brackets
1251 for -Wnornalized.
1252
00bc9de3
JJ
12532017-02-21 Jakub Jelinek <jakub@redhat.com>
1254
1255 PR c++/79641
1256 * c-attribs.c (handle_mode_attribute): Use build_qualified_type to
1257 preserve quals.
1258
97fcf744
JM
12592017-02-17 Joseph Myers <joseph@codesourcery.com>
1260
1261 * c-cppbuiltin.c (builtin_define_float_constants): Define
1262 __DECIMAL_DIG__ to the value for long double.
1263
c7545f1c
MP
12642017-02-15 Marek Polacek <polacek@redhat.com>
1265
1266 PR c/79515
1267 * c-warn.c (do_warn_double_promotion): Don't warn if an invalid
1268 conversion has occured.
1269
c2e84327
DM
12702017-01-24 David Malcolm <dmalcolm@redhat.com>
1271
1272 * c-common.c (c_common_reswords): Add "__RTL".
1273 * c-common.h (enum rid): Add RID_RTL.
1274
2ebd93e1
MP
12752017-01-20 Marek Polacek <polacek@redhat.com>
1276
1277 PR c/64279
1278 * c-common.h (do_warn_duplicated_branches_r): Declare.
1279 * c-gimplify.c (c_genericize): Walk the function tree calling
1280 do_warn_duplicated_branches_r.
1281 * c-warn.c (expr_from_macro_expansion_r): New.
1282 (do_warn_duplicated_branches): New.
1283 (do_warn_duplicated_branches_r): New.
1284 * c.opt (Wduplicated-branches): New option.
1285
0d80ab91
DM
12862017-01-17 David Malcolm <dmalcolm@redhat.com>
1287
1288 PR c++/71497
1289 * c-indentation.c (warn_for_misleading_indentation): Use the past
1290 subjunctive in the note.
1291
7f991c36
AH
12922017-01-17 Aldy Hernandez <aldyh@redhat.com>
1293
1294 PR c/79116
1295 * array-notation-common.c (cilkplus_extract_an_triplets): Convert
1296 start type to integer_type.
1297
1c70261c
JJ
12982017-01-16 Jakub Jelinek <jakub@redhat.com>
1299
1300 PR driver/49726
1301 * c.opt (gen-decls): Add Driver flag.
1302
1ddca3f3
PC
13032017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
1304
1305 Revert:
1306 2017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
1307
1308 PR c++/71737
1309 * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
1310
7d2f3f1d
PC
13112017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
1312
1313 PR c++/71737
1314 * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
1315
bce6f760
MS
13162017-01-12 Martin Sebor <msebor@redhat.com>
1317
1318 (-Wformat-overflow): ...to this.
1319
bf5fbf46
MS
13202017-01-11 Martin Sebor <msebor@redhat.com>
1321
1322 PR c/78768
1323 * c.opt (-Walloca-larger-than, -Wformat-length, -Wformat-truncation):
1324 Also enable for LTO.
1325
e363df3f
JM
13262017-01-10 Jason Merrill <jason@redhat.com>
1327
1328 Implement P0195R2, C++17 variadic using.
1329 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_variadic_using.
1330
bd2c6270
JJ
13312017-01-09 Jakub Jelinek <jakub@redhat.com>
1332
1333 PR translation/79019
1334 PR translation/79020
1335 * c.opt (Wnormalized=): Fix typo in description.
1336
efcc8d38
MS
13372017-01-08 Martin Sebor <msebor@redhat.com>
1338
1339 PR middle-end/77708
1340 * c.opt (-Wformat-truncation): New option.
1341
435f3f7a
AO
13422017-01-06 Alexandre Oliva <aoliva@redhat.com>
1343
1344 * c-pretty-print.c (pp_c_tree_decl_identifier): Convert 16-bit
1345 value to unsigned short to fit in 4 hex digits without
1346 warnings.
1347
4e89adf9
EB
13482017-01-05 Eric Botcazou <ebotcazou@adacore.com>
1349
1350 * c.opt (fsso-struct): Add 'native' value.
1351
cd445b54
ML
13522017-01-05 Martin Liska <mliska@suse.cz>
1353
1354 PR pch/78970
1355 * c-opts.c (c_common_post_options): Reject '-' filename for a precompiled
1356 header.
1357
a9342885
MP
13582017-01-04 Marek Polacek <polacek@redhat.com>
1359
1360 PR c++/64767
1361 * c.opt (Wpointer-compare): New option.
1362
fc73e60c
JJ
13632017-01-04 Jakub Jelinek <jakub@redhat.com>
1364
1365 PR driver/78957
1366 * c.opt (fsso-struct=): Add RejectNegative.
1367
cbe34bb5
JJ
13682017-01-01 Jakub Jelinek <jakub@redhat.com>
1369
1370 Update copyright years.
1371
d4a6c0ea
ML
13722016-12-29 Martin Liska <mliska@suse.cz>
1373
1374 PR c/78933
1375 * c.opt (strong-eval-order): Add RejectNegative keyword.
1376
67a5ad7c
JM
13772016-12-22 Jason Merrill <jason@redhat.com>
1378
1379 Implement P0522R0, matching of template template arguments.
1380 * c-cppbuiltin.c (c_cpp_builtins): Define
1381 __cpp_template_template_args.
1382
0dba7960
JJ
13832016-12-21 Jakub Jelinek <jakub@redhat.com>
1384
1385 PR bootstrap/78817
1386 * c-common.c (struct nonnull_arg_ctx): New type.
1387 (check_function_nonnull): Return bool instead of void. Use
1388 nonnull_arg_ctx as context rather than just location_t.
1389 (check_nonnull_arg): Adjust for the new context type, set
1390 warned_p to true if a warning has been diagnosed.
1391 (check_function_arguments): Return bool instead of void.
1392 * c-common.h (check_function_arguments): Adjust prototype.
1393
31bfc9b9
JM
13942016-12-21 Jason Merrill <jason@redhat.com>
1395
1396 * c.opt (-fnew-ttp-matching): New flag.
1397 * c-opts.c (c_common_post_options): Default on if -std=c++1z.
1398
629b3d75
MJ
13992016-12-14 Martin Jambor <mjambor@suse.cz>
1400
1401 * c-omp.c: Include omp-general.h instead of omp-low.h.
1402 (c_finish_oacc_wait): Adjusted call to find_omp_clause to use its new
1403 name.
1404
474da67e
MS
14052016-12-14 Martin Sebor <msebor@redhat.com>
1406
1407 PR c/17308
1408 * c-common.c (check_nonnull_arg): Disable when optimization
1409 is enabled.
1410
fe366b87
MP
14112016-12-12 Marek Polacek <polacek@redhat.com>
1412
1413 PR c++/78647
1414 * c-common.c (attribute_fallthrough_p): Return false for
1415 error_mark_node.
1416
8bd9f164
MS
14172016-12-08 Martin Sebor <msebor@redhat.com>
1418
1419 PR c/78284
1420 * c.opt (-Walloc-zero, -Walloc-size-larger-than): New options.
1421
060162e0
MS
14222016-12-08 Martin Sebor <msebor@redhat.com>
1423
1424 PR c/78165
1d0cf89a
MS
1425 * c-pretty-print (pp_c_integer_constant): Avoid formatting type
1426 suffix.
060162e0 1427
ee92e7ba
MS
14282016-12-07 Martin Sebor <msebor@redhat.com>
1429
1430 PR c/53562
1431 PR middle-end/77784
1432 PR middle-end/78149
1433 PR middle-end/78138
1434 * c.opt (-Wstringop-overflow): New option.
1435
84b0769e
MO
14362016-12-02 Maxim Ostapenko <m.ostapenko@samsung.com>
1437
1438 * c-attribs.c (asan odr indicator): New attribute.
1439 (handle_asan_odr_indicator_attribute): New function.
1440
7fa6a965
PK
14412016-11-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1442
1443 * c-common.c (c_common_nodes_and_builtins): Remove initialization of
1444 ptrdiff_type_node;
1445
56d8ffc1
JG
14462016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
1447
1448 * c-common.c (excess_precision_mode_join): New.
1449 (c_ts18661_flt_eval_method): New.
1450 (c_c11_flt_eval_method): Likewise.
1451 (c_flt_eval_method): Likewise.
1452 * c-common.h (excess_precision_mode_join): New.
1453 (c_flt_eval_method): Likewise.
1454 * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): New.
1455 (cpp_iec_559_value): Call it.
1456 (c_cpp_builtins): Modify logic for __LIBGCC_*_EXCESS_PRECISION__,
1457 call c_flt_eval_method to set __FLT_EVAL_METHOD__ and
1458 __FLT_EVAL_METHOD_TS_18661_3__.
1459
04f0fcf7
JG
14602016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
1461
1462 * c-opts.c (c_common_post_options): Add logic to handle the default
1463 case for -fpermitted-flt-eval-methods.
1464
fb2675cb
PB
14652016-11-23 Paolo Bonzini <bonzini@gnu.org>
1466
1467 * c.opt (Wexpansion-to-defined): New.
1468
ec1c5694
JJ
14692016-11-23 Jakub Jelinek <jakub@redhat.com>
1470
1471 PR target/78451
1472 * c-pragma.c (handle_pragma_target): Don't replace
1473 current_target_pragma, but chainon the new args to the current one.
1474
730c9e75
NS
14752016-11-22 Nathan Sidwell <nathan@acm.org>
1476
1477 * array-notation-common.c (cilkplus_extract_an_trplets): Fix
cacd29be 1478 indentation and formatting.
730c9e75 1479
89990732
MS
14802016-11-21 Martin Sebor <msebor@redhat.com>
1481
1482 * c.opt (-fprintf-return-value): Enable by default.
1483
48330c93
BE
14842016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
1485
1486 PR c++/71973
1487 * c.opt (-Wbuiltin-declaration-mismatch): New warning.
1488 * c-common.c (c_common_nodes_and_builtins): Initialize
1489 const_tm_ptr_type_node.
1490
0d939c95
MP
14912016-11-16 Marek Polacek <polacek@redhat.com>
1492
1493 PR c/78285
1494 * c-common.c (c_add_case_label): Turn error_at calls into inform.
1495
8e745a17
JJ
14962016-11-14 Jakub Jelinek <jakub@redhat.com>
1497
1498 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_structured_bindings.
1499
1ee62b92 15002016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
8e745a17
JJ
1501 Richard Biener <rguenther@suse.de>
1502
1503 * c-common.h (c_common_resword): Add RID_GIMPLE, RID_PHI types.
1504 * c-common.h (enum rid): Add RID_GIMPLE, RID_PHI.
1505 * c.opt (fgimple): New option.
1ee62b92 1506
22b15758
UB
15072016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1508
1509 PR c/35503
1510 * c-common.h (warn_for_restrict): Declare.
1511 * c-warn.c: Include gcc-rich-location.h.
1512 (warn_for_restrict): New function.
1513 * c-format.c (gcc_tdiag_char_table): Add entry for "Z" specifier.
1514 (gcc_cdiag_char_table): Likewise.
1515 (gcc_cxxdiag_char_table): Likewise.
1516 * c.opt (Wrestrict): New option.
1517
4be719cd
EB
15182016-11-13 Eric Botcazou <ebotcazou@adacore.com>
1519
1520 * c-ada-spec.c (print_ada_declaration): For typedef declarations, look
1521 for nested types only if the type is a record or union and dump SLOC.
1522
4a826ca6
JM
15232016-11-09 Jason Merrill <jason@redhat.com>
1524
1525 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_template_auto.
1526
2e955d50
JJ
15272016-11-09 Jakub Jelinek <jakub@redhat.com>
1528
1529 * c-ubsan.c (ubsan_instrument_shift): Handle split
1530 -fsanitize=shift-base and -fsanitize=shift-exponent.
1531
51dc6603
JM
15322016-11-07 Jason Merrill <jason@redhat.com>
1533
1534 * c.opt (Wc++1z-compat): New.
1535 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_noexcept_function_type.
1536
6dc4a604
ML
15372016-11-07 Martin Liska <mliska@suse.cz>
1538
1539 * c-warn.c (warn_for_unused_label): Save all labels used
1540 in goto or in &label.
1541
b302001e
JM
15422016-11-03 Jason Merrill <jason@redhat.com>
1543
1544 * c-cppbuiltin.c (c_cpp_builtins): Correct
1545 __cpp_inheriting_constructors.
1546
31f7f784
JM
15472016-11-01 Jason Merrill <jason@redhat.com>
1548
2bc78e3c
JM
1549 * c-cppbuiltin.c (c_cpp_builtins): Update
1550 __cpp_inheriting_constructors.
1551
31f7f784
JM
1552 * c.opt (-fnew-inheriting-ctors): New.
1553 * c-opts.c: Default to on for ABI 11+.
1554
dcb466ec
JJ
15552016-10-31 Jakub Jelinek <jakub@redhat.com>
1556
1557 PR c++/77948
1558 * c.opt (fext-numeric-literals): Add Var and Init.
1559 * c-opts.c (c_common_handle_option): Don't clear
1560 cpp_opts->ext_numeric_literals for -std=c++{11,14,1z}.
1561 (c_common_post_options): Clear it here if not set
1562 explicitly.
1563
52e1b91e
AH
15642016-10-28 Aldy Hernandez <aldyh@redhat.com>
1565
1566 PR debug/77773
1567 * c-pretty-print.c (simple_type_specifier): Do not dereference `t'
1568 if NULL.
1569
e16f1cc7
JJ
15702016-10-25 Jakub Jelinek <jakub@redhat.com>
1571
1572 * c-common.h (enum rid): Add RID_BUILTIN_LAUNDER.
1573 * c-common.c (c_common_reswords): Add __builtin_launder.
1574
f8348061
BE
15752016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
1576
1577 * c-common.c (c_common_truthvalue_conversion): Warn for
1578 multiplications in boolean context. Fix the quoting of '<<' and '<'
1579 in the shift warning.
1580
eff89e01
BE
15812016-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
1582
1583 * c-common.c (c_common_truthvalue_conversion): Fix the comment.
1584
24bc7bf4
JM
15852016-10-20 Jason Merrill <jason@redhat.com>
1586
1587 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_concepts value.
1588
4c712374
BE
15892016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
1590
1591 * c-common.c (c_common_truthvalue_conversion): Warn only for signed
1592 integer shift ops in boolean context.
1593
15942016-10-18 Aldy Hernandez <aldyh@redhat.com>
adc577c5
AH
1595
1596 * c.opt (Walloca): New.
1597 (Walloca-larger-than=): New.
1598 (Wvla-larger-than=): New.
1599
8fa18c06
MP
16002016-10-17 Marek Polacek <polacek@redhat.com>
1601
1602 * c-warn.c (find_array_ref_with_const_idx_r): Remove parameter names.
1603 Return immediately when finding a match.
1604 (warn_tautological_cmp): Remove a boolean variable that is no longer
1605 needed.
1606
b12b1915
MP
16072016-10-17 Marek Polacek <polacek@redhat.com>
1608
1609 * c-attribs.c: New file.
1610 * c-common.c: Move attributes handling to c-attribs.c.
1611 (get_nonnull_operand): No longer static.
1612 * c-common.h: Move the declarations from c-attribs.c to its own section.
1613
2045acd9
JM
16142016-10-14 Jason Merrill <jason@redhat.com>
1615
1616 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_aggregate_bases
1617 and __cpp_deduction_guides.
1618
14a2c9aa
JM
16192016-10-13 Jason Merrill <jason@redhat.com>
1620
1621 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_inline_variables.
1622
4d0cdd0c
TP
16232016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
1624
1625 * c-cppbuiltin.c: Include memmodel.h.
1626 * c-opts.c: Likewise.
1627 * c-pragma.c: Likewise.
1628 * c-warn.c: Likewise.
1629
70f6d5e1
JJ
16302016-10-12 Jakub Jelinek <jakub@redhat.com>
1631
1632 * c.opt (Wextra): Add as C/C++/ObjC/ObjC++ option.
1633 (Wimplicit-fallthrough=): Enable for these languages by -Wextra.
1634 * c-opts.c (sanitize_cpp_opts): Initialize
1635 cpp_opts->cpp_warn_implicit_fallthrough.
1636
78f61294
MP
16372016-10-11 Marek Polacek <polacek@redhat.com>
1638
1639 * c-common.c (warning_candidate_p): Change the return type to bool
1640 and return true/false instead of 1/0.
1641 (vector_mode_valid_p): Likewise.
1642
038b5cc0
MP
16432016-10-11 Marek Polacek <polacek@redhat.com>
1644
1645 * c-common.c (fold_for_warn): No longer static.
1646 (bool_promoted_to_int_p): Likewise.
1647 (c_common_get_narrower): Likewise.
1648 (constant_expression_warning): Move to c-warn.c.
1649 (constant_expression_error): Likewise.
1650 (overflow_warning): Likewise.
1651 (warn_logical_operator): Likewise.
1652 (find_array_ref_with_const_idx_r): Likewise.
1653 (warn_tautological_cmp): Likewise.
1654 (expr_has_boolean_operands_p): Likewise.
1655 (warn_logical_not_parentheses): Likewise.
1656 (warn_if_unused_value): Likewise.
1657 (strict_aliasing_warning): Likewise.
1658 (sizeof_pointer_memaccess_warning): Likewise.
1659 (check_main_parameter_types): Likewise.
1660 (conversion_warning): Likewise.
1661 (warnings_for_convert_and_check): Likewise.
1662 (match_case_to_enum_1): Likewise.
1663 (match_case_to_enum): Likewise.
1664 (c_do_switch_warnings): Likewise.
1665 (warn_for_omitted_condop): Likewise.
1666 (readonly_error): Likewise.
1667 (lvalue_error): Likewise.
1668 (invalid_indirection_error): Likewise.
1669 (warn_array_subscript_with_type_char): Likewise.
1670 (warn_about_parentheses): Likewise.
1671 (warn_for_unused_label): Likewise.
1672 (warn_for_div_by_zero): Likewise.
1673 (warn_for_memset): Likewise.
1674 (warn_for_sign_compare): Likewise.
1675 (do_warn_double_promotion): Likewise.
1676 (do_warn_unused_parameter): Likewise.
1677 (record_locally_defined_typedef): Likewise.
1678 (maybe_record_typedef_use): Likewise.
1679 (maybe_warn_unused_local_typedefs): Likewise.
1680 (maybe_warn_bool_compare): Likewise.
1681 (maybe_warn_shift_overflow): Likewise.
1682 (warn_duplicated_cond_add_or_warn): Likewise.
1683 (diagnose_mismatched_attributes): Likewise.
1684 * c-common.h: Move the declarations from c-warn.c to its own section.
1685 * c-warn.c: New file.
1686
627be19f
JM
16872016-10-08 Jason Merrill <jason@redhat.com>
1688
1689 * c-common.c (c_common_truthvalue_conversion): Don't distribute
1690 into COND_EXPR in C++.
1691
7bad794a
JJ
16922016-10-08 Jakub Jelinek <jakub@redhat.com>
1693
1694 * c-lex.c (c_lex_with_flags) <case CPP_COMMENT>: For CPP_COMMENT
1695 token with PREV_FALLTHROUGH, skip all following CPP_PADDING and
1696 CPP_COMMENT tokens and set add_flags to PREV_FALLTHROUGH afterwards.
1697
be845b04
JJ
16982016-10-07 Jakub Jelinek <jakub@redhat.com>
1699
1700 Implement LWG2296 helper intrinsic
1701 * c-common.h (enum rid): Add RID_ADDRESSOF.
1702 * c-common.c (c_common_reswords): Add __builtin_addressof.
1703
c09c4992
BE
17042016-10-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
1705
1706 PR c++/77700
1707 * c-common.c (c_common_truthvalue_conversion): Warn also for
1708 suspicious enum values in boolean context.
1709
342cfb3e
JJ
17102016-10-06 Jakub Jelinek <jakub@redhat.com>
1711
1712 Implement P0258R2 - helper for C++17
1713 std::has_unique_object_representations trait
1714 * c-common.h (enum rid): Add RID_HAS_UNIQUE_OBJ_REPRESENTATIONS.
1715 * c-common.c (c_common_reswords): Add
1716 __has_unique_object_representations.
1717
2e69f143
JJ
17182016-10-05 Jakub Jelinek <jakub@redhat.com>
1719
1720 PR sanitizer/66343
1721 * c-ubsan.c (ubsan_instrument_return): Don't call
1722 initialize_sanitizer_builtins here.
1723
700fff34
BE
17242016-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
1725
1726 * c-common.c (c_common_truthvalue_conversion): Warn also for suspicious
1727 conditional expression in boolean context when only one arm is
1728 non-boolean.
1729
9563bfcd
JJ
17302016-10-05 Jakub Jelinek <jakub@redhat.com>
1731
04a32443
JJ
1732 PR sanitizer/77823
1733 * c-ubsan.c (ubsan_instrument_shift): Return NULL_TREE if type0
1734 is not integral.
1735
9563bfcd
JJ
1736 * c-common.c (c_common_reswords): Update comment for C++11.
1737
f1644724
JM
17382016-10-04 Jason Merrill <jason@redhat.com>
1739
1740 * c-common.c (make_tree_vector_from_ctor): New.
1741 * c-common.h: Declare it.
1742
5a79befb
JJ
17432016-10-04 Jakub Jelinek <jakub@redhat.com>
1744
1745 * c-cppbuiltin.c (c_cpp_builtins): Don't define
1746 __LIBGCC_JCR_SECTION_NAME__.
1747
1633d3b9
BE
17482016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
1749
1750 * c-common.c (c_common_truthvalue_conversion): Warn for suspicious
1751 left shift in boolean context.
1752
a2c6e7f2
JJ
17532016-09-29 Jakub Jelinek <jakub@redhat.com>
1754
1755 Implement P0001R1 - C++17 removal of register storage class specifier
1756 * c.opt (Wregister): New warning.
1757 * c-opts.c (c_common_post_options): Enable -Wregister by
1758 default for C++17.
1759
75304c87
JG
17602016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
1761
1762 * c-opts.c (c_common_post_options): Remove special case for
1763 TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard
1764 in C++.
1765
bbfac6da
JJ
17662016-09-27 Jakub Jelinek <jakub@redhat.com>
1767
6e39060a
JJ
1768 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for
1769 -std=c++1z.
1770
bbfac6da
JJ
1771 * c-ada-spec.c (print_ada_declaration): Remove break after return.
1772
e73cf9a2
TP
17732016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
1774
1775 * c-common.c: Include memmodel.h.
1776
c6147dc4
MP
17772016-09-26 Marek Polacek <polacek@redhat.com>
1778
1779 * c-lex.c (c_common_has_attribute): Handle attribute fallthrough.
1780
81fea426
MP
17812016-09-26 Marek Polacek <polacek@redhat.com>
1782
1783 PR c/7652
1784 * c-common.c (c_common_attribute_table): Add fallthrough attribute.
1785 (handle_fallthrough_attribute): New function.
1786 (attribute_fallthrough_p): New function.
1787 * c-common.h (attribute_fallthrough_p): Declare.
1788
9a2300e9
MP
17892016-09-24 Marek Polacek <polacek@redhat.com>
1790
1791 PR c/77490
1792 * c.opt (Wbool-operation): New.
1793
a09e9e35
BE
17942016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
1795
1796 * c-common.c (c_common_truthvalue_conversion): Inhibit
1797 Wint-in-bool-context warning with from_macro_definition_at.
1798 Mention the expression will always evaluate to true.
1799
d43b4ccc
MS
18002016-09-21 Martin Sebor <msebor@redhat.com>
1801
1802 PR bootstrap/77676
1803 * c.opt (fprintf-return-value): Temporarily initialize to zero
1804 to unblock bootstrap failures.
1805
2e1c20b1
JJ
18062016-09-21 Jakub Jelinek <jakub@redhat.com>
1807
1808 PR c++/77651
1809 * c.opt (Waligned-new=): Add RejectNegative.
1810 (faligned-new=): Likewise. Spelling fix - change
1811 aligned_new_threshhold to aligned_new_threshold.
1812 * c-cppbuiltin.c (c_cpp_builtins): Change aligned_new_threshhold
1813 to aligned_new_threshold.
1814
88d0c3f0
MS
18152016-09-20 Martin Sebor <msebor@redhat.com>
1816
1817 PR middle-end/49905
1818 * c.opt: Add -Wformat-length and -fprintf-return-value.
1819
144a96e4
BE
18202016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
1821
1822 PR c++/77434
1823 * c.opt (Wint-in-bool-context): New warning.
1824 * c-common.c (c_common_truthvalue_conversion): Warn on integer
1825 constants in boolean context.
1826
63012d9a
JM
18272016-09-19 Joseph Myers <joseph@codesourcery.com>
1828
1829 * c-common.c (max_align_t_align): Also consider alignment of
1830 float128_type_node.
1831
931388ce
JM
18322016-09-15 Jason Merrill <jason@redhat.com>
1833
1834 * c-common.c (check_cxx_fundamental_alignment_constraints): Check
1835 DECL_EXTERNAL.
1836
38711381
JM
18372016-09-14 Jason Merrill <jason@redhat.com>
1838
1839 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
1840 limit FIELD_DECL, either.
1841
e51fbec3
MP
18422016-09-14 Marek Polacek <polacek@redhat.com>
1843
1844 * c-common.c (c_common_truthvalue_conversion): Use false instead of 0.
1845 * c-common.h (build_unary_op): Change nonconvert parameter type to bool.
1846 * c-omp.c (c_finish_omp_atomic): Use false instead of 0.
1847
254830ba
DM
18482016-09-13 David Malcolm <dmalcolm@redhat.com>
1849
1850 * c-common.c (warn_logical_not_parentheses): Replace
1851 rich_location::add_fixit_insert calls with add_fixit_insert_before
1852 and add_fixit_insert_after, eliminating the "next_loc" calculation.
1853
42763690
JM
18542016-09-13 Jason Merrill <jason@redhat.com>
1855 Tom de Vries <tom@codesourcery.com>
1856
1857 PR c++/77427
1858 * c-common.c (set_underlying_type): Don't treat array as builtin type.
1859
9453eee9
JM
18602016-09-13 Jason Merrill <jason@redhat.com>
1861
1862 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
1863 limit types at all.
1864
e96809e3
JM
18652016-09-12 Jason Merrill <jason@redhat.com>
1866
1867 * c-common.c (check_cxx_fundamental_alignment_constraints): Fix
1868 bit/byte confusion, allow large alignment for types.
1869
54dcdb88
BE
18702016-09-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
1871
1872 PR c++/77496
1873 * c-common.c (warn_for_omitted_condop): Also warn for boolean data.
1874
d1463eb9
DM
18752016-09-12 David Malcolm <dmalcolm@redhat.com>
1876
1877 PR c/72858
1878 * c-format.c (argument_parser::check_argument_type): Add params
1879 "type_start" and "conversion_char". Use the former to generate
1880 offset_to_type_start and pass it and conversion_char to
1881 check_format_types.
1882 (check_format_info_main): Capture the start of the type
1883 information as "type_start", and pass it an format_char
1884 to arg_parser.check_argument_type.
1885 (check_format_types): Provide an example in the leading comment.
1886 Add params "offset_to_type_start" and "conversion_char"; pass
1887 them to format_type_warning calls.
1888 (test_get_modifier_for_format_len): Likewise.
1889 (matching_type_p): New function.
1890 (get_format_for_type): Add param "conversion_char" and move
1891 implementation into...
1892 (get_format_for_type_1): ...new function, called twice.
1893 Use new function matching_type_p rather than checking for
1894 TYPE_CANONICAL equality.
1895 (get_corrected_substring): New function.
1896 (format_type_warning): Provide an example in the leading comment.
1897 Add params "offset_to_type_start" and "conversion_char". Replace
1898 call to get_format_for_type with call to get_corrected_substring
1899 and move rejection of hints for widths/precisions there.
1900 (assert_format_for_type_streq): Add param "conversion_char".
1901 (ASSERT_FORMAT_FOR_TYPE_STREQ): Add param CONVERSION_CHAR.
1902 (test_get_format_for_type_printf): Add conversion chars to the
1903 tests, adding coverage for various combinations of integer
1904 vs double conversions, and for preserving octal and hexadecimal
1905 conversions.
1906 (test_get_format_for_type_scanf): Add conversion chars to the
1907 tests.
1908
5b28efbb
TV
19092016-09-10 Tom de Vries <tom@codesourcery.com>
1910
1911 PR C/71602
1912 * c-common.c (build_va_arg): Handle more strict
1913 targetm.canonical_va_list_type. Replace first argument type error with
1914 assert.
1915
3f0177e7
MS
19162016-09-09 Martin Sebor <msebor@redhat.com>
1917
1918 PR c/77520
1919 PR c/77521
1920 * c-format.c (argument_parser::find_format_char_info): Use %qc
1921 format directive unconditionally.
1922
af63ba4b
JM
19232016-09-09 Jason Merrill <jason@redhat.com>
1924
1925 Implement C++17 new of over-aligned types.
1926 * c.opt: Add -faligned-new and -Waligned-new.
1927 * c-common.c (max_align_t_align): Split out from...
1928 (cxx_fundamental_alignment_p): ...here.
1929 * c-common.h: Declare it.
1930 * c-cppbuiltin.c (c_cpp_builtins): Handle aligned new.
1931
c65248cb
JM
19322016-09-09 Joseph Myers <joseph@codesourcery.com>
1933
1934 * c-cppbuiltin.c (builtin_define_type_width): New function.
1935 (builtin_define_stdint_macros, c_cpp_builtins): Define type width
1936 macros.
1937
e5106e27
DM
19382016-09-07 David Malcolm <dmalcolm@redhat.com>
1939
1940 * c-common.c (get_cpp_ttype_from_string_type): Handle being passed
1941 a POINTER_TYPE.
1942 (substring_loc::get_location): Move to substring-locations.c,
1943 keeping implementation as...
1944 (c_get_substring_location): New function, from the above, reworked
1945 to use accessors rather than member lookup.
1946 * c-common.h (class substring_loc): Move to substring-locations.h,
1947 replacing with a forward decl.
1948 (c_get_substring_location): New decl.
1949 * c-format.c: Include "substring-locations.h".
1950 (format_warning_va): Move to substring-locations.c.
1951 (format_warning_at_substring): Likewise.
1952
a42e7952
MS
19532016-09-06 Martin Sebor <msebor@redhat.com>
1954
1955 PR c/77336
1956 * c-format.c (check_function_format): Avoid issuing warnings for
1957 functions unless they call format functions with non-constant
1958 format strings.
1959
b772a565
RB
19602016-09-06 Richard Biener <rguenther@suse.de>
1961
1962 PR c/77450
1963 * c-common.c (c_common_mark_addressable_vec): Handle
1964 COMPOUND_LITERAL_EXPR.
1965
25ff5dd3
MP
19662016-09-05 Marek Polacek <polacek@redhat.com>
1967
1968 PR c/77423
1969 * c-common.c (bool_promoted_to_int_p): New function.
1970 (expr_has_boolean_operands_p): New function.
1971 (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p.
1972 (maybe_warn_bool_compare): Use bool_promoted_to_int_p.
1973
21234eb5
TV
19742016-09-04 Tom de Vries <tom@codesourcery.com>
1975
1976 revert:
1977 2016-08-29 Tom de Vries <tom@codesourcery.com>
1978
1979 * c-common.c (build_va_arg): Replace first argument type error
1980 with assert.
1981
9dc5773f
JJ
19822016-09-02 Jakub Jelinek <jakub@redhat.com>
1983
1984 PR c/65467
1985 * c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions.
1986 (c_finish_omp_for): Reject _Atomic qualified iterators.
1987
19882016-09-01 Martin Sebor <msebor@redhat.com>
3d7b83b6
MS
1989
1990 * c-ada-spec.c (dump_ada_function_declaration): Increase buffer
1991 size to guarantee it fits the output of the formatted function
1992 regardless of its arguments.
1993
295844f6
MP
19942016-09-01 Marek Polacek <polacek@redhat.com>
1995
1996 PR c/7652
1997 * c-common.c (resolve_overloaded_builtin): Fix formatting. Add
1998 FALLTHRU comments.
1999
3d06b6f2
MP
20002016-08-29 Marek Polacek <polacek@redhat.com>
2001
2002 PR c/77292
2003 * c-common.c (warn_logical_not_parentheses): Don't warn for
2004 a comparison or a logical operator.
2005
34cedad5
TV
20062016-08-29 Tom de Vries <tom@codesourcery.com>
2007
2008 * c-common.c (build_va_arg): Fix type comparison assert.
2009
f162d717
TV
20102016-08-29 Tom de Vries <tom@codesourcery.com>
2011
2012 * c-common.c (build_va_arg): Replace first argument type error
2013 with assert.
2014
ba9bbd6f
TV
20152016-08-29 Tom de Vries <tom@codesourcery.com>
2016
2017 PR c/77398
2018 * c-common.c (build_va_arg): Add first argument error. Build va_arg
2019 with error_mark_node as va_list instead of with illegal va_list.
2020
ebef225f
MP
20212016-08-25 Marek Polacek <polacek@redhat.com>
2022 David Malcolm <dmalcolm@redhat.com>
2023
2024 * c-common.c (warn_logical_not_parentheses): Print fixit hints.
2025 * c-common.h (warn_logical_not_parentheses): Update declaration.
2026
b00e6e75
MP
20272016-08-22 Marek Polacek <polacek@redhat.com>
2028
2029 PR c++/77321
2030 * c-common.c (warn_for_memset): Check type for null.
2031
6dc198e3
JM
20322016-08-22 Joseph Myers <joseph@codesourcery.com>
2033
14ec014e 2034 * c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and
6dc198e3
JM
2035 _FloatNx types for suffixes for built-in functions.
2036
c65699ef
JM
20372016-08-19 Joseph Myers <joseph@codesourcery.com>
2038
2039 PR c/32187
2040 * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32)
2041 (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X)
2042 (RID_FLOAT128X): New enum rid values.
2043 (CASE_RID_FLOATN_NX): New macro.
2044 * c-common.c (c_common_reswords): Add _FloatN and _FloatNx
2045 keywords.
2046 (c_common_type_for_mode): Check for _FloatN and _FloatNx and
2047 corresponding complex types.
2048 (c_common_nodes_and_builtins): For non-C++, register _FloatN and
2049 _FloatNx and corresponding complex types.
2050 (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX.
2051 * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN
2052 and _FloatNx types for the widest type for determining
2053 DECIMAL_DIG. Define __LDBL_DECIMAL_DIG__ as well as
2054 __DECIMAL_DIG__ for long double. Handle FMA_SUFFIX being NULL.
2055 (c_cpp_builtins): Call builtin_define_float_constants for _FloatN
2056 and _FloatNx types.
2057 * c-lex.c (interpret_float): Handle _FloatN and _FloatNx
2058 constants.
2059 * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and
2060 _FloatNx types.
2061
cc015f3a
DM
20622016-08-18 David Malcolm <dmalcolm@redhat.com>
2063
2064 * c-opts.c (c_diagnostic_finalizer): Update for change to
2065 diagnostic_show_locus.
2066
cb18fd07
DM
20672016-08-18 David Malcolm <dmalcolm@redhat.com>
2068
2069 * c-common.c: Include "spellcheck.h".
2070 (cb_get_suggestion): New function.
2071 * c-common.h (cb_get_suggestion): New decl.
2072 * c-lex.c (init_c_lex): Initialize cb->get_suggestion to
2073 cb_get_suggestion.
2074
a76989dc
MP
20752016-08-18 Marek Polacek <polacek@redhat.com>
2076
2077 PR c/71514
2078 * c-common.c (get_atomic_generic_size): Disallow pointer-to-function
2079 and pointer-to-VLA.
2080
65e736c0
DM
20812016-08-16 David Malcolm <dmalcolm@redhat.com>
2082
2083 PR c/72857
2084 * c-common.c (substring_loc::get_range): Rename to...
2085 (substring_loc::get_location): ...this, converting param from a
2086 source_range * to a location_t *. Call
2087 get_source_location_for_substring rather than
2088 get_source_range_for_substring, and pass in m_caret_idx.
2089 * c-common.h (substring_loc::substring_loc): Add param "caret_idx".
2090 (substring_loc::get_range): Replace with...
2091 (substring_loc::get_location): ...this.
2092 (substring_loc::set_caret_index): New method.
2093 (substring_loc): Add field m_caret_idx.
2094 * c-format.c (format_warning_va): Update for above changes.
2095 Rename local "substring_loc" to "fmt_substring_loc" to avoid
2096 clashing with type name.
2097 (format_warning_at_char): Add caret_idx param to substring_loc ctor.
2098 (check_argument_type): Likewise.
2099 (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc"
2100 Use a copy when emitting warnings, setting the caret index from TYPE.
2101
7e1dde14 21022016-08-16 Eric Botcazou <ebotcazou@adacore.com>
8e745a17 2103 Arnaud Charlet <charlet@adacore.com>
7e1dde14
EB
2104
2105 * c-ada-spec.c (dump_number): New function.
2106 (handle_escape_character): Likewise.
2107 (print_ada_macros): Add handling of constant integers and strings.
2108
191816a3
MP
21092016-08-12 Marek Polacek <polacek@redhat.com>
2110
2111 PR c/7652
2112 * c-common.c (scalar_to_vector): Adjust fall through comment.
2113 * c-opts.c (c_common_handle_option): Likewise.
2114 * c-pragma.c (handle_pragma_pack): Add FALLTHRU.
2115 * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust
2116 fall through comment.
2117 * cilk.c (extract_free_variables): Add FALLTHRU.
2118
452df4a4
JM
21192016-08-10 Jason Merrill <jason@redhat.com>
2120
2121 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr.
2122
f3365c12
JM
21232016-08-09 Jason Merrill <jason@redhat.com>
2124
2125 * c-common.c (c_common_attribute_table): vector_size affects type
2126 identity.
2127
f0bc3323
MP
21282016-08-09 Marek Polacek <polacek@redhat.com>
2129
2130 PR c/7652
2131 * c-ada-spec.c (dump_generic_ada_node): Add return.
2132
98e5a19a
JM
21332016-08-09 Jason Merrill <jason@redhat.com>
2134
2135 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for
2136 C++17 constexpr lambdas.
2137
895aa8e1
DM
21382016-08-08 David Malcolm <dmalcolm@redhat.com>
2139
2140 PR c/64955
2141 * c-common.h (selftest::c_format_c_tests): New declaration.
2142 (selftest::run_c_tests): New declaration.
2143 * c-format.c: Include "selftest.h.
2144 (format_warning_va): Add param "corrected_substring" and use
2145 it to add a replacement fix-it hint.
2146 (format_warning_at_substring): Likewise.
2147 (format_warning_at_char): Update for new param of
2148 format_warning_va.
2149 (argument_parser::check_argument_type): Pass "fki" to
2150 check_format_types.
2151 (check_format_types): Add param "fki" and pass it to
2152 format_type_warning.
2153 (deref_n_times): New function.
2154 (get_modifier_for_format_len): New function.
2155 (selftest::test_get_modifier_for_format_len): New function.
2156 (get_format_for_type): New function.
2157 (format_type_warning): Add param "fki" and use it to attempt
2158 to provide hints for argument types when calling
2159 format_warning_at_substring.
2160 (selftest::get_info): New function.
2161 (selftest::assert_format_for_type_streq): New function.
2162 (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro.
2163 (selftest::test_get_format_for_type_printf): New function.
2164 (selftest::test_get_format_for_type_scanf): New function.
2165 (selftest::c_format_c_tests): New function.
2166
e52ed3fe
DM
21672016-08-08 David Malcolm <dmalcolm@redhat.com>
2168
2169 PR c/52952
2170 * c-format.c: Include "diagnostic.h".
2171 (location_column_from_byte_offset): Delete.
2172 (location_from_offset): Delete.
2173 (format_warning_va): New function.
2174 (format_warning_at_substring): New function.
2175 (format_warning_at_char): New function.
2176 (check_format_arg): Capture location of format_tree and pass to
2177 check_format_info_main.
2178 (argument_parser): Add fields "start_of_this_format" and
2179 "format_string_cst".
2180 (flag_chars_t::validate): Add param "format_string_cst". Convert
2181 warning_at call using location_from_offset to call to
2182 format_warning_at_char.
2183 (argument_parser::argument_parser): Add param "format_string_cst_"
2184 and use use it to initialize field "format_string_cst".
2185 Initialize new field "start_of_this_format".
2186 (argument_parser::read_format_flags): Convert warning_at call
2187 using location_from_offset to a call to format_warning_at_char.
2188 (argument_parser::read_any_format_left_precision): Likewise.
2189 (argument_parser::read_any_format_precision): Likewise.
2190 (argument_parser::read_any_other_modifier): Likewise.
2191 (argument_parser::find_format_char_info): Likewise, in three places.
2192 (argument_parser::parse_any_scan_set): Likewise, in one place.
2193 (argument_parser::handle_conversions): Likewise, in two places.
2194 (argument_parser::check_argument_type): Add param "fmt_param_loc"
2195 and use it to make a substring_loc. Pass the latter to
2196 check_format_types.
2197 (check_format_info_main): Add params "fmt_param_loc" and
2198 "format_string_cst". Convert warning_at calls using
2199 location_from_offset to calls to format_warning_at_char. Pass the
2200 new params to the arg_parser ctor. Pass "format_string_cst" to
2201 flag_chars.validate. Pass "fmt_param_loc" to
2202 arg_parser.check_argument_type.
2203 (check_format_types): Convert first param from a location_t
2204 to a const substring_loc & and rename to "fmt_loc". Attempt
2205 to extract the range of the relevant parameter and pass it
2206 to format_type_warning.
2207 (format_type_warning): Convert first param from a location_t
2208 to a const substring_loc & and rename to "fmt_loc". Add
2209 params "param_range" and "type". Replace calls to warning_at
2210 with calls to format_warning_at_substring.
2211
1c4d457e
DM
22122016-08-08 David Malcolm <dmalcolm@redhat.com>
2213
2214 * c-format.c (class flag_chars_t): New class.
2215 (struct length_modifier): New struct.
2216 (class argument_parser): New class.
2217 (flag_chars_t::flag_chars_t): New ctor.
2218 (flag_chars_t::has_char_p): New method.
2219 (flag_chars_t::add_char): New method.
2220 (flag_chars_t::validate): New method.
2221 (flag_chars_t::get_alloc_flag): New method.
2222 (flag_chars_t::assignment_suppression_p): New method.
2223 (argument_parser::argument_parser): New ctor.
2224 (argument_parser::read_any_dollar): New method.
2225 (argument_parser::read_format_flags): New method.
2226 (argument_parser::read_any_format_width): New method.
2227 (argument_parser::read_any_format_left_precision): New method.
2228 (argument_parser::read_any_format_precision): New method.
2229 (argument_parser::handle_alloc_chars): New method.
2230 (argument_parser::read_any_length_modifier): New method.
2231 (argument_parser::read_any_other_modifier): New method.
2232 (argument_parser::find_format_char_info): New method.
2233 (argument_parser::validate_flag_pairs): New method.
2234 (argument_parser::give_y2k_warnings): New method.
2235 (argument_parser::parse_any_scan_set): New method.
2236 (argument_parser::handle_conversions): New method.
2237 (argument_parser::check_argument_type): New method.
2238 (check_format_info_main): Introduce classes argument_parser
2239 and flag_chars_t, moving the code within the loop into methods
2240 of these classes. Make various locals "const".
2241
88fa5555
DM
22422016-08-05 David Malcolm <dmalcolm@redhat.com>
2243
2244 * c-common.c: Include "substring-locations.h".
2245 (get_cpp_ttype_from_string_type): New function.
2246 (g_string_concat_db): New global.
2247 (substring_loc::get_range): New method.
2248 * c-common.h (g_string_concat_db): New declaration.
2249 (class substring_loc): New class.
2250 * c-lex.c (lex_string): When concatenating strings, capture the
2251 locations of all tokens using a new obstack, and record the
2252 concatenation locations within g_string_concat_db.
2253 * c-opts.c (c_common_init_options): Construct g_string_concat_db
2254 on the ggc-heap.
2255
78169471
MP
22562016-07-29 Marek Polacek <polacek@redhat.com>
2257
638fc14f
MP
2258 PR c/71926
2259 * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the
2260 parentheses warning.
2261
78169471
MP
2262 PR c/71574
2263 * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL.
2264
1225d6b1
ML
22652016-07-28 Martin Liska <mliska@suse.cz>
2266
2267 PR gcov-profile/68025
2268 * c-common.c (handle_no_profile_instrument_function_attribute):
2269
ec1e2a40
BE
22702016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
2271
2272 * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of
2273 BITS_PER_UNIT_LOG.
2274
5ec2cd9f
JM
22752016-07-25 Jason Merrill <jason@redhat.com>
2276
2277 PR c++/65970
2278 * c.opt (fconstexpr-loop-limit): New.
2279
9dc5773f 22802016-07-22 Martin Sebor <msebor@redhat.com>
2e6b45af
MS
2281
2282 PR c++/71675
2283 * c-common.c (resolve_overloaded_builtin): Avoid converting
2284 __atomic_compare_exchange_n return type to that of what its
2285 first argument points to.
2286
e3fe09c1
UB
22872016-07-22 Uros Bizjak <ubizjak@gmail.com>
2288
2289 * c-common.c: Use HOST_WIDE_INT_M1U instead of
2290 ~(unsigned HOST_WIDE_INT) 0.
2291
bc91c436
ML
22922016-07-22 Martin Liska <mliska@suse.cz>
2293
2294 PR gcov-profile/69028
2295 PR gcov-profile/62047
2296 * cilk.c (create_cilk_helper_decl): Set location of a new decl
2297 to the current_function_decl.
2298
451dcc66
JM
22992016-07-21 Jason Merrill <jason@redhat.com>
2300
2301 PR c++/65168
2302 * c-common.c (c_common_truthvalue_conversion): Check
2303 c_inhibit_evaluation_warnings for warning about address of
2304 reference.
2305
de6a69ee
DM
23062016-07-20 David Malcolm <dmalcolm@redhat.com>
2307
2308 * c-common.h (lookup_name_fuzzy): Convert return type from tree to
2309 const char *.
2310
d022c55a
JM
23112016-07-15 Jason Merrill <jason@redhat.com>
2312
2313 * c-opts.c (c_common_post_options): Update -fabi-version default to 11.
2314
ddbbcb19
JJ
23152016-07-15 Jakub Jelinek <jakub@redhat.com>
2316
2317 PR c/71858
2318 * c-common.h (enum lookup_name_fuzzy_kind): Add
2319 FUZZY_LOOKUP_FUNCTION_NAME.
2320
d0cf395a
JM
23212016-07-08 Jason Merrill <jason@redhat.com>
2322
2323 P0145: Refining Expression Order for C++.
2324 * c.opts (-fargs-in-order): Rename to -fstrong-eval-order.
2325 * c-opts.c: Adjust.
2326
98d44e93
MT
23272016-07-05 Markus Trippelsdorf <markus@trippelsdorf.de>
2328
2329 PR c++/71214
2330 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.
2331
f9d8d994
TS
23322016-06-29 Thomas Schwinge <thomas@codesourcery.com>
2333
2334 * c-pragma.h (enum pragma_kind): Rename
2335 PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE. Adjust all
2336 users.
2337
4aa83879
RB
23382016-06-29 Richard Biener <rguenther@suse.de>
2339
2340 PR middle-end/71002
2341 * c-common.c (c_common_get_alias_set): Remove union type punning case.
2342
a25bd9e6
JM
23432016-06-24 Jason Merrill <jason@redhat.com>
2344
2345 P0145R2: Refining Expression Order for C++.
2346 * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of
2347 MODIFY_EXPR.
2348
a86451b9
JJ
23492016-06-24 Jakub Jelinek <jakub@redhat.com>
2350
2351 * c-common.c (check_builtin_function_arguments): Require last
2352 argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type.
2353 Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW
2354 if the last argument is pointer to enumerated or boolean type.
2355
1a4f11c8
DM
23562016-06-22 David Malcolm <dmalcolm@redhat.com>
2357
2358 PR c/70339
2359 * c-common.h (enum lookup_name_fuzzy_kind): New enum.
2360 (lookup_name_fuzzy): New prototype.
2361
fe55692c
JDA
23622016-06-21 John David Anglin <danglin@gcc.gnu.org>
2363
2364 * c-common.c (get_source_date_epoch): Use int64_t instead of long long.
2365
4eb24e01
JM
23662016-06-14 Jason Merrill <jason@redhat.com>
2367
2368 P0145R2: Refining Expression Order for C++.
2369 * c.opt (fargs-in-order): New.
2370 * c-opts.c (c_common_post_options): Adjust flag_args_in_order.
2371
ef7cf206
JJ
23722016-06-13 Jakub Jelinek <jakub@redhat.com>
2373
0dda258b
JJ
2374 PR sanitizer/71498
2375 * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
2376 all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.
2377
ef7cf206
JJ
2378 PR preprocessor/71183
2379 * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch
2380 to cb_get_source_date_epoch.
2381
50b15873
JJ
23822016-06-10 Jakub Jelinek <jakub@redhat.com>
2383
2384 PR c/68657
2385 * c.opt (Wpsabi): Add Warning flag.
2386
4d926e34
MS
23872016-06-10 Martin Sebor <msebor@redhat.com>
2388
2389 PR c/71392
14ec014e 2390 * c-common.c (handle_nonnull_attribute): Accept
4d926e34
MS
2391 the nonnull attribute in type-generic builtins.
2392
e01b4e16
MS
23932016-06-09 Martin Sebor <msebor@redhat.com>
2394
2395 PR c/70883
2396 * c-common.c (builtin_function_validate_nargs): Make text of error
2397 message consistent with others like it.
2398
44a845ca
MS
23992016-06-08 Martin Sebor <msebor@redhat.com>
2400 Jakub Jelinek <jakub@redhat.com>
2401
2402 PR c++/70507
2403 PR c/68120
2404 * c-common.c (check_builtin_function_arguments): Handle
2405 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
2406
a80a7051
RB
24072016-06-08 Richard Biener <rguenther@suse.de>
2408
2409 * c-common.c (parse_optimize_options): Improve diagnostic messages.
2410
bfd67b47
RB
24112016-06-07 Richard Biener <rguenther@suse.de>
2412
2413 PR c/61564
2414 * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION
2415 options and warn about others.
2416
15c98b2e
ES
24172016-06-01 Eduard Sanou <dhole@openmailbox.org>
2418
2419 * c-common.c (get_source_date_epoch): Rename to
2420 cb_get_source_date_epoch.
2421 * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
2422 message when the parsing fails. Use error_at instead of fatal_error.
2423 * c-common.h (get_source_date_epoch): Rename to
2424 cb_get_source_date_epoch.
2425 * c-common.h (cb_get_source_date_epoch): Prototype.
2426 * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
2427 * c-common.h (c_omp_region_type): Remove trailing comma.
2428 * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
2429 * c-lex.c (c_lex_with_flags): Remove initialization of
2430 pfile->source_date_epoch.
2431
00631022
JJ
24322016-05-30 Jakub Jelinek <jakub@redhat.com>
2433
2434 PR c++/71349
2435 * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
2436 C_OMP_CLAUSE_SPLIT_TARGET. Put OMP_CLAUSE_NOWAIT to
2437 C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
2438 instead of C_OMP_CLAUSE_SPLIT_FOR.
2439
f17a223d
RB
24402016-05-24 Richard Biener <rguenther@suse.de>
2441
2442 PR middle-end/70434
2443 PR c/69504
2444 * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
2445 (convert_vector_to_array_for_subscript): ... this.
2446 * c-common.c (convert_vector_to_pointer_for_subscript): Use a
2447 VIEW_CONVERT_EXPR to an array type. Rename to ...
2448 (convert_vector_to_array_for_subscript): ... this.
2449
4f2e1536
MP
24502016-05-12 Marek Polacek <polacek@redhat.com>
2451
2452 PR c/70756
2453 * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
2454 size_in_bytes and pass LOC to it.
2455
d6e83a8d
MM
24562016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
2457
2458 PR c/43651
2459 * c.opt (Wduplicate-decl-specifier): New option.
2460
5c3a10fb
MP
24612016-05-11 Marek Polacek <polacek@redhat.com>
2462
2463 PR c++/71024
2464 * c-common.c (diagnose_mismatched_attributes): New function.
2465 * c-common.h (diagnose_mismatched_attributes): Declare.
2466
deef7113
MP
24672016-05-04 Marek Polacek <polacek@redhat.com>
2468
2469 * c.opt (Wdangling-else): New option.
2470
79ce98bc
MP
24712016-05-03 Marek Polacek <polacek@redhat.com>
2472
2473 PR c/70859
2474 * c-common.c (builtin_function_validate_nargs): Add location
2475 parameter. Use it.
2476 (check_builtin_function_arguments): Add location and arguments
2477 parameters. Use them.
2478 * c-common.h (check_builtin_function_arguments): Update declaration.
2479
381cdae4
RB
24802016-05-03 Richard Biener <rguenther@suse.de>
2481
2482 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
2483 allow call args to gimplify to SSA names.
2484
1d793c34
MP
24852016-05-03 Marek Polacek <polacek@redhat.com>
2486
2487 * c-common.h (enum c_omp_region_type): Remove stray comma.
2488
77886428
CP
24892016-05-02 Cesar Philippidis <cesar@codesourcery.com>
2490
2491 * c-common.h (enum c_omp_region_type): Define.
2492
697e0b28
RS
24932016-05-02 Richard Sandiford <richard.sandiford@arm.com>
2494
2495 * c-common.c (shorten_compare): Use wi::to_wide.
2496
e7ff0319
CP
24972016-04-29 Cesar Philippidis <cesar@codesourcery.com>
2498
2499 PR middle-end/70626
2500 * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
2501 * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
2502 reduction clauses in acc parallel loops.
2503
2fff3db8
MP
25042016-04-29 Marek Polacek <polacek@redhat.com>
2505
2506 PR c/70852
2507 * c-common.c (warn_for_memset): Check domain before accessing it.
2508
509063eb
DV
25092016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
2510
2511 PR/69089
2512 * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
2513 "aligned" attribute.
2514
b632761d
JM
25152016-04-28 Jason Merrill <jason@redhat.com>
2516
2517 * c-lex.c (c_common_has_attribute): Handle nodiscard.
2518
174f6622
ES
25192016-04-28 Eduard Sanou <dhole@openmailbox.org>
2520 Matthias Klose <doko@debian.org>
2521
2522 * c-common.c (get_source_date_epoch): New function, gets the environment
7365279f 2523 variable SOURCE_DATE_EPOCH and parses it as long long with error
174f6622
ES
2524 handling.
2525 * c-common.h (get_source_date_epoch): Prototype.
2526 * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
2527
6bc2bb18
RB
25282015-04-27 Ryan Burn <contact@rnburn.com>
2529
2530 PR c++/69024
2531 PR c++/68997
2532 * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
2533 (cilk_recognize_spawn): Renamed from recognize_spawn and change to
2534 external linkage.
2535 (cilk_detect_and_unwrap): Corresponding changes.
2536 (extract_free_variables): Don't extract free variables from
2537 AGGR_INIT_EXPR slot.
2538 * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
2539 (cilk_recognize_spawn): Likewise.
2540
c1e1f433
BS
25412016-04-27 Bernd Schmidt <bschmidt@redhat.com>
2542
2543 * c.opt (Wmemset-elt-size): New option.
2544 * c-common.c (warn_for_memset): New function.
2545 * c-common.h (warn_for_memset): Declare.
2546
d067e05f
JM
25472016-04-25 Jason Merrill <jason@redhat.com>
2548
2549 * c-common.c (handle_unused_attribute): Accept CONST_DECL.
2550 No longer static.
2551 * c-common.h: Declare it.
2552 * c-lex.c (c_common_has_attribute): Add maybe_unused.
2553
9aa36ae5
JM
25542016-04-22 Jason Merrill <jason@redhat.com>
2555
2556 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
2557
477d4906
IV
25582016-04-20 Ilya Verbin <ilya.verbin@intel.com>
2559
2560 PR c++/69363
2561 * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
2562 * c-common.h (c_finish_cilk_clauses): Remove declaration.
2563
fe37c7af
MM
25642016-04-18 Michael Matz <matz@suse.de>
2565
2566 * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
2567 and SET_DECL_ALIGN.
2568
23f2660f
EB
25692016-04-17 Eric Botcazou <ebotcazou@adacore.com>
2570
2571 * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
2572 (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
2573 to incomplete types.
2574 (dump_nested_type): Remove redundant tests and tidy up.
2575 (print_ada_declaration): Also set TREE_VISITED on the declaration of
2576 a type which is the typedef of an original type.
2577
1e77281b
MP
25782016-04-15 Marek Polacek <polacek@redhat.com>
2579
2580 PR c/70651
2581 * c-common.c (build_va_arg): Change two asserts into errors and return
2582 error_mark_node.
2583
b3a77f21
MP
25842016-04-13 Marek Polacek <polacek@redhat.com>
2585
2586 PR c++/70639
2587 * c-indentation.c (should_warn_for_misleading_indentation): Bail out
2588 for switch statements, too.
2589
322b8466
JM
25902016-03-28 Jason Merrill <jason@redhat.com>
2591
2592 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
2593
fbdb6baf
MP
25942016-03-23 Marek Polacek <polacek@redhat.com>
2595
2596 PR c++/69884
2597 * c.opt (Wignored-attributes): New option.
2598
5c240f4d
DM
25992016-03-22 David Malcolm <dmalcolm@redhat.com>
2600
2601 PR c/69993
2602 * c-indentation.c (warn_for_misleading_indentation): Rewrite the
2603 diagnostic text, reversing the order of the warning and note so
2604 that they appear in source order.
2605
14ba7b28
MP
26062016-03-17 Marek Polacek <polacek@redhat.com>
2607
2608 PR c/69407
2609 * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
2610 operations.
2611
08a1cadc
JM
26122016-03-14 Jason Merrill <jason@redhat.com>
2613
2aaeea19
JM
2614 * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
2615
08a1cadc
JM
2616 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
2617
c06d25bb
RB
26182016-03-09 Richard Biener <rguenther@suse.de>
2619
2620 PR c/70143
2621 * c-common.c (strict_aliasing_warning): Add back
2622 alias_sets_conflict_p check.
2623
80aac5c8
JM
26242016-03-08 Jason Merrill <jason@redhat.com>
2625
2626 * c-opts.c (set_std_cxx1z): Don't enable concepts.
2627
64b23c13
DM
26282016-03-04 David Malcolm <dmalcolm@redhat.com>
2629
2630 PR c/68187
2631 * c-indentation.c (get_visual_column): Move code to determine next
2632 tab stop to...
2633 (next_tab_stop): ...this new function.
2634 (line_contains_hash_if): Delete function.
2635 (detect_preprocessor_logic): Delete function.
2636 (get_first_nws_vis_column): New function.
2637 (detect_intervening_unindent): New function.
2638 (should_warn_for_misleading_indentation): Replace call to
2639 detect_preprocessor_logic with a call to
2640 detect_intervening_unindent.
2641
729526f5
DM
26422016-03-04 David Malcolm <dmalcolm@redhat.com>
2643
2644 PR c/68187
2645 * c-indentation.c (should_warn_for_misleading_indentation): When
2646 suppressing warnings about cases where the guard and body are on
2647 the same column, only use the first non-whitespace column in place
2648 of the guard token column when dealing with "else" clauses.
2649 When rejecting aligned BODY and NEXT, loosen the requirement
2650 from equality with the first non-whitespace of guard to simply
2651 that they not be indented relative to it.
2652
e9a35493
RB
26532016-03-04 Richard Biener <rguenther@suse.de>
2654
2655 PR c++/70054
2656 * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
2657 instead of alias_sets_conflict_p.
2658
1be56bc5
MP
26592016-03-01 Marek Polacek <polacek@redhat.com>
2660
2661 PR c++/69795
2662 * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
2663 any DECL.
2664
35886f0b
MS
26652016-02-22 Martin Sebor <msebor@redhat.com>
2666
2667 PR middle-end/69780
2668 * c-common.c (check_builtin_function_arguments): Validate and
2669 reject invalid arguments to __builtin_alloca_with_align.
2670
4246c8da
MW
26712016-02-20 Mark Wielaard <mjw@redhat.com>
2672
2673 PR c/28901
2674 * c.opt (Wunused-const-variable): Turn into Alias for...
2675 (Wunused-const-variable=): New option.
2676
268be88c
BE
26772016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
2678
2679 PR c++/69865
2680 * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
2681 here...
2682 (c_common_init_options): ...to here.
2683 (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
2684
871b3f47
JJ
26852016-02-19 Jakub Jelinek <jakub@redhat.com>
2686
2687 PR c++/69826
2688 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
2689 (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
2690 flag_preprocess_only.
2691
bf14eba2
JJ
26922016-02-16 Jakub Jelinek <jakub@redhat.com>
2693
2694 PR c/69835
2695 * c.opt (Wnonnull-compare): Enable for -Wall.
2696
ba6b3795
JJ
26972016-02-15 Jakub Jelinek <jakub@redhat.com>
2698
2699 PR c++/69797
2700 * c-common.c (sync_resolve_size): Diagnose too few arguments
2701 even when params is non-NULL empty vector.
2702
a011cd92
BS
27032016-02-08 Bernd Schmidt <bschmidt@redhat.com>
2704
2705 PR target/60410
2706 * c.opt (fshort-double): Remove.
2707
46cb9332
MS
27082016-02-05 Martin Sebor <msebor@redhat.com>
2709
2710 PR c++/69662
2711 * c.opt (Warning options): Update -Wplacement-new to take
2712 an optional argument.
2713
e1b81f2b
JJ
27142016-02-01 Jakub Jelinek <jakub@redhat.com>
2715
2716 PR preprocessor/69543
2717 PR c/69558
2718 * c-pragma.c (handle_pragma_diagnostic): Pass input_location
2719 instead of loc to control_warning_option.
2720
b6adbb9f
NS
27212016-02-01 Nathan Sidwell <nathan@codesourcery.com>
2722
2723 * c.opt (fopenacc-dim=): New option.
2724
5d70666e
RB
27252016-01-27 Ryan Burn <contact@rnburn.com>
2726
2727 PR cilkplus/69267
2728 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
2729 gimplify_arg. Removed superfluous post_p argument.
2730 * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
2731 superfluous post_p argument.
2732 * c-gimplify.c (c_gimplify_expr): Likewise.
2733
01e1dea3
DM
27342016-01-26 David Malcolm <dmalcolm@redhat.com>
2735
2736 PR other/69006
2737 * c-opts.c (c_diagnostic_finalizer): Replace invocation of
2738 pp_newline_and_flush with pp_flush.
2739
9f04a53e
MS
27402016-01-20 Martin Sebor <msebor@redhat.com>
2741
2742 PR c/69405
2743 * c-common.c (sync_resolve_size): Avoid printing diagnostic about
2744 an incompatible argument when the argument isn't a valid tree node.
2745
7f26f7df
JM
27462016-01-18 Jason Merrill <jason@redhat.com>
2747
2748 PR c++/68767
2749 * c-common.c (check_function_arguments_recurse): Fold the whole
2750 COND_EXPR, not just the condition.
2751
f62bf092
TV
27522016-01-18 Tom de Vries <tom@codesourcery.com>
2753
2754 * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
2755 classify as loop clause.
2756
e0a575ff
JJ
27572016-01-15 Jakub Jelinek <jakub@redhat.com>
2758
2759 PR bootstrap/68271
2760 * c-pragma.c (c_register_pragma_1): Adjust comment to note that
2761 C++ FE no longer has limit on number of pragmas.
2762
27632015-01-14 Ryan Burn <contact@rnburn.com>
b6e3db06
RB
2764
2765 PR c++/69048
2766 * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
c47eaca6 2767 to add missing cleanup point.
b6e3db06 2768
c7df95d8
DM
27692016-01-14 David Malcolm <dmalcolm@redhat.com>
2770
2771 PR c++/68819
2772 * c-indentation.c (get_visual_column): Add location_t param.
2773 Handle the column number being zero by effectively disabling the
2774 warning, with an "inform".
2775 (should_warn_for_misleading_indentation): Add location_t argument
2776 for all uses of get_visual_column.
2777
21efdd80
PP
27782016-01-10 Patrick Palka <ppalka@gcc.gnu.org>
2779
2780 PR c++/69029
2781 * c-indentation.c (should_warn_for_misleading_indentation):
2782 Don't warn about do-while statements.
2783
7a127fa7
MS
27842016-01-07 Martin Sebor <msebor@redhat.com>
2785
2786 PR c/68966
2787 * c-common.c (sync_resolve_size): Reject first argument when it's
2788 a pointer to _Bool.
2789
c589e975
DM
27902016-01-05 David Malcolm <dmalcolm@redhat.com>
2791
2792 PR c/69122
2793 * c-indentation.c (get_visual_column): Remove default argument.
2794 (should_warn_for_misleading_indentation): For the multiline case,
2795 update call to get_visual_column for next_stmt_exploc so that it
2796 captures the location of the first non-whitespace character in the
2797 relevant line. Don't issue warnings if there is non-whitespace
2798 before the next statement.
2799
818ab71a
JJ
28002016-01-04 Jakub Jelinek <jakub@redhat.com>
2801
2802 Update copyright years.
2803
745e411d
DM
28042015-12-21 David Malcolm <dmalcolm@redhat.com>
2805
2806 * c-common.c (binary_op_error): Convert first param from
2807 location_t to rich_location * and use it when emitting an error.
2808 * c-common.h (binary_op_error): Convert first param from
2809 location_t to rich_location *.
2810
de67c4c3
DM
28112015-12-16 David Malcolm <dmalcolm@redhat.com>
2812
2813 * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
2814 * c-lex.c (conflict_marker_get_final_tok_kind): New function.
2815
4a38b02b
IV
28162015-12-15 Ilya Verbin <ilya.verbin@intel.com>
2817
2818 * c-common.c (c_common_attribute_table): Handle "omp declare target
2819 link" attribute.
2820
54d62f51
JJ
28212015-12-14 Jakub Jelinek <jakub@redhat.com>
2822
2823 PR c/68833
2824 * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
2825
8d4227c8
TB
28262014-12-12 Tobias Burnus <burnus@net-b.de>
2827
2828 PR fortran/68815
2829 * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
2830 specifiers (%d, %i,%u and %c).
2831
f6069ccc
DM
28322015-12-10 David Malcolm <dmalcolm@redhat.com>
2833
2834 * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
2835
63bbf46d
JJ
28362015-12-08 Jakub Jelinek <jakub@redhat.com>
2837
2838 PR c/48088
2839 PR c/68657
2840 * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
2841 * c-pragma.c (handle_pragma_diagnostic): Adjust
2842 control_warning_option caller.
2843
f79520bb
DM
28442015-12-07 David Malcolm <dmalcolm@redhat.com>
2845
2846 * c-common.c (c_cpp_error): Update for change to
2847 rich_location::set_range.
2848
b3d5bc62
JJ
28492015-12-04 Paolo Bonzini <bonzini@gnu.org>
2850
2851 * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
2852 shifting 1 out of the sign bit.
2853
28542015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
2855
2856 * c-common.c (c_common_attribute_table[]): Update max arguments
2857 count for "simd" attribute.
2858 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
2859
6eb4a537
JJ
28602015-12-03 Jakub Jelinek <jakub@redhat.com>
2861
2862 PR preprocessor/57580
2863 * c-ppoutput.c (print): Change printed field to bool.
2864 Move src_file last for smaller padding.
2865 (init_pp_output): Set print.printed to false instead of 0.
2866 (scan_translation_unit): Fix up formatting. Set print.printed
2867 to true after printing something other than newline.
2868 (scan_translation_unit_trad): Set print.printed to true instead of 1.
2869 (maybe_print_line_1): Set print.printed to false instead of 0.
2870 (print_line_1): Likewise.
2871 (do_line_change): Set print.printed to true instead of 1.
2872 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
2873 dump_macro): Set print.printed to false after printing newline.
2874
4250754e
JM
28752015-12-02 Jason Merrill <jason@redhat.com>
2876
f479b43d
JM
2877 * c-common.c (fold_for_warn): New.
2878 (warn_logical_operator, warn_tautological_cmp)
2879 (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
2880
4250754e
JM
2881 * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
2882 (c_fully_fold_internal, decl_constant_value_for_optimization):
2883 Move to c/c-fold.c.
2884 * c-common.h: Don't declare decl_constant_value_for_optimization.
2885
e9e32ee6
JM
28862015-12-02 Joseph Myers <joseph@codesourcery.com>
2887
2888 PR c/68162
2889 * c-common.h (c_build_qualified_type): Add extra default
2890 arguments.
2891
37d5ad46
JB
28922015-12-01 Julian Brown <julian@codesourcery.com>
2893 Cesar Philippidis <cesar@codesourcery.com>
2894 James Norris <James_Norris@mentor.com>
2895
2896 * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
2897 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
2898 (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
2899
f07862c7
EB
29002015-11-30 Eric Botcazou <ebotcazou@adacore.com>
2901
2902 * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
2903 (decl_sloc_common): Delete and move bulk of processing to...
2904 (decl_sloc): ...here.
2905 (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
2906 (dump_ada_double_name): Remove S parameter and compute the suffix.
2907 (dump_ada_array_type): Add PARENT parameter. Simplify computation of
2908 element type and deal with an anonymous one.
2909 (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
2910 (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type
2911 and remove reference to QUAL_UNION_TYPE.
2912 (dump_nested_types): Make 2 passes on the fields and move bulk to...
2913 (dump_nested_type): ...here. New function extracted from above.
2914 Generate a full declaration for anonymous element type of arrays.
2915 (print_ada_declaration): Really skip anonymous declarations. Remove
2916 references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type.
2917 Clean up processing of declarations of array types and objects.
2918 (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
2919 Remove obsolete code and tidy up.
2920
75c8aac3
JH
29212015-11-29 Jan Hubicka <hubicka@ucw.cz>
2922
2923 PR c/67581
2924 * c-common.c (handle_transparent_union_attribute): Update
2925 also type variants.
2926
b58d3df2
ML
29272015-11-27 Martin Liska <mliska@suse.cz>
2928
2929 PR c++/68312
2930 * array-notation-common.c (cilkplus_extract_an_triplets):
2931 Release vector of vectors.
2932 * cilk.c (gimplify_cilk_spawn): Free allocated memory.
2933
89a01fcf
EB
29342015-11-26 Eric Botcazou <ebotcazou@adacore.com>
2935
2936 PR c++/68527
2937 * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
2938 (print_ada_struct_decl): Likewise.
2939
cc5c5226
IZ
29402015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
2941
2942 PR c++/68001
2943 * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
2944 * cilk.c (recognize_spawn): Determine location in a more precise
2945 way.
2946
269adb9d
JM
29472015-11-19 Jason Merrill <jason@redhat.com>
2948
2949 * c-common.c (shorten_compare): But look through macros from
2950 system headers.
2951
d0eccfcd
JM
29522015-11-18 Jason Merrill <jason@redhat.com>
2953
2954 * c-common.c (shorten_compare): Don't -Wtype-limits if the
2955 non-constant operand comes from a macro.
2956
3e44547c
JM
29572015-11-17 Jason Merrill <jason@redhat.com>
2958
2959 PR bootstrap/68346
2960 * c-common.c (warn_tautological_cmp): Fold before checking for
2961 constants.
2962
0f62c7a0
MP
29632015-11-16 Marek Polacek <polacek@redhat.com>
2964
2965 PR c++/68362
2966 * c-common.c (check_case_bounds): Fold low and high cases.
2967
a868811e
MP
29682015-11-16 Marek Polacek <polacek@redhat.com>
2969
2970 * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
2971 * c-common.c (c_common_get_alias_set): Likewise.
2972 (handle_visibility_attribute): Likewise.
2973
fff77217
KY
29742015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
2975
2976 * c-common.c (handle_simd_attribute): New.
2977 (struct attribute_spec): Add entry for "simd".
2978 (handle_simd_attribute): New.
2979
269e63b7
KT
29802015-11-13 Kai Tietz <ktietz70@googlemail.com>
2981
2982 * c-lex.c (interpret_float): Use fold_convert.
2983
ebedc9a3
DM
29842015-11-13 David Malcolm <dmalcolm@redhat.com>
2985
2986 * c-common.c (c_fully_fold_internal): Capture existing souce_range,
2987 and store it on the result.
2988 * c-opts.c (c_common_init_options): Set
2989 global_dc->colorize_source_p.
2990
6e232ba4
JN
29912015-11-12 James Norris <jnorris@codesourcery.com>
2992 Joseph Myers <joseph@codesourcery.com>
2993
7365279f 2994 * c-pragma.c (oacc_pragmas): Add entry for declare directive.
6e232ba4
JN
2995 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
2996 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
2997 PRAGMA_OACC_CLAUSE_LINK.
2998
e78bede6
MP
29992015-11-11 Marek Polacek <polacek@redhat.com>
3000
3001 PR c/68107
3002 PR c++/68266
3003 * c-common.c (valid_array_size_p): New function.
3004 * c-common.h (valid_array_size_p): Declare.
3005
3f8257db 30062015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
4ac93c7c
DH
3007
3008 PR bootstrap/68271
3009 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
3010
69f293c9
AM
30112015-11-11 Andrew MacLeod <amacleod@redhat.com>
3012
3013 * array-notation-common.c: Remove unused header files.
3014 * c-ada-spec.c: Likewise.
3015 * c-cilkplus.c: Likewise.
3016 * c-common.c: Likewise.
3017 * c-cppbuiltin.c: Likewise.
3018 * c-dump.c: Likewise.
3019 * c-format.c: Likewise.
3020 * c-gimplify.c: Likewise.
3021 * c-indentation.c: Likewise.
3022 * c-lex.c: Likewise.
3023 * c-omp.c: Likewise.
3024 * c-opts.c: Likewise.
3025 * c-pch.c: Likewise.
3026 * c-ppoutput.c: Likewise.
3027 * c-pragma.c: Likewise.
3028 * c-pretty-print.c: Likewise.
3029 * c-semantics.c: Likewise.
3030 * c-ubsan.c: Likewise.
3031 * cilk.c: Likewise.
3032 * stub-objc.c: Likewise.
3033
3a40d81d
NS
30342015-11-09 Thomas Schwinge <thomas@codesourcery.com>
3035 Cesar Philippidis <cesar@codesourcery.com>
3036 James Norris <jnorris@codesourcery.com>
3037 Julian Brown <julian@codesourcery.com>
3038 Nathan Sidwell <nathan@codesourcery.com>
3039
3040 * c-pragma.c (oacc_pragmas): Add "routine".
3041 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
3042
ee45a32d
EB
30432015-11-08 Eric Botcazou <ebotcazou@adacore.com>
3044
3045 * c-common.c (c_common_attributes): Add scalar_storage_order.
3046 (handle_scalar_storage_order_attribute): New function.
3047 * c-pragma.c (global_sso): New variable.
3048 (maybe_apply_pragma_scalar_storage_order): New function.
3049 (handle_pragma_scalar_storage_order): Likewise.
3050 (init_pragma): Register scalar_storage_order.
3051 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
3052 * c.opt (Wscalar-storage-order): New warning.
3053 (fsso-struct=): New option.
3054
eb11eb15
MS
30552015-11-08 Martin Sebor <msebor@redhat.com>
3056
3057 * c.opt (Wplacement-new): Add a period to the end of a sentence.
3058
0aad0198
RS
30592015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3060
3061 * c-common.c: Don't undef DEF_BUILTIN.
3062
8a645150
DM
30632015-11-06 David Malcolm <dmalcolm@redhat.com>
3064
3065 * c-common.c (c_cpp_error): Convert parameter from location_t to
3066 rich_location *. Eliminate the "column_override" parameter and
3067 the call to diagnostic_override_column.
3068 Update the "done_lexing" clause to set range 0
3069 on the rich_location, rather than overwriting a location_t.
3070 * c-common.h (c_cpp_error): Convert parameter from location_t to
3071 rich_location *. Eliminate the "column_override" parameter.
3072
7a5e4956
CP
30732015-11-05 Cesar Philippidis <cesar@codesourcery.com>
3074 Thomas Schwinge <thomas@codesourcery.com>
3075 James Norris <jnorris@codesourcery.com>
3076
3077 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
3078 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
3079 clauses with parallel and kernels and loops.
3080 * c-pragma.h (enum pragma_omp_clause): Add entries for
3081 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
3082 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
3083 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
3084 INDEPENDENT,SEQ}.
3085 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
3086
e2f5cc96
MS
30872015-11-05 Martin Sebor <msebor@redhat.com>
3088
3089 PR c++/67942
3090 * c.opt (-Wplacement-new): New option.
3091
e01d41e5
JJ
30922015-11-05 Jakub Jelinek <jakub@redhat.com>
3093
3094 * c-common.h (c_finish_omp_atomic): Add TEST argument.
3095 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
3096 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
3097 save_expr or create_tmp_var* if TEST is true.
3098 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
3099 Don't call add_stmt here.
3100 (struct c_omp_check_loop_iv_data): New type.
3101 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
3102 c_omp_check_loop_iv_exprs): New functions.
3103 (c_omp_split_clauses): Adjust for lastprivate being allowed on
3104 distribute.
3105 (c_omp_declare_simd_clauses_to_numbers): Change
3106 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
3107 (c_omp_declare_simd_clauses_to_decls): Similarly change those
3108 from numbers to PARM_DECLs.
3109
595278be
MM
31102015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
3111
3112 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
3113 flag_checking.
3114
3f8257db 31152015-11-03 Bernd Schmidt <bschmidt@redhat.com>
c85158de
MS
3116
3117 PR c++-common/67882
b3d5bc62
JJ
3118 * c-common.h (fold_offsetof_1): Add argument.
3119 * c-common.c (fold_offsetof_1): Diagnose more invalid
c85158de
MS
3120 offsetof expressions that reference elements past the end of
3121 an array.
3122
4bf9e5a8
TS
31232015-11-03 Thomas Schwinge <thomas@codesourcery.com>
3124 Chung-Lin Tang <cltang@codesourcery.com>
3125
3126 * c-pragma.c (oacc_pragmas): Add "atomic".
3127 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
3128
3b1661a9
ES
31292015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
3130
3131 * c-common.c (handle_target_clones_attribute): New.
3132 (c_common_attribute_table): Add handle_target_clones_attribute.
3133 (handle_always_inline_attribute): Add check on target_clones attribute.
3134 (handle_target_attribute): Ditto.
3135
2adfab87
AM
31362015-10-29 Andrew MacLeod <amacleod@redhat.com>
3137
3138 * array-notation-common.c: Reorder #include's and remove duplicates.
3139 * c-ada-spec.c: Likewise.
3140 * c-cilkplus.c: Likewise.
3141 * c-common.c: Likewise.
3142 * c-cppbuiltin.c: Likewise.
3143 * c-dump.c: Likewise.
3144 * c-format.c: Likewise.
3145 * c-gimplify.c: Likewise.
3146 * c-indentation.c: Likewise.
3147 * c-lex.c: Likewise.
3148 * c-omp.c: Likewise.
3149 * c-opts.c: Likewise.
3150 * c-pch.c: Likewise.
3151 * c-ppoutput.c: Likewise.
3152 * c-pragma.c: Likewise.
3153 * c-pretty-print.c: Likewise.
3154 * c-semantics.c: Likewise.
3155 * c-ubsan.c: Likewise.
3156 * cilk.c: Likewise.
3157 * stub-objc.c: Likewise.
3158
d90ec4f2
JM
31592015-10-28 Jason Merrill <jason@redhat.com>
3160
3161 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
3162
88bae6f4
TS
31632015-10-27 Thomas Schwinge <thomas@codesourcery.com>
3164 James Norris <jnorris@codesourcery.com>
3165 Cesar Philippidis <cesar@codesourcery.com>
3166
3167 PR c/64765
3168 PR c/64880
3169 * c-common.h (c_oacc_split_loop_clauses): Declare function.
3170 * c-omp.c (c_oacc_split_loop_clauses): New function.
3171
b1726d6c
MS
31722015-10-21 Martin Sebor <msebor@redhat.com>
3173
3174 PR driver/68043
3175 * c.opt: End each sentence that describes an option with a period.
3176
fa60eeb9
MP
31772015-10-20 Marek Polacek <polacek@redhat.com>
3178
3179 * array-notation-common.c (is_cilkplus_vector_p): Define.
3180 * c-common.h (is_cilkplus_vector_p): Declare.
3181
95979049
MP
31822015-10-20 Marek Polacek <polacek@redhat.com>
3183
3184 * c.opt (std=gnu++11): Do not describe as experimental.
3185 (std=gnu++14): Likewise.
3186
2a9fb712
JM
31872015-10-19 Jason Merrill <jason@redhat.com>
3188
3189 * c-cppbuiltin.c (c_cpp_builtins): Define
3190 __cpp_nontype_template_args.
3191
13b380a3
JM
31922015-10-19 Jason Merrill <jason@redhat.com>
3193
3194 * c-cppbuiltin.c (c_cpp_builtins): Define
3195 __cpp_enumerator_attributes, __cpp_fold_expressions,
3196 __cpp_unicode_characters.
3197
d9a6bd32
JJ
31982015-10-13 Jakub Jelinek <jakub@redhat.com>
3199 Aldy Hernandez <aldyh@redhat.com>
3200
3201 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
3202 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
3203 (c_define_builtins): Likewise.
3204 * c-common.h (enum c_omp_clause_split): Add
3205 C_OMP_CLAUSE_SPLIT_TASKLOOP.
3206 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
3207 (c_finish_omp_for): Add ORIG_DECLV argument.
3208 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
3209 201511 instead of 201307.
3210 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
3211 OMP_CRITICAL_CLAUSES to it.
3212 (c_finish_omp_ordered): Add CLAUSES argument, set
3213 OMP_ORDERED_CLAUSES to it.
3214 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
3215 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
3216 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
3217 constructs and new OpenMP 4.5 clauses. Clear
3218 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
3219 verification code.
3220 * c-pragma.c (omp_pragmas_simd): Add taskloop.
3221 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
3222 (enum pragma_omp_clause): Add
3223 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
3224 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
3225
624d31fe
RS
32262015-10-05 Richard Sandiford <richard.sandiford@arm.com>
3227
3228 * c-lex.c (interpret_float): Use real_equal instead of
3229 REAL_VALUES_EQUAL.
3230
b8fd7909
JM
32312015-10-04 Jason Merrill <jason@redhat.com>
3232
3233 Implement N4514, C++ Extensions for Transactional Memory.
3234 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
3235 (c_common_attribute_table): Add transaction_safe_dynamic.
3236 transaction_safe now affects type identity.
3237 (handle_tm_attribute): Handle transaction_safe_dynamic.
3238 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
3239 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
3240 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
3241 (D_TRANSMEM): New.
3242 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
3243 * c-pretty-print.c (pp_c_attributes_display): Don't print
3244 transaction_safe in C++.
3245
12651878
MP
32462015-10-02 Marek Polacek <polacek@redhat.com>
3247
3248 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
3249
3e3b8d63
MP
32502015-10-02 Marek Polacek <polacek@redhat.com>
3251
3252 PR c/64249
3253 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
3254 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
3255 * c.opt (Wduplicated-cond): New option.
3256
0d1a8f75
JM
32572015-10-01 Joseph Myers <joseph@codesourcery.com>
3258
3259 * c.opt (std=c11): Do not describe as experimental.
3260 (std=gnu11): Likewise.
3261 (std=iso9899:2011): Likewise.
3262
3e32ee19
NS
32632015-09-28 Nathan Sidwell <nathan@codesourcery.com>
3264
3265 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
3266 (DEF_FUNCTION_TYPE_VAR_11): Delete.
3267
974348ee
MP
32682015-09-25 Marek Polacek <polacek@redhat.com>
3269
3270 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
3271 (ubsan_instrument_shift): Likewise.
3272
15dbc1a6
MP
32732015-09-25 Marek Polacek <polacek@redhat.com>
3274
3275 PR sanitizer/64906
3276 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
3277
6b95d7cc
PP
32782015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
3279
3280 * c-indentation.c (should_warn_for_misleading_indentation):
3281 Compare next_stmt_vis_column with guard_line_first_nws instead
3282 of with guard_line_vis_column.
3283
c1822f9c
MLI
32842015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
3285
3286 PR c/49654
3287 PR c/49655
3288 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
3289 options and options not valid for the current language.
3290
d5398058
PP
32912015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
3292
3293 * c-indentation.c (should_warn_for_misleading_indentation):
3294 Float out and consolidate the calls to get_visual_column that
3295 are passed guard_exploc as an argument. Compare
3296 next_stmt_vis_column with guard_line_first_nws instead of with
3297 body_line_first_nws.
3298
6b333269
NS
32992015-09-22 Nathan Sidwell <nathan@codesourcery.com>
3300
3301 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
3302 Wnamespaces): New C++ warnings.
3303
a75f1574
JM
33042015-09-22 Jason Merrill <jason@redhat.com>
3305
3306 * c-common.h (abi_compat_version_crosses): New.
3307 (warn_abi_version): Declare.
3308 * c-common.c: Define it.
3309 * c-opts.c (c_common_post_options): Handle it.
3310 flag_abi_compat_version defaults to 8.
3311
bdaaa8b7
VV
33122015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
3313
3314 Complete the implementation of N4230, Nested namespace definition.
3315 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
3316 __cpp_nested_namespace_definitions.
3317
eaa797e8
MLI
33182015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
3319
3320 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
3321
c4914de6
MLI
33222015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
3323
3324 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
3325 when warning.
3326 * c-pragma.h (pragma_lex): Add optional loc argument.
3327
fcb87c50
MM
33282015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
3329
3330 * c-format.c (check_format_arg): Adjust to use common block size in all
3331 object pools.
3332
31bdd08a
DM
33332015-09-15 David Malcolm <dmalcolm@redhat.com>
3334
3335 * c-format.c (location_from_offset): Update for change in
3336 signature of location_get_source_line.
3337 * c-indentation.c (get_visual_column): Likewise.
3338 (line_contains_hash_if): Likewise.
3339
aa9f4b4c
MP
33402015-09-14 Marek Polacek <polacek@redhat.com>
3341
3342 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
3343 setting various warnings.
3344
aa256c4a
MP
33452015-09-14 Marek Polacek <polacek@redhat.com>
3346
3347 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
3348 a negative value.
3349
0f876f22
MW
33502015-09-11 Mark Wielaard <mjw@redhat.com>
3351
3352 PR c/28901
3353 * c.opt (Wunused-variable): Option from common.opt.
3354 (Wunused-const-variable): New option.
3355
273aa49e
PC
33562015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
3357
3358 PR c++/53184
3359 * c.opt ([Wsubobject-linkage]): Add.
3360
1807ffc1
MS
33612015-09-03 Martin Sebor <msebor@redhat.com>
3362
3363 PR c/66516
3364 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
3365 functions.
3366 * c-common.c (reject_gcc_builtin): Define.
3367
38942840
BI
33682015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
3369
3370 PR middle-end/60586
3371 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
3372 prototype.
3373 * c-gimplify.c (c_gimplify_expr): Added a call to the function
3374 cilk_gimplify_call_params_in_spawned_fn.
3375 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
3376 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
3377 unwrapping.
3378
c316b5e4
MP
33792015-08-25 Marek Polacek <polacek@redhat.com>
3380
3381 PR middle-end/67330
3382 * c-common.c (handle_weak_attribute): Don't check whether the
3383 visibility can be changed here.
3384
584a7c46
MLI
33852015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
3386
3387 * c-lex.c (c_lex_with_flags): Use explicit locations.
3388
a79683d5
TS
33892015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
3390
3391 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
3392 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
3393
61717a45
FXC
33942015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3395
3396 PR middle-end/36757
3397 * c-common.c (check_builtin_function_arguments): Add check
3398 for BUILT_IN_SIGNBIT argument.
3399
329524f5
PC
34002015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
3401
3402 PR c++/67160
3403 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
3404 in c++1z mode.
3405
4ee55665
MP
34062015-08-17 Marek Polacek <polacek@redhat.com>
3407
3408 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
3409 with whitespaces before qualifier names.
3410
b893e375
MP
34112015-08-12 Marek Polacek <polacek@redhat.com>
3412
3413 PR c++/55095
3414 * c-common.c (maybe_warn_shift_overflow): Properly handle
3415 left-shifting 1 into the sign bit.
3416
c2d89095
MLI
34172015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3418
3419 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
3420
971e17ff
AS
34212015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
3422 Braden Obrzut <admin@maniacsvault.net>
3423 Jason Merrill <jason@redhat.com>
3424
3425 Add C++ Concepts TS support.
3426 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
3427 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
3428 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
3429 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
3430 * c-opts.c (set_std_cxx1z): Set flag_concepts.
3431 * c.opt (fconcepts): New.
3432
b3d5bc62
JJ
34332015-08-02 Martin Sebor <msebor@redhat.com>
3434
3435 * c.opt (-Wframe-address): New warning option.
3436
8ebca419
PP
34372015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
3438
3439 * c-indentation.c (should_warn_for_misleading_indentation):
3440 Improve heuristics.
3441
1a1e101f
PP
34422015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
3443
3444 * c-indentation.c (get_visual_column): Add parameter first_nws,
3445 use it. Update comment documenting the function.
3446 (is_first_nonwhitespace_on_line): Remove.
3447 (should_warn_for_misleading_indentation): Replace usage of
3448 of is_first_nonwhitespace_on_line with get_visual_column.
3449
992118a1
PP
34502015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
3451
3452 * c-indentation.h (struct token_indent_info): Define.
3453 (get_token_indent_info): Define.
3454 (warn_for_misleading_information): Declare.
3455 * c-common.h (warn_for_misleading_information): Remove.
3456 * c-identation.c (warn_for_misleading_indentation):
3457 Change declaration to take three token_indent_infos. Adjust
3458 accordingly.
3459 * c-identation.c (should_warn_for_misleading_indentation):
3460 Likewise. Bail out early if the body is a compound statement.
3461 (guard_tinfo_to_string): Define.
3462
e8fa3817
JM
34632015-07-30 Jason Merrill <jason@redhat.com>
3464
3465 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
3466 '*' for reference decay.
3467
173864e8
MP
34682015-07-30 Marek Polacek <polacek@redhat.com>
3469
3470 * c-common.c (warn_tautological_cmp): Bail for float types.
3471
f2afe6dd
MP
34722015-07-27 Marek Polacek <polacek@redhat.com>
3473
3474 PR bootstrap/67030
3475 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
3476
05b28fd6
MP
34772015-07-27 Marek Polacek <polacek@redhat.com>
3478
3479 PR c++/66555
3480 PR c/54979
3481 * c-common.c (find_array_ref_with_const_idx_r): New function.
3482 (warn_tautological_cmp): New function.
3483 * c-common.h (warn_tautological_cmp): Declare.
3484 * c.opt (Wtautological-compare): New option.
3485
5a5062b8
MP
34862015-07-23 Marek Polacek <polacek@redhat.com>
3487
3488 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
3489 (ubsan_instrument_shift): Likewise.
3490
dc891fe7
MP
34912015-07-23 Marek Polacek <polacek@redhat.com>
3492
3493 PR sanitizer/66908
3494 * c-ubsan.c: Include gimplify.h.
3495 (ubsan_instrument_division): Unshare OP0 and OP1.
3496 (ubsan_instrument_shift): Likewise.
3497
451b5e48
MP
34982015-07-20 Marek Polacek <polacek@redhat.com>
3499 Richard Sandiford <richard.sandiford@arm.com>
3500
3501 PR c++/55095
3502 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
3503 Use EXPR_LOC_OR_LOC.
3504 (maybe_warn_shift_overflow): New function.
3505 * c-common.h (maybe_warn_shift_overflow): Declare.
3506 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
3507 * c.opt (Wshift-overflow): New option.
3508
fb0b2914
ML
35092015-07-16 Martin Liska <mliska@suse.cz>
3510
3511 * c-format.c (static void check_format_info_main): Use
3512 object_allocator instead of pool_allocator.
3513 (check_format_arg): Likewise.
3514 (check_format_info_main): Likewise.
3515
903f5c23
AM
35162015-07-15 Andrew MacLeod <amacleod@redhat.com>
3517
3518 * c-opts.c: Remove multiline #include comment.
3519
026c3cfd
AH
35202015-07-12 Aldy Hernandez <aldyh@redhat.com>
3521
3522 * c-common.c: Fix double word typos.
3523
bb49ee66
EB
35242015-07-10 Eric Botcazou <ebotcazou@adacore.com>
3525
3526 * c-ada-spec.h (cpp_operation): Revert latest change.
3527 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
3528 constructors and destructors.
3529
1916bcb5
AM
35302015-07-09 Andrew MacLeod <amacleod@redhat.com>
3531
3532 * c-common.h: Adjust includes for flags.h changes.
3533 * stub-objc.c: Likewise.
026c3cfd 3534
a9dcd529
EB
35352015-07-08 Eric Botcazou <ebotcazou@adacore.com>
3536
3537 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
3538 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
3539
b03b462f
JJ
35402015-07-08 Jakub Jelinek <jakub@redhat.com>
3541
3542 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
3543 are to be removed, return NULL rather than original clauses list.
3544
c7131fb2
AM
35452015-07-07 Andrew MacLeod <amacleod@redhat.com>
3546
3547 * array-notation-common.c: Adjust includes.
3548 * c-ada-spec.c: Likewise.
3549 * c-cilkplus.c: Likewise.
3550 * c-common.h: Likewise.
3551 * c-cppbuiltin.c: Likewise.
3552 * c-dump.c: Likewise.
3553 * c-format.c: Likewise.
3554 * c-gimplify.c: Likewise.
3555 * c-indentation.c: Likewise.
3556 * c-lex.c: Likewise.
3557 * c-omp.c: Likewise.
3558 * c-opts.c: Likewise.
3559 * c-pch.c: Likewise.
3560 * c-ppoutput.c: Likewise.
3561 * c-pragma.c: Likewise.
3562 * c-pretty-print.c: Likewise.
3563 * c-semantics.c: Likewise.
3564 * c-ubsan.c: Likewise.
3565 * cilk.c: Likewise.
3566 * stub-objc.c: Likewise.
3567
2a7fb83f
EB
35682015-07-07 Eric Botcazou <ebotcazou@adacore.com>
3569
3570 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
3571 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
3572
a03c9bf1
JM
35732015-07-01 Jason Merrill <jason@redhat.com>
3574
36a85135
JM
3575 * c-common.h (D_CXX11): Rename from D_CXX0X.
3576 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
3577 * c-common.c: Adjust.
3578
e7fa68d5
JM
3579 * c-opts.c (c_common_post_options): Default to C++14.
3580
a03c9bf1
JM
3581 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
3582
fe95b036
ESR
35832015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
3584
3585 Implement N4197 - Adding u8 character literals
b3d5bc62 3586 * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
a64be36b 3587 CPP_CHAR.
b3d5bc62 3588 * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
a64be36b 3589 CPP_UTF8CHAR_USERDEF tokens.
b3d5bc62 3590 * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
a64be36b
EB
3591 and CPP_UTF8CHAR tokens.
3592 (lex_charconst): Treat CPP_UTF8CHAR token.
fe95b036 3593
da2e71c9
MLI
35942015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3595
3596 PR fortran/66605
3597 * c-common.c (do_warn_unused_parameter): Move here.
3598 * c-common.h (do_warn_unused_parameter): Declare.
3599
b155cfd9
MP
36002015-06-29 Marek Polacek <polacek@redhat.com>
3601
3602 PR c/66322
3603 * c-common.c (check_case_bounds): Add bool * parameter. Set
3604 OUTSIDE_RANGE_P.
3605 (c_add_case_label): Add bool * parameter. Pass it down to
3606 check_case_bounds.
3607 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
3608 warning here.
3609 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
3610 declarations.
3611
31521951
MP
36122015-06-27 Marek Polacek <polacek@redhat.com>
3613
3614 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
3615 or VECTOR_INTEGER_TYPE_P throughout.
3616 * c-gimplify.c: Likewise.
3617
22d03525
MP
36182015-06-26 Marek Polacek <polacek@redhat.com>
3619
3620 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
3621 * c-common.c (c_fully_fold_internal): Likewise.
3622 (c_alignof_expr): Likewise.
3623 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
3624 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
b1726d6c 3625 * cilk.c (create_parm_list): Likewise.
22d03525 3626
af05e6e5
MP
36272015-06-26 Marek Polacek <polacek@redhat.com>
3628
3629 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
3630
f0889939
AM
36312015-06-25 Andrew MacLeod <amacleod@redhat.com>
3632
3633 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
3634 * c-gimplify.c: Likewise.
3635 * c-pragma.c: Likewise.
3636 * c-ubsan.c: Likewise.
3637 * cilk.c: Likewise.
3638
ca752f39
RS
36392015-06-25 Richard Sandiford <richard.sandiford@arm.com>
3640
3641 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
3642 ggc_hasher.
3643
16a16ec7
AM
36442015-06-25 Andrew MacLeod <amacleod@redhat.com>
3645
3646 * cilk.c: Move calls.h after tm.h in the include chain.
3647
0ae9bd27
MP
36482015-06-25 Marek Polacek <polacek@redhat.com>
3649
3650 * array-notation-common.c: Use VAR_P throughout.
3651 * c-ada-spec.c: Likewise.
3652 * c-common.c: Likewise.
3653 * c-format.c: Likewise.
3654 * c-gimplify.c: Likewise.
3655 * c-omp.c: Likewise.
3656 * c-pragma.c: Likewise.
3657 * c-pretty-print.c: Likewise.
3658 * cilk.c: Likewise.
3659
62f9079a
MP
36602015-06-25 Marek Polacek <polacek@redhat.com>
3661
3662 * cilk.c (extract_free_variables): Use is_global_var.
3663
0fa16060
RS
36642015-06-23 Richard Sandiford <richard.sandiford@arm.com>
3665
3666 * c-common.c: Don't include target-def.h.
3667
a68ae2e1
MP
36682015-06-23 Marek Polacek <polacek@redhat.com>
3669
3670 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
3671 when comparing INTEGER_CSTs.
3672
c6a2f2d9
PMR
36732015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
3674
3675 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
3676 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
3677 (dump_ada_template): Skip partially specialized types.
3678
6b4db501
MM
36792015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
3680
3681 * c-common.c (scalar_to_vector): Use std::swap instead of manually
3682 swapping.
3683
abb226c9
AM
36842015-06-17 Andrew MacLeod <amacleod@redhat.com>
3685
3686 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
3687 * c-ada-spec.c: Likewise.
3688 * c-cilkplus.c: Likewise.
3689 * c-common.c: Likewise.
3690 * c-common.h: Likewise.
3691 * c-cppbuiltin.c: Likewise.
3692 * c-dump.c: Likewise.
3693 * c-format.c: Likewise.
3694 * c-gimplify.c: Likewise.
3695 * c-indentation.c: Likewise.
3696 * c-lex.c: Likewise.
3697 * c-omp.c: Likewise.
3698 * c-opts.c: Likewise.
3699 * c-pch.c: Likewise.
3700 * c-ppoutput.c: Likewise.
3701 * c-pragma.c: Likewise.
3702 * c-pretty-print.c: Likewise.
3703 * c-semantics.c: Likewise.
3704 * c-ubsan.c: Likewise.
3705 * cilk.c: Likewise.
3706 * stub-objc.c: Likewise.
3707
076fecad
PP
37082015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
3709
3710 PR c++/65168
3711 * c-common.c (c_common_truthvalue_conversion): Warn when
3712 converting an address of a reference to a truth value.
3713
13fdf2e2
AM
37142015-06-08 Andrew MacLeod <amacleod@redhat.com>
3715
3716 * array-notation-common.c : Adjust include files.
3717 * c-ada-spec.c : Likewise.
3718 * c-cilkplus.c : Likewise.
3719 * c-common.c : Likewise.
3720 * c-common.h : Likewise.
3721 * c-cppbuiltin.c : Likewise.
3722 * c-dump.c : Likewise.
3723 * c-format.c : Likewise.
3724 * c-gimplify.c : Likewise.
3725 * c-indentation.c : Likewise.
3726 * c-lex.c : Likewise.
3727 * c-omp.c : Likewise.
3728 * c-opts.c : Likewise.
3729 * c-pch.c : Likewise.
3730 * c-ppoutput.c : Likewise.
3731 * c-pragma.c : Likewise.
3732 * c-pretty-print.c : Likewise.
3733 * c-semantics.c : Likewise.
3734 * c-ubsan.c : Likewise.
3735 * cilk.c : Likewise.
3736 * stub-objc.c : Likewise.
3737
a1661b90
MP
37382015-06-08 Marek Polacek <polacek@redhat.com>
3739
3740 PR c/66415
3741 * c-format.c (location_from_offset): Return LOC if LINE is null.
3742
d7438551
AH
37432015-06-05 Aldy Hernandez <aldyh@redhat.com>
3744
3745 * c-common.h (c_parse_final_cleanups): New prototype.
3746 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
3747
b3d5bc62
JJ
37482015-06-04 Sriraman Tallam <tmsriram@google.com>
3749
3750 * c-common.c (noplt): New attribute.
3751 (handle_noplt_attribute): New handler.
3752
ecb9f223
AM
37532015-06-04 Andrew MacLeod <amacleod@redhat.com>
3754
3755 * array-notation-common.c: Adjust includes for restructured coretypes.h.
3756 * c-ada-spec.c: Likewise.
3757 * c-cilkplus.c: Likewise.
3758 * c-common.c: Likewise.
3759 * c-common.h: Likewise.
3760 * c-cppbuiltin.c: Likewise.
3761 * c-dump.c: Likewise.
3762 * c-format.c: Likewise.
3763 * c-gimplify.c: Likewise.
3764 * c-indentation.c: Likewise.
3765 * c-lex.c: Likewise.
3766 * c-omp.c: Likewise.
3767 * c-opts.c: Likewise.
3768 * c-pch.c: Likewise.
3769 * c-ppoutput.c: Likewise.
3770 * c-pragma.c: Likewise.
3771 * c-pretty-print.c: Likewise.
3772 * c-semantics.c: Likewise.
3773 * c-ubsan.c: Likewise.
3774 * cilk.c: Likewise.
3775 * stub-objc.c: Likewise.
3776
6ac48155
DM
37772015-06-02 David Malcolm <dmalcolm@redhat.com>
3778
3779 PR c/66220:
3780 * c-indentation.c (should_warn_for_misleading_indentation): Use
3781 expand_location rather than expand_location_to_spelling_point.
3782 Don't warn if the guarding statement is more indented than the
3783 next/body stmts.
3784
773ce42e
DM
37852015-06-02 David Malcolm <dmalcolm@redhat.com>
3786
3787 * c-indentation.c (warn_for_misleading_indentation): Bail out
3788 immediately if -Wmisleading-indentation isn't enabled.
3789
4fef8379
ML
37902015-06-01 Martin Liska <mliska@suse.cz>
3791
3792 * c-format.c (check_format_arg):Use new type-based pool allocator.
3793 (check_format_info_main) Likewise.
3794
1edfb384
EB
37952015-05-31 Eric Botcazou <ebotcazou@adacore.com>
3796
3797 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
3798 (has_nontrivial_methods): Likewise.
3799
9677ef52
MP
38002015-05-25 Marek Polacek <polacek@redhat.com>
3801
3802 * c-ubsan.c (ubsan_instrument_shift): Use type0.
3803
fd5c817a
MP
38042015-05-22 Marek Polacek <polacek@redhat.com>
3805
3806 PR c/47043
3807 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
3808
a2f45fe6 38092015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
581edfa3
TS
3810
3811 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
3812 STACK_GROWS_DOWNWARD.
3813
a2f45fe6 38142015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
62f9f30b
TS
3815
3816 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
3817 STACK_GROWS_DOWNWARD rather than if it is defined.
3818
0fee2ac2 38192015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
b1726d6c 3820
0fee2ac2
MLI
3821 PR c/52952
3822 * c-format.c (location_column_from_byte_offset): New.
3823 (location_from_offset): New.
3824 (struct format_wanted_type): Add offset_loc field.
3825 (check_format_info): Move handling of location for extra arguments
3826 closer to the point of warning.
3827 (check_format_info_main): Pass the result of location_from_offset
3828 to warning_at.
3829 (format_type_warning): Pass the result of location_from_offset
3830 to warning_at.
3831
cf4ef6f7
MP
38322015-05-20 Marek Polacek <polacek@redhat.com>
3833
3834 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
3835
3a65ee74
MP
38362015-05-20 Marek Polacek <polacek@redhat.com>
3837
3838 * c-ada-spec.c (dump_sloc): Use DECL_P.
3839
21b634ae
MP
38402015-05-20 Marek Polacek <polacek@redhat.com>
3841
3842 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
3843 * c-common.c: Likewise.
3844
0e50b624
DM
38452015-05-19 David Malcolm <dmalcolm@redhat.com>
3846
3847 * c-common.h (fe_file_change): Strengthen param from
3848 const line_map * to const line_map_ordinary *.
3849 (pp_file_change): Likewise.
3850 * c-lex.c (fe_file_change): Likewise.
3851 (cb_define): Use linemap_check_ordinary when invoking
3852 SOURCE_LINE.
3853 (cb_undef): Likewise.
3854 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
3855 invoking cb_file_change.
3856 (c_finish_options): Likewise.
3857 (push_command_line_include): Likewise.
3858 (cb_file_change): Strengthen param "new_map" from
3859 const line_map * to const line_map_ordinary *.
3860 * c-ppoutput.c (cb_define): Likewise for local "map".
3861 (pp_file_change): Likewise for param "map" and local "from".
3862
fab27f52
MM
38632015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
3864
3865 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
3866
2fe1d762
TV
38672015-05-18 Tom de Vries <tom@codesourcery.com>
3868
3869 * c-common.c (build_va_arg_1): New function.
3870 (build_va_arg): Add address operator to va_list operand if necessary.
3871
7a37fa90
MM
38722015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
3873
3874 PR c/48956
3875 * c-common.c (int_safely_convertible_to_real_p): Define.
3876 (unsafe_conversion_p): Check conversions involving complex types.
3877 (conversion_warning): Add new warning message for conversions which
3878 discard imaginary component.
3879 * c-common.h: (enum conversion_safety): Add new enumerator for such
3880 conversions.
3881
3aa3c9fc
MP
38822015-05-14 Marek Polacek <polacek@redhat.com>
3883
3884 PR c/66066
3885 PR c/66127
3886 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
3887 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
3888 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
3889 use it. If FOR_INT_CONST, require that all evaluated operands be
3890 INTEGER_CSTs.
3891
c3388e62
DM
38922015-05-12 David Malcolm <dmalcolm@redhat.com>
3893
3894 * c-common.h (warn_for_misleading_indentation): New prototype.
3895 * c-indentation.c: New file.
3896 * c.opt (Wmisleading-indentation): New option.
3897
c7b38fd5
TV
38982015-05-12 Tom de Vries <tom@codesourcery.com>
3899
3900 PR tree-optimization/66010
3901 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
3902
381bf11e
JM
39032015-05-09 Jason Merrill <jason@redhat.com>
3904
edff0c06
JM
3905 * c-opts.c (c_common_post_options): Also clear
3906 cpp_opts->cpp_warn_cxx11_compat.
3907
129211bc
JM
3908 * c-common.h (enum cxx_dialect): Add cxx_unset.
3909 * c-common.c (cxx_dialect): Initialize to cxx_unset.
3910 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
3911
381bf11e
JM
3912 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
3913 (std=gnu++0x): Mark as Undocumented.
3914 (std=gnu++1y): Add deprecated message.
3915
fe191308
JM
39162015-05-08 Jason Merrill <jason@redhat.com>
3917
765189ff
JM
3918 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
3919 * c-opts.c: Adjust.
3920
fe191308
JM
3921 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
3922
755e528f
MP
39232015-05-08 Marek Polacek <polacek@redhat.com>
3924
3925 PR c/64918
3926 * c.opt (Woverride-init-side-effects): New option.
3927
0173bd2a
MP
39282015-05-07 Marek Polacek <polacek@redhat.com>
3929
3930 PR c/65179
3931 * c-common.c (c_fully_fold_internal): Warn when left shifting a
3932 negative value.
3933 * c.opt (Wshift-negative-value): New option.
3934 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
3935 when -Wextra and C99/C++11 mode.
3936
e0f0d3b9
MP
39372015-05-07 Marek Polacek <polacek@redhat.com>
3938 Martin Uecker <uecker@eecs.berkeley.edu>
3939
3940 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
3941 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
3942
8243e2a9
JM
39432015-05-05 Jason Merrill <jason@redhat.com>
3944
3945 * c.opt (Wterminate): New.
3946
577cd070
MP
39472015-04-30 Marek Polacek <polacek@redhat.com>
3948
3949 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
3950 require that the non-constant be of a boolean type.
3951
0373796b
JT
39522015-04-29 Josh Triplett <josh@joshtriplett.org>
3953
e0f0d3b9
MP
3954 * c-common.c (handle_section_attribute): Refactor to reduce
3955 nesting and distinguish between error cases.
0373796b 3956
716c0ba6
MP
39572015-04-29 Marek Polacek <polacek@redhat.com>
3958
3959 PR c/64610
3960 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
3961 with 0/1.
3962
8848828b
JJ
39632015-04-29 Jakub Jelinek <jakub@redhat.com>
3964
3965 * c-common.h (omp_clause_mask): Unconditionally define as a class.
3966 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
3967 HOST_BITS_PER_WIDE_INT.
3968
ecd0e562
TV
39692015-04-28 Tom de Vries <tom@codesourcery.com>
3970
3971 PR tree-optimization/65887
3972 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
3973
2a877204 39742015-04-28 Eric Botcazou <ebotcazou@adacore.com>
e0f0d3b9 3975 Pierre-Marie de Rodat <derodat@adacore.com>
2a877204
EB
3976
3977 * c-ada-spec.c (in_function): Delete.
3978 (dump_generic_ada_node): Do not change in_function and remove the
3979 redundant code dealing with it.
3980 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
3981 (print_ada_methods): Output the static member functions in a nested
3982 package after the regular methods as well as associated renamings.
3983
4853031e
MP
39842015-04-24 Marek Polacek <polacek@redhat.com>
3985
3986 PR c/65830
3987 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
3988 and OPT_Wshift_count_overflow.
3989
8c2b7f79
MP
3990 PR c/63357
3991 * c-common.c (warn_logical_operator): Warn if the operands have the
3992 same expressions.
3993
b8787813
MP
39942015-04-24 Marek Polacek <polacek@redhat.com>
3995
3996 PR c/61534
3997 * c-common.c (warn_logical_operator): Bail if either operand comes
3998 from a macro expansion.
3999
8fba1830
BRF
40002015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4001
4002 PR target/55143
4003 * c-common.c (c_default_pointer_mode): Add definition.
4004 * c-common.h (c_default_pointer_mode): Add declaration.
4005
17958621
JJ
40062015-03-11 Jakub Jelinek <jakub@redhat.com>
4007
4008 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
4009 on record_builtin_type argument.
4010
7ccb1a11
JJ
40112015-03-10 Jakub Jelinek <jakub@redhat.com>
4012
4013 PR c/65120
4014 * c-common.c (warn_logical_not_parentheses): Don't warn for
4015 !x == 0 or !x != 0.
4016
04fd785e
MP
40172015-03-07 Marek Polacek <polacek@redhat.com>
4018
4019 PR sanitizer/65280
4020 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
4021 before trying to figure out whether we have a flexible array member.
4022
a4e26206 40232015-03-06 Eric Botcazou <ebotcazou@adacore.com>
8e745a17 4024 Jonathan Wakely <jwakely.gcc@gmail.com>
a4e26206
EB
4025
4026 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
4027
0d2489f4
EB
40282015-03-05 Eric Botcazou <ebotcazou@adacore.com>
4029
4030 PR ada/65319
4031 * c-ada-spec.c (print_destructor): Remove obsolete code.
4032
83ed54d7
EB
40332015-03-01 Eric Botcazou <ebotcazou@adacore.com>
4034
4035 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
4036 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
4037 DECL_TEMPLATE_RESULT emulations.
4038 (dump_ada_template)): Add guard for TYPE_METHODS.
4039
7631f0e2
MP
40402015-02-27 Marek Polacek <polacek@redhat.com>
4041
4042 PR c/65040
4043 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
4044
d1783ae5
KT
40452015-02-27 Kai Tietz <ktietz@redhat.com>
4046
4047 PR c/35330
4048 * c-pragma.c (handle_pragma_weak): Do not try to create
4049 weak/alias of declarations not being function, or variable
4050 declarations.
4051
56a9f6bc
TS
40522015-02-24 Thomas Schwinge <thomas@codesourcery.com>
4053
4054 PR libgomp/64625
4055 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
4056 Remove macros.
4057 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
4058
3d5cb23d
MP
40592015-02-16 Marek Polacek <polacek@redhat.com>
4060
4061 PR c/65066
4062 * c-format.c (check_format_types): Handle null param.
4063
fa008882
MP
40642015-02-13 Marek Polacek <polacek@redhat.com>
4065
4066 PR c/65040
4067 * c-format.c (check_format_types): Don't warn about different
4068 signedness if the original value is in the range of WANTED_TYPE.
4069
785f21af
JM
40702015-02-12 Jason Merrill <jason@redhat.com>
4071
4072 PR c++/64956
4073 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
4074 to the current highest version.
4075 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
4076
4886ec8e
JJ
40772015-02-04 Jakub Jelinek <jakub@redhat.com>
4078
4079 PR c/64824
4080 PR c/64868
4081 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
4082 instead of RDIV_EXPR. Use build_binary_op instead of
4083 build2_loc.
4084
40fecdd6
JM
40852015-01-30 Joseph Myers <joseph@codesourcery.com>
4086
4087 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
4088 to pass input_location as first argument.
4089
a0c88d06
TV
40902015-01-23 Tom de Vries <tom@codesourcery.com>
4091
4092 PR libgomp/64672
4093 * c.opt (fopenacc): Mark as LTO option.
4094
1506ae0e
TV
40952015-01-23 Tom de Vries <tom@codesourcery.com>
4096
4097 PR libgomp/64707
4098 * c.opt (fopenmp): Mark as LTO option.
4099
31be63ab
JJ
41002015-01-21 Jakub Jelinek <jakub@redhat.com>
4101
4102 PR c/63307
b1726d6c 4103 * cilk.c (fill_decls_vec): Only put decls into vector v.
31be63ab
JJ
4104 (compare_decls): Fix up formatting.
4105
41062015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
4107
4108 PR c/63307
4109 * cilk.c: Include vec.h.
4110 (struct cilk_decls): New structure.
4111 (wrapper_parm_cb): Split this function to...
4112 (fill_decls_vec): ...this...
4113 (create_parm_list): ...and this.
4114 (compare_decls): New function.
4115 (for_local_cb): Remove.
4116 (wrapper_local_cb): Ditto.
4117 (build_wrapper_type): For now first traverse and fill vector of
4118 declarations then sort it and then deal with sorted vector.
4119 (cilk_outline): Ditto.
4120 (declare_one_free_variable): Ditto.
4121
6875457f
JM
41222015-01-21 Jason Merrill <jason@redhat.com>
4123
4124 PR c++/64629
4125 * c-format.c (check_format_arg): Call decl_constant_value.
4126
185c9e56
ML
41272015-01-19 Martin Liska <mliska@suse.cz>
4128
4129 * c-common.c (handle_noicf_attribute): New function.
4130
41dbbb37
TS
41312015-01-15 Thomas Schwinge <thomas@codesourcery.com>
4132 Bernd Schmidt <bernds@codesourcery.com>
4133 James Norris <jnorris@codesourcery.com>
4134 Cesar Philippidis <cesar@codesourcery.com>
4135 Ilmir Usmanov <i.usmanov@samsung.com>
4136 Jakub Jelinek <jakub@redhat.com>
4137
4138 * c.opt (fopenacc): New option.
4139 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
4140 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
4141 New macros.
4142 * c-common.h (c_finish_oacc_wait): New prototype.
4143 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
4144 (c_finish_oacc_wait): New function.
4145 * c-pragma.c (oacc_pragmas): New variable.
4146 (c_pp_lookup_pragma, init_pragma): Handle it.
4147 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
4148 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
4149 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
4150 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
4151 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
4152 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
4153 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
4154 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
4155 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
4156 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
4157 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
4158 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
4159 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
4160 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
4161 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
4162 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
4163 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
4164 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
4165 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
4166 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
4167 PRAGMA_OACC_CLAUSE_WORKER.
4168
3f8257db 41692015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
5434dc07
MD
4170
4171 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
4172 for the new option fstack-protector_explicit.
4173 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
4174 (handle_stack_protect_attribute): New function.
4175
3f8257db 41762015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
de1b5c17
MU
4177
4178 * c.opt: New option -Warray-bounds=.
4179
adfac8df
JJ
41802015-01-09 Michael Collison <michael.collison@linaro.org>
4181
4182 * array-notation-common.c: Include hash-set.h, machmode.h,
4183 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4184 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
4185 * c-ada-spec.c: Ditto.
4186 * c-cilkplus.c: Ditto.
4187 * c-common.c: Include input.h due to flattening of tree.h.
4188 Define macro GCC_C_COMMON_C.
4189 * c-common.h: Flatten tree.h header files into c-common.h.
4190 Remove include of tree-core.h.
4191 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
4192 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4193 fold-const.h, wide-int.h, and inchash.h due to
4194 flattening of tree.h.
4195 * c-dump.c: Ditto.
4196 * c-format.c: Flatten tree.h header files into c-common.h.
4197 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
4198 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4199 fold-const.h, wide-int.h, and inchash.h due to
4200 flattening of tree.h.
4201 * c-dump.c: Include hash-set.h, machmode.h,
4202 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4203 fold-const.h, wide-int.h, and inchash.h due to
4204 flattening of tree.h.
4205 * c-format.c: Include hash-set.h, machmode.h,
4206 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4207 fold-const.h, wide-int.h, inchash.h and real.h due to
4208 flattening of tree.h.
4209 * c-gimplify.c: Include hash-set.h, machmode.h,
4210 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4211 fold-const.h, wide-int.h, and inchash.h due to
4212 flattening of tree.h.
4213 * cilk.c: Ditto.
4214 * c-lex.c: Ditto.
4215 * c-omp.c: Ditto.
4216 * c-opts.c: Ditto.
4217 * c-pch.c: Ditto.
4218 * c-ppoutput.c: Ditto.
4219 * c-pragma.c: Ditto.
4220 * c-pretty-print.c: Ditto.
4221 * c-semantics.c: Ditto.
4222 * c-ubsan.c: Ditto.
4223 * stub-objc.c: Ditto.
4224
f5481fc4
JM
42252015-01-08 Jason Merrill <jason@redhat.com>
4226
4227 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
4228 do_ubsan_in_current_function.
4229 (ubsan_maybe_instrument_reference_or_call): Likewise.
4230 * c-ubsan.h: Declare it.
4231
de35aa66
MS
42322015-01-08 Mike Stump <mikestump@comcast.net>
4233
4234 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
4235
4a9a42ab
MP
42362015-01-07 Marek Polacek <polacek@redhat.com>
4237
4238 PR c/64440
4239 * c-common.c (c_fully_fold_internal): Warn for division and modulo
4240 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
4241
2f42e5de
TS
42422015-01-05 Trevor Saunders <tsaunders@mozilla.com>
4243
4244 PR c++/31397
4245 * c.opt (Wsuggest-override): New option.
4246
5624e564
JJ
42472015-01-05 Jakub Jelinek <jakub@redhat.com>
4248
4249 Update copyright years.
4250
5bd012f8
MP
42512015-01-05 Marek Polacek <polacek@redhat.com>
4252
4253 PR c/64423
4254 * c-common.c (warn_array_subscript_with_type_char): Add location_t
4255 parameter. Use it.
4256 * c-common.h (warn_array_subscript_with_type_char): Update
4257 declaration.
4258
a7fa8d18
ESR
42592014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
4260
4261 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
4262 Control macro with flag_sized_deallocation.
4263
3f8257db 42642014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
768952be
MU
4265
4266 * c.opt (Wdiscarded-array-qualifiers): New option.
4267
1f8d3e84
JJ
42682014-12-19 Jakub Jelinek <jakub@redhat.com>
4269
4270 PR preprocessor/63831
4271 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
4272 and __has_cpp_attribute here.
4273 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
4274 c_common_has_attribute.
4275 * c-common.h (c_common_has_attribute): New prototype.
4276 * c-lex.c (init_c_lex): Set cb->has_attribute to
4277 c_common_has_attribute instead of cb_has_attribute.
4278 (get_token_no_padding): New function.
4279 (cb_has_attribute): Renamed to ...
4280 (c_common_has_attribute): ... this. No longer static. Use
4281 get_token_no_padding, require ()s, don't build TREE_LIST
4282 unnecessarily, fix up formatting, adjust diagnostics, call
4283 init_attributes.
4284
20b06add
JM
42852014-12-15 Jason Merrill <jason@redhat.com>
4286
4287 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
4288 (-Wsized-deallocation): New.
4289 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
4290 to on in C++14 and up.
4291
94a073b2
JM
42922014-12-11 Jason Merrill <jason@redhat.com>
4293
acaa5911
JM
4294 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
4295
94a073b2
JM
4296 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
4297 we aren't complaining about VLAs.
4298
7fb66c15
MP
42992014-12-06 Marek Polacek <polacek@redhat.com>
4300
4301 PR tree-optimization/64183
4302 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
4303 shift-expression if it is integer_type_node. Use types_compatible_p.
4304
b731b390
JJ
43052014-11-29 Jakub Jelinek <jakub@redhat.com>
4306
4307 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
4308 last argument from create_tmp_var_raw and create_tmp_var calls.
4309 * cilk.c (gimplify_cilk_spawn): Likewise.
4310 * c-omp.c (c_finish_omp_atomic): Likewise.
4311
6a4da643
MP
43122014-11-28 Marek Polacek <polacek@redhat.com>
4313
4314 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
4315 instead of unsigned_type_node.
4316
541e35a6
MP
43172014-11-28 Marek Polacek <polacek@redhat.com>
4318
4319 PR c/63862
4320 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
4321 to op1_utype.
4322 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
4323 expression to unsigned_type_node.
4324
dcc97066
MW
43252014-11-20 Mark Wielaard <mjw@redhat.com>
4326
4327 PR debug/38757
4328 * c-opts.c (set_std_c89): Set lang_hooks.name.
4329 (set_std_c99): Likewise.
4330 (set_std_c11): Likewise.
4331 (set_std_cxx98): Likewise.
4332 (set_std_cxx11): Likewise.
4333 (set_std_cxx14): Likewise.
4334 (set_std_cxx1z): Likewise.
4335
aa7da51a
JJ
43362014-11-21 Jakub Jelinek <jakub@redhat.com>
4337
4338 PR target/63764
4339 * c-common.h (convert_vector_to_pointer_for_subscript): Change
4340 return type to bool.
009a3480 4341 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
4342 (convert_vector_to_pointer_for_subscript): Change return type to
4343 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
4344 and copy it into a TARGET_EXPR and use that instead of *vecp
4345 directly.
4346
538dd0b7
DM
43472014-11-19 David Malcolm <dmalcolm@redhat.com>
4348
4349 Merger of git branch "gimple-classes-v2-option-3".
4350 * ChangeLog.gimple-classes: New.
4351 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
4352 from being just a vec<gimple> to a vec<gbind *>.
4353
c39a5e99
JJ
43542014-11-18 Jakub Jelinek <jakub@redhat.com>
4355
4356 PR sanitizer/63813
4357 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
4358 argument to ptype, set type to TREE_TYPE (ptype). Don't call
4359 get_pointer_alignment for non-pointers. Use ptype, or if it is
4360 reference type, corresponding pointer type, as type of kind
4361 argument.
4362 (ubsan_maybe_instrument_reference,
4363 ubsan_maybe_instrument_member_call): Adjust callers.
4364
8537a4a9
MP
43652014-11-15 Marek Polacek <polacek@redhat.com>
4366
4367 PR middle-end/63884
4368 * array-notation-common.c (is_sec_implicit_index_fn): Return false
4369 for NULL fndecl.
4370 (extract_array_notation_exprs): Return for NULL node.
4371
2079956a
JM
43722014-11-12 Joseph Myers <joseph@codesourcery.com>
4373
4374 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
4375 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
4376
1304953e
JJ
43772014-11-12 Jakub Jelinek <jakub@redhat.com>
4378
4379 PR c/59708
4380 * c-common.c (check_builtin_function_arguments): Handle
4381 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
4382
e5e44252
AK
43832014-11-10 Andi Kleen <ak@linux.intel.com>
4384
4385 PR c/60804
4386 * c-common.h (check_no_cilk): Declare.
4387 * cilk.c (get_error_location): New function.
4388 (check_no_cilk): Dito.
4389
e64b984d
AK
43902014-11-10 Andi Kleen <ak@linux.intel.com>
4391
4392 * cilk.c (recognize_spawn): Use expression location
4393 for error message.
4394
13c21655
PC
43952014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
4396
4397 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
4398
42fd12b1
ESR
43992014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
4400
4401 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
4402 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
4403 (__cpp_range_based_for, __cpp_initializer_lists,
4404 __cpp_delegating_constructors, __cpp_nsdmi,
4405 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
4406 for C++11; (__cpp_attribute_deprecated): Remove in favor of
4407 __has_cpp_attribute.
4408 * c-lex.c (cb_has_attribute): New callback CPP function;
4409 (init_c_lex): Set has_attribute callback.
4410
6f450181
RB
44112014-11-04 Richard Biener <rguenther@suse.de>
4412
4413 * c-common.c (shorten_compare): Do not shorten mixed
4414 DFP and non-DFP compares.
4415
26f0e1d6
ESR
44162014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
4417
4418 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
4419 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
4420 Commentary and rearrangement of tests.
4421 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
4422 Commentary and rearrangement of tests.
4423 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
4424 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
4425
ef4bddc2
RS
44262014-10-29 Richard Sandiford <richard.sandiford@arm.com>
4427
4428 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
4429 enum from machine_mode.
4430
c582198b
AM
44312014-10-28 Andrew MacLeod <amacleod@redhat.com>
4432
adfac8df
JJ
4433 * c-common.c: Adjust include files.
4434 * c-gimplify.c: Ditto.
4435 * cilk.c: Ditto.
4436 * c-pragma.c: Ditto.
4437 * c-ubsan.c: Ditto.
c582198b 4438
60393bbc
AM
44392014-10-27 Andrew MacLeod <amacleod@redhat.com>
4440
4441 * c-gimplify.c: Adjust include files.
4442
d723bb7c
MLI
44432014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
4444
4445 PR c++/53061
4446 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
4447 c_common_initialize_diagnostics.
4448 * c-common.h: Likewise.
4449
90f3520e
MP
44502014-10-24 Marek Polacek <polacek@redhat.com>
4451
4452 PR c/56980
4453 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
4454 print "struct"/"union"/"enum" for typedefed names.
4455
59d7607a
MP
44562014-10-23 Marek Polacek <polacek@redhat.com>
4457
4458 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
4459 in unsigned type.
4460
d95a2703
JJ
44612014-10-22 Jakub Jelinek <jakub@redhat.com>
4462 Yury Gribov <y.gribov@samsung.com>
4463
4464 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
4465 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
4466 instead of flag_sanitize_recover as bool flag.
4467
8e6ef852
KY
44682014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
4469
4470 * cilk.c: Revert previous change.
4471
948cf550
IZ
44722014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
4473
4474 PR c/63307
4475 * cilk.c: Include vec.h.
4476 (struct cilk_decls): New structure.
4477 (wrapper_parm_cb): Split this function to...
4478 (fill_decls_vec): ...this...
4479 (create_parm_list): ...and this.
4480 (compare_decls): New function.
4481 (for_local_cb): Remove.
4482 (wrapper_local_cb): Ditto.
4483 (build_wrapper_type): For now first traverse and fill vector of
4484 declarations then sort it and then deal with sorted vector.
4485 (cilk_outline): Ditto.
4486 (declare_one_free_variable): Ditto.
4487
92574c7c
MP
44882014-10-17 Marek Polacek <polacek@redhat.com>
4489
4490 * c-opts.c (c_common_post_options): Set warn_implicit_int.
4491 * c.opt (Wimplicit-int): Initialize to -1.
4492
83685514
AM
44932014-10-16 Andrew MacLeod <amacleod@redhat.com>
4494
4495 * c-pragma.c: Adjust include files.
4496 * c-semantics.c: Likewise.
4497
5b8300ea
DD
44982014-10-16 DJ Delorie <dj@redhat.com>
4499
4500 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
4501 multiples of bytes.
4502
5f83e90b
JM
45032014-10-14 Jason Merrill <jason@redhat.com>
4504
4505 PR c++/63455
4506 * c-common.h (CPP_PREPARSED_EXPR): New.
4507 (N_CP_TTYPES): Adjust.
4508
d73326ca
MP
45092014-10-15 Marek Polacek <polacek@redhat.com>
4510
4511 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
4512
78a7c317
DD
45132014-10-14 DJ Delorie <dj@redhat.com>
4514
4515 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
4516 types, not just __int128.
4517 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
4518 types, not just __int128.
4519 (cpp_atomic_builtins): Round pointer sizes up.
4520 (type_suffix): Use type precision, not specific types.
4521 * c-common.c (c_common_reswords): Remove __int128 special case.
4522 (c_common_type_for_size): Check for all __intN types, not just
4523 __int128.
4524 (c_common_type_for_mode): Likewise.
4525 (c_common_signed_or_unsigned_type): Likewise.
4526 (c_build_bitfield_integer_type): Likewise.
4527 (c_common_nodes_and_builtins): Likewise.
4528 (keyword_begins_type_specifier): Likewise.
4529 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
4530 __intN variants.
4531
2a22f99c
TS
45322014-10-12 Trevor Saunders <tsaunders@mozilla.com>
4533
4534 * c-common.c: Use hash_table instead of hashtab.
4535
2a8ef767
ESR
45362014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
4537
adfac8df 4538 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
4539 C++11 section.
4540
3c9aabbd
MG
45412014-10-03 Marc Glisse <marc.glisse@inria.fr>
4542
4543 PR c++/54427
4544 PR c++/57198
4545 PR c++/58845
4546 * c-common.c (warn_logical_operator): Punt for vectors.
4547
a15f7cb8
ESR
45482014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
4549
4550 Implement SD-6: SG10 Feature Test Recommendations
4551 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
4552 macros and the __has_header macro.
4553
8d0cf15e
JM
45542014-09-30 Jason Merrill <jason@redhat.com>
4555
dd5d5481
JM
4556 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
4557 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
4558 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
4559
b752325e
JM
4560 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
4561 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
4562
8d0cf15e
JM
4563 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
4564 * c-common.c (c_common_reswords): Remove __is_convertible_to.
4565
083e891e
MP
45662014-09-24 Marek Polacek <polacek@redhat.com>
4567
4568 PR c/61405
4569 PR c/53874
4570 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
4571
7861b648
AK
45722014-09-23 Andi Kleen <ak@linux.intel.com>
4573
4574 * c-common.c (handle_no_reorder_attribute): New function.
4575 (c_common_attribute_table): Add no_reorder attribute.
4576
9a79452d
JM
45772014-09-22 Joseph Myers <joseph@codesourcery.com>
4578
4579 * c-cppbuiltin.c (c_cpp_builtins): Define
4580 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
4581 modes.
4582
dd69f047
JM
45832014-09-18 Joseph Myers <joseph@codesourcery.com>
4584
4585 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
4586 for supported floating-point modes.
4587
737a4826
MLI
45882014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
4589
4590 * c.opt (Wpsabi): Use LangEnabledBy.
4591 * c-opts.c (c_common_handle_option): Do not handle here.
4592
8cc4b7a2
JM
45932014-09-12 Joseph Myers <joseph@codesourcery.com>
4594
4595 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
4596 macros for floating-point modes.
4597
179b5a55
MG
45982014-09-11 Marc Glisse <marc.glisse@inria.fr>
4599
4600 PR target/58757
4601 * c-cppbuiltin.c (builtin_define_float_constants): Correct
4602 __*_DENORM_MIN__ without denormals.
4603
570a11fe
JJ
46042014-09-10 Jakub Jelinek <jakub@redhat.com>
4605
4606 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
4607 ubsan_instrument_vla, ubsan_instrument_return): Adjust
4608 ubsan_create_data callers.
4609 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
4610 index is constant or BIT_AND_EXPR with constant mask and is
4611 small enough for the bound.
4612 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
4613 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
4614
b559c810
MLI
46152014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4616
4617 * c.opt: Add CppReason to various flags.
4618 (Wdate-time): Re-sort.
4619 * c-common.c: Include c-common.h earlier.
4620 (struct reason_option_codes_t): Delete.
4621 (c_option_controlling_cpp_error): Prefix global type and struct
4622 with cpp_.
4623
1ef33fd4
MLI
46242014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4625
4626 * c.opt (Wnormalized): New.
4627 (Wnormalized=): Use Enum and Reject Negative.
4628 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
4629
66bb34c0
JM
46302014-09-08 Joseph Myers <joseph@codesourcery.com>
4631
4632 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
4633 digits of floating-point modes if -fbuilding-libgcc.
4634
53d68b9f
JM
46352014-09-05 Joseph Myers <joseph@codesourcery.com>
4636
4637 * c-cppbuiltin.c (c_cpp_builtins): Also define
4638 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
4639 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
4640 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
4641 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
4642 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
4643 __LIBGCC_STACK_GROWS_DOWNWARD__,
4644 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
4645 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
4646 __LIBGCC_DWARF_FRAME_REGISTERS__,
4647 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
4648 __LIBGCC_STACK_POINTER_REGNUM__ and
4649 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
4650 (builtin_define_with_value): Handle backslash-escaping in string
4651 macro values.
4652
f65586dc
RB
46532014-09-05 Richard Biener <rguenther@suse.de>
4654
4655 PR middle-end/63148
4656 * c-format.c (check_format_arg): Properly handle
4657 effectively signed POINTER_PLUS_EXPR offset.
4658
2b71f4a4
MLI
46592014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
4660
4661 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
4662 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
4663 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
4664 and Init.
4665 * c-opts.c (c_common_handle_option): Do not handle here.
4666 (sanitize_cpp_opts): Likewise.
4667 * c-common.c (struct reason_option_codes_t): Handle
4668 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
4669
d2e4feca
MP
46702014-09-03 Marek Polacek <polacek@redhat.com>
4671
4672 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
4673
9a771876
JJ
46742014-09-02 Jakub Jelinek <jakub@redhat.com>
4675 Balaji V. Iyer <balaji.v.iyer@intel.com>
4676 Igor Zamyatin <igor.zamyatin@intel.com>
4677
4678 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
4679 * c-common.c (c_common_reswords): Added _Cilk_for.
4680 * c-common.h (enum rid): Added RID_CILK_FOR.
4681 (cilk_for_number_of_iterations): Add declaration.
4682 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
4683 CILK_FOR.
4684 * c-pragma.c (init_pragma): Register "grainsize" pragma.
4685 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
4686
81b5d104
MLI
46872014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
4688
4689 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
4690 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
4691 Wundef): Use CPP, Var and Init.
4692 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
4693
b753b37b
MLI
46942014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
4695
4696 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
4697 * c-opts.c (c_common_handle_option): Do not handle here.
4698
028aee17
JM
46992014-08-25 Jason Merrill <jason@redhat.com>
4700
4701 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
4702 -std=c++14 and -std=gnu++14, rather than the reverse.
4703 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
4704 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
4705 * c-common.h (cxx_dialect): Remove cxx1y.
4706
e4276ba5
ESR
47072014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
4708
4709 * c-common.h (enum cxx_dialect): Add cxx14.
4710 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
4711 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
4712 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
4713
a545cacd
JM
47142014-08-22 Jason Merrill <jason@redhat.com>
4715
4716 * c.opt (std=gnu++17): Fix alias.
4717
59ea0364
MP
47182014-08-22 Marek Polacek <polacek@redhat.com>
4719
4720 PR c++/62199
4721 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
4722 check for vector types. Drop LHS argument.
4723 * c-common.h (warn_logical_not_parentheses): Adjust.
4724
596e808c
MLI
47252014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
4726
4727 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
4728 (Wmultichar): Likewise.
4729 (Wdate-time): Use C-family languages instead of Common. Use CPP
4730 and Var.
4731 * c-opts.c (c_common_handle_option): Do not handle the above
4732 options here.
4733 (sanitize_cpp_opts): Likewise.
4734
18767f65
MLI
47352014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4736
4737 PR fortran/44054
4738 * c-opts.c: Include tree-diagnostics.h.
4739 (c_diagnostic_finalizer): New.
4740 (c_common_initialize_diagnostics): Use it.
4741
b4413594
MLI
47422014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4743
4744 PR preprocessor/51303
4745 * c-common.c (struct reason_option_codes_t option_codes):
4746 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
4747
43f9a13c
MLI
47482014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4749
4750 PR c/60975
4751 PR c/53063
4752 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
4753 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
4754 (c_common_post_options): Call init_global_opts_from_cpp.
4755 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
4756
04159acf
MP
47572014-08-19 Marek Polacek <polacek@redhat.com>
4758
4759 PR c++/62153
4760 * c-common.c (maybe_warn_bool_compare): New function.
4761 * c-common.h (maybe_warn_bool_compare): Declare.
4762 * c.opt (Wbool-compare): New option.
4763
35aff4fb
MP
47642014-08-19 Marek Polacek <polacek@redhat.com>
4765
4766 * c.opt (Wc99-c11-compat): New option.
4767
177cce46
MP
47682014-08-19 Marek Polacek <polacek@redhat.com>
4769
4770 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
4771 to warn_c90_c99_compat.
4772 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
4773 to -1.
4774
6ae9194f
MLI
47752014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
4776 Steven Bosscher <steven@gcc.gnu.org>
4777
4778 PR c/52952
4779 * c-format.c: Add extra_arg_loc and format_string_loc to struct
4780 format_check_results.
4781 (check_function_format): Use true and add comment for boolean
4782 argument.
4783 (finish_dollar_format_checking): Use explicit location when warning.
4784 (check_format_info): Likewise.
4785 (check_format_arg): Set extra_arg_loc and format_string_loc.
4786 (check_format_info_main): Use explicit location when warning.
4787 (check_format_types): Pass explicit location.
4788 (format_type_warning): Likewise.
4789
8e54f6d3
MLI
47902014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
4791
4792 PR fortran/44054
4793 * c-format.c: Handle Fortran flags.
4794
cd4e76fc
IZ
47952014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
4796
4797 PR other/61962
4798 * array-notation-common.c (find_rank): Added handling for other
4799 types of references.
4800
f3bede71
MP
48012014-08-10 Marek Polacek <polacek@redhat.com>
4802
4803 PR c/51849
4804 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
4805 * c.opt (Wc90-c99-compat): Add option.
4806
9f25a338
TS
48072014-08-07 Trevor Saunders <tsaunders@mozilla.com>
4808
4809 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
4810
62e4eb35
MP
48112014-08-03 Marek Polacek <polacek@redhat.com>
4812
4813 * c-common.c (check_case_value): Add location_t parameter. Use it.
4814 (c_add_case_label): Pass loc to check_case_value.
4815
b787e7a2
TS
48162014-08-02 Trevor Saunders <tsaunders@mozilla.com>
4817
4818 * cilk.c: Use hash_map instead of pointer_map.
4819
6e2830c3
TS
48202014-08-02 Trevor Saunders <tsaunders@mozilla.com>
4821
4822 * c-gimplify.c: Use hash_set instead of pointer_set.
4823
a7ee52fb
IZ
48242014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
4825
4826 PR middle-end/61455
4827 * array-notation-common.c (extract_array_notation_exprs): Handling
4828 of DECL_EXPR added.
4829
944fa280
JJ
48302014-08-01 Jakub Jelinek <jakub@redhat.com>
4831
4832 * c-common.h (min_align_of_type): Removed prototype.
4833 * c-common.c (min_align_of_type): Removed.
4834 * c-ubsan.h (ubsan_maybe_instrument_reference,
4835 ubsan_maybe_instrument_member_call): New prototypes.
4836 * c-ubsan.c: Include stor-layout.h and builtins.h.
4837 (ubsan_maybe_instrument_reference_or_call,
4838 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
4839 functions.
4840
b4dfdc11
MG
48412014-07-31 Marc Glisse <marc.glisse@inria.fr>
4842
4843 PR c++/60517
4844 * c.opt (-Wreturn-local-addr): Move to common.opt.
4845
a41844e5
JM
48462014-07-30 Jason Merrill <jason@redhat.com>
4847
4848 PR c++/61659
4849 PR c++/61687
4850 Revert:
4851 * c.opt (-fuse-all-virtuals): New.
4852
976d5a22
TT
48532014-07-30 Tom Tromey <tromey@redhat.com>
4854
4855 PR c/59855
4856 * c.opt (Wdesignated-init): New option.
4857 * c-common.c (c_common_attribute_table): Add "designated_init".
4858 (handle_designated_init): New function.
4859
cdc94aca
MP
48602014-07-24 Marek Polacek <polacek@redhat.com>
4861
4862 PR c/57653
4863 * c-opts.c (c_finish_options): If -imacros is in effect, return.
4864
f41373b6
DS
48652014-07-16 Dodji Seketeli <dodji@redhat.com>
4866
4867 PR preprocessor/60723 - missing system-ness marks for macro tokens
4868 * c-ppoutput.c (struct print::prev_was_system_token): New data
4869 member.
4870 (init_pp_output): Initialize it.
4871 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
4872 (do_line_change): Return a flag saying if a line marker was
4873 emitted or not.
4874 (scan_translation_unit): Detect if the system-ness of the token we
4875 are about to emit is different from the one of the previously
4876 emitted token. If so, emit a line marker. Avoid emitting useless
4877 adjacent line markers. Avoid emitting line markers for tokens
4878 originating from the expansion of built-in macros.
4879 (scan_translation_unit_directives_only): Adjust.
4880
4d661eaa
MP
48812014-07-15 Marek Polacek <polacek@redhat.com>
4882
4883 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
4884 TYPE_MAX_VALUE is NULL.
4885
b108f48f
JJ
48862014-07-14 Jakub Jelinek <jakub@redhat.com>
4887
4888 PR middle-end/61294
4889 * c.opt (Wmemset-transposed-args): New warning.
4890
c0221884
JM
48912014-07-10 Jason Merrill <jason@redhat.com>
4892
4893 PR c++/61659
4894 PR c++/61687
4895 * c.opt (-fuse-all-virtuals): New.
4896
63dfbb95
RB
48972014-07-09 Richard Biener <rguenther@suse.de>
4898
4899 PR c-family/61741
4900 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
4901 using unsigned arithmetic if overflow does not wrap instead of
4902 if overflow is undefined.
4903
773ec47f
MP
49042014-07-06 Marek Polacek <polacek@redhat.com>
4905
4906 PR c/6940
4907 * c.opt (Wsizeof-array-argument): New option.
4908
00a7ba58
JJ
49092014-07-03 Jakub Jelinek <jakub@redhat.com>
4910
b1726d6c 4911 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
00a7ba58
JJ
4912 comments->count <= 1, as comments->entries might be NULL.
4913
52ec0ea3
MP
49142014-07-01 Marek Polacek <polacek@redhat.com>
4915
4916 * c.opt (Wint-conversion): New option.
4917
d5c3d343
MP
49182014-07-01 Marek Polacek <polacek@redhat.com>
4919
4920 PR c/58286
4921 * c.opt (Wincompatible-pointer-types): New option.
4922
6e7ceb17
PC
49232014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
4924
4925 PR c++/51400
4926 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
4927 Do not discard TYPE_QUALS of type.
4928
da73100b
JM
49292014-06-26 Jason Merrill <jason@redhat.com>
4930
4931 * c-common.h (enum cxx_dialect): Add cxx1z.
4932 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
4933 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
4934
08eedf75
TJ
49352014-06-26 Teresa Johnson <tejohnson@google.com>
4936
4937 * c-common.h (get_dump_info): Declare.
4938 * c-gimplify.c (c_genericize): Use saved dump files.
4939 * c-opts.c (c_common_parse_file): Begin and end dumps
4940 once around parsing invocation.
4941 (get_dump_info): New function.
4942
7b56b2f8
MP
49432014-06-23 Marek Polacek <polacek@redhat.com>
4944 Andrew MacLeod <amacleod@redhat.com>
4945
4946 PR c/61553
4947 * c-common.c (get_atomic_generic_size): Don't segfault if the
4948 type doesn't have a size.
4949
0e37a2f3
MP
49502014-06-20 Marek Polacek <polacek@redhat.com>
4951
4952 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
4953 (ubsan_walk_array_refs_r): New function.
4954 (c_genericize): Instrument array bounds.
4955 * c-ubsan.c: Include "internal-fn.h".
4956 (ubsan_instrument_division): Mark instrumented arrays as having
4957 side effects. Adjust ubsan_type_descriptor call.
4958 (ubsan_instrument_shift): Likewise.
4959 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
4960 (ubsan_instrument_bounds): New function.
4961 (ubsan_array_ref_instrumented_p): New function.
4962 (ubsan_maybe_instrument_array_ref): New function.
4963 * c-ubsan.h (ubsan_instrument_bounds): Declare.
4964 (ubsan_array_ref_instrumented_p): Declare.
4965 (ubsan_maybe_instrument_array_ref): Declare.
4966
49672014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
4968
4969 PR lto/61123
4970 * c.opt (fshort-enums): Add to LTO.
4971 * c.opt (fshort-wchar): Likewise.
4972
5c3d09f7
MP
49732014-06-16 Marek Polacek <polacek@redhat.com>
4974
4975 PR c/60439
4976 * c.opt (Wswitch-bool): Add Var.
4977
9cf32741
JJ
49782014-06-12 Jakub Jelinek <jakub@redhat.com>
4979
4980 PR middle-end/61486
4981 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
4982 #pragma omp target teams or
4983 #pragma omp {,target }teams distribute simd.
4984
62984918
JM
49852014-06-12 Jason Merrill <jason@redhat.com>
4986
4987 * c.opt (Wabi=, fabi-compat-version): New.
4988 * c-opts.c (c_common_handle_option): Handle -Wabi=.
4989 (c_common_post_options): Handle flag_abi_compat_version default.
4990 Disallow -fabi-compat-version=1.
4991 * c-common.h (abi_version_crosses): New.
4992
f961457f
JH
49932014-06-11 Jan Hubicka <hubicka@ucw.cz>
4994
adfac8df 4995 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
4996 section names that are no longer trees.
4997
92d28cbb
JJ
49982014-06-10 Jakub Jelinek <jakub@redhat.com>
4999
5000 PR fortran/60928
5001 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
5002 (omp_pragmas): ... back here.
5003
742938c9
MP
50042014-06-05 Marek Polacek <polacek@redhat.com>
5005
5006 PR c/49706
5007 * c-common.c (warn_logical_not_parentheses): New function.
5008 * c-common.h (warn_logical_not_parentheses): Declare.
5009 * c.opt (Wlogical-not-parentheses): New option.
5010
9d548dfb
MP
50112014-06-04 Marek Polacek <polacek@redhat.com>
5012
5013 PR c/30020
5014 * c-common.c (check_case_bounds): Add location parameter.
5015 Use it.
5016 (c_add_case_label): Pass loc to check_case_bounds.
5017
fedfecef
MP
50182014-06-03 Marek Polacek <polacek@redhat.com>
5019
5020 PR c/60439
5021 * c.opt (Wswitch-bool): New option.
5022
f6a7cffc
TS
50232014-05-22 Thomas Schwinge <thomas@codesourcery.com>
5024
040d18b6
TS
5025 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
5026 Remove prototypes.
5027 (record_types_used_by_current_var_decl): Move prototype to where
5028 it belongs.
5029
f6a7cffc
TS
5030 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
5031 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
5032 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
5033
632f2871
RS
50342014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
5035
5036 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
5037 * c-common.c (c_common_nodes_and_builtins): Don't initialize
5038 void_zero_node.
5039 * c-pretty-print.c (pp_c_void_constant): New function.
5040 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
5041 (c_pretty_printer::expression): Handle VOID_CST.
5042 * cilk.c (extract_free_variables): Likewise.
5043 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
5044 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
5045
766090c2
TS
50462014-05-17 Trevor Saunders <tsaunders@mozilla.com>
5047
5048 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
5049 * c-pragma.c (push_alignment): Adjust.
5050 (handle_pragma_push_options): Likewise.
5051
661a0813
MP
50522014-05-09 Marek Polacek <polacek@redhat.com>
5053
5054 PR c/50459
5055 * c-common.c (check_user_alignment): Return -1 if alignment is error
5056 node.
5057 (handle_aligned_attribute): Don't call default_conversion on
5058 FUNCTION_DECLs.
5059 (handle_vector_size_attribute): Likewise.
5060 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
5061 (handle_sentinel_attribute): Call default_conversion and allow even
5062 integral types as an argument.
5063
2793eeab
MP
50642014-05-08 Marek Polacek <polacek@redhat.com>
5065
5066 PR c/61053
5067 * c-common.c (min_align_of_type): New function factored out from...
5068 (c_sizeof_or_alignof_type): ...here.
5069 * c-common.h (min_align_of_type): Declare.
5070
f827930a
MP
50712014-05-08 Marek Polacek <polacek@redhat.com>
5072
5073 PR c/61077
5074 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
5075 parameter type of main.
5076
ca49b74e
DD
50772014-05-07 DJ Delorie <dj@redhat.com>
5078
5079 * c-cppbuiltin.c (print_bits_of_hex): New.
5080 (builtin_define_type_minmax): Print values using hex so as not to
5081 require a pre-computed list of string values.
5082
1d60af08
KZ
50832014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
5084 Mike Stump <mikestump@comcast.net>
5085 Richard Sandiford <rdsandiford@googlemail.com>
5086
5087 * c-ada-spec.c: Include wide-int.h.
5088 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
5089 (dump_generic_ada_node): Use wide-int interfaces.
5090 * c-common.c: Include wide-int-print.h.
5091 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
5092 (pointer_int_sum): Use wide-int interfaces.
5093 (c_common_nodes_and_builtins): Use make_int_cst.
5094 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
5095 (handle_alloc_size_attribute): Use wide-int interfaces.
5096 (get_nonnull_operand): Likewise.
5097 * c-format.c (get_constant): Use tree_fits_uhwi_p.
5098 * c-lex.c: Include wide-int.h.
5099 (narrowest_unsigned_type): Take a widest_int rather than two
5100 HOST_WIDE_INTs.
5101 (narrowest_signed_type): Likewise.
5102 (interpret_integer): Update accordingly. Use wide-int interfaces.
5103 (lex_charconst): Use wide-int interfaces.
5104 * c-pretty-print.c: Include wide-int.h.
5105 (pp_c_integer_constant): Use wide-int interfaces.
5106 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
5107 INT_CST_LT_UNSIGNED.
5108
b15458be
RB
51092014-05-06 Richard Biener <rguenther@suse.de>
5110
5111 * c-opts.c (c_common_post_options): For -freestanding,
5112 -fno-hosted and -fno-builtin disable pattern recognition
5113 if not enabled explicitely.
5114
6577374e
MP
51152014-05-02 Marek Polacek <polacek@redhat.com>
5116
5117 * c.opt (Wsizeof-pointer-memaccess): Describe option.
5118
d00887e8
MP
51192014-05-01 Marek Polacek <polacek@redhat.com>
5120
5121 PR c/43245
5122 * c.opt (Wdiscarded-qualifiers): Add.
5123
f8ed5150
MP
51242014-04-30 Marek Polacek <polacek@redhat.com>
5125
5126 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
5127 INT_MIN / -1 sanitization only for integer types.
5128
45484dcf
MP
51292014-04-25 Marek Polacek <polacek@redhat.com>
5130
5131 PR c/18079
5132 * c-common.c (handle_noinline_attribute): Warn if the attribute
5133 conflicts with always_inline attribute.
5134 (handle_always_inline_attribute): Warn if the attribute conflicts
5135 with noinline attribute.
5136
38e514c0
MP
51372014-04-25 Marek Polacek <polacek@redhat.com>
5138
5139 PR c/60156
5140 * c-common.c (check_main_parameter_types): Warn about variadic main.
5141
44875f92
MS
51422014-04-24 Mike Stump <mikestump@comcast.net>
5143
5144 * c.opt (Wshadow-ivar): Default to on.
5145
dcaaa5a0
DP
51462014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
5147
5148 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
5149
c07d7c02
MP
51502014-04-23 Marek Polacek <polacek@redhat.com>
5151
5152 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
5153
1c33c9b7
JJ
51542014-04-22 Jakub Jelinek <jakub@redhat.com>
5155
5156 PR sanitizer/60275
5157 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
5158 if flag_sanitize_undefined_trap_on_error.
5159 (ubsan_instrument_division, ubsan_instrument_shift,
5160 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
5161 if !flag_sanitize_recover.
5162
793c625f
MG
51632014-04-22 Marc Glisse <marc.glisse@inria.fr>
5164
5165 PR libstdc++/43622
5166 * c-common.c (registered_builtin_types): Make non-static.
5167 * c-common.h (registered_builtin_types): Declare.
5168
b0f1bf36
RB
51692014-04-14 Richard Biener <rguenther@suse.de>
5170 Marc Glisse <marc.glisse@inria.fr>
5171
5172 PR c/60819
5173 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
5174 apply may-alias the scalar pointer type when applicable.
5175
3b07fa4a
IZ
51762014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
5177
5178 PR middle-end/60467
5179 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
5180 as possible argument for Cilk_spawn.
5181
cbbd2b1c
TB
51822014-04-11 Tobias Burnus <burnus@net-b.de>
5183
5184 PR c/60194
5185 * c.opt (Wformat-signedness): Add
5186 * c-format.c(check_format_types): Use it.
5187
6415bd5d
JM
51882014-04-11 Jason Merrill <jason@redhat.com>
5189
5190 PR c++/57926
5191 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
5192 default_conversion for an array argument.
5193
6525783a
MP
51942014-04-08 Marek Polacek <polacek@redhat.com>
5195
5196 PR sanitizer/60745
5197 * c-ubsan.c: Include asan.h.
5198 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
5199
880a467b
NS
52002014-04-03 Nathan Sidwell <nathan@codesourcery.com>
5201
5202 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
5203
7b59ff2d
MP
52042014-04-02 Marek Polacek <polacek@redhat.com>
5205
5206 * c-common.h (c_expand_expr): Remove declaration.
5207
8edbfaa6
JJ
52082014-03-28 Jakub Jelinek <jakub@redhat.com>
5209
5210 PR c++/60689
5211 * c-common.c (add_atomic_size_parameter): When creating new
5212 params vector, push the size argument first.
5213
07d72e1d
JJ
52142014-03-26 Jakub Jelinek <jakub@redhat.com>
5215
5216 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
5217 ubsan_instrument_vla, ubsan_instrument_return): Adjust
5218 ubsan_create_data callers.
5219
b35e0fa0
JJ
52202014-03-22 Jakub Jelinek <jakub@redhat.com>
5221
5222 PR debug/60603
5223 * c-opts.c (c_finish_options): Restore cb_file_change call to
5224 <built-in>.
5225
39a1ebb3
JJ
52262014-03-13 Jakub Jelinek <jakub@redhat.com>
5227
5228 PR middle-end/36282
5229 * c-pragma.c (apply_pragma_weak): Only look at
5230 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
5231 DECL_ASSEMBLER_NAME_SET_P (decl).
5232 (maybe_apply_pending_pragma_weaks): Exit early if
5233 vec_safe_is_empty (pending_weaks) rather than only when
5234 !pending_weaks.
5235 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
5236 set assembler name back to NULL afterwards.
5237
a07f6ed2
JM
52382014-03-11 Jason Merrill <jason@redhat.com>
5239
5240 * c.opt: Add -std=gnu++14.
5241
75b107f5
IB
52422014-03-11 Ian Bolton <ian.bolton@arm.com>
5243
5244 * c-opts.c (c_common_post_options): Don't override
5245 -ffp-contract=fast if unsafe-math-optimizations is on.
5246
f42c637e
PM
52472014-03-08 Paulo Matos <paulo@matos-sorge.com>
5248
22b15758 5249 * c.opt: Enable LTO FE for fshort-double.
f42c637e 5250
70e24808
JM
52512014-03-07 Jason Merrill <jason@redhat.com>
5252
5253 * c.opt: Add -std=c++14.
5254
3af9c5e9
MP
52552014-03-06 Marek Polacek <polacek@redhat.com>
5256
5257 PR c/60197
5258 * cilk.c (contains_cilk_spawn_stmt): New function.
5259 (contains_cilk_spawn_stmt_walker): Likewise.
5260 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
5261 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
5262
b3bdf019
JJ
52632014-03-03 Jakub Jelinek <jakub@redhat.com>
5264
5265 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
5266 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
5267 even when flag_preprocess_only.
5268
ca7e759d
JM
52692014-02-26 Jason Merrill <jason@redhat.com>
5270
5271 PR c++/59231
5272 PR c++/11586
5273 * c-common.c (shorten_compare): Don't check
5274 c_inhibit_evaluation_warnings.
5275
28e41874
JJ
52762014-02-19 Jakub Jelinek <jakub@redhat.com>
5277
cca615af
JJ
5278 PR c/37743
5279 * c-common.c (c_common_nodes_and_builtins): When initializing
5280 c_uint{16,32,64}_type_node, also set corresponding
5281 uint{16,32,64}_type_node to the same value.
5282
28e41874
JJ
5283 PR c++/60267
5284 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
5285 for PRAGMA_IVDEP if flag_preprocess_only.
5286
c2bf53a1
JJ
52872014-02-12 Jakub Jelinek <jakub@redhat.com>
5288
5289 PR c/60101
5290 * c-common.c (merge_tlist): If copy is true, call new_tlist,
5291 if false, add ADD itself, rather than vice versa.
5292 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
5293 copy. For SAVE_EXPR, only call merge_tlist once.
5294
8fcbce72
JJ
52952014-02-08 Jakub Jelinek <jakub@redhat.com>
5296
5297 PR middle-end/60092
5298 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
5299 and tree_to_uhwi.
5300 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
5301 functions.
5302 (c_common_attribute_table): Add alloc_align and assume_aligned
5303 attributes.
5304
0a756a3f
MP
53052014-02-06 Marek Polacek <polacek@redhat.com>
5306
5307 PR c/60087
5308 * c-common.c (warn_for_sign_compare): Call warning_at with location
5309 instead of warning.
5310
7ec4847a
MP
53112014-02-05 Marek Polacek <polacek@redhat.com>
5312
5313 PR c/53123
5314 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
5315 statement.
5316
66f20604
MP
53172014-02-04 Marek Polacek <polacek@redhat.com>
5318
5319 PR c/60036
5320 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
5321 SAVE_EXPR.
5322
5d77fb19
MG
53232014-02-03 Marc Glisse <marc.glisse@inria.fr>
5324
5325 PR c++/53017
5326 PR c++/59211
5327 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
5328 handle_vector_size_attribute, handle_nonnull_attribute): Call
5329 default_conversion on the attribute argument.
5330 (handle_nonnull_attribute): Increment the argument number.
5331
81e5eca8
MP
53322014-01-31 Marek Polacek <polacek@redhat.com>
5333
5334 PR c/59963
5335 * c-common.c (add_atomic_size_parameter): Pass vNULL to
5336 build_function_call_vec.
5337 (resolve_overloaded_builtin): Likewise.
5338 * c-common.h (build_function_call_vec): Adjust declaration.
5339
68fca595
MP
53402014-01-30 Marek Polacek <polacek@redhat.com>
5341
5342 PR c/59940
5343 * c-common.h (unsafe_conversion_p): Adjust declaration.
5344 (warnings_for_convert_and_check): Likewise.
5345 (convert_and_check): Likewise.
5346 * c-common.c (unsafe_conversion_p): Add location parameter. Call
5347 expansion_point_location_if_in_system_header on it.
5348 (warnings_for_convert_and_check): Add location parameter. Call
5349 expansion_point_location_if_in_system_header on it. Use it.
5350 (convert_and_check): Add location parameter. Use it.
5351 (conversion_warning): Likewise.
5352 (c_add_case_label): Adjust convert_and_check calls.
5353 (scalar_to_vector): Adjust unsafe_conversion_p calls.
5354
b72271b9
BI
53552014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
5356
5357 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
5358 flag_cilkplus.
5359 * c-pragma.c (init_pragma): Likewise.
5360 * c.opt: Likewise.
5361
393e8e8b
MP
53622014-01-23 Marek Polacek <polacek@redhat.com>
5363
5364 PR c/59846
5365 * c-common.c (shorten_compare): Add location_t parameter.
5366 * c-common.h (shorten_binary_op): Adjust declaration.
5367
f04dda30
MP
53682014-01-23 Marek Polacek <polacek@redhat.com>
5369
5370 PR c/58346
5371 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
5372 * c-common.h: Declare it.
5373
621955cb
EB
53742014-01-20 Eric Botcazou <ebotcazou@adacore.com>
5375
5376 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
5377 * c-ada-spec.c (dump_ads): Likewise.
5378 (cpp_check): Likewise.
5379 (dump_ada_specs): Likewise.
5380
53812014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
5382
5383 PR c++/49718
5384 * c-common.c (handle_no_instrument_function_attribute): Allow
5385 no_instrument_function attribute in class member
5386 definition/declaration.
5387
241f845a
JJ
53882014-01-15 Jakub Jelinek <jakub@redhat.com>
5389
5390 PR c/58943
5391 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
5392 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
5393 being COMPOUND_EXPR.
5394 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
5395 operand a SAVE_EXPR and second MODIFY_EXPR.
5396
e83b8e2e
JJ
53972014-01-09 Jakub Jelinek <jakub@redhat.com>
5398
5399 PR target/58115
5400 * c-pch.c (c_common_write_pch): Call
5401 prepare_target_option_nodes_for_pch.
5402
23a5b65a
RS
54032014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
5404
5405 Update copyright years
5406
f9030485
RS
54072014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
5408
5409 * array-notation-common.c, c-cilkplus.c: Use the standard form for
5410 the copyright notice.
5411
f2aa696b
EB
54122013-12-28 Eric Botcazou <ebotcazou@adacore.com>
5413
5414 * c-ada-spec.c (print_constructor): New function.
5415 (print_destructor): Retrieve the origin of the destructor.
5416 (print_ada_declaration): Revamp handling of constructors/destructors.
5417
3f8257db 54182013-12-23 Stuart Hastings <stuart@apple.com>
1f26ac87
JM
5419 Bill Maddox <maddox@google.com>
5420 Jason Merrill <jason@redhat.com>
5421
5422 * c.opt: Add -fdeclone-ctor-dtor.
5423 * c-opts.c (c_common_post_options): Default to on iff -Os.
5424
41958c28
BI
54252013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
5426
5427 * c-common.c (c_common_attribute_table): Added "cilk simd function"
5428 attribute.
5429 * c-pragma.h (enum pragma_cilk_clause): Remove.
5430 (enum pragma_omp_clause): Added the following fields:
5431 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
5432 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
5433 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
5434 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
5435 PRAGMA_CILK_CLAUSE_UNIFORM.
5436
b1726d6c 5437
12893402
BI
54382013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
5439
5440 * cilk.c (cilk_outline): Made this function non-static.
5441 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
5442 (create_cilk_wrapper): Added a new parameter: a function pointer.
5443 (c_install_body_w_frame_cleanup): Remove
5444 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
5445 * c-common.h (cilk_outline): New prototype.
5446 (gimplify_cilk_spawn): Removed two parameters.
5447 (cilk_install_body_with_frame_cleanup): New prototype.
5448 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
5449 CILK_SPAWN_STMT case.
5450
085b42ed
BS
54512013-12-11 Bernd Schmidt <bernds@codesourcery.com>
5452
2ce064c3
BS
5453 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
5454
085b42ed
BS
5455 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
5456 (int_array_type_node): Remove.
5457 * c-common.c (c_common_nodes_and_builtins): Don't build it.
5458
9e36c9ed
MP
54592013-12-05 Marek Polacek <polacek@redhat.com>
5460
5461 PR c/52023
5462 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
5463 [ADJUST_FIELD_ALIGN].
5464
296674db
JM
54652013-12-04 Joseph Myers <joseph@codesourcery.com>
5466
5467 PR c/52023
5468 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
5469 and check field alignment if set.
5470 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
5471 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
5472
b1726d6c 54732013-12-04 Jakub Jelinek <jakub@redhat.com>
31e071ae
MP
5474 Marek Polacek <polacek@redhat.com>
5475
5476 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
5477 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
5478
d7947e19
L
54792013-11-29 H.J. Lu <hongjiu.lu@intel.com>
5480
5481 PR c/59309
5482 * cilk.c (gimplify_cilk_spawn): Properly handle function without
5483 arguments.
5484
fad7652e
JJ
54852013-11-29 Jakub Jelinek <jakub@redhat.com>
5486
5487 PR c/59280
5488 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
5489 goto invalid. If it is error_mark_node, don't issue further
5490 diagnostics.
5491
8b5e1202
SO
54922013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
5493
5494 * c.opt (Wopenmp-simd): New.
5495
0a508bb6
JJ
54962013-11-22 Jakub Jelinek <jakub@redhat.com>
5497
5498 * c-ubsan.h (ubsan_instrument_return): New prototype.
5499 * c-ubsan.c (ubsan_instrument_return): New function.
5500
2fb9a547
AM
55012013-11-22 Andrew MacLeod <amacleod@redhat.com>
5502
5503 * c-common.c: Add required include files from gimple.h.
5504 * c-gimplify.c: Likewise
5505 * cilk.c: Likewise
5506
8400e75e
DM
55072013-11-22 David Malcolm <dmalcolm@redhat.com>
5508
5509 * c-common.c (unsafe_conversion_p): Remove use of
5510 EXPR_LOC_OR_HERE macro.
5511 (conversion_warning): Likewise.
5512 (warnings_for_convert_and_check): Likewise.
5513 (warn_for_collisions_1): Likewise.
5514 (shorten_compare): Likewise, and remove use of in_system_header
5515 macro, using the location from the former.
5516 * c-lex.c (dump_one_header): Remove use of input_filename macro.
5517 (cb_def_pragma): Remove use of in_system_header macro.
5518 (lex_string): Likewise.
5519 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
5520
eb1ce453
KZ
55212013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
5522 Mike Stump <mikestump@comcast.net>
5523 Richard Sandiford <rdsandiford@googlemail.com>
5524
5525 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
5526 instead of TREE_INT_CST_LOW, in cases where there is a protecting
5527 tree_fits_shwi_p or tree_fits_uhwi_p.
5528 (dump_generic_ada_node): Likewise.
5529 * c-format.c (check_format_arg): Likewise.
5530 * c-pretty-print.c (pp_c_integer_constant): Likewise.
5531
6b3b8c27
KZ
55322013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
5533
5534 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
5535
49b0aa18
JC
55362013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
5537
5538 PR c/53001
5539 * c-common.c (unsafe_conversion_p): Make this function
5540 return an enumeration with more detail.
5541 (conversion_warning): Use the new return type of
5542 unsafe_conversion_p to separately warn either about conversions
5543 that lower floating point number precision or about the other
5544 kinds of conversions.
5545 * c-common.h (enum conversion_safety): New enumeration.
8e745a17
JJ
5546 (unsafe_conversion_p): switching return type to
5547 conversion_safety enumeration.
49b0aa18
JC
5548 * c.opt: Adding new warning -Wfloat-conversion and
5549 enabling it with -Wconversion.
5550
b826515a
BS
55512013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
5552
8e745a17
JJ
5553 * c-opts.c: Include plugin.h.
5554 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
b826515a 5555
b9a55b13
MP
55562013-11-19 Marek Polacek <polacek@redhat.com>
5557
5558 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
5559 call.
5560 (ubsan_instrument_shift): Likewise.
5561 (ubsan_instrument_vla): Likewise.
5562
7d362f6c
RS
55632013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5564
5565 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
5566 cast to unsigned type.
5567
386b1f1f
RS
55682013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5569
5570 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
5571 tree_low_cst.
5572 (complete_array_type): Update comment to refer to tree_to_[su]hwi
5573 rather than tree_low_cst.
5574
ae7e9ddd
RS
55752013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5576
5577 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
5578 tree_to_uhwi throughout.
5579
9439e9a1
RS
55802013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5581
5582 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
5583 tree_low_cst (..., 0) with tree_to_shwi throughout.
5584
cc269bb6
RS
55852013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5586
5587 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
5588 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
5589
9541ffee
RS
55902013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5591
5592 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
5593 host_integerp (..., 0) with tree_fits_shwi_p throughout.
5594
c02065fc
AH
55952013-11-15 Aldy Hernandez <aldyh@redhat.com>
5596
5597 * c-cilkplus.c: New file.
5598 * c-common.c (readonly_error): Add location argument.
5599 * c-common.h (readonly_error): Same.
5600 (c_finish_cilk_clauses): Protoize.
5601 (c_check_cilk_loop): Same.
5602 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
5603 Do not fail on error_mark_node.
5604 Abstract increment canonicalization to here...
5605 (c_omp_for_incr_canonicalize_ptr): New.
5606 c-pragma.c (init_pragma): Register "simd" pragma.
5607 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
5608 (enum pragma_cilk_clause): New.
5609
9cc65f15
RS
56102013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
5611
5612 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
5613 wchar_type and host_integerp checks.
5614
18f429e2
AM
56152013-11-14 Andrew MacLeod <amacleod@redhat.com>
5616
5617 * c-common.c: Likewise.
5618 * c-gimplify.c: Likewise.
5619 * cilk.c: Likewise.
5620
d8a2d370
DN
56212013-11-14 Diego Novillo <dnovillo@google.com>
5622
5623 * c-common.c: Include fold-const.h.
5624 Include stor-layout.h.
5625 Include calls.h.
5626 Include stringpool.h.
5627 Include attribs.h.
5628 Include varasm.h.
5629 Include trans-mem.h.
5630 * c-cppbuiltin.c: Include stor-layout.h.
5631 Include stringpool.h.
5632 * c-format.c: Include stringpool.h.
5633 * c-lex.c: Include stringpool.h.
5634 Include stor-layout.h.
5635 * c-pragma.c: Include stringpool.h.
5636 Include attribs.h.
5637 Include varasm.h.
5638 Include gcc-symtab.h.
5639 * c-pretty-print.c: Include stor-layout.h.
5640 Include attribs.h.
5641 * cilk.c: Include stringpool.h.
5642 Include calls.h.
5643
38b7bc7f
JM
56442013-11-13 Joseph Myers <joseph@codesourcery.com>
5645
5646 * c-common.h (enum rid): Add RID_AUTO_TYPE.
5647 * c-common.c (c_common_reswords): Add __auto_type.
5648 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
5649
45b0be94
AM
56502013-11-12 Andrew MacLeod <amacleod@redhat.com>
5651
18f429e2
AM
5652 * c-common.c: Include gimplify.h.
5653 * c-gimplify.c: Likewise.
5654 * cilk.c: Likewise.
5655 * c-omp.c: Include gimple-expr.h instead of gimple.h.
5656 * c-ubsan.c: Don't include gimple.h.
45b0be94 5657
582d9b50
JM
56582013-11-12 Joseph Myers <joseph@codesourcery.com>
5659
5660 * c-common.c (c_common_reswords): Add _Thread_local.
5661
6b28e197
JM
56622013-11-09 Joseph Myers <joseph@codesourcery.com>
5663
5664 * c-common.c (atomic_size_supported_p): New function.
5665 (resolve_overloaded_atomic_exchange)
5666 (resolve_overloaded_atomic_compare_exchange)
5667 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
5668 Use it instead of comparing size with a local list of sizes.
5669
267bac10
JM
56702013-11-07 Andrew MacLeod <amacleod@redhat.com>
5671 Joseph Myers <joseph@codesourcery.com>
5672
5673 * c-common.h (enum rid): Add RID_ATOMIC.
5674 * c-common.c (c_common_reswords): Add _Atomic.
5675 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
5676 (keyword_is_type_qualifier): Accept RID_ATOMIC.
5677 * c-format.c (check_format_types): Check for extra _Atomic
5678 qualifiers in format argument.
5679 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
5680 (pp_c_type_qualifier_list): Mention _Atomic in comment.
5681
5157b91e
TB
56822013-11-06 Tobias Burnus <burnus@net-b.de>
5683
5684 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
5685
6dbe0958
JM
56862013-11-06 Joseph Myers <joseph@codesourcery.com>
5687
5688 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
5689 standards modes.
5690 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
5691 to mean lack of IEEE 754 support.
5692
e8ff5196
TB
56932013-11-05 Tobias Burnus <burnus@net-b.de>
5694
5695 * c.opt (-Wdate-time): New option
5696 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
5697
254a0760
JM
56982013-11-05 Joseph Myers <joseph@codesourcery.com>
5699
5700 * c-cppbuiltin.c (cpp_iec_559_value): Test
5701 flag_excess_precision_cmdline not flag_excess_precision.
5702
6d7f7e0a
TB
57032013-11-05 Tobias Burnus <burnus@net-b.de>
5704
5705 * c.opt (fopenmp-simd): New option.
5706 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
5707 (omp_pragmas): ... this new struct.
5708 (c_pp_lookup_pragma): Also walk omp_pragmas.
5709 (init_pragma): Init pragmas for -fopenmp-simd.
5710
55a7f02f
MP
57112013-11-04 Marek Polacek <polacek@redhat.com>
5712
5713 PR c++/58979
5714 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
5715
9193fb05
JM
57162013-11-04 Joseph Myers <joseph@codesourcery.com>
5717
5718 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
5719 New functions.
5720 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
5721
94159ecf
EB
57222013-11-04 Eric Botcazou <ebotcazou@adacore.com>
5723
5724 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
5725 (dump_ada_specs): Adjust prototype of second callback.
5726 * c-ada-spec.c (cpp_check): New global variable.
5727 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
5728 (print_generic_ada_decl): Likewise.
5729 (has_static_fields): Change return type to bool and add guard.
5730 (has_nontrivial_methods): New predicate.
5731 (is_tagged_type): Change return type to bool.
5732 (separate_class_package): Call has_nontrivial_methods.
5733 (pp_ada_tree_identifier): Minor tweaks.
5734 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
5735 (dump_ada_array_domains): Likewise.
5736 (dump_ada_array_type): Likewise.
5737 (dump_template_types): Remove cpp_check parameter and do not pass it to
5738 dump_generic_ada_node.
5739 (dump_ada_template): Likewise.
5740 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
5741 recursively.
5742 (print_ada_methods): Change return type to integer. Remove cpp_check
5743 parameter and do not pass it down.
5744 (dump_nested_types): Remove cpp_check parameter and do not pass it to
5745 dump_generic_ada_node.
5746 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
5747 accessing methods.
5748 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
5749 down. Use has_nontrivial_methods to recognize C++ classes. Use return
5750 value of print_ada_methods.
5751 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
5752 Set cpp_check to it before invoking dump_ada_nodes.
5753 (dump_ada_specs): Likewise.
5754
b906f4ca
MP
57552013-11-03 Marek Polacek <polacek@redhat.com>
5756
5757 * c-ubsan.c: Don't include hash-table.h.
5758 (ubsan_instrument_vla): New function.
5759 * c-ubsan.h: Declare it.
5760
5e20cdc9
DM
57612013-10-31 David Malcolm <dmalcolm@redhat.com>
5762
5763 Automated part of renaming of symtab_node_base to symtab_node.
5764
5765 Patch autogenerated by rename_symtab.py from
5766 https://github.com/davidmalcolm/gcc-refactoring-scripts
5767 revision 58bb219cc090b2f4516a9297d868c245495ee622
5768
5769 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
5770 symtab_node_base to symtab_node.
5771
7057e645
ESR
57722013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
5773
8e745a17 5774 Implement C++14 digit separators.
7057e645
ESR
5775 * c-lex.c (interpret_float): Remove digit separators from scratch string
5776 before building real literal.
5777
193ea7bc
JJ
57782013-10-30 Jakub Jelinek <jakub@redhat.com>
5779
5780 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
5781
939b37da
BI
57822013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
5783
5784 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
5785 fields.
5786 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
5787 enabled.
5788 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
5789 (insert_cilk_frame): New prototype.
5790 (cilk_init_builtins): Likewise.
5791 (gimplify_cilk_spawn): Likewise.
5792 (c_cilk_install_body_w_frame_cleanup): Likewise.
5793 (cilk_detect_spawn_and_unwrap): Likewise.
5794 (cilk_set_spawn_marker): Likewise.
5795 (build_cilk_sync): Likewise.
5796 (build_cilk_spawn): Likewise.
5797 * cilk.c: New file.
5798
67348ccc
DM
57992013-10-29 David Malcolm <dmalcolm@redhat.com>
5800
5801 Patch autogenerated by refactor_symtab.py from
5802 https://github.com/davidmalcolm/gcc-refactoring-scripts
5803 revision 58bb219cc090b2f4516a9297d868c245495ee622
5804
5805 * c-gimplify.c (c_genericize): Update for conversion of symtab types
5806 to a true class hierarchy.
5807 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
5808
d570872d
RS
58092013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
5810
5811 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
5812
98906124
JL
58132013-10-26 Jeff Law <law@redhat.com>
5814
adfac8df
JJ
5815 * c-common.c (c_define_builtins): Remove mudflap support.
5816 * c.opt: Ignore and warn for mudflap options.
98906124 5817
d73749df 58182013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
5819
5820 PR other/33426
5821 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
5822 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
5823
3f04b1bb
JM
58242013-10-23 Jason Merrill <jason@redhat.com>
5825
5826 * c-format.c (gcc_cxxdiag_char_table): Add %X.
5827
acf0174b
JJ
58282013-10-11 Jakub Jelinek <jakub@redhat.com>
5829
acd15a28
JJ
5830 * c-common.h (omp_clause_mask::operator !=): New method.
5831 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
5832 instead of if (mask & something) tests everywhere.
5833
acf0174b
JJ
5834 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
5835 201307 instead of 201107.
5836 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
5837 (c_common_attribute_table): Add "omp declare target" and
5838 "omp declare simd" attributes.
5839 (handle_omp_declare_target_attribute,
5840 handle_omp_declare_simd_attribute): New functions.
5841 * c-omp.c: Include c-pragma.h.
5842 (c_finish_omp_taskgroup): New function.
5843 (c_finish_omp_atomic): Add swapped argument, if true,
5844 build the operation first with rhs, lhs arguments and use NOP_EXPR
5845 build_modify_expr.
5846 (c_finish_omp_for): Add code argument, pass it down to make_code.
5847 (c_omp_split_clauses): New function.
5848 (c_split_parallel_clauses): Removed.
5849 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
5850 c_omp_declare_simd_clauses_to_decls): New functions.
5851 * c-common.h (omp_clause_mask): New type.
5852 (OMP_CLAUSE_MASK_1): Define.
5853 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
5854 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
5855 omp_clause_mask::operator |, omp_clause_mask::operator &,
5856 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
5857 omp_clause_mask::operator ==): New methods.
5858 (enum c_omp_clause_split): New.
5859 (c_finish_omp_taskgroup): New prototype.
5860 (c_finish_omp_atomic): Add swapped argument.
5861 (c_finish_omp_for): Add code argument.
5862 (c_omp_split_clauses): New prototype.
5863 (c_split_parallel_clauses): Removed.
5864 (c_omp_declare_simd_clauses_to_numbers,
5865 c_omp_declare_simd_clauses_to_decls): New prototypes.
5866 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
5867 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
5868 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
5869 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
5870 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
5871 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
5872 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
5873 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
5874 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
5875 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
5876 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
5877 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
5878 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
5879 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
5880 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
5881 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
5882 PRAGMA_OMP_CLAUSE_UNIFORM.
5883
826cacfe
MG
58842013-10-09 Marc Glisse <marc.glisse@inria.fr>
5885
5886 PR tree-optimization/20318
5887 * c-common.c (handle_returns_nonnull_attribute): New function.
5888 (c_common_attribute_table): Add returns_nonnull.
5889
2284b034
MG
58902013-10-03 Marc Glisse <marc.glisse@inria.fr>
5891
5892 PR c++/19476
5893 * c.opt (fcheck-new): Move to common.opt.
5894
b56e9788
MP
58952013-09-25 Marek Polacek <polacek@redhat.com>
5896 Jakub Jelinek <jakub@redhat.com>
5897
5898 PR sanitizer/58413
5899 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
5900 an expression if we can prove it is correct.
5901 (ubsan_instrument_division): Likewise. Remove unnecessary
5902 check.
5903
ce6923c5
MP
59042013-09-18 Marek Polacek <polacek@redhat.com>
5905
5906 PR sanitizer/58411
5907 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
5908 Declare it.
5909 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
5910
fb5610fb
IS
59112013-09-14 Iain Sandoe <iain@codesourcery.com>
5912
5913 PR target/48094
5914 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
5915 fobjc-gc, freplace-objc-classes): Accept for LTO.
5916
88b0e79e
JC
59172013-09-13 Jacek Caban <jacek@codeweavers.com>
5918
5919 * c-target.def: New hook
5920
c9b0866a
PC
59212013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
5922
5923 PR c++/43452
5924 * c.opt (Wdelete-incomplete): Add.
5925
0af94e6f
JR
59262013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
5927
5928 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
5929 (vector_types_compatible_elements_p): New function.
5930 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
5931 declaration.
5932 (vector_types_compatible_elements_p): Declare.
5933
7c26172c
GDR
59342013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
5935
5936 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
5937 a virtual member function.
5938 (pp_simple_type_specifier): Remove.
5939 (pp_c_type_specifier): Likewise.
5940 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
5941 Rename from pp_c_type_specifier. Adjust.
5942 (c_pretty_printer::c_pretty_printer): Do not assign to
5943 simple_type_specifier.
5944
20059c8b
GDR
59452013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
5946
5947 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
5948 member function.
5949 (c_pretty_printer::storage_class_specifier): Likewise.
5950 (c_pretty_printer::initializer): Likewise.
5951 (pp_declaration): Remove.
5952 (pp_declaration_specifiers): Likewise.
5953 (pp_abstract_declarator): Likewise.
5954 (pp_declarator): Likewise.
5955 (pp_type_id): Likewise.
5956 (pp_statement): Likewise.
5957 (pp_constant): Likewise.
5958 (pp_id_expression): Likewise.
5959 (pp_primary_expression): Likewise.
5960 (pp_unary_expression): Likewise.
5961 (pp_multiplicative_expression): Likewise.
5962 (pp_conditional_expression): Likewise.
5963 (pp_assignment_expression): Likewise.
5964 (pp_expression): Likewise.
5965 (pp_c_type_id): Likewise.
5966 (pp_c_storage_class_specifier): Likewise.
5967 * c-pretty-print.c (pp_c_type_cast): Tidy.
5968 (pp_c_pointer): Likewise.
5969 (pp_c_type_specifier): Likewise.
5970 (pp_c_parameter_type_list): Likewise.
5971 (pp_c_function_definition): Likewise.
5972 (pp_c_init_declarator): Likewise.
5973 (pp_c_initializer_list): Likewise.
5974 (pp_c_constructor_elts): Likewise.
5975 (c_pretty_printer::direct_abstract_declarator): Likewise.
5976 (c_pretty_printer::declaration_specifiers): Likewise.
5977 (c_pretty_printer::primary_expression): Likewise.
5978 (c_pretty_printer::postfix_expression): Likewise.
5979 (c_pretty_printer::type_id): Rename from pp_c_type_id.
5980 (c_pretty_printer::storage_class_specifier): Rename from
5981 pp_c_storage_class_specifier.
5982 (c_pretty_printer::initializer): Rename from pp_c_initializer.
5983 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
5984 storage_class_specifier, initializer, offset_list, flags.
5985
de5a5fa1
MP
59862013-08-30 Marek Polacek <polacek@redhat.com>
5987
5988 * c-ubsan.c: New file.
5989 * c-ubsan.h: New file.
5990
8f0e4d72
GDR
59912013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
5992
5993 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
5994 member function.
5995 (c_pretty_printer::declaration_specifiers): Likewise.
5996 (c_pretty_printer::declarator): Likewise.
5997 (c_pretty_printer::abstract_declarator): Likewise.
5998 (c_pretty_printer::direct_abstract_declarator): Likewise.
5999 (c_pretty_printer::direct_declarator): Likewise.
6000 (c_pretty_printer::function_specifier): Likewise.
6001 (pp_declaration): Adjust.
6002 (pp_declaration_specifiers): Likewise.
6003 (pp_abstract_declarator): Likewise.
6004 (pp_direct_declarator): Likewise.
6005 (pp_function_specifier): Likewise.
6006 (pp_direct_abstract_declarator): Remove as unused.
6007 (pp_c_declaration): Remove.
6008 (pp_c_declaration_specifiers): Likewise.
6009 (pp_c_declarator): Likewise.
6010 (pp_c_direct_declarator): Likewise.
6011 (pp_c_function_specifier): Likewise.
6012 (pp_c_direct_abstract_declarator): Likewise.
6013 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
6014 from pp_c_abstract_declarator. Adjust.
6015 (c_pretty_printer::direct_abstract_declarator): Rename from
6016 pp_c_direct_abstract_declarator. Adjust.
6017 (c_pretty_printer::function_specifier): Rename from
6018 pp_c_function_specifier. Adjust.
6019 (c_pretty_printer::declaration_specifiers): Rename from
6020 pp_c_declaration_specifiers. Adjust.
6021 (c_pretty_printer::direct_declarator): Rename from
6022 pp_c_direct_declarator. Adjust.
6023 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
6024 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
6025 (c_pretty_printer::c_pretty_printer): Do not assign to
6026 declaration, declaration_specifiers, declarator,
6027 direct_declarator, direct_abstract_declarator, function_specifier.
6028
00d34d3a
GDR
60292013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
6030
6031 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
6032 virtual member function.
6033 (c_pretty_printer::multiplicative_expression): Likewise.
6034 (c_pretty_printer::conditional_expression): Likewise.
6035 (c_pretty_printer::assignment_expression): Likewise.
6036 (c_pretty_printer::expression): Likewise.
6037 (pp_unary_expression): Adjust.
6038 (pp_multiplicative_expression): Likewise.
6039 (pp_assignment_expression): Likewise.
6040 (pp_conditional_expression): Likewise.
6041 (pp_expression): Likewise.
6042 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
6043 from pp_c_unary_expression. Adjust.
6044 (c_pretty_printer::multiplicative_expression): Rename from
6045 pp_c_multiplicative_expression. Adjust.
6046 (c_pretty_printer::conditional_expression): Rename from
6047 pp_c_conditional_expression. Adjust.
6048 (c_pretty_printer::assignment_expression): Rename from
6049 pp_c_assignment_expression. Adjust.
6050 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
6051 (c_pretty_printer::c_pretty_printer): Do not assign to
6052 unary_expression, multiplicative_expression,
6053 conditional_expression, expression.
6054
fb22178f
GDR
60552013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
6056
6057 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
6058 virtual member function.
6059 (pp_postfix_expression): Adjust.
6060 (pp_c_postfix_expression): Remove.
6061 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
6062 from pp_c_postfix_expression. Adjust.
6063 (c_pretty_printer::c_pretty_printer): Do not assign to
6064 postfix_expression.
6065
7ecc2600
GDR
60662013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
6067
6068 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
6069 virtua member function.
6070 (pp_primary_expression): Adjust.
6071 (pp_c_primary_expression): Remove.
6072 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
6073 from pp_c_primary_expression. Adjust.
6074 (pp_c_initializer_list): Use pp_primary_expression.
6075 (c_pretty_printer::c_pretty_printer): Do not assign to
6076 primary_expression.
6077
0691175f
GDR
60782013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
6079
6080 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
6081 * c-pretty-print.c (M_): Remove.
6082 (c_pretty_printer::translate_string): Define.
6083 (pp_c_type_specifier): Use it.
6084 (pp_c_primary_expression): Likewise.
6085 (pp_c_expression): Likewise.
6086
66dfe4c4
GDR
60872013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
6088
6089 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
6090 virtual function.
6091 (pp_c_id_expression): Remove.
6092 (pp_id_expression): Adjust.
6093 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
6094 pp_c_id_expression. Adjust.
6095 (pp_c_postfix_expression): Use pp_id_expression.
6096 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
6097
ca43e9d5
GDR
60982013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
6099
6100 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
6101 member function.
6102 (pp_constant): Adjust.
6103 (pp_c_constant): Remove.
6104 * c-pretty-print.c (c_pretty_printer::constant): Rename from
6105 pp_c_constant. Adjust.
6106 (pp_c_constant)
6107 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
6108 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
6109
da6ca2b5
GDR
61102013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
6111
6112 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
6113 (c_pretty_printer::c_pretty_printer): Declare.
6114 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
6115 c_pretty_printer_init. Adjust.
6116 (print_c_tree): Do not call c_pretty_printer_init.
6117 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
6118
65a372f4
AC
61192013-08-09 Arnaud Charlet <charlet@adacore.com>
6120
6121 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
6122
fd9b0f32
PC
61232013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
6124
6125 PR c++/58080
6126 * c-common.c (pointer_int_sum): Add bool parameter.
6127 * c-common.h (pointer_int_sum): Adjust declaration.
6128
e0aec1e9
GDR
61292013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
6130
6131 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
6132 c_pretty_printer variable.
6133
b066401f
GDR
61342013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
6135
6136 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
6137 (pp_base): Remove.
6138 (pp_c_base): Likewise. Adjust users.
6139 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
6140 (pp_c_whitespace): Do not call pp_base.
6141 (pp_c_left_paren): Likewise.
6142 (pp_c_right_paren): Likewise.
6143 (pp_c_left_brace): Likewise.
6144 (pp_c_right_brace): Likewise.
6145 (pp_c_left_bracket): Likewise.
6146 (pp_c_right_bracket): Likewise.
6147 (pp_c_dot): Likewise.
6148 (pp_c_ampersand): Likewise.
6149 (pp_c_star): Likewise.
6150 (pp_c_arrow): Likewise.
6151 (pp_c_semicolon): Likewise.
6152 (pp_c_complement): Likewise.
6153 (pp_c_exclamation): Likewise.
6154 (pp_c_direct_declarator): Likewise.
6155 (pp_c_ws_string): Likewise.
6156 (pp_c_identifier): Likewise.
6157 (pp_c_statement): Likewise.
6158 (print_c_tree): Likewise.
6159
65e5a578
ESR
61602013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
6161
6162 PR c++/58072
6163 * c-common.c (c_parse_error): Catch user-defined literal tokens and
6164 provide useful error strings.
6165
137a1a27
GDR
61662013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
6167
6168 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
6169 printer functions instead of pp_string or operators and punctuators.
6170 (dump_generic_ada_node): Likewise.
6171 * c-pretty-print.c (pp_c_type_specifier): Likewise.
6172 (pp_c_relational_expression): Likewise.
6173 (pp_c_logical_or_expression): Likewise.
6174
07838b13
GDR
61752013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
6176
6177 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
6178 functions instead of pp_character.
6179 (pp_ada_tree_identifier): Likewise.
6180 (dump_ada_double_name): Likewise.
6181 (dump_ada_function_declaration): Likewise.
6182 (dump_ada_array_domains): Likewise.
6183 (dump_template_types): Likewise.
6184 (dump_generic_ada_node): Likewise.
6185 (print_ada_declaration): Likewise.
6186 (print_ada_struct_decl): Likewise.
6187 * c-pretty-print.c (pp_c_integer_constant): Likewise.
6188
433cc7b0
TT
61892013-07-23 Tom Tromey <tromey@redhat.com>
6190
6191 * c-common.h (enum rid) <RID_GENERIC>: New constant.
6192 * c-common.c (c_common_reswords): Add _Generic.
6193
688010ba
OB
61942013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
6195
6196 * c-common.c: Fix typos.
6197 * c-common.h: Likewise.
6198
2a99e5e6
LL
61992013-07-13 Lubos Lunak <l.lunak@suse.cz>
6200
6201 PR c++/55203
6202 * c-common.c (c_common_attribute_table): Add warn_unused.
6203 (handle_warn_unused_attribute): New.
6204
c26302d5
JJ
62052013-07-10 Jakub Jelinek <jakub@redhat.com>
6206
6207 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
6208 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
6209
dfeadaa0
PC
62102013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
6211
6212 PR c++/57869
6213 * c.opt: Add Wconditionally-supported.
6214
6a2fa4b2
GS
62152013-07-08 Graham Stott <graham.stott@btinternet.com>
6216
adfac8df 6217 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
6218 unused variables l_length and l_node.
6219
ecdbd01a 62202013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
6221
6222 PR c/57821
6223 * c-common.c (complete_array_type): Delay folding first index
6224 like other indices. When folding, check for index overflow.
6225
bedc293e
MG
62262013-06-27 Marc Glisse <marc.glisse@inria.fr>
6227
6228 PR c++/57509
6229 * c-common.h (c_build_vec_perm_expr): New complain argument.
6230 * c-common.c (c_build_vec_perm_expr): Likewise.
6231 Use save_expr also in C++.
6232
604b2bfc
GDR
62332013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
6234
6235 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
6236 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
6237 * c-opts.c (c_common_post_options): Likewise.
6238
dfeadaa0 62392013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
6240
6241 * array-notation-common.c (length_mismatch_in_expr): Changed the
6242 parameter type's from a dynamic array to a vec_tree. Also removed
6243 the size parameters.
6244 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
6245 the change above.
6246
2ce86d2e
BI
62472013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
6248
6249 * c-common.h (struct cilkplus_an_parts): New structure.
6250 (struct cilkplus_an_loop_parts): Likewise.
6251 (cilkplus_extract_an_triplets): New prototype.
6252 (fix_sec_implicit_args): Likewise.
6253 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
6254 (fix_sec_implicit_args): Likewise.
604b2bfc 6255
07a6825b
BI
62562013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
6257
6258 * array-notation-common.c (find_inv_trees): Removed an unwanted
6259 typecasting.
6260 * c-common.h (struct inv_list::additional_tcodes): Changed type from
6261 enum rid to enum tree_code.
6262
08346abd
JH
62632013-06-11 Jan Hubicka <jh@suse.cz>
6264
6265 * c-common.c (handle_alias_ifunc_attribute): Do not set
6266 DECL_EXTERNAL for weakref variables.
6267 * c-pragma.c (handle_pragma_weak): Make sure aliases
6268 are not declared as external.
6269
d60f1706
BI
62702013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
6271
6272 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
6273 function from c/c-array-notation.c.
6274 (is_cilkplus_reduce_builtin): Likewise.
6275 (find_rank): Likewise.
6276 (extract_array_notation_exprs): Likewise.
6277 (replace_array_notations): Likewise.
6278 (find_inv_trees): Likewise.
6279 (replace_inv_trees): Likewise.
6280 (contains_array_notation_expr): Likewise.
6281 (find_correct_array_notation_type): Likewise.
6282 * c-common.h (struct inv_list): Moved this struct from the file
6283 c/c-array-notation.c and added a new field called additional tcodes.
6284 (length_mismatch_in_expr_p): New prototype.
6285 (is_cilkplus_reduce_builtin): Likewise.
6286 (find_rank): Likewise.
6287 (extract_array_notation_exprs): Likewise.
6288 (replace_array_notation): Likewise.
6289 (find_inv_trees): Likewise.
6290 (replace_inv_trees): Likewise.
6291 (find_correct_array_notation_type): Likewise.
dfeadaa0 6292
36536d79
BI
62932013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
6294
6295 * c-common.c (c_define_builtins): When cilkplus is enabled, the
6296 function array_notation_init_builtins is called.
6297 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
6298 * c-common.def (ARRAY_NOTATION_REF): New tree.
6299 * c-common.h (build_array_notation_expr): New function declaration.
6300 (build_array_notation_ref): Likewise.
6301 (extract_sec_implicit_index_arg): New extern declaration.
6302 (is_sec_implicit_index_fn): Likewise.
6303 (ARRAY_NOTATION_CHECK): New define.
6304 (ARRAY_NOTATION_ARRAY): Likewise.
6305 (ARRAY_NOTATION_START): Likewise.
6306 (ARRAY_NOTATION_LENGTH): Likewise.
6307 (ARRAY_NOTATION_STRIDE): Likewise.
6308 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
6309 ARRAY_NOTATION_REF.
6310 (pp_c_expression): Likewise.
6311 * c.opt (flag_enable_cilkplus): New flag.
6312 * array-notation-common.c: New file.
6313
f7716d57
JJ
63142013-05-14 Jakub Jelinek <jakub@redhat.com>
6315
6316 PR c++/57274
6317 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
6318
a5e0cd1d
MG
63192013-05-10 Marc Glisse <marc.glisse@inria.fr>
6320
6321 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
6322 vectors.
6323
f6bc1c4a
HS
63242013-05-07 Han Shen <shenhan@google.com>
6325
6326 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
6327
3f12f6e9
SKS
63282013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
6329
6330 * c-common.c (check_user_alignment): Emit error for negative values.
6331
61949153
PC
63322013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6333
6334 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
6335
e93e18e9
PC
63362013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6337
6338 * c-cppbuiltin.c (c_cpp_builtins): Do not define
6339 __GXX_EXPERIMENTAL_CXX1Y__.
6340
44d90fe1 63412013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
8e745a17 6342 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
44d90fe1
PC
6343
6344 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
6345 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
6346 to simply use OPT_Wpointer_arith.
6347 (c_sizeof_or_alignof_type): Likewise.
6348
13f39b2e
PC
63492013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6350
6351 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
6352
4b84d650
JJ
63532013-04-12 Jakub Jelinek <jakub@redhat.com>
6354
6355 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
6356 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
6357 specifiers.
6358
fb037b5d
SB
63592013-04-07 Steven Bosscher <steven@gcc.gnu.org>
6360
6361 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
6362
4e856798
PC
63632013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
6364
6365 * c-common.c (pointer_int_sum): Remove dead code.
6366
4b1baac8
RS
63672013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
6368
6369 PR middle-end/56524
6370 * c-common.c (handle_optimize_attribute): Don't call
6371 save_optabs_if_changed.
6372
0b50e654
JJ
63732013-03-05 Jakub Jelinek <jakub@redhat.com>
6374
6375 PR middle-end/56461
6376 * c-pch.c (pch_init): Free target_validity at the end.
6377
48c41403
JJ
63782013-03-04 Jakub Jelinek <jakub@redhat.com>
6379
6380 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
6381
e664c61c
KS
63822013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
6383 Jakub Jelinek <jakub@redhat.com>
6384
6385 PR sanitizer/56454
6386 * c-common.c (handle_no_sanitize_address_attribute): New function.
6387 (c_common_attribute_table): Add no_sanitize_address attribute.
6388 (handle_no_address_safety_analysis_attribute): Add
6389 no_sanitize_address attribute, not no_address_safety_analysis
6390 attribute.
6391
a475fd3d 63922013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
6393
6394 PR target/52555
6395 * c-common.c (handle_optimize_attribute): Call
6396 save_optabs_if_changed.
6397
f6007d99
JJ
63982013-02-18 Jakub Jelinek <jakub@redhat.com>
6399 Steven Bosscher <steven@gcc.gnu.org>
6400
6401 PR pch/54117
6402 * c-opts.c (c_common_post_options): If debug info is enabled
6403 and non-dwarf*, refuse to load PCH files and when writing PCH
6404 file warn.
6405
cf35e2b1
JJ
64062013-02-05 Jakub Jelinek <jakub@redhat.com>
6407
6408 PR middle-end/56167
6409 * c-common.c (handle_error_attribute): Fix condition.
6410
32887460
JJ
64112013-01-30 Jakub Jelinek <jakub@redhat.com>
6412
6413 PR c++/55742
6414 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
6415
5af057d8
JM
64162013-01-18 Jason Merrill <jason@redhat.com>
6417
6418 PR target/54908
6419 * c.opt (-fextern-tls-init): New.
6420 * c-opts.c (c_common_post_options): Handle it.
6421
cc83c823
JJ
64222013-01-09 Jakub Jelinek <jakub@redhat.com>
6423
6424 PR c/48418
6425 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
6426 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
6427 and is either negative or bigger or equal to type precision
6428 of the first operand.
6429
a859517f
MP
64302012-12-03 Marek Polacek <polacek@redhat.com>
6431
6432 PR c/55570
6433 * c-common.c (check_user_alignment): Swap order of tests,
6434 check TREE_CODE first.
6435
2d7aa578
ESR
64362012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
6437
6438 PR c++/52654
6439 * c-common.h (overflow_type): New enum.
6440 (build_userdef_literal): Add overflow_type argument.
6441 (tree_userdef_literal): Add overflow_type.
6442 (USERDEF_LITERAL_OVERFLOW): New access macro.
6443 * c-common.c (build_userdef_literal): Add overflow_type
6444 argument.
6445 * c-lex.c (c_lex_with_flags): Add overflow_type to
6446 build_userdef_literal calls.
6447 (interpret_integer, interpret_float): Add overflow_type argument.
6448
cc3c4f62
RB
64492012-11-28 Richard Biener <rguenther@suse.de>
6450
6451 PR c/35634
6452 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
6453 here and use a type with proper overflow behavior for types that would
6454 need to be promoted for the arithmetic.
6455
77bc5132
JJ
64562012-11-23 Jakub Jelinek <jakub@redhat.com>
6457
6458 PR sanitizer/55435
6459 * c-common.c (handle_no_address_safety_analysis_attribute): New
6460 function.
6461 (c_common_attribute_table): Add no_address_safety_analysis.
6462
5dc99c46
SB
64632012-11-16 Simon Baldwin <simonb@google.com>
6464
6465 * c.opt: Add f[no-]canonical-system-headers.
6466 * c-opts.c (c_common_handle_option): Handle
6467 OPT_fcanonical_system_headers.
6468
a4a0016d
ESR
64692012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
6470
6471 PR c++/54413
6472 * c-opts.c (c_common_handle_option): Set new flags.
6473 * c.opt: Describe new flags.
6474
7dbb85a7
JM
64752012-11-09 Jason Merrill <jason@redhat.com>
6476
6477 * c.opt (Wabi-tag): New.
6478
ad7bac31
AK
64792012-11-09 Andi Kleen <ak@linux.intel.com>
6480
6481 PR 55139
6482 * c-common.c (get_atomic_generic_size): Mask with
8e745a17 6483 MEMMODEL_MASK
ad7bac31 6484
7332899a
MLI
64852012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
6486
6487 PR c/53063
6488 * c.opt (Wformat): Make it Alias Wformat=1.
6489 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
6490 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
6491 LangEnabledBy.
6492 (Wformat=): RejectNegative. Use LangEnabledBy.
6493 (Wnonnull): Use LangEnabledBy.
6494 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
6495 * c-format.c (set_Wformat): Delete.
6496 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
8e745a17
JJ
6497 (maybe_read_dollar_number): Likewise.
6498 (avoid_dollar_number): Likewise.
6499 (finish_dollar_format_checking): Likewise.
6500 (check_format_info): Likewise.
6501 (check_format_info_main): Likewise.
6502 (check_format_types): Likewise.
6503 (format_type_warning): Likewise.
6504 * c-common.c (int): Likewise.
6505 (check_function_sentinel): Likewise.
6506 * c-common.h (warn_format,set_Wformat): Do not declare here.
7332899a 6507
34a180a6
MLI
65082012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
6509
6510 PR c/53063
6511 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
6512 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
6513 Use LangEnabledBy.
6514 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
6515 common.opt.
6516 (Wvariadic-macros): Init(1).
6517 * c-opts.c (c_common_handle_option): Do not handle them
6518 explicitly.
6519 (c_common_post_options): Likewise.
6520 (sanitize_cpp_opts): warn_unused_macros is now
6521 cpp_warn_unused_macros.
6522 (push_command_line_include): Likewise.
6523 * c-common.c (warn_unknown_pragmas): Do not define.
6524 * c-common.h (warn_unknown_pragmas): Do not declare.
6525
3f46d6a5
MLI
65262012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
6527
6528 PR c/51294
6529 * c-common.c (conversion_warning): Handle conditional expressions.
6530
880661a4
JW
65312012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
6532
6533 PR c++/54930
6534 * c.opt (Wreturn_local_addr): Define new option.
6535
4514a96b
JM
65362012-10-25 Jason Merrill <jason@redhat.com>
6537
f14edc1a
JM
6538 * c.opt (Wvirtual-move-assign): New.
6539
4514a96b
JM
6540 * c.opt (Winherited-variadic-ctor): New.
6541
93100c6b
MG
65422012-10-25 Marc Glisse <marc.glisse@inria.fr>
6543
6544 PR c++/54427
6545 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
6546
1efcb8c6
JM
65472012-10-23 Joseph Myers <joseph@codesourcery.com>
6548
6549 * c-common.h (pch_cpp_save_state): Declare.
6550 * c-target.def (c_preinclude): New hook.
6551 * c-opts.c (done_preinclude): New.
6552 (push_command_line_include): Handle default preincluded header.
6553 (cb_file_change): Call pch_cpp_save_state when calling
6554 push_command_line_include.
6555 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
6556 (pch_cpp_save_state): New.
6557 (pch_init): Call pch_cpp_save_state conditionally, instead of
6558 calling cpp_save_state.
6559
4a0ae68e
MLI
65602012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
6561
6562 PR c/53063
6563 PR c/40989
6564 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
6565 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
6566 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
6567 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
6568 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
6569 * c-opts.c (c_common_handle_option): Remove explicit handling from
6570 here.
6571 (c_common_post_options): Likewise.
6572
67e4210b
EB
65732012-10-18 Eric Botcazou <ebotcazou@adacore.com>
6574
6575 * c-ada-spec.c (LOCATION_COL): Delete.
6576 (compare_location): New function.
6577 (compare_node): Use it.
6578 (compare_comment): Likewise.
6579
65d4f2cd
MLI
65802012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
6581
6582 PR c/53063
6583 PR c/40989
6584 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
6585 * c-opts.c (c_common_handle_option): Do not set them here. Add
6586 comment.
6587 (c_common_post_options): Likewise.
6588
909881cb
EB
65892012-10-16 Eric Botcazou <ebotcazou@adacore.com>
6590
6591 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
6592 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
6593 Remove POINTER_TYPE handling, add large unsigned handling and use
6594 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
6595
3a785c97
JJ
65962012-10-12 Jakub Jelinek <jakub@redhat.com>
6597
6598 PR c/54381
6599 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
6600 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
6601 locs and array of 3 trees instead of just single loc and single
6602 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
6603 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
6604 For *cmp* builtins that take two sources strings report warnings
6605 about first and second source, not about destination and source.
6606
5e54f81d
MG
66072012-10-12 Marc Glisse <marc.glisse@inria.fr>
6608
6609 PR c++/53055
6610 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
6611
f5b02f1e
EB
66122012-10-11 Eric Botcazou <ebotcazou@adacore.com>
6613
6614 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
6615 declaring something coming from another file.
6616
b46dbc6c
AC
66172012-10-10 Arnaud Charlet <charlet@adacore.com>
6618
f5b02f1e 6619 PR ada/54845
b46dbc6c
AC
6620 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
6621
5d9de0d0
PC
66222012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
6623
6624 PR c++/54194
6625 * c-common.c (warn_about_parentheses): Add location_t parameter;
6626 use EXPR_LOC_OR_LOC.
6627 * c-common.h: Update declaration.
6628
a212e43f
MG
66292012-10-09 Marc Glisse <marc.glisse@inria.fr>
6630
6631 PR c++/54427
6632 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
6633 more operations. Make error messages optional.
6634 * c-common.h (enum stv_conv): Moved from c-typeck.c.
6635 (scalar_to_vector): Declare.
6636
b1db7f91
JM
66372012-10-08 Jason Merrill <jason@redhat.com>
6638
6639 * c-common.c (c_common_reswords): Add thread_local.
6640
e28d52cf
DS
66412012-10-08 Dodji Seketeli <dodji@redhat.com>
6642
6643 PR c++/53528 C++11 attribute support
6644 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
6645 new functions.
6646 * c-common.c (check_cxx_fundamental_alignment_constraints): New
6647 static function.
6648 (handle_aligned_attribute): In choose strictest alignment
6649 among many. Use new check_cxx_fundamental_alignment_constraints.
6650 (handle_transparent_union_attribute): In c++11 attribute syntax,
6651 don't look through typedefs.
6652
3b78de56
AC
66532012-10-04 Arnaud Charlet <charlet@adacore.com>
6654
6655 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
6656 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
6657 out of dumpfile.h.
6658
6040bb5f
DC
66592012-09-25 Dehao Chen <dehao@google.com>
6660
6661 PR middle-end/54645
3b78de56 6662 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
6663 map when read in the pch.
6664
3f8257db 66652012-09-18 Arnaud Charlet <charlet@adacore.com>
0b07a57e
AC
6666
6667 * c-ada-spec.c: Style fixes.
6668
3f8257db 66692012-09-18 Thomas Quinot <quinot@adacore.com>
da5182be
TQ
6670
6671 * c.opt (-fada-spec-parent): Define new command line switch.
6672 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
6673 is specified, generate binding spec as a child of the specified unit.
6674
0ccb505d
PC
66752012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
6676 Manuel López-Ibáñez <manu@gcc.gnu.org>
6677
6678 PR c++/53210
6679 * c.opt ([Winit-self]): Enabled by -Wall in C++.
6680
c583af79
AC
66812012-08-23 Arnaud Charlet <charlet@adacore.com>
6682
6683 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
6684 for pointers, and add missing Convention C pragma.
6685 (print_ada_struct_decl): Add missing aliased keyword.
6686 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
6687
1a4049e7
JJ
66882012-08-17 Jakub Jelinek <jakub@redhat.com>
6689
6690 * c-common.c (sizeof_pointer_memaccess_warning): New function.
6691 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
6692 * c-opts.c (c_common_handle_option): Enable it for -Wall.
6693 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
6694 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
6695
70b5e7dc
RG
66962012-08-10 Richard Guenther <rguenther@suse.de>
6697
6698 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
6699
f8923f7e
SB
67002012-08-07 Steven Bosscher <steven@gcc.gnu.org>
6701
6702 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
6703 instead of separate pp_newline and pp_flush.
6704 (print_c_tree): Likewise.
6705
e45abe1f
RH
67062012-07-26 Richard Henderson <rth@redhat.com>
6707
6708 * c-common.c (handle_hot_attribute): Allow labels.
6709 (handle_cold_attribute): Likewise.
6710
332f1d24
JJ
67112012-07-20 Jakub Jelinek <jakub@redhat.com>
6712
6713 PR c++/28656
6714 * c-common.c (check_function_nonnull): Handle multiple nonnull
6715 attributes properly.
6716
7ee2468b
SB
67172012-07-16 Steven Bosscher <steven@gcc.gnu.org>
6718
6719 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
6720 * c-ada-spec.c: Likewise.
6721 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
6722
ee7b28eb
SB
67232012-07-14 Steven Bosscher <steven@gcc.gnu.org>
6724
6725 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
6726 Remove code conditional on it.
6727
6bdf3519
SB
67282012-07-11 Steven Bosscher <steven@gcc.gnu.org>
6729
6730 * c-gimplify.c: Do not include basic-block.h.
6731 * c-common.c: Do not include linfuncs.h.
6732
532aafad
SB
67332012-07-08 Steven Bosscher <steven@gcc.gnu.org>
6734
6735 * c-common.h: Include tree.h.
6736
8d0d1915
JM
67372012-07-02 Jason Merrill <jason@redhat.com>
6738
6739 PR c++/53524
6740 * c-common.c (get_priority): Call default_conversion.
6741
fbc873ad
UB
67422012-07-01 Uros Bizjak <ubizjak@gmail.com>
6743
6744 * c-pch.c (c_common_write_pch): Remove unused variables.
6745
d4a10d0a
SB
67462012-06-29 Steven Bosscher <steven@gcc.gnu.org>
6747
6748 * cppspec.c: Moved from gcc/ to here.
6749
6f3a2e23
KT
67502012-06-27 Kai Tietz <ktietz@redhat.com>
6751
6752 PR preprocessor/37215
6753 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
6754
8ca92d04
SB
67552012-06-21 Steven Bosscher <steven@gcc.gnu.org>
6756
6757 * c-common.h (c_common_print_pch_checksum): Remove.
6758 * c-pch.c: Do not include output.h.
6759 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
6760 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
6761 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
6762 (struct c_pch_header): Remove.
6763 (get_ident): Update gpch version.
6764 (pch_init): Do not print executable_checksum to asm_out_file.
6765 Do not fail if there is no asm_out_file to read back from. Set
6766 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
6767 (c_common_write_pch): Verify that nothing was written to asm_out_file
6768 since pch_init was called. Do not write a c_pch_header, and do not
6769 copy from asm_out_file to the PCH.
6770 (c_common_read_pch): Do not read a c_pch_header, and do not restore
6771 the content of asm_out_file from the PCH.
6772 (c_common_print_pch_checksum): Remove.
6773 * c-opts.c (c_common_init): Print out executable_checksum directly.
6774
70f42967
SB
67752012-06-19 Steven Bosscher <steven@gcc.gnu.org>
6776
6777 * c-target.def (objc_declare_unresolved_class_reference,
6778 objc_declare_class_definition): Add new hooks.
6779
a8781821
SB
67802012-06-19 Steven Bosscher <steven@gcc.gnu.org>
6781
6782 * c-lex.c: Do not include output.h.
6783 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
6784 Remove uses of ASM_OUTPUT_IDENT.
6785
9e1a8dd1
RR
67862012-06-15 Marc Glisse <marc.glisse@inria.fr>
6787
6788 PR c++/51033
6789 * c-common.h (c_build_vec_perm_expr): Move decl here.
6790 * c-common.c (c_build_vec_perm_expr): Move definition
6791 here.
6792
6f07a821
SB
67932012-06-06 Steven Bosscher <steven@gcc.gnu.org>
6794
6795 * c.opt (fconserve-space): Turn into a no-op.
6796
9faeb493 67972012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
6798
6799 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
6800 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
6801 both the start and end of the function.
6802
a4b7d13c
SB
68032012-06-04 Steven Bosscher <steven@gcc.gnu.org>
6804
6805 * c-common.c: Do not include output.h.
6806 * c-pragma.c: Likewise.
6807
c265f413
SA
68082012-06-04 Steven Bosscher <steven@gcc.gnu.org>
6809
6810 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
6811 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
6812 (lang_decl_name): Handle namespace decls.
6813
be7a421e
SB
68142012-05-31 Steven Bosscher <steven@gcc.gnu.org>
6815
6816 * c-ada-spec.c: Do not include output.h.
6817 * c-semantics.c: Likewise.
6818
65de6659
JM
68192012-05-29 Joseph Myers <joseph@codesourcery.com>
6820
6821 * c-common.c: Fix typo.
6822
ca5f4331
MM
68232012-05-29 Michael Matz <matz@suse.de>
6824
6825 * c-common.h (c_expand_decl): Remove prototype.
6826
4f7f7aca
MLI
68272012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
6828
6829 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
6830 * c-opts.c (c_common_handle_option): Remove code handling
6831 warn_missing_braces.
6832
4a792f9b
PC
68332012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
6834
6835 PR c++/25137
6836 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
6837 -Wmissing_braces.
6838
650dc14a
DS
68392012-05-22 Dodji Seketeli <dodji@redhat.com>
6840
6841 PR c++/53322
6842 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
6843
9b095bf1
MLI
68442012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
6845
6846 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
6847 * c-opts.c (c_common_handle_option): Do not handle explicitly
6848 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
6849
0b2c4be5
DS
68502012-05-16 Dodji Seketeli <dodji@redhat.com>
6851
6852 PR preprocessor/7263
6853 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
6854 to cpp_classify_number. For diagnostics, use the precise location
6855 instead of the global input_location.
6856
a1bde5af
PC
68572012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
6858
d02924ef 6859 PR c++/11856
a1bde5af
PC
6860 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
6861
d1ede5f4
BS
68622012-05-14 Bernd Schmidt <bernds@codesourcery.com>
6863
a1bde5af 6864 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 6865
f2bc201f
MLI
68662012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
6867
6868 PR 53063
6869 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
6870 Wreorder): Use LangEnabledBy.
6871 * c-opts.c (c_common_handle_option): Do not enable them
6872 explicitly. Call lang-specific generated functions.
6873 (c_common_post_options): Do not set them here.
6874
95744782
MLI
68752012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
6876
6877 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
6878 Wmissing-field-initializers,Wmissing-parameter-type,
6879 Wold-style-declaration,Woverride-init): Use EnabledBy.
6880 * c-opts.c (c_common_post_options): Do not set here explicitly.
6881
7d5a5747
MLI
68822012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
6883
6884 PR 53063
6885 * c-opts.c (c_common_handle_option): Use handle_generated_option
6886 to enable sub-options.
6887
5a3c9cf2
PC
68882012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
6889
6890 PR c++/53158
6891 * c-common.c (warnings_for_convert_and_check): Use warning_at.
6892
3ac8781c
RG
68932012-05-10 Richard Guenther <rguenther@suse.de>
6894
6895 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
6896 adjust commentary about TYPE_IS_SIZETYPE types.
6897
1e537948
MLI
68982012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
6899
6900 PR c++/53261
6901 * c-common.c (warn_logical_operator): Check that argument of
6902 integer_zerop is not NULL.
6903
f2c4a785
MLI
69042012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
6905
6906 PR c/43772
6907 * c-common.c (warn_logical_operator): Do not warn if either side
6908 is already true or false.
6909
50f305ca
MLI
69102012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
6911
6912 PR c/51712
6913 * c-common.c (expr_original_type): New.
6914 (shorten_compare): Do not warn for enumeration types.
6915
0c3641b0
MLI
69162012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
6917
6918 * c.opt (fpermissive): Add Var(flag_permissive).
6919
7edaa4d2
MG
69202012-04-30 Marc Glisse <marc.glisse@inria.fr>
6921
6922 PR c++/51033
6923 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
6924 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
6925
b9c8da34
DS
69262012-04-30 Dodji Seketeli <dodji@redhat.com>
6927
6928 Add -Wvarargs option
6929 * c.opt (Wvarargs): Define new option.
6930
e6c69da0
MLI
69312012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
6932
6933 * c-common.c (check_function_arguments): Replace
6934 Wmissing-format-attribute with Wsuggest-attribute=format.
6935
90137d8f
MLI
69362012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
6937
6938 * c.opt (Wsuggest-attribute=format): New. Alias of
6939 Wmissing-format-attribute.
6940 * c-format.c (decode_format_type): Replace
6941 Wmissing-format-attribute with Wsuggest-attribute=format.
6942 (check_function_format): Likewise.
6943
9faeb493 69442012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
6945
6946 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
6947 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
6948 * c.opt: Add Wliteral-suffix.
6949
c1771a20
MLI
69502012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
6951
6952 PR c/44774
6953 * c.opt (Wpedantic): New.
6954 (pedantic): Alias Wpedantic.
6955 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
6956 (c_common_post_options): Likewise.
6957 (sanitize_cpp_opts): Likewise.
6958 * c-lex.c (interpret_float): Likewise.
6959 * c-format.c (check_format_types): Likewise.
6960 * c-common.c (pointer_int_sum): Likewise.
6961 (c_sizeof_or_alignof_type): Likewise.
6962 (c_add_case_label): Likewise.
6963 (c_do_switch_warnings): Likewise.
6964 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
6965
04b391c1
JM
69662012-04-15 Jason Merrill <jason@redhat.com>
6967
6968 PR c++/52818
6969 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
6970 (C_STD_NAME): Distinguish between C++98 and C++11.
6971
ac868f29
EB
69722012-04-11 Eric Botcazou <ebotcazou@adacore.com>
6973
6974 PR target/52624
6975 * c-common.h (uint16_type_node): Rename into...
6976 (c_uint16_type_node): ...this.
6977 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
6978 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
6979
fd4116f4
MLI
69802012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
6981
6982 * c-common.c (warn_if_unused_value): Move definition to here.
6983 * c-common.h (warn_if_unused_value): Move declaration to here.
6984
573ac65e
WB
69852012-03-23 William Bader <williambader@hotmail.com>
6986
6987 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
6988
552b8185
JM
69892012-03-20 Jason Merrill <jason@redhat.com>
6990
6991 * c-common.h (enum cxx_dialect): Add cxx1y.
6992 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
6993 test.
6994 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
6995 * c-opts.c (c_common_post_options): Likewise.
6996 (set_std_cxx1y): New.
6997 (c_common_handle_option): Call it.
6998 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
6999
04398fa8
PC
70002012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
7001
7002 PR c++/14710
7003 * c.opt ([Wuseless-cast]): Add.
7004
d2a12ae7
RG
70052012-03-16 Richard Guenther <rguenther@suse.de>
7006
7007 * c-pretty-print.c (pp_c_initializer_list): Adjust.
7008
a12bf402
MLI
70092012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
7010
7011 PR c++/44783
7012 * c.opt (ftemplate-backtrace-limit) Add.
7013
5c30094f
RO
70142012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7015
7016 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
7017 handling.
7018 * c-pragma.c (handle_pragma_extern_prefix): Remove.
7019 (init_pragma): Don't register extern_prefix.
7020
21fa2faf
RG
70212012-03-12 Richard Guenther <rguenther@suse.de>
7022
7023 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
7024 (builtin_type_for_size): Likewise.
7025
e3793c6f
JJ
70262012-02-13 Jakub Jelinek <jakub@redhat.com>
7027
7028 PR c++/52215
7029 * c-common.c (sync_resolve_params): Don't decide whether to convert
7030 or not based on TYPE_SIZE comparison, convert whenever arg_type
7031 is unsigned INTEGER_TYPE.
7032
93286335
PC
70332012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
7034
7035 PR c/52118
7036 * c.opt ([Wunused-local-typedefs]): Fix description.
7037
7a421706
MS
70382012-01-24 Mike Stump <mikestump@comcast.net>
7039
7040 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
7041 exactly.
7042
ba9b1f11
RG
70432012-01-18 Richard Guenther <rguenther@suse.de>
7044
7045 * c-opts.c (c_common_post_options): Reset LTO flags if
7046 we are about to generate a PCH.
7047
465406be
PC
70482012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
7049
7050 PR c++/51777
7051 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
7052 use pp_unsigned_wide_integer.
7053
aee15221
RG
70542012-01-10 Richard Guenther <rguenther@suse.de>
7055
7056 PR middle-end/51806
7057 * c-opts.c (c_common_handle_option): Move -Werror handling
7058 to language independent code.
7059
5720c0dc
RG
70602012-01-05 Richard Guenther <rguenther@suse.de>
7061
7062 PR middle-end/51764
7063 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
7064 from common.opt.
7065
73ac190a
PC
70662011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
7067
7068 PR c++/51316
7069 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
7070 of array types with an unknown bound.
7071
48b0b196
JM
70722011-12-20 Joseph Myers <joseph@codesourcery.com>
7073
7074 * c-common.c (flag_isoc99): Update comment to refer to C11.
7075 (flag_isoc1x): Change to flag_isoc11.
7076 * c-common.h (flag_isoc99): Update comment to refer to C11.
7077 (flag_isoc1x): Change to flag_isoc11.
7078 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
7079 C11.
7080 * c-opts.c (set_std_c1x): Change to set_std_c11.
7081 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
7082 Call set_std_c11.
7083 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
7084 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
7085 * c.opt (std=c1x): Change to std=c11. Document as non-draft
7086 standard.
7087 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
7088 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
7089 (std=gnu1x): Make alias of std=gnu11.
7090
d58d6eb5
JM
70912011-12-19 Jason Merrill <jason@redhat.com>
7092
7093 PR c++/51228
7094 * c-common.c (handle_transparent_union_attribute): Check the first
7095 field if the type is complete.
7096
b3908fcc
JW
70972011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
7098
7099 PR libstdc++/51365
7100 * c-common.c (RID_IS_FINAL): Add.
7101 * c-common.h (RID_IS_FINAL): Add.
7102
fea3ca91
IS
71032011-11-30 Iain Sandoe <iains@gcc.gnu.org>
7104
7105 * c.opt (fgnu-runtime): Provide full description.
7106 (fnext-runtime): Likewise.
7107 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
7108
62bad7cd
AM
71092011-11-28 Andrew MacLeod <amacleod@redhat.com>
7110
7111 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
7112 predefines in one place. Add LOCK_FREE predefines.
7113 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
7114 new func.
7115
c466c4ff
AM
71162011-11-24 Andrew MacLeod <amacleod@redhat.com>
7117
7118 PR c/51256
9faeb493 7119 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 7120 conditions
9faeb493
UB
7121 (resolve_overloaded_atomic_exchange,
7122 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
7123 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
7124 error_mark_node for error conditions.
9faeb493 7125
a5952633
RG
71262011-11-08 Richard Guenther <rguenther@suse.de>
7127
7128 PR middle-end/51010
7129 c-family/
7130
0a35513e
AH
71312011-11-07 Richard Henderson <rth@redhat.com>
7132 Aldy Hernandez <aldyh@redhat.com>
7133 Torvald Riegel <triegel@redhat.com>
7134
7135 Merged from transactional-memory.
7136
7137 * c-common.c (handle_tm_wrap_attribute,
7138 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
7139 (struct c_common_reswords): Added __transaction* keywords.
7140 (struct c_common_attribute_table): Added transaction* and tm_regparm
7141 attributes.
7142 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
7143 masks.
7144 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
7145 find_tm_attribute): Declare.
7146
6d87092d
JM
71472011-11-07 Jason Merrill <jason@redhat.com>
7148
7149 PR c++/35688
7150 * c-common.c, c-common.h: Revert yesterday's changes.
7151
8e7860a1
JM
71522011-11-06 Jason Merrill <jason@redhat.com>
7153
7154 PR c++/35688
7155 * c-common.c (decl_has_visibility_attr): Split out from...
7156 (c_determine_visibility): ...here.
7157 * c-common.h: Declare it.
7158
d19fa6b5
JM
71592011-11-06 Joseph Myers <joseph@codesourcery.com>
7160
7161 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
7162 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
7163 type.
7164 (check_user_alignment): New. Split out of
7165 handle_aligned_attribute. Disallow integer constants with
7166 noninteger types. Conditionally allow zero.
7167 (handle_aligned_attribute): Use check_user_alignment.
7168 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
7169
86951993
AM
71702011-11-06 Andrew MacLeod <amacleod@redhat.com>
7171 Richard Henderson <rth@redhat.com>
7172
7173 Merged from cxx-mem-model.
7174
7175 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 7176 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
7177 parameters that are the same type size.
7178 (get_atomic_generic_size): New. Find size of generic
7179 atomic function parameters and do typechecking.
7180 (add_atomic_size_parameter): New. Insert size into parameter list.
7181 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
7182 either __atomic_exchange_n or external library call.
9faeb493 7183 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 7184 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 7185 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
7186 __atomic_load_n or an external library call.
7187 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
7188 __atomic_store_n or an external library call.
7189 (resolve_overloaded_builtin): Handle new __atomic builtins.
7190
cf9e9959
EB
71912011-11-04 Eric Botcazou <ebotcazou@adacore.com>
7192
7193 PR c++/50608
7194 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
7195 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
7196 <INDIRECT_REF>: Return the argument.
7197 <ARRAY_REF>: Remove special code for negative offset.
7198 Call fold_build_pointer_plus instead of size_binop.
7199 (fold_offsetof): Remove STOP_REF argument and adjust.
7200 * c-common.h (fold_offsetof_1): Declare.
7201 (fold_offsetof): Remove STOP_REF argument.
7202
25339f10
JM
72032011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
7204
7205 PR c++/50810
7206 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
7207 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
7208 Wnarrowing for C++0x and C++98.
7209 * c.opt ([Wnarrowing]): Update.
7210
89401152
PC
72112011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
7212
7213 PR c++/44277
7214 * c.opt: Add Wzero-as-null-pointer-constant.
7215
97e3ad20
JM
72162011-10-31 Jason Merrill <jason@redhat.com>
7217
15694fdd
JM
7218 * c.opt (-fdeduce-init-list): Off by default.
7219
97e3ad20
JM
7220 PR c++/50920
7221 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
7222 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
7223 and -Wc++11-compat.
7224 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
7225
fb9120e3
RAV
72262011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
7227
7228 PR c++/30066
7229 * c.opt (fvisibility-inlines-hidden): Description change.
7230
3ce4f9e4
ESR
72312011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
7232
7233 Implement C++11 user-defined literals.
7234 * c-common.c (build_userdef_literal): New.
7235 * c-common.def: New tree code.
7236 * c-common.h (tree_userdef_literal): New tree struct and accessors.
7237 * c-lex.c (interpret_float): Add suffix parm.
7238 (c_lex_with_flags): Build literal tokens.
7239
5f53c243
PC
72402011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
7241
7242 PR c++/50841
7243 Revert:
7244 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
7245
7246 PR c++/50810
7247 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
7248 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
7249 Wnarrowing for C++0x and C++98.
7250 * c.opt ([Wnarrowing]): Update.
7251
263734e1
PC
72522011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
7253
7254 PR c++/50810
7255 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
7256 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
7257 Wnarrowing for C++0x and C++98.
7258 * c.opt ([Wnarrowing]): Update.
7259
d2e312d7
PC
72602011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
7261
7262 PR c++/45385
7263 * c-common.c (conversion_warning): Remove code looking for
7264 artificial operands.
7265
d17687f6
DS
72662011-10-18 Dodji Seketeli <dodji@redhat.com>
7267
7268 PR bootstrap/50760
7269 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 7270 !NO_IMPLICIT_EXTERN_C.
d17687f6 7271
fc8396e9
PC
72722011-10-17 Michael Spertus <mike_spertus@symantec.com>
7273
7274 * c-common.c (c_common_reswords): Add __bases,
7275 __direct_bases.
7276 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
7277
72782011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
7279
7280 PR c++/50757
7281 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
7282
847e697a
TT
72832011-10-15 Tom Tromey <tromey@redhat.com>
7284 Dodji Seketeli <dodji@redhat.com>
7285
7286 * c.opt (fdebug-cpp): New option.
7287 * c-opts.c (c_common_handle_option): Handle the option.
7288 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
7289 output stream in parameter. Factorized from ...
7290 (maybe_print_line): ... this. Dump location debug information when
7291 -fdebug-cpp is in effect.
7292 (print_line_1): New static function. Takes an output stream in
7293 parameter. Factorized from ...
7294 (print_line): ... here. Dump location information when -fdebug-cpp
7295 is in effect.
7296 (scan_translation_unit): Dump location information when
7297 -fdebug-cpp is in effect.
7298
92582b75
TT
72992011-10-15 Tom Tromey <tromey@redhat.com>
7300 Dodji Seketeli <dodji@redhat.com>
7301
7302 * c.opt (ftrack-macro-expansion): New option. Handle it with and
7303 without argument.
7304 * c-opts.c (c_common_handle_option)<case
7305 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
7306 cases. Handle -ftrack-macro-expansion with and without argument.
7307
46427374
TT
73082011-10-15 Tom Tromey <tromey@redhat.com>
7309 Dodji Seketeli <dodji@redhat.com>
7310
7311 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
7312 (print_line, cb_define, do_line_change): Adjust to avoid touching
7313 the internals of struct line_map. Use the public API instead.
7314 * c-pch.c (c_common_read_pch): Likewise.
7315 * c-lex.c (fe_file_change): Likewise.
7316
fc8396e9
PC
73172011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
7318
7319 PR c++/17212
7320 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
7321
73222011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
7323
7324 PR c++/33067
7325 * c-pretty-print.c (pp_c_floating_constant): Output
7326 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
7327
e79983f4
MM
73282011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
7329
7330 * c-common.c (def_builtin_1): Delete old interface with two
7331 parallel arrays to hold standard builtin declarations, and replace
7332 it with a function based interface that can support creating
7333 builtins on the fly in the future. Change all uses, and poison
7334 the old names. Make sure 0 is not a legitimate builtin index.
7335 * c-omp.c (c_finish_omp_barrier): Ditto.
7336 (c_finish_omp_taskwait): Ditto.
7337 (c_finish_omp_flush): Ditto.
7338
6637388f
TG
73392011-10-11 Tristan Gingold <gingold@adacore.com>
7340
7341 * c.opt: (fallow-parameterless-variadic-functions): New.
7342
3797cb21
DS
73432011-09-08 Dodji Seketeli <dodji@redhat.com>
7344
7345 PR c++/33255 - Support -Wunused-local-typedefs warning
7346 * c-common.h (struct c_language_function::local_typedefs): New
7347 field.
9faeb493
UB
7348 (record_locally_defined_typedef, maybe_record_typedef_use)
7349 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 7350 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
7351 (maybe_record_typedef_use)
7352 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
7353 * c.opt: Declare new -Wunused-local-typedefs flag.
7354
693ddb1b
EB
73552011-09-06 Eric Botcazou <ebotcazou@adacore.com>
7356
7357 PR middle-end/50266
7358 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
7359 computations.
7360
830c740f
RG
73612011-09-05 Richard Guenther <rguenther@suse.de>
7362
7363 * c-common.c (complete_array_type): Use ssize_int (-1) instead
7364 of integer_minus_one_node for empty array upper bounds.
7365
892a371f
DS
73662011-08-28 Dodji Seketeli <dodji@redhat.com>
7367
7368 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
7369 it's the first time it's being called on this main TU.
7370
0e3fdb48
RB
73712011-08-24 Richard Guenther <rguenther@suse.de>
7372
7373 PR c/49396
7374 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
7375
73762011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
7377
7378 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
7379 defined in cpp_init_builtins and c_cpp_builtins.
7380
d4a83c10
JM
73812011-08-19 Joseph Myers <joseph@codesourcery.com>
7382
7383 * c-common.c (c_common_reswords): Add __builtin_complex.
7384 * c-common.h (RID_BUILTIN_COMPLEX): New.
7385
bbceee64
JM
73862011-08-18 Joseph Myers <joseph@codesourcery.com>
7387
7388 * c-common.c (c_common_reswords): Add _Noreturn.
7389 (keyword_is_function_specifier): Handle RID_NORETURN.
7390 * c-common.h (RID_NORETURN): New.
7391
3f8257db 73922011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
0e3a99ae
AS
7393
7394 * c-common.c (unsafe_conversion_p): New function. Check if it is
7395 unsafe to convert an expression to the type.
7396 (conversion_warning): Adjust, use unsafe_conversion_p.
7397 * c-common.h (unsafe_conversion_p): New function declaration.
7398
20906c66
JJ
73992011-08-02 Jakub Jelinek <jakub@redhat.com>
7400
7401 * c-common.h (c_finish_omp_atomic): Adjust prototype.
7402 (c_finish_omp_taskyield): New prototype.
7403 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
7404 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
7405 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
7406 or RHS1 have side-effects, evaluate those too in the right spot,
7407 if it is a decl and LHS is also a decl, error out if they
7408 aren't the same.
7409 (c_finish_omp_taskyield): New function.
7410 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
7411 * c-pragma.c (omp_pragmas): Add taskyield.
7412 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
7413 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
7414 PRAGMA_OMP_CLAUSE_MERGEABLE.
7415
770e5a2e
DS
74162011-07-25 Dodji Seketeli <dodji@redhat.com>
7417
7418 * c-common.h (set_underlying_type): Remove parm name from
7419 declaration.
7420
1baae426
RG
74212011-07-25 Romain Geissler <romain.geissler@gmail.com>
7422
7423 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 7424
fcb21722
JM
74252011-07-22 Jason Merrill <jason@redhat.com>
7426
76f86d00
JM
7427 PR c++/49793
7428 * c.opt (Wnarrowing): New.
7429
3a636414
JM
7430 PR c++/30112
7431 * c-common.h: Declare c_linkage_bindings.
7432 * c-pragma.c (handle_pragma_redefine_extname): Use it.
7433
fcb21722
JM
7434 PR c++/49813
7435 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
7436 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
7437 as flag_isoc99 for 'restrict'.
7438 (pp_c_specifier_qualifier_list): Likewise for _Complex.
7439
02614448
ILT
74402011-07-21 Ian Lance Taylor <iant@google.com>
7441
7442 PR middle-end/49705
7443 * c-common.c (c_disable_warnings): New static function.
7444 (c_enable_warnings): New static function.
7445 (c_fully_fold_internal): Change local unused_p to bool. Call
7446 c_disable_warnings and c_enable_warnings rather than change
7447 c_inhibit_evaluation_warnings.
7448
34429675
JM
74492011-07-20 Jason Merrill <jason@redhat.com>
7450
7451 PR c++/6709 (DR 743)
7452 PR c++/42603 (DR 950)
7453 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
7454 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
7455 (CPP_DECLTYPE): New.
7456 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
7457
5d49b6a7
RG
74582011-07-19 Richard Guenther <rguenther@suse.de>
7459
7460 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
7461 * c-omp.c (c_finish_omp_for): Likewise.
7462
e84a58ff
EB
74632011-07-12 Eric Botcazou <ebotcazou@adacore.com>
7464
7465 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
7466 body on the next line.
7467
329af3c7
JM
74682011-07-08 Jason Merrill <jason@redhat.com>
7469
4063e61b
JM
7470 PR c++/45437
7471 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
7472
329af3c7
JM
7473 PR c++/49673
7474 * c-common.c (c_apply_type_quals_to_decl): Don't check
7475 TYPE_NEEDS_CONSTRUCTING.
7476
1a072294
RG
74772011-07-06 Richard Guenther <rguenther@suse.de>
7478
7479 * c-common.c (c_common_nodes_and_builtins):
7480 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
7481
fce5dddd
RG
74822011-07-05 Richard Guenther <rguenther@suse.de>
7483
7484 * c-common.c (c_common_nodes_and_builtins): Build all common
7485 tree nodes first.
7486
45d439ac
JJ
74872011-06-27 Jakub Jelinek <jakub@redhat.com>
7488
56300785
JJ
7489 * c-common.h (c_tree_chain_next): New static inline function.
7490
45d439ac
JJ
7491 * c-common.c (check_builtin_function_arguments): Handle
7492 BUILT_IN_ASSUME_ALIGNED.
7493
e0a8ecf2
AM
74942011-06-21 Andrew MacLeod <amacleod@redhat.com>
7495
7496 * c-common.c: Add sync_ or SYNC__ to builtin names.
7497 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
7498
74992011-06-20 Pierre Vittet <piervit@pvittet.com>
7500
7501 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
7502 handler.
7503 (gen_pragma_handler): New union.
7504 (internal_pragma_handler): New type.
7505 (c_register_pragma_with_data)
7506 (c_register_pragma_with_expansion_and_data): New functions.
7507
7508 * c-pragma.c (registered_pragmas, c_register_pragma_1)
7509 (c_register_pragma, c_register_pragma_with_expansion)
7510 (c_invoke_pragma_handler): Changed to work with
7511 internal_pragma_handler.
7512 (c_register_pragma_with_data)
7513 (c_register_pragma_with_expansion_and_data): New functions.
7514
677f3fa8
JM
75152011-06-14 Joseph Myers <joseph@codesourcery.com>
7516
7517 * c-common.c: Include common/common-target.h.
7518 (handle_section_attribute): Use
7519 targetm_common.have_named_sections.
7520 * c-cppbuiltin.c: Include common/common-target.h.
7521 (c_cpp_builtins): Use targetm_common.except_unwind_info.
7522
d7fc8c14
RG
75232011-06-10 Richard Guenther <rguenther@suse.de>
7524
7525 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
7526 to print a IDENTIFIER_NODE.
7527
10e48e39
RO
75282011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7529 Joseph Myers <joseph@codesourcery.com>
7530
7531 * c.opt (fbuilding-libgcc): New option.
7532 * c-cppbuiltin.c (c_cpp_builtins): Define
7533 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
7534
6976ae51
JM
75352011-06-07 Jason Merrill <jason@redhat.com>
7536
3ff60975
JM
7537 * c-common.c (max_tinst_depth): Lower default to 900.
7538
6976ae51
JM
7539 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
7540
009db074
RG
75412011-06-07 Richard Guenther <rguenther@suse.de>
7542
7543 * c-common.c (c_common_nodes_and_builtins): Do not set
7544 size_type_node or call set_sizetype.
7545
b4592b92
DS
75462011-06-07 Dodji Seketeli <dodji@redhat.com>
7547
7548 PR debug/49130
7549 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 7550 type when using pointer comparison to compare types.
b4592b92 7551
014ab419
JW
75522011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
7553
7554 * c.opt: Add -Wdelete-non-virtual-dtor.
7555 * c-opts.c (c_common_handle_option): Include it in -Wall.
7556
4f60111f
NF
75572011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
7558
7559 PR bootstrap/49190
7560
7561 Revert:
7562 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
7563
7564 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
7565 not tree_common.
7566
4cc4f2f4
JJ
75672011-05-27 Jakub Jelinek <jakub@redhat.com>
7568
7569 PR c++/49165
7570 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
7571 C++ don't call c_common_truthvalue_conversion on void type arms.
7572
38e01f9e
NF
75732011-05-27 Nathan Froyd <froydnj@codesourcery.com>
7574
7575 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
7576 (stmt_list_stack): Define.
7577 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
7578 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
7579
92e948a8
NF
75802011-05-26 Nathan Froyd <froydnj@codesourcery.com>
7581
7582 * c-common.c (warning_candidate_p): Check for BLOCKs.
7583
a2fc3e63
NF
75842011-05-26 Nathan Froyd <froydnj@codesourcery.com>
7585
7586 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
7587 not tree_common.
7588
0957c029
JJ
75892011-05-25 Jakub Jelinek <jakub@redhat.com>
7590
7591 * c-common.c (def_fn_type): Remove extra va_end.
7592
828fb3ba
JM
75932011-05-23 Jason Merrill <jason@redhat.com>
7594
7595 PR c++/48106
7596 * c-common.c (c_common_get_narrower): New.
7597 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
7598
dde05067
NF
75992011-05-23 Nathan Froyd <froydnj@codesourcery.com>
7600
7601 * c-common.h (check_function_arguments): Tweak prototype of
7602 check_function_arguments.
7603 * c-common.c (check_function_arguments): Likewise. Adjust
7604 calls to check_function_nonnull, check_function_format, and
7605 check_function_sentinel.
7606 (check_function_sentinel): Take a FUNCTION_TYPE rather than
7607 separate attributes and typelist arguments. Use
7608 FOREACH_FUNCTION_ARGS to iterate over argument types.
7609
3c0d13bf
PC
76102011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
7611
7612 * c-common.c (c_common_reswords): Reorder.
7613 * c-common.h (rid): Likewise.
7614
8242dd04
NF
76152011-05-10 Nathan Froyd <froydnj@codesourcery.com>
7616
7617 * c-common.c (def_fn_type): Don't call build_function_type, call
7618 build_function_type_array or build_varargs_function_type_array
7619 instead.
7620 (c_common_nodes_and_builtins): Likewise.
7621
3d528853
NF
76222011-05-05 Nathan Froyd <froydnj@codesourcery.com>
7623
7624 * c-common.c (c_add_case_label): Omit the loc argument to
7625 build_case_label.
7626 * c-common.h (build_case_label): Remove.
7627 * c-semantics.c (build_case_label): Remove.
7628
a04a722b
JM
76292011-05-05 Joseph Myers <joseph@codesourcery.com>
7630
7631 * c-objc.h (objc_start_method_definition): Update prototype.
7632 * stub-objc.c (objc_start_method_definition): Add extra parameter.
7633
e19a18d4
NF
76342011-05-04 Nathan Froyd <froydnj@codesourcery.com>
7635
7636 * c-common.c (check_main_parameter_types): Reindent. Don't use
7637 TYPE_ARG_TYPES directly.
7638 (handle_nonnull_attribute): Likewise.
7639 (sync_resolve_params): Likewise.
7640 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
7641 to check_format_string.
7642 (handle_format_attribute): Likewise.
7643 (check_format_string): Take a function type to examine instead of
7644 a type list. Use a function_arg_iterator to step through argument
7645 types.
7646
c62c040f
RG
76472011-05-04 Richard Guenther <rguenther@suse.de>
7648
7649 * c-common.c (fix_string_type): Use size_int for index type bounds.
7650 (start_fname_decls): Do not pass NULL to build_int_cst.
7651 (c_init_attributes): Likewise.
7652 * c-lex.c (c_lex_with_flags): Likewise.
7653
c12ff9d8
JM
76542011-04-27 Jason Merrill <jason@redhat.com>
7655
7656 * c-common.c (make_tree_vector_from_list): New.
7657 * c-common.h: Declare it.
7658
304dfbe3
RG
76592011-04-26 Richard Guenther <rguenther@suse.de>
7660
7661 PR preprocessor/48248
7662 * c-ppoutput.c (maybe_print_line): Always optimize newlines
7663 for output size with -P.
7664
3c0d13bf
PC
76652011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
7666
7667 * c-common.c (struct c_common_resword): Add __underlying_type.
7668 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
7669
04695783
JM
76702011-04-20 Jim Meyering <meyering@redhat.com>
7671
7672 * c-format.c (init_dollar_format_checking): Remove useless
7673 if-before-free.
7674
0dc33c3c
NP
76752011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
7676
7677 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 7678 (objc_detect_field_duplicates): New.
0dc33c3c 7679 * stub-objc.c: Likewise.
3c0d13bf 7680
c59633d9
NP
76812011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
7682
7683 * stub-objc.c (objc_declare_protocols): Renamed to
7684 objc_declare_protocol.
7685 * c-objc.h: Likewise.
3c0d13bf 7686
32dabdaf
NP
76872011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
7688
7689 * stub-objc.c (objc_declare_class): Updated argument name.
7690
81f653d6
NF
76912011-04-12 Nathan Froyd <froydnj@codesourcery.com>
7692
7693 * c-common.h (c_common_init_ts): Declare.
7694 * c-common.c (c_common_init_ts): Define.
7695
eb345401
NP
76962011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
7697
7698 * c-objc.h (objc_build_message_expr): Updated prototype.
7699 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 7700
a358e188
MJ
77012011-04-12 Martin Jambor <mjambor@suse.cz>
7702
7703 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
7704 of cgraph_node.
7705
e6313a78
RG
77062011-04-11 Richard Guenther <rguenther@suse.de>
7707
7708 * c-common.c (complete_array_type): Build a range type of
7709 proper type.
7710
dcf0c47e
NF
77112011-04-08 Nathan Froyd <froydnj@codesourcery.com>
7712
7713 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
7714 (handle_type_generic_attribute): Likewise.
7715
1ee44b26
JM
77162011-04-07 Jason Merrill <jason@redhat.com>
7717
7718 PR c++/48450
7719 * c-common.c (c_common_truthvalue_conversion): Don't ignore
7720 conversion from C++0x scoped enum.
7721
acce4e77
JM
77222011-04-06 Joseph Myers <joseph@codesourcery.com>
7723
7724 * c-target-def.h: New file.
7725 * c-target.def: New file.
7726 * c-target.h: New file.
7727 * c-common.c (targetcm): Don't define here.
7728 * c-common.h (default_handle_c_option): Declare.
7729 * c-format.c: Include c-target.h instead of target.h.
7730 * c-opts.c: Include c-target.h instead of target.h. Explicitly
7731 include tm.h.
7732 (default_handle_c_option): Move from targhooks.c.
7733
e2eefb55
JJ
77342011-03-29 Jakub Jelinek <jakub@redhat.com>
7735
7736 PR preprocessor/48248
7737 * c-ppoutput.c (print): Add src_file field.
7738 (init_pp_output): Initialize it.
7739 (maybe_print_line): Don't optimize by adding up to 8 newlines
7740 if map->to_file and print.src_file are different file.
7741 (print_line): Update print.src_file.
7742
ba78087b
KT
77432011-03-25 Kai Tietz <ktietz@redhat.com>
7744
7745 * c-ada-spec.c (compare_comment): Use filename_cmp
7746 instead of strcmp for filename.
7747
0edf1bb2
JL
77482011-03-25 Jeff Law <law@redhat.com>
7749
adfac8df 7750 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 7751
c7dc8804
JM
77522011-03-25 Jason Merrill <jason@redhat.com>
7753
7754 * c.opt: Add -std=c++03.
7755
d1d879b1
EB
77562011-03-22 Eric Botcazou <ebotcazou@adacore.com>
7757
7758 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
7759
3f8257db 77602011-03-17 Kai Tietz <ktietz@redhat.com>
62d784f7
KT
7761
7762 PR target/12171
5050afdf
KT
7763 * c-pretty-print.c (pp_c_specifier_qualifier_list):
7764 Display allowed attributes for function pointer types.
7765 (pp_c_attributes_display): New function to display
7766 attributes having affects_type_identity flag set to true.
7767 * c-pretty-print.h (pp_c_attributes_display): New prototype.
7768
62d784f7
KT
7769 * c-common.c (c_common_attribute_table):
7770 Add new element.
7771 (c_common_format_attribute_table): Likewise.
7772
82d37118
JM
77732011-03-18 Jason Merrill <jason@redhat.com>
7774
49a000c3
JM
7775 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
7776 * c-common.h: Don't declare it here.
7777 * c-common.c: Or define it here.
7778 * c-opts.c (c_common_handle_option): Or set it here.
7779
82d37118
JM
7780 PR c++/35315
7781 * c-common.c (handle_transparent_union_attribute): Don't
7782 make a duplicate type in C++.
7783
17bc631c
JM
77842011-03-15 Jason Merrill <jason@redhat.com>
7785
7786 * c-common.c (max_constexpr_depth): New.
7787 * c-common.h: Declare it.
7788 * c-opts.c (c_common_handle_option): Set it.
7789 * c.opt (fconstexpr-depth): New option.
7790
1b9b91a6
JM
77912011-03-11 Jason Merrill <jason@redhat.com>
7792
f231b5ff
JM
7793 * c-common.c (attribute_takes_identifier_p): Add missing const.
7794
1b9b91a6
JM
7795 PR c++/46803
7796 * c-common.c (attribute_takes_identifier_p): Assume that an
7797 unknown attribute takes an identifier.
7798
a19e4d44
NF
77992011-03-07 Nathan Froyd <froydnj@codesourcery.com>
7800
7801 PR c/47786
7802 * c-common.c (c_type_hash): Call list_length instead of iterating
7803 through DECL_CHAIN. Rename 'i' to 'n_elements'.
7804
982d62f6
JJ
78052011-02-19 Jakub Jelinek <jakub@redhat.com>
7806
7807 PR c/47809
7808 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
7809
0a256240
NP
78102011-02-17 Iain Sandoe <iains@gcc.gnu.org>
7811
7812 * c.opt (fobjc-abi-version=) New.
7813 (fobjc-nilcheck): New.
7814
ba9e6dd5
NF
78152011-02-03 Nathan Froyd <froydnj@codesourcery.com>
7816
7817 PR c++/46890
7818 * c-common.h (keyword_is_decl_specifier): Declare.
7819 * c-common.c (keyword_is_decl_specifier): Define.
7820 (keyword_is_function_specifier): New function.
7821
7273813a
JJ
78222011-01-26 Jakub Jelinek <jakub@redhat.com>
7823
7824 PR c/47473
7825 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
7826 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
7827 REAL_TYPE.
7828
908ef79b
AC
78292011-01-26 Arnaud Charlet <charlet@adacore.com>
7830
7831 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
7832
237e9384
JJ
78332011-01-26 Jakub Jelinek <jakub@redhat.com>
7834
7835 PR pch/47430
7836 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
7837 after init_c_lex if pch_file is set.
7838
47ea1edf
DK
78392011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
7840
d4dba752 7841 PR c++/43601
47ea1edf
DK
7842 * c.opt (-fkeep-inline-dllexport): New switch.
7843
2aa9c6ae
RG
78442011-01-12 Richard Guenther <rguenther@suse.de>
7845
7846 PR middle-end/32511
7847 * c-common.c (handle_weak_attribute): Warn instead of error
7848 on declaring an inline function weak.
7849
7bd11157
TT
78502011-01-05 Tom Tromey <tromey@redhat.com>
7851
7852 * c-common.h (lvalue_error): Update.
7853 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
7854 not error.
7855
0e66e494 78562010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 7857
b4f588c4
NP
7858 PR objc/47075
7859 * c-objc.h (objc_finish_message_expr): Added argument to
7860 prototype.
7861
f4da8dce
NF
78622010-12-22 Nathan Froyd <froydnj@codesourcery.com>
7863
7864 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
7865 Use prototype_p.
7866
46270f14
NP
78672010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
7868
7869 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 7870 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 7871
4816c593
NF
78722010-12-10 Nathan Froyd <froydnj@codesourcery.com>
7873
7874 * c-common.h (readonly_error): Declare.
7875 * c-common.c (readonly_error): Define.
7876
7a6daeb0
NF
78772010-12-09 Nathan Froyd <froydnj@codesourcery.com>
7878
7879 * c-common.h (invalid_indirection_error): Declare.
7880 * c-common.c (invalid_indirection_error): Define.
7881
892f6119
RG
78822010-12-03 Richard Guenther <rguenther@suse.de>
7883
7884 PR c/46745
7885 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
7886 (pp_c_unary_expression): Likewise.
7887 (pp_c_expression): Likewise.
7888
6c39e757
NP
78892010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
7890
7891 * c-common.h (objc_finish_function): New.
7892 (objc_non_volatilized_type): Removed.
7893 (objc_type_quals_match): Removed.
7894 * stub-objc.c (objc_finish_function): New.
7895 (objc_non_volatilized_type): Removed.
7896 (objc_type_quals_match): Removed.
9faeb493 7897
7c475d11
JM
78982010-11-30 Joseph Myers <joseph@codesourcery.com>
7899
7900 * c-common.h (parse_optimize_options): Declare.
7901 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
7902 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
7903
71f3e391
JM
79042010-11-29 Joseph Myers <joseph@codesourcery.com>
7905
7906 * c-opts.c (check_deps_environment_vars): Use getenv instead of
7907 GET_ENVIRONMENT.
7908 * c-pch.c (O_BINARY): Don't define here.
7909 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
7910
d5fabb58
JM
79112010-11-25 Joseph Myers <joseph@codesourcery.com>
7912
7913 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
7914 targetm.except_unwind_info.
7915
299404a1
JM
79162010-11-23 Joseph Myers <joseph@codesourcery.com>
7917
7918 * c-opts.c (c_common_handle_option): Pass location to
7919 set_struct_debug_option.
7920
c98cd5bf
JM
79212010-11-23 Joseph Myers <joseph@codesourcery.com>
7922
7923 * c-common.c (visibility_options): Move from ../opts.c.
7924 * c-common.h (struct visibility_flags, visibility_options):
7925 Declare here.
7926 * c-opts.c (finish_options): Rename to c_finish_options.
7927 (c_common_init): Update call to finish_options.
7928
a9546771
NP
79292010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
7930
7931 PR objc/34033
7932 * c-lex.c (lex_string): Check that each string in an Objective-C
7933 string concat sequence starts with either one or zero '@', and
7934 that there are no spurious '@' signs at the end.
7935
24a57808
JM
79362010-11-20 Joseph Myers <joseph@codesourcery.com>
7937
7938 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
7939 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
7940 HANDLE_PRAGMA_VISIBILITY.
7941 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
7942 HANDLE_PRAGMA_VISIBILITY): Don't define.
7943 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
7944
a9aa2c3a
NF
79452010-11-20 Nathan Froyd <froydnj@codesourcery.com>
7946
7947 PR c++/16189
7948 PR c++/36888
7949 PR c++/45331
7950 * c-common.h (keyword_begins_type_specifier): Declare.
7951 (keyword_is_storage_class_specifier): Declare.
7952 (keyword_is_type_qualifier): Declare.
7953 * c-common.c (keyword_begins_type_specifier): New function.
7954 (keyword_is_storage_class_specifier): New function.
7955 (keyword_is_type_qualifier): Declare.
7956
5386338c
JM
79572010-11-19 Joseph Myers <joseph@codesourcery.com>
7958
7959 PR c/46547
7960 * c-common.c (in_late_binary_op): Define.
7961 (c_common_truthvalue_conversion): Check in_late_binary_op before
7962 calling c_save_expr.
7963 * c-common.h (in_late_binary_op): Declare.
7964
69ccdddb
JM
79652010-11-19 Joseph Myers <joseph@codesourcery.com>
7966
7967 * c-opts.c (c_common_handle_option): Update calls to
7968 set_struct_debug_option.
7969
6b192a09
NP
79702010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
7971
7972 * c-common.h (objc_declare_protocols): Added additional argument.
7973 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 7974
fb52b50a
NF
79752010-11-18 Nathan Froyd <froydnj@codesourcery.com>
7976
7977 PR c/33193
7978 * c-common.h (build_real_imag_expr): Declare.
7979 * c-semantics.c (build_real_imag_expr): Define.
7980
b37421c6
JM
79812010-11-17 Joseph Myers <joseph@codesourcery.com>
7982
7983 * c-opts.c (c_common_parse_file): Take no arguments.
7984 * c-common.h (c_common_parse_file): Update prototype.
7985
07078664
JJ
79862010-11-16 Jakub Jelinek <jakub@redhat.com>
7987
7988 PR c++/46401
7989 * c-common.c (warning_candidate_p): Don't track non-const calls
7990 or STRING_CSTs.
7991
c6a13190
ILT
79922010-11-15 Ian Lance Taylor <iant@google.com>
7993
7994 * c-lex.c (init_c_lex): Set macro debug callbacks if
7995 flag_dump_go_spec is set.
7996
925e8657
NP
79972010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
7998
7999 * c-common.h (objc_build_incr_expr_for_property_ref): New.
8000 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
8001
bb0a9581
NF
80022010-11-15 Nathan Froyd <froydnj@codesourcery.com>
8003
8004 PR preprocessor/45038
8005 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
8006 dialects.
8007
c5fa0890
JM
80082010-11-12 Joseph Myers <joseph@codesourcery.com>
8009
8010 * c-common.h (c_family_lang_mask): Declare.
8011 * c-opts.c (c_family_lang_mask): Make extern.
8012 * c-pragma.c (handle_pragma_diagnostic): Use
8013 control_warning_option.
8014
a4d8c676
JM
80152010-11-12 Joseph Myers <joseph@codesourcery.com>
8016
8017 * c-common.c (parse_optimize_options): Update call to
8018 decode_options.
8019 * c-common.h (c_common_handle_option): Update prototype.
8020 * c-opts.c (c_common_handle_option): Take location_t parameter and
8021 pass it to other functions.
8022
f954bd2c
JM
80232010-11-11 Joseph Myers <joseph@codesourcery.com>
8024
8025 * c-opts.c (warning_as_error_callback): Remove.
8026 (c_common_initialize_diagnostics): Don't call
8027 register_warning_as_error_callback.
8028 (c_common_handle_option): Handle -Werror=normalized= here.
8029
d8a07487
JM
80302010-11-10 Joseph Myers <joseph@codesourcery.com>
8031
8032 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
8033 in diagnostic.
8034 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
8035 letter.
8036 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
8037 Remove trailing '.' from diagnostics.
8038 * c.opt (Wwrite-strings_: Avoid '`' in help text.
8039
d5478783
JM
80402010-11-10 Joseph Myers <joseph@codesourcery.com>
8041
8042 * c-common.c (parse_optimize_options): Pass global_dc to
8043 decode_options.
8044 * c-opts.c (c_common_handle_option): Pass &global_options to
8045 set_Wstrict_aliasing.
8046 * c.opt (v): Don't mark Common or document here.
8047
91ebb981
IS
80482010-11-06 Iain Sandoe <iains@gcc.gnu.org>
8049
8050 PR target/44981
8051 * c-format.c (format_type): New type gcc_objc_string_format_type.
8052 (valid_stringptr_type_p): New.
8053 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 8054 (check_format_string): Pass expected type, use
91ebb981
IS
8055 valid_stringptr_type_p (), check that the format string types are
8056 consistent with the format specification.
8057 (decode_format_attr): Warn if NSString is used outside objective-c.
8058 (format_types_orig): Add NSString.
8059 (format_name): New.
8060 (format_flags): New.
8061 (check_format_arg): Handle format strings requiring an external parser.
8062 first_target_format_type: New variable.
8063 (handle_format_attribute): Set up first_target_format_type, pass the
8064 expected format arg string type to check_format_string().
8065 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
8066 * stub-objc.c (objc_string_ref_type_p): New.
8067 (objc_check_format_arg): New.
8068
bede2adc
NP
80692010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
8070
9faeb493 8071 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
8072 * c-common.h (objc_build_class_component_ref): New.
8073 * stub-objc.c (objc_build_class_component_ref): New.
8074
9a179d01
NP
80752010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
8076
8077 * c.opt (Wproperty-assign-default): New option.
8078
22d8d616
NP
80792010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
8080
8081 Implemented -fobjc-std=objc1 flag.
8082 * c.opt (fobjc-std=objc1): New option.
8083
2debdb4f
NP
80842010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
8085
8086 Implemented format and noreturn attributes for Objective-C methods.
8087 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
8088 attribute for Objective-C methods.
8089
ec52b111
JM
80902010-10-31 Jason Merrill <jason@redhat.com>
8091
8092 * c-common.c (conversion_warning, warn_for_collisions_1): Use
8093 EXPR_LOC_OR_HERE.
8094
46a88c12
NP
80952010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
8096
8097 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
8098 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
8099 (objc_add_property_declaration): Removed arguments for copies and
8100 ivar.
8101 (objc_build_getter_call): Renamed to
8102 objc_maybe_build_component_ref.
8103 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
8104 (objc_is_property_ref): New.
8105 * c-common.c (c_common_reswords): Removed copies and ivar.
8106 * stub-objc.c (objc_add_property_declaration): Removed arguments
8107 for copies and ivar.
8108 (objc_build_getter_call): Renamed to
8109 objc_maybe_build_component_ref.
8110 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
8111 (objc_is_property_ref): New.
9faeb493 8112
1e4bf85b
AC
81132010-10-29 Arnaud Charlet <charlet@adacore.com>
8114 Matthew Gingell <gingell@adacore.com>
8115
8116 * c-ada-spec.c (separate_class_package): New function.
8117 (pp_ada_tree_identifier): Prefix references to C++ classes with the
8118 name of their enclosing package.
8119 (print_ada_declaration): Use separate_class_package.
8120
81f0bab2
JM
81212010-10-27 Jason Merrill <jason@redhat.com>
8122
2b08f2c5
JM
8123 * c-common.c (c_common_reswords): Add __is_literal_type.
8124 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
8125
81f0bab2
JM
8126 * c-common.c (check_case_value): Remove special C++ code.
8127
200290f2
NP
81282010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
8129
8130 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
8131 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
8132 and RID_LAST_PATTR.
8133 (objc_add_property_declaration): Added additional arguments.
8134 (objc_property_attribute_kind): Removed.
8135 (objc_set_property_attr): Removed.
8136 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
8137 copy and nonatomic.
8138 * stub-objc.c (objc_add_property_declaration): Added additional
8139 arguments.
8140 (objc_set_property_attr): Removed.
9faeb493 8141
f614132b
NP
81422010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
8143
8144 * c-common.h (objc_add_property_variable): Renamed to
8145 objc_add_property_declaration. Added location argument.
8146 * stub-objc.c (objc_add_property_variable): Same change.
b1726d6c 8147
b8a18805
NP
81482010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
8149
8150 * c-common.h (objc_maybe_printable_name): New.
8151 * stub-objc.c (objc_maybe_printable_name): New.
8152
3f8257db
JJ
81532010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
8154 Andrew Pinski <pinskia@gmail.com>
30cd1c5d
AS
8155
8156 * c-common.h (c_common_mark_addressable_vec): Declare.
8157 * c-common.c (c_common_mark_addressable_vec): New function.
8158
249a82c4
NP
81592010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
8160
8161 * c-common.h (objc_set_method_type): Removed.
8162 (objc_add_method_declaration): Added boolean argument.
8163 (objc_start_method_definition): Same change.
8164 (objc_build_method_signature): Same change.
8165 * stub-objc.c (objc_set_method_type): Removed.
8166 (objc_add_method_declaration): Added boolean argument.
8167 (objc_start_method_definition): Same change.
8168 (objc_build_method_signature): Same change.
8169
977e30bc
NP
81702010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
8171
8172 * c-common.h (finish_file): Removed.
8173 (objc_write_global_declarations): New.
8174 * c-opts.c (c_common_parse_file): Do not call finish_file.
8175 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 8176
da57d1b9
NP
81772010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
8178
8179 Implemented parsing @synthesize and @dynamic for
8180 Objective-C/Objective-C++.
8181 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
8182 (objc_add_synthesize_declaration): New.
8183 (objc_add_dynamic_declaration): New.
8184 * c-common.c (c_common_reswords): Add synthesize and dynamic.
8185 * stub-objc.c (objc_add_synthesize_declaration): New.
8186 (objc_add_dynamic_declaration): New.
9faeb493 8187
0069111f
MM
81882010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
8189
8190 PR target/46041
8191 * c-cppbuiltin.c (mode_has_fma): Move function here from
8192 builtins.c. Don't use the fma optab, instead just use the
8193 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
8194 using -save-temps.
8195
e426b47b
NP
81962010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
8197
8198 Merge from 'apple/trunk' branch on FSF servers.
0069111f 8199
3f8257db 8200 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
e426b47b 8201
9faeb493 8202 Radar 4330422
e426b47b
NP
8203 * c-common.h (objc_non_volatilized_type): New declaration
8204 * stub-objc.c (objc_non_volatilized_type): New stub.
8205
90fbfdc3
NP
82062010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
8207
e426b47b 8208 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3 8209
3f8257db 8210 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
90fbfdc3 8211
9faeb493 8212 Radar 4133425
90fbfdc3 8213 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 8214 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 8215
c37d8c30
IS
82162010-10-17 Iain Sandoe <iains@gcc.gnu.org>
8217
8218 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
8219 * c-common.h (enum rid): Add RID_AT_PACKAGE.
8220 (objc_ivar_visibility_kind): New enum.
8221 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 8222 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
8223 visibility enum.
8224
1b1562a5
MM
82252010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
8226
8227 * c-cppbuiltin.c (builtin_define_float_constants): Emit
8228 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
8229 has the appropriate fma builtins.
8230 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
8231
668ea4b1
IS
82322010-10-14 Iain Sandoe <iains@gcc.gnu.org>
8233
1b1562a5 8234 merge from FSF apple 'trunk' branch.
3f8257db 8235 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 8236
668ea4b1
IS
8237 Radars 4436866, 4505126, 4506903, 4517826
8238 * c-common.c (c_common_resword): Define @property and its attributes.
8239 * c-common.h: Define property attribute enum entries.
8240 (OBJC_IS_PATTR_KEYWORD): New.
8241 (objc_property_attribute_kind): New enum.
8242 Declare objc_set_property_attr (), objc_add_property_variable (),
8243 objc_build_getter_call () and objc_build_setter_call ().
8244 * stub-objc.c (objc_set_property_attr): New stub.
8245 (objc_add_property_variable): Likewise.
8246 (objc_build_getter_call): Likewise.
8247 (objc_build_setter_call) Likewise.
1b1562a5 8248
a1178b30
IS
82492010-10-13 Iain Sandoe <iains@gcc.gnu.org>
8250
1b1562a5 8251 merge from FSF apple 'trunk' branch.
3f8257db 8252 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
a1178b30
IS
8253
8254 Radar 3803157 (method attributes)
8255 * c-common.c (handle_deprecated_attribute): Recognize
8256 objc methods as valid declarations.
8257 * c-common.h: Declare objc_method_decl ().
1b1562a5 8258 * stub-objc.c (objc_method_decl): New stub.
a1178b30 8259
a75bfaa6
JM
82602010-10-08 Joseph Myers <joseph@codesourcery.com>
8261
8262 * c-common.c (parse_optimize_options): Call
8263 decode_cmdline_options_to_array_default_mask before
8264 decode_options. Update arguments to decode_options.
8265 * c-common.h (c_common_init_options_struct): Declare.
8266 * c-opts.c (c_common_init_options_struct): New. Split out from
8267 c_common_init_options.
8268
f05b9d93
NP
82692010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
8270
8271 Implemented fast enumeration for Objective-C.
8272 * c-common.h (objc_finish_foreach_loop): New.
8273 * stub-objc.c (objc_finish_foreach_loop): New.
8274
1ebe4b4f
JM
82752010-10-05 Joseph Myers <joseph@codesourcery.com>
8276
8277 * c-common.h (struct diagnostic_context): Don't declare here.
8278 (c_common_initialize_diagnostics): Declare using
8279 diagnostic_context typedef.
8280 * c-opts.c (c_common_handle_option): Pass global_dc to
8281 handle_generated_option.
8282
d4d24ba4
JM
82832010-10-04 Joseph Myers <joseph@codesourcery.com>
8284
8285 * c-opts.c (c_common_handle_option): Pass &global_options_set to
8286 handle_generated_option.
8287
478a1c5b
ILT
82882010-10-03 Ian Lance Taylor <iant@google.com>
8289
8290 * c.opt (-fplan9-extensions): New option.
8291
82a1c2fe
FXC
82922010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8293
8294 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
8295 Remove.
8296 (c_cpp_builtins): Call functions from cppbuiltin.c instead
8297 of duplicating code.
8298
92902b1b
IS
82992010-09-30 Iain Sandoe <iains@gcc.gnu.org>
8300
8301 * c-common.c: Add two new entries for @optional
8302 and @required keywords.
8303
8304 merge from FSF 'apple/trunk' branch.
3f8257db 8305 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
92902b1b
IS
8306
8307 Radar 4386773
8308 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
8309 objective-c keywords.
8310 (objc_set_method_opt): New declaration.
8311 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 8312
46625112
JM
83132010-09-30 Joseph Myers <joseph@codesourcery.com>
8314
8315 * c-common.c (handle_optimize_attribute): Pass &global_options to
8316 cl_optimization_save and cl_optimization_restore.
8317 * c-opts.c (c_common_handle_option): Pass &global_options to
8318 handle_generated_option.
8319 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
8320 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
8321 &global_options to cl_optimization_restore.
8322
49b91f05
NP
83232010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
8324
8325 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
8326 Objective-C/Objective-C++ keywords.
8327
13ed556f 83282010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 8329
9faeb493
UB
8330 Merge from 'apple/trunk' branch on FSF servers.
8331
3f8257db 8332 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
a6341d57
NP
8333
8334 Radar 4281748
8335 * c-common.h (objc_check_global_decl): New declaration.
8336 * stub-objc.c (objc_check_global_decl): New stub.
8337
f0036cca
JM
83382010-09-29 Joseph Myers <joseph@codesourcery.com>
8339
8340 * c.opt: Don't use VarExists.
8341
e3339d0f
JM
83422010-09-29 Joseph Myers <joseph@codesourcery.com>
8343
8344 * c-common.c (c_cpp_error): Update names of diagnostic_context
8345 members.
8346 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
8347 cl_optimization members.
8348 * c-opts.c (warning_as_error_callback, c_common_handle_option,
8349 sanitize_cpp_opts, finish_options): Update names of cpp_options
8350 members.
8351
1973201f
NP
83522010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
8353
8354 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
8355 (objc_is_reserved_word): Removed.
8356 * c-common.c: Updated comments.
8357 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
8358 objc_is_reserved_word.
8359 * stub-objc.c (objc_is_reserved_word): Removed.
8360
f7e71da5
IS
83612010-09-28 Iain Sandoe <iains@gcc.gnu.org>
8362
9faeb493 8363 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
8364 include attributes.
8365 (objc_start_method_definition): Likewise.
8366 (objc_build_keyword_decl): Likewise.
8367 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
8368 (objc_start_method_definition): Likewise.
8369 (objc_build_keyword_decl): Likewise.
8370
c165dca7
IS
83712010-09-28 Iain Sandoe <iains@gcc.gnu.org>
8372
8373 * c-common.h (objc_start_class_interface): Adjust prototype.
8374 (objc_start_category_interface): Likewise.
8375 (objc_start_protocol): Likewise.
8376 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
8377 (objc_start_class_interface): Likewise.
8378 (objc_start_category_interface): Likewise.
8379
7458026b
ILT
83802010-09-27 Ian Lance Taylor <iant@google.com>
8381
8382 * c-common.c (c_common_attribute_table): Add no_split_stack.
8383 (handle_no_split_stack_attribute): New static function.
8384
b581b85b
NP
83852010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
8386
9faeb493 8387 Merge from 'apple/trunk' branch on FSF servers.
b581b85b 8388
3f8257db 8389 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
b581b85b 8390
9faeb493 8391 Radar 4229905
b581b85b
NP
8392 * c-common.h (objc_have_common_type): New declaration.
8393 * stub-objc.c (objc_have_common_type): New stub.
8394
8395 2005-06-22 Ziemowit Laski <zlaski@apple.com>
8396
8397 Radar 4154928
8398 * c-common.h (objc_common_type): New prototype.
9faeb493 8399 * stub-objc.c (objc_common_type): New stub.
b581b85b 8400
46a4da10
JH
84012010-09-24 Jan Hubicka <jh@suse.cz>
8402
8403 * c-common.c (handle_leaf_attribute): New function.
8404 (struct attribute_spec c_common_att): Add leaf.
8405
e200444e
JM
84062010-09-22 Joseph Myers <joseph@codesourcery.com>
8407
8408 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
8409 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
8410 -dump, -dump=, -imacros, -imacros=, -include, -include=,
8411 -include-barrier, -include-directory, -include-directory=,
8412 -include-directory-after, -include-directory-after=,
8413 -include-prefix, -include-prefix=, -include-with-prefix,
8414 -include-with-prefix=, -include-with-prefix-after,
8415 -include-with-prefix-after=, -include-with-prefix-before,
8416 -include-with-prefix-before=, -no-integrated-cpp,
8417 -no-line-commands, -no-standard-includes, -no-warnings, -output,
8418 -output=, -pedantic, -pedantic-errors, -preprocess,
8419 -print-missing-file-dependencies, -trace-includes, -traditional,
8420 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
8421 -user-dependencies, -verbose, -write-dependencies,
8422 -write-user-dependencies, no-integrated-cpp, traditional): New.
8423
29a80ea6
NP
84242010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
8425
8426 PR objc/23710
ac1fc2fc
NP
8427 * c-common.h (objc_start_method_definition): Return bool instead
8428 of void.
8429 * stub-objc.c (objc_start_method_definition): Return bool instead
8430 of void.
8431
84322010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
8433
8434 PR objc/25965
8435 * c-common.h (objc_get_interface_ivars): New declaration.
8436 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 8437
de621752
ILT
84382010-09-15 Ian Lance Taylor <iant@google.com>
8439
8440 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 8441 messages. Remove period at end of warning message.
de621752 8442
ba885ec5
NS
84432010-09-09 Nathan Sidwell <nathan@codesourcery.com>
8444
8445 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
8446 (handle_alias_attribute): ... here.
8447 (handle_ifunc_attribute): New.
8448
c5ee1358
MM
84492010-09-06 Mark Mitchell <mark@codesourcery.com>
8450
8451 * c-common.h (do_warn_double_promotion): Declare.
8452 * c-common.c (do_warn_double_promotion): Define.
8453
0a0b3574
MM
84542010-09-05 Mark Mitchell <mark@codesourcery.com>
8455
8456 * c.opt (Wdouble-promotion): New.
8457
d1779886
JM
84582010-09-02 Joseph Myers <joseph@codesourcery.com>
8459
8460 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
8461 fvtable-thunks, fxref): Mark no longer supported in help text.
8462
2d2bd949
JM
84632010-09-02 Joseph Myers <joseph@codesourcery.com>
8464
8465 * c.opt (Wimport, fall-virtual, falt-external-templates,
8466 fdefault-inline, fenum-int-equiv, fexternal-templates,
8467 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
8468 fname-mangling-version-, fnew-abi, fnonnull-objects,
8469 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
8470 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
8471 applicable.
8472 (fhandle-exceptions): Mark with Alias and Warn.
8473 * c-opts.c (c_common_handle_option): Don't handle options marked
8474 as ignored.
8475
5de8299c
JM
84762010-09-02 Joseph Myers <joseph@codesourcery.com>
8477
8478 * c.opt (Wcomments, Werror-implicit-function-declaration,
8479 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
8480 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
8481 aliases.
8482 * c-common.c (option_codes): Use OPT_Wcomment instead of
8483 OPT_Wcomments.
8484 * c-opts.c (warning_as_error_callback, c_common_handle_option):
8485 Don't handle options marked as aliases.
8486
0ceb0201
RG
84872010-08-25 Richard Guenther <rguenther@suse.de>
8488
8489 * c-common.c (c_common_get_alias_set): Remove special
8490 handling for pointers.
8491
ac47786e
NF
84922010-08-20 Nathan Froyd <froydnj@codesourcery.com>
8493
8494 * c-common.c: Use FOR_EACH_VEC_ELT.
8495 * c-gimplify.c: Likewise.
8496 * c-pragma.c: Likewise.
8497
c878765b
JM
84982010-08-16 Joseph Myers <joseph@codesourcery.com>
8499
8500 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
8501 RejectDriver.
8502 (MMDX): Change back to MMD. Mark NoDriverArg instead of
8503 RejectDriver.
8504 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
8505 instead of OPT_MDX and OPT_MMDX.
8506
603349bf
JM
85072010-08-16 Joseph Myers <joseph@codesourcery.com>
8508
8509 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
8510
644fa7ac
JM
85112010-08-12 Joseph Myers <joseph@codesourcery.com>
8512
8513 * c.opt (MD, MMD): Change to MDX and MMDX.
8514 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
8515
481e1176
JM
85162010-08-11 Joseph Myers <joseph@codesourcery.com>
8517
8518 * c-opts.c (c_common_handle_option): Call handle_generated_option
8519 instead of handle_option.
8520
ac8dc9f7
NF
85212010-08-08 Nathan Froyd <froydnj@codesourcery.com>
8522
8523 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
8524 (maybe_apply_renaming_pragma): Delete unneeded declarations.
8525
4f8c876d
NF
85262010-08-08 Nathan Froyd <froydnj@codesourcery.com>
8527
8528 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
8529 (pending_redefine_extname): Change type to a VEC.
8530 (add_to_renaming_pragma_list): Update for new type of
8531 pending_redefine_extname.
ac8dc9f7 8532 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 8533
3b0c690e
AC
85342010-08-04 Arnaud Charlet <charlet@adacore.com>
8535
8536 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
8537 visited.
8538 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
8539 decide whether a type has already been declared/seen.
8540 Do not go to the original type.
8541 (dump_nested_types): New parameter forward.
8542 Generate forward declaration if needed and mark type as visited.
8543 (print_ada_declaration): Call dump_nested_types if not already done.
8544 Mark types as visited.
8545
1890bccc
JM
85462010-08-03 Joseph Myers <joseph@codesourcery.com>
8547
8548 * c.opt (-print-pch-checksum): Remove option.
8549 * c-opts.c (c_common_handle_option): Don't handle
8550 OPT_print_pch_checksum.
8551
5f20c657
JM
85522010-07-27 Joseph Myers <joseph@codesourcery.com>
8553
8554 * c-common.h (c_common_handle_option): Update prototype and return
8555 value type.
8556 * c-opts.c (c_common_handle_option): Update prototype and return
8557 value type. Update calls to handle_option and
8558 enable_warning_as_error.
8559
f551f80c
JJ
85602010-07-27 Jakub Jelinek <jakub@redhat.com>
8561
8562 PR c/45079
8563 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
8564
61ff2bdc
JM
85652010-07-27 Joseph Myers <joseph@codesourcery.com>
8566
8567 * c-common.h (c_common_missing_argument): Remove.
8568 * c-opts.c (c_common_missing_argument): Remove.
8569 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
8570 idirafter, imacros, include, isysroot, isystem, iquote): Add
8571 MissingArgError.
8572 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
8573
7a9bf9a4
JM
85742010-07-27 Joseph Myers <joseph@codesourcery.com>
8575
8576 * c-common.h (c_common_option_lang_mask,
8577 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
8578 New.
8579 (c_common_init_options): Update prototype.
8580 * c-opts.c (c_common_option_lang_mask): New.
8581 (c_common_initialize_diagnostics): Split out of
8582 c_common_init_options.
8583 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
8584 New.
8585 (c_common_init_options): Update prototype. Use decoded options in
8586 search for -lang-asm.
8587
910ad8de
NF
85882010-07-15 Nathan Froyd <froydnj@codesourcery.com>
8589
8590 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
8591 * c-format.c: Likewise.
8592
718f9c0f
MLI
85932010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
8594
8595 * c-common.h: Include diagnostic-core.h. Error if already
8596 included.
8597 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
8598
4d451982
MLI
85992010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
8600
adfac8df 8601 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
8602 Do not include expr.h
8603 (vector_mode_valid_p): Move here.
8604
119fe915
SB
86052010-06-21 DJ Delorie <dj@redhat.com>
8606
8607 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
8608 allow these pragmas anywhere.
8609
86102010-06-14 Jakub Jelinek <jakub@redhat.com>
8611
8612 PR bootstrap/44509
8613 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
8614 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
8615 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
8616 ggc_strdup instead of xstrdup.
8617
86182010-06-10 Jakub Jelinek <jakub@redhat.com>
8619
8620 * c-cppbuiltin.c: Include cpp-id-data.h.
8621 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
8622 (lazy_hex_fp_value): New function.
8623 (builtin_define_with_hex_fp_value): Provide definitions lazily.
8624
6662d794
MLI
86252010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
8626
8627 * c-gimplify.c: Do not include tree-flow.h
8628
38f8b050
JR
86292010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
8630
8631 PR other/44034
8632 * c-common.c: Rename targetm member:
8633 targetm.enum_va_list -> targetm.enum_va_list_p
8634
9589f23e
AS
86352010-06-28 Anatoly Sokolov <aesok@post.ru>
8636
8637 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
8638
3b06d379
SB
86392010-06-28 Steven Bosscher <steven@gcc.gnu.org>
8640
8641 * c-cppbuiltin.c: Do not include except.h.
8642
d166d4c3
AK
86432010-06-24 Andi Kleen <ak@linux.intel.com>
8644
9faeb493
UB
8645 * c-common.c (warn_for_omitted_condop): New.
8646 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 8647
70cb8be6
JM
86482010-06-21 Joseph Myers <joseph@codesourcery.com>
8649
8650 * c.opt (lang-objc): Remove.
8651 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
8652
a4c97feb
JR
86532010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
8654
8655 * c-opts.c: Include "tm_p.h".
8656
6e2f1956
JM
86572010-06-20 Joseph Myers <joseph@codesourcery.com>
8658
8659 * c-common.c (parse_optimize_options): Update call to
8660 decode_options.
8661
bc87224e
NF
86622010-06-18 Nathan Froyd <froydnj@codesourcery.com>
8663
8664 * c-common.c (record_types_used_by_current_var_decl): Adjust for
8665 new type of types_used_by_cur_var_decl.
8666
b49cf425
JR
86672010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
8668
8669 PR bootstrap/44512
8670 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
8671 for C++ standard compliance.
8672
59f9c2ed
JM
86732010-06-16 Jason Merrill <jason@redhat.com>
8674
8675 * c.opt: Add -Wnoexcept.
8676
33766b66
RG
86772010-06-16 Richard Guenther <rguenther@suse.de>
8678
8679 PR c/44555
8680 * c-common.c (c_common_truthvalue_conversion): Remove
8681 premature and wrong optimization concering ADDR_EXPRs.
8682
eff7e30c
AC
86832010-06-15 Arnaud Charlet <charlet@adacore.com>
8684
8685 * c-ada-spec.c (dump_sloc): Remove column info.
8686 (is_simple_enum): New function.
8687 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
8688 enum types when relevant.
8689
6312e84d
MLI
86902010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
8691
9faeb493 8692 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
8693 location.
8694
1cb42611
JM
86952010-06-10 Joseph Myers <joseph@codesourcery.com>
8696
8697 * c-opts.c (c_common_handle_option): Don't handle
8698 OPT_fshow_column.
8699
a9429e29
LB
87002010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8701
8702 * c-pragma.c (push_alignment): Use typed GC allocation.
8703 (handle_pragma_push_options): Likewise.
8704
8705 * c-common.c (parse_optimize_options): Likewise.
8706
8707 * c-common.h (struct sorted_fields_type): Add variable_size GTY
8708 option.
8709
5498f011
JM
87102010-06-07 Joseph Myers <joseph@codesourcery.com>
8711
8712 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
8713 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
8714 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
8715 flag_signed_bitfields, warn_strict_null_sentinel,
8716 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
8717 flag_gen_declaration, flag_no_gnu_keywords,
8718 flag_implement_inlines, flag_implicit_templates,
8719 flag_implicit_inline_templates, flag_optional_diags,
8720 flag_elide_constructors, flag_default_inline, flag_rtti,
8721 flag_conserve_space, flag_access_control, flag_check_new,
8722 flag_new_for_scope, flag_weak, flag_working_directory,
8723 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
8724 flag_enforce_eh_specs, flag_threadsafe_statics,
8725 flag_pretty_templates): Remove.
8726 * c-common.h (flag_preprocess_only, flag_nil_receivers,
8727 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
8728 flag_replace_objc_classes, flag_undef, flag_no_builtin,
8729 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
8730 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
8731 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
8732 flag_no_gnu_keywords, flag_implement_inlines,
8733 flag_implicit_templates, flag_implicit_inline_templates,
8734 flag_optional_diags, flag_elide_constructors, flag_default_inline,
8735 flag_rtti, flag_conserve_space, flag_access_control,
8736 flag_check_new, flag_new_for_scope, flag_weak,
8737 flag_working_directory, flag_use_cxa_atexit,
8738 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
8739 flag_threadsafe_statics, flag_pretty_templates,
8740 warn_strict_null_sentinel): Remove.
8741 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
8742 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
8743 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
8744 fimplicit-inline-templates, fimplicit-templates,
8745 flax-vector-conversions, fms-extensions, fnil-receivers,
8746 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
8747 frtti, fshort-double, fshort-enums, fshort-wchar,
8748 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
8749 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
8750 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
8751 gen-decls, undef): Use Var.
8752 (fdefault-inline, foptional-diags): Document as doing nothing.
8753 * c-opts.c (c_common_handle_option): Remove cases for options now
8754 using Var. Mark ignored options as such.
8755
39dabefd
SB
87562010-06-05 Steven Bosscher <steven@gcc.gnu.org>
8757
9faeb493 8758 * c-common.c: Moved to here from parent directory.
39dabefd
SB
8759 * c-common.def: Likewise.
8760 * c-common.h: Likewise.
8761 * c-cppbuiltin.c: Likewise.
8762 * c-dump.c: Likewise.
8763 * c-format.c: Likewise.
8764 * c-format.h : Likewise.
8765 * c-gimplify.c: Likewise.
8766 * c-lex.c: Likewise.
8767 * c-omp.c: Likewise.
8768 * c.opt: Likewise.
8769 * c-opts.c: Likewise.
8770 * c-pch.c: Likewise.
8771 * c-ppoutput.c: Likewise.
8772 * c-pragma.c: Likewise.
8773 * c-pragma.h: Likewise.
8774 * c-pretty-print.c: Likewise.
8775 * c-pretty-print.h: Likewise.
8776 * c-semantics.c: Likewise.
8777 * stub-objc.c: Likewise.
8778
8779 * c-common.c: Include gt-c-family-c-common.h.
8780 * c-pragma.c: Include gt-c-family-c-pragma.h.
8781\f
85ec4feb 8782Copyright (C) 2010-2018 Free Software Foundation, Inc.
39dabefd
SB
8783
8784Copying and distribution of this file, with or without modification,
8785are permitted in any medium without royalty provided the copyright
8786notice and this notice are preserved.
This page took 3.042344 seconds and 5 git commands to generate.