]> gcc.gnu.org Git - gcc.git/blame - gcc/c-family/ChangeLog
Daily bump.
[gcc.git] / gcc / c-family / ChangeLog
CommitLineData
3fa4634c
VR
12017-06-01 Volker Reichelt <v.reichelt@netcologne.de>
2
3 * c.opt (Wcatch-value): New shortcut for Wcatch-value=1.
4 (Wcatch-value=1): Enable by -Wall.
5
f012c8ef
DM
62017-05-30 David Malcolm <dmalcolm@redhat.com>
7
8 * c-format.c (gcc_cxxdiag_char_table): Add 'H' and 'I' to
9 format_chars.
10 * c.opt (fdiagnostics-show-template-tree): New option.
11 (felide-type): New option.
12
63dbcd13
VR
132017-05-25 Volker Reichelt <v.reichelt@netcologne.de>
14
15 * c.opt (Wcatch-value=): New C++ warning flag.
16
be136b5c
NS
172017-05-24 Nathan Sidwell <nathan@acm.org>
18
19 * c=common.c (field_decl_cmp, resort_field_decl_cmp): Adjust T
20 const casts to avoid warning.
21
3cd211af
MS
222017-05-24 Martin Sebor <msebor@redhat.com>
23
24 PR c/80731
25 * c-common.h (unsafe_conversion_p): Add a function argument.
26 * c-common.c (unsafe_conversion_p): Same.
27 Add type names and values to diagnostics.
28 (scalar_to_vector): Adjust.
29 * c-warn.c (constant_expression_error): Add a function argument.
30 Add type names and values to diagnostics.
31 (conversion_warning): Add a function argument.
32 Add type names and values to diagnostics.
33 (warnings_for_convert_and_check): Same.
34
1ff7be5a
JM
352017-05-19 Jason Merrill <jason@redhat.com>
36
37 * c-warn.c (match_case_to_enum_1): Don't warn about enums with no
38 enumerators.
39
ff502317
BE
402017-05-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
41
42 * c-format.c (locus): Move out of function scope,
43 add GTY attribute.
44
2a8a8d7b
NS
452017-05-19 Nathan Sidwell <nathan@acm.org>
46
47 * c-opts.c (class_dump_file, class_dump_flags): Delete.
48 (c_common_parse_file): Remove class dump handling.
49 (get_dump_info): Likewise.
50
39aac208
RB
512017-05-19 Richard Biener <rguenther@suse.de>
52
53 PR c++/80593
54 * c-warn.c (strict_aliasing_warning): Do not warn for accesses
55 to alias-set zero memory.
56
6ecd2339
BE
572017-05-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
58
59 * c-format.c (local_tree_type_node): Add GTY attribute.
60
6574d78e
MP
612017-05-18 Marek Polacek <polacek@redhat.com>
62
63 * c-common.c (c_common_type_for_size): Use NULL_TREE instead of 0.
64 (c_common_fixed_point_type_for_size): Likewise.
65 (c_common_type_for_mode): Likewise.
66 (shorten_compare): Likewise.
67 (c_promoting_integer_type_p): Use false/true instead of 0/1.
68 * c-pragma.c (maybe_apply_renaming_pragma): Use NULL_TREE instead of 0.
69
e3455240
MP
702017-05-18 Marek Polacek <polacek@redhat.com>
71
72 * c-common.c (self_promoting_args_p): Change the return type to bool.
73 Use false/true instead of 0/1.
74 * c-common.h (self_promoting_args_p): Update.
75
3fa8871b
MP
762017-05-17 Marek Polacek <polacek@redhat.com>
77
78 * c-common.c: Use NULL_TREE instead of 0 where appropriate.
79 * c-warn.c: Likewise.
80
b42cc3ca
VV
812017-05-17 Ville Voutilainen <ville.voutilainen@gmail.com>
82
83 Implement new C++ intrinsics __is_assignable and __is_constructible.
84 * c-common.c (__is_assignable, __is_constructible): New.
85 * c-common.h (RID_IS_ASSIGNABLE, RID_IS_CONSTRUCTIBLE): Likewise.
86
1a817418
ML
872017-05-17 Martin Liska <mliska@suse.cz>
88
89 * c-common.h: Introduce dump_flags_t type and
90 use it instead of int type.
91 * c-gimplify.c (c_genericize): Likewise.
92 * c-opts.c: Likewise.
93
b2fa0a8b
MP
942017-05-17 Marek Polacek <polacek@redhat.com>
95
96 * c-common.c (c_save_expr): Remove.
97 (c_common_truthvalue_conversion): Remove a call to c_save_expr.
98 * c-common.h (c_save_expr): Remove declaration.
99
31c2d57d
VR
1002017-05-09 Volker Reichelt <v.reichelt@netcologne.de>
101
102 PR c/35441
103 * c-pretty-print.c (c_pretty_printer::expression): Handle MAX_EXPR,
104 MIN_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, LROTATE_EXPR, RROTATE_EXPR.
105 (c_pretty_printer::postfix_expression): Handle MAX_EXPR, MIN_EXPR.
106 (c_pretty_printer::multiplicative_expression): Handle EXACT_DIV_EXPR,
107 RDIV_EXPR.
108 (pp_c_shift_expression): Handle LROTATE_EXPR, RROTATE_EXPR.
109
684f84de
MP
1102017-05-09 Marek Polacek <polacek@redhat.com>
111
112 PR c/80525
113 * c-warn.c (unwrap_c_maybe_const): New.
114 (warn_logical_operator): Call it.
115
641da50a
NS
1162017-05-09 Nathan Sidwell <nathan@acm.org>
117
118 * c-common.c (c_register_builtin_type): Use pushdecl lang_hook.
119 * c-common.h (pushdecl_top_level, pushdecl): Don't declare here.
120
631238ac
MS
1212017-05-08 Martin Sebor <msebor@redhat.com>
122
123 PR translation/80280
124 * c-format.h (struct format_flag_spec): Add new member.
125 (T89_T): New macro.
126 * c-format.c (local_tree_type_node): New global.
127 (printf_flag_specs, asm_fprintf_flag_spec): Initialize new data.
128 (gcc_diag_flag_specs, scanf_flag_specs, strftime_flag_specs): Ditto.
129 (strfmon_flag_specs): Likewise.
130 (gcc_diag_char_table, gcc_cdiag_char_table): Split up specifiers
131 with distinct quoting properties.
132 (gcc_tdiag_char_table, gcc_cxxdiag_char_table): Same.
133 (flag_chars_t::validate): Add argument and handle bad quoting.
134 (check_format_info_main): Handle quoting problems.
135 (init_dynamic_diag_info): Simplify.
136
49f0c04c
JM
1372017-05-08 Jason Merrill <jason@redhat.com>
138
139 * c-opts.c (c_common_post_options): Update defaults for
140 flag_abi_version and flag_abi_compat_version.
141
56d35585
DM
1422017-05-05 David Malcolm <dmalcolm@redhat.com>
143
144 * c-common.c (c_cpp_error): Replace report_diagnostic
145 with diagnostic_report_diagnostic.
146
0f2c4a8f
MS
1472017-05-04 Martin Sebor <msebor@redhat.com>
148
149 PR translation/80280
150 * c-attribs.c (handle_alias_ifunc_attribute): Quote a %D directive.
151 (handle_weakref_attribute): Same.
152
6fe63fb4
NS
1532017-05-03 Nathan Sidwell <nathan@acm.org>
154
155 Canonicalize canonical type hashing
156 * c-common.c (complete_array_type): Use type_hash_canon.
157
815d9cc6
XR
1582017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
159
160 PR c++/80038
161 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): Remove
162 prototype.
163 (cilk_install_body_pedigree_operations): Likewise.
164 * cilk.c (cilk_set_spawn_marker): Mark functions that should be
165 detatched.
166 (cilk_gimplify_call_params_in_spawned_fn): Remove.
167 (cilk_install_body_pedigree_operations): Likewise.
168 (gimplify_cilk_spawn): Add EXPR_STMT and CLEANUP_POINT_EXPR
169 unwrapping.
170
f8a36447
JJ
1712017-04-27 Jakub Jelinek <jakub@redhat.com>
172
173 PR c++/80534
174 * c-common.c (complete_array_type): Only hash TYPE_TYPELESS_STORAGE
175 flag on non-aggregate element types.
176
7c145456
BE
1772017-04-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
178
179 * c-common.c (c_type_hasher, type_hash_table): Remove.
180 (c_common_get_alias_set): Remove unreachable code.
181 * c-opts.c (c_common_post_options): Make sure cc1 takes only one file.
182
c3cbcd45
VR
1832017-04-20 Volker Reichelt <v.reichelt@netcologne.de>
184
185 * c.opt (Wextra-semi): New C++ warning flag.
186
8a59d466
JJ
1872017-04-20 Jakub Jelinek <jakub@redhat.com>
188
189 PR middle-end/80423
190 * c-common.c (complete_array_type): Preserve TYPE_TYPELESS_STORAGE.
191
8487c9a5
JJ
1922017-04-18 Jakub Jelinek <jakub@redhat.com>
193
194 PR middle-end/79788
195 PR middle-end/80375
196 * c-common.c (c_common_type_for_mode): Don't handle
197 widest_*_literal_type_node here.
198 c_common_signed_or_unsigned_type): Likewise.
199 (c_common_nodes_and_builtins): Set widest_*_literal_type_node
200 to *intTI_type_node or *intDI_type_node depending on whether
201 TImode is supported by the target or not.
202
3ee0fb02
ML
2032017-04-10 Martin Liska <mliska@suse.cz>
204
205 PR sanitizer/80350
206 * c-ubsan.c (ubsan_instrument_shift): Evaluate RHS before
207 doing an UBSAN check.
208
5764ee3c
JW
2092017-04-03 Jonathan Wakely <jwakely@redhat.com>
210
211 * c-warn.c (do_warn_double_promotion): Fix typo in comment.
212
6f3af356
JJ
2132017-03-31 Jakub Jelinek <jakub@redhat.com>
214
215 PR c++/79572
216 * c-ubsan.h (ubsan_maybe_instrument_reference): Change argument to
217 tree *.
218 * c-ubsan.c (ubsan_maybe_instrument_reference): Likewise. Handle
219 not just NOP_EXPR to REFERENCE_TYPE, but also INTEGER_CST with
220 REFERENCE_TYPE.
221
f6a7a9d5
DM
2222017-03-31 David Malcolm <dmalcolm@redhat.com>
223
224 PR documentation/78732
225 * c.opt (Wendif-labels): Fix description to refer to
226 #else rather than #elif.
227
af88f557
JJ
2282017-03-31 Jakub Jelinek <jakub@redhat.com>
229
230 PR libstdc++/80251
231 * c-common.h (enum rid): Add RID_IS_AGGREGATE.
232 * c-common.c (c_common_reswords): Add __is_aggregate trait.
233
a9e4a1a5
JJ
2342017-03-27 Jakub Jelinek <jakub@redhat.com>
235
236 PR middle-end/80162
237 * c-common.c (c_common_mark_addressable_vec): Don't set
238 TREE_ADDRESSABLE on DECL_HARD_REGISTER.
239
3f01b620
MS
2402017-03-21 Martin Sebor <msebor@redhat.com>
241
242 PR c++/79548
243 * c-common.c (set_underlying_type): Mark type used only when
244 original del is declared unused.
245
2f6f187a
DM
2462017-03-10 David Malcolm <dmalcolm@redhat.com>
247
248 PR translation/79848
249 * c-format.c (check_format_string): Simplify uses of "%<%s%>" to
250 "%qs".
251
a02fa805
DM
2522017-03-10 David Malcolm <dmalcolm@redhat.com>
253
254 PR c/79921
255 * c-indentation.c (warn_for_misleading_indentation): Remove parens
256 from inform's message, so that xgettext can locate it.
257
822a132c
MP
2582017-03-09 Marek Polacek <polacek@redhat.com>
259
260 PR c++/79962
261 PR c++/79984
262 * c-attribs.c (handle_nonnull_attribute): Save the result of default
263 conversion to the attribute list.
264
bba81f1c
ML
2652017-03-09 Martin Liska <mliska@suse.cz>
266
267 * c-ada-spec.c (macro_length): Increment value instead of a pointer.
268
108154ff
JM
2692017-03-03 Jason Merrill <jason@redhat.com>
270
271 * c.opt (Wnoexcept-type): New.
272
eb0e7c34
RB
2732017-03-02 Richard Biener <rguenther@suse.de>
274
275 PR c/79756
276 * c-common.c (c_common_mark_addressable_vec): Look through
277 C_MAYBE_CONST_EXPR.
278
9453ba0a
ML
2792017-02-28 Martin Liska <mliska@suse.cz>
280
281 * c.opt: Replace space with tabular for options of <number>
282 type.
283
6a825afe
ML
2842017-02-28 Martin Liska <mliska@suse.cz>
285
286 * c.opt: Fix --help=option -Q for options which are of
287 an enum type.
288
4227c9ad
JJ
2892017-02-24 Jakub Jelinek <jakub@redhat.com>
290
291 PR c++/79588
292 * c-common.c (check_function_restrict): New function.
293 (check_function_arguments): Add FNDECL argument. Call
294 check_function_restrict if -Wrestrict.
295 * c-warn.c (warn_for_restrict): Remove ARGS argument, add ARGARRAY
296 and NARGS. Use auto_vec for ARG_POSITIONS, simplify.
297 * c-common.h (check_function_arguments): Add FNDECL argument.
298 (warn_for_restrict): Remove ARGS argument, add ARGARRAY and NARGS.
299
59909673
EB
3002017-02-24 Eric Botcazou <ebotcazou@adacore.com>
301
302 * c-ada-spec.c (dump_ada_function_declaration): Add comment about the
303 treatment of parameters with pointer-to-tagged type and tidy up.
304 (print_ada_methods): Remove the special treatment of C++ static member
305 functions.
306
54dcd526
ML
3072017-02-22 Martin Liska <mliska@suse.cz>
308
309 * c.opt: Replace inequality signs with square brackets
310 for -Wnornalized.
311
00bc9de3
JJ
3122017-02-21 Jakub Jelinek <jakub@redhat.com>
313
314 PR c++/79641
315 * c-attribs.c (handle_mode_attribute): Use build_qualified_type to
316 preserve quals.
317
97fcf744
JM
3182017-02-17 Joseph Myers <joseph@codesourcery.com>
319
320 * c-cppbuiltin.c (builtin_define_float_constants): Define
321 __DECIMAL_DIG__ to the value for long double.
322
c7545f1c
MP
3232017-02-15 Marek Polacek <polacek@redhat.com>
324
325 PR c/79515
326 * c-warn.c (do_warn_double_promotion): Don't warn if an invalid
327 conversion has occured.
328
c2e84327
DM
3292017-01-24 David Malcolm <dmalcolm@redhat.com>
330
331 * c-common.c (c_common_reswords): Add "__RTL".
332 * c-common.h (enum rid): Add RID_RTL.
333
2ebd93e1
MP
3342017-01-20 Marek Polacek <polacek@redhat.com>
335
336 PR c/64279
337 * c-common.h (do_warn_duplicated_branches_r): Declare.
338 * c-gimplify.c (c_genericize): Walk the function tree calling
339 do_warn_duplicated_branches_r.
340 * c-warn.c (expr_from_macro_expansion_r): New.
341 (do_warn_duplicated_branches): New.
342 (do_warn_duplicated_branches_r): New.
343 * c.opt (Wduplicated-branches): New option.
344
0d80ab91
DM
3452017-01-17 David Malcolm <dmalcolm@redhat.com>
346
347 PR c++/71497
348 * c-indentation.c (warn_for_misleading_indentation): Use the past
349 subjunctive in the note.
350
7f991c36
AH
3512017-01-17 Aldy Hernandez <aldyh@redhat.com>
352
353 PR c/79116
354 * array-notation-common.c (cilkplus_extract_an_triplets): Convert
355 start type to integer_type.
356
1c70261c
JJ
3572017-01-16 Jakub Jelinek <jakub@redhat.com>
358
359 PR driver/49726
360 * c.opt (gen-decls): Add Driver flag.
361
1ddca3f3
PC
3622017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
363
364 Revert:
365 2017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
366
367 PR c++/71737
368 * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
369
7d2f3f1d
PC
3702017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
371
372 PR c++/71737
373 * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
374
bce6f760
MS
3752017-01-12 Martin Sebor <msebor@redhat.com>
376
377 (-Wformat-overflow): ...to this.
378
bf5fbf46
MS
3792017-01-11 Martin Sebor <msebor@redhat.com>
380
381 PR c/78768
382 * c.opt (-Walloca-larger-than, -Wformat-length, -Wformat-truncation):
383 Also enable for LTO.
384
e363df3f
JM
3852017-01-10 Jason Merrill <jason@redhat.com>
386
387 Implement P0195R2, C++17 variadic using.
388 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_variadic_using.
389
bd2c6270
JJ
3902017-01-09 Jakub Jelinek <jakub@redhat.com>
391
392 PR translation/79019
393 PR translation/79020
394 * c.opt (Wnormalized=): Fix typo in description.
395
efcc8d38
MS
3962017-01-08 Martin Sebor <msebor@redhat.com>
397
398 PR middle-end/77708
399 * c.opt (-Wformat-truncation): New option.
400
435f3f7a
AO
4012017-01-06 Alexandre Oliva <aoliva@redhat.com>
402
403 * c-pretty-print.c (pp_c_tree_decl_identifier): Convert 16-bit
404 value to unsigned short to fit in 4 hex digits without
405 warnings.
406
4e89adf9
EB
4072017-01-05 Eric Botcazou <ebotcazou@adacore.com>
408
409 * c.opt (fsso-struct): Add 'native' value.
410
cd445b54
ML
4112017-01-05 Martin Liska <mliska@suse.cz>
412
413 PR pch/78970
414 * c-opts.c (c_common_post_options): Reject '-' filename for a precompiled
415 header.
416
a9342885
MP
4172017-01-04 Marek Polacek <polacek@redhat.com>
418
419 PR c++/64767
420 * c.opt (Wpointer-compare): New option.
421
fc73e60c
JJ
4222017-01-04 Jakub Jelinek <jakub@redhat.com>
423
424 PR driver/78957
425 * c.opt (fsso-struct=): Add RejectNegative.
426
cbe34bb5
JJ
4272017-01-01 Jakub Jelinek <jakub@redhat.com>
428
429 Update copyright years.
430
d4a6c0ea
ML
4312016-12-29 Martin Liska <mliska@suse.cz>
432
433 PR c/78933
434 * c.opt (strong-eval-order): Add RejectNegative keyword.
435
67a5ad7c
JM
4362016-12-22 Jason Merrill <jason@redhat.com>
437
438 Implement P0522R0, matching of template template arguments.
439 * c-cppbuiltin.c (c_cpp_builtins): Define
440 __cpp_template_template_args.
441
0dba7960
JJ
4422016-12-21 Jakub Jelinek <jakub@redhat.com>
443
444 PR bootstrap/78817
445 * c-common.c (struct nonnull_arg_ctx): New type.
446 (check_function_nonnull): Return bool instead of void. Use
447 nonnull_arg_ctx as context rather than just location_t.
448 (check_nonnull_arg): Adjust for the new context type, set
449 warned_p to true if a warning has been diagnosed.
450 (check_function_arguments): Return bool instead of void.
451 * c-common.h (check_function_arguments): Adjust prototype.
452
31bfc9b9
JM
4532016-12-21 Jason Merrill <jason@redhat.com>
454
455 * c.opt (-fnew-ttp-matching): New flag.
456 * c-opts.c (c_common_post_options): Default on if -std=c++1z.
457
629b3d75
MJ
4582016-12-14 Martin Jambor <mjambor@suse.cz>
459
460 * c-omp.c: Include omp-general.h instead of omp-low.h.
461 (c_finish_oacc_wait): Adjusted call to find_omp_clause to use its new
462 name.
463
474da67e
MS
4642016-12-14 Martin Sebor <msebor@redhat.com>
465
466 PR c/17308
467 * c-common.c (check_nonnull_arg): Disable when optimization
468 is enabled.
469
fe366b87
MP
4702016-12-12 Marek Polacek <polacek@redhat.com>
471
472 PR c++/78647
473 * c-common.c (attribute_fallthrough_p): Return false for
474 error_mark_node.
475
8bd9f164
MS
4762016-12-08 Martin Sebor <msebor@redhat.com>
477
478 PR c/78284
479 * c.opt (-Walloc-zero, -Walloc-size-larger-than): New options.
480
060162e0
MS
4812016-12-08 Martin Sebor <msebor@redhat.com>
482
483 PR c/78165
1d0cf89a
MS
484 * c-pretty-print (pp_c_integer_constant): Avoid formatting type
485 suffix.
060162e0 486
ee92e7ba
MS
4872016-12-07 Martin Sebor <msebor@redhat.com>
488
489 PR c/53562
490 PR middle-end/77784
491 PR middle-end/78149
492 PR middle-end/78138
493 * c.opt (-Wstringop-overflow): New option.
494
84b0769e
MO
4952016-12-02 Maxim Ostapenko <m.ostapenko@samsung.com>
496
497 * c-attribs.c (asan odr indicator): New attribute.
498 (handle_asan_odr_indicator_attribute): New function.
499
7fa6a965
PK
5002016-11-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
501
502 * c-common.c (c_common_nodes_and_builtins): Remove initialization of
503 ptrdiff_type_node;
504
56d8ffc1
JG
5052016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
506
507 * c-common.c (excess_precision_mode_join): New.
508 (c_ts18661_flt_eval_method): New.
509 (c_c11_flt_eval_method): Likewise.
510 (c_flt_eval_method): Likewise.
511 * c-common.h (excess_precision_mode_join): New.
512 (c_flt_eval_method): Likewise.
513 * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): New.
514 (cpp_iec_559_value): Call it.
515 (c_cpp_builtins): Modify logic for __LIBGCC_*_EXCESS_PRECISION__,
516 call c_flt_eval_method to set __FLT_EVAL_METHOD__ and
517 __FLT_EVAL_METHOD_TS_18661_3__.
518
04f0fcf7
JG
5192016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
520
521 * c-opts.c (c_common_post_options): Add logic to handle the default
522 case for -fpermitted-flt-eval-methods.
523
fb2675cb
PB
5242016-11-23 Paolo Bonzini <bonzini@gnu.org>
525
526 * c.opt (Wexpansion-to-defined): New.
527
ec1c5694
JJ
5282016-11-23 Jakub Jelinek <jakub@redhat.com>
529
530 PR target/78451
531 * c-pragma.c (handle_pragma_target): Don't replace
532 current_target_pragma, but chainon the new args to the current one.
533
730c9e75
NS
5342016-11-22 Nathan Sidwell <nathan@acm.org>
535
536 * array-notation-common.c (cilkplus_extract_an_trplets): Fix
cacd29be 537 indentation and formatting.
730c9e75 538
89990732
MS
5392016-11-21 Martin Sebor <msebor@redhat.com>
540
541 * c.opt (-fprintf-return-value): Enable by default.
542
48330c93
BE
5432016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
544
545 PR c++/71973
546 * c.opt (-Wbuiltin-declaration-mismatch): New warning.
547 * c-common.c (c_common_nodes_and_builtins): Initialize
548 const_tm_ptr_type_node.
549
0d939c95
MP
5502016-11-16 Marek Polacek <polacek@redhat.com>
551
552 PR c/78285
553 * c-common.c (c_add_case_label): Turn error_at calls into inform.
554
8e745a17
JJ
5552016-11-14 Jakub Jelinek <jakub@redhat.com>
556
557 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_structured_bindings.
558
1ee62b92 5592016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
8e745a17
JJ
560 Richard Biener <rguenther@suse.de>
561
562 * c-common.h (c_common_resword): Add RID_GIMPLE, RID_PHI types.
563 * c-common.h (enum rid): Add RID_GIMPLE, RID_PHI.
564 * c.opt (fgimple): New option.
1ee62b92 565
22b15758
UB
5662016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
567
568 PR c/35503
569 * c-common.h (warn_for_restrict): Declare.
570 * c-warn.c: Include gcc-rich-location.h.
571 (warn_for_restrict): New function.
572 * c-format.c (gcc_tdiag_char_table): Add entry for "Z" specifier.
573 (gcc_cdiag_char_table): Likewise.
574 (gcc_cxxdiag_char_table): Likewise.
575 * c.opt (Wrestrict): New option.
576
4be719cd
EB
5772016-11-13 Eric Botcazou <ebotcazou@adacore.com>
578
579 * c-ada-spec.c (print_ada_declaration): For typedef declarations, look
580 for nested types only if the type is a record or union and dump SLOC.
581
4a826ca6
JM
5822016-11-09 Jason Merrill <jason@redhat.com>
583
584 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_template_auto.
585
2e955d50
JJ
5862016-11-09 Jakub Jelinek <jakub@redhat.com>
587
588 * c-ubsan.c (ubsan_instrument_shift): Handle split
589 -fsanitize=shift-base and -fsanitize=shift-exponent.
590
51dc6603
JM
5912016-11-07 Jason Merrill <jason@redhat.com>
592
593 * c.opt (Wc++1z-compat): New.
594 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_noexcept_function_type.
595
6dc4a604
ML
5962016-11-07 Martin Liska <mliska@suse.cz>
597
598 * c-warn.c (warn_for_unused_label): Save all labels used
599 in goto or in &label.
600
b302001e
JM
6012016-11-03 Jason Merrill <jason@redhat.com>
602
603 * c-cppbuiltin.c (c_cpp_builtins): Correct
604 __cpp_inheriting_constructors.
605
31f7f784
JM
6062016-11-01 Jason Merrill <jason@redhat.com>
607
2bc78e3c
JM
608 * c-cppbuiltin.c (c_cpp_builtins): Update
609 __cpp_inheriting_constructors.
610
31f7f784
JM
611 * c.opt (-fnew-inheriting-ctors): New.
612 * c-opts.c: Default to on for ABI 11+.
613
dcb466ec
JJ
6142016-10-31 Jakub Jelinek <jakub@redhat.com>
615
616 PR c++/77948
617 * c.opt (fext-numeric-literals): Add Var and Init.
618 * c-opts.c (c_common_handle_option): Don't clear
619 cpp_opts->ext_numeric_literals for -std=c++{11,14,1z}.
620 (c_common_post_options): Clear it here if not set
621 explicitly.
622
52e1b91e
AH
6232016-10-28 Aldy Hernandez <aldyh@redhat.com>
624
625 PR debug/77773
626 * c-pretty-print.c (simple_type_specifier): Do not dereference `t'
627 if NULL.
628
e16f1cc7
JJ
6292016-10-25 Jakub Jelinek <jakub@redhat.com>
630
631 * c-common.h (enum rid): Add RID_BUILTIN_LAUNDER.
632 * c-common.c (c_common_reswords): Add __builtin_launder.
633
f8348061
BE
6342016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
635
636 * c-common.c (c_common_truthvalue_conversion): Warn for
637 multiplications in boolean context. Fix the quoting of '<<' and '<'
638 in the shift warning.
639
eff89e01
BE
6402016-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
641
642 * c-common.c (c_common_truthvalue_conversion): Fix the comment.
643
24bc7bf4
JM
6442016-10-20 Jason Merrill <jason@redhat.com>
645
646 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_concepts value.
647
4c712374
BE
6482016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
649
650 * c-common.c (c_common_truthvalue_conversion): Warn only for signed
651 integer shift ops in boolean context.
652
6532016-10-18 Aldy Hernandez <aldyh@redhat.com>
adc577c5
AH
654
655 * c.opt (Walloca): New.
656 (Walloca-larger-than=): New.
657 (Wvla-larger-than=): New.
658
8fa18c06
MP
6592016-10-17 Marek Polacek <polacek@redhat.com>
660
661 * c-warn.c (find_array_ref_with_const_idx_r): Remove parameter names.
662 Return immediately when finding a match.
663 (warn_tautological_cmp): Remove a boolean variable that is no longer
664 needed.
665
b12b1915
MP
6662016-10-17 Marek Polacek <polacek@redhat.com>
667
668 * c-attribs.c: New file.
669 * c-common.c: Move attributes handling to c-attribs.c.
670 (get_nonnull_operand): No longer static.
671 * c-common.h: Move the declarations from c-attribs.c to its own section.
672
2045acd9
JM
6732016-10-14 Jason Merrill <jason@redhat.com>
674
675 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_aggregate_bases
676 and __cpp_deduction_guides.
677
14a2c9aa
JM
6782016-10-13 Jason Merrill <jason@redhat.com>
679
680 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_inline_variables.
681
4d0cdd0c
TP
6822016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
683
684 * c-cppbuiltin.c: Include memmodel.h.
685 * c-opts.c: Likewise.
686 * c-pragma.c: Likewise.
687 * c-warn.c: Likewise.
688
70f6d5e1
JJ
6892016-10-12 Jakub Jelinek <jakub@redhat.com>
690
691 * c.opt (Wextra): Add as C/C++/ObjC/ObjC++ option.
692 (Wimplicit-fallthrough=): Enable for these languages by -Wextra.
693 * c-opts.c (sanitize_cpp_opts): Initialize
694 cpp_opts->cpp_warn_implicit_fallthrough.
695
78f61294
MP
6962016-10-11 Marek Polacek <polacek@redhat.com>
697
698 * c-common.c (warning_candidate_p): Change the return type to bool
699 and return true/false instead of 1/0.
700 (vector_mode_valid_p): Likewise.
701
038b5cc0
MP
7022016-10-11 Marek Polacek <polacek@redhat.com>
703
704 * c-common.c (fold_for_warn): No longer static.
705 (bool_promoted_to_int_p): Likewise.
706 (c_common_get_narrower): Likewise.
707 (constant_expression_warning): Move to c-warn.c.
708 (constant_expression_error): Likewise.
709 (overflow_warning): Likewise.
710 (warn_logical_operator): Likewise.
711 (find_array_ref_with_const_idx_r): Likewise.
712 (warn_tautological_cmp): Likewise.
713 (expr_has_boolean_operands_p): Likewise.
714 (warn_logical_not_parentheses): Likewise.
715 (warn_if_unused_value): Likewise.
716 (strict_aliasing_warning): Likewise.
717 (sizeof_pointer_memaccess_warning): Likewise.
718 (check_main_parameter_types): Likewise.
719 (conversion_warning): Likewise.
720 (warnings_for_convert_and_check): Likewise.
721 (match_case_to_enum_1): Likewise.
722 (match_case_to_enum): Likewise.
723 (c_do_switch_warnings): Likewise.
724 (warn_for_omitted_condop): Likewise.
725 (readonly_error): Likewise.
726 (lvalue_error): Likewise.
727 (invalid_indirection_error): Likewise.
728 (warn_array_subscript_with_type_char): Likewise.
729 (warn_about_parentheses): Likewise.
730 (warn_for_unused_label): Likewise.
731 (warn_for_div_by_zero): Likewise.
732 (warn_for_memset): Likewise.
733 (warn_for_sign_compare): Likewise.
734 (do_warn_double_promotion): Likewise.
735 (do_warn_unused_parameter): Likewise.
736 (record_locally_defined_typedef): Likewise.
737 (maybe_record_typedef_use): Likewise.
738 (maybe_warn_unused_local_typedefs): Likewise.
739 (maybe_warn_bool_compare): Likewise.
740 (maybe_warn_shift_overflow): Likewise.
741 (warn_duplicated_cond_add_or_warn): Likewise.
742 (diagnose_mismatched_attributes): Likewise.
743 * c-common.h: Move the declarations from c-warn.c to its own section.
744 * c-warn.c: New file.
745
627be19f
JM
7462016-10-08 Jason Merrill <jason@redhat.com>
747
748 * c-common.c (c_common_truthvalue_conversion): Don't distribute
749 into COND_EXPR in C++.
750
7bad794a
JJ
7512016-10-08 Jakub Jelinek <jakub@redhat.com>
752
753 * c-lex.c (c_lex_with_flags) <case CPP_COMMENT>: For CPP_COMMENT
754 token with PREV_FALLTHROUGH, skip all following CPP_PADDING and
755 CPP_COMMENT tokens and set add_flags to PREV_FALLTHROUGH afterwards.
756
be845b04
JJ
7572016-10-07 Jakub Jelinek <jakub@redhat.com>
758
759 Implement LWG2296 helper intrinsic
760 * c-common.h (enum rid): Add RID_ADDRESSOF.
761 * c-common.c (c_common_reswords): Add __builtin_addressof.
762
c09c4992
BE
7632016-10-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
764
765 PR c++/77700
766 * c-common.c (c_common_truthvalue_conversion): Warn also for
767 suspicious enum values in boolean context.
768
342cfb3e
JJ
7692016-10-06 Jakub Jelinek <jakub@redhat.com>
770
771 Implement P0258R2 - helper for C++17
772 std::has_unique_object_representations trait
773 * c-common.h (enum rid): Add RID_HAS_UNIQUE_OBJ_REPRESENTATIONS.
774 * c-common.c (c_common_reswords): Add
775 __has_unique_object_representations.
776
2e69f143
JJ
7772016-10-05 Jakub Jelinek <jakub@redhat.com>
778
779 PR sanitizer/66343
780 * c-ubsan.c (ubsan_instrument_return): Don't call
781 initialize_sanitizer_builtins here.
782
700fff34
BE
7832016-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
784
785 * c-common.c (c_common_truthvalue_conversion): Warn also for suspicious
786 conditional expression in boolean context when only one arm is
787 non-boolean.
788
9563bfcd
JJ
7892016-10-05 Jakub Jelinek <jakub@redhat.com>
790
04a32443
JJ
791 PR sanitizer/77823
792 * c-ubsan.c (ubsan_instrument_shift): Return NULL_TREE if type0
793 is not integral.
794
9563bfcd
JJ
795 * c-common.c (c_common_reswords): Update comment for C++11.
796
f1644724
JM
7972016-10-04 Jason Merrill <jason@redhat.com>
798
799 * c-common.c (make_tree_vector_from_ctor): New.
800 * c-common.h: Declare it.
801
5a79befb
JJ
8022016-10-04 Jakub Jelinek <jakub@redhat.com>
803
804 * c-cppbuiltin.c (c_cpp_builtins): Don't define
805 __LIBGCC_JCR_SECTION_NAME__.
806
1633d3b9
BE
8072016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
808
809 * c-common.c (c_common_truthvalue_conversion): Warn for suspicious
810 left shift in boolean context.
811
a2c6e7f2
JJ
8122016-09-29 Jakub Jelinek <jakub@redhat.com>
813
814 Implement P0001R1 - C++17 removal of register storage class specifier
815 * c.opt (Wregister): New warning.
816 * c-opts.c (c_common_post_options): Enable -Wregister by
817 default for C++17.
818
75304c87
JG
8192016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
820
821 * c-opts.c (c_common_post_options): Remove special case for
822 TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard
823 in C++.
824
bbfac6da
JJ
8252016-09-27 Jakub Jelinek <jakub@redhat.com>
826
6e39060a
JJ
827 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for
828 -std=c++1z.
829
bbfac6da
JJ
830 * c-ada-spec.c (print_ada_declaration): Remove break after return.
831
e73cf9a2
TP
8322016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
833
834 * c-common.c: Include memmodel.h.
835
c6147dc4
MP
8362016-09-26 Marek Polacek <polacek@redhat.com>
837
838 * c-lex.c (c_common_has_attribute): Handle attribute fallthrough.
839
81fea426
MP
8402016-09-26 Marek Polacek <polacek@redhat.com>
841
842 PR c/7652
843 * c-common.c (c_common_attribute_table): Add fallthrough attribute.
844 (handle_fallthrough_attribute): New function.
845 (attribute_fallthrough_p): New function.
846 * c-common.h (attribute_fallthrough_p): Declare.
847
9a2300e9
MP
8482016-09-24 Marek Polacek <polacek@redhat.com>
849
850 PR c/77490
851 * c.opt (Wbool-operation): New.
852
a09e9e35
BE
8532016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
854
855 * c-common.c (c_common_truthvalue_conversion): Inhibit
856 Wint-in-bool-context warning with from_macro_definition_at.
857 Mention the expression will always evaluate to true.
858
d43b4ccc
MS
8592016-09-21 Martin Sebor <msebor@redhat.com>
860
861 PR bootstrap/77676
862 * c.opt (fprintf-return-value): Temporarily initialize to zero
863 to unblock bootstrap failures.
864
2e1c20b1
JJ
8652016-09-21 Jakub Jelinek <jakub@redhat.com>
866
867 PR c++/77651
868 * c.opt (Waligned-new=): Add RejectNegative.
869 (faligned-new=): Likewise. Spelling fix - change
870 aligned_new_threshhold to aligned_new_threshold.
871 * c-cppbuiltin.c (c_cpp_builtins): Change aligned_new_threshhold
872 to aligned_new_threshold.
873
88d0c3f0
MS
8742016-09-20 Martin Sebor <msebor@redhat.com>
875
876 PR middle-end/49905
877 * c.opt: Add -Wformat-length and -fprintf-return-value.
878
144a96e4
BE
8792016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
880
881 PR c++/77434
882 * c.opt (Wint-in-bool-context): New warning.
883 * c-common.c (c_common_truthvalue_conversion): Warn on integer
884 constants in boolean context.
885
63012d9a
JM
8862016-09-19 Joseph Myers <joseph@codesourcery.com>
887
888 * c-common.c (max_align_t_align): Also consider alignment of
889 float128_type_node.
890
931388ce
JM
8912016-09-15 Jason Merrill <jason@redhat.com>
892
893 * c-common.c (check_cxx_fundamental_alignment_constraints): Check
894 DECL_EXTERNAL.
895
38711381
JM
8962016-09-14 Jason Merrill <jason@redhat.com>
897
898 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
899 limit FIELD_DECL, either.
900
e51fbec3
MP
9012016-09-14 Marek Polacek <polacek@redhat.com>
902
903 * c-common.c (c_common_truthvalue_conversion): Use false instead of 0.
904 * c-common.h (build_unary_op): Change nonconvert parameter type to bool.
905 * c-omp.c (c_finish_omp_atomic): Use false instead of 0.
906
254830ba
DM
9072016-09-13 David Malcolm <dmalcolm@redhat.com>
908
909 * c-common.c (warn_logical_not_parentheses): Replace
910 rich_location::add_fixit_insert calls with add_fixit_insert_before
911 and add_fixit_insert_after, eliminating the "next_loc" calculation.
912
42763690
JM
9132016-09-13 Jason Merrill <jason@redhat.com>
914 Tom de Vries <tom@codesourcery.com>
915
916 PR c++/77427
917 * c-common.c (set_underlying_type): Don't treat array as builtin type.
918
9453eee9
JM
9192016-09-13 Jason Merrill <jason@redhat.com>
920
921 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
922 limit types at all.
923
e96809e3
JM
9242016-09-12 Jason Merrill <jason@redhat.com>
925
926 * c-common.c (check_cxx_fundamental_alignment_constraints): Fix
927 bit/byte confusion, allow large alignment for types.
928
54dcdb88
BE
9292016-09-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
930
931 PR c++/77496
932 * c-common.c (warn_for_omitted_condop): Also warn for boolean data.
933
d1463eb9
DM
9342016-09-12 David Malcolm <dmalcolm@redhat.com>
935
936 PR c/72858
937 * c-format.c (argument_parser::check_argument_type): Add params
938 "type_start" and "conversion_char". Use the former to generate
939 offset_to_type_start and pass it and conversion_char to
940 check_format_types.
941 (check_format_info_main): Capture the start of the type
942 information as "type_start", and pass it an format_char
943 to arg_parser.check_argument_type.
944 (check_format_types): Provide an example in the leading comment.
945 Add params "offset_to_type_start" and "conversion_char"; pass
946 them to format_type_warning calls.
947 (test_get_modifier_for_format_len): Likewise.
948 (matching_type_p): New function.
949 (get_format_for_type): Add param "conversion_char" and move
950 implementation into...
951 (get_format_for_type_1): ...new function, called twice.
952 Use new function matching_type_p rather than checking for
953 TYPE_CANONICAL equality.
954 (get_corrected_substring): New function.
955 (format_type_warning): Provide an example in the leading comment.
956 Add params "offset_to_type_start" and "conversion_char". Replace
957 call to get_format_for_type with call to get_corrected_substring
958 and move rejection of hints for widths/precisions there.
959 (assert_format_for_type_streq): Add param "conversion_char".
960 (ASSERT_FORMAT_FOR_TYPE_STREQ): Add param CONVERSION_CHAR.
961 (test_get_format_for_type_printf): Add conversion chars to the
962 tests, adding coverage for various combinations of integer
963 vs double conversions, and for preserving octal and hexadecimal
964 conversions.
965 (test_get_format_for_type_scanf): Add conversion chars to the
966 tests.
967
5b28efbb
TV
9682016-09-10 Tom de Vries <tom@codesourcery.com>
969
970 PR C/71602
971 * c-common.c (build_va_arg): Handle more strict
972 targetm.canonical_va_list_type. Replace first argument type error with
973 assert.
974
3f0177e7
MS
9752016-09-09 Martin Sebor <msebor@redhat.com>
976
977 PR c/77520
978 PR c/77521
979 * c-format.c (argument_parser::find_format_char_info): Use %qc
980 format directive unconditionally.
981
af63ba4b
JM
9822016-09-09 Jason Merrill <jason@redhat.com>
983
984 Implement C++17 new of over-aligned types.
985 * c.opt: Add -faligned-new and -Waligned-new.
986 * c-common.c (max_align_t_align): Split out from...
987 (cxx_fundamental_alignment_p): ...here.
988 * c-common.h: Declare it.
989 * c-cppbuiltin.c (c_cpp_builtins): Handle aligned new.
990
c65248cb
JM
9912016-09-09 Joseph Myers <joseph@codesourcery.com>
992
993 * c-cppbuiltin.c (builtin_define_type_width): New function.
994 (builtin_define_stdint_macros, c_cpp_builtins): Define type width
995 macros.
996
e5106e27
DM
9972016-09-07 David Malcolm <dmalcolm@redhat.com>
998
999 * c-common.c (get_cpp_ttype_from_string_type): Handle being passed
1000 a POINTER_TYPE.
1001 (substring_loc::get_location): Move to substring-locations.c,
1002 keeping implementation as...
1003 (c_get_substring_location): New function, from the above, reworked
1004 to use accessors rather than member lookup.
1005 * c-common.h (class substring_loc): Move to substring-locations.h,
1006 replacing with a forward decl.
1007 (c_get_substring_location): New decl.
1008 * c-format.c: Include "substring-locations.h".
1009 (format_warning_va): Move to substring-locations.c.
1010 (format_warning_at_substring): Likewise.
1011
a42e7952
MS
10122016-09-06 Martin Sebor <msebor@redhat.com>
1013
1014 PR c/77336
1015 * c-format.c (check_function_format): Avoid issuing warnings for
1016 functions unless they call format functions with non-constant
1017 format strings.
1018
b772a565
RB
10192016-09-06 Richard Biener <rguenther@suse.de>
1020
1021 PR c/77450
1022 * c-common.c (c_common_mark_addressable_vec): Handle
1023 COMPOUND_LITERAL_EXPR.
1024
25ff5dd3
MP
10252016-09-05 Marek Polacek <polacek@redhat.com>
1026
1027 PR c/77423
1028 * c-common.c (bool_promoted_to_int_p): New function.
1029 (expr_has_boolean_operands_p): New function.
1030 (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p.
1031 (maybe_warn_bool_compare): Use bool_promoted_to_int_p.
1032
21234eb5
TV
10332016-09-04 Tom de Vries <tom@codesourcery.com>
1034
1035 revert:
1036 2016-08-29 Tom de Vries <tom@codesourcery.com>
1037
1038 * c-common.c (build_va_arg): Replace first argument type error
1039 with assert.
1040
9dc5773f
JJ
10412016-09-02 Jakub Jelinek <jakub@redhat.com>
1042
1043 PR c/65467
1044 * c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions.
1045 (c_finish_omp_for): Reject _Atomic qualified iterators.
1046
10472016-09-01 Martin Sebor <msebor@redhat.com>
3d7b83b6
MS
1048
1049 * c-ada-spec.c (dump_ada_function_declaration): Increase buffer
1050 size to guarantee it fits the output of the formatted function
1051 regardless of its arguments.
1052
295844f6
MP
10532016-09-01 Marek Polacek <polacek@redhat.com>
1054
1055 PR c/7652
1056 * c-common.c (resolve_overloaded_builtin): Fix formatting. Add
1057 FALLTHRU comments.
1058
3d06b6f2
MP
10592016-08-29 Marek Polacek <polacek@redhat.com>
1060
1061 PR c/77292
1062 * c-common.c (warn_logical_not_parentheses): Don't warn for
1063 a comparison or a logical operator.
1064
34cedad5
TV
10652016-08-29 Tom de Vries <tom@codesourcery.com>
1066
1067 * c-common.c (build_va_arg): Fix type comparison assert.
1068
f162d717
TV
10692016-08-29 Tom de Vries <tom@codesourcery.com>
1070
1071 * c-common.c (build_va_arg): Replace first argument type error
1072 with assert.
1073
ba9bbd6f
TV
10742016-08-29 Tom de Vries <tom@codesourcery.com>
1075
1076 PR c/77398
1077 * c-common.c (build_va_arg): Add first argument error. Build va_arg
1078 with error_mark_node as va_list instead of with illegal va_list.
1079
ebef225f
MP
10802016-08-25 Marek Polacek <polacek@redhat.com>
1081 David Malcolm <dmalcolm@redhat.com>
1082
1083 * c-common.c (warn_logical_not_parentheses): Print fixit hints.
1084 * c-common.h (warn_logical_not_parentheses): Update declaration.
1085
b00e6e75
MP
10862016-08-22 Marek Polacek <polacek@redhat.com>
1087
1088 PR c++/77321
1089 * c-common.c (warn_for_memset): Check type for null.
1090
6dc198e3
JM
10912016-08-22 Joseph Myers <joseph@codesourcery.com>
1092
1093 * c-family/c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and
1094 _FloatNx types for suffixes for built-in functions.
1095
c65699ef
JM
10962016-08-19 Joseph Myers <joseph@codesourcery.com>
1097
1098 PR c/32187
1099 * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32)
1100 (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X)
1101 (RID_FLOAT128X): New enum rid values.
1102 (CASE_RID_FLOATN_NX): New macro.
1103 * c-common.c (c_common_reswords): Add _FloatN and _FloatNx
1104 keywords.
1105 (c_common_type_for_mode): Check for _FloatN and _FloatNx and
1106 corresponding complex types.
1107 (c_common_nodes_and_builtins): For non-C++, register _FloatN and
1108 _FloatNx and corresponding complex types.
1109 (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX.
1110 * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN
1111 and _FloatNx types for the widest type for determining
1112 DECIMAL_DIG. Define __LDBL_DECIMAL_DIG__ as well as
1113 __DECIMAL_DIG__ for long double. Handle FMA_SUFFIX being NULL.
1114 (c_cpp_builtins): Call builtin_define_float_constants for _FloatN
1115 and _FloatNx types.
1116 * c-lex.c (interpret_float): Handle _FloatN and _FloatNx
1117 constants.
1118 * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and
1119 _FloatNx types.
1120
cc015f3a
DM
11212016-08-18 David Malcolm <dmalcolm@redhat.com>
1122
1123 * c-opts.c (c_diagnostic_finalizer): Update for change to
1124 diagnostic_show_locus.
1125
cb18fd07
DM
11262016-08-18 David Malcolm <dmalcolm@redhat.com>
1127
1128 * c-common.c: Include "spellcheck.h".
1129 (cb_get_suggestion): New function.
1130 * c-common.h (cb_get_suggestion): New decl.
1131 * c-lex.c (init_c_lex): Initialize cb->get_suggestion to
1132 cb_get_suggestion.
1133
a76989dc
MP
11342016-08-18 Marek Polacek <polacek@redhat.com>
1135
1136 PR c/71514
1137 * c-common.c (get_atomic_generic_size): Disallow pointer-to-function
1138 and pointer-to-VLA.
1139
65e736c0
DM
11402016-08-16 David Malcolm <dmalcolm@redhat.com>
1141
1142 PR c/72857
1143 * c-common.c (substring_loc::get_range): Rename to...
1144 (substring_loc::get_location): ...this, converting param from a
1145 source_range * to a location_t *. Call
1146 get_source_location_for_substring rather than
1147 get_source_range_for_substring, and pass in m_caret_idx.
1148 * c-common.h (substring_loc::substring_loc): Add param "caret_idx".
1149 (substring_loc::get_range): Replace with...
1150 (substring_loc::get_location): ...this.
1151 (substring_loc::set_caret_index): New method.
1152 (substring_loc): Add field m_caret_idx.
1153 * c-format.c (format_warning_va): Update for above changes.
1154 Rename local "substring_loc" to "fmt_substring_loc" to avoid
1155 clashing with type name.
1156 (format_warning_at_char): Add caret_idx param to substring_loc ctor.
1157 (check_argument_type): Likewise.
1158 (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc"
1159 Use a copy when emitting warnings, setting the caret index from TYPE.
1160
7e1dde14 11612016-08-16 Eric Botcazou <ebotcazou@adacore.com>
8e745a17 1162 Arnaud Charlet <charlet@adacore.com>
7e1dde14
EB
1163
1164 * c-ada-spec.c (dump_number): New function.
1165 (handle_escape_character): Likewise.
1166 (print_ada_macros): Add handling of constant integers and strings.
1167
191816a3
MP
11682016-08-12 Marek Polacek <polacek@redhat.com>
1169
1170 PR c/7652
1171 * c-common.c (scalar_to_vector): Adjust fall through comment.
1172 * c-opts.c (c_common_handle_option): Likewise.
1173 * c-pragma.c (handle_pragma_pack): Add FALLTHRU.
1174 * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust
1175 fall through comment.
1176 * cilk.c (extract_free_variables): Add FALLTHRU.
1177
452df4a4
JM
11782016-08-10 Jason Merrill <jason@redhat.com>
1179
1180 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr.
1181
f3365c12
JM
11822016-08-09 Jason Merrill <jason@redhat.com>
1183
1184 * c-common.c (c_common_attribute_table): vector_size affects type
1185 identity.
1186
f0bc3323
MP
11872016-08-09 Marek Polacek <polacek@redhat.com>
1188
1189 PR c/7652
1190 * c-ada-spec.c (dump_generic_ada_node): Add return.
1191
98e5a19a
JM
11922016-08-09 Jason Merrill <jason@redhat.com>
1193
1194 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for
1195 C++17 constexpr lambdas.
1196
895aa8e1
DM
11972016-08-08 David Malcolm <dmalcolm@redhat.com>
1198
1199 PR c/64955
1200 * c-common.h (selftest::c_format_c_tests): New declaration.
1201 (selftest::run_c_tests): New declaration.
1202 * c-format.c: Include "selftest.h.
1203 (format_warning_va): Add param "corrected_substring" and use
1204 it to add a replacement fix-it hint.
1205 (format_warning_at_substring): Likewise.
1206 (format_warning_at_char): Update for new param of
1207 format_warning_va.
1208 (argument_parser::check_argument_type): Pass "fki" to
1209 check_format_types.
1210 (check_format_types): Add param "fki" and pass it to
1211 format_type_warning.
1212 (deref_n_times): New function.
1213 (get_modifier_for_format_len): New function.
1214 (selftest::test_get_modifier_for_format_len): New function.
1215 (get_format_for_type): New function.
1216 (format_type_warning): Add param "fki" and use it to attempt
1217 to provide hints for argument types when calling
1218 format_warning_at_substring.
1219 (selftest::get_info): New function.
1220 (selftest::assert_format_for_type_streq): New function.
1221 (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro.
1222 (selftest::test_get_format_for_type_printf): New function.
1223 (selftest::test_get_format_for_type_scanf): New function.
1224 (selftest::c_format_c_tests): New function.
1225
e52ed3fe
DM
12262016-08-08 David Malcolm <dmalcolm@redhat.com>
1227
1228 PR c/52952
1229 * c-format.c: Include "diagnostic.h".
1230 (location_column_from_byte_offset): Delete.
1231 (location_from_offset): Delete.
1232 (format_warning_va): New function.
1233 (format_warning_at_substring): New function.
1234 (format_warning_at_char): New function.
1235 (check_format_arg): Capture location of format_tree and pass to
1236 check_format_info_main.
1237 (argument_parser): Add fields "start_of_this_format" and
1238 "format_string_cst".
1239 (flag_chars_t::validate): Add param "format_string_cst". Convert
1240 warning_at call using location_from_offset to call to
1241 format_warning_at_char.
1242 (argument_parser::argument_parser): Add param "format_string_cst_"
1243 and use use it to initialize field "format_string_cst".
1244 Initialize new field "start_of_this_format".
1245 (argument_parser::read_format_flags): Convert warning_at call
1246 using location_from_offset to a call to format_warning_at_char.
1247 (argument_parser::read_any_format_left_precision): Likewise.
1248 (argument_parser::read_any_format_precision): Likewise.
1249 (argument_parser::read_any_other_modifier): Likewise.
1250 (argument_parser::find_format_char_info): Likewise, in three places.
1251 (argument_parser::parse_any_scan_set): Likewise, in one place.
1252 (argument_parser::handle_conversions): Likewise, in two places.
1253 (argument_parser::check_argument_type): Add param "fmt_param_loc"
1254 and use it to make a substring_loc. Pass the latter to
1255 check_format_types.
1256 (check_format_info_main): Add params "fmt_param_loc" and
1257 "format_string_cst". Convert warning_at calls using
1258 location_from_offset to calls to format_warning_at_char. Pass the
1259 new params to the arg_parser ctor. Pass "format_string_cst" to
1260 flag_chars.validate. Pass "fmt_param_loc" to
1261 arg_parser.check_argument_type.
1262 (check_format_types): Convert first param from a location_t
1263 to a const substring_loc & and rename to "fmt_loc". Attempt
1264 to extract the range of the relevant parameter and pass it
1265 to format_type_warning.
1266 (format_type_warning): Convert first param from a location_t
1267 to a const substring_loc & and rename to "fmt_loc". Add
1268 params "param_range" and "type". Replace calls to warning_at
1269 with calls to format_warning_at_substring.
1270
1c4d457e
DM
12712016-08-08 David Malcolm <dmalcolm@redhat.com>
1272
1273 * c-format.c (class flag_chars_t): New class.
1274 (struct length_modifier): New struct.
1275 (class argument_parser): New class.
1276 (flag_chars_t::flag_chars_t): New ctor.
1277 (flag_chars_t::has_char_p): New method.
1278 (flag_chars_t::add_char): New method.
1279 (flag_chars_t::validate): New method.
1280 (flag_chars_t::get_alloc_flag): New method.
1281 (flag_chars_t::assignment_suppression_p): New method.
1282 (argument_parser::argument_parser): New ctor.
1283 (argument_parser::read_any_dollar): New method.
1284 (argument_parser::read_format_flags): New method.
1285 (argument_parser::read_any_format_width): New method.
1286 (argument_parser::read_any_format_left_precision): New method.
1287 (argument_parser::read_any_format_precision): New method.
1288 (argument_parser::handle_alloc_chars): New method.
1289 (argument_parser::read_any_length_modifier): New method.
1290 (argument_parser::read_any_other_modifier): New method.
1291 (argument_parser::find_format_char_info): New method.
1292 (argument_parser::validate_flag_pairs): New method.
1293 (argument_parser::give_y2k_warnings): New method.
1294 (argument_parser::parse_any_scan_set): New method.
1295 (argument_parser::handle_conversions): New method.
1296 (argument_parser::check_argument_type): New method.
1297 (check_format_info_main): Introduce classes argument_parser
1298 and flag_chars_t, moving the code within the loop into methods
1299 of these classes. Make various locals "const".
1300
88fa5555
DM
13012016-08-05 David Malcolm <dmalcolm@redhat.com>
1302
1303 * c-common.c: Include "substring-locations.h".
1304 (get_cpp_ttype_from_string_type): New function.
1305 (g_string_concat_db): New global.
1306 (substring_loc::get_range): New method.
1307 * c-common.h (g_string_concat_db): New declaration.
1308 (class substring_loc): New class.
1309 * c-lex.c (lex_string): When concatenating strings, capture the
1310 locations of all tokens using a new obstack, and record the
1311 concatenation locations within g_string_concat_db.
1312 * c-opts.c (c_common_init_options): Construct g_string_concat_db
1313 on the ggc-heap.
1314
78169471
MP
13152016-07-29 Marek Polacek <polacek@redhat.com>
1316
638fc14f
MP
1317 PR c/71926
1318 * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the
1319 parentheses warning.
1320
78169471
MP
1321 PR c/71574
1322 * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL.
1323
1225d6b1
ML
13242016-07-28 Martin Liska <mliska@suse.cz>
1325
1326 PR gcov-profile/68025
1327 * c-common.c (handle_no_profile_instrument_function_attribute):
1328
ec1e2a40
BE
13292016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
1330
1331 * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of
1332 BITS_PER_UNIT_LOG.
1333
5ec2cd9f
JM
13342016-07-25 Jason Merrill <jason@redhat.com>
1335
1336 PR c++/65970
1337 * c.opt (fconstexpr-loop-limit): New.
1338
9dc5773f 13392016-07-22 Martin Sebor <msebor@redhat.com>
2e6b45af
MS
1340
1341 PR c++/71675
1342 * c-common.c (resolve_overloaded_builtin): Avoid converting
1343 __atomic_compare_exchange_n return type to that of what its
1344 first argument points to.
1345
e3fe09c1
UB
13462016-07-22 Uros Bizjak <ubizjak@gmail.com>
1347
1348 * c-common.c: Use HOST_WIDE_INT_M1U instead of
1349 ~(unsigned HOST_WIDE_INT) 0.
1350
bc91c436
ML
13512016-07-22 Martin Liska <mliska@suse.cz>
1352
1353 PR gcov-profile/69028
1354 PR gcov-profile/62047
1355 * cilk.c (create_cilk_helper_decl): Set location of a new decl
1356 to the current_function_decl.
1357
451dcc66
JM
13582016-07-21 Jason Merrill <jason@redhat.com>
1359
1360 PR c++/65168
1361 * c-common.c (c_common_truthvalue_conversion): Check
1362 c_inhibit_evaluation_warnings for warning about address of
1363 reference.
1364
de6a69ee
DM
13652016-07-20 David Malcolm <dmalcolm@redhat.com>
1366
1367 * c-common.h (lookup_name_fuzzy): Convert return type from tree to
1368 const char *.
1369
d022c55a
JM
13702016-07-15 Jason Merrill <jason@redhat.com>
1371
1372 * c-opts.c (c_common_post_options): Update -fabi-version default to 11.
1373
ddbbcb19
JJ
13742016-07-15 Jakub Jelinek <jakub@redhat.com>
1375
1376 PR c/71858
1377 * c-common.h (enum lookup_name_fuzzy_kind): Add
1378 FUZZY_LOOKUP_FUNCTION_NAME.
1379
d0cf395a
JM
13802016-07-08 Jason Merrill <jason@redhat.com>
1381
1382 P0145: Refining Expression Order for C++.
1383 * c.opts (-fargs-in-order): Rename to -fstrong-eval-order.
1384 * c-opts.c: Adjust.
1385
98d44e93
MT
13862016-07-05 Markus Trippelsdorf <markus@trippelsdorf.de>
1387
1388 PR c++/71214
1389 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.
1390
f9d8d994
TS
13912016-06-29 Thomas Schwinge <thomas@codesourcery.com>
1392
1393 * c-pragma.h (enum pragma_kind): Rename
1394 PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE. Adjust all
1395 users.
1396
4aa83879
RB
13972016-06-29 Richard Biener <rguenther@suse.de>
1398
1399 PR middle-end/71002
1400 * c-common.c (c_common_get_alias_set): Remove union type punning case.
1401
a25bd9e6
JM
14022016-06-24 Jason Merrill <jason@redhat.com>
1403
1404 P0145R2: Refining Expression Order for C++.
1405 * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of
1406 MODIFY_EXPR.
1407
a86451b9
JJ
14082016-06-24 Jakub Jelinek <jakub@redhat.com>
1409
1410 * c-common.c (check_builtin_function_arguments): Require last
1411 argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type.
1412 Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW
1413 if the last argument is pointer to enumerated or boolean type.
1414
1a4f11c8
DM
14152016-06-22 David Malcolm <dmalcolm@redhat.com>
1416
1417 PR c/70339
1418 * c-common.h (enum lookup_name_fuzzy_kind): New enum.
1419 (lookup_name_fuzzy): New prototype.
1420
fe55692c
JDA
14212016-06-21 John David Anglin <danglin@gcc.gnu.org>
1422
1423 * c-common.c (get_source_date_epoch): Use int64_t instead of long long.
1424
4eb24e01
JM
14252016-06-14 Jason Merrill <jason@redhat.com>
1426
1427 P0145R2: Refining Expression Order for C++.
1428 * c.opt (fargs-in-order): New.
1429 * c-opts.c (c_common_post_options): Adjust flag_args_in_order.
1430
ef7cf206
JJ
14312016-06-13 Jakub Jelinek <jakub@redhat.com>
1432
0dda258b
JJ
1433 PR sanitizer/71498
1434 * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
1435 all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.
1436
ef7cf206
JJ
1437 PR preprocessor/71183
1438 * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch
1439 to cb_get_source_date_epoch.
1440
50b15873
JJ
14412016-06-10 Jakub Jelinek <jakub@redhat.com>
1442
1443 PR c/68657
1444 * c.opt (Wpsabi): Add Warning flag.
1445
4d926e34
MS
14462016-06-10 Martin Sebor <msebor@redhat.com>
1447
1448 PR c/71392
1449 * gcc/c-family/c-common.c (handle_nonnull_attribute): Accept
1450 the nonnull attribute in type-generic builtins.
1451
e01b4e16
MS
14522016-06-09 Martin Sebor <msebor@redhat.com>
1453
1454 PR c/70883
1455 * c-common.c (builtin_function_validate_nargs): Make text of error
1456 message consistent with others like it.
1457
44a845ca
MS
14582016-06-08 Martin Sebor <msebor@redhat.com>
1459 Jakub Jelinek <jakub@redhat.com>
1460
1461 PR c++/70507
1462 PR c/68120
1463 * c-common.c (check_builtin_function_arguments): Handle
1464 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
1465
a80a7051
RB
14662016-06-08 Richard Biener <rguenther@suse.de>
1467
1468 * c-common.c (parse_optimize_options): Improve diagnostic messages.
1469
bfd67b47
RB
14702016-06-07 Richard Biener <rguenther@suse.de>
1471
1472 PR c/61564
1473 * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION
1474 options and warn about others.
1475
15c98b2e
ES
14762016-06-01 Eduard Sanou <dhole@openmailbox.org>
1477
1478 * c-common.c (get_source_date_epoch): Rename to
1479 cb_get_source_date_epoch.
1480 * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
1481 message when the parsing fails. Use error_at instead of fatal_error.
1482 * c-common.h (get_source_date_epoch): Rename to
1483 cb_get_source_date_epoch.
1484 * c-common.h (cb_get_source_date_epoch): Prototype.
1485 * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
1486 * c-common.h (c_omp_region_type): Remove trailing comma.
1487 * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
1488 * c-lex.c (c_lex_with_flags): Remove initialization of
1489 pfile->source_date_epoch.
1490
00631022
JJ
14912016-05-30 Jakub Jelinek <jakub@redhat.com>
1492
1493 PR c++/71349
1494 * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
1495 C_OMP_CLAUSE_SPLIT_TARGET. Put OMP_CLAUSE_NOWAIT to
1496 C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
1497 instead of C_OMP_CLAUSE_SPLIT_FOR.
1498
f17a223d
RB
14992016-05-24 Richard Biener <rguenther@suse.de>
1500
1501 PR middle-end/70434
1502 PR c/69504
1503 * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
1504 (convert_vector_to_array_for_subscript): ... this.
1505 * c-common.c (convert_vector_to_pointer_for_subscript): Use a
1506 VIEW_CONVERT_EXPR to an array type. Rename to ...
1507 (convert_vector_to_array_for_subscript): ... this.
1508
4f2e1536
MP
15092016-05-12 Marek Polacek <polacek@redhat.com>
1510
1511 PR c/70756
1512 * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
1513 size_in_bytes and pass LOC to it.
1514
d6e83a8d
MM
15152016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
1516
1517 PR c/43651
1518 * c.opt (Wduplicate-decl-specifier): New option.
1519
5c3a10fb
MP
15202016-05-11 Marek Polacek <polacek@redhat.com>
1521
1522 PR c++/71024
1523 * c-common.c (diagnose_mismatched_attributes): New function.
1524 * c-common.h (diagnose_mismatched_attributes): Declare.
1525
deef7113
MP
15262016-05-04 Marek Polacek <polacek@redhat.com>
1527
1528 * c.opt (Wdangling-else): New option.
1529
79ce98bc
MP
15302016-05-03 Marek Polacek <polacek@redhat.com>
1531
1532 PR c/70859
1533 * c-common.c (builtin_function_validate_nargs): Add location
1534 parameter. Use it.
1535 (check_builtin_function_arguments): Add location and arguments
1536 parameters. Use them.
1537 * c-common.h (check_builtin_function_arguments): Update declaration.
1538
381cdae4
RB
15392016-05-03 Richard Biener <rguenther@suse.de>
1540
1541 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
1542 allow call args to gimplify to SSA names.
1543
1d793c34
MP
15442016-05-03 Marek Polacek <polacek@redhat.com>
1545
1546 * c-common.h (enum c_omp_region_type): Remove stray comma.
1547
77886428
CP
15482016-05-02 Cesar Philippidis <cesar@codesourcery.com>
1549
1550 * c-common.h (enum c_omp_region_type): Define.
1551
697e0b28
RS
15522016-05-02 Richard Sandiford <richard.sandiford@arm.com>
1553
1554 * c-common.c (shorten_compare): Use wi::to_wide.
1555
e7ff0319
CP
15562016-04-29 Cesar Philippidis <cesar@codesourcery.com>
1557
1558 PR middle-end/70626
1559 * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
1560 * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
1561 reduction clauses in acc parallel loops.
1562
2fff3db8
MP
15632016-04-29 Marek Polacek <polacek@redhat.com>
1564
1565 PR c/70852
1566 * c-common.c (warn_for_memset): Check domain before accessing it.
1567
509063eb
DV
15682016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
1569
1570 PR/69089
1571 * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
1572 "aligned" attribute.
1573
b632761d
JM
15742016-04-28 Jason Merrill <jason@redhat.com>
1575
1576 * c-lex.c (c_common_has_attribute): Handle nodiscard.
1577
174f6622
ES
15782016-04-28 Eduard Sanou <dhole@openmailbox.org>
1579 Matthias Klose <doko@debian.org>
1580
1581 * c-common.c (get_source_date_epoch): New function, gets the environment
1582 variable SOURCE_DATE_EPOCH and parses it as long long with error
1583 handling.
1584 * c-common.h (get_source_date_epoch): Prototype.
1585 * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
1586
6bc2bb18
RB
15872015-04-27 Ryan Burn <contact@rnburn.com>
1588
1589 PR c++/69024
1590 PR c++/68997
1591 * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
1592 (cilk_recognize_spawn): Renamed from recognize_spawn and change to
1593 external linkage.
1594 (cilk_detect_and_unwrap): Corresponding changes.
1595 (extract_free_variables): Don't extract free variables from
1596 AGGR_INIT_EXPR slot.
1597 * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
1598 (cilk_recognize_spawn): Likewise.
1599
c1e1f433
BS
16002016-04-27 Bernd Schmidt <bschmidt@redhat.com>
1601
1602 * c.opt (Wmemset-elt-size): New option.
1603 * c-common.c (warn_for_memset): New function.
1604 * c-common.h (warn_for_memset): Declare.
1605
d067e05f
JM
16062016-04-25 Jason Merrill <jason@redhat.com>
1607
1608 * c-common.c (handle_unused_attribute): Accept CONST_DECL.
1609 No longer static.
1610 * c-common.h: Declare it.
1611 * c-lex.c (c_common_has_attribute): Add maybe_unused.
1612
9aa36ae5
JM
16132016-04-22 Jason Merrill <jason@redhat.com>
1614
1615 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
1616
477d4906
IV
16172016-04-20 Ilya Verbin <ilya.verbin@intel.com>
1618
1619 PR c++/69363
1620 * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
1621 * c-common.h (c_finish_cilk_clauses): Remove declaration.
1622
fe37c7af
MM
16232016-04-18 Michael Matz <matz@suse.de>
1624
1625 * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
1626 and SET_DECL_ALIGN.
1627
23f2660f
EB
16282016-04-17 Eric Botcazou <ebotcazou@adacore.com>
1629
1630 * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
1631 (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
1632 to incomplete types.
1633 (dump_nested_type): Remove redundant tests and tidy up.
1634 (print_ada_declaration): Also set TREE_VISITED on the declaration of
1635 a type which is the typedef of an original type.
1636
1e77281b
MP
16372016-04-15 Marek Polacek <polacek@redhat.com>
1638
1639 PR c/70651
1640 * c-common.c (build_va_arg): Change two asserts into errors and return
1641 error_mark_node.
1642
b3a77f21
MP
16432016-04-13 Marek Polacek <polacek@redhat.com>
1644
1645 PR c++/70639
1646 * c-indentation.c (should_warn_for_misleading_indentation): Bail out
1647 for switch statements, too.
1648
322b8466
JM
16492016-03-28 Jason Merrill <jason@redhat.com>
1650
1651 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
1652
fbdb6baf
MP
16532016-03-23 Marek Polacek <polacek@redhat.com>
1654
1655 PR c++/69884
1656 * c.opt (Wignored-attributes): New option.
1657
5c240f4d
DM
16582016-03-22 David Malcolm <dmalcolm@redhat.com>
1659
1660 PR c/69993
1661 * c-indentation.c (warn_for_misleading_indentation): Rewrite the
1662 diagnostic text, reversing the order of the warning and note so
1663 that they appear in source order.
1664
14ba7b28
MP
16652016-03-17 Marek Polacek <polacek@redhat.com>
1666
1667 PR c/69407
1668 * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
1669 operations.
1670
08a1cadc
JM
16712016-03-14 Jason Merrill <jason@redhat.com>
1672
2aaeea19
JM
1673 * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
1674
08a1cadc
JM
1675 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
1676
c06d25bb
RB
16772016-03-09 Richard Biener <rguenther@suse.de>
1678
1679 PR c/70143
1680 * c-common.c (strict_aliasing_warning): Add back
1681 alias_sets_conflict_p check.
1682
80aac5c8
JM
16832016-03-08 Jason Merrill <jason@redhat.com>
1684
1685 * c-opts.c (set_std_cxx1z): Don't enable concepts.
1686
64b23c13
DM
16872016-03-04 David Malcolm <dmalcolm@redhat.com>
1688
1689 PR c/68187
1690 * c-indentation.c (get_visual_column): Move code to determine next
1691 tab stop to...
1692 (next_tab_stop): ...this new function.
1693 (line_contains_hash_if): Delete function.
1694 (detect_preprocessor_logic): Delete function.
1695 (get_first_nws_vis_column): New function.
1696 (detect_intervening_unindent): New function.
1697 (should_warn_for_misleading_indentation): Replace call to
1698 detect_preprocessor_logic with a call to
1699 detect_intervening_unindent.
1700
729526f5
DM
17012016-03-04 David Malcolm <dmalcolm@redhat.com>
1702
1703 PR c/68187
1704 * c-indentation.c (should_warn_for_misleading_indentation): When
1705 suppressing warnings about cases where the guard and body are on
1706 the same column, only use the first non-whitespace column in place
1707 of the guard token column when dealing with "else" clauses.
1708 When rejecting aligned BODY and NEXT, loosen the requirement
1709 from equality with the first non-whitespace of guard to simply
1710 that they not be indented relative to it.
1711
e9a35493
RB
17122016-03-04 Richard Biener <rguenther@suse.de>
1713
1714 PR c++/70054
1715 * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
1716 instead of alias_sets_conflict_p.
1717
1be56bc5
MP
17182016-03-01 Marek Polacek <polacek@redhat.com>
1719
1720 PR c++/69795
1721 * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
1722 any DECL.
1723
35886f0b
MS
17242016-02-22 Martin Sebor <msebor@redhat.com>
1725
1726 PR middle-end/69780
1727 * c-common.c (check_builtin_function_arguments): Validate and
1728 reject invalid arguments to __builtin_alloca_with_align.
1729
4246c8da
MW
17302016-02-20 Mark Wielaard <mjw@redhat.com>
1731
1732 PR c/28901
1733 * c.opt (Wunused-const-variable): Turn into Alias for...
1734 (Wunused-const-variable=): New option.
1735
268be88c
BE
17362016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
1737
1738 PR c++/69865
1739 * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
1740 here...
1741 (c_common_init_options): ...to here.
1742 (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
1743
871b3f47
JJ
17442016-02-19 Jakub Jelinek <jakub@redhat.com>
1745
1746 PR c++/69826
1747 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
1748 (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
1749 flag_preprocess_only.
1750
bf14eba2
JJ
17512016-02-16 Jakub Jelinek <jakub@redhat.com>
1752
1753 PR c/69835
1754 * c.opt (Wnonnull-compare): Enable for -Wall.
1755
ba6b3795
JJ
17562016-02-15 Jakub Jelinek <jakub@redhat.com>
1757
1758 PR c++/69797
1759 * c-common.c (sync_resolve_size): Diagnose too few arguments
1760 even when params is non-NULL empty vector.
1761
a011cd92
BS
17622016-02-08 Bernd Schmidt <bschmidt@redhat.com>
1763
1764 PR target/60410
1765 * c.opt (fshort-double): Remove.
1766
46cb9332
MS
17672016-02-05 Martin Sebor <msebor@redhat.com>
1768
1769 PR c++/69662
1770 * c.opt (Warning options): Update -Wplacement-new to take
1771 an optional argument.
1772
e1b81f2b
JJ
17732016-02-01 Jakub Jelinek <jakub@redhat.com>
1774
1775 PR preprocessor/69543
1776 PR c/69558
1777 * c-pragma.c (handle_pragma_diagnostic): Pass input_location
1778 instead of loc to control_warning_option.
1779
b6adbb9f
NS
17802016-02-01 Nathan Sidwell <nathan@codesourcery.com>
1781
1782 * c.opt (fopenacc-dim=): New option.
1783
5d70666e
RB
17842016-01-27 Ryan Burn <contact@rnburn.com>
1785
1786 PR cilkplus/69267
1787 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
1788 gimplify_arg. Removed superfluous post_p argument.
1789 * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
1790 superfluous post_p argument.
1791 * c-gimplify.c (c_gimplify_expr): Likewise.
1792
01e1dea3
DM
17932016-01-26 David Malcolm <dmalcolm@redhat.com>
1794
1795 PR other/69006
1796 * c-opts.c (c_diagnostic_finalizer): Replace invocation of
1797 pp_newline_and_flush with pp_flush.
1798
9f04a53e
MS
17992016-01-20 Martin Sebor <msebor@redhat.com>
1800
1801 PR c/69405
1802 * c-common.c (sync_resolve_size): Avoid printing diagnostic about
1803 an incompatible argument when the argument isn't a valid tree node.
1804
7f26f7df
JM
18052016-01-18 Jason Merrill <jason@redhat.com>
1806
1807 PR c++/68767
1808 * c-common.c (check_function_arguments_recurse): Fold the whole
1809 COND_EXPR, not just the condition.
1810
f62bf092
TV
18112016-01-18 Tom de Vries <tom@codesourcery.com>
1812
1813 * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
1814 classify as loop clause.
1815
e0a575ff
JJ
18162016-01-15 Jakub Jelinek <jakub@redhat.com>
1817
1818 PR bootstrap/68271
1819 * c-pragma.c (c_register_pragma_1): Adjust comment to note that
1820 C++ FE no longer has limit on number of pragmas.
1821
18222015-01-14 Ryan Burn <contact@rnburn.com>
b6e3db06
RB
1823
1824 PR c++/69048
1825 * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
c47eaca6 1826 to add missing cleanup point.
b6e3db06 1827
c7df95d8
DM
18282016-01-14 David Malcolm <dmalcolm@redhat.com>
1829
1830 PR c++/68819
1831 * c-indentation.c (get_visual_column): Add location_t param.
1832 Handle the column number being zero by effectively disabling the
1833 warning, with an "inform".
1834 (should_warn_for_misleading_indentation): Add location_t argument
1835 for all uses of get_visual_column.
1836
21efdd80
PP
18372016-01-10 Patrick Palka <ppalka@gcc.gnu.org>
1838
1839 PR c++/69029
1840 * c-indentation.c (should_warn_for_misleading_indentation):
1841 Don't warn about do-while statements.
1842
7a127fa7
MS
18432016-01-07 Martin Sebor <msebor@redhat.com>
1844
1845 PR c/68966
1846 * c-common.c (sync_resolve_size): Reject first argument when it's
1847 a pointer to _Bool.
1848
c589e975
DM
18492016-01-05 David Malcolm <dmalcolm@redhat.com>
1850
1851 PR c/69122
1852 * c-indentation.c (get_visual_column): Remove default argument.
1853 (should_warn_for_misleading_indentation): For the multiline case,
1854 update call to get_visual_column for next_stmt_exploc so that it
1855 captures the location of the first non-whitespace character in the
1856 relevant line. Don't issue warnings if there is non-whitespace
1857 before the next statement.
1858
818ab71a
JJ
18592016-01-04 Jakub Jelinek <jakub@redhat.com>
1860
1861 Update copyright years.
1862
745e411d
DM
18632015-12-21 David Malcolm <dmalcolm@redhat.com>
1864
1865 * c-common.c (binary_op_error): Convert first param from
1866 location_t to rich_location * and use it when emitting an error.
1867 * c-common.h (binary_op_error): Convert first param from
1868 location_t to rich_location *.
1869
de67c4c3
DM
18702015-12-16 David Malcolm <dmalcolm@redhat.com>
1871
1872 * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
1873 * c-lex.c (conflict_marker_get_final_tok_kind): New function.
1874
4a38b02b
IV
18752015-12-15 Ilya Verbin <ilya.verbin@intel.com>
1876
1877 * c-common.c (c_common_attribute_table): Handle "omp declare target
1878 link" attribute.
1879
54d62f51
JJ
18802015-12-14 Jakub Jelinek <jakub@redhat.com>
1881
1882 PR c/68833
1883 * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
1884
8d4227c8
TB
18852014-12-12 Tobias Burnus <burnus@net-b.de>
1886
1887 PR fortran/68815
1888 * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
1889 specifiers (%d, %i,%u and %c).
1890
f6069ccc
DM
18912015-12-10 David Malcolm <dmalcolm@redhat.com>
1892
1893 * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
1894
63bbf46d
JJ
18952015-12-08 Jakub Jelinek <jakub@redhat.com>
1896
1897 PR c/48088
1898 PR c/68657
1899 * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
1900 * c-pragma.c (handle_pragma_diagnostic): Adjust
1901 control_warning_option caller.
1902
f79520bb
DM
19032015-12-07 David Malcolm <dmalcolm@redhat.com>
1904
1905 * c-common.c (c_cpp_error): Update for change to
1906 rich_location::set_range.
1907
b3d5bc62
JJ
19082015-12-04 Paolo Bonzini <bonzini@gnu.org>
1909
1910 * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
1911 shifting 1 out of the sign bit.
1912
19132015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
1914
1915 * c-common.c (c_common_attribute_table[]): Update max arguments
1916 count for "simd" attribute.
1917 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
1918
6eb4a537
JJ
19192015-12-03 Jakub Jelinek <jakub@redhat.com>
1920
1921 PR preprocessor/57580
1922 * c-ppoutput.c (print): Change printed field to bool.
1923 Move src_file last for smaller padding.
1924 (init_pp_output): Set print.printed to false instead of 0.
1925 (scan_translation_unit): Fix up formatting. Set print.printed
1926 to true after printing something other than newline.
1927 (scan_translation_unit_trad): Set print.printed to true instead of 1.
1928 (maybe_print_line_1): Set print.printed to false instead of 0.
1929 (print_line_1): Likewise.
1930 (do_line_change): Set print.printed to true instead of 1.
1931 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
1932 dump_macro): Set print.printed to false after printing newline.
1933
4250754e
JM
19342015-12-02 Jason Merrill <jason@redhat.com>
1935
f479b43d
JM
1936 * c-common.c (fold_for_warn): New.
1937 (warn_logical_operator, warn_tautological_cmp)
1938 (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
1939
4250754e
JM
1940 * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
1941 (c_fully_fold_internal, decl_constant_value_for_optimization):
1942 Move to c/c-fold.c.
1943 * c-common.h: Don't declare decl_constant_value_for_optimization.
1944
e9e32ee6
JM
19452015-12-02 Joseph Myers <joseph@codesourcery.com>
1946
1947 PR c/68162
1948 * c-common.h (c_build_qualified_type): Add extra default
1949 arguments.
1950
37d5ad46
JB
19512015-12-01 Julian Brown <julian@codesourcery.com>
1952 Cesar Philippidis <cesar@codesourcery.com>
1953 James Norris <James_Norris@mentor.com>
1954
1955 * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
1956 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
1957 (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
1958
f07862c7
EB
19592015-11-30 Eric Botcazou <ebotcazou@adacore.com>
1960
1961 * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
1962 (decl_sloc_common): Delete and move bulk of processing to...
1963 (decl_sloc): ...here.
1964 (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
1965 (dump_ada_double_name): Remove S parameter and compute the suffix.
1966 (dump_ada_array_type): Add PARENT parameter. Simplify computation of
1967 element type and deal with an anonymous one.
1968 (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
1969 (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type
1970 and remove reference to QUAL_UNION_TYPE.
1971 (dump_nested_types): Make 2 passes on the fields and move bulk to...
1972 (dump_nested_type): ...here. New function extracted from above.
1973 Generate a full declaration for anonymous element type of arrays.
1974 (print_ada_declaration): Really skip anonymous declarations. Remove
1975 references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type.
1976 Clean up processing of declarations of array types and objects.
1977 (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
1978 Remove obsolete code and tidy up.
1979
75c8aac3
JH
19802015-11-29 Jan Hubicka <hubicka@ucw.cz>
1981
1982 PR c/67581
1983 * c-common.c (handle_transparent_union_attribute): Update
1984 also type variants.
1985
b58d3df2
ML
19862015-11-27 Martin Liska <mliska@suse.cz>
1987
1988 PR c++/68312
1989 * array-notation-common.c (cilkplus_extract_an_triplets):
1990 Release vector of vectors.
1991 * cilk.c (gimplify_cilk_spawn): Free allocated memory.
1992
89a01fcf
EB
19932015-11-26 Eric Botcazou <ebotcazou@adacore.com>
1994
1995 PR c++/68527
1996 * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
1997 (print_ada_struct_decl): Likewise.
1998
cc5c5226
IZ
19992015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
2000
2001 PR c++/68001
2002 * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
2003 * cilk.c (recognize_spawn): Determine location in a more precise
2004 way.
2005
269adb9d
JM
20062015-11-19 Jason Merrill <jason@redhat.com>
2007
2008 * c-common.c (shorten_compare): But look through macros from
2009 system headers.
2010
d0eccfcd
JM
20112015-11-18 Jason Merrill <jason@redhat.com>
2012
2013 * c-common.c (shorten_compare): Don't -Wtype-limits if the
2014 non-constant operand comes from a macro.
2015
3e44547c
JM
20162015-11-17 Jason Merrill <jason@redhat.com>
2017
2018 PR bootstrap/68346
2019 * c-common.c (warn_tautological_cmp): Fold before checking for
2020 constants.
2021
0f62c7a0
MP
20222015-11-16 Marek Polacek <polacek@redhat.com>
2023
2024 PR c++/68362
2025 * c-common.c (check_case_bounds): Fold low and high cases.
2026
a868811e
MP
20272015-11-16 Marek Polacek <polacek@redhat.com>
2028
2029 * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
2030 * c-common.c (c_common_get_alias_set): Likewise.
2031 (handle_visibility_attribute): Likewise.
2032
fff77217
KY
20332015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
2034
2035 * c-common.c (handle_simd_attribute): New.
2036 (struct attribute_spec): Add entry for "simd".
2037 (handle_simd_attribute): New.
2038
269e63b7
KT
20392015-11-13 Kai Tietz <ktietz70@googlemail.com>
2040
2041 * c-lex.c (interpret_float): Use fold_convert.
2042
ebedc9a3
DM
20432015-11-13 David Malcolm <dmalcolm@redhat.com>
2044
2045 * c-common.c (c_fully_fold_internal): Capture existing souce_range,
2046 and store it on the result.
2047 * c-opts.c (c_common_init_options): Set
2048 global_dc->colorize_source_p.
2049
6e232ba4
JN
20502015-11-12 James Norris <jnorris@codesourcery.com>
2051 Joseph Myers <joseph@codesourcery.com>
2052
2053 * c-pragma.c (oacc_pragmas): Add entry for declare directive.
2054 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
2055 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
2056 PRAGMA_OACC_CLAUSE_LINK.
2057
e78bede6
MP
20582015-11-11 Marek Polacek <polacek@redhat.com>
2059
2060 PR c/68107
2061 PR c++/68266
2062 * c-common.c (valid_array_size_p): New function.
2063 * c-common.h (valid_array_size_p): Declare.
2064
3f8257db 20652015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
4ac93c7c
DH
2066
2067 PR bootstrap/68271
2068 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
2069
69f293c9
AM
20702015-11-11 Andrew MacLeod <amacleod@redhat.com>
2071
2072 * array-notation-common.c: Remove unused header files.
2073 * c-ada-spec.c: Likewise.
2074 * c-cilkplus.c: Likewise.
2075 * c-common.c: Likewise.
2076 * c-cppbuiltin.c: Likewise.
2077 * c-dump.c: Likewise.
2078 * c-format.c: Likewise.
2079 * c-gimplify.c: Likewise.
2080 * c-indentation.c: Likewise.
2081 * c-lex.c: Likewise.
2082 * c-omp.c: Likewise.
2083 * c-opts.c: Likewise.
2084 * c-pch.c: Likewise.
2085 * c-ppoutput.c: Likewise.
2086 * c-pragma.c: Likewise.
2087 * c-pretty-print.c: Likewise.
2088 * c-semantics.c: Likewise.
2089 * c-ubsan.c: Likewise.
2090 * cilk.c: Likewise.
2091 * stub-objc.c: Likewise.
2092
3a40d81d
NS
20932015-11-09 Thomas Schwinge <thomas@codesourcery.com>
2094 Cesar Philippidis <cesar@codesourcery.com>
2095 James Norris <jnorris@codesourcery.com>
2096 Julian Brown <julian@codesourcery.com>
2097 Nathan Sidwell <nathan@codesourcery.com>
2098
2099 * c-pragma.c (oacc_pragmas): Add "routine".
2100 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
2101
ee45a32d
EB
21022015-11-08 Eric Botcazou <ebotcazou@adacore.com>
2103
2104 * c-common.c (c_common_attributes): Add scalar_storage_order.
2105 (handle_scalar_storage_order_attribute): New function.
2106 * c-pragma.c (global_sso): New variable.
2107 (maybe_apply_pragma_scalar_storage_order): New function.
2108 (handle_pragma_scalar_storage_order): Likewise.
2109 (init_pragma): Register scalar_storage_order.
2110 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
2111 * c.opt (Wscalar-storage-order): New warning.
2112 (fsso-struct=): New option.
2113
eb11eb15
MS
21142015-11-08 Martin Sebor <msebor@redhat.com>
2115
2116 * c.opt (Wplacement-new): Add a period to the end of a sentence.
2117
0aad0198
RS
21182015-11-07 Richard Sandiford <richard.sandiford@arm.com>
2119
2120 * c-common.c: Don't undef DEF_BUILTIN.
2121
8a645150
DM
21222015-11-06 David Malcolm <dmalcolm@redhat.com>
2123
2124 * c-common.c (c_cpp_error): Convert parameter from location_t to
2125 rich_location *. Eliminate the "column_override" parameter and
2126 the call to diagnostic_override_column.
2127 Update the "done_lexing" clause to set range 0
2128 on the rich_location, rather than overwriting a location_t.
2129 * c-common.h (c_cpp_error): Convert parameter from location_t to
2130 rich_location *. Eliminate the "column_override" parameter.
2131
7a5e4956
CP
21322015-11-05 Cesar Philippidis <cesar@codesourcery.com>
2133 Thomas Schwinge <thomas@codesourcery.com>
2134 James Norris <jnorris@codesourcery.com>
2135
2136 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
2137 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
2138 clauses with parallel and kernels and loops.
2139 * c-pragma.h (enum pragma_omp_clause): Add entries for
2140 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
2141 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
2142 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
2143 INDEPENDENT,SEQ}.
2144 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
2145
e2f5cc96
MS
21462015-11-05 Martin Sebor <msebor@redhat.com>
2147
2148 PR c++/67942
2149 * c.opt (-Wplacement-new): New option.
2150
e01d41e5
JJ
21512015-11-05 Jakub Jelinek <jakub@redhat.com>
2152
2153 * c-common.h (c_finish_omp_atomic): Add TEST argument.
2154 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
2155 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
2156 save_expr or create_tmp_var* if TEST is true.
2157 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
2158 Don't call add_stmt here.
2159 (struct c_omp_check_loop_iv_data): New type.
2160 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
2161 c_omp_check_loop_iv_exprs): New functions.
2162 (c_omp_split_clauses): Adjust for lastprivate being allowed on
2163 distribute.
2164 (c_omp_declare_simd_clauses_to_numbers): Change
2165 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
2166 (c_omp_declare_simd_clauses_to_decls): Similarly change those
2167 from numbers to PARM_DECLs.
2168
595278be
MM
21692015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
2170
2171 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
2172 flag_checking.
2173
3f8257db 21742015-11-03 Bernd Schmidt <bschmidt@redhat.com>
c85158de
MS
2175
2176 PR c++-common/67882
b3d5bc62
JJ
2177 * c-common.h (fold_offsetof_1): Add argument.
2178 * c-common.c (fold_offsetof_1): Diagnose more invalid
c85158de
MS
2179 offsetof expressions that reference elements past the end of
2180 an array.
2181
4bf9e5a8
TS
21822015-11-03 Thomas Schwinge <thomas@codesourcery.com>
2183 Chung-Lin Tang <cltang@codesourcery.com>
2184
2185 * c-pragma.c (oacc_pragmas): Add "atomic".
2186 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
2187
3b1661a9
ES
21882015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
2189
2190 * c-common.c (handle_target_clones_attribute): New.
2191 (c_common_attribute_table): Add handle_target_clones_attribute.
2192 (handle_always_inline_attribute): Add check on target_clones attribute.
2193 (handle_target_attribute): Ditto.
2194
2adfab87
AM
21952015-10-29 Andrew MacLeod <amacleod@redhat.com>
2196
2197 * array-notation-common.c: Reorder #include's and remove duplicates.
2198 * c-ada-spec.c: Likewise.
2199 * c-cilkplus.c: Likewise.
2200 * c-common.c: Likewise.
2201 * c-cppbuiltin.c: Likewise.
2202 * c-dump.c: Likewise.
2203 * c-format.c: Likewise.
2204 * c-gimplify.c: Likewise.
2205 * c-indentation.c: Likewise.
2206 * c-lex.c: Likewise.
2207 * c-omp.c: Likewise.
2208 * c-opts.c: Likewise.
2209 * c-pch.c: Likewise.
2210 * c-ppoutput.c: Likewise.
2211 * c-pragma.c: Likewise.
2212 * c-pretty-print.c: Likewise.
2213 * c-semantics.c: Likewise.
2214 * c-ubsan.c: Likewise.
2215 * cilk.c: Likewise.
2216 * stub-objc.c: Likewise.
2217
d90ec4f2
JM
22182015-10-28 Jason Merrill <jason@redhat.com>
2219
2220 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
2221
88bae6f4
TS
22222015-10-27 Thomas Schwinge <thomas@codesourcery.com>
2223 James Norris <jnorris@codesourcery.com>
2224 Cesar Philippidis <cesar@codesourcery.com>
2225
2226 PR c/64765
2227 PR c/64880
2228 * c-common.h (c_oacc_split_loop_clauses): Declare function.
2229 * c-omp.c (c_oacc_split_loop_clauses): New function.
2230
b1726d6c
MS
22312015-10-21 Martin Sebor <msebor@redhat.com>
2232
2233 PR driver/68043
2234 * c.opt: End each sentence that describes an option with a period.
2235
fa60eeb9
MP
22362015-10-20 Marek Polacek <polacek@redhat.com>
2237
2238 * array-notation-common.c (is_cilkplus_vector_p): Define.
2239 * c-common.h (is_cilkplus_vector_p): Declare.
2240
95979049
MP
22412015-10-20 Marek Polacek <polacek@redhat.com>
2242
2243 * c.opt (std=gnu++11): Do not describe as experimental.
2244 (std=gnu++14): Likewise.
2245
2a9fb712
JM
22462015-10-19 Jason Merrill <jason@redhat.com>
2247
2248 * c-cppbuiltin.c (c_cpp_builtins): Define
2249 __cpp_nontype_template_args.
2250
13b380a3
JM
22512015-10-19 Jason Merrill <jason@redhat.com>
2252
2253 * c-cppbuiltin.c (c_cpp_builtins): Define
2254 __cpp_enumerator_attributes, __cpp_fold_expressions,
2255 __cpp_unicode_characters.
2256
d9a6bd32
JJ
22572015-10-13 Jakub Jelinek <jakub@redhat.com>
2258 Aldy Hernandez <aldyh@redhat.com>
2259
2260 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
2261 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
2262 (c_define_builtins): Likewise.
2263 * c-common.h (enum c_omp_clause_split): Add
2264 C_OMP_CLAUSE_SPLIT_TASKLOOP.
2265 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
2266 (c_finish_omp_for): Add ORIG_DECLV argument.
2267 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
2268 201511 instead of 201307.
2269 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
2270 OMP_CRITICAL_CLAUSES to it.
2271 (c_finish_omp_ordered): Add CLAUSES argument, set
2272 OMP_ORDERED_CLAUSES to it.
2273 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
2274 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
2275 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
2276 constructs and new OpenMP 4.5 clauses. Clear
2277 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
2278 verification code.
2279 * c-pragma.c (omp_pragmas_simd): Add taskloop.
2280 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
2281 (enum pragma_omp_clause): Add
2282 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
2283 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
2284
624d31fe
RS
22852015-10-05 Richard Sandiford <richard.sandiford@arm.com>
2286
2287 * c-lex.c (interpret_float): Use real_equal instead of
2288 REAL_VALUES_EQUAL.
2289
b8fd7909
JM
22902015-10-04 Jason Merrill <jason@redhat.com>
2291
2292 Implement N4514, C++ Extensions for Transactional Memory.
2293 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
2294 (c_common_attribute_table): Add transaction_safe_dynamic.
2295 transaction_safe now affects type identity.
2296 (handle_tm_attribute): Handle transaction_safe_dynamic.
2297 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
2298 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
2299 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
2300 (D_TRANSMEM): New.
2301 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
2302 * c-pretty-print.c (pp_c_attributes_display): Don't print
2303 transaction_safe in C++.
2304
12651878
MP
23052015-10-02 Marek Polacek <polacek@redhat.com>
2306
2307 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
2308
3e3b8d63
MP
23092015-10-02 Marek Polacek <polacek@redhat.com>
2310
2311 PR c/64249
2312 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
2313 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
2314 * c.opt (Wduplicated-cond): New option.
2315
0d1a8f75
JM
23162015-10-01 Joseph Myers <joseph@codesourcery.com>
2317
2318 * c.opt (std=c11): Do not describe as experimental.
2319 (std=gnu11): Likewise.
2320 (std=iso9899:2011): Likewise.
2321
3e32ee19
NS
23222015-09-28 Nathan Sidwell <nathan@codesourcery.com>
2323
2324 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
2325 (DEF_FUNCTION_TYPE_VAR_11): Delete.
2326
974348ee
MP
23272015-09-25 Marek Polacek <polacek@redhat.com>
2328
2329 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
2330 (ubsan_instrument_shift): Likewise.
2331
15dbc1a6
MP
23322015-09-25 Marek Polacek <polacek@redhat.com>
2333
2334 PR sanitizer/64906
2335 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
2336
6b95d7cc
PP
23372015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
2338
2339 * c-indentation.c (should_warn_for_misleading_indentation):
2340 Compare next_stmt_vis_column with guard_line_first_nws instead
2341 of with guard_line_vis_column.
2342
c1822f9c
MLI
23432015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
2344
2345 PR c/49654
2346 PR c/49655
2347 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
2348 options and options not valid for the current language.
2349
d5398058
PP
23502015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
2351
2352 * c-indentation.c (should_warn_for_misleading_indentation):
2353 Float out and consolidate the calls to get_visual_column that
2354 are passed guard_exploc as an argument. Compare
2355 next_stmt_vis_column with guard_line_first_nws instead of with
2356 body_line_first_nws.
2357
6b333269
NS
23582015-09-22 Nathan Sidwell <nathan@codesourcery.com>
2359
2360 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
2361 Wnamespaces): New C++ warnings.
2362
a75f1574
JM
23632015-09-22 Jason Merrill <jason@redhat.com>
2364
2365 * c-common.h (abi_compat_version_crosses): New.
2366 (warn_abi_version): Declare.
2367 * c-common.c: Define it.
2368 * c-opts.c (c_common_post_options): Handle it.
2369 flag_abi_compat_version defaults to 8.
2370
bdaaa8b7
VV
23712015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
2372
2373 Complete the implementation of N4230, Nested namespace definition.
2374 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
2375 __cpp_nested_namespace_definitions.
2376
eaa797e8
MLI
23772015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
2378
2379 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
2380
c4914de6
MLI
23812015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
2382
2383 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
2384 when warning.
2385 * c-pragma.h (pragma_lex): Add optional loc argument.
2386
fcb87c50
MM
23872015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
2388
2389 * c-format.c (check_format_arg): Adjust to use common block size in all
2390 object pools.
2391
31bdd08a
DM
23922015-09-15 David Malcolm <dmalcolm@redhat.com>
2393
2394 * c-format.c (location_from_offset): Update for change in
2395 signature of location_get_source_line.
2396 * c-indentation.c (get_visual_column): Likewise.
2397 (line_contains_hash_if): Likewise.
2398
aa9f4b4c
MP
23992015-09-14 Marek Polacek <polacek@redhat.com>
2400
2401 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
2402 setting various warnings.
2403
aa256c4a
MP
24042015-09-14 Marek Polacek <polacek@redhat.com>
2405
2406 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
2407 a negative value.
2408
0f876f22
MW
24092015-09-11 Mark Wielaard <mjw@redhat.com>
2410
2411 PR c/28901
2412 * c.opt (Wunused-variable): Option from common.opt.
2413 (Wunused-const-variable): New option.
2414
273aa49e
PC
24152015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
2416
2417 PR c++/53184
2418 * c.opt ([Wsubobject-linkage]): Add.
2419
1807ffc1
MS
24202015-09-03 Martin Sebor <msebor@redhat.com>
2421
2422 PR c/66516
2423 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
2424 functions.
2425 * c-common.c (reject_gcc_builtin): Define.
2426
38942840
BI
24272015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
2428
2429 PR middle-end/60586
2430 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
2431 prototype.
2432 * c-gimplify.c (c_gimplify_expr): Added a call to the function
2433 cilk_gimplify_call_params_in_spawned_fn.
2434 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
2435 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
2436 unwrapping.
2437
c316b5e4
MP
24382015-08-25 Marek Polacek <polacek@redhat.com>
2439
2440 PR middle-end/67330
2441 * c-common.c (handle_weak_attribute): Don't check whether the
2442 visibility can be changed here.
2443
584a7c46
MLI
24442015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
2445
2446 * c-lex.c (c_lex_with_flags): Use explicit locations.
2447
a79683d5
TS
24482015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
2449
2450 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
2451 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
2452
61717a45
FXC
24532015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2454
2455 PR middle-end/36757
2456 * c-common.c (check_builtin_function_arguments): Add check
2457 for BUILT_IN_SIGNBIT argument.
2458
329524f5
PC
24592015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
2460
2461 PR c++/67160
2462 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
2463 in c++1z mode.
2464
4ee55665
MP
24652015-08-17 Marek Polacek <polacek@redhat.com>
2466
2467 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
2468 with whitespaces before qualifier names.
2469
b893e375
MP
24702015-08-12 Marek Polacek <polacek@redhat.com>
2471
2472 PR c++/55095
2473 * c-common.c (maybe_warn_shift_overflow): Properly handle
2474 left-shifting 1 into the sign bit.
2475
c2d89095
MLI
24762015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2477
2478 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
2479
971e17ff
AS
24802015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
2481 Braden Obrzut <admin@maniacsvault.net>
2482 Jason Merrill <jason@redhat.com>
2483
2484 Add C++ Concepts TS support.
2485 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
2486 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
2487 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
2488 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
2489 * c-opts.c (set_std_cxx1z): Set flag_concepts.
2490 * c.opt (fconcepts): New.
2491
b3d5bc62
JJ
24922015-08-02 Martin Sebor <msebor@redhat.com>
2493
2494 * c.opt (-Wframe-address): New warning option.
2495
8ebca419
PP
24962015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
2497
2498 * c-indentation.c (should_warn_for_misleading_indentation):
2499 Improve heuristics.
2500
1a1e101f
PP
25012015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
2502
2503 * c-indentation.c (get_visual_column): Add parameter first_nws,
2504 use it. Update comment documenting the function.
2505 (is_first_nonwhitespace_on_line): Remove.
2506 (should_warn_for_misleading_indentation): Replace usage of
2507 of is_first_nonwhitespace_on_line with get_visual_column.
2508
992118a1
PP
25092015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
2510
2511 * c-indentation.h (struct token_indent_info): Define.
2512 (get_token_indent_info): Define.
2513 (warn_for_misleading_information): Declare.
2514 * c-common.h (warn_for_misleading_information): Remove.
2515 * c-identation.c (warn_for_misleading_indentation):
2516 Change declaration to take three token_indent_infos. Adjust
2517 accordingly.
2518 * c-identation.c (should_warn_for_misleading_indentation):
2519 Likewise. Bail out early if the body is a compound statement.
2520 (guard_tinfo_to_string): Define.
2521
e8fa3817
JM
25222015-07-30 Jason Merrill <jason@redhat.com>
2523
2524 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
2525 '*' for reference decay.
2526
173864e8
MP
25272015-07-30 Marek Polacek <polacek@redhat.com>
2528
2529 * c-common.c (warn_tautological_cmp): Bail for float types.
2530
f2afe6dd
MP
25312015-07-27 Marek Polacek <polacek@redhat.com>
2532
2533 PR bootstrap/67030
2534 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
2535
05b28fd6
MP
25362015-07-27 Marek Polacek <polacek@redhat.com>
2537
2538 PR c++/66555
2539 PR c/54979
2540 * c-common.c (find_array_ref_with_const_idx_r): New function.
2541 (warn_tautological_cmp): New function.
2542 * c-common.h (warn_tautological_cmp): Declare.
2543 * c.opt (Wtautological-compare): New option.
2544
5a5062b8
MP
25452015-07-23 Marek Polacek <polacek@redhat.com>
2546
2547 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
2548 (ubsan_instrument_shift): Likewise.
2549
dc891fe7
MP
25502015-07-23 Marek Polacek <polacek@redhat.com>
2551
2552 PR sanitizer/66908
2553 * c-ubsan.c: Include gimplify.h.
2554 (ubsan_instrument_division): Unshare OP0 and OP1.
2555 (ubsan_instrument_shift): Likewise.
2556
451b5e48
MP
25572015-07-20 Marek Polacek <polacek@redhat.com>
2558 Richard Sandiford <richard.sandiford@arm.com>
2559
2560 PR c++/55095
2561 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
2562 Use EXPR_LOC_OR_LOC.
2563 (maybe_warn_shift_overflow): New function.
2564 * c-common.h (maybe_warn_shift_overflow): Declare.
2565 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
2566 * c.opt (Wshift-overflow): New option.
2567
fb0b2914
ML
25682015-07-16 Martin Liska <mliska@suse.cz>
2569
2570 * c-format.c (static void check_format_info_main): Use
2571 object_allocator instead of pool_allocator.
2572 (check_format_arg): Likewise.
2573 (check_format_info_main): Likewise.
2574
903f5c23
AM
25752015-07-15 Andrew MacLeod <amacleod@redhat.com>
2576
2577 * c-opts.c: Remove multiline #include comment.
2578
026c3cfd
AH
25792015-07-12 Aldy Hernandez <aldyh@redhat.com>
2580
2581 * c-common.c: Fix double word typos.
2582
bb49ee66
EB
25832015-07-10 Eric Botcazou <ebotcazou@adacore.com>
2584
2585 * c-ada-spec.h (cpp_operation): Revert latest change.
2586 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
2587 constructors and destructors.
2588
1916bcb5
AM
25892015-07-09 Andrew MacLeod <amacleod@redhat.com>
2590
2591 * c-common.h: Adjust includes for flags.h changes.
2592 * stub-objc.c: Likewise.
026c3cfd 2593
a9dcd529
EB
25942015-07-08 Eric Botcazou <ebotcazou@adacore.com>
2595
2596 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
2597 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
2598
b03b462f
JJ
25992015-07-08 Jakub Jelinek <jakub@redhat.com>
2600
2601 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
2602 are to be removed, return NULL rather than original clauses list.
2603
c7131fb2
AM
26042015-07-07 Andrew MacLeod <amacleod@redhat.com>
2605
2606 * array-notation-common.c: Adjust includes.
2607 * c-ada-spec.c: Likewise.
2608 * c-cilkplus.c: Likewise.
2609 * c-common.h: Likewise.
2610 * c-cppbuiltin.c: Likewise.
2611 * c-dump.c: Likewise.
2612 * c-format.c: Likewise.
2613 * c-gimplify.c: Likewise.
2614 * c-indentation.c: Likewise.
2615 * c-lex.c: Likewise.
2616 * c-omp.c: Likewise.
2617 * c-opts.c: Likewise.
2618 * c-pch.c: Likewise.
2619 * c-ppoutput.c: Likewise.
2620 * c-pragma.c: Likewise.
2621 * c-pretty-print.c: Likewise.
2622 * c-semantics.c: Likewise.
2623 * c-ubsan.c: Likewise.
2624 * cilk.c: Likewise.
2625 * stub-objc.c: Likewise.
2626
2a7fb83f
EB
26272015-07-07 Eric Botcazou <ebotcazou@adacore.com>
2628
2629 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
2630 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
2631
a03c9bf1
JM
26322015-07-01 Jason Merrill <jason@redhat.com>
2633
36a85135
JM
2634 * c-common.h (D_CXX11): Rename from D_CXX0X.
2635 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
2636 * c-common.c: Adjust.
2637
e7fa68d5
JM
2638 * c-opts.c (c_common_post_options): Default to C++14.
2639
a03c9bf1
JM
2640 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
2641
fe95b036
ESR
26422015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
2643
2644 Implement N4197 - Adding u8 character literals
b3d5bc62 2645 * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
a64be36b 2646 CPP_CHAR.
b3d5bc62 2647 * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
a64be36b 2648 CPP_UTF8CHAR_USERDEF tokens.
b3d5bc62 2649 * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
a64be36b
EB
2650 and CPP_UTF8CHAR tokens.
2651 (lex_charconst): Treat CPP_UTF8CHAR token.
fe95b036 2652
da2e71c9
MLI
26532015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2654
2655 PR fortran/66605
2656 * c-common.c (do_warn_unused_parameter): Move here.
2657 * c-common.h (do_warn_unused_parameter): Declare.
2658
b155cfd9
MP
26592015-06-29 Marek Polacek <polacek@redhat.com>
2660
2661 PR c/66322
2662 * c-common.c (check_case_bounds): Add bool * parameter. Set
2663 OUTSIDE_RANGE_P.
2664 (c_add_case_label): Add bool * parameter. Pass it down to
2665 check_case_bounds.
2666 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
2667 warning here.
2668 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
2669 declarations.
2670
31521951
MP
26712015-06-27 Marek Polacek <polacek@redhat.com>
2672
2673 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
2674 or VECTOR_INTEGER_TYPE_P throughout.
2675 * c-gimplify.c: Likewise.
2676
22d03525
MP
26772015-06-26 Marek Polacek <polacek@redhat.com>
2678
2679 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
2680 * c-common.c (c_fully_fold_internal): Likewise.
2681 (c_alignof_expr): Likewise.
2682 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
2683 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
b1726d6c 2684 * cilk.c (create_parm_list): Likewise.
22d03525 2685
af05e6e5
MP
26862015-06-26 Marek Polacek <polacek@redhat.com>
2687
2688 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
2689
f0889939
AM
26902015-06-25 Andrew MacLeod <amacleod@redhat.com>
2691
2692 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
2693 * c-gimplify.c: Likewise.
2694 * c-pragma.c: Likewise.
2695 * c-ubsan.c: Likewise.
2696 * cilk.c: Likewise.
2697
ca752f39
RS
26982015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2699
2700 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
2701 ggc_hasher.
2702
16a16ec7
AM
27032015-06-25 Andrew MacLeod <amacleod@redhat.com>
2704
2705 * cilk.c: Move calls.h after tm.h in the include chain.
2706
0ae9bd27
MP
27072015-06-25 Marek Polacek <polacek@redhat.com>
2708
2709 * array-notation-common.c: Use VAR_P throughout.
2710 * c-ada-spec.c: Likewise.
2711 * c-common.c: Likewise.
2712 * c-format.c: Likewise.
2713 * c-gimplify.c: Likewise.
2714 * c-omp.c: Likewise.
2715 * c-pragma.c: Likewise.
2716 * c-pretty-print.c: Likewise.
2717 * cilk.c: Likewise.
2718
62f9079a
MP
27192015-06-25 Marek Polacek <polacek@redhat.com>
2720
2721 * cilk.c (extract_free_variables): Use is_global_var.
2722
0fa16060
RS
27232015-06-23 Richard Sandiford <richard.sandiford@arm.com>
2724
2725 * c-common.c: Don't include target-def.h.
2726
a68ae2e1
MP
27272015-06-23 Marek Polacek <polacek@redhat.com>
2728
2729 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
2730 when comparing INTEGER_CSTs.
2731
c6a2f2d9
PMR
27322015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
2733
2734 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
2735 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
2736 (dump_ada_template): Skip partially specialized types.
2737
6b4db501
MM
27382015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
2739
2740 * c-common.c (scalar_to_vector): Use std::swap instead of manually
2741 swapping.
2742
abb226c9
AM
27432015-06-17 Andrew MacLeod <amacleod@redhat.com>
2744
2745 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
2746 * c-ada-spec.c: Likewise.
2747 * c-cilkplus.c: Likewise.
2748 * c-common.c: Likewise.
2749 * c-common.h: Likewise.
2750 * c-cppbuiltin.c: Likewise.
2751 * c-dump.c: Likewise.
2752 * c-format.c: Likewise.
2753 * c-gimplify.c: Likewise.
2754 * c-indentation.c: Likewise.
2755 * c-lex.c: Likewise.
2756 * c-omp.c: Likewise.
2757 * c-opts.c: Likewise.
2758 * c-pch.c: Likewise.
2759 * c-ppoutput.c: Likewise.
2760 * c-pragma.c: Likewise.
2761 * c-pretty-print.c: Likewise.
2762 * c-semantics.c: Likewise.
2763 * c-ubsan.c: Likewise.
2764 * cilk.c: Likewise.
2765 * stub-objc.c: Likewise.
2766
076fecad
PP
27672015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
2768
2769 PR c++/65168
2770 * c-common.c (c_common_truthvalue_conversion): Warn when
2771 converting an address of a reference to a truth value.
2772
13fdf2e2
AM
27732015-06-08 Andrew MacLeod <amacleod@redhat.com>
2774
2775 * array-notation-common.c : Adjust include files.
2776 * c-ada-spec.c : Likewise.
2777 * c-cilkplus.c : Likewise.
2778 * c-common.c : Likewise.
2779 * c-common.h : Likewise.
2780 * c-cppbuiltin.c : Likewise.
2781 * c-dump.c : Likewise.
2782 * c-format.c : Likewise.
2783 * c-gimplify.c : Likewise.
2784 * c-indentation.c : Likewise.
2785 * c-lex.c : Likewise.
2786 * c-omp.c : Likewise.
2787 * c-opts.c : Likewise.
2788 * c-pch.c : Likewise.
2789 * c-ppoutput.c : Likewise.
2790 * c-pragma.c : Likewise.
2791 * c-pretty-print.c : Likewise.
2792 * c-semantics.c : Likewise.
2793 * c-ubsan.c : Likewise.
2794 * cilk.c : Likewise.
2795 * stub-objc.c : Likewise.
2796
a1661b90
MP
27972015-06-08 Marek Polacek <polacek@redhat.com>
2798
2799 PR c/66415
2800 * c-format.c (location_from_offset): Return LOC if LINE is null.
2801
d7438551
AH
28022015-06-05 Aldy Hernandez <aldyh@redhat.com>
2803
2804 * c-common.h (c_parse_final_cleanups): New prototype.
2805 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
2806
b3d5bc62
JJ
28072015-06-04 Sriraman Tallam <tmsriram@google.com>
2808
2809 * c-common.c (noplt): New attribute.
2810 (handle_noplt_attribute): New handler.
2811
ecb9f223
AM
28122015-06-04 Andrew MacLeod <amacleod@redhat.com>
2813
2814 * array-notation-common.c: Adjust includes for restructured coretypes.h.
2815 * c-ada-spec.c: Likewise.
2816 * c-cilkplus.c: Likewise.
2817 * c-common.c: Likewise.
2818 * c-common.h: Likewise.
2819 * c-cppbuiltin.c: Likewise.
2820 * c-dump.c: Likewise.
2821 * c-format.c: Likewise.
2822 * c-gimplify.c: Likewise.
2823 * c-indentation.c: Likewise.
2824 * c-lex.c: Likewise.
2825 * c-omp.c: Likewise.
2826 * c-opts.c: Likewise.
2827 * c-pch.c: Likewise.
2828 * c-ppoutput.c: Likewise.
2829 * c-pragma.c: Likewise.
2830 * c-pretty-print.c: Likewise.
2831 * c-semantics.c: Likewise.
2832 * c-ubsan.c: Likewise.
2833 * cilk.c: Likewise.
2834 * stub-objc.c: Likewise.
2835
6ac48155
DM
28362015-06-02 David Malcolm <dmalcolm@redhat.com>
2837
2838 PR c/66220:
2839 * c-indentation.c (should_warn_for_misleading_indentation): Use
2840 expand_location rather than expand_location_to_spelling_point.
2841 Don't warn if the guarding statement is more indented than the
2842 next/body stmts.
2843
773ce42e
DM
28442015-06-02 David Malcolm <dmalcolm@redhat.com>
2845
2846 * c-indentation.c (warn_for_misleading_indentation): Bail out
2847 immediately if -Wmisleading-indentation isn't enabled.
2848
4fef8379
ML
28492015-06-01 Martin Liska <mliska@suse.cz>
2850
2851 * c-format.c (check_format_arg):Use new type-based pool allocator.
2852 (check_format_info_main) Likewise.
2853
1edfb384
EB
28542015-05-31 Eric Botcazou <ebotcazou@adacore.com>
2855
2856 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
2857 (has_nontrivial_methods): Likewise.
2858
9677ef52
MP
28592015-05-25 Marek Polacek <polacek@redhat.com>
2860
2861 * c-ubsan.c (ubsan_instrument_shift): Use type0.
2862
fd5c817a
MP
28632015-05-22 Marek Polacek <polacek@redhat.com>
2864
2865 PR c/47043
2866 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
2867
a2f45fe6 28682015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
581edfa3
TS
2869
2870 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
2871 STACK_GROWS_DOWNWARD.
2872
a2f45fe6 28732015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
62f9f30b
TS
2874
2875 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
2876 STACK_GROWS_DOWNWARD rather than if it is defined.
2877
0fee2ac2 28782015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
b1726d6c 2879
0fee2ac2
MLI
2880 PR c/52952
2881 * c-format.c (location_column_from_byte_offset): New.
2882 (location_from_offset): New.
2883 (struct format_wanted_type): Add offset_loc field.
2884 (check_format_info): Move handling of location for extra arguments
2885 closer to the point of warning.
2886 (check_format_info_main): Pass the result of location_from_offset
2887 to warning_at.
2888 (format_type_warning): Pass the result of location_from_offset
2889 to warning_at.
2890
cf4ef6f7
MP
28912015-05-20 Marek Polacek <polacek@redhat.com>
2892
2893 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
2894
3a65ee74
MP
28952015-05-20 Marek Polacek <polacek@redhat.com>
2896
2897 * c-ada-spec.c (dump_sloc): Use DECL_P.
2898
21b634ae
MP
28992015-05-20 Marek Polacek <polacek@redhat.com>
2900
2901 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
2902 * c-common.c: Likewise.
2903
0e50b624
DM
29042015-05-19 David Malcolm <dmalcolm@redhat.com>
2905
2906 * c-common.h (fe_file_change): Strengthen param from
2907 const line_map * to const line_map_ordinary *.
2908 (pp_file_change): Likewise.
2909 * c-lex.c (fe_file_change): Likewise.
2910 (cb_define): Use linemap_check_ordinary when invoking
2911 SOURCE_LINE.
2912 (cb_undef): Likewise.
2913 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
2914 invoking cb_file_change.
2915 (c_finish_options): Likewise.
2916 (push_command_line_include): Likewise.
2917 (cb_file_change): Strengthen param "new_map" from
2918 const line_map * to const line_map_ordinary *.
2919 * c-ppoutput.c (cb_define): Likewise for local "map".
2920 (pp_file_change): Likewise for param "map" and local "from".
2921
fab27f52
MM
29222015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
2923
2924 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
2925
2fe1d762
TV
29262015-05-18 Tom de Vries <tom@codesourcery.com>
2927
2928 * c-common.c (build_va_arg_1): New function.
2929 (build_va_arg): Add address operator to va_list operand if necessary.
2930
7a37fa90
MM
29312015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
2932
2933 PR c/48956
2934 * c-common.c (int_safely_convertible_to_real_p): Define.
2935 (unsafe_conversion_p): Check conversions involving complex types.
2936 (conversion_warning): Add new warning message for conversions which
2937 discard imaginary component.
2938 * c-common.h: (enum conversion_safety): Add new enumerator for such
2939 conversions.
2940
3aa3c9fc
MP
29412015-05-14 Marek Polacek <polacek@redhat.com>
2942
2943 PR c/66066
2944 PR c/66127
2945 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
2946 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
2947 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
2948 use it. If FOR_INT_CONST, require that all evaluated operands be
2949 INTEGER_CSTs.
2950
c3388e62
DM
29512015-05-12 David Malcolm <dmalcolm@redhat.com>
2952
2953 * c-common.h (warn_for_misleading_indentation): New prototype.
2954 * c-indentation.c: New file.
2955 * c.opt (Wmisleading-indentation): New option.
2956
c7b38fd5
TV
29572015-05-12 Tom de Vries <tom@codesourcery.com>
2958
2959 PR tree-optimization/66010
2960 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
2961
381bf11e
JM
29622015-05-09 Jason Merrill <jason@redhat.com>
2963
edff0c06
JM
2964 * c-opts.c (c_common_post_options): Also clear
2965 cpp_opts->cpp_warn_cxx11_compat.
2966
129211bc
JM
2967 * c-common.h (enum cxx_dialect): Add cxx_unset.
2968 * c-common.c (cxx_dialect): Initialize to cxx_unset.
2969 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
2970
381bf11e
JM
2971 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
2972 (std=gnu++0x): Mark as Undocumented.
2973 (std=gnu++1y): Add deprecated message.
2974
fe191308
JM
29752015-05-08 Jason Merrill <jason@redhat.com>
2976
765189ff
JM
2977 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
2978 * c-opts.c: Adjust.
2979
fe191308
JM
2980 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
2981
755e528f
MP
29822015-05-08 Marek Polacek <polacek@redhat.com>
2983
2984 PR c/64918
2985 * c.opt (Woverride-init-side-effects): New option.
2986
0173bd2a
MP
29872015-05-07 Marek Polacek <polacek@redhat.com>
2988
2989 PR c/65179
2990 * c-common.c (c_fully_fold_internal): Warn when left shifting a
2991 negative value.
2992 * c.opt (Wshift-negative-value): New option.
2993 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
2994 when -Wextra and C99/C++11 mode.
2995
e0f0d3b9
MP
29962015-05-07 Marek Polacek <polacek@redhat.com>
2997 Martin Uecker <uecker@eecs.berkeley.edu>
2998
2999 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
3000 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
3001
8243e2a9
JM
30022015-05-05 Jason Merrill <jason@redhat.com>
3003
3004 * c.opt (Wterminate): New.
3005
577cd070
MP
30062015-04-30 Marek Polacek <polacek@redhat.com>
3007
3008 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
3009 require that the non-constant be of a boolean type.
3010
0373796b
JT
30112015-04-29 Josh Triplett <josh@joshtriplett.org>
3012
e0f0d3b9
MP
3013 * c-common.c (handle_section_attribute): Refactor to reduce
3014 nesting and distinguish between error cases.
0373796b 3015
716c0ba6
MP
30162015-04-29 Marek Polacek <polacek@redhat.com>
3017
3018 PR c/64610
3019 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
3020 with 0/1.
3021
8848828b
JJ
30222015-04-29 Jakub Jelinek <jakub@redhat.com>
3023
3024 * c-common.h (omp_clause_mask): Unconditionally define as a class.
3025 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
3026 HOST_BITS_PER_WIDE_INT.
3027
ecd0e562
TV
30282015-04-28 Tom de Vries <tom@codesourcery.com>
3029
3030 PR tree-optimization/65887
3031 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
3032
2a877204 30332015-04-28 Eric Botcazou <ebotcazou@adacore.com>
e0f0d3b9 3034 Pierre-Marie de Rodat <derodat@adacore.com>
2a877204
EB
3035
3036 * c-ada-spec.c (in_function): Delete.
3037 (dump_generic_ada_node): Do not change in_function and remove the
3038 redundant code dealing with it.
3039 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
3040 (print_ada_methods): Output the static member functions in a nested
3041 package after the regular methods as well as associated renamings.
3042
4853031e
MP
30432015-04-24 Marek Polacek <polacek@redhat.com>
3044
3045 PR c/65830
3046 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
3047 and OPT_Wshift_count_overflow.
3048
8c2b7f79
MP
3049 PR c/63357
3050 * c-common.c (warn_logical_operator): Warn if the operands have the
3051 same expressions.
3052
b8787813
MP
30532015-04-24 Marek Polacek <polacek@redhat.com>
3054
3055 PR c/61534
3056 * c-common.c (warn_logical_operator): Bail if either operand comes
3057 from a macro expansion.
3058
8fba1830
BRF
30592015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3060
3061 PR target/55143
3062 * c-common.c (c_default_pointer_mode): Add definition.
3063 * c-common.h (c_default_pointer_mode): Add declaration.
3064
17958621
JJ
30652015-03-11 Jakub Jelinek <jakub@redhat.com>
3066
3067 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
3068 on record_builtin_type argument.
3069
7ccb1a11
JJ
30702015-03-10 Jakub Jelinek <jakub@redhat.com>
3071
3072 PR c/65120
3073 * c-common.c (warn_logical_not_parentheses): Don't warn for
3074 !x == 0 or !x != 0.
3075
04fd785e
MP
30762015-03-07 Marek Polacek <polacek@redhat.com>
3077
3078 PR sanitizer/65280
3079 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
3080 before trying to figure out whether we have a flexible array member.
3081
a4e26206 30822015-03-06 Eric Botcazou <ebotcazou@adacore.com>
8e745a17 3083 Jonathan Wakely <jwakely.gcc@gmail.com>
a4e26206
EB
3084
3085 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
3086
0d2489f4
EB
30872015-03-05 Eric Botcazou <ebotcazou@adacore.com>
3088
3089 PR ada/65319
3090 * c-ada-spec.c (print_destructor): Remove obsolete code.
3091
83ed54d7
EB
30922015-03-01 Eric Botcazou <ebotcazou@adacore.com>
3093
3094 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
3095 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
3096 DECL_TEMPLATE_RESULT emulations.
3097 (dump_ada_template)): Add guard for TYPE_METHODS.
3098
7631f0e2
MP
30992015-02-27 Marek Polacek <polacek@redhat.com>
3100
3101 PR c/65040
3102 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
3103
d1783ae5
KT
31042015-02-27 Kai Tietz <ktietz@redhat.com>
3105
3106 PR c/35330
3107 * c-pragma.c (handle_pragma_weak): Do not try to create
3108 weak/alias of declarations not being function, or variable
3109 declarations.
3110
56a9f6bc
TS
31112015-02-24 Thomas Schwinge <thomas@codesourcery.com>
3112
3113 PR libgomp/64625
3114 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
3115 Remove macros.
3116 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
3117
3d5cb23d
MP
31182015-02-16 Marek Polacek <polacek@redhat.com>
3119
3120 PR c/65066
3121 * c-format.c (check_format_types): Handle null param.
3122
fa008882
MP
31232015-02-13 Marek Polacek <polacek@redhat.com>
3124
3125 PR c/65040
3126 * c-format.c (check_format_types): Don't warn about different
3127 signedness if the original value is in the range of WANTED_TYPE.
3128
785f21af
JM
31292015-02-12 Jason Merrill <jason@redhat.com>
3130
3131 PR c++/64956
3132 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
3133 to the current highest version.
3134 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
3135
4886ec8e
JJ
31362015-02-04 Jakub Jelinek <jakub@redhat.com>
3137
3138 PR c/64824
3139 PR c/64868
3140 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
3141 instead of RDIV_EXPR. Use build_binary_op instead of
3142 build2_loc.
3143
40fecdd6
JM
31442015-01-30 Joseph Myers <joseph@codesourcery.com>
3145
3146 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
3147 to pass input_location as first argument.
3148
a0c88d06
TV
31492015-01-23 Tom de Vries <tom@codesourcery.com>
3150
3151 PR libgomp/64672
3152 * c.opt (fopenacc): Mark as LTO option.
3153
1506ae0e
TV
31542015-01-23 Tom de Vries <tom@codesourcery.com>
3155
3156 PR libgomp/64707
3157 * c.opt (fopenmp): Mark as LTO option.
3158
31be63ab
JJ
31592015-01-21 Jakub Jelinek <jakub@redhat.com>
3160
3161 PR c/63307
b1726d6c 3162 * cilk.c (fill_decls_vec): Only put decls into vector v.
31be63ab
JJ
3163 (compare_decls): Fix up formatting.
3164
31652015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
3166
3167 PR c/63307
3168 * cilk.c: Include vec.h.
3169 (struct cilk_decls): New structure.
3170 (wrapper_parm_cb): Split this function to...
3171 (fill_decls_vec): ...this...
3172 (create_parm_list): ...and this.
3173 (compare_decls): New function.
3174 (for_local_cb): Remove.
3175 (wrapper_local_cb): Ditto.
3176 (build_wrapper_type): For now first traverse and fill vector of
3177 declarations then sort it and then deal with sorted vector.
3178 (cilk_outline): Ditto.
3179 (declare_one_free_variable): Ditto.
3180
6875457f
JM
31812015-01-21 Jason Merrill <jason@redhat.com>
3182
3183 PR c++/64629
3184 * c-format.c (check_format_arg): Call decl_constant_value.
3185
185c9e56
ML
31862015-01-19 Martin Liska <mliska@suse.cz>
3187
3188 * c-common.c (handle_noicf_attribute): New function.
3189
41dbbb37
TS
31902015-01-15 Thomas Schwinge <thomas@codesourcery.com>
3191 Bernd Schmidt <bernds@codesourcery.com>
3192 James Norris <jnorris@codesourcery.com>
3193 Cesar Philippidis <cesar@codesourcery.com>
3194 Ilmir Usmanov <i.usmanov@samsung.com>
3195 Jakub Jelinek <jakub@redhat.com>
3196
3197 * c.opt (fopenacc): New option.
3198 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
3199 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
3200 New macros.
3201 * c-common.h (c_finish_oacc_wait): New prototype.
3202 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
3203 (c_finish_oacc_wait): New function.
3204 * c-pragma.c (oacc_pragmas): New variable.
3205 (c_pp_lookup_pragma, init_pragma): Handle it.
3206 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
3207 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
3208 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
3209 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
3210 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
3211 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
3212 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
3213 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
3214 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
3215 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
3216 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
3217 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
3218 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
3219 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
3220 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
3221 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
3222 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
3223 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
3224 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
3225 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
3226 PRAGMA_OACC_CLAUSE_WORKER.
3227
3f8257db 32282015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
5434dc07
MD
3229
3230 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
3231 for the new option fstack-protector_explicit.
3232 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
3233 (handle_stack_protect_attribute): New function.
3234
3f8257db 32352015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
de1b5c17
MU
3236
3237 * c.opt: New option -Warray-bounds=.
3238
adfac8df
JJ
32392015-01-09 Michael Collison <michael.collison@linaro.org>
3240
3241 * array-notation-common.c: Include hash-set.h, machmode.h,
3242 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
3243 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
3244 * c-ada-spec.c: Ditto.
3245 * c-cilkplus.c: Ditto.
3246 * c-common.c: Include input.h due to flattening of tree.h.
3247 Define macro GCC_C_COMMON_C.
3248 * c-common.h: Flatten tree.h header files into c-common.h.
3249 Remove include of tree-core.h.
3250 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
3251 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
3252 fold-const.h, wide-int.h, and inchash.h due to
3253 flattening of tree.h.
3254 * c-dump.c: Ditto.
3255 * c-format.c: Flatten tree.h header files into c-common.h.
3256 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
3257 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
3258 fold-const.h, wide-int.h, and inchash.h due to
3259 flattening of tree.h.
3260 * c-dump.c: Include hash-set.h, machmode.h,
3261 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
3262 fold-const.h, wide-int.h, and inchash.h due to
3263 flattening of tree.h.
3264 * c-format.c: Include hash-set.h, machmode.h,
3265 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
3266 fold-const.h, wide-int.h, inchash.h and real.h due to
3267 flattening of tree.h.
3268 * c-gimplify.c: Include hash-set.h, machmode.h,
3269 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
3270 fold-const.h, wide-int.h, and inchash.h due to
3271 flattening of tree.h.
3272 * cilk.c: Ditto.
3273 * c-lex.c: Ditto.
3274 * c-omp.c: Ditto.
3275 * c-opts.c: Ditto.
3276 * c-pch.c: Ditto.
3277 * c-ppoutput.c: Ditto.
3278 * c-pragma.c: Ditto.
3279 * c-pretty-print.c: Ditto.
3280 * c-semantics.c: Ditto.
3281 * c-ubsan.c: Ditto.
3282 * stub-objc.c: Ditto.
3283
f5481fc4
JM
32842015-01-08 Jason Merrill <jason@redhat.com>
3285
3286 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
3287 do_ubsan_in_current_function.
3288 (ubsan_maybe_instrument_reference_or_call): Likewise.
3289 * c-ubsan.h: Declare it.
3290
de35aa66
MS
32912015-01-08 Mike Stump <mikestump@comcast.net>
3292
3293 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
3294
4a9a42ab
MP
32952015-01-07 Marek Polacek <polacek@redhat.com>
3296
3297 PR c/64440
3298 * c-common.c (c_fully_fold_internal): Warn for division and modulo
3299 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
3300
2f42e5de
TS
33012015-01-05 Trevor Saunders <tsaunders@mozilla.com>
3302
3303 PR c++/31397
3304 * c.opt (Wsuggest-override): New option.
3305
5624e564
JJ
33062015-01-05 Jakub Jelinek <jakub@redhat.com>
3307
3308 Update copyright years.
3309
5bd012f8
MP
33102015-01-05 Marek Polacek <polacek@redhat.com>
3311
3312 PR c/64423
3313 * c-common.c (warn_array_subscript_with_type_char): Add location_t
3314 parameter. Use it.
3315 * c-common.h (warn_array_subscript_with_type_char): Update
3316 declaration.
3317
a7fa8d18
ESR
33182014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
3319
3320 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
3321 Control macro with flag_sized_deallocation.
3322
3f8257db 33232014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
768952be
MU
3324
3325 * c.opt (Wdiscarded-array-qualifiers): New option.
3326
1f8d3e84
JJ
33272014-12-19 Jakub Jelinek <jakub@redhat.com>
3328
3329 PR preprocessor/63831
3330 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
3331 and __has_cpp_attribute here.
3332 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
3333 c_common_has_attribute.
3334 * c-common.h (c_common_has_attribute): New prototype.
3335 * c-lex.c (init_c_lex): Set cb->has_attribute to
3336 c_common_has_attribute instead of cb_has_attribute.
3337 (get_token_no_padding): New function.
3338 (cb_has_attribute): Renamed to ...
3339 (c_common_has_attribute): ... this. No longer static. Use
3340 get_token_no_padding, require ()s, don't build TREE_LIST
3341 unnecessarily, fix up formatting, adjust diagnostics, call
3342 init_attributes.
3343
20b06add
JM
33442014-12-15 Jason Merrill <jason@redhat.com>
3345
3346 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
3347 (-Wsized-deallocation): New.
3348 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
3349 to on in C++14 and up.
3350
94a073b2
JM
33512014-12-11 Jason Merrill <jason@redhat.com>
3352
acaa5911
JM
3353 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
3354
94a073b2
JM
3355 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
3356 we aren't complaining about VLAs.
3357
7fb66c15
MP
33582014-12-06 Marek Polacek <polacek@redhat.com>
3359
3360 PR tree-optimization/64183
3361 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
3362 shift-expression if it is integer_type_node. Use types_compatible_p.
3363
b731b390
JJ
33642014-11-29 Jakub Jelinek <jakub@redhat.com>
3365
3366 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
3367 last argument from create_tmp_var_raw and create_tmp_var calls.
3368 * cilk.c (gimplify_cilk_spawn): Likewise.
3369 * c-omp.c (c_finish_omp_atomic): Likewise.
3370
6a4da643
MP
33712014-11-28 Marek Polacek <polacek@redhat.com>
3372
3373 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
3374 instead of unsigned_type_node.
3375
541e35a6
MP
33762014-11-28 Marek Polacek <polacek@redhat.com>
3377
3378 PR c/63862
3379 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
3380 to op1_utype.
3381 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
3382 expression to unsigned_type_node.
3383
dcc97066
MW
33842014-11-20 Mark Wielaard <mjw@redhat.com>
3385
3386 PR debug/38757
3387 * c-opts.c (set_std_c89): Set lang_hooks.name.
3388 (set_std_c99): Likewise.
3389 (set_std_c11): Likewise.
3390 (set_std_cxx98): Likewise.
3391 (set_std_cxx11): Likewise.
3392 (set_std_cxx14): Likewise.
3393 (set_std_cxx1z): Likewise.
3394
aa7da51a
JJ
33952014-11-21 Jakub Jelinek <jakub@redhat.com>
3396
3397 PR target/63764
3398 * c-common.h (convert_vector_to_pointer_for_subscript): Change
3399 return type to bool.
009a3480 3400 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
3401 (convert_vector_to_pointer_for_subscript): Change return type to
3402 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
3403 and copy it into a TARGET_EXPR and use that instead of *vecp
3404 directly.
3405
538dd0b7
DM
34062014-11-19 David Malcolm <dmalcolm@redhat.com>
3407
3408 Merger of git branch "gimple-classes-v2-option-3".
3409 * ChangeLog.gimple-classes: New.
3410 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
3411 from being just a vec<gimple> to a vec<gbind *>.
3412
c39a5e99
JJ
34132014-11-18 Jakub Jelinek <jakub@redhat.com>
3414
3415 PR sanitizer/63813
3416 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
3417 argument to ptype, set type to TREE_TYPE (ptype). Don't call
3418 get_pointer_alignment for non-pointers. Use ptype, or if it is
3419 reference type, corresponding pointer type, as type of kind
3420 argument.
3421 (ubsan_maybe_instrument_reference,
3422 ubsan_maybe_instrument_member_call): Adjust callers.
3423
8537a4a9
MP
34242014-11-15 Marek Polacek <polacek@redhat.com>
3425
3426 PR middle-end/63884
3427 * array-notation-common.c (is_sec_implicit_index_fn): Return false
3428 for NULL fndecl.
3429 (extract_array_notation_exprs): Return for NULL node.
3430
2079956a
JM
34312014-11-12 Joseph Myers <joseph@codesourcery.com>
3432
3433 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
3434 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
3435
1304953e
JJ
34362014-11-12 Jakub Jelinek <jakub@redhat.com>
3437
3438 PR c/59708
3439 * c-common.c (check_builtin_function_arguments): Handle
3440 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
3441
e5e44252
AK
34422014-11-10 Andi Kleen <ak@linux.intel.com>
3443
3444 PR c/60804
3445 * c-common.h (check_no_cilk): Declare.
3446 * cilk.c (get_error_location): New function.
3447 (check_no_cilk): Dito.
3448
e64b984d
AK
34492014-11-10 Andi Kleen <ak@linux.intel.com>
3450
3451 * cilk.c (recognize_spawn): Use expression location
3452 for error message.
3453
13c21655
PC
34542014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
3455
3456 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
3457
42fd12b1
ESR
34582014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
3459
3460 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
3461 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
3462 (__cpp_range_based_for, __cpp_initializer_lists,
3463 __cpp_delegating_constructors, __cpp_nsdmi,
3464 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
3465 for C++11; (__cpp_attribute_deprecated): Remove in favor of
3466 __has_cpp_attribute.
3467 * c-lex.c (cb_has_attribute): New callback CPP function;
3468 (init_c_lex): Set has_attribute callback.
3469
6f450181
RB
34702014-11-04 Richard Biener <rguenther@suse.de>
3471
3472 * c-common.c (shorten_compare): Do not shorten mixed
3473 DFP and non-DFP compares.
3474
26f0e1d6
ESR
34752014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
3476
3477 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
3478 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
3479 Commentary and rearrangement of tests.
3480 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
3481 Commentary and rearrangement of tests.
3482 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
3483 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
3484
ef4bddc2
RS
34852014-10-29 Richard Sandiford <richard.sandiford@arm.com>
3486
3487 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
3488 enum from machine_mode.
3489
c582198b
AM
34902014-10-28 Andrew MacLeod <amacleod@redhat.com>
3491
adfac8df
JJ
3492 * c-common.c: Adjust include files.
3493 * c-gimplify.c: Ditto.
3494 * cilk.c: Ditto.
3495 * c-pragma.c: Ditto.
3496 * c-ubsan.c: Ditto.
c582198b 3497
60393bbc
AM
34982014-10-27 Andrew MacLeod <amacleod@redhat.com>
3499
3500 * c-gimplify.c: Adjust include files.
3501
d723bb7c
MLI
35022014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
3503
3504 PR c++/53061
3505 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
3506 c_common_initialize_diagnostics.
3507 * c-common.h: Likewise.
3508
90f3520e
MP
35092014-10-24 Marek Polacek <polacek@redhat.com>
3510
3511 PR c/56980
3512 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
3513 print "struct"/"union"/"enum" for typedefed names.
3514
59d7607a
MP
35152014-10-23 Marek Polacek <polacek@redhat.com>
3516
3517 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
3518 in unsigned type.
3519
d95a2703
JJ
35202014-10-22 Jakub Jelinek <jakub@redhat.com>
3521 Yury Gribov <y.gribov@samsung.com>
3522
3523 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
3524 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
3525 instead of flag_sanitize_recover as bool flag.
3526
8e6ef852
KY
35272014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
3528
3529 * cilk.c: Revert previous change.
3530
948cf550
IZ
35312014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
3532
3533 PR c/63307
3534 * cilk.c: Include vec.h.
3535 (struct cilk_decls): New structure.
3536 (wrapper_parm_cb): Split this function to...
3537 (fill_decls_vec): ...this...
3538 (create_parm_list): ...and this.
3539 (compare_decls): New function.
3540 (for_local_cb): Remove.
3541 (wrapper_local_cb): Ditto.
3542 (build_wrapper_type): For now first traverse and fill vector of
3543 declarations then sort it and then deal with sorted vector.
3544 (cilk_outline): Ditto.
3545 (declare_one_free_variable): Ditto.
3546
92574c7c
MP
35472014-10-17 Marek Polacek <polacek@redhat.com>
3548
3549 * c-opts.c (c_common_post_options): Set warn_implicit_int.
3550 * c.opt (Wimplicit-int): Initialize to -1.
3551
83685514
AM
35522014-10-16 Andrew MacLeod <amacleod@redhat.com>
3553
3554 * c-pragma.c: Adjust include files.
3555 * c-semantics.c: Likewise.
3556
5b8300ea
DD
35572014-10-16 DJ Delorie <dj@redhat.com>
3558
3559 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
3560 multiples of bytes.
3561
5f83e90b
JM
35622014-10-14 Jason Merrill <jason@redhat.com>
3563
3564 PR c++/63455
3565 * c-common.h (CPP_PREPARSED_EXPR): New.
3566 (N_CP_TTYPES): Adjust.
3567
d73326ca
MP
35682014-10-15 Marek Polacek <polacek@redhat.com>
3569
3570 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
3571
78a7c317
DD
35722014-10-14 DJ Delorie <dj@redhat.com>
3573
3574 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
3575 types, not just __int128.
3576 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
3577 types, not just __int128.
3578 (cpp_atomic_builtins): Round pointer sizes up.
3579 (type_suffix): Use type precision, not specific types.
3580 * c-common.c (c_common_reswords): Remove __int128 special case.
3581 (c_common_type_for_size): Check for all __intN types, not just
3582 __int128.
3583 (c_common_type_for_mode): Likewise.
3584 (c_common_signed_or_unsigned_type): Likewise.
3585 (c_build_bitfield_integer_type): Likewise.
3586 (c_common_nodes_and_builtins): Likewise.
3587 (keyword_begins_type_specifier): Likewise.
3588 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
3589 __intN variants.
3590
2a22f99c
TS
35912014-10-12 Trevor Saunders <tsaunders@mozilla.com>
3592
3593 * c-common.c: Use hash_table instead of hashtab.
3594
2a8ef767
ESR
35952014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
3596
adfac8df 3597 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
3598 C++11 section.
3599
3c9aabbd
MG
36002014-10-03 Marc Glisse <marc.glisse@inria.fr>
3601
3602 PR c++/54427
3603 PR c++/57198
3604 PR c++/58845
3605 * c-common.c (warn_logical_operator): Punt for vectors.
3606
a15f7cb8
ESR
36072014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
3608
3609 Implement SD-6: SG10 Feature Test Recommendations
3610 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
3611 macros and the __has_header macro.
3612
8d0cf15e
JM
36132014-09-30 Jason Merrill <jason@redhat.com>
3614
dd5d5481
JM
3615 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
3616 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
3617 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
3618
b752325e
JM
3619 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
3620 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
3621
8d0cf15e
JM
3622 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
3623 * c-common.c (c_common_reswords): Remove __is_convertible_to.
3624
083e891e
MP
36252014-09-24 Marek Polacek <polacek@redhat.com>
3626
3627 PR c/61405
3628 PR c/53874
3629 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
3630
7861b648
AK
36312014-09-23 Andi Kleen <ak@linux.intel.com>
3632
3633 * c-common.c (handle_no_reorder_attribute): New function.
3634 (c_common_attribute_table): Add no_reorder attribute.
3635
9a79452d
JM
36362014-09-22 Joseph Myers <joseph@codesourcery.com>
3637
3638 * c-cppbuiltin.c (c_cpp_builtins): Define
3639 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
3640 modes.
3641
dd69f047
JM
36422014-09-18 Joseph Myers <joseph@codesourcery.com>
3643
3644 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
3645 for supported floating-point modes.
3646
737a4826
MLI
36472014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3648
3649 * c.opt (Wpsabi): Use LangEnabledBy.
3650 * c-opts.c (c_common_handle_option): Do not handle here.
3651
8cc4b7a2
JM
36522014-09-12 Joseph Myers <joseph@codesourcery.com>
3653
3654 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
3655 macros for floating-point modes.
3656
179b5a55
MG
36572014-09-11 Marc Glisse <marc.glisse@inria.fr>
3658
3659 PR target/58757
3660 * c-cppbuiltin.c (builtin_define_float_constants): Correct
3661 __*_DENORM_MIN__ without denormals.
3662
570a11fe
JJ
36632014-09-10 Jakub Jelinek <jakub@redhat.com>
3664
3665 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
3666 ubsan_instrument_vla, ubsan_instrument_return): Adjust
3667 ubsan_create_data callers.
3668 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
3669 index is constant or BIT_AND_EXPR with constant mask and is
3670 small enough for the bound.
3671 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
3672 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
3673
b559c810
MLI
36742014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3675
3676 * c.opt: Add CppReason to various flags.
3677 (Wdate-time): Re-sort.
3678 * c-common.c: Include c-common.h earlier.
3679 (struct reason_option_codes_t): Delete.
3680 (c_option_controlling_cpp_error): Prefix global type and struct
3681 with cpp_.
3682
1ef33fd4
MLI
36832014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3684
3685 * c.opt (Wnormalized): New.
3686 (Wnormalized=): Use Enum and Reject Negative.
3687 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
3688
66bb34c0
JM
36892014-09-08 Joseph Myers <joseph@codesourcery.com>
3690
3691 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
3692 digits of floating-point modes if -fbuilding-libgcc.
3693
53d68b9f
JM
36942014-09-05 Joseph Myers <joseph@codesourcery.com>
3695
3696 * c-cppbuiltin.c (c_cpp_builtins): Also define
3697 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
3698 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
3699 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
3700 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
3701 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
3702 __LIBGCC_STACK_GROWS_DOWNWARD__,
3703 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
3704 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
3705 __LIBGCC_DWARF_FRAME_REGISTERS__,
3706 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
3707 __LIBGCC_STACK_POINTER_REGNUM__ and
3708 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
3709 (builtin_define_with_value): Handle backslash-escaping in string
3710 macro values.
3711
f65586dc
RB
37122014-09-05 Richard Biener <rguenther@suse.de>
3713
3714 PR middle-end/63148
3715 * c-format.c (check_format_arg): Properly handle
3716 effectively signed POINTER_PLUS_EXPR offset.
3717
2b71f4a4
MLI
37182014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
3719
3720 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
3721 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
3722 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
3723 and Init.
3724 * c-opts.c (c_common_handle_option): Do not handle here.
3725 (sanitize_cpp_opts): Likewise.
3726 * c-common.c (struct reason_option_codes_t): Handle
3727 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
3728
d2e4feca
MP
37292014-09-03 Marek Polacek <polacek@redhat.com>
3730
3731 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
3732
9a771876
JJ
37332014-09-02 Jakub Jelinek <jakub@redhat.com>
3734 Balaji V. Iyer <balaji.v.iyer@intel.com>
3735 Igor Zamyatin <igor.zamyatin@intel.com>
3736
3737 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
3738 * c-common.c (c_common_reswords): Added _Cilk_for.
3739 * c-common.h (enum rid): Added RID_CILK_FOR.
3740 (cilk_for_number_of_iterations): Add declaration.
3741 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
3742 CILK_FOR.
3743 * c-pragma.c (init_pragma): Register "grainsize" pragma.
3744 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
3745
81b5d104
MLI
37462014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3747
3748 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
3749 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
3750 Wundef): Use CPP, Var and Init.
3751 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
3752
b753b37b
MLI
37532014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3754
3755 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
3756 * c-opts.c (c_common_handle_option): Do not handle here.
3757
028aee17
JM
37582014-08-25 Jason Merrill <jason@redhat.com>
3759
3760 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
3761 -std=c++14 and -std=gnu++14, rather than the reverse.
3762 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
3763 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
3764 * c-common.h (cxx_dialect): Remove cxx1y.
3765
e4276ba5
ESR
37662014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
3767
3768 * c-common.h (enum cxx_dialect): Add cxx14.
3769 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
3770 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
3771 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
3772
a545cacd
JM
37732014-08-22 Jason Merrill <jason@redhat.com>
3774
3775 * c.opt (std=gnu++17): Fix alias.
3776
59ea0364
MP
37772014-08-22 Marek Polacek <polacek@redhat.com>
3778
3779 PR c++/62199
3780 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
3781 check for vector types. Drop LHS argument.
3782 * c-common.h (warn_logical_not_parentheses): Adjust.
3783
596e808c
MLI
37842014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
3785
3786 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
3787 (Wmultichar): Likewise.
3788 (Wdate-time): Use C-family languages instead of Common. Use CPP
3789 and Var.
3790 * c-opts.c (c_common_handle_option): Do not handle the above
3791 options here.
3792 (sanitize_cpp_opts): Likewise.
3793
18767f65
MLI
37942014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
3795
3796 PR fortran/44054
3797 * c-opts.c: Include tree-diagnostics.h.
3798 (c_diagnostic_finalizer): New.
3799 (c_common_initialize_diagnostics): Use it.
3800
b4413594
MLI
38012014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3802
3803 PR preprocessor/51303
3804 * c-common.c (struct reason_option_codes_t option_codes):
3805 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
3806
43f9a13c
MLI
38072014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3808
3809 PR c/60975
3810 PR c/53063
3811 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
3812 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
3813 (c_common_post_options): Call init_global_opts_from_cpp.
3814 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
3815
04159acf
MP
38162014-08-19 Marek Polacek <polacek@redhat.com>
3817
3818 PR c++/62153
3819 * c-common.c (maybe_warn_bool_compare): New function.
3820 * c-common.h (maybe_warn_bool_compare): Declare.
3821 * c.opt (Wbool-compare): New option.
3822
35aff4fb
MP
38232014-08-19 Marek Polacek <polacek@redhat.com>
3824
3825 * c.opt (Wc99-c11-compat): New option.
3826
177cce46
MP
38272014-08-19 Marek Polacek <polacek@redhat.com>
3828
3829 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
3830 to warn_c90_c99_compat.
3831 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
3832 to -1.
3833
6ae9194f
MLI
38342014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
3835 Steven Bosscher <steven@gcc.gnu.org>
3836
3837 PR c/52952
3838 * c-format.c: Add extra_arg_loc and format_string_loc to struct
3839 format_check_results.
3840 (check_function_format): Use true and add comment for boolean
3841 argument.
3842 (finish_dollar_format_checking): Use explicit location when warning.
3843 (check_format_info): Likewise.
3844 (check_format_arg): Set extra_arg_loc and format_string_loc.
3845 (check_format_info_main): Use explicit location when warning.
3846 (check_format_types): Pass explicit location.
3847 (format_type_warning): Likewise.
3848
8e54f6d3
MLI
38492014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3850
3851 PR fortran/44054
3852 * c-format.c: Handle Fortran flags.
3853
cd4e76fc
IZ
38542014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
3855
3856 PR other/61962
3857 * array-notation-common.c (find_rank): Added handling for other
3858 types of references.
3859
f3bede71
MP
38602014-08-10 Marek Polacek <polacek@redhat.com>
3861
3862 PR c/51849
3863 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
3864 * c.opt (Wc90-c99-compat): Add option.
3865
9f25a338
TS
38662014-08-07 Trevor Saunders <tsaunders@mozilla.com>
3867
3868 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
3869
62e4eb35
MP
38702014-08-03 Marek Polacek <polacek@redhat.com>
3871
3872 * c-common.c (check_case_value): Add location_t parameter. Use it.
3873 (c_add_case_label): Pass loc to check_case_value.
3874
b787e7a2
TS
38752014-08-02 Trevor Saunders <tsaunders@mozilla.com>
3876
3877 * cilk.c: Use hash_map instead of pointer_map.
3878
6e2830c3
TS
38792014-08-02 Trevor Saunders <tsaunders@mozilla.com>
3880
3881 * c-gimplify.c: Use hash_set instead of pointer_set.
3882
a7ee52fb
IZ
38832014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
3884
3885 PR middle-end/61455
3886 * array-notation-common.c (extract_array_notation_exprs): Handling
3887 of DECL_EXPR added.
3888
944fa280
JJ
38892014-08-01 Jakub Jelinek <jakub@redhat.com>
3890
3891 * c-common.h (min_align_of_type): Removed prototype.
3892 * c-common.c (min_align_of_type): Removed.
3893 * c-ubsan.h (ubsan_maybe_instrument_reference,
3894 ubsan_maybe_instrument_member_call): New prototypes.
3895 * c-ubsan.c: Include stor-layout.h and builtins.h.
3896 (ubsan_maybe_instrument_reference_or_call,
3897 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
3898 functions.
3899
b4dfdc11
MG
39002014-07-31 Marc Glisse <marc.glisse@inria.fr>
3901
3902 PR c++/60517
3903 * c.opt (-Wreturn-local-addr): Move to common.opt.
3904
a41844e5
JM
39052014-07-30 Jason Merrill <jason@redhat.com>
3906
3907 PR c++/61659
3908 PR c++/61687
3909 Revert:
3910 * c.opt (-fuse-all-virtuals): New.
3911
976d5a22
TT
39122014-07-30 Tom Tromey <tromey@redhat.com>
3913
3914 PR c/59855
3915 * c.opt (Wdesignated-init): New option.
3916 * c-common.c (c_common_attribute_table): Add "designated_init".
3917 (handle_designated_init): New function.
3918
cdc94aca
MP
39192014-07-24 Marek Polacek <polacek@redhat.com>
3920
3921 PR c/57653
3922 * c-opts.c (c_finish_options): If -imacros is in effect, return.
3923
f41373b6
DS
39242014-07-16 Dodji Seketeli <dodji@redhat.com>
3925
3926 PR preprocessor/60723 - missing system-ness marks for macro tokens
3927 * c-ppoutput.c (struct print::prev_was_system_token): New data
3928 member.
3929 (init_pp_output): Initialize it.
3930 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
3931 (do_line_change): Return a flag saying if a line marker was
3932 emitted or not.
3933 (scan_translation_unit): Detect if the system-ness of the token we
3934 are about to emit is different from the one of the previously
3935 emitted token. If so, emit a line marker. Avoid emitting useless
3936 adjacent line markers. Avoid emitting line markers for tokens
3937 originating from the expansion of built-in macros.
3938 (scan_translation_unit_directives_only): Adjust.
3939
4d661eaa
MP
39402014-07-15 Marek Polacek <polacek@redhat.com>
3941
3942 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
3943 TYPE_MAX_VALUE is NULL.
3944
b108f48f
JJ
39452014-07-14 Jakub Jelinek <jakub@redhat.com>
3946
3947 PR middle-end/61294
3948 * c.opt (Wmemset-transposed-args): New warning.
3949
c0221884
JM
39502014-07-10 Jason Merrill <jason@redhat.com>
3951
3952 PR c++/61659
3953 PR c++/61687
3954 * c.opt (-fuse-all-virtuals): New.
3955
63dfbb95
RB
39562014-07-09 Richard Biener <rguenther@suse.de>
3957
3958 PR c-family/61741
3959 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
3960 using unsigned arithmetic if overflow does not wrap instead of
3961 if overflow is undefined.
3962
773ec47f
MP
39632014-07-06 Marek Polacek <polacek@redhat.com>
3964
3965 PR c/6940
3966 * c.opt (Wsizeof-array-argument): New option.
3967
00a7ba58
JJ
39682014-07-03 Jakub Jelinek <jakub@redhat.com>
3969
b1726d6c 3970 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
00a7ba58
JJ
3971 comments->count <= 1, as comments->entries might be NULL.
3972
52ec0ea3
MP
39732014-07-01 Marek Polacek <polacek@redhat.com>
3974
3975 * c.opt (Wint-conversion): New option.
3976
d5c3d343
MP
39772014-07-01 Marek Polacek <polacek@redhat.com>
3978
3979 PR c/58286
3980 * c.opt (Wincompatible-pointer-types): New option.
3981
6e7ceb17
PC
39822014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
3983
3984 PR c++/51400
3985 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
3986 Do not discard TYPE_QUALS of type.
3987
da73100b
JM
39882014-06-26 Jason Merrill <jason@redhat.com>
3989
3990 * c-common.h (enum cxx_dialect): Add cxx1z.
3991 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
3992 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
3993
08eedf75
TJ
39942014-06-26 Teresa Johnson <tejohnson@google.com>
3995
3996 * c-common.h (get_dump_info): Declare.
3997 * c-gimplify.c (c_genericize): Use saved dump files.
3998 * c-opts.c (c_common_parse_file): Begin and end dumps
3999 once around parsing invocation.
4000 (get_dump_info): New function.
4001
7b56b2f8
MP
40022014-06-23 Marek Polacek <polacek@redhat.com>
4003 Andrew MacLeod <amacleod@redhat.com>
4004
4005 PR c/61553
4006 * c-common.c (get_atomic_generic_size): Don't segfault if the
4007 type doesn't have a size.
4008
0e37a2f3
MP
40092014-06-20 Marek Polacek <polacek@redhat.com>
4010
4011 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
4012 (ubsan_walk_array_refs_r): New function.
4013 (c_genericize): Instrument array bounds.
4014 * c-ubsan.c: Include "internal-fn.h".
4015 (ubsan_instrument_division): Mark instrumented arrays as having
4016 side effects. Adjust ubsan_type_descriptor call.
4017 (ubsan_instrument_shift): Likewise.
4018 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
4019 (ubsan_instrument_bounds): New function.
4020 (ubsan_array_ref_instrumented_p): New function.
4021 (ubsan_maybe_instrument_array_ref): New function.
4022 * c-ubsan.h (ubsan_instrument_bounds): Declare.
4023 (ubsan_array_ref_instrumented_p): Declare.
4024 (ubsan_maybe_instrument_array_ref): Declare.
4025
40262014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
4027
4028 PR lto/61123
4029 * c.opt (fshort-enums): Add to LTO.
4030 * c.opt (fshort-wchar): Likewise.
4031
5c3d09f7
MP
40322014-06-16 Marek Polacek <polacek@redhat.com>
4033
4034 PR c/60439
4035 * c.opt (Wswitch-bool): Add Var.
4036
9cf32741
JJ
40372014-06-12 Jakub Jelinek <jakub@redhat.com>
4038
4039 PR middle-end/61486
4040 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
4041 #pragma omp target teams or
4042 #pragma omp {,target }teams distribute simd.
4043
62984918
JM
40442014-06-12 Jason Merrill <jason@redhat.com>
4045
4046 * c.opt (Wabi=, fabi-compat-version): New.
4047 * c-opts.c (c_common_handle_option): Handle -Wabi=.
4048 (c_common_post_options): Handle flag_abi_compat_version default.
4049 Disallow -fabi-compat-version=1.
4050 * c-common.h (abi_version_crosses): New.
4051
f961457f
JH
40522014-06-11 Jan Hubicka <hubicka@ucw.cz>
4053
adfac8df 4054 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
4055 section names that are no longer trees.
4056
92d28cbb
JJ
40572014-06-10 Jakub Jelinek <jakub@redhat.com>
4058
4059 PR fortran/60928
4060 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
4061 (omp_pragmas): ... back here.
4062
742938c9
MP
40632014-06-05 Marek Polacek <polacek@redhat.com>
4064
4065 PR c/49706
4066 * c-common.c (warn_logical_not_parentheses): New function.
4067 * c-common.h (warn_logical_not_parentheses): Declare.
4068 * c.opt (Wlogical-not-parentheses): New option.
4069
9d548dfb
MP
40702014-06-04 Marek Polacek <polacek@redhat.com>
4071
4072 PR c/30020
4073 * c-common.c (check_case_bounds): Add location parameter.
4074 Use it.
4075 (c_add_case_label): Pass loc to check_case_bounds.
4076
fedfecef
MP
40772014-06-03 Marek Polacek <polacek@redhat.com>
4078
4079 PR c/60439
4080 * c.opt (Wswitch-bool): New option.
4081
f6a7cffc
TS
40822014-05-22 Thomas Schwinge <thomas@codesourcery.com>
4083
040d18b6
TS
4084 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
4085 Remove prototypes.
4086 (record_types_used_by_current_var_decl): Move prototype to where
4087 it belongs.
4088
f6a7cffc
TS
4089 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
4090 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
4091 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
4092
632f2871
RS
40932014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
4094
4095 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
4096 * c-common.c (c_common_nodes_and_builtins): Don't initialize
4097 void_zero_node.
4098 * c-pretty-print.c (pp_c_void_constant): New function.
4099 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
4100 (c_pretty_printer::expression): Handle VOID_CST.
4101 * cilk.c (extract_free_variables): Likewise.
4102 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
4103 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
4104
766090c2
TS
41052014-05-17 Trevor Saunders <tsaunders@mozilla.com>
4106
4107 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
4108 * c-pragma.c (push_alignment): Adjust.
4109 (handle_pragma_push_options): Likewise.
4110
661a0813
MP
41112014-05-09 Marek Polacek <polacek@redhat.com>
4112
4113 PR c/50459
4114 * c-common.c (check_user_alignment): Return -1 if alignment is error
4115 node.
4116 (handle_aligned_attribute): Don't call default_conversion on
4117 FUNCTION_DECLs.
4118 (handle_vector_size_attribute): Likewise.
4119 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
4120 (handle_sentinel_attribute): Call default_conversion and allow even
4121 integral types as an argument.
4122
2793eeab
MP
41232014-05-08 Marek Polacek <polacek@redhat.com>
4124
4125 PR c/61053
4126 * c-common.c (min_align_of_type): New function factored out from...
4127 (c_sizeof_or_alignof_type): ...here.
4128 * c-common.h (min_align_of_type): Declare.
4129
f827930a
MP
41302014-05-08 Marek Polacek <polacek@redhat.com>
4131
4132 PR c/61077
4133 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
4134 parameter type of main.
4135
ca49b74e
DD
41362014-05-07 DJ Delorie <dj@redhat.com>
4137
4138 * c-cppbuiltin.c (print_bits_of_hex): New.
4139 (builtin_define_type_minmax): Print values using hex so as not to
4140 require a pre-computed list of string values.
4141
1d60af08
KZ
41422014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
4143 Mike Stump <mikestump@comcast.net>
4144 Richard Sandiford <rdsandiford@googlemail.com>
4145
4146 * c-ada-spec.c: Include wide-int.h.
4147 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
4148 (dump_generic_ada_node): Use wide-int interfaces.
4149 * c-common.c: Include wide-int-print.h.
4150 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
4151 (pointer_int_sum): Use wide-int interfaces.
4152 (c_common_nodes_and_builtins): Use make_int_cst.
4153 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
4154 (handle_alloc_size_attribute): Use wide-int interfaces.
4155 (get_nonnull_operand): Likewise.
4156 * c-format.c (get_constant): Use tree_fits_uhwi_p.
4157 * c-lex.c: Include wide-int.h.
4158 (narrowest_unsigned_type): Take a widest_int rather than two
4159 HOST_WIDE_INTs.
4160 (narrowest_signed_type): Likewise.
4161 (interpret_integer): Update accordingly. Use wide-int interfaces.
4162 (lex_charconst): Use wide-int interfaces.
4163 * c-pretty-print.c: Include wide-int.h.
4164 (pp_c_integer_constant): Use wide-int interfaces.
4165 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
4166 INT_CST_LT_UNSIGNED.
4167
b15458be
RB
41682014-05-06 Richard Biener <rguenther@suse.de>
4169
4170 * c-opts.c (c_common_post_options): For -freestanding,
4171 -fno-hosted and -fno-builtin disable pattern recognition
4172 if not enabled explicitely.
4173
6577374e
MP
41742014-05-02 Marek Polacek <polacek@redhat.com>
4175
4176 * c.opt (Wsizeof-pointer-memaccess): Describe option.
4177
d00887e8
MP
41782014-05-01 Marek Polacek <polacek@redhat.com>
4179
4180 PR c/43245
4181 * c.opt (Wdiscarded-qualifiers): Add.
4182
f8ed5150
MP
41832014-04-30 Marek Polacek <polacek@redhat.com>
4184
4185 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
4186 INT_MIN / -1 sanitization only for integer types.
4187
45484dcf
MP
41882014-04-25 Marek Polacek <polacek@redhat.com>
4189
4190 PR c/18079
4191 * c-common.c (handle_noinline_attribute): Warn if the attribute
4192 conflicts with always_inline attribute.
4193 (handle_always_inline_attribute): Warn if the attribute conflicts
4194 with noinline attribute.
4195
38e514c0
MP
41962014-04-25 Marek Polacek <polacek@redhat.com>
4197
4198 PR c/60156
4199 * c-common.c (check_main_parameter_types): Warn about variadic main.
4200
44875f92
MS
42012014-04-24 Mike Stump <mikestump@comcast.net>
4202
4203 * c.opt (Wshadow-ivar): Default to on.
4204
dcaaa5a0
DP
42052014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
4206
4207 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
4208
c07d7c02
MP
42092014-04-23 Marek Polacek <polacek@redhat.com>
4210
4211 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
4212
1c33c9b7
JJ
42132014-04-22 Jakub Jelinek <jakub@redhat.com>
4214
4215 PR sanitizer/60275
4216 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
4217 if flag_sanitize_undefined_trap_on_error.
4218 (ubsan_instrument_division, ubsan_instrument_shift,
4219 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
4220 if !flag_sanitize_recover.
4221
793c625f
MG
42222014-04-22 Marc Glisse <marc.glisse@inria.fr>
4223
4224 PR libstdc++/43622
4225 * c-common.c (registered_builtin_types): Make non-static.
4226 * c-common.h (registered_builtin_types): Declare.
4227
b0f1bf36
RB
42282014-04-14 Richard Biener <rguenther@suse.de>
4229 Marc Glisse <marc.glisse@inria.fr>
4230
4231 PR c/60819
4232 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
4233 apply may-alias the scalar pointer type when applicable.
4234
3b07fa4a
IZ
42352014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
4236
4237 PR middle-end/60467
4238 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
4239 as possible argument for Cilk_spawn.
4240
cbbd2b1c
TB
42412014-04-11 Tobias Burnus <burnus@net-b.de>
4242
4243 PR c/60194
4244 * c.opt (Wformat-signedness): Add
4245 * c-format.c(check_format_types): Use it.
4246
6415bd5d
JM
42472014-04-11 Jason Merrill <jason@redhat.com>
4248
4249 PR c++/57926
4250 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
4251 default_conversion for an array argument.
4252
6525783a
MP
42532014-04-08 Marek Polacek <polacek@redhat.com>
4254
4255 PR sanitizer/60745
4256 * c-ubsan.c: Include asan.h.
4257 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
4258
880a467b
NS
42592014-04-03 Nathan Sidwell <nathan@codesourcery.com>
4260
4261 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
4262
7b59ff2d
MP
42632014-04-02 Marek Polacek <polacek@redhat.com>
4264
4265 * c-common.h (c_expand_expr): Remove declaration.
4266
8edbfaa6
JJ
42672014-03-28 Jakub Jelinek <jakub@redhat.com>
4268
4269 PR c++/60689
4270 * c-common.c (add_atomic_size_parameter): When creating new
4271 params vector, push the size argument first.
4272
07d72e1d
JJ
42732014-03-26 Jakub Jelinek <jakub@redhat.com>
4274
4275 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
4276 ubsan_instrument_vla, ubsan_instrument_return): Adjust
4277 ubsan_create_data callers.
4278
b35e0fa0
JJ
42792014-03-22 Jakub Jelinek <jakub@redhat.com>
4280
4281 PR debug/60603
4282 * c-opts.c (c_finish_options): Restore cb_file_change call to
4283 <built-in>.
4284
39a1ebb3
JJ
42852014-03-13 Jakub Jelinek <jakub@redhat.com>
4286
4287 PR middle-end/36282
4288 * c-pragma.c (apply_pragma_weak): Only look at
4289 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
4290 DECL_ASSEMBLER_NAME_SET_P (decl).
4291 (maybe_apply_pending_pragma_weaks): Exit early if
4292 vec_safe_is_empty (pending_weaks) rather than only when
4293 !pending_weaks.
4294 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
4295 set assembler name back to NULL afterwards.
4296
a07f6ed2
JM
42972014-03-11 Jason Merrill <jason@redhat.com>
4298
4299 * c.opt: Add -std=gnu++14.
4300
75b107f5
IB
43012014-03-11 Ian Bolton <ian.bolton@arm.com>
4302
4303 * c-opts.c (c_common_post_options): Don't override
4304 -ffp-contract=fast if unsafe-math-optimizations is on.
4305
f42c637e
PM
43062014-03-08 Paulo Matos <paulo@matos-sorge.com>
4307
22b15758 4308 * c.opt: Enable LTO FE for fshort-double.
f42c637e 4309
70e24808
JM
43102014-03-07 Jason Merrill <jason@redhat.com>
4311
4312 * c.opt: Add -std=c++14.
4313
3af9c5e9
MP
43142014-03-06 Marek Polacek <polacek@redhat.com>
4315
4316 PR c/60197
4317 * cilk.c (contains_cilk_spawn_stmt): New function.
4318 (contains_cilk_spawn_stmt_walker): Likewise.
4319 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
4320 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
4321
b3bdf019
JJ
43222014-03-03 Jakub Jelinek <jakub@redhat.com>
4323
4324 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
4325 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
4326 even when flag_preprocess_only.
4327
ca7e759d
JM
43282014-02-26 Jason Merrill <jason@redhat.com>
4329
4330 PR c++/59231
4331 PR c++/11586
4332 * c-common.c (shorten_compare): Don't check
4333 c_inhibit_evaluation_warnings.
4334
28e41874
JJ
43352014-02-19 Jakub Jelinek <jakub@redhat.com>
4336
cca615af
JJ
4337 PR c/37743
4338 * c-common.c (c_common_nodes_and_builtins): When initializing
4339 c_uint{16,32,64}_type_node, also set corresponding
4340 uint{16,32,64}_type_node to the same value.
4341
28e41874
JJ
4342 PR c++/60267
4343 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
4344 for PRAGMA_IVDEP if flag_preprocess_only.
4345
c2bf53a1
JJ
43462014-02-12 Jakub Jelinek <jakub@redhat.com>
4347
4348 PR c/60101
4349 * c-common.c (merge_tlist): If copy is true, call new_tlist,
4350 if false, add ADD itself, rather than vice versa.
4351 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
4352 copy. For SAVE_EXPR, only call merge_tlist once.
4353
8fcbce72
JJ
43542014-02-08 Jakub Jelinek <jakub@redhat.com>
4355
4356 PR middle-end/60092
4357 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
4358 and tree_to_uhwi.
4359 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
4360 functions.
4361 (c_common_attribute_table): Add alloc_align and assume_aligned
4362 attributes.
4363
0a756a3f
MP
43642014-02-06 Marek Polacek <polacek@redhat.com>
4365
4366 PR c/60087
4367 * c-common.c (warn_for_sign_compare): Call warning_at with location
4368 instead of warning.
4369
7ec4847a
MP
43702014-02-05 Marek Polacek <polacek@redhat.com>
4371
4372 PR c/53123
4373 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
4374 statement.
4375
66f20604
MP
43762014-02-04 Marek Polacek <polacek@redhat.com>
4377
4378 PR c/60036
4379 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
4380 SAVE_EXPR.
4381
5d77fb19
MG
43822014-02-03 Marc Glisse <marc.glisse@inria.fr>
4383
4384 PR c++/53017
4385 PR c++/59211
4386 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
4387 handle_vector_size_attribute, handle_nonnull_attribute): Call
4388 default_conversion on the attribute argument.
4389 (handle_nonnull_attribute): Increment the argument number.
4390
81e5eca8
MP
43912014-01-31 Marek Polacek <polacek@redhat.com>
4392
4393 PR c/59963
4394 * c-common.c (add_atomic_size_parameter): Pass vNULL to
4395 build_function_call_vec.
4396 (resolve_overloaded_builtin): Likewise.
4397 * c-common.h (build_function_call_vec): Adjust declaration.
4398
68fca595
MP
43992014-01-30 Marek Polacek <polacek@redhat.com>
4400
4401 PR c/59940
4402 * c-common.h (unsafe_conversion_p): Adjust declaration.
4403 (warnings_for_convert_and_check): Likewise.
4404 (convert_and_check): Likewise.
4405 * c-common.c (unsafe_conversion_p): Add location parameter. Call
4406 expansion_point_location_if_in_system_header on it.
4407 (warnings_for_convert_and_check): Add location parameter. Call
4408 expansion_point_location_if_in_system_header on it. Use it.
4409 (convert_and_check): Add location parameter. Use it.
4410 (conversion_warning): Likewise.
4411 (c_add_case_label): Adjust convert_and_check calls.
4412 (scalar_to_vector): Adjust unsafe_conversion_p calls.
4413
b72271b9
BI
44142014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
4415
4416 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
4417 flag_cilkplus.
4418 * c-pragma.c (init_pragma): Likewise.
4419 * c.opt: Likewise.
4420
393e8e8b
MP
44212014-01-23 Marek Polacek <polacek@redhat.com>
4422
4423 PR c/59846
4424 * c-common.c (shorten_compare): Add location_t parameter.
4425 * c-common.h (shorten_binary_op): Adjust declaration.
4426
f04dda30
MP
44272014-01-23 Marek Polacek <polacek@redhat.com>
4428
4429 PR c/58346
4430 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
4431 * c-common.h: Declare it.
4432
621955cb
EB
44332014-01-20 Eric Botcazou <ebotcazou@adacore.com>
4434
4435 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
4436 * c-ada-spec.c (dump_ads): Likewise.
4437 (cpp_check): Likewise.
4438 (dump_ada_specs): Likewise.
4439
44402014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
4441
4442 PR c++/49718
4443 * c-common.c (handle_no_instrument_function_attribute): Allow
4444 no_instrument_function attribute in class member
4445 definition/declaration.
4446
241f845a
JJ
44472014-01-15 Jakub Jelinek <jakub@redhat.com>
4448
4449 PR c/58943
4450 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
4451 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
4452 being COMPOUND_EXPR.
4453 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
4454 operand a SAVE_EXPR and second MODIFY_EXPR.
4455
e83b8e2e
JJ
44562014-01-09 Jakub Jelinek <jakub@redhat.com>
4457
4458 PR target/58115
4459 * c-pch.c (c_common_write_pch): Call
4460 prepare_target_option_nodes_for_pch.
4461
23a5b65a
RS
44622014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
4463
4464 Update copyright years
4465
f9030485
RS
44662014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
4467
4468 * array-notation-common.c, c-cilkplus.c: Use the standard form for
4469 the copyright notice.
4470
f2aa696b
EB
44712013-12-28 Eric Botcazou <ebotcazou@adacore.com>
4472
4473 * c-ada-spec.c (print_constructor): New function.
4474 (print_destructor): Retrieve the origin of the destructor.
4475 (print_ada_declaration): Revamp handling of constructors/destructors.
4476
3f8257db 44772013-12-23 Stuart Hastings <stuart@apple.com>
1f26ac87
JM
4478 Bill Maddox <maddox@google.com>
4479 Jason Merrill <jason@redhat.com>
4480
4481 * c.opt: Add -fdeclone-ctor-dtor.
4482 * c-opts.c (c_common_post_options): Default to on iff -Os.
4483
41958c28
BI
44842013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
4485
4486 * c-common.c (c_common_attribute_table): Added "cilk simd function"
4487 attribute.
4488 * c-pragma.h (enum pragma_cilk_clause): Remove.
4489 (enum pragma_omp_clause): Added the following fields:
4490 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
4491 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
4492 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
4493 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
4494 PRAGMA_CILK_CLAUSE_UNIFORM.
4495
b1726d6c 4496
12893402
BI
44972013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
4498
4499 * cilk.c (cilk_outline): Made this function non-static.
4500 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
4501 (create_cilk_wrapper): Added a new parameter: a function pointer.
4502 (c_install_body_w_frame_cleanup): Remove
4503 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
4504 * c-common.h (cilk_outline): New prototype.
4505 (gimplify_cilk_spawn): Removed two parameters.
4506 (cilk_install_body_with_frame_cleanup): New prototype.
4507 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
4508 CILK_SPAWN_STMT case.
4509
085b42ed
BS
45102013-12-11 Bernd Schmidt <bernds@codesourcery.com>
4511
2ce064c3
BS
4512 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
4513
085b42ed
BS
4514 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
4515 (int_array_type_node): Remove.
4516 * c-common.c (c_common_nodes_and_builtins): Don't build it.
4517
9e36c9ed
MP
45182013-12-05 Marek Polacek <polacek@redhat.com>
4519
4520 PR c/52023
4521 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
4522 [ADJUST_FIELD_ALIGN].
4523
296674db
JM
45242013-12-04 Joseph Myers <joseph@codesourcery.com>
4525
4526 PR c/52023
4527 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
4528 and check field alignment if set.
4529 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
4530 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
4531
b1726d6c 45322013-12-04 Jakub Jelinek <jakub@redhat.com>
31e071ae
MP
4533 Marek Polacek <polacek@redhat.com>
4534
4535 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
4536 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
4537
d7947e19
L
45382013-11-29 H.J. Lu <hongjiu.lu@intel.com>
4539
4540 PR c/59309
4541 * cilk.c (gimplify_cilk_spawn): Properly handle function without
4542 arguments.
4543
fad7652e
JJ
45442013-11-29 Jakub Jelinek <jakub@redhat.com>
4545
4546 PR c/59280
4547 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
4548 goto invalid. If it is error_mark_node, don't issue further
4549 diagnostics.
4550
8b5e1202
SO
45512013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
4552
4553 * c.opt (Wopenmp-simd): New.
4554
0a508bb6
JJ
45552013-11-22 Jakub Jelinek <jakub@redhat.com>
4556
4557 * c-ubsan.h (ubsan_instrument_return): New prototype.
4558 * c-ubsan.c (ubsan_instrument_return): New function.
4559
2fb9a547
AM
45602013-11-22 Andrew MacLeod <amacleod@redhat.com>
4561
4562 * c-common.c: Add required include files from gimple.h.
4563 * c-gimplify.c: Likewise
4564 * cilk.c: Likewise
4565
8400e75e
DM
45662013-11-22 David Malcolm <dmalcolm@redhat.com>
4567
4568 * c-common.c (unsafe_conversion_p): Remove use of
4569 EXPR_LOC_OR_HERE macro.
4570 (conversion_warning): Likewise.
4571 (warnings_for_convert_and_check): Likewise.
4572 (warn_for_collisions_1): Likewise.
4573 (shorten_compare): Likewise, and remove use of in_system_header
4574 macro, using the location from the former.
4575 * c-lex.c (dump_one_header): Remove use of input_filename macro.
4576 (cb_def_pragma): Remove use of in_system_header macro.
4577 (lex_string): Likewise.
4578 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
4579
eb1ce453
KZ
45802013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
4581 Mike Stump <mikestump@comcast.net>
4582 Richard Sandiford <rdsandiford@googlemail.com>
4583
4584 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
4585 instead of TREE_INT_CST_LOW, in cases where there is a protecting
4586 tree_fits_shwi_p or tree_fits_uhwi_p.
4587 (dump_generic_ada_node): Likewise.
4588 * c-format.c (check_format_arg): Likewise.
4589 * c-pretty-print.c (pp_c_integer_constant): Likewise.
4590
6b3b8c27
KZ
45912013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
4592
4593 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
4594
49b0aa18
JC
45952013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
4596
4597 PR c/53001
4598 * c-common.c (unsafe_conversion_p): Make this function
4599 return an enumeration with more detail.
4600 (conversion_warning): Use the new return type of
4601 unsafe_conversion_p to separately warn either about conversions
4602 that lower floating point number precision or about the other
4603 kinds of conversions.
4604 * c-common.h (enum conversion_safety): New enumeration.
8e745a17
JJ
4605 (unsafe_conversion_p): switching return type to
4606 conversion_safety enumeration.
49b0aa18
JC
4607 * c.opt: Adding new warning -Wfloat-conversion and
4608 enabling it with -Wconversion.
4609
b826515a
BS
46102013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
4611
8e745a17
JJ
4612 * c-opts.c: Include plugin.h.
4613 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
b826515a 4614
b9a55b13
MP
46152013-11-19 Marek Polacek <polacek@redhat.com>
4616
4617 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
4618 call.
4619 (ubsan_instrument_shift): Likewise.
4620 (ubsan_instrument_vla): Likewise.
4621
7d362f6c
RS
46222013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4623
4624 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
4625 cast to unsigned type.
4626
386b1f1f
RS
46272013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4628
4629 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
4630 tree_low_cst.
4631 (complete_array_type): Update comment to refer to tree_to_[su]hwi
4632 rather than tree_low_cst.
4633
ae7e9ddd
RS
46342013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4635
4636 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
4637 tree_to_uhwi throughout.
4638
9439e9a1
RS
46392013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4640
4641 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
4642 tree_low_cst (..., 0) with tree_to_shwi throughout.
4643
cc269bb6
RS
46442013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4645
4646 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
4647 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
4648
9541ffee
RS
46492013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4650
4651 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
4652 host_integerp (..., 0) with tree_fits_shwi_p throughout.
4653
c02065fc
AH
46542013-11-15 Aldy Hernandez <aldyh@redhat.com>
4655
4656 * c-cilkplus.c: New file.
4657 * c-common.c (readonly_error): Add location argument.
4658 * c-common.h (readonly_error): Same.
4659 (c_finish_cilk_clauses): Protoize.
4660 (c_check_cilk_loop): Same.
4661 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
4662 Do not fail on error_mark_node.
4663 Abstract increment canonicalization to here...
4664 (c_omp_for_incr_canonicalize_ptr): New.
4665 c-pragma.c (init_pragma): Register "simd" pragma.
4666 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
4667 (enum pragma_cilk_clause): New.
4668
9cc65f15
RS
46692013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
4670
4671 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
4672 wchar_type and host_integerp checks.
4673
18f429e2
AM
46742013-11-14 Andrew MacLeod <amacleod@redhat.com>
4675
4676 * c-common.c: Likewise.
4677 * c-gimplify.c: Likewise.
4678 * cilk.c: Likewise.
4679
d8a2d370
DN
46802013-11-14 Diego Novillo <dnovillo@google.com>
4681
4682 * c-common.c: Include fold-const.h.
4683 Include stor-layout.h.
4684 Include calls.h.
4685 Include stringpool.h.
4686 Include attribs.h.
4687 Include varasm.h.
4688 Include trans-mem.h.
4689 * c-cppbuiltin.c: Include stor-layout.h.
4690 Include stringpool.h.
4691 * c-format.c: Include stringpool.h.
4692 * c-lex.c: Include stringpool.h.
4693 Include stor-layout.h.
4694 * c-pragma.c: Include stringpool.h.
4695 Include attribs.h.
4696 Include varasm.h.
4697 Include gcc-symtab.h.
4698 * c-pretty-print.c: Include stor-layout.h.
4699 Include attribs.h.
4700 * cilk.c: Include stringpool.h.
4701 Include calls.h.
4702
38b7bc7f
JM
47032013-11-13 Joseph Myers <joseph@codesourcery.com>
4704
4705 * c-common.h (enum rid): Add RID_AUTO_TYPE.
4706 * c-common.c (c_common_reswords): Add __auto_type.
4707 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
4708
45b0be94
AM
47092013-11-12 Andrew MacLeod <amacleod@redhat.com>
4710
18f429e2
AM
4711 * c-common.c: Include gimplify.h.
4712 * c-gimplify.c: Likewise.
4713 * cilk.c: Likewise.
4714 * c-omp.c: Include gimple-expr.h instead of gimple.h.
4715 * c-ubsan.c: Don't include gimple.h.
45b0be94 4716
582d9b50
JM
47172013-11-12 Joseph Myers <joseph@codesourcery.com>
4718
4719 * c-common.c (c_common_reswords): Add _Thread_local.
4720
6b28e197
JM
47212013-11-09 Joseph Myers <joseph@codesourcery.com>
4722
4723 * c-common.c (atomic_size_supported_p): New function.
4724 (resolve_overloaded_atomic_exchange)
4725 (resolve_overloaded_atomic_compare_exchange)
4726 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
4727 Use it instead of comparing size with a local list of sizes.
4728
267bac10
JM
47292013-11-07 Andrew MacLeod <amacleod@redhat.com>
4730 Joseph Myers <joseph@codesourcery.com>
4731
4732 * c-common.h (enum rid): Add RID_ATOMIC.
4733 * c-common.c (c_common_reswords): Add _Atomic.
4734 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
4735 (keyword_is_type_qualifier): Accept RID_ATOMIC.
4736 * c-format.c (check_format_types): Check for extra _Atomic
4737 qualifiers in format argument.
4738 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
4739 (pp_c_type_qualifier_list): Mention _Atomic in comment.
4740
5157b91e
TB
47412013-11-06 Tobias Burnus <burnus@net-b.de>
4742
4743 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
4744
6dbe0958
JM
47452013-11-06 Joseph Myers <joseph@codesourcery.com>
4746
4747 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
4748 standards modes.
4749 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
4750 to mean lack of IEEE 754 support.
4751
e8ff5196
TB
47522013-11-05 Tobias Burnus <burnus@net-b.de>
4753
4754 * c.opt (-Wdate-time): New option
4755 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
4756
254a0760
JM
47572013-11-05 Joseph Myers <joseph@codesourcery.com>
4758
4759 * c-cppbuiltin.c (cpp_iec_559_value): Test
4760 flag_excess_precision_cmdline not flag_excess_precision.
4761
6d7f7e0a
TB
47622013-11-05 Tobias Burnus <burnus@net-b.de>
4763
4764 * c.opt (fopenmp-simd): New option.
4765 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
4766 (omp_pragmas): ... this new struct.
4767 (c_pp_lookup_pragma): Also walk omp_pragmas.
4768 (init_pragma): Init pragmas for -fopenmp-simd.
4769
55a7f02f
MP
47702013-11-04 Marek Polacek <polacek@redhat.com>
4771
4772 PR c++/58979
4773 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
4774
9193fb05
JM
47752013-11-04 Joseph Myers <joseph@codesourcery.com>
4776
4777 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
4778 New functions.
4779 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
4780
94159ecf
EB
47812013-11-04 Eric Botcazou <ebotcazou@adacore.com>
4782
4783 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
4784 (dump_ada_specs): Adjust prototype of second callback.
4785 * c-ada-spec.c (cpp_check): New global variable.
4786 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
4787 (print_generic_ada_decl): Likewise.
4788 (has_static_fields): Change return type to bool and add guard.
4789 (has_nontrivial_methods): New predicate.
4790 (is_tagged_type): Change return type to bool.
4791 (separate_class_package): Call has_nontrivial_methods.
4792 (pp_ada_tree_identifier): Minor tweaks.
4793 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
4794 (dump_ada_array_domains): Likewise.
4795 (dump_ada_array_type): Likewise.
4796 (dump_template_types): Remove cpp_check parameter and do not pass it to
4797 dump_generic_ada_node.
4798 (dump_ada_template): Likewise.
4799 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
4800 recursively.
4801 (print_ada_methods): Change return type to integer. Remove cpp_check
4802 parameter and do not pass it down.
4803 (dump_nested_types): Remove cpp_check parameter and do not pass it to
4804 dump_generic_ada_node.
4805 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
4806 accessing methods.
4807 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
4808 down. Use has_nontrivial_methods to recognize C++ classes. Use return
4809 value of print_ada_methods.
4810 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
4811 Set cpp_check to it before invoking dump_ada_nodes.
4812 (dump_ada_specs): Likewise.
4813
b906f4ca
MP
48142013-11-03 Marek Polacek <polacek@redhat.com>
4815
4816 * c-ubsan.c: Don't include hash-table.h.
4817 (ubsan_instrument_vla): New function.
4818 * c-ubsan.h: Declare it.
4819
5e20cdc9
DM
48202013-10-31 David Malcolm <dmalcolm@redhat.com>
4821
4822 Automated part of renaming of symtab_node_base to symtab_node.
4823
4824 Patch autogenerated by rename_symtab.py from
4825 https://github.com/davidmalcolm/gcc-refactoring-scripts
4826 revision 58bb219cc090b2f4516a9297d868c245495ee622
4827
4828 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
4829 symtab_node_base to symtab_node.
4830
7057e645
ESR
48312013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
4832
8e745a17 4833 Implement C++14 digit separators.
7057e645
ESR
4834 * c-lex.c (interpret_float): Remove digit separators from scratch string
4835 before building real literal.
4836
193ea7bc
JJ
48372013-10-30 Jakub Jelinek <jakub@redhat.com>
4838
4839 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
4840
939b37da
BI
48412013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
4842
4843 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
4844 fields.
4845 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
4846 enabled.
4847 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
4848 (insert_cilk_frame): New prototype.
4849 (cilk_init_builtins): Likewise.
4850 (gimplify_cilk_spawn): Likewise.
4851 (c_cilk_install_body_w_frame_cleanup): Likewise.
4852 (cilk_detect_spawn_and_unwrap): Likewise.
4853 (cilk_set_spawn_marker): Likewise.
4854 (build_cilk_sync): Likewise.
4855 (build_cilk_spawn): Likewise.
4856 * cilk.c: New file.
4857
67348ccc
DM
48582013-10-29 David Malcolm <dmalcolm@redhat.com>
4859
4860 Patch autogenerated by refactor_symtab.py from
4861 https://github.com/davidmalcolm/gcc-refactoring-scripts
4862 revision 58bb219cc090b2f4516a9297d868c245495ee622
4863
4864 * c-gimplify.c (c_genericize): Update for conversion of symtab types
4865 to a true class hierarchy.
4866 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
4867
d570872d
RS
48682013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
4869
4870 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
4871
98906124
JL
48722013-10-26 Jeff Law <law@redhat.com>
4873
adfac8df
JJ
4874 * c-common.c (c_define_builtins): Remove mudflap support.
4875 * c.opt: Ignore and warn for mudflap options.
98906124 4876
d73749df 48772013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
4878
4879 PR other/33426
4880 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
4881 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
4882
3f04b1bb
JM
48832013-10-23 Jason Merrill <jason@redhat.com>
4884
4885 * c-format.c (gcc_cxxdiag_char_table): Add %X.
4886
acf0174b
JJ
48872013-10-11 Jakub Jelinek <jakub@redhat.com>
4888
acd15a28
JJ
4889 * c-common.h (omp_clause_mask::operator !=): New method.
4890 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
4891 instead of if (mask & something) tests everywhere.
4892
acf0174b
JJ
4893 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
4894 201307 instead of 201107.
4895 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
4896 (c_common_attribute_table): Add "omp declare target" and
4897 "omp declare simd" attributes.
4898 (handle_omp_declare_target_attribute,
4899 handle_omp_declare_simd_attribute): New functions.
4900 * c-omp.c: Include c-pragma.h.
4901 (c_finish_omp_taskgroup): New function.
4902 (c_finish_omp_atomic): Add swapped argument, if true,
4903 build the operation first with rhs, lhs arguments and use NOP_EXPR
4904 build_modify_expr.
4905 (c_finish_omp_for): Add code argument, pass it down to make_code.
4906 (c_omp_split_clauses): New function.
4907 (c_split_parallel_clauses): Removed.
4908 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
4909 c_omp_declare_simd_clauses_to_decls): New functions.
4910 * c-common.h (omp_clause_mask): New type.
4911 (OMP_CLAUSE_MASK_1): Define.
4912 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
4913 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
4914 omp_clause_mask::operator |, omp_clause_mask::operator &,
4915 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
4916 omp_clause_mask::operator ==): New methods.
4917 (enum c_omp_clause_split): New.
4918 (c_finish_omp_taskgroup): New prototype.
4919 (c_finish_omp_atomic): Add swapped argument.
4920 (c_finish_omp_for): Add code argument.
4921 (c_omp_split_clauses): New prototype.
4922 (c_split_parallel_clauses): Removed.
4923 (c_omp_declare_simd_clauses_to_numbers,
4924 c_omp_declare_simd_clauses_to_decls): New prototypes.
4925 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
4926 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
4927 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
4928 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
4929 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
4930 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
4931 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
4932 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
4933 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
4934 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
4935 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
4936 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
4937 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
4938 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
4939 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
4940 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
4941 PRAGMA_OMP_CLAUSE_UNIFORM.
4942
826cacfe
MG
49432013-10-09 Marc Glisse <marc.glisse@inria.fr>
4944
4945 PR tree-optimization/20318
4946 * c-common.c (handle_returns_nonnull_attribute): New function.
4947 (c_common_attribute_table): Add returns_nonnull.
4948
2284b034
MG
49492013-10-03 Marc Glisse <marc.glisse@inria.fr>
4950
4951 PR c++/19476
4952 * c.opt (fcheck-new): Move to common.opt.
4953
b56e9788
MP
49542013-09-25 Marek Polacek <polacek@redhat.com>
4955 Jakub Jelinek <jakub@redhat.com>
4956
4957 PR sanitizer/58413
4958 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
4959 an expression if we can prove it is correct.
4960 (ubsan_instrument_division): Likewise. Remove unnecessary
4961 check.
4962
ce6923c5
MP
49632013-09-18 Marek Polacek <polacek@redhat.com>
4964
4965 PR sanitizer/58411
4966 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
4967 Declare it.
4968 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
4969
fb5610fb
IS
49702013-09-14 Iain Sandoe <iain@codesourcery.com>
4971
4972 PR target/48094
4973 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
4974 fobjc-gc, freplace-objc-classes): Accept for LTO.
4975
88b0e79e
JC
49762013-09-13 Jacek Caban <jacek@codeweavers.com>
4977
4978 * c-target.def: New hook
4979
c9b0866a
PC
49802013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
4981
4982 PR c++/43452
4983 * c.opt (Wdelete-incomplete): Add.
4984
0af94e6f
JR
49852013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
4986
4987 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
4988 (vector_types_compatible_elements_p): New function.
4989 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
4990 declaration.
4991 (vector_types_compatible_elements_p): Declare.
4992
7c26172c
GDR
49932013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
4994
4995 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
4996 a virtual member function.
4997 (pp_simple_type_specifier): Remove.
4998 (pp_c_type_specifier): Likewise.
4999 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
5000 Rename from pp_c_type_specifier. Adjust.
5001 (c_pretty_printer::c_pretty_printer): Do not assign to
5002 simple_type_specifier.
5003
20059c8b
GDR
50042013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
5005
5006 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
5007 member function.
5008 (c_pretty_printer::storage_class_specifier): Likewise.
5009 (c_pretty_printer::initializer): Likewise.
5010 (pp_declaration): Remove.
5011 (pp_declaration_specifiers): Likewise.
5012 (pp_abstract_declarator): Likewise.
5013 (pp_declarator): Likewise.
5014 (pp_type_id): Likewise.
5015 (pp_statement): Likewise.
5016 (pp_constant): Likewise.
5017 (pp_id_expression): Likewise.
5018 (pp_primary_expression): Likewise.
5019 (pp_unary_expression): Likewise.
5020 (pp_multiplicative_expression): Likewise.
5021 (pp_conditional_expression): Likewise.
5022 (pp_assignment_expression): Likewise.
5023 (pp_expression): Likewise.
5024 (pp_c_type_id): Likewise.
5025 (pp_c_storage_class_specifier): Likewise.
5026 * c-pretty-print.c (pp_c_type_cast): Tidy.
5027 (pp_c_pointer): Likewise.
5028 (pp_c_type_specifier): Likewise.
5029 (pp_c_parameter_type_list): Likewise.
5030 (pp_c_function_definition): Likewise.
5031 (pp_c_init_declarator): Likewise.
5032 (pp_c_initializer_list): Likewise.
5033 (pp_c_constructor_elts): Likewise.
5034 (c_pretty_printer::direct_abstract_declarator): Likewise.
5035 (c_pretty_printer::declaration_specifiers): Likewise.
5036 (c_pretty_printer::primary_expression): Likewise.
5037 (c_pretty_printer::postfix_expression): Likewise.
5038 (c_pretty_printer::type_id): Rename from pp_c_type_id.
5039 (c_pretty_printer::storage_class_specifier): Rename from
5040 pp_c_storage_class_specifier.
5041 (c_pretty_printer::initializer): Rename from pp_c_initializer.
5042 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
5043 storage_class_specifier, initializer, offset_list, flags.
5044
de5a5fa1
MP
50452013-08-30 Marek Polacek <polacek@redhat.com>
5046
5047 * c-ubsan.c: New file.
5048 * c-ubsan.h: New file.
5049
8f0e4d72
GDR
50502013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
5051
5052 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
5053 member function.
5054 (c_pretty_printer::declaration_specifiers): Likewise.
5055 (c_pretty_printer::declarator): Likewise.
5056 (c_pretty_printer::abstract_declarator): Likewise.
5057 (c_pretty_printer::direct_abstract_declarator): Likewise.
5058 (c_pretty_printer::direct_declarator): Likewise.
5059 (c_pretty_printer::function_specifier): Likewise.
5060 (pp_declaration): Adjust.
5061 (pp_declaration_specifiers): Likewise.
5062 (pp_abstract_declarator): Likewise.
5063 (pp_direct_declarator): Likewise.
5064 (pp_function_specifier): Likewise.
5065 (pp_direct_abstract_declarator): Remove as unused.
5066 (pp_c_declaration): Remove.
5067 (pp_c_declaration_specifiers): Likewise.
5068 (pp_c_declarator): Likewise.
5069 (pp_c_direct_declarator): Likewise.
5070 (pp_c_function_specifier): Likewise.
5071 (pp_c_direct_abstract_declarator): Likewise.
5072 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
5073 from pp_c_abstract_declarator. Adjust.
5074 (c_pretty_printer::direct_abstract_declarator): Rename from
5075 pp_c_direct_abstract_declarator. Adjust.
5076 (c_pretty_printer::function_specifier): Rename from
5077 pp_c_function_specifier. Adjust.
5078 (c_pretty_printer::declaration_specifiers): Rename from
5079 pp_c_declaration_specifiers. Adjust.
5080 (c_pretty_printer::direct_declarator): Rename from
5081 pp_c_direct_declarator. Adjust.
5082 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
5083 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
5084 (c_pretty_printer::c_pretty_printer): Do not assign to
5085 declaration, declaration_specifiers, declarator,
5086 direct_declarator, direct_abstract_declarator, function_specifier.
5087
00d34d3a
GDR
50882013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
5089
5090 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
5091 virtual member function.
5092 (c_pretty_printer::multiplicative_expression): Likewise.
5093 (c_pretty_printer::conditional_expression): Likewise.
5094 (c_pretty_printer::assignment_expression): Likewise.
5095 (c_pretty_printer::expression): Likewise.
5096 (pp_unary_expression): Adjust.
5097 (pp_multiplicative_expression): Likewise.
5098 (pp_assignment_expression): Likewise.
5099 (pp_conditional_expression): Likewise.
5100 (pp_expression): Likewise.
5101 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
5102 from pp_c_unary_expression. Adjust.
5103 (c_pretty_printer::multiplicative_expression): Rename from
5104 pp_c_multiplicative_expression. Adjust.
5105 (c_pretty_printer::conditional_expression): Rename from
5106 pp_c_conditional_expression. Adjust.
5107 (c_pretty_printer::assignment_expression): Rename from
5108 pp_c_assignment_expression. Adjust.
5109 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
5110 (c_pretty_printer::c_pretty_printer): Do not assign to
5111 unary_expression, multiplicative_expression,
5112 conditional_expression, expression.
5113
fb22178f
GDR
51142013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
5115
5116 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
5117 virtual member function.
5118 (pp_postfix_expression): Adjust.
5119 (pp_c_postfix_expression): Remove.
5120 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
5121 from pp_c_postfix_expression. Adjust.
5122 (c_pretty_printer::c_pretty_printer): Do not assign to
5123 postfix_expression.
5124
7ecc2600
GDR
51252013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
5126
5127 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
5128 virtua member function.
5129 (pp_primary_expression): Adjust.
5130 (pp_c_primary_expression): Remove.
5131 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
5132 from pp_c_primary_expression. Adjust.
5133 (pp_c_initializer_list): Use pp_primary_expression.
5134 (c_pretty_printer::c_pretty_printer): Do not assign to
5135 primary_expression.
5136
0691175f
GDR
51372013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
5138
5139 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
5140 * c-pretty-print.c (M_): Remove.
5141 (c_pretty_printer::translate_string): Define.
5142 (pp_c_type_specifier): Use it.
5143 (pp_c_primary_expression): Likewise.
5144 (pp_c_expression): Likewise.
5145
66dfe4c4
GDR
51462013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
5147
5148 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
5149 virtual function.
5150 (pp_c_id_expression): Remove.
5151 (pp_id_expression): Adjust.
5152 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
5153 pp_c_id_expression. Adjust.
5154 (pp_c_postfix_expression): Use pp_id_expression.
5155 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
5156
ca43e9d5
GDR
51572013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
5158
5159 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
5160 member function.
5161 (pp_constant): Adjust.
5162 (pp_c_constant): Remove.
5163 * c-pretty-print.c (c_pretty_printer::constant): Rename from
5164 pp_c_constant. Adjust.
5165 (pp_c_constant)
5166 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
5167 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
5168
da6ca2b5
GDR
51692013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
5170
5171 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
5172 (c_pretty_printer::c_pretty_printer): Declare.
5173 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
5174 c_pretty_printer_init. Adjust.
5175 (print_c_tree): Do not call c_pretty_printer_init.
5176 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
5177
65a372f4
AC
51782013-08-09 Arnaud Charlet <charlet@adacore.com>
5179
5180 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
5181
fd9b0f32
PC
51822013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
5183
5184 PR c++/58080
5185 * c-common.c (pointer_int_sum): Add bool parameter.
5186 * c-common.h (pointer_int_sum): Adjust declaration.
5187
e0aec1e9
GDR
51882013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
5189
5190 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
5191 c_pretty_printer variable.
5192
b066401f
GDR
51932013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
5194
5195 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
5196 (pp_base): Remove.
5197 (pp_c_base): Likewise. Adjust users.
5198 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
5199 (pp_c_whitespace): Do not call pp_base.
5200 (pp_c_left_paren): Likewise.
5201 (pp_c_right_paren): Likewise.
5202 (pp_c_left_brace): Likewise.
5203 (pp_c_right_brace): Likewise.
5204 (pp_c_left_bracket): Likewise.
5205 (pp_c_right_bracket): Likewise.
5206 (pp_c_dot): Likewise.
5207 (pp_c_ampersand): Likewise.
5208 (pp_c_star): Likewise.
5209 (pp_c_arrow): Likewise.
5210 (pp_c_semicolon): Likewise.
5211 (pp_c_complement): Likewise.
5212 (pp_c_exclamation): Likewise.
5213 (pp_c_direct_declarator): Likewise.
5214 (pp_c_ws_string): Likewise.
5215 (pp_c_identifier): Likewise.
5216 (pp_c_statement): Likewise.
5217 (print_c_tree): Likewise.
5218
65e5a578
ESR
52192013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
5220
5221 PR c++/58072
5222 * c-common.c (c_parse_error): Catch user-defined literal tokens and
5223 provide useful error strings.
5224
137a1a27
GDR
52252013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
5226
5227 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
5228 printer functions instead of pp_string or operators and punctuators.
5229 (dump_generic_ada_node): Likewise.
5230 * c-pretty-print.c (pp_c_type_specifier): Likewise.
5231 (pp_c_relational_expression): Likewise.
5232 (pp_c_logical_or_expression): Likewise.
5233
07838b13
GDR
52342013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
5235
5236 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
5237 functions instead of pp_character.
5238 (pp_ada_tree_identifier): Likewise.
5239 (dump_ada_double_name): Likewise.
5240 (dump_ada_function_declaration): Likewise.
5241 (dump_ada_array_domains): Likewise.
5242 (dump_template_types): Likewise.
5243 (dump_generic_ada_node): Likewise.
5244 (print_ada_declaration): Likewise.
5245 (print_ada_struct_decl): Likewise.
5246 * c-pretty-print.c (pp_c_integer_constant): Likewise.
5247
433cc7b0
TT
52482013-07-23 Tom Tromey <tromey@redhat.com>
5249
5250 * c-common.h (enum rid) <RID_GENERIC>: New constant.
5251 * c-common.c (c_common_reswords): Add _Generic.
5252
688010ba
OB
52532013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
5254
5255 * c-common.c: Fix typos.
5256 * c-common.h: Likewise.
5257
2a99e5e6
LL
52582013-07-13 Lubos Lunak <l.lunak@suse.cz>
5259
5260 PR c++/55203
5261 * c-common.c (c_common_attribute_table): Add warn_unused.
5262 (handle_warn_unused_attribute): New.
5263
c26302d5
JJ
52642013-07-10 Jakub Jelinek <jakub@redhat.com>
5265
5266 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
5267 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
5268
dfeadaa0
PC
52692013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
5270
5271 PR c++/57869
5272 * c.opt: Add Wconditionally-supported.
5273
6a2fa4b2
GS
52742013-07-08 Graham Stott <graham.stott@btinternet.com>
5275
adfac8df 5276 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
5277 unused variables l_length and l_node.
5278
ecdbd01a 52792013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
5280
5281 PR c/57821
5282 * c-common.c (complete_array_type): Delay folding first index
5283 like other indices. When folding, check for index overflow.
5284
bedc293e
MG
52852013-06-27 Marc Glisse <marc.glisse@inria.fr>
5286
5287 PR c++/57509
5288 * c-common.h (c_build_vec_perm_expr): New complain argument.
5289 * c-common.c (c_build_vec_perm_expr): Likewise.
5290 Use save_expr also in C++.
5291
604b2bfc
GDR
52922013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
5293
5294 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
5295 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
5296 * c-opts.c (c_common_post_options): Likewise.
5297
dfeadaa0 52982013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
5299
5300 * array-notation-common.c (length_mismatch_in_expr): Changed the
5301 parameter type's from a dynamic array to a vec_tree. Also removed
5302 the size parameters.
5303 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
5304 the change above.
5305
2ce86d2e
BI
53062013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
5307
5308 * c-common.h (struct cilkplus_an_parts): New structure.
5309 (struct cilkplus_an_loop_parts): Likewise.
5310 (cilkplus_extract_an_triplets): New prototype.
5311 (fix_sec_implicit_args): Likewise.
5312 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
5313 (fix_sec_implicit_args): Likewise.
604b2bfc 5314
07a6825b
BI
53152013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
5316
5317 * array-notation-common.c (find_inv_trees): Removed an unwanted
5318 typecasting.
5319 * c-common.h (struct inv_list::additional_tcodes): Changed type from
5320 enum rid to enum tree_code.
5321
08346abd
JH
53222013-06-11 Jan Hubicka <jh@suse.cz>
5323
5324 * c-common.c (handle_alias_ifunc_attribute): Do not set
5325 DECL_EXTERNAL for weakref variables.
5326 * c-pragma.c (handle_pragma_weak): Make sure aliases
5327 are not declared as external.
5328
d60f1706
BI
53292013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
5330
5331 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
5332 function from c/c-array-notation.c.
5333 (is_cilkplus_reduce_builtin): Likewise.
5334 (find_rank): Likewise.
5335 (extract_array_notation_exprs): Likewise.
5336 (replace_array_notations): Likewise.
5337 (find_inv_trees): Likewise.
5338 (replace_inv_trees): Likewise.
5339 (contains_array_notation_expr): Likewise.
5340 (find_correct_array_notation_type): Likewise.
5341 * c-common.h (struct inv_list): Moved this struct from the file
5342 c/c-array-notation.c and added a new field called additional tcodes.
5343 (length_mismatch_in_expr_p): New prototype.
5344 (is_cilkplus_reduce_builtin): Likewise.
5345 (find_rank): Likewise.
5346 (extract_array_notation_exprs): Likewise.
5347 (replace_array_notation): Likewise.
5348 (find_inv_trees): Likewise.
5349 (replace_inv_trees): Likewise.
5350 (find_correct_array_notation_type): Likewise.
dfeadaa0 5351
36536d79
BI
53522013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
5353
5354 * c-common.c (c_define_builtins): When cilkplus is enabled, the
5355 function array_notation_init_builtins is called.
5356 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
5357 * c-common.def (ARRAY_NOTATION_REF): New tree.
5358 * c-common.h (build_array_notation_expr): New function declaration.
5359 (build_array_notation_ref): Likewise.
5360 (extract_sec_implicit_index_arg): New extern declaration.
5361 (is_sec_implicit_index_fn): Likewise.
5362 (ARRAY_NOTATION_CHECK): New define.
5363 (ARRAY_NOTATION_ARRAY): Likewise.
5364 (ARRAY_NOTATION_START): Likewise.
5365 (ARRAY_NOTATION_LENGTH): Likewise.
5366 (ARRAY_NOTATION_STRIDE): Likewise.
5367 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
5368 ARRAY_NOTATION_REF.
5369 (pp_c_expression): Likewise.
5370 * c.opt (flag_enable_cilkplus): New flag.
5371 * array-notation-common.c: New file.
5372
f7716d57
JJ
53732013-05-14 Jakub Jelinek <jakub@redhat.com>
5374
5375 PR c++/57274
5376 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
5377
a5e0cd1d
MG
53782013-05-10 Marc Glisse <marc.glisse@inria.fr>
5379
5380 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
5381 vectors.
5382
f6bc1c4a
HS
53832013-05-07 Han Shen <shenhan@google.com>
5384
5385 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
5386
3f12f6e9
SKS
53872013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5388
5389 * c-common.c (check_user_alignment): Emit error for negative values.
5390
61949153
PC
53912013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
5392
5393 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
5394
e93e18e9
PC
53952013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
5396
5397 * c-cppbuiltin.c (c_cpp_builtins): Do not define
5398 __GXX_EXPERIMENTAL_CXX1Y__.
5399
44d90fe1 54002013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
8e745a17 5401 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
44d90fe1
PC
5402
5403 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
5404 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
5405 to simply use OPT_Wpointer_arith.
5406 (c_sizeof_or_alignof_type): Likewise.
5407
13f39b2e
PC
54082013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
5409
5410 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
5411
4b84d650
JJ
54122013-04-12 Jakub Jelinek <jakub@redhat.com>
5413
5414 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
5415 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
5416 specifiers.
5417
fb037b5d
SB
54182013-04-07 Steven Bosscher <steven@gcc.gnu.org>
5419
5420 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
5421
4e856798
PC
54222013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
5423
5424 * c-common.c (pointer_int_sum): Remove dead code.
5425
4b1baac8
RS
54262013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
5427
5428 PR middle-end/56524
5429 * c-common.c (handle_optimize_attribute): Don't call
5430 save_optabs_if_changed.
5431
0b50e654
JJ
54322013-03-05 Jakub Jelinek <jakub@redhat.com>
5433
5434 PR middle-end/56461
5435 * c-pch.c (pch_init): Free target_validity at the end.
5436
48c41403
JJ
54372013-03-04 Jakub Jelinek <jakub@redhat.com>
5438
5439 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
5440
e664c61c
KS
54412013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
5442 Jakub Jelinek <jakub@redhat.com>
5443
5444 PR sanitizer/56454
5445 * c-common.c (handle_no_sanitize_address_attribute): New function.
5446 (c_common_attribute_table): Add no_sanitize_address attribute.
5447 (handle_no_address_safety_analysis_attribute): Add
5448 no_sanitize_address attribute, not no_address_safety_analysis
5449 attribute.
5450
a475fd3d 54512013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
5452
5453 PR target/52555
5454 * c-common.c (handle_optimize_attribute): Call
5455 save_optabs_if_changed.
5456
f6007d99
JJ
54572013-02-18 Jakub Jelinek <jakub@redhat.com>
5458 Steven Bosscher <steven@gcc.gnu.org>
5459
5460 PR pch/54117
5461 * c-opts.c (c_common_post_options): If debug info is enabled
5462 and non-dwarf*, refuse to load PCH files and when writing PCH
5463 file warn.
5464
cf35e2b1
JJ
54652013-02-05 Jakub Jelinek <jakub@redhat.com>
5466
5467 PR middle-end/56167
5468 * c-common.c (handle_error_attribute): Fix condition.
5469
32887460
JJ
54702013-01-30 Jakub Jelinek <jakub@redhat.com>
5471
5472 PR c++/55742
5473 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
5474
5af057d8
JM
54752013-01-18 Jason Merrill <jason@redhat.com>
5476
5477 PR target/54908
5478 * c.opt (-fextern-tls-init): New.
5479 * c-opts.c (c_common_post_options): Handle it.
5480
cc83c823
JJ
54812013-01-09 Jakub Jelinek <jakub@redhat.com>
5482
5483 PR c/48418
5484 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
5485 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
5486 and is either negative or bigger or equal to type precision
5487 of the first operand.
5488
a859517f
MP
54892012-12-03 Marek Polacek <polacek@redhat.com>
5490
5491 PR c/55570
5492 * c-common.c (check_user_alignment): Swap order of tests,
5493 check TREE_CODE first.
5494
2d7aa578
ESR
54952012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
5496
5497 PR c++/52654
5498 * c-common.h (overflow_type): New enum.
5499 (build_userdef_literal): Add overflow_type argument.
5500 (tree_userdef_literal): Add overflow_type.
5501 (USERDEF_LITERAL_OVERFLOW): New access macro.
5502 * c-common.c (build_userdef_literal): Add overflow_type
5503 argument.
5504 * c-lex.c (c_lex_with_flags): Add overflow_type to
5505 build_userdef_literal calls.
5506 (interpret_integer, interpret_float): Add overflow_type argument.
5507
cc3c4f62
RB
55082012-11-28 Richard Biener <rguenther@suse.de>
5509
5510 PR c/35634
5511 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
5512 here and use a type with proper overflow behavior for types that would
5513 need to be promoted for the arithmetic.
5514
77bc5132
JJ
55152012-11-23 Jakub Jelinek <jakub@redhat.com>
5516
5517 PR sanitizer/55435
5518 * c-common.c (handle_no_address_safety_analysis_attribute): New
5519 function.
5520 (c_common_attribute_table): Add no_address_safety_analysis.
5521
5dc99c46
SB
55222012-11-16 Simon Baldwin <simonb@google.com>
5523
5524 * c.opt: Add f[no-]canonical-system-headers.
5525 * c-opts.c (c_common_handle_option): Handle
5526 OPT_fcanonical_system_headers.
5527
a4a0016d
ESR
55282012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
5529
5530 PR c++/54413
5531 * c-opts.c (c_common_handle_option): Set new flags.
5532 * c.opt: Describe new flags.
5533
7dbb85a7
JM
55342012-11-09 Jason Merrill <jason@redhat.com>
5535
5536 * c.opt (Wabi-tag): New.
5537
ad7bac31
AK
55382012-11-09 Andi Kleen <ak@linux.intel.com>
5539
5540 PR 55139
5541 * c-common.c (get_atomic_generic_size): Mask with
8e745a17 5542 MEMMODEL_MASK
ad7bac31 5543
7332899a
MLI
55442012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
5545
5546 PR c/53063
5547 * c.opt (Wformat): Make it Alias Wformat=1.
5548 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
5549 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
5550 LangEnabledBy.
5551 (Wformat=): RejectNegative. Use LangEnabledBy.
5552 (Wnonnull): Use LangEnabledBy.
5553 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
5554 * c-format.c (set_Wformat): Delete.
5555 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
8e745a17
JJ
5556 (maybe_read_dollar_number): Likewise.
5557 (avoid_dollar_number): Likewise.
5558 (finish_dollar_format_checking): Likewise.
5559 (check_format_info): Likewise.
5560 (check_format_info_main): Likewise.
5561 (check_format_types): Likewise.
5562 (format_type_warning): Likewise.
5563 * c-common.c (int): Likewise.
5564 (check_function_sentinel): Likewise.
5565 * c-common.h (warn_format,set_Wformat): Do not declare here.
7332899a 5566
34a180a6
MLI
55672012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
5568
5569 PR c/53063
5570 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
5571 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
5572 Use LangEnabledBy.
5573 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
5574 common.opt.
5575 (Wvariadic-macros): Init(1).
5576 * c-opts.c (c_common_handle_option): Do not handle them
5577 explicitly.
5578 (c_common_post_options): Likewise.
5579 (sanitize_cpp_opts): warn_unused_macros is now
5580 cpp_warn_unused_macros.
5581 (push_command_line_include): Likewise.
5582 * c-common.c (warn_unknown_pragmas): Do not define.
5583 * c-common.h (warn_unknown_pragmas): Do not declare.
5584
3f46d6a5
MLI
55852012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
5586
5587 PR c/51294
5588 * c-common.c (conversion_warning): Handle conditional expressions.
5589
880661a4
JW
55902012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
5591
5592 PR c++/54930
5593 * c.opt (Wreturn_local_addr): Define new option.
5594
4514a96b
JM
55952012-10-25 Jason Merrill <jason@redhat.com>
5596
f14edc1a
JM
5597 * c.opt (Wvirtual-move-assign): New.
5598
4514a96b
JM
5599 * c.opt (Winherited-variadic-ctor): New.
5600
93100c6b
MG
56012012-10-25 Marc Glisse <marc.glisse@inria.fr>
5602
5603 PR c++/54427
5604 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
5605
1efcb8c6
JM
56062012-10-23 Joseph Myers <joseph@codesourcery.com>
5607
5608 * c-common.h (pch_cpp_save_state): Declare.
5609 * c-target.def (c_preinclude): New hook.
5610 * c-opts.c (done_preinclude): New.
5611 (push_command_line_include): Handle default preincluded header.
5612 (cb_file_change): Call pch_cpp_save_state when calling
5613 push_command_line_include.
5614 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
5615 (pch_cpp_save_state): New.
5616 (pch_init): Call pch_cpp_save_state conditionally, instead of
5617 calling cpp_save_state.
5618
4a0ae68e
MLI
56192012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5620
5621 PR c/53063
5622 PR c/40989
5623 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
5624 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
5625 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
5626 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
5627 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
5628 * c-opts.c (c_common_handle_option): Remove explicit handling from
5629 here.
5630 (c_common_post_options): Likewise.
5631
67e4210b
EB
56322012-10-18 Eric Botcazou <ebotcazou@adacore.com>
5633
5634 * c-ada-spec.c (LOCATION_COL): Delete.
5635 (compare_location): New function.
5636 (compare_node): Use it.
5637 (compare_comment): Likewise.
5638
65d4f2cd
MLI
56392012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
5640
5641 PR c/53063
5642 PR c/40989
5643 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
5644 * c-opts.c (c_common_handle_option): Do not set them here. Add
5645 comment.
5646 (c_common_post_options): Likewise.
5647
909881cb
EB
56482012-10-16 Eric Botcazou <ebotcazou@adacore.com>
5649
5650 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
5651 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
5652 Remove POINTER_TYPE handling, add large unsigned handling and use
5653 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
5654
3a785c97
JJ
56552012-10-12 Jakub Jelinek <jakub@redhat.com>
5656
5657 PR c/54381
5658 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
5659 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
5660 locs and array of 3 trees instead of just single loc and single
5661 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
5662 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
5663 For *cmp* builtins that take two sources strings report warnings
5664 about first and second source, not about destination and source.
5665
5e54f81d
MG
56662012-10-12 Marc Glisse <marc.glisse@inria.fr>
5667
5668 PR c++/53055
5669 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
5670
f5b02f1e
EB
56712012-10-11 Eric Botcazou <ebotcazou@adacore.com>
5672
5673 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
5674 declaring something coming from another file.
5675
b46dbc6c
AC
56762012-10-10 Arnaud Charlet <charlet@adacore.com>
5677
f5b02f1e 5678 PR ada/54845
b46dbc6c
AC
5679 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
5680
5d9de0d0
PC
56812012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
5682
5683 PR c++/54194
5684 * c-common.c (warn_about_parentheses): Add location_t parameter;
5685 use EXPR_LOC_OR_LOC.
5686 * c-common.h: Update declaration.
5687
a212e43f
MG
56882012-10-09 Marc Glisse <marc.glisse@inria.fr>
5689
5690 PR c++/54427
5691 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
5692 more operations. Make error messages optional.
5693 * c-common.h (enum stv_conv): Moved from c-typeck.c.
5694 (scalar_to_vector): Declare.
5695
b1db7f91
JM
56962012-10-08 Jason Merrill <jason@redhat.com>
5697
5698 * c-common.c (c_common_reswords): Add thread_local.
5699
e28d52cf
DS
57002012-10-08 Dodji Seketeli <dodji@redhat.com>
5701
5702 PR c++/53528 C++11 attribute support
5703 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
5704 new functions.
5705 * c-common.c (check_cxx_fundamental_alignment_constraints): New
5706 static function.
5707 (handle_aligned_attribute): In choose strictest alignment
5708 among many. Use new check_cxx_fundamental_alignment_constraints.
5709 (handle_transparent_union_attribute): In c++11 attribute syntax,
5710 don't look through typedefs.
5711
3b78de56
AC
57122012-10-04 Arnaud Charlet <charlet@adacore.com>
5713
5714 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
5715 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
5716 out of dumpfile.h.
5717
6040bb5f
DC
57182012-09-25 Dehao Chen <dehao@google.com>
5719
5720 PR middle-end/54645
3b78de56 5721 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
5722 map when read in the pch.
5723
3f8257db 57242012-09-18 Arnaud Charlet <charlet@adacore.com>
0b07a57e
AC
5725
5726 * c-ada-spec.c: Style fixes.
5727
3f8257db 57282012-09-18 Thomas Quinot <quinot@adacore.com>
da5182be
TQ
5729
5730 * c.opt (-fada-spec-parent): Define new command line switch.
5731 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
5732 is specified, generate binding spec as a child of the specified unit.
5733
0ccb505d
PC
57342012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
5735 Manuel López-Ibáñez <manu@gcc.gnu.org>
5736
5737 PR c++/53210
5738 * c.opt ([Winit-self]): Enabled by -Wall in C++.
5739
c583af79
AC
57402012-08-23 Arnaud Charlet <charlet@adacore.com>
5741
5742 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
5743 for pointers, and add missing Convention C pragma.
5744 (print_ada_struct_decl): Add missing aliased keyword.
5745 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
5746
1a4049e7
JJ
57472012-08-17 Jakub Jelinek <jakub@redhat.com>
5748
5749 * c-common.c (sizeof_pointer_memaccess_warning): New function.
5750 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
5751 * c-opts.c (c_common_handle_option): Enable it for -Wall.
5752 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
5753 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
5754
70b5e7dc
RG
57552012-08-10 Richard Guenther <rguenther@suse.de>
5756
5757 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
5758
f8923f7e
SB
57592012-08-07 Steven Bosscher <steven@gcc.gnu.org>
5760
5761 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
5762 instead of separate pp_newline and pp_flush.
5763 (print_c_tree): Likewise.
5764
e45abe1f
RH
57652012-07-26 Richard Henderson <rth@redhat.com>
5766
5767 * c-common.c (handle_hot_attribute): Allow labels.
5768 (handle_cold_attribute): Likewise.
5769
332f1d24
JJ
57702012-07-20 Jakub Jelinek <jakub@redhat.com>
5771
5772 PR c++/28656
5773 * c-common.c (check_function_nonnull): Handle multiple nonnull
5774 attributes properly.
5775
7ee2468b
SB
57762012-07-16 Steven Bosscher <steven@gcc.gnu.org>
5777
5778 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
5779 * c-ada-spec.c: Likewise.
5780 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
5781
ee7b28eb
SB
57822012-07-14 Steven Bosscher <steven@gcc.gnu.org>
5783
5784 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
5785 Remove code conditional on it.
5786
6bdf3519
SB
57872012-07-11 Steven Bosscher <steven@gcc.gnu.org>
5788
5789 * c-gimplify.c: Do not include basic-block.h.
5790 * c-common.c: Do not include linfuncs.h.
5791
532aafad
SB
57922012-07-08 Steven Bosscher <steven@gcc.gnu.org>
5793
5794 * c-common.h: Include tree.h.
5795
8d0d1915
JM
57962012-07-02 Jason Merrill <jason@redhat.com>
5797
5798 PR c++/53524
5799 * c-common.c (get_priority): Call default_conversion.
5800
fbc873ad
UB
58012012-07-01 Uros Bizjak <ubizjak@gmail.com>
5802
5803 * c-pch.c (c_common_write_pch): Remove unused variables.
5804
d4a10d0a
SB
58052012-06-29 Steven Bosscher <steven@gcc.gnu.org>
5806
5807 * cppspec.c: Moved from gcc/ to here.
5808
6f3a2e23
KT
58092012-06-27 Kai Tietz <ktietz@redhat.com>
5810
5811 PR preprocessor/37215
5812 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
5813
8ca92d04
SB
58142012-06-21 Steven Bosscher <steven@gcc.gnu.org>
5815
5816 * c-common.h (c_common_print_pch_checksum): Remove.
5817 * c-pch.c: Do not include output.h.
5818 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
5819 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
5820 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
5821 (struct c_pch_header): Remove.
5822 (get_ident): Update gpch version.
5823 (pch_init): Do not print executable_checksum to asm_out_file.
5824 Do not fail if there is no asm_out_file to read back from. Set
5825 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
5826 (c_common_write_pch): Verify that nothing was written to asm_out_file
5827 since pch_init was called. Do not write a c_pch_header, and do not
5828 copy from asm_out_file to the PCH.
5829 (c_common_read_pch): Do not read a c_pch_header, and do not restore
5830 the content of asm_out_file from the PCH.
5831 (c_common_print_pch_checksum): Remove.
5832 * c-opts.c (c_common_init): Print out executable_checksum directly.
5833
70f42967
SB
58342012-06-19 Steven Bosscher <steven@gcc.gnu.org>
5835
5836 * c-target.def (objc_declare_unresolved_class_reference,
5837 objc_declare_class_definition): Add new hooks.
5838
a8781821
SB
58392012-06-19 Steven Bosscher <steven@gcc.gnu.org>
5840
5841 * c-lex.c: Do not include output.h.
5842 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
5843 Remove uses of ASM_OUTPUT_IDENT.
5844
9e1a8dd1
RR
58452012-06-15 Marc Glisse <marc.glisse@inria.fr>
5846
5847 PR c++/51033
5848 * c-common.h (c_build_vec_perm_expr): Move decl here.
5849 * c-common.c (c_build_vec_perm_expr): Move definition
5850 here.
5851
6f07a821
SB
58522012-06-06 Steven Bosscher <steven@gcc.gnu.org>
5853
5854 * c.opt (fconserve-space): Turn into a no-op.
5855
9faeb493 58562012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
5857
5858 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
5859 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
5860 both the start and end of the function.
5861
a4b7d13c
SB
58622012-06-04 Steven Bosscher <steven@gcc.gnu.org>
5863
5864 * c-common.c: Do not include output.h.
5865 * c-pragma.c: Likewise.
5866
c265f413
SA
58672012-06-04 Steven Bosscher <steven@gcc.gnu.org>
5868
5869 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
5870 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
5871 (lang_decl_name): Handle namespace decls.
5872
be7a421e
SB
58732012-05-31 Steven Bosscher <steven@gcc.gnu.org>
5874
5875 * c-ada-spec.c: Do not include output.h.
5876 * c-semantics.c: Likewise.
5877
65de6659
JM
58782012-05-29 Joseph Myers <joseph@codesourcery.com>
5879
5880 * c-common.c: Fix typo.
5881
ca5f4331
MM
58822012-05-29 Michael Matz <matz@suse.de>
5883
5884 * c-common.h (c_expand_decl): Remove prototype.
5885
4f7f7aca
MLI
58862012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
5887
5888 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
5889 * c-opts.c (c_common_handle_option): Remove code handling
5890 warn_missing_braces.
5891
4a792f9b
PC
58922012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
5893
5894 PR c++/25137
5895 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
5896 -Wmissing_braces.
5897
650dc14a
DS
58982012-05-22 Dodji Seketeli <dodji@redhat.com>
5899
5900 PR c++/53322
5901 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
5902
9b095bf1
MLI
59032012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
5904
5905 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
5906 * c-opts.c (c_common_handle_option): Do not handle explicitly
5907 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
5908
0b2c4be5
DS
59092012-05-16 Dodji Seketeli <dodji@redhat.com>
5910
5911 PR preprocessor/7263
5912 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
5913 to cpp_classify_number. For diagnostics, use the precise location
5914 instead of the global input_location.
5915
a1bde5af
PC
59162012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
5917
d02924ef 5918 PR c++/11856
a1bde5af
PC
5919 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
5920
d1ede5f4
BS
59212012-05-14 Bernd Schmidt <bernds@codesourcery.com>
5922
a1bde5af 5923 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 5924
f2bc201f
MLI
59252012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
5926
5927 PR 53063
5928 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
5929 Wreorder): Use LangEnabledBy.
5930 * c-opts.c (c_common_handle_option): Do not enable them
5931 explicitly. Call lang-specific generated functions.
5932 (c_common_post_options): Do not set them here.
5933
95744782
MLI
59342012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
5935
5936 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
5937 Wmissing-field-initializers,Wmissing-parameter-type,
5938 Wold-style-declaration,Woverride-init): Use EnabledBy.
5939 * c-opts.c (c_common_post_options): Do not set here explicitly.
5940
7d5a5747
MLI
59412012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
5942
5943 PR 53063
5944 * c-opts.c (c_common_handle_option): Use handle_generated_option
5945 to enable sub-options.
5946
5a3c9cf2
PC
59472012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
5948
5949 PR c++/53158
5950 * c-common.c (warnings_for_convert_and_check): Use warning_at.
5951
3ac8781c
RG
59522012-05-10 Richard Guenther <rguenther@suse.de>
5953
5954 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
5955 adjust commentary about TYPE_IS_SIZETYPE types.
5956
1e537948
MLI
59572012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5958
5959 PR c++/53261
5960 * c-common.c (warn_logical_operator): Check that argument of
5961 integer_zerop is not NULL.
5962
f2c4a785
MLI
59632012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
5964
5965 PR c/43772
5966 * c-common.c (warn_logical_operator): Do not warn if either side
5967 is already true or false.
5968
50f305ca
MLI
59692012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
5970
5971 PR c/51712
5972 * c-common.c (expr_original_type): New.
5973 (shorten_compare): Do not warn for enumeration types.
5974
0c3641b0
MLI
59752012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
5976
5977 * c.opt (fpermissive): Add Var(flag_permissive).
5978
7edaa4d2
MG
59792012-04-30 Marc Glisse <marc.glisse@inria.fr>
5980
5981 PR c++/51033
5982 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
5983 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
5984
b9c8da34
DS
59852012-04-30 Dodji Seketeli <dodji@redhat.com>
5986
5987 Add -Wvarargs option
5988 * c.opt (Wvarargs): Define new option.
5989
e6c69da0
MLI
59902012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5991
5992 * c-common.c (check_function_arguments): Replace
5993 Wmissing-format-attribute with Wsuggest-attribute=format.
5994
90137d8f
MLI
59952012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5996
5997 * c.opt (Wsuggest-attribute=format): New. Alias of
5998 Wmissing-format-attribute.
5999 * c-format.c (decode_format_type): Replace
6000 Wmissing-format-attribute with Wsuggest-attribute=format.
6001 (check_function_format): Likewise.
6002
9faeb493 60032012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
6004
6005 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
6006 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
6007 * c.opt: Add Wliteral-suffix.
6008
c1771a20
MLI
60092012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
6010
6011 PR c/44774
6012 * c.opt (Wpedantic): New.
6013 (pedantic): Alias Wpedantic.
6014 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
6015 (c_common_post_options): Likewise.
6016 (sanitize_cpp_opts): Likewise.
6017 * c-lex.c (interpret_float): Likewise.
6018 * c-format.c (check_format_types): Likewise.
6019 * c-common.c (pointer_int_sum): Likewise.
6020 (c_sizeof_or_alignof_type): Likewise.
6021 (c_add_case_label): Likewise.
6022 (c_do_switch_warnings): Likewise.
6023 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
6024
04b391c1
JM
60252012-04-15 Jason Merrill <jason@redhat.com>
6026
6027 PR c++/52818
6028 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
6029 (C_STD_NAME): Distinguish between C++98 and C++11.
6030
ac868f29
EB
60312012-04-11 Eric Botcazou <ebotcazou@adacore.com>
6032
6033 PR target/52624
6034 * c-common.h (uint16_type_node): Rename into...
6035 (c_uint16_type_node): ...this.
6036 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
6037 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
6038
fd4116f4
MLI
60392012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
6040
6041 * c-common.c (warn_if_unused_value): Move definition to here.
6042 * c-common.h (warn_if_unused_value): Move declaration to here.
6043
573ac65e
WB
60442012-03-23 William Bader <williambader@hotmail.com>
6045
6046 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
6047
552b8185
JM
60482012-03-20 Jason Merrill <jason@redhat.com>
6049
6050 * c-common.h (enum cxx_dialect): Add cxx1y.
6051 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
6052 test.
6053 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
6054 * c-opts.c (c_common_post_options): Likewise.
6055 (set_std_cxx1y): New.
6056 (c_common_handle_option): Call it.
6057 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
6058
04398fa8
PC
60592012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
6060
6061 PR c++/14710
6062 * c.opt ([Wuseless-cast]): Add.
6063
d2a12ae7
RG
60642012-03-16 Richard Guenther <rguenther@suse.de>
6065
6066 * c-pretty-print.c (pp_c_initializer_list): Adjust.
6067
a12bf402
MLI
60682012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6069
6070 PR c++/44783
6071 * c.opt (ftemplate-backtrace-limit) Add.
6072
5c30094f
RO
60732012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6074
6075 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
6076 handling.
6077 * c-pragma.c (handle_pragma_extern_prefix): Remove.
6078 (init_pragma): Don't register extern_prefix.
6079
21fa2faf
RG
60802012-03-12 Richard Guenther <rguenther@suse.de>
6081
6082 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
6083 (builtin_type_for_size): Likewise.
6084
e3793c6f
JJ
60852012-02-13 Jakub Jelinek <jakub@redhat.com>
6086
6087 PR c++/52215
6088 * c-common.c (sync_resolve_params): Don't decide whether to convert
6089 or not based on TYPE_SIZE comparison, convert whenever arg_type
6090 is unsigned INTEGER_TYPE.
6091
93286335
PC
60922012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
6093
6094 PR c/52118
6095 * c.opt ([Wunused-local-typedefs]): Fix description.
6096
7a421706
MS
60972012-01-24 Mike Stump <mikestump@comcast.net>
6098
6099 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
6100 exactly.
6101
ba9b1f11
RG
61022012-01-18 Richard Guenther <rguenther@suse.de>
6103
6104 * c-opts.c (c_common_post_options): Reset LTO flags if
6105 we are about to generate a PCH.
6106
465406be
PC
61072012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
6108
6109 PR c++/51777
6110 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
6111 use pp_unsigned_wide_integer.
6112
aee15221
RG
61132012-01-10 Richard Guenther <rguenther@suse.de>
6114
6115 PR middle-end/51806
6116 * c-opts.c (c_common_handle_option): Move -Werror handling
6117 to language independent code.
6118
5720c0dc
RG
61192012-01-05 Richard Guenther <rguenther@suse.de>
6120
6121 PR middle-end/51764
6122 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
6123 from common.opt.
6124
73ac190a
PC
61252011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
6126
6127 PR c++/51316
6128 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
6129 of array types with an unknown bound.
6130
48b0b196
JM
61312011-12-20 Joseph Myers <joseph@codesourcery.com>
6132
6133 * c-common.c (flag_isoc99): Update comment to refer to C11.
6134 (flag_isoc1x): Change to flag_isoc11.
6135 * c-common.h (flag_isoc99): Update comment to refer to C11.
6136 (flag_isoc1x): Change to flag_isoc11.
6137 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
6138 C11.
6139 * c-opts.c (set_std_c1x): Change to set_std_c11.
6140 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
6141 Call set_std_c11.
6142 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
6143 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
6144 * c.opt (std=c1x): Change to std=c11. Document as non-draft
6145 standard.
6146 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
6147 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
6148 (std=gnu1x): Make alias of std=gnu11.
6149
d58d6eb5
JM
61502011-12-19 Jason Merrill <jason@redhat.com>
6151
6152 PR c++/51228
6153 * c-common.c (handle_transparent_union_attribute): Check the first
6154 field if the type is complete.
6155
b3908fcc
JW
61562011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
6157
6158 PR libstdc++/51365
6159 * c-common.c (RID_IS_FINAL): Add.
6160 * c-common.h (RID_IS_FINAL): Add.
6161
fea3ca91
IS
61622011-11-30 Iain Sandoe <iains@gcc.gnu.org>
6163
6164 * c.opt (fgnu-runtime): Provide full description.
6165 (fnext-runtime): Likewise.
6166 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
6167
62bad7cd
AM
61682011-11-28 Andrew MacLeod <amacleod@redhat.com>
6169
6170 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
6171 predefines in one place. Add LOCK_FREE predefines.
6172 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
6173 new func.
6174
c466c4ff
AM
61752011-11-24 Andrew MacLeod <amacleod@redhat.com>
6176
6177 PR c/51256
9faeb493 6178 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 6179 conditions
9faeb493
UB
6180 (resolve_overloaded_atomic_exchange,
6181 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
6182 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
6183 error_mark_node for error conditions.
9faeb493 6184
a5952633
RG
61852011-11-08 Richard Guenther <rguenther@suse.de>
6186
6187 PR middle-end/51010
6188 c-family/
6189
0a35513e
AH
61902011-11-07 Richard Henderson <rth@redhat.com>
6191 Aldy Hernandez <aldyh@redhat.com>
6192 Torvald Riegel <triegel@redhat.com>
6193
6194 Merged from transactional-memory.
6195
6196 * c-common.c (handle_tm_wrap_attribute,
6197 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
6198 (struct c_common_reswords): Added __transaction* keywords.
6199 (struct c_common_attribute_table): Added transaction* and tm_regparm
6200 attributes.
6201 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
6202 masks.
6203 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
6204 find_tm_attribute): Declare.
6205
6d87092d
JM
62062011-11-07 Jason Merrill <jason@redhat.com>
6207
6208 PR c++/35688
6209 * c-common.c, c-common.h: Revert yesterday's changes.
6210
8e7860a1
JM
62112011-11-06 Jason Merrill <jason@redhat.com>
6212
6213 PR c++/35688
6214 * c-common.c (decl_has_visibility_attr): Split out from...
6215 (c_determine_visibility): ...here.
6216 * c-common.h: Declare it.
6217
d19fa6b5
JM
62182011-11-06 Joseph Myers <joseph@codesourcery.com>
6219
6220 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
6221 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
6222 type.
6223 (check_user_alignment): New. Split out of
6224 handle_aligned_attribute. Disallow integer constants with
6225 noninteger types. Conditionally allow zero.
6226 (handle_aligned_attribute): Use check_user_alignment.
6227 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
6228
86951993
AM
62292011-11-06 Andrew MacLeod <amacleod@redhat.com>
6230 Richard Henderson <rth@redhat.com>
6231
6232 Merged from cxx-mem-model.
6233
6234 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 6235 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
6236 parameters that are the same type size.
6237 (get_atomic_generic_size): New. Find size of generic
6238 atomic function parameters and do typechecking.
6239 (add_atomic_size_parameter): New. Insert size into parameter list.
6240 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
6241 either __atomic_exchange_n or external library call.
9faeb493 6242 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 6243 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 6244 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
6245 __atomic_load_n or an external library call.
6246 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
6247 __atomic_store_n or an external library call.
6248 (resolve_overloaded_builtin): Handle new __atomic builtins.
6249
cf9e9959
EB
62502011-11-04 Eric Botcazou <ebotcazou@adacore.com>
6251
6252 PR c++/50608
6253 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
6254 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
6255 <INDIRECT_REF>: Return the argument.
6256 <ARRAY_REF>: Remove special code for negative offset.
6257 Call fold_build_pointer_plus instead of size_binop.
6258 (fold_offsetof): Remove STOP_REF argument and adjust.
6259 * c-common.h (fold_offsetof_1): Declare.
6260 (fold_offsetof): Remove STOP_REF argument.
6261
25339f10
JM
62622011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
6263
6264 PR c++/50810
6265 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
6266 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
6267 Wnarrowing for C++0x and C++98.
6268 * c.opt ([Wnarrowing]): Update.
6269
89401152
PC
62702011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
6271
6272 PR c++/44277
6273 * c.opt: Add Wzero-as-null-pointer-constant.
6274
97e3ad20
JM
62752011-10-31 Jason Merrill <jason@redhat.com>
6276
15694fdd
JM
6277 * c.opt (-fdeduce-init-list): Off by default.
6278
97e3ad20
JM
6279 PR c++/50920
6280 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
6281 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
6282 and -Wc++11-compat.
6283 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
6284
fb9120e3
RAV
62852011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
6286
6287 PR c++/30066
6288 * c.opt (fvisibility-inlines-hidden): Description change.
6289
3ce4f9e4
ESR
62902011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
6291
6292 Implement C++11 user-defined literals.
6293 * c-common.c (build_userdef_literal): New.
6294 * c-common.def: New tree code.
6295 * c-common.h (tree_userdef_literal): New tree struct and accessors.
6296 * c-lex.c (interpret_float): Add suffix parm.
6297 (c_lex_with_flags): Build literal tokens.
6298
5f53c243
PC
62992011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
6300
6301 PR c++/50841
6302 Revert:
6303 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
6304
6305 PR c++/50810
6306 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
6307 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
6308 Wnarrowing for C++0x and C++98.
6309 * c.opt ([Wnarrowing]): Update.
6310
263734e1
PC
63112011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
6312
6313 PR c++/50810
6314 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
6315 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
6316 Wnarrowing for C++0x and C++98.
6317 * c.opt ([Wnarrowing]): Update.
6318
d2e312d7
PC
63192011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
6320
6321 PR c++/45385
6322 * c-common.c (conversion_warning): Remove code looking for
6323 artificial operands.
6324
d17687f6
DS
63252011-10-18 Dodji Seketeli <dodji@redhat.com>
6326
6327 PR bootstrap/50760
6328 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 6329 !NO_IMPLICIT_EXTERN_C.
d17687f6 6330
fc8396e9
PC
63312011-10-17 Michael Spertus <mike_spertus@symantec.com>
6332
6333 * c-common.c (c_common_reswords): Add __bases,
6334 __direct_bases.
6335 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
6336
63372011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
6338
6339 PR c++/50757
6340 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
6341
847e697a
TT
63422011-10-15 Tom Tromey <tromey@redhat.com>
6343 Dodji Seketeli <dodji@redhat.com>
6344
6345 * c.opt (fdebug-cpp): New option.
6346 * c-opts.c (c_common_handle_option): Handle the option.
6347 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
6348 output stream in parameter. Factorized from ...
6349 (maybe_print_line): ... this. Dump location debug information when
6350 -fdebug-cpp is in effect.
6351 (print_line_1): New static function. Takes an output stream in
6352 parameter. Factorized from ...
6353 (print_line): ... here. Dump location information when -fdebug-cpp
6354 is in effect.
6355 (scan_translation_unit): Dump location information when
6356 -fdebug-cpp is in effect.
6357
92582b75
TT
63582011-10-15 Tom Tromey <tromey@redhat.com>
6359 Dodji Seketeli <dodji@redhat.com>
6360
6361 * c.opt (ftrack-macro-expansion): New option. Handle it with and
6362 without argument.
6363 * c-opts.c (c_common_handle_option)<case
6364 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
6365 cases. Handle -ftrack-macro-expansion with and without argument.
6366
46427374
TT
63672011-10-15 Tom Tromey <tromey@redhat.com>
6368 Dodji Seketeli <dodji@redhat.com>
6369
6370 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
6371 (print_line, cb_define, do_line_change): Adjust to avoid touching
6372 the internals of struct line_map. Use the public API instead.
6373 * c-pch.c (c_common_read_pch): Likewise.
6374 * c-lex.c (fe_file_change): Likewise.
6375
fc8396e9
PC
63762011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
6377
6378 PR c++/17212
6379 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
6380
63812011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
6382
6383 PR c++/33067
6384 * c-pretty-print.c (pp_c_floating_constant): Output
6385 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
6386
e79983f4
MM
63872011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
6388
6389 * c-common.c (def_builtin_1): Delete old interface with two
6390 parallel arrays to hold standard builtin declarations, and replace
6391 it with a function based interface that can support creating
6392 builtins on the fly in the future. Change all uses, and poison
6393 the old names. Make sure 0 is not a legitimate builtin index.
6394 * c-omp.c (c_finish_omp_barrier): Ditto.
6395 (c_finish_omp_taskwait): Ditto.
6396 (c_finish_omp_flush): Ditto.
6397
6637388f
TG
63982011-10-11 Tristan Gingold <gingold@adacore.com>
6399
6400 * c.opt: (fallow-parameterless-variadic-functions): New.
6401
3797cb21
DS
64022011-09-08 Dodji Seketeli <dodji@redhat.com>
6403
6404 PR c++/33255 - Support -Wunused-local-typedefs warning
6405 * c-common.h (struct c_language_function::local_typedefs): New
6406 field.
9faeb493
UB
6407 (record_locally_defined_typedef, maybe_record_typedef_use)
6408 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 6409 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
6410 (maybe_record_typedef_use)
6411 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
6412 * c.opt: Declare new -Wunused-local-typedefs flag.
6413
693ddb1b
EB
64142011-09-06 Eric Botcazou <ebotcazou@adacore.com>
6415
6416 PR middle-end/50266
6417 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
6418 computations.
6419
830c740f
RG
64202011-09-05 Richard Guenther <rguenther@suse.de>
6421
6422 * c-common.c (complete_array_type): Use ssize_int (-1) instead
6423 of integer_minus_one_node for empty array upper bounds.
6424
892a371f
DS
64252011-08-28 Dodji Seketeli <dodji@redhat.com>
6426
6427 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
6428 it's the first time it's being called on this main TU.
6429
0e3fdb48
RB
64302011-08-24 Richard Guenther <rguenther@suse.de>
6431
6432 PR c/49396
6433 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
6434
64352011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
6436
6437 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
6438 defined in cpp_init_builtins and c_cpp_builtins.
6439
d4a83c10
JM
64402011-08-19 Joseph Myers <joseph@codesourcery.com>
6441
6442 * c-common.c (c_common_reswords): Add __builtin_complex.
6443 * c-common.h (RID_BUILTIN_COMPLEX): New.
6444
bbceee64
JM
64452011-08-18 Joseph Myers <joseph@codesourcery.com>
6446
6447 * c-common.c (c_common_reswords): Add _Noreturn.
6448 (keyword_is_function_specifier): Handle RID_NORETURN.
6449 * c-common.h (RID_NORETURN): New.
6450
3f8257db 64512011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
0e3a99ae
AS
6452
6453 * c-common.c (unsafe_conversion_p): New function. Check if it is
6454 unsafe to convert an expression to the type.
6455 (conversion_warning): Adjust, use unsafe_conversion_p.
6456 * c-common.h (unsafe_conversion_p): New function declaration.
6457
20906c66
JJ
64582011-08-02 Jakub Jelinek <jakub@redhat.com>
6459
6460 * c-common.h (c_finish_omp_atomic): Adjust prototype.
6461 (c_finish_omp_taskyield): New prototype.
6462 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
6463 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
6464 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
6465 or RHS1 have side-effects, evaluate those too in the right spot,
6466 if it is a decl and LHS is also a decl, error out if they
6467 aren't the same.
6468 (c_finish_omp_taskyield): New function.
6469 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
6470 * c-pragma.c (omp_pragmas): Add taskyield.
6471 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
6472 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
6473 PRAGMA_OMP_CLAUSE_MERGEABLE.
6474
770e5a2e
DS
64752011-07-25 Dodji Seketeli <dodji@redhat.com>
6476
6477 * c-common.h (set_underlying_type): Remove parm name from
6478 declaration.
6479
1baae426
RG
64802011-07-25 Romain Geissler <romain.geissler@gmail.com>
6481
6482 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 6483
fcb21722
JM
64842011-07-22 Jason Merrill <jason@redhat.com>
6485
76f86d00
JM
6486 PR c++/49793
6487 * c.opt (Wnarrowing): New.
6488
3a636414
JM
6489 PR c++/30112
6490 * c-common.h: Declare c_linkage_bindings.
6491 * c-pragma.c (handle_pragma_redefine_extname): Use it.
6492
fcb21722
JM
6493 PR c++/49813
6494 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
6495 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
6496 as flag_isoc99 for 'restrict'.
6497 (pp_c_specifier_qualifier_list): Likewise for _Complex.
6498
02614448
ILT
64992011-07-21 Ian Lance Taylor <iant@google.com>
6500
6501 PR middle-end/49705
6502 * c-common.c (c_disable_warnings): New static function.
6503 (c_enable_warnings): New static function.
6504 (c_fully_fold_internal): Change local unused_p to bool. Call
6505 c_disable_warnings and c_enable_warnings rather than change
6506 c_inhibit_evaluation_warnings.
6507
34429675
JM
65082011-07-20 Jason Merrill <jason@redhat.com>
6509
6510 PR c++/6709 (DR 743)
6511 PR c++/42603 (DR 950)
6512 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
6513 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
6514 (CPP_DECLTYPE): New.
6515 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
6516
5d49b6a7
RG
65172011-07-19 Richard Guenther <rguenther@suse.de>
6518
6519 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
6520 * c-omp.c (c_finish_omp_for): Likewise.
6521
e84a58ff
EB
65222011-07-12 Eric Botcazou <ebotcazou@adacore.com>
6523
6524 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
6525 body on the next line.
6526
329af3c7
JM
65272011-07-08 Jason Merrill <jason@redhat.com>
6528
4063e61b
JM
6529 PR c++/45437
6530 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
6531
329af3c7
JM
6532 PR c++/49673
6533 * c-common.c (c_apply_type_quals_to_decl): Don't check
6534 TYPE_NEEDS_CONSTRUCTING.
6535
1a072294
RG
65362011-07-06 Richard Guenther <rguenther@suse.de>
6537
6538 * c-common.c (c_common_nodes_and_builtins):
6539 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
6540
fce5dddd
RG
65412011-07-05 Richard Guenther <rguenther@suse.de>
6542
6543 * c-common.c (c_common_nodes_and_builtins): Build all common
6544 tree nodes first.
6545
45d439ac
JJ
65462011-06-27 Jakub Jelinek <jakub@redhat.com>
6547
56300785
JJ
6548 * c-common.h (c_tree_chain_next): New static inline function.
6549
45d439ac
JJ
6550 * c-common.c (check_builtin_function_arguments): Handle
6551 BUILT_IN_ASSUME_ALIGNED.
6552
e0a8ecf2
AM
65532011-06-21 Andrew MacLeod <amacleod@redhat.com>
6554
6555 * c-common.c: Add sync_ or SYNC__ to builtin names.
6556 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
6557
65582011-06-20 Pierre Vittet <piervit@pvittet.com>
6559
6560 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
6561 handler.
6562 (gen_pragma_handler): New union.
6563 (internal_pragma_handler): New type.
6564 (c_register_pragma_with_data)
6565 (c_register_pragma_with_expansion_and_data): New functions.
6566
6567 * c-pragma.c (registered_pragmas, c_register_pragma_1)
6568 (c_register_pragma, c_register_pragma_with_expansion)
6569 (c_invoke_pragma_handler): Changed to work with
6570 internal_pragma_handler.
6571 (c_register_pragma_with_data)
6572 (c_register_pragma_with_expansion_and_data): New functions.
6573
677f3fa8
JM
65742011-06-14 Joseph Myers <joseph@codesourcery.com>
6575
6576 * c-common.c: Include common/common-target.h.
6577 (handle_section_attribute): Use
6578 targetm_common.have_named_sections.
6579 * c-cppbuiltin.c: Include common/common-target.h.
6580 (c_cpp_builtins): Use targetm_common.except_unwind_info.
6581
d7fc8c14
RG
65822011-06-10 Richard Guenther <rguenther@suse.de>
6583
6584 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
6585 to print a IDENTIFIER_NODE.
6586
10e48e39
RO
65872011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6588 Joseph Myers <joseph@codesourcery.com>
6589
6590 * c.opt (fbuilding-libgcc): New option.
6591 * c-cppbuiltin.c (c_cpp_builtins): Define
6592 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
6593
6976ae51
JM
65942011-06-07 Jason Merrill <jason@redhat.com>
6595
3ff60975
JM
6596 * c-common.c (max_tinst_depth): Lower default to 900.
6597
6976ae51
JM
6598 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
6599
009db074
RG
66002011-06-07 Richard Guenther <rguenther@suse.de>
6601
6602 * c-common.c (c_common_nodes_and_builtins): Do not set
6603 size_type_node or call set_sizetype.
6604
b4592b92
DS
66052011-06-07 Dodji Seketeli <dodji@redhat.com>
6606
6607 PR debug/49130
6608 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 6609 type when using pointer comparison to compare types.
b4592b92 6610
014ab419
JW
66112011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
6612
6613 * c.opt: Add -Wdelete-non-virtual-dtor.
6614 * c-opts.c (c_common_handle_option): Include it in -Wall.
6615
4f60111f
NF
66162011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
6617
6618 PR bootstrap/49190
6619
6620 Revert:
6621 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
6622
6623 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
6624 not tree_common.
6625
4cc4f2f4
JJ
66262011-05-27 Jakub Jelinek <jakub@redhat.com>
6627
6628 PR c++/49165
6629 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
6630 C++ don't call c_common_truthvalue_conversion on void type arms.
6631
38e01f9e
NF
66322011-05-27 Nathan Froyd <froydnj@codesourcery.com>
6633
6634 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
6635 (stmt_list_stack): Define.
6636 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
6637 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
6638
92e948a8
NF
66392011-05-26 Nathan Froyd <froydnj@codesourcery.com>
6640
6641 * c-common.c (warning_candidate_p): Check for BLOCKs.
6642
a2fc3e63
NF
66432011-05-26 Nathan Froyd <froydnj@codesourcery.com>
6644
6645 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
6646 not tree_common.
6647
0957c029
JJ
66482011-05-25 Jakub Jelinek <jakub@redhat.com>
6649
6650 * c-common.c (def_fn_type): Remove extra va_end.
6651
828fb3ba
JM
66522011-05-23 Jason Merrill <jason@redhat.com>
6653
6654 PR c++/48106
6655 * c-common.c (c_common_get_narrower): New.
6656 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
6657
dde05067
NF
66582011-05-23 Nathan Froyd <froydnj@codesourcery.com>
6659
6660 * c-common.h (check_function_arguments): Tweak prototype of
6661 check_function_arguments.
6662 * c-common.c (check_function_arguments): Likewise. Adjust
6663 calls to check_function_nonnull, check_function_format, and
6664 check_function_sentinel.
6665 (check_function_sentinel): Take a FUNCTION_TYPE rather than
6666 separate attributes and typelist arguments. Use
6667 FOREACH_FUNCTION_ARGS to iterate over argument types.
6668
3c0d13bf
PC
66692011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
6670
6671 * c-common.c (c_common_reswords): Reorder.
6672 * c-common.h (rid): Likewise.
6673
8242dd04
NF
66742011-05-10 Nathan Froyd <froydnj@codesourcery.com>
6675
6676 * c-common.c (def_fn_type): Don't call build_function_type, call
6677 build_function_type_array or build_varargs_function_type_array
6678 instead.
6679 (c_common_nodes_and_builtins): Likewise.
6680
3d528853
NF
66812011-05-05 Nathan Froyd <froydnj@codesourcery.com>
6682
6683 * c-common.c (c_add_case_label): Omit the loc argument to
6684 build_case_label.
6685 * c-common.h (build_case_label): Remove.
6686 * c-semantics.c (build_case_label): Remove.
6687
a04a722b
JM
66882011-05-05 Joseph Myers <joseph@codesourcery.com>
6689
6690 * c-objc.h (objc_start_method_definition): Update prototype.
6691 * stub-objc.c (objc_start_method_definition): Add extra parameter.
6692
e19a18d4
NF
66932011-05-04 Nathan Froyd <froydnj@codesourcery.com>
6694
6695 * c-common.c (check_main_parameter_types): Reindent. Don't use
6696 TYPE_ARG_TYPES directly.
6697 (handle_nonnull_attribute): Likewise.
6698 (sync_resolve_params): Likewise.
6699 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
6700 to check_format_string.
6701 (handle_format_attribute): Likewise.
6702 (check_format_string): Take a function type to examine instead of
6703 a type list. Use a function_arg_iterator to step through argument
6704 types.
6705
c62c040f
RG
67062011-05-04 Richard Guenther <rguenther@suse.de>
6707
6708 * c-common.c (fix_string_type): Use size_int for index type bounds.
6709 (start_fname_decls): Do not pass NULL to build_int_cst.
6710 (c_init_attributes): Likewise.
6711 * c-lex.c (c_lex_with_flags): Likewise.
6712
c12ff9d8
JM
67132011-04-27 Jason Merrill <jason@redhat.com>
6714
6715 * c-common.c (make_tree_vector_from_list): New.
6716 * c-common.h: Declare it.
6717
304dfbe3
RG
67182011-04-26 Richard Guenther <rguenther@suse.de>
6719
6720 PR preprocessor/48248
6721 * c-ppoutput.c (maybe_print_line): Always optimize newlines
6722 for output size with -P.
6723
3c0d13bf
PC
67242011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
6725
6726 * c-common.c (struct c_common_resword): Add __underlying_type.
6727 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
6728
04695783
JM
67292011-04-20 Jim Meyering <meyering@redhat.com>
6730
6731 * c-format.c (init_dollar_format_checking): Remove useless
6732 if-before-free.
6733
0dc33c3c
NP
67342011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
6735
6736 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 6737 (objc_detect_field_duplicates): New.
0dc33c3c 6738 * stub-objc.c: Likewise.
3c0d13bf 6739
c59633d9
NP
67402011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6741
6742 * stub-objc.c (objc_declare_protocols): Renamed to
6743 objc_declare_protocol.
6744 * c-objc.h: Likewise.
3c0d13bf 6745
32dabdaf
NP
67462011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6747
6748 * stub-objc.c (objc_declare_class): Updated argument name.
6749
81f653d6
NF
67502011-04-12 Nathan Froyd <froydnj@codesourcery.com>
6751
6752 * c-common.h (c_common_init_ts): Declare.
6753 * c-common.c (c_common_init_ts): Define.
6754
eb345401
NP
67552011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6756
6757 * c-objc.h (objc_build_message_expr): Updated prototype.
6758 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 6759
a358e188
MJ
67602011-04-12 Martin Jambor <mjambor@suse.cz>
6761
6762 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
6763 of cgraph_node.
6764
e6313a78
RG
67652011-04-11 Richard Guenther <rguenther@suse.de>
6766
6767 * c-common.c (complete_array_type): Build a range type of
6768 proper type.
6769
dcf0c47e
NF
67702011-04-08 Nathan Froyd <froydnj@codesourcery.com>
6771
6772 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
6773 (handle_type_generic_attribute): Likewise.
6774
1ee44b26
JM
67752011-04-07 Jason Merrill <jason@redhat.com>
6776
6777 PR c++/48450
6778 * c-common.c (c_common_truthvalue_conversion): Don't ignore
6779 conversion from C++0x scoped enum.
6780
acce4e77
JM
67812011-04-06 Joseph Myers <joseph@codesourcery.com>
6782
6783 * c-target-def.h: New file.
6784 * c-target.def: New file.
6785 * c-target.h: New file.
6786 * c-common.c (targetcm): Don't define here.
6787 * c-common.h (default_handle_c_option): Declare.
6788 * c-format.c: Include c-target.h instead of target.h.
6789 * c-opts.c: Include c-target.h instead of target.h. Explicitly
6790 include tm.h.
6791 (default_handle_c_option): Move from targhooks.c.
6792
e2eefb55
JJ
67932011-03-29 Jakub Jelinek <jakub@redhat.com>
6794
6795 PR preprocessor/48248
6796 * c-ppoutput.c (print): Add src_file field.
6797 (init_pp_output): Initialize it.
6798 (maybe_print_line): Don't optimize by adding up to 8 newlines
6799 if map->to_file and print.src_file are different file.
6800 (print_line): Update print.src_file.
6801
ba78087b
KT
68022011-03-25 Kai Tietz <ktietz@redhat.com>
6803
6804 * c-ada-spec.c (compare_comment): Use filename_cmp
6805 instead of strcmp for filename.
6806
0edf1bb2
JL
68072011-03-25 Jeff Law <law@redhat.com>
6808
adfac8df 6809 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 6810
c7dc8804
JM
68112011-03-25 Jason Merrill <jason@redhat.com>
6812
6813 * c.opt: Add -std=c++03.
6814
d1d879b1
EB
68152011-03-22 Eric Botcazou <ebotcazou@adacore.com>
6816
6817 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
6818
3f8257db 68192011-03-17 Kai Tietz <ktietz@redhat.com>
62d784f7
KT
6820
6821 PR target/12171
5050afdf
KT
6822 * c-pretty-print.c (pp_c_specifier_qualifier_list):
6823 Display allowed attributes for function pointer types.
6824 (pp_c_attributes_display): New function to display
6825 attributes having affects_type_identity flag set to true.
6826 * c-pretty-print.h (pp_c_attributes_display): New prototype.
6827
62d784f7
KT
6828 * c-common.c (c_common_attribute_table):
6829 Add new element.
6830 (c_common_format_attribute_table): Likewise.
6831
82d37118
JM
68322011-03-18 Jason Merrill <jason@redhat.com>
6833
49a000c3
JM
6834 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
6835 * c-common.h: Don't declare it here.
6836 * c-common.c: Or define it here.
6837 * c-opts.c (c_common_handle_option): Or set it here.
6838
82d37118
JM
6839 PR c++/35315
6840 * c-common.c (handle_transparent_union_attribute): Don't
6841 make a duplicate type in C++.
6842
17bc631c
JM
68432011-03-15 Jason Merrill <jason@redhat.com>
6844
6845 * c-common.c (max_constexpr_depth): New.
6846 * c-common.h: Declare it.
6847 * c-opts.c (c_common_handle_option): Set it.
6848 * c.opt (fconstexpr-depth): New option.
6849
1b9b91a6
JM
68502011-03-11 Jason Merrill <jason@redhat.com>
6851
f231b5ff
JM
6852 * c-common.c (attribute_takes_identifier_p): Add missing const.
6853
1b9b91a6
JM
6854 PR c++/46803
6855 * c-common.c (attribute_takes_identifier_p): Assume that an
6856 unknown attribute takes an identifier.
6857
a19e4d44
NF
68582011-03-07 Nathan Froyd <froydnj@codesourcery.com>
6859
6860 PR c/47786
6861 * c-common.c (c_type_hash): Call list_length instead of iterating
6862 through DECL_CHAIN. Rename 'i' to 'n_elements'.
6863
982d62f6
JJ
68642011-02-19 Jakub Jelinek <jakub@redhat.com>
6865
6866 PR c/47809
6867 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
6868
0a256240
NP
68692011-02-17 Iain Sandoe <iains@gcc.gnu.org>
6870
6871 * c.opt (fobjc-abi-version=) New.
6872 (fobjc-nilcheck): New.
6873
ba9e6dd5
NF
68742011-02-03 Nathan Froyd <froydnj@codesourcery.com>
6875
6876 PR c++/46890
6877 * c-common.h (keyword_is_decl_specifier): Declare.
6878 * c-common.c (keyword_is_decl_specifier): Define.
6879 (keyword_is_function_specifier): New function.
6880
7273813a
JJ
68812011-01-26 Jakub Jelinek <jakub@redhat.com>
6882
6883 PR c/47473
6884 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
6885 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
6886 REAL_TYPE.
6887
908ef79b
AC
68882011-01-26 Arnaud Charlet <charlet@adacore.com>
6889
6890 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
6891
237e9384
JJ
68922011-01-26 Jakub Jelinek <jakub@redhat.com>
6893
6894 PR pch/47430
6895 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
6896 after init_c_lex if pch_file is set.
6897
47ea1edf
DK
68982011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
6899
d4dba752 6900 PR c++/43601
47ea1edf
DK
6901 * c.opt (-fkeep-inline-dllexport): New switch.
6902
2aa9c6ae
RG
69032011-01-12 Richard Guenther <rguenther@suse.de>
6904
6905 PR middle-end/32511
6906 * c-common.c (handle_weak_attribute): Warn instead of error
6907 on declaring an inline function weak.
6908
7bd11157
TT
69092011-01-05 Tom Tromey <tromey@redhat.com>
6910
6911 * c-common.h (lvalue_error): Update.
6912 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
6913 not error.
6914
0e66e494 69152010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 6916
b4f588c4
NP
6917 PR objc/47075
6918 * c-objc.h (objc_finish_message_expr): Added argument to
6919 prototype.
6920
f4da8dce
NF
69212010-12-22 Nathan Froyd <froydnj@codesourcery.com>
6922
6923 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
6924 Use prototype_p.
6925
46270f14
NP
69262010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
6927
6928 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 6929 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 6930
4816c593
NF
69312010-12-10 Nathan Froyd <froydnj@codesourcery.com>
6932
6933 * c-common.h (readonly_error): Declare.
6934 * c-common.c (readonly_error): Define.
6935
7a6daeb0
NF
69362010-12-09 Nathan Froyd <froydnj@codesourcery.com>
6937
6938 * c-common.h (invalid_indirection_error): Declare.
6939 * c-common.c (invalid_indirection_error): Define.
6940
892f6119
RG
69412010-12-03 Richard Guenther <rguenther@suse.de>
6942
6943 PR c/46745
6944 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
6945 (pp_c_unary_expression): Likewise.
6946 (pp_c_expression): Likewise.
6947
6c39e757
NP
69482010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
6949
6950 * c-common.h (objc_finish_function): New.
6951 (objc_non_volatilized_type): Removed.
6952 (objc_type_quals_match): Removed.
6953 * stub-objc.c (objc_finish_function): New.
6954 (objc_non_volatilized_type): Removed.
6955 (objc_type_quals_match): Removed.
9faeb493 6956
7c475d11
JM
69572010-11-30 Joseph Myers <joseph@codesourcery.com>
6958
6959 * c-common.h (parse_optimize_options): Declare.
6960 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
6961 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
6962
71f3e391
JM
69632010-11-29 Joseph Myers <joseph@codesourcery.com>
6964
6965 * c-opts.c (check_deps_environment_vars): Use getenv instead of
6966 GET_ENVIRONMENT.
6967 * c-pch.c (O_BINARY): Don't define here.
6968 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
6969
d5fabb58
JM
69702010-11-25 Joseph Myers <joseph@codesourcery.com>
6971
6972 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
6973 targetm.except_unwind_info.
6974
299404a1
JM
69752010-11-23 Joseph Myers <joseph@codesourcery.com>
6976
6977 * c-opts.c (c_common_handle_option): Pass location to
6978 set_struct_debug_option.
6979
c98cd5bf
JM
69802010-11-23 Joseph Myers <joseph@codesourcery.com>
6981
6982 * c-common.c (visibility_options): Move from ../opts.c.
6983 * c-common.h (struct visibility_flags, visibility_options):
6984 Declare here.
6985 * c-opts.c (finish_options): Rename to c_finish_options.
6986 (c_common_init): Update call to finish_options.
6987
a9546771
NP
69882010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
6989
6990 PR objc/34033
6991 * c-lex.c (lex_string): Check that each string in an Objective-C
6992 string concat sequence starts with either one or zero '@', and
6993 that there are no spurious '@' signs at the end.
6994
24a57808
JM
69952010-11-20 Joseph Myers <joseph@codesourcery.com>
6996
6997 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
6998 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
6999 HANDLE_PRAGMA_VISIBILITY.
7000 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
7001 HANDLE_PRAGMA_VISIBILITY): Don't define.
7002 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
7003
a9aa2c3a
NF
70042010-11-20 Nathan Froyd <froydnj@codesourcery.com>
7005
7006 PR c++/16189
7007 PR c++/36888
7008 PR c++/45331
7009 * c-common.h (keyword_begins_type_specifier): Declare.
7010 (keyword_is_storage_class_specifier): Declare.
7011 (keyword_is_type_qualifier): Declare.
7012 * c-common.c (keyword_begins_type_specifier): New function.
7013 (keyword_is_storage_class_specifier): New function.
7014 (keyword_is_type_qualifier): Declare.
7015
5386338c
JM
70162010-11-19 Joseph Myers <joseph@codesourcery.com>
7017
7018 PR c/46547
7019 * c-common.c (in_late_binary_op): Define.
7020 (c_common_truthvalue_conversion): Check in_late_binary_op before
7021 calling c_save_expr.
7022 * c-common.h (in_late_binary_op): Declare.
7023
69ccdddb
JM
70242010-11-19 Joseph Myers <joseph@codesourcery.com>
7025
7026 * c-opts.c (c_common_handle_option): Update calls to
7027 set_struct_debug_option.
7028
6b192a09
NP
70292010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
7030
7031 * c-common.h (objc_declare_protocols): Added additional argument.
7032 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 7033
fb52b50a
NF
70342010-11-18 Nathan Froyd <froydnj@codesourcery.com>
7035
7036 PR c/33193
7037 * c-common.h (build_real_imag_expr): Declare.
7038 * c-semantics.c (build_real_imag_expr): Define.
7039
b37421c6
JM
70402010-11-17 Joseph Myers <joseph@codesourcery.com>
7041
7042 * c-opts.c (c_common_parse_file): Take no arguments.
7043 * c-common.h (c_common_parse_file): Update prototype.
7044
07078664
JJ
70452010-11-16 Jakub Jelinek <jakub@redhat.com>
7046
7047 PR c++/46401
7048 * c-common.c (warning_candidate_p): Don't track non-const calls
7049 or STRING_CSTs.
7050
c6a13190
ILT
70512010-11-15 Ian Lance Taylor <iant@google.com>
7052
7053 * c-lex.c (init_c_lex): Set macro debug callbacks if
7054 flag_dump_go_spec is set.
7055
925e8657
NP
70562010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
7057
7058 * c-common.h (objc_build_incr_expr_for_property_ref): New.
7059 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
7060
bb0a9581
NF
70612010-11-15 Nathan Froyd <froydnj@codesourcery.com>
7062
7063 PR preprocessor/45038
7064 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
7065 dialects.
7066
c5fa0890
JM
70672010-11-12 Joseph Myers <joseph@codesourcery.com>
7068
7069 * c-common.h (c_family_lang_mask): Declare.
7070 * c-opts.c (c_family_lang_mask): Make extern.
7071 * c-pragma.c (handle_pragma_diagnostic): Use
7072 control_warning_option.
7073
a4d8c676
JM
70742010-11-12 Joseph Myers <joseph@codesourcery.com>
7075
7076 * c-common.c (parse_optimize_options): Update call to
7077 decode_options.
7078 * c-common.h (c_common_handle_option): Update prototype.
7079 * c-opts.c (c_common_handle_option): Take location_t parameter and
7080 pass it to other functions.
7081
f954bd2c
JM
70822010-11-11 Joseph Myers <joseph@codesourcery.com>
7083
7084 * c-opts.c (warning_as_error_callback): Remove.
7085 (c_common_initialize_diagnostics): Don't call
7086 register_warning_as_error_callback.
7087 (c_common_handle_option): Handle -Werror=normalized= here.
7088
d8a07487
JM
70892010-11-10 Joseph Myers <joseph@codesourcery.com>
7090
7091 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
7092 in diagnostic.
7093 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
7094 letter.
7095 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
7096 Remove trailing '.' from diagnostics.
7097 * c.opt (Wwrite-strings_: Avoid '`' in help text.
7098
d5478783
JM
70992010-11-10 Joseph Myers <joseph@codesourcery.com>
7100
7101 * c-common.c (parse_optimize_options): Pass global_dc to
7102 decode_options.
7103 * c-opts.c (c_common_handle_option): Pass &global_options to
7104 set_Wstrict_aliasing.
7105 * c.opt (v): Don't mark Common or document here.
7106
91ebb981
IS
71072010-11-06 Iain Sandoe <iains@gcc.gnu.org>
7108
7109 PR target/44981
7110 * c-format.c (format_type): New type gcc_objc_string_format_type.
7111 (valid_stringptr_type_p): New.
7112 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 7113 (check_format_string): Pass expected type, use
91ebb981
IS
7114 valid_stringptr_type_p (), check that the format string types are
7115 consistent with the format specification.
7116 (decode_format_attr): Warn if NSString is used outside objective-c.
7117 (format_types_orig): Add NSString.
7118 (format_name): New.
7119 (format_flags): New.
7120 (check_format_arg): Handle format strings requiring an external parser.
7121 first_target_format_type: New variable.
7122 (handle_format_attribute): Set up first_target_format_type, pass the
7123 expected format arg string type to check_format_string().
7124 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
7125 * stub-objc.c (objc_string_ref_type_p): New.
7126 (objc_check_format_arg): New.
7127
bede2adc
NP
71282010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
7129
9faeb493 7130 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
7131 * c-common.h (objc_build_class_component_ref): New.
7132 * stub-objc.c (objc_build_class_component_ref): New.
7133
9a179d01
NP
71342010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
7135
7136 * c.opt (Wproperty-assign-default): New option.
7137
22d8d616
NP
71382010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
7139
7140 Implemented -fobjc-std=objc1 flag.
7141 * c.opt (fobjc-std=objc1): New option.
7142
2debdb4f
NP
71432010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
7144
7145 Implemented format and noreturn attributes for Objective-C methods.
7146 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
7147 attribute for Objective-C methods.
7148
ec52b111
JM
71492010-10-31 Jason Merrill <jason@redhat.com>
7150
7151 * c-common.c (conversion_warning, warn_for_collisions_1): Use
7152 EXPR_LOC_OR_HERE.
7153
46a88c12
NP
71542010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
7155
7156 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
7157 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
7158 (objc_add_property_declaration): Removed arguments for copies and
7159 ivar.
7160 (objc_build_getter_call): Renamed to
7161 objc_maybe_build_component_ref.
7162 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
7163 (objc_is_property_ref): New.
7164 * c-common.c (c_common_reswords): Removed copies and ivar.
7165 * stub-objc.c (objc_add_property_declaration): Removed arguments
7166 for copies and ivar.
7167 (objc_build_getter_call): Renamed to
7168 objc_maybe_build_component_ref.
7169 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
7170 (objc_is_property_ref): New.
9faeb493 7171
1e4bf85b
AC
71722010-10-29 Arnaud Charlet <charlet@adacore.com>
7173 Matthew Gingell <gingell@adacore.com>
7174
7175 * c-ada-spec.c (separate_class_package): New function.
7176 (pp_ada_tree_identifier): Prefix references to C++ classes with the
7177 name of their enclosing package.
7178 (print_ada_declaration): Use separate_class_package.
7179
81f0bab2
JM
71802010-10-27 Jason Merrill <jason@redhat.com>
7181
2b08f2c5
JM
7182 * c-common.c (c_common_reswords): Add __is_literal_type.
7183 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
7184
81f0bab2
JM
7185 * c-common.c (check_case_value): Remove special C++ code.
7186
200290f2
NP
71872010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
7188
7189 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
7190 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
7191 and RID_LAST_PATTR.
7192 (objc_add_property_declaration): Added additional arguments.
7193 (objc_property_attribute_kind): Removed.
7194 (objc_set_property_attr): Removed.
7195 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
7196 copy and nonatomic.
7197 * stub-objc.c (objc_add_property_declaration): Added additional
7198 arguments.
7199 (objc_set_property_attr): Removed.
9faeb493 7200
f614132b
NP
72012010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
7202
7203 * c-common.h (objc_add_property_variable): Renamed to
7204 objc_add_property_declaration. Added location argument.
7205 * stub-objc.c (objc_add_property_variable): Same change.
b1726d6c 7206
b8a18805
NP
72072010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
7208
7209 * c-common.h (objc_maybe_printable_name): New.
7210 * stub-objc.c (objc_maybe_printable_name): New.
7211
3f8257db
JJ
72122010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
7213 Andrew Pinski <pinskia@gmail.com>
30cd1c5d
AS
7214
7215 * c-common.h (c_common_mark_addressable_vec): Declare.
7216 * c-common.c (c_common_mark_addressable_vec): New function.
7217
249a82c4
NP
72182010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
7219
7220 * c-common.h (objc_set_method_type): Removed.
7221 (objc_add_method_declaration): Added boolean argument.
7222 (objc_start_method_definition): Same change.
7223 (objc_build_method_signature): Same change.
7224 * stub-objc.c (objc_set_method_type): Removed.
7225 (objc_add_method_declaration): Added boolean argument.
7226 (objc_start_method_definition): Same change.
7227 (objc_build_method_signature): Same change.
7228
977e30bc
NP
72292010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
7230
7231 * c-common.h (finish_file): Removed.
7232 (objc_write_global_declarations): New.
7233 * c-opts.c (c_common_parse_file): Do not call finish_file.
7234 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 7235
da57d1b9
NP
72362010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
7237
7238 Implemented parsing @synthesize and @dynamic for
7239 Objective-C/Objective-C++.
7240 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
7241 (objc_add_synthesize_declaration): New.
7242 (objc_add_dynamic_declaration): New.
7243 * c-common.c (c_common_reswords): Add synthesize and dynamic.
7244 * stub-objc.c (objc_add_synthesize_declaration): New.
7245 (objc_add_dynamic_declaration): New.
9faeb493 7246
0069111f
MM
72472010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
7248
7249 PR target/46041
7250 * c-cppbuiltin.c (mode_has_fma): Move function here from
7251 builtins.c. Don't use the fma optab, instead just use the
7252 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
7253 using -save-temps.
7254
e426b47b
NP
72552010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
7256
7257 Merge from 'apple/trunk' branch on FSF servers.
0069111f 7258
3f8257db 7259 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
e426b47b 7260
9faeb493 7261 Radar 4330422
e426b47b
NP
7262 * c-common.h (objc_non_volatilized_type): New declaration
7263 * stub-objc.c (objc_non_volatilized_type): New stub.
7264
90fbfdc3
NP
72652010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
7266
e426b47b 7267 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3 7268
3f8257db 7269 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
90fbfdc3 7270
9faeb493 7271 Radar 4133425
90fbfdc3 7272 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 7273 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 7274
c37d8c30
IS
72752010-10-17 Iain Sandoe <iains@gcc.gnu.org>
7276
7277 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
7278 * c-common.h (enum rid): Add RID_AT_PACKAGE.
7279 (objc_ivar_visibility_kind): New enum.
7280 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 7281 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
7282 visibility enum.
7283
1b1562a5
MM
72842010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
7285
7286 * c-cppbuiltin.c (builtin_define_float_constants): Emit
7287 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
7288 has the appropriate fma builtins.
7289 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
7290
668ea4b1
IS
72912010-10-14 Iain Sandoe <iains@gcc.gnu.org>
7292
1b1562a5 7293 merge from FSF apple 'trunk' branch.
3f8257db 7294 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 7295
668ea4b1
IS
7296 Radars 4436866, 4505126, 4506903, 4517826
7297 * c-common.c (c_common_resword): Define @property and its attributes.
7298 * c-common.h: Define property attribute enum entries.
7299 (OBJC_IS_PATTR_KEYWORD): New.
7300 (objc_property_attribute_kind): New enum.
7301 Declare objc_set_property_attr (), objc_add_property_variable (),
7302 objc_build_getter_call () and objc_build_setter_call ().
7303 * stub-objc.c (objc_set_property_attr): New stub.
7304 (objc_add_property_variable): Likewise.
7305 (objc_build_getter_call): Likewise.
7306 (objc_build_setter_call) Likewise.
1b1562a5 7307
a1178b30
IS
73082010-10-13 Iain Sandoe <iains@gcc.gnu.org>
7309
1b1562a5 7310 merge from FSF apple 'trunk' branch.
3f8257db 7311 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
a1178b30
IS
7312
7313 Radar 3803157 (method attributes)
7314 * c-common.c (handle_deprecated_attribute): Recognize
7315 objc methods as valid declarations.
7316 * c-common.h: Declare objc_method_decl ().
1b1562a5 7317 * stub-objc.c (objc_method_decl): New stub.
a1178b30 7318
a75bfaa6
JM
73192010-10-08 Joseph Myers <joseph@codesourcery.com>
7320
7321 * c-common.c (parse_optimize_options): Call
7322 decode_cmdline_options_to_array_default_mask before
7323 decode_options. Update arguments to decode_options.
7324 * c-common.h (c_common_init_options_struct): Declare.
7325 * c-opts.c (c_common_init_options_struct): New. Split out from
7326 c_common_init_options.
7327
f05b9d93
NP
73282010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
7329
7330 Implemented fast enumeration for Objective-C.
7331 * c-common.h (objc_finish_foreach_loop): New.
7332 * stub-objc.c (objc_finish_foreach_loop): New.
7333
1ebe4b4f
JM
73342010-10-05 Joseph Myers <joseph@codesourcery.com>
7335
7336 * c-common.h (struct diagnostic_context): Don't declare here.
7337 (c_common_initialize_diagnostics): Declare using
7338 diagnostic_context typedef.
7339 * c-opts.c (c_common_handle_option): Pass global_dc to
7340 handle_generated_option.
7341
d4d24ba4
JM
73422010-10-04 Joseph Myers <joseph@codesourcery.com>
7343
7344 * c-opts.c (c_common_handle_option): Pass &global_options_set to
7345 handle_generated_option.
7346
478a1c5b
ILT
73472010-10-03 Ian Lance Taylor <iant@google.com>
7348
7349 * c.opt (-fplan9-extensions): New option.
7350
82a1c2fe
FXC
73512010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7352
7353 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
7354 Remove.
7355 (c_cpp_builtins): Call functions from cppbuiltin.c instead
7356 of duplicating code.
7357
92902b1b
IS
73582010-09-30 Iain Sandoe <iains@gcc.gnu.org>
7359
7360 * c-common.c: Add two new entries for @optional
7361 and @required keywords.
7362
7363 merge from FSF 'apple/trunk' branch.
3f8257db 7364 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
92902b1b
IS
7365
7366 Radar 4386773
7367 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
7368 objective-c keywords.
7369 (objc_set_method_opt): New declaration.
7370 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 7371
46625112
JM
73722010-09-30 Joseph Myers <joseph@codesourcery.com>
7373
7374 * c-common.c (handle_optimize_attribute): Pass &global_options to
7375 cl_optimization_save and cl_optimization_restore.
7376 * c-opts.c (c_common_handle_option): Pass &global_options to
7377 handle_generated_option.
7378 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
7379 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
7380 &global_options to cl_optimization_restore.
7381
49b91f05
NP
73822010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
7383
7384 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
7385 Objective-C/Objective-C++ keywords.
7386
13ed556f 73872010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 7388
9faeb493
UB
7389 Merge from 'apple/trunk' branch on FSF servers.
7390
3f8257db 7391 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
a6341d57
NP
7392
7393 Radar 4281748
7394 * c-common.h (objc_check_global_decl): New declaration.
7395 * stub-objc.c (objc_check_global_decl): New stub.
7396
f0036cca
JM
73972010-09-29 Joseph Myers <joseph@codesourcery.com>
7398
7399 * c.opt: Don't use VarExists.
7400
e3339d0f
JM
74012010-09-29 Joseph Myers <joseph@codesourcery.com>
7402
7403 * c-common.c (c_cpp_error): Update names of diagnostic_context
7404 members.
7405 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
7406 cl_optimization members.
7407 * c-opts.c (warning_as_error_callback, c_common_handle_option,
7408 sanitize_cpp_opts, finish_options): Update names of cpp_options
7409 members.
7410
1973201f
NP
74112010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
7412
7413 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
7414 (objc_is_reserved_word): Removed.
7415 * c-common.c: Updated comments.
7416 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
7417 objc_is_reserved_word.
7418 * stub-objc.c (objc_is_reserved_word): Removed.
7419
f7e71da5
IS
74202010-09-28 Iain Sandoe <iains@gcc.gnu.org>
7421
9faeb493 7422 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
7423 include attributes.
7424 (objc_start_method_definition): Likewise.
7425 (objc_build_keyword_decl): Likewise.
7426 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
7427 (objc_start_method_definition): Likewise.
7428 (objc_build_keyword_decl): Likewise.
7429
c165dca7
IS
74302010-09-28 Iain Sandoe <iains@gcc.gnu.org>
7431
7432 * c-common.h (objc_start_class_interface): Adjust prototype.
7433 (objc_start_category_interface): Likewise.
7434 (objc_start_protocol): Likewise.
7435 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
7436 (objc_start_class_interface): Likewise.
7437 (objc_start_category_interface): Likewise.
7438
7458026b
ILT
74392010-09-27 Ian Lance Taylor <iant@google.com>
7440
7441 * c-common.c (c_common_attribute_table): Add no_split_stack.
7442 (handle_no_split_stack_attribute): New static function.
7443
b581b85b
NP
74442010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
7445
9faeb493 7446 Merge from 'apple/trunk' branch on FSF servers.
b581b85b 7447
3f8257db 7448 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
b581b85b 7449
9faeb493 7450 Radar 4229905
b581b85b
NP
7451 * c-common.h (objc_have_common_type): New declaration.
7452 * stub-objc.c (objc_have_common_type): New stub.
7453
7454 2005-06-22 Ziemowit Laski <zlaski@apple.com>
7455
7456 Radar 4154928
7457 * c-common.h (objc_common_type): New prototype.
9faeb493 7458 * stub-objc.c (objc_common_type): New stub.
b581b85b 7459
46a4da10
JH
74602010-09-24 Jan Hubicka <jh@suse.cz>
7461
7462 * c-common.c (handle_leaf_attribute): New function.
7463 (struct attribute_spec c_common_att): Add leaf.
7464
e200444e
JM
74652010-09-22 Joseph Myers <joseph@codesourcery.com>
7466
7467 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
7468 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
7469 -dump, -dump=, -imacros, -imacros=, -include, -include=,
7470 -include-barrier, -include-directory, -include-directory=,
7471 -include-directory-after, -include-directory-after=,
7472 -include-prefix, -include-prefix=, -include-with-prefix,
7473 -include-with-prefix=, -include-with-prefix-after,
7474 -include-with-prefix-after=, -include-with-prefix-before,
7475 -include-with-prefix-before=, -no-integrated-cpp,
7476 -no-line-commands, -no-standard-includes, -no-warnings, -output,
7477 -output=, -pedantic, -pedantic-errors, -preprocess,
7478 -print-missing-file-dependencies, -trace-includes, -traditional,
7479 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
7480 -user-dependencies, -verbose, -write-dependencies,
7481 -write-user-dependencies, no-integrated-cpp, traditional): New.
7482
29a80ea6
NP
74832010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
7484
7485 PR objc/23710
ac1fc2fc
NP
7486 * c-common.h (objc_start_method_definition): Return bool instead
7487 of void.
7488 * stub-objc.c (objc_start_method_definition): Return bool instead
7489 of void.
7490
74912010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
7492
7493 PR objc/25965
7494 * c-common.h (objc_get_interface_ivars): New declaration.
7495 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 7496
de621752
ILT
74972010-09-15 Ian Lance Taylor <iant@google.com>
7498
7499 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 7500 messages. Remove period at end of warning message.
de621752 7501
ba885ec5
NS
75022010-09-09 Nathan Sidwell <nathan@codesourcery.com>
7503
7504 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
7505 (handle_alias_attribute): ... here.
7506 (handle_ifunc_attribute): New.
7507
c5ee1358
MM
75082010-09-06 Mark Mitchell <mark@codesourcery.com>
7509
7510 * c-common.h (do_warn_double_promotion): Declare.
7511 * c-common.c (do_warn_double_promotion): Define.
7512
0a0b3574
MM
75132010-09-05 Mark Mitchell <mark@codesourcery.com>
7514
7515 * c.opt (Wdouble-promotion): New.
7516
d1779886
JM
75172010-09-02 Joseph Myers <joseph@codesourcery.com>
7518
7519 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
7520 fvtable-thunks, fxref): Mark no longer supported in help text.
7521
2d2bd949
JM
75222010-09-02 Joseph Myers <joseph@codesourcery.com>
7523
7524 * c.opt (Wimport, fall-virtual, falt-external-templates,
7525 fdefault-inline, fenum-int-equiv, fexternal-templates,
7526 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
7527 fname-mangling-version-, fnew-abi, fnonnull-objects,
7528 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
7529 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
7530 applicable.
7531 (fhandle-exceptions): Mark with Alias and Warn.
7532 * c-opts.c (c_common_handle_option): Don't handle options marked
7533 as ignored.
7534
5de8299c
JM
75352010-09-02 Joseph Myers <joseph@codesourcery.com>
7536
7537 * c.opt (Wcomments, Werror-implicit-function-declaration,
7538 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
7539 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
7540 aliases.
7541 * c-common.c (option_codes): Use OPT_Wcomment instead of
7542 OPT_Wcomments.
7543 * c-opts.c (warning_as_error_callback, c_common_handle_option):
7544 Don't handle options marked as aliases.
7545
0ceb0201
RG
75462010-08-25 Richard Guenther <rguenther@suse.de>
7547
7548 * c-common.c (c_common_get_alias_set): Remove special
7549 handling for pointers.
7550
ac47786e
NF
75512010-08-20 Nathan Froyd <froydnj@codesourcery.com>
7552
7553 * c-common.c: Use FOR_EACH_VEC_ELT.
7554 * c-gimplify.c: Likewise.
7555 * c-pragma.c: Likewise.
7556
c878765b
JM
75572010-08-16 Joseph Myers <joseph@codesourcery.com>
7558
7559 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
7560 RejectDriver.
7561 (MMDX): Change back to MMD. Mark NoDriverArg instead of
7562 RejectDriver.
7563 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
7564 instead of OPT_MDX and OPT_MMDX.
7565
603349bf
JM
75662010-08-16 Joseph Myers <joseph@codesourcery.com>
7567
7568 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
7569
644fa7ac
JM
75702010-08-12 Joseph Myers <joseph@codesourcery.com>
7571
7572 * c.opt (MD, MMD): Change to MDX and MMDX.
7573 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
7574
481e1176
JM
75752010-08-11 Joseph Myers <joseph@codesourcery.com>
7576
7577 * c-opts.c (c_common_handle_option): Call handle_generated_option
7578 instead of handle_option.
7579
ac8dc9f7
NF
75802010-08-08 Nathan Froyd <froydnj@codesourcery.com>
7581
7582 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
7583 (maybe_apply_renaming_pragma): Delete unneeded declarations.
7584
4f8c876d
NF
75852010-08-08 Nathan Froyd <froydnj@codesourcery.com>
7586
7587 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
7588 (pending_redefine_extname): Change type to a VEC.
7589 (add_to_renaming_pragma_list): Update for new type of
7590 pending_redefine_extname.
ac8dc9f7 7591 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 7592
3b0c690e
AC
75932010-08-04 Arnaud Charlet <charlet@adacore.com>
7594
7595 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
7596 visited.
7597 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
7598 decide whether a type has already been declared/seen.
7599 Do not go to the original type.
7600 (dump_nested_types): New parameter forward.
7601 Generate forward declaration if needed and mark type as visited.
7602 (print_ada_declaration): Call dump_nested_types if not already done.
7603 Mark types as visited.
7604
1890bccc
JM
76052010-08-03 Joseph Myers <joseph@codesourcery.com>
7606
7607 * c.opt (-print-pch-checksum): Remove option.
7608 * c-opts.c (c_common_handle_option): Don't handle
7609 OPT_print_pch_checksum.
7610
5f20c657
JM
76112010-07-27 Joseph Myers <joseph@codesourcery.com>
7612
7613 * c-common.h (c_common_handle_option): Update prototype and return
7614 value type.
7615 * c-opts.c (c_common_handle_option): Update prototype and return
7616 value type. Update calls to handle_option and
7617 enable_warning_as_error.
7618
f551f80c
JJ
76192010-07-27 Jakub Jelinek <jakub@redhat.com>
7620
7621 PR c/45079
7622 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
7623
61ff2bdc
JM
76242010-07-27 Joseph Myers <joseph@codesourcery.com>
7625
7626 * c-common.h (c_common_missing_argument): Remove.
7627 * c-opts.c (c_common_missing_argument): Remove.
7628 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
7629 idirafter, imacros, include, isysroot, isystem, iquote): Add
7630 MissingArgError.
7631 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
7632
7a9bf9a4
JM
76332010-07-27 Joseph Myers <joseph@codesourcery.com>
7634
7635 * c-common.h (c_common_option_lang_mask,
7636 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
7637 New.
7638 (c_common_init_options): Update prototype.
7639 * c-opts.c (c_common_option_lang_mask): New.
7640 (c_common_initialize_diagnostics): Split out of
7641 c_common_init_options.
7642 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
7643 New.
7644 (c_common_init_options): Update prototype. Use decoded options in
7645 search for -lang-asm.
7646
910ad8de
NF
76472010-07-15 Nathan Froyd <froydnj@codesourcery.com>
7648
7649 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
7650 * c-format.c: Likewise.
7651
718f9c0f
MLI
76522010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
7653
7654 * c-common.h: Include diagnostic-core.h. Error if already
7655 included.
7656 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
7657
4d451982
MLI
76582010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
7659
adfac8df 7660 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
7661 Do not include expr.h
7662 (vector_mode_valid_p): Move here.
7663
119fe915
SB
76642010-06-21 DJ Delorie <dj@redhat.com>
7665
7666 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
7667 allow these pragmas anywhere.
7668
76692010-06-14 Jakub Jelinek <jakub@redhat.com>
7670
7671 PR bootstrap/44509
7672 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
7673 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
7674 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
7675 ggc_strdup instead of xstrdup.
7676
76772010-06-10 Jakub Jelinek <jakub@redhat.com>
7678
7679 * c-cppbuiltin.c: Include cpp-id-data.h.
7680 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
7681 (lazy_hex_fp_value): New function.
7682 (builtin_define_with_hex_fp_value): Provide definitions lazily.
7683
6662d794
MLI
76842010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
7685
7686 * c-gimplify.c: Do not include tree-flow.h
7687
38f8b050
JR
76882010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
7689
7690 PR other/44034
7691 * c-common.c: Rename targetm member:
7692 targetm.enum_va_list -> targetm.enum_va_list_p
7693
9589f23e
AS
76942010-06-28 Anatoly Sokolov <aesok@post.ru>
7695
7696 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
7697
3b06d379
SB
76982010-06-28 Steven Bosscher <steven@gcc.gnu.org>
7699
7700 * c-cppbuiltin.c: Do not include except.h.
7701
d166d4c3
AK
77022010-06-24 Andi Kleen <ak@linux.intel.com>
7703
9faeb493
UB
7704 * c-common.c (warn_for_omitted_condop): New.
7705 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 7706
70cb8be6
JM
77072010-06-21 Joseph Myers <joseph@codesourcery.com>
7708
7709 * c.opt (lang-objc): Remove.
7710 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
7711
a4c97feb
JR
77122010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
7713
7714 * c-opts.c: Include "tm_p.h".
7715
6e2f1956
JM
77162010-06-20 Joseph Myers <joseph@codesourcery.com>
7717
7718 * c-common.c (parse_optimize_options): Update call to
7719 decode_options.
7720
bc87224e
NF
77212010-06-18 Nathan Froyd <froydnj@codesourcery.com>
7722
7723 * c-common.c (record_types_used_by_current_var_decl): Adjust for
7724 new type of types_used_by_cur_var_decl.
7725
b49cf425
JR
77262010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
7727
7728 PR bootstrap/44512
7729 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
7730 for C++ standard compliance.
7731
59f9c2ed
JM
77322010-06-16 Jason Merrill <jason@redhat.com>
7733
7734 * c.opt: Add -Wnoexcept.
7735
33766b66
RG
77362010-06-16 Richard Guenther <rguenther@suse.de>
7737
7738 PR c/44555
7739 * c-common.c (c_common_truthvalue_conversion): Remove
7740 premature and wrong optimization concering ADDR_EXPRs.
7741
eff7e30c
AC
77422010-06-15 Arnaud Charlet <charlet@adacore.com>
7743
7744 * c-ada-spec.c (dump_sloc): Remove column info.
7745 (is_simple_enum): New function.
7746 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
7747 enum types when relevant.
7748
6312e84d
MLI
77492010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
7750
9faeb493 7751 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
7752 location.
7753
1cb42611
JM
77542010-06-10 Joseph Myers <joseph@codesourcery.com>
7755
7756 * c-opts.c (c_common_handle_option): Don't handle
7757 OPT_fshow_column.
7758
a9429e29
LB
77592010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7760
7761 * c-pragma.c (push_alignment): Use typed GC allocation.
7762 (handle_pragma_push_options): Likewise.
7763
7764 * c-common.c (parse_optimize_options): Likewise.
7765
7766 * c-common.h (struct sorted_fields_type): Add variable_size GTY
7767 option.
7768
5498f011
JM
77692010-06-07 Joseph Myers <joseph@codesourcery.com>
7770
7771 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
7772 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
7773 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
7774 flag_signed_bitfields, warn_strict_null_sentinel,
7775 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
7776 flag_gen_declaration, flag_no_gnu_keywords,
7777 flag_implement_inlines, flag_implicit_templates,
7778 flag_implicit_inline_templates, flag_optional_diags,
7779 flag_elide_constructors, flag_default_inline, flag_rtti,
7780 flag_conserve_space, flag_access_control, flag_check_new,
7781 flag_new_for_scope, flag_weak, flag_working_directory,
7782 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
7783 flag_enforce_eh_specs, flag_threadsafe_statics,
7784 flag_pretty_templates): Remove.
7785 * c-common.h (flag_preprocess_only, flag_nil_receivers,
7786 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
7787 flag_replace_objc_classes, flag_undef, flag_no_builtin,
7788 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
7789 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
7790 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
7791 flag_no_gnu_keywords, flag_implement_inlines,
7792 flag_implicit_templates, flag_implicit_inline_templates,
7793 flag_optional_diags, flag_elide_constructors, flag_default_inline,
7794 flag_rtti, flag_conserve_space, flag_access_control,
7795 flag_check_new, flag_new_for_scope, flag_weak,
7796 flag_working_directory, flag_use_cxa_atexit,
7797 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
7798 flag_threadsafe_statics, flag_pretty_templates,
7799 warn_strict_null_sentinel): Remove.
7800 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
7801 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
7802 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
7803 fimplicit-inline-templates, fimplicit-templates,
7804 flax-vector-conversions, fms-extensions, fnil-receivers,
7805 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
7806 frtti, fshort-double, fshort-enums, fshort-wchar,
7807 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
7808 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
7809 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
7810 gen-decls, undef): Use Var.
7811 (fdefault-inline, foptional-diags): Document as doing nothing.
7812 * c-opts.c (c_common_handle_option): Remove cases for options now
7813 using Var. Mark ignored options as such.
7814
39dabefd
SB
78152010-06-05 Steven Bosscher <steven@gcc.gnu.org>
7816
9faeb493 7817 * c-common.c: Moved to here from parent directory.
39dabefd
SB
7818 * c-common.def: Likewise.
7819 * c-common.h: Likewise.
7820 * c-cppbuiltin.c: Likewise.
7821 * c-dump.c: Likewise.
7822 * c-format.c: Likewise.
7823 * c-format.h : Likewise.
7824 * c-gimplify.c: Likewise.
7825 * c-lex.c: Likewise.
7826 * c-omp.c: Likewise.
7827 * c.opt: Likewise.
7828 * c-opts.c: Likewise.
7829 * c-pch.c: Likewise.
7830 * c-ppoutput.c: Likewise.
7831 * c-pragma.c: Likewise.
7832 * c-pragma.h: Likewise.
7833 * c-pretty-print.c: Likewise.
7834 * c-pretty-print.h: Likewise.
7835 * c-semantics.c: Likewise.
7836 * stub-objc.c: Likewise.
7837
7838 * c-common.c: Include gt-c-family-c-common.h.
7839 * c-pragma.c: Include gt-c-family-c-pragma.h.
7840\f
cbe34bb5 7841Copyright (C) 2010-2017 Free Software Foundation, Inc.
39dabefd
SB
7842
7843Copying and distribution of this file, with or without modification,
7844are permitted in any medium without royalty provided the copyright
7845notice and this notice are preserved.
This page took 3.041512 seconds and 5 git commands to generate.