]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
Implement new C++ intrinsics __is_assignable and __is_constructible.
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
b42cc3ca
VV
12017-05-17 Ville Voutilainen <ville.voutilainen@gmail.com>
2
3 Implement new C++ intrinsics __is_assignable and __is_constructible.
4 * c-common.c (__is_assignable, __is_constructible): New.
5 * c-common.h (RID_IS_ASSIGNABLE, RID_IS_CONSTRUCTIBLE): Likewise.
6
1a817418
ML
72017-05-17 Martin Liska <mliska@suse.cz>
8
9 * c-common.h: Introduce dump_flags_t type and
10 use it instead of int type.
11 * c-gimplify.c (c_genericize): Likewise.
12 * c-opts.c: Likewise.
13
b2fa0a8b
MP
142017-05-17 Marek Polacek <polacek@redhat.com>
15
16 * c-common.c (c_save_expr): Remove.
17 (c_common_truthvalue_conversion): Remove a call to c_save_expr.
18 * c-common.h (c_save_expr): Remove declaration.
19
31c2d57d
VR
202017-05-09 Volker Reichelt <v.reichelt@netcologne.de>
21
22 PR c/35441
23 * c-pretty-print.c (c_pretty_printer::expression): Handle MAX_EXPR,
24 MIN_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, LROTATE_EXPR, RROTATE_EXPR.
25 (c_pretty_printer::postfix_expression): Handle MAX_EXPR, MIN_EXPR.
26 (c_pretty_printer::multiplicative_expression): Handle EXACT_DIV_EXPR,
27 RDIV_EXPR.
28 (pp_c_shift_expression): Handle LROTATE_EXPR, RROTATE_EXPR.
29
684f84de
MP
302017-05-09 Marek Polacek <polacek@redhat.com>
31
32 PR c/80525
33 * c-warn.c (unwrap_c_maybe_const): New.
34 (warn_logical_operator): Call it.
35
641da50a
NS
362017-05-09 Nathan Sidwell <nathan@acm.org>
37
38 * c-common.c (c_register_builtin_type): Use pushdecl lang_hook.
39 * c-common.h (pushdecl_top_level, pushdecl): Don't declare here.
40
631238ac
MS
412017-05-08 Martin Sebor <msebor@redhat.com>
42
43 PR translation/80280
44 * c-format.h (struct format_flag_spec): Add new member.
45 (T89_T): New macro.
46 * c-format.c (local_tree_type_node): New global.
47 (printf_flag_specs, asm_fprintf_flag_spec): Initialize new data.
48 (gcc_diag_flag_specs, scanf_flag_specs, strftime_flag_specs): Ditto.
49 (strfmon_flag_specs): Likewise.
50 (gcc_diag_char_table, gcc_cdiag_char_table): Split up specifiers
51 with distinct quoting properties.
52 (gcc_tdiag_char_table, gcc_cxxdiag_char_table): Same.
53 (flag_chars_t::validate): Add argument and handle bad quoting.
54 (check_format_info_main): Handle quoting problems.
55 (init_dynamic_diag_info): Simplify.
56
49f0c04c
JM
572017-05-08 Jason Merrill <jason@redhat.com>
58
59 * c-opts.c (c_common_post_options): Update defaults for
60 flag_abi_version and flag_abi_compat_version.
61
56d35585
DM
622017-05-05 David Malcolm <dmalcolm@redhat.com>
63
64 * c-common.c (c_cpp_error): Replace report_diagnostic
65 with diagnostic_report_diagnostic.
66
0f2c4a8f
MS
672017-05-04 Martin Sebor <msebor@redhat.com>
68
69 PR translation/80280
70 * c-attribs.c (handle_alias_ifunc_attribute): Quote a %D directive.
71 (handle_weakref_attribute): Same.
72
6fe63fb4
NS
732017-05-03 Nathan Sidwell <nathan@acm.org>
74
75 Canonicalize canonical type hashing
76 * c-common.c (complete_array_type): Use type_hash_canon.
77
815d9cc6
XR
782017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
79
80 PR c++/80038
81 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): Remove
82 prototype.
83 (cilk_install_body_pedigree_operations): Likewise.
84 * cilk.c (cilk_set_spawn_marker): Mark functions that should be
85 detatched.
86 (cilk_gimplify_call_params_in_spawned_fn): Remove.
87 (cilk_install_body_pedigree_operations): Likewise.
88 (gimplify_cilk_spawn): Add EXPR_STMT and CLEANUP_POINT_EXPR
89 unwrapping.
90
f8a36447
JJ
912017-04-27 Jakub Jelinek <jakub@redhat.com>
92
93 PR c++/80534
94 * c-common.c (complete_array_type): Only hash TYPE_TYPELESS_STORAGE
95 flag on non-aggregate element types.
96
7c145456
BE
972017-04-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
98
99 * c-common.c (c_type_hasher, type_hash_table): Remove.
100 (c_common_get_alias_set): Remove unreachable code.
101 * c-opts.c (c_common_post_options): Make sure cc1 takes only one file.
102
c3cbcd45
VR
1032017-04-20 Volker Reichelt <v.reichelt@netcologne.de>
104
105 * c.opt (Wextra-semi): New C++ warning flag.
106
8a59d466
JJ
1072017-04-20 Jakub Jelinek <jakub@redhat.com>
108
109 PR middle-end/80423
110 * c-common.c (complete_array_type): Preserve TYPE_TYPELESS_STORAGE.
111
8487c9a5
JJ
1122017-04-18 Jakub Jelinek <jakub@redhat.com>
113
114 PR middle-end/79788
115 PR middle-end/80375
116 * c-common.c (c_common_type_for_mode): Don't handle
117 widest_*_literal_type_node here.
118 c_common_signed_or_unsigned_type): Likewise.
119 (c_common_nodes_and_builtins): Set widest_*_literal_type_node
120 to *intTI_type_node or *intDI_type_node depending on whether
121 TImode is supported by the target or not.
122
3ee0fb02
ML
1232017-04-10 Martin Liska <mliska@suse.cz>
124
125 PR sanitizer/80350
126 * c-ubsan.c (ubsan_instrument_shift): Evaluate RHS before
127 doing an UBSAN check.
128
5764ee3c
JW
1292017-04-03 Jonathan Wakely <jwakely@redhat.com>
130
131 * c-warn.c (do_warn_double_promotion): Fix typo in comment.
132
6f3af356
JJ
1332017-03-31 Jakub Jelinek <jakub@redhat.com>
134
135 PR c++/79572
136 * c-ubsan.h (ubsan_maybe_instrument_reference): Change argument to
137 tree *.
138 * c-ubsan.c (ubsan_maybe_instrument_reference): Likewise. Handle
139 not just NOP_EXPR to REFERENCE_TYPE, but also INTEGER_CST with
140 REFERENCE_TYPE.
141
f6a7a9d5
DM
1422017-03-31 David Malcolm <dmalcolm@redhat.com>
143
144 PR documentation/78732
145 * c.opt (Wendif-labels): Fix description to refer to
146 #else rather than #elif.
147
af88f557
JJ
1482017-03-31 Jakub Jelinek <jakub@redhat.com>
149
150 PR libstdc++/80251
151 * c-common.h (enum rid): Add RID_IS_AGGREGATE.
152 * c-common.c (c_common_reswords): Add __is_aggregate trait.
153
a9e4a1a5
JJ
1542017-03-27 Jakub Jelinek <jakub@redhat.com>
155
156 PR middle-end/80162
157 * c-common.c (c_common_mark_addressable_vec): Don't set
158 TREE_ADDRESSABLE on DECL_HARD_REGISTER.
159
3f01b620
MS
1602017-03-21 Martin Sebor <msebor@redhat.com>
161
162 PR c++/79548
163 * c-common.c (set_underlying_type): Mark type used only when
164 original del is declared unused.
165
2f6f187a
DM
1662017-03-10 David Malcolm <dmalcolm@redhat.com>
167
168 PR translation/79848
169 * c-format.c (check_format_string): Simplify uses of "%<%s%>" to
170 "%qs".
171
a02fa805
DM
1722017-03-10 David Malcolm <dmalcolm@redhat.com>
173
174 PR c/79921
175 * c-indentation.c (warn_for_misleading_indentation): Remove parens
176 from inform's message, so that xgettext can locate it.
177
822a132c
MP
1782017-03-09 Marek Polacek <polacek@redhat.com>
179
180 PR c++/79962
181 PR c++/79984
182 * c-attribs.c (handle_nonnull_attribute): Save the result of default
183 conversion to the attribute list.
184
bba81f1c
ML
1852017-03-09 Martin Liska <mliska@suse.cz>
186
187 * c-ada-spec.c (macro_length): Increment value instead of a pointer.
188
108154ff
JM
1892017-03-03 Jason Merrill <jason@redhat.com>
190
191 * c.opt (Wnoexcept-type): New.
192
eb0e7c34
RB
1932017-03-02 Richard Biener <rguenther@suse.de>
194
195 PR c/79756
196 * c-common.c (c_common_mark_addressable_vec): Look through
197 C_MAYBE_CONST_EXPR.
198
9453ba0a
ML
1992017-02-28 Martin Liska <mliska@suse.cz>
200
201 * c.opt: Replace space with tabular for options of <number>
202 type.
203
6a825afe
ML
2042017-02-28 Martin Liska <mliska@suse.cz>
205
206 * c.opt: Fix --help=option -Q for options which are of
207 an enum type.
208
4227c9ad
JJ
2092017-02-24 Jakub Jelinek <jakub@redhat.com>
210
211 PR c++/79588
212 * c-common.c (check_function_restrict): New function.
213 (check_function_arguments): Add FNDECL argument. Call
214 check_function_restrict if -Wrestrict.
215 * c-warn.c (warn_for_restrict): Remove ARGS argument, add ARGARRAY
216 and NARGS. Use auto_vec for ARG_POSITIONS, simplify.
217 * c-common.h (check_function_arguments): Add FNDECL argument.
218 (warn_for_restrict): Remove ARGS argument, add ARGARRAY and NARGS.
219
59909673
EB
2202017-02-24 Eric Botcazou <ebotcazou@adacore.com>
221
222 * c-ada-spec.c (dump_ada_function_declaration): Add comment about the
223 treatment of parameters with pointer-to-tagged type and tidy up.
224 (print_ada_methods): Remove the special treatment of C++ static member
225 functions.
226
54dcd526
ML
2272017-02-22 Martin Liska <mliska@suse.cz>
228
229 * c.opt: Replace inequality signs with square brackets
230 for -Wnornalized.
231
00bc9de3
JJ
2322017-02-21 Jakub Jelinek <jakub@redhat.com>
233
234 PR c++/79641
235 * c-attribs.c (handle_mode_attribute): Use build_qualified_type to
236 preserve quals.
237
97fcf744
JM
2382017-02-17 Joseph Myers <joseph@codesourcery.com>
239
240 * c-cppbuiltin.c (builtin_define_float_constants): Define
241 __DECIMAL_DIG__ to the value for long double.
242
c7545f1c
MP
2432017-02-15 Marek Polacek <polacek@redhat.com>
244
245 PR c/79515
246 * c-warn.c (do_warn_double_promotion): Don't warn if an invalid
247 conversion has occured.
248
c2e84327
DM
2492017-01-24 David Malcolm <dmalcolm@redhat.com>
250
251 * c-common.c (c_common_reswords): Add "__RTL".
252 * c-common.h (enum rid): Add RID_RTL.
253
2ebd93e1
MP
2542017-01-20 Marek Polacek <polacek@redhat.com>
255
256 PR c/64279
257 * c-common.h (do_warn_duplicated_branches_r): Declare.
258 * c-gimplify.c (c_genericize): Walk the function tree calling
259 do_warn_duplicated_branches_r.
260 * c-warn.c (expr_from_macro_expansion_r): New.
261 (do_warn_duplicated_branches): New.
262 (do_warn_duplicated_branches_r): New.
263 * c.opt (Wduplicated-branches): New option.
264
0d80ab91
DM
2652017-01-17 David Malcolm <dmalcolm@redhat.com>
266
267 PR c++/71497
268 * c-indentation.c (warn_for_misleading_indentation): Use the past
269 subjunctive in the note.
270
7f991c36
AH
2712017-01-17 Aldy Hernandez <aldyh@redhat.com>
272
273 PR c/79116
274 * array-notation-common.c (cilkplus_extract_an_triplets): Convert
275 start type to integer_type.
276
1c70261c
JJ
2772017-01-16 Jakub Jelinek <jakub@redhat.com>
278
279 PR driver/49726
280 * c.opt (gen-decls): Add Driver flag.
281
1ddca3f3
PC
2822017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
283
284 Revert:
285 2017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
286
287 PR c++/71737
288 * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
289
7d2f3f1d
PC
2902017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
291
292 PR c++/71737
293 * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
294
bce6f760
MS
2952017-01-12 Martin Sebor <msebor@redhat.com>
296
297 (-Wformat-overflow): ...to this.
298
bf5fbf46
MS
2992017-01-11 Martin Sebor <msebor@redhat.com>
300
301 PR c/78768
302 * c.opt (-Walloca-larger-than, -Wformat-length, -Wformat-truncation):
303 Also enable for LTO.
304
e363df3f
JM
3052017-01-10 Jason Merrill <jason@redhat.com>
306
307 Implement P0195R2, C++17 variadic using.
308 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_variadic_using.
309
bd2c6270
JJ
3102017-01-09 Jakub Jelinek <jakub@redhat.com>
311
312 PR translation/79019
313 PR translation/79020
314 * c.opt (Wnormalized=): Fix typo in description.
315
efcc8d38
MS
3162017-01-08 Martin Sebor <msebor@redhat.com>
317
318 PR middle-end/77708
319 * c.opt (-Wformat-truncation): New option.
320
435f3f7a
AO
3212017-01-06 Alexandre Oliva <aoliva@redhat.com>
322
323 * c-pretty-print.c (pp_c_tree_decl_identifier): Convert 16-bit
324 value to unsigned short to fit in 4 hex digits without
325 warnings.
326
4e89adf9
EB
3272017-01-05 Eric Botcazou <ebotcazou@adacore.com>
328
329 * c.opt (fsso-struct): Add 'native' value.
330
cd445b54
ML
3312017-01-05 Martin Liska <mliska@suse.cz>
332
333 PR pch/78970
334 * c-opts.c (c_common_post_options): Reject '-' filename for a precompiled
335 header.
336
a9342885
MP
3372017-01-04 Marek Polacek <polacek@redhat.com>
338
339 PR c++/64767
340 * c.opt (Wpointer-compare): New option.
341
fc73e60c
JJ
3422017-01-04 Jakub Jelinek <jakub@redhat.com>
343
344 PR driver/78957
345 * c.opt (fsso-struct=): Add RejectNegative.
346
cbe34bb5
JJ
3472017-01-01 Jakub Jelinek <jakub@redhat.com>
348
349 Update copyright years.
350
d4a6c0ea
ML
3512016-12-29 Martin Liska <mliska@suse.cz>
352
353 PR c/78933
354 * c.opt (strong-eval-order): Add RejectNegative keyword.
355
67a5ad7c
JM
3562016-12-22 Jason Merrill <jason@redhat.com>
357
358 Implement P0522R0, matching of template template arguments.
359 * c-cppbuiltin.c (c_cpp_builtins): Define
360 __cpp_template_template_args.
361
0dba7960
JJ
3622016-12-21 Jakub Jelinek <jakub@redhat.com>
363
364 PR bootstrap/78817
365 * c-common.c (struct nonnull_arg_ctx): New type.
366 (check_function_nonnull): Return bool instead of void. Use
367 nonnull_arg_ctx as context rather than just location_t.
368 (check_nonnull_arg): Adjust for the new context type, set
369 warned_p to true if a warning has been diagnosed.
370 (check_function_arguments): Return bool instead of void.
371 * c-common.h (check_function_arguments): Adjust prototype.
372
31bfc9b9
JM
3732016-12-21 Jason Merrill <jason@redhat.com>
374
375 * c.opt (-fnew-ttp-matching): New flag.
376 * c-opts.c (c_common_post_options): Default on if -std=c++1z.
377
629b3d75
MJ
3782016-12-14 Martin Jambor <mjambor@suse.cz>
379
380 * c-omp.c: Include omp-general.h instead of omp-low.h.
381 (c_finish_oacc_wait): Adjusted call to find_omp_clause to use its new
382 name.
383
474da67e
MS
3842016-12-14 Martin Sebor <msebor@redhat.com>
385
386 PR c/17308
387 * c-common.c (check_nonnull_arg): Disable when optimization
388 is enabled.
389
fe366b87
MP
3902016-12-12 Marek Polacek <polacek@redhat.com>
391
392 PR c++/78647
393 * c-common.c (attribute_fallthrough_p): Return false for
394 error_mark_node.
395
8bd9f164
MS
3962016-12-08 Martin Sebor <msebor@redhat.com>
397
398 PR c/78284
399 * c.opt (-Walloc-zero, -Walloc-size-larger-than): New options.
400
060162e0
MS
4012016-12-08 Martin Sebor <msebor@redhat.com>
402
403 PR c/78165
1d0cf89a
MS
404 * c-pretty-print (pp_c_integer_constant): Avoid formatting type
405 suffix.
060162e0 406
ee92e7ba
MS
4072016-12-07 Martin Sebor <msebor@redhat.com>
408
409 PR c/53562
410 PR middle-end/77784
411 PR middle-end/78149
412 PR middle-end/78138
413 * c.opt (-Wstringop-overflow): New option.
414
84b0769e
MO
4152016-12-02 Maxim Ostapenko <m.ostapenko@samsung.com>
416
417 * c-attribs.c (asan odr indicator): New attribute.
418 (handle_asan_odr_indicator_attribute): New function.
419
7fa6a965
PK
4202016-11-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
421
422 * c-common.c (c_common_nodes_and_builtins): Remove initialization of
423 ptrdiff_type_node;
424
56d8ffc1
JG
4252016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
426
427 * c-common.c (excess_precision_mode_join): New.
428 (c_ts18661_flt_eval_method): New.
429 (c_c11_flt_eval_method): Likewise.
430 (c_flt_eval_method): Likewise.
431 * c-common.h (excess_precision_mode_join): New.
432 (c_flt_eval_method): Likewise.
433 * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): New.
434 (cpp_iec_559_value): Call it.
435 (c_cpp_builtins): Modify logic for __LIBGCC_*_EXCESS_PRECISION__,
436 call c_flt_eval_method to set __FLT_EVAL_METHOD__ and
437 __FLT_EVAL_METHOD_TS_18661_3__.
438
04f0fcf7
JG
4392016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
440
441 * c-opts.c (c_common_post_options): Add logic to handle the default
442 case for -fpermitted-flt-eval-methods.
443
fb2675cb
PB
4442016-11-23 Paolo Bonzini <bonzini@gnu.org>
445
446 * c.opt (Wexpansion-to-defined): New.
447
ec1c5694
JJ
4482016-11-23 Jakub Jelinek <jakub@redhat.com>
449
450 PR target/78451
451 * c-pragma.c (handle_pragma_target): Don't replace
452 current_target_pragma, but chainon the new args to the current one.
453
730c9e75
NS
4542016-11-22 Nathan Sidwell <nathan@acm.org>
455
456 * array-notation-common.c (cilkplus_extract_an_trplets): Fix
cacd29be 457 indentation and formatting.
730c9e75 458
89990732
MS
4592016-11-21 Martin Sebor <msebor@redhat.com>
460
461 * c.opt (-fprintf-return-value): Enable by default.
462
48330c93
BE
4632016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
464
465 PR c++/71973
466 * c.opt (-Wbuiltin-declaration-mismatch): New warning.
467 * c-common.c (c_common_nodes_and_builtins): Initialize
468 const_tm_ptr_type_node.
469
0d939c95
MP
4702016-11-16 Marek Polacek <polacek@redhat.com>
471
472 PR c/78285
473 * c-common.c (c_add_case_label): Turn error_at calls into inform.
474
8e745a17
JJ
4752016-11-14 Jakub Jelinek <jakub@redhat.com>
476
477 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_structured_bindings.
478
1ee62b92 4792016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
8e745a17
JJ
480 Richard Biener <rguenther@suse.de>
481
482 * c-common.h (c_common_resword): Add RID_GIMPLE, RID_PHI types.
483 * c-common.h (enum rid): Add RID_GIMPLE, RID_PHI.
484 * c.opt (fgimple): New option.
1ee62b92 485
22b15758
UB
4862016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
487
488 PR c/35503
489 * c-common.h (warn_for_restrict): Declare.
490 * c-warn.c: Include gcc-rich-location.h.
491 (warn_for_restrict): New function.
492 * c-format.c (gcc_tdiag_char_table): Add entry for "Z" specifier.
493 (gcc_cdiag_char_table): Likewise.
494 (gcc_cxxdiag_char_table): Likewise.
495 * c.opt (Wrestrict): New option.
496
4be719cd
EB
4972016-11-13 Eric Botcazou <ebotcazou@adacore.com>
498
499 * c-ada-spec.c (print_ada_declaration): For typedef declarations, look
500 for nested types only if the type is a record or union and dump SLOC.
501
4a826ca6
JM
5022016-11-09 Jason Merrill <jason@redhat.com>
503
504 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_template_auto.
505
2e955d50
JJ
5062016-11-09 Jakub Jelinek <jakub@redhat.com>
507
508 * c-ubsan.c (ubsan_instrument_shift): Handle split
509 -fsanitize=shift-base and -fsanitize=shift-exponent.
510
51dc6603
JM
5112016-11-07 Jason Merrill <jason@redhat.com>
512
513 * c.opt (Wc++1z-compat): New.
514 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_noexcept_function_type.
515
6dc4a604
ML
5162016-11-07 Martin Liska <mliska@suse.cz>
517
518 * c-warn.c (warn_for_unused_label): Save all labels used
519 in goto or in &label.
520
b302001e
JM
5212016-11-03 Jason Merrill <jason@redhat.com>
522
523 * c-cppbuiltin.c (c_cpp_builtins): Correct
524 __cpp_inheriting_constructors.
525
31f7f784
JM
5262016-11-01 Jason Merrill <jason@redhat.com>
527
2bc78e3c
JM
528 * c-cppbuiltin.c (c_cpp_builtins): Update
529 __cpp_inheriting_constructors.
530
31f7f784
JM
531 * c.opt (-fnew-inheriting-ctors): New.
532 * c-opts.c: Default to on for ABI 11+.
533
dcb466ec
JJ
5342016-10-31 Jakub Jelinek <jakub@redhat.com>
535
536 PR c++/77948
537 * c.opt (fext-numeric-literals): Add Var and Init.
538 * c-opts.c (c_common_handle_option): Don't clear
539 cpp_opts->ext_numeric_literals for -std=c++{11,14,1z}.
540 (c_common_post_options): Clear it here if not set
541 explicitly.
542
52e1b91e
AH
5432016-10-28 Aldy Hernandez <aldyh@redhat.com>
544
545 PR debug/77773
546 * c-pretty-print.c (simple_type_specifier): Do not dereference `t'
547 if NULL.
548
e16f1cc7
JJ
5492016-10-25 Jakub Jelinek <jakub@redhat.com>
550
551 * c-common.h (enum rid): Add RID_BUILTIN_LAUNDER.
552 * c-common.c (c_common_reswords): Add __builtin_launder.
553
f8348061
BE
5542016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
555
556 * c-common.c (c_common_truthvalue_conversion): Warn for
557 multiplications in boolean context. Fix the quoting of '<<' and '<'
558 in the shift warning.
559
eff89e01
BE
5602016-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
561
562 * c-common.c (c_common_truthvalue_conversion): Fix the comment.
563
24bc7bf4
JM
5642016-10-20 Jason Merrill <jason@redhat.com>
565
566 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_concepts value.
567
4c712374
BE
5682016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
569
570 * c-common.c (c_common_truthvalue_conversion): Warn only for signed
571 integer shift ops in boolean context.
572
5732016-10-18 Aldy Hernandez <aldyh@redhat.com>
adc577c5
AH
574
575 * c.opt (Walloca): New.
576 (Walloca-larger-than=): New.
577 (Wvla-larger-than=): New.
578
8fa18c06
MP
5792016-10-17 Marek Polacek <polacek@redhat.com>
580
581 * c-warn.c (find_array_ref_with_const_idx_r): Remove parameter names.
582 Return immediately when finding a match.
583 (warn_tautological_cmp): Remove a boolean variable that is no longer
584 needed.
585
b12b1915
MP
5862016-10-17 Marek Polacek <polacek@redhat.com>
587
588 * c-attribs.c: New file.
589 * c-common.c: Move attributes handling to c-attribs.c.
590 (get_nonnull_operand): No longer static.
591 * c-common.h: Move the declarations from c-attribs.c to its own section.
592
2045acd9
JM
5932016-10-14 Jason Merrill <jason@redhat.com>
594
595 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_aggregate_bases
596 and __cpp_deduction_guides.
597
14a2c9aa
JM
5982016-10-13 Jason Merrill <jason@redhat.com>
599
600 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_inline_variables.
601
4d0cdd0c
TP
6022016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
603
604 * c-cppbuiltin.c: Include memmodel.h.
605 * c-opts.c: Likewise.
606 * c-pragma.c: Likewise.
607 * c-warn.c: Likewise.
608
70f6d5e1
JJ
6092016-10-12 Jakub Jelinek <jakub@redhat.com>
610
611 * c.opt (Wextra): Add as C/C++/ObjC/ObjC++ option.
612 (Wimplicit-fallthrough=): Enable for these languages by -Wextra.
613 * c-opts.c (sanitize_cpp_opts): Initialize
614 cpp_opts->cpp_warn_implicit_fallthrough.
615
78f61294
MP
6162016-10-11 Marek Polacek <polacek@redhat.com>
617
618 * c-common.c (warning_candidate_p): Change the return type to bool
619 and return true/false instead of 1/0.
620 (vector_mode_valid_p): Likewise.
621
038b5cc0
MP
6222016-10-11 Marek Polacek <polacek@redhat.com>
623
624 * c-common.c (fold_for_warn): No longer static.
625 (bool_promoted_to_int_p): Likewise.
626 (c_common_get_narrower): Likewise.
627 (constant_expression_warning): Move to c-warn.c.
628 (constant_expression_error): Likewise.
629 (overflow_warning): Likewise.
630 (warn_logical_operator): Likewise.
631 (find_array_ref_with_const_idx_r): Likewise.
632 (warn_tautological_cmp): Likewise.
633 (expr_has_boolean_operands_p): Likewise.
634 (warn_logical_not_parentheses): Likewise.
635 (warn_if_unused_value): Likewise.
636 (strict_aliasing_warning): Likewise.
637 (sizeof_pointer_memaccess_warning): Likewise.
638 (check_main_parameter_types): Likewise.
639 (conversion_warning): Likewise.
640 (warnings_for_convert_and_check): Likewise.
641 (match_case_to_enum_1): Likewise.
642 (match_case_to_enum): Likewise.
643 (c_do_switch_warnings): Likewise.
644 (warn_for_omitted_condop): Likewise.
645 (readonly_error): Likewise.
646 (lvalue_error): Likewise.
647 (invalid_indirection_error): Likewise.
648 (warn_array_subscript_with_type_char): Likewise.
649 (warn_about_parentheses): Likewise.
650 (warn_for_unused_label): Likewise.
651 (warn_for_div_by_zero): Likewise.
652 (warn_for_memset): Likewise.
653 (warn_for_sign_compare): Likewise.
654 (do_warn_double_promotion): Likewise.
655 (do_warn_unused_parameter): Likewise.
656 (record_locally_defined_typedef): Likewise.
657 (maybe_record_typedef_use): Likewise.
658 (maybe_warn_unused_local_typedefs): Likewise.
659 (maybe_warn_bool_compare): Likewise.
660 (maybe_warn_shift_overflow): Likewise.
661 (warn_duplicated_cond_add_or_warn): Likewise.
662 (diagnose_mismatched_attributes): Likewise.
663 * c-common.h: Move the declarations from c-warn.c to its own section.
664 * c-warn.c: New file.
665
627be19f
JM
6662016-10-08 Jason Merrill <jason@redhat.com>
667
668 * c-common.c (c_common_truthvalue_conversion): Don't distribute
669 into COND_EXPR in C++.
670
7bad794a
JJ
6712016-10-08 Jakub Jelinek <jakub@redhat.com>
672
673 * c-lex.c (c_lex_with_flags) <case CPP_COMMENT>: For CPP_COMMENT
674 token with PREV_FALLTHROUGH, skip all following CPP_PADDING and
675 CPP_COMMENT tokens and set add_flags to PREV_FALLTHROUGH afterwards.
676
be845b04
JJ
6772016-10-07 Jakub Jelinek <jakub@redhat.com>
678
679 Implement LWG2296 helper intrinsic
680 * c-common.h (enum rid): Add RID_ADDRESSOF.
681 * c-common.c (c_common_reswords): Add __builtin_addressof.
682
c09c4992
BE
6832016-10-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
684
685 PR c++/77700
686 * c-common.c (c_common_truthvalue_conversion): Warn also for
687 suspicious enum values in boolean context.
688
342cfb3e
JJ
6892016-10-06 Jakub Jelinek <jakub@redhat.com>
690
691 Implement P0258R2 - helper for C++17
692 std::has_unique_object_representations trait
693 * c-common.h (enum rid): Add RID_HAS_UNIQUE_OBJ_REPRESENTATIONS.
694 * c-common.c (c_common_reswords): Add
695 __has_unique_object_representations.
696
2e69f143
JJ
6972016-10-05 Jakub Jelinek <jakub@redhat.com>
698
699 PR sanitizer/66343
700 * c-ubsan.c (ubsan_instrument_return): Don't call
701 initialize_sanitizer_builtins here.
702
700fff34
BE
7032016-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
704
705 * c-common.c (c_common_truthvalue_conversion): Warn also for suspicious
706 conditional expression in boolean context when only one arm is
707 non-boolean.
708
9563bfcd
JJ
7092016-10-05 Jakub Jelinek <jakub@redhat.com>
710
04a32443
JJ
711 PR sanitizer/77823
712 * c-ubsan.c (ubsan_instrument_shift): Return NULL_TREE if type0
713 is not integral.
714
9563bfcd
JJ
715 * c-common.c (c_common_reswords): Update comment for C++11.
716
f1644724
JM
7172016-10-04 Jason Merrill <jason@redhat.com>
718
719 * c-common.c (make_tree_vector_from_ctor): New.
720 * c-common.h: Declare it.
721
5a79befb
JJ
7222016-10-04 Jakub Jelinek <jakub@redhat.com>
723
724 * c-cppbuiltin.c (c_cpp_builtins): Don't define
725 __LIBGCC_JCR_SECTION_NAME__.
726
1633d3b9
BE
7272016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
728
729 * c-common.c (c_common_truthvalue_conversion): Warn for suspicious
730 left shift in boolean context.
731
a2c6e7f2
JJ
7322016-09-29 Jakub Jelinek <jakub@redhat.com>
733
734 Implement P0001R1 - C++17 removal of register storage class specifier
735 * c.opt (Wregister): New warning.
736 * c-opts.c (c_common_post_options): Enable -Wregister by
737 default for C++17.
738
75304c87
JG
7392016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
740
741 * c-opts.c (c_common_post_options): Remove special case for
742 TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard
743 in C++.
744
bbfac6da
JJ
7452016-09-27 Jakub Jelinek <jakub@redhat.com>
746
6e39060a
JJ
747 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for
748 -std=c++1z.
749
bbfac6da
JJ
750 * c-ada-spec.c (print_ada_declaration): Remove break after return.
751
e73cf9a2
TP
7522016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
753
754 * c-common.c: Include memmodel.h.
755
c6147dc4
MP
7562016-09-26 Marek Polacek <polacek@redhat.com>
757
758 * c-lex.c (c_common_has_attribute): Handle attribute fallthrough.
759
81fea426
MP
7602016-09-26 Marek Polacek <polacek@redhat.com>
761
762 PR c/7652
763 * c-common.c (c_common_attribute_table): Add fallthrough attribute.
764 (handle_fallthrough_attribute): New function.
765 (attribute_fallthrough_p): New function.
766 * c-common.h (attribute_fallthrough_p): Declare.
767
9a2300e9
MP
7682016-09-24 Marek Polacek <polacek@redhat.com>
769
770 PR c/77490
771 * c.opt (Wbool-operation): New.
772
a09e9e35
BE
7732016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
774
775 * c-common.c (c_common_truthvalue_conversion): Inhibit
776 Wint-in-bool-context warning with from_macro_definition_at.
777 Mention the expression will always evaluate to true.
778
d43b4ccc
MS
7792016-09-21 Martin Sebor <msebor@redhat.com>
780
781 PR bootstrap/77676
782 * c.opt (fprintf-return-value): Temporarily initialize to zero
783 to unblock bootstrap failures.
784
2e1c20b1
JJ
7852016-09-21 Jakub Jelinek <jakub@redhat.com>
786
787 PR c++/77651
788 * c.opt (Waligned-new=): Add RejectNegative.
789 (faligned-new=): Likewise. Spelling fix - change
790 aligned_new_threshhold to aligned_new_threshold.
791 * c-cppbuiltin.c (c_cpp_builtins): Change aligned_new_threshhold
792 to aligned_new_threshold.
793
88d0c3f0
MS
7942016-09-20 Martin Sebor <msebor@redhat.com>
795
796 PR middle-end/49905
797 * c.opt: Add -Wformat-length and -fprintf-return-value.
798
144a96e4
BE
7992016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
800
801 PR c++/77434
802 * c.opt (Wint-in-bool-context): New warning.
803 * c-common.c (c_common_truthvalue_conversion): Warn on integer
804 constants in boolean context.
805
63012d9a
JM
8062016-09-19 Joseph Myers <joseph@codesourcery.com>
807
808 * c-common.c (max_align_t_align): Also consider alignment of
809 float128_type_node.
810
931388ce
JM
8112016-09-15 Jason Merrill <jason@redhat.com>
812
813 * c-common.c (check_cxx_fundamental_alignment_constraints): Check
814 DECL_EXTERNAL.
815
38711381
JM
8162016-09-14 Jason Merrill <jason@redhat.com>
817
818 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
819 limit FIELD_DECL, either.
820
e51fbec3
MP
8212016-09-14 Marek Polacek <polacek@redhat.com>
822
823 * c-common.c (c_common_truthvalue_conversion): Use false instead of 0.
824 * c-common.h (build_unary_op): Change nonconvert parameter type to bool.
825 * c-omp.c (c_finish_omp_atomic): Use false instead of 0.
826
254830ba
DM
8272016-09-13 David Malcolm <dmalcolm@redhat.com>
828
829 * c-common.c (warn_logical_not_parentheses): Replace
830 rich_location::add_fixit_insert calls with add_fixit_insert_before
831 and add_fixit_insert_after, eliminating the "next_loc" calculation.
832
42763690
JM
8332016-09-13 Jason Merrill <jason@redhat.com>
834 Tom de Vries <tom@codesourcery.com>
835
836 PR c++/77427
837 * c-common.c (set_underlying_type): Don't treat array as builtin type.
838
9453eee9
JM
8392016-09-13 Jason Merrill <jason@redhat.com>
840
841 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
842 limit types at all.
843
e96809e3
JM
8442016-09-12 Jason Merrill <jason@redhat.com>
845
846 * c-common.c (check_cxx_fundamental_alignment_constraints): Fix
847 bit/byte confusion, allow large alignment for types.
848
54dcdb88
BE
8492016-09-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
850
851 PR c++/77496
852 * c-common.c (warn_for_omitted_condop): Also warn for boolean data.
853
d1463eb9
DM
8542016-09-12 David Malcolm <dmalcolm@redhat.com>
855
856 PR c/72858
857 * c-format.c (argument_parser::check_argument_type): Add params
858 "type_start" and "conversion_char". Use the former to generate
859 offset_to_type_start and pass it and conversion_char to
860 check_format_types.
861 (check_format_info_main): Capture the start of the type
862 information as "type_start", and pass it an format_char
863 to arg_parser.check_argument_type.
864 (check_format_types): Provide an example in the leading comment.
865 Add params "offset_to_type_start" and "conversion_char"; pass
866 them to format_type_warning calls.
867 (test_get_modifier_for_format_len): Likewise.
868 (matching_type_p): New function.
869 (get_format_for_type): Add param "conversion_char" and move
870 implementation into...
871 (get_format_for_type_1): ...new function, called twice.
872 Use new function matching_type_p rather than checking for
873 TYPE_CANONICAL equality.
874 (get_corrected_substring): New function.
875 (format_type_warning): Provide an example in the leading comment.
876 Add params "offset_to_type_start" and "conversion_char". Replace
877 call to get_format_for_type with call to get_corrected_substring
878 and move rejection of hints for widths/precisions there.
879 (assert_format_for_type_streq): Add param "conversion_char".
880 (ASSERT_FORMAT_FOR_TYPE_STREQ): Add param CONVERSION_CHAR.
881 (test_get_format_for_type_printf): Add conversion chars to the
882 tests, adding coverage for various combinations of integer
883 vs double conversions, and for preserving octal and hexadecimal
884 conversions.
885 (test_get_format_for_type_scanf): Add conversion chars to the
886 tests.
887
5b28efbb
TV
8882016-09-10 Tom de Vries <tom@codesourcery.com>
889
890 PR C/71602
891 * c-common.c (build_va_arg): Handle more strict
892 targetm.canonical_va_list_type. Replace first argument type error with
893 assert.
894
3f0177e7
MS
8952016-09-09 Martin Sebor <msebor@redhat.com>
896
897 PR c/77520
898 PR c/77521
899 * c-format.c (argument_parser::find_format_char_info): Use %qc
900 format directive unconditionally.
901
af63ba4b
JM
9022016-09-09 Jason Merrill <jason@redhat.com>
903
904 Implement C++17 new of over-aligned types.
905 * c.opt: Add -faligned-new and -Waligned-new.
906 * c-common.c (max_align_t_align): Split out from...
907 (cxx_fundamental_alignment_p): ...here.
908 * c-common.h: Declare it.
909 * c-cppbuiltin.c (c_cpp_builtins): Handle aligned new.
910
c65248cb
JM
9112016-09-09 Joseph Myers <joseph@codesourcery.com>
912
913 * c-cppbuiltin.c (builtin_define_type_width): New function.
914 (builtin_define_stdint_macros, c_cpp_builtins): Define type width
915 macros.
916
e5106e27
DM
9172016-09-07 David Malcolm <dmalcolm@redhat.com>
918
919 * c-common.c (get_cpp_ttype_from_string_type): Handle being passed
920 a POINTER_TYPE.
921 (substring_loc::get_location): Move to substring-locations.c,
922 keeping implementation as...
923 (c_get_substring_location): New function, from the above, reworked
924 to use accessors rather than member lookup.
925 * c-common.h (class substring_loc): Move to substring-locations.h,
926 replacing with a forward decl.
927 (c_get_substring_location): New decl.
928 * c-format.c: Include "substring-locations.h".
929 (format_warning_va): Move to substring-locations.c.
930 (format_warning_at_substring): Likewise.
931
a42e7952
MS
9322016-09-06 Martin Sebor <msebor@redhat.com>
933
934 PR c/77336
935 * c-format.c (check_function_format): Avoid issuing warnings for
936 functions unless they call format functions with non-constant
937 format strings.
938
b772a565
RB
9392016-09-06 Richard Biener <rguenther@suse.de>
940
941 PR c/77450
942 * c-common.c (c_common_mark_addressable_vec): Handle
943 COMPOUND_LITERAL_EXPR.
944
25ff5dd3
MP
9452016-09-05 Marek Polacek <polacek@redhat.com>
946
947 PR c/77423
948 * c-common.c (bool_promoted_to_int_p): New function.
949 (expr_has_boolean_operands_p): New function.
950 (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p.
951 (maybe_warn_bool_compare): Use bool_promoted_to_int_p.
952
21234eb5
TV
9532016-09-04 Tom de Vries <tom@codesourcery.com>
954
955 revert:
956 2016-08-29 Tom de Vries <tom@codesourcery.com>
957
958 * c-common.c (build_va_arg): Replace first argument type error
959 with assert.
960
9dc5773f
JJ
9612016-09-02 Jakub Jelinek <jakub@redhat.com>
962
963 PR c/65467
964 * c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions.
965 (c_finish_omp_for): Reject _Atomic qualified iterators.
966
9672016-09-01 Martin Sebor <msebor@redhat.com>
3d7b83b6
MS
968
969 * c-ada-spec.c (dump_ada_function_declaration): Increase buffer
970 size to guarantee it fits the output of the formatted function
971 regardless of its arguments.
972
295844f6
MP
9732016-09-01 Marek Polacek <polacek@redhat.com>
974
975 PR c/7652
976 * c-common.c (resolve_overloaded_builtin): Fix formatting. Add
977 FALLTHRU comments.
978
3d06b6f2
MP
9792016-08-29 Marek Polacek <polacek@redhat.com>
980
981 PR c/77292
982 * c-common.c (warn_logical_not_parentheses): Don't warn for
983 a comparison or a logical operator.
984
34cedad5
TV
9852016-08-29 Tom de Vries <tom@codesourcery.com>
986
987 * c-common.c (build_va_arg): Fix type comparison assert.
988
f162d717
TV
9892016-08-29 Tom de Vries <tom@codesourcery.com>
990
991 * c-common.c (build_va_arg): Replace first argument type error
992 with assert.
993
ba9bbd6f
TV
9942016-08-29 Tom de Vries <tom@codesourcery.com>
995
996 PR c/77398
997 * c-common.c (build_va_arg): Add first argument error. Build va_arg
998 with error_mark_node as va_list instead of with illegal va_list.
999
ebef225f
MP
10002016-08-25 Marek Polacek <polacek@redhat.com>
1001 David Malcolm <dmalcolm@redhat.com>
1002
1003 * c-common.c (warn_logical_not_parentheses): Print fixit hints.
1004 * c-common.h (warn_logical_not_parentheses): Update declaration.
1005
b00e6e75
MP
10062016-08-22 Marek Polacek <polacek@redhat.com>
1007
1008 PR c++/77321
1009 * c-common.c (warn_for_memset): Check type for null.
1010
6dc198e3
JM
10112016-08-22 Joseph Myers <joseph@codesourcery.com>
1012
1013 * c-family/c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and
1014 _FloatNx types for suffixes for built-in functions.
1015
c65699ef
JM
10162016-08-19 Joseph Myers <joseph@codesourcery.com>
1017
1018 PR c/32187
1019 * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32)
1020 (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X)
1021 (RID_FLOAT128X): New enum rid values.
1022 (CASE_RID_FLOATN_NX): New macro.
1023 * c-common.c (c_common_reswords): Add _FloatN and _FloatNx
1024 keywords.
1025 (c_common_type_for_mode): Check for _FloatN and _FloatNx and
1026 corresponding complex types.
1027 (c_common_nodes_and_builtins): For non-C++, register _FloatN and
1028 _FloatNx and corresponding complex types.
1029 (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX.
1030 * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN
1031 and _FloatNx types for the widest type for determining
1032 DECIMAL_DIG. Define __LDBL_DECIMAL_DIG__ as well as
1033 __DECIMAL_DIG__ for long double. Handle FMA_SUFFIX being NULL.
1034 (c_cpp_builtins): Call builtin_define_float_constants for _FloatN
1035 and _FloatNx types.
1036 * c-lex.c (interpret_float): Handle _FloatN and _FloatNx
1037 constants.
1038 * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and
1039 _FloatNx types.
1040
cc015f3a
DM
10412016-08-18 David Malcolm <dmalcolm@redhat.com>
1042
1043 * c-opts.c (c_diagnostic_finalizer): Update for change to
1044 diagnostic_show_locus.
1045
cb18fd07
DM
10462016-08-18 David Malcolm <dmalcolm@redhat.com>
1047
1048 * c-common.c: Include "spellcheck.h".
1049 (cb_get_suggestion): New function.
1050 * c-common.h (cb_get_suggestion): New decl.
1051 * c-lex.c (init_c_lex): Initialize cb->get_suggestion to
1052 cb_get_suggestion.
1053
a76989dc
MP
10542016-08-18 Marek Polacek <polacek@redhat.com>
1055
1056 PR c/71514
1057 * c-common.c (get_atomic_generic_size): Disallow pointer-to-function
1058 and pointer-to-VLA.
1059
65e736c0
DM
10602016-08-16 David Malcolm <dmalcolm@redhat.com>
1061
1062 PR c/72857
1063 * c-common.c (substring_loc::get_range): Rename to...
1064 (substring_loc::get_location): ...this, converting param from a
1065 source_range * to a location_t *. Call
1066 get_source_location_for_substring rather than
1067 get_source_range_for_substring, and pass in m_caret_idx.
1068 * c-common.h (substring_loc::substring_loc): Add param "caret_idx".
1069 (substring_loc::get_range): Replace with...
1070 (substring_loc::get_location): ...this.
1071 (substring_loc::set_caret_index): New method.
1072 (substring_loc): Add field m_caret_idx.
1073 * c-format.c (format_warning_va): Update for above changes.
1074 Rename local "substring_loc" to "fmt_substring_loc" to avoid
1075 clashing with type name.
1076 (format_warning_at_char): Add caret_idx param to substring_loc ctor.
1077 (check_argument_type): Likewise.
1078 (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc"
1079 Use a copy when emitting warnings, setting the caret index from TYPE.
1080
7e1dde14 10812016-08-16 Eric Botcazou <ebotcazou@adacore.com>
8e745a17 1082 Arnaud Charlet <charlet@adacore.com>
7e1dde14
EB
1083
1084 * c-ada-spec.c (dump_number): New function.
1085 (handle_escape_character): Likewise.
1086 (print_ada_macros): Add handling of constant integers and strings.
1087
191816a3
MP
10882016-08-12 Marek Polacek <polacek@redhat.com>
1089
1090 PR c/7652
1091 * c-common.c (scalar_to_vector): Adjust fall through comment.
1092 * c-opts.c (c_common_handle_option): Likewise.
1093 * c-pragma.c (handle_pragma_pack): Add FALLTHRU.
1094 * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust
1095 fall through comment.
1096 * cilk.c (extract_free_variables): Add FALLTHRU.
1097
452df4a4
JM
10982016-08-10 Jason Merrill <jason@redhat.com>
1099
1100 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr.
1101
f3365c12
JM
11022016-08-09 Jason Merrill <jason@redhat.com>
1103
1104 * c-common.c (c_common_attribute_table): vector_size affects type
1105 identity.
1106
f0bc3323
MP
11072016-08-09 Marek Polacek <polacek@redhat.com>
1108
1109 PR c/7652
1110 * c-ada-spec.c (dump_generic_ada_node): Add return.
1111
98e5a19a
JM
11122016-08-09 Jason Merrill <jason@redhat.com>
1113
1114 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for
1115 C++17 constexpr lambdas.
1116
895aa8e1
DM
11172016-08-08 David Malcolm <dmalcolm@redhat.com>
1118
1119 PR c/64955
1120 * c-common.h (selftest::c_format_c_tests): New declaration.
1121 (selftest::run_c_tests): New declaration.
1122 * c-format.c: Include "selftest.h.
1123 (format_warning_va): Add param "corrected_substring" and use
1124 it to add a replacement fix-it hint.
1125 (format_warning_at_substring): Likewise.
1126 (format_warning_at_char): Update for new param of
1127 format_warning_va.
1128 (argument_parser::check_argument_type): Pass "fki" to
1129 check_format_types.
1130 (check_format_types): Add param "fki" and pass it to
1131 format_type_warning.
1132 (deref_n_times): New function.
1133 (get_modifier_for_format_len): New function.
1134 (selftest::test_get_modifier_for_format_len): New function.
1135 (get_format_for_type): New function.
1136 (format_type_warning): Add param "fki" and use it to attempt
1137 to provide hints for argument types when calling
1138 format_warning_at_substring.
1139 (selftest::get_info): New function.
1140 (selftest::assert_format_for_type_streq): New function.
1141 (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro.
1142 (selftest::test_get_format_for_type_printf): New function.
1143 (selftest::test_get_format_for_type_scanf): New function.
1144 (selftest::c_format_c_tests): New function.
1145
e52ed3fe
DM
11462016-08-08 David Malcolm <dmalcolm@redhat.com>
1147
1148 PR c/52952
1149 * c-format.c: Include "diagnostic.h".
1150 (location_column_from_byte_offset): Delete.
1151 (location_from_offset): Delete.
1152 (format_warning_va): New function.
1153 (format_warning_at_substring): New function.
1154 (format_warning_at_char): New function.
1155 (check_format_arg): Capture location of format_tree and pass to
1156 check_format_info_main.
1157 (argument_parser): Add fields "start_of_this_format" and
1158 "format_string_cst".
1159 (flag_chars_t::validate): Add param "format_string_cst". Convert
1160 warning_at call using location_from_offset to call to
1161 format_warning_at_char.
1162 (argument_parser::argument_parser): Add param "format_string_cst_"
1163 and use use it to initialize field "format_string_cst".
1164 Initialize new field "start_of_this_format".
1165 (argument_parser::read_format_flags): Convert warning_at call
1166 using location_from_offset to a call to format_warning_at_char.
1167 (argument_parser::read_any_format_left_precision): Likewise.
1168 (argument_parser::read_any_format_precision): Likewise.
1169 (argument_parser::read_any_other_modifier): Likewise.
1170 (argument_parser::find_format_char_info): Likewise, in three places.
1171 (argument_parser::parse_any_scan_set): Likewise, in one place.
1172 (argument_parser::handle_conversions): Likewise, in two places.
1173 (argument_parser::check_argument_type): Add param "fmt_param_loc"
1174 and use it to make a substring_loc. Pass the latter to
1175 check_format_types.
1176 (check_format_info_main): Add params "fmt_param_loc" and
1177 "format_string_cst". Convert warning_at calls using
1178 location_from_offset to calls to format_warning_at_char. Pass the
1179 new params to the arg_parser ctor. Pass "format_string_cst" to
1180 flag_chars.validate. Pass "fmt_param_loc" to
1181 arg_parser.check_argument_type.
1182 (check_format_types): Convert first param from a location_t
1183 to a const substring_loc & and rename to "fmt_loc". Attempt
1184 to extract the range of the relevant parameter and pass it
1185 to format_type_warning.
1186 (format_type_warning): Convert first param from a location_t
1187 to a const substring_loc & and rename to "fmt_loc". Add
1188 params "param_range" and "type". Replace calls to warning_at
1189 with calls to format_warning_at_substring.
1190
1c4d457e
DM
11912016-08-08 David Malcolm <dmalcolm@redhat.com>
1192
1193 * c-format.c (class flag_chars_t): New class.
1194 (struct length_modifier): New struct.
1195 (class argument_parser): New class.
1196 (flag_chars_t::flag_chars_t): New ctor.
1197 (flag_chars_t::has_char_p): New method.
1198 (flag_chars_t::add_char): New method.
1199 (flag_chars_t::validate): New method.
1200 (flag_chars_t::get_alloc_flag): New method.
1201 (flag_chars_t::assignment_suppression_p): New method.
1202 (argument_parser::argument_parser): New ctor.
1203 (argument_parser::read_any_dollar): New method.
1204 (argument_parser::read_format_flags): New method.
1205 (argument_parser::read_any_format_width): New method.
1206 (argument_parser::read_any_format_left_precision): New method.
1207 (argument_parser::read_any_format_precision): New method.
1208 (argument_parser::handle_alloc_chars): New method.
1209 (argument_parser::read_any_length_modifier): New method.
1210 (argument_parser::read_any_other_modifier): New method.
1211 (argument_parser::find_format_char_info): New method.
1212 (argument_parser::validate_flag_pairs): New method.
1213 (argument_parser::give_y2k_warnings): New method.
1214 (argument_parser::parse_any_scan_set): New method.
1215 (argument_parser::handle_conversions): New method.
1216 (argument_parser::check_argument_type): New method.
1217 (check_format_info_main): Introduce classes argument_parser
1218 and flag_chars_t, moving the code within the loop into methods
1219 of these classes. Make various locals "const".
1220
88fa5555
DM
12212016-08-05 David Malcolm <dmalcolm@redhat.com>
1222
1223 * c-common.c: Include "substring-locations.h".
1224 (get_cpp_ttype_from_string_type): New function.
1225 (g_string_concat_db): New global.
1226 (substring_loc::get_range): New method.
1227 * c-common.h (g_string_concat_db): New declaration.
1228 (class substring_loc): New class.
1229 * c-lex.c (lex_string): When concatenating strings, capture the
1230 locations of all tokens using a new obstack, and record the
1231 concatenation locations within g_string_concat_db.
1232 * c-opts.c (c_common_init_options): Construct g_string_concat_db
1233 on the ggc-heap.
1234
78169471
MP
12352016-07-29 Marek Polacek <polacek@redhat.com>
1236
638fc14f
MP
1237 PR c/71926
1238 * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the
1239 parentheses warning.
1240
78169471
MP
1241 PR c/71574
1242 * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL.
1243
1225d6b1
ML
12442016-07-28 Martin Liska <mliska@suse.cz>
1245
1246 PR gcov-profile/68025
1247 * c-common.c (handle_no_profile_instrument_function_attribute):
1248
ec1e2a40
BE
12492016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
1250
1251 * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of
1252 BITS_PER_UNIT_LOG.
1253
5ec2cd9f
JM
12542016-07-25 Jason Merrill <jason@redhat.com>
1255
1256 PR c++/65970
1257 * c.opt (fconstexpr-loop-limit): New.
1258
9dc5773f 12592016-07-22 Martin Sebor <msebor@redhat.com>
2e6b45af
MS
1260
1261 PR c++/71675
1262 * c-common.c (resolve_overloaded_builtin): Avoid converting
1263 __atomic_compare_exchange_n return type to that of what its
1264 first argument points to.
1265
e3fe09c1
UB
12662016-07-22 Uros Bizjak <ubizjak@gmail.com>
1267
1268 * c-common.c: Use HOST_WIDE_INT_M1U instead of
1269 ~(unsigned HOST_WIDE_INT) 0.
1270
bc91c436
ML
12712016-07-22 Martin Liska <mliska@suse.cz>
1272
1273 PR gcov-profile/69028
1274 PR gcov-profile/62047
1275 * cilk.c (create_cilk_helper_decl): Set location of a new decl
1276 to the current_function_decl.
1277
451dcc66
JM
12782016-07-21 Jason Merrill <jason@redhat.com>
1279
1280 PR c++/65168
1281 * c-common.c (c_common_truthvalue_conversion): Check
1282 c_inhibit_evaluation_warnings for warning about address of
1283 reference.
1284
de6a69ee
DM
12852016-07-20 David Malcolm <dmalcolm@redhat.com>
1286
1287 * c-common.h (lookup_name_fuzzy): Convert return type from tree to
1288 const char *.
1289
d022c55a
JM
12902016-07-15 Jason Merrill <jason@redhat.com>
1291
1292 * c-opts.c (c_common_post_options): Update -fabi-version default to 11.
1293
ddbbcb19
JJ
12942016-07-15 Jakub Jelinek <jakub@redhat.com>
1295
1296 PR c/71858
1297 * c-common.h (enum lookup_name_fuzzy_kind): Add
1298 FUZZY_LOOKUP_FUNCTION_NAME.
1299
d0cf395a
JM
13002016-07-08 Jason Merrill <jason@redhat.com>
1301
1302 P0145: Refining Expression Order for C++.
1303 * c.opts (-fargs-in-order): Rename to -fstrong-eval-order.
1304 * c-opts.c: Adjust.
1305
98d44e93
MT
13062016-07-05 Markus Trippelsdorf <markus@trippelsdorf.de>
1307
1308 PR c++/71214
1309 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.
1310
f9d8d994
TS
13112016-06-29 Thomas Schwinge <thomas@codesourcery.com>
1312
1313 * c-pragma.h (enum pragma_kind): Rename
1314 PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE. Adjust all
1315 users.
1316
4aa83879
RB
13172016-06-29 Richard Biener <rguenther@suse.de>
1318
1319 PR middle-end/71002
1320 * c-common.c (c_common_get_alias_set): Remove union type punning case.
1321
a25bd9e6
JM
13222016-06-24 Jason Merrill <jason@redhat.com>
1323
1324 P0145R2: Refining Expression Order for C++.
1325 * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of
1326 MODIFY_EXPR.
1327
a86451b9
JJ
13282016-06-24 Jakub Jelinek <jakub@redhat.com>
1329
1330 * c-common.c (check_builtin_function_arguments): Require last
1331 argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type.
1332 Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW
1333 if the last argument is pointer to enumerated or boolean type.
1334
1a4f11c8
DM
13352016-06-22 David Malcolm <dmalcolm@redhat.com>
1336
1337 PR c/70339
1338 * c-common.h (enum lookup_name_fuzzy_kind): New enum.
1339 (lookup_name_fuzzy): New prototype.
1340
fe55692c
JDA
13412016-06-21 John David Anglin <danglin@gcc.gnu.org>
1342
1343 * c-common.c (get_source_date_epoch): Use int64_t instead of long long.
1344
4eb24e01
JM
13452016-06-14 Jason Merrill <jason@redhat.com>
1346
1347 P0145R2: Refining Expression Order for C++.
1348 * c.opt (fargs-in-order): New.
1349 * c-opts.c (c_common_post_options): Adjust flag_args_in_order.
1350
ef7cf206
JJ
13512016-06-13 Jakub Jelinek <jakub@redhat.com>
1352
0dda258b
JJ
1353 PR sanitizer/71498
1354 * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
1355 all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.
1356
ef7cf206
JJ
1357 PR preprocessor/71183
1358 * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch
1359 to cb_get_source_date_epoch.
1360
50b15873
JJ
13612016-06-10 Jakub Jelinek <jakub@redhat.com>
1362
1363 PR c/68657
1364 * c.opt (Wpsabi): Add Warning flag.
1365
4d926e34
MS
13662016-06-10 Martin Sebor <msebor@redhat.com>
1367
1368 PR c/71392
1369 * gcc/c-family/c-common.c (handle_nonnull_attribute): Accept
1370 the nonnull attribute in type-generic builtins.
1371
e01b4e16
MS
13722016-06-09 Martin Sebor <msebor@redhat.com>
1373
1374 PR c/70883
1375 * c-common.c (builtin_function_validate_nargs): Make text of error
1376 message consistent with others like it.
1377
44a845ca
MS
13782016-06-08 Martin Sebor <msebor@redhat.com>
1379 Jakub Jelinek <jakub@redhat.com>
1380
1381 PR c++/70507
1382 PR c/68120
1383 * c-common.c (check_builtin_function_arguments): Handle
1384 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
1385
a80a7051
RB
13862016-06-08 Richard Biener <rguenther@suse.de>
1387
1388 * c-common.c (parse_optimize_options): Improve diagnostic messages.
1389
bfd67b47
RB
13902016-06-07 Richard Biener <rguenther@suse.de>
1391
1392 PR c/61564
1393 * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION
1394 options and warn about others.
1395
15c98b2e
ES
13962016-06-01 Eduard Sanou <dhole@openmailbox.org>
1397
1398 * c-common.c (get_source_date_epoch): Rename to
1399 cb_get_source_date_epoch.
1400 * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
1401 message when the parsing fails. Use error_at instead of fatal_error.
1402 * c-common.h (get_source_date_epoch): Rename to
1403 cb_get_source_date_epoch.
1404 * c-common.h (cb_get_source_date_epoch): Prototype.
1405 * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
1406 * c-common.h (c_omp_region_type): Remove trailing comma.
1407 * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
1408 * c-lex.c (c_lex_with_flags): Remove initialization of
1409 pfile->source_date_epoch.
1410
00631022
JJ
14112016-05-30 Jakub Jelinek <jakub@redhat.com>
1412
1413 PR c++/71349
1414 * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
1415 C_OMP_CLAUSE_SPLIT_TARGET. Put OMP_CLAUSE_NOWAIT to
1416 C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
1417 instead of C_OMP_CLAUSE_SPLIT_FOR.
1418
f17a223d
RB
14192016-05-24 Richard Biener <rguenther@suse.de>
1420
1421 PR middle-end/70434
1422 PR c/69504
1423 * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
1424 (convert_vector_to_array_for_subscript): ... this.
1425 * c-common.c (convert_vector_to_pointer_for_subscript): Use a
1426 VIEW_CONVERT_EXPR to an array type. Rename to ...
1427 (convert_vector_to_array_for_subscript): ... this.
1428
4f2e1536
MP
14292016-05-12 Marek Polacek <polacek@redhat.com>
1430
1431 PR c/70756
1432 * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
1433 size_in_bytes and pass LOC to it.
1434
d6e83a8d
MM
14352016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
1436
1437 PR c/43651
1438 * c.opt (Wduplicate-decl-specifier): New option.
1439
5c3a10fb
MP
14402016-05-11 Marek Polacek <polacek@redhat.com>
1441
1442 PR c++/71024
1443 * c-common.c (diagnose_mismatched_attributes): New function.
1444 * c-common.h (diagnose_mismatched_attributes): Declare.
1445
deef7113
MP
14462016-05-04 Marek Polacek <polacek@redhat.com>
1447
1448 * c.opt (Wdangling-else): New option.
1449
79ce98bc
MP
14502016-05-03 Marek Polacek <polacek@redhat.com>
1451
1452 PR c/70859
1453 * c-common.c (builtin_function_validate_nargs): Add location
1454 parameter. Use it.
1455 (check_builtin_function_arguments): Add location and arguments
1456 parameters. Use them.
1457 * c-common.h (check_builtin_function_arguments): Update declaration.
1458
381cdae4
RB
14592016-05-03 Richard Biener <rguenther@suse.de>
1460
1461 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
1462 allow call args to gimplify to SSA names.
1463
1d793c34
MP
14642016-05-03 Marek Polacek <polacek@redhat.com>
1465
1466 * c-common.h (enum c_omp_region_type): Remove stray comma.
1467
77886428
CP
14682016-05-02 Cesar Philippidis <cesar@codesourcery.com>
1469
1470 * c-common.h (enum c_omp_region_type): Define.
1471
697e0b28
RS
14722016-05-02 Richard Sandiford <richard.sandiford@arm.com>
1473
1474 * c-common.c (shorten_compare): Use wi::to_wide.
1475
e7ff0319
CP
14762016-04-29 Cesar Philippidis <cesar@codesourcery.com>
1477
1478 PR middle-end/70626
1479 * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
1480 * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
1481 reduction clauses in acc parallel loops.
1482
2fff3db8
MP
14832016-04-29 Marek Polacek <polacek@redhat.com>
1484
1485 PR c/70852
1486 * c-common.c (warn_for_memset): Check domain before accessing it.
1487
509063eb
DV
14882016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
1489
1490 PR/69089
1491 * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
1492 "aligned" attribute.
1493
b632761d
JM
14942016-04-28 Jason Merrill <jason@redhat.com>
1495
1496 * c-lex.c (c_common_has_attribute): Handle nodiscard.
1497
174f6622
ES
14982016-04-28 Eduard Sanou <dhole@openmailbox.org>
1499 Matthias Klose <doko@debian.org>
1500
1501 * c-common.c (get_source_date_epoch): New function, gets the environment
1502 variable SOURCE_DATE_EPOCH and parses it as long long with error
1503 handling.
1504 * c-common.h (get_source_date_epoch): Prototype.
1505 * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
1506
6bc2bb18
RB
15072015-04-27 Ryan Burn <contact@rnburn.com>
1508
1509 PR c++/69024
1510 PR c++/68997
1511 * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
1512 (cilk_recognize_spawn): Renamed from recognize_spawn and change to
1513 external linkage.
1514 (cilk_detect_and_unwrap): Corresponding changes.
1515 (extract_free_variables): Don't extract free variables from
1516 AGGR_INIT_EXPR slot.
1517 * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
1518 (cilk_recognize_spawn): Likewise.
1519
c1e1f433
BS
15202016-04-27 Bernd Schmidt <bschmidt@redhat.com>
1521
1522 * c.opt (Wmemset-elt-size): New option.
1523 * c-common.c (warn_for_memset): New function.
1524 * c-common.h (warn_for_memset): Declare.
1525
d067e05f
JM
15262016-04-25 Jason Merrill <jason@redhat.com>
1527
1528 * c-common.c (handle_unused_attribute): Accept CONST_DECL.
1529 No longer static.
1530 * c-common.h: Declare it.
1531 * c-lex.c (c_common_has_attribute): Add maybe_unused.
1532
9aa36ae5
JM
15332016-04-22 Jason Merrill <jason@redhat.com>
1534
1535 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
1536
477d4906
IV
15372016-04-20 Ilya Verbin <ilya.verbin@intel.com>
1538
1539 PR c++/69363
1540 * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
1541 * c-common.h (c_finish_cilk_clauses): Remove declaration.
1542
fe37c7af
MM
15432016-04-18 Michael Matz <matz@suse.de>
1544
1545 * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
1546 and SET_DECL_ALIGN.
1547
23f2660f
EB
15482016-04-17 Eric Botcazou <ebotcazou@adacore.com>
1549
1550 * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
1551 (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
1552 to incomplete types.
1553 (dump_nested_type): Remove redundant tests and tidy up.
1554 (print_ada_declaration): Also set TREE_VISITED on the declaration of
1555 a type which is the typedef of an original type.
1556
1e77281b
MP
15572016-04-15 Marek Polacek <polacek@redhat.com>
1558
1559 PR c/70651
1560 * c-common.c (build_va_arg): Change two asserts into errors and return
1561 error_mark_node.
1562
b3a77f21
MP
15632016-04-13 Marek Polacek <polacek@redhat.com>
1564
1565 PR c++/70639
1566 * c-indentation.c (should_warn_for_misleading_indentation): Bail out
1567 for switch statements, too.
1568
322b8466
JM
15692016-03-28 Jason Merrill <jason@redhat.com>
1570
1571 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
1572
fbdb6baf
MP
15732016-03-23 Marek Polacek <polacek@redhat.com>
1574
1575 PR c++/69884
1576 * c.opt (Wignored-attributes): New option.
1577
5c240f4d
DM
15782016-03-22 David Malcolm <dmalcolm@redhat.com>
1579
1580 PR c/69993
1581 * c-indentation.c (warn_for_misleading_indentation): Rewrite the
1582 diagnostic text, reversing the order of the warning and note so
1583 that they appear in source order.
1584
14ba7b28
MP
15852016-03-17 Marek Polacek <polacek@redhat.com>
1586
1587 PR c/69407
1588 * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
1589 operations.
1590
08a1cadc
JM
15912016-03-14 Jason Merrill <jason@redhat.com>
1592
2aaeea19
JM
1593 * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
1594
08a1cadc
JM
1595 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
1596
c06d25bb
RB
15972016-03-09 Richard Biener <rguenther@suse.de>
1598
1599 PR c/70143
1600 * c-common.c (strict_aliasing_warning): Add back
1601 alias_sets_conflict_p check.
1602
80aac5c8
JM
16032016-03-08 Jason Merrill <jason@redhat.com>
1604
1605 * c-opts.c (set_std_cxx1z): Don't enable concepts.
1606
64b23c13
DM
16072016-03-04 David Malcolm <dmalcolm@redhat.com>
1608
1609 PR c/68187
1610 * c-indentation.c (get_visual_column): Move code to determine next
1611 tab stop to...
1612 (next_tab_stop): ...this new function.
1613 (line_contains_hash_if): Delete function.
1614 (detect_preprocessor_logic): Delete function.
1615 (get_first_nws_vis_column): New function.
1616 (detect_intervening_unindent): New function.
1617 (should_warn_for_misleading_indentation): Replace call to
1618 detect_preprocessor_logic with a call to
1619 detect_intervening_unindent.
1620
729526f5
DM
16212016-03-04 David Malcolm <dmalcolm@redhat.com>
1622
1623 PR c/68187
1624 * c-indentation.c (should_warn_for_misleading_indentation): When
1625 suppressing warnings about cases where the guard and body are on
1626 the same column, only use the first non-whitespace column in place
1627 of the guard token column when dealing with "else" clauses.
1628 When rejecting aligned BODY and NEXT, loosen the requirement
1629 from equality with the first non-whitespace of guard to simply
1630 that they not be indented relative to it.
1631
e9a35493
RB
16322016-03-04 Richard Biener <rguenther@suse.de>
1633
1634 PR c++/70054
1635 * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
1636 instead of alias_sets_conflict_p.
1637
1be56bc5
MP
16382016-03-01 Marek Polacek <polacek@redhat.com>
1639
1640 PR c++/69795
1641 * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
1642 any DECL.
1643
35886f0b
MS
16442016-02-22 Martin Sebor <msebor@redhat.com>
1645
1646 PR middle-end/69780
1647 * c-common.c (check_builtin_function_arguments): Validate and
1648 reject invalid arguments to __builtin_alloca_with_align.
1649
4246c8da
MW
16502016-02-20 Mark Wielaard <mjw@redhat.com>
1651
1652 PR c/28901
1653 * c.opt (Wunused-const-variable): Turn into Alias for...
1654 (Wunused-const-variable=): New option.
1655
268be88c
BE
16562016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
1657
1658 PR c++/69865
1659 * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
1660 here...
1661 (c_common_init_options): ...to here.
1662 (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
1663
871b3f47
JJ
16642016-02-19 Jakub Jelinek <jakub@redhat.com>
1665
1666 PR c++/69826
1667 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
1668 (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
1669 flag_preprocess_only.
1670
bf14eba2
JJ
16712016-02-16 Jakub Jelinek <jakub@redhat.com>
1672
1673 PR c/69835
1674 * c.opt (Wnonnull-compare): Enable for -Wall.
1675
ba6b3795
JJ
16762016-02-15 Jakub Jelinek <jakub@redhat.com>
1677
1678 PR c++/69797
1679 * c-common.c (sync_resolve_size): Diagnose too few arguments
1680 even when params is non-NULL empty vector.
1681
a011cd92
BS
16822016-02-08 Bernd Schmidt <bschmidt@redhat.com>
1683
1684 PR target/60410
1685 * c.opt (fshort-double): Remove.
1686
46cb9332
MS
16872016-02-05 Martin Sebor <msebor@redhat.com>
1688
1689 PR c++/69662
1690 * c.opt (Warning options): Update -Wplacement-new to take
1691 an optional argument.
1692
e1b81f2b
JJ
16932016-02-01 Jakub Jelinek <jakub@redhat.com>
1694
1695 PR preprocessor/69543
1696 PR c/69558
1697 * c-pragma.c (handle_pragma_diagnostic): Pass input_location
1698 instead of loc to control_warning_option.
1699
b6adbb9f
NS
17002016-02-01 Nathan Sidwell <nathan@codesourcery.com>
1701
1702 * c.opt (fopenacc-dim=): New option.
1703
5d70666e
RB
17042016-01-27 Ryan Burn <contact@rnburn.com>
1705
1706 PR cilkplus/69267
1707 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
1708 gimplify_arg. Removed superfluous post_p argument.
1709 * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
1710 superfluous post_p argument.
1711 * c-gimplify.c (c_gimplify_expr): Likewise.
1712
01e1dea3
DM
17132016-01-26 David Malcolm <dmalcolm@redhat.com>
1714
1715 PR other/69006
1716 * c-opts.c (c_diagnostic_finalizer): Replace invocation of
1717 pp_newline_and_flush with pp_flush.
1718
9f04a53e
MS
17192016-01-20 Martin Sebor <msebor@redhat.com>
1720
1721 PR c/69405
1722 * c-common.c (sync_resolve_size): Avoid printing diagnostic about
1723 an incompatible argument when the argument isn't a valid tree node.
1724
7f26f7df
JM
17252016-01-18 Jason Merrill <jason@redhat.com>
1726
1727 PR c++/68767
1728 * c-common.c (check_function_arguments_recurse): Fold the whole
1729 COND_EXPR, not just the condition.
1730
f62bf092
TV
17312016-01-18 Tom de Vries <tom@codesourcery.com>
1732
1733 * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
1734 classify as loop clause.
1735
e0a575ff
JJ
17362016-01-15 Jakub Jelinek <jakub@redhat.com>
1737
1738 PR bootstrap/68271
1739 * c-pragma.c (c_register_pragma_1): Adjust comment to note that
1740 C++ FE no longer has limit on number of pragmas.
1741
17422015-01-14 Ryan Burn <contact@rnburn.com>
b6e3db06
RB
1743
1744 PR c++/69048
1745 * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
c47eaca6 1746 to add missing cleanup point.
b6e3db06 1747
c7df95d8
DM
17482016-01-14 David Malcolm <dmalcolm@redhat.com>
1749
1750 PR c++/68819
1751 * c-indentation.c (get_visual_column): Add location_t param.
1752 Handle the column number being zero by effectively disabling the
1753 warning, with an "inform".
1754 (should_warn_for_misleading_indentation): Add location_t argument
1755 for all uses of get_visual_column.
1756
21efdd80
PP
17572016-01-10 Patrick Palka <ppalka@gcc.gnu.org>
1758
1759 PR c++/69029
1760 * c-indentation.c (should_warn_for_misleading_indentation):
1761 Don't warn about do-while statements.
1762
7a127fa7
MS
17632016-01-07 Martin Sebor <msebor@redhat.com>
1764
1765 PR c/68966
1766 * c-common.c (sync_resolve_size): Reject first argument when it's
1767 a pointer to _Bool.
1768
c589e975
DM
17692016-01-05 David Malcolm <dmalcolm@redhat.com>
1770
1771 PR c/69122
1772 * c-indentation.c (get_visual_column): Remove default argument.
1773 (should_warn_for_misleading_indentation): For the multiline case,
1774 update call to get_visual_column for next_stmt_exploc so that it
1775 captures the location of the first non-whitespace character in the
1776 relevant line. Don't issue warnings if there is non-whitespace
1777 before the next statement.
1778
818ab71a
JJ
17792016-01-04 Jakub Jelinek <jakub@redhat.com>
1780
1781 Update copyright years.
1782
745e411d
DM
17832015-12-21 David Malcolm <dmalcolm@redhat.com>
1784
1785 * c-common.c (binary_op_error): Convert first param from
1786 location_t to rich_location * and use it when emitting an error.
1787 * c-common.h (binary_op_error): Convert first param from
1788 location_t to rich_location *.
1789
de67c4c3
DM
17902015-12-16 David Malcolm <dmalcolm@redhat.com>
1791
1792 * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
1793 * c-lex.c (conflict_marker_get_final_tok_kind): New function.
1794
4a38b02b
IV
17952015-12-15 Ilya Verbin <ilya.verbin@intel.com>
1796
1797 * c-common.c (c_common_attribute_table): Handle "omp declare target
1798 link" attribute.
1799
54d62f51
JJ
18002015-12-14 Jakub Jelinek <jakub@redhat.com>
1801
1802 PR c/68833
1803 * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
1804
8d4227c8
TB
18052014-12-12 Tobias Burnus <burnus@net-b.de>
1806
1807 PR fortran/68815
1808 * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
1809 specifiers (%d, %i,%u and %c).
1810
f6069ccc
DM
18112015-12-10 David Malcolm <dmalcolm@redhat.com>
1812
1813 * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
1814
63bbf46d
JJ
18152015-12-08 Jakub Jelinek <jakub@redhat.com>
1816
1817 PR c/48088
1818 PR c/68657
1819 * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
1820 * c-pragma.c (handle_pragma_diagnostic): Adjust
1821 control_warning_option caller.
1822
f79520bb
DM
18232015-12-07 David Malcolm <dmalcolm@redhat.com>
1824
1825 * c-common.c (c_cpp_error): Update for change to
1826 rich_location::set_range.
1827
b3d5bc62
JJ
18282015-12-04 Paolo Bonzini <bonzini@gnu.org>
1829
1830 * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
1831 shifting 1 out of the sign bit.
1832
18332015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
1834
1835 * c-common.c (c_common_attribute_table[]): Update max arguments
1836 count for "simd" attribute.
1837 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
1838
6eb4a537
JJ
18392015-12-03 Jakub Jelinek <jakub@redhat.com>
1840
1841 PR preprocessor/57580
1842 * c-ppoutput.c (print): Change printed field to bool.
1843 Move src_file last for smaller padding.
1844 (init_pp_output): Set print.printed to false instead of 0.
1845 (scan_translation_unit): Fix up formatting. Set print.printed
1846 to true after printing something other than newline.
1847 (scan_translation_unit_trad): Set print.printed to true instead of 1.
1848 (maybe_print_line_1): Set print.printed to false instead of 0.
1849 (print_line_1): Likewise.
1850 (do_line_change): Set print.printed to true instead of 1.
1851 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
1852 dump_macro): Set print.printed to false after printing newline.
1853
4250754e
JM
18542015-12-02 Jason Merrill <jason@redhat.com>
1855
f479b43d
JM
1856 * c-common.c (fold_for_warn): New.
1857 (warn_logical_operator, warn_tautological_cmp)
1858 (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
1859
4250754e
JM
1860 * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
1861 (c_fully_fold_internal, decl_constant_value_for_optimization):
1862 Move to c/c-fold.c.
1863 * c-common.h: Don't declare decl_constant_value_for_optimization.
1864
e9e32ee6
JM
18652015-12-02 Joseph Myers <joseph@codesourcery.com>
1866
1867 PR c/68162
1868 * c-common.h (c_build_qualified_type): Add extra default
1869 arguments.
1870
37d5ad46
JB
18712015-12-01 Julian Brown <julian@codesourcery.com>
1872 Cesar Philippidis <cesar@codesourcery.com>
1873 James Norris <James_Norris@mentor.com>
1874
1875 * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
1876 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
1877 (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
1878
f07862c7
EB
18792015-11-30 Eric Botcazou <ebotcazou@adacore.com>
1880
1881 * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
1882 (decl_sloc_common): Delete and move bulk of processing to...
1883 (decl_sloc): ...here.
1884 (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
1885 (dump_ada_double_name): Remove S parameter and compute the suffix.
1886 (dump_ada_array_type): Add PARENT parameter. Simplify computation of
1887 element type and deal with an anonymous one.
1888 (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
1889 (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type
1890 and remove reference to QUAL_UNION_TYPE.
1891 (dump_nested_types): Make 2 passes on the fields and move bulk to...
1892 (dump_nested_type): ...here. New function extracted from above.
1893 Generate a full declaration for anonymous element type of arrays.
1894 (print_ada_declaration): Really skip anonymous declarations. Remove
1895 references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type.
1896 Clean up processing of declarations of array types and objects.
1897 (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
1898 Remove obsolete code and tidy up.
1899
75c8aac3
JH
19002015-11-29 Jan Hubicka <hubicka@ucw.cz>
1901
1902 PR c/67581
1903 * c-common.c (handle_transparent_union_attribute): Update
1904 also type variants.
1905
b58d3df2
ML
19062015-11-27 Martin Liska <mliska@suse.cz>
1907
1908 PR c++/68312
1909 * array-notation-common.c (cilkplus_extract_an_triplets):
1910 Release vector of vectors.
1911 * cilk.c (gimplify_cilk_spawn): Free allocated memory.
1912
89a01fcf
EB
19132015-11-26 Eric Botcazou <ebotcazou@adacore.com>
1914
1915 PR c++/68527
1916 * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
1917 (print_ada_struct_decl): Likewise.
1918
cc5c5226
IZ
19192015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
1920
1921 PR c++/68001
1922 * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
1923 * cilk.c (recognize_spawn): Determine location in a more precise
1924 way.
1925
269adb9d
JM
19262015-11-19 Jason Merrill <jason@redhat.com>
1927
1928 * c-common.c (shorten_compare): But look through macros from
1929 system headers.
1930
d0eccfcd
JM
19312015-11-18 Jason Merrill <jason@redhat.com>
1932
1933 * c-common.c (shorten_compare): Don't -Wtype-limits if the
1934 non-constant operand comes from a macro.
1935
3e44547c
JM
19362015-11-17 Jason Merrill <jason@redhat.com>
1937
1938 PR bootstrap/68346
1939 * c-common.c (warn_tautological_cmp): Fold before checking for
1940 constants.
1941
0f62c7a0
MP
19422015-11-16 Marek Polacek <polacek@redhat.com>
1943
1944 PR c++/68362
1945 * c-common.c (check_case_bounds): Fold low and high cases.
1946
a868811e
MP
19472015-11-16 Marek Polacek <polacek@redhat.com>
1948
1949 * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
1950 * c-common.c (c_common_get_alias_set): Likewise.
1951 (handle_visibility_attribute): Likewise.
1952
fff77217
KY
19532015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
1954
1955 * c-common.c (handle_simd_attribute): New.
1956 (struct attribute_spec): Add entry for "simd".
1957 (handle_simd_attribute): New.
1958
269e63b7
KT
19592015-11-13 Kai Tietz <ktietz70@googlemail.com>
1960
1961 * c-lex.c (interpret_float): Use fold_convert.
1962
ebedc9a3
DM
19632015-11-13 David Malcolm <dmalcolm@redhat.com>
1964
1965 * c-common.c (c_fully_fold_internal): Capture existing souce_range,
1966 and store it on the result.
1967 * c-opts.c (c_common_init_options): Set
1968 global_dc->colorize_source_p.
1969
6e232ba4
JN
19702015-11-12 James Norris <jnorris@codesourcery.com>
1971 Joseph Myers <joseph@codesourcery.com>
1972
1973 * c-pragma.c (oacc_pragmas): Add entry for declare directive.
1974 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
1975 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
1976 PRAGMA_OACC_CLAUSE_LINK.
1977
e78bede6
MP
19782015-11-11 Marek Polacek <polacek@redhat.com>
1979
1980 PR c/68107
1981 PR c++/68266
1982 * c-common.c (valid_array_size_p): New function.
1983 * c-common.h (valid_array_size_p): Declare.
1984
3f8257db 19852015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
4ac93c7c
DH
1986
1987 PR bootstrap/68271
1988 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
1989
69f293c9
AM
19902015-11-11 Andrew MacLeod <amacleod@redhat.com>
1991
1992 * array-notation-common.c: Remove unused header files.
1993 * c-ada-spec.c: Likewise.
1994 * c-cilkplus.c: Likewise.
1995 * c-common.c: Likewise.
1996 * c-cppbuiltin.c: Likewise.
1997 * c-dump.c: Likewise.
1998 * c-format.c: Likewise.
1999 * c-gimplify.c: Likewise.
2000 * c-indentation.c: Likewise.
2001 * c-lex.c: Likewise.
2002 * c-omp.c: Likewise.
2003 * c-opts.c: Likewise.
2004 * c-pch.c: Likewise.
2005 * c-ppoutput.c: Likewise.
2006 * c-pragma.c: Likewise.
2007 * c-pretty-print.c: Likewise.
2008 * c-semantics.c: Likewise.
2009 * c-ubsan.c: Likewise.
2010 * cilk.c: Likewise.
2011 * stub-objc.c: Likewise.
2012
3a40d81d
NS
20132015-11-09 Thomas Schwinge <thomas@codesourcery.com>
2014 Cesar Philippidis <cesar@codesourcery.com>
2015 James Norris <jnorris@codesourcery.com>
2016 Julian Brown <julian@codesourcery.com>
2017 Nathan Sidwell <nathan@codesourcery.com>
2018
2019 * c-pragma.c (oacc_pragmas): Add "routine".
2020 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
2021
ee45a32d
EB
20222015-11-08 Eric Botcazou <ebotcazou@adacore.com>
2023
2024 * c-common.c (c_common_attributes): Add scalar_storage_order.
2025 (handle_scalar_storage_order_attribute): New function.
2026 * c-pragma.c (global_sso): New variable.
2027 (maybe_apply_pragma_scalar_storage_order): New function.
2028 (handle_pragma_scalar_storage_order): Likewise.
2029 (init_pragma): Register scalar_storage_order.
2030 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
2031 * c.opt (Wscalar-storage-order): New warning.
2032 (fsso-struct=): New option.
2033
eb11eb15
MS
20342015-11-08 Martin Sebor <msebor@redhat.com>
2035
2036 * c.opt (Wplacement-new): Add a period to the end of a sentence.
2037
0aad0198
RS
20382015-11-07 Richard Sandiford <richard.sandiford@arm.com>
2039
2040 * c-common.c: Don't undef DEF_BUILTIN.
2041
8a645150
DM
20422015-11-06 David Malcolm <dmalcolm@redhat.com>
2043
2044 * c-common.c (c_cpp_error): Convert parameter from location_t to
2045 rich_location *. Eliminate the "column_override" parameter and
2046 the call to diagnostic_override_column.
2047 Update the "done_lexing" clause to set range 0
2048 on the rich_location, rather than overwriting a location_t.
2049 * c-common.h (c_cpp_error): Convert parameter from location_t to
2050 rich_location *. Eliminate the "column_override" parameter.
2051
7a5e4956
CP
20522015-11-05 Cesar Philippidis <cesar@codesourcery.com>
2053 Thomas Schwinge <thomas@codesourcery.com>
2054 James Norris <jnorris@codesourcery.com>
2055
2056 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
2057 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
2058 clauses with parallel and kernels and loops.
2059 * c-pragma.h (enum pragma_omp_clause): Add entries for
2060 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
2061 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
2062 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
2063 INDEPENDENT,SEQ}.
2064 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
2065
e2f5cc96
MS
20662015-11-05 Martin Sebor <msebor@redhat.com>
2067
2068 PR c++/67942
2069 * c.opt (-Wplacement-new): New option.
2070
e01d41e5
JJ
20712015-11-05 Jakub Jelinek <jakub@redhat.com>
2072
2073 * c-common.h (c_finish_omp_atomic): Add TEST argument.
2074 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
2075 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
2076 save_expr or create_tmp_var* if TEST is true.
2077 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
2078 Don't call add_stmt here.
2079 (struct c_omp_check_loop_iv_data): New type.
2080 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
2081 c_omp_check_loop_iv_exprs): New functions.
2082 (c_omp_split_clauses): Adjust for lastprivate being allowed on
2083 distribute.
2084 (c_omp_declare_simd_clauses_to_numbers): Change
2085 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
2086 (c_omp_declare_simd_clauses_to_decls): Similarly change those
2087 from numbers to PARM_DECLs.
2088
595278be
MM
20892015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
2090
2091 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
2092 flag_checking.
2093
3f8257db 20942015-11-03 Bernd Schmidt <bschmidt@redhat.com>
c85158de
MS
2095
2096 PR c++-common/67882
b3d5bc62
JJ
2097 * c-common.h (fold_offsetof_1): Add argument.
2098 * c-common.c (fold_offsetof_1): Diagnose more invalid
c85158de
MS
2099 offsetof expressions that reference elements past the end of
2100 an array.
2101
4bf9e5a8
TS
21022015-11-03 Thomas Schwinge <thomas@codesourcery.com>
2103 Chung-Lin Tang <cltang@codesourcery.com>
2104
2105 * c-pragma.c (oacc_pragmas): Add "atomic".
2106 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
2107
3b1661a9
ES
21082015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
2109
2110 * c-common.c (handle_target_clones_attribute): New.
2111 (c_common_attribute_table): Add handle_target_clones_attribute.
2112 (handle_always_inline_attribute): Add check on target_clones attribute.
2113 (handle_target_attribute): Ditto.
2114
2adfab87
AM
21152015-10-29 Andrew MacLeod <amacleod@redhat.com>
2116
2117 * array-notation-common.c: Reorder #include's and remove duplicates.
2118 * c-ada-spec.c: Likewise.
2119 * c-cilkplus.c: Likewise.
2120 * c-common.c: Likewise.
2121 * c-cppbuiltin.c: Likewise.
2122 * c-dump.c: Likewise.
2123 * c-format.c: Likewise.
2124 * c-gimplify.c: Likewise.
2125 * c-indentation.c: Likewise.
2126 * c-lex.c: Likewise.
2127 * c-omp.c: Likewise.
2128 * c-opts.c: Likewise.
2129 * c-pch.c: Likewise.
2130 * c-ppoutput.c: Likewise.
2131 * c-pragma.c: Likewise.
2132 * c-pretty-print.c: Likewise.
2133 * c-semantics.c: Likewise.
2134 * c-ubsan.c: Likewise.
2135 * cilk.c: Likewise.
2136 * stub-objc.c: Likewise.
2137
d90ec4f2
JM
21382015-10-28 Jason Merrill <jason@redhat.com>
2139
2140 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
2141
88bae6f4
TS
21422015-10-27 Thomas Schwinge <thomas@codesourcery.com>
2143 James Norris <jnorris@codesourcery.com>
2144 Cesar Philippidis <cesar@codesourcery.com>
2145
2146 PR c/64765
2147 PR c/64880
2148 * c-common.h (c_oacc_split_loop_clauses): Declare function.
2149 * c-omp.c (c_oacc_split_loop_clauses): New function.
2150
b1726d6c
MS
21512015-10-21 Martin Sebor <msebor@redhat.com>
2152
2153 PR driver/68043
2154 * c.opt: End each sentence that describes an option with a period.
2155
fa60eeb9
MP
21562015-10-20 Marek Polacek <polacek@redhat.com>
2157
2158 * array-notation-common.c (is_cilkplus_vector_p): Define.
2159 * c-common.h (is_cilkplus_vector_p): Declare.
2160
95979049
MP
21612015-10-20 Marek Polacek <polacek@redhat.com>
2162
2163 * c.opt (std=gnu++11): Do not describe as experimental.
2164 (std=gnu++14): Likewise.
2165
2a9fb712
JM
21662015-10-19 Jason Merrill <jason@redhat.com>
2167
2168 * c-cppbuiltin.c (c_cpp_builtins): Define
2169 __cpp_nontype_template_args.
2170
13b380a3
JM
21712015-10-19 Jason Merrill <jason@redhat.com>
2172
2173 * c-cppbuiltin.c (c_cpp_builtins): Define
2174 __cpp_enumerator_attributes, __cpp_fold_expressions,
2175 __cpp_unicode_characters.
2176
d9a6bd32
JJ
21772015-10-13 Jakub Jelinek <jakub@redhat.com>
2178 Aldy Hernandez <aldyh@redhat.com>
2179
2180 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
2181 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
2182 (c_define_builtins): Likewise.
2183 * c-common.h (enum c_omp_clause_split): Add
2184 C_OMP_CLAUSE_SPLIT_TASKLOOP.
2185 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
2186 (c_finish_omp_for): Add ORIG_DECLV argument.
2187 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
2188 201511 instead of 201307.
2189 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
2190 OMP_CRITICAL_CLAUSES to it.
2191 (c_finish_omp_ordered): Add CLAUSES argument, set
2192 OMP_ORDERED_CLAUSES to it.
2193 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
2194 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
2195 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
2196 constructs and new OpenMP 4.5 clauses. Clear
2197 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
2198 verification code.
2199 * c-pragma.c (omp_pragmas_simd): Add taskloop.
2200 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
2201 (enum pragma_omp_clause): Add
2202 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
2203 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
2204
624d31fe
RS
22052015-10-05 Richard Sandiford <richard.sandiford@arm.com>
2206
2207 * c-lex.c (interpret_float): Use real_equal instead of
2208 REAL_VALUES_EQUAL.
2209
b8fd7909
JM
22102015-10-04 Jason Merrill <jason@redhat.com>
2211
2212 Implement N4514, C++ Extensions for Transactional Memory.
2213 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
2214 (c_common_attribute_table): Add transaction_safe_dynamic.
2215 transaction_safe now affects type identity.
2216 (handle_tm_attribute): Handle transaction_safe_dynamic.
2217 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
2218 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
2219 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
2220 (D_TRANSMEM): New.
2221 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
2222 * c-pretty-print.c (pp_c_attributes_display): Don't print
2223 transaction_safe in C++.
2224
12651878
MP
22252015-10-02 Marek Polacek <polacek@redhat.com>
2226
2227 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
2228
3e3b8d63
MP
22292015-10-02 Marek Polacek <polacek@redhat.com>
2230
2231 PR c/64249
2232 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
2233 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
2234 * c.opt (Wduplicated-cond): New option.
2235
0d1a8f75
JM
22362015-10-01 Joseph Myers <joseph@codesourcery.com>
2237
2238 * c.opt (std=c11): Do not describe as experimental.
2239 (std=gnu11): Likewise.
2240 (std=iso9899:2011): Likewise.
2241
3e32ee19
NS
22422015-09-28 Nathan Sidwell <nathan@codesourcery.com>
2243
2244 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
2245 (DEF_FUNCTION_TYPE_VAR_11): Delete.
2246
974348ee
MP
22472015-09-25 Marek Polacek <polacek@redhat.com>
2248
2249 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
2250 (ubsan_instrument_shift): Likewise.
2251
15dbc1a6
MP
22522015-09-25 Marek Polacek <polacek@redhat.com>
2253
2254 PR sanitizer/64906
2255 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
2256
6b95d7cc
PP
22572015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
2258
2259 * c-indentation.c (should_warn_for_misleading_indentation):
2260 Compare next_stmt_vis_column with guard_line_first_nws instead
2261 of with guard_line_vis_column.
2262
c1822f9c
MLI
22632015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
2264
2265 PR c/49654
2266 PR c/49655
2267 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
2268 options and options not valid for the current language.
2269
d5398058
PP
22702015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
2271
2272 * c-indentation.c (should_warn_for_misleading_indentation):
2273 Float out and consolidate the calls to get_visual_column that
2274 are passed guard_exploc as an argument. Compare
2275 next_stmt_vis_column with guard_line_first_nws instead of with
2276 body_line_first_nws.
2277
6b333269
NS
22782015-09-22 Nathan Sidwell <nathan@codesourcery.com>
2279
2280 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
2281 Wnamespaces): New C++ warnings.
2282
a75f1574
JM
22832015-09-22 Jason Merrill <jason@redhat.com>
2284
2285 * c-common.h (abi_compat_version_crosses): New.
2286 (warn_abi_version): Declare.
2287 * c-common.c: Define it.
2288 * c-opts.c (c_common_post_options): Handle it.
2289 flag_abi_compat_version defaults to 8.
2290
bdaaa8b7
VV
22912015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
2292
2293 Complete the implementation of N4230, Nested namespace definition.
2294 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
2295 __cpp_nested_namespace_definitions.
2296
eaa797e8
MLI
22972015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
2298
2299 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
2300
c4914de6
MLI
23012015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
2302
2303 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
2304 when warning.
2305 * c-pragma.h (pragma_lex): Add optional loc argument.
2306
fcb87c50
MM
23072015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
2308
2309 * c-format.c (check_format_arg): Adjust to use common block size in all
2310 object pools.
2311
31bdd08a
DM
23122015-09-15 David Malcolm <dmalcolm@redhat.com>
2313
2314 * c-format.c (location_from_offset): Update for change in
2315 signature of location_get_source_line.
2316 * c-indentation.c (get_visual_column): Likewise.
2317 (line_contains_hash_if): Likewise.
2318
aa9f4b4c
MP
23192015-09-14 Marek Polacek <polacek@redhat.com>
2320
2321 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
2322 setting various warnings.
2323
aa256c4a
MP
23242015-09-14 Marek Polacek <polacek@redhat.com>
2325
2326 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
2327 a negative value.
2328
0f876f22
MW
23292015-09-11 Mark Wielaard <mjw@redhat.com>
2330
2331 PR c/28901
2332 * c.opt (Wunused-variable): Option from common.opt.
2333 (Wunused-const-variable): New option.
2334
273aa49e
PC
23352015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
2336
2337 PR c++/53184
2338 * c.opt ([Wsubobject-linkage]): Add.
2339
1807ffc1
MS
23402015-09-03 Martin Sebor <msebor@redhat.com>
2341
2342 PR c/66516
2343 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
2344 functions.
2345 * c-common.c (reject_gcc_builtin): Define.
2346
38942840
BI
23472015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
2348
2349 PR middle-end/60586
2350 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
2351 prototype.
2352 * c-gimplify.c (c_gimplify_expr): Added a call to the function
2353 cilk_gimplify_call_params_in_spawned_fn.
2354 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
2355 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
2356 unwrapping.
2357
c316b5e4
MP
23582015-08-25 Marek Polacek <polacek@redhat.com>
2359
2360 PR middle-end/67330
2361 * c-common.c (handle_weak_attribute): Don't check whether the
2362 visibility can be changed here.
2363
584a7c46
MLI
23642015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
2365
2366 * c-lex.c (c_lex_with_flags): Use explicit locations.
2367
a79683d5
TS
23682015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
2369
2370 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
2371 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
2372
61717a45
FXC
23732015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2374
2375 PR middle-end/36757
2376 * c-common.c (check_builtin_function_arguments): Add check
2377 for BUILT_IN_SIGNBIT argument.
2378
329524f5
PC
23792015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
2380
2381 PR c++/67160
2382 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
2383 in c++1z mode.
2384
4ee55665
MP
23852015-08-17 Marek Polacek <polacek@redhat.com>
2386
2387 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
2388 with whitespaces before qualifier names.
2389
b893e375
MP
23902015-08-12 Marek Polacek <polacek@redhat.com>
2391
2392 PR c++/55095
2393 * c-common.c (maybe_warn_shift_overflow): Properly handle
2394 left-shifting 1 into the sign bit.
2395
c2d89095
MLI
23962015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2397
2398 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
2399
971e17ff
AS
24002015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
2401 Braden Obrzut <admin@maniacsvault.net>
2402 Jason Merrill <jason@redhat.com>
2403
2404 Add C++ Concepts TS support.
2405 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
2406 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
2407 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
2408 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
2409 * c-opts.c (set_std_cxx1z): Set flag_concepts.
2410 * c.opt (fconcepts): New.
2411
b3d5bc62
JJ
24122015-08-02 Martin Sebor <msebor@redhat.com>
2413
2414 * c.opt (-Wframe-address): New warning option.
2415
8ebca419
PP
24162015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
2417
2418 * c-indentation.c (should_warn_for_misleading_indentation):
2419 Improve heuristics.
2420
1a1e101f
PP
24212015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
2422
2423 * c-indentation.c (get_visual_column): Add parameter first_nws,
2424 use it. Update comment documenting the function.
2425 (is_first_nonwhitespace_on_line): Remove.
2426 (should_warn_for_misleading_indentation): Replace usage of
2427 of is_first_nonwhitespace_on_line with get_visual_column.
2428
992118a1
PP
24292015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
2430
2431 * c-indentation.h (struct token_indent_info): Define.
2432 (get_token_indent_info): Define.
2433 (warn_for_misleading_information): Declare.
2434 * c-common.h (warn_for_misleading_information): Remove.
2435 * c-identation.c (warn_for_misleading_indentation):
2436 Change declaration to take three token_indent_infos. Adjust
2437 accordingly.
2438 * c-identation.c (should_warn_for_misleading_indentation):
2439 Likewise. Bail out early if the body is a compound statement.
2440 (guard_tinfo_to_string): Define.
2441
e8fa3817
JM
24422015-07-30 Jason Merrill <jason@redhat.com>
2443
2444 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
2445 '*' for reference decay.
2446
173864e8
MP
24472015-07-30 Marek Polacek <polacek@redhat.com>
2448
2449 * c-common.c (warn_tautological_cmp): Bail for float types.
2450
f2afe6dd
MP
24512015-07-27 Marek Polacek <polacek@redhat.com>
2452
2453 PR bootstrap/67030
2454 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
2455
05b28fd6
MP
24562015-07-27 Marek Polacek <polacek@redhat.com>
2457
2458 PR c++/66555
2459 PR c/54979
2460 * c-common.c (find_array_ref_with_const_idx_r): New function.
2461 (warn_tautological_cmp): New function.
2462 * c-common.h (warn_tautological_cmp): Declare.
2463 * c.opt (Wtautological-compare): New option.
2464
5a5062b8
MP
24652015-07-23 Marek Polacek <polacek@redhat.com>
2466
2467 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
2468 (ubsan_instrument_shift): Likewise.
2469
dc891fe7
MP
24702015-07-23 Marek Polacek <polacek@redhat.com>
2471
2472 PR sanitizer/66908
2473 * c-ubsan.c: Include gimplify.h.
2474 (ubsan_instrument_division): Unshare OP0 and OP1.
2475 (ubsan_instrument_shift): Likewise.
2476
451b5e48
MP
24772015-07-20 Marek Polacek <polacek@redhat.com>
2478 Richard Sandiford <richard.sandiford@arm.com>
2479
2480 PR c++/55095
2481 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
2482 Use EXPR_LOC_OR_LOC.
2483 (maybe_warn_shift_overflow): New function.
2484 * c-common.h (maybe_warn_shift_overflow): Declare.
2485 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
2486 * c.opt (Wshift-overflow): New option.
2487
fb0b2914
ML
24882015-07-16 Martin Liska <mliska@suse.cz>
2489
2490 * c-format.c (static void check_format_info_main): Use
2491 object_allocator instead of pool_allocator.
2492 (check_format_arg): Likewise.
2493 (check_format_info_main): Likewise.
2494
903f5c23
AM
24952015-07-15 Andrew MacLeod <amacleod@redhat.com>
2496
2497 * c-opts.c: Remove multiline #include comment.
2498
026c3cfd
AH
24992015-07-12 Aldy Hernandez <aldyh@redhat.com>
2500
2501 * c-common.c: Fix double word typos.
2502
bb49ee66
EB
25032015-07-10 Eric Botcazou <ebotcazou@adacore.com>
2504
2505 * c-ada-spec.h (cpp_operation): Revert latest change.
2506 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
2507 constructors and destructors.
2508
1916bcb5
AM
25092015-07-09 Andrew MacLeod <amacleod@redhat.com>
2510
2511 * c-common.h: Adjust includes for flags.h changes.
2512 * stub-objc.c: Likewise.
026c3cfd 2513
a9dcd529
EB
25142015-07-08 Eric Botcazou <ebotcazou@adacore.com>
2515
2516 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
2517 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
2518
b03b462f
JJ
25192015-07-08 Jakub Jelinek <jakub@redhat.com>
2520
2521 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
2522 are to be removed, return NULL rather than original clauses list.
2523
c7131fb2
AM
25242015-07-07 Andrew MacLeod <amacleod@redhat.com>
2525
2526 * array-notation-common.c: Adjust includes.
2527 * c-ada-spec.c: Likewise.
2528 * c-cilkplus.c: Likewise.
2529 * c-common.h: Likewise.
2530 * c-cppbuiltin.c: Likewise.
2531 * c-dump.c: Likewise.
2532 * c-format.c: Likewise.
2533 * c-gimplify.c: Likewise.
2534 * c-indentation.c: Likewise.
2535 * c-lex.c: Likewise.
2536 * c-omp.c: Likewise.
2537 * c-opts.c: Likewise.
2538 * c-pch.c: Likewise.
2539 * c-ppoutput.c: Likewise.
2540 * c-pragma.c: Likewise.
2541 * c-pretty-print.c: Likewise.
2542 * c-semantics.c: Likewise.
2543 * c-ubsan.c: Likewise.
2544 * cilk.c: Likewise.
2545 * stub-objc.c: Likewise.
2546
2a7fb83f
EB
25472015-07-07 Eric Botcazou <ebotcazou@adacore.com>
2548
2549 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
2550 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
2551
a03c9bf1
JM
25522015-07-01 Jason Merrill <jason@redhat.com>
2553
36a85135
JM
2554 * c-common.h (D_CXX11): Rename from D_CXX0X.
2555 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
2556 * c-common.c: Adjust.
2557
e7fa68d5
JM
2558 * c-opts.c (c_common_post_options): Default to C++14.
2559
a03c9bf1
JM
2560 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
2561
fe95b036
ESR
25622015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
2563
2564 Implement N4197 - Adding u8 character literals
b3d5bc62 2565 * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
a64be36b 2566 CPP_CHAR.
b3d5bc62 2567 * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
a64be36b 2568 CPP_UTF8CHAR_USERDEF tokens.
b3d5bc62 2569 * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
a64be36b
EB
2570 and CPP_UTF8CHAR tokens.
2571 (lex_charconst): Treat CPP_UTF8CHAR token.
fe95b036 2572
da2e71c9
MLI
25732015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2574
2575 PR fortran/66605
2576 * c-common.c (do_warn_unused_parameter): Move here.
2577 * c-common.h (do_warn_unused_parameter): Declare.
2578
b155cfd9
MP
25792015-06-29 Marek Polacek <polacek@redhat.com>
2580
2581 PR c/66322
2582 * c-common.c (check_case_bounds): Add bool * parameter. Set
2583 OUTSIDE_RANGE_P.
2584 (c_add_case_label): Add bool * parameter. Pass it down to
2585 check_case_bounds.
2586 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
2587 warning here.
2588 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
2589 declarations.
2590
31521951
MP
25912015-06-27 Marek Polacek <polacek@redhat.com>
2592
2593 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
2594 or VECTOR_INTEGER_TYPE_P throughout.
2595 * c-gimplify.c: Likewise.
2596
22d03525
MP
25972015-06-26 Marek Polacek <polacek@redhat.com>
2598
2599 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
2600 * c-common.c (c_fully_fold_internal): Likewise.
2601 (c_alignof_expr): Likewise.
2602 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
2603 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
b1726d6c 2604 * cilk.c (create_parm_list): Likewise.
22d03525 2605
af05e6e5
MP
26062015-06-26 Marek Polacek <polacek@redhat.com>
2607
2608 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
2609
f0889939
AM
26102015-06-25 Andrew MacLeod <amacleod@redhat.com>
2611
2612 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
2613 * c-gimplify.c: Likewise.
2614 * c-pragma.c: Likewise.
2615 * c-ubsan.c: Likewise.
2616 * cilk.c: Likewise.
2617
ca752f39
RS
26182015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2619
2620 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
2621 ggc_hasher.
2622
16a16ec7
AM
26232015-06-25 Andrew MacLeod <amacleod@redhat.com>
2624
2625 * cilk.c: Move calls.h after tm.h in the include chain.
2626
0ae9bd27
MP
26272015-06-25 Marek Polacek <polacek@redhat.com>
2628
2629 * array-notation-common.c: Use VAR_P throughout.
2630 * c-ada-spec.c: Likewise.
2631 * c-common.c: Likewise.
2632 * c-format.c: Likewise.
2633 * c-gimplify.c: Likewise.
2634 * c-omp.c: Likewise.
2635 * c-pragma.c: Likewise.
2636 * c-pretty-print.c: Likewise.
2637 * cilk.c: Likewise.
2638
62f9079a
MP
26392015-06-25 Marek Polacek <polacek@redhat.com>
2640
2641 * cilk.c (extract_free_variables): Use is_global_var.
2642
0fa16060
RS
26432015-06-23 Richard Sandiford <richard.sandiford@arm.com>
2644
2645 * c-common.c: Don't include target-def.h.
2646
a68ae2e1
MP
26472015-06-23 Marek Polacek <polacek@redhat.com>
2648
2649 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
2650 when comparing INTEGER_CSTs.
2651
c6a2f2d9
PMR
26522015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
2653
2654 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
2655 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
2656 (dump_ada_template): Skip partially specialized types.
2657
6b4db501
MM
26582015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
2659
2660 * c-common.c (scalar_to_vector): Use std::swap instead of manually
2661 swapping.
2662
abb226c9
AM
26632015-06-17 Andrew MacLeod <amacleod@redhat.com>
2664
2665 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
2666 * c-ada-spec.c: Likewise.
2667 * c-cilkplus.c: Likewise.
2668 * c-common.c: Likewise.
2669 * c-common.h: Likewise.
2670 * c-cppbuiltin.c: Likewise.
2671 * c-dump.c: Likewise.
2672 * c-format.c: Likewise.
2673 * c-gimplify.c: Likewise.
2674 * c-indentation.c: Likewise.
2675 * c-lex.c: Likewise.
2676 * c-omp.c: Likewise.
2677 * c-opts.c: Likewise.
2678 * c-pch.c: Likewise.
2679 * c-ppoutput.c: Likewise.
2680 * c-pragma.c: Likewise.
2681 * c-pretty-print.c: Likewise.
2682 * c-semantics.c: Likewise.
2683 * c-ubsan.c: Likewise.
2684 * cilk.c: Likewise.
2685 * stub-objc.c: Likewise.
2686
076fecad
PP
26872015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
2688
2689 PR c++/65168
2690 * c-common.c (c_common_truthvalue_conversion): Warn when
2691 converting an address of a reference to a truth value.
2692
13fdf2e2
AM
26932015-06-08 Andrew MacLeod <amacleod@redhat.com>
2694
2695 * array-notation-common.c : Adjust include files.
2696 * c-ada-spec.c : Likewise.
2697 * c-cilkplus.c : Likewise.
2698 * c-common.c : Likewise.
2699 * c-common.h : Likewise.
2700 * c-cppbuiltin.c : Likewise.
2701 * c-dump.c : Likewise.
2702 * c-format.c : Likewise.
2703 * c-gimplify.c : Likewise.
2704 * c-indentation.c : Likewise.
2705 * c-lex.c : Likewise.
2706 * c-omp.c : Likewise.
2707 * c-opts.c : Likewise.
2708 * c-pch.c : Likewise.
2709 * c-ppoutput.c : Likewise.
2710 * c-pragma.c : Likewise.
2711 * c-pretty-print.c : Likewise.
2712 * c-semantics.c : Likewise.
2713 * c-ubsan.c : Likewise.
2714 * cilk.c : Likewise.
2715 * stub-objc.c : Likewise.
2716
a1661b90
MP
27172015-06-08 Marek Polacek <polacek@redhat.com>
2718
2719 PR c/66415
2720 * c-format.c (location_from_offset): Return LOC if LINE is null.
2721
d7438551
AH
27222015-06-05 Aldy Hernandez <aldyh@redhat.com>
2723
2724 * c-common.h (c_parse_final_cleanups): New prototype.
2725 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
2726
b3d5bc62
JJ
27272015-06-04 Sriraman Tallam <tmsriram@google.com>
2728
2729 * c-common.c (noplt): New attribute.
2730 (handle_noplt_attribute): New handler.
2731
ecb9f223
AM
27322015-06-04 Andrew MacLeod <amacleod@redhat.com>
2733
2734 * array-notation-common.c: Adjust includes for restructured coretypes.h.
2735 * c-ada-spec.c: Likewise.
2736 * c-cilkplus.c: Likewise.
2737 * c-common.c: Likewise.
2738 * c-common.h: Likewise.
2739 * c-cppbuiltin.c: Likewise.
2740 * c-dump.c: Likewise.
2741 * c-format.c: Likewise.
2742 * c-gimplify.c: Likewise.
2743 * c-indentation.c: Likewise.
2744 * c-lex.c: Likewise.
2745 * c-omp.c: Likewise.
2746 * c-opts.c: Likewise.
2747 * c-pch.c: Likewise.
2748 * c-ppoutput.c: Likewise.
2749 * c-pragma.c: Likewise.
2750 * c-pretty-print.c: Likewise.
2751 * c-semantics.c: Likewise.
2752 * c-ubsan.c: Likewise.
2753 * cilk.c: Likewise.
2754 * stub-objc.c: Likewise.
2755
6ac48155
DM
27562015-06-02 David Malcolm <dmalcolm@redhat.com>
2757
2758 PR c/66220:
2759 * c-indentation.c (should_warn_for_misleading_indentation): Use
2760 expand_location rather than expand_location_to_spelling_point.
2761 Don't warn if the guarding statement is more indented than the
2762 next/body stmts.
2763
773ce42e
DM
27642015-06-02 David Malcolm <dmalcolm@redhat.com>
2765
2766 * c-indentation.c (warn_for_misleading_indentation): Bail out
2767 immediately if -Wmisleading-indentation isn't enabled.
2768
4fef8379
ML
27692015-06-01 Martin Liska <mliska@suse.cz>
2770
2771 * c-format.c (check_format_arg):Use new type-based pool allocator.
2772 (check_format_info_main) Likewise.
2773
1edfb384
EB
27742015-05-31 Eric Botcazou <ebotcazou@adacore.com>
2775
2776 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
2777 (has_nontrivial_methods): Likewise.
2778
9677ef52
MP
27792015-05-25 Marek Polacek <polacek@redhat.com>
2780
2781 * c-ubsan.c (ubsan_instrument_shift): Use type0.
2782
fd5c817a
MP
27832015-05-22 Marek Polacek <polacek@redhat.com>
2784
2785 PR c/47043
2786 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
2787
a2f45fe6 27882015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
581edfa3
TS
2789
2790 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
2791 STACK_GROWS_DOWNWARD.
2792
a2f45fe6 27932015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
62f9f30b
TS
2794
2795 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
2796 STACK_GROWS_DOWNWARD rather than if it is defined.
2797
0fee2ac2 27982015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
b1726d6c 2799
0fee2ac2
MLI
2800 PR c/52952
2801 * c-format.c (location_column_from_byte_offset): New.
2802 (location_from_offset): New.
2803 (struct format_wanted_type): Add offset_loc field.
2804 (check_format_info): Move handling of location for extra arguments
2805 closer to the point of warning.
2806 (check_format_info_main): Pass the result of location_from_offset
2807 to warning_at.
2808 (format_type_warning): Pass the result of location_from_offset
2809 to warning_at.
2810
cf4ef6f7
MP
28112015-05-20 Marek Polacek <polacek@redhat.com>
2812
2813 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
2814
3a65ee74
MP
28152015-05-20 Marek Polacek <polacek@redhat.com>
2816
2817 * c-ada-spec.c (dump_sloc): Use DECL_P.
2818
21b634ae
MP
28192015-05-20 Marek Polacek <polacek@redhat.com>
2820
2821 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
2822 * c-common.c: Likewise.
2823
0e50b624
DM
28242015-05-19 David Malcolm <dmalcolm@redhat.com>
2825
2826 * c-common.h (fe_file_change): Strengthen param from
2827 const line_map * to const line_map_ordinary *.
2828 (pp_file_change): Likewise.
2829 * c-lex.c (fe_file_change): Likewise.
2830 (cb_define): Use linemap_check_ordinary when invoking
2831 SOURCE_LINE.
2832 (cb_undef): Likewise.
2833 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
2834 invoking cb_file_change.
2835 (c_finish_options): Likewise.
2836 (push_command_line_include): Likewise.
2837 (cb_file_change): Strengthen param "new_map" from
2838 const line_map * to const line_map_ordinary *.
2839 * c-ppoutput.c (cb_define): Likewise for local "map".
2840 (pp_file_change): Likewise for param "map" and local "from".
2841
fab27f52
MM
28422015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
2843
2844 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
2845
2fe1d762
TV
28462015-05-18 Tom de Vries <tom@codesourcery.com>
2847
2848 * c-common.c (build_va_arg_1): New function.
2849 (build_va_arg): Add address operator to va_list operand if necessary.
2850
7a37fa90
MM
28512015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
2852
2853 PR c/48956
2854 * c-common.c (int_safely_convertible_to_real_p): Define.
2855 (unsafe_conversion_p): Check conversions involving complex types.
2856 (conversion_warning): Add new warning message for conversions which
2857 discard imaginary component.
2858 * c-common.h: (enum conversion_safety): Add new enumerator for such
2859 conversions.
2860
3aa3c9fc
MP
28612015-05-14 Marek Polacek <polacek@redhat.com>
2862
2863 PR c/66066
2864 PR c/66127
2865 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
2866 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
2867 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
2868 use it. If FOR_INT_CONST, require that all evaluated operands be
2869 INTEGER_CSTs.
2870
c3388e62
DM
28712015-05-12 David Malcolm <dmalcolm@redhat.com>
2872
2873 * c-common.h (warn_for_misleading_indentation): New prototype.
2874 * c-indentation.c: New file.
2875 * c.opt (Wmisleading-indentation): New option.
2876
c7b38fd5
TV
28772015-05-12 Tom de Vries <tom@codesourcery.com>
2878
2879 PR tree-optimization/66010
2880 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
2881
381bf11e
JM
28822015-05-09 Jason Merrill <jason@redhat.com>
2883
edff0c06
JM
2884 * c-opts.c (c_common_post_options): Also clear
2885 cpp_opts->cpp_warn_cxx11_compat.
2886
129211bc
JM
2887 * c-common.h (enum cxx_dialect): Add cxx_unset.
2888 * c-common.c (cxx_dialect): Initialize to cxx_unset.
2889 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
2890
381bf11e
JM
2891 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
2892 (std=gnu++0x): Mark as Undocumented.
2893 (std=gnu++1y): Add deprecated message.
2894
fe191308
JM
28952015-05-08 Jason Merrill <jason@redhat.com>
2896
765189ff
JM
2897 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
2898 * c-opts.c: Adjust.
2899
fe191308
JM
2900 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
2901
755e528f
MP
29022015-05-08 Marek Polacek <polacek@redhat.com>
2903
2904 PR c/64918
2905 * c.opt (Woverride-init-side-effects): New option.
2906
0173bd2a
MP
29072015-05-07 Marek Polacek <polacek@redhat.com>
2908
2909 PR c/65179
2910 * c-common.c (c_fully_fold_internal): Warn when left shifting a
2911 negative value.
2912 * c.opt (Wshift-negative-value): New option.
2913 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
2914 when -Wextra and C99/C++11 mode.
2915
e0f0d3b9
MP
29162015-05-07 Marek Polacek <polacek@redhat.com>
2917 Martin Uecker <uecker@eecs.berkeley.edu>
2918
2919 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
2920 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
2921
8243e2a9
JM
29222015-05-05 Jason Merrill <jason@redhat.com>
2923
2924 * c.opt (Wterminate): New.
2925
577cd070
MP
29262015-04-30 Marek Polacek <polacek@redhat.com>
2927
2928 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
2929 require that the non-constant be of a boolean type.
2930
0373796b
JT
29312015-04-29 Josh Triplett <josh@joshtriplett.org>
2932
e0f0d3b9
MP
2933 * c-common.c (handle_section_attribute): Refactor to reduce
2934 nesting and distinguish between error cases.
0373796b 2935
716c0ba6
MP
29362015-04-29 Marek Polacek <polacek@redhat.com>
2937
2938 PR c/64610
2939 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
2940 with 0/1.
2941
8848828b
JJ
29422015-04-29 Jakub Jelinek <jakub@redhat.com>
2943
2944 * c-common.h (omp_clause_mask): Unconditionally define as a class.
2945 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
2946 HOST_BITS_PER_WIDE_INT.
2947
ecd0e562
TV
29482015-04-28 Tom de Vries <tom@codesourcery.com>
2949
2950 PR tree-optimization/65887
2951 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
2952
2a877204 29532015-04-28 Eric Botcazou <ebotcazou@adacore.com>
e0f0d3b9 2954 Pierre-Marie de Rodat <derodat@adacore.com>
2a877204
EB
2955
2956 * c-ada-spec.c (in_function): Delete.
2957 (dump_generic_ada_node): Do not change in_function and remove the
2958 redundant code dealing with it.
2959 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
2960 (print_ada_methods): Output the static member functions in a nested
2961 package after the regular methods as well as associated renamings.
2962
4853031e
MP
29632015-04-24 Marek Polacek <polacek@redhat.com>
2964
2965 PR c/65830
2966 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
2967 and OPT_Wshift_count_overflow.
2968
8c2b7f79
MP
2969 PR c/63357
2970 * c-common.c (warn_logical_operator): Warn if the operands have the
2971 same expressions.
2972
b8787813
MP
29732015-04-24 Marek Polacek <polacek@redhat.com>
2974
2975 PR c/61534
2976 * c-common.c (warn_logical_operator): Bail if either operand comes
2977 from a macro expansion.
2978
8fba1830
BRF
29792015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2980
2981 PR target/55143
2982 * c-common.c (c_default_pointer_mode): Add definition.
2983 * c-common.h (c_default_pointer_mode): Add declaration.
2984
17958621
JJ
29852015-03-11 Jakub Jelinek <jakub@redhat.com>
2986
2987 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
2988 on record_builtin_type argument.
2989
7ccb1a11
JJ
29902015-03-10 Jakub Jelinek <jakub@redhat.com>
2991
2992 PR c/65120
2993 * c-common.c (warn_logical_not_parentheses): Don't warn for
2994 !x == 0 or !x != 0.
2995
04fd785e
MP
29962015-03-07 Marek Polacek <polacek@redhat.com>
2997
2998 PR sanitizer/65280
2999 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
3000 before trying to figure out whether we have a flexible array member.
3001
a4e26206 30022015-03-06 Eric Botcazou <ebotcazou@adacore.com>
8e745a17 3003 Jonathan Wakely <jwakely.gcc@gmail.com>
a4e26206
EB
3004
3005 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
3006
0d2489f4
EB
30072015-03-05 Eric Botcazou <ebotcazou@adacore.com>
3008
3009 PR ada/65319
3010 * c-ada-spec.c (print_destructor): Remove obsolete code.
3011
83ed54d7
EB
30122015-03-01 Eric Botcazou <ebotcazou@adacore.com>
3013
3014 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
3015 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
3016 DECL_TEMPLATE_RESULT emulations.
3017 (dump_ada_template)): Add guard for TYPE_METHODS.
3018
7631f0e2
MP
30192015-02-27 Marek Polacek <polacek@redhat.com>
3020
3021 PR c/65040
3022 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
3023
d1783ae5
KT
30242015-02-27 Kai Tietz <ktietz@redhat.com>
3025
3026 PR c/35330
3027 * c-pragma.c (handle_pragma_weak): Do not try to create
3028 weak/alias of declarations not being function, or variable
3029 declarations.
3030
56a9f6bc
TS
30312015-02-24 Thomas Schwinge <thomas@codesourcery.com>
3032
3033 PR libgomp/64625
3034 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
3035 Remove macros.
3036 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
3037
3d5cb23d
MP
30382015-02-16 Marek Polacek <polacek@redhat.com>
3039
3040 PR c/65066
3041 * c-format.c (check_format_types): Handle null param.
3042
fa008882
MP
30432015-02-13 Marek Polacek <polacek@redhat.com>
3044
3045 PR c/65040
3046 * c-format.c (check_format_types): Don't warn about different
3047 signedness if the original value is in the range of WANTED_TYPE.
3048
785f21af
JM
30492015-02-12 Jason Merrill <jason@redhat.com>
3050
3051 PR c++/64956
3052 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
3053 to the current highest version.
3054 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
3055
4886ec8e
JJ
30562015-02-04 Jakub Jelinek <jakub@redhat.com>
3057
3058 PR c/64824
3059 PR c/64868
3060 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
3061 instead of RDIV_EXPR. Use build_binary_op instead of
3062 build2_loc.
3063
40fecdd6
JM
30642015-01-30 Joseph Myers <joseph@codesourcery.com>
3065
3066 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
3067 to pass input_location as first argument.
3068
a0c88d06
TV
30692015-01-23 Tom de Vries <tom@codesourcery.com>
3070
3071 PR libgomp/64672
3072 * c.opt (fopenacc): Mark as LTO option.
3073
1506ae0e
TV
30742015-01-23 Tom de Vries <tom@codesourcery.com>
3075
3076 PR libgomp/64707
3077 * c.opt (fopenmp): Mark as LTO option.
3078
31be63ab
JJ
30792015-01-21 Jakub Jelinek <jakub@redhat.com>
3080
3081 PR c/63307
b1726d6c 3082 * cilk.c (fill_decls_vec): Only put decls into vector v.
31be63ab
JJ
3083 (compare_decls): Fix up formatting.
3084
30852015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
3086
3087 PR c/63307
3088 * cilk.c: Include vec.h.
3089 (struct cilk_decls): New structure.
3090 (wrapper_parm_cb): Split this function to...
3091 (fill_decls_vec): ...this...
3092 (create_parm_list): ...and this.
3093 (compare_decls): New function.
3094 (for_local_cb): Remove.
3095 (wrapper_local_cb): Ditto.
3096 (build_wrapper_type): For now first traverse and fill vector of
3097 declarations then sort it and then deal with sorted vector.
3098 (cilk_outline): Ditto.
3099 (declare_one_free_variable): Ditto.
3100
6875457f
JM
31012015-01-21 Jason Merrill <jason@redhat.com>
3102
3103 PR c++/64629
3104 * c-format.c (check_format_arg): Call decl_constant_value.
3105
185c9e56
ML
31062015-01-19 Martin Liska <mliska@suse.cz>
3107
3108 * c-common.c (handle_noicf_attribute): New function.
3109
41dbbb37
TS
31102015-01-15 Thomas Schwinge <thomas@codesourcery.com>
3111 Bernd Schmidt <bernds@codesourcery.com>
3112 James Norris <jnorris@codesourcery.com>
3113 Cesar Philippidis <cesar@codesourcery.com>
3114 Ilmir Usmanov <i.usmanov@samsung.com>
3115 Jakub Jelinek <jakub@redhat.com>
3116
3117 * c.opt (fopenacc): New option.
3118 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
3119 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
3120 New macros.
3121 * c-common.h (c_finish_oacc_wait): New prototype.
3122 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
3123 (c_finish_oacc_wait): New function.
3124 * c-pragma.c (oacc_pragmas): New variable.
3125 (c_pp_lookup_pragma, init_pragma): Handle it.
3126 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
3127 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
3128 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
3129 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
3130 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
3131 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
3132 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
3133 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
3134 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
3135 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
3136 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
3137 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
3138 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
3139 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
3140 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
3141 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
3142 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
3143 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
3144 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
3145 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
3146 PRAGMA_OACC_CLAUSE_WORKER.
3147
3f8257db 31482015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
5434dc07
MD
3149
3150 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
3151 for the new option fstack-protector_explicit.
3152 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
3153 (handle_stack_protect_attribute): New function.
3154
3f8257db 31552015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
de1b5c17
MU
3156
3157 * c.opt: New option -Warray-bounds=.
3158
adfac8df
JJ
31592015-01-09 Michael Collison <michael.collison@linaro.org>
3160
3161 * array-notation-common.c: Include hash-set.h, machmode.h,
3162 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
3163 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
3164 * c-ada-spec.c: Ditto.
3165 * c-cilkplus.c: Ditto.
3166 * c-common.c: Include input.h due to flattening of tree.h.
3167 Define macro GCC_C_COMMON_C.
3168 * c-common.h: Flatten tree.h header files into c-common.h.
3169 Remove include of tree-core.h.
3170 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
3171 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
3172 fold-const.h, wide-int.h, and inchash.h due to
3173 flattening of tree.h.
3174 * c-dump.c: Ditto.
3175 * c-format.c: Flatten tree.h header files into c-common.h.
3176 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
3177 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
3178 fold-const.h, wide-int.h, and inchash.h due to
3179 flattening of tree.h.
3180 * c-dump.c: Include hash-set.h, machmode.h,
3181 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
3182 fold-const.h, wide-int.h, and inchash.h due to
3183 flattening of tree.h.
3184 * c-format.c: Include hash-set.h, machmode.h,
3185 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
3186 fold-const.h, wide-int.h, inchash.h and real.h due to
3187 flattening of tree.h.
3188 * c-gimplify.c: Include hash-set.h, machmode.h,
3189 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
3190 fold-const.h, wide-int.h, and inchash.h due to
3191 flattening of tree.h.
3192 * cilk.c: Ditto.
3193 * c-lex.c: Ditto.
3194 * c-omp.c: Ditto.
3195 * c-opts.c: Ditto.
3196 * c-pch.c: Ditto.
3197 * c-ppoutput.c: Ditto.
3198 * c-pragma.c: Ditto.
3199 * c-pretty-print.c: Ditto.
3200 * c-semantics.c: Ditto.
3201 * c-ubsan.c: Ditto.
3202 * stub-objc.c: Ditto.
3203
f5481fc4
JM
32042015-01-08 Jason Merrill <jason@redhat.com>
3205
3206 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
3207 do_ubsan_in_current_function.
3208 (ubsan_maybe_instrument_reference_or_call): Likewise.
3209 * c-ubsan.h: Declare it.
3210
de35aa66
MS
32112015-01-08 Mike Stump <mikestump@comcast.net>
3212
3213 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
3214
4a9a42ab
MP
32152015-01-07 Marek Polacek <polacek@redhat.com>
3216
3217 PR c/64440
3218 * c-common.c (c_fully_fold_internal): Warn for division and modulo
3219 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
3220
2f42e5de
TS
32212015-01-05 Trevor Saunders <tsaunders@mozilla.com>
3222
3223 PR c++/31397
3224 * c.opt (Wsuggest-override): New option.
3225
5624e564
JJ
32262015-01-05 Jakub Jelinek <jakub@redhat.com>
3227
3228 Update copyright years.
3229
5bd012f8
MP
32302015-01-05 Marek Polacek <polacek@redhat.com>
3231
3232 PR c/64423
3233 * c-common.c (warn_array_subscript_with_type_char): Add location_t
3234 parameter. Use it.
3235 * c-common.h (warn_array_subscript_with_type_char): Update
3236 declaration.
3237
a7fa8d18
ESR
32382014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
3239
3240 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
3241 Control macro with flag_sized_deallocation.
3242
3f8257db 32432014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
768952be
MU
3244
3245 * c.opt (Wdiscarded-array-qualifiers): New option.
3246
1f8d3e84
JJ
32472014-12-19 Jakub Jelinek <jakub@redhat.com>
3248
3249 PR preprocessor/63831
3250 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
3251 and __has_cpp_attribute here.
3252 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
3253 c_common_has_attribute.
3254 * c-common.h (c_common_has_attribute): New prototype.
3255 * c-lex.c (init_c_lex): Set cb->has_attribute to
3256 c_common_has_attribute instead of cb_has_attribute.
3257 (get_token_no_padding): New function.
3258 (cb_has_attribute): Renamed to ...
3259 (c_common_has_attribute): ... this. No longer static. Use
3260 get_token_no_padding, require ()s, don't build TREE_LIST
3261 unnecessarily, fix up formatting, adjust diagnostics, call
3262 init_attributes.
3263
20b06add
JM
32642014-12-15 Jason Merrill <jason@redhat.com>
3265
3266 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
3267 (-Wsized-deallocation): New.
3268 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
3269 to on in C++14 and up.
3270
94a073b2
JM
32712014-12-11 Jason Merrill <jason@redhat.com>
3272
acaa5911
JM
3273 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
3274
94a073b2
JM
3275 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
3276 we aren't complaining about VLAs.
3277
7fb66c15
MP
32782014-12-06 Marek Polacek <polacek@redhat.com>
3279
3280 PR tree-optimization/64183
3281 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
3282 shift-expression if it is integer_type_node. Use types_compatible_p.
3283
b731b390
JJ
32842014-11-29 Jakub Jelinek <jakub@redhat.com>
3285
3286 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
3287 last argument from create_tmp_var_raw and create_tmp_var calls.
3288 * cilk.c (gimplify_cilk_spawn): Likewise.
3289 * c-omp.c (c_finish_omp_atomic): Likewise.
3290
6a4da643
MP
32912014-11-28 Marek Polacek <polacek@redhat.com>
3292
3293 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
3294 instead of unsigned_type_node.
3295
541e35a6
MP
32962014-11-28 Marek Polacek <polacek@redhat.com>
3297
3298 PR c/63862
3299 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
3300 to op1_utype.
3301 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
3302 expression to unsigned_type_node.
3303
dcc97066
MW
33042014-11-20 Mark Wielaard <mjw@redhat.com>
3305
3306 PR debug/38757
3307 * c-opts.c (set_std_c89): Set lang_hooks.name.
3308 (set_std_c99): Likewise.
3309 (set_std_c11): Likewise.
3310 (set_std_cxx98): Likewise.
3311 (set_std_cxx11): Likewise.
3312 (set_std_cxx14): Likewise.
3313 (set_std_cxx1z): Likewise.
3314
aa7da51a
JJ
33152014-11-21 Jakub Jelinek <jakub@redhat.com>
3316
3317 PR target/63764
3318 * c-common.h (convert_vector_to_pointer_for_subscript): Change
3319 return type to bool.
009a3480 3320 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
3321 (convert_vector_to_pointer_for_subscript): Change return type to
3322 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
3323 and copy it into a TARGET_EXPR and use that instead of *vecp
3324 directly.
3325
538dd0b7
DM
33262014-11-19 David Malcolm <dmalcolm@redhat.com>
3327
3328 Merger of git branch "gimple-classes-v2-option-3".
3329 * ChangeLog.gimple-classes: New.
3330 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
3331 from being just a vec<gimple> to a vec<gbind *>.
3332
c39a5e99
JJ
33332014-11-18 Jakub Jelinek <jakub@redhat.com>
3334
3335 PR sanitizer/63813
3336 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
3337 argument to ptype, set type to TREE_TYPE (ptype). Don't call
3338 get_pointer_alignment for non-pointers. Use ptype, or if it is
3339 reference type, corresponding pointer type, as type of kind
3340 argument.
3341 (ubsan_maybe_instrument_reference,
3342 ubsan_maybe_instrument_member_call): Adjust callers.
3343
8537a4a9
MP
33442014-11-15 Marek Polacek <polacek@redhat.com>
3345
3346 PR middle-end/63884
3347 * array-notation-common.c (is_sec_implicit_index_fn): Return false
3348 for NULL fndecl.
3349 (extract_array_notation_exprs): Return for NULL node.
3350
2079956a
JM
33512014-11-12 Joseph Myers <joseph@codesourcery.com>
3352
3353 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
3354 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
3355
1304953e
JJ
33562014-11-12 Jakub Jelinek <jakub@redhat.com>
3357
3358 PR c/59708
3359 * c-common.c (check_builtin_function_arguments): Handle
3360 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
3361
e5e44252
AK
33622014-11-10 Andi Kleen <ak@linux.intel.com>
3363
3364 PR c/60804
3365 * c-common.h (check_no_cilk): Declare.
3366 * cilk.c (get_error_location): New function.
3367 (check_no_cilk): Dito.
3368
e64b984d
AK
33692014-11-10 Andi Kleen <ak@linux.intel.com>
3370
3371 * cilk.c (recognize_spawn): Use expression location
3372 for error message.
3373
13c21655
PC
33742014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
3375
3376 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
3377
42fd12b1
ESR
33782014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
3379
3380 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
3381 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
3382 (__cpp_range_based_for, __cpp_initializer_lists,
3383 __cpp_delegating_constructors, __cpp_nsdmi,
3384 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
3385 for C++11; (__cpp_attribute_deprecated): Remove in favor of
3386 __has_cpp_attribute.
3387 * c-lex.c (cb_has_attribute): New callback CPP function;
3388 (init_c_lex): Set has_attribute callback.
3389
6f450181
RB
33902014-11-04 Richard Biener <rguenther@suse.de>
3391
3392 * c-common.c (shorten_compare): Do not shorten mixed
3393 DFP and non-DFP compares.
3394
26f0e1d6
ESR
33952014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
3396
3397 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
3398 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
3399 Commentary and rearrangement of tests.
3400 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
3401 Commentary and rearrangement of tests.
3402 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
3403 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
3404
ef4bddc2
RS
34052014-10-29 Richard Sandiford <richard.sandiford@arm.com>
3406
3407 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
3408 enum from machine_mode.
3409
c582198b
AM
34102014-10-28 Andrew MacLeod <amacleod@redhat.com>
3411
adfac8df
JJ
3412 * c-common.c: Adjust include files.
3413 * c-gimplify.c: Ditto.
3414 * cilk.c: Ditto.
3415 * c-pragma.c: Ditto.
3416 * c-ubsan.c: Ditto.
c582198b 3417
60393bbc
AM
34182014-10-27 Andrew MacLeod <amacleod@redhat.com>
3419
3420 * c-gimplify.c: Adjust include files.
3421
d723bb7c
MLI
34222014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
3423
3424 PR c++/53061
3425 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
3426 c_common_initialize_diagnostics.
3427 * c-common.h: Likewise.
3428
90f3520e
MP
34292014-10-24 Marek Polacek <polacek@redhat.com>
3430
3431 PR c/56980
3432 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
3433 print "struct"/"union"/"enum" for typedefed names.
3434
59d7607a
MP
34352014-10-23 Marek Polacek <polacek@redhat.com>
3436
3437 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
3438 in unsigned type.
3439
d95a2703
JJ
34402014-10-22 Jakub Jelinek <jakub@redhat.com>
3441 Yury Gribov <y.gribov@samsung.com>
3442
3443 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
3444 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
3445 instead of flag_sanitize_recover as bool flag.
3446
8e6ef852
KY
34472014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
3448
3449 * cilk.c: Revert previous change.
3450
948cf550
IZ
34512014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
3452
3453 PR c/63307
3454 * cilk.c: Include vec.h.
3455 (struct cilk_decls): New structure.
3456 (wrapper_parm_cb): Split this function to...
3457 (fill_decls_vec): ...this...
3458 (create_parm_list): ...and this.
3459 (compare_decls): New function.
3460 (for_local_cb): Remove.
3461 (wrapper_local_cb): Ditto.
3462 (build_wrapper_type): For now first traverse and fill vector of
3463 declarations then sort it and then deal with sorted vector.
3464 (cilk_outline): Ditto.
3465 (declare_one_free_variable): Ditto.
3466
92574c7c
MP
34672014-10-17 Marek Polacek <polacek@redhat.com>
3468
3469 * c-opts.c (c_common_post_options): Set warn_implicit_int.
3470 * c.opt (Wimplicit-int): Initialize to -1.
3471
83685514
AM
34722014-10-16 Andrew MacLeod <amacleod@redhat.com>
3473
3474 * c-pragma.c: Adjust include files.
3475 * c-semantics.c: Likewise.
3476
5b8300ea
DD
34772014-10-16 DJ Delorie <dj@redhat.com>
3478
3479 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
3480 multiples of bytes.
3481
5f83e90b
JM
34822014-10-14 Jason Merrill <jason@redhat.com>
3483
3484 PR c++/63455
3485 * c-common.h (CPP_PREPARSED_EXPR): New.
3486 (N_CP_TTYPES): Adjust.
3487
d73326ca
MP
34882014-10-15 Marek Polacek <polacek@redhat.com>
3489
3490 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
3491
78a7c317
DD
34922014-10-14 DJ Delorie <dj@redhat.com>
3493
3494 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
3495 types, not just __int128.
3496 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
3497 types, not just __int128.
3498 (cpp_atomic_builtins): Round pointer sizes up.
3499 (type_suffix): Use type precision, not specific types.
3500 * c-common.c (c_common_reswords): Remove __int128 special case.
3501 (c_common_type_for_size): Check for all __intN types, not just
3502 __int128.
3503 (c_common_type_for_mode): Likewise.
3504 (c_common_signed_or_unsigned_type): Likewise.
3505 (c_build_bitfield_integer_type): Likewise.
3506 (c_common_nodes_and_builtins): Likewise.
3507 (keyword_begins_type_specifier): Likewise.
3508 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
3509 __intN variants.
3510
2a22f99c
TS
35112014-10-12 Trevor Saunders <tsaunders@mozilla.com>
3512
3513 * c-common.c: Use hash_table instead of hashtab.
3514
2a8ef767
ESR
35152014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
3516
adfac8df 3517 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
3518 C++11 section.
3519
3c9aabbd
MG
35202014-10-03 Marc Glisse <marc.glisse@inria.fr>
3521
3522 PR c++/54427
3523 PR c++/57198
3524 PR c++/58845
3525 * c-common.c (warn_logical_operator): Punt for vectors.
3526
a15f7cb8
ESR
35272014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
3528
3529 Implement SD-6: SG10 Feature Test Recommendations
3530 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
3531 macros and the __has_header macro.
3532
8d0cf15e
JM
35332014-09-30 Jason Merrill <jason@redhat.com>
3534
dd5d5481
JM
3535 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
3536 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
3537 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
3538
b752325e
JM
3539 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
3540 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
3541
8d0cf15e
JM
3542 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
3543 * c-common.c (c_common_reswords): Remove __is_convertible_to.
3544
083e891e
MP
35452014-09-24 Marek Polacek <polacek@redhat.com>
3546
3547 PR c/61405
3548 PR c/53874
3549 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
3550
7861b648
AK
35512014-09-23 Andi Kleen <ak@linux.intel.com>
3552
3553 * c-common.c (handle_no_reorder_attribute): New function.
3554 (c_common_attribute_table): Add no_reorder attribute.
3555
9a79452d
JM
35562014-09-22 Joseph Myers <joseph@codesourcery.com>
3557
3558 * c-cppbuiltin.c (c_cpp_builtins): Define
3559 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
3560 modes.
3561
dd69f047
JM
35622014-09-18 Joseph Myers <joseph@codesourcery.com>
3563
3564 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
3565 for supported floating-point modes.
3566
737a4826
MLI
35672014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3568
3569 * c.opt (Wpsabi): Use LangEnabledBy.
3570 * c-opts.c (c_common_handle_option): Do not handle here.
3571
8cc4b7a2
JM
35722014-09-12 Joseph Myers <joseph@codesourcery.com>
3573
3574 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
3575 macros for floating-point modes.
3576
179b5a55
MG
35772014-09-11 Marc Glisse <marc.glisse@inria.fr>
3578
3579 PR target/58757
3580 * c-cppbuiltin.c (builtin_define_float_constants): Correct
3581 __*_DENORM_MIN__ without denormals.
3582
570a11fe
JJ
35832014-09-10 Jakub Jelinek <jakub@redhat.com>
3584
3585 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
3586 ubsan_instrument_vla, ubsan_instrument_return): Adjust
3587 ubsan_create_data callers.
3588 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
3589 index is constant or BIT_AND_EXPR with constant mask and is
3590 small enough for the bound.
3591 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
3592 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
3593
b559c810
MLI
35942014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3595
3596 * c.opt: Add CppReason to various flags.
3597 (Wdate-time): Re-sort.
3598 * c-common.c: Include c-common.h earlier.
3599 (struct reason_option_codes_t): Delete.
3600 (c_option_controlling_cpp_error): Prefix global type and struct
3601 with cpp_.
3602
1ef33fd4
MLI
36032014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3604
3605 * c.opt (Wnormalized): New.
3606 (Wnormalized=): Use Enum and Reject Negative.
3607 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
3608
66bb34c0
JM
36092014-09-08 Joseph Myers <joseph@codesourcery.com>
3610
3611 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
3612 digits of floating-point modes if -fbuilding-libgcc.
3613
53d68b9f
JM
36142014-09-05 Joseph Myers <joseph@codesourcery.com>
3615
3616 * c-cppbuiltin.c (c_cpp_builtins): Also define
3617 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
3618 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
3619 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
3620 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
3621 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
3622 __LIBGCC_STACK_GROWS_DOWNWARD__,
3623 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
3624 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
3625 __LIBGCC_DWARF_FRAME_REGISTERS__,
3626 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
3627 __LIBGCC_STACK_POINTER_REGNUM__ and
3628 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
3629 (builtin_define_with_value): Handle backslash-escaping in string
3630 macro values.
3631
f65586dc
RB
36322014-09-05 Richard Biener <rguenther@suse.de>
3633
3634 PR middle-end/63148
3635 * c-format.c (check_format_arg): Properly handle
3636 effectively signed POINTER_PLUS_EXPR offset.
3637
2b71f4a4
MLI
36382014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
3639
3640 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
3641 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
3642 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
3643 and Init.
3644 * c-opts.c (c_common_handle_option): Do not handle here.
3645 (sanitize_cpp_opts): Likewise.
3646 * c-common.c (struct reason_option_codes_t): Handle
3647 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
3648
d2e4feca
MP
36492014-09-03 Marek Polacek <polacek@redhat.com>
3650
3651 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
3652
9a771876
JJ
36532014-09-02 Jakub Jelinek <jakub@redhat.com>
3654 Balaji V. Iyer <balaji.v.iyer@intel.com>
3655 Igor Zamyatin <igor.zamyatin@intel.com>
3656
3657 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
3658 * c-common.c (c_common_reswords): Added _Cilk_for.
3659 * c-common.h (enum rid): Added RID_CILK_FOR.
3660 (cilk_for_number_of_iterations): Add declaration.
3661 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
3662 CILK_FOR.
3663 * c-pragma.c (init_pragma): Register "grainsize" pragma.
3664 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
3665
81b5d104
MLI
36662014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3667
3668 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
3669 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
3670 Wundef): Use CPP, Var and Init.
3671 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
3672
b753b37b
MLI
36732014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3674
3675 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
3676 * c-opts.c (c_common_handle_option): Do not handle here.
3677
028aee17
JM
36782014-08-25 Jason Merrill <jason@redhat.com>
3679
3680 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
3681 -std=c++14 and -std=gnu++14, rather than the reverse.
3682 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
3683 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
3684 * c-common.h (cxx_dialect): Remove cxx1y.
3685
e4276ba5
ESR
36862014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
3687
3688 * c-common.h (enum cxx_dialect): Add cxx14.
3689 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
3690 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
3691 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
3692
a545cacd
JM
36932014-08-22 Jason Merrill <jason@redhat.com>
3694
3695 * c.opt (std=gnu++17): Fix alias.
3696
59ea0364
MP
36972014-08-22 Marek Polacek <polacek@redhat.com>
3698
3699 PR c++/62199
3700 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
3701 check for vector types. Drop LHS argument.
3702 * c-common.h (warn_logical_not_parentheses): Adjust.
3703
596e808c
MLI
37042014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
3705
3706 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
3707 (Wmultichar): Likewise.
3708 (Wdate-time): Use C-family languages instead of Common. Use CPP
3709 and Var.
3710 * c-opts.c (c_common_handle_option): Do not handle the above
3711 options here.
3712 (sanitize_cpp_opts): Likewise.
3713
18767f65
MLI
37142014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
3715
3716 PR fortran/44054
3717 * c-opts.c: Include tree-diagnostics.h.
3718 (c_diagnostic_finalizer): New.
3719 (c_common_initialize_diagnostics): Use it.
3720
b4413594
MLI
37212014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3722
3723 PR preprocessor/51303
3724 * c-common.c (struct reason_option_codes_t option_codes):
3725 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
3726
43f9a13c
MLI
37272014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3728
3729 PR c/60975
3730 PR c/53063
3731 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
3732 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
3733 (c_common_post_options): Call init_global_opts_from_cpp.
3734 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
3735
04159acf
MP
37362014-08-19 Marek Polacek <polacek@redhat.com>
3737
3738 PR c++/62153
3739 * c-common.c (maybe_warn_bool_compare): New function.
3740 * c-common.h (maybe_warn_bool_compare): Declare.
3741 * c.opt (Wbool-compare): New option.
3742
35aff4fb
MP
37432014-08-19 Marek Polacek <polacek@redhat.com>
3744
3745 * c.opt (Wc99-c11-compat): New option.
3746
177cce46
MP
37472014-08-19 Marek Polacek <polacek@redhat.com>
3748
3749 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
3750 to warn_c90_c99_compat.
3751 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
3752 to -1.
3753
6ae9194f
MLI
37542014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
3755 Steven Bosscher <steven@gcc.gnu.org>
3756
3757 PR c/52952
3758 * c-format.c: Add extra_arg_loc and format_string_loc to struct
3759 format_check_results.
3760 (check_function_format): Use true and add comment for boolean
3761 argument.
3762 (finish_dollar_format_checking): Use explicit location when warning.
3763 (check_format_info): Likewise.
3764 (check_format_arg): Set extra_arg_loc and format_string_loc.
3765 (check_format_info_main): Use explicit location when warning.
3766 (check_format_types): Pass explicit location.
3767 (format_type_warning): Likewise.
3768
8e54f6d3
MLI
37692014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3770
3771 PR fortran/44054
3772 * c-format.c: Handle Fortran flags.
3773
cd4e76fc
IZ
37742014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
3775
3776 PR other/61962
3777 * array-notation-common.c (find_rank): Added handling for other
3778 types of references.
3779
f3bede71
MP
37802014-08-10 Marek Polacek <polacek@redhat.com>
3781
3782 PR c/51849
3783 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
3784 * c.opt (Wc90-c99-compat): Add option.
3785
9f25a338
TS
37862014-08-07 Trevor Saunders <tsaunders@mozilla.com>
3787
3788 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
3789
62e4eb35
MP
37902014-08-03 Marek Polacek <polacek@redhat.com>
3791
3792 * c-common.c (check_case_value): Add location_t parameter. Use it.
3793 (c_add_case_label): Pass loc to check_case_value.
3794
b787e7a2
TS
37952014-08-02 Trevor Saunders <tsaunders@mozilla.com>
3796
3797 * cilk.c: Use hash_map instead of pointer_map.
3798
6e2830c3
TS
37992014-08-02 Trevor Saunders <tsaunders@mozilla.com>
3800
3801 * c-gimplify.c: Use hash_set instead of pointer_set.
3802
a7ee52fb
IZ
38032014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
3804
3805 PR middle-end/61455
3806 * array-notation-common.c (extract_array_notation_exprs): Handling
3807 of DECL_EXPR added.
3808
944fa280
JJ
38092014-08-01 Jakub Jelinek <jakub@redhat.com>
3810
3811 * c-common.h (min_align_of_type): Removed prototype.
3812 * c-common.c (min_align_of_type): Removed.
3813 * c-ubsan.h (ubsan_maybe_instrument_reference,
3814 ubsan_maybe_instrument_member_call): New prototypes.
3815 * c-ubsan.c: Include stor-layout.h and builtins.h.
3816 (ubsan_maybe_instrument_reference_or_call,
3817 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
3818 functions.
3819
b4dfdc11
MG
38202014-07-31 Marc Glisse <marc.glisse@inria.fr>
3821
3822 PR c++/60517
3823 * c.opt (-Wreturn-local-addr): Move to common.opt.
3824
a41844e5
JM
38252014-07-30 Jason Merrill <jason@redhat.com>
3826
3827 PR c++/61659
3828 PR c++/61687
3829 Revert:
3830 * c.opt (-fuse-all-virtuals): New.
3831
976d5a22
TT
38322014-07-30 Tom Tromey <tromey@redhat.com>
3833
3834 PR c/59855
3835 * c.opt (Wdesignated-init): New option.
3836 * c-common.c (c_common_attribute_table): Add "designated_init".
3837 (handle_designated_init): New function.
3838
cdc94aca
MP
38392014-07-24 Marek Polacek <polacek@redhat.com>
3840
3841 PR c/57653
3842 * c-opts.c (c_finish_options): If -imacros is in effect, return.
3843
f41373b6
DS
38442014-07-16 Dodji Seketeli <dodji@redhat.com>
3845
3846 PR preprocessor/60723 - missing system-ness marks for macro tokens
3847 * c-ppoutput.c (struct print::prev_was_system_token): New data
3848 member.
3849 (init_pp_output): Initialize it.
3850 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
3851 (do_line_change): Return a flag saying if a line marker was
3852 emitted or not.
3853 (scan_translation_unit): Detect if the system-ness of the token we
3854 are about to emit is different from the one of the previously
3855 emitted token. If so, emit a line marker. Avoid emitting useless
3856 adjacent line markers. Avoid emitting line markers for tokens
3857 originating from the expansion of built-in macros.
3858 (scan_translation_unit_directives_only): Adjust.
3859
4d661eaa
MP
38602014-07-15 Marek Polacek <polacek@redhat.com>
3861
3862 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
3863 TYPE_MAX_VALUE is NULL.
3864
b108f48f
JJ
38652014-07-14 Jakub Jelinek <jakub@redhat.com>
3866
3867 PR middle-end/61294
3868 * c.opt (Wmemset-transposed-args): New warning.
3869
c0221884
JM
38702014-07-10 Jason Merrill <jason@redhat.com>
3871
3872 PR c++/61659
3873 PR c++/61687
3874 * c.opt (-fuse-all-virtuals): New.
3875
63dfbb95
RB
38762014-07-09 Richard Biener <rguenther@suse.de>
3877
3878 PR c-family/61741
3879 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
3880 using unsigned arithmetic if overflow does not wrap instead of
3881 if overflow is undefined.
3882
773ec47f
MP
38832014-07-06 Marek Polacek <polacek@redhat.com>
3884
3885 PR c/6940
3886 * c.opt (Wsizeof-array-argument): New option.
3887
00a7ba58
JJ
38882014-07-03 Jakub Jelinek <jakub@redhat.com>
3889
b1726d6c 3890 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
00a7ba58
JJ
3891 comments->count <= 1, as comments->entries might be NULL.
3892
52ec0ea3
MP
38932014-07-01 Marek Polacek <polacek@redhat.com>
3894
3895 * c.opt (Wint-conversion): New option.
3896
d5c3d343
MP
38972014-07-01 Marek Polacek <polacek@redhat.com>
3898
3899 PR c/58286
3900 * c.opt (Wincompatible-pointer-types): New option.
3901
6e7ceb17
PC
39022014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
3903
3904 PR c++/51400
3905 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
3906 Do not discard TYPE_QUALS of type.
3907
da73100b
JM
39082014-06-26 Jason Merrill <jason@redhat.com>
3909
3910 * c-common.h (enum cxx_dialect): Add cxx1z.
3911 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
3912 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
3913
08eedf75
TJ
39142014-06-26 Teresa Johnson <tejohnson@google.com>
3915
3916 * c-common.h (get_dump_info): Declare.
3917 * c-gimplify.c (c_genericize): Use saved dump files.
3918 * c-opts.c (c_common_parse_file): Begin and end dumps
3919 once around parsing invocation.
3920 (get_dump_info): New function.
3921
7b56b2f8
MP
39222014-06-23 Marek Polacek <polacek@redhat.com>
3923 Andrew MacLeod <amacleod@redhat.com>
3924
3925 PR c/61553
3926 * c-common.c (get_atomic_generic_size): Don't segfault if the
3927 type doesn't have a size.
3928
0e37a2f3
MP
39292014-06-20 Marek Polacek <polacek@redhat.com>
3930
3931 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
3932 (ubsan_walk_array_refs_r): New function.
3933 (c_genericize): Instrument array bounds.
3934 * c-ubsan.c: Include "internal-fn.h".
3935 (ubsan_instrument_division): Mark instrumented arrays as having
3936 side effects. Adjust ubsan_type_descriptor call.
3937 (ubsan_instrument_shift): Likewise.
3938 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
3939 (ubsan_instrument_bounds): New function.
3940 (ubsan_array_ref_instrumented_p): New function.
3941 (ubsan_maybe_instrument_array_ref): New function.
3942 * c-ubsan.h (ubsan_instrument_bounds): Declare.
3943 (ubsan_array_ref_instrumented_p): Declare.
3944 (ubsan_maybe_instrument_array_ref): Declare.
3945
39462014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
3947
3948 PR lto/61123
3949 * c.opt (fshort-enums): Add to LTO.
3950 * c.opt (fshort-wchar): Likewise.
3951
5c3d09f7
MP
39522014-06-16 Marek Polacek <polacek@redhat.com>
3953
3954 PR c/60439
3955 * c.opt (Wswitch-bool): Add Var.
3956
9cf32741
JJ
39572014-06-12 Jakub Jelinek <jakub@redhat.com>
3958
3959 PR middle-end/61486
3960 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
3961 #pragma omp target teams or
3962 #pragma omp {,target }teams distribute simd.
3963
62984918
JM
39642014-06-12 Jason Merrill <jason@redhat.com>
3965
3966 * c.opt (Wabi=, fabi-compat-version): New.
3967 * c-opts.c (c_common_handle_option): Handle -Wabi=.
3968 (c_common_post_options): Handle flag_abi_compat_version default.
3969 Disallow -fabi-compat-version=1.
3970 * c-common.h (abi_version_crosses): New.
3971
f961457f
JH
39722014-06-11 Jan Hubicka <hubicka@ucw.cz>
3973
adfac8df 3974 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
3975 section names that are no longer trees.
3976
92d28cbb
JJ
39772014-06-10 Jakub Jelinek <jakub@redhat.com>
3978
3979 PR fortran/60928
3980 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
3981 (omp_pragmas): ... back here.
3982
742938c9
MP
39832014-06-05 Marek Polacek <polacek@redhat.com>
3984
3985 PR c/49706
3986 * c-common.c (warn_logical_not_parentheses): New function.
3987 * c-common.h (warn_logical_not_parentheses): Declare.
3988 * c.opt (Wlogical-not-parentheses): New option.
3989
9d548dfb
MP
39902014-06-04 Marek Polacek <polacek@redhat.com>
3991
3992 PR c/30020
3993 * c-common.c (check_case_bounds): Add location parameter.
3994 Use it.
3995 (c_add_case_label): Pass loc to check_case_bounds.
3996
fedfecef
MP
39972014-06-03 Marek Polacek <polacek@redhat.com>
3998
3999 PR c/60439
4000 * c.opt (Wswitch-bool): New option.
4001
f6a7cffc
TS
40022014-05-22 Thomas Schwinge <thomas@codesourcery.com>
4003
040d18b6
TS
4004 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
4005 Remove prototypes.
4006 (record_types_used_by_current_var_decl): Move prototype to where
4007 it belongs.
4008
f6a7cffc
TS
4009 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
4010 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
4011 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
4012
632f2871
RS
40132014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
4014
4015 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
4016 * c-common.c (c_common_nodes_and_builtins): Don't initialize
4017 void_zero_node.
4018 * c-pretty-print.c (pp_c_void_constant): New function.
4019 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
4020 (c_pretty_printer::expression): Handle VOID_CST.
4021 * cilk.c (extract_free_variables): Likewise.
4022 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
4023 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
4024
766090c2
TS
40252014-05-17 Trevor Saunders <tsaunders@mozilla.com>
4026
4027 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
4028 * c-pragma.c (push_alignment): Adjust.
4029 (handle_pragma_push_options): Likewise.
4030
661a0813
MP
40312014-05-09 Marek Polacek <polacek@redhat.com>
4032
4033 PR c/50459
4034 * c-common.c (check_user_alignment): Return -1 if alignment is error
4035 node.
4036 (handle_aligned_attribute): Don't call default_conversion on
4037 FUNCTION_DECLs.
4038 (handle_vector_size_attribute): Likewise.
4039 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
4040 (handle_sentinel_attribute): Call default_conversion and allow even
4041 integral types as an argument.
4042
2793eeab
MP
40432014-05-08 Marek Polacek <polacek@redhat.com>
4044
4045 PR c/61053
4046 * c-common.c (min_align_of_type): New function factored out from...
4047 (c_sizeof_or_alignof_type): ...here.
4048 * c-common.h (min_align_of_type): Declare.
4049
f827930a
MP
40502014-05-08 Marek Polacek <polacek@redhat.com>
4051
4052 PR c/61077
4053 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
4054 parameter type of main.
4055
ca49b74e
DD
40562014-05-07 DJ Delorie <dj@redhat.com>
4057
4058 * c-cppbuiltin.c (print_bits_of_hex): New.
4059 (builtin_define_type_minmax): Print values using hex so as not to
4060 require a pre-computed list of string values.
4061
1d60af08
KZ
40622014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
4063 Mike Stump <mikestump@comcast.net>
4064 Richard Sandiford <rdsandiford@googlemail.com>
4065
4066 * c-ada-spec.c: Include wide-int.h.
4067 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
4068 (dump_generic_ada_node): Use wide-int interfaces.
4069 * c-common.c: Include wide-int-print.h.
4070 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
4071 (pointer_int_sum): Use wide-int interfaces.
4072 (c_common_nodes_and_builtins): Use make_int_cst.
4073 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
4074 (handle_alloc_size_attribute): Use wide-int interfaces.
4075 (get_nonnull_operand): Likewise.
4076 * c-format.c (get_constant): Use tree_fits_uhwi_p.
4077 * c-lex.c: Include wide-int.h.
4078 (narrowest_unsigned_type): Take a widest_int rather than two
4079 HOST_WIDE_INTs.
4080 (narrowest_signed_type): Likewise.
4081 (interpret_integer): Update accordingly. Use wide-int interfaces.
4082 (lex_charconst): Use wide-int interfaces.
4083 * c-pretty-print.c: Include wide-int.h.
4084 (pp_c_integer_constant): Use wide-int interfaces.
4085 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
4086 INT_CST_LT_UNSIGNED.
4087
b15458be
RB
40882014-05-06 Richard Biener <rguenther@suse.de>
4089
4090 * c-opts.c (c_common_post_options): For -freestanding,
4091 -fno-hosted and -fno-builtin disable pattern recognition
4092 if not enabled explicitely.
4093
6577374e
MP
40942014-05-02 Marek Polacek <polacek@redhat.com>
4095
4096 * c.opt (Wsizeof-pointer-memaccess): Describe option.
4097
d00887e8
MP
40982014-05-01 Marek Polacek <polacek@redhat.com>
4099
4100 PR c/43245
4101 * c.opt (Wdiscarded-qualifiers): Add.
4102
f8ed5150
MP
41032014-04-30 Marek Polacek <polacek@redhat.com>
4104
4105 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
4106 INT_MIN / -1 sanitization only for integer types.
4107
45484dcf
MP
41082014-04-25 Marek Polacek <polacek@redhat.com>
4109
4110 PR c/18079
4111 * c-common.c (handle_noinline_attribute): Warn if the attribute
4112 conflicts with always_inline attribute.
4113 (handle_always_inline_attribute): Warn if the attribute conflicts
4114 with noinline attribute.
4115
38e514c0
MP
41162014-04-25 Marek Polacek <polacek@redhat.com>
4117
4118 PR c/60156
4119 * c-common.c (check_main_parameter_types): Warn about variadic main.
4120
44875f92
MS
41212014-04-24 Mike Stump <mikestump@comcast.net>
4122
4123 * c.opt (Wshadow-ivar): Default to on.
4124
dcaaa5a0
DP
41252014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
4126
4127 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
4128
c07d7c02
MP
41292014-04-23 Marek Polacek <polacek@redhat.com>
4130
4131 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
4132
1c33c9b7
JJ
41332014-04-22 Jakub Jelinek <jakub@redhat.com>
4134
4135 PR sanitizer/60275
4136 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
4137 if flag_sanitize_undefined_trap_on_error.
4138 (ubsan_instrument_division, ubsan_instrument_shift,
4139 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
4140 if !flag_sanitize_recover.
4141
793c625f
MG
41422014-04-22 Marc Glisse <marc.glisse@inria.fr>
4143
4144 PR libstdc++/43622
4145 * c-common.c (registered_builtin_types): Make non-static.
4146 * c-common.h (registered_builtin_types): Declare.
4147
b0f1bf36
RB
41482014-04-14 Richard Biener <rguenther@suse.de>
4149 Marc Glisse <marc.glisse@inria.fr>
4150
4151 PR c/60819
4152 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
4153 apply may-alias the scalar pointer type when applicable.
4154
3b07fa4a
IZ
41552014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
4156
4157 PR middle-end/60467
4158 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
4159 as possible argument for Cilk_spawn.
4160
cbbd2b1c
TB
41612014-04-11 Tobias Burnus <burnus@net-b.de>
4162
4163 PR c/60194
4164 * c.opt (Wformat-signedness): Add
4165 * c-format.c(check_format_types): Use it.
4166
6415bd5d
JM
41672014-04-11 Jason Merrill <jason@redhat.com>
4168
4169 PR c++/57926
4170 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
4171 default_conversion for an array argument.
4172
6525783a
MP
41732014-04-08 Marek Polacek <polacek@redhat.com>
4174
4175 PR sanitizer/60745
4176 * c-ubsan.c: Include asan.h.
4177 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
4178
880a467b
NS
41792014-04-03 Nathan Sidwell <nathan@codesourcery.com>
4180
4181 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
4182
7b59ff2d
MP
41832014-04-02 Marek Polacek <polacek@redhat.com>
4184
4185 * c-common.h (c_expand_expr): Remove declaration.
4186
8edbfaa6
JJ
41872014-03-28 Jakub Jelinek <jakub@redhat.com>
4188
4189 PR c++/60689
4190 * c-common.c (add_atomic_size_parameter): When creating new
4191 params vector, push the size argument first.
4192
07d72e1d
JJ
41932014-03-26 Jakub Jelinek <jakub@redhat.com>
4194
4195 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
4196 ubsan_instrument_vla, ubsan_instrument_return): Adjust
4197 ubsan_create_data callers.
4198
b35e0fa0
JJ
41992014-03-22 Jakub Jelinek <jakub@redhat.com>
4200
4201 PR debug/60603
4202 * c-opts.c (c_finish_options): Restore cb_file_change call to
4203 <built-in>.
4204
39a1ebb3
JJ
42052014-03-13 Jakub Jelinek <jakub@redhat.com>
4206
4207 PR middle-end/36282
4208 * c-pragma.c (apply_pragma_weak): Only look at
4209 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
4210 DECL_ASSEMBLER_NAME_SET_P (decl).
4211 (maybe_apply_pending_pragma_weaks): Exit early if
4212 vec_safe_is_empty (pending_weaks) rather than only when
4213 !pending_weaks.
4214 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
4215 set assembler name back to NULL afterwards.
4216
a07f6ed2
JM
42172014-03-11 Jason Merrill <jason@redhat.com>
4218
4219 * c.opt: Add -std=gnu++14.
4220
75b107f5
IB
42212014-03-11 Ian Bolton <ian.bolton@arm.com>
4222
4223 * c-opts.c (c_common_post_options): Don't override
4224 -ffp-contract=fast if unsafe-math-optimizations is on.
4225
f42c637e
PM
42262014-03-08 Paulo Matos <paulo@matos-sorge.com>
4227
22b15758 4228 * c.opt: Enable LTO FE for fshort-double.
f42c637e 4229
70e24808
JM
42302014-03-07 Jason Merrill <jason@redhat.com>
4231
4232 * c.opt: Add -std=c++14.
4233
3af9c5e9
MP
42342014-03-06 Marek Polacek <polacek@redhat.com>
4235
4236 PR c/60197
4237 * cilk.c (contains_cilk_spawn_stmt): New function.
4238 (contains_cilk_spawn_stmt_walker): Likewise.
4239 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
4240 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
4241
b3bdf019
JJ
42422014-03-03 Jakub Jelinek <jakub@redhat.com>
4243
4244 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
4245 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
4246 even when flag_preprocess_only.
4247
ca7e759d
JM
42482014-02-26 Jason Merrill <jason@redhat.com>
4249
4250 PR c++/59231
4251 PR c++/11586
4252 * c-common.c (shorten_compare): Don't check
4253 c_inhibit_evaluation_warnings.
4254
28e41874
JJ
42552014-02-19 Jakub Jelinek <jakub@redhat.com>
4256
cca615af
JJ
4257 PR c/37743
4258 * c-common.c (c_common_nodes_and_builtins): When initializing
4259 c_uint{16,32,64}_type_node, also set corresponding
4260 uint{16,32,64}_type_node to the same value.
4261
28e41874
JJ
4262 PR c++/60267
4263 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
4264 for PRAGMA_IVDEP if flag_preprocess_only.
4265
c2bf53a1
JJ
42662014-02-12 Jakub Jelinek <jakub@redhat.com>
4267
4268 PR c/60101
4269 * c-common.c (merge_tlist): If copy is true, call new_tlist,
4270 if false, add ADD itself, rather than vice versa.
4271 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
4272 copy. For SAVE_EXPR, only call merge_tlist once.
4273
8fcbce72
JJ
42742014-02-08 Jakub Jelinek <jakub@redhat.com>
4275
4276 PR middle-end/60092
4277 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
4278 and tree_to_uhwi.
4279 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
4280 functions.
4281 (c_common_attribute_table): Add alloc_align and assume_aligned
4282 attributes.
4283
0a756a3f
MP
42842014-02-06 Marek Polacek <polacek@redhat.com>
4285
4286 PR c/60087
4287 * c-common.c (warn_for_sign_compare): Call warning_at with location
4288 instead of warning.
4289
7ec4847a
MP
42902014-02-05 Marek Polacek <polacek@redhat.com>
4291
4292 PR c/53123
4293 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
4294 statement.
4295
66f20604
MP
42962014-02-04 Marek Polacek <polacek@redhat.com>
4297
4298 PR c/60036
4299 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
4300 SAVE_EXPR.
4301
5d77fb19
MG
43022014-02-03 Marc Glisse <marc.glisse@inria.fr>
4303
4304 PR c++/53017
4305 PR c++/59211
4306 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
4307 handle_vector_size_attribute, handle_nonnull_attribute): Call
4308 default_conversion on the attribute argument.
4309 (handle_nonnull_attribute): Increment the argument number.
4310
81e5eca8
MP
43112014-01-31 Marek Polacek <polacek@redhat.com>
4312
4313 PR c/59963
4314 * c-common.c (add_atomic_size_parameter): Pass vNULL to
4315 build_function_call_vec.
4316 (resolve_overloaded_builtin): Likewise.
4317 * c-common.h (build_function_call_vec): Adjust declaration.
4318
68fca595
MP
43192014-01-30 Marek Polacek <polacek@redhat.com>
4320
4321 PR c/59940
4322 * c-common.h (unsafe_conversion_p): Adjust declaration.
4323 (warnings_for_convert_and_check): Likewise.
4324 (convert_and_check): Likewise.
4325 * c-common.c (unsafe_conversion_p): Add location parameter. Call
4326 expansion_point_location_if_in_system_header on it.
4327 (warnings_for_convert_and_check): Add location parameter. Call
4328 expansion_point_location_if_in_system_header on it. Use it.
4329 (convert_and_check): Add location parameter. Use it.
4330 (conversion_warning): Likewise.
4331 (c_add_case_label): Adjust convert_and_check calls.
4332 (scalar_to_vector): Adjust unsafe_conversion_p calls.
4333
b72271b9
BI
43342014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
4335
4336 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
4337 flag_cilkplus.
4338 * c-pragma.c (init_pragma): Likewise.
4339 * c.opt: Likewise.
4340
393e8e8b
MP
43412014-01-23 Marek Polacek <polacek@redhat.com>
4342
4343 PR c/59846
4344 * c-common.c (shorten_compare): Add location_t parameter.
4345 * c-common.h (shorten_binary_op): Adjust declaration.
4346
f04dda30
MP
43472014-01-23 Marek Polacek <polacek@redhat.com>
4348
4349 PR c/58346
4350 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
4351 * c-common.h: Declare it.
4352
621955cb
EB
43532014-01-20 Eric Botcazou <ebotcazou@adacore.com>
4354
4355 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
4356 * c-ada-spec.c (dump_ads): Likewise.
4357 (cpp_check): Likewise.
4358 (dump_ada_specs): Likewise.
4359
43602014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
4361
4362 PR c++/49718
4363 * c-common.c (handle_no_instrument_function_attribute): Allow
4364 no_instrument_function attribute in class member
4365 definition/declaration.
4366
241f845a
JJ
43672014-01-15 Jakub Jelinek <jakub@redhat.com>
4368
4369 PR c/58943
4370 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
4371 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
4372 being COMPOUND_EXPR.
4373 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
4374 operand a SAVE_EXPR and second MODIFY_EXPR.
4375
e83b8e2e
JJ
43762014-01-09 Jakub Jelinek <jakub@redhat.com>
4377
4378 PR target/58115
4379 * c-pch.c (c_common_write_pch): Call
4380 prepare_target_option_nodes_for_pch.
4381
23a5b65a
RS
43822014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
4383
4384 Update copyright years
4385
f9030485
RS
43862014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
4387
4388 * array-notation-common.c, c-cilkplus.c: Use the standard form for
4389 the copyright notice.
4390
f2aa696b
EB
43912013-12-28 Eric Botcazou <ebotcazou@adacore.com>
4392
4393 * c-ada-spec.c (print_constructor): New function.
4394 (print_destructor): Retrieve the origin of the destructor.
4395 (print_ada_declaration): Revamp handling of constructors/destructors.
4396
3f8257db 43972013-12-23 Stuart Hastings <stuart@apple.com>
1f26ac87
JM
4398 Bill Maddox <maddox@google.com>
4399 Jason Merrill <jason@redhat.com>
4400
4401 * c.opt: Add -fdeclone-ctor-dtor.
4402 * c-opts.c (c_common_post_options): Default to on iff -Os.
4403
41958c28
BI
44042013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
4405
4406 * c-common.c (c_common_attribute_table): Added "cilk simd function"
4407 attribute.
4408 * c-pragma.h (enum pragma_cilk_clause): Remove.
4409 (enum pragma_omp_clause): Added the following fields:
4410 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
4411 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
4412 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
4413 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
4414 PRAGMA_CILK_CLAUSE_UNIFORM.
4415
b1726d6c 4416
12893402
BI
44172013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
4418
4419 * cilk.c (cilk_outline): Made this function non-static.
4420 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
4421 (create_cilk_wrapper): Added a new parameter: a function pointer.
4422 (c_install_body_w_frame_cleanup): Remove
4423 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
4424 * c-common.h (cilk_outline): New prototype.
4425 (gimplify_cilk_spawn): Removed two parameters.
4426 (cilk_install_body_with_frame_cleanup): New prototype.
4427 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
4428 CILK_SPAWN_STMT case.
4429
085b42ed
BS
44302013-12-11 Bernd Schmidt <bernds@codesourcery.com>
4431
2ce064c3
BS
4432 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
4433
085b42ed
BS
4434 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
4435 (int_array_type_node): Remove.
4436 * c-common.c (c_common_nodes_and_builtins): Don't build it.
4437
9e36c9ed
MP
44382013-12-05 Marek Polacek <polacek@redhat.com>
4439
4440 PR c/52023
4441 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
4442 [ADJUST_FIELD_ALIGN].
4443
296674db
JM
44442013-12-04 Joseph Myers <joseph@codesourcery.com>
4445
4446 PR c/52023
4447 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
4448 and check field alignment if set.
4449 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
4450 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
4451
b1726d6c 44522013-12-04 Jakub Jelinek <jakub@redhat.com>
31e071ae
MP
4453 Marek Polacek <polacek@redhat.com>
4454
4455 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
4456 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
4457
d7947e19
L
44582013-11-29 H.J. Lu <hongjiu.lu@intel.com>
4459
4460 PR c/59309
4461 * cilk.c (gimplify_cilk_spawn): Properly handle function without
4462 arguments.
4463
fad7652e
JJ
44642013-11-29 Jakub Jelinek <jakub@redhat.com>
4465
4466 PR c/59280
4467 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
4468 goto invalid. If it is error_mark_node, don't issue further
4469 diagnostics.
4470
8b5e1202
SO
44712013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
4472
4473 * c.opt (Wopenmp-simd): New.
4474
0a508bb6
JJ
44752013-11-22 Jakub Jelinek <jakub@redhat.com>
4476
4477 * c-ubsan.h (ubsan_instrument_return): New prototype.
4478 * c-ubsan.c (ubsan_instrument_return): New function.
4479
2fb9a547
AM
44802013-11-22 Andrew MacLeod <amacleod@redhat.com>
4481
4482 * c-common.c: Add required include files from gimple.h.
4483 * c-gimplify.c: Likewise
4484 * cilk.c: Likewise
4485
8400e75e
DM
44862013-11-22 David Malcolm <dmalcolm@redhat.com>
4487
4488 * c-common.c (unsafe_conversion_p): Remove use of
4489 EXPR_LOC_OR_HERE macro.
4490 (conversion_warning): Likewise.
4491 (warnings_for_convert_and_check): Likewise.
4492 (warn_for_collisions_1): Likewise.
4493 (shorten_compare): Likewise, and remove use of in_system_header
4494 macro, using the location from the former.
4495 * c-lex.c (dump_one_header): Remove use of input_filename macro.
4496 (cb_def_pragma): Remove use of in_system_header macro.
4497 (lex_string): Likewise.
4498 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
4499
eb1ce453
KZ
45002013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
4501 Mike Stump <mikestump@comcast.net>
4502 Richard Sandiford <rdsandiford@googlemail.com>
4503
4504 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
4505 instead of TREE_INT_CST_LOW, in cases where there is a protecting
4506 tree_fits_shwi_p or tree_fits_uhwi_p.
4507 (dump_generic_ada_node): Likewise.
4508 * c-format.c (check_format_arg): Likewise.
4509 * c-pretty-print.c (pp_c_integer_constant): Likewise.
4510
6b3b8c27
KZ
45112013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
4512
4513 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
4514
49b0aa18
JC
45152013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
4516
4517 PR c/53001
4518 * c-common.c (unsafe_conversion_p): Make this function
4519 return an enumeration with more detail.
4520 (conversion_warning): Use the new return type of
4521 unsafe_conversion_p to separately warn either about conversions
4522 that lower floating point number precision or about the other
4523 kinds of conversions.
4524 * c-common.h (enum conversion_safety): New enumeration.
8e745a17
JJ
4525 (unsafe_conversion_p): switching return type to
4526 conversion_safety enumeration.
49b0aa18
JC
4527 * c.opt: Adding new warning -Wfloat-conversion and
4528 enabling it with -Wconversion.
4529
b826515a
BS
45302013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
4531
8e745a17
JJ
4532 * c-opts.c: Include plugin.h.
4533 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
b826515a 4534
b9a55b13
MP
45352013-11-19 Marek Polacek <polacek@redhat.com>
4536
4537 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
4538 call.
4539 (ubsan_instrument_shift): Likewise.
4540 (ubsan_instrument_vla): Likewise.
4541
7d362f6c
RS
45422013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4543
4544 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
4545 cast to unsigned type.
4546
386b1f1f
RS
45472013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4548
4549 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
4550 tree_low_cst.
4551 (complete_array_type): Update comment to refer to tree_to_[su]hwi
4552 rather than tree_low_cst.
4553
ae7e9ddd
RS
45542013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4555
4556 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
4557 tree_to_uhwi throughout.
4558
9439e9a1
RS
45592013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4560
4561 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
4562 tree_low_cst (..., 0) with tree_to_shwi throughout.
4563
cc269bb6
RS
45642013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4565
4566 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
4567 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
4568
9541ffee
RS
45692013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4570
4571 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
4572 host_integerp (..., 0) with tree_fits_shwi_p throughout.
4573
c02065fc
AH
45742013-11-15 Aldy Hernandez <aldyh@redhat.com>
4575
4576 * c-cilkplus.c: New file.
4577 * c-common.c (readonly_error): Add location argument.
4578 * c-common.h (readonly_error): Same.
4579 (c_finish_cilk_clauses): Protoize.
4580 (c_check_cilk_loop): Same.
4581 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
4582 Do not fail on error_mark_node.
4583 Abstract increment canonicalization to here...
4584 (c_omp_for_incr_canonicalize_ptr): New.
4585 c-pragma.c (init_pragma): Register "simd" pragma.
4586 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
4587 (enum pragma_cilk_clause): New.
4588
9cc65f15
RS
45892013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
4590
4591 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
4592 wchar_type and host_integerp checks.
4593
18f429e2
AM
45942013-11-14 Andrew MacLeod <amacleod@redhat.com>
4595
4596 * c-common.c: Likewise.
4597 * c-gimplify.c: Likewise.
4598 * cilk.c: Likewise.
4599
d8a2d370
DN
46002013-11-14 Diego Novillo <dnovillo@google.com>
4601
4602 * c-common.c: Include fold-const.h.
4603 Include stor-layout.h.
4604 Include calls.h.
4605 Include stringpool.h.
4606 Include attribs.h.
4607 Include varasm.h.
4608 Include trans-mem.h.
4609 * c-cppbuiltin.c: Include stor-layout.h.
4610 Include stringpool.h.
4611 * c-format.c: Include stringpool.h.
4612 * c-lex.c: Include stringpool.h.
4613 Include stor-layout.h.
4614 * c-pragma.c: Include stringpool.h.
4615 Include attribs.h.
4616 Include varasm.h.
4617 Include gcc-symtab.h.
4618 * c-pretty-print.c: Include stor-layout.h.
4619 Include attribs.h.
4620 * cilk.c: Include stringpool.h.
4621 Include calls.h.
4622
38b7bc7f
JM
46232013-11-13 Joseph Myers <joseph@codesourcery.com>
4624
4625 * c-common.h (enum rid): Add RID_AUTO_TYPE.
4626 * c-common.c (c_common_reswords): Add __auto_type.
4627 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
4628
45b0be94
AM
46292013-11-12 Andrew MacLeod <amacleod@redhat.com>
4630
18f429e2
AM
4631 * c-common.c: Include gimplify.h.
4632 * c-gimplify.c: Likewise.
4633 * cilk.c: Likewise.
4634 * c-omp.c: Include gimple-expr.h instead of gimple.h.
4635 * c-ubsan.c: Don't include gimple.h.
45b0be94 4636
582d9b50
JM
46372013-11-12 Joseph Myers <joseph@codesourcery.com>
4638
4639 * c-common.c (c_common_reswords): Add _Thread_local.
4640
6b28e197
JM
46412013-11-09 Joseph Myers <joseph@codesourcery.com>
4642
4643 * c-common.c (atomic_size_supported_p): New function.
4644 (resolve_overloaded_atomic_exchange)
4645 (resolve_overloaded_atomic_compare_exchange)
4646 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
4647 Use it instead of comparing size with a local list of sizes.
4648
267bac10
JM
46492013-11-07 Andrew MacLeod <amacleod@redhat.com>
4650 Joseph Myers <joseph@codesourcery.com>
4651
4652 * c-common.h (enum rid): Add RID_ATOMIC.
4653 * c-common.c (c_common_reswords): Add _Atomic.
4654 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
4655 (keyword_is_type_qualifier): Accept RID_ATOMIC.
4656 * c-format.c (check_format_types): Check for extra _Atomic
4657 qualifiers in format argument.
4658 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
4659 (pp_c_type_qualifier_list): Mention _Atomic in comment.
4660
5157b91e
TB
46612013-11-06 Tobias Burnus <burnus@net-b.de>
4662
4663 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
4664
6dbe0958
JM
46652013-11-06 Joseph Myers <joseph@codesourcery.com>
4666
4667 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
4668 standards modes.
4669 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
4670 to mean lack of IEEE 754 support.
4671
e8ff5196
TB
46722013-11-05 Tobias Burnus <burnus@net-b.de>
4673
4674 * c.opt (-Wdate-time): New option
4675 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
4676
254a0760
JM
46772013-11-05 Joseph Myers <joseph@codesourcery.com>
4678
4679 * c-cppbuiltin.c (cpp_iec_559_value): Test
4680 flag_excess_precision_cmdline not flag_excess_precision.
4681
6d7f7e0a
TB
46822013-11-05 Tobias Burnus <burnus@net-b.de>
4683
4684 * c.opt (fopenmp-simd): New option.
4685 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
4686 (omp_pragmas): ... this new struct.
4687 (c_pp_lookup_pragma): Also walk omp_pragmas.
4688 (init_pragma): Init pragmas for -fopenmp-simd.
4689
55a7f02f
MP
46902013-11-04 Marek Polacek <polacek@redhat.com>
4691
4692 PR c++/58979
4693 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
4694
9193fb05
JM
46952013-11-04 Joseph Myers <joseph@codesourcery.com>
4696
4697 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
4698 New functions.
4699 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
4700
94159ecf
EB
47012013-11-04 Eric Botcazou <ebotcazou@adacore.com>
4702
4703 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
4704 (dump_ada_specs): Adjust prototype of second callback.
4705 * c-ada-spec.c (cpp_check): New global variable.
4706 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
4707 (print_generic_ada_decl): Likewise.
4708 (has_static_fields): Change return type to bool and add guard.
4709 (has_nontrivial_methods): New predicate.
4710 (is_tagged_type): Change return type to bool.
4711 (separate_class_package): Call has_nontrivial_methods.
4712 (pp_ada_tree_identifier): Minor tweaks.
4713 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
4714 (dump_ada_array_domains): Likewise.
4715 (dump_ada_array_type): Likewise.
4716 (dump_template_types): Remove cpp_check parameter and do not pass it to
4717 dump_generic_ada_node.
4718 (dump_ada_template): Likewise.
4719 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
4720 recursively.
4721 (print_ada_methods): Change return type to integer. Remove cpp_check
4722 parameter and do not pass it down.
4723 (dump_nested_types): Remove cpp_check parameter and do not pass it to
4724 dump_generic_ada_node.
4725 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
4726 accessing methods.
4727 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
4728 down. Use has_nontrivial_methods to recognize C++ classes. Use return
4729 value of print_ada_methods.
4730 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
4731 Set cpp_check to it before invoking dump_ada_nodes.
4732 (dump_ada_specs): Likewise.
4733
b906f4ca
MP
47342013-11-03 Marek Polacek <polacek@redhat.com>
4735
4736 * c-ubsan.c: Don't include hash-table.h.
4737 (ubsan_instrument_vla): New function.
4738 * c-ubsan.h: Declare it.
4739
5e20cdc9
DM
47402013-10-31 David Malcolm <dmalcolm@redhat.com>
4741
4742 Automated part of renaming of symtab_node_base to symtab_node.
4743
4744 Patch autogenerated by rename_symtab.py from
4745 https://github.com/davidmalcolm/gcc-refactoring-scripts
4746 revision 58bb219cc090b2f4516a9297d868c245495ee622
4747
4748 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
4749 symtab_node_base to symtab_node.
4750
7057e645
ESR
47512013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
4752
8e745a17 4753 Implement C++14 digit separators.
7057e645
ESR
4754 * c-lex.c (interpret_float): Remove digit separators from scratch string
4755 before building real literal.
4756
193ea7bc
JJ
47572013-10-30 Jakub Jelinek <jakub@redhat.com>
4758
4759 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
4760
939b37da
BI
47612013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
4762
4763 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
4764 fields.
4765 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
4766 enabled.
4767 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
4768 (insert_cilk_frame): New prototype.
4769 (cilk_init_builtins): Likewise.
4770 (gimplify_cilk_spawn): Likewise.
4771 (c_cilk_install_body_w_frame_cleanup): Likewise.
4772 (cilk_detect_spawn_and_unwrap): Likewise.
4773 (cilk_set_spawn_marker): Likewise.
4774 (build_cilk_sync): Likewise.
4775 (build_cilk_spawn): Likewise.
4776 * cilk.c: New file.
4777
67348ccc
DM
47782013-10-29 David Malcolm <dmalcolm@redhat.com>
4779
4780 Patch autogenerated by refactor_symtab.py from
4781 https://github.com/davidmalcolm/gcc-refactoring-scripts
4782 revision 58bb219cc090b2f4516a9297d868c245495ee622
4783
4784 * c-gimplify.c (c_genericize): Update for conversion of symtab types
4785 to a true class hierarchy.
4786 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
4787
d570872d
RS
47882013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
4789
4790 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
4791
98906124
JL
47922013-10-26 Jeff Law <law@redhat.com>
4793
adfac8df
JJ
4794 * c-common.c (c_define_builtins): Remove mudflap support.
4795 * c.opt: Ignore and warn for mudflap options.
98906124 4796
d73749df 47972013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
4798
4799 PR other/33426
4800 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
4801 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
4802
3f04b1bb
JM
48032013-10-23 Jason Merrill <jason@redhat.com>
4804
4805 * c-format.c (gcc_cxxdiag_char_table): Add %X.
4806
acf0174b
JJ
48072013-10-11 Jakub Jelinek <jakub@redhat.com>
4808
acd15a28
JJ
4809 * c-common.h (omp_clause_mask::operator !=): New method.
4810 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
4811 instead of if (mask & something) tests everywhere.
4812
acf0174b
JJ
4813 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
4814 201307 instead of 201107.
4815 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
4816 (c_common_attribute_table): Add "omp declare target" and
4817 "omp declare simd" attributes.
4818 (handle_omp_declare_target_attribute,
4819 handle_omp_declare_simd_attribute): New functions.
4820 * c-omp.c: Include c-pragma.h.
4821 (c_finish_omp_taskgroup): New function.
4822 (c_finish_omp_atomic): Add swapped argument, if true,
4823 build the operation first with rhs, lhs arguments and use NOP_EXPR
4824 build_modify_expr.
4825 (c_finish_omp_for): Add code argument, pass it down to make_code.
4826 (c_omp_split_clauses): New function.
4827 (c_split_parallel_clauses): Removed.
4828 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
4829 c_omp_declare_simd_clauses_to_decls): New functions.
4830 * c-common.h (omp_clause_mask): New type.
4831 (OMP_CLAUSE_MASK_1): Define.
4832 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
4833 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
4834 omp_clause_mask::operator |, omp_clause_mask::operator &,
4835 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
4836 omp_clause_mask::operator ==): New methods.
4837 (enum c_omp_clause_split): New.
4838 (c_finish_omp_taskgroup): New prototype.
4839 (c_finish_omp_atomic): Add swapped argument.
4840 (c_finish_omp_for): Add code argument.
4841 (c_omp_split_clauses): New prototype.
4842 (c_split_parallel_clauses): Removed.
4843 (c_omp_declare_simd_clauses_to_numbers,
4844 c_omp_declare_simd_clauses_to_decls): New prototypes.
4845 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
4846 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
4847 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
4848 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
4849 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
4850 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
4851 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
4852 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
4853 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
4854 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
4855 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
4856 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
4857 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
4858 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
4859 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
4860 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
4861 PRAGMA_OMP_CLAUSE_UNIFORM.
4862
826cacfe
MG
48632013-10-09 Marc Glisse <marc.glisse@inria.fr>
4864
4865 PR tree-optimization/20318
4866 * c-common.c (handle_returns_nonnull_attribute): New function.
4867 (c_common_attribute_table): Add returns_nonnull.
4868
2284b034
MG
48692013-10-03 Marc Glisse <marc.glisse@inria.fr>
4870
4871 PR c++/19476
4872 * c.opt (fcheck-new): Move to common.opt.
4873
b56e9788
MP
48742013-09-25 Marek Polacek <polacek@redhat.com>
4875 Jakub Jelinek <jakub@redhat.com>
4876
4877 PR sanitizer/58413
4878 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
4879 an expression if we can prove it is correct.
4880 (ubsan_instrument_division): Likewise. Remove unnecessary
4881 check.
4882
ce6923c5
MP
48832013-09-18 Marek Polacek <polacek@redhat.com>
4884
4885 PR sanitizer/58411
4886 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
4887 Declare it.
4888 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
4889
fb5610fb
IS
48902013-09-14 Iain Sandoe <iain@codesourcery.com>
4891
4892 PR target/48094
4893 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
4894 fobjc-gc, freplace-objc-classes): Accept for LTO.
4895
88b0e79e
JC
48962013-09-13 Jacek Caban <jacek@codeweavers.com>
4897
4898 * c-target.def: New hook
4899
c9b0866a
PC
49002013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
4901
4902 PR c++/43452
4903 * c.opt (Wdelete-incomplete): Add.
4904
0af94e6f
JR
49052013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
4906
4907 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
4908 (vector_types_compatible_elements_p): New function.
4909 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
4910 declaration.
4911 (vector_types_compatible_elements_p): Declare.
4912
7c26172c
GDR
49132013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
4914
4915 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
4916 a virtual member function.
4917 (pp_simple_type_specifier): Remove.
4918 (pp_c_type_specifier): Likewise.
4919 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
4920 Rename from pp_c_type_specifier. Adjust.
4921 (c_pretty_printer::c_pretty_printer): Do not assign to
4922 simple_type_specifier.
4923
20059c8b
GDR
49242013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
4925
4926 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
4927 member function.
4928 (c_pretty_printer::storage_class_specifier): Likewise.
4929 (c_pretty_printer::initializer): Likewise.
4930 (pp_declaration): Remove.
4931 (pp_declaration_specifiers): Likewise.
4932 (pp_abstract_declarator): Likewise.
4933 (pp_declarator): Likewise.
4934 (pp_type_id): Likewise.
4935 (pp_statement): Likewise.
4936 (pp_constant): Likewise.
4937 (pp_id_expression): Likewise.
4938 (pp_primary_expression): Likewise.
4939 (pp_unary_expression): Likewise.
4940 (pp_multiplicative_expression): Likewise.
4941 (pp_conditional_expression): Likewise.
4942 (pp_assignment_expression): Likewise.
4943 (pp_expression): Likewise.
4944 (pp_c_type_id): Likewise.
4945 (pp_c_storage_class_specifier): Likewise.
4946 * c-pretty-print.c (pp_c_type_cast): Tidy.
4947 (pp_c_pointer): Likewise.
4948 (pp_c_type_specifier): Likewise.
4949 (pp_c_parameter_type_list): Likewise.
4950 (pp_c_function_definition): Likewise.
4951 (pp_c_init_declarator): Likewise.
4952 (pp_c_initializer_list): Likewise.
4953 (pp_c_constructor_elts): Likewise.
4954 (c_pretty_printer::direct_abstract_declarator): Likewise.
4955 (c_pretty_printer::declaration_specifiers): Likewise.
4956 (c_pretty_printer::primary_expression): Likewise.
4957 (c_pretty_printer::postfix_expression): Likewise.
4958 (c_pretty_printer::type_id): Rename from pp_c_type_id.
4959 (c_pretty_printer::storage_class_specifier): Rename from
4960 pp_c_storage_class_specifier.
4961 (c_pretty_printer::initializer): Rename from pp_c_initializer.
4962 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
4963 storage_class_specifier, initializer, offset_list, flags.
4964
de5a5fa1
MP
49652013-08-30 Marek Polacek <polacek@redhat.com>
4966
4967 * c-ubsan.c: New file.
4968 * c-ubsan.h: New file.
4969
8f0e4d72
GDR
49702013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
4971
4972 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
4973 member function.
4974 (c_pretty_printer::declaration_specifiers): Likewise.
4975 (c_pretty_printer::declarator): Likewise.
4976 (c_pretty_printer::abstract_declarator): Likewise.
4977 (c_pretty_printer::direct_abstract_declarator): Likewise.
4978 (c_pretty_printer::direct_declarator): Likewise.
4979 (c_pretty_printer::function_specifier): Likewise.
4980 (pp_declaration): Adjust.
4981 (pp_declaration_specifiers): Likewise.
4982 (pp_abstract_declarator): Likewise.
4983 (pp_direct_declarator): Likewise.
4984 (pp_function_specifier): Likewise.
4985 (pp_direct_abstract_declarator): Remove as unused.
4986 (pp_c_declaration): Remove.
4987 (pp_c_declaration_specifiers): Likewise.
4988 (pp_c_declarator): Likewise.
4989 (pp_c_direct_declarator): Likewise.
4990 (pp_c_function_specifier): Likewise.
4991 (pp_c_direct_abstract_declarator): Likewise.
4992 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
4993 from pp_c_abstract_declarator. Adjust.
4994 (c_pretty_printer::direct_abstract_declarator): Rename from
4995 pp_c_direct_abstract_declarator. Adjust.
4996 (c_pretty_printer::function_specifier): Rename from
4997 pp_c_function_specifier. Adjust.
4998 (c_pretty_printer::declaration_specifiers): Rename from
4999 pp_c_declaration_specifiers. Adjust.
5000 (c_pretty_printer::direct_declarator): Rename from
5001 pp_c_direct_declarator. Adjust.
5002 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
5003 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
5004 (c_pretty_printer::c_pretty_printer): Do not assign to
5005 declaration, declaration_specifiers, declarator,
5006 direct_declarator, direct_abstract_declarator, function_specifier.
5007
00d34d3a
GDR
50082013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
5009
5010 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
5011 virtual member function.
5012 (c_pretty_printer::multiplicative_expression): Likewise.
5013 (c_pretty_printer::conditional_expression): Likewise.
5014 (c_pretty_printer::assignment_expression): Likewise.
5015 (c_pretty_printer::expression): Likewise.
5016 (pp_unary_expression): Adjust.
5017 (pp_multiplicative_expression): Likewise.
5018 (pp_assignment_expression): Likewise.
5019 (pp_conditional_expression): Likewise.
5020 (pp_expression): Likewise.
5021 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
5022 from pp_c_unary_expression. Adjust.
5023 (c_pretty_printer::multiplicative_expression): Rename from
5024 pp_c_multiplicative_expression. Adjust.
5025 (c_pretty_printer::conditional_expression): Rename from
5026 pp_c_conditional_expression. Adjust.
5027 (c_pretty_printer::assignment_expression): Rename from
5028 pp_c_assignment_expression. Adjust.
5029 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
5030 (c_pretty_printer::c_pretty_printer): Do not assign to
5031 unary_expression, multiplicative_expression,
5032 conditional_expression, expression.
5033
fb22178f
GDR
50342013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
5035
5036 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
5037 virtual member function.
5038 (pp_postfix_expression): Adjust.
5039 (pp_c_postfix_expression): Remove.
5040 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
5041 from pp_c_postfix_expression. Adjust.
5042 (c_pretty_printer::c_pretty_printer): Do not assign to
5043 postfix_expression.
5044
7ecc2600
GDR
50452013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
5046
5047 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
5048 virtua member function.
5049 (pp_primary_expression): Adjust.
5050 (pp_c_primary_expression): Remove.
5051 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
5052 from pp_c_primary_expression. Adjust.
5053 (pp_c_initializer_list): Use pp_primary_expression.
5054 (c_pretty_printer::c_pretty_printer): Do not assign to
5055 primary_expression.
5056
0691175f
GDR
50572013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
5058
5059 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
5060 * c-pretty-print.c (M_): Remove.
5061 (c_pretty_printer::translate_string): Define.
5062 (pp_c_type_specifier): Use it.
5063 (pp_c_primary_expression): Likewise.
5064 (pp_c_expression): Likewise.
5065
66dfe4c4
GDR
50662013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
5067
5068 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
5069 virtual function.
5070 (pp_c_id_expression): Remove.
5071 (pp_id_expression): Adjust.
5072 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
5073 pp_c_id_expression. Adjust.
5074 (pp_c_postfix_expression): Use pp_id_expression.
5075 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
5076
ca43e9d5
GDR
50772013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
5078
5079 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
5080 member function.
5081 (pp_constant): Adjust.
5082 (pp_c_constant): Remove.
5083 * c-pretty-print.c (c_pretty_printer::constant): Rename from
5084 pp_c_constant. Adjust.
5085 (pp_c_constant)
5086 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
5087 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
5088
da6ca2b5
GDR
50892013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
5090
5091 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
5092 (c_pretty_printer::c_pretty_printer): Declare.
5093 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
5094 c_pretty_printer_init. Adjust.
5095 (print_c_tree): Do not call c_pretty_printer_init.
5096 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
5097
65a372f4
AC
50982013-08-09 Arnaud Charlet <charlet@adacore.com>
5099
5100 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
5101
fd9b0f32
PC
51022013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
5103
5104 PR c++/58080
5105 * c-common.c (pointer_int_sum): Add bool parameter.
5106 * c-common.h (pointer_int_sum): Adjust declaration.
5107
e0aec1e9
GDR
51082013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
5109
5110 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
5111 c_pretty_printer variable.
5112
b066401f
GDR
51132013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
5114
5115 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
5116 (pp_base): Remove.
5117 (pp_c_base): Likewise. Adjust users.
5118 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
5119 (pp_c_whitespace): Do not call pp_base.
5120 (pp_c_left_paren): Likewise.
5121 (pp_c_right_paren): Likewise.
5122 (pp_c_left_brace): Likewise.
5123 (pp_c_right_brace): Likewise.
5124 (pp_c_left_bracket): Likewise.
5125 (pp_c_right_bracket): Likewise.
5126 (pp_c_dot): Likewise.
5127 (pp_c_ampersand): Likewise.
5128 (pp_c_star): Likewise.
5129 (pp_c_arrow): Likewise.
5130 (pp_c_semicolon): Likewise.
5131 (pp_c_complement): Likewise.
5132 (pp_c_exclamation): Likewise.
5133 (pp_c_direct_declarator): Likewise.
5134 (pp_c_ws_string): Likewise.
5135 (pp_c_identifier): Likewise.
5136 (pp_c_statement): Likewise.
5137 (print_c_tree): Likewise.
5138
65e5a578
ESR
51392013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
5140
5141 PR c++/58072
5142 * c-common.c (c_parse_error): Catch user-defined literal tokens and
5143 provide useful error strings.
5144
137a1a27
GDR
51452013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
5146
5147 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
5148 printer functions instead of pp_string or operators and punctuators.
5149 (dump_generic_ada_node): Likewise.
5150 * c-pretty-print.c (pp_c_type_specifier): Likewise.
5151 (pp_c_relational_expression): Likewise.
5152 (pp_c_logical_or_expression): Likewise.
5153
07838b13
GDR
51542013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
5155
5156 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
5157 functions instead of pp_character.
5158 (pp_ada_tree_identifier): Likewise.
5159 (dump_ada_double_name): Likewise.
5160 (dump_ada_function_declaration): Likewise.
5161 (dump_ada_array_domains): Likewise.
5162 (dump_template_types): Likewise.
5163 (dump_generic_ada_node): Likewise.
5164 (print_ada_declaration): Likewise.
5165 (print_ada_struct_decl): Likewise.
5166 * c-pretty-print.c (pp_c_integer_constant): Likewise.
5167
433cc7b0
TT
51682013-07-23 Tom Tromey <tromey@redhat.com>
5169
5170 * c-common.h (enum rid) <RID_GENERIC>: New constant.
5171 * c-common.c (c_common_reswords): Add _Generic.
5172
688010ba
OB
51732013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
5174
5175 * c-common.c: Fix typos.
5176 * c-common.h: Likewise.
5177
2a99e5e6
LL
51782013-07-13 Lubos Lunak <l.lunak@suse.cz>
5179
5180 PR c++/55203
5181 * c-common.c (c_common_attribute_table): Add warn_unused.
5182 (handle_warn_unused_attribute): New.
5183
c26302d5
JJ
51842013-07-10 Jakub Jelinek <jakub@redhat.com>
5185
5186 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
5187 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
5188
dfeadaa0
PC
51892013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
5190
5191 PR c++/57869
5192 * c.opt: Add Wconditionally-supported.
5193
6a2fa4b2
GS
51942013-07-08 Graham Stott <graham.stott@btinternet.com>
5195
adfac8df 5196 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
5197 unused variables l_length and l_node.
5198
ecdbd01a 51992013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
5200
5201 PR c/57821
5202 * c-common.c (complete_array_type): Delay folding first index
5203 like other indices. When folding, check for index overflow.
5204
bedc293e
MG
52052013-06-27 Marc Glisse <marc.glisse@inria.fr>
5206
5207 PR c++/57509
5208 * c-common.h (c_build_vec_perm_expr): New complain argument.
5209 * c-common.c (c_build_vec_perm_expr): Likewise.
5210 Use save_expr also in C++.
5211
604b2bfc
GDR
52122013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
5213
5214 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
5215 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
5216 * c-opts.c (c_common_post_options): Likewise.
5217
dfeadaa0 52182013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
5219
5220 * array-notation-common.c (length_mismatch_in_expr): Changed the
5221 parameter type's from a dynamic array to a vec_tree. Also removed
5222 the size parameters.
5223 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
5224 the change above.
5225
2ce86d2e
BI
52262013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
5227
5228 * c-common.h (struct cilkplus_an_parts): New structure.
5229 (struct cilkplus_an_loop_parts): Likewise.
5230 (cilkplus_extract_an_triplets): New prototype.
5231 (fix_sec_implicit_args): Likewise.
5232 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
5233 (fix_sec_implicit_args): Likewise.
604b2bfc 5234
07a6825b
BI
52352013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
5236
5237 * array-notation-common.c (find_inv_trees): Removed an unwanted
5238 typecasting.
5239 * c-common.h (struct inv_list::additional_tcodes): Changed type from
5240 enum rid to enum tree_code.
5241
08346abd
JH
52422013-06-11 Jan Hubicka <jh@suse.cz>
5243
5244 * c-common.c (handle_alias_ifunc_attribute): Do not set
5245 DECL_EXTERNAL for weakref variables.
5246 * c-pragma.c (handle_pragma_weak): Make sure aliases
5247 are not declared as external.
5248
d60f1706
BI
52492013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
5250
5251 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
5252 function from c/c-array-notation.c.
5253 (is_cilkplus_reduce_builtin): Likewise.
5254 (find_rank): Likewise.
5255 (extract_array_notation_exprs): Likewise.
5256 (replace_array_notations): Likewise.
5257 (find_inv_trees): Likewise.
5258 (replace_inv_trees): Likewise.
5259 (contains_array_notation_expr): Likewise.
5260 (find_correct_array_notation_type): Likewise.
5261 * c-common.h (struct inv_list): Moved this struct from the file
5262 c/c-array-notation.c and added a new field called additional tcodes.
5263 (length_mismatch_in_expr_p): New prototype.
5264 (is_cilkplus_reduce_builtin): Likewise.
5265 (find_rank): Likewise.
5266 (extract_array_notation_exprs): Likewise.
5267 (replace_array_notation): Likewise.
5268 (find_inv_trees): Likewise.
5269 (replace_inv_trees): Likewise.
5270 (find_correct_array_notation_type): Likewise.
dfeadaa0 5271
36536d79
BI
52722013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
5273
5274 * c-common.c (c_define_builtins): When cilkplus is enabled, the
5275 function array_notation_init_builtins is called.
5276 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
5277 * c-common.def (ARRAY_NOTATION_REF): New tree.
5278 * c-common.h (build_array_notation_expr): New function declaration.
5279 (build_array_notation_ref): Likewise.
5280 (extract_sec_implicit_index_arg): New extern declaration.
5281 (is_sec_implicit_index_fn): Likewise.
5282 (ARRAY_NOTATION_CHECK): New define.
5283 (ARRAY_NOTATION_ARRAY): Likewise.
5284 (ARRAY_NOTATION_START): Likewise.
5285 (ARRAY_NOTATION_LENGTH): Likewise.
5286 (ARRAY_NOTATION_STRIDE): Likewise.
5287 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
5288 ARRAY_NOTATION_REF.
5289 (pp_c_expression): Likewise.
5290 * c.opt (flag_enable_cilkplus): New flag.
5291 * array-notation-common.c: New file.
5292
f7716d57
JJ
52932013-05-14 Jakub Jelinek <jakub@redhat.com>
5294
5295 PR c++/57274
5296 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
5297
a5e0cd1d
MG
52982013-05-10 Marc Glisse <marc.glisse@inria.fr>
5299
5300 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
5301 vectors.
5302
f6bc1c4a
HS
53032013-05-07 Han Shen <shenhan@google.com>
5304
5305 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
5306
3f12f6e9
SKS
53072013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5308
5309 * c-common.c (check_user_alignment): Emit error for negative values.
5310
61949153
PC
53112013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
5312
5313 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
5314
e93e18e9
PC
53152013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
5316
5317 * c-cppbuiltin.c (c_cpp_builtins): Do not define
5318 __GXX_EXPERIMENTAL_CXX1Y__.
5319
44d90fe1 53202013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
8e745a17 5321 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
44d90fe1
PC
5322
5323 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
5324 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
5325 to simply use OPT_Wpointer_arith.
5326 (c_sizeof_or_alignof_type): Likewise.
5327
13f39b2e
PC
53282013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
5329
5330 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
5331
4b84d650
JJ
53322013-04-12 Jakub Jelinek <jakub@redhat.com>
5333
5334 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
5335 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
5336 specifiers.
5337
fb037b5d
SB
53382013-04-07 Steven Bosscher <steven@gcc.gnu.org>
5339
5340 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
5341
4e856798
PC
53422013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
5343
5344 * c-common.c (pointer_int_sum): Remove dead code.
5345
4b1baac8
RS
53462013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
5347
5348 PR middle-end/56524
5349 * c-common.c (handle_optimize_attribute): Don't call
5350 save_optabs_if_changed.
5351
0b50e654
JJ
53522013-03-05 Jakub Jelinek <jakub@redhat.com>
5353
5354 PR middle-end/56461
5355 * c-pch.c (pch_init): Free target_validity at the end.
5356
48c41403
JJ
53572013-03-04 Jakub Jelinek <jakub@redhat.com>
5358
5359 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
5360
e664c61c
KS
53612013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
5362 Jakub Jelinek <jakub@redhat.com>
5363
5364 PR sanitizer/56454
5365 * c-common.c (handle_no_sanitize_address_attribute): New function.
5366 (c_common_attribute_table): Add no_sanitize_address attribute.
5367 (handle_no_address_safety_analysis_attribute): Add
5368 no_sanitize_address attribute, not no_address_safety_analysis
5369 attribute.
5370
a475fd3d 53712013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
5372
5373 PR target/52555
5374 * c-common.c (handle_optimize_attribute): Call
5375 save_optabs_if_changed.
5376
f6007d99
JJ
53772013-02-18 Jakub Jelinek <jakub@redhat.com>
5378 Steven Bosscher <steven@gcc.gnu.org>
5379
5380 PR pch/54117
5381 * c-opts.c (c_common_post_options): If debug info is enabled
5382 and non-dwarf*, refuse to load PCH files and when writing PCH
5383 file warn.
5384
cf35e2b1
JJ
53852013-02-05 Jakub Jelinek <jakub@redhat.com>
5386
5387 PR middle-end/56167
5388 * c-common.c (handle_error_attribute): Fix condition.
5389
32887460
JJ
53902013-01-30 Jakub Jelinek <jakub@redhat.com>
5391
5392 PR c++/55742
5393 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
5394
5af057d8
JM
53952013-01-18 Jason Merrill <jason@redhat.com>
5396
5397 PR target/54908
5398 * c.opt (-fextern-tls-init): New.
5399 * c-opts.c (c_common_post_options): Handle it.
5400
cc83c823
JJ
54012013-01-09 Jakub Jelinek <jakub@redhat.com>
5402
5403 PR c/48418
5404 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
5405 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
5406 and is either negative or bigger or equal to type precision
5407 of the first operand.
5408
a859517f
MP
54092012-12-03 Marek Polacek <polacek@redhat.com>
5410
5411 PR c/55570
5412 * c-common.c (check_user_alignment): Swap order of tests,
5413 check TREE_CODE first.
5414
2d7aa578
ESR
54152012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
5416
5417 PR c++/52654
5418 * c-common.h (overflow_type): New enum.
5419 (build_userdef_literal): Add overflow_type argument.
5420 (tree_userdef_literal): Add overflow_type.
5421 (USERDEF_LITERAL_OVERFLOW): New access macro.
5422 * c-common.c (build_userdef_literal): Add overflow_type
5423 argument.
5424 * c-lex.c (c_lex_with_flags): Add overflow_type to
5425 build_userdef_literal calls.
5426 (interpret_integer, interpret_float): Add overflow_type argument.
5427
cc3c4f62
RB
54282012-11-28 Richard Biener <rguenther@suse.de>
5429
5430 PR c/35634
5431 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
5432 here and use a type with proper overflow behavior for types that would
5433 need to be promoted for the arithmetic.
5434
77bc5132
JJ
54352012-11-23 Jakub Jelinek <jakub@redhat.com>
5436
5437 PR sanitizer/55435
5438 * c-common.c (handle_no_address_safety_analysis_attribute): New
5439 function.
5440 (c_common_attribute_table): Add no_address_safety_analysis.
5441
5dc99c46
SB
54422012-11-16 Simon Baldwin <simonb@google.com>
5443
5444 * c.opt: Add f[no-]canonical-system-headers.
5445 * c-opts.c (c_common_handle_option): Handle
5446 OPT_fcanonical_system_headers.
5447
a4a0016d
ESR
54482012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
5449
5450 PR c++/54413
5451 * c-opts.c (c_common_handle_option): Set new flags.
5452 * c.opt: Describe new flags.
5453
7dbb85a7
JM
54542012-11-09 Jason Merrill <jason@redhat.com>
5455
5456 * c.opt (Wabi-tag): New.
5457
ad7bac31
AK
54582012-11-09 Andi Kleen <ak@linux.intel.com>
5459
5460 PR 55139
5461 * c-common.c (get_atomic_generic_size): Mask with
8e745a17 5462 MEMMODEL_MASK
ad7bac31 5463
7332899a
MLI
54642012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
5465
5466 PR c/53063
5467 * c.opt (Wformat): Make it Alias Wformat=1.
5468 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
5469 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
5470 LangEnabledBy.
5471 (Wformat=): RejectNegative. Use LangEnabledBy.
5472 (Wnonnull): Use LangEnabledBy.
5473 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
5474 * c-format.c (set_Wformat): Delete.
5475 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
8e745a17
JJ
5476 (maybe_read_dollar_number): Likewise.
5477 (avoid_dollar_number): Likewise.
5478 (finish_dollar_format_checking): Likewise.
5479 (check_format_info): Likewise.
5480 (check_format_info_main): Likewise.
5481 (check_format_types): Likewise.
5482 (format_type_warning): Likewise.
5483 * c-common.c (int): Likewise.
5484 (check_function_sentinel): Likewise.
5485 * c-common.h (warn_format,set_Wformat): Do not declare here.
7332899a 5486
34a180a6
MLI
54872012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
5488
5489 PR c/53063
5490 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
5491 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
5492 Use LangEnabledBy.
5493 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
5494 common.opt.
5495 (Wvariadic-macros): Init(1).
5496 * c-opts.c (c_common_handle_option): Do not handle them
5497 explicitly.
5498 (c_common_post_options): Likewise.
5499 (sanitize_cpp_opts): warn_unused_macros is now
5500 cpp_warn_unused_macros.
5501 (push_command_line_include): Likewise.
5502 * c-common.c (warn_unknown_pragmas): Do not define.
5503 * c-common.h (warn_unknown_pragmas): Do not declare.
5504
3f46d6a5
MLI
55052012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
5506
5507 PR c/51294
5508 * c-common.c (conversion_warning): Handle conditional expressions.
5509
880661a4
JW
55102012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
5511
5512 PR c++/54930
5513 * c.opt (Wreturn_local_addr): Define new option.
5514
4514a96b
JM
55152012-10-25 Jason Merrill <jason@redhat.com>
5516
f14edc1a
JM
5517 * c.opt (Wvirtual-move-assign): New.
5518
4514a96b
JM
5519 * c.opt (Winherited-variadic-ctor): New.
5520
93100c6b
MG
55212012-10-25 Marc Glisse <marc.glisse@inria.fr>
5522
5523 PR c++/54427
5524 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
5525
1efcb8c6
JM
55262012-10-23 Joseph Myers <joseph@codesourcery.com>
5527
5528 * c-common.h (pch_cpp_save_state): Declare.
5529 * c-target.def (c_preinclude): New hook.
5530 * c-opts.c (done_preinclude): New.
5531 (push_command_line_include): Handle default preincluded header.
5532 (cb_file_change): Call pch_cpp_save_state when calling
5533 push_command_line_include.
5534 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
5535 (pch_cpp_save_state): New.
5536 (pch_init): Call pch_cpp_save_state conditionally, instead of
5537 calling cpp_save_state.
5538
4a0ae68e
MLI
55392012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5540
5541 PR c/53063
5542 PR c/40989
5543 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
5544 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
5545 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
5546 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
5547 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
5548 * c-opts.c (c_common_handle_option): Remove explicit handling from
5549 here.
5550 (c_common_post_options): Likewise.
5551
67e4210b
EB
55522012-10-18 Eric Botcazou <ebotcazou@adacore.com>
5553
5554 * c-ada-spec.c (LOCATION_COL): Delete.
5555 (compare_location): New function.
5556 (compare_node): Use it.
5557 (compare_comment): Likewise.
5558
65d4f2cd
MLI
55592012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
5560
5561 PR c/53063
5562 PR c/40989
5563 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
5564 * c-opts.c (c_common_handle_option): Do not set them here. Add
5565 comment.
5566 (c_common_post_options): Likewise.
5567
909881cb
EB
55682012-10-16 Eric Botcazou <ebotcazou@adacore.com>
5569
5570 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
5571 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
5572 Remove POINTER_TYPE handling, add large unsigned handling and use
5573 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
5574
3a785c97
JJ
55752012-10-12 Jakub Jelinek <jakub@redhat.com>
5576
5577 PR c/54381
5578 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
5579 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
5580 locs and array of 3 trees instead of just single loc and single
5581 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
5582 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
5583 For *cmp* builtins that take two sources strings report warnings
5584 about first and second source, not about destination and source.
5585
5e54f81d
MG
55862012-10-12 Marc Glisse <marc.glisse@inria.fr>
5587
5588 PR c++/53055
5589 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
5590
f5b02f1e
EB
55912012-10-11 Eric Botcazou <ebotcazou@adacore.com>
5592
5593 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
5594 declaring something coming from another file.
5595
b46dbc6c
AC
55962012-10-10 Arnaud Charlet <charlet@adacore.com>
5597
f5b02f1e 5598 PR ada/54845
b46dbc6c
AC
5599 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
5600
5d9de0d0
PC
56012012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
5602
5603 PR c++/54194
5604 * c-common.c (warn_about_parentheses): Add location_t parameter;
5605 use EXPR_LOC_OR_LOC.
5606 * c-common.h: Update declaration.
5607
a212e43f
MG
56082012-10-09 Marc Glisse <marc.glisse@inria.fr>
5609
5610 PR c++/54427
5611 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
5612 more operations. Make error messages optional.
5613 * c-common.h (enum stv_conv): Moved from c-typeck.c.
5614 (scalar_to_vector): Declare.
5615
b1db7f91
JM
56162012-10-08 Jason Merrill <jason@redhat.com>
5617
5618 * c-common.c (c_common_reswords): Add thread_local.
5619
e28d52cf
DS
56202012-10-08 Dodji Seketeli <dodji@redhat.com>
5621
5622 PR c++/53528 C++11 attribute support
5623 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
5624 new functions.
5625 * c-common.c (check_cxx_fundamental_alignment_constraints): New
5626 static function.
5627 (handle_aligned_attribute): In choose strictest alignment
5628 among many. Use new check_cxx_fundamental_alignment_constraints.
5629 (handle_transparent_union_attribute): In c++11 attribute syntax,
5630 don't look through typedefs.
5631
3b78de56
AC
56322012-10-04 Arnaud Charlet <charlet@adacore.com>
5633
5634 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
5635 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
5636 out of dumpfile.h.
5637
6040bb5f
DC
56382012-09-25 Dehao Chen <dehao@google.com>
5639
5640 PR middle-end/54645
3b78de56 5641 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
5642 map when read in the pch.
5643
3f8257db 56442012-09-18 Arnaud Charlet <charlet@adacore.com>
0b07a57e
AC
5645
5646 * c-ada-spec.c: Style fixes.
5647
3f8257db 56482012-09-18 Thomas Quinot <quinot@adacore.com>
da5182be
TQ
5649
5650 * c.opt (-fada-spec-parent): Define new command line switch.
5651 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
5652 is specified, generate binding spec as a child of the specified unit.
5653
0ccb505d
PC
56542012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
5655 Manuel López-Ibáñez <manu@gcc.gnu.org>
5656
5657 PR c++/53210
5658 * c.opt ([Winit-self]): Enabled by -Wall in C++.
5659
c583af79
AC
56602012-08-23 Arnaud Charlet <charlet@adacore.com>
5661
5662 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
5663 for pointers, and add missing Convention C pragma.
5664 (print_ada_struct_decl): Add missing aliased keyword.
5665 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
5666
1a4049e7
JJ
56672012-08-17 Jakub Jelinek <jakub@redhat.com>
5668
5669 * c-common.c (sizeof_pointer_memaccess_warning): New function.
5670 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
5671 * c-opts.c (c_common_handle_option): Enable it for -Wall.
5672 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
5673 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
5674
70b5e7dc
RG
56752012-08-10 Richard Guenther <rguenther@suse.de>
5676
5677 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
5678
f8923f7e
SB
56792012-08-07 Steven Bosscher <steven@gcc.gnu.org>
5680
5681 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
5682 instead of separate pp_newline and pp_flush.
5683 (print_c_tree): Likewise.
5684
e45abe1f
RH
56852012-07-26 Richard Henderson <rth@redhat.com>
5686
5687 * c-common.c (handle_hot_attribute): Allow labels.
5688 (handle_cold_attribute): Likewise.
5689
332f1d24
JJ
56902012-07-20 Jakub Jelinek <jakub@redhat.com>
5691
5692 PR c++/28656
5693 * c-common.c (check_function_nonnull): Handle multiple nonnull
5694 attributes properly.
5695
7ee2468b
SB
56962012-07-16 Steven Bosscher <steven@gcc.gnu.org>
5697
5698 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
5699 * c-ada-spec.c: Likewise.
5700 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
5701
ee7b28eb
SB
57022012-07-14 Steven Bosscher <steven@gcc.gnu.org>
5703
5704 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
5705 Remove code conditional on it.
5706
6bdf3519
SB
57072012-07-11 Steven Bosscher <steven@gcc.gnu.org>
5708
5709 * c-gimplify.c: Do not include basic-block.h.
5710 * c-common.c: Do not include linfuncs.h.
5711
532aafad
SB
57122012-07-08 Steven Bosscher <steven@gcc.gnu.org>
5713
5714 * c-common.h: Include tree.h.
5715
8d0d1915
JM
57162012-07-02 Jason Merrill <jason@redhat.com>
5717
5718 PR c++/53524
5719 * c-common.c (get_priority): Call default_conversion.
5720
fbc873ad
UB
57212012-07-01 Uros Bizjak <ubizjak@gmail.com>
5722
5723 * c-pch.c (c_common_write_pch): Remove unused variables.
5724
d4a10d0a
SB
57252012-06-29 Steven Bosscher <steven@gcc.gnu.org>
5726
5727 * cppspec.c: Moved from gcc/ to here.
5728
6f3a2e23
KT
57292012-06-27 Kai Tietz <ktietz@redhat.com>
5730
5731 PR preprocessor/37215
5732 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
5733
8ca92d04
SB
57342012-06-21 Steven Bosscher <steven@gcc.gnu.org>
5735
5736 * c-common.h (c_common_print_pch_checksum): Remove.
5737 * c-pch.c: Do not include output.h.
5738 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
5739 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
5740 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
5741 (struct c_pch_header): Remove.
5742 (get_ident): Update gpch version.
5743 (pch_init): Do not print executable_checksum to asm_out_file.
5744 Do not fail if there is no asm_out_file to read back from. Set
5745 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
5746 (c_common_write_pch): Verify that nothing was written to asm_out_file
5747 since pch_init was called. Do not write a c_pch_header, and do not
5748 copy from asm_out_file to the PCH.
5749 (c_common_read_pch): Do not read a c_pch_header, and do not restore
5750 the content of asm_out_file from the PCH.
5751 (c_common_print_pch_checksum): Remove.
5752 * c-opts.c (c_common_init): Print out executable_checksum directly.
5753
70f42967
SB
57542012-06-19 Steven Bosscher <steven@gcc.gnu.org>
5755
5756 * c-target.def (objc_declare_unresolved_class_reference,
5757 objc_declare_class_definition): Add new hooks.
5758
a8781821
SB
57592012-06-19 Steven Bosscher <steven@gcc.gnu.org>
5760
5761 * c-lex.c: Do not include output.h.
5762 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
5763 Remove uses of ASM_OUTPUT_IDENT.
5764
9e1a8dd1
RR
57652012-06-15 Marc Glisse <marc.glisse@inria.fr>
5766
5767 PR c++/51033
5768 * c-common.h (c_build_vec_perm_expr): Move decl here.
5769 * c-common.c (c_build_vec_perm_expr): Move definition
5770 here.
5771
6f07a821
SB
57722012-06-06 Steven Bosscher <steven@gcc.gnu.org>
5773
5774 * c.opt (fconserve-space): Turn into a no-op.
5775
9faeb493 57762012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
5777
5778 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
5779 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
5780 both the start and end of the function.
5781
a4b7d13c
SB
57822012-06-04 Steven Bosscher <steven@gcc.gnu.org>
5783
5784 * c-common.c: Do not include output.h.
5785 * c-pragma.c: Likewise.
5786
c265f413
SA
57872012-06-04 Steven Bosscher <steven@gcc.gnu.org>
5788
5789 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
5790 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
5791 (lang_decl_name): Handle namespace decls.
5792
be7a421e
SB
57932012-05-31 Steven Bosscher <steven@gcc.gnu.org>
5794
5795 * c-ada-spec.c: Do not include output.h.
5796 * c-semantics.c: Likewise.
5797
65de6659
JM
57982012-05-29 Joseph Myers <joseph@codesourcery.com>
5799
5800 * c-common.c: Fix typo.
5801
ca5f4331
MM
58022012-05-29 Michael Matz <matz@suse.de>
5803
5804 * c-common.h (c_expand_decl): Remove prototype.
5805
4f7f7aca
MLI
58062012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
5807
5808 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
5809 * c-opts.c (c_common_handle_option): Remove code handling
5810 warn_missing_braces.
5811
4a792f9b
PC
58122012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
5813
5814 PR c++/25137
5815 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
5816 -Wmissing_braces.
5817
650dc14a
DS
58182012-05-22 Dodji Seketeli <dodji@redhat.com>
5819
5820 PR c++/53322
5821 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
5822
9b095bf1
MLI
58232012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
5824
5825 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
5826 * c-opts.c (c_common_handle_option): Do not handle explicitly
5827 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
5828
0b2c4be5
DS
58292012-05-16 Dodji Seketeli <dodji@redhat.com>
5830
5831 PR preprocessor/7263
5832 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
5833 to cpp_classify_number. For diagnostics, use the precise location
5834 instead of the global input_location.
5835
a1bde5af
PC
58362012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
5837
d02924ef 5838 PR c++/11856
a1bde5af
PC
5839 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
5840
d1ede5f4
BS
58412012-05-14 Bernd Schmidt <bernds@codesourcery.com>
5842
a1bde5af 5843 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 5844
f2bc201f
MLI
58452012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
5846
5847 PR 53063
5848 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
5849 Wreorder): Use LangEnabledBy.
5850 * c-opts.c (c_common_handle_option): Do not enable them
5851 explicitly. Call lang-specific generated functions.
5852 (c_common_post_options): Do not set them here.
5853
95744782
MLI
58542012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
5855
5856 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
5857 Wmissing-field-initializers,Wmissing-parameter-type,
5858 Wold-style-declaration,Woverride-init): Use EnabledBy.
5859 * c-opts.c (c_common_post_options): Do not set here explicitly.
5860
7d5a5747
MLI
58612012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
5862
5863 PR 53063
5864 * c-opts.c (c_common_handle_option): Use handle_generated_option
5865 to enable sub-options.
5866
5a3c9cf2
PC
58672012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
5868
5869 PR c++/53158
5870 * c-common.c (warnings_for_convert_and_check): Use warning_at.
5871
3ac8781c
RG
58722012-05-10 Richard Guenther <rguenther@suse.de>
5873
5874 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
5875 adjust commentary about TYPE_IS_SIZETYPE types.
5876
1e537948
MLI
58772012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5878
5879 PR c++/53261
5880 * c-common.c (warn_logical_operator): Check that argument of
5881 integer_zerop is not NULL.
5882
f2c4a785
MLI
58832012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
5884
5885 PR c/43772
5886 * c-common.c (warn_logical_operator): Do not warn if either side
5887 is already true or false.
5888
50f305ca
MLI
58892012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
5890
5891 PR c/51712
5892 * c-common.c (expr_original_type): New.
5893 (shorten_compare): Do not warn for enumeration types.
5894
0c3641b0
MLI
58952012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
5896
5897 * c.opt (fpermissive): Add Var(flag_permissive).
5898
7edaa4d2
MG
58992012-04-30 Marc Glisse <marc.glisse@inria.fr>
5900
5901 PR c++/51033
5902 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
5903 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
5904
b9c8da34
DS
59052012-04-30 Dodji Seketeli <dodji@redhat.com>
5906
5907 Add -Wvarargs option
5908 * c.opt (Wvarargs): Define new option.
5909
e6c69da0
MLI
59102012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5911
5912 * c-common.c (check_function_arguments): Replace
5913 Wmissing-format-attribute with Wsuggest-attribute=format.
5914
90137d8f
MLI
59152012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5916
5917 * c.opt (Wsuggest-attribute=format): New. Alias of
5918 Wmissing-format-attribute.
5919 * c-format.c (decode_format_type): Replace
5920 Wmissing-format-attribute with Wsuggest-attribute=format.
5921 (check_function_format): Likewise.
5922
9faeb493 59232012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
5924
5925 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
5926 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
5927 * c.opt: Add Wliteral-suffix.
5928
c1771a20
MLI
59292012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
5930
5931 PR c/44774
5932 * c.opt (Wpedantic): New.
5933 (pedantic): Alias Wpedantic.
5934 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
5935 (c_common_post_options): Likewise.
5936 (sanitize_cpp_opts): Likewise.
5937 * c-lex.c (interpret_float): Likewise.
5938 * c-format.c (check_format_types): Likewise.
5939 * c-common.c (pointer_int_sum): Likewise.
5940 (c_sizeof_or_alignof_type): Likewise.
5941 (c_add_case_label): Likewise.
5942 (c_do_switch_warnings): Likewise.
5943 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
5944
04b391c1
JM
59452012-04-15 Jason Merrill <jason@redhat.com>
5946
5947 PR c++/52818
5948 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
5949 (C_STD_NAME): Distinguish between C++98 and C++11.
5950
ac868f29
EB
59512012-04-11 Eric Botcazou <ebotcazou@adacore.com>
5952
5953 PR target/52624
5954 * c-common.h (uint16_type_node): Rename into...
5955 (c_uint16_type_node): ...this.
5956 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
5957 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
5958
fd4116f4
MLI
59592012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
5960
5961 * c-common.c (warn_if_unused_value): Move definition to here.
5962 * c-common.h (warn_if_unused_value): Move declaration to here.
5963
573ac65e
WB
59642012-03-23 William Bader <williambader@hotmail.com>
5965
5966 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
5967
552b8185
JM
59682012-03-20 Jason Merrill <jason@redhat.com>
5969
5970 * c-common.h (enum cxx_dialect): Add cxx1y.
5971 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
5972 test.
5973 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
5974 * c-opts.c (c_common_post_options): Likewise.
5975 (set_std_cxx1y): New.
5976 (c_common_handle_option): Call it.
5977 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
5978
04398fa8
PC
59792012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
5980
5981 PR c++/14710
5982 * c.opt ([Wuseless-cast]): Add.
5983
d2a12ae7
RG
59842012-03-16 Richard Guenther <rguenther@suse.de>
5985
5986 * c-pretty-print.c (pp_c_initializer_list): Adjust.
5987
a12bf402
MLI
59882012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5989
5990 PR c++/44783
5991 * c.opt (ftemplate-backtrace-limit) Add.
5992
5c30094f
RO
59932012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5994
5995 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
5996 handling.
5997 * c-pragma.c (handle_pragma_extern_prefix): Remove.
5998 (init_pragma): Don't register extern_prefix.
5999
21fa2faf
RG
60002012-03-12 Richard Guenther <rguenther@suse.de>
6001
6002 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
6003 (builtin_type_for_size): Likewise.
6004
e3793c6f
JJ
60052012-02-13 Jakub Jelinek <jakub@redhat.com>
6006
6007 PR c++/52215
6008 * c-common.c (sync_resolve_params): Don't decide whether to convert
6009 or not based on TYPE_SIZE comparison, convert whenever arg_type
6010 is unsigned INTEGER_TYPE.
6011
93286335
PC
60122012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
6013
6014 PR c/52118
6015 * c.opt ([Wunused-local-typedefs]): Fix description.
6016
7a421706
MS
60172012-01-24 Mike Stump <mikestump@comcast.net>
6018
6019 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
6020 exactly.
6021
ba9b1f11
RG
60222012-01-18 Richard Guenther <rguenther@suse.de>
6023
6024 * c-opts.c (c_common_post_options): Reset LTO flags if
6025 we are about to generate a PCH.
6026
465406be
PC
60272012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
6028
6029 PR c++/51777
6030 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
6031 use pp_unsigned_wide_integer.
6032
aee15221
RG
60332012-01-10 Richard Guenther <rguenther@suse.de>
6034
6035 PR middle-end/51806
6036 * c-opts.c (c_common_handle_option): Move -Werror handling
6037 to language independent code.
6038
5720c0dc
RG
60392012-01-05 Richard Guenther <rguenther@suse.de>
6040
6041 PR middle-end/51764
6042 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
6043 from common.opt.
6044
73ac190a
PC
60452011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
6046
6047 PR c++/51316
6048 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
6049 of array types with an unknown bound.
6050
48b0b196
JM
60512011-12-20 Joseph Myers <joseph@codesourcery.com>
6052
6053 * c-common.c (flag_isoc99): Update comment to refer to C11.
6054 (flag_isoc1x): Change to flag_isoc11.
6055 * c-common.h (flag_isoc99): Update comment to refer to C11.
6056 (flag_isoc1x): Change to flag_isoc11.
6057 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
6058 C11.
6059 * c-opts.c (set_std_c1x): Change to set_std_c11.
6060 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
6061 Call set_std_c11.
6062 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
6063 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
6064 * c.opt (std=c1x): Change to std=c11. Document as non-draft
6065 standard.
6066 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
6067 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
6068 (std=gnu1x): Make alias of std=gnu11.
6069
d58d6eb5
JM
60702011-12-19 Jason Merrill <jason@redhat.com>
6071
6072 PR c++/51228
6073 * c-common.c (handle_transparent_union_attribute): Check the first
6074 field if the type is complete.
6075
b3908fcc
JW
60762011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
6077
6078 PR libstdc++/51365
6079 * c-common.c (RID_IS_FINAL): Add.
6080 * c-common.h (RID_IS_FINAL): Add.
6081
fea3ca91
IS
60822011-11-30 Iain Sandoe <iains@gcc.gnu.org>
6083
6084 * c.opt (fgnu-runtime): Provide full description.
6085 (fnext-runtime): Likewise.
6086 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
6087
62bad7cd
AM
60882011-11-28 Andrew MacLeod <amacleod@redhat.com>
6089
6090 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
6091 predefines in one place. Add LOCK_FREE predefines.
6092 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
6093 new func.
6094
c466c4ff
AM
60952011-11-24 Andrew MacLeod <amacleod@redhat.com>
6096
6097 PR c/51256
9faeb493 6098 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 6099 conditions
9faeb493
UB
6100 (resolve_overloaded_atomic_exchange,
6101 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
6102 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
6103 error_mark_node for error conditions.
9faeb493 6104
a5952633
RG
61052011-11-08 Richard Guenther <rguenther@suse.de>
6106
6107 PR middle-end/51010
6108 c-family/
6109
0a35513e
AH
61102011-11-07 Richard Henderson <rth@redhat.com>
6111 Aldy Hernandez <aldyh@redhat.com>
6112 Torvald Riegel <triegel@redhat.com>
6113
6114 Merged from transactional-memory.
6115
6116 * c-common.c (handle_tm_wrap_attribute,
6117 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
6118 (struct c_common_reswords): Added __transaction* keywords.
6119 (struct c_common_attribute_table): Added transaction* and tm_regparm
6120 attributes.
6121 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
6122 masks.
6123 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
6124 find_tm_attribute): Declare.
6125
6d87092d
JM
61262011-11-07 Jason Merrill <jason@redhat.com>
6127
6128 PR c++/35688
6129 * c-common.c, c-common.h: Revert yesterday's changes.
6130
8e7860a1
JM
61312011-11-06 Jason Merrill <jason@redhat.com>
6132
6133 PR c++/35688
6134 * c-common.c (decl_has_visibility_attr): Split out from...
6135 (c_determine_visibility): ...here.
6136 * c-common.h: Declare it.
6137
d19fa6b5
JM
61382011-11-06 Joseph Myers <joseph@codesourcery.com>
6139
6140 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
6141 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
6142 type.
6143 (check_user_alignment): New. Split out of
6144 handle_aligned_attribute. Disallow integer constants with
6145 noninteger types. Conditionally allow zero.
6146 (handle_aligned_attribute): Use check_user_alignment.
6147 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
6148
86951993
AM
61492011-11-06 Andrew MacLeod <amacleod@redhat.com>
6150 Richard Henderson <rth@redhat.com>
6151
6152 Merged from cxx-mem-model.
6153
6154 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 6155 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
6156 parameters that are the same type size.
6157 (get_atomic_generic_size): New. Find size of generic
6158 atomic function parameters and do typechecking.
6159 (add_atomic_size_parameter): New. Insert size into parameter list.
6160 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
6161 either __atomic_exchange_n or external library call.
9faeb493 6162 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 6163 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 6164 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
6165 __atomic_load_n or an external library call.
6166 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
6167 __atomic_store_n or an external library call.
6168 (resolve_overloaded_builtin): Handle new __atomic builtins.
6169
cf9e9959
EB
61702011-11-04 Eric Botcazou <ebotcazou@adacore.com>
6171
6172 PR c++/50608
6173 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
6174 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
6175 <INDIRECT_REF>: Return the argument.
6176 <ARRAY_REF>: Remove special code for negative offset.
6177 Call fold_build_pointer_plus instead of size_binop.
6178 (fold_offsetof): Remove STOP_REF argument and adjust.
6179 * c-common.h (fold_offsetof_1): Declare.
6180 (fold_offsetof): Remove STOP_REF argument.
6181
25339f10
JM
61822011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
6183
6184 PR c++/50810
6185 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
6186 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
6187 Wnarrowing for C++0x and C++98.
6188 * c.opt ([Wnarrowing]): Update.
6189
89401152
PC
61902011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
6191
6192 PR c++/44277
6193 * c.opt: Add Wzero-as-null-pointer-constant.
6194
97e3ad20
JM
61952011-10-31 Jason Merrill <jason@redhat.com>
6196
15694fdd
JM
6197 * c.opt (-fdeduce-init-list): Off by default.
6198
97e3ad20
JM
6199 PR c++/50920
6200 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
6201 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
6202 and -Wc++11-compat.
6203 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
6204
fb9120e3
RAV
62052011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
6206
6207 PR c++/30066
6208 * c.opt (fvisibility-inlines-hidden): Description change.
6209
3ce4f9e4
ESR
62102011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
6211
6212 Implement C++11 user-defined literals.
6213 * c-common.c (build_userdef_literal): New.
6214 * c-common.def: New tree code.
6215 * c-common.h (tree_userdef_literal): New tree struct and accessors.
6216 * c-lex.c (interpret_float): Add suffix parm.
6217 (c_lex_with_flags): Build literal tokens.
6218
5f53c243
PC
62192011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
6220
6221 PR c++/50841
6222 Revert:
6223 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
6224
6225 PR c++/50810
6226 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
6227 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
6228 Wnarrowing for C++0x and C++98.
6229 * c.opt ([Wnarrowing]): Update.
6230
263734e1
PC
62312011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
6232
6233 PR c++/50810
6234 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
6235 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
6236 Wnarrowing for C++0x and C++98.
6237 * c.opt ([Wnarrowing]): Update.
6238
d2e312d7
PC
62392011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
6240
6241 PR c++/45385
6242 * c-common.c (conversion_warning): Remove code looking for
6243 artificial operands.
6244
d17687f6
DS
62452011-10-18 Dodji Seketeli <dodji@redhat.com>
6246
6247 PR bootstrap/50760
6248 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 6249 !NO_IMPLICIT_EXTERN_C.
d17687f6 6250
fc8396e9
PC
62512011-10-17 Michael Spertus <mike_spertus@symantec.com>
6252
6253 * c-common.c (c_common_reswords): Add __bases,
6254 __direct_bases.
6255 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
6256
62572011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
6258
6259 PR c++/50757
6260 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
6261
847e697a
TT
62622011-10-15 Tom Tromey <tromey@redhat.com>
6263 Dodji Seketeli <dodji@redhat.com>
6264
6265 * c.opt (fdebug-cpp): New option.
6266 * c-opts.c (c_common_handle_option): Handle the option.
6267 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
6268 output stream in parameter. Factorized from ...
6269 (maybe_print_line): ... this. Dump location debug information when
6270 -fdebug-cpp is in effect.
6271 (print_line_1): New static function. Takes an output stream in
6272 parameter. Factorized from ...
6273 (print_line): ... here. Dump location information when -fdebug-cpp
6274 is in effect.
6275 (scan_translation_unit): Dump location information when
6276 -fdebug-cpp is in effect.
6277
92582b75
TT
62782011-10-15 Tom Tromey <tromey@redhat.com>
6279 Dodji Seketeli <dodji@redhat.com>
6280
6281 * c.opt (ftrack-macro-expansion): New option. Handle it with and
6282 without argument.
6283 * c-opts.c (c_common_handle_option)<case
6284 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
6285 cases. Handle -ftrack-macro-expansion with and without argument.
6286
46427374
TT
62872011-10-15 Tom Tromey <tromey@redhat.com>
6288 Dodji Seketeli <dodji@redhat.com>
6289
6290 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
6291 (print_line, cb_define, do_line_change): Adjust to avoid touching
6292 the internals of struct line_map. Use the public API instead.
6293 * c-pch.c (c_common_read_pch): Likewise.
6294 * c-lex.c (fe_file_change): Likewise.
6295
fc8396e9
PC
62962011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
6297
6298 PR c++/17212
6299 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
6300
63012011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
6302
6303 PR c++/33067
6304 * c-pretty-print.c (pp_c_floating_constant): Output
6305 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
6306
e79983f4
MM
63072011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
6308
6309 * c-common.c (def_builtin_1): Delete old interface with two
6310 parallel arrays to hold standard builtin declarations, and replace
6311 it with a function based interface that can support creating
6312 builtins on the fly in the future. Change all uses, and poison
6313 the old names. Make sure 0 is not a legitimate builtin index.
6314 * c-omp.c (c_finish_omp_barrier): Ditto.
6315 (c_finish_omp_taskwait): Ditto.
6316 (c_finish_omp_flush): Ditto.
6317
6637388f
TG
63182011-10-11 Tristan Gingold <gingold@adacore.com>
6319
6320 * c.opt: (fallow-parameterless-variadic-functions): New.
6321
3797cb21
DS
63222011-09-08 Dodji Seketeli <dodji@redhat.com>
6323
6324 PR c++/33255 - Support -Wunused-local-typedefs warning
6325 * c-common.h (struct c_language_function::local_typedefs): New
6326 field.
9faeb493
UB
6327 (record_locally_defined_typedef, maybe_record_typedef_use)
6328 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 6329 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
6330 (maybe_record_typedef_use)
6331 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
6332 * c.opt: Declare new -Wunused-local-typedefs flag.
6333
693ddb1b
EB
63342011-09-06 Eric Botcazou <ebotcazou@adacore.com>
6335
6336 PR middle-end/50266
6337 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
6338 computations.
6339
830c740f
RG
63402011-09-05 Richard Guenther <rguenther@suse.de>
6341
6342 * c-common.c (complete_array_type): Use ssize_int (-1) instead
6343 of integer_minus_one_node for empty array upper bounds.
6344
892a371f
DS
63452011-08-28 Dodji Seketeli <dodji@redhat.com>
6346
6347 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
6348 it's the first time it's being called on this main TU.
6349
0e3fdb48
RB
63502011-08-24 Richard Guenther <rguenther@suse.de>
6351
6352 PR c/49396
6353 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
6354
63552011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
6356
6357 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
6358 defined in cpp_init_builtins and c_cpp_builtins.
6359
d4a83c10
JM
63602011-08-19 Joseph Myers <joseph@codesourcery.com>
6361
6362 * c-common.c (c_common_reswords): Add __builtin_complex.
6363 * c-common.h (RID_BUILTIN_COMPLEX): New.
6364
bbceee64
JM
63652011-08-18 Joseph Myers <joseph@codesourcery.com>
6366
6367 * c-common.c (c_common_reswords): Add _Noreturn.
6368 (keyword_is_function_specifier): Handle RID_NORETURN.
6369 * c-common.h (RID_NORETURN): New.
6370
3f8257db 63712011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
0e3a99ae
AS
6372
6373 * c-common.c (unsafe_conversion_p): New function. Check if it is
6374 unsafe to convert an expression to the type.
6375 (conversion_warning): Adjust, use unsafe_conversion_p.
6376 * c-common.h (unsafe_conversion_p): New function declaration.
6377
20906c66
JJ
63782011-08-02 Jakub Jelinek <jakub@redhat.com>
6379
6380 * c-common.h (c_finish_omp_atomic): Adjust prototype.
6381 (c_finish_omp_taskyield): New prototype.
6382 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
6383 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
6384 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
6385 or RHS1 have side-effects, evaluate those too in the right spot,
6386 if it is a decl and LHS is also a decl, error out if they
6387 aren't the same.
6388 (c_finish_omp_taskyield): New function.
6389 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
6390 * c-pragma.c (omp_pragmas): Add taskyield.
6391 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
6392 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
6393 PRAGMA_OMP_CLAUSE_MERGEABLE.
6394
770e5a2e
DS
63952011-07-25 Dodji Seketeli <dodji@redhat.com>
6396
6397 * c-common.h (set_underlying_type): Remove parm name from
6398 declaration.
6399
1baae426
RG
64002011-07-25 Romain Geissler <romain.geissler@gmail.com>
6401
6402 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 6403
fcb21722
JM
64042011-07-22 Jason Merrill <jason@redhat.com>
6405
76f86d00
JM
6406 PR c++/49793
6407 * c.opt (Wnarrowing): New.
6408
3a636414
JM
6409 PR c++/30112
6410 * c-common.h: Declare c_linkage_bindings.
6411 * c-pragma.c (handle_pragma_redefine_extname): Use it.
6412
fcb21722
JM
6413 PR c++/49813
6414 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
6415 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
6416 as flag_isoc99 for 'restrict'.
6417 (pp_c_specifier_qualifier_list): Likewise for _Complex.
6418
02614448
ILT
64192011-07-21 Ian Lance Taylor <iant@google.com>
6420
6421 PR middle-end/49705
6422 * c-common.c (c_disable_warnings): New static function.
6423 (c_enable_warnings): New static function.
6424 (c_fully_fold_internal): Change local unused_p to bool. Call
6425 c_disable_warnings and c_enable_warnings rather than change
6426 c_inhibit_evaluation_warnings.
6427
34429675
JM
64282011-07-20 Jason Merrill <jason@redhat.com>
6429
6430 PR c++/6709 (DR 743)
6431 PR c++/42603 (DR 950)
6432 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
6433 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
6434 (CPP_DECLTYPE): New.
6435 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
6436
5d49b6a7
RG
64372011-07-19 Richard Guenther <rguenther@suse.de>
6438
6439 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
6440 * c-omp.c (c_finish_omp_for): Likewise.
6441
e84a58ff
EB
64422011-07-12 Eric Botcazou <ebotcazou@adacore.com>
6443
6444 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
6445 body on the next line.
6446
329af3c7
JM
64472011-07-08 Jason Merrill <jason@redhat.com>
6448
4063e61b
JM
6449 PR c++/45437
6450 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
6451
329af3c7
JM
6452 PR c++/49673
6453 * c-common.c (c_apply_type_quals_to_decl): Don't check
6454 TYPE_NEEDS_CONSTRUCTING.
6455
1a072294
RG
64562011-07-06 Richard Guenther <rguenther@suse.de>
6457
6458 * c-common.c (c_common_nodes_and_builtins):
6459 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
6460
fce5dddd
RG
64612011-07-05 Richard Guenther <rguenther@suse.de>
6462
6463 * c-common.c (c_common_nodes_and_builtins): Build all common
6464 tree nodes first.
6465
45d439ac
JJ
64662011-06-27 Jakub Jelinek <jakub@redhat.com>
6467
56300785
JJ
6468 * c-common.h (c_tree_chain_next): New static inline function.
6469
45d439ac
JJ
6470 * c-common.c (check_builtin_function_arguments): Handle
6471 BUILT_IN_ASSUME_ALIGNED.
6472
e0a8ecf2
AM
64732011-06-21 Andrew MacLeod <amacleod@redhat.com>
6474
6475 * c-common.c: Add sync_ or SYNC__ to builtin names.
6476 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
6477
64782011-06-20 Pierre Vittet <piervit@pvittet.com>
6479
6480 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
6481 handler.
6482 (gen_pragma_handler): New union.
6483 (internal_pragma_handler): New type.
6484 (c_register_pragma_with_data)
6485 (c_register_pragma_with_expansion_and_data): New functions.
6486
6487 * c-pragma.c (registered_pragmas, c_register_pragma_1)
6488 (c_register_pragma, c_register_pragma_with_expansion)
6489 (c_invoke_pragma_handler): Changed to work with
6490 internal_pragma_handler.
6491 (c_register_pragma_with_data)
6492 (c_register_pragma_with_expansion_and_data): New functions.
6493
677f3fa8
JM
64942011-06-14 Joseph Myers <joseph@codesourcery.com>
6495
6496 * c-common.c: Include common/common-target.h.
6497 (handle_section_attribute): Use
6498 targetm_common.have_named_sections.
6499 * c-cppbuiltin.c: Include common/common-target.h.
6500 (c_cpp_builtins): Use targetm_common.except_unwind_info.
6501
d7fc8c14
RG
65022011-06-10 Richard Guenther <rguenther@suse.de>
6503
6504 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
6505 to print a IDENTIFIER_NODE.
6506
10e48e39
RO
65072011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6508 Joseph Myers <joseph@codesourcery.com>
6509
6510 * c.opt (fbuilding-libgcc): New option.
6511 * c-cppbuiltin.c (c_cpp_builtins): Define
6512 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
6513
6976ae51
JM
65142011-06-07 Jason Merrill <jason@redhat.com>
6515
3ff60975
JM
6516 * c-common.c (max_tinst_depth): Lower default to 900.
6517
6976ae51
JM
6518 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
6519
009db074
RG
65202011-06-07 Richard Guenther <rguenther@suse.de>
6521
6522 * c-common.c (c_common_nodes_and_builtins): Do not set
6523 size_type_node or call set_sizetype.
6524
b4592b92
DS
65252011-06-07 Dodji Seketeli <dodji@redhat.com>
6526
6527 PR debug/49130
6528 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 6529 type when using pointer comparison to compare types.
b4592b92 6530
014ab419
JW
65312011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
6532
6533 * c.opt: Add -Wdelete-non-virtual-dtor.
6534 * c-opts.c (c_common_handle_option): Include it in -Wall.
6535
4f60111f
NF
65362011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
6537
6538 PR bootstrap/49190
6539
6540 Revert:
6541 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
6542
6543 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
6544 not tree_common.
6545
4cc4f2f4
JJ
65462011-05-27 Jakub Jelinek <jakub@redhat.com>
6547
6548 PR c++/49165
6549 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
6550 C++ don't call c_common_truthvalue_conversion on void type arms.
6551
38e01f9e
NF
65522011-05-27 Nathan Froyd <froydnj@codesourcery.com>
6553
6554 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
6555 (stmt_list_stack): Define.
6556 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
6557 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
6558
92e948a8
NF
65592011-05-26 Nathan Froyd <froydnj@codesourcery.com>
6560
6561 * c-common.c (warning_candidate_p): Check for BLOCKs.
6562
a2fc3e63
NF
65632011-05-26 Nathan Froyd <froydnj@codesourcery.com>
6564
6565 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
6566 not tree_common.
6567
0957c029
JJ
65682011-05-25 Jakub Jelinek <jakub@redhat.com>
6569
6570 * c-common.c (def_fn_type): Remove extra va_end.
6571
828fb3ba
JM
65722011-05-23 Jason Merrill <jason@redhat.com>
6573
6574 PR c++/48106
6575 * c-common.c (c_common_get_narrower): New.
6576 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
6577
dde05067
NF
65782011-05-23 Nathan Froyd <froydnj@codesourcery.com>
6579
6580 * c-common.h (check_function_arguments): Tweak prototype of
6581 check_function_arguments.
6582 * c-common.c (check_function_arguments): Likewise. Adjust
6583 calls to check_function_nonnull, check_function_format, and
6584 check_function_sentinel.
6585 (check_function_sentinel): Take a FUNCTION_TYPE rather than
6586 separate attributes and typelist arguments. Use
6587 FOREACH_FUNCTION_ARGS to iterate over argument types.
6588
3c0d13bf
PC
65892011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
6590
6591 * c-common.c (c_common_reswords): Reorder.
6592 * c-common.h (rid): Likewise.
6593
8242dd04
NF
65942011-05-10 Nathan Froyd <froydnj@codesourcery.com>
6595
6596 * c-common.c (def_fn_type): Don't call build_function_type, call
6597 build_function_type_array or build_varargs_function_type_array
6598 instead.
6599 (c_common_nodes_and_builtins): Likewise.
6600
3d528853
NF
66012011-05-05 Nathan Froyd <froydnj@codesourcery.com>
6602
6603 * c-common.c (c_add_case_label): Omit the loc argument to
6604 build_case_label.
6605 * c-common.h (build_case_label): Remove.
6606 * c-semantics.c (build_case_label): Remove.
6607
a04a722b
JM
66082011-05-05 Joseph Myers <joseph@codesourcery.com>
6609
6610 * c-objc.h (objc_start_method_definition): Update prototype.
6611 * stub-objc.c (objc_start_method_definition): Add extra parameter.
6612
e19a18d4
NF
66132011-05-04 Nathan Froyd <froydnj@codesourcery.com>
6614
6615 * c-common.c (check_main_parameter_types): Reindent. Don't use
6616 TYPE_ARG_TYPES directly.
6617 (handle_nonnull_attribute): Likewise.
6618 (sync_resolve_params): Likewise.
6619 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
6620 to check_format_string.
6621 (handle_format_attribute): Likewise.
6622 (check_format_string): Take a function type to examine instead of
6623 a type list. Use a function_arg_iterator to step through argument
6624 types.
6625
c62c040f
RG
66262011-05-04 Richard Guenther <rguenther@suse.de>
6627
6628 * c-common.c (fix_string_type): Use size_int for index type bounds.
6629 (start_fname_decls): Do not pass NULL to build_int_cst.
6630 (c_init_attributes): Likewise.
6631 * c-lex.c (c_lex_with_flags): Likewise.
6632
c12ff9d8
JM
66332011-04-27 Jason Merrill <jason@redhat.com>
6634
6635 * c-common.c (make_tree_vector_from_list): New.
6636 * c-common.h: Declare it.
6637
304dfbe3
RG
66382011-04-26 Richard Guenther <rguenther@suse.de>
6639
6640 PR preprocessor/48248
6641 * c-ppoutput.c (maybe_print_line): Always optimize newlines
6642 for output size with -P.
6643
3c0d13bf
PC
66442011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
6645
6646 * c-common.c (struct c_common_resword): Add __underlying_type.
6647 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
6648
04695783
JM
66492011-04-20 Jim Meyering <meyering@redhat.com>
6650
6651 * c-format.c (init_dollar_format_checking): Remove useless
6652 if-before-free.
6653
0dc33c3c
NP
66542011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
6655
6656 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 6657 (objc_detect_field_duplicates): New.
0dc33c3c 6658 * stub-objc.c: Likewise.
3c0d13bf 6659
c59633d9
NP
66602011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6661
6662 * stub-objc.c (objc_declare_protocols): Renamed to
6663 objc_declare_protocol.
6664 * c-objc.h: Likewise.
3c0d13bf 6665
32dabdaf
NP
66662011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6667
6668 * stub-objc.c (objc_declare_class): Updated argument name.
6669
81f653d6
NF
66702011-04-12 Nathan Froyd <froydnj@codesourcery.com>
6671
6672 * c-common.h (c_common_init_ts): Declare.
6673 * c-common.c (c_common_init_ts): Define.
6674
eb345401
NP
66752011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6676
6677 * c-objc.h (objc_build_message_expr): Updated prototype.
6678 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 6679
a358e188
MJ
66802011-04-12 Martin Jambor <mjambor@suse.cz>
6681
6682 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
6683 of cgraph_node.
6684
e6313a78
RG
66852011-04-11 Richard Guenther <rguenther@suse.de>
6686
6687 * c-common.c (complete_array_type): Build a range type of
6688 proper type.
6689
dcf0c47e
NF
66902011-04-08 Nathan Froyd <froydnj@codesourcery.com>
6691
6692 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
6693 (handle_type_generic_attribute): Likewise.
6694
1ee44b26
JM
66952011-04-07 Jason Merrill <jason@redhat.com>
6696
6697 PR c++/48450
6698 * c-common.c (c_common_truthvalue_conversion): Don't ignore
6699 conversion from C++0x scoped enum.
6700
acce4e77
JM
67012011-04-06 Joseph Myers <joseph@codesourcery.com>
6702
6703 * c-target-def.h: New file.
6704 * c-target.def: New file.
6705 * c-target.h: New file.
6706 * c-common.c (targetcm): Don't define here.
6707 * c-common.h (default_handle_c_option): Declare.
6708 * c-format.c: Include c-target.h instead of target.h.
6709 * c-opts.c: Include c-target.h instead of target.h. Explicitly
6710 include tm.h.
6711 (default_handle_c_option): Move from targhooks.c.
6712
e2eefb55
JJ
67132011-03-29 Jakub Jelinek <jakub@redhat.com>
6714
6715 PR preprocessor/48248
6716 * c-ppoutput.c (print): Add src_file field.
6717 (init_pp_output): Initialize it.
6718 (maybe_print_line): Don't optimize by adding up to 8 newlines
6719 if map->to_file and print.src_file are different file.
6720 (print_line): Update print.src_file.
6721
ba78087b
KT
67222011-03-25 Kai Tietz <ktietz@redhat.com>
6723
6724 * c-ada-spec.c (compare_comment): Use filename_cmp
6725 instead of strcmp for filename.
6726
0edf1bb2
JL
67272011-03-25 Jeff Law <law@redhat.com>
6728
adfac8df 6729 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 6730
c7dc8804
JM
67312011-03-25 Jason Merrill <jason@redhat.com>
6732
6733 * c.opt: Add -std=c++03.
6734
d1d879b1
EB
67352011-03-22 Eric Botcazou <ebotcazou@adacore.com>
6736
6737 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
6738
3f8257db 67392011-03-17 Kai Tietz <ktietz@redhat.com>
62d784f7
KT
6740
6741 PR target/12171
5050afdf
KT
6742 * c-pretty-print.c (pp_c_specifier_qualifier_list):
6743 Display allowed attributes for function pointer types.
6744 (pp_c_attributes_display): New function to display
6745 attributes having affects_type_identity flag set to true.
6746 * c-pretty-print.h (pp_c_attributes_display): New prototype.
6747
62d784f7
KT
6748 * c-common.c (c_common_attribute_table):
6749 Add new element.
6750 (c_common_format_attribute_table): Likewise.
6751
82d37118
JM
67522011-03-18 Jason Merrill <jason@redhat.com>
6753
49a000c3
JM
6754 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
6755 * c-common.h: Don't declare it here.
6756 * c-common.c: Or define it here.
6757 * c-opts.c (c_common_handle_option): Or set it here.
6758
82d37118
JM
6759 PR c++/35315
6760 * c-common.c (handle_transparent_union_attribute): Don't
6761 make a duplicate type in C++.
6762
17bc631c
JM
67632011-03-15 Jason Merrill <jason@redhat.com>
6764
6765 * c-common.c (max_constexpr_depth): New.
6766 * c-common.h: Declare it.
6767 * c-opts.c (c_common_handle_option): Set it.
6768 * c.opt (fconstexpr-depth): New option.
6769
1b9b91a6
JM
67702011-03-11 Jason Merrill <jason@redhat.com>
6771
f231b5ff
JM
6772 * c-common.c (attribute_takes_identifier_p): Add missing const.
6773
1b9b91a6
JM
6774 PR c++/46803
6775 * c-common.c (attribute_takes_identifier_p): Assume that an
6776 unknown attribute takes an identifier.
6777
a19e4d44
NF
67782011-03-07 Nathan Froyd <froydnj@codesourcery.com>
6779
6780 PR c/47786
6781 * c-common.c (c_type_hash): Call list_length instead of iterating
6782 through DECL_CHAIN. Rename 'i' to 'n_elements'.
6783
982d62f6
JJ
67842011-02-19 Jakub Jelinek <jakub@redhat.com>
6785
6786 PR c/47809
6787 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
6788
0a256240
NP
67892011-02-17 Iain Sandoe <iains@gcc.gnu.org>
6790
6791 * c.opt (fobjc-abi-version=) New.
6792 (fobjc-nilcheck): New.
6793
ba9e6dd5
NF
67942011-02-03 Nathan Froyd <froydnj@codesourcery.com>
6795
6796 PR c++/46890
6797 * c-common.h (keyword_is_decl_specifier): Declare.
6798 * c-common.c (keyword_is_decl_specifier): Define.
6799 (keyword_is_function_specifier): New function.
6800
7273813a
JJ
68012011-01-26 Jakub Jelinek <jakub@redhat.com>
6802
6803 PR c/47473
6804 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
6805 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
6806 REAL_TYPE.
6807
908ef79b
AC
68082011-01-26 Arnaud Charlet <charlet@adacore.com>
6809
6810 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
6811
237e9384
JJ
68122011-01-26 Jakub Jelinek <jakub@redhat.com>
6813
6814 PR pch/47430
6815 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
6816 after init_c_lex if pch_file is set.
6817
47ea1edf
DK
68182011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
6819
d4dba752 6820 PR c++/43601
47ea1edf
DK
6821 * c.opt (-fkeep-inline-dllexport): New switch.
6822
2aa9c6ae
RG
68232011-01-12 Richard Guenther <rguenther@suse.de>
6824
6825 PR middle-end/32511
6826 * c-common.c (handle_weak_attribute): Warn instead of error
6827 on declaring an inline function weak.
6828
7bd11157
TT
68292011-01-05 Tom Tromey <tromey@redhat.com>
6830
6831 * c-common.h (lvalue_error): Update.
6832 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
6833 not error.
6834
0e66e494 68352010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 6836
b4f588c4
NP
6837 PR objc/47075
6838 * c-objc.h (objc_finish_message_expr): Added argument to
6839 prototype.
6840
f4da8dce
NF
68412010-12-22 Nathan Froyd <froydnj@codesourcery.com>
6842
6843 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
6844 Use prototype_p.
6845
46270f14
NP
68462010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
6847
6848 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 6849 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 6850
4816c593
NF
68512010-12-10 Nathan Froyd <froydnj@codesourcery.com>
6852
6853 * c-common.h (readonly_error): Declare.
6854 * c-common.c (readonly_error): Define.
6855
7a6daeb0
NF
68562010-12-09 Nathan Froyd <froydnj@codesourcery.com>
6857
6858 * c-common.h (invalid_indirection_error): Declare.
6859 * c-common.c (invalid_indirection_error): Define.
6860
892f6119
RG
68612010-12-03 Richard Guenther <rguenther@suse.de>
6862
6863 PR c/46745
6864 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
6865 (pp_c_unary_expression): Likewise.
6866 (pp_c_expression): Likewise.
6867
6c39e757
NP
68682010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
6869
6870 * c-common.h (objc_finish_function): New.
6871 (objc_non_volatilized_type): Removed.
6872 (objc_type_quals_match): Removed.
6873 * stub-objc.c (objc_finish_function): New.
6874 (objc_non_volatilized_type): Removed.
6875 (objc_type_quals_match): Removed.
9faeb493 6876
7c475d11
JM
68772010-11-30 Joseph Myers <joseph@codesourcery.com>
6878
6879 * c-common.h (parse_optimize_options): Declare.
6880 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
6881 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
6882
71f3e391
JM
68832010-11-29 Joseph Myers <joseph@codesourcery.com>
6884
6885 * c-opts.c (check_deps_environment_vars): Use getenv instead of
6886 GET_ENVIRONMENT.
6887 * c-pch.c (O_BINARY): Don't define here.
6888 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
6889
d5fabb58
JM
68902010-11-25 Joseph Myers <joseph@codesourcery.com>
6891
6892 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
6893 targetm.except_unwind_info.
6894
299404a1
JM
68952010-11-23 Joseph Myers <joseph@codesourcery.com>
6896
6897 * c-opts.c (c_common_handle_option): Pass location to
6898 set_struct_debug_option.
6899
c98cd5bf
JM
69002010-11-23 Joseph Myers <joseph@codesourcery.com>
6901
6902 * c-common.c (visibility_options): Move from ../opts.c.
6903 * c-common.h (struct visibility_flags, visibility_options):
6904 Declare here.
6905 * c-opts.c (finish_options): Rename to c_finish_options.
6906 (c_common_init): Update call to finish_options.
6907
a9546771
NP
69082010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
6909
6910 PR objc/34033
6911 * c-lex.c (lex_string): Check that each string in an Objective-C
6912 string concat sequence starts with either one or zero '@', and
6913 that there are no spurious '@' signs at the end.
6914
24a57808
JM
69152010-11-20 Joseph Myers <joseph@codesourcery.com>
6916
6917 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
6918 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
6919 HANDLE_PRAGMA_VISIBILITY.
6920 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
6921 HANDLE_PRAGMA_VISIBILITY): Don't define.
6922 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
6923
a9aa2c3a
NF
69242010-11-20 Nathan Froyd <froydnj@codesourcery.com>
6925
6926 PR c++/16189
6927 PR c++/36888
6928 PR c++/45331
6929 * c-common.h (keyword_begins_type_specifier): Declare.
6930 (keyword_is_storage_class_specifier): Declare.
6931 (keyword_is_type_qualifier): Declare.
6932 * c-common.c (keyword_begins_type_specifier): New function.
6933 (keyword_is_storage_class_specifier): New function.
6934 (keyword_is_type_qualifier): Declare.
6935
5386338c
JM
69362010-11-19 Joseph Myers <joseph@codesourcery.com>
6937
6938 PR c/46547
6939 * c-common.c (in_late_binary_op): Define.
6940 (c_common_truthvalue_conversion): Check in_late_binary_op before
6941 calling c_save_expr.
6942 * c-common.h (in_late_binary_op): Declare.
6943
69ccdddb
JM
69442010-11-19 Joseph Myers <joseph@codesourcery.com>
6945
6946 * c-opts.c (c_common_handle_option): Update calls to
6947 set_struct_debug_option.
6948
6b192a09
NP
69492010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
6950
6951 * c-common.h (objc_declare_protocols): Added additional argument.
6952 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 6953
fb52b50a
NF
69542010-11-18 Nathan Froyd <froydnj@codesourcery.com>
6955
6956 PR c/33193
6957 * c-common.h (build_real_imag_expr): Declare.
6958 * c-semantics.c (build_real_imag_expr): Define.
6959
b37421c6
JM
69602010-11-17 Joseph Myers <joseph@codesourcery.com>
6961
6962 * c-opts.c (c_common_parse_file): Take no arguments.
6963 * c-common.h (c_common_parse_file): Update prototype.
6964
07078664
JJ
69652010-11-16 Jakub Jelinek <jakub@redhat.com>
6966
6967 PR c++/46401
6968 * c-common.c (warning_candidate_p): Don't track non-const calls
6969 or STRING_CSTs.
6970
c6a13190
ILT
69712010-11-15 Ian Lance Taylor <iant@google.com>
6972
6973 * c-lex.c (init_c_lex): Set macro debug callbacks if
6974 flag_dump_go_spec is set.
6975
925e8657
NP
69762010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
6977
6978 * c-common.h (objc_build_incr_expr_for_property_ref): New.
6979 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
6980
bb0a9581
NF
69812010-11-15 Nathan Froyd <froydnj@codesourcery.com>
6982
6983 PR preprocessor/45038
6984 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
6985 dialects.
6986
c5fa0890
JM
69872010-11-12 Joseph Myers <joseph@codesourcery.com>
6988
6989 * c-common.h (c_family_lang_mask): Declare.
6990 * c-opts.c (c_family_lang_mask): Make extern.
6991 * c-pragma.c (handle_pragma_diagnostic): Use
6992 control_warning_option.
6993
a4d8c676
JM
69942010-11-12 Joseph Myers <joseph@codesourcery.com>
6995
6996 * c-common.c (parse_optimize_options): Update call to
6997 decode_options.
6998 * c-common.h (c_common_handle_option): Update prototype.
6999 * c-opts.c (c_common_handle_option): Take location_t parameter and
7000 pass it to other functions.
7001
f954bd2c
JM
70022010-11-11 Joseph Myers <joseph@codesourcery.com>
7003
7004 * c-opts.c (warning_as_error_callback): Remove.
7005 (c_common_initialize_diagnostics): Don't call
7006 register_warning_as_error_callback.
7007 (c_common_handle_option): Handle -Werror=normalized= here.
7008
d8a07487
JM
70092010-11-10 Joseph Myers <joseph@codesourcery.com>
7010
7011 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
7012 in diagnostic.
7013 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
7014 letter.
7015 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
7016 Remove trailing '.' from diagnostics.
7017 * c.opt (Wwrite-strings_: Avoid '`' in help text.
7018
d5478783
JM
70192010-11-10 Joseph Myers <joseph@codesourcery.com>
7020
7021 * c-common.c (parse_optimize_options): Pass global_dc to
7022 decode_options.
7023 * c-opts.c (c_common_handle_option): Pass &global_options to
7024 set_Wstrict_aliasing.
7025 * c.opt (v): Don't mark Common or document here.
7026
91ebb981
IS
70272010-11-06 Iain Sandoe <iains@gcc.gnu.org>
7028
7029 PR target/44981
7030 * c-format.c (format_type): New type gcc_objc_string_format_type.
7031 (valid_stringptr_type_p): New.
7032 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 7033 (check_format_string): Pass expected type, use
91ebb981
IS
7034 valid_stringptr_type_p (), check that the format string types are
7035 consistent with the format specification.
7036 (decode_format_attr): Warn if NSString is used outside objective-c.
7037 (format_types_orig): Add NSString.
7038 (format_name): New.
7039 (format_flags): New.
7040 (check_format_arg): Handle format strings requiring an external parser.
7041 first_target_format_type: New variable.
7042 (handle_format_attribute): Set up first_target_format_type, pass the
7043 expected format arg string type to check_format_string().
7044 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
7045 * stub-objc.c (objc_string_ref_type_p): New.
7046 (objc_check_format_arg): New.
7047
bede2adc
NP
70482010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
7049
9faeb493 7050 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
7051 * c-common.h (objc_build_class_component_ref): New.
7052 * stub-objc.c (objc_build_class_component_ref): New.
7053
9a179d01
NP
70542010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
7055
7056 * c.opt (Wproperty-assign-default): New option.
7057
22d8d616
NP
70582010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
7059
7060 Implemented -fobjc-std=objc1 flag.
7061 * c.opt (fobjc-std=objc1): New option.
7062
2debdb4f
NP
70632010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
7064
7065 Implemented format and noreturn attributes for Objective-C methods.
7066 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
7067 attribute for Objective-C methods.
7068
ec52b111
JM
70692010-10-31 Jason Merrill <jason@redhat.com>
7070
7071 * c-common.c (conversion_warning, warn_for_collisions_1): Use
7072 EXPR_LOC_OR_HERE.
7073
46a88c12
NP
70742010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
7075
7076 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
7077 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
7078 (objc_add_property_declaration): Removed arguments for copies and
7079 ivar.
7080 (objc_build_getter_call): Renamed to
7081 objc_maybe_build_component_ref.
7082 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
7083 (objc_is_property_ref): New.
7084 * c-common.c (c_common_reswords): Removed copies and ivar.
7085 * stub-objc.c (objc_add_property_declaration): Removed arguments
7086 for copies and ivar.
7087 (objc_build_getter_call): Renamed to
7088 objc_maybe_build_component_ref.
7089 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
7090 (objc_is_property_ref): New.
9faeb493 7091
1e4bf85b
AC
70922010-10-29 Arnaud Charlet <charlet@adacore.com>
7093 Matthew Gingell <gingell@adacore.com>
7094
7095 * c-ada-spec.c (separate_class_package): New function.
7096 (pp_ada_tree_identifier): Prefix references to C++ classes with the
7097 name of their enclosing package.
7098 (print_ada_declaration): Use separate_class_package.
7099
81f0bab2
JM
71002010-10-27 Jason Merrill <jason@redhat.com>
7101
2b08f2c5
JM
7102 * c-common.c (c_common_reswords): Add __is_literal_type.
7103 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
7104
81f0bab2
JM
7105 * c-common.c (check_case_value): Remove special C++ code.
7106
200290f2
NP
71072010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
7108
7109 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
7110 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
7111 and RID_LAST_PATTR.
7112 (objc_add_property_declaration): Added additional arguments.
7113 (objc_property_attribute_kind): Removed.
7114 (objc_set_property_attr): Removed.
7115 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
7116 copy and nonatomic.
7117 * stub-objc.c (objc_add_property_declaration): Added additional
7118 arguments.
7119 (objc_set_property_attr): Removed.
9faeb493 7120
f614132b
NP
71212010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
7122
7123 * c-common.h (objc_add_property_variable): Renamed to
7124 objc_add_property_declaration. Added location argument.
7125 * stub-objc.c (objc_add_property_variable): Same change.
b1726d6c 7126
b8a18805
NP
71272010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
7128
7129 * c-common.h (objc_maybe_printable_name): New.
7130 * stub-objc.c (objc_maybe_printable_name): New.
7131
3f8257db
JJ
71322010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
7133 Andrew Pinski <pinskia@gmail.com>
30cd1c5d
AS
7134
7135 * c-common.h (c_common_mark_addressable_vec): Declare.
7136 * c-common.c (c_common_mark_addressable_vec): New function.
7137
249a82c4
NP
71382010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
7139
7140 * c-common.h (objc_set_method_type): Removed.
7141 (objc_add_method_declaration): Added boolean argument.
7142 (objc_start_method_definition): Same change.
7143 (objc_build_method_signature): Same change.
7144 * stub-objc.c (objc_set_method_type): Removed.
7145 (objc_add_method_declaration): Added boolean argument.
7146 (objc_start_method_definition): Same change.
7147 (objc_build_method_signature): Same change.
7148
977e30bc
NP
71492010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
7150
7151 * c-common.h (finish_file): Removed.
7152 (objc_write_global_declarations): New.
7153 * c-opts.c (c_common_parse_file): Do not call finish_file.
7154 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 7155
da57d1b9
NP
71562010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
7157
7158 Implemented parsing @synthesize and @dynamic for
7159 Objective-C/Objective-C++.
7160 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
7161 (objc_add_synthesize_declaration): New.
7162 (objc_add_dynamic_declaration): New.
7163 * c-common.c (c_common_reswords): Add synthesize and dynamic.
7164 * stub-objc.c (objc_add_synthesize_declaration): New.
7165 (objc_add_dynamic_declaration): New.
9faeb493 7166
0069111f
MM
71672010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
7168
7169 PR target/46041
7170 * c-cppbuiltin.c (mode_has_fma): Move function here from
7171 builtins.c. Don't use the fma optab, instead just use the
7172 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
7173 using -save-temps.
7174
e426b47b
NP
71752010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
7176
7177 Merge from 'apple/trunk' branch on FSF servers.
0069111f 7178
3f8257db 7179 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
e426b47b 7180
9faeb493 7181 Radar 4330422
e426b47b
NP
7182 * c-common.h (objc_non_volatilized_type): New declaration
7183 * stub-objc.c (objc_non_volatilized_type): New stub.
7184
90fbfdc3
NP
71852010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
7186
e426b47b 7187 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3 7188
3f8257db 7189 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
90fbfdc3 7190
9faeb493 7191 Radar 4133425
90fbfdc3 7192 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 7193 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 7194
c37d8c30
IS
71952010-10-17 Iain Sandoe <iains@gcc.gnu.org>
7196
7197 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
7198 * c-common.h (enum rid): Add RID_AT_PACKAGE.
7199 (objc_ivar_visibility_kind): New enum.
7200 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 7201 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
7202 visibility enum.
7203
1b1562a5
MM
72042010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
7205
7206 * c-cppbuiltin.c (builtin_define_float_constants): Emit
7207 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
7208 has the appropriate fma builtins.
7209 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
7210
668ea4b1
IS
72112010-10-14 Iain Sandoe <iains@gcc.gnu.org>
7212
1b1562a5 7213 merge from FSF apple 'trunk' branch.
3f8257db 7214 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 7215
668ea4b1
IS
7216 Radars 4436866, 4505126, 4506903, 4517826
7217 * c-common.c (c_common_resword): Define @property and its attributes.
7218 * c-common.h: Define property attribute enum entries.
7219 (OBJC_IS_PATTR_KEYWORD): New.
7220 (objc_property_attribute_kind): New enum.
7221 Declare objc_set_property_attr (), objc_add_property_variable (),
7222 objc_build_getter_call () and objc_build_setter_call ().
7223 * stub-objc.c (objc_set_property_attr): New stub.
7224 (objc_add_property_variable): Likewise.
7225 (objc_build_getter_call): Likewise.
7226 (objc_build_setter_call) Likewise.
1b1562a5 7227
a1178b30
IS
72282010-10-13 Iain Sandoe <iains@gcc.gnu.org>
7229
1b1562a5 7230 merge from FSF apple 'trunk' branch.
3f8257db 7231 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
a1178b30
IS
7232
7233 Radar 3803157 (method attributes)
7234 * c-common.c (handle_deprecated_attribute): Recognize
7235 objc methods as valid declarations.
7236 * c-common.h: Declare objc_method_decl ().
1b1562a5 7237 * stub-objc.c (objc_method_decl): New stub.
a1178b30 7238
a75bfaa6
JM
72392010-10-08 Joseph Myers <joseph@codesourcery.com>
7240
7241 * c-common.c (parse_optimize_options): Call
7242 decode_cmdline_options_to_array_default_mask before
7243 decode_options. Update arguments to decode_options.
7244 * c-common.h (c_common_init_options_struct): Declare.
7245 * c-opts.c (c_common_init_options_struct): New. Split out from
7246 c_common_init_options.
7247
f05b9d93
NP
72482010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
7249
7250 Implemented fast enumeration for Objective-C.
7251 * c-common.h (objc_finish_foreach_loop): New.
7252 * stub-objc.c (objc_finish_foreach_loop): New.
7253
1ebe4b4f
JM
72542010-10-05 Joseph Myers <joseph@codesourcery.com>
7255
7256 * c-common.h (struct diagnostic_context): Don't declare here.
7257 (c_common_initialize_diagnostics): Declare using
7258 diagnostic_context typedef.
7259 * c-opts.c (c_common_handle_option): Pass global_dc to
7260 handle_generated_option.
7261
d4d24ba4
JM
72622010-10-04 Joseph Myers <joseph@codesourcery.com>
7263
7264 * c-opts.c (c_common_handle_option): Pass &global_options_set to
7265 handle_generated_option.
7266
478a1c5b
ILT
72672010-10-03 Ian Lance Taylor <iant@google.com>
7268
7269 * c.opt (-fplan9-extensions): New option.
7270
82a1c2fe
FXC
72712010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7272
7273 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
7274 Remove.
7275 (c_cpp_builtins): Call functions from cppbuiltin.c instead
7276 of duplicating code.
7277
92902b1b
IS
72782010-09-30 Iain Sandoe <iains@gcc.gnu.org>
7279
7280 * c-common.c: Add two new entries for @optional
7281 and @required keywords.
7282
7283 merge from FSF 'apple/trunk' branch.
3f8257db 7284 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
92902b1b
IS
7285
7286 Radar 4386773
7287 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
7288 objective-c keywords.
7289 (objc_set_method_opt): New declaration.
7290 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 7291
46625112
JM
72922010-09-30 Joseph Myers <joseph@codesourcery.com>
7293
7294 * c-common.c (handle_optimize_attribute): Pass &global_options to
7295 cl_optimization_save and cl_optimization_restore.
7296 * c-opts.c (c_common_handle_option): Pass &global_options to
7297 handle_generated_option.
7298 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
7299 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
7300 &global_options to cl_optimization_restore.
7301
49b91f05
NP
73022010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
7303
7304 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
7305 Objective-C/Objective-C++ keywords.
7306
13ed556f 73072010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 7308
9faeb493
UB
7309 Merge from 'apple/trunk' branch on FSF servers.
7310
3f8257db 7311 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
a6341d57
NP
7312
7313 Radar 4281748
7314 * c-common.h (objc_check_global_decl): New declaration.
7315 * stub-objc.c (objc_check_global_decl): New stub.
7316
f0036cca
JM
73172010-09-29 Joseph Myers <joseph@codesourcery.com>
7318
7319 * c.opt: Don't use VarExists.
7320
e3339d0f
JM
73212010-09-29 Joseph Myers <joseph@codesourcery.com>
7322
7323 * c-common.c (c_cpp_error): Update names of diagnostic_context
7324 members.
7325 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
7326 cl_optimization members.
7327 * c-opts.c (warning_as_error_callback, c_common_handle_option,
7328 sanitize_cpp_opts, finish_options): Update names of cpp_options
7329 members.
7330
1973201f
NP
73312010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
7332
7333 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
7334 (objc_is_reserved_word): Removed.
7335 * c-common.c: Updated comments.
7336 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
7337 objc_is_reserved_word.
7338 * stub-objc.c (objc_is_reserved_word): Removed.
7339
f7e71da5
IS
73402010-09-28 Iain Sandoe <iains@gcc.gnu.org>
7341
9faeb493 7342 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
7343 include attributes.
7344 (objc_start_method_definition): Likewise.
7345 (objc_build_keyword_decl): Likewise.
7346 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
7347 (objc_start_method_definition): Likewise.
7348 (objc_build_keyword_decl): Likewise.
7349
c165dca7
IS
73502010-09-28 Iain Sandoe <iains@gcc.gnu.org>
7351
7352 * c-common.h (objc_start_class_interface): Adjust prototype.
7353 (objc_start_category_interface): Likewise.
7354 (objc_start_protocol): Likewise.
7355 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
7356 (objc_start_class_interface): Likewise.
7357 (objc_start_category_interface): Likewise.
7358
7458026b
ILT
73592010-09-27 Ian Lance Taylor <iant@google.com>
7360
7361 * c-common.c (c_common_attribute_table): Add no_split_stack.
7362 (handle_no_split_stack_attribute): New static function.
7363
b581b85b
NP
73642010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
7365
9faeb493 7366 Merge from 'apple/trunk' branch on FSF servers.
b581b85b 7367
3f8257db 7368 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
b581b85b 7369
9faeb493 7370 Radar 4229905
b581b85b
NP
7371 * c-common.h (objc_have_common_type): New declaration.
7372 * stub-objc.c (objc_have_common_type): New stub.
7373
7374 2005-06-22 Ziemowit Laski <zlaski@apple.com>
7375
7376 Radar 4154928
7377 * c-common.h (objc_common_type): New prototype.
9faeb493 7378 * stub-objc.c (objc_common_type): New stub.
b581b85b 7379
46a4da10
JH
73802010-09-24 Jan Hubicka <jh@suse.cz>
7381
7382 * c-common.c (handle_leaf_attribute): New function.
7383 (struct attribute_spec c_common_att): Add leaf.
7384
e200444e
JM
73852010-09-22 Joseph Myers <joseph@codesourcery.com>
7386
7387 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
7388 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
7389 -dump, -dump=, -imacros, -imacros=, -include, -include=,
7390 -include-barrier, -include-directory, -include-directory=,
7391 -include-directory-after, -include-directory-after=,
7392 -include-prefix, -include-prefix=, -include-with-prefix,
7393 -include-with-prefix=, -include-with-prefix-after,
7394 -include-with-prefix-after=, -include-with-prefix-before,
7395 -include-with-prefix-before=, -no-integrated-cpp,
7396 -no-line-commands, -no-standard-includes, -no-warnings, -output,
7397 -output=, -pedantic, -pedantic-errors, -preprocess,
7398 -print-missing-file-dependencies, -trace-includes, -traditional,
7399 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
7400 -user-dependencies, -verbose, -write-dependencies,
7401 -write-user-dependencies, no-integrated-cpp, traditional): New.
7402
29a80ea6
NP
74032010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
7404
7405 PR objc/23710
ac1fc2fc
NP
7406 * c-common.h (objc_start_method_definition): Return bool instead
7407 of void.
7408 * stub-objc.c (objc_start_method_definition): Return bool instead
7409 of void.
7410
74112010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
7412
7413 PR objc/25965
7414 * c-common.h (objc_get_interface_ivars): New declaration.
7415 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 7416
de621752
ILT
74172010-09-15 Ian Lance Taylor <iant@google.com>
7418
7419 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 7420 messages. Remove period at end of warning message.
de621752 7421
ba885ec5
NS
74222010-09-09 Nathan Sidwell <nathan@codesourcery.com>
7423
7424 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
7425 (handle_alias_attribute): ... here.
7426 (handle_ifunc_attribute): New.
7427
c5ee1358
MM
74282010-09-06 Mark Mitchell <mark@codesourcery.com>
7429
7430 * c-common.h (do_warn_double_promotion): Declare.
7431 * c-common.c (do_warn_double_promotion): Define.
7432
0a0b3574
MM
74332010-09-05 Mark Mitchell <mark@codesourcery.com>
7434
7435 * c.opt (Wdouble-promotion): New.
7436
d1779886
JM
74372010-09-02 Joseph Myers <joseph@codesourcery.com>
7438
7439 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
7440 fvtable-thunks, fxref): Mark no longer supported in help text.
7441
2d2bd949
JM
74422010-09-02 Joseph Myers <joseph@codesourcery.com>
7443
7444 * c.opt (Wimport, fall-virtual, falt-external-templates,
7445 fdefault-inline, fenum-int-equiv, fexternal-templates,
7446 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
7447 fname-mangling-version-, fnew-abi, fnonnull-objects,
7448 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
7449 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
7450 applicable.
7451 (fhandle-exceptions): Mark with Alias and Warn.
7452 * c-opts.c (c_common_handle_option): Don't handle options marked
7453 as ignored.
7454
5de8299c
JM
74552010-09-02 Joseph Myers <joseph@codesourcery.com>
7456
7457 * c.opt (Wcomments, Werror-implicit-function-declaration,
7458 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
7459 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
7460 aliases.
7461 * c-common.c (option_codes): Use OPT_Wcomment instead of
7462 OPT_Wcomments.
7463 * c-opts.c (warning_as_error_callback, c_common_handle_option):
7464 Don't handle options marked as aliases.
7465
0ceb0201
RG
74662010-08-25 Richard Guenther <rguenther@suse.de>
7467
7468 * c-common.c (c_common_get_alias_set): Remove special
7469 handling for pointers.
7470
ac47786e
NF
74712010-08-20 Nathan Froyd <froydnj@codesourcery.com>
7472
7473 * c-common.c: Use FOR_EACH_VEC_ELT.
7474 * c-gimplify.c: Likewise.
7475 * c-pragma.c: Likewise.
7476
c878765b
JM
74772010-08-16 Joseph Myers <joseph@codesourcery.com>
7478
7479 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
7480 RejectDriver.
7481 (MMDX): Change back to MMD. Mark NoDriverArg instead of
7482 RejectDriver.
7483 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
7484 instead of OPT_MDX and OPT_MMDX.
7485
603349bf
JM
74862010-08-16 Joseph Myers <joseph@codesourcery.com>
7487
7488 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
7489
644fa7ac
JM
74902010-08-12 Joseph Myers <joseph@codesourcery.com>
7491
7492 * c.opt (MD, MMD): Change to MDX and MMDX.
7493 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
7494
481e1176
JM
74952010-08-11 Joseph Myers <joseph@codesourcery.com>
7496
7497 * c-opts.c (c_common_handle_option): Call handle_generated_option
7498 instead of handle_option.
7499
ac8dc9f7
NF
75002010-08-08 Nathan Froyd <froydnj@codesourcery.com>
7501
7502 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
7503 (maybe_apply_renaming_pragma): Delete unneeded declarations.
7504
4f8c876d
NF
75052010-08-08 Nathan Froyd <froydnj@codesourcery.com>
7506
7507 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
7508 (pending_redefine_extname): Change type to a VEC.
7509 (add_to_renaming_pragma_list): Update for new type of
7510 pending_redefine_extname.
ac8dc9f7 7511 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 7512
3b0c690e
AC
75132010-08-04 Arnaud Charlet <charlet@adacore.com>
7514
7515 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
7516 visited.
7517 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
7518 decide whether a type has already been declared/seen.
7519 Do not go to the original type.
7520 (dump_nested_types): New parameter forward.
7521 Generate forward declaration if needed and mark type as visited.
7522 (print_ada_declaration): Call dump_nested_types if not already done.
7523 Mark types as visited.
7524
1890bccc
JM
75252010-08-03 Joseph Myers <joseph@codesourcery.com>
7526
7527 * c.opt (-print-pch-checksum): Remove option.
7528 * c-opts.c (c_common_handle_option): Don't handle
7529 OPT_print_pch_checksum.
7530
5f20c657
JM
75312010-07-27 Joseph Myers <joseph@codesourcery.com>
7532
7533 * c-common.h (c_common_handle_option): Update prototype and return
7534 value type.
7535 * c-opts.c (c_common_handle_option): Update prototype and return
7536 value type. Update calls to handle_option and
7537 enable_warning_as_error.
7538
f551f80c
JJ
75392010-07-27 Jakub Jelinek <jakub@redhat.com>
7540
7541 PR c/45079
7542 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
7543
61ff2bdc
JM
75442010-07-27 Joseph Myers <joseph@codesourcery.com>
7545
7546 * c-common.h (c_common_missing_argument): Remove.
7547 * c-opts.c (c_common_missing_argument): Remove.
7548 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
7549 idirafter, imacros, include, isysroot, isystem, iquote): Add
7550 MissingArgError.
7551 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
7552
7a9bf9a4
JM
75532010-07-27 Joseph Myers <joseph@codesourcery.com>
7554
7555 * c-common.h (c_common_option_lang_mask,
7556 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
7557 New.
7558 (c_common_init_options): Update prototype.
7559 * c-opts.c (c_common_option_lang_mask): New.
7560 (c_common_initialize_diagnostics): Split out of
7561 c_common_init_options.
7562 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
7563 New.
7564 (c_common_init_options): Update prototype. Use decoded options in
7565 search for -lang-asm.
7566
910ad8de
NF
75672010-07-15 Nathan Froyd <froydnj@codesourcery.com>
7568
7569 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
7570 * c-format.c: Likewise.
7571
718f9c0f
MLI
75722010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
7573
7574 * c-common.h: Include diagnostic-core.h. Error if already
7575 included.
7576 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
7577
4d451982
MLI
75782010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
7579
adfac8df 7580 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
7581 Do not include expr.h
7582 (vector_mode_valid_p): Move here.
7583
119fe915
SB
75842010-06-21 DJ Delorie <dj@redhat.com>
7585
7586 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
7587 allow these pragmas anywhere.
7588
75892010-06-14 Jakub Jelinek <jakub@redhat.com>
7590
7591 PR bootstrap/44509
7592 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
7593 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
7594 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
7595 ggc_strdup instead of xstrdup.
7596
75972010-06-10 Jakub Jelinek <jakub@redhat.com>
7598
7599 * c-cppbuiltin.c: Include cpp-id-data.h.
7600 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
7601 (lazy_hex_fp_value): New function.
7602 (builtin_define_with_hex_fp_value): Provide definitions lazily.
7603
6662d794
MLI
76042010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
7605
7606 * c-gimplify.c: Do not include tree-flow.h
7607
38f8b050
JR
76082010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
7609
7610 PR other/44034
7611 * c-common.c: Rename targetm member:
7612 targetm.enum_va_list -> targetm.enum_va_list_p
7613
9589f23e
AS
76142010-06-28 Anatoly Sokolov <aesok@post.ru>
7615
7616 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
7617
3b06d379
SB
76182010-06-28 Steven Bosscher <steven@gcc.gnu.org>
7619
7620 * c-cppbuiltin.c: Do not include except.h.
7621
d166d4c3
AK
76222010-06-24 Andi Kleen <ak@linux.intel.com>
7623
9faeb493
UB
7624 * c-common.c (warn_for_omitted_condop): New.
7625 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 7626
70cb8be6
JM
76272010-06-21 Joseph Myers <joseph@codesourcery.com>
7628
7629 * c.opt (lang-objc): Remove.
7630 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
7631
a4c97feb
JR
76322010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
7633
7634 * c-opts.c: Include "tm_p.h".
7635
6e2f1956
JM
76362010-06-20 Joseph Myers <joseph@codesourcery.com>
7637
7638 * c-common.c (parse_optimize_options): Update call to
7639 decode_options.
7640
bc87224e
NF
76412010-06-18 Nathan Froyd <froydnj@codesourcery.com>
7642
7643 * c-common.c (record_types_used_by_current_var_decl): Adjust for
7644 new type of types_used_by_cur_var_decl.
7645
b49cf425
JR
76462010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
7647
7648 PR bootstrap/44512
7649 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
7650 for C++ standard compliance.
7651
59f9c2ed
JM
76522010-06-16 Jason Merrill <jason@redhat.com>
7653
7654 * c.opt: Add -Wnoexcept.
7655
33766b66
RG
76562010-06-16 Richard Guenther <rguenther@suse.de>
7657
7658 PR c/44555
7659 * c-common.c (c_common_truthvalue_conversion): Remove
7660 premature and wrong optimization concering ADDR_EXPRs.
7661
eff7e30c
AC
76622010-06-15 Arnaud Charlet <charlet@adacore.com>
7663
7664 * c-ada-spec.c (dump_sloc): Remove column info.
7665 (is_simple_enum): New function.
7666 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
7667 enum types when relevant.
7668
6312e84d
MLI
76692010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
7670
9faeb493 7671 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
7672 location.
7673
1cb42611
JM
76742010-06-10 Joseph Myers <joseph@codesourcery.com>
7675
7676 * c-opts.c (c_common_handle_option): Don't handle
7677 OPT_fshow_column.
7678
a9429e29
LB
76792010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7680
7681 * c-pragma.c (push_alignment): Use typed GC allocation.
7682 (handle_pragma_push_options): Likewise.
7683
7684 * c-common.c (parse_optimize_options): Likewise.
7685
7686 * c-common.h (struct sorted_fields_type): Add variable_size GTY
7687 option.
7688
5498f011
JM
76892010-06-07 Joseph Myers <joseph@codesourcery.com>
7690
7691 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
7692 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
7693 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
7694 flag_signed_bitfields, warn_strict_null_sentinel,
7695 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
7696 flag_gen_declaration, flag_no_gnu_keywords,
7697 flag_implement_inlines, flag_implicit_templates,
7698 flag_implicit_inline_templates, flag_optional_diags,
7699 flag_elide_constructors, flag_default_inline, flag_rtti,
7700 flag_conserve_space, flag_access_control, flag_check_new,
7701 flag_new_for_scope, flag_weak, flag_working_directory,
7702 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
7703 flag_enforce_eh_specs, flag_threadsafe_statics,
7704 flag_pretty_templates): Remove.
7705 * c-common.h (flag_preprocess_only, flag_nil_receivers,
7706 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
7707 flag_replace_objc_classes, flag_undef, flag_no_builtin,
7708 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
7709 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
7710 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
7711 flag_no_gnu_keywords, flag_implement_inlines,
7712 flag_implicit_templates, flag_implicit_inline_templates,
7713 flag_optional_diags, flag_elide_constructors, flag_default_inline,
7714 flag_rtti, flag_conserve_space, flag_access_control,
7715 flag_check_new, flag_new_for_scope, flag_weak,
7716 flag_working_directory, flag_use_cxa_atexit,
7717 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
7718 flag_threadsafe_statics, flag_pretty_templates,
7719 warn_strict_null_sentinel): Remove.
7720 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
7721 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
7722 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
7723 fimplicit-inline-templates, fimplicit-templates,
7724 flax-vector-conversions, fms-extensions, fnil-receivers,
7725 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
7726 frtti, fshort-double, fshort-enums, fshort-wchar,
7727 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
7728 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
7729 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
7730 gen-decls, undef): Use Var.
7731 (fdefault-inline, foptional-diags): Document as doing nothing.
7732 * c-opts.c (c_common_handle_option): Remove cases for options now
7733 using Var. Mark ignored options as such.
7734
39dabefd
SB
77352010-06-05 Steven Bosscher <steven@gcc.gnu.org>
7736
9faeb493 7737 * c-common.c: Moved to here from parent directory.
39dabefd
SB
7738 * c-common.def: Likewise.
7739 * c-common.h: Likewise.
7740 * c-cppbuiltin.c: Likewise.
7741 * c-dump.c: Likewise.
7742 * c-format.c: Likewise.
7743 * c-format.h : Likewise.
7744 * c-gimplify.c: Likewise.
7745 * c-lex.c: Likewise.
7746 * c-omp.c: Likewise.
7747 * c.opt: Likewise.
7748 * c-opts.c: Likewise.
7749 * c-pch.c: Likewise.
7750 * c-ppoutput.c: Likewise.
7751 * c-pragma.c: Likewise.
7752 * c-pragma.h: Likewise.
7753 * c-pretty-print.c: Likewise.
7754 * c-pretty-print.h: Likewise.
7755 * c-semantics.c: Likewise.
7756 * stub-objc.c: Likewise.
7757
7758 * c-common.c: Include gt-c-family-c-common.h.
7759 * c-pragma.c: Include gt-c-family-c-pragma.h.
7760\f
cbe34bb5 7761Copyright (C) 2010-2017 Free Software Foundation, Inc.
39dabefd
SB
7762
7763Copying and distribution of this file, with or without modification,
7764are permitted in any medium without royalty provided the copyright
7765notice and this notice are preserved.