]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
[PR C++/59930] template friend classes & default args
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
c65e18d3
BE
12017-12-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
2
3 * c.opt (Wcast-function-type): New warning option.
4 * c-lex.c (get_fileinfo): Avoid warning.
5 * c-ppoutput.c (scan_translation_unit_directives_only): Remove cast.
6
2004617a
QZ
72017-12-14 Qing Zhao <qing.zhao@oracle.com>
8
9 PR middle_end/79538
10 * c-cppbuiltin.c (builtin_define_with_hex_fp_value):
11 Adjust the size of buf1 and buf2, add a new buf to avoid
12 format-overflow warning.
13
96a95ac1
AO
142017-12-12 Alexandre Oliva <aoliva@redhat.com>
15
16 * c-semantics.c (pop_stmt_list): Move begin stmt marker into
17 subsequent statement list.
18
5d9ae53d
MS
192017-12-07 Martin Sebor <msebor@redhat.com>
20
21 PR c/81544
22 PR c/81566
23 * c-attribs.c (attr_aligned_exclusions): New array.
24 (attr_alloc_exclusions, attr_cold_hot_exclusions): Same.
25 (attr_common_exclusions, attr_const_pure_exclusions): Same.
26 (attr_gnu_inline_exclusions, attr_inline_exclusions): Same.
27 (attr_noreturn_exclusions, attr_returns_twice_exclusions): Same.
28 (attr_warn_unused_result_exclusions): Same.
29 (handle_hot_attribute, handle_cold_attribute): Simplify.
30 (handle_const_attribute): Warn on function returning void.
31 (handle_pure_attribute): Same.
32 (handle_aligned_attribute): Diagnose conflicting attribute
33 specifications.
34 * c-warn.c (diagnose_mismatched_attributes): Simplify.
35
c79144f8
DM
362017-12-06 David Malcolm <dmalcolm@redhat.com>
37
38 PR c/83236
39 * c-common.c (selftest::c_family_tests): Call
40 selftest::c_spellcheck_cc_tests.
41 * c-common.h (selftest::c_spellcheck_cc_tests): New decl.
42 * c-spellcheck.cc: Include "selftest.h".
43 (name_reserved_for_implementation_p): New function.
44 (should_suggest_as_macro_p): New function.
45 (find_closest_macro_cpp_cb): Move the check for NT_MACRO to
46 should_suggest_as_macro_p and call it.
47 (selftest::test_name_reserved_for_implementation_p): New function.
48 (selftest::c_spellcheck_cc_tests): New function.
49 * c-spellcheck.h (name_reserved_for_implementation_p): New decl.
50
613bc14f
DM
512017-12-06 David Malcolm <dmalcolm@redhat.com>
52
53 * c-spellcheck.cc: New file, taken from macro-handling code in
54 spellcheck-tree.c.
55 * c-spellcheck.h: New file, taken from macro-handling code in
56 spellcheck-tree.h.
57
e76c7157
JJ
582017-12-01 Jakub Jelinek <jakub@redhat.com>
59
60 * c-attribs.c (c_common_attribute_table): Remove "cilk simd function"
61 attribute.
62 (handle_simd_attribute): Don't check for "cilk simd function"
63 attribute. Reindent, formatting changes.
64
b0da4034
JK
652017-11-30 Julia Koval <julia.koval@intel.com>
66
67 * c-common.h (inv_list): Remove.
68
058f0b9e
JJ
692017-11-28 Jakub Jelinek <jakub@redhat.com>
70
71 PR sanitizer/81275
72 * c-common.c (c_switch_covers_all_cases_p_1,
73 c_switch_covers_all_cases_p): New functions.
74 * c-common.h (c_switch_covers_all_cases_p): Declare.
75
5e9d6aa4
JK
762017-11-28 Julia Koval <julia.koval@intel.com>
77 Sebastian Peryt <sebastian.peryt@intel.com>
78
79 * array-notation-common.c: Delete.
80 * c-cilkplus.c: Ditto.
81 * c-common.c (_Cilk_spawn, _Cilk_sync, _Cilk_for): Remove.
82 * c-common.def (ARRAY_NOTATION_REF): Remove.
83 * c-common.h (RID_CILK_SPAWN, build_array_notation_expr,
84 build_array_notation_ref, C_ORT_CILK, c_check_cilk_loop,
85 c_validate_cilk_plus_loop, cilkplus_an_parts,
86 cilk_ignorable_spawn_rhs_op,
87 cilk_recognize_spawn): Remove.
88 * c-gimplify.c (CILK_SPAWN_STMT): Remove.
89 * c-omp.c: Remove CILK_SIMD check.
90 * c-pragma.c: Ditto.
91 * c-pragma.h: Remove CILK related pragmas.
92 * c-pretty-print.c (c_pretty_printer::postfix_expression): Remove
93 ARRAY_NOTATION_REF condition.
94 (c_pretty_printer::expression): Ditto.
95 * c.opt (fcilkplus): Remove.
96 * cilk.c: Delete.
97
1af4ebf5
MG
982017-11-21 Marc Glisse <marc.glisse@inria.fr>
99
100 * c-pretty-print.c (pp_c_additive_expression,
101 c_pretty_printer::expression): Handle POINTER_DIFF_EXPR.
102
d44ed508
JJ
1032017-11-21 Jakub Jelinek <jakub@redhat.com>
104
7d2f0f9b
JJ
105 * c-common.c (get_nonnull_operand): Use tree_to_uhwi.
106
d44ed508
JJ
107 PR c++/83059
108 * c-common.c (get_atomic_generic_size): Use TREE_INT_CST_LOW
109 instead of tree_to_uhwi, formatting fix.
110
26edace6
DM
1112017-11-20 David Malcolm <dmalcolm@redhat.com>
112
113 PR c/81404
114 * known-headers.cc: New file, based on material from c/c-decl.c.
115 (suggest_missing_header): Copied as-is.
116 (get_stdlib_header_for_name): New, based on get_c_name_hint but
117 heavily edited to add C++ support. Add some knowledge about
118 <limits.h>, <stdint.h>, and <wchar.h>.
119 * known-headers.h: Likewise.
120
6c7a259b
DM
1212017-11-20 David Malcolm <dmalcolm@redhat.com>
122
123 * c-common.h (enum lookup_name_fuzzy_kind): Move to name-hint.h.
124 (lookup_name_fuzzy): Likewise. Convert return type from
125 const char * to name_hint. Add location_t param.
126 * name-hint.h: New header.
127
f9c59f7e
JJ
1282017-11-19 Jakub Jelinek <jakub@redhat.com>
129
130 PR c/66618
131 PR c/69960
132 * c-common.h (c_fully_fold): Add LVAL argument defaulted to false.
133
1e39313a
JM
1342017-11-16 Joseph Myers <joseph@codesourcery.com>
135
136 * c.opt (-std=c17, std=gnu17, -std=iso9899:2017): Refer to 2018
137 expected publication date of C17.
138 (-std=c18, -std=gnu18, -std=iso9899:2018): New option aliases.
139
3ca0dc60
JM
1402017-11-15 Joseph Myers <joseph@codesourcery.com>
141
142 PR c/81156
143 * c-common.c (c_common_reswords): Add __builtin_tgmath.
144 * c-common.h (enum rid): Add RID_BUILTIN_TGMATH.
145
025d57f0
MS
1462017-11-10 Martin Sebor <msebor@redhat.com>
147
148 PR c/81117
149 * c-common.c (catenate_strings): Use memcpy instead of strncpy.
150 * c-warn.c (sizeof_pointer_memaccess_warning): Handle arrays.
151 * c.opt (-Wstringop-truncation): New option.
152
1b6fa695
ML
1532017-11-06 Martin Liska <mliska@suse.cz>
154
155 PR middle-end/82404
156 * c-opts.c (c_common_post_options): Set -Wreturn-type for C++
157 FE.
158 * c.opt: Set default value of warn_return_type.
159
64a5912c
DM
1602017-10-31 David Malcolm <dmalcolm@redhat.com>
161
162 * c-common.c (binary_op_error): Update for renaming of
163 error_at_rich_loc.
164 (c_parse_error): Likewise.
165 * c-warn.c (warn_logical_not_parentheses): Likewise for
166 renaming of inform_at_rich_loc.
167 (warn_for_restrict): Likewise for renaming of
168 warning_at_rich_loc_n.
169
c76dc9c3
JM
1702017-10-30 Joseph Myers <joseph@codesourcery.com>
171
172 * c.opt (std=c17, std=gnu17, std=iso9899:2017): New options.
173 * c-opts.c (set_std_c17): New function.
174 (c_common_init_options): Use gnu17 as default C version.
175 (c_common_handle_option): Handle -std=c17 and -std=gnu17.
176
ee5fd23a
MM
1772017-10-27 Michael Meissner <meissner@linux.vnet.ibm.com>
178
179 * c-cppbuiltin.c (mode_has_fma): Add support for PowerPC KFmode.
180 (c_cpp_builtins): If a machine has a fast fma _Float<N> and
181 _Float<N>X variant, define __FP_FAST_FMA<N> and/or
182 __FP_FAST_FMA<N>X.
183
d1047465
MP
1842017-10-23 Marek Polacek <polacek@redhat.com>
185
186 PR c/82681
187 * c-warn.c (warnings_for_convert_and_check): Fix typos.
188
9e878cf1
EB
1892017-10-19 Eric Botcazou <ebotcazou@adacore.com>
190
191 * c-common.c (check_builtin_function_arguments): Also check arguments
192 of __builtin_alloca_with_align_and_max.
193
89b6abbb
DM
1942017-10-17 David Malcolm <dmalcolm@redhat.com>
195
196 * c-format.c (format_warning_at_char): Pass UNKNOWN_LOCATION
197 rather than NULL to format_warning_va.
198 (check_format_types): Likewise when calling format_type_warning.
199 Remove code to extract source_ranges and source_range * in favor
200 of just a location_t.
201 (format_type_warning): Convert source_range * param to a
202 location_t.
203
39382c09
JJ
2042017-10-13 Jakub Jelinek <jakub@redhat.com>
205
206 * c-gimplify.c (c_gimplify_expr): Handle [LR]ROTATE_EXPR like
207 [LR]SHIFT_EXPR.
208
62e1c678
DM
2092017-10-12 David Malcolm <dmalcolm@redhat.com>
210
211 * c-common.c (enum missing_token_insertion_kind): New enum.
212 (get_missing_token_insertion_kind): New function.
213 (maybe_suggest_missing_token_insertion): New function.
214 * c-common.h (maybe_suggest_missing_token_insertion): New decl.
215
b90c9338
NS
2162017-10-11 Nathan Sidwell <nathan@acm.org>
217
218 * c-opts.c (add_prefixed_path): Change chain to incpath_kind.
219 (c_common_handle_option): Update incpath_kind names.
220
3a266bcd
ML
2212017-10-11 Martin Liska <mliska@suse.cz>
222
223 PR sanitizer/82490
224 * c-attribs.c (handle_no_sanitize_attribute): Report directly
225 Wattributes warning.
226
8e6cdc90
RS
2272017-10-10 Richard Sandiford <richard.sandiford@linaro.org>
228
229 * c-ada-spec.c (dump_generic_ada_node): Use wi::to_wide when
230 operating on trees as wide_ints.
231 * c-common.c (pointer_int_sum): Likewise.
232 * c-pretty-print.c (pp_c_integer_constant): Likewise.
233 * c-warn.c (match_case_to_enum_1): Likewise.
234 (c_do_switch_warnings): Likewise.
235 (maybe_warn_shift_overflow): Likewise.
236
802b38c9
JJ
2372017-10-10 Jakub Jelinek <jakub@redhat.com>
238
239 PR c/82437
240 * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_wide
241 instead of wide_int::from.
242
4e34b338
JJ
2432017-10-06 Jakub Jelinek <jakub@redhat.com>
244
245 PR c/82437
246 * c-warn.c (warn_tautological_bitwise_comparison): Instead of
247 using to_widest use wide_int with the larger of the two precisions.
248
4bc4b2b4
BE
2492017-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
250
251 * c-pretty-print.c (pp_c_parameter_type_list): Print ... for variadic
252 functions.
253
a1488398
RS
2542017-10-02 Richard Sandiford <richard.sandiford@linaro.org>
255
256 * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_widest
257 when combining the original unconverted comparison operands.
258
01c9fb68
JJ
2592017-09-29 Jakub Jelinek <jakub@redhat.com>
260
261 * c-attribs.c (handle_noipa_attribute): Don't add "stack_protect"
262 attribute.
263
6e3e8419
EB
2642017-09-29 Eric Botcazou <ebotcazou@adacore.com>
265
266 * c-ada-spec.c (to_ada_name): Add index parameter.
267 (pp_ada_tree_identifier): Likewise.
268 (dump_ada_macros): Adjust call to to_ada_name.
269 (struct overloaded_name_hash): New type.
270 (struct overloaded_name_hasher): Likewise.
271 (overloaded_names): New hash table.
272 (compute_overloading_index): New function.
273 (dump_ada_decl_name): Call it and pass the result to
274 pp_ada_tree_identifier.
275 (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
276 (dump_ada_function_declaration): Likewise.
277 (dump_generic_ada_node): Likewise.
278 (print_constructor): Likewise.
279 (print_destructor): Likewise.
280 (dump_ada_specs): Delete overloaded_names table.
281
79310774
EB
2822017-09-29 Eric Botcazou <ebotcazou@adacore.com>
283
284 * c-ada-spec.c (max_ada_macros): Move around.
285 (store_ada_macro_index): Likewise.
286 (source_file): Rename into...
287 (macro_source_file): ...this.
288 (count_ada_macro): Move around.
289 (store_ada_macro): Likewise.
290 (compare_macro): Likewise.
291 (print_ada_macros): Merge in...
292 (dump_ada_macros): ...this.
293 (source_file_base): Rename into...
294 (current_source_file): ...this.
295 (print_comment): Move around.
296 (dump_ada_nodes): Call dump_ada_declaration directly.
297 (struct with): Change type of limited field to bool.
298 (append_withs): Change type of limited_access parameter to bool.
299 (pp_ada_tree_identifie): Likewise.
300 (dump_ada_decl_nam): Likewise.
301 (dump_generic_ada_node): Likewise. Do not print the return type.
302 (to_ada_name): Change type of space_found parameter to bool.
303 (dump_ada_function_declaration): Return void and change type of
304 parameters to bool. Also print the return type for a function.
305 (print_ada_methods): Rename into...
306 (dump_ada_methods): ...this.
307 (print_ada_declaration): Rename into ...
308 (dump_ada_declaration): ...this. Do not print the return type.
309 (print_ada_struct_decl): Rename into...
310 (dump_ada_struct_decl): ...this.
311
7d386d45
JJ
3122017-09-29 Jakub Jelinek <jakub@redhat.com>
313
314 * c-attribs.c (handle_packed_attribute): Test DECL_C_BIT_FIELD
315 rather than DECL_INITIAL.
316 (common_handle_aligned_attribute): Likewise.
317
9ed32e27
AO
3182017-09-20 Alexandre Oliva <aoliva@redhat.com>
319
320 * c.opt (gen-decls): Add RejectNegative.
321
026a79f7
AS
3222017-09-15 Andrew Sutton <andrew.n.sutton@gmail.com>
323 Jakub Jelinek <jakub@redhat.com>
324
325 Add support for -std=c++2a.
326 * c-common.h (cxx_dialect): Add cxx2a as a dialect.
327 * opt.c: Add options for -std=c++2a and -std=gnu++2a.
328 * c-opts.c (set_std_cxx2a): New.
329 (c_common_handle_option): Set options when -std=c++2a is enabled.
330 (c_common_post_options): Adjust comments.
331 (set_std_cxx14, set_std_cxx17): Likewise.
332
4a8ca690
EB
3332017-09-15 Eric Botcazou <ebotcazou@adacore.com>
334
335 * c-pragma.c (handle_pragma_scalar_storage_order): Expand on error
336 message for non-uniform endianness and issue a warning in C++.
337
7b936140
JJ
3382017-09-15 Jakub Jelinek <jakub@redhat.com>
339
340 * c.opt (Wc++1z-compat): Change from option to undocumented alias.
341 (Wc++17-compat): Change from undocumented alias to option.
342 (Wnoexcept-type): Enable by Wc++17-compat instead of Wc++1z-compat,
343 change C++1z to C++17 in description.
344 (std=c++1z, std=gnu++1z): Change from option to undocumented
345 deprecated alias.
346 (std=c++17, std=gnu++17): Change from undocumented alias to option.
347 Adjust description.
348 * c-common.h (enum cxx_dialect): Rename cxx1z to cxx17.
349 * c-opts.c (set_std_cxx1z): Rename to ...
350 (set_std_cxx17): ... this.
351 (c_common_handle_option): Rename OPT_std_c__1z to OPT_std_c__17
352 and OPT_std_gnu__1z to OPT_std_gnu__17. Adjust set_std_cxx1z
353 caller.
354 (c_common_post_options): Use cxx17 instead of cxx1z. Adjust
355 comments.
356
12263f13
L
3572017-09-12 H.J. Lu <hongjiu.lu@intel.com>
358
359 * c-attribs.c (common_handle_aligned_attribute): Don't warn
360 function alignment if warn_if_not_aligned_p is true.
361
6836632e
NS
3622017-09-12 Nathan Sidwell <nathan@acm.org>
363
364 * c-common.c (field_decl_cmp, resort_data, resort_field_decl_cmp,
365 resort_sorted_fields): Move to c/c-decl.c.
366 * c-common.h (field_decl_cmp, resort_sorted_fields): Delete.
367 (struct sorted_fields_type): Move to c/c-lang.h.
368
019bf9ad
JW
3692017-09-09 Jonathan Wakely <jwakely@redhat.com>
370
371 PR c++/81852
372 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_threadsafe_static_init.
373
bc7fe952
MP
3742017-09-04 Marek Polacek <polacek@redhat.com>
375
376 PR c/81783
377 * c-warn.c (warn_tautological_bitwise_comparison): New function.
378 (warn_tautological_cmp): Call it.
379
de7c2c6a
BK
3802017-09-01 Boris Kolpackov <boris@codesynthesis.com>
381
382 * c-opts.c (c_common_finish): Write dependency information even if
383 there are errors.
384
d2e05fcb
JJ
3852017-09-01 Jakub Jelinek <jakub@redhat.com>
386
387 PR c/81887
388 * c-pragma.c (omp_pragmas): Move "ordered" entry from here to ...
389 (omp_pragmas_simd): ... here.
390 * c-omp.c (c_finish_omp_ordered): If clauses isn't simd clause alone,
391 create new clauses list containing just simd clause.
392
18e2a8b8
RS
3932017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
394 Alan Hayward <alan.hayward@arm.com>
395 David Sherwood <david.sherwood@arm.com>
396
397 * c-attribs.c (vector_mode_valid_p) Fold GET_MODE_INNER call
398 into scalar_mode_supported_p call.
399 (handle_mode_attribute): Update call to scalar_mode_supported_p.
400
16d22000
RS
4012017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
402 Alan Hayward <alan.hayward@arm.com>
403 David Sherwood <david.sherwood@arm.com>
404
405 * c-common.c (c_common_fixed_point_type_for_size): Use opt_scalar_mode
406 for the mode iterator.
407
b397965c
RS
4082017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
409 Alan Hayward <alan.hayward@arm.com>
410 David Sherwood <david.sherwood@arm.com>
411
412 * c-lex.c (interpret_fixed): Use SCALAR_TYPE_MODE.
413 * c-common.c (c_build_vec_perm_expr): Likewise.
414
357b7604
RS
4152017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
416 Alan Hayward <alan.hayward@arm.com>
417 David Sherwood <david.sherwood@arm.com>
418
419 * c-common.c (c_common_type_for_mode): Use as_a <scalar_int_mode>.
420
e05c94ba
RS
4212017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
422 Alan Hayward <alan.hayward@arm.com>
423 David Sherwood <david.sherwood@arm.com>
424
425 * c-attribs.c (handle_mode_attribute): Check for a scalar_int_mode
426 before calling targetm.addr_space.valid_pointer_mode.
427
5c20c4af
RS
4282017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
429 Alan Hayward <alan.hayward@arm.com>
430 David Sherwood <david.sherwood@arm.com>
431
432 * c-cppbuiltin.c (c_cpp_builtins): Use opt_scalar_float_mode.
433
c94843d2
RS
4342017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
435 Alan Hayward <alan.hayward@arm.com>
436 David Sherwood <david.sherwood@arm.com>
437
438 * c-common.c (c_common_fixed_point_type_for_size): Use new mode
439 iterators.
440 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
441
4e10a5a7
RS
4422017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
443 Alan Hayward <alan.hayward@arm.com>
444 David Sherwood <david.sherwood@arm.com>
445
446 * c-cppbuiltin.c (mode_has_fma): Prefix mode names with E_ in
447 case statements.
448
130fcab0
ML
4492017-08-29 Martin Liska <mliska@suse.cz>
450
451 PR other/39851
452 * c-common.c (parse_optimize_options): Add argument to function
453 call.
454 * c-pragma.c (handle_pragma_diagnostic): Likewise.
455
14e18d71
DM
4562017-08-24 David Malcolm <dmalcolm@redhat.com>
457
458 * c-lex.c (interpret_float): Use token location
459 when building an EXCESS_PRECISION_EXPR.
460
2f687306
DM
4612017-08-21 David Malcolm <dmalcolm@redhat.com>
462
463 * c-common.c (check_function_arguments): Add "arglogs" param; pass
464 it to check_function_format.
465 * c-common.h (check_function_arguments): Add vec<location_t> *
466 param.
467 (check_function_format): Likewise.
468 * c-format.c (struct format_check_context): Add field "arglocs".
469 (check_function_format): Add param "arglocs"; pass it to
470 check_format_info.
471 (check_format_info): Add param "arglocs"; use it to initialize
472 new field of format_ctx.
473 (check_format_arg): Pass format_ctx->arglocs to new param of
474 check_format_info_main.
475 (class argument_parser): New field "arglocs".
476 (argument_parser::argument_parser): Add "arglocs_" param and use
477 it to initialize new field.
478 (argument_parser::check_argument_type): Pass new arglocs field to
479 check_format_types.
480 (check_format_info_main): Add param "arglocs", and use it when
481 constructing arg_parser.
482 (check_format_types): Add param "arglocs"; use it if non-NULL when
483 !EXPR_HAS_LOCATION (cur_param) to get at location information.
484
00aa1fa2
L
4852017-08-18 H.J. Lu <hongjiu.lu@intel.com>
486
487 PR c/53037
488 * c-attribs.c (handle_warn_if_not_aligned_attribute): New.
489 (c_common_attribute_table): Add warn_if_not_aligned.
490 (handle_aligned_attribute): Renamed to ...
491 (common_handle_aligned_attribute): Remove argument, name, and add
492 argument, warn_if_not_aligned. Handle warn_if_not_aligned.
493 (handle_aligned_attribute): New.
494 * c.opt: Add -Wif-not-aligned and -Wpacked-not-aligned.
495
27be025d
MS
4962017-08-14 Martin Sebor <msebor@redhat.com>
497
498 PR c/81117
499 * c-attribs.c (c_common_attribute_table): Add nonstring entry.
500 (handle_nonstring_attribute): New function.
501
da67acb9
MS
5022017-08-14 Martin Sebor <msebor@redhat.com>
503
504 PR c/81117
505 * c-format.h (T89_G): New macro.
506 * c-format.c (local_gcall_ptr_node): New variable.
507 (init_dynamic_diag_info): Initialize it.
508
a8b522b4
ML
5092017-08-11 Martin Liska <mliska@suse.cz>
510
511 * c-opts.c (c_common_post_options): Replace ASM_OUTPUT_DEF with
512 TARGET_SUPPORTS_ALIASES.
513
32129a17
DM
5142017-08-10 David Malcolm <dmalcolm@redhat.com>
515
516 * c-common.c (c_parse_error): Add rich_location * param, using it
517 rather implicitly using input_location.
518 * c-common.h (c_parse_error): Add rich_location * param.
519
30af3a2b
MP
5202017-08-09 Marek Polacek <polacek@redhat.com>
521
522 * c-common.c (pointer_int_sum): Use true/false instead of 1/0.
523 (c_common_truthvalue_conversion): Likewise.
524 * c-omp.c (c_finish_omp_atomic): Likewise.
525 * c-common.h (build_binary_op): Update declaration.
526
314e6352
ML
5272017-08-08 Martin Liska <mliska@suse.cz>
528
529 * c-ada-spec.c: Include header files.
530 * c-ubsan.c: Likewise.
531 * c-warn.c: Likewise.
532
56b5041c
JJ
5332017-08-07 Jakub Jelinek <jakub@redhat.com>
534
535 PR c/69389
536 * c-omp.c (c_finish_omp_atomic): Handle atomics on bitfields.
537
db440138
EB
5382017-08-07 Eric Botcazou <ebotcazou@adacore.com>
539
540 * c-ada-spec.c (has_nontrivial_methods): Test for FUNCTION_DECL.
541 (print_ada_methods): Likewise.
542 (print_ada_declaration): Likewise.
543
577eec56
ML
5442017-08-07 Martin Liska <mliska@suse.cz>
545
546 * array-notation-common.c: Add new includes.
547 * c-format.c( handle_format_attribute): Canonicalize a format
548 function name.
549 * c-lex.c (c_common_has_attribute): Canonicalize name of an
550 attribute.
551 * c-pretty-print.c: Add new include.
552
b854df3c
EB
5532017-08-05 Eric Botcazou <ebotcazou@adacore.com>
554
555 * c-ada-spec.c (has_static_fields): Look only into variables.
556 (print_constructor): Add TYPE parameter and use it for the name.
557 (print_destructor): Likewise.
558 (print_ada_declaration): Adjust to new constructor/destructor names.
559 Adjust calls to print_constructor and print_destructor.
560 (print_ada_struct_decl): Do not test TREE_STATIC on FIELD_DECL.
561 Look only into variables in the final loop.
562
9f2cb25e
EB
5632017-08-01 Eric Botcazou <ebotcazou@adacore.com>
564
565 * c-ada-spec.c (has_static_fields): Look only into fields.
566 (dump_generic_ada_node): Small tweak.
567 (dump_nested_types): Look only into fields.
568 (print_ada_declaration): Look only into methods. Small tweak.
569 (print_ada_struct_decl): Look only into fields. Use DECL_VIRTUAL_P.
570
f4bcd9eb
EB
5712017-08-01 Eric Botcazou <ebotcazou@adacore.com>
572
573 * c-ada-spec.c (print_generic_ada_decl): Pass correctly-typed constant.
574 (dump_ada_function_declaration): Likewise.
575 (dump_generic_ada_node): Likewise.
576 (print_ada_declaration): Add support for const-qualified variables.
577
f34ebeb2
ML
5782017-07-31 Martin Liska <mliska@suse.cz>
579
580 PR sanitize/81530
581 * c-ubsan.c (ubsan_maybe_instrument_array_ref):
582 Guard condition with flag_sanitize_p also with current_function_decl
583 non-null equality.
584 (ubsan_maybe_instrument_reference_or_call): Likewise.
585
218e5d04
UB
5862017-07-30 Uros Bizjak <ubizjak@gmail.com>
587
588 * c-format.c (asm_fprintf_char_table): Add 'z' to format_chars.
589
942047f2
EB
5902017-07-29 Eric Botcazou <ebotcazou@adacore.com>
591
592 * c-ada-spec.c (dump_generic_ada_node): Take into account signedness
593 for enumeral types.
594 (print_ada_declaration): Add missing guard for record types.
595
a40ff0ae
JJ
5962017-07-27 Jakub Jelinek <jakub@redhat.com>
597
598 PR c/45784
599 * c-omp.c (c_finish_omp_for): If the condition is wrapped in
600 rhs of COMPOUND_EXPR(s), skip them and readd their lhs into
601 new COMPOUND_EXPRs around the rhs of the comparison.
602
06bd22f6
MP
6032017-07-27 Marek Polacek <polacek@redhat.com>
604
605 PR c/81417
606 * c-warn.c (warn_for_sign_compare): Tweak the warning message. Print
607 the types.
608
036ea399
JJ
6092017-07-27 Jakub Jelinek <jakub@redhat.com>
610
611 * c-attribs.c (c_common_attribute_table): Add noipa attribute.
612 (handle_noipa_attribute): New function.
613
417ca011
TD
6142017-07-07 Torsten Duwe <duwe@suse.de>
615
616 * c-attribs.c (c_common_attribute_table): Add entry for
617 "patchable_function_entry".
618
5aaa8fb4
NS
6192017-07-20 Nathan Sidwell <nathan@acm.org>
620
621 Remove TYPE_METHODS.
622 * c-ada-spec.c (is_tagged_type, has_nontrivial_methods,
623 dump_ada_template, print_ada_methods,
624 print_ada_declaration): Member fns are on TYPE_FIELDS.
625
ff22eb12
NS
6262017-07-18 Nathan Sidwell <nathan@acm.org>
627
628 * c-warn.c (warn_for_memset): Use TYPE_{MIN,MAX}_VALUE.
629
eea77d1f
DM
6302017-07-14 David Malcolm <dmalcolm@redhat.com>
631
632 * c-common.c (try_to_locate_new_include_insertion_point): New
633 function.
634 (per_file_includes_t): New typedef.
635 (added_includes_t): New typedef.
636 (added_includes): New variable.
637 (maybe_add_include_fixit): New function.
638 * c-common.h (maybe_add_include_fixit): New decl.
639
281ac396
MS
6402017-07-10 Martin Sebor <msebor@redhat.com>
641
642 PR other/81345
643 * c.opt (-Wstringop-overflow): Set defaults in LangEnabledBy.
644
b6f43128
DM
6452017-07-06 David Malcolm <dmalcolm@redhat.com>
646
647 * c-common.c (selftest::c_family_tests): New.
648 * c-common.h (selftest::run_c_tests): Move decl to c/c-lang.h.
649 (selftest::c_family_tests): New decl.
650
efbf55b0
MP
6512017-07-04 Marek Polacek <polacek@redhat.com>
652
653 PR c/81231
654 * c-common.c (sync_resolve_size): Give error for pointers to incomplete
655 types.
656
6c86bd88
MP
6572017-07-04 Marek Polacek <polacek@redhat.com>
658
659 * c-warn.c (warn_if_unused_value): Remove WITH_CLEANUP_EXPR handling.
660
17a7218b
ML
6612017-06-28 Martin Liska <mliska@suse.cz>
662
663 PR ipa/81128
664 * c-attribs.c (handle_alias_ifunc_attribute): Append ifunc alias
665 to a function declaration.
666
63010089
ML
6672017-06-28 Martin Liska <mliska@suse.cz>
668
669 PR driver/79659
670 * c.opt: Add IntegerRange to various options.
671
3e2becc4
MP
6722017-06-26 Marek Polacek <polacek@redhat.com>
673
674 PR c/80116
675 * c-common.h (warn_for_multistatement_macros): Declare.
676 * c-warn.c: Include "c-family/c-indentation.h".
677 (warn_for_multistatement_macros): New function.
678 * c.opt (Wmultistatement-macros): New option.
679 * c-indentation.c (guard_tinfo_to_string): No longer static.
680 Change the parameter type to "enum rid". Handle RID_SWITCH.
681 * c-indentation.h (guard_tinfo_to_string): Declare.
682
2db9b7cd
MG
6832017-06-23 Marc Glisse <marc.glisse@inria.fr>
684
685 * c-common.c (c_common_nodes_and_builtins): Use builtin_structptr_types.
686
c3684b7b
MS
6872017-06-15 Martin Sebor <msebor@redhat.com>
688
689 PR c++/80560
690 * c.opt (-Wclass-memaccess): New option.
691
e72c4afd
BK
6922017-06-14 Boris Kolpackov <boris@codesynthesis.com>
693
694 * c-opts.c (c_common_finish): Handle '-' special value to -MF.
695
8a516588
MP
6962017-06-13 Marek Polacek <polacek@redhat.com>
697
698 PR objc/80949
699 * c-warn.c (do_warn_duplicated_branches): Return if any of the
700 branches is null.
701
45b2222a
ML
7022017-06-13 Martin Liska <mliska@suse.cz>
703
704 PR sanitize/78204
705 * c-attribs.c (add_no_sanitize_value): New function.
706 (handle_no_sanitize_attribute): Likewise.
707 (handle_no_sanitize_address_attribute): Use the function.
708 (handle_no_sanitize_thread_attribute): New function.
709 (handle_no_address_safety_analysis_attribute): Use
710 add_no_sanitize_value.
711 (handle_no_sanitize_undefined_attribute): Likewise.
712 * c-common.h: Declare new functions.
713 * c-ubsan.c (ubsan_instrument_division): Use sanitize_flags_p.
714 (ubsan_instrument_shift): Likewise.
715 (ubsan_instrument_bounds): Likewise.
716 (ubsan_maybe_instrument_array_ref): Likewise.
717 (ubsan_maybe_instrument_reference_or_call): Likewise.
718
a01f151f
JM
7192017-06-11 Jason Merrill <jason@redhat.com>
720
721 * c-ada-spec.c, c-pragma.c: Use id_equal.
722
3de4ac6d
MP
7232017-06-04 Marek Polacek <polacek@redhat.com>
724
725 PR c/80919
726 * c-format.c (matching_type_p): Return false if any of the types
727 requires structural equality.
728
2474f48f
MS
7292017-06-02 Martin Sebor <msebor@redhat.com>
730
731 PR c/80892
732 * c-warn.c (conversion_warning): Use -Wconversion for integer
733 conversion and -Wfloat-conversion for floating one.
734
40ffd95f
BE
7352017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
736
737 * c.opt (Wsizeof-pointer-div): New warning option.
738
3fa4634c
VR
7392017-06-01 Volker Reichelt <v.reichelt@netcologne.de>
740
741 * c.opt (Wcatch-value): New shortcut for Wcatch-value=1.
742 (Wcatch-value=1): Enable by -Wall.
743
f012c8ef
DM
7442017-05-30 David Malcolm <dmalcolm@redhat.com>
745
746 * c-format.c (gcc_cxxdiag_char_table): Add 'H' and 'I' to
747 format_chars.
748 * c.opt (fdiagnostics-show-template-tree): New option.
749 (felide-type): New option.
750
63dbcd13
VR
7512017-05-25 Volker Reichelt <v.reichelt@netcologne.de>
752
753 * c.opt (Wcatch-value=): New C++ warning flag.
754
be136b5c
NS
7552017-05-24 Nathan Sidwell <nathan@acm.org>
756
757 * c=common.c (field_decl_cmp, resort_field_decl_cmp): Adjust T
758 const casts to avoid warning.
759
3cd211af
MS
7602017-05-24 Martin Sebor <msebor@redhat.com>
761
762 PR c/80731
763 * c-common.h (unsafe_conversion_p): Add a function argument.
764 * c-common.c (unsafe_conversion_p): Same.
765 Add type names and values to diagnostics.
766 (scalar_to_vector): Adjust.
767 * c-warn.c (constant_expression_error): Add a function argument.
768 Add type names and values to diagnostics.
769 (conversion_warning): Add a function argument.
770 Add type names and values to diagnostics.
771 (warnings_for_convert_and_check): Same.
772
1ff7be5a
JM
7732017-05-19 Jason Merrill <jason@redhat.com>
774
775 * c-warn.c (match_case_to_enum_1): Don't warn about enums with no
776 enumerators.
777
ff502317
BE
7782017-05-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
779
780 * c-format.c (locus): Move out of function scope,
781 add GTY attribute.
782
2a8a8d7b
NS
7832017-05-19 Nathan Sidwell <nathan@acm.org>
784
785 * c-opts.c (class_dump_file, class_dump_flags): Delete.
786 (c_common_parse_file): Remove class dump handling.
787 (get_dump_info): Likewise.
788
39aac208
RB
7892017-05-19 Richard Biener <rguenther@suse.de>
790
791 PR c++/80593
792 * c-warn.c (strict_aliasing_warning): Do not warn for accesses
793 to alias-set zero memory.
794
6ecd2339
BE
7952017-05-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
796
797 * c-format.c (local_tree_type_node): Add GTY attribute.
798
6574d78e
MP
7992017-05-18 Marek Polacek <polacek@redhat.com>
800
801 * c-common.c (c_common_type_for_size): Use NULL_TREE instead of 0.
802 (c_common_fixed_point_type_for_size): Likewise.
803 (c_common_type_for_mode): Likewise.
804 (shorten_compare): Likewise.
805 (c_promoting_integer_type_p): Use false/true instead of 0/1.
806 * c-pragma.c (maybe_apply_renaming_pragma): Use NULL_TREE instead of 0.
807
e3455240
MP
8082017-05-18 Marek Polacek <polacek@redhat.com>
809
810 * c-common.c (self_promoting_args_p): Change the return type to bool.
811 Use false/true instead of 0/1.
812 * c-common.h (self_promoting_args_p): Update.
813
3fa8871b
MP
8142017-05-17 Marek Polacek <polacek@redhat.com>
815
816 * c-common.c: Use NULL_TREE instead of 0 where appropriate.
817 * c-warn.c: Likewise.
818
b42cc3ca
VV
8192017-05-17 Ville Voutilainen <ville.voutilainen@gmail.com>
820
821 Implement new C++ intrinsics __is_assignable and __is_constructible.
822 * c-common.c (__is_assignable, __is_constructible): New.
823 * c-common.h (RID_IS_ASSIGNABLE, RID_IS_CONSTRUCTIBLE): Likewise.
824
1a817418
ML
8252017-05-17 Martin Liska <mliska@suse.cz>
826
827 * c-common.h: Introduce dump_flags_t type and
828 use it instead of int type.
829 * c-gimplify.c (c_genericize): Likewise.
830 * c-opts.c: Likewise.
831
b2fa0a8b
MP
8322017-05-17 Marek Polacek <polacek@redhat.com>
833
834 * c-common.c (c_save_expr): Remove.
835 (c_common_truthvalue_conversion): Remove a call to c_save_expr.
836 * c-common.h (c_save_expr): Remove declaration.
837
31c2d57d
VR
8382017-05-09 Volker Reichelt <v.reichelt@netcologne.de>
839
840 PR c/35441
841 * c-pretty-print.c (c_pretty_printer::expression): Handle MAX_EXPR,
842 MIN_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, LROTATE_EXPR, RROTATE_EXPR.
843 (c_pretty_printer::postfix_expression): Handle MAX_EXPR, MIN_EXPR.
844 (c_pretty_printer::multiplicative_expression): Handle EXACT_DIV_EXPR,
845 RDIV_EXPR.
846 (pp_c_shift_expression): Handle LROTATE_EXPR, RROTATE_EXPR.
847
684f84de
MP
8482017-05-09 Marek Polacek <polacek@redhat.com>
849
850 PR c/80525
851 * c-warn.c (unwrap_c_maybe_const): New.
852 (warn_logical_operator): Call it.
853
641da50a
NS
8542017-05-09 Nathan Sidwell <nathan@acm.org>
855
856 * c-common.c (c_register_builtin_type): Use pushdecl lang_hook.
857 * c-common.h (pushdecl_top_level, pushdecl): Don't declare here.
858
631238ac
MS
8592017-05-08 Martin Sebor <msebor@redhat.com>
860
861 PR translation/80280
862 * c-format.h (struct format_flag_spec): Add new member.
863 (T89_T): New macro.
864 * c-format.c (local_tree_type_node): New global.
865 (printf_flag_specs, asm_fprintf_flag_spec): Initialize new data.
866 (gcc_diag_flag_specs, scanf_flag_specs, strftime_flag_specs): Ditto.
867 (strfmon_flag_specs): Likewise.
868 (gcc_diag_char_table, gcc_cdiag_char_table): Split up specifiers
869 with distinct quoting properties.
870 (gcc_tdiag_char_table, gcc_cxxdiag_char_table): Same.
871 (flag_chars_t::validate): Add argument and handle bad quoting.
872 (check_format_info_main): Handle quoting problems.
873 (init_dynamic_diag_info): Simplify.
874
49f0c04c
JM
8752017-05-08 Jason Merrill <jason@redhat.com>
876
877 * c-opts.c (c_common_post_options): Update defaults for
878 flag_abi_version and flag_abi_compat_version.
879
56d35585
DM
8802017-05-05 David Malcolm <dmalcolm@redhat.com>
881
882 * c-common.c (c_cpp_error): Replace report_diagnostic
883 with diagnostic_report_diagnostic.
884
0f2c4a8f
MS
8852017-05-04 Martin Sebor <msebor@redhat.com>
886
887 PR translation/80280
888 * c-attribs.c (handle_alias_ifunc_attribute): Quote a %D directive.
889 (handle_weakref_attribute): Same.
890
6fe63fb4
NS
8912017-05-03 Nathan Sidwell <nathan@acm.org>
892
893 Canonicalize canonical type hashing
894 * c-common.c (complete_array_type): Use type_hash_canon.
895
815d9cc6
XR
8962017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
897
898 PR c++/80038
899 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): Remove
900 prototype.
901 (cilk_install_body_pedigree_operations): Likewise.
902 * cilk.c (cilk_set_spawn_marker): Mark functions that should be
903 detatched.
904 (cilk_gimplify_call_params_in_spawned_fn): Remove.
905 (cilk_install_body_pedigree_operations): Likewise.
906 (gimplify_cilk_spawn): Add EXPR_STMT and CLEANUP_POINT_EXPR
907 unwrapping.
908
f8a36447
JJ
9092017-04-27 Jakub Jelinek <jakub@redhat.com>
910
911 PR c++/80534
912 * c-common.c (complete_array_type): Only hash TYPE_TYPELESS_STORAGE
913 flag on non-aggregate element types.
914
7c145456
BE
9152017-04-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
916
917 * c-common.c (c_type_hasher, type_hash_table): Remove.
918 (c_common_get_alias_set): Remove unreachable code.
919 * c-opts.c (c_common_post_options): Make sure cc1 takes only one file.
920
c3cbcd45
VR
9212017-04-20 Volker Reichelt <v.reichelt@netcologne.de>
922
923 * c.opt (Wextra-semi): New C++ warning flag.
924
8a59d466
JJ
9252017-04-20 Jakub Jelinek <jakub@redhat.com>
926
927 PR middle-end/80423
928 * c-common.c (complete_array_type): Preserve TYPE_TYPELESS_STORAGE.
929
8487c9a5
JJ
9302017-04-18 Jakub Jelinek <jakub@redhat.com>
931
932 PR middle-end/79788
933 PR middle-end/80375
934 * c-common.c (c_common_type_for_mode): Don't handle
935 widest_*_literal_type_node here.
936 c_common_signed_or_unsigned_type): Likewise.
937 (c_common_nodes_and_builtins): Set widest_*_literal_type_node
938 to *intTI_type_node or *intDI_type_node depending on whether
939 TImode is supported by the target or not.
940
3ee0fb02
ML
9412017-04-10 Martin Liska <mliska@suse.cz>
942
943 PR sanitizer/80350
944 * c-ubsan.c (ubsan_instrument_shift): Evaluate RHS before
945 doing an UBSAN check.
946
5764ee3c
JW
9472017-04-03 Jonathan Wakely <jwakely@redhat.com>
948
949 * c-warn.c (do_warn_double_promotion): Fix typo in comment.
950
6f3af356
JJ
9512017-03-31 Jakub Jelinek <jakub@redhat.com>
952
953 PR c++/79572
954 * c-ubsan.h (ubsan_maybe_instrument_reference): Change argument to
955 tree *.
956 * c-ubsan.c (ubsan_maybe_instrument_reference): Likewise. Handle
957 not just NOP_EXPR to REFERENCE_TYPE, but also INTEGER_CST with
958 REFERENCE_TYPE.
959
f6a7a9d5
DM
9602017-03-31 David Malcolm <dmalcolm@redhat.com>
961
962 PR documentation/78732
963 * c.opt (Wendif-labels): Fix description to refer to
964 #else rather than #elif.
965
af88f557
JJ
9662017-03-31 Jakub Jelinek <jakub@redhat.com>
967
968 PR libstdc++/80251
969 * c-common.h (enum rid): Add RID_IS_AGGREGATE.
970 * c-common.c (c_common_reswords): Add __is_aggregate trait.
971
a9e4a1a5
JJ
9722017-03-27 Jakub Jelinek <jakub@redhat.com>
973
974 PR middle-end/80162
975 * c-common.c (c_common_mark_addressable_vec): Don't set
976 TREE_ADDRESSABLE on DECL_HARD_REGISTER.
977
3f01b620
MS
9782017-03-21 Martin Sebor <msebor@redhat.com>
979
980 PR c++/79548
981 * c-common.c (set_underlying_type): Mark type used only when
982 original del is declared unused.
983
2f6f187a
DM
9842017-03-10 David Malcolm <dmalcolm@redhat.com>
985
986 PR translation/79848
987 * c-format.c (check_format_string): Simplify uses of "%<%s%>" to
988 "%qs".
989
a02fa805
DM
9902017-03-10 David Malcolm <dmalcolm@redhat.com>
991
992 PR c/79921
993 * c-indentation.c (warn_for_misleading_indentation): Remove parens
994 from inform's message, so that xgettext can locate it.
995
822a132c
MP
9962017-03-09 Marek Polacek <polacek@redhat.com>
997
998 PR c++/79962
999 PR c++/79984
1000 * c-attribs.c (handle_nonnull_attribute): Save the result of default
1001 conversion to the attribute list.
1002
bba81f1c
ML
10032017-03-09 Martin Liska <mliska@suse.cz>
1004
1005 * c-ada-spec.c (macro_length): Increment value instead of a pointer.
1006
108154ff
JM
10072017-03-03 Jason Merrill <jason@redhat.com>
1008
1009 * c.opt (Wnoexcept-type): New.
1010
eb0e7c34
RB
10112017-03-02 Richard Biener <rguenther@suse.de>
1012
1013 PR c/79756
1014 * c-common.c (c_common_mark_addressable_vec): Look through
1015 C_MAYBE_CONST_EXPR.
1016
9453ba0a
ML
10172017-02-28 Martin Liska <mliska@suse.cz>
1018
1019 * c.opt: Replace space with tabular for options of <number>
1020 type.
1021
6a825afe
ML
10222017-02-28 Martin Liska <mliska@suse.cz>
1023
1024 * c.opt: Fix --help=option -Q for options which are of
1025 an enum type.
1026
4227c9ad
JJ
10272017-02-24 Jakub Jelinek <jakub@redhat.com>
1028
1029 PR c++/79588
1030 * c-common.c (check_function_restrict): New function.
1031 (check_function_arguments): Add FNDECL argument. Call
1032 check_function_restrict if -Wrestrict.
1033 * c-warn.c (warn_for_restrict): Remove ARGS argument, add ARGARRAY
1034 and NARGS. Use auto_vec for ARG_POSITIONS, simplify.
1035 * c-common.h (check_function_arguments): Add FNDECL argument.
1036 (warn_for_restrict): Remove ARGS argument, add ARGARRAY and NARGS.
1037
59909673
EB
10382017-02-24 Eric Botcazou <ebotcazou@adacore.com>
1039
1040 * c-ada-spec.c (dump_ada_function_declaration): Add comment about the
1041 treatment of parameters with pointer-to-tagged type and tidy up.
1042 (print_ada_methods): Remove the special treatment of C++ static member
1043 functions.
1044
54dcd526
ML
10452017-02-22 Martin Liska <mliska@suse.cz>
1046
1047 * c.opt: Replace inequality signs with square brackets
1048 for -Wnornalized.
1049
00bc9de3
JJ
10502017-02-21 Jakub Jelinek <jakub@redhat.com>
1051
1052 PR c++/79641
1053 * c-attribs.c (handle_mode_attribute): Use build_qualified_type to
1054 preserve quals.
1055
97fcf744
JM
10562017-02-17 Joseph Myers <joseph@codesourcery.com>
1057
1058 * c-cppbuiltin.c (builtin_define_float_constants): Define
1059 __DECIMAL_DIG__ to the value for long double.
1060
c7545f1c
MP
10612017-02-15 Marek Polacek <polacek@redhat.com>
1062
1063 PR c/79515
1064 * c-warn.c (do_warn_double_promotion): Don't warn if an invalid
1065 conversion has occured.
1066
c2e84327
DM
10672017-01-24 David Malcolm <dmalcolm@redhat.com>
1068
1069 * c-common.c (c_common_reswords): Add "__RTL".
1070 * c-common.h (enum rid): Add RID_RTL.
1071
2ebd93e1
MP
10722017-01-20 Marek Polacek <polacek@redhat.com>
1073
1074 PR c/64279
1075 * c-common.h (do_warn_duplicated_branches_r): Declare.
1076 * c-gimplify.c (c_genericize): Walk the function tree calling
1077 do_warn_duplicated_branches_r.
1078 * c-warn.c (expr_from_macro_expansion_r): New.
1079 (do_warn_duplicated_branches): New.
1080 (do_warn_duplicated_branches_r): New.
1081 * c.opt (Wduplicated-branches): New option.
1082
0d80ab91
DM
10832017-01-17 David Malcolm <dmalcolm@redhat.com>
1084
1085 PR c++/71497
1086 * c-indentation.c (warn_for_misleading_indentation): Use the past
1087 subjunctive in the note.
1088
7f991c36
AH
10892017-01-17 Aldy Hernandez <aldyh@redhat.com>
1090
1091 PR c/79116
1092 * array-notation-common.c (cilkplus_extract_an_triplets): Convert
1093 start type to integer_type.
1094
1c70261c
JJ
10952017-01-16 Jakub Jelinek <jakub@redhat.com>
1096
1097 PR driver/49726
1098 * c.opt (gen-decls): Add Driver flag.
1099
1ddca3f3
PC
11002017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
1101
1102 Revert:
1103 2017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
1104
1105 PR c++/71737
1106 * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
1107
7d2f3f1d
PC
11082017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
1109
1110 PR c++/71737
1111 * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
1112
bce6f760
MS
11132017-01-12 Martin Sebor <msebor@redhat.com>
1114
1115 (-Wformat-overflow): ...to this.
1116
bf5fbf46
MS
11172017-01-11 Martin Sebor <msebor@redhat.com>
1118
1119 PR c/78768
1120 * c.opt (-Walloca-larger-than, -Wformat-length, -Wformat-truncation):
1121 Also enable for LTO.
1122
e363df3f
JM
11232017-01-10 Jason Merrill <jason@redhat.com>
1124
1125 Implement P0195R2, C++17 variadic using.
1126 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_variadic_using.
1127
bd2c6270
JJ
11282017-01-09 Jakub Jelinek <jakub@redhat.com>
1129
1130 PR translation/79019
1131 PR translation/79020
1132 * c.opt (Wnormalized=): Fix typo in description.
1133
efcc8d38
MS
11342017-01-08 Martin Sebor <msebor@redhat.com>
1135
1136 PR middle-end/77708
1137 * c.opt (-Wformat-truncation): New option.
1138
435f3f7a
AO
11392017-01-06 Alexandre Oliva <aoliva@redhat.com>
1140
1141 * c-pretty-print.c (pp_c_tree_decl_identifier): Convert 16-bit
1142 value to unsigned short to fit in 4 hex digits without
1143 warnings.
1144
4e89adf9
EB
11452017-01-05 Eric Botcazou <ebotcazou@adacore.com>
1146
1147 * c.opt (fsso-struct): Add 'native' value.
1148
cd445b54
ML
11492017-01-05 Martin Liska <mliska@suse.cz>
1150
1151 PR pch/78970
1152 * c-opts.c (c_common_post_options): Reject '-' filename for a precompiled
1153 header.
1154
a9342885
MP
11552017-01-04 Marek Polacek <polacek@redhat.com>
1156
1157 PR c++/64767
1158 * c.opt (Wpointer-compare): New option.
1159
fc73e60c
JJ
11602017-01-04 Jakub Jelinek <jakub@redhat.com>
1161
1162 PR driver/78957
1163 * c.opt (fsso-struct=): Add RejectNegative.
1164
cbe34bb5
JJ
11652017-01-01 Jakub Jelinek <jakub@redhat.com>
1166
1167 Update copyright years.
1168
d4a6c0ea
ML
11692016-12-29 Martin Liska <mliska@suse.cz>
1170
1171 PR c/78933
1172 * c.opt (strong-eval-order): Add RejectNegative keyword.
1173
67a5ad7c
JM
11742016-12-22 Jason Merrill <jason@redhat.com>
1175
1176 Implement P0522R0, matching of template template arguments.
1177 * c-cppbuiltin.c (c_cpp_builtins): Define
1178 __cpp_template_template_args.
1179
0dba7960
JJ
11802016-12-21 Jakub Jelinek <jakub@redhat.com>
1181
1182 PR bootstrap/78817
1183 * c-common.c (struct nonnull_arg_ctx): New type.
1184 (check_function_nonnull): Return bool instead of void. Use
1185 nonnull_arg_ctx as context rather than just location_t.
1186 (check_nonnull_arg): Adjust for the new context type, set
1187 warned_p to true if a warning has been diagnosed.
1188 (check_function_arguments): Return bool instead of void.
1189 * c-common.h (check_function_arguments): Adjust prototype.
1190
31bfc9b9
JM
11912016-12-21 Jason Merrill <jason@redhat.com>
1192
1193 * c.opt (-fnew-ttp-matching): New flag.
1194 * c-opts.c (c_common_post_options): Default on if -std=c++1z.
1195
629b3d75
MJ
11962016-12-14 Martin Jambor <mjambor@suse.cz>
1197
1198 * c-omp.c: Include omp-general.h instead of omp-low.h.
1199 (c_finish_oacc_wait): Adjusted call to find_omp_clause to use its new
1200 name.
1201
474da67e
MS
12022016-12-14 Martin Sebor <msebor@redhat.com>
1203
1204 PR c/17308
1205 * c-common.c (check_nonnull_arg): Disable when optimization
1206 is enabled.
1207
fe366b87
MP
12082016-12-12 Marek Polacek <polacek@redhat.com>
1209
1210 PR c++/78647
1211 * c-common.c (attribute_fallthrough_p): Return false for
1212 error_mark_node.
1213
8bd9f164
MS
12142016-12-08 Martin Sebor <msebor@redhat.com>
1215
1216 PR c/78284
1217 * c.opt (-Walloc-zero, -Walloc-size-larger-than): New options.
1218
060162e0
MS
12192016-12-08 Martin Sebor <msebor@redhat.com>
1220
1221 PR c/78165
1d0cf89a
MS
1222 * c-pretty-print (pp_c_integer_constant): Avoid formatting type
1223 suffix.
060162e0 1224
ee92e7ba
MS
12252016-12-07 Martin Sebor <msebor@redhat.com>
1226
1227 PR c/53562
1228 PR middle-end/77784
1229 PR middle-end/78149
1230 PR middle-end/78138
1231 * c.opt (-Wstringop-overflow): New option.
1232
84b0769e
MO
12332016-12-02 Maxim Ostapenko <m.ostapenko@samsung.com>
1234
1235 * c-attribs.c (asan odr indicator): New attribute.
1236 (handle_asan_odr_indicator_attribute): New function.
1237
7fa6a965
PK
12382016-11-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1239
1240 * c-common.c (c_common_nodes_and_builtins): Remove initialization of
1241 ptrdiff_type_node;
1242
56d8ffc1
JG
12432016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
1244
1245 * c-common.c (excess_precision_mode_join): New.
1246 (c_ts18661_flt_eval_method): New.
1247 (c_c11_flt_eval_method): Likewise.
1248 (c_flt_eval_method): Likewise.
1249 * c-common.h (excess_precision_mode_join): New.
1250 (c_flt_eval_method): Likewise.
1251 * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): New.
1252 (cpp_iec_559_value): Call it.
1253 (c_cpp_builtins): Modify logic for __LIBGCC_*_EXCESS_PRECISION__,
1254 call c_flt_eval_method to set __FLT_EVAL_METHOD__ and
1255 __FLT_EVAL_METHOD_TS_18661_3__.
1256
04f0fcf7
JG
12572016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
1258
1259 * c-opts.c (c_common_post_options): Add logic to handle the default
1260 case for -fpermitted-flt-eval-methods.
1261
fb2675cb
PB
12622016-11-23 Paolo Bonzini <bonzini@gnu.org>
1263
1264 * c.opt (Wexpansion-to-defined): New.
1265
ec1c5694
JJ
12662016-11-23 Jakub Jelinek <jakub@redhat.com>
1267
1268 PR target/78451
1269 * c-pragma.c (handle_pragma_target): Don't replace
1270 current_target_pragma, but chainon the new args to the current one.
1271
730c9e75
NS
12722016-11-22 Nathan Sidwell <nathan@acm.org>
1273
1274 * array-notation-common.c (cilkplus_extract_an_trplets): Fix
cacd29be 1275 indentation and formatting.
730c9e75 1276
89990732
MS
12772016-11-21 Martin Sebor <msebor@redhat.com>
1278
1279 * c.opt (-fprintf-return-value): Enable by default.
1280
48330c93
BE
12812016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
1282
1283 PR c++/71973
1284 * c.opt (-Wbuiltin-declaration-mismatch): New warning.
1285 * c-common.c (c_common_nodes_and_builtins): Initialize
1286 const_tm_ptr_type_node.
1287
0d939c95
MP
12882016-11-16 Marek Polacek <polacek@redhat.com>
1289
1290 PR c/78285
1291 * c-common.c (c_add_case_label): Turn error_at calls into inform.
1292
8e745a17
JJ
12932016-11-14 Jakub Jelinek <jakub@redhat.com>
1294
1295 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_structured_bindings.
1296
1ee62b92 12972016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
8e745a17
JJ
1298 Richard Biener <rguenther@suse.de>
1299
1300 * c-common.h (c_common_resword): Add RID_GIMPLE, RID_PHI types.
1301 * c-common.h (enum rid): Add RID_GIMPLE, RID_PHI.
1302 * c.opt (fgimple): New option.
1ee62b92 1303
22b15758
UB
13042016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1305
1306 PR c/35503
1307 * c-common.h (warn_for_restrict): Declare.
1308 * c-warn.c: Include gcc-rich-location.h.
1309 (warn_for_restrict): New function.
1310 * c-format.c (gcc_tdiag_char_table): Add entry for "Z" specifier.
1311 (gcc_cdiag_char_table): Likewise.
1312 (gcc_cxxdiag_char_table): Likewise.
1313 * c.opt (Wrestrict): New option.
1314
4be719cd
EB
13152016-11-13 Eric Botcazou <ebotcazou@adacore.com>
1316
1317 * c-ada-spec.c (print_ada_declaration): For typedef declarations, look
1318 for nested types only if the type is a record or union and dump SLOC.
1319
4a826ca6
JM
13202016-11-09 Jason Merrill <jason@redhat.com>
1321
1322 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_template_auto.
1323
2e955d50
JJ
13242016-11-09 Jakub Jelinek <jakub@redhat.com>
1325
1326 * c-ubsan.c (ubsan_instrument_shift): Handle split
1327 -fsanitize=shift-base and -fsanitize=shift-exponent.
1328
51dc6603
JM
13292016-11-07 Jason Merrill <jason@redhat.com>
1330
1331 * c.opt (Wc++1z-compat): New.
1332 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_noexcept_function_type.
1333
6dc4a604
ML
13342016-11-07 Martin Liska <mliska@suse.cz>
1335
1336 * c-warn.c (warn_for_unused_label): Save all labels used
1337 in goto or in &label.
1338
b302001e
JM
13392016-11-03 Jason Merrill <jason@redhat.com>
1340
1341 * c-cppbuiltin.c (c_cpp_builtins): Correct
1342 __cpp_inheriting_constructors.
1343
31f7f784
JM
13442016-11-01 Jason Merrill <jason@redhat.com>
1345
2bc78e3c
JM
1346 * c-cppbuiltin.c (c_cpp_builtins): Update
1347 __cpp_inheriting_constructors.
1348
31f7f784
JM
1349 * c.opt (-fnew-inheriting-ctors): New.
1350 * c-opts.c: Default to on for ABI 11+.
1351
dcb466ec
JJ
13522016-10-31 Jakub Jelinek <jakub@redhat.com>
1353
1354 PR c++/77948
1355 * c.opt (fext-numeric-literals): Add Var and Init.
1356 * c-opts.c (c_common_handle_option): Don't clear
1357 cpp_opts->ext_numeric_literals for -std=c++{11,14,1z}.
1358 (c_common_post_options): Clear it here if not set
1359 explicitly.
1360
52e1b91e
AH
13612016-10-28 Aldy Hernandez <aldyh@redhat.com>
1362
1363 PR debug/77773
1364 * c-pretty-print.c (simple_type_specifier): Do not dereference `t'
1365 if NULL.
1366
e16f1cc7
JJ
13672016-10-25 Jakub Jelinek <jakub@redhat.com>
1368
1369 * c-common.h (enum rid): Add RID_BUILTIN_LAUNDER.
1370 * c-common.c (c_common_reswords): Add __builtin_launder.
1371
f8348061
BE
13722016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
1373
1374 * c-common.c (c_common_truthvalue_conversion): Warn for
1375 multiplications in boolean context. Fix the quoting of '<<' and '<'
1376 in the shift warning.
1377
eff89e01
BE
13782016-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
1379
1380 * c-common.c (c_common_truthvalue_conversion): Fix the comment.
1381
24bc7bf4
JM
13822016-10-20 Jason Merrill <jason@redhat.com>
1383
1384 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_concepts value.
1385
4c712374
BE
13862016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
1387
1388 * c-common.c (c_common_truthvalue_conversion): Warn only for signed
1389 integer shift ops in boolean context.
1390
13912016-10-18 Aldy Hernandez <aldyh@redhat.com>
adc577c5
AH
1392
1393 * c.opt (Walloca): New.
1394 (Walloca-larger-than=): New.
1395 (Wvla-larger-than=): New.
1396
8fa18c06
MP
13972016-10-17 Marek Polacek <polacek@redhat.com>
1398
1399 * c-warn.c (find_array_ref_with_const_idx_r): Remove parameter names.
1400 Return immediately when finding a match.
1401 (warn_tautological_cmp): Remove a boolean variable that is no longer
1402 needed.
1403
b12b1915
MP
14042016-10-17 Marek Polacek <polacek@redhat.com>
1405
1406 * c-attribs.c: New file.
1407 * c-common.c: Move attributes handling to c-attribs.c.
1408 (get_nonnull_operand): No longer static.
1409 * c-common.h: Move the declarations from c-attribs.c to its own section.
1410
2045acd9
JM
14112016-10-14 Jason Merrill <jason@redhat.com>
1412
1413 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_aggregate_bases
1414 and __cpp_deduction_guides.
1415
14a2c9aa
JM
14162016-10-13 Jason Merrill <jason@redhat.com>
1417
1418 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_inline_variables.
1419
4d0cdd0c
TP
14202016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
1421
1422 * c-cppbuiltin.c: Include memmodel.h.
1423 * c-opts.c: Likewise.
1424 * c-pragma.c: Likewise.
1425 * c-warn.c: Likewise.
1426
70f6d5e1
JJ
14272016-10-12 Jakub Jelinek <jakub@redhat.com>
1428
1429 * c.opt (Wextra): Add as C/C++/ObjC/ObjC++ option.
1430 (Wimplicit-fallthrough=): Enable for these languages by -Wextra.
1431 * c-opts.c (sanitize_cpp_opts): Initialize
1432 cpp_opts->cpp_warn_implicit_fallthrough.
1433
78f61294
MP
14342016-10-11 Marek Polacek <polacek@redhat.com>
1435
1436 * c-common.c (warning_candidate_p): Change the return type to bool
1437 and return true/false instead of 1/0.
1438 (vector_mode_valid_p): Likewise.
1439
038b5cc0
MP
14402016-10-11 Marek Polacek <polacek@redhat.com>
1441
1442 * c-common.c (fold_for_warn): No longer static.
1443 (bool_promoted_to_int_p): Likewise.
1444 (c_common_get_narrower): Likewise.
1445 (constant_expression_warning): Move to c-warn.c.
1446 (constant_expression_error): Likewise.
1447 (overflow_warning): Likewise.
1448 (warn_logical_operator): Likewise.
1449 (find_array_ref_with_const_idx_r): Likewise.
1450 (warn_tautological_cmp): Likewise.
1451 (expr_has_boolean_operands_p): Likewise.
1452 (warn_logical_not_parentheses): Likewise.
1453 (warn_if_unused_value): Likewise.
1454 (strict_aliasing_warning): Likewise.
1455 (sizeof_pointer_memaccess_warning): Likewise.
1456 (check_main_parameter_types): Likewise.
1457 (conversion_warning): Likewise.
1458 (warnings_for_convert_and_check): Likewise.
1459 (match_case_to_enum_1): Likewise.
1460 (match_case_to_enum): Likewise.
1461 (c_do_switch_warnings): Likewise.
1462 (warn_for_omitted_condop): Likewise.
1463 (readonly_error): Likewise.
1464 (lvalue_error): Likewise.
1465 (invalid_indirection_error): Likewise.
1466 (warn_array_subscript_with_type_char): Likewise.
1467 (warn_about_parentheses): Likewise.
1468 (warn_for_unused_label): Likewise.
1469 (warn_for_div_by_zero): Likewise.
1470 (warn_for_memset): Likewise.
1471 (warn_for_sign_compare): Likewise.
1472 (do_warn_double_promotion): Likewise.
1473 (do_warn_unused_parameter): Likewise.
1474 (record_locally_defined_typedef): Likewise.
1475 (maybe_record_typedef_use): Likewise.
1476 (maybe_warn_unused_local_typedefs): Likewise.
1477 (maybe_warn_bool_compare): Likewise.
1478 (maybe_warn_shift_overflow): Likewise.
1479 (warn_duplicated_cond_add_or_warn): Likewise.
1480 (diagnose_mismatched_attributes): Likewise.
1481 * c-common.h: Move the declarations from c-warn.c to its own section.
1482 * c-warn.c: New file.
1483
627be19f
JM
14842016-10-08 Jason Merrill <jason@redhat.com>
1485
1486 * c-common.c (c_common_truthvalue_conversion): Don't distribute
1487 into COND_EXPR in C++.
1488
7bad794a
JJ
14892016-10-08 Jakub Jelinek <jakub@redhat.com>
1490
1491 * c-lex.c (c_lex_with_flags) <case CPP_COMMENT>: For CPP_COMMENT
1492 token with PREV_FALLTHROUGH, skip all following CPP_PADDING and
1493 CPP_COMMENT tokens and set add_flags to PREV_FALLTHROUGH afterwards.
1494
be845b04
JJ
14952016-10-07 Jakub Jelinek <jakub@redhat.com>
1496
1497 Implement LWG2296 helper intrinsic
1498 * c-common.h (enum rid): Add RID_ADDRESSOF.
1499 * c-common.c (c_common_reswords): Add __builtin_addressof.
1500
c09c4992
BE
15012016-10-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
1502
1503 PR c++/77700
1504 * c-common.c (c_common_truthvalue_conversion): Warn also for
1505 suspicious enum values in boolean context.
1506
342cfb3e
JJ
15072016-10-06 Jakub Jelinek <jakub@redhat.com>
1508
1509 Implement P0258R2 - helper for C++17
1510 std::has_unique_object_representations trait
1511 * c-common.h (enum rid): Add RID_HAS_UNIQUE_OBJ_REPRESENTATIONS.
1512 * c-common.c (c_common_reswords): Add
1513 __has_unique_object_representations.
1514
2e69f143
JJ
15152016-10-05 Jakub Jelinek <jakub@redhat.com>
1516
1517 PR sanitizer/66343
1518 * c-ubsan.c (ubsan_instrument_return): Don't call
1519 initialize_sanitizer_builtins here.
1520
700fff34
BE
15212016-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
1522
1523 * c-common.c (c_common_truthvalue_conversion): Warn also for suspicious
1524 conditional expression in boolean context when only one arm is
1525 non-boolean.
1526
9563bfcd
JJ
15272016-10-05 Jakub Jelinek <jakub@redhat.com>
1528
04a32443
JJ
1529 PR sanitizer/77823
1530 * c-ubsan.c (ubsan_instrument_shift): Return NULL_TREE if type0
1531 is not integral.
1532
9563bfcd
JJ
1533 * c-common.c (c_common_reswords): Update comment for C++11.
1534
f1644724
JM
15352016-10-04 Jason Merrill <jason@redhat.com>
1536
1537 * c-common.c (make_tree_vector_from_ctor): New.
1538 * c-common.h: Declare it.
1539
5a79befb
JJ
15402016-10-04 Jakub Jelinek <jakub@redhat.com>
1541
1542 * c-cppbuiltin.c (c_cpp_builtins): Don't define
1543 __LIBGCC_JCR_SECTION_NAME__.
1544
1633d3b9
BE
15452016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
1546
1547 * c-common.c (c_common_truthvalue_conversion): Warn for suspicious
1548 left shift in boolean context.
1549
a2c6e7f2
JJ
15502016-09-29 Jakub Jelinek <jakub@redhat.com>
1551
1552 Implement P0001R1 - C++17 removal of register storage class specifier
1553 * c.opt (Wregister): New warning.
1554 * c-opts.c (c_common_post_options): Enable -Wregister by
1555 default for C++17.
1556
75304c87
JG
15572016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
1558
1559 * c-opts.c (c_common_post_options): Remove special case for
1560 TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard
1561 in C++.
1562
bbfac6da
JJ
15632016-09-27 Jakub Jelinek <jakub@redhat.com>
1564
6e39060a
JJ
1565 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for
1566 -std=c++1z.
1567
bbfac6da
JJ
1568 * c-ada-spec.c (print_ada_declaration): Remove break after return.
1569
e73cf9a2
TP
15702016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
1571
1572 * c-common.c: Include memmodel.h.
1573
c6147dc4
MP
15742016-09-26 Marek Polacek <polacek@redhat.com>
1575
1576 * c-lex.c (c_common_has_attribute): Handle attribute fallthrough.
1577
81fea426
MP
15782016-09-26 Marek Polacek <polacek@redhat.com>
1579
1580 PR c/7652
1581 * c-common.c (c_common_attribute_table): Add fallthrough attribute.
1582 (handle_fallthrough_attribute): New function.
1583 (attribute_fallthrough_p): New function.
1584 * c-common.h (attribute_fallthrough_p): Declare.
1585
9a2300e9
MP
15862016-09-24 Marek Polacek <polacek@redhat.com>
1587
1588 PR c/77490
1589 * c.opt (Wbool-operation): New.
1590
a09e9e35
BE
15912016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
1592
1593 * c-common.c (c_common_truthvalue_conversion): Inhibit
1594 Wint-in-bool-context warning with from_macro_definition_at.
1595 Mention the expression will always evaluate to true.
1596
d43b4ccc
MS
15972016-09-21 Martin Sebor <msebor@redhat.com>
1598
1599 PR bootstrap/77676
1600 * c.opt (fprintf-return-value): Temporarily initialize to zero
1601 to unblock bootstrap failures.
1602
2e1c20b1
JJ
16032016-09-21 Jakub Jelinek <jakub@redhat.com>
1604
1605 PR c++/77651
1606 * c.opt (Waligned-new=): Add RejectNegative.
1607 (faligned-new=): Likewise. Spelling fix - change
1608 aligned_new_threshhold to aligned_new_threshold.
1609 * c-cppbuiltin.c (c_cpp_builtins): Change aligned_new_threshhold
1610 to aligned_new_threshold.
1611
88d0c3f0
MS
16122016-09-20 Martin Sebor <msebor@redhat.com>
1613
1614 PR middle-end/49905
1615 * c.opt: Add -Wformat-length and -fprintf-return-value.
1616
144a96e4
BE
16172016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
1618
1619 PR c++/77434
1620 * c.opt (Wint-in-bool-context): New warning.
1621 * c-common.c (c_common_truthvalue_conversion): Warn on integer
1622 constants in boolean context.
1623
63012d9a
JM
16242016-09-19 Joseph Myers <joseph@codesourcery.com>
1625
1626 * c-common.c (max_align_t_align): Also consider alignment of
1627 float128_type_node.
1628
931388ce
JM
16292016-09-15 Jason Merrill <jason@redhat.com>
1630
1631 * c-common.c (check_cxx_fundamental_alignment_constraints): Check
1632 DECL_EXTERNAL.
1633
38711381
JM
16342016-09-14 Jason Merrill <jason@redhat.com>
1635
1636 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
1637 limit FIELD_DECL, either.
1638
e51fbec3
MP
16392016-09-14 Marek Polacek <polacek@redhat.com>
1640
1641 * c-common.c (c_common_truthvalue_conversion): Use false instead of 0.
1642 * c-common.h (build_unary_op): Change nonconvert parameter type to bool.
1643 * c-omp.c (c_finish_omp_atomic): Use false instead of 0.
1644
254830ba
DM
16452016-09-13 David Malcolm <dmalcolm@redhat.com>
1646
1647 * c-common.c (warn_logical_not_parentheses): Replace
1648 rich_location::add_fixit_insert calls with add_fixit_insert_before
1649 and add_fixit_insert_after, eliminating the "next_loc" calculation.
1650
42763690
JM
16512016-09-13 Jason Merrill <jason@redhat.com>
1652 Tom de Vries <tom@codesourcery.com>
1653
1654 PR c++/77427
1655 * c-common.c (set_underlying_type): Don't treat array as builtin type.
1656
9453eee9
JM
16572016-09-13 Jason Merrill <jason@redhat.com>
1658
1659 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
1660 limit types at all.
1661
e96809e3
JM
16622016-09-12 Jason Merrill <jason@redhat.com>
1663
1664 * c-common.c (check_cxx_fundamental_alignment_constraints): Fix
1665 bit/byte confusion, allow large alignment for types.
1666
54dcdb88
BE
16672016-09-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
1668
1669 PR c++/77496
1670 * c-common.c (warn_for_omitted_condop): Also warn for boolean data.
1671
d1463eb9
DM
16722016-09-12 David Malcolm <dmalcolm@redhat.com>
1673
1674 PR c/72858
1675 * c-format.c (argument_parser::check_argument_type): Add params
1676 "type_start" and "conversion_char". Use the former to generate
1677 offset_to_type_start and pass it and conversion_char to
1678 check_format_types.
1679 (check_format_info_main): Capture the start of the type
1680 information as "type_start", and pass it an format_char
1681 to arg_parser.check_argument_type.
1682 (check_format_types): Provide an example in the leading comment.
1683 Add params "offset_to_type_start" and "conversion_char"; pass
1684 them to format_type_warning calls.
1685 (test_get_modifier_for_format_len): Likewise.
1686 (matching_type_p): New function.
1687 (get_format_for_type): Add param "conversion_char" and move
1688 implementation into...
1689 (get_format_for_type_1): ...new function, called twice.
1690 Use new function matching_type_p rather than checking for
1691 TYPE_CANONICAL equality.
1692 (get_corrected_substring): New function.
1693 (format_type_warning): Provide an example in the leading comment.
1694 Add params "offset_to_type_start" and "conversion_char". Replace
1695 call to get_format_for_type with call to get_corrected_substring
1696 and move rejection of hints for widths/precisions there.
1697 (assert_format_for_type_streq): Add param "conversion_char".
1698 (ASSERT_FORMAT_FOR_TYPE_STREQ): Add param CONVERSION_CHAR.
1699 (test_get_format_for_type_printf): Add conversion chars to the
1700 tests, adding coverage for various combinations of integer
1701 vs double conversions, and for preserving octal and hexadecimal
1702 conversions.
1703 (test_get_format_for_type_scanf): Add conversion chars to the
1704 tests.
1705
5b28efbb
TV
17062016-09-10 Tom de Vries <tom@codesourcery.com>
1707
1708 PR C/71602
1709 * c-common.c (build_va_arg): Handle more strict
1710 targetm.canonical_va_list_type. Replace first argument type error with
1711 assert.
1712
3f0177e7
MS
17132016-09-09 Martin Sebor <msebor@redhat.com>
1714
1715 PR c/77520
1716 PR c/77521
1717 * c-format.c (argument_parser::find_format_char_info): Use %qc
1718 format directive unconditionally.
1719
af63ba4b
JM
17202016-09-09 Jason Merrill <jason@redhat.com>
1721
1722 Implement C++17 new of over-aligned types.
1723 * c.opt: Add -faligned-new and -Waligned-new.
1724 * c-common.c (max_align_t_align): Split out from...
1725 (cxx_fundamental_alignment_p): ...here.
1726 * c-common.h: Declare it.
1727 * c-cppbuiltin.c (c_cpp_builtins): Handle aligned new.
1728
c65248cb
JM
17292016-09-09 Joseph Myers <joseph@codesourcery.com>
1730
1731 * c-cppbuiltin.c (builtin_define_type_width): New function.
1732 (builtin_define_stdint_macros, c_cpp_builtins): Define type width
1733 macros.
1734
e5106e27
DM
17352016-09-07 David Malcolm <dmalcolm@redhat.com>
1736
1737 * c-common.c (get_cpp_ttype_from_string_type): Handle being passed
1738 a POINTER_TYPE.
1739 (substring_loc::get_location): Move to substring-locations.c,
1740 keeping implementation as...
1741 (c_get_substring_location): New function, from the above, reworked
1742 to use accessors rather than member lookup.
1743 * c-common.h (class substring_loc): Move to substring-locations.h,
1744 replacing with a forward decl.
1745 (c_get_substring_location): New decl.
1746 * c-format.c: Include "substring-locations.h".
1747 (format_warning_va): Move to substring-locations.c.
1748 (format_warning_at_substring): Likewise.
1749
a42e7952
MS
17502016-09-06 Martin Sebor <msebor@redhat.com>
1751
1752 PR c/77336
1753 * c-format.c (check_function_format): Avoid issuing warnings for
1754 functions unless they call format functions with non-constant
1755 format strings.
1756
b772a565
RB
17572016-09-06 Richard Biener <rguenther@suse.de>
1758
1759 PR c/77450
1760 * c-common.c (c_common_mark_addressable_vec): Handle
1761 COMPOUND_LITERAL_EXPR.
1762
25ff5dd3
MP
17632016-09-05 Marek Polacek <polacek@redhat.com>
1764
1765 PR c/77423
1766 * c-common.c (bool_promoted_to_int_p): New function.
1767 (expr_has_boolean_operands_p): New function.
1768 (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p.
1769 (maybe_warn_bool_compare): Use bool_promoted_to_int_p.
1770
21234eb5
TV
17712016-09-04 Tom de Vries <tom@codesourcery.com>
1772
1773 revert:
1774 2016-08-29 Tom de Vries <tom@codesourcery.com>
1775
1776 * c-common.c (build_va_arg): Replace first argument type error
1777 with assert.
1778
9dc5773f
JJ
17792016-09-02 Jakub Jelinek <jakub@redhat.com>
1780
1781 PR c/65467
1782 * c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions.
1783 (c_finish_omp_for): Reject _Atomic qualified iterators.
1784
17852016-09-01 Martin Sebor <msebor@redhat.com>
3d7b83b6
MS
1786
1787 * c-ada-spec.c (dump_ada_function_declaration): Increase buffer
1788 size to guarantee it fits the output of the formatted function
1789 regardless of its arguments.
1790
295844f6
MP
17912016-09-01 Marek Polacek <polacek@redhat.com>
1792
1793 PR c/7652
1794 * c-common.c (resolve_overloaded_builtin): Fix formatting. Add
1795 FALLTHRU comments.
1796
3d06b6f2
MP
17972016-08-29 Marek Polacek <polacek@redhat.com>
1798
1799 PR c/77292
1800 * c-common.c (warn_logical_not_parentheses): Don't warn for
1801 a comparison or a logical operator.
1802
34cedad5
TV
18032016-08-29 Tom de Vries <tom@codesourcery.com>
1804
1805 * c-common.c (build_va_arg): Fix type comparison assert.
1806
f162d717
TV
18072016-08-29 Tom de Vries <tom@codesourcery.com>
1808
1809 * c-common.c (build_va_arg): Replace first argument type error
1810 with assert.
1811
ba9bbd6f
TV
18122016-08-29 Tom de Vries <tom@codesourcery.com>
1813
1814 PR c/77398
1815 * c-common.c (build_va_arg): Add first argument error. Build va_arg
1816 with error_mark_node as va_list instead of with illegal va_list.
1817
ebef225f
MP
18182016-08-25 Marek Polacek <polacek@redhat.com>
1819 David Malcolm <dmalcolm@redhat.com>
1820
1821 * c-common.c (warn_logical_not_parentheses): Print fixit hints.
1822 * c-common.h (warn_logical_not_parentheses): Update declaration.
1823
b00e6e75
MP
18242016-08-22 Marek Polacek <polacek@redhat.com>
1825
1826 PR c++/77321
1827 * c-common.c (warn_for_memset): Check type for null.
1828
6dc198e3
JM
18292016-08-22 Joseph Myers <joseph@codesourcery.com>
1830
1831 * c-family/c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and
1832 _FloatNx types for suffixes for built-in functions.
1833
c65699ef
JM
18342016-08-19 Joseph Myers <joseph@codesourcery.com>
1835
1836 PR c/32187
1837 * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32)
1838 (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X)
1839 (RID_FLOAT128X): New enum rid values.
1840 (CASE_RID_FLOATN_NX): New macro.
1841 * c-common.c (c_common_reswords): Add _FloatN and _FloatNx
1842 keywords.
1843 (c_common_type_for_mode): Check for _FloatN and _FloatNx and
1844 corresponding complex types.
1845 (c_common_nodes_and_builtins): For non-C++, register _FloatN and
1846 _FloatNx and corresponding complex types.
1847 (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX.
1848 * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN
1849 and _FloatNx types for the widest type for determining
1850 DECIMAL_DIG. Define __LDBL_DECIMAL_DIG__ as well as
1851 __DECIMAL_DIG__ for long double. Handle FMA_SUFFIX being NULL.
1852 (c_cpp_builtins): Call builtin_define_float_constants for _FloatN
1853 and _FloatNx types.
1854 * c-lex.c (interpret_float): Handle _FloatN and _FloatNx
1855 constants.
1856 * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and
1857 _FloatNx types.
1858
cc015f3a
DM
18592016-08-18 David Malcolm <dmalcolm@redhat.com>
1860
1861 * c-opts.c (c_diagnostic_finalizer): Update for change to
1862 diagnostic_show_locus.
1863
cb18fd07
DM
18642016-08-18 David Malcolm <dmalcolm@redhat.com>
1865
1866 * c-common.c: Include "spellcheck.h".
1867 (cb_get_suggestion): New function.
1868 * c-common.h (cb_get_suggestion): New decl.
1869 * c-lex.c (init_c_lex): Initialize cb->get_suggestion to
1870 cb_get_suggestion.
1871
a76989dc
MP
18722016-08-18 Marek Polacek <polacek@redhat.com>
1873
1874 PR c/71514
1875 * c-common.c (get_atomic_generic_size): Disallow pointer-to-function
1876 and pointer-to-VLA.
1877
65e736c0
DM
18782016-08-16 David Malcolm <dmalcolm@redhat.com>
1879
1880 PR c/72857
1881 * c-common.c (substring_loc::get_range): Rename to...
1882 (substring_loc::get_location): ...this, converting param from a
1883 source_range * to a location_t *. Call
1884 get_source_location_for_substring rather than
1885 get_source_range_for_substring, and pass in m_caret_idx.
1886 * c-common.h (substring_loc::substring_loc): Add param "caret_idx".
1887 (substring_loc::get_range): Replace with...
1888 (substring_loc::get_location): ...this.
1889 (substring_loc::set_caret_index): New method.
1890 (substring_loc): Add field m_caret_idx.
1891 * c-format.c (format_warning_va): Update for above changes.
1892 Rename local "substring_loc" to "fmt_substring_loc" to avoid
1893 clashing with type name.
1894 (format_warning_at_char): Add caret_idx param to substring_loc ctor.
1895 (check_argument_type): Likewise.
1896 (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc"
1897 Use a copy when emitting warnings, setting the caret index from TYPE.
1898
7e1dde14 18992016-08-16 Eric Botcazou <ebotcazou@adacore.com>
8e745a17 1900 Arnaud Charlet <charlet@adacore.com>
7e1dde14
EB
1901
1902 * c-ada-spec.c (dump_number): New function.
1903 (handle_escape_character): Likewise.
1904 (print_ada_macros): Add handling of constant integers and strings.
1905
191816a3
MP
19062016-08-12 Marek Polacek <polacek@redhat.com>
1907
1908 PR c/7652
1909 * c-common.c (scalar_to_vector): Adjust fall through comment.
1910 * c-opts.c (c_common_handle_option): Likewise.
1911 * c-pragma.c (handle_pragma_pack): Add FALLTHRU.
1912 * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust
1913 fall through comment.
1914 * cilk.c (extract_free_variables): Add FALLTHRU.
1915
452df4a4
JM
19162016-08-10 Jason Merrill <jason@redhat.com>
1917
1918 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr.
1919
f3365c12
JM
19202016-08-09 Jason Merrill <jason@redhat.com>
1921
1922 * c-common.c (c_common_attribute_table): vector_size affects type
1923 identity.
1924
f0bc3323
MP
19252016-08-09 Marek Polacek <polacek@redhat.com>
1926
1927 PR c/7652
1928 * c-ada-spec.c (dump_generic_ada_node): Add return.
1929
98e5a19a
JM
19302016-08-09 Jason Merrill <jason@redhat.com>
1931
1932 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for
1933 C++17 constexpr lambdas.
1934
895aa8e1
DM
19352016-08-08 David Malcolm <dmalcolm@redhat.com>
1936
1937 PR c/64955
1938 * c-common.h (selftest::c_format_c_tests): New declaration.
1939 (selftest::run_c_tests): New declaration.
1940 * c-format.c: Include "selftest.h.
1941 (format_warning_va): Add param "corrected_substring" and use
1942 it to add a replacement fix-it hint.
1943 (format_warning_at_substring): Likewise.
1944 (format_warning_at_char): Update for new param of
1945 format_warning_va.
1946 (argument_parser::check_argument_type): Pass "fki" to
1947 check_format_types.
1948 (check_format_types): Add param "fki" and pass it to
1949 format_type_warning.
1950 (deref_n_times): New function.
1951 (get_modifier_for_format_len): New function.
1952 (selftest::test_get_modifier_for_format_len): New function.
1953 (get_format_for_type): New function.
1954 (format_type_warning): Add param "fki" and use it to attempt
1955 to provide hints for argument types when calling
1956 format_warning_at_substring.
1957 (selftest::get_info): New function.
1958 (selftest::assert_format_for_type_streq): New function.
1959 (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro.
1960 (selftest::test_get_format_for_type_printf): New function.
1961 (selftest::test_get_format_for_type_scanf): New function.
1962 (selftest::c_format_c_tests): New function.
1963
e52ed3fe
DM
19642016-08-08 David Malcolm <dmalcolm@redhat.com>
1965
1966 PR c/52952
1967 * c-format.c: Include "diagnostic.h".
1968 (location_column_from_byte_offset): Delete.
1969 (location_from_offset): Delete.
1970 (format_warning_va): New function.
1971 (format_warning_at_substring): New function.
1972 (format_warning_at_char): New function.
1973 (check_format_arg): Capture location of format_tree and pass to
1974 check_format_info_main.
1975 (argument_parser): Add fields "start_of_this_format" and
1976 "format_string_cst".
1977 (flag_chars_t::validate): Add param "format_string_cst". Convert
1978 warning_at call using location_from_offset to call to
1979 format_warning_at_char.
1980 (argument_parser::argument_parser): Add param "format_string_cst_"
1981 and use use it to initialize field "format_string_cst".
1982 Initialize new field "start_of_this_format".
1983 (argument_parser::read_format_flags): Convert warning_at call
1984 using location_from_offset to a call to format_warning_at_char.
1985 (argument_parser::read_any_format_left_precision): Likewise.
1986 (argument_parser::read_any_format_precision): Likewise.
1987 (argument_parser::read_any_other_modifier): Likewise.
1988 (argument_parser::find_format_char_info): Likewise, in three places.
1989 (argument_parser::parse_any_scan_set): Likewise, in one place.
1990 (argument_parser::handle_conversions): Likewise, in two places.
1991 (argument_parser::check_argument_type): Add param "fmt_param_loc"
1992 and use it to make a substring_loc. Pass the latter to
1993 check_format_types.
1994 (check_format_info_main): Add params "fmt_param_loc" and
1995 "format_string_cst". Convert warning_at calls using
1996 location_from_offset to calls to format_warning_at_char. Pass the
1997 new params to the arg_parser ctor. Pass "format_string_cst" to
1998 flag_chars.validate. Pass "fmt_param_loc" to
1999 arg_parser.check_argument_type.
2000 (check_format_types): Convert first param from a location_t
2001 to a const substring_loc & and rename to "fmt_loc". Attempt
2002 to extract the range of the relevant parameter and pass it
2003 to format_type_warning.
2004 (format_type_warning): Convert first param from a location_t
2005 to a const substring_loc & and rename to "fmt_loc". Add
2006 params "param_range" and "type". Replace calls to warning_at
2007 with calls to format_warning_at_substring.
2008
1c4d457e
DM
20092016-08-08 David Malcolm <dmalcolm@redhat.com>
2010
2011 * c-format.c (class flag_chars_t): New class.
2012 (struct length_modifier): New struct.
2013 (class argument_parser): New class.
2014 (flag_chars_t::flag_chars_t): New ctor.
2015 (flag_chars_t::has_char_p): New method.
2016 (flag_chars_t::add_char): New method.
2017 (flag_chars_t::validate): New method.
2018 (flag_chars_t::get_alloc_flag): New method.
2019 (flag_chars_t::assignment_suppression_p): New method.
2020 (argument_parser::argument_parser): New ctor.
2021 (argument_parser::read_any_dollar): New method.
2022 (argument_parser::read_format_flags): New method.
2023 (argument_parser::read_any_format_width): New method.
2024 (argument_parser::read_any_format_left_precision): New method.
2025 (argument_parser::read_any_format_precision): New method.
2026 (argument_parser::handle_alloc_chars): New method.
2027 (argument_parser::read_any_length_modifier): New method.
2028 (argument_parser::read_any_other_modifier): New method.
2029 (argument_parser::find_format_char_info): New method.
2030 (argument_parser::validate_flag_pairs): New method.
2031 (argument_parser::give_y2k_warnings): New method.
2032 (argument_parser::parse_any_scan_set): New method.
2033 (argument_parser::handle_conversions): New method.
2034 (argument_parser::check_argument_type): New method.
2035 (check_format_info_main): Introduce classes argument_parser
2036 and flag_chars_t, moving the code within the loop into methods
2037 of these classes. Make various locals "const".
2038
88fa5555
DM
20392016-08-05 David Malcolm <dmalcolm@redhat.com>
2040
2041 * c-common.c: Include "substring-locations.h".
2042 (get_cpp_ttype_from_string_type): New function.
2043 (g_string_concat_db): New global.
2044 (substring_loc::get_range): New method.
2045 * c-common.h (g_string_concat_db): New declaration.
2046 (class substring_loc): New class.
2047 * c-lex.c (lex_string): When concatenating strings, capture the
2048 locations of all tokens using a new obstack, and record the
2049 concatenation locations within g_string_concat_db.
2050 * c-opts.c (c_common_init_options): Construct g_string_concat_db
2051 on the ggc-heap.
2052
78169471
MP
20532016-07-29 Marek Polacek <polacek@redhat.com>
2054
638fc14f
MP
2055 PR c/71926
2056 * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the
2057 parentheses warning.
2058
78169471
MP
2059 PR c/71574
2060 * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL.
2061
1225d6b1
ML
20622016-07-28 Martin Liska <mliska@suse.cz>
2063
2064 PR gcov-profile/68025
2065 * c-common.c (handle_no_profile_instrument_function_attribute):
2066
ec1e2a40
BE
20672016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
2068
2069 * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of
2070 BITS_PER_UNIT_LOG.
2071
5ec2cd9f
JM
20722016-07-25 Jason Merrill <jason@redhat.com>
2073
2074 PR c++/65970
2075 * c.opt (fconstexpr-loop-limit): New.
2076
9dc5773f 20772016-07-22 Martin Sebor <msebor@redhat.com>
2e6b45af
MS
2078
2079 PR c++/71675
2080 * c-common.c (resolve_overloaded_builtin): Avoid converting
2081 __atomic_compare_exchange_n return type to that of what its
2082 first argument points to.
2083
e3fe09c1
UB
20842016-07-22 Uros Bizjak <ubizjak@gmail.com>
2085
2086 * c-common.c: Use HOST_WIDE_INT_M1U instead of
2087 ~(unsigned HOST_WIDE_INT) 0.
2088
bc91c436
ML
20892016-07-22 Martin Liska <mliska@suse.cz>
2090
2091 PR gcov-profile/69028
2092 PR gcov-profile/62047
2093 * cilk.c (create_cilk_helper_decl): Set location of a new decl
2094 to the current_function_decl.
2095
451dcc66
JM
20962016-07-21 Jason Merrill <jason@redhat.com>
2097
2098 PR c++/65168
2099 * c-common.c (c_common_truthvalue_conversion): Check
2100 c_inhibit_evaluation_warnings for warning about address of
2101 reference.
2102
de6a69ee
DM
21032016-07-20 David Malcolm <dmalcolm@redhat.com>
2104
2105 * c-common.h (lookup_name_fuzzy): Convert return type from tree to
2106 const char *.
2107
d022c55a
JM
21082016-07-15 Jason Merrill <jason@redhat.com>
2109
2110 * c-opts.c (c_common_post_options): Update -fabi-version default to 11.
2111
ddbbcb19
JJ
21122016-07-15 Jakub Jelinek <jakub@redhat.com>
2113
2114 PR c/71858
2115 * c-common.h (enum lookup_name_fuzzy_kind): Add
2116 FUZZY_LOOKUP_FUNCTION_NAME.
2117
d0cf395a
JM
21182016-07-08 Jason Merrill <jason@redhat.com>
2119
2120 P0145: Refining Expression Order for C++.
2121 * c.opts (-fargs-in-order): Rename to -fstrong-eval-order.
2122 * c-opts.c: Adjust.
2123
98d44e93
MT
21242016-07-05 Markus Trippelsdorf <markus@trippelsdorf.de>
2125
2126 PR c++/71214
2127 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.
2128
f9d8d994
TS
21292016-06-29 Thomas Schwinge <thomas@codesourcery.com>
2130
2131 * c-pragma.h (enum pragma_kind): Rename
2132 PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE. Adjust all
2133 users.
2134
4aa83879
RB
21352016-06-29 Richard Biener <rguenther@suse.de>
2136
2137 PR middle-end/71002
2138 * c-common.c (c_common_get_alias_set): Remove union type punning case.
2139
a25bd9e6
JM
21402016-06-24 Jason Merrill <jason@redhat.com>
2141
2142 P0145R2: Refining Expression Order for C++.
2143 * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of
2144 MODIFY_EXPR.
2145
a86451b9
JJ
21462016-06-24 Jakub Jelinek <jakub@redhat.com>
2147
2148 * c-common.c (check_builtin_function_arguments): Require last
2149 argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type.
2150 Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW
2151 if the last argument is pointer to enumerated or boolean type.
2152
1a4f11c8
DM
21532016-06-22 David Malcolm <dmalcolm@redhat.com>
2154
2155 PR c/70339
2156 * c-common.h (enum lookup_name_fuzzy_kind): New enum.
2157 (lookup_name_fuzzy): New prototype.
2158
fe55692c
JDA
21592016-06-21 John David Anglin <danglin@gcc.gnu.org>
2160
2161 * c-common.c (get_source_date_epoch): Use int64_t instead of long long.
2162
4eb24e01
JM
21632016-06-14 Jason Merrill <jason@redhat.com>
2164
2165 P0145R2: Refining Expression Order for C++.
2166 * c.opt (fargs-in-order): New.
2167 * c-opts.c (c_common_post_options): Adjust flag_args_in_order.
2168
ef7cf206
JJ
21692016-06-13 Jakub Jelinek <jakub@redhat.com>
2170
0dda258b
JJ
2171 PR sanitizer/71498
2172 * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
2173 all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.
2174
ef7cf206
JJ
2175 PR preprocessor/71183
2176 * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch
2177 to cb_get_source_date_epoch.
2178
50b15873
JJ
21792016-06-10 Jakub Jelinek <jakub@redhat.com>
2180
2181 PR c/68657
2182 * c.opt (Wpsabi): Add Warning flag.
2183
4d926e34
MS
21842016-06-10 Martin Sebor <msebor@redhat.com>
2185
2186 PR c/71392
2187 * gcc/c-family/c-common.c (handle_nonnull_attribute): Accept
2188 the nonnull attribute in type-generic builtins.
2189
e01b4e16
MS
21902016-06-09 Martin Sebor <msebor@redhat.com>
2191
2192 PR c/70883
2193 * c-common.c (builtin_function_validate_nargs): Make text of error
2194 message consistent with others like it.
2195
44a845ca
MS
21962016-06-08 Martin Sebor <msebor@redhat.com>
2197 Jakub Jelinek <jakub@redhat.com>
2198
2199 PR c++/70507
2200 PR c/68120
2201 * c-common.c (check_builtin_function_arguments): Handle
2202 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
2203
a80a7051
RB
22042016-06-08 Richard Biener <rguenther@suse.de>
2205
2206 * c-common.c (parse_optimize_options): Improve diagnostic messages.
2207
bfd67b47
RB
22082016-06-07 Richard Biener <rguenther@suse.de>
2209
2210 PR c/61564
2211 * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION
2212 options and warn about others.
2213
15c98b2e
ES
22142016-06-01 Eduard Sanou <dhole@openmailbox.org>
2215
2216 * c-common.c (get_source_date_epoch): Rename to
2217 cb_get_source_date_epoch.
2218 * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
2219 message when the parsing fails. Use error_at instead of fatal_error.
2220 * c-common.h (get_source_date_epoch): Rename to
2221 cb_get_source_date_epoch.
2222 * c-common.h (cb_get_source_date_epoch): Prototype.
2223 * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
2224 * c-common.h (c_omp_region_type): Remove trailing comma.
2225 * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
2226 * c-lex.c (c_lex_with_flags): Remove initialization of
2227 pfile->source_date_epoch.
2228
00631022
JJ
22292016-05-30 Jakub Jelinek <jakub@redhat.com>
2230
2231 PR c++/71349
2232 * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
2233 C_OMP_CLAUSE_SPLIT_TARGET. Put OMP_CLAUSE_NOWAIT to
2234 C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
2235 instead of C_OMP_CLAUSE_SPLIT_FOR.
2236
f17a223d
RB
22372016-05-24 Richard Biener <rguenther@suse.de>
2238
2239 PR middle-end/70434
2240 PR c/69504
2241 * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
2242 (convert_vector_to_array_for_subscript): ... this.
2243 * c-common.c (convert_vector_to_pointer_for_subscript): Use a
2244 VIEW_CONVERT_EXPR to an array type. Rename to ...
2245 (convert_vector_to_array_for_subscript): ... this.
2246
4f2e1536
MP
22472016-05-12 Marek Polacek <polacek@redhat.com>
2248
2249 PR c/70756
2250 * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
2251 size_in_bytes and pass LOC to it.
2252
d6e83a8d
MM
22532016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
2254
2255 PR c/43651
2256 * c.opt (Wduplicate-decl-specifier): New option.
2257
5c3a10fb
MP
22582016-05-11 Marek Polacek <polacek@redhat.com>
2259
2260 PR c++/71024
2261 * c-common.c (diagnose_mismatched_attributes): New function.
2262 * c-common.h (diagnose_mismatched_attributes): Declare.
2263
deef7113
MP
22642016-05-04 Marek Polacek <polacek@redhat.com>
2265
2266 * c.opt (Wdangling-else): New option.
2267
79ce98bc
MP
22682016-05-03 Marek Polacek <polacek@redhat.com>
2269
2270 PR c/70859
2271 * c-common.c (builtin_function_validate_nargs): Add location
2272 parameter. Use it.
2273 (check_builtin_function_arguments): Add location and arguments
2274 parameters. Use them.
2275 * c-common.h (check_builtin_function_arguments): Update declaration.
2276
381cdae4
RB
22772016-05-03 Richard Biener <rguenther@suse.de>
2278
2279 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
2280 allow call args to gimplify to SSA names.
2281
1d793c34
MP
22822016-05-03 Marek Polacek <polacek@redhat.com>
2283
2284 * c-common.h (enum c_omp_region_type): Remove stray comma.
2285
77886428
CP
22862016-05-02 Cesar Philippidis <cesar@codesourcery.com>
2287
2288 * c-common.h (enum c_omp_region_type): Define.
2289
697e0b28
RS
22902016-05-02 Richard Sandiford <richard.sandiford@arm.com>
2291
2292 * c-common.c (shorten_compare): Use wi::to_wide.
2293
e7ff0319
CP
22942016-04-29 Cesar Philippidis <cesar@codesourcery.com>
2295
2296 PR middle-end/70626
2297 * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
2298 * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
2299 reduction clauses in acc parallel loops.
2300
2fff3db8
MP
23012016-04-29 Marek Polacek <polacek@redhat.com>
2302
2303 PR c/70852
2304 * c-common.c (warn_for_memset): Check domain before accessing it.
2305
509063eb
DV
23062016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
2307
2308 PR/69089
2309 * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
2310 "aligned" attribute.
2311
b632761d
JM
23122016-04-28 Jason Merrill <jason@redhat.com>
2313
2314 * c-lex.c (c_common_has_attribute): Handle nodiscard.
2315
174f6622
ES
23162016-04-28 Eduard Sanou <dhole@openmailbox.org>
2317 Matthias Klose <doko@debian.org>
2318
2319 * c-common.c (get_source_date_epoch): New function, gets the environment
2320 variable SOURCE_DATE_EPOCH and parses it as long long with error
2321 handling.
2322 * c-common.h (get_source_date_epoch): Prototype.
2323 * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
2324
6bc2bb18
RB
23252015-04-27 Ryan Burn <contact@rnburn.com>
2326
2327 PR c++/69024
2328 PR c++/68997
2329 * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
2330 (cilk_recognize_spawn): Renamed from recognize_spawn and change to
2331 external linkage.
2332 (cilk_detect_and_unwrap): Corresponding changes.
2333 (extract_free_variables): Don't extract free variables from
2334 AGGR_INIT_EXPR slot.
2335 * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
2336 (cilk_recognize_spawn): Likewise.
2337
c1e1f433
BS
23382016-04-27 Bernd Schmidt <bschmidt@redhat.com>
2339
2340 * c.opt (Wmemset-elt-size): New option.
2341 * c-common.c (warn_for_memset): New function.
2342 * c-common.h (warn_for_memset): Declare.
2343
d067e05f
JM
23442016-04-25 Jason Merrill <jason@redhat.com>
2345
2346 * c-common.c (handle_unused_attribute): Accept CONST_DECL.
2347 No longer static.
2348 * c-common.h: Declare it.
2349 * c-lex.c (c_common_has_attribute): Add maybe_unused.
2350
9aa36ae5
JM
23512016-04-22 Jason Merrill <jason@redhat.com>
2352
2353 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
2354
477d4906
IV
23552016-04-20 Ilya Verbin <ilya.verbin@intel.com>
2356
2357 PR c++/69363
2358 * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
2359 * c-common.h (c_finish_cilk_clauses): Remove declaration.
2360
fe37c7af
MM
23612016-04-18 Michael Matz <matz@suse.de>
2362
2363 * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
2364 and SET_DECL_ALIGN.
2365
23f2660f
EB
23662016-04-17 Eric Botcazou <ebotcazou@adacore.com>
2367
2368 * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
2369 (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
2370 to incomplete types.
2371 (dump_nested_type): Remove redundant tests and tidy up.
2372 (print_ada_declaration): Also set TREE_VISITED on the declaration of
2373 a type which is the typedef of an original type.
2374
1e77281b
MP
23752016-04-15 Marek Polacek <polacek@redhat.com>
2376
2377 PR c/70651
2378 * c-common.c (build_va_arg): Change two asserts into errors and return
2379 error_mark_node.
2380
b3a77f21
MP
23812016-04-13 Marek Polacek <polacek@redhat.com>
2382
2383 PR c++/70639
2384 * c-indentation.c (should_warn_for_misleading_indentation): Bail out
2385 for switch statements, too.
2386
322b8466
JM
23872016-03-28 Jason Merrill <jason@redhat.com>
2388
2389 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
2390
fbdb6baf
MP
23912016-03-23 Marek Polacek <polacek@redhat.com>
2392
2393 PR c++/69884
2394 * c.opt (Wignored-attributes): New option.
2395
5c240f4d
DM
23962016-03-22 David Malcolm <dmalcolm@redhat.com>
2397
2398 PR c/69993
2399 * c-indentation.c (warn_for_misleading_indentation): Rewrite the
2400 diagnostic text, reversing the order of the warning and note so
2401 that they appear in source order.
2402
14ba7b28
MP
24032016-03-17 Marek Polacek <polacek@redhat.com>
2404
2405 PR c/69407
2406 * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
2407 operations.
2408
08a1cadc
JM
24092016-03-14 Jason Merrill <jason@redhat.com>
2410
2aaeea19
JM
2411 * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
2412
08a1cadc
JM
2413 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
2414
c06d25bb
RB
24152016-03-09 Richard Biener <rguenther@suse.de>
2416
2417 PR c/70143
2418 * c-common.c (strict_aliasing_warning): Add back
2419 alias_sets_conflict_p check.
2420
80aac5c8
JM
24212016-03-08 Jason Merrill <jason@redhat.com>
2422
2423 * c-opts.c (set_std_cxx1z): Don't enable concepts.
2424
64b23c13
DM
24252016-03-04 David Malcolm <dmalcolm@redhat.com>
2426
2427 PR c/68187
2428 * c-indentation.c (get_visual_column): Move code to determine next
2429 tab stop to...
2430 (next_tab_stop): ...this new function.
2431 (line_contains_hash_if): Delete function.
2432 (detect_preprocessor_logic): Delete function.
2433 (get_first_nws_vis_column): New function.
2434 (detect_intervening_unindent): New function.
2435 (should_warn_for_misleading_indentation): Replace call to
2436 detect_preprocessor_logic with a call to
2437 detect_intervening_unindent.
2438
729526f5
DM
24392016-03-04 David Malcolm <dmalcolm@redhat.com>
2440
2441 PR c/68187
2442 * c-indentation.c (should_warn_for_misleading_indentation): When
2443 suppressing warnings about cases where the guard and body are on
2444 the same column, only use the first non-whitespace column in place
2445 of the guard token column when dealing with "else" clauses.
2446 When rejecting aligned BODY and NEXT, loosen the requirement
2447 from equality with the first non-whitespace of guard to simply
2448 that they not be indented relative to it.
2449
e9a35493
RB
24502016-03-04 Richard Biener <rguenther@suse.de>
2451
2452 PR c++/70054
2453 * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
2454 instead of alias_sets_conflict_p.
2455
1be56bc5
MP
24562016-03-01 Marek Polacek <polacek@redhat.com>
2457
2458 PR c++/69795
2459 * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
2460 any DECL.
2461
35886f0b
MS
24622016-02-22 Martin Sebor <msebor@redhat.com>
2463
2464 PR middle-end/69780
2465 * c-common.c (check_builtin_function_arguments): Validate and
2466 reject invalid arguments to __builtin_alloca_with_align.
2467
4246c8da
MW
24682016-02-20 Mark Wielaard <mjw@redhat.com>
2469
2470 PR c/28901
2471 * c.opt (Wunused-const-variable): Turn into Alias for...
2472 (Wunused-const-variable=): New option.
2473
268be88c
BE
24742016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
2475
2476 PR c++/69865
2477 * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
2478 here...
2479 (c_common_init_options): ...to here.
2480 (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
2481
871b3f47
JJ
24822016-02-19 Jakub Jelinek <jakub@redhat.com>
2483
2484 PR c++/69826
2485 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
2486 (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
2487 flag_preprocess_only.
2488
bf14eba2
JJ
24892016-02-16 Jakub Jelinek <jakub@redhat.com>
2490
2491 PR c/69835
2492 * c.opt (Wnonnull-compare): Enable for -Wall.
2493
ba6b3795
JJ
24942016-02-15 Jakub Jelinek <jakub@redhat.com>
2495
2496 PR c++/69797
2497 * c-common.c (sync_resolve_size): Diagnose too few arguments
2498 even when params is non-NULL empty vector.
2499
a011cd92
BS
25002016-02-08 Bernd Schmidt <bschmidt@redhat.com>
2501
2502 PR target/60410
2503 * c.opt (fshort-double): Remove.
2504
46cb9332
MS
25052016-02-05 Martin Sebor <msebor@redhat.com>
2506
2507 PR c++/69662
2508 * c.opt (Warning options): Update -Wplacement-new to take
2509 an optional argument.
2510
e1b81f2b
JJ
25112016-02-01 Jakub Jelinek <jakub@redhat.com>
2512
2513 PR preprocessor/69543
2514 PR c/69558
2515 * c-pragma.c (handle_pragma_diagnostic): Pass input_location
2516 instead of loc to control_warning_option.
2517
b6adbb9f
NS
25182016-02-01 Nathan Sidwell <nathan@codesourcery.com>
2519
2520 * c.opt (fopenacc-dim=): New option.
2521
5d70666e
RB
25222016-01-27 Ryan Burn <contact@rnburn.com>
2523
2524 PR cilkplus/69267
2525 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
2526 gimplify_arg. Removed superfluous post_p argument.
2527 * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
2528 superfluous post_p argument.
2529 * c-gimplify.c (c_gimplify_expr): Likewise.
2530
01e1dea3
DM
25312016-01-26 David Malcolm <dmalcolm@redhat.com>
2532
2533 PR other/69006
2534 * c-opts.c (c_diagnostic_finalizer): Replace invocation of
2535 pp_newline_and_flush with pp_flush.
2536
9f04a53e
MS
25372016-01-20 Martin Sebor <msebor@redhat.com>
2538
2539 PR c/69405
2540 * c-common.c (sync_resolve_size): Avoid printing diagnostic about
2541 an incompatible argument when the argument isn't a valid tree node.
2542
7f26f7df
JM
25432016-01-18 Jason Merrill <jason@redhat.com>
2544
2545 PR c++/68767
2546 * c-common.c (check_function_arguments_recurse): Fold the whole
2547 COND_EXPR, not just the condition.
2548
f62bf092
TV
25492016-01-18 Tom de Vries <tom@codesourcery.com>
2550
2551 * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
2552 classify as loop clause.
2553
e0a575ff
JJ
25542016-01-15 Jakub Jelinek <jakub@redhat.com>
2555
2556 PR bootstrap/68271
2557 * c-pragma.c (c_register_pragma_1): Adjust comment to note that
2558 C++ FE no longer has limit on number of pragmas.
2559
25602015-01-14 Ryan Burn <contact@rnburn.com>
b6e3db06
RB
2561
2562 PR c++/69048
2563 * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
c47eaca6 2564 to add missing cleanup point.
b6e3db06 2565
c7df95d8
DM
25662016-01-14 David Malcolm <dmalcolm@redhat.com>
2567
2568 PR c++/68819
2569 * c-indentation.c (get_visual_column): Add location_t param.
2570 Handle the column number being zero by effectively disabling the
2571 warning, with an "inform".
2572 (should_warn_for_misleading_indentation): Add location_t argument
2573 for all uses of get_visual_column.
2574
21efdd80
PP
25752016-01-10 Patrick Palka <ppalka@gcc.gnu.org>
2576
2577 PR c++/69029
2578 * c-indentation.c (should_warn_for_misleading_indentation):
2579 Don't warn about do-while statements.
2580
7a127fa7
MS
25812016-01-07 Martin Sebor <msebor@redhat.com>
2582
2583 PR c/68966
2584 * c-common.c (sync_resolve_size): Reject first argument when it's
2585 a pointer to _Bool.
2586
c589e975
DM
25872016-01-05 David Malcolm <dmalcolm@redhat.com>
2588
2589 PR c/69122
2590 * c-indentation.c (get_visual_column): Remove default argument.
2591 (should_warn_for_misleading_indentation): For the multiline case,
2592 update call to get_visual_column for next_stmt_exploc so that it
2593 captures the location of the first non-whitespace character in the
2594 relevant line. Don't issue warnings if there is non-whitespace
2595 before the next statement.
2596
818ab71a
JJ
25972016-01-04 Jakub Jelinek <jakub@redhat.com>
2598
2599 Update copyright years.
2600
745e411d
DM
26012015-12-21 David Malcolm <dmalcolm@redhat.com>
2602
2603 * c-common.c (binary_op_error): Convert first param from
2604 location_t to rich_location * and use it when emitting an error.
2605 * c-common.h (binary_op_error): Convert first param from
2606 location_t to rich_location *.
2607
de67c4c3
DM
26082015-12-16 David Malcolm <dmalcolm@redhat.com>
2609
2610 * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
2611 * c-lex.c (conflict_marker_get_final_tok_kind): New function.
2612
4a38b02b
IV
26132015-12-15 Ilya Verbin <ilya.verbin@intel.com>
2614
2615 * c-common.c (c_common_attribute_table): Handle "omp declare target
2616 link" attribute.
2617
54d62f51
JJ
26182015-12-14 Jakub Jelinek <jakub@redhat.com>
2619
2620 PR c/68833
2621 * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
2622
8d4227c8
TB
26232014-12-12 Tobias Burnus <burnus@net-b.de>
2624
2625 PR fortran/68815
2626 * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
2627 specifiers (%d, %i,%u and %c).
2628
f6069ccc
DM
26292015-12-10 David Malcolm <dmalcolm@redhat.com>
2630
2631 * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
2632
63bbf46d
JJ
26332015-12-08 Jakub Jelinek <jakub@redhat.com>
2634
2635 PR c/48088
2636 PR c/68657
2637 * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
2638 * c-pragma.c (handle_pragma_diagnostic): Adjust
2639 control_warning_option caller.
2640
f79520bb
DM
26412015-12-07 David Malcolm <dmalcolm@redhat.com>
2642
2643 * c-common.c (c_cpp_error): Update for change to
2644 rich_location::set_range.
2645
b3d5bc62
JJ
26462015-12-04 Paolo Bonzini <bonzini@gnu.org>
2647
2648 * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
2649 shifting 1 out of the sign bit.
2650
26512015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
2652
2653 * c-common.c (c_common_attribute_table[]): Update max arguments
2654 count for "simd" attribute.
2655 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
2656
6eb4a537
JJ
26572015-12-03 Jakub Jelinek <jakub@redhat.com>
2658
2659 PR preprocessor/57580
2660 * c-ppoutput.c (print): Change printed field to bool.
2661 Move src_file last for smaller padding.
2662 (init_pp_output): Set print.printed to false instead of 0.
2663 (scan_translation_unit): Fix up formatting. Set print.printed
2664 to true after printing something other than newline.
2665 (scan_translation_unit_trad): Set print.printed to true instead of 1.
2666 (maybe_print_line_1): Set print.printed to false instead of 0.
2667 (print_line_1): Likewise.
2668 (do_line_change): Set print.printed to true instead of 1.
2669 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
2670 dump_macro): Set print.printed to false after printing newline.
2671
4250754e
JM
26722015-12-02 Jason Merrill <jason@redhat.com>
2673
f479b43d
JM
2674 * c-common.c (fold_for_warn): New.
2675 (warn_logical_operator, warn_tautological_cmp)
2676 (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
2677
4250754e
JM
2678 * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
2679 (c_fully_fold_internal, decl_constant_value_for_optimization):
2680 Move to c/c-fold.c.
2681 * c-common.h: Don't declare decl_constant_value_for_optimization.
2682
e9e32ee6
JM
26832015-12-02 Joseph Myers <joseph@codesourcery.com>
2684
2685 PR c/68162
2686 * c-common.h (c_build_qualified_type): Add extra default
2687 arguments.
2688
37d5ad46
JB
26892015-12-01 Julian Brown <julian@codesourcery.com>
2690 Cesar Philippidis <cesar@codesourcery.com>
2691 James Norris <James_Norris@mentor.com>
2692
2693 * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
2694 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
2695 (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
2696
f07862c7
EB
26972015-11-30 Eric Botcazou <ebotcazou@adacore.com>
2698
2699 * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
2700 (decl_sloc_common): Delete and move bulk of processing to...
2701 (decl_sloc): ...here.
2702 (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
2703 (dump_ada_double_name): Remove S parameter and compute the suffix.
2704 (dump_ada_array_type): Add PARENT parameter. Simplify computation of
2705 element type and deal with an anonymous one.
2706 (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
2707 (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type
2708 and remove reference to QUAL_UNION_TYPE.
2709 (dump_nested_types): Make 2 passes on the fields and move bulk to...
2710 (dump_nested_type): ...here. New function extracted from above.
2711 Generate a full declaration for anonymous element type of arrays.
2712 (print_ada_declaration): Really skip anonymous declarations. Remove
2713 references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type.
2714 Clean up processing of declarations of array types and objects.
2715 (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
2716 Remove obsolete code and tidy up.
2717
75c8aac3
JH
27182015-11-29 Jan Hubicka <hubicka@ucw.cz>
2719
2720 PR c/67581
2721 * c-common.c (handle_transparent_union_attribute): Update
2722 also type variants.
2723
b58d3df2
ML
27242015-11-27 Martin Liska <mliska@suse.cz>
2725
2726 PR c++/68312
2727 * array-notation-common.c (cilkplus_extract_an_triplets):
2728 Release vector of vectors.
2729 * cilk.c (gimplify_cilk_spawn): Free allocated memory.
2730
89a01fcf
EB
27312015-11-26 Eric Botcazou <ebotcazou@adacore.com>
2732
2733 PR c++/68527
2734 * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
2735 (print_ada_struct_decl): Likewise.
2736
cc5c5226
IZ
27372015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
2738
2739 PR c++/68001
2740 * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
2741 * cilk.c (recognize_spawn): Determine location in a more precise
2742 way.
2743
269adb9d
JM
27442015-11-19 Jason Merrill <jason@redhat.com>
2745
2746 * c-common.c (shorten_compare): But look through macros from
2747 system headers.
2748
d0eccfcd
JM
27492015-11-18 Jason Merrill <jason@redhat.com>
2750
2751 * c-common.c (shorten_compare): Don't -Wtype-limits if the
2752 non-constant operand comes from a macro.
2753
3e44547c
JM
27542015-11-17 Jason Merrill <jason@redhat.com>
2755
2756 PR bootstrap/68346
2757 * c-common.c (warn_tautological_cmp): Fold before checking for
2758 constants.
2759
0f62c7a0
MP
27602015-11-16 Marek Polacek <polacek@redhat.com>
2761
2762 PR c++/68362
2763 * c-common.c (check_case_bounds): Fold low and high cases.
2764
a868811e
MP
27652015-11-16 Marek Polacek <polacek@redhat.com>
2766
2767 * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
2768 * c-common.c (c_common_get_alias_set): Likewise.
2769 (handle_visibility_attribute): Likewise.
2770
fff77217
KY
27712015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
2772
2773 * c-common.c (handle_simd_attribute): New.
2774 (struct attribute_spec): Add entry for "simd".
2775 (handle_simd_attribute): New.
2776
269e63b7
KT
27772015-11-13 Kai Tietz <ktietz70@googlemail.com>
2778
2779 * c-lex.c (interpret_float): Use fold_convert.
2780
ebedc9a3
DM
27812015-11-13 David Malcolm <dmalcolm@redhat.com>
2782
2783 * c-common.c (c_fully_fold_internal): Capture existing souce_range,
2784 and store it on the result.
2785 * c-opts.c (c_common_init_options): Set
2786 global_dc->colorize_source_p.
2787
6e232ba4
JN
27882015-11-12 James Norris <jnorris@codesourcery.com>
2789 Joseph Myers <joseph@codesourcery.com>
2790
2791 * c-pragma.c (oacc_pragmas): Add entry for declare directive.
2792 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
2793 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
2794 PRAGMA_OACC_CLAUSE_LINK.
2795
e78bede6
MP
27962015-11-11 Marek Polacek <polacek@redhat.com>
2797
2798 PR c/68107
2799 PR c++/68266
2800 * c-common.c (valid_array_size_p): New function.
2801 * c-common.h (valid_array_size_p): Declare.
2802
3f8257db 28032015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
4ac93c7c
DH
2804
2805 PR bootstrap/68271
2806 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
2807
69f293c9
AM
28082015-11-11 Andrew MacLeod <amacleod@redhat.com>
2809
2810 * array-notation-common.c: Remove unused header files.
2811 * c-ada-spec.c: Likewise.
2812 * c-cilkplus.c: Likewise.
2813 * c-common.c: Likewise.
2814 * c-cppbuiltin.c: Likewise.
2815 * c-dump.c: Likewise.
2816 * c-format.c: Likewise.
2817 * c-gimplify.c: Likewise.
2818 * c-indentation.c: Likewise.
2819 * c-lex.c: Likewise.
2820 * c-omp.c: Likewise.
2821 * c-opts.c: Likewise.
2822 * c-pch.c: Likewise.
2823 * c-ppoutput.c: Likewise.
2824 * c-pragma.c: Likewise.
2825 * c-pretty-print.c: Likewise.
2826 * c-semantics.c: Likewise.
2827 * c-ubsan.c: Likewise.
2828 * cilk.c: Likewise.
2829 * stub-objc.c: Likewise.
2830
3a40d81d
NS
28312015-11-09 Thomas Schwinge <thomas@codesourcery.com>
2832 Cesar Philippidis <cesar@codesourcery.com>
2833 James Norris <jnorris@codesourcery.com>
2834 Julian Brown <julian@codesourcery.com>
2835 Nathan Sidwell <nathan@codesourcery.com>
2836
2837 * c-pragma.c (oacc_pragmas): Add "routine".
2838 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
2839
ee45a32d
EB
28402015-11-08 Eric Botcazou <ebotcazou@adacore.com>
2841
2842 * c-common.c (c_common_attributes): Add scalar_storage_order.
2843 (handle_scalar_storage_order_attribute): New function.
2844 * c-pragma.c (global_sso): New variable.
2845 (maybe_apply_pragma_scalar_storage_order): New function.
2846 (handle_pragma_scalar_storage_order): Likewise.
2847 (init_pragma): Register scalar_storage_order.
2848 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
2849 * c.opt (Wscalar-storage-order): New warning.
2850 (fsso-struct=): New option.
2851
eb11eb15
MS
28522015-11-08 Martin Sebor <msebor@redhat.com>
2853
2854 * c.opt (Wplacement-new): Add a period to the end of a sentence.
2855
0aad0198
RS
28562015-11-07 Richard Sandiford <richard.sandiford@arm.com>
2857
2858 * c-common.c: Don't undef DEF_BUILTIN.
2859
8a645150
DM
28602015-11-06 David Malcolm <dmalcolm@redhat.com>
2861
2862 * c-common.c (c_cpp_error): Convert parameter from location_t to
2863 rich_location *. Eliminate the "column_override" parameter and
2864 the call to diagnostic_override_column.
2865 Update the "done_lexing" clause to set range 0
2866 on the rich_location, rather than overwriting a location_t.
2867 * c-common.h (c_cpp_error): Convert parameter from location_t to
2868 rich_location *. Eliminate the "column_override" parameter.
2869
7a5e4956
CP
28702015-11-05 Cesar Philippidis <cesar@codesourcery.com>
2871 Thomas Schwinge <thomas@codesourcery.com>
2872 James Norris <jnorris@codesourcery.com>
2873
2874 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
2875 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
2876 clauses with parallel and kernels and loops.
2877 * c-pragma.h (enum pragma_omp_clause): Add entries for
2878 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
2879 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
2880 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
2881 INDEPENDENT,SEQ}.
2882 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
2883
e2f5cc96
MS
28842015-11-05 Martin Sebor <msebor@redhat.com>
2885
2886 PR c++/67942
2887 * c.opt (-Wplacement-new): New option.
2888
e01d41e5
JJ
28892015-11-05 Jakub Jelinek <jakub@redhat.com>
2890
2891 * c-common.h (c_finish_omp_atomic): Add TEST argument.
2892 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
2893 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
2894 save_expr or create_tmp_var* if TEST is true.
2895 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
2896 Don't call add_stmt here.
2897 (struct c_omp_check_loop_iv_data): New type.
2898 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
2899 c_omp_check_loop_iv_exprs): New functions.
2900 (c_omp_split_clauses): Adjust for lastprivate being allowed on
2901 distribute.
2902 (c_omp_declare_simd_clauses_to_numbers): Change
2903 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
2904 (c_omp_declare_simd_clauses_to_decls): Similarly change those
2905 from numbers to PARM_DECLs.
2906
595278be
MM
29072015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
2908
2909 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
2910 flag_checking.
2911
3f8257db 29122015-11-03 Bernd Schmidt <bschmidt@redhat.com>
c85158de
MS
2913
2914 PR c++-common/67882
b3d5bc62
JJ
2915 * c-common.h (fold_offsetof_1): Add argument.
2916 * c-common.c (fold_offsetof_1): Diagnose more invalid
c85158de
MS
2917 offsetof expressions that reference elements past the end of
2918 an array.
2919
4bf9e5a8
TS
29202015-11-03 Thomas Schwinge <thomas@codesourcery.com>
2921 Chung-Lin Tang <cltang@codesourcery.com>
2922
2923 * c-pragma.c (oacc_pragmas): Add "atomic".
2924 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
2925
3b1661a9
ES
29262015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
2927
2928 * c-common.c (handle_target_clones_attribute): New.
2929 (c_common_attribute_table): Add handle_target_clones_attribute.
2930 (handle_always_inline_attribute): Add check on target_clones attribute.
2931 (handle_target_attribute): Ditto.
2932
2adfab87
AM
29332015-10-29 Andrew MacLeod <amacleod@redhat.com>
2934
2935 * array-notation-common.c: Reorder #include's and remove duplicates.
2936 * c-ada-spec.c: Likewise.
2937 * c-cilkplus.c: Likewise.
2938 * c-common.c: Likewise.
2939 * c-cppbuiltin.c: Likewise.
2940 * c-dump.c: Likewise.
2941 * c-format.c: Likewise.
2942 * c-gimplify.c: Likewise.
2943 * c-indentation.c: Likewise.
2944 * c-lex.c: Likewise.
2945 * c-omp.c: Likewise.
2946 * c-opts.c: Likewise.
2947 * c-pch.c: Likewise.
2948 * c-ppoutput.c: Likewise.
2949 * c-pragma.c: Likewise.
2950 * c-pretty-print.c: Likewise.
2951 * c-semantics.c: Likewise.
2952 * c-ubsan.c: Likewise.
2953 * cilk.c: Likewise.
2954 * stub-objc.c: Likewise.
2955
d90ec4f2
JM
29562015-10-28 Jason Merrill <jason@redhat.com>
2957
2958 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
2959
88bae6f4
TS
29602015-10-27 Thomas Schwinge <thomas@codesourcery.com>
2961 James Norris <jnorris@codesourcery.com>
2962 Cesar Philippidis <cesar@codesourcery.com>
2963
2964 PR c/64765
2965 PR c/64880
2966 * c-common.h (c_oacc_split_loop_clauses): Declare function.
2967 * c-omp.c (c_oacc_split_loop_clauses): New function.
2968
b1726d6c
MS
29692015-10-21 Martin Sebor <msebor@redhat.com>
2970
2971 PR driver/68043
2972 * c.opt: End each sentence that describes an option with a period.
2973
fa60eeb9
MP
29742015-10-20 Marek Polacek <polacek@redhat.com>
2975
2976 * array-notation-common.c (is_cilkplus_vector_p): Define.
2977 * c-common.h (is_cilkplus_vector_p): Declare.
2978
95979049
MP
29792015-10-20 Marek Polacek <polacek@redhat.com>
2980
2981 * c.opt (std=gnu++11): Do not describe as experimental.
2982 (std=gnu++14): Likewise.
2983
2a9fb712
JM
29842015-10-19 Jason Merrill <jason@redhat.com>
2985
2986 * c-cppbuiltin.c (c_cpp_builtins): Define
2987 __cpp_nontype_template_args.
2988
13b380a3
JM
29892015-10-19 Jason Merrill <jason@redhat.com>
2990
2991 * c-cppbuiltin.c (c_cpp_builtins): Define
2992 __cpp_enumerator_attributes, __cpp_fold_expressions,
2993 __cpp_unicode_characters.
2994
d9a6bd32
JJ
29952015-10-13 Jakub Jelinek <jakub@redhat.com>
2996 Aldy Hernandez <aldyh@redhat.com>
2997
2998 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
2999 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
3000 (c_define_builtins): Likewise.
3001 * c-common.h (enum c_omp_clause_split): Add
3002 C_OMP_CLAUSE_SPLIT_TASKLOOP.
3003 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
3004 (c_finish_omp_for): Add ORIG_DECLV argument.
3005 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
3006 201511 instead of 201307.
3007 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
3008 OMP_CRITICAL_CLAUSES to it.
3009 (c_finish_omp_ordered): Add CLAUSES argument, set
3010 OMP_ORDERED_CLAUSES to it.
3011 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
3012 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
3013 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
3014 constructs and new OpenMP 4.5 clauses. Clear
3015 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
3016 verification code.
3017 * c-pragma.c (omp_pragmas_simd): Add taskloop.
3018 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
3019 (enum pragma_omp_clause): Add
3020 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
3021 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
3022
624d31fe
RS
30232015-10-05 Richard Sandiford <richard.sandiford@arm.com>
3024
3025 * c-lex.c (interpret_float): Use real_equal instead of
3026 REAL_VALUES_EQUAL.
3027
b8fd7909
JM
30282015-10-04 Jason Merrill <jason@redhat.com>
3029
3030 Implement N4514, C++ Extensions for Transactional Memory.
3031 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
3032 (c_common_attribute_table): Add transaction_safe_dynamic.
3033 transaction_safe now affects type identity.
3034 (handle_tm_attribute): Handle transaction_safe_dynamic.
3035 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
3036 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
3037 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
3038 (D_TRANSMEM): New.
3039 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
3040 * c-pretty-print.c (pp_c_attributes_display): Don't print
3041 transaction_safe in C++.
3042
12651878
MP
30432015-10-02 Marek Polacek <polacek@redhat.com>
3044
3045 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
3046
3e3b8d63
MP
30472015-10-02 Marek Polacek <polacek@redhat.com>
3048
3049 PR c/64249
3050 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
3051 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
3052 * c.opt (Wduplicated-cond): New option.
3053
0d1a8f75
JM
30542015-10-01 Joseph Myers <joseph@codesourcery.com>
3055
3056 * c.opt (std=c11): Do not describe as experimental.
3057 (std=gnu11): Likewise.
3058 (std=iso9899:2011): Likewise.
3059
3e32ee19
NS
30602015-09-28 Nathan Sidwell <nathan@codesourcery.com>
3061
3062 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
3063 (DEF_FUNCTION_TYPE_VAR_11): Delete.
3064
974348ee
MP
30652015-09-25 Marek Polacek <polacek@redhat.com>
3066
3067 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
3068 (ubsan_instrument_shift): Likewise.
3069
15dbc1a6
MP
30702015-09-25 Marek Polacek <polacek@redhat.com>
3071
3072 PR sanitizer/64906
3073 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
3074
6b95d7cc
PP
30752015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
3076
3077 * c-indentation.c (should_warn_for_misleading_indentation):
3078 Compare next_stmt_vis_column with guard_line_first_nws instead
3079 of with guard_line_vis_column.
3080
c1822f9c
MLI
30812015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
3082
3083 PR c/49654
3084 PR c/49655
3085 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
3086 options and options not valid for the current language.
3087
d5398058
PP
30882015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
3089
3090 * c-indentation.c (should_warn_for_misleading_indentation):
3091 Float out and consolidate the calls to get_visual_column that
3092 are passed guard_exploc as an argument. Compare
3093 next_stmt_vis_column with guard_line_first_nws instead of with
3094 body_line_first_nws.
3095
6b333269
NS
30962015-09-22 Nathan Sidwell <nathan@codesourcery.com>
3097
3098 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
3099 Wnamespaces): New C++ warnings.
3100
a75f1574
JM
31012015-09-22 Jason Merrill <jason@redhat.com>
3102
3103 * c-common.h (abi_compat_version_crosses): New.
3104 (warn_abi_version): Declare.
3105 * c-common.c: Define it.
3106 * c-opts.c (c_common_post_options): Handle it.
3107 flag_abi_compat_version defaults to 8.
3108
bdaaa8b7
VV
31092015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
3110
3111 Complete the implementation of N4230, Nested namespace definition.
3112 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
3113 __cpp_nested_namespace_definitions.
3114
eaa797e8
MLI
31152015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
3116
3117 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
3118
c4914de6
MLI
31192015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
3120
3121 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
3122 when warning.
3123 * c-pragma.h (pragma_lex): Add optional loc argument.
3124
fcb87c50
MM
31252015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
3126
3127 * c-format.c (check_format_arg): Adjust to use common block size in all
3128 object pools.
3129
31bdd08a
DM
31302015-09-15 David Malcolm <dmalcolm@redhat.com>
3131
3132 * c-format.c (location_from_offset): Update for change in
3133 signature of location_get_source_line.
3134 * c-indentation.c (get_visual_column): Likewise.
3135 (line_contains_hash_if): Likewise.
3136
aa9f4b4c
MP
31372015-09-14 Marek Polacek <polacek@redhat.com>
3138
3139 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
3140 setting various warnings.
3141
aa256c4a
MP
31422015-09-14 Marek Polacek <polacek@redhat.com>
3143
3144 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
3145 a negative value.
3146
0f876f22
MW
31472015-09-11 Mark Wielaard <mjw@redhat.com>
3148
3149 PR c/28901
3150 * c.opt (Wunused-variable): Option from common.opt.
3151 (Wunused-const-variable): New option.
3152
273aa49e
PC
31532015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
3154
3155 PR c++/53184
3156 * c.opt ([Wsubobject-linkage]): Add.
3157
1807ffc1
MS
31582015-09-03 Martin Sebor <msebor@redhat.com>
3159
3160 PR c/66516
3161 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
3162 functions.
3163 * c-common.c (reject_gcc_builtin): Define.
3164
38942840
BI
31652015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
3166
3167 PR middle-end/60586
3168 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
3169 prototype.
3170 * c-gimplify.c (c_gimplify_expr): Added a call to the function
3171 cilk_gimplify_call_params_in_spawned_fn.
3172 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
3173 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
3174 unwrapping.
3175
c316b5e4
MP
31762015-08-25 Marek Polacek <polacek@redhat.com>
3177
3178 PR middle-end/67330
3179 * c-common.c (handle_weak_attribute): Don't check whether the
3180 visibility can be changed here.
3181
584a7c46
MLI
31822015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
3183
3184 * c-lex.c (c_lex_with_flags): Use explicit locations.
3185
a79683d5
TS
31862015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
3187
3188 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
3189 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
3190
61717a45
FXC
31912015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3192
3193 PR middle-end/36757
3194 * c-common.c (check_builtin_function_arguments): Add check
3195 for BUILT_IN_SIGNBIT argument.
3196
329524f5
PC
31972015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
3198
3199 PR c++/67160
3200 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
3201 in c++1z mode.
3202
4ee55665
MP
32032015-08-17 Marek Polacek <polacek@redhat.com>
3204
3205 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
3206 with whitespaces before qualifier names.
3207
b893e375
MP
32082015-08-12 Marek Polacek <polacek@redhat.com>
3209
3210 PR c++/55095
3211 * c-common.c (maybe_warn_shift_overflow): Properly handle
3212 left-shifting 1 into the sign bit.
3213
c2d89095
MLI
32142015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3215
3216 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
3217
971e17ff
AS
32182015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
3219 Braden Obrzut <admin@maniacsvault.net>
3220 Jason Merrill <jason@redhat.com>
3221
3222 Add C++ Concepts TS support.
3223 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
3224 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
3225 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
3226 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
3227 * c-opts.c (set_std_cxx1z): Set flag_concepts.
3228 * c.opt (fconcepts): New.
3229
b3d5bc62
JJ
32302015-08-02 Martin Sebor <msebor@redhat.com>
3231
3232 * c.opt (-Wframe-address): New warning option.
3233
8ebca419
PP
32342015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
3235
3236 * c-indentation.c (should_warn_for_misleading_indentation):
3237 Improve heuristics.
3238
1a1e101f
PP
32392015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
3240
3241 * c-indentation.c (get_visual_column): Add parameter first_nws,
3242 use it. Update comment documenting the function.
3243 (is_first_nonwhitespace_on_line): Remove.
3244 (should_warn_for_misleading_indentation): Replace usage of
3245 of is_first_nonwhitespace_on_line with get_visual_column.
3246
992118a1
PP
32472015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
3248
3249 * c-indentation.h (struct token_indent_info): Define.
3250 (get_token_indent_info): Define.
3251 (warn_for_misleading_information): Declare.
3252 * c-common.h (warn_for_misleading_information): Remove.
3253 * c-identation.c (warn_for_misleading_indentation):
3254 Change declaration to take three token_indent_infos. Adjust
3255 accordingly.
3256 * c-identation.c (should_warn_for_misleading_indentation):
3257 Likewise. Bail out early if the body is a compound statement.
3258 (guard_tinfo_to_string): Define.
3259
e8fa3817
JM
32602015-07-30 Jason Merrill <jason@redhat.com>
3261
3262 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
3263 '*' for reference decay.
3264
173864e8
MP
32652015-07-30 Marek Polacek <polacek@redhat.com>
3266
3267 * c-common.c (warn_tautological_cmp): Bail for float types.
3268
f2afe6dd
MP
32692015-07-27 Marek Polacek <polacek@redhat.com>
3270
3271 PR bootstrap/67030
3272 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
3273
05b28fd6
MP
32742015-07-27 Marek Polacek <polacek@redhat.com>
3275
3276 PR c++/66555
3277 PR c/54979
3278 * c-common.c (find_array_ref_with_const_idx_r): New function.
3279 (warn_tautological_cmp): New function.
3280 * c-common.h (warn_tautological_cmp): Declare.
3281 * c.opt (Wtautological-compare): New option.
3282
5a5062b8
MP
32832015-07-23 Marek Polacek <polacek@redhat.com>
3284
3285 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
3286 (ubsan_instrument_shift): Likewise.
3287
dc891fe7
MP
32882015-07-23 Marek Polacek <polacek@redhat.com>
3289
3290 PR sanitizer/66908
3291 * c-ubsan.c: Include gimplify.h.
3292 (ubsan_instrument_division): Unshare OP0 and OP1.
3293 (ubsan_instrument_shift): Likewise.
3294
451b5e48
MP
32952015-07-20 Marek Polacek <polacek@redhat.com>
3296 Richard Sandiford <richard.sandiford@arm.com>
3297
3298 PR c++/55095
3299 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
3300 Use EXPR_LOC_OR_LOC.
3301 (maybe_warn_shift_overflow): New function.
3302 * c-common.h (maybe_warn_shift_overflow): Declare.
3303 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
3304 * c.opt (Wshift-overflow): New option.
3305
fb0b2914
ML
33062015-07-16 Martin Liska <mliska@suse.cz>
3307
3308 * c-format.c (static void check_format_info_main): Use
3309 object_allocator instead of pool_allocator.
3310 (check_format_arg): Likewise.
3311 (check_format_info_main): Likewise.
3312
903f5c23
AM
33132015-07-15 Andrew MacLeod <amacleod@redhat.com>
3314
3315 * c-opts.c: Remove multiline #include comment.
3316
026c3cfd
AH
33172015-07-12 Aldy Hernandez <aldyh@redhat.com>
3318
3319 * c-common.c: Fix double word typos.
3320
bb49ee66
EB
33212015-07-10 Eric Botcazou <ebotcazou@adacore.com>
3322
3323 * c-ada-spec.h (cpp_operation): Revert latest change.
3324 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
3325 constructors and destructors.
3326
1916bcb5
AM
33272015-07-09 Andrew MacLeod <amacleod@redhat.com>
3328
3329 * c-common.h: Adjust includes for flags.h changes.
3330 * stub-objc.c: Likewise.
026c3cfd 3331
a9dcd529
EB
33322015-07-08 Eric Botcazou <ebotcazou@adacore.com>
3333
3334 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
3335 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
3336
b03b462f
JJ
33372015-07-08 Jakub Jelinek <jakub@redhat.com>
3338
3339 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
3340 are to be removed, return NULL rather than original clauses list.
3341
c7131fb2
AM
33422015-07-07 Andrew MacLeod <amacleod@redhat.com>
3343
3344 * array-notation-common.c: Adjust includes.
3345 * c-ada-spec.c: Likewise.
3346 * c-cilkplus.c: Likewise.
3347 * c-common.h: Likewise.
3348 * c-cppbuiltin.c: Likewise.
3349 * c-dump.c: Likewise.
3350 * c-format.c: Likewise.
3351 * c-gimplify.c: Likewise.
3352 * c-indentation.c: Likewise.
3353 * c-lex.c: Likewise.
3354 * c-omp.c: Likewise.
3355 * c-opts.c: Likewise.
3356 * c-pch.c: Likewise.
3357 * c-ppoutput.c: Likewise.
3358 * c-pragma.c: Likewise.
3359 * c-pretty-print.c: Likewise.
3360 * c-semantics.c: Likewise.
3361 * c-ubsan.c: Likewise.
3362 * cilk.c: Likewise.
3363 * stub-objc.c: Likewise.
3364
2a7fb83f
EB
33652015-07-07 Eric Botcazou <ebotcazou@adacore.com>
3366
3367 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
3368 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
3369
a03c9bf1
JM
33702015-07-01 Jason Merrill <jason@redhat.com>
3371
36a85135
JM
3372 * c-common.h (D_CXX11): Rename from D_CXX0X.
3373 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
3374 * c-common.c: Adjust.
3375
e7fa68d5
JM
3376 * c-opts.c (c_common_post_options): Default to C++14.
3377
a03c9bf1
JM
3378 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
3379
fe95b036
ESR
33802015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
3381
3382 Implement N4197 - Adding u8 character literals
b3d5bc62 3383 * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
a64be36b 3384 CPP_CHAR.
b3d5bc62 3385 * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
a64be36b 3386 CPP_UTF8CHAR_USERDEF tokens.
b3d5bc62 3387 * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
a64be36b
EB
3388 and CPP_UTF8CHAR tokens.
3389 (lex_charconst): Treat CPP_UTF8CHAR token.
fe95b036 3390
da2e71c9
MLI
33912015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3392
3393 PR fortran/66605
3394 * c-common.c (do_warn_unused_parameter): Move here.
3395 * c-common.h (do_warn_unused_parameter): Declare.
3396
b155cfd9
MP
33972015-06-29 Marek Polacek <polacek@redhat.com>
3398
3399 PR c/66322
3400 * c-common.c (check_case_bounds): Add bool * parameter. Set
3401 OUTSIDE_RANGE_P.
3402 (c_add_case_label): Add bool * parameter. Pass it down to
3403 check_case_bounds.
3404 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
3405 warning here.
3406 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
3407 declarations.
3408
31521951
MP
34092015-06-27 Marek Polacek <polacek@redhat.com>
3410
3411 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
3412 or VECTOR_INTEGER_TYPE_P throughout.
3413 * c-gimplify.c: Likewise.
3414
22d03525
MP
34152015-06-26 Marek Polacek <polacek@redhat.com>
3416
3417 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
3418 * c-common.c (c_fully_fold_internal): Likewise.
3419 (c_alignof_expr): Likewise.
3420 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
3421 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
b1726d6c 3422 * cilk.c (create_parm_list): Likewise.
22d03525 3423
af05e6e5
MP
34242015-06-26 Marek Polacek <polacek@redhat.com>
3425
3426 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
3427
f0889939
AM
34282015-06-25 Andrew MacLeod <amacleod@redhat.com>
3429
3430 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
3431 * c-gimplify.c: Likewise.
3432 * c-pragma.c: Likewise.
3433 * c-ubsan.c: Likewise.
3434 * cilk.c: Likewise.
3435
ca752f39
RS
34362015-06-25 Richard Sandiford <richard.sandiford@arm.com>
3437
3438 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
3439 ggc_hasher.
3440
16a16ec7
AM
34412015-06-25 Andrew MacLeod <amacleod@redhat.com>
3442
3443 * cilk.c: Move calls.h after tm.h in the include chain.
3444
0ae9bd27
MP
34452015-06-25 Marek Polacek <polacek@redhat.com>
3446
3447 * array-notation-common.c: Use VAR_P throughout.
3448 * c-ada-spec.c: Likewise.
3449 * c-common.c: Likewise.
3450 * c-format.c: Likewise.
3451 * c-gimplify.c: Likewise.
3452 * c-omp.c: Likewise.
3453 * c-pragma.c: Likewise.
3454 * c-pretty-print.c: Likewise.
3455 * cilk.c: Likewise.
3456
62f9079a
MP
34572015-06-25 Marek Polacek <polacek@redhat.com>
3458
3459 * cilk.c (extract_free_variables): Use is_global_var.
3460
0fa16060
RS
34612015-06-23 Richard Sandiford <richard.sandiford@arm.com>
3462
3463 * c-common.c: Don't include target-def.h.
3464
a68ae2e1
MP
34652015-06-23 Marek Polacek <polacek@redhat.com>
3466
3467 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
3468 when comparing INTEGER_CSTs.
3469
c6a2f2d9
PMR
34702015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
3471
3472 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
3473 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
3474 (dump_ada_template): Skip partially specialized types.
3475
6b4db501
MM
34762015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
3477
3478 * c-common.c (scalar_to_vector): Use std::swap instead of manually
3479 swapping.
3480
abb226c9
AM
34812015-06-17 Andrew MacLeod <amacleod@redhat.com>
3482
3483 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
3484 * c-ada-spec.c: Likewise.
3485 * c-cilkplus.c: Likewise.
3486 * c-common.c: Likewise.
3487 * c-common.h: Likewise.
3488 * c-cppbuiltin.c: Likewise.
3489 * c-dump.c: Likewise.
3490 * c-format.c: Likewise.
3491 * c-gimplify.c: Likewise.
3492 * c-indentation.c: Likewise.
3493 * c-lex.c: Likewise.
3494 * c-omp.c: Likewise.
3495 * c-opts.c: Likewise.
3496 * c-pch.c: Likewise.
3497 * c-ppoutput.c: Likewise.
3498 * c-pragma.c: Likewise.
3499 * c-pretty-print.c: Likewise.
3500 * c-semantics.c: Likewise.
3501 * c-ubsan.c: Likewise.
3502 * cilk.c: Likewise.
3503 * stub-objc.c: Likewise.
3504
076fecad
PP
35052015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
3506
3507 PR c++/65168
3508 * c-common.c (c_common_truthvalue_conversion): Warn when
3509 converting an address of a reference to a truth value.
3510
13fdf2e2
AM
35112015-06-08 Andrew MacLeod <amacleod@redhat.com>
3512
3513 * array-notation-common.c : Adjust include files.
3514 * c-ada-spec.c : Likewise.
3515 * c-cilkplus.c : Likewise.
3516 * c-common.c : Likewise.
3517 * c-common.h : Likewise.
3518 * c-cppbuiltin.c : Likewise.
3519 * c-dump.c : Likewise.
3520 * c-format.c : Likewise.
3521 * c-gimplify.c : Likewise.
3522 * c-indentation.c : Likewise.
3523 * c-lex.c : Likewise.
3524 * c-omp.c : Likewise.
3525 * c-opts.c : Likewise.
3526 * c-pch.c : Likewise.
3527 * c-ppoutput.c : Likewise.
3528 * c-pragma.c : Likewise.
3529 * c-pretty-print.c : Likewise.
3530 * c-semantics.c : Likewise.
3531 * c-ubsan.c : Likewise.
3532 * cilk.c : Likewise.
3533 * stub-objc.c : Likewise.
3534
a1661b90
MP
35352015-06-08 Marek Polacek <polacek@redhat.com>
3536
3537 PR c/66415
3538 * c-format.c (location_from_offset): Return LOC if LINE is null.
3539
d7438551
AH
35402015-06-05 Aldy Hernandez <aldyh@redhat.com>
3541
3542 * c-common.h (c_parse_final_cleanups): New prototype.
3543 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
3544
b3d5bc62
JJ
35452015-06-04 Sriraman Tallam <tmsriram@google.com>
3546
3547 * c-common.c (noplt): New attribute.
3548 (handle_noplt_attribute): New handler.
3549
ecb9f223
AM
35502015-06-04 Andrew MacLeod <amacleod@redhat.com>
3551
3552 * array-notation-common.c: Adjust includes for restructured coretypes.h.
3553 * c-ada-spec.c: Likewise.
3554 * c-cilkplus.c: Likewise.
3555 * c-common.c: Likewise.
3556 * c-common.h: Likewise.
3557 * c-cppbuiltin.c: Likewise.
3558 * c-dump.c: Likewise.
3559 * c-format.c: Likewise.
3560 * c-gimplify.c: Likewise.
3561 * c-indentation.c: Likewise.
3562 * c-lex.c: Likewise.
3563 * c-omp.c: Likewise.
3564 * c-opts.c: Likewise.
3565 * c-pch.c: Likewise.
3566 * c-ppoutput.c: Likewise.
3567 * c-pragma.c: Likewise.
3568 * c-pretty-print.c: Likewise.
3569 * c-semantics.c: Likewise.
3570 * c-ubsan.c: Likewise.
3571 * cilk.c: Likewise.
3572 * stub-objc.c: Likewise.
3573
6ac48155
DM
35742015-06-02 David Malcolm <dmalcolm@redhat.com>
3575
3576 PR c/66220:
3577 * c-indentation.c (should_warn_for_misleading_indentation): Use
3578 expand_location rather than expand_location_to_spelling_point.
3579 Don't warn if the guarding statement is more indented than the
3580 next/body stmts.
3581
773ce42e
DM
35822015-06-02 David Malcolm <dmalcolm@redhat.com>
3583
3584 * c-indentation.c (warn_for_misleading_indentation): Bail out
3585 immediately if -Wmisleading-indentation isn't enabled.
3586
4fef8379
ML
35872015-06-01 Martin Liska <mliska@suse.cz>
3588
3589 * c-format.c (check_format_arg):Use new type-based pool allocator.
3590 (check_format_info_main) Likewise.
3591
1edfb384
EB
35922015-05-31 Eric Botcazou <ebotcazou@adacore.com>
3593
3594 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
3595 (has_nontrivial_methods): Likewise.
3596
9677ef52
MP
35972015-05-25 Marek Polacek <polacek@redhat.com>
3598
3599 * c-ubsan.c (ubsan_instrument_shift): Use type0.
3600
fd5c817a
MP
36012015-05-22 Marek Polacek <polacek@redhat.com>
3602
3603 PR c/47043
3604 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
3605
a2f45fe6 36062015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
581edfa3
TS
3607
3608 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
3609 STACK_GROWS_DOWNWARD.
3610
a2f45fe6 36112015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
62f9f30b
TS
3612
3613 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
3614 STACK_GROWS_DOWNWARD rather than if it is defined.
3615
0fee2ac2 36162015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
b1726d6c 3617
0fee2ac2
MLI
3618 PR c/52952
3619 * c-format.c (location_column_from_byte_offset): New.
3620 (location_from_offset): New.
3621 (struct format_wanted_type): Add offset_loc field.
3622 (check_format_info): Move handling of location for extra arguments
3623 closer to the point of warning.
3624 (check_format_info_main): Pass the result of location_from_offset
3625 to warning_at.
3626 (format_type_warning): Pass the result of location_from_offset
3627 to warning_at.
3628
cf4ef6f7
MP
36292015-05-20 Marek Polacek <polacek@redhat.com>
3630
3631 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
3632
3a65ee74
MP
36332015-05-20 Marek Polacek <polacek@redhat.com>
3634
3635 * c-ada-spec.c (dump_sloc): Use DECL_P.
3636
21b634ae
MP
36372015-05-20 Marek Polacek <polacek@redhat.com>
3638
3639 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
3640 * c-common.c: Likewise.
3641
0e50b624
DM
36422015-05-19 David Malcolm <dmalcolm@redhat.com>
3643
3644 * c-common.h (fe_file_change): Strengthen param from
3645 const line_map * to const line_map_ordinary *.
3646 (pp_file_change): Likewise.
3647 * c-lex.c (fe_file_change): Likewise.
3648 (cb_define): Use linemap_check_ordinary when invoking
3649 SOURCE_LINE.
3650 (cb_undef): Likewise.
3651 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
3652 invoking cb_file_change.
3653 (c_finish_options): Likewise.
3654 (push_command_line_include): Likewise.
3655 (cb_file_change): Strengthen param "new_map" from
3656 const line_map * to const line_map_ordinary *.
3657 * c-ppoutput.c (cb_define): Likewise for local "map".
3658 (pp_file_change): Likewise for param "map" and local "from".
3659
fab27f52
MM
36602015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
3661
3662 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
3663
2fe1d762
TV
36642015-05-18 Tom de Vries <tom@codesourcery.com>
3665
3666 * c-common.c (build_va_arg_1): New function.
3667 (build_va_arg): Add address operator to va_list operand if necessary.
3668
7a37fa90
MM
36692015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
3670
3671 PR c/48956
3672 * c-common.c (int_safely_convertible_to_real_p): Define.
3673 (unsafe_conversion_p): Check conversions involving complex types.
3674 (conversion_warning): Add new warning message for conversions which
3675 discard imaginary component.
3676 * c-common.h: (enum conversion_safety): Add new enumerator for such
3677 conversions.
3678
3aa3c9fc
MP
36792015-05-14 Marek Polacek <polacek@redhat.com>
3680
3681 PR c/66066
3682 PR c/66127
3683 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
3684 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
3685 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
3686 use it. If FOR_INT_CONST, require that all evaluated operands be
3687 INTEGER_CSTs.
3688
c3388e62
DM
36892015-05-12 David Malcolm <dmalcolm@redhat.com>
3690
3691 * c-common.h (warn_for_misleading_indentation): New prototype.
3692 * c-indentation.c: New file.
3693 * c.opt (Wmisleading-indentation): New option.
3694
c7b38fd5
TV
36952015-05-12 Tom de Vries <tom@codesourcery.com>
3696
3697 PR tree-optimization/66010
3698 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
3699
381bf11e
JM
37002015-05-09 Jason Merrill <jason@redhat.com>
3701
edff0c06
JM
3702 * c-opts.c (c_common_post_options): Also clear
3703 cpp_opts->cpp_warn_cxx11_compat.
3704
129211bc
JM
3705 * c-common.h (enum cxx_dialect): Add cxx_unset.
3706 * c-common.c (cxx_dialect): Initialize to cxx_unset.
3707 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
3708
381bf11e
JM
3709 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
3710 (std=gnu++0x): Mark as Undocumented.
3711 (std=gnu++1y): Add deprecated message.
3712
fe191308
JM
37132015-05-08 Jason Merrill <jason@redhat.com>
3714
765189ff
JM
3715 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
3716 * c-opts.c: Adjust.
3717
fe191308
JM
3718 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
3719
755e528f
MP
37202015-05-08 Marek Polacek <polacek@redhat.com>
3721
3722 PR c/64918
3723 * c.opt (Woverride-init-side-effects): New option.
3724
0173bd2a
MP
37252015-05-07 Marek Polacek <polacek@redhat.com>
3726
3727 PR c/65179
3728 * c-common.c (c_fully_fold_internal): Warn when left shifting a
3729 negative value.
3730 * c.opt (Wshift-negative-value): New option.
3731 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
3732 when -Wextra and C99/C++11 mode.
3733
e0f0d3b9
MP
37342015-05-07 Marek Polacek <polacek@redhat.com>
3735 Martin Uecker <uecker@eecs.berkeley.edu>
3736
3737 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
3738 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
3739
8243e2a9
JM
37402015-05-05 Jason Merrill <jason@redhat.com>
3741
3742 * c.opt (Wterminate): New.
3743
577cd070
MP
37442015-04-30 Marek Polacek <polacek@redhat.com>
3745
3746 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
3747 require that the non-constant be of a boolean type.
3748
0373796b
JT
37492015-04-29 Josh Triplett <josh@joshtriplett.org>
3750
e0f0d3b9
MP
3751 * c-common.c (handle_section_attribute): Refactor to reduce
3752 nesting and distinguish between error cases.
0373796b 3753
716c0ba6
MP
37542015-04-29 Marek Polacek <polacek@redhat.com>
3755
3756 PR c/64610
3757 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
3758 with 0/1.
3759
8848828b
JJ
37602015-04-29 Jakub Jelinek <jakub@redhat.com>
3761
3762 * c-common.h (omp_clause_mask): Unconditionally define as a class.
3763 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
3764 HOST_BITS_PER_WIDE_INT.
3765
ecd0e562
TV
37662015-04-28 Tom de Vries <tom@codesourcery.com>
3767
3768 PR tree-optimization/65887
3769 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
3770
2a877204 37712015-04-28 Eric Botcazou <ebotcazou@adacore.com>
e0f0d3b9 3772 Pierre-Marie de Rodat <derodat@adacore.com>
2a877204
EB
3773
3774 * c-ada-spec.c (in_function): Delete.
3775 (dump_generic_ada_node): Do not change in_function and remove the
3776 redundant code dealing with it.
3777 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
3778 (print_ada_methods): Output the static member functions in a nested
3779 package after the regular methods as well as associated renamings.
3780
4853031e
MP
37812015-04-24 Marek Polacek <polacek@redhat.com>
3782
3783 PR c/65830
3784 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
3785 and OPT_Wshift_count_overflow.
3786
8c2b7f79
MP
3787 PR c/63357
3788 * c-common.c (warn_logical_operator): Warn if the operands have the
3789 same expressions.
3790
b8787813
MP
37912015-04-24 Marek Polacek <polacek@redhat.com>
3792
3793 PR c/61534
3794 * c-common.c (warn_logical_operator): Bail if either operand comes
3795 from a macro expansion.
3796
8fba1830
BRF
37972015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3798
3799 PR target/55143
3800 * c-common.c (c_default_pointer_mode): Add definition.
3801 * c-common.h (c_default_pointer_mode): Add declaration.
3802
17958621
JJ
38032015-03-11 Jakub Jelinek <jakub@redhat.com>
3804
3805 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
3806 on record_builtin_type argument.
3807
7ccb1a11
JJ
38082015-03-10 Jakub Jelinek <jakub@redhat.com>
3809
3810 PR c/65120
3811 * c-common.c (warn_logical_not_parentheses): Don't warn for
3812 !x == 0 or !x != 0.
3813
04fd785e
MP
38142015-03-07 Marek Polacek <polacek@redhat.com>
3815
3816 PR sanitizer/65280
3817 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
3818 before trying to figure out whether we have a flexible array member.
3819
a4e26206 38202015-03-06 Eric Botcazou <ebotcazou@adacore.com>
8e745a17 3821 Jonathan Wakely <jwakely.gcc@gmail.com>
a4e26206
EB
3822
3823 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
3824
0d2489f4
EB
38252015-03-05 Eric Botcazou <ebotcazou@adacore.com>
3826
3827 PR ada/65319
3828 * c-ada-spec.c (print_destructor): Remove obsolete code.
3829
83ed54d7
EB
38302015-03-01 Eric Botcazou <ebotcazou@adacore.com>
3831
3832 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
3833 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
3834 DECL_TEMPLATE_RESULT emulations.
3835 (dump_ada_template)): Add guard for TYPE_METHODS.
3836
7631f0e2
MP
38372015-02-27 Marek Polacek <polacek@redhat.com>
3838
3839 PR c/65040
3840 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
3841
d1783ae5
KT
38422015-02-27 Kai Tietz <ktietz@redhat.com>
3843
3844 PR c/35330
3845 * c-pragma.c (handle_pragma_weak): Do not try to create
3846 weak/alias of declarations not being function, or variable
3847 declarations.
3848
56a9f6bc
TS
38492015-02-24 Thomas Schwinge <thomas@codesourcery.com>
3850
3851 PR libgomp/64625
3852 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
3853 Remove macros.
3854 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
3855
3d5cb23d
MP
38562015-02-16 Marek Polacek <polacek@redhat.com>
3857
3858 PR c/65066
3859 * c-format.c (check_format_types): Handle null param.
3860
fa008882
MP
38612015-02-13 Marek Polacek <polacek@redhat.com>
3862
3863 PR c/65040
3864 * c-format.c (check_format_types): Don't warn about different
3865 signedness if the original value is in the range of WANTED_TYPE.
3866
785f21af
JM
38672015-02-12 Jason Merrill <jason@redhat.com>
3868
3869 PR c++/64956
3870 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
3871 to the current highest version.
3872 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
3873
4886ec8e
JJ
38742015-02-04 Jakub Jelinek <jakub@redhat.com>
3875
3876 PR c/64824
3877 PR c/64868
3878 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
3879 instead of RDIV_EXPR. Use build_binary_op instead of
3880 build2_loc.
3881
40fecdd6
JM
38822015-01-30 Joseph Myers <joseph@codesourcery.com>
3883
3884 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
3885 to pass input_location as first argument.
3886
a0c88d06
TV
38872015-01-23 Tom de Vries <tom@codesourcery.com>
3888
3889 PR libgomp/64672
3890 * c.opt (fopenacc): Mark as LTO option.
3891
1506ae0e
TV
38922015-01-23 Tom de Vries <tom@codesourcery.com>
3893
3894 PR libgomp/64707
3895 * c.opt (fopenmp): Mark as LTO option.
3896
31be63ab
JJ
38972015-01-21 Jakub Jelinek <jakub@redhat.com>
3898
3899 PR c/63307
b1726d6c 3900 * cilk.c (fill_decls_vec): Only put decls into vector v.
31be63ab
JJ
3901 (compare_decls): Fix up formatting.
3902
39032015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
3904
3905 PR c/63307
3906 * cilk.c: Include vec.h.
3907 (struct cilk_decls): New structure.
3908 (wrapper_parm_cb): Split this function to...
3909 (fill_decls_vec): ...this...
3910 (create_parm_list): ...and this.
3911 (compare_decls): New function.
3912 (for_local_cb): Remove.
3913 (wrapper_local_cb): Ditto.
3914 (build_wrapper_type): For now first traverse and fill vector of
3915 declarations then sort it and then deal with sorted vector.
3916 (cilk_outline): Ditto.
3917 (declare_one_free_variable): Ditto.
3918
6875457f
JM
39192015-01-21 Jason Merrill <jason@redhat.com>
3920
3921 PR c++/64629
3922 * c-format.c (check_format_arg): Call decl_constant_value.
3923
185c9e56
ML
39242015-01-19 Martin Liska <mliska@suse.cz>
3925
3926 * c-common.c (handle_noicf_attribute): New function.
3927
41dbbb37
TS
39282015-01-15 Thomas Schwinge <thomas@codesourcery.com>
3929 Bernd Schmidt <bernds@codesourcery.com>
3930 James Norris <jnorris@codesourcery.com>
3931 Cesar Philippidis <cesar@codesourcery.com>
3932 Ilmir Usmanov <i.usmanov@samsung.com>
3933 Jakub Jelinek <jakub@redhat.com>
3934
3935 * c.opt (fopenacc): New option.
3936 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
3937 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
3938 New macros.
3939 * c-common.h (c_finish_oacc_wait): New prototype.
3940 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
3941 (c_finish_oacc_wait): New function.
3942 * c-pragma.c (oacc_pragmas): New variable.
3943 (c_pp_lookup_pragma, init_pragma): Handle it.
3944 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
3945 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
3946 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
3947 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
3948 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
3949 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
3950 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
3951 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
3952 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
3953 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
3954 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
3955 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
3956 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
3957 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
3958 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
3959 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
3960 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
3961 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
3962 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
3963 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
3964 PRAGMA_OACC_CLAUSE_WORKER.
3965
3f8257db 39662015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
5434dc07
MD
3967
3968 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
3969 for the new option fstack-protector_explicit.
3970 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
3971 (handle_stack_protect_attribute): New function.
3972
3f8257db 39732015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
de1b5c17
MU
3974
3975 * c.opt: New option -Warray-bounds=.
3976
adfac8df
JJ
39772015-01-09 Michael Collison <michael.collison@linaro.org>
3978
3979 * array-notation-common.c: Include hash-set.h, machmode.h,
3980 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
3981 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
3982 * c-ada-spec.c: Ditto.
3983 * c-cilkplus.c: Ditto.
3984 * c-common.c: Include input.h due to flattening of tree.h.
3985 Define macro GCC_C_COMMON_C.
3986 * c-common.h: Flatten tree.h header files into c-common.h.
3987 Remove include of tree-core.h.
3988 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
3989 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
3990 fold-const.h, wide-int.h, and inchash.h due to
3991 flattening of tree.h.
3992 * c-dump.c: Ditto.
3993 * c-format.c: Flatten tree.h header files into c-common.h.
3994 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
3995 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
3996 fold-const.h, wide-int.h, and inchash.h due to
3997 flattening of tree.h.
3998 * c-dump.c: Include hash-set.h, machmode.h,
3999 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4000 fold-const.h, wide-int.h, and inchash.h due to
4001 flattening of tree.h.
4002 * c-format.c: Include hash-set.h, machmode.h,
4003 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4004 fold-const.h, wide-int.h, inchash.h and real.h due to
4005 flattening of tree.h.
4006 * c-gimplify.c: Include hash-set.h, machmode.h,
4007 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4008 fold-const.h, wide-int.h, and inchash.h due to
4009 flattening of tree.h.
4010 * cilk.c: Ditto.
4011 * c-lex.c: Ditto.
4012 * c-omp.c: Ditto.
4013 * c-opts.c: Ditto.
4014 * c-pch.c: Ditto.
4015 * c-ppoutput.c: Ditto.
4016 * c-pragma.c: Ditto.
4017 * c-pretty-print.c: Ditto.
4018 * c-semantics.c: Ditto.
4019 * c-ubsan.c: Ditto.
4020 * stub-objc.c: Ditto.
4021
f5481fc4
JM
40222015-01-08 Jason Merrill <jason@redhat.com>
4023
4024 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
4025 do_ubsan_in_current_function.
4026 (ubsan_maybe_instrument_reference_or_call): Likewise.
4027 * c-ubsan.h: Declare it.
4028
de35aa66
MS
40292015-01-08 Mike Stump <mikestump@comcast.net>
4030
4031 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
4032
4a9a42ab
MP
40332015-01-07 Marek Polacek <polacek@redhat.com>
4034
4035 PR c/64440
4036 * c-common.c (c_fully_fold_internal): Warn for division and modulo
4037 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
4038
2f42e5de
TS
40392015-01-05 Trevor Saunders <tsaunders@mozilla.com>
4040
4041 PR c++/31397
4042 * c.opt (Wsuggest-override): New option.
4043
5624e564
JJ
40442015-01-05 Jakub Jelinek <jakub@redhat.com>
4045
4046 Update copyright years.
4047
5bd012f8
MP
40482015-01-05 Marek Polacek <polacek@redhat.com>
4049
4050 PR c/64423
4051 * c-common.c (warn_array_subscript_with_type_char): Add location_t
4052 parameter. Use it.
4053 * c-common.h (warn_array_subscript_with_type_char): Update
4054 declaration.
4055
a7fa8d18
ESR
40562014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
4057
4058 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
4059 Control macro with flag_sized_deallocation.
4060
3f8257db 40612014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
768952be
MU
4062
4063 * c.opt (Wdiscarded-array-qualifiers): New option.
4064
1f8d3e84
JJ
40652014-12-19 Jakub Jelinek <jakub@redhat.com>
4066
4067 PR preprocessor/63831
4068 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
4069 and __has_cpp_attribute here.
4070 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
4071 c_common_has_attribute.
4072 * c-common.h (c_common_has_attribute): New prototype.
4073 * c-lex.c (init_c_lex): Set cb->has_attribute to
4074 c_common_has_attribute instead of cb_has_attribute.
4075 (get_token_no_padding): New function.
4076 (cb_has_attribute): Renamed to ...
4077 (c_common_has_attribute): ... this. No longer static. Use
4078 get_token_no_padding, require ()s, don't build TREE_LIST
4079 unnecessarily, fix up formatting, adjust diagnostics, call
4080 init_attributes.
4081
20b06add
JM
40822014-12-15 Jason Merrill <jason@redhat.com>
4083
4084 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
4085 (-Wsized-deallocation): New.
4086 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
4087 to on in C++14 and up.
4088
94a073b2
JM
40892014-12-11 Jason Merrill <jason@redhat.com>
4090
acaa5911
JM
4091 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
4092
94a073b2
JM
4093 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
4094 we aren't complaining about VLAs.
4095
7fb66c15
MP
40962014-12-06 Marek Polacek <polacek@redhat.com>
4097
4098 PR tree-optimization/64183
4099 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
4100 shift-expression if it is integer_type_node. Use types_compatible_p.
4101
b731b390
JJ
41022014-11-29 Jakub Jelinek <jakub@redhat.com>
4103
4104 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
4105 last argument from create_tmp_var_raw and create_tmp_var calls.
4106 * cilk.c (gimplify_cilk_spawn): Likewise.
4107 * c-omp.c (c_finish_omp_atomic): Likewise.
4108
6a4da643
MP
41092014-11-28 Marek Polacek <polacek@redhat.com>
4110
4111 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
4112 instead of unsigned_type_node.
4113
541e35a6
MP
41142014-11-28 Marek Polacek <polacek@redhat.com>
4115
4116 PR c/63862
4117 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
4118 to op1_utype.
4119 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
4120 expression to unsigned_type_node.
4121
dcc97066
MW
41222014-11-20 Mark Wielaard <mjw@redhat.com>
4123
4124 PR debug/38757
4125 * c-opts.c (set_std_c89): Set lang_hooks.name.
4126 (set_std_c99): Likewise.
4127 (set_std_c11): Likewise.
4128 (set_std_cxx98): Likewise.
4129 (set_std_cxx11): Likewise.
4130 (set_std_cxx14): Likewise.
4131 (set_std_cxx1z): Likewise.
4132
aa7da51a
JJ
41332014-11-21 Jakub Jelinek <jakub@redhat.com>
4134
4135 PR target/63764
4136 * c-common.h (convert_vector_to_pointer_for_subscript): Change
4137 return type to bool.
009a3480 4138 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
4139 (convert_vector_to_pointer_for_subscript): Change return type to
4140 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
4141 and copy it into a TARGET_EXPR and use that instead of *vecp
4142 directly.
4143
538dd0b7
DM
41442014-11-19 David Malcolm <dmalcolm@redhat.com>
4145
4146 Merger of git branch "gimple-classes-v2-option-3".
4147 * ChangeLog.gimple-classes: New.
4148 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
4149 from being just a vec<gimple> to a vec<gbind *>.
4150
c39a5e99
JJ
41512014-11-18 Jakub Jelinek <jakub@redhat.com>
4152
4153 PR sanitizer/63813
4154 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
4155 argument to ptype, set type to TREE_TYPE (ptype). Don't call
4156 get_pointer_alignment for non-pointers. Use ptype, or if it is
4157 reference type, corresponding pointer type, as type of kind
4158 argument.
4159 (ubsan_maybe_instrument_reference,
4160 ubsan_maybe_instrument_member_call): Adjust callers.
4161
8537a4a9
MP
41622014-11-15 Marek Polacek <polacek@redhat.com>
4163
4164 PR middle-end/63884
4165 * array-notation-common.c (is_sec_implicit_index_fn): Return false
4166 for NULL fndecl.
4167 (extract_array_notation_exprs): Return for NULL node.
4168
2079956a
JM
41692014-11-12 Joseph Myers <joseph@codesourcery.com>
4170
4171 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
4172 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
4173
1304953e
JJ
41742014-11-12 Jakub Jelinek <jakub@redhat.com>
4175
4176 PR c/59708
4177 * c-common.c (check_builtin_function_arguments): Handle
4178 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
4179
e5e44252
AK
41802014-11-10 Andi Kleen <ak@linux.intel.com>
4181
4182 PR c/60804
4183 * c-common.h (check_no_cilk): Declare.
4184 * cilk.c (get_error_location): New function.
4185 (check_no_cilk): Dito.
4186
e64b984d
AK
41872014-11-10 Andi Kleen <ak@linux.intel.com>
4188
4189 * cilk.c (recognize_spawn): Use expression location
4190 for error message.
4191
13c21655
PC
41922014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
4193
4194 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
4195
42fd12b1
ESR
41962014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
4197
4198 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
4199 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
4200 (__cpp_range_based_for, __cpp_initializer_lists,
4201 __cpp_delegating_constructors, __cpp_nsdmi,
4202 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
4203 for C++11; (__cpp_attribute_deprecated): Remove in favor of
4204 __has_cpp_attribute.
4205 * c-lex.c (cb_has_attribute): New callback CPP function;
4206 (init_c_lex): Set has_attribute callback.
4207
6f450181
RB
42082014-11-04 Richard Biener <rguenther@suse.de>
4209
4210 * c-common.c (shorten_compare): Do not shorten mixed
4211 DFP and non-DFP compares.
4212
26f0e1d6
ESR
42132014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
4214
4215 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
4216 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
4217 Commentary and rearrangement of tests.
4218 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
4219 Commentary and rearrangement of tests.
4220 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
4221 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
4222
ef4bddc2
RS
42232014-10-29 Richard Sandiford <richard.sandiford@arm.com>
4224
4225 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
4226 enum from machine_mode.
4227
c582198b
AM
42282014-10-28 Andrew MacLeod <amacleod@redhat.com>
4229
adfac8df
JJ
4230 * c-common.c: Adjust include files.
4231 * c-gimplify.c: Ditto.
4232 * cilk.c: Ditto.
4233 * c-pragma.c: Ditto.
4234 * c-ubsan.c: Ditto.
c582198b 4235
60393bbc
AM
42362014-10-27 Andrew MacLeod <amacleod@redhat.com>
4237
4238 * c-gimplify.c: Adjust include files.
4239
d723bb7c
MLI
42402014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
4241
4242 PR c++/53061
4243 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
4244 c_common_initialize_diagnostics.
4245 * c-common.h: Likewise.
4246
90f3520e
MP
42472014-10-24 Marek Polacek <polacek@redhat.com>
4248
4249 PR c/56980
4250 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
4251 print "struct"/"union"/"enum" for typedefed names.
4252
59d7607a
MP
42532014-10-23 Marek Polacek <polacek@redhat.com>
4254
4255 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
4256 in unsigned type.
4257
d95a2703
JJ
42582014-10-22 Jakub Jelinek <jakub@redhat.com>
4259 Yury Gribov <y.gribov@samsung.com>
4260
4261 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
4262 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
4263 instead of flag_sanitize_recover as bool flag.
4264
8e6ef852
KY
42652014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
4266
4267 * cilk.c: Revert previous change.
4268
948cf550
IZ
42692014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
4270
4271 PR c/63307
4272 * cilk.c: Include vec.h.
4273 (struct cilk_decls): New structure.
4274 (wrapper_parm_cb): Split this function to...
4275 (fill_decls_vec): ...this...
4276 (create_parm_list): ...and this.
4277 (compare_decls): New function.
4278 (for_local_cb): Remove.
4279 (wrapper_local_cb): Ditto.
4280 (build_wrapper_type): For now first traverse and fill vector of
4281 declarations then sort it and then deal with sorted vector.
4282 (cilk_outline): Ditto.
4283 (declare_one_free_variable): Ditto.
4284
92574c7c
MP
42852014-10-17 Marek Polacek <polacek@redhat.com>
4286
4287 * c-opts.c (c_common_post_options): Set warn_implicit_int.
4288 * c.opt (Wimplicit-int): Initialize to -1.
4289
83685514
AM
42902014-10-16 Andrew MacLeod <amacleod@redhat.com>
4291
4292 * c-pragma.c: Adjust include files.
4293 * c-semantics.c: Likewise.
4294
5b8300ea
DD
42952014-10-16 DJ Delorie <dj@redhat.com>
4296
4297 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
4298 multiples of bytes.
4299
5f83e90b
JM
43002014-10-14 Jason Merrill <jason@redhat.com>
4301
4302 PR c++/63455
4303 * c-common.h (CPP_PREPARSED_EXPR): New.
4304 (N_CP_TTYPES): Adjust.
4305
d73326ca
MP
43062014-10-15 Marek Polacek <polacek@redhat.com>
4307
4308 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
4309
78a7c317
DD
43102014-10-14 DJ Delorie <dj@redhat.com>
4311
4312 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
4313 types, not just __int128.
4314 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
4315 types, not just __int128.
4316 (cpp_atomic_builtins): Round pointer sizes up.
4317 (type_suffix): Use type precision, not specific types.
4318 * c-common.c (c_common_reswords): Remove __int128 special case.
4319 (c_common_type_for_size): Check for all __intN types, not just
4320 __int128.
4321 (c_common_type_for_mode): Likewise.
4322 (c_common_signed_or_unsigned_type): Likewise.
4323 (c_build_bitfield_integer_type): Likewise.
4324 (c_common_nodes_and_builtins): Likewise.
4325 (keyword_begins_type_specifier): Likewise.
4326 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
4327 __intN variants.
4328
2a22f99c
TS
43292014-10-12 Trevor Saunders <tsaunders@mozilla.com>
4330
4331 * c-common.c: Use hash_table instead of hashtab.
4332
2a8ef767
ESR
43332014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
4334
adfac8df 4335 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
4336 C++11 section.
4337
3c9aabbd
MG
43382014-10-03 Marc Glisse <marc.glisse@inria.fr>
4339
4340 PR c++/54427
4341 PR c++/57198
4342 PR c++/58845
4343 * c-common.c (warn_logical_operator): Punt for vectors.
4344
a15f7cb8
ESR
43452014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
4346
4347 Implement SD-6: SG10 Feature Test Recommendations
4348 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
4349 macros and the __has_header macro.
4350
8d0cf15e
JM
43512014-09-30 Jason Merrill <jason@redhat.com>
4352
dd5d5481
JM
4353 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
4354 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
4355 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
4356
b752325e
JM
4357 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
4358 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
4359
8d0cf15e
JM
4360 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
4361 * c-common.c (c_common_reswords): Remove __is_convertible_to.
4362
083e891e
MP
43632014-09-24 Marek Polacek <polacek@redhat.com>
4364
4365 PR c/61405
4366 PR c/53874
4367 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
4368
7861b648
AK
43692014-09-23 Andi Kleen <ak@linux.intel.com>
4370
4371 * c-common.c (handle_no_reorder_attribute): New function.
4372 (c_common_attribute_table): Add no_reorder attribute.
4373
9a79452d
JM
43742014-09-22 Joseph Myers <joseph@codesourcery.com>
4375
4376 * c-cppbuiltin.c (c_cpp_builtins): Define
4377 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
4378 modes.
4379
dd69f047
JM
43802014-09-18 Joseph Myers <joseph@codesourcery.com>
4381
4382 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
4383 for supported floating-point modes.
4384
737a4826
MLI
43852014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
4386
4387 * c.opt (Wpsabi): Use LangEnabledBy.
4388 * c-opts.c (c_common_handle_option): Do not handle here.
4389
8cc4b7a2
JM
43902014-09-12 Joseph Myers <joseph@codesourcery.com>
4391
4392 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
4393 macros for floating-point modes.
4394
179b5a55
MG
43952014-09-11 Marc Glisse <marc.glisse@inria.fr>
4396
4397 PR target/58757
4398 * c-cppbuiltin.c (builtin_define_float_constants): Correct
4399 __*_DENORM_MIN__ without denormals.
4400
570a11fe
JJ
44012014-09-10 Jakub Jelinek <jakub@redhat.com>
4402
4403 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
4404 ubsan_instrument_vla, ubsan_instrument_return): Adjust
4405 ubsan_create_data callers.
4406 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
4407 index is constant or BIT_AND_EXPR with constant mask and is
4408 small enough for the bound.
4409 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
4410 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
4411
b559c810
MLI
44122014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4413
4414 * c.opt: Add CppReason to various flags.
4415 (Wdate-time): Re-sort.
4416 * c-common.c: Include c-common.h earlier.
4417 (struct reason_option_codes_t): Delete.
4418 (c_option_controlling_cpp_error): Prefix global type and struct
4419 with cpp_.
4420
1ef33fd4
MLI
44212014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4422
4423 * c.opt (Wnormalized): New.
4424 (Wnormalized=): Use Enum and Reject Negative.
4425 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
4426
66bb34c0
JM
44272014-09-08 Joseph Myers <joseph@codesourcery.com>
4428
4429 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
4430 digits of floating-point modes if -fbuilding-libgcc.
4431
53d68b9f
JM
44322014-09-05 Joseph Myers <joseph@codesourcery.com>
4433
4434 * c-cppbuiltin.c (c_cpp_builtins): Also define
4435 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
4436 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
4437 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
4438 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
4439 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
4440 __LIBGCC_STACK_GROWS_DOWNWARD__,
4441 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
4442 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
4443 __LIBGCC_DWARF_FRAME_REGISTERS__,
4444 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
4445 __LIBGCC_STACK_POINTER_REGNUM__ and
4446 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
4447 (builtin_define_with_value): Handle backslash-escaping in string
4448 macro values.
4449
f65586dc
RB
44502014-09-05 Richard Biener <rguenther@suse.de>
4451
4452 PR middle-end/63148
4453 * c-format.c (check_format_arg): Properly handle
4454 effectively signed POINTER_PLUS_EXPR offset.
4455
2b71f4a4
MLI
44562014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
4457
4458 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
4459 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
4460 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
4461 and Init.
4462 * c-opts.c (c_common_handle_option): Do not handle here.
4463 (sanitize_cpp_opts): Likewise.
4464 * c-common.c (struct reason_option_codes_t): Handle
4465 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
4466
d2e4feca
MP
44672014-09-03 Marek Polacek <polacek@redhat.com>
4468
4469 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
4470
9a771876
JJ
44712014-09-02 Jakub Jelinek <jakub@redhat.com>
4472 Balaji V. Iyer <balaji.v.iyer@intel.com>
4473 Igor Zamyatin <igor.zamyatin@intel.com>
4474
4475 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
4476 * c-common.c (c_common_reswords): Added _Cilk_for.
4477 * c-common.h (enum rid): Added RID_CILK_FOR.
4478 (cilk_for_number_of_iterations): Add declaration.
4479 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
4480 CILK_FOR.
4481 * c-pragma.c (init_pragma): Register "grainsize" pragma.
4482 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
4483
81b5d104
MLI
44842014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
4485
4486 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
4487 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
4488 Wundef): Use CPP, Var and Init.
4489 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
4490
b753b37b
MLI
44912014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
4492
4493 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
4494 * c-opts.c (c_common_handle_option): Do not handle here.
4495
028aee17
JM
44962014-08-25 Jason Merrill <jason@redhat.com>
4497
4498 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
4499 -std=c++14 and -std=gnu++14, rather than the reverse.
4500 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
4501 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
4502 * c-common.h (cxx_dialect): Remove cxx1y.
4503
e4276ba5
ESR
45042014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
4505
4506 * c-common.h (enum cxx_dialect): Add cxx14.
4507 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
4508 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
4509 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
4510
a545cacd
JM
45112014-08-22 Jason Merrill <jason@redhat.com>
4512
4513 * c.opt (std=gnu++17): Fix alias.
4514
59ea0364
MP
45152014-08-22 Marek Polacek <polacek@redhat.com>
4516
4517 PR c++/62199
4518 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
4519 check for vector types. Drop LHS argument.
4520 * c-common.h (warn_logical_not_parentheses): Adjust.
4521
596e808c
MLI
45222014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
4523
4524 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
4525 (Wmultichar): Likewise.
4526 (Wdate-time): Use C-family languages instead of Common. Use CPP
4527 and Var.
4528 * c-opts.c (c_common_handle_option): Do not handle the above
4529 options here.
4530 (sanitize_cpp_opts): Likewise.
4531
18767f65
MLI
45322014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4533
4534 PR fortran/44054
4535 * c-opts.c: Include tree-diagnostics.h.
4536 (c_diagnostic_finalizer): New.
4537 (c_common_initialize_diagnostics): Use it.
4538
b4413594
MLI
45392014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4540
4541 PR preprocessor/51303
4542 * c-common.c (struct reason_option_codes_t option_codes):
4543 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
4544
43f9a13c
MLI
45452014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4546
4547 PR c/60975
4548 PR c/53063
4549 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
4550 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
4551 (c_common_post_options): Call init_global_opts_from_cpp.
4552 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
4553
04159acf
MP
45542014-08-19 Marek Polacek <polacek@redhat.com>
4555
4556 PR c++/62153
4557 * c-common.c (maybe_warn_bool_compare): New function.
4558 * c-common.h (maybe_warn_bool_compare): Declare.
4559 * c.opt (Wbool-compare): New option.
4560
35aff4fb
MP
45612014-08-19 Marek Polacek <polacek@redhat.com>
4562
4563 * c.opt (Wc99-c11-compat): New option.
4564
177cce46
MP
45652014-08-19 Marek Polacek <polacek@redhat.com>
4566
4567 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
4568 to warn_c90_c99_compat.
4569 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
4570 to -1.
4571
6ae9194f
MLI
45722014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
4573 Steven Bosscher <steven@gcc.gnu.org>
4574
4575 PR c/52952
4576 * c-format.c: Add extra_arg_loc and format_string_loc to struct
4577 format_check_results.
4578 (check_function_format): Use true and add comment for boolean
4579 argument.
4580 (finish_dollar_format_checking): Use explicit location when warning.
4581 (check_format_info): Likewise.
4582 (check_format_arg): Set extra_arg_loc and format_string_loc.
4583 (check_format_info_main): Use explicit location when warning.
4584 (check_format_types): Pass explicit location.
4585 (format_type_warning): Likewise.
4586
8e54f6d3
MLI
45872014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
4588
4589 PR fortran/44054
4590 * c-format.c: Handle Fortran flags.
4591
cd4e76fc
IZ
45922014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
4593
4594 PR other/61962
4595 * array-notation-common.c (find_rank): Added handling for other
4596 types of references.
4597
f3bede71
MP
45982014-08-10 Marek Polacek <polacek@redhat.com>
4599
4600 PR c/51849
4601 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
4602 * c.opt (Wc90-c99-compat): Add option.
4603
9f25a338
TS
46042014-08-07 Trevor Saunders <tsaunders@mozilla.com>
4605
4606 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
4607
62e4eb35
MP
46082014-08-03 Marek Polacek <polacek@redhat.com>
4609
4610 * c-common.c (check_case_value): Add location_t parameter. Use it.
4611 (c_add_case_label): Pass loc to check_case_value.
4612
b787e7a2
TS
46132014-08-02 Trevor Saunders <tsaunders@mozilla.com>
4614
4615 * cilk.c: Use hash_map instead of pointer_map.
4616
6e2830c3
TS
46172014-08-02 Trevor Saunders <tsaunders@mozilla.com>
4618
4619 * c-gimplify.c: Use hash_set instead of pointer_set.
4620
a7ee52fb
IZ
46212014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
4622
4623 PR middle-end/61455
4624 * array-notation-common.c (extract_array_notation_exprs): Handling
4625 of DECL_EXPR added.
4626
944fa280
JJ
46272014-08-01 Jakub Jelinek <jakub@redhat.com>
4628
4629 * c-common.h (min_align_of_type): Removed prototype.
4630 * c-common.c (min_align_of_type): Removed.
4631 * c-ubsan.h (ubsan_maybe_instrument_reference,
4632 ubsan_maybe_instrument_member_call): New prototypes.
4633 * c-ubsan.c: Include stor-layout.h and builtins.h.
4634 (ubsan_maybe_instrument_reference_or_call,
4635 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
4636 functions.
4637
b4dfdc11
MG
46382014-07-31 Marc Glisse <marc.glisse@inria.fr>
4639
4640 PR c++/60517
4641 * c.opt (-Wreturn-local-addr): Move to common.opt.
4642
a41844e5
JM
46432014-07-30 Jason Merrill <jason@redhat.com>
4644
4645 PR c++/61659
4646 PR c++/61687
4647 Revert:
4648 * c.opt (-fuse-all-virtuals): New.
4649
976d5a22
TT
46502014-07-30 Tom Tromey <tromey@redhat.com>
4651
4652 PR c/59855
4653 * c.opt (Wdesignated-init): New option.
4654 * c-common.c (c_common_attribute_table): Add "designated_init".
4655 (handle_designated_init): New function.
4656
cdc94aca
MP
46572014-07-24 Marek Polacek <polacek@redhat.com>
4658
4659 PR c/57653
4660 * c-opts.c (c_finish_options): If -imacros is in effect, return.
4661
f41373b6
DS
46622014-07-16 Dodji Seketeli <dodji@redhat.com>
4663
4664 PR preprocessor/60723 - missing system-ness marks for macro tokens
4665 * c-ppoutput.c (struct print::prev_was_system_token): New data
4666 member.
4667 (init_pp_output): Initialize it.
4668 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
4669 (do_line_change): Return a flag saying if a line marker was
4670 emitted or not.
4671 (scan_translation_unit): Detect if the system-ness of the token we
4672 are about to emit is different from the one of the previously
4673 emitted token. If so, emit a line marker. Avoid emitting useless
4674 adjacent line markers. Avoid emitting line markers for tokens
4675 originating from the expansion of built-in macros.
4676 (scan_translation_unit_directives_only): Adjust.
4677
4d661eaa
MP
46782014-07-15 Marek Polacek <polacek@redhat.com>
4679
4680 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
4681 TYPE_MAX_VALUE is NULL.
4682
b108f48f
JJ
46832014-07-14 Jakub Jelinek <jakub@redhat.com>
4684
4685 PR middle-end/61294
4686 * c.opt (Wmemset-transposed-args): New warning.
4687
c0221884
JM
46882014-07-10 Jason Merrill <jason@redhat.com>
4689
4690 PR c++/61659
4691 PR c++/61687
4692 * c.opt (-fuse-all-virtuals): New.
4693
63dfbb95
RB
46942014-07-09 Richard Biener <rguenther@suse.de>
4695
4696 PR c-family/61741
4697 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
4698 using unsigned arithmetic if overflow does not wrap instead of
4699 if overflow is undefined.
4700
773ec47f
MP
47012014-07-06 Marek Polacek <polacek@redhat.com>
4702
4703 PR c/6940
4704 * c.opt (Wsizeof-array-argument): New option.
4705
00a7ba58
JJ
47062014-07-03 Jakub Jelinek <jakub@redhat.com>
4707
b1726d6c 4708 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
00a7ba58
JJ
4709 comments->count <= 1, as comments->entries might be NULL.
4710
52ec0ea3
MP
47112014-07-01 Marek Polacek <polacek@redhat.com>
4712
4713 * c.opt (Wint-conversion): New option.
4714
d5c3d343
MP
47152014-07-01 Marek Polacek <polacek@redhat.com>
4716
4717 PR c/58286
4718 * c.opt (Wincompatible-pointer-types): New option.
4719
6e7ceb17
PC
47202014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
4721
4722 PR c++/51400
4723 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
4724 Do not discard TYPE_QUALS of type.
4725
da73100b
JM
47262014-06-26 Jason Merrill <jason@redhat.com>
4727
4728 * c-common.h (enum cxx_dialect): Add cxx1z.
4729 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
4730 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
4731
08eedf75
TJ
47322014-06-26 Teresa Johnson <tejohnson@google.com>
4733
4734 * c-common.h (get_dump_info): Declare.
4735 * c-gimplify.c (c_genericize): Use saved dump files.
4736 * c-opts.c (c_common_parse_file): Begin and end dumps
4737 once around parsing invocation.
4738 (get_dump_info): New function.
4739
7b56b2f8
MP
47402014-06-23 Marek Polacek <polacek@redhat.com>
4741 Andrew MacLeod <amacleod@redhat.com>
4742
4743 PR c/61553
4744 * c-common.c (get_atomic_generic_size): Don't segfault if the
4745 type doesn't have a size.
4746
0e37a2f3
MP
47472014-06-20 Marek Polacek <polacek@redhat.com>
4748
4749 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
4750 (ubsan_walk_array_refs_r): New function.
4751 (c_genericize): Instrument array bounds.
4752 * c-ubsan.c: Include "internal-fn.h".
4753 (ubsan_instrument_division): Mark instrumented arrays as having
4754 side effects. Adjust ubsan_type_descriptor call.
4755 (ubsan_instrument_shift): Likewise.
4756 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
4757 (ubsan_instrument_bounds): New function.
4758 (ubsan_array_ref_instrumented_p): New function.
4759 (ubsan_maybe_instrument_array_ref): New function.
4760 * c-ubsan.h (ubsan_instrument_bounds): Declare.
4761 (ubsan_array_ref_instrumented_p): Declare.
4762 (ubsan_maybe_instrument_array_ref): Declare.
4763
47642014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
4765
4766 PR lto/61123
4767 * c.opt (fshort-enums): Add to LTO.
4768 * c.opt (fshort-wchar): Likewise.
4769
5c3d09f7
MP
47702014-06-16 Marek Polacek <polacek@redhat.com>
4771
4772 PR c/60439
4773 * c.opt (Wswitch-bool): Add Var.
4774
9cf32741
JJ
47752014-06-12 Jakub Jelinek <jakub@redhat.com>
4776
4777 PR middle-end/61486
4778 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
4779 #pragma omp target teams or
4780 #pragma omp {,target }teams distribute simd.
4781
62984918
JM
47822014-06-12 Jason Merrill <jason@redhat.com>
4783
4784 * c.opt (Wabi=, fabi-compat-version): New.
4785 * c-opts.c (c_common_handle_option): Handle -Wabi=.
4786 (c_common_post_options): Handle flag_abi_compat_version default.
4787 Disallow -fabi-compat-version=1.
4788 * c-common.h (abi_version_crosses): New.
4789
f961457f
JH
47902014-06-11 Jan Hubicka <hubicka@ucw.cz>
4791
adfac8df 4792 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
4793 section names that are no longer trees.
4794
92d28cbb
JJ
47952014-06-10 Jakub Jelinek <jakub@redhat.com>
4796
4797 PR fortran/60928
4798 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
4799 (omp_pragmas): ... back here.
4800
742938c9
MP
48012014-06-05 Marek Polacek <polacek@redhat.com>
4802
4803 PR c/49706
4804 * c-common.c (warn_logical_not_parentheses): New function.
4805 * c-common.h (warn_logical_not_parentheses): Declare.
4806 * c.opt (Wlogical-not-parentheses): New option.
4807
9d548dfb
MP
48082014-06-04 Marek Polacek <polacek@redhat.com>
4809
4810 PR c/30020
4811 * c-common.c (check_case_bounds): Add location parameter.
4812 Use it.
4813 (c_add_case_label): Pass loc to check_case_bounds.
4814
fedfecef
MP
48152014-06-03 Marek Polacek <polacek@redhat.com>
4816
4817 PR c/60439
4818 * c.opt (Wswitch-bool): New option.
4819
f6a7cffc
TS
48202014-05-22 Thomas Schwinge <thomas@codesourcery.com>
4821
040d18b6
TS
4822 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
4823 Remove prototypes.
4824 (record_types_used_by_current_var_decl): Move prototype to where
4825 it belongs.
4826
f6a7cffc
TS
4827 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
4828 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
4829 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
4830
632f2871
RS
48312014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
4832
4833 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
4834 * c-common.c (c_common_nodes_and_builtins): Don't initialize
4835 void_zero_node.
4836 * c-pretty-print.c (pp_c_void_constant): New function.
4837 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
4838 (c_pretty_printer::expression): Handle VOID_CST.
4839 * cilk.c (extract_free_variables): Likewise.
4840 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
4841 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
4842
766090c2
TS
48432014-05-17 Trevor Saunders <tsaunders@mozilla.com>
4844
4845 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
4846 * c-pragma.c (push_alignment): Adjust.
4847 (handle_pragma_push_options): Likewise.
4848
661a0813
MP
48492014-05-09 Marek Polacek <polacek@redhat.com>
4850
4851 PR c/50459
4852 * c-common.c (check_user_alignment): Return -1 if alignment is error
4853 node.
4854 (handle_aligned_attribute): Don't call default_conversion on
4855 FUNCTION_DECLs.
4856 (handle_vector_size_attribute): Likewise.
4857 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
4858 (handle_sentinel_attribute): Call default_conversion and allow even
4859 integral types as an argument.
4860
2793eeab
MP
48612014-05-08 Marek Polacek <polacek@redhat.com>
4862
4863 PR c/61053
4864 * c-common.c (min_align_of_type): New function factored out from...
4865 (c_sizeof_or_alignof_type): ...here.
4866 * c-common.h (min_align_of_type): Declare.
4867
f827930a
MP
48682014-05-08 Marek Polacek <polacek@redhat.com>
4869
4870 PR c/61077
4871 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
4872 parameter type of main.
4873
ca49b74e
DD
48742014-05-07 DJ Delorie <dj@redhat.com>
4875
4876 * c-cppbuiltin.c (print_bits_of_hex): New.
4877 (builtin_define_type_minmax): Print values using hex so as not to
4878 require a pre-computed list of string values.
4879
1d60af08
KZ
48802014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
4881 Mike Stump <mikestump@comcast.net>
4882 Richard Sandiford <rdsandiford@googlemail.com>
4883
4884 * c-ada-spec.c: Include wide-int.h.
4885 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
4886 (dump_generic_ada_node): Use wide-int interfaces.
4887 * c-common.c: Include wide-int-print.h.
4888 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
4889 (pointer_int_sum): Use wide-int interfaces.
4890 (c_common_nodes_and_builtins): Use make_int_cst.
4891 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
4892 (handle_alloc_size_attribute): Use wide-int interfaces.
4893 (get_nonnull_operand): Likewise.
4894 * c-format.c (get_constant): Use tree_fits_uhwi_p.
4895 * c-lex.c: Include wide-int.h.
4896 (narrowest_unsigned_type): Take a widest_int rather than two
4897 HOST_WIDE_INTs.
4898 (narrowest_signed_type): Likewise.
4899 (interpret_integer): Update accordingly. Use wide-int interfaces.
4900 (lex_charconst): Use wide-int interfaces.
4901 * c-pretty-print.c: Include wide-int.h.
4902 (pp_c_integer_constant): Use wide-int interfaces.
4903 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
4904 INT_CST_LT_UNSIGNED.
4905
b15458be
RB
49062014-05-06 Richard Biener <rguenther@suse.de>
4907
4908 * c-opts.c (c_common_post_options): For -freestanding,
4909 -fno-hosted and -fno-builtin disable pattern recognition
4910 if not enabled explicitely.
4911
6577374e
MP
49122014-05-02 Marek Polacek <polacek@redhat.com>
4913
4914 * c.opt (Wsizeof-pointer-memaccess): Describe option.
4915
d00887e8
MP
49162014-05-01 Marek Polacek <polacek@redhat.com>
4917
4918 PR c/43245
4919 * c.opt (Wdiscarded-qualifiers): Add.
4920
f8ed5150
MP
49212014-04-30 Marek Polacek <polacek@redhat.com>
4922
4923 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
4924 INT_MIN / -1 sanitization only for integer types.
4925
45484dcf
MP
49262014-04-25 Marek Polacek <polacek@redhat.com>
4927
4928 PR c/18079
4929 * c-common.c (handle_noinline_attribute): Warn if the attribute
4930 conflicts with always_inline attribute.
4931 (handle_always_inline_attribute): Warn if the attribute conflicts
4932 with noinline attribute.
4933
38e514c0
MP
49342014-04-25 Marek Polacek <polacek@redhat.com>
4935
4936 PR c/60156
4937 * c-common.c (check_main_parameter_types): Warn about variadic main.
4938
44875f92
MS
49392014-04-24 Mike Stump <mikestump@comcast.net>
4940
4941 * c.opt (Wshadow-ivar): Default to on.
4942
dcaaa5a0
DP
49432014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
4944
4945 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
4946
c07d7c02
MP
49472014-04-23 Marek Polacek <polacek@redhat.com>
4948
4949 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
4950
1c33c9b7
JJ
49512014-04-22 Jakub Jelinek <jakub@redhat.com>
4952
4953 PR sanitizer/60275
4954 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
4955 if flag_sanitize_undefined_trap_on_error.
4956 (ubsan_instrument_division, ubsan_instrument_shift,
4957 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
4958 if !flag_sanitize_recover.
4959
793c625f
MG
49602014-04-22 Marc Glisse <marc.glisse@inria.fr>
4961
4962 PR libstdc++/43622
4963 * c-common.c (registered_builtin_types): Make non-static.
4964 * c-common.h (registered_builtin_types): Declare.
4965
b0f1bf36
RB
49662014-04-14 Richard Biener <rguenther@suse.de>
4967 Marc Glisse <marc.glisse@inria.fr>
4968
4969 PR c/60819
4970 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
4971 apply may-alias the scalar pointer type when applicable.
4972
3b07fa4a
IZ
49732014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
4974
4975 PR middle-end/60467
4976 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
4977 as possible argument for Cilk_spawn.
4978
cbbd2b1c
TB
49792014-04-11 Tobias Burnus <burnus@net-b.de>
4980
4981 PR c/60194
4982 * c.opt (Wformat-signedness): Add
4983 * c-format.c(check_format_types): Use it.
4984
6415bd5d
JM
49852014-04-11 Jason Merrill <jason@redhat.com>
4986
4987 PR c++/57926
4988 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
4989 default_conversion for an array argument.
4990
6525783a
MP
49912014-04-08 Marek Polacek <polacek@redhat.com>
4992
4993 PR sanitizer/60745
4994 * c-ubsan.c: Include asan.h.
4995 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
4996
880a467b
NS
49972014-04-03 Nathan Sidwell <nathan@codesourcery.com>
4998
4999 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
5000
7b59ff2d
MP
50012014-04-02 Marek Polacek <polacek@redhat.com>
5002
5003 * c-common.h (c_expand_expr): Remove declaration.
5004
8edbfaa6
JJ
50052014-03-28 Jakub Jelinek <jakub@redhat.com>
5006
5007 PR c++/60689
5008 * c-common.c (add_atomic_size_parameter): When creating new
5009 params vector, push the size argument first.
5010
07d72e1d
JJ
50112014-03-26 Jakub Jelinek <jakub@redhat.com>
5012
5013 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
5014 ubsan_instrument_vla, ubsan_instrument_return): Adjust
5015 ubsan_create_data callers.
5016
b35e0fa0
JJ
50172014-03-22 Jakub Jelinek <jakub@redhat.com>
5018
5019 PR debug/60603
5020 * c-opts.c (c_finish_options): Restore cb_file_change call to
5021 <built-in>.
5022
39a1ebb3
JJ
50232014-03-13 Jakub Jelinek <jakub@redhat.com>
5024
5025 PR middle-end/36282
5026 * c-pragma.c (apply_pragma_weak): Only look at
5027 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
5028 DECL_ASSEMBLER_NAME_SET_P (decl).
5029 (maybe_apply_pending_pragma_weaks): Exit early if
5030 vec_safe_is_empty (pending_weaks) rather than only when
5031 !pending_weaks.
5032 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
5033 set assembler name back to NULL afterwards.
5034
a07f6ed2
JM
50352014-03-11 Jason Merrill <jason@redhat.com>
5036
5037 * c.opt: Add -std=gnu++14.
5038
75b107f5
IB
50392014-03-11 Ian Bolton <ian.bolton@arm.com>
5040
5041 * c-opts.c (c_common_post_options): Don't override
5042 -ffp-contract=fast if unsafe-math-optimizations is on.
5043
f42c637e
PM
50442014-03-08 Paulo Matos <paulo@matos-sorge.com>
5045
22b15758 5046 * c.opt: Enable LTO FE for fshort-double.
f42c637e 5047
70e24808
JM
50482014-03-07 Jason Merrill <jason@redhat.com>
5049
5050 * c.opt: Add -std=c++14.
5051
3af9c5e9
MP
50522014-03-06 Marek Polacek <polacek@redhat.com>
5053
5054 PR c/60197
5055 * cilk.c (contains_cilk_spawn_stmt): New function.
5056 (contains_cilk_spawn_stmt_walker): Likewise.
5057 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
5058 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
5059
b3bdf019
JJ
50602014-03-03 Jakub Jelinek <jakub@redhat.com>
5061
5062 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
5063 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
5064 even when flag_preprocess_only.
5065
ca7e759d
JM
50662014-02-26 Jason Merrill <jason@redhat.com>
5067
5068 PR c++/59231
5069 PR c++/11586
5070 * c-common.c (shorten_compare): Don't check
5071 c_inhibit_evaluation_warnings.
5072
28e41874
JJ
50732014-02-19 Jakub Jelinek <jakub@redhat.com>
5074
cca615af
JJ
5075 PR c/37743
5076 * c-common.c (c_common_nodes_and_builtins): When initializing
5077 c_uint{16,32,64}_type_node, also set corresponding
5078 uint{16,32,64}_type_node to the same value.
5079
28e41874
JJ
5080 PR c++/60267
5081 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
5082 for PRAGMA_IVDEP if flag_preprocess_only.
5083
c2bf53a1
JJ
50842014-02-12 Jakub Jelinek <jakub@redhat.com>
5085
5086 PR c/60101
5087 * c-common.c (merge_tlist): If copy is true, call new_tlist,
5088 if false, add ADD itself, rather than vice versa.
5089 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
5090 copy. For SAVE_EXPR, only call merge_tlist once.
5091
8fcbce72
JJ
50922014-02-08 Jakub Jelinek <jakub@redhat.com>
5093
5094 PR middle-end/60092
5095 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
5096 and tree_to_uhwi.
5097 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
5098 functions.
5099 (c_common_attribute_table): Add alloc_align and assume_aligned
5100 attributes.
5101
0a756a3f
MP
51022014-02-06 Marek Polacek <polacek@redhat.com>
5103
5104 PR c/60087
5105 * c-common.c (warn_for_sign_compare): Call warning_at with location
5106 instead of warning.
5107
7ec4847a
MP
51082014-02-05 Marek Polacek <polacek@redhat.com>
5109
5110 PR c/53123
5111 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
5112 statement.
5113
66f20604
MP
51142014-02-04 Marek Polacek <polacek@redhat.com>
5115
5116 PR c/60036
5117 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
5118 SAVE_EXPR.
5119
5d77fb19
MG
51202014-02-03 Marc Glisse <marc.glisse@inria.fr>
5121
5122 PR c++/53017
5123 PR c++/59211
5124 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
5125 handle_vector_size_attribute, handle_nonnull_attribute): Call
5126 default_conversion on the attribute argument.
5127 (handle_nonnull_attribute): Increment the argument number.
5128
81e5eca8
MP
51292014-01-31 Marek Polacek <polacek@redhat.com>
5130
5131 PR c/59963
5132 * c-common.c (add_atomic_size_parameter): Pass vNULL to
5133 build_function_call_vec.
5134 (resolve_overloaded_builtin): Likewise.
5135 * c-common.h (build_function_call_vec): Adjust declaration.
5136
68fca595
MP
51372014-01-30 Marek Polacek <polacek@redhat.com>
5138
5139 PR c/59940
5140 * c-common.h (unsafe_conversion_p): Adjust declaration.
5141 (warnings_for_convert_and_check): Likewise.
5142 (convert_and_check): Likewise.
5143 * c-common.c (unsafe_conversion_p): Add location parameter. Call
5144 expansion_point_location_if_in_system_header on it.
5145 (warnings_for_convert_and_check): Add location parameter. Call
5146 expansion_point_location_if_in_system_header on it. Use it.
5147 (convert_and_check): Add location parameter. Use it.
5148 (conversion_warning): Likewise.
5149 (c_add_case_label): Adjust convert_and_check calls.
5150 (scalar_to_vector): Adjust unsafe_conversion_p calls.
5151
b72271b9
BI
51522014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
5153
5154 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
5155 flag_cilkplus.
5156 * c-pragma.c (init_pragma): Likewise.
5157 * c.opt: Likewise.
5158
393e8e8b
MP
51592014-01-23 Marek Polacek <polacek@redhat.com>
5160
5161 PR c/59846
5162 * c-common.c (shorten_compare): Add location_t parameter.
5163 * c-common.h (shorten_binary_op): Adjust declaration.
5164
f04dda30
MP
51652014-01-23 Marek Polacek <polacek@redhat.com>
5166
5167 PR c/58346
5168 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
5169 * c-common.h: Declare it.
5170
621955cb
EB
51712014-01-20 Eric Botcazou <ebotcazou@adacore.com>
5172
5173 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
5174 * c-ada-spec.c (dump_ads): Likewise.
5175 (cpp_check): Likewise.
5176 (dump_ada_specs): Likewise.
5177
51782014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
5179
5180 PR c++/49718
5181 * c-common.c (handle_no_instrument_function_attribute): Allow
5182 no_instrument_function attribute in class member
5183 definition/declaration.
5184
241f845a
JJ
51852014-01-15 Jakub Jelinek <jakub@redhat.com>
5186
5187 PR c/58943
5188 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
5189 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
5190 being COMPOUND_EXPR.
5191 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
5192 operand a SAVE_EXPR and second MODIFY_EXPR.
5193
e83b8e2e
JJ
51942014-01-09 Jakub Jelinek <jakub@redhat.com>
5195
5196 PR target/58115
5197 * c-pch.c (c_common_write_pch): Call
5198 prepare_target_option_nodes_for_pch.
5199
23a5b65a
RS
52002014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
5201
5202 Update copyright years
5203
f9030485
RS
52042014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
5205
5206 * array-notation-common.c, c-cilkplus.c: Use the standard form for
5207 the copyright notice.
5208
f2aa696b
EB
52092013-12-28 Eric Botcazou <ebotcazou@adacore.com>
5210
5211 * c-ada-spec.c (print_constructor): New function.
5212 (print_destructor): Retrieve the origin of the destructor.
5213 (print_ada_declaration): Revamp handling of constructors/destructors.
5214
3f8257db 52152013-12-23 Stuart Hastings <stuart@apple.com>
1f26ac87
JM
5216 Bill Maddox <maddox@google.com>
5217 Jason Merrill <jason@redhat.com>
5218
5219 * c.opt: Add -fdeclone-ctor-dtor.
5220 * c-opts.c (c_common_post_options): Default to on iff -Os.
5221
41958c28
BI
52222013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
5223
5224 * c-common.c (c_common_attribute_table): Added "cilk simd function"
5225 attribute.
5226 * c-pragma.h (enum pragma_cilk_clause): Remove.
5227 (enum pragma_omp_clause): Added the following fields:
5228 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
5229 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
5230 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
5231 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
5232 PRAGMA_CILK_CLAUSE_UNIFORM.
5233
b1726d6c 5234
12893402
BI
52352013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
5236
5237 * cilk.c (cilk_outline): Made this function non-static.
5238 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
5239 (create_cilk_wrapper): Added a new parameter: a function pointer.
5240 (c_install_body_w_frame_cleanup): Remove
5241 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
5242 * c-common.h (cilk_outline): New prototype.
5243 (gimplify_cilk_spawn): Removed two parameters.
5244 (cilk_install_body_with_frame_cleanup): New prototype.
5245 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
5246 CILK_SPAWN_STMT case.
5247
085b42ed
BS
52482013-12-11 Bernd Schmidt <bernds@codesourcery.com>
5249
2ce064c3
BS
5250 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
5251
085b42ed
BS
5252 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
5253 (int_array_type_node): Remove.
5254 * c-common.c (c_common_nodes_and_builtins): Don't build it.
5255
9e36c9ed
MP
52562013-12-05 Marek Polacek <polacek@redhat.com>
5257
5258 PR c/52023
5259 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
5260 [ADJUST_FIELD_ALIGN].
5261
296674db
JM
52622013-12-04 Joseph Myers <joseph@codesourcery.com>
5263
5264 PR c/52023
5265 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
5266 and check field alignment if set.
5267 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
5268 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
5269
b1726d6c 52702013-12-04 Jakub Jelinek <jakub@redhat.com>
31e071ae
MP
5271 Marek Polacek <polacek@redhat.com>
5272
5273 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
5274 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
5275
d7947e19
L
52762013-11-29 H.J. Lu <hongjiu.lu@intel.com>
5277
5278 PR c/59309
5279 * cilk.c (gimplify_cilk_spawn): Properly handle function without
5280 arguments.
5281
fad7652e
JJ
52822013-11-29 Jakub Jelinek <jakub@redhat.com>
5283
5284 PR c/59280
5285 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
5286 goto invalid. If it is error_mark_node, don't issue further
5287 diagnostics.
5288
8b5e1202
SO
52892013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
5290
5291 * c.opt (Wopenmp-simd): New.
5292
0a508bb6
JJ
52932013-11-22 Jakub Jelinek <jakub@redhat.com>
5294
5295 * c-ubsan.h (ubsan_instrument_return): New prototype.
5296 * c-ubsan.c (ubsan_instrument_return): New function.
5297
2fb9a547
AM
52982013-11-22 Andrew MacLeod <amacleod@redhat.com>
5299
5300 * c-common.c: Add required include files from gimple.h.
5301 * c-gimplify.c: Likewise
5302 * cilk.c: Likewise
5303
8400e75e
DM
53042013-11-22 David Malcolm <dmalcolm@redhat.com>
5305
5306 * c-common.c (unsafe_conversion_p): Remove use of
5307 EXPR_LOC_OR_HERE macro.
5308 (conversion_warning): Likewise.
5309 (warnings_for_convert_and_check): Likewise.
5310 (warn_for_collisions_1): Likewise.
5311 (shorten_compare): Likewise, and remove use of in_system_header
5312 macro, using the location from the former.
5313 * c-lex.c (dump_one_header): Remove use of input_filename macro.
5314 (cb_def_pragma): Remove use of in_system_header macro.
5315 (lex_string): Likewise.
5316 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
5317
eb1ce453
KZ
53182013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
5319 Mike Stump <mikestump@comcast.net>
5320 Richard Sandiford <rdsandiford@googlemail.com>
5321
5322 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
5323 instead of TREE_INT_CST_LOW, in cases where there is a protecting
5324 tree_fits_shwi_p or tree_fits_uhwi_p.
5325 (dump_generic_ada_node): Likewise.
5326 * c-format.c (check_format_arg): Likewise.
5327 * c-pretty-print.c (pp_c_integer_constant): Likewise.
5328
6b3b8c27
KZ
53292013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
5330
5331 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
5332
49b0aa18
JC
53332013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
5334
5335 PR c/53001
5336 * c-common.c (unsafe_conversion_p): Make this function
5337 return an enumeration with more detail.
5338 (conversion_warning): Use the new return type of
5339 unsafe_conversion_p to separately warn either about conversions
5340 that lower floating point number precision or about the other
5341 kinds of conversions.
5342 * c-common.h (enum conversion_safety): New enumeration.
8e745a17
JJ
5343 (unsafe_conversion_p): switching return type to
5344 conversion_safety enumeration.
49b0aa18
JC
5345 * c.opt: Adding new warning -Wfloat-conversion and
5346 enabling it with -Wconversion.
5347
b826515a
BS
53482013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
5349
8e745a17
JJ
5350 * c-opts.c: Include plugin.h.
5351 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
b826515a 5352
b9a55b13
MP
53532013-11-19 Marek Polacek <polacek@redhat.com>
5354
5355 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
5356 call.
5357 (ubsan_instrument_shift): Likewise.
5358 (ubsan_instrument_vla): Likewise.
5359
7d362f6c
RS
53602013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5361
5362 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
5363 cast to unsigned type.
5364
386b1f1f
RS
53652013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5366
5367 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
5368 tree_low_cst.
5369 (complete_array_type): Update comment to refer to tree_to_[su]hwi
5370 rather than tree_low_cst.
5371
ae7e9ddd
RS
53722013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5373
5374 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
5375 tree_to_uhwi throughout.
5376
9439e9a1
RS
53772013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5378
5379 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
5380 tree_low_cst (..., 0) with tree_to_shwi throughout.
5381
cc269bb6
RS
53822013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5383
5384 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
5385 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
5386
9541ffee
RS
53872013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5388
5389 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
5390 host_integerp (..., 0) with tree_fits_shwi_p throughout.
5391
c02065fc
AH
53922013-11-15 Aldy Hernandez <aldyh@redhat.com>
5393
5394 * c-cilkplus.c: New file.
5395 * c-common.c (readonly_error): Add location argument.
5396 * c-common.h (readonly_error): Same.
5397 (c_finish_cilk_clauses): Protoize.
5398 (c_check_cilk_loop): Same.
5399 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
5400 Do not fail on error_mark_node.
5401 Abstract increment canonicalization to here...
5402 (c_omp_for_incr_canonicalize_ptr): New.
5403 c-pragma.c (init_pragma): Register "simd" pragma.
5404 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
5405 (enum pragma_cilk_clause): New.
5406
9cc65f15
RS
54072013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
5408
5409 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
5410 wchar_type and host_integerp checks.
5411
18f429e2
AM
54122013-11-14 Andrew MacLeod <amacleod@redhat.com>
5413
5414 * c-common.c: Likewise.
5415 * c-gimplify.c: Likewise.
5416 * cilk.c: Likewise.
5417
d8a2d370
DN
54182013-11-14 Diego Novillo <dnovillo@google.com>
5419
5420 * c-common.c: Include fold-const.h.
5421 Include stor-layout.h.
5422 Include calls.h.
5423 Include stringpool.h.
5424 Include attribs.h.
5425 Include varasm.h.
5426 Include trans-mem.h.
5427 * c-cppbuiltin.c: Include stor-layout.h.
5428 Include stringpool.h.
5429 * c-format.c: Include stringpool.h.
5430 * c-lex.c: Include stringpool.h.
5431 Include stor-layout.h.
5432 * c-pragma.c: Include stringpool.h.
5433 Include attribs.h.
5434 Include varasm.h.
5435 Include gcc-symtab.h.
5436 * c-pretty-print.c: Include stor-layout.h.
5437 Include attribs.h.
5438 * cilk.c: Include stringpool.h.
5439 Include calls.h.
5440
38b7bc7f
JM
54412013-11-13 Joseph Myers <joseph@codesourcery.com>
5442
5443 * c-common.h (enum rid): Add RID_AUTO_TYPE.
5444 * c-common.c (c_common_reswords): Add __auto_type.
5445 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
5446
45b0be94
AM
54472013-11-12 Andrew MacLeod <amacleod@redhat.com>
5448
18f429e2
AM
5449 * c-common.c: Include gimplify.h.
5450 * c-gimplify.c: Likewise.
5451 * cilk.c: Likewise.
5452 * c-omp.c: Include gimple-expr.h instead of gimple.h.
5453 * c-ubsan.c: Don't include gimple.h.
45b0be94 5454
582d9b50
JM
54552013-11-12 Joseph Myers <joseph@codesourcery.com>
5456
5457 * c-common.c (c_common_reswords): Add _Thread_local.
5458
6b28e197
JM
54592013-11-09 Joseph Myers <joseph@codesourcery.com>
5460
5461 * c-common.c (atomic_size_supported_p): New function.
5462 (resolve_overloaded_atomic_exchange)
5463 (resolve_overloaded_atomic_compare_exchange)
5464 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
5465 Use it instead of comparing size with a local list of sizes.
5466
267bac10
JM
54672013-11-07 Andrew MacLeod <amacleod@redhat.com>
5468 Joseph Myers <joseph@codesourcery.com>
5469
5470 * c-common.h (enum rid): Add RID_ATOMIC.
5471 * c-common.c (c_common_reswords): Add _Atomic.
5472 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
5473 (keyword_is_type_qualifier): Accept RID_ATOMIC.
5474 * c-format.c (check_format_types): Check for extra _Atomic
5475 qualifiers in format argument.
5476 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
5477 (pp_c_type_qualifier_list): Mention _Atomic in comment.
5478
5157b91e
TB
54792013-11-06 Tobias Burnus <burnus@net-b.de>
5480
5481 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
5482
6dbe0958
JM
54832013-11-06 Joseph Myers <joseph@codesourcery.com>
5484
5485 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
5486 standards modes.
5487 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
5488 to mean lack of IEEE 754 support.
5489
e8ff5196
TB
54902013-11-05 Tobias Burnus <burnus@net-b.de>
5491
5492 * c.opt (-Wdate-time): New option
5493 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
5494
254a0760
JM
54952013-11-05 Joseph Myers <joseph@codesourcery.com>
5496
5497 * c-cppbuiltin.c (cpp_iec_559_value): Test
5498 flag_excess_precision_cmdline not flag_excess_precision.
5499
6d7f7e0a
TB
55002013-11-05 Tobias Burnus <burnus@net-b.de>
5501
5502 * c.opt (fopenmp-simd): New option.
5503 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
5504 (omp_pragmas): ... this new struct.
5505 (c_pp_lookup_pragma): Also walk omp_pragmas.
5506 (init_pragma): Init pragmas for -fopenmp-simd.
5507
55a7f02f
MP
55082013-11-04 Marek Polacek <polacek@redhat.com>
5509
5510 PR c++/58979
5511 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
5512
9193fb05
JM
55132013-11-04 Joseph Myers <joseph@codesourcery.com>
5514
5515 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
5516 New functions.
5517 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
5518
94159ecf
EB
55192013-11-04 Eric Botcazou <ebotcazou@adacore.com>
5520
5521 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
5522 (dump_ada_specs): Adjust prototype of second callback.
5523 * c-ada-spec.c (cpp_check): New global variable.
5524 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
5525 (print_generic_ada_decl): Likewise.
5526 (has_static_fields): Change return type to bool and add guard.
5527 (has_nontrivial_methods): New predicate.
5528 (is_tagged_type): Change return type to bool.
5529 (separate_class_package): Call has_nontrivial_methods.
5530 (pp_ada_tree_identifier): Minor tweaks.
5531 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
5532 (dump_ada_array_domains): Likewise.
5533 (dump_ada_array_type): Likewise.
5534 (dump_template_types): Remove cpp_check parameter and do not pass it to
5535 dump_generic_ada_node.
5536 (dump_ada_template): Likewise.
5537 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
5538 recursively.
5539 (print_ada_methods): Change return type to integer. Remove cpp_check
5540 parameter and do not pass it down.
5541 (dump_nested_types): Remove cpp_check parameter and do not pass it to
5542 dump_generic_ada_node.
5543 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
5544 accessing methods.
5545 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
5546 down. Use has_nontrivial_methods to recognize C++ classes. Use return
5547 value of print_ada_methods.
5548 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
5549 Set cpp_check to it before invoking dump_ada_nodes.
5550 (dump_ada_specs): Likewise.
5551
b906f4ca
MP
55522013-11-03 Marek Polacek <polacek@redhat.com>
5553
5554 * c-ubsan.c: Don't include hash-table.h.
5555 (ubsan_instrument_vla): New function.
5556 * c-ubsan.h: Declare it.
5557
5e20cdc9
DM
55582013-10-31 David Malcolm <dmalcolm@redhat.com>
5559
5560 Automated part of renaming of symtab_node_base to symtab_node.
5561
5562 Patch autogenerated by rename_symtab.py from
5563 https://github.com/davidmalcolm/gcc-refactoring-scripts
5564 revision 58bb219cc090b2f4516a9297d868c245495ee622
5565
5566 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
5567 symtab_node_base to symtab_node.
5568
7057e645
ESR
55692013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
5570
8e745a17 5571 Implement C++14 digit separators.
7057e645
ESR
5572 * c-lex.c (interpret_float): Remove digit separators from scratch string
5573 before building real literal.
5574
193ea7bc
JJ
55752013-10-30 Jakub Jelinek <jakub@redhat.com>
5576
5577 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
5578
939b37da
BI
55792013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
5580
5581 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
5582 fields.
5583 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
5584 enabled.
5585 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
5586 (insert_cilk_frame): New prototype.
5587 (cilk_init_builtins): Likewise.
5588 (gimplify_cilk_spawn): Likewise.
5589 (c_cilk_install_body_w_frame_cleanup): Likewise.
5590 (cilk_detect_spawn_and_unwrap): Likewise.
5591 (cilk_set_spawn_marker): Likewise.
5592 (build_cilk_sync): Likewise.
5593 (build_cilk_spawn): Likewise.
5594 * cilk.c: New file.
5595
67348ccc
DM
55962013-10-29 David Malcolm <dmalcolm@redhat.com>
5597
5598 Patch autogenerated by refactor_symtab.py from
5599 https://github.com/davidmalcolm/gcc-refactoring-scripts
5600 revision 58bb219cc090b2f4516a9297d868c245495ee622
5601
5602 * c-gimplify.c (c_genericize): Update for conversion of symtab types
5603 to a true class hierarchy.
5604 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
5605
d570872d
RS
56062013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
5607
5608 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
5609
98906124
JL
56102013-10-26 Jeff Law <law@redhat.com>
5611
adfac8df
JJ
5612 * c-common.c (c_define_builtins): Remove mudflap support.
5613 * c.opt: Ignore and warn for mudflap options.
98906124 5614
d73749df 56152013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
5616
5617 PR other/33426
5618 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
5619 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
5620
3f04b1bb
JM
56212013-10-23 Jason Merrill <jason@redhat.com>
5622
5623 * c-format.c (gcc_cxxdiag_char_table): Add %X.
5624
acf0174b
JJ
56252013-10-11 Jakub Jelinek <jakub@redhat.com>
5626
acd15a28
JJ
5627 * c-common.h (omp_clause_mask::operator !=): New method.
5628 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
5629 instead of if (mask & something) tests everywhere.
5630
acf0174b
JJ
5631 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
5632 201307 instead of 201107.
5633 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
5634 (c_common_attribute_table): Add "omp declare target" and
5635 "omp declare simd" attributes.
5636 (handle_omp_declare_target_attribute,
5637 handle_omp_declare_simd_attribute): New functions.
5638 * c-omp.c: Include c-pragma.h.
5639 (c_finish_omp_taskgroup): New function.
5640 (c_finish_omp_atomic): Add swapped argument, if true,
5641 build the operation first with rhs, lhs arguments and use NOP_EXPR
5642 build_modify_expr.
5643 (c_finish_omp_for): Add code argument, pass it down to make_code.
5644 (c_omp_split_clauses): New function.
5645 (c_split_parallel_clauses): Removed.
5646 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
5647 c_omp_declare_simd_clauses_to_decls): New functions.
5648 * c-common.h (omp_clause_mask): New type.
5649 (OMP_CLAUSE_MASK_1): Define.
5650 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
5651 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
5652 omp_clause_mask::operator |, omp_clause_mask::operator &,
5653 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
5654 omp_clause_mask::operator ==): New methods.
5655 (enum c_omp_clause_split): New.
5656 (c_finish_omp_taskgroup): New prototype.
5657 (c_finish_omp_atomic): Add swapped argument.
5658 (c_finish_omp_for): Add code argument.
5659 (c_omp_split_clauses): New prototype.
5660 (c_split_parallel_clauses): Removed.
5661 (c_omp_declare_simd_clauses_to_numbers,
5662 c_omp_declare_simd_clauses_to_decls): New prototypes.
5663 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
5664 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
5665 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
5666 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
5667 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
5668 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
5669 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
5670 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
5671 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
5672 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
5673 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
5674 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
5675 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
5676 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
5677 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
5678 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
5679 PRAGMA_OMP_CLAUSE_UNIFORM.
5680
826cacfe
MG
56812013-10-09 Marc Glisse <marc.glisse@inria.fr>
5682
5683 PR tree-optimization/20318
5684 * c-common.c (handle_returns_nonnull_attribute): New function.
5685 (c_common_attribute_table): Add returns_nonnull.
5686
2284b034
MG
56872013-10-03 Marc Glisse <marc.glisse@inria.fr>
5688
5689 PR c++/19476
5690 * c.opt (fcheck-new): Move to common.opt.
5691
b56e9788
MP
56922013-09-25 Marek Polacek <polacek@redhat.com>
5693 Jakub Jelinek <jakub@redhat.com>
5694
5695 PR sanitizer/58413
5696 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
5697 an expression if we can prove it is correct.
5698 (ubsan_instrument_division): Likewise. Remove unnecessary
5699 check.
5700
ce6923c5
MP
57012013-09-18 Marek Polacek <polacek@redhat.com>
5702
5703 PR sanitizer/58411
5704 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
5705 Declare it.
5706 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
5707
fb5610fb
IS
57082013-09-14 Iain Sandoe <iain@codesourcery.com>
5709
5710 PR target/48094
5711 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
5712 fobjc-gc, freplace-objc-classes): Accept for LTO.
5713
88b0e79e
JC
57142013-09-13 Jacek Caban <jacek@codeweavers.com>
5715
5716 * c-target.def: New hook
5717
c9b0866a
PC
57182013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
5719
5720 PR c++/43452
5721 * c.opt (Wdelete-incomplete): Add.
5722
0af94e6f
JR
57232013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
5724
5725 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
5726 (vector_types_compatible_elements_p): New function.
5727 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
5728 declaration.
5729 (vector_types_compatible_elements_p): Declare.
5730
7c26172c
GDR
57312013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
5732
5733 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
5734 a virtual member function.
5735 (pp_simple_type_specifier): Remove.
5736 (pp_c_type_specifier): Likewise.
5737 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
5738 Rename from pp_c_type_specifier. Adjust.
5739 (c_pretty_printer::c_pretty_printer): Do not assign to
5740 simple_type_specifier.
5741
20059c8b
GDR
57422013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
5743
5744 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
5745 member function.
5746 (c_pretty_printer::storage_class_specifier): Likewise.
5747 (c_pretty_printer::initializer): Likewise.
5748 (pp_declaration): Remove.
5749 (pp_declaration_specifiers): Likewise.
5750 (pp_abstract_declarator): Likewise.
5751 (pp_declarator): Likewise.
5752 (pp_type_id): Likewise.
5753 (pp_statement): Likewise.
5754 (pp_constant): Likewise.
5755 (pp_id_expression): Likewise.
5756 (pp_primary_expression): Likewise.
5757 (pp_unary_expression): Likewise.
5758 (pp_multiplicative_expression): Likewise.
5759 (pp_conditional_expression): Likewise.
5760 (pp_assignment_expression): Likewise.
5761 (pp_expression): Likewise.
5762 (pp_c_type_id): Likewise.
5763 (pp_c_storage_class_specifier): Likewise.
5764 * c-pretty-print.c (pp_c_type_cast): Tidy.
5765 (pp_c_pointer): Likewise.
5766 (pp_c_type_specifier): Likewise.
5767 (pp_c_parameter_type_list): Likewise.
5768 (pp_c_function_definition): Likewise.
5769 (pp_c_init_declarator): Likewise.
5770 (pp_c_initializer_list): Likewise.
5771 (pp_c_constructor_elts): Likewise.
5772 (c_pretty_printer::direct_abstract_declarator): Likewise.
5773 (c_pretty_printer::declaration_specifiers): Likewise.
5774 (c_pretty_printer::primary_expression): Likewise.
5775 (c_pretty_printer::postfix_expression): Likewise.
5776 (c_pretty_printer::type_id): Rename from pp_c_type_id.
5777 (c_pretty_printer::storage_class_specifier): Rename from
5778 pp_c_storage_class_specifier.
5779 (c_pretty_printer::initializer): Rename from pp_c_initializer.
5780 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
5781 storage_class_specifier, initializer, offset_list, flags.
5782
de5a5fa1
MP
57832013-08-30 Marek Polacek <polacek@redhat.com>
5784
5785 * c-ubsan.c: New file.
5786 * c-ubsan.h: New file.
5787
8f0e4d72
GDR
57882013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
5789
5790 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
5791 member function.
5792 (c_pretty_printer::declaration_specifiers): Likewise.
5793 (c_pretty_printer::declarator): Likewise.
5794 (c_pretty_printer::abstract_declarator): Likewise.
5795 (c_pretty_printer::direct_abstract_declarator): Likewise.
5796 (c_pretty_printer::direct_declarator): Likewise.
5797 (c_pretty_printer::function_specifier): Likewise.
5798 (pp_declaration): Adjust.
5799 (pp_declaration_specifiers): Likewise.
5800 (pp_abstract_declarator): Likewise.
5801 (pp_direct_declarator): Likewise.
5802 (pp_function_specifier): Likewise.
5803 (pp_direct_abstract_declarator): Remove as unused.
5804 (pp_c_declaration): Remove.
5805 (pp_c_declaration_specifiers): Likewise.
5806 (pp_c_declarator): Likewise.
5807 (pp_c_direct_declarator): Likewise.
5808 (pp_c_function_specifier): Likewise.
5809 (pp_c_direct_abstract_declarator): Likewise.
5810 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
5811 from pp_c_abstract_declarator. Adjust.
5812 (c_pretty_printer::direct_abstract_declarator): Rename from
5813 pp_c_direct_abstract_declarator. Adjust.
5814 (c_pretty_printer::function_specifier): Rename from
5815 pp_c_function_specifier. Adjust.
5816 (c_pretty_printer::declaration_specifiers): Rename from
5817 pp_c_declaration_specifiers. Adjust.
5818 (c_pretty_printer::direct_declarator): Rename from
5819 pp_c_direct_declarator. Adjust.
5820 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
5821 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
5822 (c_pretty_printer::c_pretty_printer): Do not assign to
5823 declaration, declaration_specifiers, declarator,
5824 direct_declarator, direct_abstract_declarator, function_specifier.
5825
00d34d3a
GDR
58262013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
5827
5828 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
5829 virtual member function.
5830 (c_pretty_printer::multiplicative_expression): Likewise.
5831 (c_pretty_printer::conditional_expression): Likewise.
5832 (c_pretty_printer::assignment_expression): Likewise.
5833 (c_pretty_printer::expression): Likewise.
5834 (pp_unary_expression): Adjust.
5835 (pp_multiplicative_expression): Likewise.
5836 (pp_assignment_expression): Likewise.
5837 (pp_conditional_expression): Likewise.
5838 (pp_expression): Likewise.
5839 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
5840 from pp_c_unary_expression. Adjust.
5841 (c_pretty_printer::multiplicative_expression): Rename from
5842 pp_c_multiplicative_expression. Adjust.
5843 (c_pretty_printer::conditional_expression): Rename from
5844 pp_c_conditional_expression. Adjust.
5845 (c_pretty_printer::assignment_expression): Rename from
5846 pp_c_assignment_expression. Adjust.
5847 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
5848 (c_pretty_printer::c_pretty_printer): Do not assign to
5849 unary_expression, multiplicative_expression,
5850 conditional_expression, expression.
5851
fb22178f
GDR
58522013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
5853
5854 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
5855 virtual member function.
5856 (pp_postfix_expression): Adjust.
5857 (pp_c_postfix_expression): Remove.
5858 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
5859 from pp_c_postfix_expression. Adjust.
5860 (c_pretty_printer::c_pretty_printer): Do not assign to
5861 postfix_expression.
5862
7ecc2600
GDR
58632013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
5864
5865 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
5866 virtua member function.
5867 (pp_primary_expression): Adjust.
5868 (pp_c_primary_expression): Remove.
5869 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
5870 from pp_c_primary_expression. Adjust.
5871 (pp_c_initializer_list): Use pp_primary_expression.
5872 (c_pretty_printer::c_pretty_printer): Do not assign to
5873 primary_expression.
5874
0691175f
GDR
58752013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
5876
5877 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
5878 * c-pretty-print.c (M_): Remove.
5879 (c_pretty_printer::translate_string): Define.
5880 (pp_c_type_specifier): Use it.
5881 (pp_c_primary_expression): Likewise.
5882 (pp_c_expression): Likewise.
5883
66dfe4c4
GDR
58842013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
5885
5886 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
5887 virtual function.
5888 (pp_c_id_expression): Remove.
5889 (pp_id_expression): Adjust.
5890 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
5891 pp_c_id_expression. Adjust.
5892 (pp_c_postfix_expression): Use pp_id_expression.
5893 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
5894
ca43e9d5
GDR
58952013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
5896
5897 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
5898 member function.
5899 (pp_constant): Adjust.
5900 (pp_c_constant): Remove.
5901 * c-pretty-print.c (c_pretty_printer::constant): Rename from
5902 pp_c_constant. Adjust.
5903 (pp_c_constant)
5904 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
5905 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
5906
da6ca2b5
GDR
59072013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
5908
5909 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
5910 (c_pretty_printer::c_pretty_printer): Declare.
5911 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
5912 c_pretty_printer_init. Adjust.
5913 (print_c_tree): Do not call c_pretty_printer_init.
5914 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
5915
65a372f4
AC
59162013-08-09 Arnaud Charlet <charlet@adacore.com>
5917
5918 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
5919
fd9b0f32
PC
59202013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
5921
5922 PR c++/58080
5923 * c-common.c (pointer_int_sum): Add bool parameter.
5924 * c-common.h (pointer_int_sum): Adjust declaration.
5925
e0aec1e9
GDR
59262013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
5927
5928 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
5929 c_pretty_printer variable.
5930
b066401f
GDR
59312013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
5932
5933 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
5934 (pp_base): Remove.
5935 (pp_c_base): Likewise. Adjust users.
5936 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
5937 (pp_c_whitespace): Do not call pp_base.
5938 (pp_c_left_paren): Likewise.
5939 (pp_c_right_paren): Likewise.
5940 (pp_c_left_brace): Likewise.
5941 (pp_c_right_brace): Likewise.
5942 (pp_c_left_bracket): Likewise.
5943 (pp_c_right_bracket): Likewise.
5944 (pp_c_dot): Likewise.
5945 (pp_c_ampersand): Likewise.
5946 (pp_c_star): Likewise.
5947 (pp_c_arrow): Likewise.
5948 (pp_c_semicolon): Likewise.
5949 (pp_c_complement): Likewise.
5950 (pp_c_exclamation): Likewise.
5951 (pp_c_direct_declarator): Likewise.
5952 (pp_c_ws_string): Likewise.
5953 (pp_c_identifier): Likewise.
5954 (pp_c_statement): Likewise.
5955 (print_c_tree): Likewise.
5956
65e5a578
ESR
59572013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
5958
5959 PR c++/58072
5960 * c-common.c (c_parse_error): Catch user-defined literal tokens and
5961 provide useful error strings.
5962
137a1a27
GDR
59632013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
5964
5965 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
5966 printer functions instead of pp_string or operators and punctuators.
5967 (dump_generic_ada_node): Likewise.
5968 * c-pretty-print.c (pp_c_type_specifier): Likewise.
5969 (pp_c_relational_expression): Likewise.
5970 (pp_c_logical_or_expression): Likewise.
5971
07838b13
GDR
59722013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
5973
5974 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
5975 functions instead of pp_character.
5976 (pp_ada_tree_identifier): Likewise.
5977 (dump_ada_double_name): Likewise.
5978 (dump_ada_function_declaration): Likewise.
5979 (dump_ada_array_domains): Likewise.
5980 (dump_template_types): Likewise.
5981 (dump_generic_ada_node): Likewise.
5982 (print_ada_declaration): Likewise.
5983 (print_ada_struct_decl): Likewise.
5984 * c-pretty-print.c (pp_c_integer_constant): Likewise.
5985
433cc7b0
TT
59862013-07-23 Tom Tromey <tromey@redhat.com>
5987
5988 * c-common.h (enum rid) <RID_GENERIC>: New constant.
5989 * c-common.c (c_common_reswords): Add _Generic.
5990
688010ba
OB
59912013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
5992
5993 * c-common.c: Fix typos.
5994 * c-common.h: Likewise.
5995
2a99e5e6
LL
59962013-07-13 Lubos Lunak <l.lunak@suse.cz>
5997
5998 PR c++/55203
5999 * c-common.c (c_common_attribute_table): Add warn_unused.
6000 (handle_warn_unused_attribute): New.
6001
c26302d5
JJ
60022013-07-10 Jakub Jelinek <jakub@redhat.com>
6003
6004 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
6005 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
6006
dfeadaa0
PC
60072013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
6008
6009 PR c++/57869
6010 * c.opt: Add Wconditionally-supported.
6011
6a2fa4b2
GS
60122013-07-08 Graham Stott <graham.stott@btinternet.com>
6013
adfac8df 6014 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
6015 unused variables l_length and l_node.
6016
ecdbd01a 60172013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
6018
6019 PR c/57821
6020 * c-common.c (complete_array_type): Delay folding first index
6021 like other indices. When folding, check for index overflow.
6022
bedc293e
MG
60232013-06-27 Marc Glisse <marc.glisse@inria.fr>
6024
6025 PR c++/57509
6026 * c-common.h (c_build_vec_perm_expr): New complain argument.
6027 * c-common.c (c_build_vec_perm_expr): Likewise.
6028 Use save_expr also in C++.
6029
604b2bfc
GDR
60302013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
6031
6032 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
6033 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
6034 * c-opts.c (c_common_post_options): Likewise.
6035
dfeadaa0 60362013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
6037
6038 * array-notation-common.c (length_mismatch_in_expr): Changed the
6039 parameter type's from a dynamic array to a vec_tree. Also removed
6040 the size parameters.
6041 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
6042 the change above.
6043
2ce86d2e
BI
60442013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
6045
6046 * c-common.h (struct cilkplus_an_parts): New structure.
6047 (struct cilkplus_an_loop_parts): Likewise.
6048 (cilkplus_extract_an_triplets): New prototype.
6049 (fix_sec_implicit_args): Likewise.
6050 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
6051 (fix_sec_implicit_args): Likewise.
604b2bfc 6052
07a6825b
BI
60532013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
6054
6055 * array-notation-common.c (find_inv_trees): Removed an unwanted
6056 typecasting.
6057 * c-common.h (struct inv_list::additional_tcodes): Changed type from
6058 enum rid to enum tree_code.
6059
08346abd
JH
60602013-06-11 Jan Hubicka <jh@suse.cz>
6061
6062 * c-common.c (handle_alias_ifunc_attribute): Do not set
6063 DECL_EXTERNAL for weakref variables.
6064 * c-pragma.c (handle_pragma_weak): Make sure aliases
6065 are not declared as external.
6066
d60f1706
BI
60672013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
6068
6069 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
6070 function from c/c-array-notation.c.
6071 (is_cilkplus_reduce_builtin): Likewise.
6072 (find_rank): Likewise.
6073 (extract_array_notation_exprs): Likewise.
6074 (replace_array_notations): Likewise.
6075 (find_inv_trees): Likewise.
6076 (replace_inv_trees): Likewise.
6077 (contains_array_notation_expr): Likewise.
6078 (find_correct_array_notation_type): Likewise.
6079 * c-common.h (struct inv_list): Moved this struct from the file
6080 c/c-array-notation.c and added a new field called additional tcodes.
6081 (length_mismatch_in_expr_p): New prototype.
6082 (is_cilkplus_reduce_builtin): Likewise.
6083 (find_rank): Likewise.
6084 (extract_array_notation_exprs): Likewise.
6085 (replace_array_notation): Likewise.
6086 (find_inv_trees): Likewise.
6087 (replace_inv_trees): Likewise.
6088 (find_correct_array_notation_type): Likewise.
dfeadaa0 6089
36536d79
BI
60902013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
6091
6092 * c-common.c (c_define_builtins): When cilkplus is enabled, the
6093 function array_notation_init_builtins is called.
6094 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
6095 * c-common.def (ARRAY_NOTATION_REF): New tree.
6096 * c-common.h (build_array_notation_expr): New function declaration.
6097 (build_array_notation_ref): Likewise.
6098 (extract_sec_implicit_index_arg): New extern declaration.
6099 (is_sec_implicit_index_fn): Likewise.
6100 (ARRAY_NOTATION_CHECK): New define.
6101 (ARRAY_NOTATION_ARRAY): Likewise.
6102 (ARRAY_NOTATION_START): Likewise.
6103 (ARRAY_NOTATION_LENGTH): Likewise.
6104 (ARRAY_NOTATION_STRIDE): Likewise.
6105 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
6106 ARRAY_NOTATION_REF.
6107 (pp_c_expression): Likewise.
6108 * c.opt (flag_enable_cilkplus): New flag.
6109 * array-notation-common.c: New file.
6110
f7716d57
JJ
61112013-05-14 Jakub Jelinek <jakub@redhat.com>
6112
6113 PR c++/57274
6114 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
6115
a5e0cd1d
MG
61162013-05-10 Marc Glisse <marc.glisse@inria.fr>
6117
6118 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
6119 vectors.
6120
f6bc1c4a
HS
61212013-05-07 Han Shen <shenhan@google.com>
6122
6123 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
6124
3f12f6e9
SKS
61252013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
6126
6127 * c-common.c (check_user_alignment): Emit error for negative values.
6128
61949153
PC
61292013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6130
6131 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
6132
e93e18e9
PC
61332013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6134
6135 * c-cppbuiltin.c (c_cpp_builtins): Do not define
6136 __GXX_EXPERIMENTAL_CXX1Y__.
6137
44d90fe1 61382013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
8e745a17 6139 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
44d90fe1
PC
6140
6141 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
6142 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
6143 to simply use OPT_Wpointer_arith.
6144 (c_sizeof_or_alignof_type): Likewise.
6145
13f39b2e
PC
61462013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6147
6148 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
6149
4b84d650
JJ
61502013-04-12 Jakub Jelinek <jakub@redhat.com>
6151
6152 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
6153 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
6154 specifiers.
6155
fb037b5d
SB
61562013-04-07 Steven Bosscher <steven@gcc.gnu.org>
6157
6158 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
6159
4e856798
PC
61602013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
6161
6162 * c-common.c (pointer_int_sum): Remove dead code.
6163
4b1baac8
RS
61642013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
6165
6166 PR middle-end/56524
6167 * c-common.c (handle_optimize_attribute): Don't call
6168 save_optabs_if_changed.
6169
0b50e654
JJ
61702013-03-05 Jakub Jelinek <jakub@redhat.com>
6171
6172 PR middle-end/56461
6173 * c-pch.c (pch_init): Free target_validity at the end.
6174
48c41403
JJ
61752013-03-04 Jakub Jelinek <jakub@redhat.com>
6176
6177 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
6178
e664c61c
KS
61792013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
6180 Jakub Jelinek <jakub@redhat.com>
6181
6182 PR sanitizer/56454
6183 * c-common.c (handle_no_sanitize_address_attribute): New function.
6184 (c_common_attribute_table): Add no_sanitize_address attribute.
6185 (handle_no_address_safety_analysis_attribute): Add
6186 no_sanitize_address attribute, not no_address_safety_analysis
6187 attribute.
6188
a475fd3d 61892013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
6190
6191 PR target/52555
6192 * c-common.c (handle_optimize_attribute): Call
6193 save_optabs_if_changed.
6194
f6007d99
JJ
61952013-02-18 Jakub Jelinek <jakub@redhat.com>
6196 Steven Bosscher <steven@gcc.gnu.org>
6197
6198 PR pch/54117
6199 * c-opts.c (c_common_post_options): If debug info is enabled
6200 and non-dwarf*, refuse to load PCH files and when writing PCH
6201 file warn.
6202
cf35e2b1
JJ
62032013-02-05 Jakub Jelinek <jakub@redhat.com>
6204
6205 PR middle-end/56167
6206 * c-common.c (handle_error_attribute): Fix condition.
6207
32887460
JJ
62082013-01-30 Jakub Jelinek <jakub@redhat.com>
6209
6210 PR c++/55742
6211 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
6212
5af057d8
JM
62132013-01-18 Jason Merrill <jason@redhat.com>
6214
6215 PR target/54908
6216 * c.opt (-fextern-tls-init): New.
6217 * c-opts.c (c_common_post_options): Handle it.
6218
cc83c823
JJ
62192013-01-09 Jakub Jelinek <jakub@redhat.com>
6220
6221 PR c/48418
6222 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
6223 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
6224 and is either negative or bigger or equal to type precision
6225 of the first operand.
6226
a859517f
MP
62272012-12-03 Marek Polacek <polacek@redhat.com>
6228
6229 PR c/55570
6230 * c-common.c (check_user_alignment): Swap order of tests,
6231 check TREE_CODE first.
6232
2d7aa578
ESR
62332012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
6234
6235 PR c++/52654
6236 * c-common.h (overflow_type): New enum.
6237 (build_userdef_literal): Add overflow_type argument.
6238 (tree_userdef_literal): Add overflow_type.
6239 (USERDEF_LITERAL_OVERFLOW): New access macro.
6240 * c-common.c (build_userdef_literal): Add overflow_type
6241 argument.
6242 * c-lex.c (c_lex_with_flags): Add overflow_type to
6243 build_userdef_literal calls.
6244 (interpret_integer, interpret_float): Add overflow_type argument.
6245
cc3c4f62
RB
62462012-11-28 Richard Biener <rguenther@suse.de>
6247
6248 PR c/35634
6249 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
6250 here and use a type with proper overflow behavior for types that would
6251 need to be promoted for the arithmetic.
6252
77bc5132
JJ
62532012-11-23 Jakub Jelinek <jakub@redhat.com>
6254
6255 PR sanitizer/55435
6256 * c-common.c (handle_no_address_safety_analysis_attribute): New
6257 function.
6258 (c_common_attribute_table): Add no_address_safety_analysis.
6259
5dc99c46
SB
62602012-11-16 Simon Baldwin <simonb@google.com>
6261
6262 * c.opt: Add f[no-]canonical-system-headers.
6263 * c-opts.c (c_common_handle_option): Handle
6264 OPT_fcanonical_system_headers.
6265
a4a0016d
ESR
62662012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
6267
6268 PR c++/54413
6269 * c-opts.c (c_common_handle_option): Set new flags.
6270 * c.opt: Describe new flags.
6271
7dbb85a7
JM
62722012-11-09 Jason Merrill <jason@redhat.com>
6273
6274 * c.opt (Wabi-tag): New.
6275
ad7bac31
AK
62762012-11-09 Andi Kleen <ak@linux.intel.com>
6277
6278 PR 55139
6279 * c-common.c (get_atomic_generic_size): Mask with
8e745a17 6280 MEMMODEL_MASK
ad7bac31 6281
7332899a
MLI
62822012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
6283
6284 PR c/53063
6285 * c.opt (Wformat): Make it Alias Wformat=1.
6286 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
6287 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
6288 LangEnabledBy.
6289 (Wformat=): RejectNegative. Use LangEnabledBy.
6290 (Wnonnull): Use LangEnabledBy.
6291 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
6292 * c-format.c (set_Wformat): Delete.
6293 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
8e745a17
JJ
6294 (maybe_read_dollar_number): Likewise.
6295 (avoid_dollar_number): Likewise.
6296 (finish_dollar_format_checking): Likewise.
6297 (check_format_info): Likewise.
6298 (check_format_info_main): Likewise.
6299 (check_format_types): Likewise.
6300 (format_type_warning): Likewise.
6301 * c-common.c (int): Likewise.
6302 (check_function_sentinel): Likewise.
6303 * c-common.h (warn_format,set_Wformat): Do not declare here.
7332899a 6304
34a180a6
MLI
63052012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
6306
6307 PR c/53063
6308 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
6309 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
6310 Use LangEnabledBy.
6311 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
6312 common.opt.
6313 (Wvariadic-macros): Init(1).
6314 * c-opts.c (c_common_handle_option): Do not handle them
6315 explicitly.
6316 (c_common_post_options): Likewise.
6317 (sanitize_cpp_opts): warn_unused_macros is now
6318 cpp_warn_unused_macros.
6319 (push_command_line_include): Likewise.
6320 * c-common.c (warn_unknown_pragmas): Do not define.
6321 * c-common.h (warn_unknown_pragmas): Do not declare.
6322
3f46d6a5
MLI
63232012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
6324
6325 PR c/51294
6326 * c-common.c (conversion_warning): Handle conditional expressions.
6327
880661a4
JW
63282012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
6329
6330 PR c++/54930
6331 * c.opt (Wreturn_local_addr): Define new option.
6332
4514a96b
JM
63332012-10-25 Jason Merrill <jason@redhat.com>
6334
f14edc1a
JM
6335 * c.opt (Wvirtual-move-assign): New.
6336
4514a96b
JM
6337 * c.opt (Winherited-variadic-ctor): New.
6338
93100c6b
MG
63392012-10-25 Marc Glisse <marc.glisse@inria.fr>
6340
6341 PR c++/54427
6342 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
6343
1efcb8c6
JM
63442012-10-23 Joseph Myers <joseph@codesourcery.com>
6345
6346 * c-common.h (pch_cpp_save_state): Declare.
6347 * c-target.def (c_preinclude): New hook.
6348 * c-opts.c (done_preinclude): New.
6349 (push_command_line_include): Handle default preincluded header.
6350 (cb_file_change): Call pch_cpp_save_state when calling
6351 push_command_line_include.
6352 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
6353 (pch_cpp_save_state): New.
6354 (pch_init): Call pch_cpp_save_state conditionally, instead of
6355 calling cpp_save_state.
6356
4a0ae68e
MLI
63572012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
6358
6359 PR c/53063
6360 PR c/40989
6361 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
6362 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
6363 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
6364 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
6365 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
6366 * c-opts.c (c_common_handle_option): Remove explicit handling from
6367 here.
6368 (c_common_post_options): Likewise.
6369
67e4210b
EB
63702012-10-18 Eric Botcazou <ebotcazou@adacore.com>
6371
6372 * c-ada-spec.c (LOCATION_COL): Delete.
6373 (compare_location): New function.
6374 (compare_node): Use it.
6375 (compare_comment): Likewise.
6376
65d4f2cd
MLI
63772012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
6378
6379 PR c/53063
6380 PR c/40989
6381 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
6382 * c-opts.c (c_common_handle_option): Do not set them here. Add
6383 comment.
6384 (c_common_post_options): Likewise.
6385
909881cb
EB
63862012-10-16 Eric Botcazou <ebotcazou@adacore.com>
6387
6388 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
6389 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
6390 Remove POINTER_TYPE handling, add large unsigned handling and use
6391 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
6392
3a785c97
JJ
63932012-10-12 Jakub Jelinek <jakub@redhat.com>
6394
6395 PR c/54381
6396 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
6397 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
6398 locs and array of 3 trees instead of just single loc and single
6399 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
6400 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
6401 For *cmp* builtins that take two sources strings report warnings
6402 about first and second source, not about destination and source.
6403
5e54f81d
MG
64042012-10-12 Marc Glisse <marc.glisse@inria.fr>
6405
6406 PR c++/53055
6407 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
6408
f5b02f1e
EB
64092012-10-11 Eric Botcazou <ebotcazou@adacore.com>
6410
6411 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
6412 declaring something coming from another file.
6413
b46dbc6c
AC
64142012-10-10 Arnaud Charlet <charlet@adacore.com>
6415
f5b02f1e 6416 PR ada/54845
b46dbc6c
AC
6417 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
6418
5d9de0d0
PC
64192012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
6420
6421 PR c++/54194
6422 * c-common.c (warn_about_parentheses): Add location_t parameter;
6423 use EXPR_LOC_OR_LOC.
6424 * c-common.h: Update declaration.
6425
a212e43f
MG
64262012-10-09 Marc Glisse <marc.glisse@inria.fr>
6427
6428 PR c++/54427
6429 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
6430 more operations. Make error messages optional.
6431 * c-common.h (enum stv_conv): Moved from c-typeck.c.
6432 (scalar_to_vector): Declare.
6433
b1db7f91
JM
64342012-10-08 Jason Merrill <jason@redhat.com>
6435
6436 * c-common.c (c_common_reswords): Add thread_local.
6437
e28d52cf
DS
64382012-10-08 Dodji Seketeli <dodji@redhat.com>
6439
6440 PR c++/53528 C++11 attribute support
6441 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
6442 new functions.
6443 * c-common.c (check_cxx_fundamental_alignment_constraints): New
6444 static function.
6445 (handle_aligned_attribute): In choose strictest alignment
6446 among many. Use new check_cxx_fundamental_alignment_constraints.
6447 (handle_transparent_union_attribute): In c++11 attribute syntax,
6448 don't look through typedefs.
6449
3b78de56
AC
64502012-10-04 Arnaud Charlet <charlet@adacore.com>
6451
6452 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
6453 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
6454 out of dumpfile.h.
6455
6040bb5f
DC
64562012-09-25 Dehao Chen <dehao@google.com>
6457
6458 PR middle-end/54645
3b78de56 6459 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
6460 map when read in the pch.
6461
3f8257db 64622012-09-18 Arnaud Charlet <charlet@adacore.com>
0b07a57e
AC
6463
6464 * c-ada-spec.c: Style fixes.
6465
3f8257db 64662012-09-18 Thomas Quinot <quinot@adacore.com>
da5182be
TQ
6467
6468 * c.opt (-fada-spec-parent): Define new command line switch.
6469 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
6470 is specified, generate binding spec as a child of the specified unit.
6471
0ccb505d
PC
64722012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
6473 Manuel López-Ibáñez <manu@gcc.gnu.org>
6474
6475 PR c++/53210
6476 * c.opt ([Winit-self]): Enabled by -Wall in C++.
6477
c583af79
AC
64782012-08-23 Arnaud Charlet <charlet@adacore.com>
6479
6480 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
6481 for pointers, and add missing Convention C pragma.
6482 (print_ada_struct_decl): Add missing aliased keyword.
6483 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
6484
1a4049e7
JJ
64852012-08-17 Jakub Jelinek <jakub@redhat.com>
6486
6487 * c-common.c (sizeof_pointer_memaccess_warning): New function.
6488 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
6489 * c-opts.c (c_common_handle_option): Enable it for -Wall.
6490 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
6491 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
6492
70b5e7dc
RG
64932012-08-10 Richard Guenther <rguenther@suse.de>
6494
6495 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
6496
f8923f7e
SB
64972012-08-07 Steven Bosscher <steven@gcc.gnu.org>
6498
6499 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
6500 instead of separate pp_newline and pp_flush.
6501 (print_c_tree): Likewise.
6502
e45abe1f
RH
65032012-07-26 Richard Henderson <rth@redhat.com>
6504
6505 * c-common.c (handle_hot_attribute): Allow labels.
6506 (handle_cold_attribute): Likewise.
6507
332f1d24
JJ
65082012-07-20 Jakub Jelinek <jakub@redhat.com>
6509
6510 PR c++/28656
6511 * c-common.c (check_function_nonnull): Handle multiple nonnull
6512 attributes properly.
6513
7ee2468b
SB
65142012-07-16 Steven Bosscher <steven@gcc.gnu.org>
6515
6516 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
6517 * c-ada-spec.c: Likewise.
6518 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
6519
ee7b28eb
SB
65202012-07-14 Steven Bosscher <steven@gcc.gnu.org>
6521
6522 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
6523 Remove code conditional on it.
6524
6bdf3519
SB
65252012-07-11 Steven Bosscher <steven@gcc.gnu.org>
6526
6527 * c-gimplify.c: Do not include basic-block.h.
6528 * c-common.c: Do not include linfuncs.h.
6529
532aafad
SB
65302012-07-08 Steven Bosscher <steven@gcc.gnu.org>
6531
6532 * c-common.h: Include tree.h.
6533
8d0d1915
JM
65342012-07-02 Jason Merrill <jason@redhat.com>
6535
6536 PR c++/53524
6537 * c-common.c (get_priority): Call default_conversion.
6538
fbc873ad
UB
65392012-07-01 Uros Bizjak <ubizjak@gmail.com>
6540
6541 * c-pch.c (c_common_write_pch): Remove unused variables.
6542
d4a10d0a
SB
65432012-06-29 Steven Bosscher <steven@gcc.gnu.org>
6544
6545 * cppspec.c: Moved from gcc/ to here.
6546
6f3a2e23
KT
65472012-06-27 Kai Tietz <ktietz@redhat.com>
6548
6549 PR preprocessor/37215
6550 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
6551
8ca92d04
SB
65522012-06-21 Steven Bosscher <steven@gcc.gnu.org>
6553
6554 * c-common.h (c_common_print_pch_checksum): Remove.
6555 * c-pch.c: Do not include output.h.
6556 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
6557 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
6558 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
6559 (struct c_pch_header): Remove.
6560 (get_ident): Update gpch version.
6561 (pch_init): Do not print executable_checksum to asm_out_file.
6562 Do not fail if there is no asm_out_file to read back from. Set
6563 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
6564 (c_common_write_pch): Verify that nothing was written to asm_out_file
6565 since pch_init was called. Do not write a c_pch_header, and do not
6566 copy from asm_out_file to the PCH.
6567 (c_common_read_pch): Do not read a c_pch_header, and do not restore
6568 the content of asm_out_file from the PCH.
6569 (c_common_print_pch_checksum): Remove.
6570 * c-opts.c (c_common_init): Print out executable_checksum directly.
6571
70f42967
SB
65722012-06-19 Steven Bosscher <steven@gcc.gnu.org>
6573
6574 * c-target.def (objc_declare_unresolved_class_reference,
6575 objc_declare_class_definition): Add new hooks.
6576
a8781821
SB
65772012-06-19 Steven Bosscher <steven@gcc.gnu.org>
6578
6579 * c-lex.c: Do not include output.h.
6580 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
6581 Remove uses of ASM_OUTPUT_IDENT.
6582
9e1a8dd1
RR
65832012-06-15 Marc Glisse <marc.glisse@inria.fr>
6584
6585 PR c++/51033
6586 * c-common.h (c_build_vec_perm_expr): Move decl here.
6587 * c-common.c (c_build_vec_perm_expr): Move definition
6588 here.
6589
6f07a821
SB
65902012-06-06 Steven Bosscher <steven@gcc.gnu.org>
6591
6592 * c.opt (fconserve-space): Turn into a no-op.
6593
9faeb493 65942012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
6595
6596 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
6597 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
6598 both the start and end of the function.
6599
a4b7d13c
SB
66002012-06-04 Steven Bosscher <steven@gcc.gnu.org>
6601
6602 * c-common.c: Do not include output.h.
6603 * c-pragma.c: Likewise.
6604
c265f413
SA
66052012-06-04 Steven Bosscher <steven@gcc.gnu.org>
6606
6607 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
6608 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
6609 (lang_decl_name): Handle namespace decls.
6610
be7a421e
SB
66112012-05-31 Steven Bosscher <steven@gcc.gnu.org>
6612
6613 * c-ada-spec.c: Do not include output.h.
6614 * c-semantics.c: Likewise.
6615
65de6659
JM
66162012-05-29 Joseph Myers <joseph@codesourcery.com>
6617
6618 * c-common.c: Fix typo.
6619
ca5f4331
MM
66202012-05-29 Michael Matz <matz@suse.de>
6621
6622 * c-common.h (c_expand_decl): Remove prototype.
6623
4f7f7aca
MLI
66242012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
6625
6626 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
6627 * c-opts.c (c_common_handle_option): Remove code handling
6628 warn_missing_braces.
6629
4a792f9b
PC
66302012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
6631
6632 PR c++/25137
6633 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
6634 -Wmissing_braces.
6635
650dc14a
DS
66362012-05-22 Dodji Seketeli <dodji@redhat.com>
6637
6638 PR c++/53322
6639 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
6640
9b095bf1
MLI
66412012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
6642
6643 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
6644 * c-opts.c (c_common_handle_option): Do not handle explicitly
6645 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
6646
0b2c4be5
DS
66472012-05-16 Dodji Seketeli <dodji@redhat.com>
6648
6649 PR preprocessor/7263
6650 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
6651 to cpp_classify_number. For diagnostics, use the precise location
6652 instead of the global input_location.
6653
a1bde5af
PC
66542012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
6655
d02924ef 6656 PR c++/11856
a1bde5af
PC
6657 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
6658
d1ede5f4
BS
66592012-05-14 Bernd Schmidt <bernds@codesourcery.com>
6660
a1bde5af 6661 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 6662
f2bc201f
MLI
66632012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
6664
6665 PR 53063
6666 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
6667 Wreorder): Use LangEnabledBy.
6668 * c-opts.c (c_common_handle_option): Do not enable them
6669 explicitly. Call lang-specific generated functions.
6670 (c_common_post_options): Do not set them here.
6671
95744782
MLI
66722012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
6673
6674 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
6675 Wmissing-field-initializers,Wmissing-parameter-type,
6676 Wold-style-declaration,Woverride-init): Use EnabledBy.
6677 * c-opts.c (c_common_post_options): Do not set here explicitly.
6678
7d5a5747
MLI
66792012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
6680
6681 PR 53063
6682 * c-opts.c (c_common_handle_option): Use handle_generated_option
6683 to enable sub-options.
6684
5a3c9cf2
PC
66852012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
6686
6687 PR c++/53158
6688 * c-common.c (warnings_for_convert_and_check): Use warning_at.
6689
3ac8781c
RG
66902012-05-10 Richard Guenther <rguenther@suse.de>
6691
6692 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
6693 adjust commentary about TYPE_IS_SIZETYPE types.
6694
1e537948
MLI
66952012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
6696
6697 PR c++/53261
6698 * c-common.c (warn_logical_operator): Check that argument of
6699 integer_zerop is not NULL.
6700
f2c4a785
MLI
67012012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
6702
6703 PR c/43772
6704 * c-common.c (warn_logical_operator): Do not warn if either side
6705 is already true or false.
6706
50f305ca
MLI
67072012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
6708
6709 PR c/51712
6710 * c-common.c (expr_original_type): New.
6711 (shorten_compare): Do not warn for enumeration types.
6712
0c3641b0
MLI
67132012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
6714
6715 * c.opt (fpermissive): Add Var(flag_permissive).
6716
7edaa4d2
MG
67172012-04-30 Marc Glisse <marc.glisse@inria.fr>
6718
6719 PR c++/51033
6720 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
6721 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
6722
b9c8da34
DS
67232012-04-30 Dodji Seketeli <dodji@redhat.com>
6724
6725 Add -Wvarargs option
6726 * c.opt (Wvarargs): Define new option.
6727
e6c69da0
MLI
67282012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
6729
6730 * c-common.c (check_function_arguments): Replace
6731 Wmissing-format-attribute with Wsuggest-attribute=format.
6732
90137d8f
MLI
67332012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
6734
6735 * c.opt (Wsuggest-attribute=format): New. Alias of
6736 Wmissing-format-attribute.
6737 * c-format.c (decode_format_type): Replace
6738 Wmissing-format-attribute with Wsuggest-attribute=format.
6739 (check_function_format): Likewise.
6740
9faeb493 67412012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
6742
6743 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
6744 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
6745 * c.opt: Add Wliteral-suffix.
6746
c1771a20
MLI
67472012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
6748
6749 PR c/44774
6750 * c.opt (Wpedantic): New.
6751 (pedantic): Alias Wpedantic.
6752 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
6753 (c_common_post_options): Likewise.
6754 (sanitize_cpp_opts): Likewise.
6755 * c-lex.c (interpret_float): Likewise.
6756 * c-format.c (check_format_types): Likewise.
6757 * c-common.c (pointer_int_sum): Likewise.
6758 (c_sizeof_or_alignof_type): Likewise.
6759 (c_add_case_label): Likewise.
6760 (c_do_switch_warnings): Likewise.
6761 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
6762
04b391c1
JM
67632012-04-15 Jason Merrill <jason@redhat.com>
6764
6765 PR c++/52818
6766 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
6767 (C_STD_NAME): Distinguish between C++98 and C++11.
6768
ac868f29
EB
67692012-04-11 Eric Botcazou <ebotcazou@adacore.com>
6770
6771 PR target/52624
6772 * c-common.h (uint16_type_node): Rename into...
6773 (c_uint16_type_node): ...this.
6774 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
6775 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
6776
fd4116f4
MLI
67772012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
6778
6779 * c-common.c (warn_if_unused_value): Move definition to here.
6780 * c-common.h (warn_if_unused_value): Move declaration to here.
6781
573ac65e
WB
67822012-03-23 William Bader <williambader@hotmail.com>
6783
6784 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
6785
552b8185
JM
67862012-03-20 Jason Merrill <jason@redhat.com>
6787
6788 * c-common.h (enum cxx_dialect): Add cxx1y.
6789 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
6790 test.
6791 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
6792 * c-opts.c (c_common_post_options): Likewise.
6793 (set_std_cxx1y): New.
6794 (c_common_handle_option): Call it.
6795 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
6796
04398fa8
PC
67972012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
6798
6799 PR c++/14710
6800 * c.opt ([Wuseless-cast]): Add.
6801
d2a12ae7
RG
68022012-03-16 Richard Guenther <rguenther@suse.de>
6803
6804 * c-pretty-print.c (pp_c_initializer_list): Adjust.
6805
a12bf402
MLI
68062012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6807
6808 PR c++/44783
6809 * c.opt (ftemplate-backtrace-limit) Add.
6810
5c30094f
RO
68112012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6812
6813 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
6814 handling.
6815 * c-pragma.c (handle_pragma_extern_prefix): Remove.
6816 (init_pragma): Don't register extern_prefix.
6817
21fa2faf
RG
68182012-03-12 Richard Guenther <rguenther@suse.de>
6819
6820 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
6821 (builtin_type_for_size): Likewise.
6822
e3793c6f
JJ
68232012-02-13 Jakub Jelinek <jakub@redhat.com>
6824
6825 PR c++/52215
6826 * c-common.c (sync_resolve_params): Don't decide whether to convert
6827 or not based on TYPE_SIZE comparison, convert whenever arg_type
6828 is unsigned INTEGER_TYPE.
6829
93286335
PC
68302012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
6831
6832 PR c/52118
6833 * c.opt ([Wunused-local-typedefs]): Fix description.
6834
7a421706
MS
68352012-01-24 Mike Stump <mikestump@comcast.net>
6836
6837 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
6838 exactly.
6839
ba9b1f11
RG
68402012-01-18 Richard Guenther <rguenther@suse.de>
6841
6842 * c-opts.c (c_common_post_options): Reset LTO flags if
6843 we are about to generate a PCH.
6844
465406be
PC
68452012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
6846
6847 PR c++/51777
6848 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
6849 use pp_unsigned_wide_integer.
6850
aee15221
RG
68512012-01-10 Richard Guenther <rguenther@suse.de>
6852
6853 PR middle-end/51806
6854 * c-opts.c (c_common_handle_option): Move -Werror handling
6855 to language independent code.
6856
5720c0dc
RG
68572012-01-05 Richard Guenther <rguenther@suse.de>
6858
6859 PR middle-end/51764
6860 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
6861 from common.opt.
6862
73ac190a
PC
68632011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
6864
6865 PR c++/51316
6866 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
6867 of array types with an unknown bound.
6868
48b0b196
JM
68692011-12-20 Joseph Myers <joseph@codesourcery.com>
6870
6871 * c-common.c (flag_isoc99): Update comment to refer to C11.
6872 (flag_isoc1x): Change to flag_isoc11.
6873 * c-common.h (flag_isoc99): Update comment to refer to C11.
6874 (flag_isoc1x): Change to flag_isoc11.
6875 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
6876 C11.
6877 * c-opts.c (set_std_c1x): Change to set_std_c11.
6878 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
6879 Call set_std_c11.
6880 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
6881 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
6882 * c.opt (std=c1x): Change to std=c11. Document as non-draft
6883 standard.
6884 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
6885 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
6886 (std=gnu1x): Make alias of std=gnu11.
6887
d58d6eb5
JM
68882011-12-19 Jason Merrill <jason@redhat.com>
6889
6890 PR c++/51228
6891 * c-common.c (handle_transparent_union_attribute): Check the first
6892 field if the type is complete.
6893
b3908fcc
JW
68942011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
6895
6896 PR libstdc++/51365
6897 * c-common.c (RID_IS_FINAL): Add.
6898 * c-common.h (RID_IS_FINAL): Add.
6899
fea3ca91
IS
69002011-11-30 Iain Sandoe <iains@gcc.gnu.org>
6901
6902 * c.opt (fgnu-runtime): Provide full description.
6903 (fnext-runtime): Likewise.
6904 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
6905
62bad7cd
AM
69062011-11-28 Andrew MacLeod <amacleod@redhat.com>
6907
6908 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
6909 predefines in one place. Add LOCK_FREE predefines.
6910 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
6911 new func.
6912
c466c4ff
AM
69132011-11-24 Andrew MacLeod <amacleod@redhat.com>
6914
6915 PR c/51256
9faeb493 6916 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 6917 conditions
9faeb493
UB
6918 (resolve_overloaded_atomic_exchange,
6919 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
6920 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
6921 error_mark_node for error conditions.
9faeb493 6922
a5952633
RG
69232011-11-08 Richard Guenther <rguenther@suse.de>
6924
6925 PR middle-end/51010
6926 c-family/
6927
0a35513e
AH
69282011-11-07 Richard Henderson <rth@redhat.com>
6929 Aldy Hernandez <aldyh@redhat.com>
6930 Torvald Riegel <triegel@redhat.com>
6931
6932 Merged from transactional-memory.
6933
6934 * c-common.c (handle_tm_wrap_attribute,
6935 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
6936 (struct c_common_reswords): Added __transaction* keywords.
6937 (struct c_common_attribute_table): Added transaction* and tm_regparm
6938 attributes.
6939 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
6940 masks.
6941 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
6942 find_tm_attribute): Declare.
6943
6d87092d
JM
69442011-11-07 Jason Merrill <jason@redhat.com>
6945
6946 PR c++/35688
6947 * c-common.c, c-common.h: Revert yesterday's changes.
6948
8e7860a1
JM
69492011-11-06 Jason Merrill <jason@redhat.com>
6950
6951 PR c++/35688
6952 * c-common.c (decl_has_visibility_attr): Split out from...
6953 (c_determine_visibility): ...here.
6954 * c-common.h: Declare it.
6955
d19fa6b5
JM
69562011-11-06 Joseph Myers <joseph@codesourcery.com>
6957
6958 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
6959 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
6960 type.
6961 (check_user_alignment): New. Split out of
6962 handle_aligned_attribute. Disallow integer constants with
6963 noninteger types. Conditionally allow zero.
6964 (handle_aligned_attribute): Use check_user_alignment.
6965 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
6966
86951993
AM
69672011-11-06 Andrew MacLeod <amacleod@redhat.com>
6968 Richard Henderson <rth@redhat.com>
6969
6970 Merged from cxx-mem-model.
6971
6972 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 6973 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
6974 parameters that are the same type size.
6975 (get_atomic_generic_size): New. Find size of generic
6976 atomic function parameters and do typechecking.
6977 (add_atomic_size_parameter): New. Insert size into parameter list.
6978 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
6979 either __atomic_exchange_n or external library call.
9faeb493 6980 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 6981 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 6982 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
6983 __atomic_load_n or an external library call.
6984 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
6985 __atomic_store_n or an external library call.
6986 (resolve_overloaded_builtin): Handle new __atomic builtins.
6987
cf9e9959
EB
69882011-11-04 Eric Botcazou <ebotcazou@adacore.com>
6989
6990 PR c++/50608
6991 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
6992 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
6993 <INDIRECT_REF>: Return the argument.
6994 <ARRAY_REF>: Remove special code for negative offset.
6995 Call fold_build_pointer_plus instead of size_binop.
6996 (fold_offsetof): Remove STOP_REF argument and adjust.
6997 * c-common.h (fold_offsetof_1): Declare.
6998 (fold_offsetof): Remove STOP_REF argument.
6999
25339f10
JM
70002011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
7001
7002 PR c++/50810
7003 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
7004 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
7005 Wnarrowing for C++0x and C++98.
7006 * c.opt ([Wnarrowing]): Update.
7007
89401152
PC
70082011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
7009
7010 PR c++/44277
7011 * c.opt: Add Wzero-as-null-pointer-constant.
7012
97e3ad20
JM
70132011-10-31 Jason Merrill <jason@redhat.com>
7014
15694fdd
JM
7015 * c.opt (-fdeduce-init-list): Off by default.
7016
97e3ad20
JM
7017 PR c++/50920
7018 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
7019 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
7020 and -Wc++11-compat.
7021 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
7022
fb9120e3
RAV
70232011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
7024
7025 PR c++/30066
7026 * c.opt (fvisibility-inlines-hidden): Description change.
7027
3ce4f9e4
ESR
70282011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
7029
7030 Implement C++11 user-defined literals.
7031 * c-common.c (build_userdef_literal): New.
7032 * c-common.def: New tree code.
7033 * c-common.h (tree_userdef_literal): New tree struct and accessors.
7034 * c-lex.c (interpret_float): Add suffix parm.
7035 (c_lex_with_flags): Build literal tokens.
7036
5f53c243
PC
70372011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
7038
7039 PR c++/50841
7040 Revert:
7041 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
7042
7043 PR c++/50810
7044 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
7045 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
7046 Wnarrowing for C++0x and C++98.
7047 * c.opt ([Wnarrowing]): Update.
7048
263734e1
PC
70492011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
7050
7051 PR c++/50810
7052 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
7053 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
7054 Wnarrowing for C++0x and C++98.
7055 * c.opt ([Wnarrowing]): Update.
7056
d2e312d7
PC
70572011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
7058
7059 PR c++/45385
7060 * c-common.c (conversion_warning): Remove code looking for
7061 artificial operands.
7062
d17687f6
DS
70632011-10-18 Dodji Seketeli <dodji@redhat.com>
7064
7065 PR bootstrap/50760
7066 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 7067 !NO_IMPLICIT_EXTERN_C.
d17687f6 7068
fc8396e9
PC
70692011-10-17 Michael Spertus <mike_spertus@symantec.com>
7070
7071 * c-common.c (c_common_reswords): Add __bases,
7072 __direct_bases.
7073 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
7074
70752011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
7076
7077 PR c++/50757
7078 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
7079
847e697a
TT
70802011-10-15 Tom Tromey <tromey@redhat.com>
7081 Dodji Seketeli <dodji@redhat.com>
7082
7083 * c.opt (fdebug-cpp): New option.
7084 * c-opts.c (c_common_handle_option): Handle the option.
7085 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
7086 output stream in parameter. Factorized from ...
7087 (maybe_print_line): ... this. Dump location debug information when
7088 -fdebug-cpp is in effect.
7089 (print_line_1): New static function. Takes an output stream in
7090 parameter. Factorized from ...
7091 (print_line): ... here. Dump location information when -fdebug-cpp
7092 is in effect.
7093 (scan_translation_unit): Dump location information when
7094 -fdebug-cpp is in effect.
7095
92582b75
TT
70962011-10-15 Tom Tromey <tromey@redhat.com>
7097 Dodji Seketeli <dodji@redhat.com>
7098
7099 * c.opt (ftrack-macro-expansion): New option. Handle it with and
7100 without argument.
7101 * c-opts.c (c_common_handle_option)<case
7102 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
7103 cases. Handle -ftrack-macro-expansion with and without argument.
7104
46427374
TT
71052011-10-15 Tom Tromey <tromey@redhat.com>
7106 Dodji Seketeli <dodji@redhat.com>
7107
7108 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
7109 (print_line, cb_define, do_line_change): Adjust to avoid touching
7110 the internals of struct line_map. Use the public API instead.
7111 * c-pch.c (c_common_read_pch): Likewise.
7112 * c-lex.c (fe_file_change): Likewise.
7113
fc8396e9
PC
71142011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
7115
7116 PR c++/17212
7117 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
7118
71192011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
7120
7121 PR c++/33067
7122 * c-pretty-print.c (pp_c_floating_constant): Output
7123 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
7124
e79983f4
MM
71252011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
7126
7127 * c-common.c (def_builtin_1): Delete old interface with two
7128 parallel arrays to hold standard builtin declarations, and replace
7129 it with a function based interface that can support creating
7130 builtins on the fly in the future. Change all uses, and poison
7131 the old names. Make sure 0 is not a legitimate builtin index.
7132 * c-omp.c (c_finish_omp_barrier): Ditto.
7133 (c_finish_omp_taskwait): Ditto.
7134 (c_finish_omp_flush): Ditto.
7135
6637388f
TG
71362011-10-11 Tristan Gingold <gingold@adacore.com>
7137
7138 * c.opt: (fallow-parameterless-variadic-functions): New.
7139
3797cb21
DS
71402011-09-08 Dodji Seketeli <dodji@redhat.com>
7141
7142 PR c++/33255 - Support -Wunused-local-typedefs warning
7143 * c-common.h (struct c_language_function::local_typedefs): New
7144 field.
9faeb493
UB
7145 (record_locally_defined_typedef, maybe_record_typedef_use)
7146 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 7147 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
7148 (maybe_record_typedef_use)
7149 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
7150 * c.opt: Declare new -Wunused-local-typedefs flag.
7151
693ddb1b
EB
71522011-09-06 Eric Botcazou <ebotcazou@adacore.com>
7153
7154 PR middle-end/50266
7155 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
7156 computations.
7157
830c740f
RG
71582011-09-05 Richard Guenther <rguenther@suse.de>
7159
7160 * c-common.c (complete_array_type): Use ssize_int (-1) instead
7161 of integer_minus_one_node for empty array upper bounds.
7162
892a371f
DS
71632011-08-28 Dodji Seketeli <dodji@redhat.com>
7164
7165 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
7166 it's the first time it's being called on this main TU.
7167
0e3fdb48
RB
71682011-08-24 Richard Guenther <rguenther@suse.de>
7169
7170 PR c/49396
7171 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
7172
71732011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
7174
7175 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
7176 defined in cpp_init_builtins and c_cpp_builtins.
7177
d4a83c10
JM
71782011-08-19 Joseph Myers <joseph@codesourcery.com>
7179
7180 * c-common.c (c_common_reswords): Add __builtin_complex.
7181 * c-common.h (RID_BUILTIN_COMPLEX): New.
7182
bbceee64
JM
71832011-08-18 Joseph Myers <joseph@codesourcery.com>
7184
7185 * c-common.c (c_common_reswords): Add _Noreturn.
7186 (keyword_is_function_specifier): Handle RID_NORETURN.
7187 * c-common.h (RID_NORETURN): New.
7188
3f8257db 71892011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
0e3a99ae
AS
7190
7191 * c-common.c (unsafe_conversion_p): New function. Check if it is
7192 unsafe to convert an expression to the type.
7193 (conversion_warning): Adjust, use unsafe_conversion_p.
7194 * c-common.h (unsafe_conversion_p): New function declaration.
7195
20906c66
JJ
71962011-08-02 Jakub Jelinek <jakub@redhat.com>
7197
7198 * c-common.h (c_finish_omp_atomic): Adjust prototype.
7199 (c_finish_omp_taskyield): New prototype.
7200 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
7201 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
7202 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
7203 or RHS1 have side-effects, evaluate those too in the right spot,
7204 if it is a decl and LHS is also a decl, error out if they
7205 aren't the same.
7206 (c_finish_omp_taskyield): New function.
7207 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
7208 * c-pragma.c (omp_pragmas): Add taskyield.
7209 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
7210 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
7211 PRAGMA_OMP_CLAUSE_MERGEABLE.
7212
770e5a2e
DS
72132011-07-25 Dodji Seketeli <dodji@redhat.com>
7214
7215 * c-common.h (set_underlying_type): Remove parm name from
7216 declaration.
7217
1baae426
RG
72182011-07-25 Romain Geissler <romain.geissler@gmail.com>
7219
7220 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 7221
fcb21722
JM
72222011-07-22 Jason Merrill <jason@redhat.com>
7223
76f86d00
JM
7224 PR c++/49793
7225 * c.opt (Wnarrowing): New.
7226
3a636414
JM
7227 PR c++/30112
7228 * c-common.h: Declare c_linkage_bindings.
7229 * c-pragma.c (handle_pragma_redefine_extname): Use it.
7230
fcb21722
JM
7231 PR c++/49813
7232 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
7233 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
7234 as flag_isoc99 for 'restrict'.
7235 (pp_c_specifier_qualifier_list): Likewise for _Complex.
7236
02614448
ILT
72372011-07-21 Ian Lance Taylor <iant@google.com>
7238
7239 PR middle-end/49705
7240 * c-common.c (c_disable_warnings): New static function.
7241 (c_enable_warnings): New static function.
7242 (c_fully_fold_internal): Change local unused_p to bool. Call
7243 c_disable_warnings and c_enable_warnings rather than change
7244 c_inhibit_evaluation_warnings.
7245
34429675
JM
72462011-07-20 Jason Merrill <jason@redhat.com>
7247
7248 PR c++/6709 (DR 743)
7249 PR c++/42603 (DR 950)
7250 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
7251 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
7252 (CPP_DECLTYPE): New.
7253 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
7254
5d49b6a7
RG
72552011-07-19 Richard Guenther <rguenther@suse.de>
7256
7257 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
7258 * c-omp.c (c_finish_omp_for): Likewise.
7259
e84a58ff
EB
72602011-07-12 Eric Botcazou <ebotcazou@adacore.com>
7261
7262 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
7263 body on the next line.
7264
329af3c7
JM
72652011-07-08 Jason Merrill <jason@redhat.com>
7266
4063e61b
JM
7267 PR c++/45437
7268 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
7269
329af3c7
JM
7270 PR c++/49673
7271 * c-common.c (c_apply_type_quals_to_decl): Don't check
7272 TYPE_NEEDS_CONSTRUCTING.
7273
1a072294
RG
72742011-07-06 Richard Guenther <rguenther@suse.de>
7275
7276 * c-common.c (c_common_nodes_and_builtins):
7277 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
7278
fce5dddd
RG
72792011-07-05 Richard Guenther <rguenther@suse.de>
7280
7281 * c-common.c (c_common_nodes_and_builtins): Build all common
7282 tree nodes first.
7283
45d439ac
JJ
72842011-06-27 Jakub Jelinek <jakub@redhat.com>
7285
56300785
JJ
7286 * c-common.h (c_tree_chain_next): New static inline function.
7287
45d439ac
JJ
7288 * c-common.c (check_builtin_function_arguments): Handle
7289 BUILT_IN_ASSUME_ALIGNED.
7290
e0a8ecf2
AM
72912011-06-21 Andrew MacLeod <amacleod@redhat.com>
7292
7293 * c-common.c: Add sync_ or SYNC__ to builtin names.
7294 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
7295
72962011-06-20 Pierre Vittet <piervit@pvittet.com>
7297
7298 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
7299 handler.
7300 (gen_pragma_handler): New union.
7301 (internal_pragma_handler): New type.
7302 (c_register_pragma_with_data)
7303 (c_register_pragma_with_expansion_and_data): New functions.
7304
7305 * c-pragma.c (registered_pragmas, c_register_pragma_1)
7306 (c_register_pragma, c_register_pragma_with_expansion)
7307 (c_invoke_pragma_handler): Changed to work with
7308 internal_pragma_handler.
7309 (c_register_pragma_with_data)
7310 (c_register_pragma_with_expansion_and_data): New functions.
7311
677f3fa8
JM
73122011-06-14 Joseph Myers <joseph@codesourcery.com>
7313
7314 * c-common.c: Include common/common-target.h.
7315 (handle_section_attribute): Use
7316 targetm_common.have_named_sections.
7317 * c-cppbuiltin.c: Include common/common-target.h.
7318 (c_cpp_builtins): Use targetm_common.except_unwind_info.
7319
d7fc8c14
RG
73202011-06-10 Richard Guenther <rguenther@suse.de>
7321
7322 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
7323 to print a IDENTIFIER_NODE.
7324
10e48e39
RO
73252011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7326 Joseph Myers <joseph@codesourcery.com>
7327
7328 * c.opt (fbuilding-libgcc): New option.
7329 * c-cppbuiltin.c (c_cpp_builtins): Define
7330 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
7331
6976ae51
JM
73322011-06-07 Jason Merrill <jason@redhat.com>
7333
3ff60975
JM
7334 * c-common.c (max_tinst_depth): Lower default to 900.
7335
6976ae51
JM
7336 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
7337
009db074
RG
73382011-06-07 Richard Guenther <rguenther@suse.de>
7339
7340 * c-common.c (c_common_nodes_and_builtins): Do not set
7341 size_type_node or call set_sizetype.
7342
b4592b92
DS
73432011-06-07 Dodji Seketeli <dodji@redhat.com>
7344
7345 PR debug/49130
7346 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 7347 type when using pointer comparison to compare types.
b4592b92 7348
014ab419
JW
73492011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
7350
7351 * c.opt: Add -Wdelete-non-virtual-dtor.
7352 * c-opts.c (c_common_handle_option): Include it in -Wall.
7353
4f60111f
NF
73542011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
7355
7356 PR bootstrap/49190
7357
7358 Revert:
7359 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
7360
7361 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
7362 not tree_common.
7363
4cc4f2f4
JJ
73642011-05-27 Jakub Jelinek <jakub@redhat.com>
7365
7366 PR c++/49165
7367 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
7368 C++ don't call c_common_truthvalue_conversion on void type arms.
7369
38e01f9e
NF
73702011-05-27 Nathan Froyd <froydnj@codesourcery.com>
7371
7372 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
7373 (stmt_list_stack): Define.
7374 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
7375 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
7376
92e948a8
NF
73772011-05-26 Nathan Froyd <froydnj@codesourcery.com>
7378
7379 * c-common.c (warning_candidate_p): Check for BLOCKs.
7380
a2fc3e63
NF
73812011-05-26 Nathan Froyd <froydnj@codesourcery.com>
7382
7383 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
7384 not tree_common.
7385
0957c029
JJ
73862011-05-25 Jakub Jelinek <jakub@redhat.com>
7387
7388 * c-common.c (def_fn_type): Remove extra va_end.
7389
828fb3ba
JM
73902011-05-23 Jason Merrill <jason@redhat.com>
7391
7392 PR c++/48106
7393 * c-common.c (c_common_get_narrower): New.
7394 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
7395
dde05067
NF
73962011-05-23 Nathan Froyd <froydnj@codesourcery.com>
7397
7398 * c-common.h (check_function_arguments): Tweak prototype of
7399 check_function_arguments.
7400 * c-common.c (check_function_arguments): Likewise. Adjust
7401 calls to check_function_nonnull, check_function_format, and
7402 check_function_sentinel.
7403 (check_function_sentinel): Take a FUNCTION_TYPE rather than
7404 separate attributes and typelist arguments. Use
7405 FOREACH_FUNCTION_ARGS to iterate over argument types.
7406
3c0d13bf
PC
74072011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
7408
7409 * c-common.c (c_common_reswords): Reorder.
7410 * c-common.h (rid): Likewise.
7411
8242dd04
NF
74122011-05-10 Nathan Froyd <froydnj@codesourcery.com>
7413
7414 * c-common.c (def_fn_type): Don't call build_function_type, call
7415 build_function_type_array or build_varargs_function_type_array
7416 instead.
7417 (c_common_nodes_and_builtins): Likewise.
7418
3d528853
NF
74192011-05-05 Nathan Froyd <froydnj@codesourcery.com>
7420
7421 * c-common.c (c_add_case_label): Omit the loc argument to
7422 build_case_label.
7423 * c-common.h (build_case_label): Remove.
7424 * c-semantics.c (build_case_label): Remove.
7425
a04a722b
JM
74262011-05-05 Joseph Myers <joseph@codesourcery.com>
7427
7428 * c-objc.h (objc_start_method_definition): Update prototype.
7429 * stub-objc.c (objc_start_method_definition): Add extra parameter.
7430
e19a18d4
NF
74312011-05-04 Nathan Froyd <froydnj@codesourcery.com>
7432
7433 * c-common.c (check_main_parameter_types): Reindent. Don't use
7434 TYPE_ARG_TYPES directly.
7435 (handle_nonnull_attribute): Likewise.
7436 (sync_resolve_params): Likewise.
7437 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
7438 to check_format_string.
7439 (handle_format_attribute): Likewise.
7440 (check_format_string): Take a function type to examine instead of
7441 a type list. Use a function_arg_iterator to step through argument
7442 types.
7443
c62c040f
RG
74442011-05-04 Richard Guenther <rguenther@suse.de>
7445
7446 * c-common.c (fix_string_type): Use size_int for index type bounds.
7447 (start_fname_decls): Do not pass NULL to build_int_cst.
7448 (c_init_attributes): Likewise.
7449 * c-lex.c (c_lex_with_flags): Likewise.
7450
c12ff9d8
JM
74512011-04-27 Jason Merrill <jason@redhat.com>
7452
7453 * c-common.c (make_tree_vector_from_list): New.
7454 * c-common.h: Declare it.
7455
304dfbe3
RG
74562011-04-26 Richard Guenther <rguenther@suse.de>
7457
7458 PR preprocessor/48248
7459 * c-ppoutput.c (maybe_print_line): Always optimize newlines
7460 for output size with -P.
7461
3c0d13bf
PC
74622011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
7463
7464 * c-common.c (struct c_common_resword): Add __underlying_type.
7465 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
7466
04695783
JM
74672011-04-20 Jim Meyering <meyering@redhat.com>
7468
7469 * c-format.c (init_dollar_format_checking): Remove useless
7470 if-before-free.
7471
0dc33c3c
NP
74722011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
7473
7474 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 7475 (objc_detect_field_duplicates): New.
0dc33c3c 7476 * stub-objc.c: Likewise.
3c0d13bf 7477
c59633d9
NP
74782011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
7479
7480 * stub-objc.c (objc_declare_protocols): Renamed to
7481 objc_declare_protocol.
7482 * c-objc.h: Likewise.
3c0d13bf 7483
32dabdaf
NP
74842011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
7485
7486 * stub-objc.c (objc_declare_class): Updated argument name.
7487
81f653d6
NF
74882011-04-12 Nathan Froyd <froydnj@codesourcery.com>
7489
7490 * c-common.h (c_common_init_ts): Declare.
7491 * c-common.c (c_common_init_ts): Define.
7492
eb345401
NP
74932011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
7494
7495 * c-objc.h (objc_build_message_expr): Updated prototype.
7496 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 7497
a358e188
MJ
74982011-04-12 Martin Jambor <mjambor@suse.cz>
7499
7500 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
7501 of cgraph_node.
7502
e6313a78
RG
75032011-04-11 Richard Guenther <rguenther@suse.de>
7504
7505 * c-common.c (complete_array_type): Build a range type of
7506 proper type.
7507
dcf0c47e
NF
75082011-04-08 Nathan Froyd <froydnj@codesourcery.com>
7509
7510 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
7511 (handle_type_generic_attribute): Likewise.
7512
1ee44b26
JM
75132011-04-07 Jason Merrill <jason@redhat.com>
7514
7515 PR c++/48450
7516 * c-common.c (c_common_truthvalue_conversion): Don't ignore
7517 conversion from C++0x scoped enum.
7518
acce4e77
JM
75192011-04-06 Joseph Myers <joseph@codesourcery.com>
7520
7521 * c-target-def.h: New file.
7522 * c-target.def: New file.
7523 * c-target.h: New file.
7524 * c-common.c (targetcm): Don't define here.
7525 * c-common.h (default_handle_c_option): Declare.
7526 * c-format.c: Include c-target.h instead of target.h.
7527 * c-opts.c: Include c-target.h instead of target.h. Explicitly
7528 include tm.h.
7529 (default_handle_c_option): Move from targhooks.c.
7530
e2eefb55
JJ
75312011-03-29 Jakub Jelinek <jakub@redhat.com>
7532
7533 PR preprocessor/48248
7534 * c-ppoutput.c (print): Add src_file field.
7535 (init_pp_output): Initialize it.
7536 (maybe_print_line): Don't optimize by adding up to 8 newlines
7537 if map->to_file and print.src_file are different file.
7538 (print_line): Update print.src_file.
7539
ba78087b
KT
75402011-03-25 Kai Tietz <ktietz@redhat.com>
7541
7542 * c-ada-spec.c (compare_comment): Use filename_cmp
7543 instead of strcmp for filename.
7544
0edf1bb2
JL
75452011-03-25 Jeff Law <law@redhat.com>
7546
adfac8df 7547 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 7548
c7dc8804
JM
75492011-03-25 Jason Merrill <jason@redhat.com>
7550
7551 * c.opt: Add -std=c++03.
7552
d1d879b1
EB
75532011-03-22 Eric Botcazou <ebotcazou@adacore.com>
7554
7555 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
7556
3f8257db 75572011-03-17 Kai Tietz <ktietz@redhat.com>
62d784f7
KT
7558
7559 PR target/12171
5050afdf
KT
7560 * c-pretty-print.c (pp_c_specifier_qualifier_list):
7561 Display allowed attributes for function pointer types.
7562 (pp_c_attributes_display): New function to display
7563 attributes having affects_type_identity flag set to true.
7564 * c-pretty-print.h (pp_c_attributes_display): New prototype.
7565
62d784f7
KT
7566 * c-common.c (c_common_attribute_table):
7567 Add new element.
7568 (c_common_format_attribute_table): Likewise.
7569
82d37118
JM
75702011-03-18 Jason Merrill <jason@redhat.com>
7571
49a000c3
JM
7572 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
7573 * c-common.h: Don't declare it here.
7574 * c-common.c: Or define it here.
7575 * c-opts.c (c_common_handle_option): Or set it here.
7576
82d37118
JM
7577 PR c++/35315
7578 * c-common.c (handle_transparent_union_attribute): Don't
7579 make a duplicate type in C++.
7580
17bc631c
JM
75812011-03-15 Jason Merrill <jason@redhat.com>
7582
7583 * c-common.c (max_constexpr_depth): New.
7584 * c-common.h: Declare it.
7585 * c-opts.c (c_common_handle_option): Set it.
7586 * c.opt (fconstexpr-depth): New option.
7587
1b9b91a6
JM
75882011-03-11 Jason Merrill <jason@redhat.com>
7589
f231b5ff
JM
7590 * c-common.c (attribute_takes_identifier_p): Add missing const.
7591
1b9b91a6
JM
7592 PR c++/46803
7593 * c-common.c (attribute_takes_identifier_p): Assume that an
7594 unknown attribute takes an identifier.
7595
a19e4d44
NF
75962011-03-07 Nathan Froyd <froydnj@codesourcery.com>
7597
7598 PR c/47786
7599 * c-common.c (c_type_hash): Call list_length instead of iterating
7600 through DECL_CHAIN. Rename 'i' to 'n_elements'.
7601
982d62f6
JJ
76022011-02-19 Jakub Jelinek <jakub@redhat.com>
7603
7604 PR c/47809
7605 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
7606
0a256240
NP
76072011-02-17 Iain Sandoe <iains@gcc.gnu.org>
7608
7609 * c.opt (fobjc-abi-version=) New.
7610 (fobjc-nilcheck): New.
7611
ba9e6dd5
NF
76122011-02-03 Nathan Froyd <froydnj@codesourcery.com>
7613
7614 PR c++/46890
7615 * c-common.h (keyword_is_decl_specifier): Declare.
7616 * c-common.c (keyword_is_decl_specifier): Define.
7617 (keyword_is_function_specifier): New function.
7618
7273813a
JJ
76192011-01-26 Jakub Jelinek <jakub@redhat.com>
7620
7621 PR c/47473
7622 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
7623 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
7624 REAL_TYPE.
7625
908ef79b
AC
76262011-01-26 Arnaud Charlet <charlet@adacore.com>
7627
7628 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
7629
237e9384
JJ
76302011-01-26 Jakub Jelinek <jakub@redhat.com>
7631
7632 PR pch/47430
7633 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
7634 after init_c_lex if pch_file is set.
7635
47ea1edf
DK
76362011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
7637
d4dba752 7638 PR c++/43601
47ea1edf
DK
7639 * c.opt (-fkeep-inline-dllexport): New switch.
7640
2aa9c6ae
RG
76412011-01-12 Richard Guenther <rguenther@suse.de>
7642
7643 PR middle-end/32511
7644 * c-common.c (handle_weak_attribute): Warn instead of error
7645 on declaring an inline function weak.
7646
7bd11157
TT
76472011-01-05 Tom Tromey <tromey@redhat.com>
7648
7649 * c-common.h (lvalue_error): Update.
7650 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
7651 not error.
7652
0e66e494 76532010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 7654
b4f588c4
NP
7655 PR objc/47075
7656 * c-objc.h (objc_finish_message_expr): Added argument to
7657 prototype.
7658
f4da8dce
NF
76592010-12-22 Nathan Froyd <froydnj@codesourcery.com>
7660
7661 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
7662 Use prototype_p.
7663
46270f14
NP
76642010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
7665
7666 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 7667 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 7668
4816c593
NF
76692010-12-10 Nathan Froyd <froydnj@codesourcery.com>
7670
7671 * c-common.h (readonly_error): Declare.
7672 * c-common.c (readonly_error): Define.
7673
7a6daeb0
NF
76742010-12-09 Nathan Froyd <froydnj@codesourcery.com>
7675
7676 * c-common.h (invalid_indirection_error): Declare.
7677 * c-common.c (invalid_indirection_error): Define.
7678
892f6119
RG
76792010-12-03 Richard Guenther <rguenther@suse.de>
7680
7681 PR c/46745
7682 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
7683 (pp_c_unary_expression): Likewise.
7684 (pp_c_expression): Likewise.
7685
6c39e757
NP
76862010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
7687
7688 * c-common.h (objc_finish_function): New.
7689 (objc_non_volatilized_type): Removed.
7690 (objc_type_quals_match): Removed.
7691 * stub-objc.c (objc_finish_function): New.
7692 (objc_non_volatilized_type): Removed.
7693 (objc_type_quals_match): Removed.
9faeb493 7694
7c475d11
JM
76952010-11-30 Joseph Myers <joseph@codesourcery.com>
7696
7697 * c-common.h (parse_optimize_options): Declare.
7698 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
7699 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
7700
71f3e391
JM
77012010-11-29 Joseph Myers <joseph@codesourcery.com>
7702
7703 * c-opts.c (check_deps_environment_vars): Use getenv instead of
7704 GET_ENVIRONMENT.
7705 * c-pch.c (O_BINARY): Don't define here.
7706 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
7707
d5fabb58
JM
77082010-11-25 Joseph Myers <joseph@codesourcery.com>
7709
7710 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
7711 targetm.except_unwind_info.
7712
299404a1
JM
77132010-11-23 Joseph Myers <joseph@codesourcery.com>
7714
7715 * c-opts.c (c_common_handle_option): Pass location to
7716 set_struct_debug_option.
7717
c98cd5bf
JM
77182010-11-23 Joseph Myers <joseph@codesourcery.com>
7719
7720 * c-common.c (visibility_options): Move from ../opts.c.
7721 * c-common.h (struct visibility_flags, visibility_options):
7722 Declare here.
7723 * c-opts.c (finish_options): Rename to c_finish_options.
7724 (c_common_init): Update call to finish_options.
7725
a9546771
NP
77262010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
7727
7728 PR objc/34033
7729 * c-lex.c (lex_string): Check that each string in an Objective-C
7730 string concat sequence starts with either one or zero '@', and
7731 that there are no spurious '@' signs at the end.
7732
24a57808
JM
77332010-11-20 Joseph Myers <joseph@codesourcery.com>
7734
7735 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
7736 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
7737 HANDLE_PRAGMA_VISIBILITY.
7738 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
7739 HANDLE_PRAGMA_VISIBILITY): Don't define.
7740 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
7741
a9aa2c3a
NF
77422010-11-20 Nathan Froyd <froydnj@codesourcery.com>
7743
7744 PR c++/16189
7745 PR c++/36888
7746 PR c++/45331
7747 * c-common.h (keyword_begins_type_specifier): Declare.
7748 (keyword_is_storage_class_specifier): Declare.
7749 (keyword_is_type_qualifier): Declare.
7750 * c-common.c (keyword_begins_type_specifier): New function.
7751 (keyword_is_storage_class_specifier): New function.
7752 (keyword_is_type_qualifier): Declare.
7753
5386338c
JM
77542010-11-19 Joseph Myers <joseph@codesourcery.com>
7755
7756 PR c/46547
7757 * c-common.c (in_late_binary_op): Define.
7758 (c_common_truthvalue_conversion): Check in_late_binary_op before
7759 calling c_save_expr.
7760 * c-common.h (in_late_binary_op): Declare.
7761
69ccdddb
JM
77622010-11-19 Joseph Myers <joseph@codesourcery.com>
7763
7764 * c-opts.c (c_common_handle_option): Update calls to
7765 set_struct_debug_option.
7766
6b192a09
NP
77672010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
7768
7769 * c-common.h (objc_declare_protocols): Added additional argument.
7770 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 7771
fb52b50a
NF
77722010-11-18 Nathan Froyd <froydnj@codesourcery.com>
7773
7774 PR c/33193
7775 * c-common.h (build_real_imag_expr): Declare.
7776 * c-semantics.c (build_real_imag_expr): Define.
7777
b37421c6
JM
77782010-11-17 Joseph Myers <joseph@codesourcery.com>
7779
7780 * c-opts.c (c_common_parse_file): Take no arguments.
7781 * c-common.h (c_common_parse_file): Update prototype.
7782
07078664
JJ
77832010-11-16 Jakub Jelinek <jakub@redhat.com>
7784
7785 PR c++/46401
7786 * c-common.c (warning_candidate_p): Don't track non-const calls
7787 or STRING_CSTs.
7788
c6a13190
ILT
77892010-11-15 Ian Lance Taylor <iant@google.com>
7790
7791 * c-lex.c (init_c_lex): Set macro debug callbacks if
7792 flag_dump_go_spec is set.
7793
925e8657
NP
77942010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
7795
7796 * c-common.h (objc_build_incr_expr_for_property_ref): New.
7797 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
7798
bb0a9581
NF
77992010-11-15 Nathan Froyd <froydnj@codesourcery.com>
7800
7801 PR preprocessor/45038
7802 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
7803 dialects.
7804
c5fa0890
JM
78052010-11-12 Joseph Myers <joseph@codesourcery.com>
7806
7807 * c-common.h (c_family_lang_mask): Declare.
7808 * c-opts.c (c_family_lang_mask): Make extern.
7809 * c-pragma.c (handle_pragma_diagnostic): Use
7810 control_warning_option.
7811
a4d8c676
JM
78122010-11-12 Joseph Myers <joseph@codesourcery.com>
7813
7814 * c-common.c (parse_optimize_options): Update call to
7815 decode_options.
7816 * c-common.h (c_common_handle_option): Update prototype.
7817 * c-opts.c (c_common_handle_option): Take location_t parameter and
7818 pass it to other functions.
7819
f954bd2c
JM
78202010-11-11 Joseph Myers <joseph@codesourcery.com>
7821
7822 * c-opts.c (warning_as_error_callback): Remove.
7823 (c_common_initialize_diagnostics): Don't call
7824 register_warning_as_error_callback.
7825 (c_common_handle_option): Handle -Werror=normalized= here.
7826
d8a07487
JM
78272010-11-10 Joseph Myers <joseph@codesourcery.com>
7828
7829 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
7830 in diagnostic.
7831 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
7832 letter.
7833 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
7834 Remove trailing '.' from diagnostics.
7835 * c.opt (Wwrite-strings_: Avoid '`' in help text.
7836
d5478783
JM
78372010-11-10 Joseph Myers <joseph@codesourcery.com>
7838
7839 * c-common.c (parse_optimize_options): Pass global_dc to
7840 decode_options.
7841 * c-opts.c (c_common_handle_option): Pass &global_options to
7842 set_Wstrict_aliasing.
7843 * c.opt (v): Don't mark Common or document here.
7844
91ebb981
IS
78452010-11-06 Iain Sandoe <iains@gcc.gnu.org>
7846
7847 PR target/44981
7848 * c-format.c (format_type): New type gcc_objc_string_format_type.
7849 (valid_stringptr_type_p): New.
7850 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 7851 (check_format_string): Pass expected type, use
91ebb981
IS
7852 valid_stringptr_type_p (), check that the format string types are
7853 consistent with the format specification.
7854 (decode_format_attr): Warn if NSString is used outside objective-c.
7855 (format_types_orig): Add NSString.
7856 (format_name): New.
7857 (format_flags): New.
7858 (check_format_arg): Handle format strings requiring an external parser.
7859 first_target_format_type: New variable.
7860 (handle_format_attribute): Set up first_target_format_type, pass the
7861 expected format arg string type to check_format_string().
7862 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
7863 * stub-objc.c (objc_string_ref_type_p): New.
7864 (objc_check_format_arg): New.
7865
bede2adc
NP
78662010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
7867
9faeb493 7868 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
7869 * c-common.h (objc_build_class_component_ref): New.
7870 * stub-objc.c (objc_build_class_component_ref): New.
7871
9a179d01
NP
78722010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
7873
7874 * c.opt (Wproperty-assign-default): New option.
7875
22d8d616
NP
78762010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
7877
7878 Implemented -fobjc-std=objc1 flag.
7879 * c.opt (fobjc-std=objc1): New option.
7880
2debdb4f
NP
78812010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
7882
7883 Implemented format and noreturn attributes for Objective-C methods.
7884 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
7885 attribute for Objective-C methods.
7886
ec52b111
JM
78872010-10-31 Jason Merrill <jason@redhat.com>
7888
7889 * c-common.c (conversion_warning, warn_for_collisions_1): Use
7890 EXPR_LOC_OR_HERE.
7891
46a88c12
NP
78922010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
7893
7894 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
7895 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
7896 (objc_add_property_declaration): Removed arguments for copies and
7897 ivar.
7898 (objc_build_getter_call): Renamed to
7899 objc_maybe_build_component_ref.
7900 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
7901 (objc_is_property_ref): New.
7902 * c-common.c (c_common_reswords): Removed copies and ivar.
7903 * stub-objc.c (objc_add_property_declaration): Removed arguments
7904 for copies and ivar.
7905 (objc_build_getter_call): Renamed to
7906 objc_maybe_build_component_ref.
7907 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
7908 (objc_is_property_ref): New.
9faeb493 7909
1e4bf85b
AC
79102010-10-29 Arnaud Charlet <charlet@adacore.com>
7911 Matthew Gingell <gingell@adacore.com>
7912
7913 * c-ada-spec.c (separate_class_package): New function.
7914 (pp_ada_tree_identifier): Prefix references to C++ classes with the
7915 name of their enclosing package.
7916 (print_ada_declaration): Use separate_class_package.
7917
81f0bab2
JM
79182010-10-27 Jason Merrill <jason@redhat.com>
7919
2b08f2c5
JM
7920 * c-common.c (c_common_reswords): Add __is_literal_type.
7921 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
7922
81f0bab2
JM
7923 * c-common.c (check_case_value): Remove special C++ code.
7924
200290f2
NP
79252010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
7926
7927 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
7928 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
7929 and RID_LAST_PATTR.
7930 (objc_add_property_declaration): Added additional arguments.
7931 (objc_property_attribute_kind): Removed.
7932 (objc_set_property_attr): Removed.
7933 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
7934 copy and nonatomic.
7935 * stub-objc.c (objc_add_property_declaration): Added additional
7936 arguments.
7937 (objc_set_property_attr): Removed.
9faeb493 7938
f614132b
NP
79392010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
7940
7941 * c-common.h (objc_add_property_variable): Renamed to
7942 objc_add_property_declaration. Added location argument.
7943 * stub-objc.c (objc_add_property_variable): Same change.
b1726d6c 7944
b8a18805
NP
79452010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
7946
7947 * c-common.h (objc_maybe_printable_name): New.
7948 * stub-objc.c (objc_maybe_printable_name): New.
7949
3f8257db
JJ
79502010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
7951 Andrew Pinski <pinskia@gmail.com>
30cd1c5d
AS
7952
7953 * c-common.h (c_common_mark_addressable_vec): Declare.
7954 * c-common.c (c_common_mark_addressable_vec): New function.
7955
249a82c4
NP
79562010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
7957
7958 * c-common.h (objc_set_method_type): Removed.
7959 (objc_add_method_declaration): Added boolean argument.
7960 (objc_start_method_definition): Same change.
7961 (objc_build_method_signature): Same change.
7962 * stub-objc.c (objc_set_method_type): Removed.
7963 (objc_add_method_declaration): Added boolean argument.
7964 (objc_start_method_definition): Same change.
7965 (objc_build_method_signature): Same change.
7966
977e30bc
NP
79672010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
7968
7969 * c-common.h (finish_file): Removed.
7970 (objc_write_global_declarations): New.
7971 * c-opts.c (c_common_parse_file): Do not call finish_file.
7972 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 7973
da57d1b9
NP
79742010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
7975
7976 Implemented parsing @synthesize and @dynamic for
7977 Objective-C/Objective-C++.
7978 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
7979 (objc_add_synthesize_declaration): New.
7980 (objc_add_dynamic_declaration): New.
7981 * c-common.c (c_common_reswords): Add synthesize and dynamic.
7982 * stub-objc.c (objc_add_synthesize_declaration): New.
7983 (objc_add_dynamic_declaration): New.
9faeb493 7984
0069111f
MM
79852010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
7986
7987 PR target/46041
7988 * c-cppbuiltin.c (mode_has_fma): Move function here from
7989 builtins.c. Don't use the fma optab, instead just use the
7990 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
7991 using -save-temps.
7992
e426b47b
NP
79932010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
7994
7995 Merge from 'apple/trunk' branch on FSF servers.
0069111f 7996
3f8257db 7997 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
e426b47b 7998
9faeb493 7999 Radar 4330422
e426b47b
NP
8000 * c-common.h (objc_non_volatilized_type): New declaration
8001 * stub-objc.c (objc_non_volatilized_type): New stub.
8002
90fbfdc3
NP
80032010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
8004
e426b47b 8005 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3 8006
3f8257db 8007 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
90fbfdc3 8008
9faeb493 8009 Radar 4133425
90fbfdc3 8010 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 8011 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 8012
c37d8c30
IS
80132010-10-17 Iain Sandoe <iains@gcc.gnu.org>
8014
8015 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
8016 * c-common.h (enum rid): Add RID_AT_PACKAGE.
8017 (objc_ivar_visibility_kind): New enum.
8018 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 8019 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
8020 visibility enum.
8021
1b1562a5
MM
80222010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
8023
8024 * c-cppbuiltin.c (builtin_define_float_constants): Emit
8025 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
8026 has the appropriate fma builtins.
8027 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
8028
668ea4b1
IS
80292010-10-14 Iain Sandoe <iains@gcc.gnu.org>
8030
1b1562a5 8031 merge from FSF apple 'trunk' branch.
3f8257db 8032 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 8033
668ea4b1
IS
8034 Radars 4436866, 4505126, 4506903, 4517826
8035 * c-common.c (c_common_resword): Define @property and its attributes.
8036 * c-common.h: Define property attribute enum entries.
8037 (OBJC_IS_PATTR_KEYWORD): New.
8038 (objc_property_attribute_kind): New enum.
8039 Declare objc_set_property_attr (), objc_add_property_variable (),
8040 objc_build_getter_call () and objc_build_setter_call ().
8041 * stub-objc.c (objc_set_property_attr): New stub.
8042 (objc_add_property_variable): Likewise.
8043 (objc_build_getter_call): Likewise.
8044 (objc_build_setter_call) Likewise.
1b1562a5 8045
a1178b30
IS
80462010-10-13 Iain Sandoe <iains@gcc.gnu.org>
8047
1b1562a5 8048 merge from FSF apple 'trunk' branch.
3f8257db 8049 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
a1178b30
IS
8050
8051 Radar 3803157 (method attributes)
8052 * c-common.c (handle_deprecated_attribute): Recognize
8053 objc methods as valid declarations.
8054 * c-common.h: Declare objc_method_decl ().
1b1562a5 8055 * stub-objc.c (objc_method_decl): New stub.
a1178b30 8056
a75bfaa6
JM
80572010-10-08 Joseph Myers <joseph@codesourcery.com>
8058
8059 * c-common.c (parse_optimize_options): Call
8060 decode_cmdline_options_to_array_default_mask before
8061 decode_options. Update arguments to decode_options.
8062 * c-common.h (c_common_init_options_struct): Declare.
8063 * c-opts.c (c_common_init_options_struct): New. Split out from
8064 c_common_init_options.
8065
f05b9d93
NP
80662010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
8067
8068 Implemented fast enumeration for Objective-C.
8069 * c-common.h (objc_finish_foreach_loop): New.
8070 * stub-objc.c (objc_finish_foreach_loop): New.
8071
1ebe4b4f
JM
80722010-10-05 Joseph Myers <joseph@codesourcery.com>
8073
8074 * c-common.h (struct diagnostic_context): Don't declare here.
8075 (c_common_initialize_diagnostics): Declare using
8076 diagnostic_context typedef.
8077 * c-opts.c (c_common_handle_option): Pass global_dc to
8078 handle_generated_option.
8079
d4d24ba4
JM
80802010-10-04 Joseph Myers <joseph@codesourcery.com>
8081
8082 * c-opts.c (c_common_handle_option): Pass &global_options_set to
8083 handle_generated_option.
8084
478a1c5b
ILT
80852010-10-03 Ian Lance Taylor <iant@google.com>
8086
8087 * c.opt (-fplan9-extensions): New option.
8088
82a1c2fe
FXC
80892010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8090
8091 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
8092 Remove.
8093 (c_cpp_builtins): Call functions from cppbuiltin.c instead
8094 of duplicating code.
8095
92902b1b
IS
80962010-09-30 Iain Sandoe <iains@gcc.gnu.org>
8097
8098 * c-common.c: Add two new entries for @optional
8099 and @required keywords.
8100
8101 merge from FSF 'apple/trunk' branch.
3f8257db 8102 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
92902b1b
IS
8103
8104 Radar 4386773
8105 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
8106 objective-c keywords.
8107 (objc_set_method_opt): New declaration.
8108 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 8109
46625112
JM
81102010-09-30 Joseph Myers <joseph@codesourcery.com>
8111
8112 * c-common.c (handle_optimize_attribute): Pass &global_options to
8113 cl_optimization_save and cl_optimization_restore.
8114 * c-opts.c (c_common_handle_option): Pass &global_options to
8115 handle_generated_option.
8116 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
8117 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
8118 &global_options to cl_optimization_restore.
8119
49b91f05
NP
81202010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
8121
8122 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
8123 Objective-C/Objective-C++ keywords.
8124
13ed556f 81252010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 8126
9faeb493
UB
8127 Merge from 'apple/trunk' branch on FSF servers.
8128
3f8257db 8129 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
a6341d57
NP
8130
8131 Radar 4281748
8132 * c-common.h (objc_check_global_decl): New declaration.
8133 * stub-objc.c (objc_check_global_decl): New stub.
8134
f0036cca
JM
81352010-09-29 Joseph Myers <joseph@codesourcery.com>
8136
8137 * c.opt: Don't use VarExists.
8138
e3339d0f
JM
81392010-09-29 Joseph Myers <joseph@codesourcery.com>
8140
8141 * c-common.c (c_cpp_error): Update names of diagnostic_context
8142 members.
8143 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
8144 cl_optimization members.
8145 * c-opts.c (warning_as_error_callback, c_common_handle_option,
8146 sanitize_cpp_opts, finish_options): Update names of cpp_options
8147 members.
8148
1973201f
NP
81492010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
8150
8151 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
8152 (objc_is_reserved_word): Removed.
8153 * c-common.c: Updated comments.
8154 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
8155 objc_is_reserved_word.
8156 * stub-objc.c (objc_is_reserved_word): Removed.
8157
f7e71da5
IS
81582010-09-28 Iain Sandoe <iains@gcc.gnu.org>
8159
9faeb493 8160 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
8161 include attributes.
8162 (objc_start_method_definition): Likewise.
8163 (objc_build_keyword_decl): Likewise.
8164 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
8165 (objc_start_method_definition): Likewise.
8166 (objc_build_keyword_decl): Likewise.
8167
c165dca7
IS
81682010-09-28 Iain Sandoe <iains@gcc.gnu.org>
8169
8170 * c-common.h (objc_start_class_interface): Adjust prototype.
8171 (objc_start_category_interface): Likewise.
8172 (objc_start_protocol): Likewise.
8173 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
8174 (objc_start_class_interface): Likewise.
8175 (objc_start_category_interface): Likewise.
8176
7458026b
ILT
81772010-09-27 Ian Lance Taylor <iant@google.com>
8178
8179 * c-common.c (c_common_attribute_table): Add no_split_stack.
8180 (handle_no_split_stack_attribute): New static function.
8181
b581b85b
NP
81822010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
8183
9faeb493 8184 Merge from 'apple/trunk' branch on FSF servers.
b581b85b 8185
3f8257db 8186 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
b581b85b 8187
9faeb493 8188 Radar 4229905
b581b85b
NP
8189 * c-common.h (objc_have_common_type): New declaration.
8190 * stub-objc.c (objc_have_common_type): New stub.
8191
8192 2005-06-22 Ziemowit Laski <zlaski@apple.com>
8193
8194 Radar 4154928
8195 * c-common.h (objc_common_type): New prototype.
9faeb493 8196 * stub-objc.c (objc_common_type): New stub.
b581b85b 8197
46a4da10
JH
81982010-09-24 Jan Hubicka <jh@suse.cz>
8199
8200 * c-common.c (handle_leaf_attribute): New function.
8201 (struct attribute_spec c_common_att): Add leaf.
8202
e200444e
JM
82032010-09-22 Joseph Myers <joseph@codesourcery.com>
8204
8205 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
8206 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
8207 -dump, -dump=, -imacros, -imacros=, -include, -include=,
8208 -include-barrier, -include-directory, -include-directory=,
8209 -include-directory-after, -include-directory-after=,
8210 -include-prefix, -include-prefix=, -include-with-prefix,
8211 -include-with-prefix=, -include-with-prefix-after,
8212 -include-with-prefix-after=, -include-with-prefix-before,
8213 -include-with-prefix-before=, -no-integrated-cpp,
8214 -no-line-commands, -no-standard-includes, -no-warnings, -output,
8215 -output=, -pedantic, -pedantic-errors, -preprocess,
8216 -print-missing-file-dependencies, -trace-includes, -traditional,
8217 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
8218 -user-dependencies, -verbose, -write-dependencies,
8219 -write-user-dependencies, no-integrated-cpp, traditional): New.
8220
29a80ea6
NP
82212010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
8222
8223 PR objc/23710
ac1fc2fc
NP
8224 * c-common.h (objc_start_method_definition): Return bool instead
8225 of void.
8226 * stub-objc.c (objc_start_method_definition): Return bool instead
8227 of void.
8228
82292010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
8230
8231 PR objc/25965
8232 * c-common.h (objc_get_interface_ivars): New declaration.
8233 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 8234
de621752
ILT
82352010-09-15 Ian Lance Taylor <iant@google.com>
8236
8237 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 8238 messages. Remove period at end of warning message.
de621752 8239
ba885ec5
NS
82402010-09-09 Nathan Sidwell <nathan@codesourcery.com>
8241
8242 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
8243 (handle_alias_attribute): ... here.
8244 (handle_ifunc_attribute): New.
8245
c5ee1358
MM
82462010-09-06 Mark Mitchell <mark@codesourcery.com>
8247
8248 * c-common.h (do_warn_double_promotion): Declare.
8249 * c-common.c (do_warn_double_promotion): Define.
8250
0a0b3574
MM
82512010-09-05 Mark Mitchell <mark@codesourcery.com>
8252
8253 * c.opt (Wdouble-promotion): New.
8254
d1779886
JM
82552010-09-02 Joseph Myers <joseph@codesourcery.com>
8256
8257 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
8258 fvtable-thunks, fxref): Mark no longer supported in help text.
8259
2d2bd949
JM
82602010-09-02 Joseph Myers <joseph@codesourcery.com>
8261
8262 * c.opt (Wimport, fall-virtual, falt-external-templates,
8263 fdefault-inline, fenum-int-equiv, fexternal-templates,
8264 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
8265 fname-mangling-version-, fnew-abi, fnonnull-objects,
8266 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
8267 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
8268 applicable.
8269 (fhandle-exceptions): Mark with Alias and Warn.
8270 * c-opts.c (c_common_handle_option): Don't handle options marked
8271 as ignored.
8272
5de8299c
JM
82732010-09-02 Joseph Myers <joseph@codesourcery.com>
8274
8275 * c.opt (Wcomments, Werror-implicit-function-declaration,
8276 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
8277 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
8278 aliases.
8279 * c-common.c (option_codes): Use OPT_Wcomment instead of
8280 OPT_Wcomments.
8281 * c-opts.c (warning_as_error_callback, c_common_handle_option):
8282 Don't handle options marked as aliases.
8283
0ceb0201
RG
82842010-08-25 Richard Guenther <rguenther@suse.de>
8285
8286 * c-common.c (c_common_get_alias_set): Remove special
8287 handling for pointers.
8288
ac47786e
NF
82892010-08-20 Nathan Froyd <froydnj@codesourcery.com>
8290
8291 * c-common.c: Use FOR_EACH_VEC_ELT.
8292 * c-gimplify.c: Likewise.
8293 * c-pragma.c: Likewise.
8294
c878765b
JM
82952010-08-16 Joseph Myers <joseph@codesourcery.com>
8296
8297 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
8298 RejectDriver.
8299 (MMDX): Change back to MMD. Mark NoDriverArg instead of
8300 RejectDriver.
8301 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
8302 instead of OPT_MDX and OPT_MMDX.
8303
603349bf
JM
83042010-08-16 Joseph Myers <joseph@codesourcery.com>
8305
8306 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
8307
644fa7ac
JM
83082010-08-12 Joseph Myers <joseph@codesourcery.com>
8309
8310 * c.opt (MD, MMD): Change to MDX and MMDX.
8311 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
8312
481e1176
JM
83132010-08-11 Joseph Myers <joseph@codesourcery.com>
8314
8315 * c-opts.c (c_common_handle_option): Call handle_generated_option
8316 instead of handle_option.
8317
ac8dc9f7
NF
83182010-08-08 Nathan Froyd <froydnj@codesourcery.com>
8319
8320 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
8321 (maybe_apply_renaming_pragma): Delete unneeded declarations.
8322
4f8c876d
NF
83232010-08-08 Nathan Froyd <froydnj@codesourcery.com>
8324
8325 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
8326 (pending_redefine_extname): Change type to a VEC.
8327 (add_to_renaming_pragma_list): Update for new type of
8328 pending_redefine_extname.
ac8dc9f7 8329 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 8330
3b0c690e
AC
83312010-08-04 Arnaud Charlet <charlet@adacore.com>
8332
8333 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
8334 visited.
8335 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
8336 decide whether a type has already been declared/seen.
8337 Do not go to the original type.
8338 (dump_nested_types): New parameter forward.
8339 Generate forward declaration if needed and mark type as visited.
8340 (print_ada_declaration): Call dump_nested_types if not already done.
8341 Mark types as visited.
8342
1890bccc
JM
83432010-08-03 Joseph Myers <joseph@codesourcery.com>
8344
8345 * c.opt (-print-pch-checksum): Remove option.
8346 * c-opts.c (c_common_handle_option): Don't handle
8347 OPT_print_pch_checksum.
8348
5f20c657
JM
83492010-07-27 Joseph Myers <joseph@codesourcery.com>
8350
8351 * c-common.h (c_common_handle_option): Update prototype and return
8352 value type.
8353 * c-opts.c (c_common_handle_option): Update prototype and return
8354 value type. Update calls to handle_option and
8355 enable_warning_as_error.
8356
f551f80c
JJ
83572010-07-27 Jakub Jelinek <jakub@redhat.com>
8358
8359 PR c/45079
8360 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
8361
61ff2bdc
JM
83622010-07-27 Joseph Myers <joseph@codesourcery.com>
8363
8364 * c-common.h (c_common_missing_argument): Remove.
8365 * c-opts.c (c_common_missing_argument): Remove.
8366 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
8367 idirafter, imacros, include, isysroot, isystem, iquote): Add
8368 MissingArgError.
8369 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
8370
7a9bf9a4
JM
83712010-07-27 Joseph Myers <joseph@codesourcery.com>
8372
8373 * c-common.h (c_common_option_lang_mask,
8374 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
8375 New.
8376 (c_common_init_options): Update prototype.
8377 * c-opts.c (c_common_option_lang_mask): New.
8378 (c_common_initialize_diagnostics): Split out of
8379 c_common_init_options.
8380 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
8381 New.
8382 (c_common_init_options): Update prototype. Use decoded options in
8383 search for -lang-asm.
8384
910ad8de
NF
83852010-07-15 Nathan Froyd <froydnj@codesourcery.com>
8386
8387 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
8388 * c-format.c: Likewise.
8389
718f9c0f
MLI
83902010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
8391
8392 * c-common.h: Include diagnostic-core.h. Error if already
8393 included.
8394 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
8395
4d451982
MLI
83962010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
8397
adfac8df 8398 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
8399 Do not include expr.h
8400 (vector_mode_valid_p): Move here.
8401
119fe915
SB
84022010-06-21 DJ Delorie <dj@redhat.com>
8403
8404 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
8405 allow these pragmas anywhere.
8406
84072010-06-14 Jakub Jelinek <jakub@redhat.com>
8408
8409 PR bootstrap/44509
8410 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
8411 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
8412 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
8413 ggc_strdup instead of xstrdup.
8414
84152010-06-10 Jakub Jelinek <jakub@redhat.com>
8416
8417 * c-cppbuiltin.c: Include cpp-id-data.h.
8418 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
8419 (lazy_hex_fp_value): New function.
8420 (builtin_define_with_hex_fp_value): Provide definitions lazily.
8421
6662d794
MLI
84222010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
8423
8424 * c-gimplify.c: Do not include tree-flow.h
8425
38f8b050
JR
84262010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
8427
8428 PR other/44034
8429 * c-common.c: Rename targetm member:
8430 targetm.enum_va_list -> targetm.enum_va_list_p
8431
9589f23e
AS
84322010-06-28 Anatoly Sokolov <aesok@post.ru>
8433
8434 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
8435
3b06d379
SB
84362010-06-28 Steven Bosscher <steven@gcc.gnu.org>
8437
8438 * c-cppbuiltin.c: Do not include except.h.
8439
d166d4c3
AK
84402010-06-24 Andi Kleen <ak@linux.intel.com>
8441
9faeb493
UB
8442 * c-common.c (warn_for_omitted_condop): New.
8443 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 8444
70cb8be6
JM
84452010-06-21 Joseph Myers <joseph@codesourcery.com>
8446
8447 * c.opt (lang-objc): Remove.
8448 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
8449
a4c97feb
JR
84502010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
8451
8452 * c-opts.c: Include "tm_p.h".
8453
6e2f1956
JM
84542010-06-20 Joseph Myers <joseph@codesourcery.com>
8455
8456 * c-common.c (parse_optimize_options): Update call to
8457 decode_options.
8458
bc87224e
NF
84592010-06-18 Nathan Froyd <froydnj@codesourcery.com>
8460
8461 * c-common.c (record_types_used_by_current_var_decl): Adjust for
8462 new type of types_used_by_cur_var_decl.
8463
b49cf425
JR
84642010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
8465
8466 PR bootstrap/44512
8467 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
8468 for C++ standard compliance.
8469
59f9c2ed
JM
84702010-06-16 Jason Merrill <jason@redhat.com>
8471
8472 * c.opt: Add -Wnoexcept.
8473
33766b66
RG
84742010-06-16 Richard Guenther <rguenther@suse.de>
8475
8476 PR c/44555
8477 * c-common.c (c_common_truthvalue_conversion): Remove
8478 premature and wrong optimization concering ADDR_EXPRs.
8479
eff7e30c
AC
84802010-06-15 Arnaud Charlet <charlet@adacore.com>
8481
8482 * c-ada-spec.c (dump_sloc): Remove column info.
8483 (is_simple_enum): New function.
8484 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
8485 enum types when relevant.
8486
6312e84d
MLI
84872010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
8488
9faeb493 8489 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
8490 location.
8491
1cb42611
JM
84922010-06-10 Joseph Myers <joseph@codesourcery.com>
8493
8494 * c-opts.c (c_common_handle_option): Don't handle
8495 OPT_fshow_column.
8496
a9429e29
LB
84972010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8498
8499 * c-pragma.c (push_alignment): Use typed GC allocation.
8500 (handle_pragma_push_options): Likewise.
8501
8502 * c-common.c (parse_optimize_options): Likewise.
8503
8504 * c-common.h (struct sorted_fields_type): Add variable_size GTY
8505 option.
8506
5498f011
JM
85072010-06-07 Joseph Myers <joseph@codesourcery.com>
8508
8509 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
8510 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
8511 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
8512 flag_signed_bitfields, warn_strict_null_sentinel,
8513 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
8514 flag_gen_declaration, flag_no_gnu_keywords,
8515 flag_implement_inlines, flag_implicit_templates,
8516 flag_implicit_inline_templates, flag_optional_diags,
8517 flag_elide_constructors, flag_default_inline, flag_rtti,
8518 flag_conserve_space, flag_access_control, flag_check_new,
8519 flag_new_for_scope, flag_weak, flag_working_directory,
8520 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
8521 flag_enforce_eh_specs, flag_threadsafe_statics,
8522 flag_pretty_templates): Remove.
8523 * c-common.h (flag_preprocess_only, flag_nil_receivers,
8524 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
8525 flag_replace_objc_classes, flag_undef, flag_no_builtin,
8526 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
8527 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
8528 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
8529 flag_no_gnu_keywords, flag_implement_inlines,
8530 flag_implicit_templates, flag_implicit_inline_templates,
8531 flag_optional_diags, flag_elide_constructors, flag_default_inline,
8532 flag_rtti, flag_conserve_space, flag_access_control,
8533 flag_check_new, flag_new_for_scope, flag_weak,
8534 flag_working_directory, flag_use_cxa_atexit,
8535 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
8536 flag_threadsafe_statics, flag_pretty_templates,
8537 warn_strict_null_sentinel): Remove.
8538 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
8539 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
8540 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
8541 fimplicit-inline-templates, fimplicit-templates,
8542 flax-vector-conversions, fms-extensions, fnil-receivers,
8543 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
8544 frtti, fshort-double, fshort-enums, fshort-wchar,
8545 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
8546 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
8547 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
8548 gen-decls, undef): Use Var.
8549 (fdefault-inline, foptional-diags): Document as doing nothing.
8550 * c-opts.c (c_common_handle_option): Remove cases for options now
8551 using Var. Mark ignored options as such.
8552
39dabefd
SB
85532010-06-05 Steven Bosscher <steven@gcc.gnu.org>
8554
9faeb493 8555 * c-common.c: Moved to here from parent directory.
39dabefd
SB
8556 * c-common.def: Likewise.
8557 * c-common.h: Likewise.
8558 * c-cppbuiltin.c: Likewise.
8559 * c-dump.c: Likewise.
8560 * c-format.c: Likewise.
8561 * c-format.h : Likewise.
8562 * c-gimplify.c: Likewise.
8563 * c-lex.c: Likewise.
8564 * c-omp.c: Likewise.
8565 * c.opt: Likewise.
8566 * c-opts.c: Likewise.
8567 * c-pch.c: Likewise.
8568 * c-ppoutput.c: Likewise.
8569 * c-pragma.c: Likewise.
8570 * c-pragma.h: Likewise.
8571 * c-pretty-print.c: Likewise.
8572 * c-pretty-print.h: Likewise.
8573 * c-semantics.c: Likewise.
8574 * stub-objc.c: Likewise.
8575
8576 * c-common.c: Include gt-c-family-c-common.h.
8577 * c-pragma.c: Include gt-c-family-c-pragma.h.
8578\f
cbe34bb5 8579Copyright (C) 2010-2017 Free Software Foundation, Inc.
39dabefd
SB
8580
8581Copying and distribution of this file, with or without modification,
8582are permitted in any medium without royalty provided the copyright
8583notice and this notice are preserved.