]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
re PR debug/82718 (Bad DWARF5 .debug_loclists generation)
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
26edace6
DM
12017-11-20 David Malcolm <dmalcolm@redhat.com>
2
3 PR c/81404
4 * known-headers.cc: New file, based on material from c/c-decl.c.
5 (suggest_missing_header): Copied as-is.
6 (get_stdlib_header_for_name): New, based on get_c_name_hint but
7 heavily edited to add C++ support. Add some knowledge about
8 <limits.h>, <stdint.h>, and <wchar.h>.
9 * known-headers.h: Likewise.
10
6c7a259b
DM
112017-11-20 David Malcolm <dmalcolm@redhat.com>
12
13 * c-common.h (enum lookup_name_fuzzy_kind): Move to name-hint.h.
14 (lookup_name_fuzzy): Likewise. Convert return type from
15 const char * to name_hint. Add location_t param.
16 * name-hint.h: New header.
17
f9c59f7e
JJ
182017-11-19 Jakub Jelinek <jakub@redhat.com>
19
20 PR c/66618
21 PR c/69960
22 * c-common.h (c_fully_fold): Add LVAL argument defaulted to false.
23
1e39313a
JM
242017-11-16 Joseph Myers <joseph@codesourcery.com>
25
26 * c.opt (-std=c17, std=gnu17, -std=iso9899:2017): Refer to 2018
27 expected publication date of C17.
28 (-std=c18, -std=gnu18, -std=iso9899:2018): New option aliases.
29
3ca0dc60
JM
302017-11-15 Joseph Myers <joseph@codesourcery.com>
31
32 PR c/81156
33 * c-common.c (c_common_reswords): Add __builtin_tgmath.
34 * c-common.h (enum rid): Add RID_BUILTIN_TGMATH.
35
025d57f0
MS
362017-11-10 Martin Sebor <msebor@redhat.com>
37
38 PR c/81117
39 * c-common.c (catenate_strings): Use memcpy instead of strncpy.
40 * c-warn.c (sizeof_pointer_memaccess_warning): Handle arrays.
41 * c.opt (-Wstringop-truncation): New option.
42
1b6fa695
ML
432017-11-06 Martin Liska <mliska@suse.cz>
44
45 PR middle-end/82404
46 * c-opts.c (c_common_post_options): Set -Wreturn-type for C++
47 FE.
48 * c.opt: Set default value of warn_return_type.
49
64a5912c
DM
502017-10-31 David Malcolm <dmalcolm@redhat.com>
51
52 * c-common.c (binary_op_error): Update for renaming of
53 error_at_rich_loc.
54 (c_parse_error): Likewise.
55 * c-warn.c (warn_logical_not_parentheses): Likewise for
56 renaming of inform_at_rich_loc.
57 (warn_for_restrict): Likewise for renaming of
58 warning_at_rich_loc_n.
59
c76dc9c3
JM
602017-10-30 Joseph Myers <joseph@codesourcery.com>
61
62 * c.opt (std=c17, std=gnu17, std=iso9899:2017): New options.
63 * c-opts.c (set_std_c17): New function.
64 (c_common_init_options): Use gnu17 as default C version.
65 (c_common_handle_option): Handle -std=c17 and -std=gnu17.
66
ee5fd23a
MM
672017-10-27 Michael Meissner <meissner@linux.vnet.ibm.com>
68
69 * c-cppbuiltin.c (mode_has_fma): Add support for PowerPC KFmode.
70 (c_cpp_builtins): If a machine has a fast fma _Float<N> and
71 _Float<N>X variant, define __FP_FAST_FMA<N> and/or
72 __FP_FAST_FMA<N>X.
73
d1047465
MP
742017-10-23 Marek Polacek <polacek@redhat.com>
75
76 PR c/82681
77 * c-warn.c (warnings_for_convert_and_check): Fix typos.
78
9e878cf1
EB
792017-10-19 Eric Botcazou <ebotcazou@adacore.com>
80
81 * c-common.c (check_builtin_function_arguments): Also check arguments
82 of __builtin_alloca_with_align_and_max.
83
89b6abbb
DM
842017-10-17 David Malcolm <dmalcolm@redhat.com>
85
86 * c-format.c (format_warning_at_char): Pass UNKNOWN_LOCATION
87 rather than NULL to format_warning_va.
88 (check_format_types): Likewise when calling format_type_warning.
89 Remove code to extract source_ranges and source_range * in favor
90 of just a location_t.
91 (format_type_warning): Convert source_range * param to a
92 location_t.
93
39382c09
JJ
942017-10-13 Jakub Jelinek <jakub@redhat.com>
95
96 * c-gimplify.c (c_gimplify_expr): Handle [LR]ROTATE_EXPR like
97 [LR]SHIFT_EXPR.
98
62e1c678
DM
992017-10-12 David Malcolm <dmalcolm@redhat.com>
100
101 * c-common.c (enum missing_token_insertion_kind): New enum.
102 (get_missing_token_insertion_kind): New function.
103 (maybe_suggest_missing_token_insertion): New function.
104 * c-common.h (maybe_suggest_missing_token_insertion): New decl.
105
b90c9338
NS
1062017-10-11 Nathan Sidwell <nathan@acm.org>
107
108 * c-opts.c (add_prefixed_path): Change chain to incpath_kind.
109 (c_common_handle_option): Update incpath_kind names.
110
3a266bcd
ML
1112017-10-11 Martin Liska <mliska@suse.cz>
112
113 PR sanitizer/82490
114 * c-attribs.c (handle_no_sanitize_attribute): Report directly
115 Wattributes warning.
116
8e6cdc90
RS
1172017-10-10 Richard Sandiford <richard.sandiford@linaro.org>
118
119 * c-ada-spec.c (dump_generic_ada_node): Use wi::to_wide when
120 operating on trees as wide_ints.
121 * c-common.c (pointer_int_sum): Likewise.
122 * c-pretty-print.c (pp_c_integer_constant): Likewise.
123 * c-warn.c (match_case_to_enum_1): Likewise.
124 (c_do_switch_warnings): Likewise.
125 (maybe_warn_shift_overflow): Likewise.
126
802b38c9
JJ
1272017-10-10 Jakub Jelinek <jakub@redhat.com>
128
129 PR c/82437
130 * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_wide
131 instead of wide_int::from.
132
4e34b338
JJ
1332017-10-06 Jakub Jelinek <jakub@redhat.com>
134
135 PR c/82437
136 * c-warn.c (warn_tautological_bitwise_comparison): Instead of
137 using to_widest use wide_int with the larger of the two precisions.
138
4bc4b2b4
BE
1392017-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
140
141 * c-pretty-print.c (pp_c_parameter_type_list): Print ... for variadic
142 functions.
143
a1488398
RS
1442017-10-02 Richard Sandiford <richard.sandiford@linaro.org>
145
146 * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_widest
147 when combining the original unconverted comparison operands.
148
01c9fb68
JJ
1492017-09-29 Jakub Jelinek <jakub@redhat.com>
150
151 * c-attribs.c (handle_noipa_attribute): Don't add "stack_protect"
152 attribute.
153
6e3e8419
EB
1542017-09-29 Eric Botcazou <ebotcazou@adacore.com>
155
156 * c-ada-spec.c (to_ada_name): Add index parameter.
157 (pp_ada_tree_identifier): Likewise.
158 (dump_ada_macros): Adjust call to to_ada_name.
159 (struct overloaded_name_hash): New type.
160 (struct overloaded_name_hasher): Likewise.
161 (overloaded_names): New hash table.
162 (compute_overloading_index): New function.
163 (dump_ada_decl_name): Call it and pass the result to
164 pp_ada_tree_identifier.
165 (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
166 (dump_ada_function_declaration): Likewise.
167 (dump_generic_ada_node): Likewise.
168 (print_constructor): Likewise.
169 (print_destructor): Likewise.
170 (dump_ada_specs): Delete overloaded_names table.
171
79310774
EB
1722017-09-29 Eric Botcazou <ebotcazou@adacore.com>
173
174 * c-ada-spec.c (max_ada_macros): Move around.
175 (store_ada_macro_index): Likewise.
176 (source_file): Rename into...
177 (macro_source_file): ...this.
178 (count_ada_macro): Move around.
179 (store_ada_macro): Likewise.
180 (compare_macro): Likewise.
181 (print_ada_macros): Merge in...
182 (dump_ada_macros): ...this.
183 (source_file_base): Rename into...
184 (current_source_file): ...this.
185 (print_comment): Move around.
186 (dump_ada_nodes): Call dump_ada_declaration directly.
187 (struct with): Change type of limited field to bool.
188 (append_withs): Change type of limited_access parameter to bool.
189 (pp_ada_tree_identifie): Likewise.
190 (dump_ada_decl_nam): Likewise.
191 (dump_generic_ada_node): Likewise. Do not print the return type.
192 (to_ada_name): Change type of space_found parameter to bool.
193 (dump_ada_function_declaration): Return void and change type of
194 parameters to bool. Also print the return type for a function.
195 (print_ada_methods): Rename into...
196 (dump_ada_methods): ...this.
197 (print_ada_declaration): Rename into ...
198 (dump_ada_declaration): ...this. Do not print the return type.
199 (print_ada_struct_decl): Rename into...
200 (dump_ada_struct_decl): ...this.
201
7d386d45
JJ
2022017-09-29 Jakub Jelinek <jakub@redhat.com>
203
204 * c-attribs.c (handle_packed_attribute): Test DECL_C_BIT_FIELD
205 rather than DECL_INITIAL.
206 (common_handle_aligned_attribute): Likewise.
207
9ed32e27
AO
2082017-09-20 Alexandre Oliva <aoliva@redhat.com>
209
210 * c.opt (gen-decls): Add RejectNegative.
211
026a79f7
AS
2122017-09-15 Andrew Sutton <andrew.n.sutton@gmail.com>
213 Jakub Jelinek <jakub@redhat.com>
214
215 Add support for -std=c++2a.
216 * c-common.h (cxx_dialect): Add cxx2a as a dialect.
217 * opt.c: Add options for -std=c++2a and -std=gnu++2a.
218 * c-opts.c (set_std_cxx2a): New.
219 (c_common_handle_option): Set options when -std=c++2a is enabled.
220 (c_common_post_options): Adjust comments.
221 (set_std_cxx14, set_std_cxx17): Likewise.
222
4a8ca690
EB
2232017-09-15 Eric Botcazou <ebotcazou@adacore.com>
224
225 * c-pragma.c (handle_pragma_scalar_storage_order): Expand on error
226 message for non-uniform endianness and issue a warning in C++.
227
7b936140
JJ
2282017-09-15 Jakub Jelinek <jakub@redhat.com>
229
230 * c.opt (Wc++1z-compat): Change from option to undocumented alias.
231 (Wc++17-compat): Change from undocumented alias to option.
232 (Wnoexcept-type): Enable by Wc++17-compat instead of Wc++1z-compat,
233 change C++1z to C++17 in description.
234 (std=c++1z, std=gnu++1z): Change from option to undocumented
235 deprecated alias.
236 (std=c++17, std=gnu++17): Change from undocumented alias to option.
237 Adjust description.
238 * c-common.h (enum cxx_dialect): Rename cxx1z to cxx17.
239 * c-opts.c (set_std_cxx1z): Rename to ...
240 (set_std_cxx17): ... this.
241 (c_common_handle_option): Rename OPT_std_c__1z to OPT_std_c__17
242 and OPT_std_gnu__1z to OPT_std_gnu__17. Adjust set_std_cxx1z
243 caller.
244 (c_common_post_options): Use cxx17 instead of cxx1z. Adjust
245 comments.
246
12263f13
L
2472017-09-12 H.J. Lu <hongjiu.lu@intel.com>
248
249 * c-attribs.c (common_handle_aligned_attribute): Don't warn
250 function alignment if warn_if_not_aligned_p is true.
251
6836632e
NS
2522017-09-12 Nathan Sidwell <nathan@acm.org>
253
254 * c-common.c (field_decl_cmp, resort_data, resort_field_decl_cmp,
255 resort_sorted_fields): Move to c/c-decl.c.
256 * c-common.h (field_decl_cmp, resort_sorted_fields): Delete.
257 (struct sorted_fields_type): Move to c/c-lang.h.
258
019bf9ad
JW
2592017-09-09 Jonathan Wakely <jwakely@redhat.com>
260
261 PR c++/81852
262 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_threadsafe_static_init.
263
bc7fe952
MP
2642017-09-04 Marek Polacek <polacek@redhat.com>
265
266 PR c/81783
267 * c-warn.c (warn_tautological_bitwise_comparison): New function.
268 (warn_tautological_cmp): Call it.
269
de7c2c6a
BK
2702017-09-01 Boris Kolpackov <boris@codesynthesis.com>
271
272 * c-opts.c (c_common_finish): Write dependency information even if
273 there are errors.
274
d2e05fcb
JJ
2752017-09-01 Jakub Jelinek <jakub@redhat.com>
276
277 PR c/81887
278 * c-pragma.c (omp_pragmas): Move "ordered" entry from here to ...
279 (omp_pragmas_simd): ... here.
280 * c-omp.c (c_finish_omp_ordered): If clauses isn't simd clause alone,
281 create new clauses list containing just simd clause.
282
18e2a8b8
RS
2832017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
284 Alan Hayward <alan.hayward@arm.com>
285 David Sherwood <david.sherwood@arm.com>
286
287 * c-attribs.c (vector_mode_valid_p) Fold GET_MODE_INNER call
288 into scalar_mode_supported_p call.
289 (handle_mode_attribute): Update call to scalar_mode_supported_p.
290
16d22000
RS
2912017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
292 Alan Hayward <alan.hayward@arm.com>
293 David Sherwood <david.sherwood@arm.com>
294
295 * c-common.c (c_common_fixed_point_type_for_size): Use opt_scalar_mode
296 for the mode iterator.
297
b397965c
RS
2982017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
299 Alan Hayward <alan.hayward@arm.com>
300 David Sherwood <david.sherwood@arm.com>
301
302 * c-lex.c (interpret_fixed): Use SCALAR_TYPE_MODE.
303 * c-common.c (c_build_vec_perm_expr): Likewise.
304
357b7604
RS
3052017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
306 Alan Hayward <alan.hayward@arm.com>
307 David Sherwood <david.sherwood@arm.com>
308
309 * c-common.c (c_common_type_for_mode): Use as_a <scalar_int_mode>.
310
e05c94ba
RS
3112017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
312 Alan Hayward <alan.hayward@arm.com>
313 David Sherwood <david.sherwood@arm.com>
314
315 * c-attribs.c (handle_mode_attribute): Check for a scalar_int_mode
316 before calling targetm.addr_space.valid_pointer_mode.
317
5c20c4af
RS
3182017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
319 Alan Hayward <alan.hayward@arm.com>
320 David Sherwood <david.sherwood@arm.com>
321
322 * c-cppbuiltin.c (c_cpp_builtins): Use opt_scalar_float_mode.
323
c94843d2
RS
3242017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
325 Alan Hayward <alan.hayward@arm.com>
326 David Sherwood <david.sherwood@arm.com>
327
328 * c-common.c (c_common_fixed_point_type_for_size): Use new mode
329 iterators.
330 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
331
4e10a5a7
RS
3322017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
333 Alan Hayward <alan.hayward@arm.com>
334 David Sherwood <david.sherwood@arm.com>
335
336 * c-cppbuiltin.c (mode_has_fma): Prefix mode names with E_ in
337 case statements.
338
130fcab0
ML
3392017-08-29 Martin Liska <mliska@suse.cz>
340
341 PR other/39851
342 * c-common.c (parse_optimize_options): Add argument to function
343 call.
344 * c-pragma.c (handle_pragma_diagnostic): Likewise.
345
14e18d71
DM
3462017-08-24 David Malcolm <dmalcolm@redhat.com>
347
348 * c-lex.c (interpret_float): Use token location
349 when building an EXCESS_PRECISION_EXPR.
350
2f687306
DM
3512017-08-21 David Malcolm <dmalcolm@redhat.com>
352
353 * c-common.c (check_function_arguments): Add "arglogs" param; pass
354 it to check_function_format.
355 * c-common.h (check_function_arguments): Add vec<location_t> *
356 param.
357 (check_function_format): Likewise.
358 * c-format.c (struct format_check_context): Add field "arglocs".
359 (check_function_format): Add param "arglocs"; pass it to
360 check_format_info.
361 (check_format_info): Add param "arglocs"; use it to initialize
362 new field of format_ctx.
363 (check_format_arg): Pass format_ctx->arglocs to new param of
364 check_format_info_main.
365 (class argument_parser): New field "arglocs".
366 (argument_parser::argument_parser): Add "arglocs_" param and use
367 it to initialize new field.
368 (argument_parser::check_argument_type): Pass new arglocs field to
369 check_format_types.
370 (check_format_info_main): Add param "arglocs", and use it when
371 constructing arg_parser.
372 (check_format_types): Add param "arglocs"; use it if non-NULL when
373 !EXPR_HAS_LOCATION (cur_param) to get at location information.
374
00aa1fa2
L
3752017-08-18 H.J. Lu <hongjiu.lu@intel.com>
376
377 PR c/53037
378 * c-attribs.c (handle_warn_if_not_aligned_attribute): New.
379 (c_common_attribute_table): Add warn_if_not_aligned.
380 (handle_aligned_attribute): Renamed to ...
381 (common_handle_aligned_attribute): Remove argument, name, and add
382 argument, warn_if_not_aligned. Handle warn_if_not_aligned.
383 (handle_aligned_attribute): New.
384 * c.opt: Add -Wif-not-aligned and -Wpacked-not-aligned.
385
27be025d
MS
3862017-08-14 Martin Sebor <msebor@redhat.com>
387
388 PR c/81117
389 * c-attribs.c (c_common_attribute_table): Add nonstring entry.
390 (handle_nonstring_attribute): New function.
391
da67acb9
MS
3922017-08-14 Martin Sebor <msebor@redhat.com>
393
394 PR c/81117
395 * c-format.h (T89_G): New macro.
396 * c-format.c (local_gcall_ptr_node): New variable.
397 (init_dynamic_diag_info): Initialize it.
398
a8b522b4
ML
3992017-08-11 Martin Liska <mliska@suse.cz>
400
401 * c-opts.c (c_common_post_options): Replace ASM_OUTPUT_DEF with
402 TARGET_SUPPORTS_ALIASES.
403
32129a17
DM
4042017-08-10 David Malcolm <dmalcolm@redhat.com>
405
406 * c-common.c (c_parse_error): Add rich_location * param, using it
407 rather implicitly using input_location.
408 * c-common.h (c_parse_error): Add rich_location * param.
409
30af3a2b
MP
4102017-08-09 Marek Polacek <polacek@redhat.com>
411
412 * c-common.c (pointer_int_sum): Use true/false instead of 1/0.
413 (c_common_truthvalue_conversion): Likewise.
414 * c-omp.c (c_finish_omp_atomic): Likewise.
415 * c-common.h (build_binary_op): Update declaration.
416
314e6352
ML
4172017-08-08 Martin Liska <mliska@suse.cz>
418
419 * c-ada-spec.c: Include header files.
420 * c-ubsan.c: Likewise.
421 * c-warn.c: Likewise.
422
56b5041c
JJ
4232017-08-07 Jakub Jelinek <jakub@redhat.com>
424
425 PR c/69389
426 * c-omp.c (c_finish_omp_atomic): Handle atomics on bitfields.
427
db440138
EB
4282017-08-07 Eric Botcazou <ebotcazou@adacore.com>
429
430 * c-ada-spec.c (has_nontrivial_methods): Test for FUNCTION_DECL.
431 (print_ada_methods): Likewise.
432 (print_ada_declaration): Likewise.
433
577eec56
ML
4342017-08-07 Martin Liska <mliska@suse.cz>
435
436 * array-notation-common.c: Add new includes.
437 * c-format.c( handle_format_attribute): Canonicalize a format
438 function name.
439 * c-lex.c (c_common_has_attribute): Canonicalize name of an
440 attribute.
441 * c-pretty-print.c: Add new include.
442
b854df3c
EB
4432017-08-05 Eric Botcazou <ebotcazou@adacore.com>
444
445 * c-ada-spec.c (has_static_fields): Look only into variables.
446 (print_constructor): Add TYPE parameter and use it for the name.
447 (print_destructor): Likewise.
448 (print_ada_declaration): Adjust to new constructor/destructor names.
449 Adjust calls to print_constructor and print_destructor.
450 (print_ada_struct_decl): Do not test TREE_STATIC on FIELD_DECL.
451 Look only into variables in the final loop.
452
9f2cb25e
EB
4532017-08-01 Eric Botcazou <ebotcazou@adacore.com>
454
455 * c-ada-spec.c (has_static_fields): Look only into fields.
456 (dump_generic_ada_node): Small tweak.
457 (dump_nested_types): Look only into fields.
458 (print_ada_declaration): Look only into methods. Small tweak.
459 (print_ada_struct_decl): Look only into fields. Use DECL_VIRTUAL_P.
460
f4bcd9eb
EB
4612017-08-01 Eric Botcazou <ebotcazou@adacore.com>
462
463 * c-ada-spec.c (print_generic_ada_decl): Pass correctly-typed constant.
464 (dump_ada_function_declaration): Likewise.
465 (dump_generic_ada_node): Likewise.
466 (print_ada_declaration): Add support for const-qualified variables.
467
f34ebeb2
ML
4682017-07-31 Martin Liska <mliska@suse.cz>
469
470 PR sanitize/81530
471 * c-ubsan.c (ubsan_maybe_instrument_array_ref):
472 Guard condition with flag_sanitize_p also with current_function_decl
473 non-null equality.
474 (ubsan_maybe_instrument_reference_or_call): Likewise.
475
218e5d04
UB
4762017-07-30 Uros Bizjak <ubizjak@gmail.com>
477
478 * c-format.c (asm_fprintf_char_table): Add 'z' to format_chars.
479
942047f2
EB
4802017-07-29 Eric Botcazou <ebotcazou@adacore.com>
481
482 * c-ada-spec.c (dump_generic_ada_node): Take into account signedness
483 for enumeral types.
484 (print_ada_declaration): Add missing guard for record types.
485
a40ff0ae
JJ
4862017-07-27 Jakub Jelinek <jakub@redhat.com>
487
488 PR c/45784
489 * c-omp.c (c_finish_omp_for): If the condition is wrapped in
490 rhs of COMPOUND_EXPR(s), skip them and readd their lhs into
491 new COMPOUND_EXPRs around the rhs of the comparison.
492
06bd22f6
MP
4932017-07-27 Marek Polacek <polacek@redhat.com>
494
495 PR c/81417
496 * c-warn.c (warn_for_sign_compare): Tweak the warning message. Print
497 the types.
498
036ea399
JJ
4992017-07-27 Jakub Jelinek <jakub@redhat.com>
500
501 * c-attribs.c (c_common_attribute_table): Add noipa attribute.
502 (handle_noipa_attribute): New function.
503
417ca011
TD
5042017-07-07 Torsten Duwe <duwe@suse.de>
505
506 * c-attribs.c (c_common_attribute_table): Add entry for
507 "patchable_function_entry".
508
5aaa8fb4
NS
5092017-07-20 Nathan Sidwell <nathan@acm.org>
510
511 Remove TYPE_METHODS.
512 * c-ada-spec.c (is_tagged_type, has_nontrivial_methods,
513 dump_ada_template, print_ada_methods,
514 print_ada_declaration): Member fns are on TYPE_FIELDS.
515
ff22eb12
NS
5162017-07-18 Nathan Sidwell <nathan@acm.org>
517
518 * c-warn.c (warn_for_memset): Use TYPE_{MIN,MAX}_VALUE.
519
eea77d1f
DM
5202017-07-14 David Malcolm <dmalcolm@redhat.com>
521
522 * c-common.c (try_to_locate_new_include_insertion_point): New
523 function.
524 (per_file_includes_t): New typedef.
525 (added_includes_t): New typedef.
526 (added_includes): New variable.
527 (maybe_add_include_fixit): New function.
528 * c-common.h (maybe_add_include_fixit): New decl.
529
281ac396
MS
5302017-07-10 Martin Sebor <msebor@redhat.com>
531
532 PR other/81345
533 * c.opt (-Wstringop-overflow): Set defaults in LangEnabledBy.
534
b6f43128
DM
5352017-07-06 David Malcolm <dmalcolm@redhat.com>
536
537 * c-common.c (selftest::c_family_tests): New.
538 * c-common.h (selftest::run_c_tests): Move decl to c/c-lang.h.
539 (selftest::c_family_tests): New decl.
540
efbf55b0
MP
5412017-07-04 Marek Polacek <polacek@redhat.com>
542
543 PR c/81231
544 * c-common.c (sync_resolve_size): Give error for pointers to incomplete
545 types.
546
6c86bd88
MP
5472017-07-04 Marek Polacek <polacek@redhat.com>
548
549 * c-warn.c (warn_if_unused_value): Remove WITH_CLEANUP_EXPR handling.
550
17a7218b
ML
5512017-06-28 Martin Liska <mliska@suse.cz>
552
553 PR ipa/81128
554 * c-attribs.c (handle_alias_ifunc_attribute): Append ifunc alias
555 to a function declaration.
556
63010089
ML
5572017-06-28 Martin Liska <mliska@suse.cz>
558
559 PR driver/79659
560 * c.opt: Add IntegerRange to various options.
561
3e2becc4
MP
5622017-06-26 Marek Polacek <polacek@redhat.com>
563
564 PR c/80116
565 * c-common.h (warn_for_multistatement_macros): Declare.
566 * c-warn.c: Include "c-family/c-indentation.h".
567 (warn_for_multistatement_macros): New function.
568 * c.opt (Wmultistatement-macros): New option.
569 * c-indentation.c (guard_tinfo_to_string): No longer static.
570 Change the parameter type to "enum rid". Handle RID_SWITCH.
571 * c-indentation.h (guard_tinfo_to_string): Declare.
572
2db9b7cd
MG
5732017-06-23 Marc Glisse <marc.glisse@inria.fr>
574
575 * c-common.c (c_common_nodes_and_builtins): Use builtin_structptr_types.
576
c3684b7b
MS
5772017-06-15 Martin Sebor <msebor@redhat.com>
578
579 PR c++/80560
580 * c.opt (-Wclass-memaccess): New option.
581
e72c4afd
BK
5822017-06-14 Boris Kolpackov <boris@codesynthesis.com>
583
584 * c-opts.c (c_common_finish): Handle '-' special value to -MF.
585
8a516588
MP
5862017-06-13 Marek Polacek <polacek@redhat.com>
587
588 PR objc/80949
589 * c-warn.c (do_warn_duplicated_branches): Return if any of the
590 branches is null.
591
45b2222a
ML
5922017-06-13 Martin Liska <mliska@suse.cz>
593
594 PR sanitize/78204
595 * c-attribs.c (add_no_sanitize_value): New function.
596 (handle_no_sanitize_attribute): Likewise.
597 (handle_no_sanitize_address_attribute): Use the function.
598 (handle_no_sanitize_thread_attribute): New function.
599 (handle_no_address_safety_analysis_attribute): Use
600 add_no_sanitize_value.
601 (handle_no_sanitize_undefined_attribute): Likewise.
602 * c-common.h: Declare new functions.
603 * c-ubsan.c (ubsan_instrument_division): Use sanitize_flags_p.
604 (ubsan_instrument_shift): Likewise.
605 (ubsan_instrument_bounds): Likewise.
606 (ubsan_maybe_instrument_array_ref): Likewise.
607 (ubsan_maybe_instrument_reference_or_call): Likewise.
608
a01f151f
JM
6092017-06-11 Jason Merrill <jason@redhat.com>
610
611 * c-ada-spec.c, c-pragma.c: Use id_equal.
612
3de4ac6d
MP
6132017-06-04 Marek Polacek <polacek@redhat.com>
614
615 PR c/80919
616 * c-format.c (matching_type_p): Return false if any of the types
617 requires structural equality.
618
2474f48f
MS
6192017-06-02 Martin Sebor <msebor@redhat.com>
620
621 PR c/80892
622 * c-warn.c (conversion_warning): Use -Wconversion for integer
623 conversion and -Wfloat-conversion for floating one.
624
40ffd95f
BE
6252017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
626
627 * c.opt (Wsizeof-pointer-div): New warning option.
628
3fa4634c
VR
6292017-06-01 Volker Reichelt <v.reichelt@netcologne.de>
630
631 * c.opt (Wcatch-value): New shortcut for Wcatch-value=1.
632 (Wcatch-value=1): Enable by -Wall.
633
f012c8ef
DM
6342017-05-30 David Malcolm <dmalcolm@redhat.com>
635
636 * c-format.c (gcc_cxxdiag_char_table): Add 'H' and 'I' to
637 format_chars.
638 * c.opt (fdiagnostics-show-template-tree): New option.
639 (felide-type): New option.
640
63dbcd13
VR
6412017-05-25 Volker Reichelt <v.reichelt@netcologne.de>
642
643 * c.opt (Wcatch-value=): New C++ warning flag.
644
be136b5c
NS
6452017-05-24 Nathan Sidwell <nathan@acm.org>
646
647 * c=common.c (field_decl_cmp, resort_field_decl_cmp): Adjust T
648 const casts to avoid warning.
649
3cd211af
MS
6502017-05-24 Martin Sebor <msebor@redhat.com>
651
652 PR c/80731
653 * c-common.h (unsafe_conversion_p): Add a function argument.
654 * c-common.c (unsafe_conversion_p): Same.
655 Add type names and values to diagnostics.
656 (scalar_to_vector): Adjust.
657 * c-warn.c (constant_expression_error): Add a function argument.
658 Add type names and values to diagnostics.
659 (conversion_warning): Add a function argument.
660 Add type names and values to diagnostics.
661 (warnings_for_convert_and_check): Same.
662
1ff7be5a
JM
6632017-05-19 Jason Merrill <jason@redhat.com>
664
665 * c-warn.c (match_case_to_enum_1): Don't warn about enums with no
666 enumerators.
667
ff502317
BE
6682017-05-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
669
670 * c-format.c (locus): Move out of function scope,
671 add GTY attribute.
672
2a8a8d7b
NS
6732017-05-19 Nathan Sidwell <nathan@acm.org>
674
675 * c-opts.c (class_dump_file, class_dump_flags): Delete.
676 (c_common_parse_file): Remove class dump handling.
677 (get_dump_info): Likewise.
678
39aac208
RB
6792017-05-19 Richard Biener <rguenther@suse.de>
680
681 PR c++/80593
682 * c-warn.c (strict_aliasing_warning): Do not warn for accesses
683 to alias-set zero memory.
684
6ecd2339
BE
6852017-05-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
686
687 * c-format.c (local_tree_type_node): Add GTY attribute.
688
6574d78e
MP
6892017-05-18 Marek Polacek <polacek@redhat.com>
690
691 * c-common.c (c_common_type_for_size): Use NULL_TREE instead of 0.
692 (c_common_fixed_point_type_for_size): Likewise.
693 (c_common_type_for_mode): Likewise.
694 (shorten_compare): Likewise.
695 (c_promoting_integer_type_p): Use false/true instead of 0/1.
696 * c-pragma.c (maybe_apply_renaming_pragma): Use NULL_TREE instead of 0.
697
e3455240
MP
6982017-05-18 Marek Polacek <polacek@redhat.com>
699
700 * c-common.c (self_promoting_args_p): Change the return type to bool.
701 Use false/true instead of 0/1.
702 * c-common.h (self_promoting_args_p): Update.
703
3fa8871b
MP
7042017-05-17 Marek Polacek <polacek@redhat.com>
705
706 * c-common.c: Use NULL_TREE instead of 0 where appropriate.
707 * c-warn.c: Likewise.
708
b42cc3ca
VV
7092017-05-17 Ville Voutilainen <ville.voutilainen@gmail.com>
710
711 Implement new C++ intrinsics __is_assignable and __is_constructible.
712 * c-common.c (__is_assignable, __is_constructible): New.
713 * c-common.h (RID_IS_ASSIGNABLE, RID_IS_CONSTRUCTIBLE): Likewise.
714
1a817418
ML
7152017-05-17 Martin Liska <mliska@suse.cz>
716
717 * c-common.h: Introduce dump_flags_t type and
718 use it instead of int type.
719 * c-gimplify.c (c_genericize): Likewise.
720 * c-opts.c: Likewise.
721
b2fa0a8b
MP
7222017-05-17 Marek Polacek <polacek@redhat.com>
723
724 * c-common.c (c_save_expr): Remove.
725 (c_common_truthvalue_conversion): Remove a call to c_save_expr.
726 * c-common.h (c_save_expr): Remove declaration.
727
31c2d57d
VR
7282017-05-09 Volker Reichelt <v.reichelt@netcologne.de>
729
730 PR c/35441
731 * c-pretty-print.c (c_pretty_printer::expression): Handle MAX_EXPR,
732 MIN_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, LROTATE_EXPR, RROTATE_EXPR.
733 (c_pretty_printer::postfix_expression): Handle MAX_EXPR, MIN_EXPR.
734 (c_pretty_printer::multiplicative_expression): Handle EXACT_DIV_EXPR,
735 RDIV_EXPR.
736 (pp_c_shift_expression): Handle LROTATE_EXPR, RROTATE_EXPR.
737
684f84de
MP
7382017-05-09 Marek Polacek <polacek@redhat.com>
739
740 PR c/80525
741 * c-warn.c (unwrap_c_maybe_const): New.
742 (warn_logical_operator): Call it.
743
641da50a
NS
7442017-05-09 Nathan Sidwell <nathan@acm.org>
745
746 * c-common.c (c_register_builtin_type): Use pushdecl lang_hook.
747 * c-common.h (pushdecl_top_level, pushdecl): Don't declare here.
748
631238ac
MS
7492017-05-08 Martin Sebor <msebor@redhat.com>
750
751 PR translation/80280
752 * c-format.h (struct format_flag_spec): Add new member.
753 (T89_T): New macro.
754 * c-format.c (local_tree_type_node): New global.
755 (printf_flag_specs, asm_fprintf_flag_spec): Initialize new data.
756 (gcc_diag_flag_specs, scanf_flag_specs, strftime_flag_specs): Ditto.
757 (strfmon_flag_specs): Likewise.
758 (gcc_diag_char_table, gcc_cdiag_char_table): Split up specifiers
759 with distinct quoting properties.
760 (gcc_tdiag_char_table, gcc_cxxdiag_char_table): Same.
761 (flag_chars_t::validate): Add argument and handle bad quoting.
762 (check_format_info_main): Handle quoting problems.
763 (init_dynamic_diag_info): Simplify.
764
49f0c04c
JM
7652017-05-08 Jason Merrill <jason@redhat.com>
766
767 * c-opts.c (c_common_post_options): Update defaults for
768 flag_abi_version and flag_abi_compat_version.
769
56d35585
DM
7702017-05-05 David Malcolm <dmalcolm@redhat.com>
771
772 * c-common.c (c_cpp_error): Replace report_diagnostic
773 with diagnostic_report_diagnostic.
774
0f2c4a8f
MS
7752017-05-04 Martin Sebor <msebor@redhat.com>
776
777 PR translation/80280
778 * c-attribs.c (handle_alias_ifunc_attribute): Quote a %D directive.
779 (handle_weakref_attribute): Same.
780
6fe63fb4
NS
7812017-05-03 Nathan Sidwell <nathan@acm.org>
782
783 Canonicalize canonical type hashing
784 * c-common.c (complete_array_type): Use type_hash_canon.
785
815d9cc6
XR
7862017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
787
788 PR c++/80038
789 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): Remove
790 prototype.
791 (cilk_install_body_pedigree_operations): Likewise.
792 * cilk.c (cilk_set_spawn_marker): Mark functions that should be
793 detatched.
794 (cilk_gimplify_call_params_in_spawned_fn): Remove.
795 (cilk_install_body_pedigree_operations): Likewise.
796 (gimplify_cilk_spawn): Add EXPR_STMT and CLEANUP_POINT_EXPR
797 unwrapping.
798
f8a36447
JJ
7992017-04-27 Jakub Jelinek <jakub@redhat.com>
800
801 PR c++/80534
802 * c-common.c (complete_array_type): Only hash TYPE_TYPELESS_STORAGE
803 flag on non-aggregate element types.
804
7c145456
BE
8052017-04-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
806
807 * c-common.c (c_type_hasher, type_hash_table): Remove.
808 (c_common_get_alias_set): Remove unreachable code.
809 * c-opts.c (c_common_post_options): Make sure cc1 takes only one file.
810
c3cbcd45
VR
8112017-04-20 Volker Reichelt <v.reichelt@netcologne.de>
812
813 * c.opt (Wextra-semi): New C++ warning flag.
814
8a59d466
JJ
8152017-04-20 Jakub Jelinek <jakub@redhat.com>
816
817 PR middle-end/80423
818 * c-common.c (complete_array_type): Preserve TYPE_TYPELESS_STORAGE.
819
8487c9a5
JJ
8202017-04-18 Jakub Jelinek <jakub@redhat.com>
821
822 PR middle-end/79788
823 PR middle-end/80375
824 * c-common.c (c_common_type_for_mode): Don't handle
825 widest_*_literal_type_node here.
826 c_common_signed_or_unsigned_type): Likewise.
827 (c_common_nodes_and_builtins): Set widest_*_literal_type_node
828 to *intTI_type_node or *intDI_type_node depending on whether
829 TImode is supported by the target or not.
830
3ee0fb02
ML
8312017-04-10 Martin Liska <mliska@suse.cz>
832
833 PR sanitizer/80350
834 * c-ubsan.c (ubsan_instrument_shift): Evaluate RHS before
835 doing an UBSAN check.
836
5764ee3c
JW
8372017-04-03 Jonathan Wakely <jwakely@redhat.com>
838
839 * c-warn.c (do_warn_double_promotion): Fix typo in comment.
840
6f3af356
JJ
8412017-03-31 Jakub Jelinek <jakub@redhat.com>
842
843 PR c++/79572
844 * c-ubsan.h (ubsan_maybe_instrument_reference): Change argument to
845 tree *.
846 * c-ubsan.c (ubsan_maybe_instrument_reference): Likewise. Handle
847 not just NOP_EXPR to REFERENCE_TYPE, but also INTEGER_CST with
848 REFERENCE_TYPE.
849
f6a7a9d5
DM
8502017-03-31 David Malcolm <dmalcolm@redhat.com>
851
852 PR documentation/78732
853 * c.opt (Wendif-labels): Fix description to refer to
854 #else rather than #elif.
855
af88f557
JJ
8562017-03-31 Jakub Jelinek <jakub@redhat.com>
857
858 PR libstdc++/80251
859 * c-common.h (enum rid): Add RID_IS_AGGREGATE.
860 * c-common.c (c_common_reswords): Add __is_aggregate trait.
861
a9e4a1a5
JJ
8622017-03-27 Jakub Jelinek <jakub@redhat.com>
863
864 PR middle-end/80162
865 * c-common.c (c_common_mark_addressable_vec): Don't set
866 TREE_ADDRESSABLE on DECL_HARD_REGISTER.
867
3f01b620
MS
8682017-03-21 Martin Sebor <msebor@redhat.com>
869
870 PR c++/79548
871 * c-common.c (set_underlying_type): Mark type used only when
872 original del is declared unused.
873
2f6f187a
DM
8742017-03-10 David Malcolm <dmalcolm@redhat.com>
875
876 PR translation/79848
877 * c-format.c (check_format_string): Simplify uses of "%<%s%>" to
878 "%qs".
879
a02fa805
DM
8802017-03-10 David Malcolm <dmalcolm@redhat.com>
881
882 PR c/79921
883 * c-indentation.c (warn_for_misleading_indentation): Remove parens
884 from inform's message, so that xgettext can locate it.
885
822a132c
MP
8862017-03-09 Marek Polacek <polacek@redhat.com>
887
888 PR c++/79962
889 PR c++/79984
890 * c-attribs.c (handle_nonnull_attribute): Save the result of default
891 conversion to the attribute list.
892
bba81f1c
ML
8932017-03-09 Martin Liska <mliska@suse.cz>
894
895 * c-ada-spec.c (macro_length): Increment value instead of a pointer.
896
108154ff
JM
8972017-03-03 Jason Merrill <jason@redhat.com>
898
899 * c.opt (Wnoexcept-type): New.
900
eb0e7c34
RB
9012017-03-02 Richard Biener <rguenther@suse.de>
902
903 PR c/79756
904 * c-common.c (c_common_mark_addressable_vec): Look through
905 C_MAYBE_CONST_EXPR.
906
9453ba0a
ML
9072017-02-28 Martin Liska <mliska@suse.cz>
908
909 * c.opt: Replace space with tabular for options of <number>
910 type.
911
6a825afe
ML
9122017-02-28 Martin Liska <mliska@suse.cz>
913
914 * c.opt: Fix --help=option -Q for options which are of
915 an enum type.
916
4227c9ad
JJ
9172017-02-24 Jakub Jelinek <jakub@redhat.com>
918
919 PR c++/79588
920 * c-common.c (check_function_restrict): New function.
921 (check_function_arguments): Add FNDECL argument. Call
922 check_function_restrict if -Wrestrict.
923 * c-warn.c (warn_for_restrict): Remove ARGS argument, add ARGARRAY
924 and NARGS. Use auto_vec for ARG_POSITIONS, simplify.
925 * c-common.h (check_function_arguments): Add FNDECL argument.
926 (warn_for_restrict): Remove ARGS argument, add ARGARRAY and NARGS.
927
59909673
EB
9282017-02-24 Eric Botcazou <ebotcazou@adacore.com>
929
930 * c-ada-spec.c (dump_ada_function_declaration): Add comment about the
931 treatment of parameters with pointer-to-tagged type and tidy up.
932 (print_ada_methods): Remove the special treatment of C++ static member
933 functions.
934
54dcd526
ML
9352017-02-22 Martin Liska <mliska@suse.cz>
936
937 * c.opt: Replace inequality signs with square brackets
938 for -Wnornalized.
939
00bc9de3
JJ
9402017-02-21 Jakub Jelinek <jakub@redhat.com>
941
942 PR c++/79641
943 * c-attribs.c (handle_mode_attribute): Use build_qualified_type to
944 preserve quals.
945
97fcf744
JM
9462017-02-17 Joseph Myers <joseph@codesourcery.com>
947
948 * c-cppbuiltin.c (builtin_define_float_constants): Define
949 __DECIMAL_DIG__ to the value for long double.
950
c7545f1c
MP
9512017-02-15 Marek Polacek <polacek@redhat.com>
952
953 PR c/79515
954 * c-warn.c (do_warn_double_promotion): Don't warn if an invalid
955 conversion has occured.
956
c2e84327
DM
9572017-01-24 David Malcolm <dmalcolm@redhat.com>
958
959 * c-common.c (c_common_reswords): Add "__RTL".
960 * c-common.h (enum rid): Add RID_RTL.
961
2ebd93e1
MP
9622017-01-20 Marek Polacek <polacek@redhat.com>
963
964 PR c/64279
965 * c-common.h (do_warn_duplicated_branches_r): Declare.
966 * c-gimplify.c (c_genericize): Walk the function tree calling
967 do_warn_duplicated_branches_r.
968 * c-warn.c (expr_from_macro_expansion_r): New.
969 (do_warn_duplicated_branches): New.
970 (do_warn_duplicated_branches_r): New.
971 * c.opt (Wduplicated-branches): New option.
972
0d80ab91
DM
9732017-01-17 David Malcolm <dmalcolm@redhat.com>
974
975 PR c++/71497
976 * c-indentation.c (warn_for_misleading_indentation): Use the past
977 subjunctive in the note.
978
7f991c36
AH
9792017-01-17 Aldy Hernandez <aldyh@redhat.com>
980
981 PR c/79116
982 * array-notation-common.c (cilkplus_extract_an_triplets): Convert
983 start type to integer_type.
984
1c70261c
JJ
9852017-01-16 Jakub Jelinek <jakub@redhat.com>
986
987 PR driver/49726
988 * c.opt (gen-decls): Add Driver flag.
989
1ddca3f3
PC
9902017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
991
992 Revert:
993 2017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
994
995 PR c++/71737
996 * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
997
7d2f3f1d
PC
9982017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
999
1000 PR c++/71737
1001 * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
1002
bce6f760
MS
10032017-01-12 Martin Sebor <msebor@redhat.com>
1004
1005 (-Wformat-overflow): ...to this.
1006
bf5fbf46
MS
10072017-01-11 Martin Sebor <msebor@redhat.com>
1008
1009 PR c/78768
1010 * c.opt (-Walloca-larger-than, -Wformat-length, -Wformat-truncation):
1011 Also enable for LTO.
1012
e363df3f
JM
10132017-01-10 Jason Merrill <jason@redhat.com>
1014
1015 Implement P0195R2, C++17 variadic using.
1016 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_variadic_using.
1017
bd2c6270
JJ
10182017-01-09 Jakub Jelinek <jakub@redhat.com>
1019
1020 PR translation/79019
1021 PR translation/79020
1022 * c.opt (Wnormalized=): Fix typo in description.
1023
efcc8d38
MS
10242017-01-08 Martin Sebor <msebor@redhat.com>
1025
1026 PR middle-end/77708
1027 * c.opt (-Wformat-truncation): New option.
1028
435f3f7a
AO
10292017-01-06 Alexandre Oliva <aoliva@redhat.com>
1030
1031 * c-pretty-print.c (pp_c_tree_decl_identifier): Convert 16-bit
1032 value to unsigned short to fit in 4 hex digits without
1033 warnings.
1034
4e89adf9
EB
10352017-01-05 Eric Botcazou <ebotcazou@adacore.com>
1036
1037 * c.opt (fsso-struct): Add 'native' value.
1038
cd445b54
ML
10392017-01-05 Martin Liska <mliska@suse.cz>
1040
1041 PR pch/78970
1042 * c-opts.c (c_common_post_options): Reject '-' filename for a precompiled
1043 header.
1044
a9342885
MP
10452017-01-04 Marek Polacek <polacek@redhat.com>
1046
1047 PR c++/64767
1048 * c.opt (Wpointer-compare): New option.
1049
fc73e60c
JJ
10502017-01-04 Jakub Jelinek <jakub@redhat.com>
1051
1052 PR driver/78957
1053 * c.opt (fsso-struct=): Add RejectNegative.
1054
cbe34bb5
JJ
10552017-01-01 Jakub Jelinek <jakub@redhat.com>
1056
1057 Update copyright years.
1058
d4a6c0ea
ML
10592016-12-29 Martin Liska <mliska@suse.cz>
1060
1061 PR c/78933
1062 * c.opt (strong-eval-order): Add RejectNegative keyword.
1063
67a5ad7c
JM
10642016-12-22 Jason Merrill <jason@redhat.com>
1065
1066 Implement P0522R0, matching of template template arguments.
1067 * c-cppbuiltin.c (c_cpp_builtins): Define
1068 __cpp_template_template_args.
1069
0dba7960
JJ
10702016-12-21 Jakub Jelinek <jakub@redhat.com>
1071
1072 PR bootstrap/78817
1073 * c-common.c (struct nonnull_arg_ctx): New type.
1074 (check_function_nonnull): Return bool instead of void. Use
1075 nonnull_arg_ctx as context rather than just location_t.
1076 (check_nonnull_arg): Adjust for the new context type, set
1077 warned_p to true if a warning has been diagnosed.
1078 (check_function_arguments): Return bool instead of void.
1079 * c-common.h (check_function_arguments): Adjust prototype.
1080
31bfc9b9
JM
10812016-12-21 Jason Merrill <jason@redhat.com>
1082
1083 * c.opt (-fnew-ttp-matching): New flag.
1084 * c-opts.c (c_common_post_options): Default on if -std=c++1z.
1085
629b3d75
MJ
10862016-12-14 Martin Jambor <mjambor@suse.cz>
1087
1088 * c-omp.c: Include omp-general.h instead of omp-low.h.
1089 (c_finish_oacc_wait): Adjusted call to find_omp_clause to use its new
1090 name.
1091
474da67e
MS
10922016-12-14 Martin Sebor <msebor@redhat.com>
1093
1094 PR c/17308
1095 * c-common.c (check_nonnull_arg): Disable when optimization
1096 is enabled.
1097
fe366b87
MP
10982016-12-12 Marek Polacek <polacek@redhat.com>
1099
1100 PR c++/78647
1101 * c-common.c (attribute_fallthrough_p): Return false for
1102 error_mark_node.
1103
8bd9f164
MS
11042016-12-08 Martin Sebor <msebor@redhat.com>
1105
1106 PR c/78284
1107 * c.opt (-Walloc-zero, -Walloc-size-larger-than): New options.
1108
060162e0
MS
11092016-12-08 Martin Sebor <msebor@redhat.com>
1110
1111 PR c/78165
1d0cf89a
MS
1112 * c-pretty-print (pp_c_integer_constant): Avoid formatting type
1113 suffix.
060162e0 1114
ee92e7ba
MS
11152016-12-07 Martin Sebor <msebor@redhat.com>
1116
1117 PR c/53562
1118 PR middle-end/77784
1119 PR middle-end/78149
1120 PR middle-end/78138
1121 * c.opt (-Wstringop-overflow): New option.
1122
84b0769e
MO
11232016-12-02 Maxim Ostapenko <m.ostapenko@samsung.com>
1124
1125 * c-attribs.c (asan odr indicator): New attribute.
1126 (handle_asan_odr_indicator_attribute): New function.
1127
7fa6a965
PK
11282016-11-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1129
1130 * c-common.c (c_common_nodes_and_builtins): Remove initialization of
1131 ptrdiff_type_node;
1132
56d8ffc1
JG
11332016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
1134
1135 * c-common.c (excess_precision_mode_join): New.
1136 (c_ts18661_flt_eval_method): New.
1137 (c_c11_flt_eval_method): Likewise.
1138 (c_flt_eval_method): Likewise.
1139 * c-common.h (excess_precision_mode_join): New.
1140 (c_flt_eval_method): Likewise.
1141 * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): New.
1142 (cpp_iec_559_value): Call it.
1143 (c_cpp_builtins): Modify logic for __LIBGCC_*_EXCESS_PRECISION__,
1144 call c_flt_eval_method to set __FLT_EVAL_METHOD__ and
1145 __FLT_EVAL_METHOD_TS_18661_3__.
1146
04f0fcf7
JG
11472016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
1148
1149 * c-opts.c (c_common_post_options): Add logic to handle the default
1150 case for -fpermitted-flt-eval-methods.
1151
fb2675cb
PB
11522016-11-23 Paolo Bonzini <bonzini@gnu.org>
1153
1154 * c.opt (Wexpansion-to-defined): New.
1155
ec1c5694
JJ
11562016-11-23 Jakub Jelinek <jakub@redhat.com>
1157
1158 PR target/78451
1159 * c-pragma.c (handle_pragma_target): Don't replace
1160 current_target_pragma, but chainon the new args to the current one.
1161
730c9e75
NS
11622016-11-22 Nathan Sidwell <nathan@acm.org>
1163
1164 * array-notation-common.c (cilkplus_extract_an_trplets): Fix
cacd29be 1165 indentation and formatting.
730c9e75 1166
89990732
MS
11672016-11-21 Martin Sebor <msebor@redhat.com>
1168
1169 * c.opt (-fprintf-return-value): Enable by default.
1170
48330c93
BE
11712016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
1172
1173 PR c++/71973
1174 * c.opt (-Wbuiltin-declaration-mismatch): New warning.
1175 * c-common.c (c_common_nodes_and_builtins): Initialize
1176 const_tm_ptr_type_node.
1177
0d939c95
MP
11782016-11-16 Marek Polacek <polacek@redhat.com>
1179
1180 PR c/78285
1181 * c-common.c (c_add_case_label): Turn error_at calls into inform.
1182
8e745a17
JJ
11832016-11-14 Jakub Jelinek <jakub@redhat.com>
1184
1185 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_structured_bindings.
1186
1ee62b92 11872016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
8e745a17
JJ
1188 Richard Biener <rguenther@suse.de>
1189
1190 * c-common.h (c_common_resword): Add RID_GIMPLE, RID_PHI types.
1191 * c-common.h (enum rid): Add RID_GIMPLE, RID_PHI.
1192 * c.opt (fgimple): New option.
1ee62b92 1193
22b15758
UB
11942016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1195
1196 PR c/35503
1197 * c-common.h (warn_for_restrict): Declare.
1198 * c-warn.c: Include gcc-rich-location.h.
1199 (warn_for_restrict): New function.
1200 * c-format.c (gcc_tdiag_char_table): Add entry for "Z" specifier.
1201 (gcc_cdiag_char_table): Likewise.
1202 (gcc_cxxdiag_char_table): Likewise.
1203 * c.opt (Wrestrict): New option.
1204
4be719cd
EB
12052016-11-13 Eric Botcazou <ebotcazou@adacore.com>
1206
1207 * c-ada-spec.c (print_ada_declaration): For typedef declarations, look
1208 for nested types only if the type is a record or union and dump SLOC.
1209
4a826ca6
JM
12102016-11-09 Jason Merrill <jason@redhat.com>
1211
1212 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_template_auto.
1213
2e955d50
JJ
12142016-11-09 Jakub Jelinek <jakub@redhat.com>
1215
1216 * c-ubsan.c (ubsan_instrument_shift): Handle split
1217 -fsanitize=shift-base and -fsanitize=shift-exponent.
1218
51dc6603
JM
12192016-11-07 Jason Merrill <jason@redhat.com>
1220
1221 * c.opt (Wc++1z-compat): New.
1222 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_noexcept_function_type.
1223
6dc4a604
ML
12242016-11-07 Martin Liska <mliska@suse.cz>
1225
1226 * c-warn.c (warn_for_unused_label): Save all labels used
1227 in goto or in &label.
1228
b302001e
JM
12292016-11-03 Jason Merrill <jason@redhat.com>
1230
1231 * c-cppbuiltin.c (c_cpp_builtins): Correct
1232 __cpp_inheriting_constructors.
1233
31f7f784
JM
12342016-11-01 Jason Merrill <jason@redhat.com>
1235
2bc78e3c
JM
1236 * c-cppbuiltin.c (c_cpp_builtins): Update
1237 __cpp_inheriting_constructors.
1238
31f7f784
JM
1239 * c.opt (-fnew-inheriting-ctors): New.
1240 * c-opts.c: Default to on for ABI 11+.
1241
dcb466ec
JJ
12422016-10-31 Jakub Jelinek <jakub@redhat.com>
1243
1244 PR c++/77948
1245 * c.opt (fext-numeric-literals): Add Var and Init.
1246 * c-opts.c (c_common_handle_option): Don't clear
1247 cpp_opts->ext_numeric_literals for -std=c++{11,14,1z}.
1248 (c_common_post_options): Clear it here if not set
1249 explicitly.
1250
52e1b91e
AH
12512016-10-28 Aldy Hernandez <aldyh@redhat.com>
1252
1253 PR debug/77773
1254 * c-pretty-print.c (simple_type_specifier): Do not dereference `t'
1255 if NULL.
1256
e16f1cc7
JJ
12572016-10-25 Jakub Jelinek <jakub@redhat.com>
1258
1259 * c-common.h (enum rid): Add RID_BUILTIN_LAUNDER.
1260 * c-common.c (c_common_reswords): Add __builtin_launder.
1261
f8348061
BE
12622016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
1263
1264 * c-common.c (c_common_truthvalue_conversion): Warn for
1265 multiplications in boolean context. Fix the quoting of '<<' and '<'
1266 in the shift warning.
1267
eff89e01
BE
12682016-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
1269
1270 * c-common.c (c_common_truthvalue_conversion): Fix the comment.
1271
24bc7bf4
JM
12722016-10-20 Jason Merrill <jason@redhat.com>
1273
1274 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_concepts value.
1275
4c712374
BE
12762016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
1277
1278 * c-common.c (c_common_truthvalue_conversion): Warn only for signed
1279 integer shift ops in boolean context.
1280
12812016-10-18 Aldy Hernandez <aldyh@redhat.com>
adc577c5
AH
1282
1283 * c.opt (Walloca): New.
1284 (Walloca-larger-than=): New.
1285 (Wvla-larger-than=): New.
1286
8fa18c06
MP
12872016-10-17 Marek Polacek <polacek@redhat.com>
1288
1289 * c-warn.c (find_array_ref_with_const_idx_r): Remove parameter names.
1290 Return immediately when finding a match.
1291 (warn_tautological_cmp): Remove a boolean variable that is no longer
1292 needed.
1293
b12b1915
MP
12942016-10-17 Marek Polacek <polacek@redhat.com>
1295
1296 * c-attribs.c: New file.
1297 * c-common.c: Move attributes handling to c-attribs.c.
1298 (get_nonnull_operand): No longer static.
1299 * c-common.h: Move the declarations from c-attribs.c to its own section.
1300
2045acd9
JM
13012016-10-14 Jason Merrill <jason@redhat.com>
1302
1303 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_aggregate_bases
1304 and __cpp_deduction_guides.
1305
14a2c9aa
JM
13062016-10-13 Jason Merrill <jason@redhat.com>
1307
1308 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_inline_variables.
1309
4d0cdd0c
TP
13102016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
1311
1312 * c-cppbuiltin.c: Include memmodel.h.
1313 * c-opts.c: Likewise.
1314 * c-pragma.c: Likewise.
1315 * c-warn.c: Likewise.
1316
70f6d5e1
JJ
13172016-10-12 Jakub Jelinek <jakub@redhat.com>
1318
1319 * c.opt (Wextra): Add as C/C++/ObjC/ObjC++ option.
1320 (Wimplicit-fallthrough=): Enable for these languages by -Wextra.
1321 * c-opts.c (sanitize_cpp_opts): Initialize
1322 cpp_opts->cpp_warn_implicit_fallthrough.
1323
78f61294
MP
13242016-10-11 Marek Polacek <polacek@redhat.com>
1325
1326 * c-common.c (warning_candidate_p): Change the return type to bool
1327 and return true/false instead of 1/0.
1328 (vector_mode_valid_p): Likewise.
1329
038b5cc0
MP
13302016-10-11 Marek Polacek <polacek@redhat.com>
1331
1332 * c-common.c (fold_for_warn): No longer static.
1333 (bool_promoted_to_int_p): Likewise.
1334 (c_common_get_narrower): Likewise.
1335 (constant_expression_warning): Move to c-warn.c.
1336 (constant_expression_error): Likewise.
1337 (overflow_warning): Likewise.
1338 (warn_logical_operator): Likewise.
1339 (find_array_ref_with_const_idx_r): Likewise.
1340 (warn_tautological_cmp): Likewise.
1341 (expr_has_boolean_operands_p): Likewise.
1342 (warn_logical_not_parentheses): Likewise.
1343 (warn_if_unused_value): Likewise.
1344 (strict_aliasing_warning): Likewise.
1345 (sizeof_pointer_memaccess_warning): Likewise.
1346 (check_main_parameter_types): Likewise.
1347 (conversion_warning): Likewise.
1348 (warnings_for_convert_and_check): Likewise.
1349 (match_case_to_enum_1): Likewise.
1350 (match_case_to_enum): Likewise.
1351 (c_do_switch_warnings): Likewise.
1352 (warn_for_omitted_condop): Likewise.
1353 (readonly_error): Likewise.
1354 (lvalue_error): Likewise.
1355 (invalid_indirection_error): Likewise.
1356 (warn_array_subscript_with_type_char): Likewise.
1357 (warn_about_parentheses): Likewise.
1358 (warn_for_unused_label): Likewise.
1359 (warn_for_div_by_zero): Likewise.
1360 (warn_for_memset): Likewise.
1361 (warn_for_sign_compare): Likewise.
1362 (do_warn_double_promotion): Likewise.
1363 (do_warn_unused_parameter): Likewise.
1364 (record_locally_defined_typedef): Likewise.
1365 (maybe_record_typedef_use): Likewise.
1366 (maybe_warn_unused_local_typedefs): Likewise.
1367 (maybe_warn_bool_compare): Likewise.
1368 (maybe_warn_shift_overflow): Likewise.
1369 (warn_duplicated_cond_add_or_warn): Likewise.
1370 (diagnose_mismatched_attributes): Likewise.
1371 * c-common.h: Move the declarations from c-warn.c to its own section.
1372 * c-warn.c: New file.
1373
627be19f
JM
13742016-10-08 Jason Merrill <jason@redhat.com>
1375
1376 * c-common.c (c_common_truthvalue_conversion): Don't distribute
1377 into COND_EXPR in C++.
1378
7bad794a
JJ
13792016-10-08 Jakub Jelinek <jakub@redhat.com>
1380
1381 * c-lex.c (c_lex_with_flags) <case CPP_COMMENT>: For CPP_COMMENT
1382 token with PREV_FALLTHROUGH, skip all following CPP_PADDING and
1383 CPP_COMMENT tokens and set add_flags to PREV_FALLTHROUGH afterwards.
1384
be845b04
JJ
13852016-10-07 Jakub Jelinek <jakub@redhat.com>
1386
1387 Implement LWG2296 helper intrinsic
1388 * c-common.h (enum rid): Add RID_ADDRESSOF.
1389 * c-common.c (c_common_reswords): Add __builtin_addressof.
1390
c09c4992
BE
13912016-10-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
1392
1393 PR c++/77700
1394 * c-common.c (c_common_truthvalue_conversion): Warn also for
1395 suspicious enum values in boolean context.
1396
342cfb3e
JJ
13972016-10-06 Jakub Jelinek <jakub@redhat.com>
1398
1399 Implement P0258R2 - helper for C++17
1400 std::has_unique_object_representations trait
1401 * c-common.h (enum rid): Add RID_HAS_UNIQUE_OBJ_REPRESENTATIONS.
1402 * c-common.c (c_common_reswords): Add
1403 __has_unique_object_representations.
1404
2e69f143
JJ
14052016-10-05 Jakub Jelinek <jakub@redhat.com>
1406
1407 PR sanitizer/66343
1408 * c-ubsan.c (ubsan_instrument_return): Don't call
1409 initialize_sanitizer_builtins here.
1410
700fff34
BE
14112016-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
1412
1413 * c-common.c (c_common_truthvalue_conversion): Warn also for suspicious
1414 conditional expression in boolean context when only one arm is
1415 non-boolean.
1416
9563bfcd
JJ
14172016-10-05 Jakub Jelinek <jakub@redhat.com>
1418
04a32443
JJ
1419 PR sanitizer/77823
1420 * c-ubsan.c (ubsan_instrument_shift): Return NULL_TREE if type0
1421 is not integral.
1422
9563bfcd
JJ
1423 * c-common.c (c_common_reswords): Update comment for C++11.
1424
f1644724
JM
14252016-10-04 Jason Merrill <jason@redhat.com>
1426
1427 * c-common.c (make_tree_vector_from_ctor): New.
1428 * c-common.h: Declare it.
1429
5a79befb
JJ
14302016-10-04 Jakub Jelinek <jakub@redhat.com>
1431
1432 * c-cppbuiltin.c (c_cpp_builtins): Don't define
1433 __LIBGCC_JCR_SECTION_NAME__.
1434
1633d3b9
BE
14352016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
1436
1437 * c-common.c (c_common_truthvalue_conversion): Warn for suspicious
1438 left shift in boolean context.
1439
a2c6e7f2
JJ
14402016-09-29 Jakub Jelinek <jakub@redhat.com>
1441
1442 Implement P0001R1 - C++17 removal of register storage class specifier
1443 * c.opt (Wregister): New warning.
1444 * c-opts.c (c_common_post_options): Enable -Wregister by
1445 default for C++17.
1446
75304c87
JG
14472016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
1448
1449 * c-opts.c (c_common_post_options): Remove special case for
1450 TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard
1451 in C++.
1452
bbfac6da
JJ
14532016-09-27 Jakub Jelinek <jakub@redhat.com>
1454
6e39060a
JJ
1455 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for
1456 -std=c++1z.
1457
bbfac6da
JJ
1458 * c-ada-spec.c (print_ada_declaration): Remove break after return.
1459
e73cf9a2
TP
14602016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
1461
1462 * c-common.c: Include memmodel.h.
1463
c6147dc4
MP
14642016-09-26 Marek Polacek <polacek@redhat.com>
1465
1466 * c-lex.c (c_common_has_attribute): Handle attribute fallthrough.
1467
81fea426
MP
14682016-09-26 Marek Polacek <polacek@redhat.com>
1469
1470 PR c/7652
1471 * c-common.c (c_common_attribute_table): Add fallthrough attribute.
1472 (handle_fallthrough_attribute): New function.
1473 (attribute_fallthrough_p): New function.
1474 * c-common.h (attribute_fallthrough_p): Declare.
1475
9a2300e9
MP
14762016-09-24 Marek Polacek <polacek@redhat.com>
1477
1478 PR c/77490
1479 * c.opt (Wbool-operation): New.
1480
a09e9e35
BE
14812016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
1482
1483 * c-common.c (c_common_truthvalue_conversion): Inhibit
1484 Wint-in-bool-context warning with from_macro_definition_at.
1485 Mention the expression will always evaluate to true.
1486
d43b4ccc
MS
14872016-09-21 Martin Sebor <msebor@redhat.com>
1488
1489 PR bootstrap/77676
1490 * c.opt (fprintf-return-value): Temporarily initialize to zero
1491 to unblock bootstrap failures.
1492
2e1c20b1
JJ
14932016-09-21 Jakub Jelinek <jakub@redhat.com>
1494
1495 PR c++/77651
1496 * c.opt (Waligned-new=): Add RejectNegative.
1497 (faligned-new=): Likewise. Spelling fix - change
1498 aligned_new_threshhold to aligned_new_threshold.
1499 * c-cppbuiltin.c (c_cpp_builtins): Change aligned_new_threshhold
1500 to aligned_new_threshold.
1501
88d0c3f0
MS
15022016-09-20 Martin Sebor <msebor@redhat.com>
1503
1504 PR middle-end/49905
1505 * c.opt: Add -Wformat-length and -fprintf-return-value.
1506
144a96e4
BE
15072016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
1508
1509 PR c++/77434
1510 * c.opt (Wint-in-bool-context): New warning.
1511 * c-common.c (c_common_truthvalue_conversion): Warn on integer
1512 constants in boolean context.
1513
63012d9a
JM
15142016-09-19 Joseph Myers <joseph@codesourcery.com>
1515
1516 * c-common.c (max_align_t_align): Also consider alignment of
1517 float128_type_node.
1518
931388ce
JM
15192016-09-15 Jason Merrill <jason@redhat.com>
1520
1521 * c-common.c (check_cxx_fundamental_alignment_constraints): Check
1522 DECL_EXTERNAL.
1523
38711381
JM
15242016-09-14 Jason Merrill <jason@redhat.com>
1525
1526 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
1527 limit FIELD_DECL, either.
1528
e51fbec3
MP
15292016-09-14 Marek Polacek <polacek@redhat.com>
1530
1531 * c-common.c (c_common_truthvalue_conversion): Use false instead of 0.
1532 * c-common.h (build_unary_op): Change nonconvert parameter type to bool.
1533 * c-omp.c (c_finish_omp_atomic): Use false instead of 0.
1534
254830ba
DM
15352016-09-13 David Malcolm <dmalcolm@redhat.com>
1536
1537 * c-common.c (warn_logical_not_parentheses): Replace
1538 rich_location::add_fixit_insert calls with add_fixit_insert_before
1539 and add_fixit_insert_after, eliminating the "next_loc" calculation.
1540
42763690
JM
15412016-09-13 Jason Merrill <jason@redhat.com>
1542 Tom de Vries <tom@codesourcery.com>
1543
1544 PR c++/77427
1545 * c-common.c (set_underlying_type): Don't treat array as builtin type.
1546
9453eee9
JM
15472016-09-13 Jason Merrill <jason@redhat.com>
1548
1549 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
1550 limit types at all.
1551
e96809e3
JM
15522016-09-12 Jason Merrill <jason@redhat.com>
1553
1554 * c-common.c (check_cxx_fundamental_alignment_constraints): Fix
1555 bit/byte confusion, allow large alignment for types.
1556
54dcdb88
BE
15572016-09-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
1558
1559 PR c++/77496
1560 * c-common.c (warn_for_omitted_condop): Also warn for boolean data.
1561
d1463eb9
DM
15622016-09-12 David Malcolm <dmalcolm@redhat.com>
1563
1564 PR c/72858
1565 * c-format.c (argument_parser::check_argument_type): Add params
1566 "type_start" and "conversion_char". Use the former to generate
1567 offset_to_type_start and pass it and conversion_char to
1568 check_format_types.
1569 (check_format_info_main): Capture the start of the type
1570 information as "type_start", and pass it an format_char
1571 to arg_parser.check_argument_type.
1572 (check_format_types): Provide an example in the leading comment.
1573 Add params "offset_to_type_start" and "conversion_char"; pass
1574 them to format_type_warning calls.
1575 (test_get_modifier_for_format_len): Likewise.
1576 (matching_type_p): New function.
1577 (get_format_for_type): Add param "conversion_char" and move
1578 implementation into...
1579 (get_format_for_type_1): ...new function, called twice.
1580 Use new function matching_type_p rather than checking for
1581 TYPE_CANONICAL equality.
1582 (get_corrected_substring): New function.
1583 (format_type_warning): Provide an example in the leading comment.
1584 Add params "offset_to_type_start" and "conversion_char". Replace
1585 call to get_format_for_type with call to get_corrected_substring
1586 and move rejection of hints for widths/precisions there.
1587 (assert_format_for_type_streq): Add param "conversion_char".
1588 (ASSERT_FORMAT_FOR_TYPE_STREQ): Add param CONVERSION_CHAR.
1589 (test_get_format_for_type_printf): Add conversion chars to the
1590 tests, adding coverage for various combinations of integer
1591 vs double conversions, and for preserving octal and hexadecimal
1592 conversions.
1593 (test_get_format_for_type_scanf): Add conversion chars to the
1594 tests.
1595
5b28efbb
TV
15962016-09-10 Tom de Vries <tom@codesourcery.com>
1597
1598 PR C/71602
1599 * c-common.c (build_va_arg): Handle more strict
1600 targetm.canonical_va_list_type. Replace first argument type error with
1601 assert.
1602
3f0177e7
MS
16032016-09-09 Martin Sebor <msebor@redhat.com>
1604
1605 PR c/77520
1606 PR c/77521
1607 * c-format.c (argument_parser::find_format_char_info): Use %qc
1608 format directive unconditionally.
1609
af63ba4b
JM
16102016-09-09 Jason Merrill <jason@redhat.com>
1611
1612 Implement C++17 new of over-aligned types.
1613 * c.opt: Add -faligned-new and -Waligned-new.
1614 * c-common.c (max_align_t_align): Split out from...
1615 (cxx_fundamental_alignment_p): ...here.
1616 * c-common.h: Declare it.
1617 * c-cppbuiltin.c (c_cpp_builtins): Handle aligned new.
1618
c65248cb
JM
16192016-09-09 Joseph Myers <joseph@codesourcery.com>
1620
1621 * c-cppbuiltin.c (builtin_define_type_width): New function.
1622 (builtin_define_stdint_macros, c_cpp_builtins): Define type width
1623 macros.
1624
e5106e27
DM
16252016-09-07 David Malcolm <dmalcolm@redhat.com>
1626
1627 * c-common.c (get_cpp_ttype_from_string_type): Handle being passed
1628 a POINTER_TYPE.
1629 (substring_loc::get_location): Move to substring-locations.c,
1630 keeping implementation as...
1631 (c_get_substring_location): New function, from the above, reworked
1632 to use accessors rather than member lookup.
1633 * c-common.h (class substring_loc): Move to substring-locations.h,
1634 replacing with a forward decl.
1635 (c_get_substring_location): New decl.
1636 * c-format.c: Include "substring-locations.h".
1637 (format_warning_va): Move to substring-locations.c.
1638 (format_warning_at_substring): Likewise.
1639
a42e7952
MS
16402016-09-06 Martin Sebor <msebor@redhat.com>
1641
1642 PR c/77336
1643 * c-format.c (check_function_format): Avoid issuing warnings for
1644 functions unless they call format functions with non-constant
1645 format strings.
1646
b772a565
RB
16472016-09-06 Richard Biener <rguenther@suse.de>
1648
1649 PR c/77450
1650 * c-common.c (c_common_mark_addressable_vec): Handle
1651 COMPOUND_LITERAL_EXPR.
1652
25ff5dd3
MP
16532016-09-05 Marek Polacek <polacek@redhat.com>
1654
1655 PR c/77423
1656 * c-common.c (bool_promoted_to_int_p): New function.
1657 (expr_has_boolean_operands_p): New function.
1658 (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p.
1659 (maybe_warn_bool_compare): Use bool_promoted_to_int_p.
1660
21234eb5
TV
16612016-09-04 Tom de Vries <tom@codesourcery.com>
1662
1663 revert:
1664 2016-08-29 Tom de Vries <tom@codesourcery.com>
1665
1666 * c-common.c (build_va_arg): Replace first argument type error
1667 with assert.
1668
9dc5773f
JJ
16692016-09-02 Jakub Jelinek <jakub@redhat.com>
1670
1671 PR c/65467
1672 * c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions.
1673 (c_finish_omp_for): Reject _Atomic qualified iterators.
1674
16752016-09-01 Martin Sebor <msebor@redhat.com>
3d7b83b6
MS
1676
1677 * c-ada-spec.c (dump_ada_function_declaration): Increase buffer
1678 size to guarantee it fits the output of the formatted function
1679 regardless of its arguments.
1680
295844f6
MP
16812016-09-01 Marek Polacek <polacek@redhat.com>
1682
1683 PR c/7652
1684 * c-common.c (resolve_overloaded_builtin): Fix formatting. Add
1685 FALLTHRU comments.
1686
3d06b6f2
MP
16872016-08-29 Marek Polacek <polacek@redhat.com>
1688
1689 PR c/77292
1690 * c-common.c (warn_logical_not_parentheses): Don't warn for
1691 a comparison or a logical operator.
1692
34cedad5
TV
16932016-08-29 Tom de Vries <tom@codesourcery.com>
1694
1695 * c-common.c (build_va_arg): Fix type comparison assert.
1696
f162d717
TV
16972016-08-29 Tom de Vries <tom@codesourcery.com>
1698
1699 * c-common.c (build_va_arg): Replace first argument type error
1700 with assert.
1701
ba9bbd6f
TV
17022016-08-29 Tom de Vries <tom@codesourcery.com>
1703
1704 PR c/77398
1705 * c-common.c (build_va_arg): Add first argument error. Build va_arg
1706 with error_mark_node as va_list instead of with illegal va_list.
1707
ebef225f
MP
17082016-08-25 Marek Polacek <polacek@redhat.com>
1709 David Malcolm <dmalcolm@redhat.com>
1710
1711 * c-common.c (warn_logical_not_parentheses): Print fixit hints.
1712 * c-common.h (warn_logical_not_parentheses): Update declaration.
1713
b00e6e75
MP
17142016-08-22 Marek Polacek <polacek@redhat.com>
1715
1716 PR c++/77321
1717 * c-common.c (warn_for_memset): Check type for null.
1718
6dc198e3
JM
17192016-08-22 Joseph Myers <joseph@codesourcery.com>
1720
1721 * c-family/c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and
1722 _FloatNx types for suffixes for built-in functions.
1723
c65699ef
JM
17242016-08-19 Joseph Myers <joseph@codesourcery.com>
1725
1726 PR c/32187
1727 * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32)
1728 (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X)
1729 (RID_FLOAT128X): New enum rid values.
1730 (CASE_RID_FLOATN_NX): New macro.
1731 * c-common.c (c_common_reswords): Add _FloatN and _FloatNx
1732 keywords.
1733 (c_common_type_for_mode): Check for _FloatN and _FloatNx and
1734 corresponding complex types.
1735 (c_common_nodes_and_builtins): For non-C++, register _FloatN and
1736 _FloatNx and corresponding complex types.
1737 (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX.
1738 * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN
1739 and _FloatNx types for the widest type for determining
1740 DECIMAL_DIG. Define __LDBL_DECIMAL_DIG__ as well as
1741 __DECIMAL_DIG__ for long double. Handle FMA_SUFFIX being NULL.
1742 (c_cpp_builtins): Call builtin_define_float_constants for _FloatN
1743 and _FloatNx types.
1744 * c-lex.c (interpret_float): Handle _FloatN and _FloatNx
1745 constants.
1746 * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and
1747 _FloatNx types.
1748
cc015f3a
DM
17492016-08-18 David Malcolm <dmalcolm@redhat.com>
1750
1751 * c-opts.c (c_diagnostic_finalizer): Update for change to
1752 diagnostic_show_locus.
1753
cb18fd07
DM
17542016-08-18 David Malcolm <dmalcolm@redhat.com>
1755
1756 * c-common.c: Include "spellcheck.h".
1757 (cb_get_suggestion): New function.
1758 * c-common.h (cb_get_suggestion): New decl.
1759 * c-lex.c (init_c_lex): Initialize cb->get_suggestion to
1760 cb_get_suggestion.
1761
a76989dc
MP
17622016-08-18 Marek Polacek <polacek@redhat.com>
1763
1764 PR c/71514
1765 * c-common.c (get_atomic_generic_size): Disallow pointer-to-function
1766 and pointer-to-VLA.
1767
65e736c0
DM
17682016-08-16 David Malcolm <dmalcolm@redhat.com>
1769
1770 PR c/72857
1771 * c-common.c (substring_loc::get_range): Rename to...
1772 (substring_loc::get_location): ...this, converting param from a
1773 source_range * to a location_t *. Call
1774 get_source_location_for_substring rather than
1775 get_source_range_for_substring, and pass in m_caret_idx.
1776 * c-common.h (substring_loc::substring_loc): Add param "caret_idx".
1777 (substring_loc::get_range): Replace with...
1778 (substring_loc::get_location): ...this.
1779 (substring_loc::set_caret_index): New method.
1780 (substring_loc): Add field m_caret_idx.
1781 * c-format.c (format_warning_va): Update for above changes.
1782 Rename local "substring_loc" to "fmt_substring_loc" to avoid
1783 clashing with type name.
1784 (format_warning_at_char): Add caret_idx param to substring_loc ctor.
1785 (check_argument_type): Likewise.
1786 (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc"
1787 Use a copy when emitting warnings, setting the caret index from TYPE.
1788
7e1dde14 17892016-08-16 Eric Botcazou <ebotcazou@adacore.com>
8e745a17 1790 Arnaud Charlet <charlet@adacore.com>
7e1dde14
EB
1791
1792 * c-ada-spec.c (dump_number): New function.
1793 (handle_escape_character): Likewise.
1794 (print_ada_macros): Add handling of constant integers and strings.
1795
191816a3
MP
17962016-08-12 Marek Polacek <polacek@redhat.com>
1797
1798 PR c/7652
1799 * c-common.c (scalar_to_vector): Adjust fall through comment.
1800 * c-opts.c (c_common_handle_option): Likewise.
1801 * c-pragma.c (handle_pragma_pack): Add FALLTHRU.
1802 * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust
1803 fall through comment.
1804 * cilk.c (extract_free_variables): Add FALLTHRU.
1805
452df4a4
JM
18062016-08-10 Jason Merrill <jason@redhat.com>
1807
1808 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr.
1809
f3365c12
JM
18102016-08-09 Jason Merrill <jason@redhat.com>
1811
1812 * c-common.c (c_common_attribute_table): vector_size affects type
1813 identity.
1814
f0bc3323
MP
18152016-08-09 Marek Polacek <polacek@redhat.com>
1816
1817 PR c/7652
1818 * c-ada-spec.c (dump_generic_ada_node): Add return.
1819
98e5a19a
JM
18202016-08-09 Jason Merrill <jason@redhat.com>
1821
1822 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for
1823 C++17 constexpr lambdas.
1824
895aa8e1
DM
18252016-08-08 David Malcolm <dmalcolm@redhat.com>
1826
1827 PR c/64955
1828 * c-common.h (selftest::c_format_c_tests): New declaration.
1829 (selftest::run_c_tests): New declaration.
1830 * c-format.c: Include "selftest.h.
1831 (format_warning_va): Add param "corrected_substring" and use
1832 it to add a replacement fix-it hint.
1833 (format_warning_at_substring): Likewise.
1834 (format_warning_at_char): Update for new param of
1835 format_warning_va.
1836 (argument_parser::check_argument_type): Pass "fki" to
1837 check_format_types.
1838 (check_format_types): Add param "fki" and pass it to
1839 format_type_warning.
1840 (deref_n_times): New function.
1841 (get_modifier_for_format_len): New function.
1842 (selftest::test_get_modifier_for_format_len): New function.
1843 (get_format_for_type): New function.
1844 (format_type_warning): Add param "fki" and use it to attempt
1845 to provide hints for argument types when calling
1846 format_warning_at_substring.
1847 (selftest::get_info): New function.
1848 (selftest::assert_format_for_type_streq): New function.
1849 (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro.
1850 (selftest::test_get_format_for_type_printf): New function.
1851 (selftest::test_get_format_for_type_scanf): New function.
1852 (selftest::c_format_c_tests): New function.
1853
e52ed3fe
DM
18542016-08-08 David Malcolm <dmalcolm@redhat.com>
1855
1856 PR c/52952
1857 * c-format.c: Include "diagnostic.h".
1858 (location_column_from_byte_offset): Delete.
1859 (location_from_offset): Delete.
1860 (format_warning_va): New function.
1861 (format_warning_at_substring): New function.
1862 (format_warning_at_char): New function.
1863 (check_format_arg): Capture location of format_tree and pass to
1864 check_format_info_main.
1865 (argument_parser): Add fields "start_of_this_format" and
1866 "format_string_cst".
1867 (flag_chars_t::validate): Add param "format_string_cst". Convert
1868 warning_at call using location_from_offset to call to
1869 format_warning_at_char.
1870 (argument_parser::argument_parser): Add param "format_string_cst_"
1871 and use use it to initialize field "format_string_cst".
1872 Initialize new field "start_of_this_format".
1873 (argument_parser::read_format_flags): Convert warning_at call
1874 using location_from_offset to a call to format_warning_at_char.
1875 (argument_parser::read_any_format_left_precision): Likewise.
1876 (argument_parser::read_any_format_precision): Likewise.
1877 (argument_parser::read_any_other_modifier): Likewise.
1878 (argument_parser::find_format_char_info): Likewise, in three places.
1879 (argument_parser::parse_any_scan_set): Likewise, in one place.
1880 (argument_parser::handle_conversions): Likewise, in two places.
1881 (argument_parser::check_argument_type): Add param "fmt_param_loc"
1882 and use it to make a substring_loc. Pass the latter to
1883 check_format_types.
1884 (check_format_info_main): Add params "fmt_param_loc" and
1885 "format_string_cst". Convert warning_at calls using
1886 location_from_offset to calls to format_warning_at_char. Pass the
1887 new params to the arg_parser ctor. Pass "format_string_cst" to
1888 flag_chars.validate. Pass "fmt_param_loc" to
1889 arg_parser.check_argument_type.
1890 (check_format_types): Convert first param from a location_t
1891 to a const substring_loc & and rename to "fmt_loc". Attempt
1892 to extract the range of the relevant parameter and pass it
1893 to format_type_warning.
1894 (format_type_warning): Convert first param from a location_t
1895 to a const substring_loc & and rename to "fmt_loc". Add
1896 params "param_range" and "type". Replace calls to warning_at
1897 with calls to format_warning_at_substring.
1898
1c4d457e
DM
18992016-08-08 David Malcolm <dmalcolm@redhat.com>
1900
1901 * c-format.c (class flag_chars_t): New class.
1902 (struct length_modifier): New struct.
1903 (class argument_parser): New class.
1904 (flag_chars_t::flag_chars_t): New ctor.
1905 (flag_chars_t::has_char_p): New method.
1906 (flag_chars_t::add_char): New method.
1907 (flag_chars_t::validate): New method.
1908 (flag_chars_t::get_alloc_flag): New method.
1909 (flag_chars_t::assignment_suppression_p): New method.
1910 (argument_parser::argument_parser): New ctor.
1911 (argument_parser::read_any_dollar): New method.
1912 (argument_parser::read_format_flags): New method.
1913 (argument_parser::read_any_format_width): New method.
1914 (argument_parser::read_any_format_left_precision): New method.
1915 (argument_parser::read_any_format_precision): New method.
1916 (argument_parser::handle_alloc_chars): New method.
1917 (argument_parser::read_any_length_modifier): New method.
1918 (argument_parser::read_any_other_modifier): New method.
1919 (argument_parser::find_format_char_info): New method.
1920 (argument_parser::validate_flag_pairs): New method.
1921 (argument_parser::give_y2k_warnings): New method.
1922 (argument_parser::parse_any_scan_set): New method.
1923 (argument_parser::handle_conversions): New method.
1924 (argument_parser::check_argument_type): New method.
1925 (check_format_info_main): Introduce classes argument_parser
1926 and flag_chars_t, moving the code within the loop into methods
1927 of these classes. Make various locals "const".
1928
88fa5555
DM
19292016-08-05 David Malcolm <dmalcolm@redhat.com>
1930
1931 * c-common.c: Include "substring-locations.h".
1932 (get_cpp_ttype_from_string_type): New function.
1933 (g_string_concat_db): New global.
1934 (substring_loc::get_range): New method.
1935 * c-common.h (g_string_concat_db): New declaration.
1936 (class substring_loc): New class.
1937 * c-lex.c (lex_string): When concatenating strings, capture the
1938 locations of all tokens using a new obstack, and record the
1939 concatenation locations within g_string_concat_db.
1940 * c-opts.c (c_common_init_options): Construct g_string_concat_db
1941 on the ggc-heap.
1942
78169471
MP
19432016-07-29 Marek Polacek <polacek@redhat.com>
1944
638fc14f
MP
1945 PR c/71926
1946 * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the
1947 parentheses warning.
1948
78169471
MP
1949 PR c/71574
1950 * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL.
1951
1225d6b1
ML
19522016-07-28 Martin Liska <mliska@suse.cz>
1953
1954 PR gcov-profile/68025
1955 * c-common.c (handle_no_profile_instrument_function_attribute):
1956
ec1e2a40
BE
19572016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
1958
1959 * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of
1960 BITS_PER_UNIT_LOG.
1961
5ec2cd9f
JM
19622016-07-25 Jason Merrill <jason@redhat.com>
1963
1964 PR c++/65970
1965 * c.opt (fconstexpr-loop-limit): New.
1966
9dc5773f 19672016-07-22 Martin Sebor <msebor@redhat.com>
2e6b45af
MS
1968
1969 PR c++/71675
1970 * c-common.c (resolve_overloaded_builtin): Avoid converting
1971 __atomic_compare_exchange_n return type to that of what its
1972 first argument points to.
1973
e3fe09c1
UB
19742016-07-22 Uros Bizjak <ubizjak@gmail.com>
1975
1976 * c-common.c: Use HOST_WIDE_INT_M1U instead of
1977 ~(unsigned HOST_WIDE_INT) 0.
1978
bc91c436
ML
19792016-07-22 Martin Liska <mliska@suse.cz>
1980
1981 PR gcov-profile/69028
1982 PR gcov-profile/62047
1983 * cilk.c (create_cilk_helper_decl): Set location of a new decl
1984 to the current_function_decl.
1985
451dcc66
JM
19862016-07-21 Jason Merrill <jason@redhat.com>
1987
1988 PR c++/65168
1989 * c-common.c (c_common_truthvalue_conversion): Check
1990 c_inhibit_evaluation_warnings for warning about address of
1991 reference.
1992
de6a69ee
DM
19932016-07-20 David Malcolm <dmalcolm@redhat.com>
1994
1995 * c-common.h (lookup_name_fuzzy): Convert return type from tree to
1996 const char *.
1997
d022c55a
JM
19982016-07-15 Jason Merrill <jason@redhat.com>
1999
2000 * c-opts.c (c_common_post_options): Update -fabi-version default to 11.
2001
ddbbcb19
JJ
20022016-07-15 Jakub Jelinek <jakub@redhat.com>
2003
2004 PR c/71858
2005 * c-common.h (enum lookup_name_fuzzy_kind): Add
2006 FUZZY_LOOKUP_FUNCTION_NAME.
2007
d0cf395a
JM
20082016-07-08 Jason Merrill <jason@redhat.com>
2009
2010 P0145: Refining Expression Order for C++.
2011 * c.opts (-fargs-in-order): Rename to -fstrong-eval-order.
2012 * c-opts.c: Adjust.
2013
98d44e93
MT
20142016-07-05 Markus Trippelsdorf <markus@trippelsdorf.de>
2015
2016 PR c++/71214
2017 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.
2018
f9d8d994
TS
20192016-06-29 Thomas Schwinge <thomas@codesourcery.com>
2020
2021 * c-pragma.h (enum pragma_kind): Rename
2022 PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE. Adjust all
2023 users.
2024
4aa83879
RB
20252016-06-29 Richard Biener <rguenther@suse.de>
2026
2027 PR middle-end/71002
2028 * c-common.c (c_common_get_alias_set): Remove union type punning case.
2029
a25bd9e6
JM
20302016-06-24 Jason Merrill <jason@redhat.com>
2031
2032 P0145R2: Refining Expression Order for C++.
2033 * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of
2034 MODIFY_EXPR.
2035
a86451b9
JJ
20362016-06-24 Jakub Jelinek <jakub@redhat.com>
2037
2038 * c-common.c (check_builtin_function_arguments): Require last
2039 argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type.
2040 Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW
2041 if the last argument is pointer to enumerated or boolean type.
2042
1a4f11c8
DM
20432016-06-22 David Malcolm <dmalcolm@redhat.com>
2044
2045 PR c/70339
2046 * c-common.h (enum lookup_name_fuzzy_kind): New enum.
2047 (lookup_name_fuzzy): New prototype.
2048
fe55692c
JDA
20492016-06-21 John David Anglin <danglin@gcc.gnu.org>
2050
2051 * c-common.c (get_source_date_epoch): Use int64_t instead of long long.
2052
4eb24e01
JM
20532016-06-14 Jason Merrill <jason@redhat.com>
2054
2055 P0145R2: Refining Expression Order for C++.
2056 * c.opt (fargs-in-order): New.
2057 * c-opts.c (c_common_post_options): Adjust flag_args_in_order.
2058
ef7cf206
JJ
20592016-06-13 Jakub Jelinek <jakub@redhat.com>
2060
0dda258b
JJ
2061 PR sanitizer/71498
2062 * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
2063 all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.
2064
ef7cf206
JJ
2065 PR preprocessor/71183
2066 * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch
2067 to cb_get_source_date_epoch.
2068
50b15873
JJ
20692016-06-10 Jakub Jelinek <jakub@redhat.com>
2070
2071 PR c/68657
2072 * c.opt (Wpsabi): Add Warning flag.
2073
4d926e34
MS
20742016-06-10 Martin Sebor <msebor@redhat.com>
2075
2076 PR c/71392
2077 * gcc/c-family/c-common.c (handle_nonnull_attribute): Accept
2078 the nonnull attribute in type-generic builtins.
2079
e01b4e16
MS
20802016-06-09 Martin Sebor <msebor@redhat.com>
2081
2082 PR c/70883
2083 * c-common.c (builtin_function_validate_nargs): Make text of error
2084 message consistent with others like it.
2085
44a845ca
MS
20862016-06-08 Martin Sebor <msebor@redhat.com>
2087 Jakub Jelinek <jakub@redhat.com>
2088
2089 PR c++/70507
2090 PR c/68120
2091 * c-common.c (check_builtin_function_arguments): Handle
2092 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
2093
a80a7051
RB
20942016-06-08 Richard Biener <rguenther@suse.de>
2095
2096 * c-common.c (parse_optimize_options): Improve diagnostic messages.
2097
bfd67b47
RB
20982016-06-07 Richard Biener <rguenther@suse.de>
2099
2100 PR c/61564
2101 * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION
2102 options and warn about others.
2103
15c98b2e
ES
21042016-06-01 Eduard Sanou <dhole@openmailbox.org>
2105
2106 * c-common.c (get_source_date_epoch): Rename to
2107 cb_get_source_date_epoch.
2108 * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
2109 message when the parsing fails. Use error_at instead of fatal_error.
2110 * c-common.h (get_source_date_epoch): Rename to
2111 cb_get_source_date_epoch.
2112 * c-common.h (cb_get_source_date_epoch): Prototype.
2113 * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
2114 * c-common.h (c_omp_region_type): Remove trailing comma.
2115 * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
2116 * c-lex.c (c_lex_with_flags): Remove initialization of
2117 pfile->source_date_epoch.
2118
00631022
JJ
21192016-05-30 Jakub Jelinek <jakub@redhat.com>
2120
2121 PR c++/71349
2122 * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
2123 C_OMP_CLAUSE_SPLIT_TARGET. Put OMP_CLAUSE_NOWAIT to
2124 C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
2125 instead of C_OMP_CLAUSE_SPLIT_FOR.
2126
f17a223d
RB
21272016-05-24 Richard Biener <rguenther@suse.de>
2128
2129 PR middle-end/70434
2130 PR c/69504
2131 * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
2132 (convert_vector_to_array_for_subscript): ... this.
2133 * c-common.c (convert_vector_to_pointer_for_subscript): Use a
2134 VIEW_CONVERT_EXPR to an array type. Rename to ...
2135 (convert_vector_to_array_for_subscript): ... this.
2136
4f2e1536
MP
21372016-05-12 Marek Polacek <polacek@redhat.com>
2138
2139 PR c/70756
2140 * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
2141 size_in_bytes and pass LOC to it.
2142
d6e83a8d
MM
21432016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
2144
2145 PR c/43651
2146 * c.opt (Wduplicate-decl-specifier): New option.
2147
5c3a10fb
MP
21482016-05-11 Marek Polacek <polacek@redhat.com>
2149
2150 PR c++/71024
2151 * c-common.c (diagnose_mismatched_attributes): New function.
2152 * c-common.h (diagnose_mismatched_attributes): Declare.
2153
deef7113
MP
21542016-05-04 Marek Polacek <polacek@redhat.com>
2155
2156 * c.opt (Wdangling-else): New option.
2157
79ce98bc
MP
21582016-05-03 Marek Polacek <polacek@redhat.com>
2159
2160 PR c/70859
2161 * c-common.c (builtin_function_validate_nargs): Add location
2162 parameter. Use it.
2163 (check_builtin_function_arguments): Add location and arguments
2164 parameters. Use them.
2165 * c-common.h (check_builtin_function_arguments): Update declaration.
2166
381cdae4
RB
21672016-05-03 Richard Biener <rguenther@suse.de>
2168
2169 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
2170 allow call args to gimplify to SSA names.
2171
1d793c34
MP
21722016-05-03 Marek Polacek <polacek@redhat.com>
2173
2174 * c-common.h (enum c_omp_region_type): Remove stray comma.
2175
77886428
CP
21762016-05-02 Cesar Philippidis <cesar@codesourcery.com>
2177
2178 * c-common.h (enum c_omp_region_type): Define.
2179
697e0b28
RS
21802016-05-02 Richard Sandiford <richard.sandiford@arm.com>
2181
2182 * c-common.c (shorten_compare): Use wi::to_wide.
2183
e7ff0319
CP
21842016-04-29 Cesar Philippidis <cesar@codesourcery.com>
2185
2186 PR middle-end/70626
2187 * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
2188 * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
2189 reduction clauses in acc parallel loops.
2190
2fff3db8
MP
21912016-04-29 Marek Polacek <polacek@redhat.com>
2192
2193 PR c/70852
2194 * c-common.c (warn_for_memset): Check domain before accessing it.
2195
509063eb
DV
21962016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
2197
2198 PR/69089
2199 * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
2200 "aligned" attribute.
2201
b632761d
JM
22022016-04-28 Jason Merrill <jason@redhat.com>
2203
2204 * c-lex.c (c_common_has_attribute): Handle nodiscard.
2205
174f6622
ES
22062016-04-28 Eduard Sanou <dhole@openmailbox.org>
2207 Matthias Klose <doko@debian.org>
2208
2209 * c-common.c (get_source_date_epoch): New function, gets the environment
2210 variable SOURCE_DATE_EPOCH and parses it as long long with error
2211 handling.
2212 * c-common.h (get_source_date_epoch): Prototype.
2213 * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
2214
6bc2bb18
RB
22152015-04-27 Ryan Burn <contact@rnburn.com>
2216
2217 PR c++/69024
2218 PR c++/68997
2219 * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
2220 (cilk_recognize_spawn): Renamed from recognize_spawn and change to
2221 external linkage.
2222 (cilk_detect_and_unwrap): Corresponding changes.
2223 (extract_free_variables): Don't extract free variables from
2224 AGGR_INIT_EXPR slot.
2225 * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
2226 (cilk_recognize_spawn): Likewise.
2227
c1e1f433
BS
22282016-04-27 Bernd Schmidt <bschmidt@redhat.com>
2229
2230 * c.opt (Wmemset-elt-size): New option.
2231 * c-common.c (warn_for_memset): New function.
2232 * c-common.h (warn_for_memset): Declare.
2233
d067e05f
JM
22342016-04-25 Jason Merrill <jason@redhat.com>
2235
2236 * c-common.c (handle_unused_attribute): Accept CONST_DECL.
2237 No longer static.
2238 * c-common.h: Declare it.
2239 * c-lex.c (c_common_has_attribute): Add maybe_unused.
2240
9aa36ae5
JM
22412016-04-22 Jason Merrill <jason@redhat.com>
2242
2243 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
2244
477d4906
IV
22452016-04-20 Ilya Verbin <ilya.verbin@intel.com>
2246
2247 PR c++/69363
2248 * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
2249 * c-common.h (c_finish_cilk_clauses): Remove declaration.
2250
fe37c7af
MM
22512016-04-18 Michael Matz <matz@suse.de>
2252
2253 * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
2254 and SET_DECL_ALIGN.
2255
23f2660f
EB
22562016-04-17 Eric Botcazou <ebotcazou@adacore.com>
2257
2258 * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
2259 (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
2260 to incomplete types.
2261 (dump_nested_type): Remove redundant tests and tidy up.
2262 (print_ada_declaration): Also set TREE_VISITED on the declaration of
2263 a type which is the typedef of an original type.
2264
1e77281b
MP
22652016-04-15 Marek Polacek <polacek@redhat.com>
2266
2267 PR c/70651
2268 * c-common.c (build_va_arg): Change two asserts into errors and return
2269 error_mark_node.
2270
b3a77f21
MP
22712016-04-13 Marek Polacek <polacek@redhat.com>
2272
2273 PR c++/70639
2274 * c-indentation.c (should_warn_for_misleading_indentation): Bail out
2275 for switch statements, too.
2276
322b8466
JM
22772016-03-28 Jason Merrill <jason@redhat.com>
2278
2279 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
2280
fbdb6baf
MP
22812016-03-23 Marek Polacek <polacek@redhat.com>
2282
2283 PR c++/69884
2284 * c.opt (Wignored-attributes): New option.
2285
5c240f4d
DM
22862016-03-22 David Malcolm <dmalcolm@redhat.com>
2287
2288 PR c/69993
2289 * c-indentation.c (warn_for_misleading_indentation): Rewrite the
2290 diagnostic text, reversing the order of the warning and note so
2291 that they appear in source order.
2292
14ba7b28
MP
22932016-03-17 Marek Polacek <polacek@redhat.com>
2294
2295 PR c/69407
2296 * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
2297 operations.
2298
08a1cadc
JM
22992016-03-14 Jason Merrill <jason@redhat.com>
2300
2aaeea19
JM
2301 * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
2302
08a1cadc
JM
2303 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
2304
c06d25bb
RB
23052016-03-09 Richard Biener <rguenther@suse.de>
2306
2307 PR c/70143
2308 * c-common.c (strict_aliasing_warning): Add back
2309 alias_sets_conflict_p check.
2310
80aac5c8
JM
23112016-03-08 Jason Merrill <jason@redhat.com>
2312
2313 * c-opts.c (set_std_cxx1z): Don't enable concepts.
2314
64b23c13
DM
23152016-03-04 David Malcolm <dmalcolm@redhat.com>
2316
2317 PR c/68187
2318 * c-indentation.c (get_visual_column): Move code to determine next
2319 tab stop to...
2320 (next_tab_stop): ...this new function.
2321 (line_contains_hash_if): Delete function.
2322 (detect_preprocessor_logic): Delete function.
2323 (get_first_nws_vis_column): New function.
2324 (detect_intervening_unindent): New function.
2325 (should_warn_for_misleading_indentation): Replace call to
2326 detect_preprocessor_logic with a call to
2327 detect_intervening_unindent.
2328
729526f5
DM
23292016-03-04 David Malcolm <dmalcolm@redhat.com>
2330
2331 PR c/68187
2332 * c-indentation.c (should_warn_for_misleading_indentation): When
2333 suppressing warnings about cases where the guard and body are on
2334 the same column, only use the first non-whitespace column in place
2335 of the guard token column when dealing with "else" clauses.
2336 When rejecting aligned BODY and NEXT, loosen the requirement
2337 from equality with the first non-whitespace of guard to simply
2338 that they not be indented relative to it.
2339
e9a35493
RB
23402016-03-04 Richard Biener <rguenther@suse.de>
2341
2342 PR c++/70054
2343 * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
2344 instead of alias_sets_conflict_p.
2345
1be56bc5
MP
23462016-03-01 Marek Polacek <polacek@redhat.com>
2347
2348 PR c++/69795
2349 * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
2350 any DECL.
2351
35886f0b
MS
23522016-02-22 Martin Sebor <msebor@redhat.com>
2353
2354 PR middle-end/69780
2355 * c-common.c (check_builtin_function_arguments): Validate and
2356 reject invalid arguments to __builtin_alloca_with_align.
2357
4246c8da
MW
23582016-02-20 Mark Wielaard <mjw@redhat.com>
2359
2360 PR c/28901
2361 * c.opt (Wunused-const-variable): Turn into Alias for...
2362 (Wunused-const-variable=): New option.
2363
268be88c
BE
23642016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
2365
2366 PR c++/69865
2367 * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
2368 here...
2369 (c_common_init_options): ...to here.
2370 (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
2371
871b3f47
JJ
23722016-02-19 Jakub Jelinek <jakub@redhat.com>
2373
2374 PR c++/69826
2375 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
2376 (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
2377 flag_preprocess_only.
2378
bf14eba2
JJ
23792016-02-16 Jakub Jelinek <jakub@redhat.com>
2380
2381 PR c/69835
2382 * c.opt (Wnonnull-compare): Enable for -Wall.
2383
ba6b3795
JJ
23842016-02-15 Jakub Jelinek <jakub@redhat.com>
2385
2386 PR c++/69797
2387 * c-common.c (sync_resolve_size): Diagnose too few arguments
2388 even when params is non-NULL empty vector.
2389
a011cd92
BS
23902016-02-08 Bernd Schmidt <bschmidt@redhat.com>
2391
2392 PR target/60410
2393 * c.opt (fshort-double): Remove.
2394
46cb9332
MS
23952016-02-05 Martin Sebor <msebor@redhat.com>
2396
2397 PR c++/69662
2398 * c.opt (Warning options): Update -Wplacement-new to take
2399 an optional argument.
2400
e1b81f2b
JJ
24012016-02-01 Jakub Jelinek <jakub@redhat.com>
2402
2403 PR preprocessor/69543
2404 PR c/69558
2405 * c-pragma.c (handle_pragma_diagnostic): Pass input_location
2406 instead of loc to control_warning_option.
2407
b6adbb9f
NS
24082016-02-01 Nathan Sidwell <nathan@codesourcery.com>
2409
2410 * c.opt (fopenacc-dim=): New option.
2411
5d70666e
RB
24122016-01-27 Ryan Burn <contact@rnburn.com>
2413
2414 PR cilkplus/69267
2415 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
2416 gimplify_arg. Removed superfluous post_p argument.
2417 * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
2418 superfluous post_p argument.
2419 * c-gimplify.c (c_gimplify_expr): Likewise.
2420
01e1dea3
DM
24212016-01-26 David Malcolm <dmalcolm@redhat.com>
2422
2423 PR other/69006
2424 * c-opts.c (c_diagnostic_finalizer): Replace invocation of
2425 pp_newline_and_flush with pp_flush.
2426
9f04a53e
MS
24272016-01-20 Martin Sebor <msebor@redhat.com>
2428
2429 PR c/69405
2430 * c-common.c (sync_resolve_size): Avoid printing diagnostic about
2431 an incompatible argument when the argument isn't a valid tree node.
2432
7f26f7df
JM
24332016-01-18 Jason Merrill <jason@redhat.com>
2434
2435 PR c++/68767
2436 * c-common.c (check_function_arguments_recurse): Fold the whole
2437 COND_EXPR, not just the condition.
2438
f62bf092
TV
24392016-01-18 Tom de Vries <tom@codesourcery.com>
2440
2441 * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
2442 classify as loop clause.
2443
e0a575ff
JJ
24442016-01-15 Jakub Jelinek <jakub@redhat.com>
2445
2446 PR bootstrap/68271
2447 * c-pragma.c (c_register_pragma_1): Adjust comment to note that
2448 C++ FE no longer has limit on number of pragmas.
2449
24502015-01-14 Ryan Burn <contact@rnburn.com>
b6e3db06
RB
2451
2452 PR c++/69048
2453 * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
c47eaca6 2454 to add missing cleanup point.
b6e3db06 2455
c7df95d8
DM
24562016-01-14 David Malcolm <dmalcolm@redhat.com>
2457
2458 PR c++/68819
2459 * c-indentation.c (get_visual_column): Add location_t param.
2460 Handle the column number being zero by effectively disabling the
2461 warning, with an "inform".
2462 (should_warn_for_misleading_indentation): Add location_t argument
2463 for all uses of get_visual_column.
2464
21efdd80
PP
24652016-01-10 Patrick Palka <ppalka@gcc.gnu.org>
2466
2467 PR c++/69029
2468 * c-indentation.c (should_warn_for_misleading_indentation):
2469 Don't warn about do-while statements.
2470
7a127fa7
MS
24712016-01-07 Martin Sebor <msebor@redhat.com>
2472
2473 PR c/68966
2474 * c-common.c (sync_resolve_size): Reject first argument when it's
2475 a pointer to _Bool.
2476
c589e975
DM
24772016-01-05 David Malcolm <dmalcolm@redhat.com>
2478
2479 PR c/69122
2480 * c-indentation.c (get_visual_column): Remove default argument.
2481 (should_warn_for_misleading_indentation): For the multiline case,
2482 update call to get_visual_column for next_stmt_exploc so that it
2483 captures the location of the first non-whitespace character in the
2484 relevant line. Don't issue warnings if there is non-whitespace
2485 before the next statement.
2486
818ab71a
JJ
24872016-01-04 Jakub Jelinek <jakub@redhat.com>
2488
2489 Update copyright years.
2490
745e411d
DM
24912015-12-21 David Malcolm <dmalcolm@redhat.com>
2492
2493 * c-common.c (binary_op_error): Convert first param from
2494 location_t to rich_location * and use it when emitting an error.
2495 * c-common.h (binary_op_error): Convert first param from
2496 location_t to rich_location *.
2497
de67c4c3
DM
24982015-12-16 David Malcolm <dmalcolm@redhat.com>
2499
2500 * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
2501 * c-lex.c (conflict_marker_get_final_tok_kind): New function.
2502
4a38b02b
IV
25032015-12-15 Ilya Verbin <ilya.verbin@intel.com>
2504
2505 * c-common.c (c_common_attribute_table): Handle "omp declare target
2506 link" attribute.
2507
54d62f51
JJ
25082015-12-14 Jakub Jelinek <jakub@redhat.com>
2509
2510 PR c/68833
2511 * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
2512
8d4227c8
TB
25132014-12-12 Tobias Burnus <burnus@net-b.de>
2514
2515 PR fortran/68815
2516 * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
2517 specifiers (%d, %i,%u and %c).
2518
f6069ccc
DM
25192015-12-10 David Malcolm <dmalcolm@redhat.com>
2520
2521 * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
2522
63bbf46d
JJ
25232015-12-08 Jakub Jelinek <jakub@redhat.com>
2524
2525 PR c/48088
2526 PR c/68657
2527 * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
2528 * c-pragma.c (handle_pragma_diagnostic): Adjust
2529 control_warning_option caller.
2530
f79520bb
DM
25312015-12-07 David Malcolm <dmalcolm@redhat.com>
2532
2533 * c-common.c (c_cpp_error): Update for change to
2534 rich_location::set_range.
2535
b3d5bc62
JJ
25362015-12-04 Paolo Bonzini <bonzini@gnu.org>
2537
2538 * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
2539 shifting 1 out of the sign bit.
2540
25412015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
2542
2543 * c-common.c (c_common_attribute_table[]): Update max arguments
2544 count for "simd" attribute.
2545 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
2546
6eb4a537
JJ
25472015-12-03 Jakub Jelinek <jakub@redhat.com>
2548
2549 PR preprocessor/57580
2550 * c-ppoutput.c (print): Change printed field to bool.
2551 Move src_file last for smaller padding.
2552 (init_pp_output): Set print.printed to false instead of 0.
2553 (scan_translation_unit): Fix up formatting. Set print.printed
2554 to true after printing something other than newline.
2555 (scan_translation_unit_trad): Set print.printed to true instead of 1.
2556 (maybe_print_line_1): Set print.printed to false instead of 0.
2557 (print_line_1): Likewise.
2558 (do_line_change): Set print.printed to true instead of 1.
2559 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
2560 dump_macro): Set print.printed to false after printing newline.
2561
4250754e
JM
25622015-12-02 Jason Merrill <jason@redhat.com>
2563
f479b43d
JM
2564 * c-common.c (fold_for_warn): New.
2565 (warn_logical_operator, warn_tautological_cmp)
2566 (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
2567
4250754e
JM
2568 * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
2569 (c_fully_fold_internal, decl_constant_value_for_optimization):
2570 Move to c/c-fold.c.
2571 * c-common.h: Don't declare decl_constant_value_for_optimization.
2572
e9e32ee6
JM
25732015-12-02 Joseph Myers <joseph@codesourcery.com>
2574
2575 PR c/68162
2576 * c-common.h (c_build_qualified_type): Add extra default
2577 arguments.
2578
37d5ad46
JB
25792015-12-01 Julian Brown <julian@codesourcery.com>
2580 Cesar Philippidis <cesar@codesourcery.com>
2581 James Norris <James_Norris@mentor.com>
2582
2583 * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
2584 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
2585 (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
2586
f07862c7
EB
25872015-11-30 Eric Botcazou <ebotcazou@adacore.com>
2588
2589 * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
2590 (decl_sloc_common): Delete and move bulk of processing to...
2591 (decl_sloc): ...here.
2592 (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
2593 (dump_ada_double_name): Remove S parameter and compute the suffix.
2594 (dump_ada_array_type): Add PARENT parameter. Simplify computation of
2595 element type and deal with an anonymous one.
2596 (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
2597 (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type
2598 and remove reference to QUAL_UNION_TYPE.
2599 (dump_nested_types): Make 2 passes on the fields and move bulk to...
2600 (dump_nested_type): ...here. New function extracted from above.
2601 Generate a full declaration for anonymous element type of arrays.
2602 (print_ada_declaration): Really skip anonymous declarations. Remove
2603 references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type.
2604 Clean up processing of declarations of array types and objects.
2605 (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
2606 Remove obsolete code and tidy up.
2607
75c8aac3
JH
26082015-11-29 Jan Hubicka <hubicka@ucw.cz>
2609
2610 PR c/67581
2611 * c-common.c (handle_transparent_union_attribute): Update
2612 also type variants.
2613
b58d3df2
ML
26142015-11-27 Martin Liska <mliska@suse.cz>
2615
2616 PR c++/68312
2617 * array-notation-common.c (cilkplus_extract_an_triplets):
2618 Release vector of vectors.
2619 * cilk.c (gimplify_cilk_spawn): Free allocated memory.
2620
89a01fcf
EB
26212015-11-26 Eric Botcazou <ebotcazou@adacore.com>
2622
2623 PR c++/68527
2624 * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
2625 (print_ada_struct_decl): Likewise.
2626
cc5c5226
IZ
26272015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
2628
2629 PR c++/68001
2630 * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
2631 * cilk.c (recognize_spawn): Determine location in a more precise
2632 way.
2633
269adb9d
JM
26342015-11-19 Jason Merrill <jason@redhat.com>
2635
2636 * c-common.c (shorten_compare): But look through macros from
2637 system headers.
2638
d0eccfcd
JM
26392015-11-18 Jason Merrill <jason@redhat.com>
2640
2641 * c-common.c (shorten_compare): Don't -Wtype-limits if the
2642 non-constant operand comes from a macro.
2643
3e44547c
JM
26442015-11-17 Jason Merrill <jason@redhat.com>
2645
2646 PR bootstrap/68346
2647 * c-common.c (warn_tautological_cmp): Fold before checking for
2648 constants.
2649
0f62c7a0
MP
26502015-11-16 Marek Polacek <polacek@redhat.com>
2651
2652 PR c++/68362
2653 * c-common.c (check_case_bounds): Fold low and high cases.
2654
a868811e
MP
26552015-11-16 Marek Polacek <polacek@redhat.com>
2656
2657 * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
2658 * c-common.c (c_common_get_alias_set): Likewise.
2659 (handle_visibility_attribute): Likewise.
2660
fff77217
KY
26612015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
2662
2663 * c-common.c (handle_simd_attribute): New.
2664 (struct attribute_spec): Add entry for "simd".
2665 (handle_simd_attribute): New.
2666
269e63b7
KT
26672015-11-13 Kai Tietz <ktietz70@googlemail.com>
2668
2669 * c-lex.c (interpret_float): Use fold_convert.
2670
ebedc9a3
DM
26712015-11-13 David Malcolm <dmalcolm@redhat.com>
2672
2673 * c-common.c (c_fully_fold_internal): Capture existing souce_range,
2674 and store it on the result.
2675 * c-opts.c (c_common_init_options): Set
2676 global_dc->colorize_source_p.
2677
6e232ba4
JN
26782015-11-12 James Norris <jnorris@codesourcery.com>
2679 Joseph Myers <joseph@codesourcery.com>
2680
2681 * c-pragma.c (oacc_pragmas): Add entry for declare directive.
2682 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
2683 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
2684 PRAGMA_OACC_CLAUSE_LINK.
2685
e78bede6
MP
26862015-11-11 Marek Polacek <polacek@redhat.com>
2687
2688 PR c/68107
2689 PR c++/68266
2690 * c-common.c (valid_array_size_p): New function.
2691 * c-common.h (valid_array_size_p): Declare.
2692
3f8257db 26932015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
4ac93c7c
DH
2694
2695 PR bootstrap/68271
2696 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
2697
69f293c9
AM
26982015-11-11 Andrew MacLeod <amacleod@redhat.com>
2699
2700 * array-notation-common.c: Remove unused header files.
2701 * c-ada-spec.c: Likewise.
2702 * c-cilkplus.c: Likewise.
2703 * c-common.c: Likewise.
2704 * c-cppbuiltin.c: Likewise.
2705 * c-dump.c: Likewise.
2706 * c-format.c: Likewise.
2707 * c-gimplify.c: Likewise.
2708 * c-indentation.c: Likewise.
2709 * c-lex.c: Likewise.
2710 * c-omp.c: Likewise.
2711 * c-opts.c: Likewise.
2712 * c-pch.c: Likewise.
2713 * c-ppoutput.c: Likewise.
2714 * c-pragma.c: Likewise.
2715 * c-pretty-print.c: Likewise.
2716 * c-semantics.c: Likewise.
2717 * c-ubsan.c: Likewise.
2718 * cilk.c: Likewise.
2719 * stub-objc.c: Likewise.
2720
3a40d81d
NS
27212015-11-09 Thomas Schwinge <thomas@codesourcery.com>
2722 Cesar Philippidis <cesar@codesourcery.com>
2723 James Norris <jnorris@codesourcery.com>
2724 Julian Brown <julian@codesourcery.com>
2725 Nathan Sidwell <nathan@codesourcery.com>
2726
2727 * c-pragma.c (oacc_pragmas): Add "routine".
2728 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
2729
ee45a32d
EB
27302015-11-08 Eric Botcazou <ebotcazou@adacore.com>
2731
2732 * c-common.c (c_common_attributes): Add scalar_storage_order.
2733 (handle_scalar_storage_order_attribute): New function.
2734 * c-pragma.c (global_sso): New variable.
2735 (maybe_apply_pragma_scalar_storage_order): New function.
2736 (handle_pragma_scalar_storage_order): Likewise.
2737 (init_pragma): Register scalar_storage_order.
2738 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
2739 * c.opt (Wscalar-storage-order): New warning.
2740 (fsso-struct=): New option.
2741
eb11eb15
MS
27422015-11-08 Martin Sebor <msebor@redhat.com>
2743
2744 * c.opt (Wplacement-new): Add a period to the end of a sentence.
2745
0aad0198
RS
27462015-11-07 Richard Sandiford <richard.sandiford@arm.com>
2747
2748 * c-common.c: Don't undef DEF_BUILTIN.
2749
8a645150
DM
27502015-11-06 David Malcolm <dmalcolm@redhat.com>
2751
2752 * c-common.c (c_cpp_error): Convert parameter from location_t to
2753 rich_location *. Eliminate the "column_override" parameter and
2754 the call to diagnostic_override_column.
2755 Update the "done_lexing" clause to set range 0
2756 on the rich_location, rather than overwriting a location_t.
2757 * c-common.h (c_cpp_error): Convert parameter from location_t to
2758 rich_location *. Eliminate the "column_override" parameter.
2759
7a5e4956
CP
27602015-11-05 Cesar Philippidis <cesar@codesourcery.com>
2761 Thomas Schwinge <thomas@codesourcery.com>
2762 James Norris <jnorris@codesourcery.com>
2763
2764 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
2765 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
2766 clauses with parallel and kernels and loops.
2767 * c-pragma.h (enum pragma_omp_clause): Add entries for
2768 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
2769 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
2770 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
2771 INDEPENDENT,SEQ}.
2772 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
2773
e2f5cc96
MS
27742015-11-05 Martin Sebor <msebor@redhat.com>
2775
2776 PR c++/67942
2777 * c.opt (-Wplacement-new): New option.
2778
e01d41e5
JJ
27792015-11-05 Jakub Jelinek <jakub@redhat.com>
2780
2781 * c-common.h (c_finish_omp_atomic): Add TEST argument.
2782 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
2783 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
2784 save_expr or create_tmp_var* if TEST is true.
2785 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
2786 Don't call add_stmt here.
2787 (struct c_omp_check_loop_iv_data): New type.
2788 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
2789 c_omp_check_loop_iv_exprs): New functions.
2790 (c_omp_split_clauses): Adjust for lastprivate being allowed on
2791 distribute.
2792 (c_omp_declare_simd_clauses_to_numbers): Change
2793 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
2794 (c_omp_declare_simd_clauses_to_decls): Similarly change those
2795 from numbers to PARM_DECLs.
2796
595278be
MM
27972015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
2798
2799 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
2800 flag_checking.
2801
3f8257db 28022015-11-03 Bernd Schmidt <bschmidt@redhat.com>
c85158de
MS
2803
2804 PR c++-common/67882
b3d5bc62
JJ
2805 * c-common.h (fold_offsetof_1): Add argument.
2806 * c-common.c (fold_offsetof_1): Diagnose more invalid
c85158de
MS
2807 offsetof expressions that reference elements past the end of
2808 an array.
2809
4bf9e5a8
TS
28102015-11-03 Thomas Schwinge <thomas@codesourcery.com>
2811 Chung-Lin Tang <cltang@codesourcery.com>
2812
2813 * c-pragma.c (oacc_pragmas): Add "atomic".
2814 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
2815
3b1661a9
ES
28162015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
2817
2818 * c-common.c (handle_target_clones_attribute): New.
2819 (c_common_attribute_table): Add handle_target_clones_attribute.
2820 (handle_always_inline_attribute): Add check on target_clones attribute.
2821 (handle_target_attribute): Ditto.
2822
2adfab87
AM
28232015-10-29 Andrew MacLeod <amacleod@redhat.com>
2824
2825 * array-notation-common.c: Reorder #include's and remove duplicates.
2826 * c-ada-spec.c: Likewise.
2827 * c-cilkplus.c: Likewise.
2828 * c-common.c: Likewise.
2829 * c-cppbuiltin.c: Likewise.
2830 * c-dump.c: Likewise.
2831 * c-format.c: Likewise.
2832 * c-gimplify.c: Likewise.
2833 * c-indentation.c: Likewise.
2834 * c-lex.c: Likewise.
2835 * c-omp.c: Likewise.
2836 * c-opts.c: Likewise.
2837 * c-pch.c: Likewise.
2838 * c-ppoutput.c: Likewise.
2839 * c-pragma.c: Likewise.
2840 * c-pretty-print.c: Likewise.
2841 * c-semantics.c: Likewise.
2842 * c-ubsan.c: Likewise.
2843 * cilk.c: Likewise.
2844 * stub-objc.c: Likewise.
2845
d90ec4f2
JM
28462015-10-28 Jason Merrill <jason@redhat.com>
2847
2848 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
2849
88bae6f4
TS
28502015-10-27 Thomas Schwinge <thomas@codesourcery.com>
2851 James Norris <jnorris@codesourcery.com>
2852 Cesar Philippidis <cesar@codesourcery.com>
2853
2854 PR c/64765
2855 PR c/64880
2856 * c-common.h (c_oacc_split_loop_clauses): Declare function.
2857 * c-omp.c (c_oacc_split_loop_clauses): New function.
2858
b1726d6c
MS
28592015-10-21 Martin Sebor <msebor@redhat.com>
2860
2861 PR driver/68043
2862 * c.opt: End each sentence that describes an option with a period.
2863
fa60eeb9
MP
28642015-10-20 Marek Polacek <polacek@redhat.com>
2865
2866 * array-notation-common.c (is_cilkplus_vector_p): Define.
2867 * c-common.h (is_cilkplus_vector_p): Declare.
2868
95979049
MP
28692015-10-20 Marek Polacek <polacek@redhat.com>
2870
2871 * c.opt (std=gnu++11): Do not describe as experimental.
2872 (std=gnu++14): Likewise.
2873
2a9fb712
JM
28742015-10-19 Jason Merrill <jason@redhat.com>
2875
2876 * c-cppbuiltin.c (c_cpp_builtins): Define
2877 __cpp_nontype_template_args.
2878
13b380a3
JM
28792015-10-19 Jason Merrill <jason@redhat.com>
2880
2881 * c-cppbuiltin.c (c_cpp_builtins): Define
2882 __cpp_enumerator_attributes, __cpp_fold_expressions,
2883 __cpp_unicode_characters.
2884
d9a6bd32
JJ
28852015-10-13 Jakub Jelinek <jakub@redhat.com>
2886 Aldy Hernandez <aldyh@redhat.com>
2887
2888 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
2889 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
2890 (c_define_builtins): Likewise.
2891 * c-common.h (enum c_omp_clause_split): Add
2892 C_OMP_CLAUSE_SPLIT_TASKLOOP.
2893 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
2894 (c_finish_omp_for): Add ORIG_DECLV argument.
2895 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
2896 201511 instead of 201307.
2897 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
2898 OMP_CRITICAL_CLAUSES to it.
2899 (c_finish_omp_ordered): Add CLAUSES argument, set
2900 OMP_ORDERED_CLAUSES to it.
2901 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
2902 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
2903 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
2904 constructs and new OpenMP 4.5 clauses. Clear
2905 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
2906 verification code.
2907 * c-pragma.c (omp_pragmas_simd): Add taskloop.
2908 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
2909 (enum pragma_omp_clause): Add
2910 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
2911 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
2912
624d31fe
RS
29132015-10-05 Richard Sandiford <richard.sandiford@arm.com>
2914
2915 * c-lex.c (interpret_float): Use real_equal instead of
2916 REAL_VALUES_EQUAL.
2917
b8fd7909
JM
29182015-10-04 Jason Merrill <jason@redhat.com>
2919
2920 Implement N4514, C++ Extensions for Transactional Memory.
2921 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
2922 (c_common_attribute_table): Add transaction_safe_dynamic.
2923 transaction_safe now affects type identity.
2924 (handle_tm_attribute): Handle transaction_safe_dynamic.
2925 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
2926 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
2927 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
2928 (D_TRANSMEM): New.
2929 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
2930 * c-pretty-print.c (pp_c_attributes_display): Don't print
2931 transaction_safe in C++.
2932
12651878
MP
29332015-10-02 Marek Polacek <polacek@redhat.com>
2934
2935 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
2936
3e3b8d63
MP
29372015-10-02 Marek Polacek <polacek@redhat.com>
2938
2939 PR c/64249
2940 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
2941 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
2942 * c.opt (Wduplicated-cond): New option.
2943
0d1a8f75
JM
29442015-10-01 Joseph Myers <joseph@codesourcery.com>
2945
2946 * c.opt (std=c11): Do not describe as experimental.
2947 (std=gnu11): Likewise.
2948 (std=iso9899:2011): Likewise.
2949
3e32ee19
NS
29502015-09-28 Nathan Sidwell <nathan@codesourcery.com>
2951
2952 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
2953 (DEF_FUNCTION_TYPE_VAR_11): Delete.
2954
974348ee
MP
29552015-09-25 Marek Polacek <polacek@redhat.com>
2956
2957 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
2958 (ubsan_instrument_shift): Likewise.
2959
15dbc1a6
MP
29602015-09-25 Marek Polacek <polacek@redhat.com>
2961
2962 PR sanitizer/64906
2963 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
2964
6b95d7cc
PP
29652015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
2966
2967 * c-indentation.c (should_warn_for_misleading_indentation):
2968 Compare next_stmt_vis_column with guard_line_first_nws instead
2969 of with guard_line_vis_column.
2970
c1822f9c
MLI
29712015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
2972
2973 PR c/49654
2974 PR c/49655
2975 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
2976 options and options not valid for the current language.
2977
d5398058
PP
29782015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
2979
2980 * c-indentation.c (should_warn_for_misleading_indentation):
2981 Float out and consolidate the calls to get_visual_column that
2982 are passed guard_exploc as an argument. Compare
2983 next_stmt_vis_column with guard_line_first_nws instead of with
2984 body_line_first_nws.
2985
6b333269
NS
29862015-09-22 Nathan Sidwell <nathan@codesourcery.com>
2987
2988 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
2989 Wnamespaces): New C++ warnings.
2990
a75f1574
JM
29912015-09-22 Jason Merrill <jason@redhat.com>
2992
2993 * c-common.h (abi_compat_version_crosses): New.
2994 (warn_abi_version): Declare.
2995 * c-common.c: Define it.
2996 * c-opts.c (c_common_post_options): Handle it.
2997 flag_abi_compat_version defaults to 8.
2998
bdaaa8b7
VV
29992015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
3000
3001 Complete the implementation of N4230, Nested namespace definition.
3002 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
3003 __cpp_nested_namespace_definitions.
3004
eaa797e8
MLI
30052015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
3006
3007 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
3008
c4914de6
MLI
30092015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
3010
3011 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
3012 when warning.
3013 * c-pragma.h (pragma_lex): Add optional loc argument.
3014
fcb87c50
MM
30152015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
3016
3017 * c-format.c (check_format_arg): Adjust to use common block size in all
3018 object pools.
3019
31bdd08a
DM
30202015-09-15 David Malcolm <dmalcolm@redhat.com>
3021
3022 * c-format.c (location_from_offset): Update for change in
3023 signature of location_get_source_line.
3024 * c-indentation.c (get_visual_column): Likewise.
3025 (line_contains_hash_if): Likewise.
3026
aa9f4b4c
MP
30272015-09-14 Marek Polacek <polacek@redhat.com>
3028
3029 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
3030 setting various warnings.
3031
aa256c4a
MP
30322015-09-14 Marek Polacek <polacek@redhat.com>
3033
3034 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
3035 a negative value.
3036
0f876f22
MW
30372015-09-11 Mark Wielaard <mjw@redhat.com>
3038
3039 PR c/28901
3040 * c.opt (Wunused-variable): Option from common.opt.
3041 (Wunused-const-variable): New option.
3042
273aa49e
PC
30432015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
3044
3045 PR c++/53184
3046 * c.opt ([Wsubobject-linkage]): Add.
3047
1807ffc1
MS
30482015-09-03 Martin Sebor <msebor@redhat.com>
3049
3050 PR c/66516
3051 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
3052 functions.
3053 * c-common.c (reject_gcc_builtin): Define.
3054
38942840
BI
30552015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
3056
3057 PR middle-end/60586
3058 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
3059 prototype.
3060 * c-gimplify.c (c_gimplify_expr): Added a call to the function
3061 cilk_gimplify_call_params_in_spawned_fn.
3062 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
3063 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
3064 unwrapping.
3065
c316b5e4
MP
30662015-08-25 Marek Polacek <polacek@redhat.com>
3067
3068 PR middle-end/67330
3069 * c-common.c (handle_weak_attribute): Don't check whether the
3070 visibility can be changed here.
3071
584a7c46
MLI
30722015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
3073
3074 * c-lex.c (c_lex_with_flags): Use explicit locations.
3075
a79683d5
TS
30762015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
3077
3078 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
3079 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
3080
61717a45
FXC
30812015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3082
3083 PR middle-end/36757
3084 * c-common.c (check_builtin_function_arguments): Add check
3085 for BUILT_IN_SIGNBIT argument.
3086
329524f5
PC
30872015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
3088
3089 PR c++/67160
3090 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
3091 in c++1z mode.
3092
4ee55665
MP
30932015-08-17 Marek Polacek <polacek@redhat.com>
3094
3095 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
3096 with whitespaces before qualifier names.
3097
b893e375
MP
30982015-08-12 Marek Polacek <polacek@redhat.com>
3099
3100 PR c++/55095
3101 * c-common.c (maybe_warn_shift_overflow): Properly handle
3102 left-shifting 1 into the sign bit.
3103
c2d89095
MLI
31042015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3105
3106 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
3107
971e17ff
AS
31082015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
3109 Braden Obrzut <admin@maniacsvault.net>
3110 Jason Merrill <jason@redhat.com>
3111
3112 Add C++ Concepts TS support.
3113 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
3114 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
3115 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
3116 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
3117 * c-opts.c (set_std_cxx1z): Set flag_concepts.
3118 * c.opt (fconcepts): New.
3119
b3d5bc62
JJ
31202015-08-02 Martin Sebor <msebor@redhat.com>
3121
3122 * c.opt (-Wframe-address): New warning option.
3123
8ebca419
PP
31242015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
3125
3126 * c-indentation.c (should_warn_for_misleading_indentation):
3127 Improve heuristics.
3128
1a1e101f
PP
31292015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
3130
3131 * c-indentation.c (get_visual_column): Add parameter first_nws,
3132 use it. Update comment documenting the function.
3133 (is_first_nonwhitespace_on_line): Remove.
3134 (should_warn_for_misleading_indentation): Replace usage of
3135 of is_first_nonwhitespace_on_line with get_visual_column.
3136
992118a1
PP
31372015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
3138
3139 * c-indentation.h (struct token_indent_info): Define.
3140 (get_token_indent_info): Define.
3141 (warn_for_misleading_information): Declare.
3142 * c-common.h (warn_for_misleading_information): Remove.
3143 * c-identation.c (warn_for_misleading_indentation):
3144 Change declaration to take three token_indent_infos. Adjust
3145 accordingly.
3146 * c-identation.c (should_warn_for_misleading_indentation):
3147 Likewise. Bail out early if the body is a compound statement.
3148 (guard_tinfo_to_string): Define.
3149
e8fa3817
JM
31502015-07-30 Jason Merrill <jason@redhat.com>
3151
3152 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
3153 '*' for reference decay.
3154
173864e8
MP
31552015-07-30 Marek Polacek <polacek@redhat.com>
3156
3157 * c-common.c (warn_tautological_cmp): Bail for float types.
3158
f2afe6dd
MP
31592015-07-27 Marek Polacek <polacek@redhat.com>
3160
3161 PR bootstrap/67030
3162 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
3163
05b28fd6
MP
31642015-07-27 Marek Polacek <polacek@redhat.com>
3165
3166 PR c++/66555
3167 PR c/54979
3168 * c-common.c (find_array_ref_with_const_idx_r): New function.
3169 (warn_tautological_cmp): New function.
3170 * c-common.h (warn_tautological_cmp): Declare.
3171 * c.opt (Wtautological-compare): New option.
3172
5a5062b8
MP
31732015-07-23 Marek Polacek <polacek@redhat.com>
3174
3175 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
3176 (ubsan_instrument_shift): Likewise.
3177
dc891fe7
MP
31782015-07-23 Marek Polacek <polacek@redhat.com>
3179
3180 PR sanitizer/66908
3181 * c-ubsan.c: Include gimplify.h.
3182 (ubsan_instrument_division): Unshare OP0 and OP1.
3183 (ubsan_instrument_shift): Likewise.
3184
451b5e48
MP
31852015-07-20 Marek Polacek <polacek@redhat.com>
3186 Richard Sandiford <richard.sandiford@arm.com>
3187
3188 PR c++/55095
3189 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
3190 Use EXPR_LOC_OR_LOC.
3191 (maybe_warn_shift_overflow): New function.
3192 * c-common.h (maybe_warn_shift_overflow): Declare.
3193 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
3194 * c.opt (Wshift-overflow): New option.
3195
fb0b2914
ML
31962015-07-16 Martin Liska <mliska@suse.cz>
3197
3198 * c-format.c (static void check_format_info_main): Use
3199 object_allocator instead of pool_allocator.
3200 (check_format_arg): Likewise.
3201 (check_format_info_main): Likewise.
3202
903f5c23
AM
32032015-07-15 Andrew MacLeod <amacleod@redhat.com>
3204
3205 * c-opts.c: Remove multiline #include comment.
3206
026c3cfd
AH
32072015-07-12 Aldy Hernandez <aldyh@redhat.com>
3208
3209 * c-common.c: Fix double word typos.
3210
bb49ee66
EB
32112015-07-10 Eric Botcazou <ebotcazou@adacore.com>
3212
3213 * c-ada-spec.h (cpp_operation): Revert latest change.
3214 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
3215 constructors and destructors.
3216
1916bcb5
AM
32172015-07-09 Andrew MacLeod <amacleod@redhat.com>
3218
3219 * c-common.h: Adjust includes for flags.h changes.
3220 * stub-objc.c: Likewise.
026c3cfd 3221
a9dcd529
EB
32222015-07-08 Eric Botcazou <ebotcazou@adacore.com>
3223
3224 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
3225 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
3226
b03b462f
JJ
32272015-07-08 Jakub Jelinek <jakub@redhat.com>
3228
3229 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
3230 are to be removed, return NULL rather than original clauses list.
3231
c7131fb2
AM
32322015-07-07 Andrew MacLeod <amacleod@redhat.com>
3233
3234 * array-notation-common.c: Adjust includes.
3235 * c-ada-spec.c: Likewise.
3236 * c-cilkplus.c: Likewise.
3237 * c-common.h: Likewise.
3238 * c-cppbuiltin.c: Likewise.
3239 * c-dump.c: Likewise.
3240 * c-format.c: Likewise.
3241 * c-gimplify.c: Likewise.
3242 * c-indentation.c: Likewise.
3243 * c-lex.c: Likewise.
3244 * c-omp.c: Likewise.
3245 * c-opts.c: Likewise.
3246 * c-pch.c: Likewise.
3247 * c-ppoutput.c: Likewise.
3248 * c-pragma.c: Likewise.
3249 * c-pretty-print.c: Likewise.
3250 * c-semantics.c: Likewise.
3251 * c-ubsan.c: Likewise.
3252 * cilk.c: Likewise.
3253 * stub-objc.c: Likewise.
3254
2a7fb83f
EB
32552015-07-07 Eric Botcazou <ebotcazou@adacore.com>
3256
3257 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
3258 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
3259
a03c9bf1
JM
32602015-07-01 Jason Merrill <jason@redhat.com>
3261
36a85135
JM
3262 * c-common.h (D_CXX11): Rename from D_CXX0X.
3263 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
3264 * c-common.c: Adjust.
3265
e7fa68d5
JM
3266 * c-opts.c (c_common_post_options): Default to C++14.
3267
a03c9bf1
JM
3268 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
3269
fe95b036
ESR
32702015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
3271
3272 Implement N4197 - Adding u8 character literals
b3d5bc62 3273 * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
a64be36b 3274 CPP_CHAR.
b3d5bc62 3275 * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
a64be36b 3276 CPP_UTF8CHAR_USERDEF tokens.
b3d5bc62 3277 * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
a64be36b
EB
3278 and CPP_UTF8CHAR tokens.
3279 (lex_charconst): Treat CPP_UTF8CHAR token.
fe95b036 3280
da2e71c9
MLI
32812015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3282
3283 PR fortran/66605
3284 * c-common.c (do_warn_unused_parameter): Move here.
3285 * c-common.h (do_warn_unused_parameter): Declare.
3286
b155cfd9
MP
32872015-06-29 Marek Polacek <polacek@redhat.com>
3288
3289 PR c/66322
3290 * c-common.c (check_case_bounds): Add bool * parameter. Set
3291 OUTSIDE_RANGE_P.
3292 (c_add_case_label): Add bool * parameter. Pass it down to
3293 check_case_bounds.
3294 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
3295 warning here.
3296 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
3297 declarations.
3298
31521951
MP
32992015-06-27 Marek Polacek <polacek@redhat.com>
3300
3301 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
3302 or VECTOR_INTEGER_TYPE_P throughout.
3303 * c-gimplify.c: Likewise.
3304
22d03525
MP
33052015-06-26 Marek Polacek <polacek@redhat.com>
3306
3307 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
3308 * c-common.c (c_fully_fold_internal): Likewise.
3309 (c_alignof_expr): Likewise.
3310 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
3311 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
b1726d6c 3312 * cilk.c (create_parm_list): Likewise.
22d03525 3313
af05e6e5
MP
33142015-06-26 Marek Polacek <polacek@redhat.com>
3315
3316 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
3317
f0889939
AM
33182015-06-25 Andrew MacLeod <amacleod@redhat.com>
3319
3320 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
3321 * c-gimplify.c: Likewise.
3322 * c-pragma.c: Likewise.
3323 * c-ubsan.c: Likewise.
3324 * cilk.c: Likewise.
3325
ca752f39
RS
33262015-06-25 Richard Sandiford <richard.sandiford@arm.com>
3327
3328 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
3329 ggc_hasher.
3330
16a16ec7
AM
33312015-06-25 Andrew MacLeod <amacleod@redhat.com>
3332
3333 * cilk.c: Move calls.h after tm.h in the include chain.
3334
0ae9bd27
MP
33352015-06-25 Marek Polacek <polacek@redhat.com>
3336
3337 * array-notation-common.c: Use VAR_P throughout.
3338 * c-ada-spec.c: Likewise.
3339 * c-common.c: Likewise.
3340 * c-format.c: Likewise.
3341 * c-gimplify.c: Likewise.
3342 * c-omp.c: Likewise.
3343 * c-pragma.c: Likewise.
3344 * c-pretty-print.c: Likewise.
3345 * cilk.c: Likewise.
3346
62f9079a
MP
33472015-06-25 Marek Polacek <polacek@redhat.com>
3348
3349 * cilk.c (extract_free_variables): Use is_global_var.
3350
0fa16060
RS
33512015-06-23 Richard Sandiford <richard.sandiford@arm.com>
3352
3353 * c-common.c: Don't include target-def.h.
3354
a68ae2e1
MP
33552015-06-23 Marek Polacek <polacek@redhat.com>
3356
3357 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
3358 when comparing INTEGER_CSTs.
3359
c6a2f2d9
PMR
33602015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
3361
3362 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
3363 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
3364 (dump_ada_template): Skip partially specialized types.
3365
6b4db501
MM
33662015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
3367
3368 * c-common.c (scalar_to_vector): Use std::swap instead of manually
3369 swapping.
3370
abb226c9
AM
33712015-06-17 Andrew MacLeod <amacleod@redhat.com>
3372
3373 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
3374 * c-ada-spec.c: Likewise.
3375 * c-cilkplus.c: Likewise.
3376 * c-common.c: Likewise.
3377 * c-common.h: Likewise.
3378 * c-cppbuiltin.c: Likewise.
3379 * c-dump.c: Likewise.
3380 * c-format.c: Likewise.
3381 * c-gimplify.c: Likewise.
3382 * c-indentation.c: Likewise.
3383 * c-lex.c: Likewise.
3384 * c-omp.c: Likewise.
3385 * c-opts.c: Likewise.
3386 * c-pch.c: Likewise.
3387 * c-ppoutput.c: Likewise.
3388 * c-pragma.c: Likewise.
3389 * c-pretty-print.c: Likewise.
3390 * c-semantics.c: Likewise.
3391 * c-ubsan.c: Likewise.
3392 * cilk.c: Likewise.
3393 * stub-objc.c: Likewise.
3394
076fecad
PP
33952015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
3396
3397 PR c++/65168
3398 * c-common.c (c_common_truthvalue_conversion): Warn when
3399 converting an address of a reference to a truth value.
3400
13fdf2e2
AM
34012015-06-08 Andrew MacLeod <amacleod@redhat.com>
3402
3403 * array-notation-common.c : Adjust include files.
3404 * c-ada-spec.c : Likewise.
3405 * c-cilkplus.c : Likewise.
3406 * c-common.c : Likewise.
3407 * c-common.h : Likewise.
3408 * c-cppbuiltin.c : Likewise.
3409 * c-dump.c : Likewise.
3410 * c-format.c : Likewise.
3411 * c-gimplify.c : Likewise.
3412 * c-indentation.c : Likewise.
3413 * c-lex.c : Likewise.
3414 * c-omp.c : Likewise.
3415 * c-opts.c : Likewise.
3416 * c-pch.c : Likewise.
3417 * c-ppoutput.c : Likewise.
3418 * c-pragma.c : Likewise.
3419 * c-pretty-print.c : Likewise.
3420 * c-semantics.c : Likewise.
3421 * c-ubsan.c : Likewise.
3422 * cilk.c : Likewise.
3423 * stub-objc.c : Likewise.
3424
a1661b90
MP
34252015-06-08 Marek Polacek <polacek@redhat.com>
3426
3427 PR c/66415
3428 * c-format.c (location_from_offset): Return LOC if LINE is null.
3429
d7438551
AH
34302015-06-05 Aldy Hernandez <aldyh@redhat.com>
3431
3432 * c-common.h (c_parse_final_cleanups): New prototype.
3433 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
3434
b3d5bc62
JJ
34352015-06-04 Sriraman Tallam <tmsriram@google.com>
3436
3437 * c-common.c (noplt): New attribute.
3438 (handle_noplt_attribute): New handler.
3439
ecb9f223
AM
34402015-06-04 Andrew MacLeod <amacleod@redhat.com>
3441
3442 * array-notation-common.c: Adjust includes for restructured coretypes.h.
3443 * c-ada-spec.c: Likewise.
3444 * c-cilkplus.c: Likewise.
3445 * c-common.c: Likewise.
3446 * c-common.h: Likewise.
3447 * c-cppbuiltin.c: Likewise.
3448 * c-dump.c: Likewise.
3449 * c-format.c: Likewise.
3450 * c-gimplify.c: Likewise.
3451 * c-indentation.c: Likewise.
3452 * c-lex.c: Likewise.
3453 * c-omp.c: Likewise.
3454 * c-opts.c: Likewise.
3455 * c-pch.c: Likewise.
3456 * c-ppoutput.c: Likewise.
3457 * c-pragma.c: Likewise.
3458 * c-pretty-print.c: Likewise.
3459 * c-semantics.c: Likewise.
3460 * c-ubsan.c: Likewise.
3461 * cilk.c: Likewise.
3462 * stub-objc.c: Likewise.
3463
6ac48155
DM
34642015-06-02 David Malcolm <dmalcolm@redhat.com>
3465
3466 PR c/66220:
3467 * c-indentation.c (should_warn_for_misleading_indentation): Use
3468 expand_location rather than expand_location_to_spelling_point.
3469 Don't warn if the guarding statement is more indented than the
3470 next/body stmts.
3471
773ce42e
DM
34722015-06-02 David Malcolm <dmalcolm@redhat.com>
3473
3474 * c-indentation.c (warn_for_misleading_indentation): Bail out
3475 immediately if -Wmisleading-indentation isn't enabled.
3476
4fef8379
ML
34772015-06-01 Martin Liska <mliska@suse.cz>
3478
3479 * c-format.c (check_format_arg):Use new type-based pool allocator.
3480 (check_format_info_main) Likewise.
3481
1edfb384
EB
34822015-05-31 Eric Botcazou <ebotcazou@adacore.com>
3483
3484 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
3485 (has_nontrivial_methods): Likewise.
3486
9677ef52
MP
34872015-05-25 Marek Polacek <polacek@redhat.com>
3488
3489 * c-ubsan.c (ubsan_instrument_shift): Use type0.
3490
fd5c817a
MP
34912015-05-22 Marek Polacek <polacek@redhat.com>
3492
3493 PR c/47043
3494 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
3495
a2f45fe6 34962015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
581edfa3
TS
3497
3498 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
3499 STACK_GROWS_DOWNWARD.
3500
a2f45fe6 35012015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
62f9f30b
TS
3502
3503 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
3504 STACK_GROWS_DOWNWARD rather than if it is defined.
3505
0fee2ac2 35062015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
b1726d6c 3507
0fee2ac2
MLI
3508 PR c/52952
3509 * c-format.c (location_column_from_byte_offset): New.
3510 (location_from_offset): New.
3511 (struct format_wanted_type): Add offset_loc field.
3512 (check_format_info): Move handling of location for extra arguments
3513 closer to the point of warning.
3514 (check_format_info_main): Pass the result of location_from_offset
3515 to warning_at.
3516 (format_type_warning): Pass the result of location_from_offset
3517 to warning_at.
3518
cf4ef6f7
MP
35192015-05-20 Marek Polacek <polacek@redhat.com>
3520
3521 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
3522
3a65ee74
MP
35232015-05-20 Marek Polacek <polacek@redhat.com>
3524
3525 * c-ada-spec.c (dump_sloc): Use DECL_P.
3526
21b634ae
MP
35272015-05-20 Marek Polacek <polacek@redhat.com>
3528
3529 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
3530 * c-common.c: Likewise.
3531
0e50b624
DM
35322015-05-19 David Malcolm <dmalcolm@redhat.com>
3533
3534 * c-common.h (fe_file_change): Strengthen param from
3535 const line_map * to const line_map_ordinary *.
3536 (pp_file_change): Likewise.
3537 * c-lex.c (fe_file_change): Likewise.
3538 (cb_define): Use linemap_check_ordinary when invoking
3539 SOURCE_LINE.
3540 (cb_undef): Likewise.
3541 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
3542 invoking cb_file_change.
3543 (c_finish_options): Likewise.
3544 (push_command_line_include): Likewise.
3545 (cb_file_change): Strengthen param "new_map" from
3546 const line_map * to const line_map_ordinary *.
3547 * c-ppoutput.c (cb_define): Likewise for local "map".
3548 (pp_file_change): Likewise for param "map" and local "from".
3549
fab27f52
MM
35502015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
3551
3552 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
3553
2fe1d762
TV
35542015-05-18 Tom de Vries <tom@codesourcery.com>
3555
3556 * c-common.c (build_va_arg_1): New function.
3557 (build_va_arg): Add address operator to va_list operand if necessary.
3558
7a37fa90
MM
35592015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
3560
3561 PR c/48956
3562 * c-common.c (int_safely_convertible_to_real_p): Define.
3563 (unsafe_conversion_p): Check conversions involving complex types.
3564 (conversion_warning): Add new warning message for conversions which
3565 discard imaginary component.
3566 * c-common.h: (enum conversion_safety): Add new enumerator for such
3567 conversions.
3568
3aa3c9fc
MP
35692015-05-14 Marek Polacek <polacek@redhat.com>
3570
3571 PR c/66066
3572 PR c/66127
3573 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
3574 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
3575 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
3576 use it. If FOR_INT_CONST, require that all evaluated operands be
3577 INTEGER_CSTs.
3578
c3388e62
DM
35792015-05-12 David Malcolm <dmalcolm@redhat.com>
3580
3581 * c-common.h (warn_for_misleading_indentation): New prototype.
3582 * c-indentation.c: New file.
3583 * c.opt (Wmisleading-indentation): New option.
3584
c7b38fd5
TV
35852015-05-12 Tom de Vries <tom@codesourcery.com>
3586
3587 PR tree-optimization/66010
3588 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
3589
381bf11e
JM
35902015-05-09 Jason Merrill <jason@redhat.com>
3591
edff0c06
JM
3592 * c-opts.c (c_common_post_options): Also clear
3593 cpp_opts->cpp_warn_cxx11_compat.
3594
129211bc
JM
3595 * c-common.h (enum cxx_dialect): Add cxx_unset.
3596 * c-common.c (cxx_dialect): Initialize to cxx_unset.
3597 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
3598
381bf11e
JM
3599 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
3600 (std=gnu++0x): Mark as Undocumented.
3601 (std=gnu++1y): Add deprecated message.
3602
fe191308
JM
36032015-05-08 Jason Merrill <jason@redhat.com>
3604
765189ff
JM
3605 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
3606 * c-opts.c: Adjust.
3607
fe191308
JM
3608 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
3609
755e528f
MP
36102015-05-08 Marek Polacek <polacek@redhat.com>
3611
3612 PR c/64918
3613 * c.opt (Woverride-init-side-effects): New option.
3614
0173bd2a
MP
36152015-05-07 Marek Polacek <polacek@redhat.com>
3616
3617 PR c/65179
3618 * c-common.c (c_fully_fold_internal): Warn when left shifting a
3619 negative value.
3620 * c.opt (Wshift-negative-value): New option.
3621 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
3622 when -Wextra and C99/C++11 mode.
3623
e0f0d3b9
MP
36242015-05-07 Marek Polacek <polacek@redhat.com>
3625 Martin Uecker <uecker@eecs.berkeley.edu>
3626
3627 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
3628 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
3629
8243e2a9
JM
36302015-05-05 Jason Merrill <jason@redhat.com>
3631
3632 * c.opt (Wterminate): New.
3633
577cd070
MP
36342015-04-30 Marek Polacek <polacek@redhat.com>
3635
3636 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
3637 require that the non-constant be of a boolean type.
3638
0373796b
JT
36392015-04-29 Josh Triplett <josh@joshtriplett.org>
3640
e0f0d3b9
MP
3641 * c-common.c (handle_section_attribute): Refactor to reduce
3642 nesting and distinguish between error cases.
0373796b 3643
716c0ba6
MP
36442015-04-29 Marek Polacek <polacek@redhat.com>
3645
3646 PR c/64610
3647 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
3648 with 0/1.
3649
8848828b
JJ
36502015-04-29 Jakub Jelinek <jakub@redhat.com>
3651
3652 * c-common.h (omp_clause_mask): Unconditionally define as a class.
3653 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
3654 HOST_BITS_PER_WIDE_INT.
3655
ecd0e562
TV
36562015-04-28 Tom de Vries <tom@codesourcery.com>
3657
3658 PR tree-optimization/65887
3659 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
3660
2a877204 36612015-04-28 Eric Botcazou <ebotcazou@adacore.com>
e0f0d3b9 3662 Pierre-Marie de Rodat <derodat@adacore.com>
2a877204
EB
3663
3664 * c-ada-spec.c (in_function): Delete.
3665 (dump_generic_ada_node): Do not change in_function and remove the
3666 redundant code dealing with it.
3667 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
3668 (print_ada_methods): Output the static member functions in a nested
3669 package after the regular methods as well as associated renamings.
3670
4853031e
MP
36712015-04-24 Marek Polacek <polacek@redhat.com>
3672
3673 PR c/65830
3674 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
3675 and OPT_Wshift_count_overflow.
3676
8c2b7f79
MP
3677 PR c/63357
3678 * c-common.c (warn_logical_operator): Warn if the operands have the
3679 same expressions.
3680
b8787813
MP
36812015-04-24 Marek Polacek <polacek@redhat.com>
3682
3683 PR c/61534
3684 * c-common.c (warn_logical_operator): Bail if either operand comes
3685 from a macro expansion.
3686
8fba1830
BRF
36872015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3688
3689 PR target/55143
3690 * c-common.c (c_default_pointer_mode): Add definition.
3691 * c-common.h (c_default_pointer_mode): Add declaration.
3692
17958621
JJ
36932015-03-11 Jakub Jelinek <jakub@redhat.com>
3694
3695 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
3696 on record_builtin_type argument.
3697
7ccb1a11
JJ
36982015-03-10 Jakub Jelinek <jakub@redhat.com>
3699
3700 PR c/65120
3701 * c-common.c (warn_logical_not_parentheses): Don't warn for
3702 !x == 0 or !x != 0.
3703
04fd785e
MP
37042015-03-07 Marek Polacek <polacek@redhat.com>
3705
3706 PR sanitizer/65280
3707 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
3708 before trying to figure out whether we have a flexible array member.
3709
a4e26206 37102015-03-06 Eric Botcazou <ebotcazou@adacore.com>
8e745a17 3711 Jonathan Wakely <jwakely.gcc@gmail.com>
a4e26206
EB
3712
3713 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
3714
0d2489f4
EB
37152015-03-05 Eric Botcazou <ebotcazou@adacore.com>
3716
3717 PR ada/65319
3718 * c-ada-spec.c (print_destructor): Remove obsolete code.
3719
83ed54d7
EB
37202015-03-01 Eric Botcazou <ebotcazou@adacore.com>
3721
3722 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
3723 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
3724 DECL_TEMPLATE_RESULT emulations.
3725 (dump_ada_template)): Add guard for TYPE_METHODS.
3726
7631f0e2
MP
37272015-02-27 Marek Polacek <polacek@redhat.com>
3728
3729 PR c/65040
3730 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
3731
d1783ae5
KT
37322015-02-27 Kai Tietz <ktietz@redhat.com>
3733
3734 PR c/35330
3735 * c-pragma.c (handle_pragma_weak): Do not try to create
3736 weak/alias of declarations not being function, or variable
3737 declarations.
3738
56a9f6bc
TS
37392015-02-24 Thomas Schwinge <thomas@codesourcery.com>
3740
3741 PR libgomp/64625
3742 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
3743 Remove macros.
3744 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
3745
3d5cb23d
MP
37462015-02-16 Marek Polacek <polacek@redhat.com>
3747
3748 PR c/65066
3749 * c-format.c (check_format_types): Handle null param.
3750
fa008882
MP
37512015-02-13 Marek Polacek <polacek@redhat.com>
3752
3753 PR c/65040
3754 * c-format.c (check_format_types): Don't warn about different
3755 signedness if the original value is in the range of WANTED_TYPE.
3756
785f21af
JM
37572015-02-12 Jason Merrill <jason@redhat.com>
3758
3759 PR c++/64956
3760 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
3761 to the current highest version.
3762 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
3763
4886ec8e
JJ
37642015-02-04 Jakub Jelinek <jakub@redhat.com>
3765
3766 PR c/64824
3767 PR c/64868
3768 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
3769 instead of RDIV_EXPR. Use build_binary_op instead of
3770 build2_loc.
3771
40fecdd6
JM
37722015-01-30 Joseph Myers <joseph@codesourcery.com>
3773
3774 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
3775 to pass input_location as first argument.
3776
a0c88d06
TV
37772015-01-23 Tom de Vries <tom@codesourcery.com>
3778
3779 PR libgomp/64672
3780 * c.opt (fopenacc): Mark as LTO option.
3781
1506ae0e
TV
37822015-01-23 Tom de Vries <tom@codesourcery.com>
3783
3784 PR libgomp/64707
3785 * c.opt (fopenmp): Mark as LTO option.
3786
31be63ab
JJ
37872015-01-21 Jakub Jelinek <jakub@redhat.com>
3788
3789 PR c/63307
b1726d6c 3790 * cilk.c (fill_decls_vec): Only put decls into vector v.
31be63ab
JJ
3791 (compare_decls): Fix up formatting.
3792
37932015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
3794
3795 PR c/63307
3796 * cilk.c: Include vec.h.
3797 (struct cilk_decls): New structure.
3798 (wrapper_parm_cb): Split this function to...
3799 (fill_decls_vec): ...this...
3800 (create_parm_list): ...and this.
3801 (compare_decls): New function.
3802 (for_local_cb): Remove.
3803 (wrapper_local_cb): Ditto.
3804 (build_wrapper_type): For now first traverse and fill vector of
3805 declarations then sort it and then deal with sorted vector.
3806 (cilk_outline): Ditto.
3807 (declare_one_free_variable): Ditto.
3808
6875457f
JM
38092015-01-21 Jason Merrill <jason@redhat.com>
3810
3811 PR c++/64629
3812 * c-format.c (check_format_arg): Call decl_constant_value.
3813
185c9e56
ML
38142015-01-19 Martin Liska <mliska@suse.cz>
3815
3816 * c-common.c (handle_noicf_attribute): New function.
3817
41dbbb37
TS
38182015-01-15 Thomas Schwinge <thomas@codesourcery.com>
3819 Bernd Schmidt <bernds@codesourcery.com>
3820 James Norris <jnorris@codesourcery.com>
3821 Cesar Philippidis <cesar@codesourcery.com>
3822 Ilmir Usmanov <i.usmanov@samsung.com>
3823 Jakub Jelinek <jakub@redhat.com>
3824
3825 * c.opt (fopenacc): New option.
3826 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
3827 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
3828 New macros.
3829 * c-common.h (c_finish_oacc_wait): New prototype.
3830 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
3831 (c_finish_oacc_wait): New function.
3832 * c-pragma.c (oacc_pragmas): New variable.
3833 (c_pp_lookup_pragma, init_pragma): Handle it.
3834 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
3835 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
3836 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
3837 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
3838 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
3839 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
3840 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
3841 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
3842 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
3843 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
3844 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
3845 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
3846 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
3847 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
3848 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
3849 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
3850 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
3851 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
3852 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
3853 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
3854 PRAGMA_OACC_CLAUSE_WORKER.
3855
3f8257db 38562015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
5434dc07
MD
3857
3858 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
3859 for the new option fstack-protector_explicit.
3860 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
3861 (handle_stack_protect_attribute): New function.
3862
3f8257db 38632015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
de1b5c17
MU
3864
3865 * c.opt: New option -Warray-bounds=.
3866
adfac8df
JJ
38672015-01-09 Michael Collison <michael.collison@linaro.org>
3868
3869 * array-notation-common.c: Include hash-set.h, machmode.h,
3870 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
3871 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
3872 * c-ada-spec.c: Ditto.
3873 * c-cilkplus.c: Ditto.
3874 * c-common.c: Include input.h due to flattening of tree.h.
3875 Define macro GCC_C_COMMON_C.
3876 * c-common.h: Flatten tree.h header files into c-common.h.
3877 Remove include of tree-core.h.
3878 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
3879 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
3880 fold-const.h, wide-int.h, and inchash.h due to
3881 flattening of tree.h.
3882 * c-dump.c: Ditto.
3883 * c-format.c: Flatten tree.h header files into c-common.h.
3884 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
3885 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
3886 fold-const.h, wide-int.h, and inchash.h due to
3887 flattening of tree.h.
3888 * c-dump.c: Include hash-set.h, machmode.h,
3889 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
3890 fold-const.h, wide-int.h, and inchash.h due to
3891 flattening of tree.h.
3892 * c-format.c: Include hash-set.h, machmode.h,
3893 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
3894 fold-const.h, wide-int.h, inchash.h and real.h due to
3895 flattening of tree.h.
3896 * c-gimplify.c: Include hash-set.h, machmode.h,
3897 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
3898 fold-const.h, wide-int.h, and inchash.h due to
3899 flattening of tree.h.
3900 * cilk.c: Ditto.
3901 * c-lex.c: Ditto.
3902 * c-omp.c: Ditto.
3903 * c-opts.c: Ditto.
3904 * c-pch.c: Ditto.
3905 * c-ppoutput.c: Ditto.
3906 * c-pragma.c: Ditto.
3907 * c-pretty-print.c: Ditto.
3908 * c-semantics.c: Ditto.
3909 * c-ubsan.c: Ditto.
3910 * stub-objc.c: Ditto.
3911
f5481fc4
JM
39122015-01-08 Jason Merrill <jason@redhat.com>
3913
3914 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
3915 do_ubsan_in_current_function.
3916 (ubsan_maybe_instrument_reference_or_call): Likewise.
3917 * c-ubsan.h: Declare it.
3918
de35aa66
MS
39192015-01-08 Mike Stump <mikestump@comcast.net>
3920
3921 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
3922
4a9a42ab
MP
39232015-01-07 Marek Polacek <polacek@redhat.com>
3924
3925 PR c/64440
3926 * c-common.c (c_fully_fold_internal): Warn for division and modulo
3927 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
3928
2f42e5de
TS
39292015-01-05 Trevor Saunders <tsaunders@mozilla.com>
3930
3931 PR c++/31397
3932 * c.opt (Wsuggest-override): New option.
3933
5624e564
JJ
39342015-01-05 Jakub Jelinek <jakub@redhat.com>
3935
3936 Update copyright years.
3937
5bd012f8
MP
39382015-01-05 Marek Polacek <polacek@redhat.com>
3939
3940 PR c/64423
3941 * c-common.c (warn_array_subscript_with_type_char): Add location_t
3942 parameter. Use it.
3943 * c-common.h (warn_array_subscript_with_type_char): Update
3944 declaration.
3945
a7fa8d18
ESR
39462014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
3947
3948 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
3949 Control macro with flag_sized_deallocation.
3950
3f8257db 39512014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
768952be
MU
3952
3953 * c.opt (Wdiscarded-array-qualifiers): New option.
3954
1f8d3e84
JJ
39552014-12-19 Jakub Jelinek <jakub@redhat.com>
3956
3957 PR preprocessor/63831
3958 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
3959 and __has_cpp_attribute here.
3960 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
3961 c_common_has_attribute.
3962 * c-common.h (c_common_has_attribute): New prototype.
3963 * c-lex.c (init_c_lex): Set cb->has_attribute to
3964 c_common_has_attribute instead of cb_has_attribute.
3965 (get_token_no_padding): New function.
3966 (cb_has_attribute): Renamed to ...
3967 (c_common_has_attribute): ... this. No longer static. Use
3968 get_token_no_padding, require ()s, don't build TREE_LIST
3969 unnecessarily, fix up formatting, adjust diagnostics, call
3970 init_attributes.
3971
20b06add
JM
39722014-12-15 Jason Merrill <jason@redhat.com>
3973
3974 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
3975 (-Wsized-deallocation): New.
3976 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
3977 to on in C++14 and up.
3978
94a073b2
JM
39792014-12-11 Jason Merrill <jason@redhat.com>
3980
acaa5911
JM
3981 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
3982
94a073b2
JM
3983 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
3984 we aren't complaining about VLAs.
3985
7fb66c15
MP
39862014-12-06 Marek Polacek <polacek@redhat.com>
3987
3988 PR tree-optimization/64183
3989 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
3990 shift-expression if it is integer_type_node. Use types_compatible_p.
3991
b731b390
JJ
39922014-11-29 Jakub Jelinek <jakub@redhat.com>
3993
3994 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
3995 last argument from create_tmp_var_raw and create_tmp_var calls.
3996 * cilk.c (gimplify_cilk_spawn): Likewise.
3997 * c-omp.c (c_finish_omp_atomic): Likewise.
3998
6a4da643
MP
39992014-11-28 Marek Polacek <polacek@redhat.com>
4000
4001 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
4002 instead of unsigned_type_node.
4003
541e35a6
MP
40042014-11-28 Marek Polacek <polacek@redhat.com>
4005
4006 PR c/63862
4007 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
4008 to op1_utype.
4009 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
4010 expression to unsigned_type_node.
4011
dcc97066
MW
40122014-11-20 Mark Wielaard <mjw@redhat.com>
4013
4014 PR debug/38757
4015 * c-opts.c (set_std_c89): Set lang_hooks.name.
4016 (set_std_c99): Likewise.
4017 (set_std_c11): Likewise.
4018 (set_std_cxx98): Likewise.
4019 (set_std_cxx11): Likewise.
4020 (set_std_cxx14): Likewise.
4021 (set_std_cxx1z): Likewise.
4022
aa7da51a
JJ
40232014-11-21 Jakub Jelinek <jakub@redhat.com>
4024
4025 PR target/63764
4026 * c-common.h (convert_vector_to_pointer_for_subscript): Change
4027 return type to bool.
009a3480 4028 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
4029 (convert_vector_to_pointer_for_subscript): Change return type to
4030 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
4031 and copy it into a TARGET_EXPR and use that instead of *vecp
4032 directly.
4033
538dd0b7
DM
40342014-11-19 David Malcolm <dmalcolm@redhat.com>
4035
4036 Merger of git branch "gimple-classes-v2-option-3".
4037 * ChangeLog.gimple-classes: New.
4038 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
4039 from being just a vec<gimple> to a vec<gbind *>.
4040
c39a5e99
JJ
40412014-11-18 Jakub Jelinek <jakub@redhat.com>
4042
4043 PR sanitizer/63813
4044 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
4045 argument to ptype, set type to TREE_TYPE (ptype). Don't call
4046 get_pointer_alignment for non-pointers. Use ptype, or if it is
4047 reference type, corresponding pointer type, as type of kind
4048 argument.
4049 (ubsan_maybe_instrument_reference,
4050 ubsan_maybe_instrument_member_call): Adjust callers.
4051
8537a4a9
MP
40522014-11-15 Marek Polacek <polacek@redhat.com>
4053
4054 PR middle-end/63884
4055 * array-notation-common.c (is_sec_implicit_index_fn): Return false
4056 for NULL fndecl.
4057 (extract_array_notation_exprs): Return for NULL node.
4058
2079956a
JM
40592014-11-12 Joseph Myers <joseph@codesourcery.com>
4060
4061 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
4062 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
4063
1304953e
JJ
40642014-11-12 Jakub Jelinek <jakub@redhat.com>
4065
4066 PR c/59708
4067 * c-common.c (check_builtin_function_arguments): Handle
4068 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
4069
e5e44252
AK
40702014-11-10 Andi Kleen <ak@linux.intel.com>
4071
4072 PR c/60804
4073 * c-common.h (check_no_cilk): Declare.
4074 * cilk.c (get_error_location): New function.
4075 (check_no_cilk): Dito.
4076
e64b984d
AK
40772014-11-10 Andi Kleen <ak@linux.intel.com>
4078
4079 * cilk.c (recognize_spawn): Use expression location
4080 for error message.
4081
13c21655
PC
40822014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
4083
4084 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
4085
42fd12b1
ESR
40862014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
4087
4088 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
4089 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
4090 (__cpp_range_based_for, __cpp_initializer_lists,
4091 __cpp_delegating_constructors, __cpp_nsdmi,
4092 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
4093 for C++11; (__cpp_attribute_deprecated): Remove in favor of
4094 __has_cpp_attribute.
4095 * c-lex.c (cb_has_attribute): New callback CPP function;
4096 (init_c_lex): Set has_attribute callback.
4097
6f450181
RB
40982014-11-04 Richard Biener <rguenther@suse.de>
4099
4100 * c-common.c (shorten_compare): Do not shorten mixed
4101 DFP and non-DFP compares.
4102
26f0e1d6
ESR
41032014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
4104
4105 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
4106 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
4107 Commentary and rearrangement of tests.
4108 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
4109 Commentary and rearrangement of tests.
4110 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
4111 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
4112
ef4bddc2
RS
41132014-10-29 Richard Sandiford <richard.sandiford@arm.com>
4114
4115 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
4116 enum from machine_mode.
4117
c582198b
AM
41182014-10-28 Andrew MacLeod <amacleod@redhat.com>
4119
adfac8df
JJ
4120 * c-common.c: Adjust include files.
4121 * c-gimplify.c: Ditto.
4122 * cilk.c: Ditto.
4123 * c-pragma.c: Ditto.
4124 * c-ubsan.c: Ditto.
c582198b 4125
60393bbc
AM
41262014-10-27 Andrew MacLeod <amacleod@redhat.com>
4127
4128 * c-gimplify.c: Adjust include files.
4129
d723bb7c
MLI
41302014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
4131
4132 PR c++/53061
4133 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
4134 c_common_initialize_diagnostics.
4135 * c-common.h: Likewise.
4136
90f3520e
MP
41372014-10-24 Marek Polacek <polacek@redhat.com>
4138
4139 PR c/56980
4140 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
4141 print "struct"/"union"/"enum" for typedefed names.
4142
59d7607a
MP
41432014-10-23 Marek Polacek <polacek@redhat.com>
4144
4145 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
4146 in unsigned type.
4147
d95a2703
JJ
41482014-10-22 Jakub Jelinek <jakub@redhat.com>
4149 Yury Gribov <y.gribov@samsung.com>
4150
4151 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
4152 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
4153 instead of flag_sanitize_recover as bool flag.
4154
8e6ef852
KY
41552014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
4156
4157 * cilk.c: Revert previous change.
4158
948cf550
IZ
41592014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
4160
4161 PR c/63307
4162 * cilk.c: Include vec.h.
4163 (struct cilk_decls): New structure.
4164 (wrapper_parm_cb): Split this function to...
4165 (fill_decls_vec): ...this...
4166 (create_parm_list): ...and this.
4167 (compare_decls): New function.
4168 (for_local_cb): Remove.
4169 (wrapper_local_cb): Ditto.
4170 (build_wrapper_type): For now first traverse and fill vector of
4171 declarations then sort it and then deal with sorted vector.
4172 (cilk_outline): Ditto.
4173 (declare_one_free_variable): Ditto.
4174
92574c7c
MP
41752014-10-17 Marek Polacek <polacek@redhat.com>
4176
4177 * c-opts.c (c_common_post_options): Set warn_implicit_int.
4178 * c.opt (Wimplicit-int): Initialize to -1.
4179
83685514
AM
41802014-10-16 Andrew MacLeod <amacleod@redhat.com>
4181
4182 * c-pragma.c: Adjust include files.
4183 * c-semantics.c: Likewise.
4184
5b8300ea
DD
41852014-10-16 DJ Delorie <dj@redhat.com>
4186
4187 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
4188 multiples of bytes.
4189
5f83e90b
JM
41902014-10-14 Jason Merrill <jason@redhat.com>
4191
4192 PR c++/63455
4193 * c-common.h (CPP_PREPARSED_EXPR): New.
4194 (N_CP_TTYPES): Adjust.
4195
d73326ca
MP
41962014-10-15 Marek Polacek <polacek@redhat.com>
4197
4198 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
4199
78a7c317
DD
42002014-10-14 DJ Delorie <dj@redhat.com>
4201
4202 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
4203 types, not just __int128.
4204 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
4205 types, not just __int128.
4206 (cpp_atomic_builtins): Round pointer sizes up.
4207 (type_suffix): Use type precision, not specific types.
4208 * c-common.c (c_common_reswords): Remove __int128 special case.
4209 (c_common_type_for_size): Check for all __intN types, not just
4210 __int128.
4211 (c_common_type_for_mode): Likewise.
4212 (c_common_signed_or_unsigned_type): Likewise.
4213 (c_build_bitfield_integer_type): Likewise.
4214 (c_common_nodes_and_builtins): Likewise.
4215 (keyword_begins_type_specifier): Likewise.
4216 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
4217 __intN variants.
4218
2a22f99c
TS
42192014-10-12 Trevor Saunders <tsaunders@mozilla.com>
4220
4221 * c-common.c: Use hash_table instead of hashtab.
4222
2a8ef767
ESR
42232014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
4224
adfac8df 4225 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
4226 C++11 section.
4227
3c9aabbd
MG
42282014-10-03 Marc Glisse <marc.glisse@inria.fr>
4229
4230 PR c++/54427
4231 PR c++/57198
4232 PR c++/58845
4233 * c-common.c (warn_logical_operator): Punt for vectors.
4234
a15f7cb8
ESR
42352014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
4236
4237 Implement SD-6: SG10 Feature Test Recommendations
4238 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
4239 macros and the __has_header macro.
4240
8d0cf15e
JM
42412014-09-30 Jason Merrill <jason@redhat.com>
4242
dd5d5481
JM
4243 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
4244 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
4245 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
4246
b752325e
JM
4247 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
4248 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
4249
8d0cf15e
JM
4250 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
4251 * c-common.c (c_common_reswords): Remove __is_convertible_to.
4252
083e891e
MP
42532014-09-24 Marek Polacek <polacek@redhat.com>
4254
4255 PR c/61405
4256 PR c/53874
4257 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
4258
7861b648
AK
42592014-09-23 Andi Kleen <ak@linux.intel.com>
4260
4261 * c-common.c (handle_no_reorder_attribute): New function.
4262 (c_common_attribute_table): Add no_reorder attribute.
4263
9a79452d
JM
42642014-09-22 Joseph Myers <joseph@codesourcery.com>
4265
4266 * c-cppbuiltin.c (c_cpp_builtins): Define
4267 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
4268 modes.
4269
dd69f047
JM
42702014-09-18 Joseph Myers <joseph@codesourcery.com>
4271
4272 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
4273 for supported floating-point modes.
4274
737a4826
MLI
42752014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
4276
4277 * c.opt (Wpsabi): Use LangEnabledBy.
4278 * c-opts.c (c_common_handle_option): Do not handle here.
4279
8cc4b7a2
JM
42802014-09-12 Joseph Myers <joseph@codesourcery.com>
4281
4282 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
4283 macros for floating-point modes.
4284
179b5a55
MG
42852014-09-11 Marc Glisse <marc.glisse@inria.fr>
4286
4287 PR target/58757
4288 * c-cppbuiltin.c (builtin_define_float_constants): Correct
4289 __*_DENORM_MIN__ without denormals.
4290
570a11fe
JJ
42912014-09-10 Jakub Jelinek <jakub@redhat.com>
4292
4293 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
4294 ubsan_instrument_vla, ubsan_instrument_return): Adjust
4295 ubsan_create_data callers.
4296 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
4297 index is constant or BIT_AND_EXPR with constant mask and is
4298 small enough for the bound.
4299 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
4300 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
4301
b559c810
MLI
43022014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4303
4304 * c.opt: Add CppReason to various flags.
4305 (Wdate-time): Re-sort.
4306 * c-common.c: Include c-common.h earlier.
4307 (struct reason_option_codes_t): Delete.
4308 (c_option_controlling_cpp_error): Prefix global type and struct
4309 with cpp_.
4310
1ef33fd4
MLI
43112014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4312
4313 * c.opt (Wnormalized): New.
4314 (Wnormalized=): Use Enum and Reject Negative.
4315 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
4316
66bb34c0
JM
43172014-09-08 Joseph Myers <joseph@codesourcery.com>
4318
4319 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
4320 digits of floating-point modes if -fbuilding-libgcc.
4321
53d68b9f
JM
43222014-09-05 Joseph Myers <joseph@codesourcery.com>
4323
4324 * c-cppbuiltin.c (c_cpp_builtins): Also define
4325 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
4326 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
4327 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
4328 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
4329 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
4330 __LIBGCC_STACK_GROWS_DOWNWARD__,
4331 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
4332 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
4333 __LIBGCC_DWARF_FRAME_REGISTERS__,
4334 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
4335 __LIBGCC_STACK_POINTER_REGNUM__ and
4336 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
4337 (builtin_define_with_value): Handle backslash-escaping in string
4338 macro values.
4339
f65586dc
RB
43402014-09-05 Richard Biener <rguenther@suse.de>
4341
4342 PR middle-end/63148
4343 * c-format.c (check_format_arg): Properly handle
4344 effectively signed POINTER_PLUS_EXPR offset.
4345
2b71f4a4
MLI
43462014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
4347
4348 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
4349 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
4350 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
4351 and Init.
4352 * c-opts.c (c_common_handle_option): Do not handle here.
4353 (sanitize_cpp_opts): Likewise.
4354 * c-common.c (struct reason_option_codes_t): Handle
4355 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
4356
d2e4feca
MP
43572014-09-03 Marek Polacek <polacek@redhat.com>
4358
4359 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
4360
9a771876
JJ
43612014-09-02 Jakub Jelinek <jakub@redhat.com>
4362 Balaji V. Iyer <balaji.v.iyer@intel.com>
4363 Igor Zamyatin <igor.zamyatin@intel.com>
4364
4365 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
4366 * c-common.c (c_common_reswords): Added _Cilk_for.
4367 * c-common.h (enum rid): Added RID_CILK_FOR.
4368 (cilk_for_number_of_iterations): Add declaration.
4369 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
4370 CILK_FOR.
4371 * c-pragma.c (init_pragma): Register "grainsize" pragma.
4372 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
4373
81b5d104
MLI
43742014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
4375
4376 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
4377 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
4378 Wundef): Use CPP, Var and Init.
4379 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
4380
b753b37b
MLI
43812014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
4382
4383 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
4384 * c-opts.c (c_common_handle_option): Do not handle here.
4385
028aee17
JM
43862014-08-25 Jason Merrill <jason@redhat.com>
4387
4388 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
4389 -std=c++14 and -std=gnu++14, rather than the reverse.
4390 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
4391 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
4392 * c-common.h (cxx_dialect): Remove cxx1y.
4393
e4276ba5
ESR
43942014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
4395
4396 * c-common.h (enum cxx_dialect): Add cxx14.
4397 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
4398 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
4399 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
4400
a545cacd
JM
44012014-08-22 Jason Merrill <jason@redhat.com>
4402
4403 * c.opt (std=gnu++17): Fix alias.
4404
59ea0364
MP
44052014-08-22 Marek Polacek <polacek@redhat.com>
4406
4407 PR c++/62199
4408 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
4409 check for vector types. Drop LHS argument.
4410 * c-common.h (warn_logical_not_parentheses): Adjust.
4411
596e808c
MLI
44122014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
4413
4414 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
4415 (Wmultichar): Likewise.
4416 (Wdate-time): Use C-family languages instead of Common. Use CPP
4417 and Var.
4418 * c-opts.c (c_common_handle_option): Do not handle the above
4419 options here.
4420 (sanitize_cpp_opts): Likewise.
4421
18767f65
MLI
44222014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4423
4424 PR fortran/44054
4425 * c-opts.c: Include tree-diagnostics.h.
4426 (c_diagnostic_finalizer): New.
4427 (c_common_initialize_diagnostics): Use it.
4428
b4413594
MLI
44292014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4430
4431 PR preprocessor/51303
4432 * c-common.c (struct reason_option_codes_t option_codes):
4433 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
4434
43f9a13c
MLI
44352014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4436
4437 PR c/60975
4438 PR c/53063
4439 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
4440 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
4441 (c_common_post_options): Call init_global_opts_from_cpp.
4442 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
4443
04159acf
MP
44442014-08-19 Marek Polacek <polacek@redhat.com>
4445
4446 PR c++/62153
4447 * c-common.c (maybe_warn_bool_compare): New function.
4448 * c-common.h (maybe_warn_bool_compare): Declare.
4449 * c.opt (Wbool-compare): New option.
4450
35aff4fb
MP
44512014-08-19 Marek Polacek <polacek@redhat.com>
4452
4453 * c.opt (Wc99-c11-compat): New option.
4454
177cce46
MP
44552014-08-19 Marek Polacek <polacek@redhat.com>
4456
4457 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
4458 to warn_c90_c99_compat.
4459 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
4460 to -1.
4461
6ae9194f
MLI
44622014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
4463 Steven Bosscher <steven@gcc.gnu.org>
4464
4465 PR c/52952
4466 * c-format.c: Add extra_arg_loc and format_string_loc to struct
4467 format_check_results.
4468 (check_function_format): Use true and add comment for boolean
4469 argument.
4470 (finish_dollar_format_checking): Use explicit location when warning.
4471 (check_format_info): Likewise.
4472 (check_format_arg): Set extra_arg_loc and format_string_loc.
4473 (check_format_info_main): Use explicit location when warning.
4474 (check_format_types): Pass explicit location.
4475 (format_type_warning): Likewise.
4476
8e54f6d3
MLI
44772014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
4478
4479 PR fortran/44054
4480 * c-format.c: Handle Fortran flags.
4481
cd4e76fc
IZ
44822014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
4483
4484 PR other/61962
4485 * array-notation-common.c (find_rank): Added handling for other
4486 types of references.
4487
f3bede71
MP
44882014-08-10 Marek Polacek <polacek@redhat.com>
4489
4490 PR c/51849
4491 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
4492 * c.opt (Wc90-c99-compat): Add option.
4493
9f25a338
TS
44942014-08-07 Trevor Saunders <tsaunders@mozilla.com>
4495
4496 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
4497
62e4eb35
MP
44982014-08-03 Marek Polacek <polacek@redhat.com>
4499
4500 * c-common.c (check_case_value): Add location_t parameter. Use it.
4501 (c_add_case_label): Pass loc to check_case_value.
4502
b787e7a2
TS
45032014-08-02 Trevor Saunders <tsaunders@mozilla.com>
4504
4505 * cilk.c: Use hash_map instead of pointer_map.
4506
6e2830c3
TS
45072014-08-02 Trevor Saunders <tsaunders@mozilla.com>
4508
4509 * c-gimplify.c: Use hash_set instead of pointer_set.
4510
a7ee52fb
IZ
45112014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
4512
4513 PR middle-end/61455
4514 * array-notation-common.c (extract_array_notation_exprs): Handling
4515 of DECL_EXPR added.
4516
944fa280
JJ
45172014-08-01 Jakub Jelinek <jakub@redhat.com>
4518
4519 * c-common.h (min_align_of_type): Removed prototype.
4520 * c-common.c (min_align_of_type): Removed.
4521 * c-ubsan.h (ubsan_maybe_instrument_reference,
4522 ubsan_maybe_instrument_member_call): New prototypes.
4523 * c-ubsan.c: Include stor-layout.h and builtins.h.
4524 (ubsan_maybe_instrument_reference_or_call,
4525 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
4526 functions.
4527
b4dfdc11
MG
45282014-07-31 Marc Glisse <marc.glisse@inria.fr>
4529
4530 PR c++/60517
4531 * c.opt (-Wreturn-local-addr): Move to common.opt.
4532
a41844e5
JM
45332014-07-30 Jason Merrill <jason@redhat.com>
4534
4535 PR c++/61659
4536 PR c++/61687
4537 Revert:
4538 * c.opt (-fuse-all-virtuals): New.
4539
976d5a22
TT
45402014-07-30 Tom Tromey <tromey@redhat.com>
4541
4542 PR c/59855
4543 * c.opt (Wdesignated-init): New option.
4544 * c-common.c (c_common_attribute_table): Add "designated_init".
4545 (handle_designated_init): New function.
4546
cdc94aca
MP
45472014-07-24 Marek Polacek <polacek@redhat.com>
4548
4549 PR c/57653
4550 * c-opts.c (c_finish_options): If -imacros is in effect, return.
4551
f41373b6
DS
45522014-07-16 Dodji Seketeli <dodji@redhat.com>
4553
4554 PR preprocessor/60723 - missing system-ness marks for macro tokens
4555 * c-ppoutput.c (struct print::prev_was_system_token): New data
4556 member.
4557 (init_pp_output): Initialize it.
4558 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
4559 (do_line_change): Return a flag saying if a line marker was
4560 emitted or not.
4561 (scan_translation_unit): Detect if the system-ness of the token we
4562 are about to emit is different from the one of the previously
4563 emitted token. If so, emit a line marker. Avoid emitting useless
4564 adjacent line markers. Avoid emitting line markers for tokens
4565 originating from the expansion of built-in macros.
4566 (scan_translation_unit_directives_only): Adjust.
4567
4d661eaa
MP
45682014-07-15 Marek Polacek <polacek@redhat.com>
4569
4570 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
4571 TYPE_MAX_VALUE is NULL.
4572
b108f48f
JJ
45732014-07-14 Jakub Jelinek <jakub@redhat.com>
4574
4575 PR middle-end/61294
4576 * c.opt (Wmemset-transposed-args): New warning.
4577
c0221884
JM
45782014-07-10 Jason Merrill <jason@redhat.com>
4579
4580 PR c++/61659
4581 PR c++/61687
4582 * c.opt (-fuse-all-virtuals): New.
4583
63dfbb95
RB
45842014-07-09 Richard Biener <rguenther@suse.de>
4585
4586 PR c-family/61741
4587 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
4588 using unsigned arithmetic if overflow does not wrap instead of
4589 if overflow is undefined.
4590
773ec47f
MP
45912014-07-06 Marek Polacek <polacek@redhat.com>
4592
4593 PR c/6940
4594 * c.opt (Wsizeof-array-argument): New option.
4595
00a7ba58
JJ
45962014-07-03 Jakub Jelinek <jakub@redhat.com>
4597
b1726d6c 4598 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
00a7ba58
JJ
4599 comments->count <= 1, as comments->entries might be NULL.
4600
52ec0ea3
MP
46012014-07-01 Marek Polacek <polacek@redhat.com>
4602
4603 * c.opt (Wint-conversion): New option.
4604
d5c3d343
MP
46052014-07-01 Marek Polacek <polacek@redhat.com>
4606
4607 PR c/58286
4608 * c.opt (Wincompatible-pointer-types): New option.
4609
6e7ceb17
PC
46102014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
4611
4612 PR c++/51400
4613 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
4614 Do not discard TYPE_QUALS of type.
4615
da73100b
JM
46162014-06-26 Jason Merrill <jason@redhat.com>
4617
4618 * c-common.h (enum cxx_dialect): Add cxx1z.
4619 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
4620 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
4621
08eedf75
TJ
46222014-06-26 Teresa Johnson <tejohnson@google.com>
4623
4624 * c-common.h (get_dump_info): Declare.
4625 * c-gimplify.c (c_genericize): Use saved dump files.
4626 * c-opts.c (c_common_parse_file): Begin and end dumps
4627 once around parsing invocation.
4628 (get_dump_info): New function.
4629
7b56b2f8
MP
46302014-06-23 Marek Polacek <polacek@redhat.com>
4631 Andrew MacLeod <amacleod@redhat.com>
4632
4633 PR c/61553
4634 * c-common.c (get_atomic_generic_size): Don't segfault if the
4635 type doesn't have a size.
4636
0e37a2f3
MP
46372014-06-20 Marek Polacek <polacek@redhat.com>
4638
4639 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
4640 (ubsan_walk_array_refs_r): New function.
4641 (c_genericize): Instrument array bounds.
4642 * c-ubsan.c: Include "internal-fn.h".
4643 (ubsan_instrument_division): Mark instrumented arrays as having
4644 side effects. Adjust ubsan_type_descriptor call.
4645 (ubsan_instrument_shift): Likewise.
4646 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
4647 (ubsan_instrument_bounds): New function.
4648 (ubsan_array_ref_instrumented_p): New function.
4649 (ubsan_maybe_instrument_array_ref): New function.
4650 * c-ubsan.h (ubsan_instrument_bounds): Declare.
4651 (ubsan_array_ref_instrumented_p): Declare.
4652 (ubsan_maybe_instrument_array_ref): Declare.
4653
46542014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
4655
4656 PR lto/61123
4657 * c.opt (fshort-enums): Add to LTO.
4658 * c.opt (fshort-wchar): Likewise.
4659
5c3d09f7
MP
46602014-06-16 Marek Polacek <polacek@redhat.com>
4661
4662 PR c/60439
4663 * c.opt (Wswitch-bool): Add Var.
4664
9cf32741
JJ
46652014-06-12 Jakub Jelinek <jakub@redhat.com>
4666
4667 PR middle-end/61486
4668 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
4669 #pragma omp target teams or
4670 #pragma omp {,target }teams distribute simd.
4671
62984918
JM
46722014-06-12 Jason Merrill <jason@redhat.com>
4673
4674 * c.opt (Wabi=, fabi-compat-version): New.
4675 * c-opts.c (c_common_handle_option): Handle -Wabi=.
4676 (c_common_post_options): Handle flag_abi_compat_version default.
4677 Disallow -fabi-compat-version=1.
4678 * c-common.h (abi_version_crosses): New.
4679
f961457f
JH
46802014-06-11 Jan Hubicka <hubicka@ucw.cz>
4681
adfac8df 4682 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
4683 section names that are no longer trees.
4684
92d28cbb
JJ
46852014-06-10 Jakub Jelinek <jakub@redhat.com>
4686
4687 PR fortran/60928
4688 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
4689 (omp_pragmas): ... back here.
4690
742938c9
MP
46912014-06-05 Marek Polacek <polacek@redhat.com>
4692
4693 PR c/49706
4694 * c-common.c (warn_logical_not_parentheses): New function.
4695 * c-common.h (warn_logical_not_parentheses): Declare.
4696 * c.opt (Wlogical-not-parentheses): New option.
4697
9d548dfb
MP
46982014-06-04 Marek Polacek <polacek@redhat.com>
4699
4700 PR c/30020
4701 * c-common.c (check_case_bounds): Add location parameter.
4702 Use it.
4703 (c_add_case_label): Pass loc to check_case_bounds.
4704
fedfecef
MP
47052014-06-03 Marek Polacek <polacek@redhat.com>
4706
4707 PR c/60439
4708 * c.opt (Wswitch-bool): New option.
4709
f6a7cffc
TS
47102014-05-22 Thomas Schwinge <thomas@codesourcery.com>
4711
040d18b6
TS
4712 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
4713 Remove prototypes.
4714 (record_types_used_by_current_var_decl): Move prototype to where
4715 it belongs.
4716
f6a7cffc
TS
4717 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
4718 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
4719 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
4720
632f2871
RS
47212014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
4722
4723 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
4724 * c-common.c (c_common_nodes_and_builtins): Don't initialize
4725 void_zero_node.
4726 * c-pretty-print.c (pp_c_void_constant): New function.
4727 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
4728 (c_pretty_printer::expression): Handle VOID_CST.
4729 * cilk.c (extract_free_variables): Likewise.
4730 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
4731 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
4732
766090c2
TS
47332014-05-17 Trevor Saunders <tsaunders@mozilla.com>
4734
4735 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
4736 * c-pragma.c (push_alignment): Adjust.
4737 (handle_pragma_push_options): Likewise.
4738
661a0813
MP
47392014-05-09 Marek Polacek <polacek@redhat.com>
4740
4741 PR c/50459
4742 * c-common.c (check_user_alignment): Return -1 if alignment is error
4743 node.
4744 (handle_aligned_attribute): Don't call default_conversion on
4745 FUNCTION_DECLs.
4746 (handle_vector_size_attribute): Likewise.
4747 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
4748 (handle_sentinel_attribute): Call default_conversion and allow even
4749 integral types as an argument.
4750
2793eeab
MP
47512014-05-08 Marek Polacek <polacek@redhat.com>
4752
4753 PR c/61053
4754 * c-common.c (min_align_of_type): New function factored out from...
4755 (c_sizeof_or_alignof_type): ...here.
4756 * c-common.h (min_align_of_type): Declare.
4757
f827930a
MP
47582014-05-08 Marek Polacek <polacek@redhat.com>
4759
4760 PR c/61077
4761 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
4762 parameter type of main.
4763
ca49b74e
DD
47642014-05-07 DJ Delorie <dj@redhat.com>
4765
4766 * c-cppbuiltin.c (print_bits_of_hex): New.
4767 (builtin_define_type_minmax): Print values using hex so as not to
4768 require a pre-computed list of string values.
4769
1d60af08
KZ
47702014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
4771 Mike Stump <mikestump@comcast.net>
4772 Richard Sandiford <rdsandiford@googlemail.com>
4773
4774 * c-ada-spec.c: Include wide-int.h.
4775 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
4776 (dump_generic_ada_node): Use wide-int interfaces.
4777 * c-common.c: Include wide-int-print.h.
4778 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
4779 (pointer_int_sum): Use wide-int interfaces.
4780 (c_common_nodes_and_builtins): Use make_int_cst.
4781 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
4782 (handle_alloc_size_attribute): Use wide-int interfaces.
4783 (get_nonnull_operand): Likewise.
4784 * c-format.c (get_constant): Use tree_fits_uhwi_p.
4785 * c-lex.c: Include wide-int.h.
4786 (narrowest_unsigned_type): Take a widest_int rather than two
4787 HOST_WIDE_INTs.
4788 (narrowest_signed_type): Likewise.
4789 (interpret_integer): Update accordingly. Use wide-int interfaces.
4790 (lex_charconst): Use wide-int interfaces.
4791 * c-pretty-print.c: Include wide-int.h.
4792 (pp_c_integer_constant): Use wide-int interfaces.
4793 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
4794 INT_CST_LT_UNSIGNED.
4795
b15458be
RB
47962014-05-06 Richard Biener <rguenther@suse.de>
4797
4798 * c-opts.c (c_common_post_options): For -freestanding,
4799 -fno-hosted and -fno-builtin disable pattern recognition
4800 if not enabled explicitely.
4801
6577374e
MP
48022014-05-02 Marek Polacek <polacek@redhat.com>
4803
4804 * c.opt (Wsizeof-pointer-memaccess): Describe option.
4805
d00887e8
MP
48062014-05-01 Marek Polacek <polacek@redhat.com>
4807
4808 PR c/43245
4809 * c.opt (Wdiscarded-qualifiers): Add.
4810
f8ed5150
MP
48112014-04-30 Marek Polacek <polacek@redhat.com>
4812
4813 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
4814 INT_MIN / -1 sanitization only for integer types.
4815
45484dcf
MP
48162014-04-25 Marek Polacek <polacek@redhat.com>
4817
4818 PR c/18079
4819 * c-common.c (handle_noinline_attribute): Warn if the attribute
4820 conflicts with always_inline attribute.
4821 (handle_always_inline_attribute): Warn if the attribute conflicts
4822 with noinline attribute.
4823
38e514c0
MP
48242014-04-25 Marek Polacek <polacek@redhat.com>
4825
4826 PR c/60156
4827 * c-common.c (check_main_parameter_types): Warn about variadic main.
4828
44875f92
MS
48292014-04-24 Mike Stump <mikestump@comcast.net>
4830
4831 * c.opt (Wshadow-ivar): Default to on.
4832
dcaaa5a0
DP
48332014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
4834
4835 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
4836
c07d7c02
MP
48372014-04-23 Marek Polacek <polacek@redhat.com>
4838
4839 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
4840
1c33c9b7
JJ
48412014-04-22 Jakub Jelinek <jakub@redhat.com>
4842
4843 PR sanitizer/60275
4844 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
4845 if flag_sanitize_undefined_trap_on_error.
4846 (ubsan_instrument_division, ubsan_instrument_shift,
4847 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
4848 if !flag_sanitize_recover.
4849
793c625f
MG
48502014-04-22 Marc Glisse <marc.glisse@inria.fr>
4851
4852 PR libstdc++/43622
4853 * c-common.c (registered_builtin_types): Make non-static.
4854 * c-common.h (registered_builtin_types): Declare.
4855
b0f1bf36
RB
48562014-04-14 Richard Biener <rguenther@suse.de>
4857 Marc Glisse <marc.glisse@inria.fr>
4858
4859 PR c/60819
4860 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
4861 apply may-alias the scalar pointer type when applicable.
4862
3b07fa4a
IZ
48632014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
4864
4865 PR middle-end/60467
4866 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
4867 as possible argument for Cilk_spawn.
4868
cbbd2b1c
TB
48692014-04-11 Tobias Burnus <burnus@net-b.de>
4870
4871 PR c/60194
4872 * c.opt (Wformat-signedness): Add
4873 * c-format.c(check_format_types): Use it.
4874
6415bd5d
JM
48752014-04-11 Jason Merrill <jason@redhat.com>
4876
4877 PR c++/57926
4878 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
4879 default_conversion for an array argument.
4880
6525783a
MP
48812014-04-08 Marek Polacek <polacek@redhat.com>
4882
4883 PR sanitizer/60745
4884 * c-ubsan.c: Include asan.h.
4885 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
4886
880a467b
NS
48872014-04-03 Nathan Sidwell <nathan@codesourcery.com>
4888
4889 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
4890
7b59ff2d
MP
48912014-04-02 Marek Polacek <polacek@redhat.com>
4892
4893 * c-common.h (c_expand_expr): Remove declaration.
4894
8edbfaa6
JJ
48952014-03-28 Jakub Jelinek <jakub@redhat.com>
4896
4897 PR c++/60689
4898 * c-common.c (add_atomic_size_parameter): When creating new
4899 params vector, push the size argument first.
4900
07d72e1d
JJ
49012014-03-26 Jakub Jelinek <jakub@redhat.com>
4902
4903 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
4904 ubsan_instrument_vla, ubsan_instrument_return): Adjust
4905 ubsan_create_data callers.
4906
b35e0fa0
JJ
49072014-03-22 Jakub Jelinek <jakub@redhat.com>
4908
4909 PR debug/60603
4910 * c-opts.c (c_finish_options): Restore cb_file_change call to
4911 <built-in>.
4912
39a1ebb3
JJ
49132014-03-13 Jakub Jelinek <jakub@redhat.com>
4914
4915 PR middle-end/36282
4916 * c-pragma.c (apply_pragma_weak): Only look at
4917 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
4918 DECL_ASSEMBLER_NAME_SET_P (decl).
4919 (maybe_apply_pending_pragma_weaks): Exit early if
4920 vec_safe_is_empty (pending_weaks) rather than only when
4921 !pending_weaks.
4922 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
4923 set assembler name back to NULL afterwards.
4924
a07f6ed2
JM
49252014-03-11 Jason Merrill <jason@redhat.com>
4926
4927 * c.opt: Add -std=gnu++14.
4928
75b107f5
IB
49292014-03-11 Ian Bolton <ian.bolton@arm.com>
4930
4931 * c-opts.c (c_common_post_options): Don't override
4932 -ffp-contract=fast if unsafe-math-optimizations is on.
4933
f42c637e
PM
49342014-03-08 Paulo Matos <paulo@matos-sorge.com>
4935
22b15758 4936 * c.opt: Enable LTO FE for fshort-double.
f42c637e 4937
70e24808
JM
49382014-03-07 Jason Merrill <jason@redhat.com>
4939
4940 * c.opt: Add -std=c++14.
4941
3af9c5e9
MP
49422014-03-06 Marek Polacek <polacek@redhat.com>
4943
4944 PR c/60197
4945 * cilk.c (contains_cilk_spawn_stmt): New function.
4946 (contains_cilk_spawn_stmt_walker): Likewise.
4947 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
4948 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
4949
b3bdf019
JJ
49502014-03-03 Jakub Jelinek <jakub@redhat.com>
4951
4952 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
4953 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
4954 even when flag_preprocess_only.
4955
ca7e759d
JM
49562014-02-26 Jason Merrill <jason@redhat.com>
4957
4958 PR c++/59231
4959 PR c++/11586
4960 * c-common.c (shorten_compare): Don't check
4961 c_inhibit_evaluation_warnings.
4962
28e41874
JJ
49632014-02-19 Jakub Jelinek <jakub@redhat.com>
4964
cca615af
JJ
4965 PR c/37743
4966 * c-common.c (c_common_nodes_and_builtins): When initializing
4967 c_uint{16,32,64}_type_node, also set corresponding
4968 uint{16,32,64}_type_node to the same value.
4969
28e41874
JJ
4970 PR c++/60267
4971 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
4972 for PRAGMA_IVDEP if flag_preprocess_only.
4973
c2bf53a1
JJ
49742014-02-12 Jakub Jelinek <jakub@redhat.com>
4975
4976 PR c/60101
4977 * c-common.c (merge_tlist): If copy is true, call new_tlist,
4978 if false, add ADD itself, rather than vice versa.
4979 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
4980 copy. For SAVE_EXPR, only call merge_tlist once.
4981
8fcbce72
JJ
49822014-02-08 Jakub Jelinek <jakub@redhat.com>
4983
4984 PR middle-end/60092
4985 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
4986 and tree_to_uhwi.
4987 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
4988 functions.
4989 (c_common_attribute_table): Add alloc_align and assume_aligned
4990 attributes.
4991
0a756a3f
MP
49922014-02-06 Marek Polacek <polacek@redhat.com>
4993
4994 PR c/60087
4995 * c-common.c (warn_for_sign_compare): Call warning_at with location
4996 instead of warning.
4997
7ec4847a
MP
49982014-02-05 Marek Polacek <polacek@redhat.com>
4999
5000 PR c/53123
5001 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
5002 statement.
5003
66f20604
MP
50042014-02-04 Marek Polacek <polacek@redhat.com>
5005
5006 PR c/60036
5007 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
5008 SAVE_EXPR.
5009
5d77fb19
MG
50102014-02-03 Marc Glisse <marc.glisse@inria.fr>
5011
5012 PR c++/53017
5013 PR c++/59211
5014 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
5015 handle_vector_size_attribute, handle_nonnull_attribute): Call
5016 default_conversion on the attribute argument.
5017 (handle_nonnull_attribute): Increment the argument number.
5018
81e5eca8
MP
50192014-01-31 Marek Polacek <polacek@redhat.com>
5020
5021 PR c/59963
5022 * c-common.c (add_atomic_size_parameter): Pass vNULL to
5023 build_function_call_vec.
5024 (resolve_overloaded_builtin): Likewise.
5025 * c-common.h (build_function_call_vec): Adjust declaration.
5026
68fca595
MP
50272014-01-30 Marek Polacek <polacek@redhat.com>
5028
5029 PR c/59940
5030 * c-common.h (unsafe_conversion_p): Adjust declaration.
5031 (warnings_for_convert_and_check): Likewise.
5032 (convert_and_check): Likewise.
5033 * c-common.c (unsafe_conversion_p): Add location parameter. Call
5034 expansion_point_location_if_in_system_header on it.
5035 (warnings_for_convert_and_check): Add location parameter. Call
5036 expansion_point_location_if_in_system_header on it. Use it.
5037 (convert_and_check): Add location parameter. Use it.
5038 (conversion_warning): Likewise.
5039 (c_add_case_label): Adjust convert_and_check calls.
5040 (scalar_to_vector): Adjust unsafe_conversion_p calls.
5041
b72271b9
BI
50422014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
5043
5044 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
5045 flag_cilkplus.
5046 * c-pragma.c (init_pragma): Likewise.
5047 * c.opt: Likewise.
5048
393e8e8b
MP
50492014-01-23 Marek Polacek <polacek@redhat.com>
5050
5051 PR c/59846
5052 * c-common.c (shorten_compare): Add location_t parameter.
5053 * c-common.h (shorten_binary_op): Adjust declaration.
5054
f04dda30
MP
50552014-01-23 Marek Polacek <polacek@redhat.com>
5056
5057 PR c/58346
5058 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
5059 * c-common.h: Declare it.
5060
621955cb
EB
50612014-01-20 Eric Botcazou <ebotcazou@adacore.com>
5062
5063 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
5064 * c-ada-spec.c (dump_ads): Likewise.
5065 (cpp_check): Likewise.
5066 (dump_ada_specs): Likewise.
5067
50682014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
5069
5070 PR c++/49718
5071 * c-common.c (handle_no_instrument_function_attribute): Allow
5072 no_instrument_function attribute in class member
5073 definition/declaration.
5074
241f845a
JJ
50752014-01-15 Jakub Jelinek <jakub@redhat.com>
5076
5077 PR c/58943
5078 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
5079 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
5080 being COMPOUND_EXPR.
5081 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
5082 operand a SAVE_EXPR and second MODIFY_EXPR.
5083
e83b8e2e
JJ
50842014-01-09 Jakub Jelinek <jakub@redhat.com>
5085
5086 PR target/58115
5087 * c-pch.c (c_common_write_pch): Call
5088 prepare_target_option_nodes_for_pch.
5089
23a5b65a
RS
50902014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
5091
5092 Update copyright years
5093
f9030485
RS
50942014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
5095
5096 * array-notation-common.c, c-cilkplus.c: Use the standard form for
5097 the copyright notice.
5098
f2aa696b
EB
50992013-12-28 Eric Botcazou <ebotcazou@adacore.com>
5100
5101 * c-ada-spec.c (print_constructor): New function.
5102 (print_destructor): Retrieve the origin of the destructor.
5103 (print_ada_declaration): Revamp handling of constructors/destructors.
5104
3f8257db 51052013-12-23 Stuart Hastings <stuart@apple.com>
1f26ac87
JM
5106 Bill Maddox <maddox@google.com>
5107 Jason Merrill <jason@redhat.com>
5108
5109 * c.opt: Add -fdeclone-ctor-dtor.
5110 * c-opts.c (c_common_post_options): Default to on iff -Os.
5111
41958c28
BI
51122013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
5113
5114 * c-common.c (c_common_attribute_table): Added "cilk simd function"
5115 attribute.
5116 * c-pragma.h (enum pragma_cilk_clause): Remove.
5117 (enum pragma_omp_clause): Added the following fields:
5118 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
5119 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
5120 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
5121 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
5122 PRAGMA_CILK_CLAUSE_UNIFORM.
5123
b1726d6c 5124
12893402
BI
51252013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
5126
5127 * cilk.c (cilk_outline): Made this function non-static.
5128 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
5129 (create_cilk_wrapper): Added a new parameter: a function pointer.
5130 (c_install_body_w_frame_cleanup): Remove
5131 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
5132 * c-common.h (cilk_outline): New prototype.
5133 (gimplify_cilk_spawn): Removed two parameters.
5134 (cilk_install_body_with_frame_cleanup): New prototype.
5135 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
5136 CILK_SPAWN_STMT case.
5137
085b42ed
BS
51382013-12-11 Bernd Schmidt <bernds@codesourcery.com>
5139
2ce064c3
BS
5140 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
5141
085b42ed
BS
5142 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
5143 (int_array_type_node): Remove.
5144 * c-common.c (c_common_nodes_and_builtins): Don't build it.
5145
9e36c9ed
MP
51462013-12-05 Marek Polacek <polacek@redhat.com>
5147
5148 PR c/52023
5149 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
5150 [ADJUST_FIELD_ALIGN].
5151
296674db
JM
51522013-12-04 Joseph Myers <joseph@codesourcery.com>
5153
5154 PR c/52023
5155 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
5156 and check field alignment if set.
5157 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
5158 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
5159
b1726d6c 51602013-12-04 Jakub Jelinek <jakub@redhat.com>
31e071ae
MP
5161 Marek Polacek <polacek@redhat.com>
5162
5163 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
5164 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
5165
d7947e19
L
51662013-11-29 H.J. Lu <hongjiu.lu@intel.com>
5167
5168 PR c/59309
5169 * cilk.c (gimplify_cilk_spawn): Properly handle function without
5170 arguments.
5171
fad7652e
JJ
51722013-11-29 Jakub Jelinek <jakub@redhat.com>
5173
5174 PR c/59280
5175 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
5176 goto invalid. If it is error_mark_node, don't issue further
5177 diagnostics.
5178
8b5e1202
SO
51792013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
5180
5181 * c.opt (Wopenmp-simd): New.
5182
0a508bb6
JJ
51832013-11-22 Jakub Jelinek <jakub@redhat.com>
5184
5185 * c-ubsan.h (ubsan_instrument_return): New prototype.
5186 * c-ubsan.c (ubsan_instrument_return): New function.
5187
2fb9a547
AM
51882013-11-22 Andrew MacLeod <amacleod@redhat.com>
5189
5190 * c-common.c: Add required include files from gimple.h.
5191 * c-gimplify.c: Likewise
5192 * cilk.c: Likewise
5193
8400e75e
DM
51942013-11-22 David Malcolm <dmalcolm@redhat.com>
5195
5196 * c-common.c (unsafe_conversion_p): Remove use of
5197 EXPR_LOC_OR_HERE macro.
5198 (conversion_warning): Likewise.
5199 (warnings_for_convert_and_check): Likewise.
5200 (warn_for_collisions_1): Likewise.
5201 (shorten_compare): Likewise, and remove use of in_system_header
5202 macro, using the location from the former.
5203 * c-lex.c (dump_one_header): Remove use of input_filename macro.
5204 (cb_def_pragma): Remove use of in_system_header macro.
5205 (lex_string): Likewise.
5206 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
5207
eb1ce453
KZ
52082013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
5209 Mike Stump <mikestump@comcast.net>
5210 Richard Sandiford <rdsandiford@googlemail.com>
5211
5212 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
5213 instead of TREE_INT_CST_LOW, in cases where there is a protecting
5214 tree_fits_shwi_p or tree_fits_uhwi_p.
5215 (dump_generic_ada_node): Likewise.
5216 * c-format.c (check_format_arg): Likewise.
5217 * c-pretty-print.c (pp_c_integer_constant): Likewise.
5218
6b3b8c27
KZ
52192013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
5220
5221 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
5222
49b0aa18
JC
52232013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
5224
5225 PR c/53001
5226 * c-common.c (unsafe_conversion_p): Make this function
5227 return an enumeration with more detail.
5228 (conversion_warning): Use the new return type of
5229 unsafe_conversion_p to separately warn either about conversions
5230 that lower floating point number precision or about the other
5231 kinds of conversions.
5232 * c-common.h (enum conversion_safety): New enumeration.
8e745a17
JJ
5233 (unsafe_conversion_p): switching return type to
5234 conversion_safety enumeration.
49b0aa18
JC
5235 * c.opt: Adding new warning -Wfloat-conversion and
5236 enabling it with -Wconversion.
5237
b826515a
BS
52382013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
5239
8e745a17
JJ
5240 * c-opts.c: Include plugin.h.
5241 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
b826515a 5242
b9a55b13
MP
52432013-11-19 Marek Polacek <polacek@redhat.com>
5244
5245 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
5246 call.
5247 (ubsan_instrument_shift): Likewise.
5248 (ubsan_instrument_vla): Likewise.
5249
7d362f6c
RS
52502013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5251
5252 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
5253 cast to unsigned type.
5254
386b1f1f
RS
52552013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5256
5257 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
5258 tree_low_cst.
5259 (complete_array_type): Update comment to refer to tree_to_[su]hwi
5260 rather than tree_low_cst.
5261
ae7e9ddd
RS
52622013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5263
5264 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
5265 tree_to_uhwi throughout.
5266
9439e9a1
RS
52672013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5268
5269 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
5270 tree_low_cst (..., 0) with tree_to_shwi throughout.
5271
cc269bb6
RS
52722013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5273
5274 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
5275 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
5276
9541ffee
RS
52772013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5278
5279 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
5280 host_integerp (..., 0) with tree_fits_shwi_p throughout.
5281
c02065fc
AH
52822013-11-15 Aldy Hernandez <aldyh@redhat.com>
5283
5284 * c-cilkplus.c: New file.
5285 * c-common.c (readonly_error): Add location argument.
5286 * c-common.h (readonly_error): Same.
5287 (c_finish_cilk_clauses): Protoize.
5288 (c_check_cilk_loop): Same.
5289 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
5290 Do not fail on error_mark_node.
5291 Abstract increment canonicalization to here...
5292 (c_omp_for_incr_canonicalize_ptr): New.
5293 c-pragma.c (init_pragma): Register "simd" pragma.
5294 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
5295 (enum pragma_cilk_clause): New.
5296
9cc65f15
RS
52972013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
5298
5299 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
5300 wchar_type and host_integerp checks.
5301
18f429e2
AM
53022013-11-14 Andrew MacLeod <amacleod@redhat.com>
5303
5304 * c-common.c: Likewise.
5305 * c-gimplify.c: Likewise.
5306 * cilk.c: Likewise.
5307
d8a2d370
DN
53082013-11-14 Diego Novillo <dnovillo@google.com>
5309
5310 * c-common.c: Include fold-const.h.
5311 Include stor-layout.h.
5312 Include calls.h.
5313 Include stringpool.h.
5314 Include attribs.h.
5315 Include varasm.h.
5316 Include trans-mem.h.
5317 * c-cppbuiltin.c: Include stor-layout.h.
5318 Include stringpool.h.
5319 * c-format.c: Include stringpool.h.
5320 * c-lex.c: Include stringpool.h.
5321 Include stor-layout.h.
5322 * c-pragma.c: Include stringpool.h.
5323 Include attribs.h.
5324 Include varasm.h.
5325 Include gcc-symtab.h.
5326 * c-pretty-print.c: Include stor-layout.h.
5327 Include attribs.h.
5328 * cilk.c: Include stringpool.h.
5329 Include calls.h.
5330
38b7bc7f
JM
53312013-11-13 Joseph Myers <joseph@codesourcery.com>
5332
5333 * c-common.h (enum rid): Add RID_AUTO_TYPE.
5334 * c-common.c (c_common_reswords): Add __auto_type.
5335 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
5336
45b0be94
AM
53372013-11-12 Andrew MacLeod <amacleod@redhat.com>
5338
18f429e2
AM
5339 * c-common.c: Include gimplify.h.
5340 * c-gimplify.c: Likewise.
5341 * cilk.c: Likewise.
5342 * c-omp.c: Include gimple-expr.h instead of gimple.h.
5343 * c-ubsan.c: Don't include gimple.h.
45b0be94 5344
582d9b50
JM
53452013-11-12 Joseph Myers <joseph@codesourcery.com>
5346
5347 * c-common.c (c_common_reswords): Add _Thread_local.
5348
6b28e197
JM
53492013-11-09 Joseph Myers <joseph@codesourcery.com>
5350
5351 * c-common.c (atomic_size_supported_p): New function.
5352 (resolve_overloaded_atomic_exchange)
5353 (resolve_overloaded_atomic_compare_exchange)
5354 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
5355 Use it instead of comparing size with a local list of sizes.
5356
267bac10
JM
53572013-11-07 Andrew MacLeod <amacleod@redhat.com>
5358 Joseph Myers <joseph@codesourcery.com>
5359
5360 * c-common.h (enum rid): Add RID_ATOMIC.
5361 * c-common.c (c_common_reswords): Add _Atomic.
5362 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
5363 (keyword_is_type_qualifier): Accept RID_ATOMIC.
5364 * c-format.c (check_format_types): Check for extra _Atomic
5365 qualifiers in format argument.
5366 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
5367 (pp_c_type_qualifier_list): Mention _Atomic in comment.
5368
5157b91e
TB
53692013-11-06 Tobias Burnus <burnus@net-b.de>
5370
5371 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
5372
6dbe0958
JM
53732013-11-06 Joseph Myers <joseph@codesourcery.com>
5374
5375 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
5376 standards modes.
5377 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
5378 to mean lack of IEEE 754 support.
5379
e8ff5196
TB
53802013-11-05 Tobias Burnus <burnus@net-b.de>
5381
5382 * c.opt (-Wdate-time): New option
5383 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
5384
254a0760
JM
53852013-11-05 Joseph Myers <joseph@codesourcery.com>
5386
5387 * c-cppbuiltin.c (cpp_iec_559_value): Test
5388 flag_excess_precision_cmdline not flag_excess_precision.
5389
6d7f7e0a
TB
53902013-11-05 Tobias Burnus <burnus@net-b.de>
5391
5392 * c.opt (fopenmp-simd): New option.
5393 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
5394 (omp_pragmas): ... this new struct.
5395 (c_pp_lookup_pragma): Also walk omp_pragmas.
5396 (init_pragma): Init pragmas for -fopenmp-simd.
5397
55a7f02f
MP
53982013-11-04 Marek Polacek <polacek@redhat.com>
5399
5400 PR c++/58979
5401 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
5402
9193fb05
JM
54032013-11-04 Joseph Myers <joseph@codesourcery.com>
5404
5405 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
5406 New functions.
5407 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
5408
94159ecf
EB
54092013-11-04 Eric Botcazou <ebotcazou@adacore.com>
5410
5411 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
5412 (dump_ada_specs): Adjust prototype of second callback.
5413 * c-ada-spec.c (cpp_check): New global variable.
5414 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
5415 (print_generic_ada_decl): Likewise.
5416 (has_static_fields): Change return type to bool and add guard.
5417 (has_nontrivial_methods): New predicate.
5418 (is_tagged_type): Change return type to bool.
5419 (separate_class_package): Call has_nontrivial_methods.
5420 (pp_ada_tree_identifier): Minor tweaks.
5421 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
5422 (dump_ada_array_domains): Likewise.
5423 (dump_ada_array_type): Likewise.
5424 (dump_template_types): Remove cpp_check parameter and do not pass it to
5425 dump_generic_ada_node.
5426 (dump_ada_template): Likewise.
5427 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
5428 recursively.
5429 (print_ada_methods): Change return type to integer. Remove cpp_check
5430 parameter and do not pass it down.
5431 (dump_nested_types): Remove cpp_check parameter and do not pass it to
5432 dump_generic_ada_node.
5433 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
5434 accessing methods.
5435 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
5436 down. Use has_nontrivial_methods to recognize C++ classes. Use return
5437 value of print_ada_methods.
5438 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
5439 Set cpp_check to it before invoking dump_ada_nodes.
5440 (dump_ada_specs): Likewise.
5441
b906f4ca
MP
54422013-11-03 Marek Polacek <polacek@redhat.com>
5443
5444 * c-ubsan.c: Don't include hash-table.h.
5445 (ubsan_instrument_vla): New function.
5446 * c-ubsan.h: Declare it.
5447
5e20cdc9
DM
54482013-10-31 David Malcolm <dmalcolm@redhat.com>
5449
5450 Automated part of renaming of symtab_node_base to symtab_node.
5451
5452 Patch autogenerated by rename_symtab.py from
5453 https://github.com/davidmalcolm/gcc-refactoring-scripts
5454 revision 58bb219cc090b2f4516a9297d868c245495ee622
5455
5456 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
5457 symtab_node_base to symtab_node.
5458
7057e645
ESR
54592013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
5460
8e745a17 5461 Implement C++14 digit separators.
7057e645
ESR
5462 * c-lex.c (interpret_float): Remove digit separators from scratch string
5463 before building real literal.
5464
193ea7bc
JJ
54652013-10-30 Jakub Jelinek <jakub@redhat.com>
5466
5467 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
5468
939b37da
BI
54692013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
5470
5471 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
5472 fields.
5473 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
5474 enabled.
5475 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
5476 (insert_cilk_frame): New prototype.
5477 (cilk_init_builtins): Likewise.
5478 (gimplify_cilk_spawn): Likewise.
5479 (c_cilk_install_body_w_frame_cleanup): Likewise.
5480 (cilk_detect_spawn_and_unwrap): Likewise.
5481 (cilk_set_spawn_marker): Likewise.
5482 (build_cilk_sync): Likewise.
5483 (build_cilk_spawn): Likewise.
5484 * cilk.c: New file.
5485
67348ccc
DM
54862013-10-29 David Malcolm <dmalcolm@redhat.com>
5487
5488 Patch autogenerated by refactor_symtab.py from
5489 https://github.com/davidmalcolm/gcc-refactoring-scripts
5490 revision 58bb219cc090b2f4516a9297d868c245495ee622
5491
5492 * c-gimplify.c (c_genericize): Update for conversion of symtab types
5493 to a true class hierarchy.
5494 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
5495
d570872d
RS
54962013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
5497
5498 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
5499
98906124
JL
55002013-10-26 Jeff Law <law@redhat.com>
5501
adfac8df
JJ
5502 * c-common.c (c_define_builtins): Remove mudflap support.
5503 * c.opt: Ignore and warn for mudflap options.
98906124 5504
d73749df 55052013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
5506
5507 PR other/33426
5508 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
5509 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
5510
3f04b1bb
JM
55112013-10-23 Jason Merrill <jason@redhat.com>
5512
5513 * c-format.c (gcc_cxxdiag_char_table): Add %X.
5514
acf0174b
JJ
55152013-10-11 Jakub Jelinek <jakub@redhat.com>
5516
acd15a28
JJ
5517 * c-common.h (omp_clause_mask::operator !=): New method.
5518 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
5519 instead of if (mask & something) tests everywhere.
5520
acf0174b
JJ
5521 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
5522 201307 instead of 201107.
5523 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
5524 (c_common_attribute_table): Add "omp declare target" and
5525 "omp declare simd" attributes.
5526 (handle_omp_declare_target_attribute,
5527 handle_omp_declare_simd_attribute): New functions.
5528 * c-omp.c: Include c-pragma.h.
5529 (c_finish_omp_taskgroup): New function.
5530 (c_finish_omp_atomic): Add swapped argument, if true,
5531 build the operation first with rhs, lhs arguments and use NOP_EXPR
5532 build_modify_expr.
5533 (c_finish_omp_for): Add code argument, pass it down to make_code.
5534 (c_omp_split_clauses): New function.
5535 (c_split_parallel_clauses): Removed.
5536 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
5537 c_omp_declare_simd_clauses_to_decls): New functions.
5538 * c-common.h (omp_clause_mask): New type.
5539 (OMP_CLAUSE_MASK_1): Define.
5540 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
5541 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
5542 omp_clause_mask::operator |, omp_clause_mask::operator &,
5543 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
5544 omp_clause_mask::operator ==): New methods.
5545 (enum c_omp_clause_split): New.
5546 (c_finish_omp_taskgroup): New prototype.
5547 (c_finish_omp_atomic): Add swapped argument.
5548 (c_finish_omp_for): Add code argument.
5549 (c_omp_split_clauses): New prototype.
5550 (c_split_parallel_clauses): Removed.
5551 (c_omp_declare_simd_clauses_to_numbers,
5552 c_omp_declare_simd_clauses_to_decls): New prototypes.
5553 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
5554 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
5555 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
5556 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
5557 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
5558 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
5559 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
5560 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
5561 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
5562 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
5563 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
5564 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
5565 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
5566 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
5567 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
5568 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
5569 PRAGMA_OMP_CLAUSE_UNIFORM.
5570
826cacfe
MG
55712013-10-09 Marc Glisse <marc.glisse@inria.fr>
5572
5573 PR tree-optimization/20318
5574 * c-common.c (handle_returns_nonnull_attribute): New function.
5575 (c_common_attribute_table): Add returns_nonnull.
5576
2284b034
MG
55772013-10-03 Marc Glisse <marc.glisse@inria.fr>
5578
5579 PR c++/19476
5580 * c.opt (fcheck-new): Move to common.opt.
5581
b56e9788
MP
55822013-09-25 Marek Polacek <polacek@redhat.com>
5583 Jakub Jelinek <jakub@redhat.com>
5584
5585 PR sanitizer/58413
5586 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
5587 an expression if we can prove it is correct.
5588 (ubsan_instrument_division): Likewise. Remove unnecessary
5589 check.
5590
ce6923c5
MP
55912013-09-18 Marek Polacek <polacek@redhat.com>
5592
5593 PR sanitizer/58411
5594 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
5595 Declare it.
5596 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
5597
fb5610fb
IS
55982013-09-14 Iain Sandoe <iain@codesourcery.com>
5599
5600 PR target/48094
5601 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
5602 fobjc-gc, freplace-objc-classes): Accept for LTO.
5603
88b0e79e
JC
56042013-09-13 Jacek Caban <jacek@codeweavers.com>
5605
5606 * c-target.def: New hook
5607
c9b0866a
PC
56082013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
5609
5610 PR c++/43452
5611 * c.opt (Wdelete-incomplete): Add.
5612
0af94e6f
JR
56132013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
5614
5615 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
5616 (vector_types_compatible_elements_p): New function.
5617 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
5618 declaration.
5619 (vector_types_compatible_elements_p): Declare.
5620
7c26172c
GDR
56212013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
5622
5623 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
5624 a virtual member function.
5625 (pp_simple_type_specifier): Remove.
5626 (pp_c_type_specifier): Likewise.
5627 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
5628 Rename from pp_c_type_specifier. Adjust.
5629 (c_pretty_printer::c_pretty_printer): Do not assign to
5630 simple_type_specifier.
5631
20059c8b
GDR
56322013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
5633
5634 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
5635 member function.
5636 (c_pretty_printer::storage_class_specifier): Likewise.
5637 (c_pretty_printer::initializer): Likewise.
5638 (pp_declaration): Remove.
5639 (pp_declaration_specifiers): Likewise.
5640 (pp_abstract_declarator): Likewise.
5641 (pp_declarator): Likewise.
5642 (pp_type_id): Likewise.
5643 (pp_statement): Likewise.
5644 (pp_constant): Likewise.
5645 (pp_id_expression): Likewise.
5646 (pp_primary_expression): Likewise.
5647 (pp_unary_expression): Likewise.
5648 (pp_multiplicative_expression): Likewise.
5649 (pp_conditional_expression): Likewise.
5650 (pp_assignment_expression): Likewise.
5651 (pp_expression): Likewise.
5652 (pp_c_type_id): Likewise.
5653 (pp_c_storage_class_specifier): Likewise.
5654 * c-pretty-print.c (pp_c_type_cast): Tidy.
5655 (pp_c_pointer): Likewise.
5656 (pp_c_type_specifier): Likewise.
5657 (pp_c_parameter_type_list): Likewise.
5658 (pp_c_function_definition): Likewise.
5659 (pp_c_init_declarator): Likewise.
5660 (pp_c_initializer_list): Likewise.
5661 (pp_c_constructor_elts): Likewise.
5662 (c_pretty_printer::direct_abstract_declarator): Likewise.
5663 (c_pretty_printer::declaration_specifiers): Likewise.
5664 (c_pretty_printer::primary_expression): Likewise.
5665 (c_pretty_printer::postfix_expression): Likewise.
5666 (c_pretty_printer::type_id): Rename from pp_c_type_id.
5667 (c_pretty_printer::storage_class_specifier): Rename from
5668 pp_c_storage_class_specifier.
5669 (c_pretty_printer::initializer): Rename from pp_c_initializer.
5670 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
5671 storage_class_specifier, initializer, offset_list, flags.
5672
de5a5fa1
MP
56732013-08-30 Marek Polacek <polacek@redhat.com>
5674
5675 * c-ubsan.c: New file.
5676 * c-ubsan.h: New file.
5677
8f0e4d72
GDR
56782013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
5679
5680 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
5681 member function.
5682 (c_pretty_printer::declaration_specifiers): Likewise.
5683 (c_pretty_printer::declarator): Likewise.
5684 (c_pretty_printer::abstract_declarator): Likewise.
5685 (c_pretty_printer::direct_abstract_declarator): Likewise.
5686 (c_pretty_printer::direct_declarator): Likewise.
5687 (c_pretty_printer::function_specifier): Likewise.
5688 (pp_declaration): Adjust.
5689 (pp_declaration_specifiers): Likewise.
5690 (pp_abstract_declarator): Likewise.
5691 (pp_direct_declarator): Likewise.
5692 (pp_function_specifier): Likewise.
5693 (pp_direct_abstract_declarator): Remove as unused.
5694 (pp_c_declaration): Remove.
5695 (pp_c_declaration_specifiers): Likewise.
5696 (pp_c_declarator): Likewise.
5697 (pp_c_direct_declarator): Likewise.
5698 (pp_c_function_specifier): Likewise.
5699 (pp_c_direct_abstract_declarator): Likewise.
5700 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
5701 from pp_c_abstract_declarator. Adjust.
5702 (c_pretty_printer::direct_abstract_declarator): Rename from
5703 pp_c_direct_abstract_declarator. Adjust.
5704 (c_pretty_printer::function_specifier): Rename from
5705 pp_c_function_specifier. Adjust.
5706 (c_pretty_printer::declaration_specifiers): Rename from
5707 pp_c_declaration_specifiers. Adjust.
5708 (c_pretty_printer::direct_declarator): Rename from
5709 pp_c_direct_declarator. Adjust.
5710 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
5711 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
5712 (c_pretty_printer::c_pretty_printer): Do not assign to
5713 declaration, declaration_specifiers, declarator,
5714 direct_declarator, direct_abstract_declarator, function_specifier.
5715
00d34d3a
GDR
57162013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
5717
5718 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
5719 virtual member function.
5720 (c_pretty_printer::multiplicative_expression): Likewise.
5721 (c_pretty_printer::conditional_expression): Likewise.
5722 (c_pretty_printer::assignment_expression): Likewise.
5723 (c_pretty_printer::expression): Likewise.
5724 (pp_unary_expression): Adjust.
5725 (pp_multiplicative_expression): Likewise.
5726 (pp_assignment_expression): Likewise.
5727 (pp_conditional_expression): Likewise.
5728 (pp_expression): Likewise.
5729 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
5730 from pp_c_unary_expression. Adjust.
5731 (c_pretty_printer::multiplicative_expression): Rename from
5732 pp_c_multiplicative_expression. Adjust.
5733 (c_pretty_printer::conditional_expression): Rename from
5734 pp_c_conditional_expression. Adjust.
5735 (c_pretty_printer::assignment_expression): Rename from
5736 pp_c_assignment_expression. Adjust.
5737 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
5738 (c_pretty_printer::c_pretty_printer): Do not assign to
5739 unary_expression, multiplicative_expression,
5740 conditional_expression, expression.
5741
fb22178f
GDR
57422013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
5743
5744 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
5745 virtual member function.
5746 (pp_postfix_expression): Adjust.
5747 (pp_c_postfix_expression): Remove.
5748 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
5749 from pp_c_postfix_expression. Adjust.
5750 (c_pretty_printer::c_pretty_printer): Do not assign to
5751 postfix_expression.
5752
7ecc2600
GDR
57532013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
5754
5755 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
5756 virtua member function.
5757 (pp_primary_expression): Adjust.
5758 (pp_c_primary_expression): Remove.
5759 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
5760 from pp_c_primary_expression. Adjust.
5761 (pp_c_initializer_list): Use pp_primary_expression.
5762 (c_pretty_printer::c_pretty_printer): Do not assign to
5763 primary_expression.
5764
0691175f
GDR
57652013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
5766
5767 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
5768 * c-pretty-print.c (M_): Remove.
5769 (c_pretty_printer::translate_string): Define.
5770 (pp_c_type_specifier): Use it.
5771 (pp_c_primary_expression): Likewise.
5772 (pp_c_expression): Likewise.
5773
66dfe4c4
GDR
57742013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
5775
5776 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
5777 virtual function.
5778 (pp_c_id_expression): Remove.
5779 (pp_id_expression): Adjust.
5780 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
5781 pp_c_id_expression. Adjust.
5782 (pp_c_postfix_expression): Use pp_id_expression.
5783 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
5784
ca43e9d5
GDR
57852013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
5786
5787 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
5788 member function.
5789 (pp_constant): Adjust.
5790 (pp_c_constant): Remove.
5791 * c-pretty-print.c (c_pretty_printer::constant): Rename from
5792 pp_c_constant. Adjust.
5793 (pp_c_constant)
5794 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
5795 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
5796
da6ca2b5
GDR
57972013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
5798
5799 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
5800 (c_pretty_printer::c_pretty_printer): Declare.
5801 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
5802 c_pretty_printer_init. Adjust.
5803 (print_c_tree): Do not call c_pretty_printer_init.
5804 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
5805
65a372f4
AC
58062013-08-09 Arnaud Charlet <charlet@adacore.com>
5807
5808 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
5809
fd9b0f32
PC
58102013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
5811
5812 PR c++/58080
5813 * c-common.c (pointer_int_sum): Add bool parameter.
5814 * c-common.h (pointer_int_sum): Adjust declaration.
5815
e0aec1e9
GDR
58162013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
5817
5818 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
5819 c_pretty_printer variable.
5820
b066401f
GDR
58212013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
5822
5823 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
5824 (pp_base): Remove.
5825 (pp_c_base): Likewise. Adjust users.
5826 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
5827 (pp_c_whitespace): Do not call pp_base.
5828 (pp_c_left_paren): Likewise.
5829 (pp_c_right_paren): Likewise.
5830 (pp_c_left_brace): Likewise.
5831 (pp_c_right_brace): Likewise.
5832 (pp_c_left_bracket): Likewise.
5833 (pp_c_right_bracket): Likewise.
5834 (pp_c_dot): Likewise.
5835 (pp_c_ampersand): Likewise.
5836 (pp_c_star): Likewise.
5837 (pp_c_arrow): Likewise.
5838 (pp_c_semicolon): Likewise.
5839 (pp_c_complement): Likewise.
5840 (pp_c_exclamation): Likewise.
5841 (pp_c_direct_declarator): Likewise.
5842 (pp_c_ws_string): Likewise.
5843 (pp_c_identifier): Likewise.
5844 (pp_c_statement): Likewise.
5845 (print_c_tree): Likewise.
5846
65e5a578
ESR
58472013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
5848
5849 PR c++/58072
5850 * c-common.c (c_parse_error): Catch user-defined literal tokens and
5851 provide useful error strings.
5852
137a1a27
GDR
58532013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
5854
5855 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
5856 printer functions instead of pp_string or operators and punctuators.
5857 (dump_generic_ada_node): Likewise.
5858 * c-pretty-print.c (pp_c_type_specifier): Likewise.
5859 (pp_c_relational_expression): Likewise.
5860 (pp_c_logical_or_expression): Likewise.
5861
07838b13
GDR
58622013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
5863
5864 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
5865 functions instead of pp_character.
5866 (pp_ada_tree_identifier): Likewise.
5867 (dump_ada_double_name): Likewise.
5868 (dump_ada_function_declaration): Likewise.
5869 (dump_ada_array_domains): Likewise.
5870 (dump_template_types): Likewise.
5871 (dump_generic_ada_node): Likewise.
5872 (print_ada_declaration): Likewise.
5873 (print_ada_struct_decl): Likewise.
5874 * c-pretty-print.c (pp_c_integer_constant): Likewise.
5875
433cc7b0
TT
58762013-07-23 Tom Tromey <tromey@redhat.com>
5877
5878 * c-common.h (enum rid) <RID_GENERIC>: New constant.
5879 * c-common.c (c_common_reswords): Add _Generic.
5880
688010ba
OB
58812013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
5882
5883 * c-common.c: Fix typos.
5884 * c-common.h: Likewise.
5885
2a99e5e6
LL
58862013-07-13 Lubos Lunak <l.lunak@suse.cz>
5887
5888 PR c++/55203
5889 * c-common.c (c_common_attribute_table): Add warn_unused.
5890 (handle_warn_unused_attribute): New.
5891
c26302d5
JJ
58922013-07-10 Jakub Jelinek <jakub@redhat.com>
5893
5894 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
5895 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
5896
dfeadaa0
PC
58972013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
5898
5899 PR c++/57869
5900 * c.opt: Add Wconditionally-supported.
5901
6a2fa4b2
GS
59022013-07-08 Graham Stott <graham.stott@btinternet.com>
5903
adfac8df 5904 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
5905 unused variables l_length and l_node.
5906
ecdbd01a 59072013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
5908
5909 PR c/57821
5910 * c-common.c (complete_array_type): Delay folding first index
5911 like other indices. When folding, check for index overflow.
5912
bedc293e
MG
59132013-06-27 Marc Glisse <marc.glisse@inria.fr>
5914
5915 PR c++/57509
5916 * c-common.h (c_build_vec_perm_expr): New complain argument.
5917 * c-common.c (c_build_vec_perm_expr): Likewise.
5918 Use save_expr also in C++.
5919
604b2bfc
GDR
59202013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
5921
5922 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
5923 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
5924 * c-opts.c (c_common_post_options): Likewise.
5925
dfeadaa0 59262013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
5927
5928 * array-notation-common.c (length_mismatch_in_expr): Changed the
5929 parameter type's from a dynamic array to a vec_tree. Also removed
5930 the size parameters.
5931 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
5932 the change above.
5933
2ce86d2e
BI
59342013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
5935
5936 * c-common.h (struct cilkplus_an_parts): New structure.
5937 (struct cilkplus_an_loop_parts): Likewise.
5938 (cilkplus_extract_an_triplets): New prototype.
5939 (fix_sec_implicit_args): Likewise.
5940 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
5941 (fix_sec_implicit_args): Likewise.
604b2bfc 5942
07a6825b
BI
59432013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
5944
5945 * array-notation-common.c (find_inv_trees): Removed an unwanted
5946 typecasting.
5947 * c-common.h (struct inv_list::additional_tcodes): Changed type from
5948 enum rid to enum tree_code.
5949
08346abd
JH
59502013-06-11 Jan Hubicka <jh@suse.cz>
5951
5952 * c-common.c (handle_alias_ifunc_attribute): Do not set
5953 DECL_EXTERNAL for weakref variables.
5954 * c-pragma.c (handle_pragma_weak): Make sure aliases
5955 are not declared as external.
5956
d60f1706
BI
59572013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
5958
5959 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
5960 function from c/c-array-notation.c.
5961 (is_cilkplus_reduce_builtin): Likewise.
5962 (find_rank): Likewise.
5963 (extract_array_notation_exprs): Likewise.
5964 (replace_array_notations): Likewise.
5965 (find_inv_trees): Likewise.
5966 (replace_inv_trees): Likewise.
5967 (contains_array_notation_expr): Likewise.
5968 (find_correct_array_notation_type): Likewise.
5969 * c-common.h (struct inv_list): Moved this struct from the file
5970 c/c-array-notation.c and added a new field called additional tcodes.
5971 (length_mismatch_in_expr_p): New prototype.
5972 (is_cilkplus_reduce_builtin): Likewise.
5973 (find_rank): Likewise.
5974 (extract_array_notation_exprs): Likewise.
5975 (replace_array_notation): Likewise.
5976 (find_inv_trees): Likewise.
5977 (replace_inv_trees): Likewise.
5978 (find_correct_array_notation_type): Likewise.
dfeadaa0 5979
36536d79
BI
59802013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
5981
5982 * c-common.c (c_define_builtins): When cilkplus is enabled, the
5983 function array_notation_init_builtins is called.
5984 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
5985 * c-common.def (ARRAY_NOTATION_REF): New tree.
5986 * c-common.h (build_array_notation_expr): New function declaration.
5987 (build_array_notation_ref): Likewise.
5988 (extract_sec_implicit_index_arg): New extern declaration.
5989 (is_sec_implicit_index_fn): Likewise.
5990 (ARRAY_NOTATION_CHECK): New define.
5991 (ARRAY_NOTATION_ARRAY): Likewise.
5992 (ARRAY_NOTATION_START): Likewise.
5993 (ARRAY_NOTATION_LENGTH): Likewise.
5994 (ARRAY_NOTATION_STRIDE): Likewise.
5995 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
5996 ARRAY_NOTATION_REF.
5997 (pp_c_expression): Likewise.
5998 * c.opt (flag_enable_cilkplus): New flag.
5999 * array-notation-common.c: New file.
6000
f7716d57
JJ
60012013-05-14 Jakub Jelinek <jakub@redhat.com>
6002
6003 PR c++/57274
6004 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
6005
a5e0cd1d
MG
60062013-05-10 Marc Glisse <marc.glisse@inria.fr>
6007
6008 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
6009 vectors.
6010
f6bc1c4a
HS
60112013-05-07 Han Shen <shenhan@google.com>
6012
6013 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
6014
3f12f6e9
SKS
60152013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
6016
6017 * c-common.c (check_user_alignment): Emit error for negative values.
6018
61949153
PC
60192013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6020
6021 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
6022
e93e18e9
PC
60232013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6024
6025 * c-cppbuiltin.c (c_cpp_builtins): Do not define
6026 __GXX_EXPERIMENTAL_CXX1Y__.
6027
44d90fe1 60282013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
8e745a17 6029 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
44d90fe1
PC
6030
6031 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
6032 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
6033 to simply use OPT_Wpointer_arith.
6034 (c_sizeof_or_alignof_type): Likewise.
6035
13f39b2e
PC
60362013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6037
6038 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
6039
4b84d650
JJ
60402013-04-12 Jakub Jelinek <jakub@redhat.com>
6041
6042 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
6043 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
6044 specifiers.
6045
fb037b5d
SB
60462013-04-07 Steven Bosscher <steven@gcc.gnu.org>
6047
6048 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
6049
4e856798
PC
60502013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
6051
6052 * c-common.c (pointer_int_sum): Remove dead code.
6053
4b1baac8
RS
60542013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
6055
6056 PR middle-end/56524
6057 * c-common.c (handle_optimize_attribute): Don't call
6058 save_optabs_if_changed.
6059
0b50e654
JJ
60602013-03-05 Jakub Jelinek <jakub@redhat.com>
6061
6062 PR middle-end/56461
6063 * c-pch.c (pch_init): Free target_validity at the end.
6064
48c41403
JJ
60652013-03-04 Jakub Jelinek <jakub@redhat.com>
6066
6067 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
6068
e664c61c
KS
60692013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
6070 Jakub Jelinek <jakub@redhat.com>
6071
6072 PR sanitizer/56454
6073 * c-common.c (handle_no_sanitize_address_attribute): New function.
6074 (c_common_attribute_table): Add no_sanitize_address attribute.
6075 (handle_no_address_safety_analysis_attribute): Add
6076 no_sanitize_address attribute, not no_address_safety_analysis
6077 attribute.
6078
a475fd3d 60792013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
6080
6081 PR target/52555
6082 * c-common.c (handle_optimize_attribute): Call
6083 save_optabs_if_changed.
6084
f6007d99
JJ
60852013-02-18 Jakub Jelinek <jakub@redhat.com>
6086 Steven Bosscher <steven@gcc.gnu.org>
6087
6088 PR pch/54117
6089 * c-opts.c (c_common_post_options): If debug info is enabled
6090 and non-dwarf*, refuse to load PCH files and when writing PCH
6091 file warn.
6092
cf35e2b1
JJ
60932013-02-05 Jakub Jelinek <jakub@redhat.com>
6094
6095 PR middle-end/56167
6096 * c-common.c (handle_error_attribute): Fix condition.
6097
32887460
JJ
60982013-01-30 Jakub Jelinek <jakub@redhat.com>
6099
6100 PR c++/55742
6101 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
6102
5af057d8
JM
61032013-01-18 Jason Merrill <jason@redhat.com>
6104
6105 PR target/54908
6106 * c.opt (-fextern-tls-init): New.
6107 * c-opts.c (c_common_post_options): Handle it.
6108
cc83c823
JJ
61092013-01-09 Jakub Jelinek <jakub@redhat.com>
6110
6111 PR c/48418
6112 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
6113 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
6114 and is either negative or bigger or equal to type precision
6115 of the first operand.
6116
a859517f
MP
61172012-12-03 Marek Polacek <polacek@redhat.com>
6118
6119 PR c/55570
6120 * c-common.c (check_user_alignment): Swap order of tests,
6121 check TREE_CODE first.
6122
2d7aa578
ESR
61232012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
6124
6125 PR c++/52654
6126 * c-common.h (overflow_type): New enum.
6127 (build_userdef_literal): Add overflow_type argument.
6128 (tree_userdef_literal): Add overflow_type.
6129 (USERDEF_LITERAL_OVERFLOW): New access macro.
6130 * c-common.c (build_userdef_literal): Add overflow_type
6131 argument.
6132 * c-lex.c (c_lex_with_flags): Add overflow_type to
6133 build_userdef_literal calls.
6134 (interpret_integer, interpret_float): Add overflow_type argument.
6135
cc3c4f62
RB
61362012-11-28 Richard Biener <rguenther@suse.de>
6137
6138 PR c/35634
6139 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
6140 here and use a type with proper overflow behavior for types that would
6141 need to be promoted for the arithmetic.
6142
77bc5132
JJ
61432012-11-23 Jakub Jelinek <jakub@redhat.com>
6144
6145 PR sanitizer/55435
6146 * c-common.c (handle_no_address_safety_analysis_attribute): New
6147 function.
6148 (c_common_attribute_table): Add no_address_safety_analysis.
6149
5dc99c46
SB
61502012-11-16 Simon Baldwin <simonb@google.com>
6151
6152 * c.opt: Add f[no-]canonical-system-headers.
6153 * c-opts.c (c_common_handle_option): Handle
6154 OPT_fcanonical_system_headers.
6155
a4a0016d
ESR
61562012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
6157
6158 PR c++/54413
6159 * c-opts.c (c_common_handle_option): Set new flags.
6160 * c.opt: Describe new flags.
6161
7dbb85a7
JM
61622012-11-09 Jason Merrill <jason@redhat.com>
6163
6164 * c.opt (Wabi-tag): New.
6165
ad7bac31
AK
61662012-11-09 Andi Kleen <ak@linux.intel.com>
6167
6168 PR 55139
6169 * c-common.c (get_atomic_generic_size): Mask with
8e745a17 6170 MEMMODEL_MASK
ad7bac31 6171
7332899a
MLI
61722012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
6173
6174 PR c/53063
6175 * c.opt (Wformat): Make it Alias Wformat=1.
6176 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
6177 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
6178 LangEnabledBy.
6179 (Wformat=): RejectNegative. Use LangEnabledBy.
6180 (Wnonnull): Use LangEnabledBy.
6181 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
6182 * c-format.c (set_Wformat): Delete.
6183 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
8e745a17
JJ
6184 (maybe_read_dollar_number): Likewise.
6185 (avoid_dollar_number): Likewise.
6186 (finish_dollar_format_checking): Likewise.
6187 (check_format_info): Likewise.
6188 (check_format_info_main): Likewise.
6189 (check_format_types): Likewise.
6190 (format_type_warning): Likewise.
6191 * c-common.c (int): Likewise.
6192 (check_function_sentinel): Likewise.
6193 * c-common.h (warn_format,set_Wformat): Do not declare here.
7332899a 6194
34a180a6
MLI
61952012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
6196
6197 PR c/53063
6198 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
6199 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
6200 Use LangEnabledBy.
6201 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
6202 common.opt.
6203 (Wvariadic-macros): Init(1).
6204 * c-opts.c (c_common_handle_option): Do not handle them
6205 explicitly.
6206 (c_common_post_options): Likewise.
6207 (sanitize_cpp_opts): warn_unused_macros is now
6208 cpp_warn_unused_macros.
6209 (push_command_line_include): Likewise.
6210 * c-common.c (warn_unknown_pragmas): Do not define.
6211 * c-common.h (warn_unknown_pragmas): Do not declare.
6212
3f46d6a5
MLI
62132012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
6214
6215 PR c/51294
6216 * c-common.c (conversion_warning): Handle conditional expressions.
6217
880661a4
JW
62182012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
6219
6220 PR c++/54930
6221 * c.opt (Wreturn_local_addr): Define new option.
6222
4514a96b
JM
62232012-10-25 Jason Merrill <jason@redhat.com>
6224
f14edc1a
JM
6225 * c.opt (Wvirtual-move-assign): New.
6226
4514a96b
JM
6227 * c.opt (Winherited-variadic-ctor): New.
6228
93100c6b
MG
62292012-10-25 Marc Glisse <marc.glisse@inria.fr>
6230
6231 PR c++/54427
6232 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
6233
1efcb8c6
JM
62342012-10-23 Joseph Myers <joseph@codesourcery.com>
6235
6236 * c-common.h (pch_cpp_save_state): Declare.
6237 * c-target.def (c_preinclude): New hook.
6238 * c-opts.c (done_preinclude): New.
6239 (push_command_line_include): Handle default preincluded header.
6240 (cb_file_change): Call pch_cpp_save_state when calling
6241 push_command_line_include.
6242 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
6243 (pch_cpp_save_state): New.
6244 (pch_init): Call pch_cpp_save_state conditionally, instead of
6245 calling cpp_save_state.
6246
4a0ae68e
MLI
62472012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
6248
6249 PR c/53063
6250 PR c/40989
6251 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
6252 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
6253 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
6254 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
6255 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
6256 * c-opts.c (c_common_handle_option): Remove explicit handling from
6257 here.
6258 (c_common_post_options): Likewise.
6259
67e4210b
EB
62602012-10-18 Eric Botcazou <ebotcazou@adacore.com>
6261
6262 * c-ada-spec.c (LOCATION_COL): Delete.
6263 (compare_location): New function.
6264 (compare_node): Use it.
6265 (compare_comment): Likewise.
6266
65d4f2cd
MLI
62672012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
6268
6269 PR c/53063
6270 PR c/40989
6271 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
6272 * c-opts.c (c_common_handle_option): Do not set them here. Add
6273 comment.
6274 (c_common_post_options): Likewise.
6275
909881cb
EB
62762012-10-16 Eric Botcazou <ebotcazou@adacore.com>
6277
6278 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
6279 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
6280 Remove POINTER_TYPE handling, add large unsigned handling and use
6281 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
6282
3a785c97
JJ
62832012-10-12 Jakub Jelinek <jakub@redhat.com>
6284
6285 PR c/54381
6286 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
6287 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
6288 locs and array of 3 trees instead of just single loc and single
6289 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
6290 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
6291 For *cmp* builtins that take two sources strings report warnings
6292 about first and second source, not about destination and source.
6293
5e54f81d
MG
62942012-10-12 Marc Glisse <marc.glisse@inria.fr>
6295
6296 PR c++/53055
6297 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
6298
f5b02f1e
EB
62992012-10-11 Eric Botcazou <ebotcazou@adacore.com>
6300
6301 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
6302 declaring something coming from another file.
6303
b46dbc6c
AC
63042012-10-10 Arnaud Charlet <charlet@adacore.com>
6305
f5b02f1e 6306 PR ada/54845
b46dbc6c
AC
6307 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
6308
5d9de0d0
PC
63092012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
6310
6311 PR c++/54194
6312 * c-common.c (warn_about_parentheses): Add location_t parameter;
6313 use EXPR_LOC_OR_LOC.
6314 * c-common.h: Update declaration.
6315
a212e43f
MG
63162012-10-09 Marc Glisse <marc.glisse@inria.fr>
6317
6318 PR c++/54427
6319 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
6320 more operations. Make error messages optional.
6321 * c-common.h (enum stv_conv): Moved from c-typeck.c.
6322 (scalar_to_vector): Declare.
6323
b1db7f91
JM
63242012-10-08 Jason Merrill <jason@redhat.com>
6325
6326 * c-common.c (c_common_reswords): Add thread_local.
6327
e28d52cf
DS
63282012-10-08 Dodji Seketeli <dodji@redhat.com>
6329
6330 PR c++/53528 C++11 attribute support
6331 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
6332 new functions.
6333 * c-common.c (check_cxx_fundamental_alignment_constraints): New
6334 static function.
6335 (handle_aligned_attribute): In choose strictest alignment
6336 among many. Use new check_cxx_fundamental_alignment_constraints.
6337 (handle_transparent_union_attribute): In c++11 attribute syntax,
6338 don't look through typedefs.
6339
3b78de56
AC
63402012-10-04 Arnaud Charlet <charlet@adacore.com>
6341
6342 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
6343 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
6344 out of dumpfile.h.
6345
6040bb5f
DC
63462012-09-25 Dehao Chen <dehao@google.com>
6347
6348 PR middle-end/54645
3b78de56 6349 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
6350 map when read in the pch.
6351
3f8257db 63522012-09-18 Arnaud Charlet <charlet@adacore.com>
0b07a57e
AC
6353
6354 * c-ada-spec.c: Style fixes.
6355
3f8257db 63562012-09-18 Thomas Quinot <quinot@adacore.com>
da5182be
TQ
6357
6358 * c.opt (-fada-spec-parent): Define new command line switch.
6359 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
6360 is specified, generate binding spec as a child of the specified unit.
6361
0ccb505d
PC
63622012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
6363 Manuel López-Ibáñez <manu@gcc.gnu.org>
6364
6365 PR c++/53210
6366 * c.opt ([Winit-self]): Enabled by -Wall in C++.
6367
c583af79
AC
63682012-08-23 Arnaud Charlet <charlet@adacore.com>
6369
6370 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
6371 for pointers, and add missing Convention C pragma.
6372 (print_ada_struct_decl): Add missing aliased keyword.
6373 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
6374
1a4049e7
JJ
63752012-08-17 Jakub Jelinek <jakub@redhat.com>
6376
6377 * c-common.c (sizeof_pointer_memaccess_warning): New function.
6378 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
6379 * c-opts.c (c_common_handle_option): Enable it for -Wall.
6380 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
6381 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
6382
70b5e7dc
RG
63832012-08-10 Richard Guenther <rguenther@suse.de>
6384
6385 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
6386
f8923f7e
SB
63872012-08-07 Steven Bosscher <steven@gcc.gnu.org>
6388
6389 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
6390 instead of separate pp_newline and pp_flush.
6391 (print_c_tree): Likewise.
6392
e45abe1f
RH
63932012-07-26 Richard Henderson <rth@redhat.com>
6394
6395 * c-common.c (handle_hot_attribute): Allow labels.
6396 (handle_cold_attribute): Likewise.
6397
332f1d24
JJ
63982012-07-20 Jakub Jelinek <jakub@redhat.com>
6399
6400 PR c++/28656
6401 * c-common.c (check_function_nonnull): Handle multiple nonnull
6402 attributes properly.
6403
7ee2468b
SB
64042012-07-16 Steven Bosscher <steven@gcc.gnu.org>
6405
6406 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
6407 * c-ada-spec.c: Likewise.
6408 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
6409
ee7b28eb
SB
64102012-07-14 Steven Bosscher <steven@gcc.gnu.org>
6411
6412 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
6413 Remove code conditional on it.
6414
6bdf3519
SB
64152012-07-11 Steven Bosscher <steven@gcc.gnu.org>
6416
6417 * c-gimplify.c: Do not include basic-block.h.
6418 * c-common.c: Do not include linfuncs.h.
6419
532aafad
SB
64202012-07-08 Steven Bosscher <steven@gcc.gnu.org>
6421
6422 * c-common.h: Include tree.h.
6423
8d0d1915
JM
64242012-07-02 Jason Merrill <jason@redhat.com>
6425
6426 PR c++/53524
6427 * c-common.c (get_priority): Call default_conversion.
6428
fbc873ad
UB
64292012-07-01 Uros Bizjak <ubizjak@gmail.com>
6430
6431 * c-pch.c (c_common_write_pch): Remove unused variables.
6432
d4a10d0a
SB
64332012-06-29 Steven Bosscher <steven@gcc.gnu.org>
6434
6435 * cppspec.c: Moved from gcc/ to here.
6436
6f3a2e23
KT
64372012-06-27 Kai Tietz <ktietz@redhat.com>
6438
6439 PR preprocessor/37215
6440 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
6441
8ca92d04
SB
64422012-06-21 Steven Bosscher <steven@gcc.gnu.org>
6443
6444 * c-common.h (c_common_print_pch_checksum): Remove.
6445 * c-pch.c: Do not include output.h.
6446 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
6447 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
6448 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
6449 (struct c_pch_header): Remove.
6450 (get_ident): Update gpch version.
6451 (pch_init): Do not print executable_checksum to asm_out_file.
6452 Do not fail if there is no asm_out_file to read back from. Set
6453 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
6454 (c_common_write_pch): Verify that nothing was written to asm_out_file
6455 since pch_init was called. Do not write a c_pch_header, and do not
6456 copy from asm_out_file to the PCH.
6457 (c_common_read_pch): Do not read a c_pch_header, and do not restore
6458 the content of asm_out_file from the PCH.
6459 (c_common_print_pch_checksum): Remove.
6460 * c-opts.c (c_common_init): Print out executable_checksum directly.
6461
70f42967
SB
64622012-06-19 Steven Bosscher <steven@gcc.gnu.org>
6463
6464 * c-target.def (objc_declare_unresolved_class_reference,
6465 objc_declare_class_definition): Add new hooks.
6466
a8781821
SB
64672012-06-19 Steven Bosscher <steven@gcc.gnu.org>
6468
6469 * c-lex.c: Do not include output.h.
6470 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
6471 Remove uses of ASM_OUTPUT_IDENT.
6472
9e1a8dd1
RR
64732012-06-15 Marc Glisse <marc.glisse@inria.fr>
6474
6475 PR c++/51033
6476 * c-common.h (c_build_vec_perm_expr): Move decl here.
6477 * c-common.c (c_build_vec_perm_expr): Move definition
6478 here.
6479
6f07a821
SB
64802012-06-06 Steven Bosscher <steven@gcc.gnu.org>
6481
6482 * c.opt (fconserve-space): Turn into a no-op.
6483
9faeb493 64842012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
6485
6486 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
6487 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
6488 both the start and end of the function.
6489
a4b7d13c
SB
64902012-06-04 Steven Bosscher <steven@gcc.gnu.org>
6491
6492 * c-common.c: Do not include output.h.
6493 * c-pragma.c: Likewise.
6494
c265f413
SA
64952012-06-04 Steven Bosscher <steven@gcc.gnu.org>
6496
6497 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
6498 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
6499 (lang_decl_name): Handle namespace decls.
6500
be7a421e
SB
65012012-05-31 Steven Bosscher <steven@gcc.gnu.org>
6502
6503 * c-ada-spec.c: Do not include output.h.
6504 * c-semantics.c: Likewise.
6505
65de6659
JM
65062012-05-29 Joseph Myers <joseph@codesourcery.com>
6507
6508 * c-common.c: Fix typo.
6509
ca5f4331
MM
65102012-05-29 Michael Matz <matz@suse.de>
6511
6512 * c-common.h (c_expand_decl): Remove prototype.
6513
4f7f7aca
MLI
65142012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
6515
6516 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
6517 * c-opts.c (c_common_handle_option): Remove code handling
6518 warn_missing_braces.
6519
4a792f9b
PC
65202012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
6521
6522 PR c++/25137
6523 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
6524 -Wmissing_braces.
6525
650dc14a
DS
65262012-05-22 Dodji Seketeli <dodji@redhat.com>
6527
6528 PR c++/53322
6529 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
6530
9b095bf1
MLI
65312012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
6532
6533 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
6534 * c-opts.c (c_common_handle_option): Do not handle explicitly
6535 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
6536
0b2c4be5
DS
65372012-05-16 Dodji Seketeli <dodji@redhat.com>
6538
6539 PR preprocessor/7263
6540 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
6541 to cpp_classify_number. For diagnostics, use the precise location
6542 instead of the global input_location.
6543
a1bde5af
PC
65442012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
6545
d02924ef 6546 PR c++/11856
a1bde5af
PC
6547 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
6548
d1ede5f4
BS
65492012-05-14 Bernd Schmidt <bernds@codesourcery.com>
6550
a1bde5af 6551 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 6552
f2bc201f
MLI
65532012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
6554
6555 PR 53063
6556 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
6557 Wreorder): Use LangEnabledBy.
6558 * c-opts.c (c_common_handle_option): Do not enable them
6559 explicitly. Call lang-specific generated functions.
6560 (c_common_post_options): Do not set them here.
6561
95744782
MLI
65622012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
6563
6564 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
6565 Wmissing-field-initializers,Wmissing-parameter-type,
6566 Wold-style-declaration,Woverride-init): Use EnabledBy.
6567 * c-opts.c (c_common_post_options): Do not set here explicitly.
6568
7d5a5747
MLI
65692012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
6570
6571 PR 53063
6572 * c-opts.c (c_common_handle_option): Use handle_generated_option
6573 to enable sub-options.
6574
5a3c9cf2
PC
65752012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
6576
6577 PR c++/53158
6578 * c-common.c (warnings_for_convert_and_check): Use warning_at.
6579
3ac8781c
RG
65802012-05-10 Richard Guenther <rguenther@suse.de>
6581
6582 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
6583 adjust commentary about TYPE_IS_SIZETYPE types.
6584
1e537948
MLI
65852012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
6586
6587 PR c++/53261
6588 * c-common.c (warn_logical_operator): Check that argument of
6589 integer_zerop is not NULL.
6590
f2c4a785
MLI
65912012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
6592
6593 PR c/43772
6594 * c-common.c (warn_logical_operator): Do not warn if either side
6595 is already true or false.
6596
50f305ca
MLI
65972012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
6598
6599 PR c/51712
6600 * c-common.c (expr_original_type): New.
6601 (shorten_compare): Do not warn for enumeration types.
6602
0c3641b0
MLI
66032012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
6604
6605 * c.opt (fpermissive): Add Var(flag_permissive).
6606
7edaa4d2
MG
66072012-04-30 Marc Glisse <marc.glisse@inria.fr>
6608
6609 PR c++/51033
6610 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
6611 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
6612
b9c8da34
DS
66132012-04-30 Dodji Seketeli <dodji@redhat.com>
6614
6615 Add -Wvarargs option
6616 * c.opt (Wvarargs): Define new option.
6617
e6c69da0
MLI
66182012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
6619
6620 * c-common.c (check_function_arguments): Replace
6621 Wmissing-format-attribute with Wsuggest-attribute=format.
6622
90137d8f
MLI
66232012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
6624
6625 * c.opt (Wsuggest-attribute=format): New. Alias of
6626 Wmissing-format-attribute.
6627 * c-format.c (decode_format_type): Replace
6628 Wmissing-format-attribute with Wsuggest-attribute=format.
6629 (check_function_format): Likewise.
6630
9faeb493 66312012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
6632
6633 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
6634 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
6635 * c.opt: Add Wliteral-suffix.
6636
c1771a20
MLI
66372012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
6638
6639 PR c/44774
6640 * c.opt (Wpedantic): New.
6641 (pedantic): Alias Wpedantic.
6642 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
6643 (c_common_post_options): Likewise.
6644 (sanitize_cpp_opts): Likewise.
6645 * c-lex.c (interpret_float): Likewise.
6646 * c-format.c (check_format_types): Likewise.
6647 * c-common.c (pointer_int_sum): Likewise.
6648 (c_sizeof_or_alignof_type): Likewise.
6649 (c_add_case_label): Likewise.
6650 (c_do_switch_warnings): Likewise.
6651 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
6652
04b391c1
JM
66532012-04-15 Jason Merrill <jason@redhat.com>
6654
6655 PR c++/52818
6656 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
6657 (C_STD_NAME): Distinguish between C++98 and C++11.
6658
ac868f29
EB
66592012-04-11 Eric Botcazou <ebotcazou@adacore.com>
6660
6661 PR target/52624
6662 * c-common.h (uint16_type_node): Rename into...
6663 (c_uint16_type_node): ...this.
6664 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
6665 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
6666
fd4116f4
MLI
66672012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
6668
6669 * c-common.c (warn_if_unused_value): Move definition to here.
6670 * c-common.h (warn_if_unused_value): Move declaration to here.
6671
573ac65e
WB
66722012-03-23 William Bader <williambader@hotmail.com>
6673
6674 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
6675
552b8185
JM
66762012-03-20 Jason Merrill <jason@redhat.com>
6677
6678 * c-common.h (enum cxx_dialect): Add cxx1y.
6679 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
6680 test.
6681 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
6682 * c-opts.c (c_common_post_options): Likewise.
6683 (set_std_cxx1y): New.
6684 (c_common_handle_option): Call it.
6685 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
6686
04398fa8
PC
66872012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
6688
6689 PR c++/14710
6690 * c.opt ([Wuseless-cast]): Add.
6691
d2a12ae7
RG
66922012-03-16 Richard Guenther <rguenther@suse.de>
6693
6694 * c-pretty-print.c (pp_c_initializer_list): Adjust.
6695
a12bf402
MLI
66962012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6697
6698 PR c++/44783
6699 * c.opt (ftemplate-backtrace-limit) Add.
6700
5c30094f
RO
67012012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6702
6703 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
6704 handling.
6705 * c-pragma.c (handle_pragma_extern_prefix): Remove.
6706 (init_pragma): Don't register extern_prefix.
6707
21fa2faf
RG
67082012-03-12 Richard Guenther <rguenther@suse.de>
6709
6710 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
6711 (builtin_type_for_size): Likewise.
6712
e3793c6f
JJ
67132012-02-13 Jakub Jelinek <jakub@redhat.com>
6714
6715 PR c++/52215
6716 * c-common.c (sync_resolve_params): Don't decide whether to convert
6717 or not based on TYPE_SIZE comparison, convert whenever arg_type
6718 is unsigned INTEGER_TYPE.
6719
93286335
PC
67202012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
6721
6722 PR c/52118
6723 * c.opt ([Wunused-local-typedefs]): Fix description.
6724
7a421706
MS
67252012-01-24 Mike Stump <mikestump@comcast.net>
6726
6727 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
6728 exactly.
6729
ba9b1f11
RG
67302012-01-18 Richard Guenther <rguenther@suse.de>
6731
6732 * c-opts.c (c_common_post_options): Reset LTO flags if
6733 we are about to generate a PCH.
6734
465406be
PC
67352012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
6736
6737 PR c++/51777
6738 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
6739 use pp_unsigned_wide_integer.
6740
aee15221
RG
67412012-01-10 Richard Guenther <rguenther@suse.de>
6742
6743 PR middle-end/51806
6744 * c-opts.c (c_common_handle_option): Move -Werror handling
6745 to language independent code.
6746
5720c0dc
RG
67472012-01-05 Richard Guenther <rguenther@suse.de>
6748
6749 PR middle-end/51764
6750 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
6751 from common.opt.
6752
73ac190a
PC
67532011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
6754
6755 PR c++/51316
6756 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
6757 of array types with an unknown bound.
6758
48b0b196
JM
67592011-12-20 Joseph Myers <joseph@codesourcery.com>
6760
6761 * c-common.c (flag_isoc99): Update comment to refer to C11.
6762 (flag_isoc1x): Change to flag_isoc11.
6763 * c-common.h (flag_isoc99): Update comment to refer to C11.
6764 (flag_isoc1x): Change to flag_isoc11.
6765 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
6766 C11.
6767 * c-opts.c (set_std_c1x): Change to set_std_c11.
6768 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
6769 Call set_std_c11.
6770 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
6771 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
6772 * c.opt (std=c1x): Change to std=c11. Document as non-draft
6773 standard.
6774 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
6775 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
6776 (std=gnu1x): Make alias of std=gnu11.
6777
d58d6eb5
JM
67782011-12-19 Jason Merrill <jason@redhat.com>
6779
6780 PR c++/51228
6781 * c-common.c (handle_transparent_union_attribute): Check the first
6782 field if the type is complete.
6783
b3908fcc
JW
67842011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
6785
6786 PR libstdc++/51365
6787 * c-common.c (RID_IS_FINAL): Add.
6788 * c-common.h (RID_IS_FINAL): Add.
6789
fea3ca91
IS
67902011-11-30 Iain Sandoe <iains@gcc.gnu.org>
6791
6792 * c.opt (fgnu-runtime): Provide full description.
6793 (fnext-runtime): Likewise.
6794 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
6795
62bad7cd
AM
67962011-11-28 Andrew MacLeod <amacleod@redhat.com>
6797
6798 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
6799 predefines in one place. Add LOCK_FREE predefines.
6800 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
6801 new func.
6802
c466c4ff
AM
68032011-11-24 Andrew MacLeod <amacleod@redhat.com>
6804
6805 PR c/51256
9faeb493 6806 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 6807 conditions
9faeb493
UB
6808 (resolve_overloaded_atomic_exchange,
6809 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
6810 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
6811 error_mark_node for error conditions.
9faeb493 6812
a5952633
RG
68132011-11-08 Richard Guenther <rguenther@suse.de>
6814
6815 PR middle-end/51010
6816 c-family/
6817
0a35513e
AH
68182011-11-07 Richard Henderson <rth@redhat.com>
6819 Aldy Hernandez <aldyh@redhat.com>
6820 Torvald Riegel <triegel@redhat.com>
6821
6822 Merged from transactional-memory.
6823
6824 * c-common.c (handle_tm_wrap_attribute,
6825 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
6826 (struct c_common_reswords): Added __transaction* keywords.
6827 (struct c_common_attribute_table): Added transaction* and tm_regparm
6828 attributes.
6829 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
6830 masks.
6831 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
6832 find_tm_attribute): Declare.
6833
6d87092d
JM
68342011-11-07 Jason Merrill <jason@redhat.com>
6835
6836 PR c++/35688
6837 * c-common.c, c-common.h: Revert yesterday's changes.
6838
8e7860a1
JM
68392011-11-06 Jason Merrill <jason@redhat.com>
6840
6841 PR c++/35688
6842 * c-common.c (decl_has_visibility_attr): Split out from...
6843 (c_determine_visibility): ...here.
6844 * c-common.h: Declare it.
6845
d19fa6b5
JM
68462011-11-06 Joseph Myers <joseph@codesourcery.com>
6847
6848 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
6849 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
6850 type.
6851 (check_user_alignment): New. Split out of
6852 handle_aligned_attribute. Disallow integer constants with
6853 noninteger types. Conditionally allow zero.
6854 (handle_aligned_attribute): Use check_user_alignment.
6855 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
6856
86951993
AM
68572011-11-06 Andrew MacLeod <amacleod@redhat.com>
6858 Richard Henderson <rth@redhat.com>
6859
6860 Merged from cxx-mem-model.
6861
6862 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 6863 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
6864 parameters that are the same type size.
6865 (get_atomic_generic_size): New. Find size of generic
6866 atomic function parameters and do typechecking.
6867 (add_atomic_size_parameter): New. Insert size into parameter list.
6868 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
6869 either __atomic_exchange_n or external library call.
9faeb493 6870 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 6871 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 6872 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
6873 __atomic_load_n or an external library call.
6874 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
6875 __atomic_store_n or an external library call.
6876 (resolve_overloaded_builtin): Handle new __atomic builtins.
6877
cf9e9959
EB
68782011-11-04 Eric Botcazou <ebotcazou@adacore.com>
6879
6880 PR c++/50608
6881 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
6882 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
6883 <INDIRECT_REF>: Return the argument.
6884 <ARRAY_REF>: Remove special code for negative offset.
6885 Call fold_build_pointer_plus instead of size_binop.
6886 (fold_offsetof): Remove STOP_REF argument and adjust.
6887 * c-common.h (fold_offsetof_1): Declare.
6888 (fold_offsetof): Remove STOP_REF argument.
6889
25339f10
JM
68902011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
6891
6892 PR c++/50810
6893 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
6894 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
6895 Wnarrowing for C++0x and C++98.
6896 * c.opt ([Wnarrowing]): Update.
6897
89401152
PC
68982011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
6899
6900 PR c++/44277
6901 * c.opt: Add Wzero-as-null-pointer-constant.
6902
97e3ad20
JM
69032011-10-31 Jason Merrill <jason@redhat.com>
6904
15694fdd
JM
6905 * c.opt (-fdeduce-init-list): Off by default.
6906
97e3ad20
JM
6907 PR c++/50920
6908 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
6909 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
6910 and -Wc++11-compat.
6911 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
6912
fb9120e3
RAV
69132011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
6914
6915 PR c++/30066
6916 * c.opt (fvisibility-inlines-hidden): Description change.
6917
3ce4f9e4
ESR
69182011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
6919
6920 Implement C++11 user-defined literals.
6921 * c-common.c (build_userdef_literal): New.
6922 * c-common.def: New tree code.
6923 * c-common.h (tree_userdef_literal): New tree struct and accessors.
6924 * c-lex.c (interpret_float): Add suffix parm.
6925 (c_lex_with_flags): Build literal tokens.
6926
5f53c243
PC
69272011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
6928
6929 PR c++/50841
6930 Revert:
6931 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
6932
6933 PR c++/50810
6934 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
6935 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
6936 Wnarrowing for C++0x and C++98.
6937 * c.opt ([Wnarrowing]): Update.
6938
263734e1
PC
69392011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
6940
6941 PR c++/50810
6942 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
6943 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
6944 Wnarrowing for C++0x and C++98.
6945 * c.opt ([Wnarrowing]): Update.
6946
d2e312d7
PC
69472011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
6948
6949 PR c++/45385
6950 * c-common.c (conversion_warning): Remove code looking for
6951 artificial operands.
6952
d17687f6
DS
69532011-10-18 Dodji Seketeli <dodji@redhat.com>
6954
6955 PR bootstrap/50760
6956 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 6957 !NO_IMPLICIT_EXTERN_C.
d17687f6 6958
fc8396e9
PC
69592011-10-17 Michael Spertus <mike_spertus@symantec.com>
6960
6961 * c-common.c (c_common_reswords): Add __bases,
6962 __direct_bases.
6963 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
6964
69652011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
6966
6967 PR c++/50757
6968 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
6969
847e697a
TT
69702011-10-15 Tom Tromey <tromey@redhat.com>
6971 Dodji Seketeli <dodji@redhat.com>
6972
6973 * c.opt (fdebug-cpp): New option.
6974 * c-opts.c (c_common_handle_option): Handle the option.
6975 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
6976 output stream in parameter. Factorized from ...
6977 (maybe_print_line): ... this. Dump location debug information when
6978 -fdebug-cpp is in effect.
6979 (print_line_1): New static function. Takes an output stream in
6980 parameter. Factorized from ...
6981 (print_line): ... here. Dump location information when -fdebug-cpp
6982 is in effect.
6983 (scan_translation_unit): Dump location information when
6984 -fdebug-cpp is in effect.
6985
92582b75
TT
69862011-10-15 Tom Tromey <tromey@redhat.com>
6987 Dodji Seketeli <dodji@redhat.com>
6988
6989 * c.opt (ftrack-macro-expansion): New option. Handle it with and
6990 without argument.
6991 * c-opts.c (c_common_handle_option)<case
6992 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
6993 cases. Handle -ftrack-macro-expansion with and without argument.
6994
46427374
TT
69952011-10-15 Tom Tromey <tromey@redhat.com>
6996 Dodji Seketeli <dodji@redhat.com>
6997
6998 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
6999 (print_line, cb_define, do_line_change): Adjust to avoid touching
7000 the internals of struct line_map. Use the public API instead.
7001 * c-pch.c (c_common_read_pch): Likewise.
7002 * c-lex.c (fe_file_change): Likewise.
7003
fc8396e9
PC
70042011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
7005
7006 PR c++/17212
7007 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
7008
70092011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
7010
7011 PR c++/33067
7012 * c-pretty-print.c (pp_c_floating_constant): Output
7013 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
7014
e79983f4
MM
70152011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
7016
7017 * c-common.c (def_builtin_1): Delete old interface with two
7018 parallel arrays to hold standard builtin declarations, and replace
7019 it with a function based interface that can support creating
7020 builtins on the fly in the future. Change all uses, and poison
7021 the old names. Make sure 0 is not a legitimate builtin index.
7022 * c-omp.c (c_finish_omp_barrier): Ditto.
7023 (c_finish_omp_taskwait): Ditto.
7024 (c_finish_omp_flush): Ditto.
7025
6637388f
TG
70262011-10-11 Tristan Gingold <gingold@adacore.com>
7027
7028 * c.opt: (fallow-parameterless-variadic-functions): New.
7029
3797cb21
DS
70302011-09-08 Dodji Seketeli <dodji@redhat.com>
7031
7032 PR c++/33255 - Support -Wunused-local-typedefs warning
7033 * c-common.h (struct c_language_function::local_typedefs): New
7034 field.
9faeb493
UB
7035 (record_locally_defined_typedef, maybe_record_typedef_use)
7036 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 7037 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
7038 (maybe_record_typedef_use)
7039 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
7040 * c.opt: Declare new -Wunused-local-typedefs flag.
7041
693ddb1b
EB
70422011-09-06 Eric Botcazou <ebotcazou@adacore.com>
7043
7044 PR middle-end/50266
7045 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
7046 computations.
7047
830c740f
RG
70482011-09-05 Richard Guenther <rguenther@suse.de>
7049
7050 * c-common.c (complete_array_type): Use ssize_int (-1) instead
7051 of integer_minus_one_node for empty array upper bounds.
7052
892a371f
DS
70532011-08-28 Dodji Seketeli <dodji@redhat.com>
7054
7055 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
7056 it's the first time it's being called on this main TU.
7057
0e3fdb48
RB
70582011-08-24 Richard Guenther <rguenther@suse.de>
7059
7060 PR c/49396
7061 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
7062
70632011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
7064
7065 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
7066 defined in cpp_init_builtins and c_cpp_builtins.
7067
d4a83c10
JM
70682011-08-19 Joseph Myers <joseph@codesourcery.com>
7069
7070 * c-common.c (c_common_reswords): Add __builtin_complex.
7071 * c-common.h (RID_BUILTIN_COMPLEX): New.
7072
bbceee64
JM
70732011-08-18 Joseph Myers <joseph@codesourcery.com>
7074
7075 * c-common.c (c_common_reswords): Add _Noreturn.
7076 (keyword_is_function_specifier): Handle RID_NORETURN.
7077 * c-common.h (RID_NORETURN): New.
7078
3f8257db 70792011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
0e3a99ae
AS
7080
7081 * c-common.c (unsafe_conversion_p): New function. Check if it is
7082 unsafe to convert an expression to the type.
7083 (conversion_warning): Adjust, use unsafe_conversion_p.
7084 * c-common.h (unsafe_conversion_p): New function declaration.
7085
20906c66
JJ
70862011-08-02 Jakub Jelinek <jakub@redhat.com>
7087
7088 * c-common.h (c_finish_omp_atomic): Adjust prototype.
7089 (c_finish_omp_taskyield): New prototype.
7090 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
7091 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
7092 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
7093 or RHS1 have side-effects, evaluate those too in the right spot,
7094 if it is a decl and LHS is also a decl, error out if they
7095 aren't the same.
7096 (c_finish_omp_taskyield): New function.
7097 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
7098 * c-pragma.c (omp_pragmas): Add taskyield.
7099 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
7100 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
7101 PRAGMA_OMP_CLAUSE_MERGEABLE.
7102
770e5a2e
DS
71032011-07-25 Dodji Seketeli <dodji@redhat.com>
7104
7105 * c-common.h (set_underlying_type): Remove parm name from
7106 declaration.
7107
1baae426
RG
71082011-07-25 Romain Geissler <romain.geissler@gmail.com>
7109
7110 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 7111
fcb21722
JM
71122011-07-22 Jason Merrill <jason@redhat.com>
7113
76f86d00
JM
7114 PR c++/49793
7115 * c.opt (Wnarrowing): New.
7116
3a636414
JM
7117 PR c++/30112
7118 * c-common.h: Declare c_linkage_bindings.
7119 * c-pragma.c (handle_pragma_redefine_extname): Use it.
7120
fcb21722
JM
7121 PR c++/49813
7122 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
7123 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
7124 as flag_isoc99 for 'restrict'.
7125 (pp_c_specifier_qualifier_list): Likewise for _Complex.
7126
02614448
ILT
71272011-07-21 Ian Lance Taylor <iant@google.com>
7128
7129 PR middle-end/49705
7130 * c-common.c (c_disable_warnings): New static function.
7131 (c_enable_warnings): New static function.
7132 (c_fully_fold_internal): Change local unused_p to bool. Call
7133 c_disable_warnings and c_enable_warnings rather than change
7134 c_inhibit_evaluation_warnings.
7135
34429675
JM
71362011-07-20 Jason Merrill <jason@redhat.com>
7137
7138 PR c++/6709 (DR 743)
7139 PR c++/42603 (DR 950)
7140 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
7141 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
7142 (CPP_DECLTYPE): New.
7143 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
7144
5d49b6a7
RG
71452011-07-19 Richard Guenther <rguenther@suse.de>
7146
7147 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
7148 * c-omp.c (c_finish_omp_for): Likewise.
7149
e84a58ff
EB
71502011-07-12 Eric Botcazou <ebotcazou@adacore.com>
7151
7152 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
7153 body on the next line.
7154
329af3c7
JM
71552011-07-08 Jason Merrill <jason@redhat.com>
7156
4063e61b
JM
7157 PR c++/45437
7158 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
7159
329af3c7
JM
7160 PR c++/49673
7161 * c-common.c (c_apply_type_quals_to_decl): Don't check
7162 TYPE_NEEDS_CONSTRUCTING.
7163
1a072294
RG
71642011-07-06 Richard Guenther <rguenther@suse.de>
7165
7166 * c-common.c (c_common_nodes_and_builtins):
7167 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
7168
fce5dddd
RG
71692011-07-05 Richard Guenther <rguenther@suse.de>
7170
7171 * c-common.c (c_common_nodes_and_builtins): Build all common
7172 tree nodes first.
7173
45d439ac
JJ
71742011-06-27 Jakub Jelinek <jakub@redhat.com>
7175
56300785
JJ
7176 * c-common.h (c_tree_chain_next): New static inline function.
7177
45d439ac
JJ
7178 * c-common.c (check_builtin_function_arguments): Handle
7179 BUILT_IN_ASSUME_ALIGNED.
7180
e0a8ecf2
AM
71812011-06-21 Andrew MacLeod <amacleod@redhat.com>
7182
7183 * c-common.c: Add sync_ or SYNC__ to builtin names.
7184 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
7185
71862011-06-20 Pierre Vittet <piervit@pvittet.com>
7187
7188 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
7189 handler.
7190 (gen_pragma_handler): New union.
7191 (internal_pragma_handler): New type.
7192 (c_register_pragma_with_data)
7193 (c_register_pragma_with_expansion_and_data): New functions.
7194
7195 * c-pragma.c (registered_pragmas, c_register_pragma_1)
7196 (c_register_pragma, c_register_pragma_with_expansion)
7197 (c_invoke_pragma_handler): Changed to work with
7198 internal_pragma_handler.
7199 (c_register_pragma_with_data)
7200 (c_register_pragma_with_expansion_and_data): New functions.
7201
677f3fa8
JM
72022011-06-14 Joseph Myers <joseph@codesourcery.com>
7203
7204 * c-common.c: Include common/common-target.h.
7205 (handle_section_attribute): Use
7206 targetm_common.have_named_sections.
7207 * c-cppbuiltin.c: Include common/common-target.h.
7208 (c_cpp_builtins): Use targetm_common.except_unwind_info.
7209
d7fc8c14
RG
72102011-06-10 Richard Guenther <rguenther@suse.de>
7211
7212 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
7213 to print a IDENTIFIER_NODE.
7214
10e48e39
RO
72152011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7216 Joseph Myers <joseph@codesourcery.com>
7217
7218 * c.opt (fbuilding-libgcc): New option.
7219 * c-cppbuiltin.c (c_cpp_builtins): Define
7220 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
7221
6976ae51
JM
72222011-06-07 Jason Merrill <jason@redhat.com>
7223
3ff60975
JM
7224 * c-common.c (max_tinst_depth): Lower default to 900.
7225
6976ae51
JM
7226 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
7227
009db074
RG
72282011-06-07 Richard Guenther <rguenther@suse.de>
7229
7230 * c-common.c (c_common_nodes_and_builtins): Do not set
7231 size_type_node or call set_sizetype.
7232
b4592b92
DS
72332011-06-07 Dodji Seketeli <dodji@redhat.com>
7234
7235 PR debug/49130
7236 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 7237 type when using pointer comparison to compare types.
b4592b92 7238
014ab419
JW
72392011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
7240
7241 * c.opt: Add -Wdelete-non-virtual-dtor.
7242 * c-opts.c (c_common_handle_option): Include it in -Wall.
7243
4f60111f
NF
72442011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
7245
7246 PR bootstrap/49190
7247
7248 Revert:
7249 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
7250
7251 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
7252 not tree_common.
7253
4cc4f2f4
JJ
72542011-05-27 Jakub Jelinek <jakub@redhat.com>
7255
7256 PR c++/49165
7257 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
7258 C++ don't call c_common_truthvalue_conversion on void type arms.
7259
38e01f9e
NF
72602011-05-27 Nathan Froyd <froydnj@codesourcery.com>
7261
7262 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
7263 (stmt_list_stack): Define.
7264 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
7265 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
7266
92e948a8
NF
72672011-05-26 Nathan Froyd <froydnj@codesourcery.com>
7268
7269 * c-common.c (warning_candidate_p): Check for BLOCKs.
7270
a2fc3e63
NF
72712011-05-26 Nathan Froyd <froydnj@codesourcery.com>
7272
7273 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
7274 not tree_common.
7275
0957c029
JJ
72762011-05-25 Jakub Jelinek <jakub@redhat.com>
7277
7278 * c-common.c (def_fn_type): Remove extra va_end.
7279
828fb3ba
JM
72802011-05-23 Jason Merrill <jason@redhat.com>
7281
7282 PR c++/48106
7283 * c-common.c (c_common_get_narrower): New.
7284 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
7285
dde05067
NF
72862011-05-23 Nathan Froyd <froydnj@codesourcery.com>
7287
7288 * c-common.h (check_function_arguments): Tweak prototype of
7289 check_function_arguments.
7290 * c-common.c (check_function_arguments): Likewise. Adjust
7291 calls to check_function_nonnull, check_function_format, and
7292 check_function_sentinel.
7293 (check_function_sentinel): Take a FUNCTION_TYPE rather than
7294 separate attributes and typelist arguments. Use
7295 FOREACH_FUNCTION_ARGS to iterate over argument types.
7296
3c0d13bf
PC
72972011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
7298
7299 * c-common.c (c_common_reswords): Reorder.
7300 * c-common.h (rid): Likewise.
7301
8242dd04
NF
73022011-05-10 Nathan Froyd <froydnj@codesourcery.com>
7303
7304 * c-common.c (def_fn_type): Don't call build_function_type, call
7305 build_function_type_array or build_varargs_function_type_array
7306 instead.
7307 (c_common_nodes_and_builtins): Likewise.
7308
3d528853
NF
73092011-05-05 Nathan Froyd <froydnj@codesourcery.com>
7310
7311 * c-common.c (c_add_case_label): Omit the loc argument to
7312 build_case_label.
7313 * c-common.h (build_case_label): Remove.
7314 * c-semantics.c (build_case_label): Remove.
7315
a04a722b
JM
73162011-05-05 Joseph Myers <joseph@codesourcery.com>
7317
7318 * c-objc.h (objc_start_method_definition): Update prototype.
7319 * stub-objc.c (objc_start_method_definition): Add extra parameter.
7320
e19a18d4
NF
73212011-05-04 Nathan Froyd <froydnj@codesourcery.com>
7322
7323 * c-common.c (check_main_parameter_types): Reindent. Don't use
7324 TYPE_ARG_TYPES directly.
7325 (handle_nonnull_attribute): Likewise.
7326 (sync_resolve_params): Likewise.
7327 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
7328 to check_format_string.
7329 (handle_format_attribute): Likewise.
7330 (check_format_string): Take a function type to examine instead of
7331 a type list. Use a function_arg_iterator to step through argument
7332 types.
7333
c62c040f
RG
73342011-05-04 Richard Guenther <rguenther@suse.de>
7335
7336 * c-common.c (fix_string_type): Use size_int for index type bounds.
7337 (start_fname_decls): Do not pass NULL to build_int_cst.
7338 (c_init_attributes): Likewise.
7339 * c-lex.c (c_lex_with_flags): Likewise.
7340
c12ff9d8
JM
73412011-04-27 Jason Merrill <jason@redhat.com>
7342
7343 * c-common.c (make_tree_vector_from_list): New.
7344 * c-common.h: Declare it.
7345
304dfbe3
RG
73462011-04-26 Richard Guenther <rguenther@suse.de>
7347
7348 PR preprocessor/48248
7349 * c-ppoutput.c (maybe_print_line): Always optimize newlines
7350 for output size with -P.
7351
3c0d13bf
PC
73522011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
7353
7354 * c-common.c (struct c_common_resword): Add __underlying_type.
7355 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
7356
04695783
JM
73572011-04-20 Jim Meyering <meyering@redhat.com>
7358
7359 * c-format.c (init_dollar_format_checking): Remove useless
7360 if-before-free.
7361
0dc33c3c
NP
73622011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
7363
7364 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 7365 (objc_detect_field_duplicates): New.
0dc33c3c 7366 * stub-objc.c: Likewise.
3c0d13bf 7367
c59633d9
NP
73682011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
7369
7370 * stub-objc.c (objc_declare_protocols): Renamed to
7371 objc_declare_protocol.
7372 * c-objc.h: Likewise.
3c0d13bf 7373
32dabdaf
NP
73742011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
7375
7376 * stub-objc.c (objc_declare_class): Updated argument name.
7377
81f653d6
NF
73782011-04-12 Nathan Froyd <froydnj@codesourcery.com>
7379
7380 * c-common.h (c_common_init_ts): Declare.
7381 * c-common.c (c_common_init_ts): Define.
7382
eb345401
NP
73832011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
7384
7385 * c-objc.h (objc_build_message_expr): Updated prototype.
7386 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 7387
a358e188
MJ
73882011-04-12 Martin Jambor <mjambor@suse.cz>
7389
7390 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
7391 of cgraph_node.
7392
e6313a78
RG
73932011-04-11 Richard Guenther <rguenther@suse.de>
7394
7395 * c-common.c (complete_array_type): Build a range type of
7396 proper type.
7397
dcf0c47e
NF
73982011-04-08 Nathan Froyd <froydnj@codesourcery.com>
7399
7400 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
7401 (handle_type_generic_attribute): Likewise.
7402
1ee44b26
JM
74032011-04-07 Jason Merrill <jason@redhat.com>
7404
7405 PR c++/48450
7406 * c-common.c (c_common_truthvalue_conversion): Don't ignore
7407 conversion from C++0x scoped enum.
7408
acce4e77
JM
74092011-04-06 Joseph Myers <joseph@codesourcery.com>
7410
7411 * c-target-def.h: New file.
7412 * c-target.def: New file.
7413 * c-target.h: New file.
7414 * c-common.c (targetcm): Don't define here.
7415 * c-common.h (default_handle_c_option): Declare.
7416 * c-format.c: Include c-target.h instead of target.h.
7417 * c-opts.c: Include c-target.h instead of target.h. Explicitly
7418 include tm.h.
7419 (default_handle_c_option): Move from targhooks.c.
7420
e2eefb55
JJ
74212011-03-29 Jakub Jelinek <jakub@redhat.com>
7422
7423 PR preprocessor/48248
7424 * c-ppoutput.c (print): Add src_file field.
7425 (init_pp_output): Initialize it.
7426 (maybe_print_line): Don't optimize by adding up to 8 newlines
7427 if map->to_file and print.src_file are different file.
7428 (print_line): Update print.src_file.
7429
ba78087b
KT
74302011-03-25 Kai Tietz <ktietz@redhat.com>
7431
7432 * c-ada-spec.c (compare_comment): Use filename_cmp
7433 instead of strcmp for filename.
7434
0edf1bb2
JL
74352011-03-25 Jeff Law <law@redhat.com>
7436
adfac8df 7437 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 7438
c7dc8804
JM
74392011-03-25 Jason Merrill <jason@redhat.com>
7440
7441 * c.opt: Add -std=c++03.
7442
d1d879b1
EB
74432011-03-22 Eric Botcazou <ebotcazou@adacore.com>
7444
7445 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
7446
3f8257db 74472011-03-17 Kai Tietz <ktietz@redhat.com>
62d784f7
KT
7448
7449 PR target/12171
5050afdf
KT
7450 * c-pretty-print.c (pp_c_specifier_qualifier_list):
7451 Display allowed attributes for function pointer types.
7452 (pp_c_attributes_display): New function to display
7453 attributes having affects_type_identity flag set to true.
7454 * c-pretty-print.h (pp_c_attributes_display): New prototype.
7455
62d784f7
KT
7456 * c-common.c (c_common_attribute_table):
7457 Add new element.
7458 (c_common_format_attribute_table): Likewise.
7459
82d37118
JM
74602011-03-18 Jason Merrill <jason@redhat.com>
7461
49a000c3
JM
7462 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
7463 * c-common.h: Don't declare it here.
7464 * c-common.c: Or define it here.
7465 * c-opts.c (c_common_handle_option): Or set it here.
7466
82d37118
JM
7467 PR c++/35315
7468 * c-common.c (handle_transparent_union_attribute): Don't
7469 make a duplicate type in C++.
7470
17bc631c
JM
74712011-03-15 Jason Merrill <jason@redhat.com>
7472
7473 * c-common.c (max_constexpr_depth): New.
7474 * c-common.h: Declare it.
7475 * c-opts.c (c_common_handle_option): Set it.
7476 * c.opt (fconstexpr-depth): New option.
7477
1b9b91a6
JM
74782011-03-11 Jason Merrill <jason@redhat.com>
7479
f231b5ff
JM
7480 * c-common.c (attribute_takes_identifier_p): Add missing const.
7481
1b9b91a6
JM
7482 PR c++/46803
7483 * c-common.c (attribute_takes_identifier_p): Assume that an
7484 unknown attribute takes an identifier.
7485
a19e4d44
NF
74862011-03-07 Nathan Froyd <froydnj@codesourcery.com>
7487
7488 PR c/47786
7489 * c-common.c (c_type_hash): Call list_length instead of iterating
7490 through DECL_CHAIN. Rename 'i' to 'n_elements'.
7491
982d62f6
JJ
74922011-02-19 Jakub Jelinek <jakub@redhat.com>
7493
7494 PR c/47809
7495 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
7496
0a256240
NP
74972011-02-17 Iain Sandoe <iains@gcc.gnu.org>
7498
7499 * c.opt (fobjc-abi-version=) New.
7500 (fobjc-nilcheck): New.
7501
ba9e6dd5
NF
75022011-02-03 Nathan Froyd <froydnj@codesourcery.com>
7503
7504 PR c++/46890
7505 * c-common.h (keyword_is_decl_specifier): Declare.
7506 * c-common.c (keyword_is_decl_specifier): Define.
7507 (keyword_is_function_specifier): New function.
7508
7273813a
JJ
75092011-01-26 Jakub Jelinek <jakub@redhat.com>
7510
7511 PR c/47473
7512 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
7513 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
7514 REAL_TYPE.
7515
908ef79b
AC
75162011-01-26 Arnaud Charlet <charlet@adacore.com>
7517
7518 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
7519
237e9384
JJ
75202011-01-26 Jakub Jelinek <jakub@redhat.com>
7521
7522 PR pch/47430
7523 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
7524 after init_c_lex if pch_file is set.
7525
47ea1edf
DK
75262011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
7527
d4dba752 7528 PR c++/43601
47ea1edf
DK
7529 * c.opt (-fkeep-inline-dllexport): New switch.
7530
2aa9c6ae
RG
75312011-01-12 Richard Guenther <rguenther@suse.de>
7532
7533 PR middle-end/32511
7534 * c-common.c (handle_weak_attribute): Warn instead of error
7535 on declaring an inline function weak.
7536
7bd11157
TT
75372011-01-05 Tom Tromey <tromey@redhat.com>
7538
7539 * c-common.h (lvalue_error): Update.
7540 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
7541 not error.
7542
0e66e494 75432010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 7544
b4f588c4
NP
7545 PR objc/47075
7546 * c-objc.h (objc_finish_message_expr): Added argument to
7547 prototype.
7548
f4da8dce
NF
75492010-12-22 Nathan Froyd <froydnj@codesourcery.com>
7550
7551 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
7552 Use prototype_p.
7553
46270f14
NP
75542010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
7555
7556 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 7557 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 7558
4816c593
NF
75592010-12-10 Nathan Froyd <froydnj@codesourcery.com>
7560
7561 * c-common.h (readonly_error): Declare.
7562 * c-common.c (readonly_error): Define.
7563
7a6daeb0
NF
75642010-12-09 Nathan Froyd <froydnj@codesourcery.com>
7565
7566 * c-common.h (invalid_indirection_error): Declare.
7567 * c-common.c (invalid_indirection_error): Define.
7568
892f6119
RG
75692010-12-03 Richard Guenther <rguenther@suse.de>
7570
7571 PR c/46745
7572 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
7573 (pp_c_unary_expression): Likewise.
7574 (pp_c_expression): Likewise.
7575
6c39e757
NP
75762010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
7577
7578 * c-common.h (objc_finish_function): New.
7579 (objc_non_volatilized_type): Removed.
7580 (objc_type_quals_match): Removed.
7581 * stub-objc.c (objc_finish_function): New.
7582 (objc_non_volatilized_type): Removed.
7583 (objc_type_quals_match): Removed.
9faeb493 7584
7c475d11
JM
75852010-11-30 Joseph Myers <joseph@codesourcery.com>
7586
7587 * c-common.h (parse_optimize_options): Declare.
7588 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
7589 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
7590
71f3e391
JM
75912010-11-29 Joseph Myers <joseph@codesourcery.com>
7592
7593 * c-opts.c (check_deps_environment_vars): Use getenv instead of
7594 GET_ENVIRONMENT.
7595 * c-pch.c (O_BINARY): Don't define here.
7596 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
7597
d5fabb58
JM
75982010-11-25 Joseph Myers <joseph@codesourcery.com>
7599
7600 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
7601 targetm.except_unwind_info.
7602
299404a1
JM
76032010-11-23 Joseph Myers <joseph@codesourcery.com>
7604
7605 * c-opts.c (c_common_handle_option): Pass location to
7606 set_struct_debug_option.
7607
c98cd5bf
JM
76082010-11-23 Joseph Myers <joseph@codesourcery.com>
7609
7610 * c-common.c (visibility_options): Move from ../opts.c.
7611 * c-common.h (struct visibility_flags, visibility_options):
7612 Declare here.
7613 * c-opts.c (finish_options): Rename to c_finish_options.
7614 (c_common_init): Update call to finish_options.
7615
a9546771
NP
76162010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
7617
7618 PR objc/34033
7619 * c-lex.c (lex_string): Check that each string in an Objective-C
7620 string concat sequence starts with either one or zero '@', and
7621 that there are no spurious '@' signs at the end.
7622
24a57808
JM
76232010-11-20 Joseph Myers <joseph@codesourcery.com>
7624
7625 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
7626 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
7627 HANDLE_PRAGMA_VISIBILITY.
7628 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
7629 HANDLE_PRAGMA_VISIBILITY): Don't define.
7630 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
7631
a9aa2c3a
NF
76322010-11-20 Nathan Froyd <froydnj@codesourcery.com>
7633
7634 PR c++/16189
7635 PR c++/36888
7636 PR c++/45331
7637 * c-common.h (keyword_begins_type_specifier): Declare.
7638 (keyword_is_storage_class_specifier): Declare.
7639 (keyword_is_type_qualifier): Declare.
7640 * c-common.c (keyword_begins_type_specifier): New function.
7641 (keyword_is_storage_class_specifier): New function.
7642 (keyword_is_type_qualifier): Declare.
7643
5386338c
JM
76442010-11-19 Joseph Myers <joseph@codesourcery.com>
7645
7646 PR c/46547
7647 * c-common.c (in_late_binary_op): Define.
7648 (c_common_truthvalue_conversion): Check in_late_binary_op before
7649 calling c_save_expr.
7650 * c-common.h (in_late_binary_op): Declare.
7651
69ccdddb
JM
76522010-11-19 Joseph Myers <joseph@codesourcery.com>
7653
7654 * c-opts.c (c_common_handle_option): Update calls to
7655 set_struct_debug_option.
7656
6b192a09
NP
76572010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
7658
7659 * c-common.h (objc_declare_protocols): Added additional argument.
7660 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 7661
fb52b50a
NF
76622010-11-18 Nathan Froyd <froydnj@codesourcery.com>
7663
7664 PR c/33193
7665 * c-common.h (build_real_imag_expr): Declare.
7666 * c-semantics.c (build_real_imag_expr): Define.
7667
b37421c6
JM
76682010-11-17 Joseph Myers <joseph@codesourcery.com>
7669
7670 * c-opts.c (c_common_parse_file): Take no arguments.
7671 * c-common.h (c_common_parse_file): Update prototype.
7672
07078664
JJ
76732010-11-16 Jakub Jelinek <jakub@redhat.com>
7674
7675 PR c++/46401
7676 * c-common.c (warning_candidate_p): Don't track non-const calls
7677 or STRING_CSTs.
7678
c6a13190
ILT
76792010-11-15 Ian Lance Taylor <iant@google.com>
7680
7681 * c-lex.c (init_c_lex): Set macro debug callbacks if
7682 flag_dump_go_spec is set.
7683
925e8657
NP
76842010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
7685
7686 * c-common.h (objc_build_incr_expr_for_property_ref): New.
7687 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
7688
bb0a9581
NF
76892010-11-15 Nathan Froyd <froydnj@codesourcery.com>
7690
7691 PR preprocessor/45038
7692 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
7693 dialects.
7694
c5fa0890
JM
76952010-11-12 Joseph Myers <joseph@codesourcery.com>
7696
7697 * c-common.h (c_family_lang_mask): Declare.
7698 * c-opts.c (c_family_lang_mask): Make extern.
7699 * c-pragma.c (handle_pragma_diagnostic): Use
7700 control_warning_option.
7701
a4d8c676
JM
77022010-11-12 Joseph Myers <joseph@codesourcery.com>
7703
7704 * c-common.c (parse_optimize_options): Update call to
7705 decode_options.
7706 * c-common.h (c_common_handle_option): Update prototype.
7707 * c-opts.c (c_common_handle_option): Take location_t parameter and
7708 pass it to other functions.
7709
f954bd2c
JM
77102010-11-11 Joseph Myers <joseph@codesourcery.com>
7711
7712 * c-opts.c (warning_as_error_callback): Remove.
7713 (c_common_initialize_diagnostics): Don't call
7714 register_warning_as_error_callback.
7715 (c_common_handle_option): Handle -Werror=normalized= here.
7716
d8a07487
JM
77172010-11-10 Joseph Myers <joseph@codesourcery.com>
7718
7719 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
7720 in diagnostic.
7721 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
7722 letter.
7723 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
7724 Remove trailing '.' from diagnostics.
7725 * c.opt (Wwrite-strings_: Avoid '`' in help text.
7726
d5478783
JM
77272010-11-10 Joseph Myers <joseph@codesourcery.com>
7728
7729 * c-common.c (parse_optimize_options): Pass global_dc to
7730 decode_options.
7731 * c-opts.c (c_common_handle_option): Pass &global_options to
7732 set_Wstrict_aliasing.
7733 * c.opt (v): Don't mark Common or document here.
7734
91ebb981
IS
77352010-11-06 Iain Sandoe <iains@gcc.gnu.org>
7736
7737 PR target/44981
7738 * c-format.c (format_type): New type gcc_objc_string_format_type.
7739 (valid_stringptr_type_p): New.
7740 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 7741 (check_format_string): Pass expected type, use
91ebb981
IS
7742 valid_stringptr_type_p (), check that the format string types are
7743 consistent with the format specification.
7744 (decode_format_attr): Warn if NSString is used outside objective-c.
7745 (format_types_orig): Add NSString.
7746 (format_name): New.
7747 (format_flags): New.
7748 (check_format_arg): Handle format strings requiring an external parser.
7749 first_target_format_type: New variable.
7750 (handle_format_attribute): Set up first_target_format_type, pass the
7751 expected format arg string type to check_format_string().
7752 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
7753 * stub-objc.c (objc_string_ref_type_p): New.
7754 (objc_check_format_arg): New.
7755
bede2adc
NP
77562010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
7757
9faeb493 7758 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
7759 * c-common.h (objc_build_class_component_ref): New.
7760 * stub-objc.c (objc_build_class_component_ref): New.
7761
9a179d01
NP
77622010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
7763
7764 * c.opt (Wproperty-assign-default): New option.
7765
22d8d616
NP
77662010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
7767
7768 Implemented -fobjc-std=objc1 flag.
7769 * c.opt (fobjc-std=objc1): New option.
7770
2debdb4f
NP
77712010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
7772
7773 Implemented format and noreturn attributes for Objective-C methods.
7774 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
7775 attribute for Objective-C methods.
7776
ec52b111
JM
77772010-10-31 Jason Merrill <jason@redhat.com>
7778
7779 * c-common.c (conversion_warning, warn_for_collisions_1): Use
7780 EXPR_LOC_OR_HERE.
7781
46a88c12
NP
77822010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
7783
7784 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
7785 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
7786 (objc_add_property_declaration): Removed arguments for copies and
7787 ivar.
7788 (objc_build_getter_call): Renamed to
7789 objc_maybe_build_component_ref.
7790 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
7791 (objc_is_property_ref): New.
7792 * c-common.c (c_common_reswords): Removed copies and ivar.
7793 * stub-objc.c (objc_add_property_declaration): Removed arguments
7794 for copies and ivar.
7795 (objc_build_getter_call): Renamed to
7796 objc_maybe_build_component_ref.
7797 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
7798 (objc_is_property_ref): New.
9faeb493 7799
1e4bf85b
AC
78002010-10-29 Arnaud Charlet <charlet@adacore.com>
7801 Matthew Gingell <gingell@adacore.com>
7802
7803 * c-ada-spec.c (separate_class_package): New function.
7804 (pp_ada_tree_identifier): Prefix references to C++ classes with the
7805 name of their enclosing package.
7806 (print_ada_declaration): Use separate_class_package.
7807
81f0bab2
JM
78082010-10-27 Jason Merrill <jason@redhat.com>
7809
2b08f2c5
JM
7810 * c-common.c (c_common_reswords): Add __is_literal_type.
7811 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
7812
81f0bab2
JM
7813 * c-common.c (check_case_value): Remove special C++ code.
7814
200290f2
NP
78152010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
7816
7817 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
7818 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
7819 and RID_LAST_PATTR.
7820 (objc_add_property_declaration): Added additional arguments.
7821 (objc_property_attribute_kind): Removed.
7822 (objc_set_property_attr): Removed.
7823 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
7824 copy and nonatomic.
7825 * stub-objc.c (objc_add_property_declaration): Added additional
7826 arguments.
7827 (objc_set_property_attr): Removed.
9faeb493 7828
f614132b
NP
78292010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
7830
7831 * c-common.h (objc_add_property_variable): Renamed to
7832 objc_add_property_declaration. Added location argument.
7833 * stub-objc.c (objc_add_property_variable): Same change.
b1726d6c 7834
b8a18805
NP
78352010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
7836
7837 * c-common.h (objc_maybe_printable_name): New.
7838 * stub-objc.c (objc_maybe_printable_name): New.
7839
3f8257db
JJ
78402010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
7841 Andrew Pinski <pinskia@gmail.com>
30cd1c5d
AS
7842
7843 * c-common.h (c_common_mark_addressable_vec): Declare.
7844 * c-common.c (c_common_mark_addressable_vec): New function.
7845
249a82c4
NP
78462010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
7847
7848 * c-common.h (objc_set_method_type): Removed.
7849 (objc_add_method_declaration): Added boolean argument.
7850 (objc_start_method_definition): Same change.
7851 (objc_build_method_signature): Same change.
7852 * stub-objc.c (objc_set_method_type): Removed.
7853 (objc_add_method_declaration): Added boolean argument.
7854 (objc_start_method_definition): Same change.
7855 (objc_build_method_signature): Same change.
7856
977e30bc
NP
78572010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
7858
7859 * c-common.h (finish_file): Removed.
7860 (objc_write_global_declarations): New.
7861 * c-opts.c (c_common_parse_file): Do not call finish_file.
7862 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 7863
da57d1b9
NP
78642010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
7865
7866 Implemented parsing @synthesize and @dynamic for
7867 Objective-C/Objective-C++.
7868 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
7869 (objc_add_synthesize_declaration): New.
7870 (objc_add_dynamic_declaration): New.
7871 * c-common.c (c_common_reswords): Add synthesize and dynamic.
7872 * stub-objc.c (objc_add_synthesize_declaration): New.
7873 (objc_add_dynamic_declaration): New.
9faeb493 7874
0069111f
MM
78752010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
7876
7877 PR target/46041
7878 * c-cppbuiltin.c (mode_has_fma): Move function here from
7879 builtins.c. Don't use the fma optab, instead just use the
7880 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
7881 using -save-temps.
7882
e426b47b
NP
78832010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
7884
7885 Merge from 'apple/trunk' branch on FSF servers.
0069111f 7886
3f8257db 7887 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
e426b47b 7888
9faeb493 7889 Radar 4330422
e426b47b
NP
7890 * c-common.h (objc_non_volatilized_type): New declaration
7891 * stub-objc.c (objc_non_volatilized_type): New stub.
7892
90fbfdc3
NP
78932010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
7894
e426b47b 7895 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3 7896
3f8257db 7897 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
90fbfdc3 7898
9faeb493 7899 Radar 4133425
90fbfdc3 7900 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 7901 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 7902
c37d8c30
IS
79032010-10-17 Iain Sandoe <iains@gcc.gnu.org>
7904
7905 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
7906 * c-common.h (enum rid): Add RID_AT_PACKAGE.
7907 (objc_ivar_visibility_kind): New enum.
7908 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 7909 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
7910 visibility enum.
7911
1b1562a5
MM
79122010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
7913
7914 * c-cppbuiltin.c (builtin_define_float_constants): Emit
7915 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
7916 has the appropriate fma builtins.
7917 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
7918
668ea4b1
IS
79192010-10-14 Iain Sandoe <iains@gcc.gnu.org>
7920
1b1562a5 7921 merge from FSF apple 'trunk' branch.
3f8257db 7922 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 7923
668ea4b1
IS
7924 Radars 4436866, 4505126, 4506903, 4517826
7925 * c-common.c (c_common_resword): Define @property and its attributes.
7926 * c-common.h: Define property attribute enum entries.
7927 (OBJC_IS_PATTR_KEYWORD): New.
7928 (objc_property_attribute_kind): New enum.
7929 Declare objc_set_property_attr (), objc_add_property_variable (),
7930 objc_build_getter_call () and objc_build_setter_call ().
7931 * stub-objc.c (objc_set_property_attr): New stub.
7932 (objc_add_property_variable): Likewise.
7933 (objc_build_getter_call): Likewise.
7934 (objc_build_setter_call) Likewise.
1b1562a5 7935
a1178b30
IS
79362010-10-13 Iain Sandoe <iains@gcc.gnu.org>
7937
1b1562a5 7938 merge from FSF apple 'trunk' branch.
3f8257db 7939 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
a1178b30
IS
7940
7941 Radar 3803157 (method attributes)
7942 * c-common.c (handle_deprecated_attribute): Recognize
7943 objc methods as valid declarations.
7944 * c-common.h: Declare objc_method_decl ().
1b1562a5 7945 * stub-objc.c (objc_method_decl): New stub.
a1178b30 7946
a75bfaa6
JM
79472010-10-08 Joseph Myers <joseph@codesourcery.com>
7948
7949 * c-common.c (parse_optimize_options): Call
7950 decode_cmdline_options_to_array_default_mask before
7951 decode_options. Update arguments to decode_options.
7952 * c-common.h (c_common_init_options_struct): Declare.
7953 * c-opts.c (c_common_init_options_struct): New. Split out from
7954 c_common_init_options.
7955
f05b9d93
NP
79562010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
7957
7958 Implemented fast enumeration for Objective-C.
7959 * c-common.h (objc_finish_foreach_loop): New.
7960 * stub-objc.c (objc_finish_foreach_loop): New.
7961
1ebe4b4f
JM
79622010-10-05 Joseph Myers <joseph@codesourcery.com>
7963
7964 * c-common.h (struct diagnostic_context): Don't declare here.
7965 (c_common_initialize_diagnostics): Declare using
7966 diagnostic_context typedef.
7967 * c-opts.c (c_common_handle_option): Pass global_dc to
7968 handle_generated_option.
7969
d4d24ba4
JM
79702010-10-04 Joseph Myers <joseph@codesourcery.com>
7971
7972 * c-opts.c (c_common_handle_option): Pass &global_options_set to
7973 handle_generated_option.
7974
478a1c5b
ILT
79752010-10-03 Ian Lance Taylor <iant@google.com>
7976
7977 * c.opt (-fplan9-extensions): New option.
7978
82a1c2fe
FXC
79792010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7980
7981 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
7982 Remove.
7983 (c_cpp_builtins): Call functions from cppbuiltin.c instead
7984 of duplicating code.
7985
92902b1b
IS
79862010-09-30 Iain Sandoe <iains@gcc.gnu.org>
7987
7988 * c-common.c: Add two new entries for @optional
7989 and @required keywords.
7990
7991 merge from FSF 'apple/trunk' branch.
3f8257db 7992 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
92902b1b
IS
7993
7994 Radar 4386773
7995 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
7996 objective-c keywords.
7997 (objc_set_method_opt): New declaration.
7998 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 7999
46625112
JM
80002010-09-30 Joseph Myers <joseph@codesourcery.com>
8001
8002 * c-common.c (handle_optimize_attribute): Pass &global_options to
8003 cl_optimization_save and cl_optimization_restore.
8004 * c-opts.c (c_common_handle_option): Pass &global_options to
8005 handle_generated_option.
8006 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
8007 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
8008 &global_options to cl_optimization_restore.
8009
49b91f05
NP
80102010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
8011
8012 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
8013 Objective-C/Objective-C++ keywords.
8014
13ed556f 80152010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 8016
9faeb493
UB
8017 Merge from 'apple/trunk' branch on FSF servers.
8018
3f8257db 8019 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
a6341d57
NP
8020
8021 Radar 4281748
8022 * c-common.h (objc_check_global_decl): New declaration.
8023 * stub-objc.c (objc_check_global_decl): New stub.
8024
f0036cca
JM
80252010-09-29 Joseph Myers <joseph@codesourcery.com>
8026
8027 * c.opt: Don't use VarExists.
8028
e3339d0f
JM
80292010-09-29 Joseph Myers <joseph@codesourcery.com>
8030
8031 * c-common.c (c_cpp_error): Update names of diagnostic_context
8032 members.
8033 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
8034 cl_optimization members.
8035 * c-opts.c (warning_as_error_callback, c_common_handle_option,
8036 sanitize_cpp_opts, finish_options): Update names of cpp_options
8037 members.
8038
1973201f
NP
80392010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
8040
8041 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
8042 (objc_is_reserved_word): Removed.
8043 * c-common.c: Updated comments.
8044 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
8045 objc_is_reserved_word.
8046 * stub-objc.c (objc_is_reserved_word): Removed.
8047
f7e71da5
IS
80482010-09-28 Iain Sandoe <iains@gcc.gnu.org>
8049
9faeb493 8050 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
8051 include attributes.
8052 (objc_start_method_definition): Likewise.
8053 (objc_build_keyword_decl): Likewise.
8054 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
8055 (objc_start_method_definition): Likewise.
8056 (objc_build_keyword_decl): Likewise.
8057
c165dca7
IS
80582010-09-28 Iain Sandoe <iains@gcc.gnu.org>
8059
8060 * c-common.h (objc_start_class_interface): Adjust prototype.
8061 (objc_start_category_interface): Likewise.
8062 (objc_start_protocol): Likewise.
8063 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
8064 (objc_start_class_interface): Likewise.
8065 (objc_start_category_interface): Likewise.
8066
7458026b
ILT
80672010-09-27 Ian Lance Taylor <iant@google.com>
8068
8069 * c-common.c (c_common_attribute_table): Add no_split_stack.
8070 (handle_no_split_stack_attribute): New static function.
8071
b581b85b
NP
80722010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
8073
9faeb493 8074 Merge from 'apple/trunk' branch on FSF servers.
b581b85b 8075
3f8257db 8076 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
b581b85b 8077
9faeb493 8078 Radar 4229905
b581b85b
NP
8079 * c-common.h (objc_have_common_type): New declaration.
8080 * stub-objc.c (objc_have_common_type): New stub.
8081
8082 2005-06-22 Ziemowit Laski <zlaski@apple.com>
8083
8084 Radar 4154928
8085 * c-common.h (objc_common_type): New prototype.
9faeb493 8086 * stub-objc.c (objc_common_type): New stub.
b581b85b 8087
46a4da10
JH
80882010-09-24 Jan Hubicka <jh@suse.cz>
8089
8090 * c-common.c (handle_leaf_attribute): New function.
8091 (struct attribute_spec c_common_att): Add leaf.
8092
e200444e
JM
80932010-09-22 Joseph Myers <joseph@codesourcery.com>
8094
8095 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
8096 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
8097 -dump, -dump=, -imacros, -imacros=, -include, -include=,
8098 -include-barrier, -include-directory, -include-directory=,
8099 -include-directory-after, -include-directory-after=,
8100 -include-prefix, -include-prefix=, -include-with-prefix,
8101 -include-with-prefix=, -include-with-prefix-after,
8102 -include-with-prefix-after=, -include-with-prefix-before,
8103 -include-with-prefix-before=, -no-integrated-cpp,
8104 -no-line-commands, -no-standard-includes, -no-warnings, -output,
8105 -output=, -pedantic, -pedantic-errors, -preprocess,
8106 -print-missing-file-dependencies, -trace-includes, -traditional,
8107 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
8108 -user-dependencies, -verbose, -write-dependencies,
8109 -write-user-dependencies, no-integrated-cpp, traditional): New.
8110
29a80ea6
NP
81112010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
8112
8113 PR objc/23710
ac1fc2fc
NP
8114 * c-common.h (objc_start_method_definition): Return bool instead
8115 of void.
8116 * stub-objc.c (objc_start_method_definition): Return bool instead
8117 of void.
8118
81192010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
8120
8121 PR objc/25965
8122 * c-common.h (objc_get_interface_ivars): New declaration.
8123 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 8124
de621752
ILT
81252010-09-15 Ian Lance Taylor <iant@google.com>
8126
8127 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 8128 messages. Remove period at end of warning message.
de621752 8129
ba885ec5
NS
81302010-09-09 Nathan Sidwell <nathan@codesourcery.com>
8131
8132 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
8133 (handle_alias_attribute): ... here.
8134 (handle_ifunc_attribute): New.
8135
c5ee1358
MM
81362010-09-06 Mark Mitchell <mark@codesourcery.com>
8137
8138 * c-common.h (do_warn_double_promotion): Declare.
8139 * c-common.c (do_warn_double_promotion): Define.
8140
0a0b3574
MM
81412010-09-05 Mark Mitchell <mark@codesourcery.com>
8142
8143 * c.opt (Wdouble-promotion): New.
8144
d1779886
JM
81452010-09-02 Joseph Myers <joseph@codesourcery.com>
8146
8147 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
8148 fvtable-thunks, fxref): Mark no longer supported in help text.
8149
2d2bd949
JM
81502010-09-02 Joseph Myers <joseph@codesourcery.com>
8151
8152 * c.opt (Wimport, fall-virtual, falt-external-templates,
8153 fdefault-inline, fenum-int-equiv, fexternal-templates,
8154 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
8155 fname-mangling-version-, fnew-abi, fnonnull-objects,
8156 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
8157 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
8158 applicable.
8159 (fhandle-exceptions): Mark with Alias and Warn.
8160 * c-opts.c (c_common_handle_option): Don't handle options marked
8161 as ignored.
8162
5de8299c
JM
81632010-09-02 Joseph Myers <joseph@codesourcery.com>
8164
8165 * c.opt (Wcomments, Werror-implicit-function-declaration,
8166 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
8167 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
8168 aliases.
8169 * c-common.c (option_codes): Use OPT_Wcomment instead of
8170 OPT_Wcomments.
8171 * c-opts.c (warning_as_error_callback, c_common_handle_option):
8172 Don't handle options marked as aliases.
8173
0ceb0201
RG
81742010-08-25 Richard Guenther <rguenther@suse.de>
8175
8176 * c-common.c (c_common_get_alias_set): Remove special
8177 handling for pointers.
8178
ac47786e
NF
81792010-08-20 Nathan Froyd <froydnj@codesourcery.com>
8180
8181 * c-common.c: Use FOR_EACH_VEC_ELT.
8182 * c-gimplify.c: Likewise.
8183 * c-pragma.c: Likewise.
8184
c878765b
JM
81852010-08-16 Joseph Myers <joseph@codesourcery.com>
8186
8187 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
8188 RejectDriver.
8189 (MMDX): Change back to MMD. Mark NoDriverArg instead of
8190 RejectDriver.
8191 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
8192 instead of OPT_MDX and OPT_MMDX.
8193
603349bf
JM
81942010-08-16 Joseph Myers <joseph@codesourcery.com>
8195
8196 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
8197
644fa7ac
JM
81982010-08-12 Joseph Myers <joseph@codesourcery.com>
8199
8200 * c.opt (MD, MMD): Change to MDX and MMDX.
8201 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
8202
481e1176
JM
82032010-08-11 Joseph Myers <joseph@codesourcery.com>
8204
8205 * c-opts.c (c_common_handle_option): Call handle_generated_option
8206 instead of handle_option.
8207
ac8dc9f7
NF
82082010-08-08 Nathan Froyd <froydnj@codesourcery.com>
8209
8210 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
8211 (maybe_apply_renaming_pragma): Delete unneeded declarations.
8212
4f8c876d
NF
82132010-08-08 Nathan Froyd <froydnj@codesourcery.com>
8214
8215 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
8216 (pending_redefine_extname): Change type to a VEC.
8217 (add_to_renaming_pragma_list): Update for new type of
8218 pending_redefine_extname.
ac8dc9f7 8219 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 8220
3b0c690e
AC
82212010-08-04 Arnaud Charlet <charlet@adacore.com>
8222
8223 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
8224 visited.
8225 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
8226 decide whether a type has already been declared/seen.
8227 Do not go to the original type.
8228 (dump_nested_types): New parameter forward.
8229 Generate forward declaration if needed and mark type as visited.
8230 (print_ada_declaration): Call dump_nested_types if not already done.
8231 Mark types as visited.
8232
1890bccc
JM
82332010-08-03 Joseph Myers <joseph@codesourcery.com>
8234
8235 * c.opt (-print-pch-checksum): Remove option.
8236 * c-opts.c (c_common_handle_option): Don't handle
8237 OPT_print_pch_checksum.
8238
5f20c657
JM
82392010-07-27 Joseph Myers <joseph@codesourcery.com>
8240
8241 * c-common.h (c_common_handle_option): Update prototype and return
8242 value type.
8243 * c-opts.c (c_common_handle_option): Update prototype and return
8244 value type. Update calls to handle_option and
8245 enable_warning_as_error.
8246
f551f80c
JJ
82472010-07-27 Jakub Jelinek <jakub@redhat.com>
8248
8249 PR c/45079
8250 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
8251
61ff2bdc
JM
82522010-07-27 Joseph Myers <joseph@codesourcery.com>
8253
8254 * c-common.h (c_common_missing_argument): Remove.
8255 * c-opts.c (c_common_missing_argument): Remove.
8256 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
8257 idirafter, imacros, include, isysroot, isystem, iquote): Add
8258 MissingArgError.
8259 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
8260
7a9bf9a4
JM
82612010-07-27 Joseph Myers <joseph@codesourcery.com>
8262
8263 * c-common.h (c_common_option_lang_mask,
8264 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
8265 New.
8266 (c_common_init_options): Update prototype.
8267 * c-opts.c (c_common_option_lang_mask): New.
8268 (c_common_initialize_diagnostics): Split out of
8269 c_common_init_options.
8270 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
8271 New.
8272 (c_common_init_options): Update prototype. Use decoded options in
8273 search for -lang-asm.
8274
910ad8de
NF
82752010-07-15 Nathan Froyd <froydnj@codesourcery.com>
8276
8277 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
8278 * c-format.c: Likewise.
8279
718f9c0f
MLI
82802010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
8281
8282 * c-common.h: Include diagnostic-core.h. Error if already
8283 included.
8284 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
8285
4d451982
MLI
82862010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
8287
adfac8df 8288 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
8289 Do not include expr.h
8290 (vector_mode_valid_p): Move here.
8291
119fe915
SB
82922010-06-21 DJ Delorie <dj@redhat.com>
8293
8294 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
8295 allow these pragmas anywhere.
8296
82972010-06-14 Jakub Jelinek <jakub@redhat.com>
8298
8299 PR bootstrap/44509
8300 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
8301 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
8302 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
8303 ggc_strdup instead of xstrdup.
8304
83052010-06-10 Jakub Jelinek <jakub@redhat.com>
8306
8307 * c-cppbuiltin.c: Include cpp-id-data.h.
8308 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
8309 (lazy_hex_fp_value): New function.
8310 (builtin_define_with_hex_fp_value): Provide definitions lazily.
8311
6662d794
MLI
83122010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
8313
8314 * c-gimplify.c: Do not include tree-flow.h
8315
38f8b050
JR
83162010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
8317
8318 PR other/44034
8319 * c-common.c: Rename targetm member:
8320 targetm.enum_va_list -> targetm.enum_va_list_p
8321
9589f23e
AS
83222010-06-28 Anatoly Sokolov <aesok@post.ru>
8323
8324 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
8325
3b06d379
SB
83262010-06-28 Steven Bosscher <steven@gcc.gnu.org>
8327
8328 * c-cppbuiltin.c: Do not include except.h.
8329
d166d4c3
AK
83302010-06-24 Andi Kleen <ak@linux.intel.com>
8331
9faeb493
UB
8332 * c-common.c (warn_for_omitted_condop): New.
8333 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 8334
70cb8be6
JM
83352010-06-21 Joseph Myers <joseph@codesourcery.com>
8336
8337 * c.opt (lang-objc): Remove.
8338 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
8339
a4c97feb
JR
83402010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
8341
8342 * c-opts.c: Include "tm_p.h".
8343
6e2f1956
JM
83442010-06-20 Joseph Myers <joseph@codesourcery.com>
8345
8346 * c-common.c (parse_optimize_options): Update call to
8347 decode_options.
8348
bc87224e
NF
83492010-06-18 Nathan Froyd <froydnj@codesourcery.com>
8350
8351 * c-common.c (record_types_used_by_current_var_decl): Adjust for
8352 new type of types_used_by_cur_var_decl.
8353
b49cf425
JR
83542010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
8355
8356 PR bootstrap/44512
8357 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
8358 for C++ standard compliance.
8359
59f9c2ed
JM
83602010-06-16 Jason Merrill <jason@redhat.com>
8361
8362 * c.opt: Add -Wnoexcept.
8363
33766b66
RG
83642010-06-16 Richard Guenther <rguenther@suse.de>
8365
8366 PR c/44555
8367 * c-common.c (c_common_truthvalue_conversion): Remove
8368 premature and wrong optimization concering ADDR_EXPRs.
8369
eff7e30c
AC
83702010-06-15 Arnaud Charlet <charlet@adacore.com>
8371
8372 * c-ada-spec.c (dump_sloc): Remove column info.
8373 (is_simple_enum): New function.
8374 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
8375 enum types when relevant.
8376
6312e84d
MLI
83772010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
8378
9faeb493 8379 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
8380 location.
8381
1cb42611
JM
83822010-06-10 Joseph Myers <joseph@codesourcery.com>
8383
8384 * c-opts.c (c_common_handle_option): Don't handle
8385 OPT_fshow_column.
8386
a9429e29
LB
83872010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8388
8389 * c-pragma.c (push_alignment): Use typed GC allocation.
8390 (handle_pragma_push_options): Likewise.
8391
8392 * c-common.c (parse_optimize_options): Likewise.
8393
8394 * c-common.h (struct sorted_fields_type): Add variable_size GTY
8395 option.
8396
5498f011
JM
83972010-06-07 Joseph Myers <joseph@codesourcery.com>
8398
8399 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
8400 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
8401 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
8402 flag_signed_bitfields, warn_strict_null_sentinel,
8403 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
8404 flag_gen_declaration, flag_no_gnu_keywords,
8405 flag_implement_inlines, flag_implicit_templates,
8406 flag_implicit_inline_templates, flag_optional_diags,
8407 flag_elide_constructors, flag_default_inline, flag_rtti,
8408 flag_conserve_space, flag_access_control, flag_check_new,
8409 flag_new_for_scope, flag_weak, flag_working_directory,
8410 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
8411 flag_enforce_eh_specs, flag_threadsafe_statics,
8412 flag_pretty_templates): Remove.
8413 * c-common.h (flag_preprocess_only, flag_nil_receivers,
8414 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
8415 flag_replace_objc_classes, flag_undef, flag_no_builtin,
8416 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
8417 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
8418 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
8419 flag_no_gnu_keywords, flag_implement_inlines,
8420 flag_implicit_templates, flag_implicit_inline_templates,
8421 flag_optional_diags, flag_elide_constructors, flag_default_inline,
8422 flag_rtti, flag_conserve_space, flag_access_control,
8423 flag_check_new, flag_new_for_scope, flag_weak,
8424 flag_working_directory, flag_use_cxa_atexit,
8425 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
8426 flag_threadsafe_statics, flag_pretty_templates,
8427 warn_strict_null_sentinel): Remove.
8428 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
8429 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
8430 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
8431 fimplicit-inline-templates, fimplicit-templates,
8432 flax-vector-conversions, fms-extensions, fnil-receivers,
8433 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
8434 frtti, fshort-double, fshort-enums, fshort-wchar,
8435 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
8436 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
8437 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
8438 gen-decls, undef): Use Var.
8439 (fdefault-inline, foptional-diags): Document as doing nothing.
8440 * c-opts.c (c_common_handle_option): Remove cases for options now
8441 using Var. Mark ignored options as such.
8442
39dabefd
SB
84432010-06-05 Steven Bosscher <steven@gcc.gnu.org>
8444
9faeb493 8445 * c-common.c: Moved to here from parent directory.
39dabefd
SB
8446 * c-common.def: Likewise.
8447 * c-common.h: Likewise.
8448 * c-cppbuiltin.c: Likewise.
8449 * c-dump.c: Likewise.
8450 * c-format.c: Likewise.
8451 * c-format.h : Likewise.
8452 * c-gimplify.c: Likewise.
8453 * c-lex.c: Likewise.
8454 * c-omp.c: Likewise.
8455 * c.opt: Likewise.
8456 * c-opts.c: Likewise.
8457 * c-pch.c: Likewise.
8458 * c-ppoutput.c: Likewise.
8459 * c-pragma.c: Likewise.
8460 * c-pragma.h: Likewise.
8461 * c-pretty-print.c: Likewise.
8462 * c-pretty-print.h: Likewise.
8463 * c-semantics.c: Likewise.
8464 * stub-objc.c: Likewise.
8465
8466 * c-common.c: Include gt-c-family-c-common.h.
8467 * c-pragma.c: Include gt-c-family-c-pragma.h.
8468\f
cbe34bb5 8469Copyright (C) 2010-2017 Free Software Foundation, Inc.
39dabefd
SB
8470
8471Copying and distribution of this file, with or without modification,
8472are permitted in any medium without royalty provided the copyright
8473notice and this notice are preserved.