]> gcc.gnu.org Git - gcc.git/blame - gcc/c-family/ChangeLog
re PR middle-end/80173 (ICE in store_bit_field_1, at expmed.c:787)
[gcc.git] / gcc / c-family / ChangeLog
CommitLineData
a9e4a1a5
JJ
12017-03-27 Jakub Jelinek <jakub@redhat.com>
2
3 PR middle-end/80162
4 * c-common.c (c_common_mark_addressable_vec): Don't set
5 TREE_ADDRESSABLE on DECL_HARD_REGISTER.
6
3f01b620
MS
72017-03-21 Martin Sebor <msebor@redhat.com>
8
9 PR c++/79548
10 * c-common.c (set_underlying_type): Mark type used only when
11 original del is declared unused.
12
2f6f187a
DM
132017-03-10 David Malcolm <dmalcolm@redhat.com>
14
15 PR translation/79848
16 * c-format.c (check_format_string): Simplify uses of "%<%s%>" to
17 "%qs".
18
a02fa805
DM
192017-03-10 David Malcolm <dmalcolm@redhat.com>
20
21 PR c/79921
22 * c-indentation.c (warn_for_misleading_indentation): Remove parens
23 from inform's message, so that xgettext can locate it.
24
822a132c
MP
252017-03-09 Marek Polacek <polacek@redhat.com>
26
27 PR c++/79962
28 PR c++/79984
29 * c-attribs.c (handle_nonnull_attribute): Save the result of default
30 conversion to the attribute list.
31
bba81f1c
ML
322017-03-09 Martin Liska <mliska@suse.cz>
33
34 * c-ada-spec.c (macro_length): Increment value instead of a pointer.
35
108154ff
JM
362017-03-03 Jason Merrill <jason@redhat.com>
37
38 * c.opt (Wnoexcept-type): New.
39
eb0e7c34
RB
402017-03-02 Richard Biener <rguenther@suse.de>
41
42 PR c/79756
43 * c-common.c (c_common_mark_addressable_vec): Look through
44 C_MAYBE_CONST_EXPR.
45
9453ba0a
ML
462017-02-28 Martin Liska <mliska@suse.cz>
47
48 * c.opt: Replace space with tabular for options of <number>
49 type.
50
6a825afe
ML
512017-02-28 Martin Liska <mliska@suse.cz>
52
53 * c.opt: Fix --help=option -Q for options which are of
54 an enum type.
55
4227c9ad
JJ
562017-02-24 Jakub Jelinek <jakub@redhat.com>
57
58 PR c++/79588
59 * c-common.c (check_function_restrict): New function.
60 (check_function_arguments): Add FNDECL argument. Call
61 check_function_restrict if -Wrestrict.
62 * c-warn.c (warn_for_restrict): Remove ARGS argument, add ARGARRAY
63 and NARGS. Use auto_vec for ARG_POSITIONS, simplify.
64 * c-common.h (check_function_arguments): Add FNDECL argument.
65 (warn_for_restrict): Remove ARGS argument, add ARGARRAY and NARGS.
66
59909673
EB
672017-02-24 Eric Botcazou <ebotcazou@adacore.com>
68
69 * c-ada-spec.c (dump_ada_function_declaration): Add comment about the
70 treatment of parameters with pointer-to-tagged type and tidy up.
71 (print_ada_methods): Remove the special treatment of C++ static member
72 functions.
73
54dcd526
ML
742017-02-22 Martin Liska <mliska@suse.cz>
75
76 * c.opt: Replace inequality signs with square brackets
77 for -Wnornalized.
78
00bc9de3
JJ
792017-02-21 Jakub Jelinek <jakub@redhat.com>
80
81 PR c++/79641
82 * c-attribs.c (handle_mode_attribute): Use build_qualified_type to
83 preserve quals.
84
97fcf744
JM
852017-02-17 Joseph Myers <joseph@codesourcery.com>
86
87 * c-cppbuiltin.c (builtin_define_float_constants): Define
88 __DECIMAL_DIG__ to the value for long double.
89
c7545f1c
MP
902017-02-15 Marek Polacek <polacek@redhat.com>
91
92 PR c/79515
93 * c-warn.c (do_warn_double_promotion): Don't warn if an invalid
94 conversion has occured.
95
c2e84327
DM
962017-01-24 David Malcolm <dmalcolm@redhat.com>
97
98 * c-common.c (c_common_reswords): Add "__RTL".
99 * c-common.h (enum rid): Add RID_RTL.
100
2ebd93e1
MP
1012017-01-20 Marek Polacek <polacek@redhat.com>
102
103 PR c/64279
104 * c-common.h (do_warn_duplicated_branches_r): Declare.
105 * c-gimplify.c (c_genericize): Walk the function tree calling
106 do_warn_duplicated_branches_r.
107 * c-warn.c (expr_from_macro_expansion_r): New.
108 (do_warn_duplicated_branches): New.
109 (do_warn_duplicated_branches_r): New.
110 * c.opt (Wduplicated-branches): New option.
111
0d80ab91
DM
1122017-01-17 David Malcolm <dmalcolm@redhat.com>
113
114 PR c++/71497
115 * c-indentation.c (warn_for_misleading_indentation): Use the past
116 subjunctive in the note.
117
7f991c36
AH
1182017-01-17 Aldy Hernandez <aldyh@redhat.com>
119
120 PR c/79116
121 * array-notation-common.c (cilkplus_extract_an_triplets): Convert
122 start type to integer_type.
123
1c70261c
JJ
1242017-01-16 Jakub Jelinek <jakub@redhat.com>
125
126 PR driver/49726
127 * c.opt (gen-decls): Add Driver flag.
128
1ddca3f3
PC
1292017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
130
131 Revert:
132 2017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
133
134 PR c++/71737
135 * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
136
7d2f3f1d
PC
1372017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
138
139 PR c++/71737
140 * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
141
bce6f760
MS
1422017-01-12 Martin Sebor <msebor@redhat.com>
143
144 (-Wformat-overflow): ...to this.
145
bf5fbf46
MS
1462017-01-11 Martin Sebor <msebor@redhat.com>
147
148 PR c/78768
149 * c.opt (-Walloca-larger-than, -Wformat-length, -Wformat-truncation):
150 Also enable for LTO.
151
e363df3f
JM
1522017-01-10 Jason Merrill <jason@redhat.com>
153
154 Implement P0195R2, C++17 variadic using.
155 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_variadic_using.
156
bd2c6270
JJ
1572017-01-09 Jakub Jelinek <jakub@redhat.com>
158
159 PR translation/79019
160 PR translation/79020
161 * c.opt (Wnormalized=): Fix typo in description.
162
efcc8d38
MS
1632017-01-08 Martin Sebor <msebor@redhat.com>
164
165 PR middle-end/77708
166 * c.opt (-Wformat-truncation): New option.
167
435f3f7a
AO
1682017-01-06 Alexandre Oliva <aoliva@redhat.com>
169
170 * c-pretty-print.c (pp_c_tree_decl_identifier): Convert 16-bit
171 value to unsigned short to fit in 4 hex digits without
172 warnings.
173
4e89adf9
EB
1742017-01-05 Eric Botcazou <ebotcazou@adacore.com>
175
176 * c.opt (fsso-struct): Add 'native' value.
177
cd445b54
ML
1782017-01-05 Martin Liska <mliska@suse.cz>
179
180 PR pch/78970
181 * c-opts.c (c_common_post_options): Reject '-' filename for a precompiled
182 header.
183
a9342885
MP
1842017-01-04 Marek Polacek <polacek@redhat.com>
185
186 PR c++/64767
187 * c.opt (Wpointer-compare): New option.
188
fc73e60c
JJ
1892017-01-04 Jakub Jelinek <jakub@redhat.com>
190
191 PR driver/78957
192 * c.opt (fsso-struct=): Add RejectNegative.
193
cbe34bb5
JJ
1942017-01-01 Jakub Jelinek <jakub@redhat.com>
195
196 Update copyright years.
197
d4a6c0ea
ML
1982016-12-29 Martin Liska <mliska@suse.cz>
199
200 PR c/78933
201 * c.opt (strong-eval-order): Add RejectNegative keyword.
202
67a5ad7c
JM
2032016-12-22 Jason Merrill <jason@redhat.com>
204
205 Implement P0522R0, matching of template template arguments.
206 * c-cppbuiltin.c (c_cpp_builtins): Define
207 __cpp_template_template_args.
208
0dba7960
JJ
2092016-12-21 Jakub Jelinek <jakub@redhat.com>
210
211 PR bootstrap/78817
212 * c-common.c (struct nonnull_arg_ctx): New type.
213 (check_function_nonnull): Return bool instead of void. Use
214 nonnull_arg_ctx as context rather than just location_t.
215 (check_nonnull_arg): Adjust for the new context type, set
216 warned_p to true if a warning has been diagnosed.
217 (check_function_arguments): Return bool instead of void.
218 * c-common.h (check_function_arguments): Adjust prototype.
219
31bfc9b9
JM
2202016-12-21 Jason Merrill <jason@redhat.com>
221
222 * c.opt (-fnew-ttp-matching): New flag.
223 * c-opts.c (c_common_post_options): Default on if -std=c++1z.
224
629b3d75
MJ
2252016-12-14 Martin Jambor <mjambor@suse.cz>
226
227 * c-omp.c: Include omp-general.h instead of omp-low.h.
228 (c_finish_oacc_wait): Adjusted call to find_omp_clause to use its new
229 name.
230
474da67e
MS
2312016-12-14 Martin Sebor <msebor@redhat.com>
232
233 PR c/17308
234 * c-common.c (check_nonnull_arg): Disable when optimization
235 is enabled.
236
fe366b87
MP
2372016-12-12 Marek Polacek <polacek@redhat.com>
238
239 PR c++/78647
240 * c-common.c (attribute_fallthrough_p): Return false for
241 error_mark_node.
242
8bd9f164
MS
2432016-12-08 Martin Sebor <msebor@redhat.com>
244
245 PR c/78284
246 * c.opt (-Walloc-zero, -Walloc-size-larger-than): New options.
247
060162e0
MS
2482016-12-08 Martin Sebor <msebor@redhat.com>
249
250 PR c/78165
1d0cf89a
MS
251 * c-pretty-print (pp_c_integer_constant): Avoid formatting type
252 suffix.
060162e0 253
ee92e7ba
MS
2542016-12-07 Martin Sebor <msebor@redhat.com>
255
256 PR c/53562
257 PR middle-end/77784
258 PR middle-end/78149
259 PR middle-end/78138
260 * c.opt (-Wstringop-overflow): New option.
261
84b0769e
MO
2622016-12-02 Maxim Ostapenko <m.ostapenko@samsung.com>
263
264 * c-attribs.c (asan odr indicator): New attribute.
265 (handle_asan_odr_indicator_attribute): New function.
266
7fa6a965
PK
2672016-11-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
268
269 * c-common.c (c_common_nodes_and_builtins): Remove initialization of
270 ptrdiff_type_node;
271
56d8ffc1
JG
2722016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
273
274 * c-common.c (excess_precision_mode_join): New.
275 (c_ts18661_flt_eval_method): New.
276 (c_c11_flt_eval_method): Likewise.
277 (c_flt_eval_method): Likewise.
278 * c-common.h (excess_precision_mode_join): New.
279 (c_flt_eval_method): Likewise.
280 * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): New.
281 (cpp_iec_559_value): Call it.
282 (c_cpp_builtins): Modify logic for __LIBGCC_*_EXCESS_PRECISION__,
283 call c_flt_eval_method to set __FLT_EVAL_METHOD__ and
284 __FLT_EVAL_METHOD_TS_18661_3__.
285
04f0fcf7
JG
2862016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
287
288 * c-opts.c (c_common_post_options): Add logic to handle the default
289 case for -fpermitted-flt-eval-methods.
290
fb2675cb
PB
2912016-11-23 Paolo Bonzini <bonzini@gnu.org>
292
293 * c.opt (Wexpansion-to-defined): New.
294
ec1c5694
JJ
2952016-11-23 Jakub Jelinek <jakub@redhat.com>
296
297 PR target/78451
298 * c-pragma.c (handle_pragma_target): Don't replace
299 current_target_pragma, but chainon the new args to the current one.
300
730c9e75
NS
3012016-11-22 Nathan Sidwell <nathan@acm.org>
302
303 * array-notation-common.c (cilkplus_extract_an_trplets): Fix
cacd29be 304 indentation and formatting.
730c9e75 305
89990732
MS
3062016-11-21 Martin Sebor <msebor@redhat.com>
307
308 * c.opt (-fprintf-return-value): Enable by default.
309
48330c93
BE
3102016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
311
312 PR c++/71973
313 * c.opt (-Wbuiltin-declaration-mismatch): New warning.
314 * c-common.c (c_common_nodes_and_builtins): Initialize
315 const_tm_ptr_type_node.
316
0d939c95
MP
3172016-11-16 Marek Polacek <polacek@redhat.com>
318
319 PR c/78285
320 * c-common.c (c_add_case_label): Turn error_at calls into inform.
321
8e745a17
JJ
3222016-11-14 Jakub Jelinek <jakub@redhat.com>
323
324 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_structured_bindings.
325
1ee62b92 3262016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
8e745a17
JJ
327 Richard Biener <rguenther@suse.de>
328
329 * c-common.h (c_common_resword): Add RID_GIMPLE, RID_PHI types.
330 * c-common.h (enum rid): Add RID_GIMPLE, RID_PHI.
331 * c.opt (fgimple): New option.
1ee62b92 332
22b15758
UB
3332016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
334
335 PR c/35503
336 * c-common.h (warn_for_restrict): Declare.
337 * c-warn.c: Include gcc-rich-location.h.
338 (warn_for_restrict): New function.
339 * c-format.c (gcc_tdiag_char_table): Add entry for "Z" specifier.
340 (gcc_cdiag_char_table): Likewise.
341 (gcc_cxxdiag_char_table): Likewise.
342 * c.opt (Wrestrict): New option.
343
4be719cd
EB
3442016-11-13 Eric Botcazou <ebotcazou@adacore.com>
345
346 * c-ada-spec.c (print_ada_declaration): For typedef declarations, look
347 for nested types only if the type is a record or union and dump SLOC.
348
4a826ca6
JM
3492016-11-09 Jason Merrill <jason@redhat.com>
350
351 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_template_auto.
352
2e955d50
JJ
3532016-11-09 Jakub Jelinek <jakub@redhat.com>
354
355 * c-ubsan.c (ubsan_instrument_shift): Handle split
356 -fsanitize=shift-base and -fsanitize=shift-exponent.
357
51dc6603
JM
3582016-11-07 Jason Merrill <jason@redhat.com>
359
360 * c.opt (Wc++1z-compat): New.
361 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_noexcept_function_type.
362
6dc4a604
ML
3632016-11-07 Martin Liska <mliska@suse.cz>
364
365 * c-warn.c (warn_for_unused_label): Save all labels used
366 in goto or in &label.
367
b302001e
JM
3682016-11-03 Jason Merrill <jason@redhat.com>
369
370 * c-cppbuiltin.c (c_cpp_builtins): Correct
371 __cpp_inheriting_constructors.
372
31f7f784
JM
3732016-11-01 Jason Merrill <jason@redhat.com>
374
2bc78e3c
JM
375 * c-cppbuiltin.c (c_cpp_builtins): Update
376 __cpp_inheriting_constructors.
377
31f7f784
JM
378 * c.opt (-fnew-inheriting-ctors): New.
379 * c-opts.c: Default to on for ABI 11+.
380
dcb466ec
JJ
3812016-10-31 Jakub Jelinek <jakub@redhat.com>
382
383 PR c++/77948
384 * c.opt (fext-numeric-literals): Add Var and Init.
385 * c-opts.c (c_common_handle_option): Don't clear
386 cpp_opts->ext_numeric_literals for -std=c++{11,14,1z}.
387 (c_common_post_options): Clear it here if not set
388 explicitly.
389
52e1b91e
AH
3902016-10-28 Aldy Hernandez <aldyh@redhat.com>
391
392 PR debug/77773
393 * c-pretty-print.c (simple_type_specifier): Do not dereference `t'
394 if NULL.
395
e16f1cc7
JJ
3962016-10-25 Jakub Jelinek <jakub@redhat.com>
397
398 * c-common.h (enum rid): Add RID_BUILTIN_LAUNDER.
399 * c-common.c (c_common_reswords): Add __builtin_launder.
400
f8348061
BE
4012016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
402
403 * c-common.c (c_common_truthvalue_conversion): Warn for
404 multiplications in boolean context. Fix the quoting of '<<' and '<'
405 in the shift warning.
406
eff89e01
BE
4072016-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
408
409 * c-common.c (c_common_truthvalue_conversion): Fix the comment.
410
24bc7bf4
JM
4112016-10-20 Jason Merrill <jason@redhat.com>
412
413 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_concepts value.
414
4c712374
BE
4152016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
416
417 * c-common.c (c_common_truthvalue_conversion): Warn only for signed
418 integer shift ops in boolean context.
419
4202016-10-18 Aldy Hernandez <aldyh@redhat.com>
adc577c5
AH
421
422 * c.opt (Walloca): New.
423 (Walloca-larger-than=): New.
424 (Wvla-larger-than=): New.
425
8fa18c06
MP
4262016-10-17 Marek Polacek <polacek@redhat.com>
427
428 * c-warn.c (find_array_ref_with_const_idx_r): Remove parameter names.
429 Return immediately when finding a match.
430 (warn_tautological_cmp): Remove a boolean variable that is no longer
431 needed.
432
b12b1915
MP
4332016-10-17 Marek Polacek <polacek@redhat.com>
434
435 * c-attribs.c: New file.
436 * c-common.c: Move attributes handling to c-attribs.c.
437 (get_nonnull_operand): No longer static.
438 * c-common.h: Move the declarations from c-attribs.c to its own section.
439
2045acd9
JM
4402016-10-14 Jason Merrill <jason@redhat.com>
441
442 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_aggregate_bases
443 and __cpp_deduction_guides.
444
14a2c9aa
JM
4452016-10-13 Jason Merrill <jason@redhat.com>
446
447 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_inline_variables.
448
4d0cdd0c
TP
4492016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
450
451 * c-cppbuiltin.c: Include memmodel.h.
452 * c-opts.c: Likewise.
453 * c-pragma.c: Likewise.
454 * c-warn.c: Likewise.
455
70f6d5e1
JJ
4562016-10-12 Jakub Jelinek <jakub@redhat.com>
457
458 * c.opt (Wextra): Add as C/C++/ObjC/ObjC++ option.
459 (Wimplicit-fallthrough=): Enable for these languages by -Wextra.
460 * c-opts.c (sanitize_cpp_opts): Initialize
461 cpp_opts->cpp_warn_implicit_fallthrough.
462
78f61294
MP
4632016-10-11 Marek Polacek <polacek@redhat.com>
464
465 * c-common.c (warning_candidate_p): Change the return type to bool
466 and return true/false instead of 1/0.
467 (vector_mode_valid_p): Likewise.
468
038b5cc0
MP
4692016-10-11 Marek Polacek <polacek@redhat.com>
470
471 * c-common.c (fold_for_warn): No longer static.
472 (bool_promoted_to_int_p): Likewise.
473 (c_common_get_narrower): Likewise.
474 (constant_expression_warning): Move to c-warn.c.
475 (constant_expression_error): Likewise.
476 (overflow_warning): Likewise.
477 (warn_logical_operator): Likewise.
478 (find_array_ref_with_const_idx_r): Likewise.
479 (warn_tautological_cmp): Likewise.
480 (expr_has_boolean_operands_p): Likewise.
481 (warn_logical_not_parentheses): Likewise.
482 (warn_if_unused_value): Likewise.
483 (strict_aliasing_warning): Likewise.
484 (sizeof_pointer_memaccess_warning): Likewise.
485 (check_main_parameter_types): Likewise.
486 (conversion_warning): Likewise.
487 (warnings_for_convert_and_check): Likewise.
488 (match_case_to_enum_1): Likewise.
489 (match_case_to_enum): Likewise.
490 (c_do_switch_warnings): Likewise.
491 (warn_for_omitted_condop): Likewise.
492 (readonly_error): Likewise.
493 (lvalue_error): Likewise.
494 (invalid_indirection_error): Likewise.
495 (warn_array_subscript_with_type_char): Likewise.
496 (warn_about_parentheses): Likewise.
497 (warn_for_unused_label): Likewise.
498 (warn_for_div_by_zero): Likewise.
499 (warn_for_memset): Likewise.
500 (warn_for_sign_compare): Likewise.
501 (do_warn_double_promotion): Likewise.
502 (do_warn_unused_parameter): Likewise.
503 (record_locally_defined_typedef): Likewise.
504 (maybe_record_typedef_use): Likewise.
505 (maybe_warn_unused_local_typedefs): Likewise.
506 (maybe_warn_bool_compare): Likewise.
507 (maybe_warn_shift_overflow): Likewise.
508 (warn_duplicated_cond_add_or_warn): Likewise.
509 (diagnose_mismatched_attributes): Likewise.
510 * c-common.h: Move the declarations from c-warn.c to its own section.
511 * c-warn.c: New file.
512
627be19f
JM
5132016-10-08 Jason Merrill <jason@redhat.com>
514
515 * c-common.c (c_common_truthvalue_conversion): Don't distribute
516 into COND_EXPR in C++.
517
7bad794a
JJ
5182016-10-08 Jakub Jelinek <jakub@redhat.com>
519
520 * c-lex.c (c_lex_with_flags) <case CPP_COMMENT>: For CPP_COMMENT
521 token with PREV_FALLTHROUGH, skip all following CPP_PADDING and
522 CPP_COMMENT tokens and set add_flags to PREV_FALLTHROUGH afterwards.
523
be845b04
JJ
5242016-10-07 Jakub Jelinek <jakub@redhat.com>
525
526 Implement LWG2296 helper intrinsic
527 * c-common.h (enum rid): Add RID_ADDRESSOF.
528 * c-common.c (c_common_reswords): Add __builtin_addressof.
529
c09c4992
BE
5302016-10-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
531
532 PR c++/77700
533 * c-common.c (c_common_truthvalue_conversion): Warn also for
534 suspicious enum values in boolean context.
535
342cfb3e
JJ
5362016-10-06 Jakub Jelinek <jakub@redhat.com>
537
538 Implement P0258R2 - helper for C++17
539 std::has_unique_object_representations trait
540 * c-common.h (enum rid): Add RID_HAS_UNIQUE_OBJ_REPRESENTATIONS.
541 * c-common.c (c_common_reswords): Add
542 __has_unique_object_representations.
543
2e69f143
JJ
5442016-10-05 Jakub Jelinek <jakub@redhat.com>
545
546 PR sanitizer/66343
547 * c-ubsan.c (ubsan_instrument_return): Don't call
548 initialize_sanitizer_builtins here.
549
700fff34
BE
5502016-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
551
552 * c-common.c (c_common_truthvalue_conversion): Warn also for suspicious
553 conditional expression in boolean context when only one arm is
554 non-boolean.
555
9563bfcd
JJ
5562016-10-05 Jakub Jelinek <jakub@redhat.com>
557
04a32443
JJ
558 PR sanitizer/77823
559 * c-ubsan.c (ubsan_instrument_shift): Return NULL_TREE if type0
560 is not integral.
561
9563bfcd
JJ
562 * c-common.c (c_common_reswords): Update comment for C++11.
563
f1644724
JM
5642016-10-04 Jason Merrill <jason@redhat.com>
565
566 * c-common.c (make_tree_vector_from_ctor): New.
567 * c-common.h: Declare it.
568
5a79befb
JJ
5692016-10-04 Jakub Jelinek <jakub@redhat.com>
570
571 * c-cppbuiltin.c (c_cpp_builtins): Don't define
572 __LIBGCC_JCR_SECTION_NAME__.
573
1633d3b9
BE
5742016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
575
576 * c-common.c (c_common_truthvalue_conversion): Warn for suspicious
577 left shift in boolean context.
578
a2c6e7f2
JJ
5792016-09-29 Jakub Jelinek <jakub@redhat.com>
580
581 Implement P0001R1 - C++17 removal of register storage class specifier
582 * c.opt (Wregister): New warning.
583 * c-opts.c (c_common_post_options): Enable -Wregister by
584 default for C++17.
585
75304c87
JG
5862016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
587
588 * c-opts.c (c_common_post_options): Remove special case for
589 TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard
590 in C++.
591
bbfac6da
JJ
5922016-09-27 Jakub Jelinek <jakub@redhat.com>
593
6e39060a
JJ
594 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for
595 -std=c++1z.
596
bbfac6da
JJ
597 * c-ada-spec.c (print_ada_declaration): Remove break after return.
598
e73cf9a2
TP
5992016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
600
601 * c-common.c: Include memmodel.h.
602
c6147dc4
MP
6032016-09-26 Marek Polacek <polacek@redhat.com>
604
605 * c-lex.c (c_common_has_attribute): Handle attribute fallthrough.
606
81fea426
MP
6072016-09-26 Marek Polacek <polacek@redhat.com>
608
609 PR c/7652
610 * c-common.c (c_common_attribute_table): Add fallthrough attribute.
611 (handle_fallthrough_attribute): New function.
612 (attribute_fallthrough_p): New function.
613 * c-common.h (attribute_fallthrough_p): Declare.
614
9a2300e9
MP
6152016-09-24 Marek Polacek <polacek@redhat.com>
616
617 PR c/77490
618 * c.opt (Wbool-operation): New.
619
a09e9e35
BE
6202016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
621
622 * c-common.c (c_common_truthvalue_conversion): Inhibit
623 Wint-in-bool-context warning with from_macro_definition_at.
624 Mention the expression will always evaluate to true.
625
d43b4ccc
MS
6262016-09-21 Martin Sebor <msebor@redhat.com>
627
628 PR bootstrap/77676
629 * c.opt (fprintf-return-value): Temporarily initialize to zero
630 to unblock bootstrap failures.
631
2e1c20b1
JJ
6322016-09-21 Jakub Jelinek <jakub@redhat.com>
633
634 PR c++/77651
635 * c.opt (Waligned-new=): Add RejectNegative.
636 (faligned-new=): Likewise. Spelling fix - change
637 aligned_new_threshhold to aligned_new_threshold.
638 * c-cppbuiltin.c (c_cpp_builtins): Change aligned_new_threshhold
639 to aligned_new_threshold.
640
88d0c3f0
MS
6412016-09-20 Martin Sebor <msebor@redhat.com>
642
643 PR middle-end/49905
644 * c.opt: Add -Wformat-length and -fprintf-return-value.
645
144a96e4
BE
6462016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
647
648 PR c++/77434
649 * c.opt (Wint-in-bool-context): New warning.
650 * c-common.c (c_common_truthvalue_conversion): Warn on integer
651 constants in boolean context.
652
63012d9a
JM
6532016-09-19 Joseph Myers <joseph@codesourcery.com>
654
655 * c-common.c (max_align_t_align): Also consider alignment of
656 float128_type_node.
657
931388ce
JM
6582016-09-15 Jason Merrill <jason@redhat.com>
659
660 * c-common.c (check_cxx_fundamental_alignment_constraints): Check
661 DECL_EXTERNAL.
662
38711381
JM
6632016-09-14 Jason Merrill <jason@redhat.com>
664
665 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
666 limit FIELD_DECL, either.
667
e51fbec3
MP
6682016-09-14 Marek Polacek <polacek@redhat.com>
669
670 * c-common.c (c_common_truthvalue_conversion): Use false instead of 0.
671 * c-common.h (build_unary_op): Change nonconvert parameter type to bool.
672 * c-omp.c (c_finish_omp_atomic): Use false instead of 0.
673
254830ba
DM
6742016-09-13 David Malcolm <dmalcolm@redhat.com>
675
676 * c-common.c (warn_logical_not_parentheses): Replace
677 rich_location::add_fixit_insert calls with add_fixit_insert_before
678 and add_fixit_insert_after, eliminating the "next_loc" calculation.
679
42763690
JM
6802016-09-13 Jason Merrill <jason@redhat.com>
681 Tom de Vries <tom@codesourcery.com>
682
683 PR c++/77427
684 * c-common.c (set_underlying_type): Don't treat array as builtin type.
685
9453eee9
JM
6862016-09-13 Jason Merrill <jason@redhat.com>
687
688 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
689 limit types at all.
690
e96809e3
JM
6912016-09-12 Jason Merrill <jason@redhat.com>
692
693 * c-common.c (check_cxx_fundamental_alignment_constraints): Fix
694 bit/byte confusion, allow large alignment for types.
695
54dcdb88
BE
6962016-09-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
697
698 PR c++/77496
699 * c-common.c (warn_for_omitted_condop): Also warn for boolean data.
700
d1463eb9
DM
7012016-09-12 David Malcolm <dmalcolm@redhat.com>
702
703 PR c/72858
704 * c-format.c (argument_parser::check_argument_type): Add params
705 "type_start" and "conversion_char". Use the former to generate
706 offset_to_type_start and pass it and conversion_char to
707 check_format_types.
708 (check_format_info_main): Capture the start of the type
709 information as "type_start", and pass it an format_char
710 to arg_parser.check_argument_type.
711 (check_format_types): Provide an example in the leading comment.
712 Add params "offset_to_type_start" and "conversion_char"; pass
713 them to format_type_warning calls.
714 (test_get_modifier_for_format_len): Likewise.
715 (matching_type_p): New function.
716 (get_format_for_type): Add param "conversion_char" and move
717 implementation into...
718 (get_format_for_type_1): ...new function, called twice.
719 Use new function matching_type_p rather than checking for
720 TYPE_CANONICAL equality.
721 (get_corrected_substring): New function.
722 (format_type_warning): Provide an example in the leading comment.
723 Add params "offset_to_type_start" and "conversion_char". Replace
724 call to get_format_for_type with call to get_corrected_substring
725 and move rejection of hints for widths/precisions there.
726 (assert_format_for_type_streq): Add param "conversion_char".
727 (ASSERT_FORMAT_FOR_TYPE_STREQ): Add param CONVERSION_CHAR.
728 (test_get_format_for_type_printf): Add conversion chars to the
729 tests, adding coverage for various combinations of integer
730 vs double conversions, and for preserving octal and hexadecimal
731 conversions.
732 (test_get_format_for_type_scanf): Add conversion chars to the
733 tests.
734
5b28efbb
TV
7352016-09-10 Tom de Vries <tom@codesourcery.com>
736
737 PR C/71602
738 * c-common.c (build_va_arg): Handle more strict
739 targetm.canonical_va_list_type. Replace first argument type error with
740 assert.
741
3f0177e7
MS
7422016-09-09 Martin Sebor <msebor@redhat.com>
743
744 PR c/77520
745 PR c/77521
746 * c-format.c (argument_parser::find_format_char_info): Use %qc
747 format directive unconditionally.
748
af63ba4b
JM
7492016-09-09 Jason Merrill <jason@redhat.com>
750
751 Implement C++17 new of over-aligned types.
752 * c.opt: Add -faligned-new and -Waligned-new.
753 * c-common.c (max_align_t_align): Split out from...
754 (cxx_fundamental_alignment_p): ...here.
755 * c-common.h: Declare it.
756 * c-cppbuiltin.c (c_cpp_builtins): Handle aligned new.
757
c65248cb
JM
7582016-09-09 Joseph Myers <joseph@codesourcery.com>
759
760 * c-cppbuiltin.c (builtin_define_type_width): New function.
761 (builtin_define_stdint_macros, c_cpp_builtins): Define type width
762 macros.
763
e5106e27
DM
7642016-09-07 David Malcolm <dmalcolm@redhat.com>
765
766 * c-common.c (get_cpp_ttype_from_string_type): Handle being passed
767 a POINTER_TYPE.
768 (substring_loc::get_location): Move to substring-locations.c,
769 keeping implementation as...
770 (c_get_substring_location): New function, from the above, reworked
771 to use accessors rather than member lookup.
772 * c-common.h (class substring_loc): Move to substring-locations.h,
773 replacing with a forward decl.
774 (c_get_substring_location): New decl.
775 * c-format.c: Include "substring-locations.h".
776 (format_warning_va): Move to substring-locations.c.
777 (format_warning_at_substring): Likewise.
778
a42e7952
MS
7792016-09-06 Martin Sebor <msebor@redhat.com>
780
781 PR c/77336
782 * c-format.c (check_function_format): Avoid issuing warnings for
783 functions unless they call format functions with non-constant
784 format strings.
785
b772a565
RB
7862016-09-06 Richard Biener <rguenther@suse.de>
787
788 PR c/77450
789 * c-common.c (c_common_mark_addressable_vec): Handle
790 COMPOUND_LITERAL_EXPR.
791
25ff5dd3
MP
7922016-09-05 Marek Polacek <polacek@redhat.com>
793
794 PR c/77423
795 * c-common.c (bool_promoted_to_int_p): New function.
796 (expr_has_boolean_operands_p): New function.
797 (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p.
798 (maybe_warn_bool_compare): Use bool_promoted_to_int_p.
799
21234eb5
TV
8002016-09-04 Tom de Vries <tom@codesourcery.com>
801
802 revert:
803 2016-08-29 Tom de Vries <tom@codesourcery.com>
804
805 * c-common.c (build_va_arg): Replace first argument type error
806 with assert.
807
9dc5773f
JJ
8082016-09-02 Jakub Jelinek <jakub@redhat.com>
809
810 PR c/65467
811 * c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions.
812 (c_finish_omp_for): Reject _Atomic qualified iterators.
813
8142016-09-01 Martin Sebor <msebor@redhat.com>
3d7b83b6
MS
815
816 * c-ada-spec.c (dump_ada_function_declaration): Increase buffer
817 size to guarantee it fits the output of the formatted function
818 regardless of its arguments.
819
295844f6
MP
8202016-09-01 Marek Polacek <polacek@redhat.com>
821
822 PR c/7652
823 * c-common.c (resolve_overloaded_builtin): Fix formatting. Add
824 FALLTHRU comments.
825
3d06b6f2
MP
8262016-08-29 Marek Polacek <polacek@redhat.com>
827
828 PR c/77292
829 * c-common.c (warn_logical_not_parentheses): Don't warn for
830 a comparison or a logical operator.
831
34cedad5
TV
8322016-08-29 Tom de Vries <tom@codesourcery.com>
833
834 * c-common.c (build_va_arg): Fix type comparison assert.
835
f162d717
TV
8362016-08-29 Tom de Vries <tom@codesourcery.com>
837
838 * c-common.c (build_va_arg): Replace first argument type error
839 with assert.
840
ba9bbd6f
TV
8412016-08-29 Tom de Vries <tom@codesourcery.com>
842
843 PR c/77398
844 * c-common.c (build_va_arg): Add first argument error. Build va_arg
845 with error_mark_node as va_list instead of with illegal va_list.
846
ebef225f
MP
8472016-08-25 Marek Polacek <polacek@redhat.com>
848 David Malcolm <dmalcolm@redhat.com>
849
850 * c-common.c (warn_logical_not_parentheses): Print fixit hints.
851 * c-common.h (warn_logical_not_parentheses): Update declaration.
852
b00e6e75
MP
8532016-08-22 Marek Polacek <polacek@redhat.com>
854
855 PR c++/77321
856 * c-common.c (warn_for_memset): Check type for null.
857
6dc198e3
JM
8582016-08-22 Joseph Myers <joseph@codesourcery.com>
859
860 * c-family/c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and
861 _FloatNx types for suffixes for built-in functions.
862
c65699ef
JM
8632016-08-19 Joseph Myers <joseph@codesourcery.com>
864
865 PR c/32187
866 * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32)
867 (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X)
868 (RID_FLOAT128X): New enum rid values.
869 (CASE_RID_FLOATN_NX): New macro.
870 * c-common.c (c_common_reswords): Add _FloatN and _FloatNx
871 keywords.
872 (c_common_type_for_mode): Check for _FloatN and _FloatNx and
873 corresponding complex types.
874 (c_common_nodes_and_builtins): For non-C++, register _FloatN and
875 _FloatNx and corresponding complex types.
876 (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX.
877 * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN
878 and _FloatNx types for the widest type for determining
879 DECIMAL_DIG. Define __LDBL_DECIMAL_DIG__ as well as
880 __DECIMAL_DIG__ for long double. Handle FMA_SUFFIX being NULL.
881 (c_cpp_builtins): Call builtin_define_float_constants for _FloatN
882 and _FloatNx types.
883 * c-lex.c (interpret_float): Handle _FloatN and _FloatNx
884 constants.
885 * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and
886 _FloatNx types.
887
cc015f3a
DM
8882016-08-18 David Malcolm <dmalcolm@redhat.com>
889
890 * c-opts.c (c_diagnostic_finalizer): Update for change to
891 diagnostic_show_locus.
892
cb18fd07
DM
8932016-08-18 David Malcolm <dmalcolm@redhat.com>
894
895 * c-common.c: Include "spellcheck.h".
896 (cb_get_suggestion): New function.
897 * c-common.h (cb_get_suggestion): New decl.
898 * c-lex.c (init_c_lex): Initialize cb->get_suggestion to
899 cb_get_suggestion.
900
a76989dc
MP
9012016-08-18 Marek Polacek <polacek@redhat.com>
902
903 PR c/71514
904 * c-common.c (get_atomic_generic_size): Disallow pointer-to-function
905 and pointer-to-VLA.
906
65e736c0
DM
9072016-08-16 David Malcolm <dmalcolm@redhat.com>
908
909 PR c/72857
910 * c-common.c (substring_loc::get_range): Rename to...
911 (substring_loc::get_location): ...this, converting param from a
912 source_range * to a location_t *. Call
913 get_source_location_for_substring rather than
914 get_source_range_for_substring, and pass in m_caret_idx.
915 * c-common.h (substring_loc::substring_loc): Add param "caret_idx".
916 (substring_loc::get_range): Replace with...
917 (substring_loc::get_location): ...this.
918 (substring_loc::set_caret_index): New method.
919 (substring_loc): Add field m_caret_idx.
920 * c-format.c (format_warning_va): Update for above changes.
921 Rename local "substring_loc" to "fmt_substring_loc" to avoid
922 clashing with type name.
923 (format_warning_at_char): Add caret_idx param to substring_loc ctor.
924 (check_argument_type): Likewise.
925 (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc"
926 Use a copy when emitting warnings, setting the caret index from TYPE.
927
7e1dde14 9282016-08-16 Eric Botcazou <ebotcazou@adacore.com>
8e745a17 929 Arnaud Charlet <charlet@adacore.com>
7e1dde14
EB
930
931 * c-ada-spec.c (dump_number): New function.
932 (handle_escape_character): Likewise.
933 (print_ada_macros): Add handling of constant integers and strings.
934
191816a3
MP
9352016-08-12 Marek Polacek <polacek@redhat.com>
936
937 PR c/7652
938 * c-common.c (scalar_to_vector): Adjust fall through comment.
939 * c-opts.c (c_common_handle_option): Likewise.
940 * c-pragma.c (handle_pragma_pack): Add FALLTHRU.
941 * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust
942 fall through comment.
943 * cilk.c (extract_free_variables): Add FALLTHRU.
944
452df4a4
JM
9452016-08-10 Jason Merrill <jason@redhat.com>
946
947 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr.
948
f3365c12
JM
9492016-08-09 Jason Merrill <jason@redhat.com>
950
951 * c-common.c (c_common_attribute_table): vector_size affects type
952 identity.
953
f0bc3323
MP
9542016-08-09 Marek Polacek <polacek@redhat.com>
955
956 PR c/7652
957 * c-ada-spec.c (dump_generic_ada_node): Add return.
958
98e5a19a
JM
9592016-08-09 Jason Merrill <jason@redhat.com>
960
961 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for
962 C++17 constexpr lambdas.
963
895aa8e1
DM
9642016-08-08 David Malcolm <dmalcolm@redhat.com>
965
966 PR c/64955
967 * c-common.h (selftest::c_format_c_tests): New declaration.
968 (selftest::run_c_tests): New declaration.
969 * c-format.c: Include "selftest.h.
970 (format_warning_va): Add param "corrected_substring" and use
971 it to add a replacement fix-it hint.
972 (format_warning_at_substring): Likewise.
973 (format_warning_at_char): Update for new param of
974 format_warning_va.
975 (argument_parser::check_argument_type): Pass "fki" to
976 check_format_types.
977 (check_format_types): Add param "fki" and pass it to
978 format_type_warning.
979 (deref_n_times): New function.
980 (get_modifier_for_format_len): New function.
981 (selftest::test_get_modifier_for_format_len): New function.
982 (get_format_for_type): New function.
983 (format_type_warning): Add param "fki" and use it to attempt
984 to provide hints for argument types when calling
985 format_warning_at_substring.
986 (selftest::get_info): New function.
987 (selftest::assert_format_for_type_streq): New function.
988 (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro.
989 (selftest::test_get_format_for_type_printf): New function.
990 (selftest::test_get_format_for_type_scanf): New function.
991 (selftest::c_format_c_tests): New function.
992
e52ed3fe
DM
9932016-08-08 David Malcolm <dmalcolm@redhat.com>
994
995 PR c/52952
996 * c-format.c: Include "diagnostic.h".
997 (location_column_from_byte_offset): Delete.
998 (location_from_offset): Delete.
999 (format_warning_va): New function.
1000 (format_warning_at_substring): New function.
1001 (format_warning_at_char): New function.
1002 (check_format_arg): Capture location of format_tree and pass to
1003 check_format_info_main.
1004 (argument_parser): Add fields "start_of_this_format" and
1005 "format_string_cst".
1006 (flag_chars_t::validate): Add param "format_string_cst". Convert
1007 warning_at call using location_from_offset to call to
1008 format_warning_at_char.
1009 (argument_parser::argument_parser): Add param "format_string_cst_"
1010 and use use it to initialize field "format_string_cst".
1011 Initialize new field "start_of_this_format".
1012 (argument_parser::read_format_flags): Convert warning_at call
1013 using location_from_offset to a call to format_warning_at_char.
1014 (argument_parser::read_any_format_left_precision): Likewise.
1015 (argument_parser::read_any_format_precision): Likewise.
1016 (argument_parser::read_any_other_modifier): Likewise.
1017 (argument_parser::find_format_char_info): Likewise, in three places.
1018 (argument_parser::parse_any_scan_set): Likewise, in one place.
1019 (argument_parser::handle_conversions): Likewise, in two places.
1020 (argument_parser::check_argument_type): Add param "fmt_param_loc"
1021 and use it to make a substring_loc. Pass the latter to
1022 check_format_types.
1023 (check_format_info_main): Add params "fmt_param_loc" and
1024 "format_string_cst". Convert warning_at calls using
1025 location_from_offset to calls to format_warning_at_char. Pass the
1026 new params to the arg_parser ctor. Pass "format_string_cst" to
1027 flag_chars.validate. Pass "fmt_param_loc" to
1028 arg_parser.check_argument_type.
1029 (check_format_types): Convert first param from a location_t
1030 to a const substring_loc & and rename to "fmt_loc". Attempt
1031 to extract the range of the relevant parameter and pass it
1032 to format_type_warning.
1033 (format_type_warning): Convert first param from a location_t
1034 to a const substring_loc & and rename to "fmt_loc". Add
1035 params "param_range" and "type". Replace calls to warning_at
1036 with calls to format_warning_at_substring.
1037
1c4d457e
DM
10382016-08-08 David Malcolm <dmalcolm@redhat.com>
1039
1040 * c-format.c (class flag_chars_t): New class.
1041 (struct length_modifier): New struct.
1042 (class argument_parser): New class.
1043 (flag_chars_t::flag_chars_t): New ctor.
1044 (flag_chars_t::has_char_p): New method.
1045 (flag_chars_t::add_char): New method.
1046 (flag_chars_t::validate): New method.
1047 (flag_chars_t::get_alloc_flag): New method.
1048 (flag_chars_t::assignment_suppression_p): New method.
1049 (argument_parser::argument_parser): New ctor.
1050 (argument_parser::read_any_dollar): New method.
1051 (argument_parser::read_format_flags): New method.
1052 (argument_parser::read_any_format_width): New method.
1053 (argument_parser::read_any_format_left_precision): New method.
1054 (argument_parser::read_any_format_precision): New method.
1055 (argument_parser::handle_alloc_chars): New method.
1056 (argument_parser::read_any_length_modifier): New method.
1057 (argument_parser::read_any_other_modifier): New method.
1058 (argument_parser::find_format_char_info): New method.
1059 (argument_parser::validate_flag_pairs): New method.
1060 (argument_parser::give_y2k_warnings): New method.
1061 (argument_parser::parse_any_scan_set): New method.
1062 (argument_parser::handle_conversions): New method.
1063 (argument_parser::check_argument_type): New method.
1064 (check_format_info_main): Introduce classes argument_parser
1065 and flag_chars_t, moving the code within the loop into methods
1066 of these classes. Make various locals "const".
1067
88fa5555
DM
10682016-08-05 David Malcolm <dmalcolm@redhat.com>
1069
1070 * c-common.c: Include "substring-locations.h".
1071 (get_cpp_ttype_from_string_type): New function.
1072 (g_string_concat_db): New global.
1073 (substring_loc::get_range): New method.
1074 * c-common.h (g_string_concat_db): New declaration.
1075 (class substring_loc): New class.
1076 * c-lex.c (lex_string): When concatenating strings, capture the
1077 locations of all tokens using a new obstack, and record the
1078 concatenation locations within g_string_concat_db.
1079 * c-opts.c (c_common_init_options): Construct g_string_concat_db
1080 on the ggc-heap.
1081
78169471
MP
10822016-07-29 Marek Polacek <polacek@redhat.com>
1083
638fc14f
MP
1084 PR c/71926
1085 * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the
1086 parentheses warning.
1087
78169471
MP
1088 PR c/71574
1089 * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL.
1090
1225d6b1
ML
10912016-07-28 Martin Liska <mliska@suse.cz>
1092
1093 PR gcov-profile/68025
1094 * c-common.c (handle_no_profile_instrument_function_attribute):
1095
ec1e2a40
BE
10962016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
1097
1098 * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of
1099 BITS_PER_UNIT_LOG.
1100
5ec2cd9f
JM
11012016-07-25 Jason Merrill <jason@redhat.com>
1102
1103 PR c++/65970
1104 * c.opt (fconstexpr-loop-limit): New.
1105
9dc5773f 11062016-07-22 Martin Sebor <msebor@redhat.com>
2e6b45af
MS
1107
1108 PR c++/71675
1109 * c-common.c (resolve_overloaded_builtin): Avoid converting
1110 __atomic_compare_exchange_n return type to that of what its
1111 first argument points to.
1112
e3fe09c1
UB
11132016-07-22 Uros Bizjak <ubizjak@gmail.com>
1114
1115 * c-common.c: Use HOST_WIDE_INT_M1U instead of
1116 ~(unsigned HOST_WIDE_INT) 0.
1117
bc91c436
ML
11182016-07-22 Martin Liska <mliska@suse.cz>
1119
1120 PR gcov-profile/69028
1121 PR gcov-profile/62047
1122 * cilk.c (create_cilk_helper_decl): Set location of a new decl
1123 to the current_function_decl.
1124
451dcc66
JM
11252016-07-21 Jason Merrill <jason@redhat.com>
1126
1127 PR c++/65168
1128 * c-common.c (c_common_truthvalue_conversion): Check
1129 c_inhibit_evaluation_warnings for warning about address of
1130 reference.
1131
de6a69ee
DM
11322016-07-20 David Malcolm <dmalcolm@redhat.com>
1133
1134 * c-common.h (lookup_name_fuzzy): Convert return type from tree to
1135 const char *.
1136
d022c55a
JM
11372016-07-15 Jason Merrill <jason@redhat.com>
1138
1139 * c-opts.c (c_common_post_options): Update -fabi-version default to 11.
1140
ddbbcb19
JJ
11412016-07-15 Jakub Jelinek <jakub@redhat.com>
1142
1143 PR c/71858
1144 * c-common.h (enum lookup_name_fuzzy_kind): Add
1145 FUZZY_LOOKUP_FUNCTION_NAME.
1146
d0cf395a
JM
11472016-07-08 Jason Merrill <jason@redhat.com>
1148
1149 P0145: Refining Expression Order for C++.
1150 * c.opts (-fargs-in-order): Rename to -fstrong-eval-order.
1151 * c-opts.c: Adjust.
1152
98d44e93
MT
11532016-07-05 Markus Trippelsdorf <markus@trippelsdorf.de>
1154
1155 PR c++/71214
1156 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.
1157
f9d8d994
TS
11582016-06-29 Thomas Schwinge <thomas@codesourcery.com>
1159
1160 * c-pragma.h (enum pragma_kind): Rename
1161 PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE. Adjust all
1162 users.
1163
4aa83879
RB
11642016-06-29 Richard Biener <rguenther@suse.de>
1165
1166 PR middle-end/71002
1167 * c-common.c (c_common_get_alias_set): Remove union type punning case.
1168
a25bd9e6
JM
11692016-06-24 Jason Merrill <jason@redhat.com>
1170
1171 P0145R2: Refining Expression Order for C++.
1172 * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of
1173 MODIFY_EXPR.
1174
a86451b9
JJ
11752016-06-24 Jakub Jelinek <jakub@redhat.com>
1176
1177 * c-common.c (check_builtin_function_arguments): Require last
1178 argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type.
1179 Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW
1180 if the last argument is pointer to enumerated or boolean type.
1181
1a4f11c8
DM
11822016-06-22 David Malcolm <dmalcolm@redhat.com>
1183
1184 PR c/70339
1185 * c-common.h (enum lookup_name_fuzzy_kind): New enum.
1186 (lookup_name_fuzzy): New prototype.
1187
fe55692c
JDA
11882016-06-21 John David Anglin <danglin@gcc.gnu.org>
1189
1190 * c-common.c (get_source_date_epoch): Use int64_t instead of long long.
1191
4eb24e01
JM
11922016-06-14 Jason Merrill <jason@redhat.com>
1193
1194 P0145R2: Refining Expression Order for C++.
1195 * c.opt (fargs-in-order): New.
1196 * c-opts.c (c_common_post_options): Adjust flag_args_in_order.
1197
ef7cf206
JJ
11982016-06-13 Jakub Jelinek <jakub@redhat.com>
1199
0dda258b
JJ
1200 PR sanitizer/71498
1201 * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
1202 all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.
1203
ef7cf206
JJ
1204 PR preprocessor/71183
1205 * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch
1206 to cb_get_source_date_epoch.
1207
50b15873
JJ
12082016-06-10 Jakub Jelinek <jakub@redhat.com>
1209
1210 PR c/68657
1211 * c.opt (Wpsabi): Add Warning flag.
1212
4d926e34
MS
12132016-06-10 Martin Sebor <msebor@redhat.com>
1214
1215 PR c/71392
1216 * gcc/c-family/c-common.c (handle_nonnull_attribute): Accept
1217 the nonnull attribute in type-generic builtins.
1218
e01b4e16
MS
12192016-06-09 Martin Sebor <msebor@redhat.com>
1220
1221 PR c/70883
1222 * c-common.c (builtin_function_validate_nargs): Make text of error
1223 message consistent with others like it.
1224
44a845ca
MS
12252016-06-08 Martin Sebor <msebor@redhat.com>
1226 Jakub Jelinek <jakub@redhat.com>
1227
1228 PR c++/70507
1229 PR c/68120
1230 * c-common.c (check_builtin_function_arguments): Handle
1231 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
1232
a80a7051
RB
12332016-06-08 Richard Biener <rguenther@suse.de>
1234
1235 * c-common.c (parse_optimize_options): Improve diagnostic messages.
1236
bfd67b47
RB
12372016-06-07 Richard Biener <rguenther@suse.de>
1238
1239 PR c/61564
1240 * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION
1241 options and warn about others.
1242
15c98b2e
ES
12432016-06-01 Eduard Sanou <dhole@openmailbox.org>
1244
1245 * c-common.c (get_source_date_epoch): Rename to
1246 cb_get_source_date_epoch.
1247 * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
1248 message when the parsing fails. Use error_at instead of fatal_error.
1249 * c-common.h (get_source_date_epoch): Rename to
1250 cb_get_source_date_epoch.
1251 * c-common.h (cb_get_source_date_epoch): Prototype.
1252 * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
1253 * c-common.h (c_omp_region_type): Remove trailing comma.
1254 * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
1255 * c-lex.c (c_lex_with_flags): Remove initialization of
1256 pfile->source_date_epoch.
1257
00631022
JJ
12582016-05-30 Jakub Jelinek <jakub@redhat.com>
1259
1260 PR c++/71349
1261 * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
1262 C_OMP_CLAUSE_SPLIT_TARGET. Put OMP_CLAUSE_NOWAIT to
1263 C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
1264 instead of C_OMP_CLAUSE_SPLIT_FOR.
1265
f17a223d
RB
12662016-05-24 Richard Biener <rguenther@suse.de>
1267
1268 PR middle-end/70434
1269 PR c/69504
1270 * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
1271 (convert_vector_to_array_for_subscript): ... this.
1272 * c-common.c (convert_vector_to_pointer_for_subscript): Use a
1273 VIEW_CONVERT_EXPR to an array type. Rename to ...
1274 (convert_vector_to_array_for_subscript): ... this.
1275
4f2e1536
MP
12762016-05-12 Marek Polacek <polacek@redhat.com>
1277
1278 PR c/70756
1279 * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
1280 size_in_bytes and pass LOC to it.
1281
d6e83a8d
MM
12822016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
1283
1284 PR c/43651
1285 * c.opt (Wduplicate-decl-specifier): New option.
1286
5c3a10fb
MP
12872016-05-11 Marek Polacek <polacek@redhat.com>
1288
1289 PR c++/71024
1290 * c-common.c (diagnose_mismatched_attributes): New function.
1291 * c-common.h (diagnose_mismatched_attributes): Declare.
1292
deef7113
MP
12932016-05-04 Marek Polacek <polacek@redhat.com>
1294
1295 * c.opt (Wdangling-else): New option.
1296
79ce98bc
MP
12972016-05-03 Marek Polacek <polacek@redhat.com>
1298
1299 PR c/70859
1300 * c-common.c (builtin_function_validate_nargs): Add location
1301 parameter. Use it.
1302 (check_builtin_function_arguments): Add location and arguments
1303 parameters. Use them.
1304 * c-common.h (check_builtin_function_arguments): Update declaration.
1305
381cdae4
RB
13062016-05-03 Richard Biener <rguenther@suse.de>
1307
1308 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
1309 allow call args to gimplify to SSA names.
1310
1d793c34
MP
13112016-05-03 Marek Polacek <polacek@redhat.com>
1312
1313 * c-common.h (enum c_omp_region_type): Remove stray comma.
1314
77886428
CP
13152016-05-02 Cesar Philippidis <cesar@codesourcery.com>
1316
1317 * c-common.h (enum c_omp_region_type): Define.
1318
697e0b28
RS
13192016-05-02 Richard Sandiford <richard.sandiford@arm.com>
1320
1321 * c-common.c (shorten_compare): Use wi::to_wide.
1322
e7ff0319
CP
13232016-04-29 Cesar Philippidis <cesar@codesourcery.com>
1324
1325 PR middle-end/70626
1326 * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
1327 * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
1328 reduction clauses in acc parallel loops.
1329
2fff3db8
MP
13302016-04-29 Marek Polacek <polacek@redhat.com>
1331
1332 PR c/70852
1333 * c-common.c (warn_for_memset): Check domain before accessing it.
1334
509063eb
DV
13352016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
1336
1337 PR/69089
1338 * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
1339 "aligned" attribute.
1340
b632761d
JM
13412016-04-28 Jason Merrill <jason@redhat.com>
1342
1343 * c-lex.c (c_common_has_attribute): Handle nodiscard.
1344
174f6622
ES
13452016-04-28 Eduard Sanou <dhole@openmailbox.org>
1346 Matthias Klose <doko@debian.org>
1347
1348 * c-common.c (get_source_date_epoch): New function, gets the environment
1349 variable SOURCE_DATE_EPOCH and parses it as long long with error
1350 handling.
1351 * c-common.h (get_source_date_epoch): Prototype.
1352 * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
1353
6bc2bb18
RB
13542015-04-27 Ryan Burn <contact@rnburn.com>
1355
1356 PR c++/69024
1357 PR c++/68997
1358 * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
1359 (cilk_recognize_spawn): Renamed from recognize_spawn and change to
1360 external linkage.
1361 (cilk_detect_and_unwrap): Corresponding changes.
1362 (extract_free_variables): Don't extract free variables from
1363 AGGR_INIT_EXPR slot.
1364 * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
1365 (cilk_recognize_spawn): Likewise.
1366
c1e1f433
BS
13672016-04-27 Bernd Schmidt <bschmidt@redhat.com>
1368
1369 * c.opt (Wmemset-elt-size): New option.
1370 * c-common.c (warn_for_memset): New function.
1371 * c-common.h (warn_for_memset): Declare.
1372
d067e05f
JM
13732016-04-25 Jason Merrill <jason@redhat.com>
1374
1375 * c-common.c (handle_unused_attribute): Accept CONST_DECL.
1376 No longer static.
1377 * c-common.h: Declare it.
1378 * c-lex.c (c_common_has_attribute): Add maybe_unused.
1379
9aa36ae5
JM
13802016-04-22 Jason Merrill <jason@redhat.com>
1381
1382 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
1383
477d4906
IV
13842016-04-20 Ilya Verbin <ilya.verbin@intel.com>
1385
1386 PR c++/69363
1387 * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
1388 * c-common.h (c_finish_cilk_clauses): Remove declaration.
1389
fe37c7af
MM
13902016-04-18 Michael Matz <matz@suse.de>
1391
1392 * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
1393 and SET_DECL_ALIGN.
1394
23f2660f
EB
13952016-04-17 Eric Botcazou <ebotcazou@adacore.com>
1396
1397 * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
1398 (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
1399 to incomplete types.
1400 (dump_nested_type): Remove redundant tests and tidy up.
1401 (print_ada_declaration): Also set TREE_VISITED on the declaration of
1402 a type which is the typedef of an original type.
1403
1e77281b
MP
14042016-04-15 Marek Polacek <polacek@redhat.com>
1405
1406 PR c/70651
1407 * c-common.c (build_va_arg): Change two asserts into errors and return
1408 error_mark_node.
1409
b3a77f21
MP
14102016-04-13 Marek Polacek <polacek@redhat.com>
1411
1412 PR c++/70639
1413 * c-indentation.c (should_warn_for_misleading_indentation): Bail out
1414 for switch statements, too.
1415
322b8466
JM
14162016-03-28 Jason Merrill <jason@redhat.com>
1417
1418 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
1419
fbdb6baf
MP
14202016-03-23 Marek Polacek <polacek@redhat.com>
1421
1422 PR c++/69884
1423 * c.opt (Wignored-attributes): New option.
1424
5c240f4d
DM
14252016-03-22 David Malcolm <dmalcolm@redhat.com>
1426
1427 PR c/69993
1428 * c-indentation.c (warn_for_misleading_indentation): Rewrite the
1429 diagnostic text, reversing the order of the warning and note so
1430 that they appear in source order.
1431
14ba7b28
MP
14322016-03-17 Marek Polacek <polacek@redhat.com>
1433
1434 PR c/69407
1435 * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
1436 operations.
1437
08a1cadc
JM
14382016-03-14 Jason Merrill <jason@redhat.com>
1439
2aaeea19
JM
1440 * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
1441
08a1cadc
JM
1442 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
1443
c06d25bb
RB
14442016-03-09 Richard Biener <rguenther@suse.de>
1445
1446 PR c/70143
1447 * c-common.c (strict_aliasing_warning): Add back
1448 alias_sets_conflict_p check.
1449
80aac5c8
JM
14502016-03-08 Jason Merrill <jason@redhat.com>
1451
1452 * c-opts.c (set_std_cxx1z): Don't enable concepts.
1453
64b23c13
DM
14542016-03-04 David Malcolm <dmalcolm@redhat.com>
1455
1456 PR c/68187
1457 * c-indentation.c (get_visual_column): Move code to determine next
1458 tab stop to...
1459 (next_tab_stop): ...this new function.
1460 (line_contains_hash_if): Delete function.
1461 (detect_preprocessor_logic): Delete function.
1462 (get_first_nws_vis_column): New function.
1463 (detect_intervening_unindent): New function.
1464 (should_warn_for_misleading_indentation): Replace call to
1465 detect_preprocessor_logic with a call to
1466 detect_intervening_unindent.
1467
729526f5
DM
14682016-03-04 David Malcolm <dmalcolm@redhat.com>
1469
1470 PR c/68187
1471 * c-indentation.c (should_warn_for_misleading_indentation): When
1472 suppressing warnings about cases where the guard and body are on
1473 the same column, only use the first non-whitespace column in place
1474 of the guard token column when dealing with "else" clauses.
1475 When rejecting aligned BODY and NEXT, loosen the requirement
1476 from equality with the first non-whitespace of guard to simply
1477 that they not be indented relative to it.
1478
e9a35493
RB
14792016-03-04 Richard Biener <rguenther@suse.de>
1480
1481 PR c++/70054
1482 * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
1483 instead of alias_sets_conflict_p.
1484
1be56bc5
MP
14852016-03-01 Marek Polacek <polacek@redhat.com>
1486
1487 PR c++/69795
1488 * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
1489 any DECL.
1490
35886f0b
MS
14912016-02-22 Martin Sebor <msebor@redhat.com>
1492
1493 PR middle-end/69780
1494 * c-common.c (check_builtin_function_arguments): Validate and
1495 reject invalid arguments to __builtin_alloca_with_align.
1496
4246c8da
MW
14972016-02-20 Mark Wielaard <mjw@redhat.com>
1498
1499 PR c/28901
1500 * c.opt (Wunused-const-variable): Turn into Alias for...
1501 (Wunused-const-variable=): New option.
1502
268be88c
BE
15032016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
1504
1505 PR c++/69865
1506 * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
1507 here...
1508 (c_common_init_options): ...to here.
1509 (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
1510
871b3f47
JJ
15112016-02-19 Jakub Jelinek <jakub@redhat.com>
1512
1513 PR c++/69826
1514 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
1515 (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
1516 flag_preprocess_only.
1517
bf14eba2
JJ
15182016-02-16 Jakub Jelinek <jakub@redhat.com>
1519
1520 PR c/69835
1521 * c.opt (Wnonnull-compare): Enable for -Wall.
1522
ba6b3795
JJ
15232016-02-15 Jakub Jelinek <jakub@redhat.com>
1524
1525 PR c++/69797
1526 * c-common.c (sync_resolve_size): Diagnose too few arguments
1527 even when params is non-NULL empty vector.
1528
a011cd92
BS
15292016-02-08 Bernd Schmidt <bschmidt@redhat.com>
1530
1531 PR target/60410
1532 * c.opt (fshort-double): Remove.
1533
46cb9332
MS
15342016-02-05 Martin Sebor <msebor@redhat.com>
1535
1536 PR c++/69662
1537 * c.opt (Warning options): Update -Wplacement-new to take
1538 an optional argument.
1539
e1b81f2b
JJ
15402016-02-01 Jakub Jelinek <jakub@redhat.com>
1541
1542 PR preprocessor/69543
1543 PR c/69558
1544 * c-pragma.c (handle_pragma_diagnostic): Pass input_location
1545 instead of loc to control_warning_option.
1546
b6adbb9f
NS
15472016-02-01 Nathan Sidwell <nathan@codesourcery.com>
1548
1549 * c.opt (fopenacc-dim=): New option.
1550
5d70666e
RB
15512016-01-27 Ryan Burn <contact@rnburn.com>
1552
1553 PR cilkplus/69267
1554 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
1555 gimplify_arg. Removed superfluous post_p argument.
1556 * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
1557 superfluous post_p argument.
1558 * c-gimplify.c (c_gimplify_expr): Likewise.
1559
01e1dea3
DM
15602016-01-26 David Malcolm <dmalcolm@redhat.com>
1561
1562 PR other/69006
1563 * c-opts.c (c_diagnostic_finalizer): Replace invocation of
1564 pp_newline_and_flush with pp_flush.
1565
9f04a53e
MS
15662016-01-20 Martin Sebor <msebor@redhat.com>
1567
1568 PR c/69405
1569 * c-common.c (sync_resolve_size): Avoid printing diagnostic about
1570 an incompatible argument when the argument isn't a valid tree node.
1571
7f26f7df
JM
15722016-01-18 Jason Merrill <jason@redhat.com>
1573
1574 PR c++/68767
1575 * c-common.c (check_function_arguments_recurse): Fold the whole
1576 COND_EXPR, not just the condition.
1577
f62bf092
TV
15782016-01-18 Tom de Vries <tom@codesourcery.com>
1579
1580 * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
1581 classify as loop clause.
1582
e0a575ff
JJ
15832016-01-15 Jakub Jelinek <jakub@redhat.com>
1584
1585 PR bootstrap/68271
1586 * c-pragma.c (c_register_pragma_1): Adjust comment to note that
1587 C++ FE no longer has limit on number of pragmas.
1588
15892015-01-14 Ryan Burn <contact@rnburn.com>
b6e3db06
RB
1590
1591 PR c++/69048
1592 * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
c47eaca6 1593 to add missing cleanup point.
b6e3db06 1594
c7df95d8
DM
15952016-01-14 David Malcolm <dmalcolm@redhat.com>
1596
1597 PR c++/68819
1598 * c-indentation.c (get_visual_column): Add location_t param.
1599 Handle the column number being zero by effectively disabling the
1600 warning, with an "inform".
1601 (should_warn_for_misleading_indentation): Add location_t argument
1602 for all uses of get_visual_column.
1603
21efdd80
PP
16042016-01-10 Patrick Palka <ppalka@gcc.gnu.org>
1605
1606 PR c++/69029
1607 * c-indentation.c (should_warn_for_misleading_indentation):
1608 Don't warn about do-while statements.
1609
7a127fa7
MS
16102016-01-07 Martin Sebor <msebor@redhat.com>
1611
1612 PR c/68966
1613 * c-common.c (sync_resolve_size): Reject first argument when it's
1614 a pointer to _Bool.
1615
c589e975
DM
16162016-01-05 David Malcolm <dmalcolm@redhat.com>
1617
1618 PR c/69122
1619 * c-indentation.c (get_visual_column): Remove default argument.
1620 (should_warn_for_misleading_indentation): For the multiline case,
1621 update call to get_visual_column for next_stmt_exploc so that it
1622 captures the location of the first non-whitespace character in the
1623 relevant line. Don't issue warnings if there is non-whitespace
1624 before the next statement.
1625
818ab71a
JJ
16262016-01-04 Jakub Jelinek <jakub@redhat.com>
1627
1628 Update copyright years.
1629
745e411d
DM
16302015-12-21 David Malcolm <dmalcolm@redhat.com>
1631
1632 * c-common.c (binary_op_error): Convert first param from
1633 location_t to rich_location * and use it when emitting an error.
1634 * c-common.h (binary_op_error): Convert first param from
1635 location_t to rich_location *.
1636
de67c4c3
DM
16372015-12-16 David Malcolm <dmalcolm@redhat.com>
1638
1639 * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
1640 * c-lex.c (conflict_marker_get_final_tok_kind): New function.
1641
4a38b02b
IV
16422015-12-15 Ilya Verbin <ilya.verbin@intel.com>
1643
1644 * c-common.c (c_common_attribute_table): Handle "omp declare target
1645 link" attribute.
1646
54d62f51
JJ
16472015-12-14 Jakub Jelinek <jakub@redhat.com>
1648
1649 PR c/68833
1650 * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
1651
8d4227c8
TB
16522014-12-12 Tobias Burnus <burnus@net-b.de>
1653
1654 PR fortran/68815
1655 * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
1656 specifiers (%d, %i,%u and %c).
1657
f6069ccc
DM
16582015-12-10 David Malcolm <dmalcolm@redhat.com>
1659
1660 * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
1661
63bbf46d
JJ
16622015-12-08 Jakub Jelinek <jakub@redhat.com>
1663
1664 PR c/48088
1665 PR c/68657
1666 * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
1667 * c-pragma.c (handle_pragma_diagnostic): Adjust
1668 control_warning_option caller.
1669
f79520bb
DM
16702015-12-07 David Malcolm <dmalcolm@redhat.com>
1671
1672 * c-common.c (c_cpp_error): Update for change to
1673 rich_location::set_range.
1674
b3d5bc62
JJ
16752015-12-04 Paolo Bonzini <bonzini@gnu.org>
1676
1677 * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
1678 shifting 1 out of the sign bit.
1679
16802015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
1681
1682 * c-common.c (c_common_attribute_table[]): Update max arguments
1683 count for "simd" attribute.
1684 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
1685
6eb4a537
JJ
16862015-12-03 Jakub Jelinek <jakub@redhat.com>
1687
1688 PR preprocessor/57580
1689 * c-ppoutput.c (print): Change printed field to bool.
1690 Move src_file last for smaller padding.
1691 (init_pp_output): Set print.printed to false instead of 0.
1692 (scan_translation_unit): Fix up formatting. Set print.printed
1693 to true after printing something other than newline.
1694 (scan_translation_unit_trad): Set print.printed to true instead of 1.
1695 (maybe_print_line_1): Set print.printed to false instead of 0.
1696 (print_line_1): Likewise.
1697 (do_line_change): Set print.printed to true instead of 1.
1698 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
1699 dump_macro): Set print.printed to false after printing newline.
1700
4250754e
JM
17012015-12-02 Jason Merrill <jason@redhat.com>
1702
f479b43d
JM
1703 * c-common.c (fold_for_warn): New.
1704 (warn_logical_operator, warn_tautological_cmp)
1705 (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
1706
4250754e
JM
1707 * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
1708 (c_fully_fold_internal, decl_constant_value_for_optimization):
1709 Move to c/c-fold.c.
1710 * c-common.h: Don't declare decl_constant_value_for_optimization.
1711
e9e32ee6
JM
17122015-12-02 Joseph Myers <joseph@codesourcery.com>
1713
1714 PR c/68162
1715 * c-common.h (c_build_qualified_type): Add extra default
1716 arguments.
1717
37d5ad46
JB
17182015-12-01 Julian Brown <julian@codesourcery.com>
1719 Cesar Philippidis <cesar@codesourcery.com>
1720 James Norris <James_Norris@mentor.com>
1721
1722 * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
1723 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
1724 (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
1725
f07862c7
EB
17262015-11-30 Eric Botcazou <ebotcazou@adacore.com>
1727
1728 * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
1729 (decl_sloc_common): Delete and move bulk of processing to...
1730 (decl_sloc): ...here.
1731 (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
1732 (dump_ada_double_name): Remove S parameter and compute the suffix.
1733 (dump_ada_array_type): Add PARENT parameter. Simplify computation of
1734 element type and deal with an anonymous one.
1735 (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
1736 (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type
1737 and remove reference to QUAL_UNION_TYPE.
1738 (dump_nested_types): Make 2 passes on the fields and move bulk to...
1739 (dump_nested_type): ...here. New function extracted from above.
1740 Generate a full declaration for anonymous element type of arrays.
1741 (print_ada_declaration): Really skip anonymous declarations. Remove
1742 references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type.
1743 Clean up processing of declarations of array types and objects.
1744 (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
1745 Remove obsolete code and tidy up.
1746
75c8aac3
JH
17472015-11-29 Jan Hubicka <hubicka@ucw.cz>
1748
1749 PR c/67581
1750 * c-common.c (handle_transparent_union_attribute): Update
1751 also type variants.
1752
b58d3df2
ML
17532015-11-27 Martin Liska <mliska@suse.cz>
1754
1755 PR c++/68312
1756 * array-notation-common.c (cilkplus_extract_an_triplets):
1757 Release vector of vectors.
1758 * cilk.c (gimplify_cilk_spawn): Free allocated memory.
1759
89a01fcf
EB
17602015-11-26 Eric Botcazou <ebotcazou@adacore.com>
1761
1762 PR c++/68527
1763 * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
1764 (print_ada_struct_decl): Likewise.
1765
cc5c5226
IZ
17662015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
1767
1768 PR c++/68001
1769 * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
1770 * cilk.c (recognize_spawn): Determine location in a more precise
1771 way.
1772
269adb9d
JM
17732015-11-19 Jason Merrill <jason@redhat.com>
1774
1775 * c-common.c (shorten_compare): But look through macros from
1776 system headers.
1777
d0eccfcd
JM
17782015-11-18 Jason Merrill <jason@redhat.com>
1779
1780 * c-common.c (shorten_compare): Don't -Wtype-limits if the
1781 non-constant operand comes from a macro.
1782
3e44547c
JM
17832015-11-17 Jason Merrill <jason@redhat.com>
1784
1785 PR bootstrap/68346
1786 * c-common.c (warn_tautological_cmp): Fold before checking for
1787 constants.
1788
0f62c7a0
MP
17892015-11-16 Marek Polacek <polacek@redhat.com>
1790
1791 PR c++/68362
1792 * c-common.c (check_case_bounds): Fold low and high cases.
1793
a868811e
MP
17942015-11-16 Marek Polacek <polacek@redhat.com>
1795
1796 * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
1797 * c-common.c (c_common_get_alias_set): Likewise.
1798 (handle_visibility_attribute): Likewise.
1799
fff77217
KY
18002015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
1801
1802 * c-common.c (handle_simd_attribute): New.
1803 (struct attribute_spec): Add entry for "simd".
1804 (handle_simd_attribute): New.
1805
269e63b7
KT
18062015-11-13 Kai Tietz <ktietz70@googlemail.com>
1807
1808 * c-lex.c (interpret_float): Use fold_convert.
1809
ebedc9a3
DM
18102015-11-13 David Malcolm <dmalcolm@redhat.com>
1811
1812 * c-common.c (c_fully_fold_internal): Capture existing souce_range,
1813 and store it on the result.
1814 * c-opts.c (c_common_init_options): Set
1815 global_dc->colorize_source_p.
1816
6e232ba4
JN
18172015-11-12 James Norris <jnorris@codesourcery.com>
1818 Joseph Myers <joseph@codesourcery.com>
1819
1820 * c-pragma.c (oacc_pragmas): Add entry for declare directive.
1821 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
1822 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
1823 PRAGMA_OACC_CLAUSE_LINK.
1824
e78bede6
MP
18252015-11-11 Marek Polacek <polacek@redhat.com>
1826
1827 PR c/68107
1828 PR c++/68266
1829 * c-common.c (valid_array_size_p): New function.
1830 * c-common.h (valid_array_size_p): Declare.
1831
3f8257db 18322015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
4ac93c7c
DH
1833
1834 PR bootstrap/68271
1835 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
1836
69f293c9
AM
18372015-11-11 Andrew MacLeod <amacleod@redhat.com>
1838
1839 * array-notation-common.c: Remove unused header files.
1840 * c-ada-spec.c: Likewise.
1841 * c-cilkplus.c: Likewise.
1842 * c-common.c: Likewise.
1843 * c-cppbuiltin.c: Likewise.
1844 * c-dump.c: Likewise.
1845 * c-format.c: Likewise.
1846 * c-gimplify.c: Likewise.
1847 * c-indentation.c: Likewise.
1848 * c-lex.c: Likewise.
1849 * c-omp.c: Likewise.
1850 * c-opts.c: Likewise.
1851 * c-pch.c: Likewise.
1852 * c-ppoutput.c: Likewise.
1853 * c-pragma.c: Likewise.
1854 * c-pretty-print.c: Likewise.
1855 * c-semantics.c: Likewise.
1856 * c-ubsan.c: Likewise.
1857 * cilk.c: Likewise.
1858 * stub-objc.c: Likewise.
1859
3a40d81d
NS
18602015-11-09 Thomas Schwinge <thomas@codesourcery.com>
1861 Cesar Philippidis <cesar@codesourcery.com>
1862 James Norris <jnorris@codesourcery.com>
1863 Julian Brown <julian@codesourcery.com>
1864 Nathan Sidwell <nathan@codesourcery.com>
1865
1866 * c-pragma.c (oacc_pragmas): Add "routine".
1867 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
1868
ee45a32d
EB
18692015-11-08 Eric Botcazou <ebotcazou@adacore.com>
1870
1871 * c-common.c (c_common_attributes): Add scalar_storage_order.
1872 (handle_scalar_storage_order_attribute): New function.
1873 * c-pragma.c (global_sso): New variable.
1874 (maybe_apply_pragma_scalar_storage_order): New function.
1875 (handle_pragma_scalar_storage_order): Likewise.
1876 (init_pragma): Register scalar_storage_order.
1877 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
1878 * c.opt (Wscalar-storage-order): New warning.
1879 (fsso-struct=): New option.
1880
eb11eb15
MS
18812015-11-08 Martin Sebor <msebor@redhat.com>
1882
1883 * c.opt (Wplacement-new): Add a period to the end of a sentence.
1884
0aad0198
RS
18852015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1886
1887 * c-common.c: Don't undef DEF_BUILTIN.
1888
8a645150
DM
18892015-11-06 David Malcolm <dmalcolm@redhat.com>
1890
1891 * c-common.c (c_cpp_error): Convert parameter from location_t to
1892 rich_location *. Eliminate the "column_override" parameter and
1893 the call to diagnostic_override_column.
1894 Update the "done_lexing" clause to set range 0
1895 on the rich_location, rather than overwriting a location_t.
1896 * c-common.h (c_cpp_error): Convert parameter from location_t to
1897 rich_location *. Eliminate the "column_override" parameter.
1898
7a5e4956
CP
18992015-11-05 Cesar Philippidis <cesar@codesourcery.com>
1900 Thomas Schwinge <thomas@codesourcery.com>
1901 James Norris <jnorris@codesourcery.com>
1902
1903 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
1904 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
1905 clauses with parallel and kernels and loops.
1906 * c-pragma.h (enum pragma_omp_clause): Add entries for
1907 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
1908 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
1909 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
1910 INDEPENDENT,SEQ}.
1911 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
1912
e2f5cc96
MS
19132015-11-05 Martin Sebor <msebor@redhat.com>
1914
1915 PR c++/67942
1916 * c.opt (-Wplacement-new): New option.
1917
e01d41e5
JJ
19182015-11-05 Jakub Jelinek <jakub@redhat.com>
1919
1920 * c-common.h (c_finish_omp_atomic): Add TEST argument.
1921 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
1922 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
1923 save_expr or create_tmp_var* if TEST is true.
1924 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
1925 Don't call add_stmt here.
1926 (struct c_omp_check_loop_iv_data): New type.
1927 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
1928 c_omp_check_loop_iv_exprs): New functions.
1929 (c_omp_split_clauses): Adjust for lastprivate being allowed on
1930 distribute.
1931 (c_omp_declare_simd_clauses_to_numbers): Change
1932 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
1933 (c_omp_declare_simd_clauses_to_decls): Similarly change those
1934 from numbers to PARM_DECLs.
1935
595278be
MM
19362015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
1937
1938 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
1939 flag_checking.
1940
3f8257db 19412015-11-03 Bernd Schmidt <bschmidt@redhat.com>
c85158de
MS
1942
1943 PR c++-common/67882
b3d5bc62
JJ
1944 * c-common.h (fold_offsetof_1): Add argument.
1945 * c-common.c (fold_offsetof_1): Diagnose more invalid
c85158de
MS
1946 offsetof expressions that reference elements past the end of
1947 an array.
1948
4bf9e5a8
TS
19492015-11-03 Thomas Schwinge <thomas@codesourcery.com>
1950 Chung-Lin Tang <cltang@codesourcery.com>
1951
1952 * c-pragma.c (oacc_pragmas): Add "atomic".
1953 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
1954
3b1661a9
ES
19552015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
1956
1957 * c-common.c (handle_target_clones_attribute): New.
1958 (c_common_attribute_table): Add handle_target_clones_attribute.
1959 (handle_always_inline_attribute): Add check on target_clones attribute.
1960 (handle_target_attribute): Ditto.
1961
2adfab87
AM
19622015-10-29 Andrew MacLeod <amacleod@redhat.com>
1963
1964 * array-notation-common.c: Reorder #include's and remove duplicates.
1965 * c-ada-spec.c: Likewise.
1966 * c-cilkplus.c: Likewise.
1967 * c-common.c: Likewise.
1968 * c-cppbuiltin.c: Likewise.
1969 * c-dump.c: Likewise.
1970 * c-format.c: Likewise.
1971 * c-gimplify.c: Likewise.
1972 * c-indentation.c: Likewise.
1973 * c-lex.c: Likewise.
1974 * c-omp.c: Likewise.
1975 * c-opts.c: Likewise.
1976 * c-pch.c: Likewise.
1977 * c-ppoutput.c: Likewise.
1978 * c-pragma.c: Likewise.
1979 * c-pretty-print.c: Likewise.
1980 * c-semantics.c: Likewise.
1981 * c-ubsan.c: Likewise.
1982 * cilk.c: Likewise.
1983 * stub-objc.c: Likewise.
1984
d90ec4f2
JM
19852015-10-28 Jason Merrill <jason@redhat.com>
1986
1987 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
1988
88bae6f4
TS
19892015-10-27 Thomas Schwinge <thomas@codesourcery.com>
1990 James Norris <jnorris@codesourcery.com>
1991 Cesar Philippidis <cesar@codesourcery.com>
1992
1993 PR c/64765
1994 PR c/64880
1995 * c-common.h (c_oacc_split_loop_clauses): Declare function.
1996 * c-omp.c (c_oacc_split_loop_clauses): New function.
1997
b1726d6c
MS
19982015-10-21 Martin Sebor <msebor@redhat.com>
1999
2000 PR driver/68043
2001 * c.opt: End each sentence that describes an option with a period.
2002
fa60eeb9
MP
20032015-10-20 Marek Polacek <polacek@redhat.com>
2004
2005 * array-notation-common.c (is_cilkplus_vector_p): Define.
2006 * c-common.h (is_cilkplus_vector_p): Declare.
2007
95979049
MP
20082015-10-20 Marek Polacek <polacek@redhat.com>
2009
2010 * c.opt (std=gnu++11): Do not describe as experimental.
2011 (std=gnu++14): Likewise.
2012
2a9fb712
JM
20132015-10-19 Jason Merrill <jason@redhat.com>
2014
2015 * c-cppbuiltin.c (c_cpp_builtins): Define
2016 __cpp_nontype_template_args.
2017
13b380a3
JM
20182015-10-19 Jason Merrill <jason@redhat.com>
2019
2020 * c-cppbuiltin.c (c_cpp_builtins): Define
2021 __cpp_enumerator_attributes, __cpp_fold_expressions,
2022 __cpp_unicode_characters.
2023
d9a6bd32
JJ
20242015-10-13 Jakub Jelinek <jakub@redhat.com>
2025 Aldy Hernandez <aldyh@redhat.com>
2026
2027 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
2028 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
2029 (c_define_builtins): Likewise.
2030 * c-common.h (enum c_omp_clause_split): Add
2031 C_OMP_CLAUSE_SPLIT_TASKLOOP.
2032 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
2033 (c_finish_omp_for): Add ORIG_DECLV argument.
2034 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
2035 201511 instead of 201307.
2036 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
2037 OMP_CRITICAL_CLAUSES to it.
2038 (c_finish_omp_ordered): Add CLAUSES argument, set
2039 OMP_ORDERED_CLAUSES to it.
2040 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
2041 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
2042 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
2043 constructs and new OpenMP 4.5 clauses. Clear
2044 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
2045 verification code.
2046 * c-pragma.c (omp_pragmas_simd): Add taskloop.
2047 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
2048 (enum pragma_omp_clause): Add
2049 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
2050 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
2051
624d31fe
RS
20522015-10-05 Richard Sandiford <richard.sandiford@arm.com>
2053
2054 * c-lex.c (interpret_float): Use real_equal instead of
2055 REAL_VALUES_EQUAL.
2056
b8fd7909
JM
20572015-10-04 Jason Merrill <jason@redhat.com>
2058
2059 Implement N4514, C++ Extensions for Transactional Memory.
2060 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
2061 (c_common_attribute_table): Add transaction_safe_dynamic.
2062 transaction_safe now affects type identity.
2063 (handle_tm_attribute): Handle transaction_safe_dynamic.
2064 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
2065 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
2066 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
2067 (D_TRANSMEM): New.
2068 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
2069 * c-pretty-print.c (pp_c_attributes_display): Don't print
2070 transaction_safe in C++.
2071
12651878
MP
20722015-10-02 Marek Polacek <polacek@redhat.com>
2073
2074 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
2075
3e3b8d63
MP
20762015-10-02 Marek Polacek <polacek@redhat.com>
2077
2078 PR c/64249
2079 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
2080 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
2081 * c.opt (Wduplicated-cond): New option.
2082
0d1a8f75
JM
20832015-10-01 Joseph Myers <joseph@codesourcery.com>
2084
2085 * c.opt (std=c11): Do not describe as experimental.
2086 (std=gnu11): Likewise.
2087 (std=iso9899:2011): Likewise.
2088
3e32ee19
NS
20892015-09-28 Nathan Sidwell <nathan@codesourcery.com>
2090
2091 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
2092 (DEF_FUNCTION_TYPE_VAR_11): Delete.
2093
974348ee
MP
20942015-09-25 Marek Polacek <polacek@redhat.com>
2095
2096 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
2097 (ubsan_instrument_shift): Likewise.
2098
15dbc1a6
MP
20992015-09-25 Marek Polacek <polacek@redhat.com>
2100
2101 PR sanitizer/64906
2102 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
2103
6b95d7cc
PP
21042015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
2105
2106 * c-indentation.c (should_warn_for_misleading_indentation):
2107 Compare next_stmt_vis_column with guard_line_first_nws instead
2108 of with guard_line_vis_column.
2109
c1822f9c
MLI
21102015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
2111
2112 PR c/49654
2113 PR c/49655
2114 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
2115 options and options not valid for the current language.
2116
d5398058
PP
21172015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
2118
2119 * c-indentation.c (should_warn_for_misleading_indentation):
2120 Float out and consolidate the calls to get_visual_column that
2121 are passed guard_exploc as an argument. Compare
2122 next_stmt_vis_column with guard_line_first_nws instead of with
2123 body_line_first_nws.
2124
6b333269
NS
21252015-09-22 Nathan Sidwell <nathan@codesourcery.com>
2126
2127 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
2128 Wnamespaces): New C++ warnings.
2129
a75f1574
JM
21302015-09-22 Jason Merrill <jason@redhat.com>
2131
2132 * c-common.h (abi_compat_version_crosses): New.
2133 (warn_abi_version): Declare.
2134 * c-common.c: Define it.
2135 * c-opts.c (c_common_post_options): Handle it.
2136 flag_abi_compat_version defaults to 8.
2137
bdaaa8b7
VV
21382015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
2139
2140 Complete the implementation of N4230, Nested namespace definition.
2141 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
2142 __cpp_nested_namespace_definitions.
2143
eaa797e8
MLI
21442015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
2145
2146 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
2147
c4914de6
MLI
21482015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
2149
2150 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
2151 when warning.
2152 * c-pragma.h (pragma_lex): Add optional loc argument.
2153
fcb87c50
MM
21542015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
2155
2156 * c-format.c (check_format_arg): Adjust to use common block size in all
2157 object pools.
2158
31bdd08a
DM
21592015-09-15 David Malcolm <dmalcolm@redhat.com>
2160
2161 * c-format.c (location_from_offset): Update for change in
2162 signature of location_get_source_line.
2163 * c-indentation.c (get_visual_column): Likewise.
2164 (line_contains_hash_if): Likewise.
2165
aa9f4b4c
MP
21662015-09-14 Marek Polacek <polacek@redhat.com>
2167
2168 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
2169 setting various warnings.
2170
aa256c4a
MP
21712015-09-14 Marek Polacek <polacek@redhat.com>
2172
2173 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
2174 a negative value.
2175
0f876f22
MW
21762015-09-11 Mark Wielaard <mjw@redhat.com>
2177
2178 PR c/28901
2179 * c.opt (Wunused-variable): Option from common.opt.
2180 (Wunused-const-variable): New option.
2181
273aa49e
PC
21822015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
2183
2184 PR c++/53184
2185 * c.opt ([Wsubobject-linkage]): Add.
2186
1807ffc1
MS
21872015-09-03 Martin Sebor <msebor@redhat.com>
2188
2189 PR c/66516
2190 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
2191 functions.
2192 * c-common.c (reject_gcc_builtin): Define.
2193
38942840
BI
21942015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
2195
2196 PR middle-end/60586
2197 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
2198 prototype.
2199 * c-gimplify.c (c_gimplify_expr): Added a call to the function
2200 cilk_gimplify_call_params_in_spawned_fn.
2201 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
2202 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
2203 unwrapping.
2204
c316b5e4
MP
22052015-08-25 Marek Polacek <polacek@redhat.com>
2206
2207 PR middle-end/67330
2208 * c-common.c (handle_weak_attribute): Don't check whether the
2209 visibility can be changed here.
2210
584a7c46
MLI
22112015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
2212
2213 * c-lex.c (c_lex_with_flags): Use explicit locations.
2214
a79683d5
TS
22152015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
2216
2217 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
2218 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
2219
61717a45
FXC
22202015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2221
2222 PR middle-end/36757
2223 * c-common.c (check_builtin_function_arguments): Add check
2224 for BUILT_IN_SIGNBIT argument.
2225
329524f5
PC
22262015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
2227
2228 PR c++/67160
2229 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
2230 in c++1z mode.
2231
4ee55665
MP
22322015-08-17 Marek Polacek <polacek@redhat.com>
2233
2234 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
2235 with whitespaces before qualifier names.
2236
b893e375
MP
22372015-08-12 Marek Polacek <polacek@redhat.com>
2238
2239 PR c++/55095
2240 * c-common.c (maybe_warn_shift_overflow): Properly handle
2241 left-shifting 1 into the sign bit.
2242
c2d89095
MLI
22432015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2244
2245 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
2246
971e17ff
AS
22472015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
2248 Braden Obrzut <admin@maniacsvault.net>
2249 Jason Merrill <jason@redhat.com>
2250
2251 Add C++ Concepts TS support.
2252 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
2253 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
2254 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
2255 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
2256 * c-opts.c (set_std_cxx1z): Set flag_concepts.
2257 * c.opt (fconcepts): New.
2258
b3d5bc62
JJ
22592015-08-02 Martin Sebor <msebor@redhat.com>
2260
2261 * c.opt (-Wframe-address): New warning option.
2262
8ebca419
PP
22632015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
2264
2265 * c-indentation.c (should_warn_for_misleading_indentation):
2266 Improve heuristics.
2267
1a1e101f
PP
22682015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
2269
2270 * c-indentation.c (get_visual_column): Add parameter first_nws,
2271 use it. Update comment documenting the function.
2272 (is_first_nonwhitespace_on_line): Remove.
2273 (should_warn_for_misleading_indentation): Replace usage of
2274 of is_first_nonwhitespace_on_line with get_visual_column.
2275
992118a1
PP
22762015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
2277
2278 * c-indentation.h (struct token_indent_info): Define.
2279 (get_token_indent_info): Define.
2280 (warn_for_misleading_information): Declare.
2281 * c-common.h (warn_for_misleading_information): Remove.
2282 * c-identation.c (warn_for_misleading_indentation):
2283 Change declaration to take three token_indent_infos. Adjust
2284 accordingly.
2285 * c-identation.c (should_warn_for_misleading_indentation):
2286 Likewise. Bail out early if the body is a compound statement.
2287 (guard_tinfo_to_string): Define.
2288
e8fa3817
JM
22892015-07-30 Jason Merrill <jason@redhat.com>
2290
2291 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
2292 '*' for reference decay.
2293
173864e8
MP
22942015-07-30 Marek Polacek <polacek@redhat.com>
2295
2296 * c-common.c (warn_tautological_cmp): Bail for float types.
2297
f2afe6dd
MP
22982015-07-27 Marek Polacek <polacek@redhat.com>
2299
2300 PR bootstrap/67030
2301 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
2302
05b28fd6
MP
23032015-07-27 Marek Polacek <polacek@redhat.com>
2304
2305 PR c++/66555
2306 PR c/54979
2307 * c-common.c (find_array_ref_with_const_idx_r): New function.
2308 (warn_tautological_cmp): New function.
2309 * c-common.h (warn_tautological_cmp): Declare.
2310 * c.opt (Wtautological-compare): New option.
2311
5a5062b8
MP
23122015-07-23 Marek Polacek <polacek@redhat.com>
2313
2314 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
2315 (ubsan_instrument_shift): Likewise.
2316
dc891fe7
MP
23172015-07-23 Marek Polacek <polacek@redhat.com>
2318
2319 PR sanitizer/66908
2320 * c-ubsan.c: Include gimplify.h.
2321 (ubsan_instrument_division): Unshare OP0 and OP1.
2322 (ubsan_instrument_shift): Likewise.
2323
451b5e48
MP
23242015-07-20 Marek Polacek <polacek@redhat.com>
2325 Richard Sandiford <richard.sandiford@arm.com>
2326
2327 PR c++/55095
2328 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
2329 Use EXPR_LOC_OR_LOC.
2330 (maybe_warn_shift_overflow): New function.
2331 * c-common.h (maybe_warn_shift_overflow): Declare.
2332 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
2333 * c.opt (Wshift-overflow): New option.
2334
fb0b2914
ML
23352015-07-16 Martin Liska <mliska@suse.cz>
2336
2337 * c-format.c (static void check_format_info_main): Use
2338 object_allocator instead of pool_allocator.
2339 (check_format_arg): Likewise.
2340 (check_format_info_main): Likewise.
2341
903f5c23
AM
23422015-07-15 Andrew MacLeod <amacleod@redhat.com>
2343
2344 * c-opts.c: Remove multiline #include comment.
2345
026c3cfd
AH
23462015-07-12 Aldy Hernandez <aldyh@redhat.com>
2347
2348 * c-common.c: Fix double word typos.
2349
bb49ee66
EB
23502015-07-10 Eric Botcazou <ebotcazou@adacore.com>
2351
2352 * c-ada-spec.h (cpp_operation): Revert latest change.
2353 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
2354 constructors and destructors.
2355
1916bcb5
AM
23562015-07-09 Andrew MacLeod <amacleod@redhat.com>
2357
2358 * c-common.h: Adjust includes for flags.h changes.
2359 * stub-objc.c: Likewise.
026c3cfd 2360
a9dcd529
EB
23612015-07-08 Eric Botcazou <ebotcazou@adacore.com>
2362
2363 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
2364 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
2365
b03b462f
JJ
23662015-07-08 Jakub Jelinek <jakub@redhat.com>
2367
2368 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
2369 are to be removed, return NULL rather than original clauses list.
2370
c7131fb2
AM
23712015-07-07 Andrew MacLeod <amacleod@redhat.com>
2372
2373 * array-notation-common.c: Adjust includes.
2374 * c-ada-spec.c: Likewise.
2375 * c-cilkplus.c: Likewise.
2376 * c-common.h: Likewise.
2377 * c-cppbuiltin.c: Likewise.
2378 * c-dump.c: Likewise.
2379 * c-format.c: Likewise.
2380 * c-gimplify.c: Likewise.
2381 * c-indentation.c: Likewise.
2382 * c-lex.c: Likewise.
2383 * c-omp.c: Likewise.
2384 * c-opts.c: Likewise.
2385 * c-pch.c: Likewise.
2386 * c-ppoutput.c: Likewise.
2387 * c-pragma.c: Likewise.
2388 * c-pretty-print.c: Likewise.
2389 * c-semantics.c: Likewise.
2390 * c-ubsan.c: Likewise.
2391 * cilk.c: Likewise.
2392 * stub-objc.c: Likewise.
2393
2a7fb83f
EB
23942015-07-07 Eric Botcazou <ebotcazou@adacore.com>
2395
2396 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
2397 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
2398
a03c9bf1
JM
23992015-07-01 Jason Merrill <jason@redhat.com>
2400
36a85135
JM
2401 * c-common.h (D_CXX11): Rename from D_CXX0X.
2402 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
2403 * c-common.c: Adjust.
2404
e7fa68d5
JM
2405 * c-opts.c (c_common_post_options): Default to C++14.
2406
a03c9bf1
JM
2407 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
2408
fe95b036
ESR
24092015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
2410
2411 Implement N4197 - Adding u8 character literals
b3d5bc62 2412 * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
a64be36b 2413 CPP_CHAR.
b3d5bc62 2414 * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
a64be36b 2415 CPP_UTF8CHAR_USERDEF tokens.
b3d5bc62 2416 * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
a64be36b
EB
2417 and CPP_UTF8CHAR tokens.
2418 (lex_charconst): Treat CPP_UTF8CHAR token.
fe95b036 2419
da2e71c9
MLI
24202015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2421
2422 PR fortran/66605
2423 * c-common.c (do_warn_unused_parameter): Move here.
2424 * c-common.h (do_warn_unused_parameter): Declare.
2425
b155cfd9
MP
24262015-06-29 Marek Polacek <polacek@redhat.com>
2427
2428 PR c/66322
2429 * c-common.c (check_case_bounds): Add bool * parameter. Set
2430 OUTSIDE_RANGE_P.
2431 (c_add_case_label): Add bool * parameter. Pass it down to
2432 check_case_bounds.
2433 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
2434 warning here.
2435 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
2436 declarations.
2437
31521951
MP
24382015-06-27 Marek Polacek <polacek@redhat.com>
2439
2440 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
2441 or VECTOR_INTEGER_TYPE_P throughout.
2442 * c-gimplify.c: Likewise.
2443
22d03525
MP
24442015-06-26 Marek Polacek <polacek@redhat.com>
2445
2446 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
2447 * c-common.c (c_fully_fold_internal): Likewise.
2448 (c_alignof_expr): Likewise.
2449 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
2450 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
b1726d6c 2451 * cilk.c (create_parm_list): Likewise.
22d03525 2452
af05e6e5
MP
24532015-06-26 Marek Polacek <polacek@redhat.com>
2454
2455 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
2456
f0889939
AM
24572015-06-25 Andrew MacLeod <amacleod@redhat.com>
2458
2459 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
2460 * c-gimplify.c: Likewise.
2461 * c-pragma.c: Likewise.
2462 * c-ubsan.c: Likewise.
2463 * cilk.c: Likewise.
2464
ca752f39
RS
24652015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2466
2467 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
2468 ggc_hasher.
2469
16a16ec7
AM
24702015-06-25 Andrew MacLeod <amacleod@redhat.com>
2471
2472 * cilk.c: Move calls.h after tm.h in the include chain.
2473
0ae9bd27
MP
24742015-06-25 Marek Polacek <polacek@redhat.com>
2475
2476 * array-notation-common.c: Use VAR_P throughout.
2477 * c-ada-spec.c: Likewise.
2478 * c-common.c: Likewise.
2479 * c-format.c: Likewise.
2480 * c-gimplify.c: Likewise.
2481 * c-omp.c: Likewise.
2482 * c-pragma.c: Likewise.
2483 * c-pretty-print.c: Likewise.
2484 * cilk.c: Likewise.
2485
62f9079a
MP
24862015-06-25 Marek Polacek <polacek@redhat.com>
2487
2488 * cilk.c (extract_free_variables): Use is_global_var.
2489
0fa16060
RS
24902015-06-23 Richard Sandiford <richard.sandiford@arm.com>
2491
2492 * c-common.c: Don't include target-def.h.
2493
a68ae2e1
MP
24942015-06-23 Marek Polacek <polacek@redhat.com>
2495
2496 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
2497 when comparing INTEGER_CSTs.
2498
c6a2f2d9
PMR
24992015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
2500
2501 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
2502 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
2503 (dump_ada_template): Skip partially specialized types.
2504
6b4db501
MM
25052015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
2506
2507 * c-common.c (scalar_to_vector): Use std::swap instead of manually
2508 swapping.
2509
abb226c9
AM
25102015-06-17 Andrew MacLeod <amacleod@redhat.com>
2511
2512 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
2513 * c-ada-spec.c: Likewise.
2514 * c-cilkplus.c: Likewise.
2515 * c-common.c: Likewise.
2516 * c-common.h: Likewise.
2517 * c-cppbuiltin.c: Likewise.
2518 * c-dump.c: Likewise.
2519 * c-format.c: Likewise.
2520 * c-gimplify.c: Likewise.
2521 * c-indentation.c: Likewise.
2522 * c-lex.c: Likewise.
2523 * c-omp.c: Likewise.
2524 * c-opts.c: Likewise.
2525 * c-pch.c: Likewise.
2526 * c-ppoutput.c: Likewise.
2527 * c-pragma.c: Likewise.
2528 * c-pretty-print.c: Likewise.
2529 * c-semantics.c: Likewise.
2530 * c-ubsan.c: Likewise.
2531 * cilk.c: Likewise.
2532 * stub-objc.c: Likewise.
2533
076fecad
PP
25342015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
2535
2536 PR c++/65168
2537 * c-common.c (c_common_truthvalue_conversion): Warn when
2538 converting an address of a reference to a truth value.
2539
13fdf2e2
AM
25402015-06-08 Andrew MacLeod <amacleod@redhat.com>
2541
2542 * array-notation-common.c : Adjust include files.
2543 * c-ada-spec.c : Likewise.
2544 * c-cilkplus.c : Likewise.
2545 * c-common.c : Likewise.
2546 * c-common.h : Likewise.
2547 * c-cppbuiltin.c : Likewise.
2548 * c-dump.c : Likewise.
2549 * c-format.c : Likewise.
2550 * c-gimplify.c : Likewise.
2551 * c-indentation.c : Likewise.
2552 * c-lex.c : Likewise.
2553 * c-omp.c : Likewise.
2554 * c-opts.c : Likewise.
2555 * c-pch.c : Likewise.
2556 * c-ppoutput.c : Likewise.
2557 * c-pragma.c : Likewise.
2558 * c-pretty-print.c : Likewise.
2559 * c-semantics.c : Likewise.
2560 * c-ubsan.c : Likewise.
2561 * cilk.c : Likewise.
2562 * stub-objc.c : Likewise.
2563
a1661b90
MP
25642015-06-08 Marek Polacek <polacek@redhat.com>
2565
2566 PR c/66415
2567 * c-format.c (location_from_offset): Return LOC if LINE is null.
2568
d7438551
AH
25692015-06-05 Aldy Hernandez <aldyh@redhat.com>
2570
2571 * c-common.h (c_parse_final_cleanups): New prototype.
2572 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
2573
b3d5bc62
JJ
25742015-06-04 Sriraman Tallam <tmsriram@google.com>
2575
2576 * c-common.c (noplt): New attribute.
2577 (handle_noplt_attribute): New handler.
2578
ecb9f223
AM
25792015-06-04 Andrew MacLeod <amacleod@redhat.com>
2580
2581 * array-notation-common.c: Adjust includes for restructured coretypes.h.
2582 * c-ada-spec.c: Likewise.
2583 * c-cilkplus.c: Likewise.
2584 * c-common.c: Likewise.
2585 * c-common.h: Likewise.
2586 * c-cppbuiltin.c: Likewise.
2587 * c-dump.c: Likewise.
2588 * c-format.c: Likewise.
2589 * c-gimplify.c: Likewise.
2590 * c-indentation.c: Likewise.
2591 * c-lex.c: Likewise.
2592 * c-omp.c: Likewise.
2593 * c-opts.c: Likewise.
2594 * c-pch.c: Likewise.
2595 * c-ppoutput.c: Likewise.
2596 * c-pragma.c: Likewise.
2597 * c-pretty-print.c: Likewise.
2598 * c-semantics.c: Likewise.
2599 * c-ubsan.c: Likewise.
2600 * cilk.c: Likewise.
2601 * stub-objc.c: Likewise.
2602
6ac48155
DM
26032015-06-02 David Malcolm <dmalcolm@redhat.com>
2604
2605 PR c/66220:
2606 * c-indentation.c (should_warn_for_misleading_indentation): Use
2607 expand_location rather than expand_location_to_spelling_point.
2608 Don't warn if the guarding statement is more indented than the
2609 next/body stmts.
2610
773ce42e
DM
26112015-06-02 David Malcolm <dmalcolm@redhat.com>
2612
2613 * c-indentation.c (warn_for_misleading_indentation): Bail out
2614 immediately if -Wmisleading-indentation isn't enabled.
2615
4fef8379
ML
26162015-06-01 Martin Liska <mliska@suse.cz>
2617
2618 * c-format.c (check_format_arg):Use new type-based pool allocator.
2619 (check_format_info_main) Likewise.
2620
1edfb384
EB
26212015-05-31 Eric Botcazou <ebotcazou@adacore.com>
2622
2623 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
2624 (has_nontrivial_methods): Likewise.
2625
9677ef52
MP
26262015-05-25 Marek Polacek <polacek@redhat.com>
2627
2628 * c-ubsan.c (ubsan_instrument_shift): Use type0.
2629
fd5c817a
MP
26302015-05-22 Marek Polacek <polacek@redhat.com>
2631
2632 PR c/47043
2633 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
2634
a2f45fe6 26352015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
581edfa3
TS
2636
2637 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
2638 STACK_GROWS_DOWNWARD.
2639
a2f45fe6 26402015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
62f9f30b
TS
2641
2642 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
2643 STACK_GROWS_DOWNWARD rather than if it is defined.
2644
0fee2ac2 26452015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
b1726d6c 2646
0fee2ac2
MLI
2647 PR c/52952
2648 * c-format.c (location_column_from_byte_offset): New.
2649 (location_from_offset): New.
2650 (struct format_wanted_type): Add offset_loc field.
2651 (check_format_info): Move handling of location for extra arguments
2652 closer to the point of warning.
2653 (check_format_info_main): Pass the result of location_from_offset
2654 to warning_at.
2655 (format_type_warning): Pass the result of location_from_offset
2656 to warning_at.
2657
cf4ef6f7
MP
26582015-05-20 Marek Polacek <polacek@redhat.com>
2659
2660 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
2661
3a65ee74
MP
26622015-05-20 Marek Polacek <polacek@redhat.com>
2663
2664 * c-ada-spec.c (dump_sloc): Use DECL_P.
2665
21b634ae
MP
26662015-05-20 Marek Polacek <polacek@redhat.com>
2667
2668 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
2669 * c-common.c: Likewise.
2670
0e50b624
DM
26712015-05-19 David Malcolm <dmalcolm@redhat.com>
2672
2673 * c-common.h (fe_file_change): Strengthen param from
2674 const line_map * to const line_map_ordinary *.
2675 (pp_file_change): Likewise.
2676 * c-lex.c (fe_file_change): Likewise.
2677 (cb_define): Use linemap_check_ordinary when invoking
2678 SOURCE_LINE.
2679 (cb_undef): Likewise.
2680 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
2681 invoking cb_file_change.
2682 (c_finish_options): Likewise.
2683 (push_command_line_include): Likewise.
2684 (cb_file_change): Strengthen param "new_map" from
2685 const line_map * to const line_map_ordinary *.
2686 * c-ppoutput.c (cb_define): Likewise for local "map".
2687 (pp_file_change): Likewise for param "map" and local "from".
2688
fab27f52
MM
26892015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
2690
2691 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
2692
2fe1d762
TV
26932015-05-18 Tom de Vries <tom@codesourcery.com>
2694
2695 * c-common.c (build_va_arg_1): New function.
2696 (build_va_arg): Add address operator to va_list operand if necessary.
2697
7a37fa90
MM
26982015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
2699
2700 PR c/48956
2701 * c-common.c (int_safely_convertible_to_real_p): Define.
2702 (unsafe_conversion_p): Check conversions involving complex types.
2703 (conversion_warning): Add new warning message for conversions which
2704 discard imaginary component.
2705 * c-common.h: (enum conversion_safety): Add new enumerator for such
2706 conversions.
2707
3aa3c9fc
MP
27082015-05-14 Marek Polacek <polacek@redhat.com>
2709
2710 PR c/66066
2711 PR c/66127
2712 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
2713 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
2714 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
2715 use it. If FOR_INT_CONST, require that all evaluated operands be
2716 INTEGER_CSTs.
2717
c3388e62
DM
27182015-05-12 David Malcolm <dmalcolm@redhat.com>
2719
2720 * c-common.h (warn_for_misleading_indentation): New prototype.
2721 * c-indentation.c: New file.
2722 * c.opt (Wmisleading-indentation): New option.
2723
c7b38fd5
TV
27242015-05-12 Tom de Vries <tom@codesourcery.com>
2725
2726 PR tree-optimization/66010
2727 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
2728
381bf11e
JM
27292015-05-09 Jason Merrill <jason@redhat.com>
2730
edff0c06
JM
2731 * c-opts.c (c_common_post_options): Also clear
2732 cpp_opts->cpp_warn_cxx11_compat.
2733
129211bc
JM
2734 * c-common.h (enum cxx_dialect): Add cxx_unset.
2735 * c-common.c (cxx_dialect): Initialize to cxx_unset.
2736 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
2737
381bf11e
JM
2738 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
2739 (std=gnu++0x): Mark as Undocumented.
2740 (std=gnu++1y): Add deprecated message.
2741
fe191308
JM
27422015-05-08 Jason Merrill <jason@redhat.com>
2743
765189ff
JM
2744 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
2745 * c-opts.c: Adjust.
2746
fe191308
JM
2747 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
2748
755e528f
MP
27492015-05-08 Marek Polacek <polacek@redhat.com>
2750
2751 PR c/64918
2752 * c.opt (Woverride-init-side-effects): New option.
2753
0173bd2a
MP
27542015-05-07 Marek Polacek <polacek@redhat.com>
2755
2756 PR c/65179
2757 * c-common.c (c_fully_fold_internal): Warn when left shifting a
2758 negative value.
2759 * c.opt (Wshift-negative-value): New option.
2760 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
2761 when -Wextra and C99/C++11 mode.
2762
e0f0d3b9
MP
27632015-05-07 Marek Polacek <polacek@redhat.com>
2764 Martin Uecker <uecker@eecs.berkeley.edu>
2765
2766 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
2767 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
2768
8243e2a9
JM
27692015-05-05 Jason Merrill <jason@redhat.com>
2770
2771 * c.opt (Wterminate): New.
2772
577cd070
MP
27732015-04-30 Marek Polacek <polacek@redhat.com>
2774
2775 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
2776 require that the non-constant be of a boolean type.
2777
0373796b
JT
27782015-04-29 Josh Triplett <josh@joshtriplett.org>
2779
e0f0d3b9
MP
2780 * c-common.c (handle_section_attribute): Refactor to reduce
2781 nesting and distinguish between error cases.
0373796b 2782
716c0ba6
MP
27832015-04-29 Marek Polacek <polacek@redhat.com>
2784
2785 PR c/64610
2786 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
2787 with 0/1.
2788
8848828b
JJ
27892015-04-29 Jakub Jelinek <jakub@redhat.com>
2790
2791 * c-common.h (omp_clause_mask): Unconditionally define as a class.
2792 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
2793 HOST_BITS_PER_WIDE_INT.
2794
ecd0e562
TV
27952015-04-28 Tom de Vries <tom@codesourcery.com>
2796
2797 PR tree-optimization/65887
2798 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
2799
2a877204 28002015-04-28 Eric Botcazou <ebotcazou@adacore.com>
e0f0d3b9 2801 Pierre-Marie de Rodat <derodat@adacore.com>
2a877204
EB
2802
2803 * c-ada-spec.c (in_function): Delete.
2804 (dump_generic_ada_node): Do not change in_function and remove the
2805 redundant code dealing with it.
2806 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
2807 (print_ada_methods): Output the static member functions in a nested
2808 package after the regular methods as well as associated renamings.
2809
4853031e
MP
28102015-04-24 Marek Polacek <polacek@redhat.com>
2811
2812 PR c/65830
2813 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
2814 and OPT_Wshift_count_overflow.
2815
8c2b7f79
MP
2816 PR c/63357
2817 * c-common.c (warn_logical_operator): Warn if the operands have the
2818 same expressions.
2819
b8787813
MP
28202015-04-24 Marek Polacek <polacek@redhat.com>
2821
2822 PR c/61534
2823 * c-common.c (warn_logical_operator): Bail if either operand comes
2824 from a macro expansion.
2825
8fba1830
BRF
28262015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2827
2828 PR target/55143
2829 * c-common.c (c_default_pointer_mode): Add definition.
2830 * c-common.h (c_default_pointer_mode): Add declaration.
2831
17958621
JJ
28322015-03-11 Jakub Jelinek <jakub@redhat.com>
2833
2834 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
2835 on record_builtin_type argument.
2836
7ccb1a11
JJ
28372015-03-10 Jakub Jelinek <jakub@redhat.com>
2838
2839 PR c/65120
2840 * c-common.c (warn_logical_not_parentheses): Don't warn for
2841 !x == 0 or !x != 0.
2842
04fd785e
MP
28432015-03-07 Marek Polacek <polacek@redhat.com>
2844
2845 PR sanitizer/65280
2846 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
2847 before trying to figure out whether we have a flexible array member.
2848
a4e26206 28492015-03-06 Eric Botcazou <ebotcazou@adacore.com>
8e745a17 2850 Jonathan Wakely <jwakely.gcc@gmail.com>
a4e26206
EB
2851
2852 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
2853
0d2489f4
EB
28542015-03-05 Eric Botcazou <ebotcazou@adacore.com>
2855
2856 PR ada/65319
2857 * c-ada-spec.c (print_destructor): Remove obsolete code.
2858
83ed54d7
EB
28592015-03-01 Eric Botcazou <ebotcazou@adacore.com>
2860
2861 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
2862 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
2863 DECL_TEMPLATE_RESULT emulations.
2864 (dump_ada_template)): Add guard for TYPE_METHODS.
2865
7631f0e2
MP
28662015-02-27 Marek Polacek <polacek@redhat.com>
2867
2868 PR c/65040
2869 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
2870
d1783ae5
KT
28712015-02-27 Kai Tietz <ktietz@redhat.com>
2872
2873 PR c/35330
2874 * c-pragma.c (handle_pragma_weak): Do not try to create
2875 weak/alias of declarations not being function, or variable
2876 declarations.
2877
56a9f6bc
TS
28782015-02-24 Thomas Schwinge <thomas@codesourcery.com>
2879
2880 PR libgomp/64625
2881 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
2882 Remove macros.
2883 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
2884
3d5cb23d
MP
28852015-02-16 Marek Polacek <polacek@redhat.com>
2886
2887 PR c/65066
2888 * c-format.c (check_format_types): Handle null param.
2889
fa008882
MP
28902015-02-13 Marek Polacek <polacek@redhat.com>
2891
2892 PR c/65040
2893 * c-format.c (check_format_types): Don't warn about different
2894 signedness if the original value is in the range of WANTED_TYPE.
2895
785f21af
JM
28962015-02-12 Jason Merrill <jason@redhat.com>
2897
2898 PR c++/64956
2899 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
2900 to the current highest version.
2901 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
2902
4886ec8e
JJ
29032015-02-04 Jakub Jelinek <jakub@redhat.com>
2904
2905 PR c/64824
2906 PR c/64868
2907 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
2908 instead of RDIV_EXPR. Use build_binary_op instead of
2909 build2_loc.
2910
40fecdd6
JM
29112015-01-30 Joseph Myers <joseph@codesourcery.com>
2912
2913 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
2914 to pass input_location as first argument.
2915
a0c88d06
TV
29162015-01-23 Tom de Vries <tom@codesourcery.com>
2917
2918 PR libgomp/64672
2919 * c.opt (fopenacc): Mark as LTO option.
2920
1506ae0e
TV
29212015-01-23 Tom de Vries <tom@codesourcery.com>
2922
2923 PR libgomp/64707
2924 * c.opt (fopenmp): Mark as LTO option.
2925
31be63ab
JJ
29262015-01-21 Jakub Jelinek <jakub@redhat.com>
2927
2928 PR c/63307
b1726d6c 2929 * cilk.c (fill_decls_vec): Only put decls into vector v.
31be63ab
JJ
2930 (compare_decls): Fix up formatting.
2931
29322015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
2933
2934 PR c/63307
2935 * cilk.c: Include vec.h.
2936 (struct cilk_decls): New structure.
2937 (wrapper_parm_cb): Split this function to...
2938 (fill_decls_vec): ...this...
2939 (create_parm_list): ...and this.
2940 (compare_decls): New function.
2941 (for_local_cb): Remove.
2942 (wrapper_local_cb): Ditto.
2943 (build_wrapper_type): For now first traverse and fill vector of
2944 declarations then sort it and then deal with sorted vector.
2945 (cilk_outline): Ditto.
2946 (declare_one_free_variable): Ditto.
2947
6875457f
JM
29482015-01-21 Jason Merrill <jason@redhat.com>
2949
2950 PR c++/64629
2951 * c-format.c (check_format_arg): Call decl_constant_value.
2952
185c9e56
ML
29532015-01-19 Martin Liska <mliska@suse.cz>
2954
2955 * c-common.c (handle_noicf_attribute): New function.
2956
41dbbb37
TS
29572015-01-15 Thomas Schwinge <thomas@codesourcery.com>
2958 Bernd Schmidt <bernds@codesourcery.com>
2959 James Norris <jnorris@codesourcery.com>
2960 Cesar Philippidis <cesar@codesourcery.com>
2961 Ilmir Usmanov <i.usmanov@samsung.com>
2962 Jakub Jelinek <jakub@redhat.com>
2963
2964 * c.opt (fopenacc): New option.
2965 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
2966 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
2967 New macros.
2968 * c-common.h (c_finish_oacc_wait): New prototype.
2969 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
2970 (c_finish_oacc_wait): New function.
2971 * c-pragma.c (oacc_pragmas): New variable.
2972 (c_pp_lookup_pragma, init_pragma): Handle it.
2973 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
2974 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
2975 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
2976 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
2977 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
2978 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
2979 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
2980 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
2981 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
2982 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
2983 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
2984 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
2985 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
2986 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
2987 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
2988 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
2989 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
2990 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
2991 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
2992 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
2993 PRAGMA_OACC_CLAUSE_WORKER.
2994
3f8257db 29952015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
5434dc07
MD
2996
2997 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
2998 for the new option fstack-protector_explicit.
2999 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
3000 (handle_stack_protect_attribute): New function.
3001
3f8257db 30022015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
de1b5c17
MU
3003
3004 * c.opt: New option -Warray-bounds=.
3005
adfac8df
JJ
30062015-01-09 Michael Collison <michael.collison@linaro.org>
3007
3008 * array-notation-common.c: Include hash-set.h, machmode.h,
3009 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
3010 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
3011 * c-ada-spec.c: Ditto.
3012 * c-cilkplus.c: Ditto.
3013 * c-common.c: Include input.h due to flattening of tree.h.
3014 Define macro GCC_C_COMMON_C.
3015 * c-common.h: Flatten tree.h header files into c-common.h.
3016 Remove include of tree-core.h.
3017 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
3018 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
3019 fold-const.h, wide-int.h, and inchash.h due to
3020 flattening of tree.h.
3021 * c-dump.c: Ditto.
3022 * c-format.c: Flatten tree.h header files into c-common.h.
3023 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
3024 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
3025 fold-const.h, wide-int.h, and inchash.h due to
3026 flattening of tree.h.
3027 * c-dump.c: Include hash-set.h, machmode.h,
3028 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
3029 fold-const.h, wide-int.h, and inchash.h due to
3030 flattening of tree.h.
3031 * c-format.c: Include hash-set.h, machmode.h,
3032 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
3033 fold-const.h, wide-int.h, inchash.h and real.h due to
3034 flattening of tree.h.
3035 * c-gimplify.c: Include hash-set.h, machmode.h,
3036 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
3037 fold-const.h, wide-int.h, and inchash.h due to
3038 flattening of tree.h.
3039 * cilk.c: Ditto.
3040 * c-lex.c: Ditto.
3041 * c-omp.c: Ditto.
3042 * c-opts.c: Ditto.
3043 * c-pch.c: Ditto.
3044 * c-ppoutput.c: Ditto.
3045 * c-pragma.c: Ditto.
3046 * c-pretty-print.c: Ditto.
3047 * c-semantics.c: Ditto.
3048 * c-ubsan.c: Ditto.
3049 * stub-objc.c: Ditto.
3050
f5481fc4
JM
30512015-01-08 Jason Merrill <jason@redhat.com>
3052
3053 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
3054 do_ubsan_in_current_function.
3055 (ubsan_maybe_instrument_reference_or_call): Likewise.
3056 * c-ubsan.h: Declare it.
3057
de35aa66
MS
30582015-01-08 Mike Stump <mikestump@comcast.net>
3059
3060 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
3061
4a9a42ab
MP
30622015-01-07 Marek Polacek <polacek@redhat.com>
3063
3064 PR c/64440
3065 * c-common.c (c_fully_fold_internal): Warn for division and modulo
3066 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
3067
2f42e5de
TS
30682015-01-05 Trevor Saunders <tsaunders@mozilla.com>
3069
3070 PR c++/31397
3071 * c.opt (Wsuggest-override): New option.
3072
5624e564
JJ
30732015-01-05 Jakub Jelinek <jakub@redhat.com>
3074
3075 Update copyright years.
3076
5bd012f8
MP
30772015-01-05 Marek Polacek <polacek@redhat.com>
3078
3079 PR c/64423
3080 * c-common.c (warn_array_subscript_with_type_char): Add location_t
3081 parameter. Use it.
3082 * c-common.h (warn_array_subscript_with_type_char): Update
3083 declaration.
3084
a7fa8d18
ESR
30852014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
3086
3087 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
3088 Control macro with flag_sized_deallocation.
3089
3f8257db 30902014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
768952be
MU
3091
3092 * c.opt (Wdiscarded-array-qualifiers): New option.
3093
1f8d3e84
JJ
30942014-12-19 Jakub Jelinek <jakub@redhat.com>
3095
3096 PR preprocessor/63831
3097 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
3098 and __has_cpp_attribute here.
3099 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
3100 c_common_has_attribute.
3101 * c-common.h (c_common_has_attribute): New prototype.
3102 * c-lex.c (init_c_lex): Set cb->has_attribute to
3103 c_common_has_attribute instead of cb_has_attribute.
3104 (get_token_no_padding): New function.
3105 (cb_has_attribute): Renamed to ...
3106 (c_common_has_attribute): ... this. No longer static. Use
3107 get_token_no_padding, require ()s, don't build TREE_LIST
3108 unnecessarily, fix up formatting, adjust diagnostics, call
3109 init_attributes.
3110
20b06add
JM
31112014-12-15 Jason Merrill <jason@redhat.com>
3112
3113 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
3114 (-Wsized-deallocation): New.
3115 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
3116 to on in C++14 and up.
3117
94a073b2
JM
31182014-12-11 Jason Merrill <jason@redhat.com>
3119
acaa5911
JM
3120 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
3121
94a073b2
JM
3122 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
3123 we aren't complaining about VLAs.
3124
7fb66c15
MP
31252014-12-06 Marek Polacek <polacek@redhat.com>
3126
3127 PR tree-optimization/64183
3128 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
3129 shift-expression if it is integer_type_node. Use types_compatible_p.
3130
b731b390
JJ
31312014-11-29 Jakub Jelinek <jakub@redhat.com>
3132
3133 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
3134 last argument from create_tmp_var_raw and create_tmp_var calls.
3135 * cilk.c (gimplify_cilk_spawn): Likewise.
3136 * c-omp.c (c_finish_omp_atomic): Likewise.
3137
6a4da643
MP
31382014-11-28 Marek Polacek <polacek@redhat.com>
3139
3140 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
3141 instead of unsigned_type_node.
3142
541e35a6
MP
31432014-11-28 Marek Polacek <polacek@redhat.com>
3144
3145 PR c/63862
3146 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
3147 to op1_utype.
3148 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
3149 expression to unsigned_type_node.
3150
dcc97066
MW
31512014-11-20 Mark Wielaard <mjw@redhat.com>
3152
3153 PR debug/38757
3154 * c-opts.c (set_std_c89): Set lang_hooks.name.
3155 (set_std_c99): Likewise.
3156 (set_std_c11): Likewise.
3157 (set_std_cxx98): Likewise.
3158 (set_std_cxx11): Likewise.
3159 (set_std_cxx14): Likewise.
3160 (set_std_cxx1z): Likewise.
3161
aa7da51a
JJ
31622014-11-21 Jakub Jelinek <jakub@redhat.com>
3163
3164 PR target/63764
3165 * c-common.h (convert_vector_to_pointer_for_subscript): Change
3166 return type to bool.
009a3480 3167 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
3168 (convert_vector_to_pointer_for_subscript): Change return type to
3169 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
3170 and copy it into a TARGET_EXPR and use that instead of *vecp
3171 directly.
3172
538dd0b7
DM
31732014-11-19 David Malcolm <dmalcolm@redhat.com>
3174
3175 Merger of git branch "gimple-classes-v2-option-3".
3176 * ChangeLog.gimple-classes: New.
3177 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
3178 from being just a vec<gimple> to a vec<gbind *>.
3179
c39a5e99
JJ
31802014-11-18 Jakub Jelinek <jakub@redhat.com>
3181
3182 PR sanitizer/63813
3183 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
3184 argument to ptype, set type to TREE_TYPE (ptype). Don't call
3185 get_pointer_alignment for non-pointers. Use ptype, or if it is
3186 reference type, corresponding pointer type, as type of kind
3187 argument.
3188 (ubsan_maybe_instrument_reference,
3189 ubsan_maybe_instrument_member_call): Adjust callers.
3190
8537a4a9
MP
31912014-11-15 Marek Polacek <polacek@redhat.com>
3192
3193 PR middle-end/63884
3194 * array-notation-common.c (is_sec_implicit_index_fn): Return false
3195 for NULL fndecl.
3196 (extract_array_notation_exprs): Return for NULL node.
3197
2079956a
JM
31982014-11-12 Joseph Myers <joseph@codesourcery.com>
3199
3200 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
3201 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
3202
1304953e
JJ
32032014-11-12 Jakub Jelinek <jakub@redhat.com>
3204
3205 PR c/59708
3206 * c-common.c (check_builtin_function_arguments): Handle
3207 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
3208
e5e44252
AK
32092014-11-10 Andi Kleen <ak@linux.intel.com>
3210
3211 PR c/60804
3212 * c-common.h (check_no_cilk): Declare.
3213 * cilk.c (get_error_location): New function.
3214 (check_no_cilk): Dito.
3215
e64b984d
AK
32162014-11-10 Andi Kleen <ak@linux.intel.com>
3217
3218 * cilk.c (recognize_spawn): Use expression location
3219 for error message.
3220
13c21655
PC
32212014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
3222
3223 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
3224
42fd12b1
ESR
32252014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
3226
3227 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
3228 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
3229 (__cpp_range_based_for, __cpp_initializer_lists,
3230 __cpp_delegating_constructors, __cpp_nsdmi,
3231 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
3232 for C++11; (__cpp_attribute_deprecated): Remove in favor of
3233 __has_cpp_attribute.
3234 * c-lex.c (cb_has_attribute): New callback CPP function;
3235 (init_c_lex): Set has_attribute callback.
3236
6f450181
RB
32372014-11-04 Richard Biener <rguenther@suse.de>
3238
3239 * c-common.c (shorten_compare): Do not shorten mixed
3240 DFP and non-DFP compares.
3241
26f0e1d6
ESR
32422014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
3243
3244 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
3245 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
3246 Commentary and rearrangement of tests.
3247 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
3248 Commentary and rearrangement of tests.
3249 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
3250 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
3251
ef4bddc2
RS
32522014-10-29 Richard Sandiford <richard.sandiford@arm.com>
3253
3254 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
3255 enum from machine_mode.
3256
c582198b
AM
32572014-10-28 Andrew MacLeod <amacleod@redhat.com>
3258
adfac8df
JJ
3259 * c-common.c: Adjust include files.
3260 * c-gimplify.c: Ditto.
3261 * cilk.c: Ditto.
3262 * c-pragma.c: Ditto.
3263 * c-ubsan.c: Ditto.
c582198b 3264
60393bbc
AM
32652014-10-27 Andrew MacLeod <amacleod@redhat.com>
3266
3267 * c-gimplify.c: Adjust include files.
3268
d723bb7c
MLI
32692014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
3270
3271 PR c++/53061
3272 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
3273 c_common_initialize_diagnostics.
3274 * c-common.h: Likewise.
3275
90f3520e
MP
32762014-10-24 Marek Polacek <polacek@redhat.com>
3277
3278 PR c/56980
3279 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
3280 print "struct"/"union"/"enum" for typedefed names.
3281
59d7607a
MP
32822014-10-23 Marek Polacek <polacek@redhat.com>
3283
3284 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
3285 in unsigned type.
3286
d95a2703
JJ
32872014-10-22 Jakub Jelinek <jakub@redhat.com>
3288 Yury Gribov <y.gribov@samsung.com>
3289
3290 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
3291 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
3292 instead of flag_sanitize_recover as bool flag.
3293
8e6ef852
KY
32942014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
3295
3296 * cilk.c: Revert previous change.
3297
948cf550
IZ
32982014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
3299
3300 PR c/63307
3301 * cilk.c: Include vec.h.
3302 (struct cilk_decls): New structure.
3303 (wrapper_parm_cb): Split this function to...
3304 (fill_decls_vec): ...this...
3305 (create_parm_list): ...and this.
3306 (compare_decls): New function.
3307 (for_local_cb): Remove.
3308 (wrapper_local_cb): Ditto.
3309 (build_wrapper_type): For now first traverse and fill vector of
3310 declarations then sort it and then deal with sorted vector.
3311 (cilk_outline): Ditto.
3312 (declare_one_free_variable): Ditto.
3313
92574c7c
MP
33142014-10-17 Marek Polacek <polacek@redhat.com>
3315
3316 * c-opts.c (c_common_post_options): Set warn_implicit_int.
3317 * c.opt (Wimplicit-int): Initialize to -1.
3318
83685514
AM
33192014-10-16 Andrew MacLeod <amacleod@redhat.com>
3320
3321 * c-pragma.c: Adjust include files.
3322 * c-semantics.c: Likewise.
3323
5b8300ea
DD
33242014-10-16 DJ Delorie <dj@redhat.com>
3325
3326 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
3327 multiples of bytes.
3328
5f83e90b
JM
33292014-10-14 Jason Merrill <jason@redhat.com>
3330
3331 PR c++/63455
3332 * c-common.h (CPP_PREPARSED_EXPR): New.
3333 (N_CP_TTYPES): Adjust.
3334
d73326ca
MP
33352014-10-15 Marek Polacek <polacek@redhat.com>
3336
3337 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
3338
78a7c317
DD
33392014-10-14 DJ Delorie <dj@redhat.com>
3340
3341 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
3342 types, not just __int128.
3343 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
3344 types, not just __int128.
3345 (cpp_atomic_builtins): Round pointer sizes up.
3346 (type_suffix): Use type precision, not specific types.
3347 * c-common.c (c_common_reswords): Remove __int128 special case.
3348 (c_common_type_for_size): Check for all __intN types, not just
3349 __int128.
3350 (c_common_type_for_mode): Likewise.
3351 (c_common_signed_or_unsigned_type): Likewise.
3352 (c_build_bitfield_integer_type): Likewise.
3353 (c_common_nodes_and_builtins): Likewise.
3354 (keyword_begins_type_specifier): Likewise.
3355 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
3356 __intN variants.
3357
2a22f99c
TS
33582014-10-12 Trevor Saunders <tsaunders@mozilla.com>
3359
3360 * c-common.c: Use hash_table instead of hashtab.
3361
2a8ef767
ESR
33622014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
3363
adfac8df 3364 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
3365 C++11 section.
3366
3c9aabbd
MG
33672014-10-03 Marc Glisse <marc.glisse@inria.fr>
3368
3369 PR c++/54427
3370 PR c++/57198
3371 PR c++/58845
3372 * c-common.c (warn_logical_operator): Punt for vectors.
3373
a15f7cb8
ESR
33742014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
3375
3376 Implement SD-6: SG10 Feature Test Recommendations
3377 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
3378 macros and the __has_header macro.
3379
8d0cf15e
JM
33802014-09-30 Jason Merrill <jason@redhat.com>
3381
dd5d5481
JM
3382 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
3383 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
3384 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
3385
b752325e
JM
3386 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
3387 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
3388
8d0cf15e
JM
3389 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
3390 * c-common.c (c_common_reswords): Remove __is_convertible_to.
3391
083e891e
MP
33922014-09-24 Marek Polacek <polacek@redhat.com>
3393
3394 PR c/61405
3395 PR c/53874
3396 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
3397
7861b648
AK
33982014-09-23 Andi Kleen <ak@linux.intel.com>
3399
3400 * c-common.c (handle_no_reorder_attribute): New function.
3401 (c_common_attribute_table): Add no_reorder attribute.
3402
9a79452d
JM
34032014-09-22 Joseph Myers <joseph@codesourcery.com>
3404
3405 * c-cppbuiltin.c (c_cpp_builtins): Define
3406 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
3407 modes.
3408
dd69f047
JM
34092014-09-18 Joseph Myers <joseph@codesourcery.com>
3410
3411 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
3412 for supported floating-point modes.
3413
737a4826
MLI
34142014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3415
3416 * c.opt (Wpsabi): Use LangEnabledBy.
3417 * c-opts.c (c_common_handle_option): Do not handle here.
3418
8cc4b7a2
JM
34192014-09-12 Joseph Myers <joseph@codesourcery.com>
3420
3421 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
3422 macros for floating-point modes.
3423
179b5a55
MG
34242014-09-11 Marc Glisse <marc.glisse@inria.fr>
3425
3426 PR target/58757
3427 * c-cppbuiltin.c (builtin_define_float_constants): Correct
3428 __*_DENORM_MIN__ without denormals.
3429
570a11fe
JJ
34302014-09-10 Jakub Jelinek <jakub@redhat.com>
3431
3432 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
3433 ubsan_instrument_vla, ubsan_instrument_return): Adjust
3434 ubsan_create_data callers.
3435 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
3436 index is constant or BIT_AND_EXPR with constant mask and is
3437 small enough for the bound.
3438 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
3439 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
3440
b559c810
MLI
34412014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3442
3443 * c.opt: Add CppReason to various flags.
3444 (Wdate-time): Re-sort.
3445 * c-common.c: Include c-common.h earlier.
3446 (struct reason_option_codes_t): Delete.
3447 (c_option_controlling_cpp_error): Prefix global type and struct
3448 with cpp_.
3449
1ef33fd4
MLI
34502014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3451
3452 * c.opt (Wnormalized): New.
3453 (Wnormalized=): Use Enum and Reject Negative.
3454 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
3455
66bb34c0
JM
34562014-09-08 Joseph Myers <joseph@codesourcery.com>
3457
3458 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
3459 digits of floating-point modes if -fbuilding-libgcc.
3460
53d68b9f
JM
34612014-09-05 Joseph Myers <joseph@codesourcery.com>
3462
3463 * c-cppbuiltin.c (c_cpp_builtins): Also define
3464 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
3465 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
3466 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
3467 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
3468 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
3469 __LIBGCC_STACK_GROWS_DOWNWARD__,
3470 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
3471 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
3472 __LIBGCC_DWARF_FRAME_REGISTERS__,
3473 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
3474 __LIBGCC_STACK_POINTER_REGNUM__ and
3475 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
3476 (builtin_define_with_value): Handle backslash-escaping in string
3477 macro values.
3478
f65586dc
RB
34792014-09-05 Richard Biener <rguenther@suse.de>
3480
3481 PR middle-end/63148
3482 * c-format.c (check_format_arg): Properly handle
3483 effectively signed POINTER_PLUS_EXPR offset.
3484
2b71f4a4
MLI
34852014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
3486
3487 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
3488 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
3489 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
3490 and Init.
3491 * c-opts.c (c_common_handle_option): Do not handle here.
3492 (sanitize_cpp_opts): Likewise.
3493 * c-common.c (struct reason_option_codes_t): Handle
3494 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
3495
d2e4feca
MP
34962014-09-03 Marek Polacek <polacek@redhat.com>
3497
3498 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
3499
9a771876
JJ
35002014-09-02 Jakub Jelinek <jakub@redhat.com>
3501 Balaji V. Iyer <balaji.v.iyer@intel.com>
3502 Igor Zamyatin <igor.zamyatin@intel.com>
3503
3504 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
3505 * c-common.c (c_common_reswords): Added _Cilk_for.
3506 * c-common.h (enum rid): Added RID_CILK_FOR.
3507 (cilk_for_number_of_iterations): Add declaration.
3508 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
3509 CILK_FOR.
3510 * c-pragma.c (init_pragma): Register "grainsize" pragma.
3511 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
3512
81b5d104
MLI
35132014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3514
3515 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
3516 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
3517 Wundef): Use CPP, Var and Init.
3518 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
3519
b753b37b
MLI
35202014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3521
3522 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
3523 * c-opts.c (c_common_handle_option): Do not handle here.
3524
028aee17
JM
35252014-08-25 Jason Merrill <jason@redhat.com>
3526
3527 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
3528 -std=c++14 and -std=gnu++14, rather than the reverse.
3529 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
3530 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
3531 * c-common.h (cxx_dialect): Remove cxx1y.
3532
e4276ba5
ESR
35332014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
3534
3535 * c-common.h (enum cxx_dialect): Add cxx14.
3536 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
3537 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
3538 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
3539
a545cacd
JM
35402014-08-22 Jason Merrill <jason@redhat.com>
3541
3542 * c.opt (std=gnu++17): Fix alias.
3543
59ea0364
MP
35442014-08-22 Marek Polacek <polacek@redhat.com>
3545
3546 PR c++/62199
3547 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
3548 check for vector types. Drop LHS argument.
3549 * c-common.h (warn_logical_not_parentheses): Adjust.
3550
596e808c
MLI
35512014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
3552
3553 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
3554 (Wmultichar): Likewise.
3555 (Wdate-time): Use C-family languages instead of Common. Use CPP
3556 and Var.
3557 * c-opts.c (c_common_handle_option): Do not handle the above
3558 options here.
3559 (sanitize_cpp_opts): Likewise.
3560
18767f65
MLI
35612014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
3562
3563 PR fortran/44054
3564 * c-opts.c: Include tree-diagnostics.h.
3565 (c_diagnostic_finalizer): New.
3566 (c_common_initialize_diagnostics): Use it.
3567
b4413594
MLI
35682014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3569
3570 PR preprocessor/51303
3571 * c-common.c (struct reason_option_codes_t option_codes):
3572 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
3573
43f9a13c
MLI
35742014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3575
3576 PR c/60975
3577 PR c/53063
3578 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
3579 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
3580 (c_common_post_options): Call init_global_opts_from_cpp.
3581 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
3582
04159acf
MP
35832014-08-19 Marek Polacek <polacek@redhat.com>
3584
3585 PR c++/62153
3586 * c-common.c (maybe_warn_bool_compare): New function.
3587 * c-common.h (maybe_warn_bool_compare): Declare.
3588 * c.opt (Wbool-compare): New option.
3589
35aff4fb
MP
35902014-08-19 Marek Polacek <polacek@redhat.com>
3591
3592 * c.opt (Wc99-c11-compat): New option.
3593
177cce46
MP
35942014-08-19 Marek Polacek <polacek@redhat.com>
3595
3596 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
3597 to warn_c90_c99_compat.
3598 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
3599 to -1.
3600
6ae9194f
MLI
36012014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
3602 Steven Bosscher <steven@gcc.gnu.org>
3603
3604 PR c/52952
3605 * c-format.c: Add extra_arg_loc and format_string_loc to struct
3606 format_check_results.
3607 (check_function_format): Use true and add comment for boolean
3608 argument.
3609 (finish_dollar_format_checking): Use explicit location when warning.
3610 (check_format_info): Likewise.
3611 (check_format_arg): Set extra_arg_loc and format_string_loc.
3612 (check_format_info_main): Use explicit location when warning.
3613 (check_format_types): Pass explicit location.
3614 (format_type_warning): Likewise.
3615
8e54f6d3
MLI
36162014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3617
3618 PR fortran/44054
3619 * c-format.c: Handle Fortran flags.
3620
cd4e76fc
IZ
36212014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
3622
3623 PR other/61962
3624 * array-notation-common.c (find_rank): Added handling for other
3625 types of references.
3626
f3bede71
MP
36272014-08-10 Marek Polacek <polacek@redhat.com>
3628
3629 PR c/51849
3630 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
3631 * c.opt (Wc90-c99-compat): Add option.
3632
9f25a338
TS
36332014-08-07 Trevor Saunders <tsaunders@mozilla.com>
3634
3635 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
3636
62e4eb35
MP
36372014-08-03 Marek Polacek <polacek@redhat.com>
3638
3639 * c-common.c (check_case_value): Add location_t parameter. Use it.
3640 (c_add_case_label): Pass loc to check_case_value.
3641
b787e7a2
TS
36422014-08-02 Trevor Saunders <tsaunders@mozilla.com>
3643
3644 * cilk.c: Use hash_map instead of pointer_map.
3645
6e2830c3
TS
36462014-08-02 Trevor Saunders <tsaunders@mozilla.com>
3647
3648 * c-gimplify.c: Use hash_set instead of pointer_set.
3649
a7ee52fb
IZ
36502014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
3651
3652 PR middle-end/61455
3653 * array-notation-common.c (extract_array_notation_exprs): Handling
3654 of DECL_EXPR added.
3655
944fa280
JJ
36562014-08-01 Jakub Jelinek <jakub@redhat.com>
3657
3658 * c-common.h (min_align_of_type): Removed prototype.
3659 * c-common.c (min_align_of_type): Removed.
3660 * c-ubsan.h (ubsan_maybe_instrument_reference,
3661 ubsan_maybe_instrument_member_call): New prototypes.
3662 * c-ubsan.c: Include stor-layout.h and builtins.h.
3663 (ubsan_maybe_instrument_reference_or_call,
3664 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
3665 functions.
3666
b4dfdc11
MG
36672014-07-31 Marc Glisse <marc.glisse@inria.fr>
3668
3669 PR c++/60517
3670 * c.opt (-Wreturn-local-addr): Move to common.opt.
3671
a41844e5
JM
36722014-07-30 Jason Merrill <jason@redhat.com>
3673
3674 PR c++/61659
3675 PR c++/61687
3676 Revert:
3677 * c.opt (-fuse-all-virtuals): New.
3678
976d5a22
TT
36792014-07-30 Tom Tromey <tromey@redhat.com>
3680
3681 PR c/59855
3682 * c.opt (Wdesignated-init): New option.
3683 * c-common.c (c_common_attribute_table): Add "designated_init".
3684 (handle_designated_init): New function.
3685
cdc94aca
MP
36862014-07-24 Marek Polacek <polacek@redhat.com>
3687
3688 PR c/57653
3689 * c-opts.c (c_finish_options): If -imacros is in effect, return.
3690
f41373b6
DS
36912014-07-16 Dodji Seketeli <dodji@redhat.com>
3692
3693 PR preprocessor/60723 - missing system-ness marks for macro tokens
3694 * c-ppoutput.c (struct print::prev_was_system_token): New data
3695 member.
3696 (init_pp_output): Initialize it.
3697 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
3698 (do_line_change): Return a flag saying if a line marker was
3699 emitted or not.
3700 (scan_translation_unit): Detect if the system-ness of the token we
3701 are about to emit is different from the one of the previously
3702 emitted token. If so, emit a line marker. Avoid emitting useless
3703 adjacent line markers. Avoid emitting line markers for tokens
3704 originating from the expansion of built-in macros.
3705 (scan_translation_unit_directives_only): Adjust.
3706
4d661eaa
MP
37072014-07-15 Marek Polacek <polacek@redhat.com>
3708
3709 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
3710 TYPE_MAX_VALUE is NULL.
3711
b108f48f
JJ
37122014-07-14 Jakub Jelinek <jakub@redhat.com>
3713
3714 PR middle-end/61294
3715 * c.opt (Wmemset-transposed-args): New warning.
3716
c0221884
JM
37172014-07-10 Jason Merrill <jason@redhat.com>
3718
3719 PR c++/61659
3720 PR c++/61687
3721 * c.opt (-fuse-all-virtuals): New.
3722
63dfbb95
RB
37232014-07-09 Richard Biener <rguenther@suse.de>
3724
3725 PR c-family/61741
3726 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
3727 using unsigned arithmetic if overflow does not wrap instead of
3728 if overflow is undefined.
3729
773ec47f
MP
37302014-07-06 Marek Polacek <polacek@redhat.com>
3731
3732 PR c/6940
3733 * c.opt (Wsizeof-array-argument): New option.
3734
00a7ba58
JJ
37352014-07-03 Jakub Jelinek <jakub@redhat.com>
3736
b1726d6c 3737 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
00a7ba58
JJ
3738 comments->count <= 1, as comments->entries might be NULL.
3739
52ec0ea3
MP
37402014-07-01 Marek Polacek <polacek@redhat.com>
3741
3742 * c.opt (Wint-conversion): New option.
3743
d5c3d343
MP
37442014-07-01 Marek Polacek <polacek@redhat.com>
3745
3746 PR c/58286
3747 * c.opt (Wincompatible-pointer-types): New option.
3748
6e7ceb17
PC
37492014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
3750
3751 PR c++/51400
3752 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
3753 Do not discard TYPE_QUALS of type.
3754
da73100b
JM
37552014-06-26 Jason Merrill <jason@redhat.com>
3756
3757 * c-common.h (enum cxx_dialect): Add cxx1z.
3758 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
3759 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
3760
08eedf75
TJ
37612014-06-26 Teresa Johnson <tejohnson@google.com>
3762
3763 * c-common.h (get_dump_info): Declare.
3764 * c-gimplify.c (c_genericize): Use saved dump files.
3765 * c-opts.c (c_common_parse_file): Begin and end dumps
3766 once around parsing invocation.
3767 (get_dump_info): New function.
3768
7b56b2f8
MP
37692014-06-23 Marek Polacek <polacek@redhat.com>
3770 Andrew MacLeod <amacleod@redhat.com>
3771
3772 PR c/61553
3773 * c-common.c (get_atomic_generic_size): Don't segfault if the
3774 type doesn't have a size.
3775
0e37a2f3
MP
37762014-06-20 Marek Polacek <polacek@redhat.com>
3777
3778 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
3779 (ubsan_walk_array_refs_r): New function.
3780 (c_genericize): Instrument array bounds.
3781 * c-ubsan.c: Include "internal-fn.h".
3782 (ubsan_instrument_division): Mark instrumented arrays as having
3783 side effects. Adjust ubsan_type_descriptor call.
3784 (ubsan_instrument_shift): Likewise.
3785 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
3786 (ubsan_instrument_bounds): New function.
3787 (ubsan_array_ref_instrumented_p): New function.
3788 (ubsan_maybe_instrument_array_ref): New function.
3789 * c-ubsan.h (ubsan_instrument_bounds): Declare.
3790 (ubsan_array_ref_instrumented_p): Declare.
3791 (ubsan_maybe_instrument_array_ref): Declare.
3792
37932014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
3794
3795 PR lto/61123
3796 * c.opt (fshort-enums): Add to LTO.
3797 * c.opt (fshort-wchar): Likewise.
3798
5c3d09f7
MP
37992014-06-16 Marek Polacek <polacek@redhat.com>
3800
3801 PR c/60439
3802 * c.opt (Wswitch-bool): Add Var.
3803
9cf32741
JJ
38042014-06-12 Jakub Jelinek <jakub@redhat.com>
3805
3806 PR middle-end/61486
3807 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
3808 #pragma omp target teams or
3809 #pragma omp {,target }teams distribute simd.
3810
62984918
JM
38112014-06-12 Jason Merrill <jason@redhat.com>
3812
3813 * c.opt (Wabi=, fabi-compat-version): New.
3814 * c-opts.c (c_common_handle_option): Handle -Wabi=.
3815 (c_common_post_options): Handle flag_abi_compat_version default.
3816 Disallow -fabi-compat-version=1.
3817 * c-common.h (abi_version_crosses): New.
3818
f961457f
JH
38192014-06-11 Jan Hubicka <hubicka@ucw.cz>
3820
adfac8df 3821 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
3822 section names that are no longer trees.
3823
92d28cbb
JJ
38242014-06-10 Jakub Jelinek <jakub@redhat.com>
3825
3826 PR fortran/60928
3827 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
3828 (omp_pragmas): ... back here.
3829
742938c9
MP
38302014-06-05 Marek Polacek <polacek@redhat.com>
3831
3832 PR c/49706
3833 * c-common.c (warn_logical_not_parentheses): New function.
3834 * c-common.h (warn_logical_not_parentheses): Declare.
3835 * c.opt (Wlogical-not-parentheses): New option.
3836
9d548dfb
MP
38372014-06-04 Marek Polacek <polacek@redhat.com>
3838
3839 PR c/30020
3840 * c-common.c (check_case_bounds): Add location parameter.
3841 Use it.
3842 (c_add_case_label): Pass loc to check_case_bounds.
3843
fedfecef
MP
38442014-06-03 Marek Polacek <polacek@redhat.com>
3845
3846 PR c/60439
3847 * c.opt (Wswitch-bool): New option.
3848
f6a7cffc
TS
38492014-05-22 Thomas Schwinge <thomas@codesourcery.com>
3850
040d18b6
TS
3851 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
3852 Remove prototypes.
3853 (record_types_used_by_current_var_decl): Move prototype to where
3854 it belongs.
3855
f6a7cffc
TS
3856 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
3857 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
3858 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
3859
632f2871
RS
38602014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
3861
3862 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
3863 * c-common.c (c_common_nodes_and_builtins): Don't initialize
3864 void_zero_node.
3865 * c-pretty-print.c (pp_c_void_constant): New function.
3866 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
3867 (c_pretty_printer::expression): Handle VOID_CST.
3868 * cilk.c (extract_free_variables): Likewise.
3869 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
3870 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
3871
766090c2
TS
38722014-05-17 Trevor Saunders <tsaunders@mozilla.com>
3873
3874 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
3875 * c-pragma.c (push_alignment): Adjust.
3876 (handle_pragma_push_options): Likewise.
3877
661a0813
MP
38782014-05-09 Marek Polacek <polacek@redhat.com>
3879
3880 PR c/50459
3881 * c-common.c (check_user_alignment): Return -1 if alignment is error
3882 node.
3883 (handle_aligned_attribute): Don't call default_conversion on
3884 FUNCTION_DECLs.
3885 (handle_vector_size_attribute): Likewise.
3886 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
3887 (handle_sentinel_attribute): Call default_conversion and allow even
3888 integral types as an argument.
3889
2793eeab
MP
38902014-05-08 Marek Polacek <polacek@redhat.com>
3891
3892 PR c/61053
3893 * c-common.c (min_align_of_type): New function factored out from...
3894 (c_sizeof_or_alignof_type): ...here.
3895 * c-common.h (min_align_of_type): Declare.
3896
f827930a
MP
38972014-05-08 Marek Polacek <polacek@redhat.com>
3898
3899 PR c/61077
3900 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
3901 parameter type of main.
3902
ca49b74e
DD
39032014-05-07 DJ Delorie <dj@redhat.com>
3904
3905 * c-cppbuiltin.c (print_bits_of_hex): New.
3906 (builtin_define_type_minmax): Print values using hex so as not to
3907 require a pre-computed list of string values.
3908
1d60af08
KZ
39092014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
3910 Mike Stump <mikestump@comcast.net>
3911 Richard Sandiford <rdsandiford@googlemail.com>
3912
3913 * c-ada-spec.c: Include wide-int.h.
3914 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
3915 (dump_generic_ada_node): Use wide-int interfaces.
3916 * c-common.c: Include wide-int-print.h.
3917 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
3918 (pointer_int_sum): Use wide-int interfaces.
3919 (c_common_nodes_and_builtins): Use make_int_cst.
3920 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
3921 (handle_alloc_size_attribute): Use wide-int interfaces.
3922 (get_nonnull_operand): Likewise.
3923 * c-format.c (get_constant): Use tree_fits_uhwi_p.
3924 * c-lex.c: Include wide-int.h.
3925 (narrowest_unsigned_type): Take a widest_int rather than two
3926 HOST_WIDE_INTs.
3927 (narrowest_signed_type): Likewise.
3928 (interpret_integer): Update accordingly. Use wide-int interfaces.
3929 (lex_charconst): Use wide-int interfaces.
3930 * c-pretty-print.c: Include wide-int.h.
3931 (pp_c_integer_constant): Use wide-int interfaces.
3932 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
3933 INT_CST_LT_UNSIGNED.
3934
b15458be
RB
39352014-05-06 Richard Biener <rguenther@suse.de>
3936
3937 * c-opts.c (c_common_post_options): For -freestanding,
3938 -fno-hosted and -fno-builtin disable pattern recognition
3939 if not enabled explicitely.
3940
6577374e
MP
39412014-05-02 Marek Polacek <polacek@redhat.com>
3942
3943 * c.opt (Wsizeof-pointer-memaccess): Describe option.
3944
d00887e8
MP
39452014-05-01 Marek Polacek <polacek@redhat.com>
3946
3947 PR c/43245
3948 * c.opt (Wdiscarded-qualifiers): Add.
3949
f8ed5150
MP
39502014-04-30 Marek Polacek <polacek@redhat.com>
3951
3952 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
3953 INT_MIN / -1 sanitization only for integer types.
3954
45484dcf
MP
39552014-04-25 Marek Polacek <polacek@redhat.com>
3956
3957 PR c/18079
3958 * c-common.c (handle_noinline_attribute): Warn if the attribute
3959 conflicts with always_inline attribute.
3960 (handle_always_inline_attribute): Warn if the attribute conflicts
3961 with noinline attribute.
3962
38e514c0
MP
39632014-04-25 Marek Polacek <polacek@redhat.com>
3964
3965 PR c/60156
3966 * c-common.c (check_main_parameter_types): Warn about variadic main.
3967
44875f92
MS
39682014-04-24 Mike Stump <mikestump@comcast.net>
3969
3970 * c.opt (Wshadow-ivar): Default to on.
3971
dcaaa5a0
DP
39722014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
3973
3974 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
3975
c07d7c02
MP
39762014-04-23 Marek Polacek <polacek@redhat.com>
3977
3978 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
3979
1c33c9b7
JJ
39802014-04-22 Jakub Jelinek <jakub@redhat.com>
3981
3982 PR sanitizer/60275
3983 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
3984 if flag_sanitize_undefined_trap_on_error.
3985 (ubsan_instrument_division, ubsan_instrument_shift,
3986 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
3987 if !flag_sanitize_recover.
3988
793c625f
MG
39892014-04-22 Marc Glisse <marc.glisse@inria.fr>
3990
3991 PR libstdc++/43622
3992 * c-common.c (registered_builtin_types): Make non-static.
3993 * c-common.h (registered_builtin_types): Declare.
3994
b0f1bf36
RB
39952014-04-14 Richard Biener <rguenther@suse.de>
3996 Marc Glisse <marc.glisse@inria.fr>
3997
3998 PR c/60819
3999 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
4000 apply may-alias the scalar pointer type when applicable.
4001
3b07fa4a
IZ
40022014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
4003
4004 PR middle-end/60467
4005 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
4006 as possible argument for Cilk_spawn.
4007
cbbd2b1c
TB
40082014-04-11 Tobias Burnus <burnus@net-b.de>
4009
4010 PR c/60194
4011 * c.opt (Wformat-signedness): Add
4012 * c-format.c(check_format_types): Use it.
4013
6415bd5d
JM
40142014-04-11 Jason Merrill <jason@redhat.com>
4015
4016 PR c++/57926
4017 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
4018 default_conversion for an array argument.
4019
6525783a
MP
40202014-04-08 Marek Polacek <polacek@redhat.com>
4021
4022 PR sanitizer/60745
4023 * c-ubsan.c: Include asan.h.
4024 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
4025
880a467b
NS
40262014-04-03 Nathan Sidwell <nathan@codesourcery.com>
4027
4028 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
4029
7b59ff2d
MP
40302014-04-02 Marek Polacek <polacek@redhat.com>
4031
4032 * c-common.h (c_expand_expr): Remove declaration.
4033
8edbfaa6
JJ
40342014-03-28 Jakub Jelinek <jakub@redhat.com>
4035
4036 PR c++/60689
4037 * c-common.c (add_atomic_size_parameter): When creating new
4038 params vector, push the size argument first.
4039
07d72e1d
JJ
40402014-03-26 Jakub Jelinek <jakub@redhat.com>
4041
4042 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
4043 ubsan_instrument_vla, ubsan_instrument_return): Adjust
4044 ubsan_create_data callers.
4045
b35e0fa0
JJ
40462014-03-22 Jakub Jelinek <jakub@redhat.com>
4047
4048 PR debug/60603
4049 * c-opts.c (c_finish_options): Restore cb_file_change call to
4050 <built-in>.
4051
39a1ebb3
JJ
40522014-03-13 Jakub Jelinek <jakub@redhat.com>
4053
4054 PR middle-end/36282
4055 * c-pragma.c (apply_pragma_weak): Only look at
4056 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
4057 DECL_ASSEMBLER_NAME_SET_P (decl).
4058 (maybe_apply_pending_pragma_weaks): Exit early if
4059 vec_safe_is_empty (pending_weaks) rather than only when
4060 !pending_weaks.
4061 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
4062 set assembler name back to NULL afterwards.
4063
a07f6ed2
JM
40642014-03-11 Jason Merrill <jason@redhat.com>
4065
4066 * c.opt: Add -std=gnu++14.
4067
75b107f5
IB
40682014-03-11 Ian Bolton <ian.bolton@arm.com>
4069
4070 * c-opts.c (c_common_post_options): Don't override
4071 -ffp-contract=fast if unsafe-math-optimizations is on.
4072
f42c637e
PM
40732014-03-08 Paulo Matos <paulo@matos-sorge.com>
4074
22b15758 4075 * c.opt: Enable LTO FE for fshort-double.
f42c637e 4076
70e24808
JM
40772014-03-07 Jason Merrill <jason@redhat.com>
4078
4079 * c.opt: Add -std=c++14.
4080
3af9c5e9
MP
40812014-03-06 Marek Polacek <polacek@redhat.com>
4082
4083 PR c/60197
4084 * cilk.c (contains_cilk_spawn_stmt): New function.
4085 (contains_cilk_spawn_stmt_walker): Likewise.
4086 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
4087 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
4088
b3bdf019
JJ
40892014-03-03 Jakub Jelinek <jakub@redhat.com>
4090
4091 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
4092 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
4093 even when flag_preprocess_only.
4094
ca7e759d
JM
40952014-02-26 Jason Merrill <jason@redhat.com>
4096
4097 PR c++/59231
4098 PR c++/11586
4099 * c-common.c (shorten_compare): Don't check
4100 c_inhibit_evaluation_warnings.
4101
28e41874
JJ
41022014-02-19 Jakub Jelinek <jakub@redhat.com>
4103
cca615af
JJ
4104 PR c/37743
4105 * c-common.c (c_common_nodes_and_builtins): When initializing
4106 c_uint{16,32,64}_type_node, also set corresponding
4107 uint{16,32,64}_type_node to the same value.
4108
28e41874
JJ
4109 PR c++/60267
4110 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
4111 for PRAGMA_IVDEP if flag_preprocess_only.
4112
c2bf53a1
JJ
41132014-02-12 Jakub Jelinek <jakub@redhat.com>
4114
4115 PR c/60101
4116 * c-common.c (merge_tlist): If copy is true, call new_tlist,
4117 if false, add ADD itself, rather than vice versa.
4118 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
4119 copy. For SAVE_EXPR, only call merge_tlist once.
4120
8fcbce72
JJ
41212014-02-08 Jakub Jelinek <jakub@redhat.com>
4122
4123 PR middle-end/60092
4124 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
4125 and tree_to_uhwi.
4126 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
4127 functions.
4128 (c_common_attribute_table): Add alloc_align and assume_aligned
4129 attributes.
4130
0a756a3f
MP
41312014-02-06 Marek Polacek <polacek@redhat.com>
4132
4133 PR c/60087
4134 * c-common.c (warn_for_sign_compare): Call warning_at with location
4135 instead of warning.
4136
7ec4847a
MP
41372014-02-05 Marek Polacek <polacek@redhat.com>
4138
4139 PR c/53123
4140 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
4141 statement.
4142
66f20604
MP
41432014-02-04 Marek Polacek <polacek@redhat.com>
4144
4145 PR c/60036
4146 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
4147 SAVE_EXPR.
4148
5d77fb19
MG
41492014-02-03 Marc Glisse <marc.glisse@inria.fr>
4150
4151 PR c++/53017
4152 PR c++/59211
4153 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
4154 handle_vector_size_attribute, handle_nonnull_attribute): Call
4155 default_conversion on the attribute argument.
4156 (handle_nonnull_attribute): Increment the argument number.
4157
81e5eca8
MP
41582014-01-31 Marek Polacek <polacek@redhat.com>
4159
4160 PR c/59963
4161 * c-common.c (add_atomic_size_parameter): Pass vNULL to
4162 build_function_call_vec.
4163 (resolve_overloaded_builtin): Likewise.
4164 * c-common.h (build_function_call_vec): Adjust declaration.
4165
68fca595
MP
41662014-01-30 Marek Polacek <polacek@redhat.com>
4167
4168 PR c/59940
4169 * c-common.h (unsafe_conversion_p): Adjust declaration.
4170 (warnings_for_convert_and_check): Likewise.
4171 (convert_and_check): Likewise.
4172 * c-common.c (unsafe_conversion_p): Add location parameter. Call
4173 expansion_point_location_if_in_system_header on it.
4174 (warnings_for_convert_and_check): Add location parameter. Call
4175 expansion_point_location_if_in_system_header on it. Use it.
4176 (convert_and_check): Add location parameter. Use it.
4177 (conversion_warning): Likewise.
4178 (c_add_case_label): Adjust convert_and_check calls.
4179 (scalar_to_vector): Adjust unsafe_conversion_p calls.
4180
b72271b9
BI
41812014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
4182
4183 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
4184 flag_cilkplus.
4185 * c-pragma.c (init_pragma): Likewise.
4186 * c.opt: Likewise.
4187
393e8e8b
MP
41882014-01-23 Marek Polacek <polacek@redhat.com>
4189
4190 PR c/59846
4191 * c-common.c (shorten_compare): Add location_t parameter.
4192 * c-common.h (shorten_binary_op): Adjust declaration.
4193
f04dda30
MP
41942014-01-23 Marek Polacek <polacek@redhat.com>
4195
4196 PR c/58346
4197 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
4198 * c-common.h: Declare it.
4199
621955cb
EB
42002014-01-20 Eric Botcazou <ebotcazou@adacore.com>
4201
4202 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
4203 * c-ada-spec.c (dump_ads): Likewise.
4204 (cpp_check): Likewise.
4205 (dump_ada_specs): Likewise.
4206
42072014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
4208
4209 PR c++/49718
4210 * c-common.c (handle_no_instrument_function_attribute): Allow
4211 no_instrument_function attribute in class member
4212 definition/declaration.
4213
241f845a
JJ
42142014-01-15 Jakub Jelinek <jakub@redhat.com>
4215
4216 PR c/58943
4217 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
4218 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
4219 being COMPOUND_EXPR.
4220 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
4221 operand a SAVE_EXPR and second MODIFY_EXPR.
4222
e83b8e2e
JJ
42232014-01-09 Jakub Jelinek <jakub@redhat.com>
4224
4225 PR target/58115
4226 * c-pch.c (c_common_write_pch): Call
4227 prepare_target_option_nodes_for_pch.
4228
23a5b65a
RS
42292014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
4230
4231 Update copyright years
4232
f9030485
RS
42332014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
4234
4235 * array-notation-common.c, c-cilkplus.c: Use the standard form for
4236 the copyright notice.
4237
f2aa696b
EB
42382013-12-28 Eric Botcazou <ebotcazou@adacore.com>
4239
4240 * c-ada-spec.c (print_constructor): New function.
4241 (print_destructor): Retrieve the origin of the destructor.
4242 (print_ada_declaration): Revamp handling of constructors/destructors.
4243
3f8257db 42442013-12-23 Stuart Hastings <stuart@apple.com>
1f26ac87
JM
4245 Bill Maddox <maddox@google.com>
4246 Jason Merrill <jason@redhat.com>
4247
4248 * c.opt: Add -fdeclone-ctor-dtor.
4249 * c-opts.c (c_common_post_options): Default to on iff -Os.
4250
41958c28
BI
42512013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
4252
4253 * c-common.c (c_common_attribute_table): Added "cilk simd function"
4254 attribute.
4255 * c-pragma.h (enum pragma_cilk_clause): Remove.
4256 (enum pragma_omp_clause): Added the following fields:
4257 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
4258 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
4259 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
4260 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
4261 PRAGMA_CILK_CLAUSE_UNIFORM.
4262
b1726d6c 4263
12893402
BI
42642013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
4265
4266 * cilk.c (cilk_outline): Made this function non-static.
4267 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
4268 (create_cilk_wrapper): Added a new parameter: a function pointer.
4269 (c_install_body_w_frame_cleanup): Remove
4270 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
4271 * c-common.h (cilk_outline): New prototype.
4272 (gimplify_cilk_spawn): Removed two parameters.
4273 (cilk_install_body_with_frame_cleanup): New prototype.
4274 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
4275 CILK_SPAWN_STMT case.
4276
085b42ed
BS
42772013-12-11 Bernd Schmidt <bernds@codesourcery.com>
4278
2ce064c3
BS
4279 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
4280
085b42ed
BS
4281 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
4282 (int_array_type_node): Remove.
4283 * c-common.c (c_common_nodes_and_builtins): Don't build it.
4284
9e36c9ed
MP
42852013-12-05 Marek Polacek <polacek@redhat.com>
4286
4287 PR c/52023
4288 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
4289 [ADJUST_FIELD_ALIGN].
4290
296674db
JM
42912013-12-04 Joseph Myers <joseph@codesourcery.com>
4292
4293 PR c/52023
4294 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
4295 and check field alignment if set.
4296 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
4297 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
4298
b1726d6c 42992013-12-04 Jakub Jelinek <jakub@redhat.com>
31e071ae
MP
4300 Marek Polacek <polacek@redhat.com>
4301
4302 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
4303 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
4304
d7947e19
L
43052013-11-29 H.J. Lu <hongjiu.lu@intel.com>
4306
4307 PR c/59309
4308 * cilk.c (gimplify_cilk_spawn): Properly handle function without
4309 arguments.
4310
fad7652e
JJ
43112013-11-29 Jakub Jelinek <jakub@redhat.com>
4312
4313 PR c/59280
4314 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
4315 goto invalid. If it is error_mark_node, don't issue further
4316 diagnostics.
4317
8b5e1202
SO
43182013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
4319
4320 * c.opt (Wopenmp-simd): New.
4321
0a508bb6
JJ
43222013-11-22 Jakub Jelinek <jakub@redhat.com>
4323
4324 * c-ubsan.h (ubsan_instrument_return): New prototype.
4325 * c-ubsan.c (ubsan_instrument_return): New function.
4326
2fb9a547
AM
43272013-11-22 Andrew MacLeod <amacleod@redhat.com>
4328
4329 * c-common.c: Add required include files from gimple.h.
4330 * c-gimplify.c: Likewise
4331 * cilk.c: Likewise
4332
8400e75e
DM
43332013-11-22 David Malcolm <dmalcolm@redhat.com>
4334
4335 * c-common.c (unsafe_conversion_p): Remove use of
4336 EXPR_LOC_OR_HERE macro.
4337 (conversion_warning): Likewise.
4338 (warnings_for_convert_and_check): Likewise.
4339 (warn_for_collisions_1): Likewise.
4340 (shorten_compare): Likewise, and remove use of in_system_header
4341 macro, using the location from the former.
4342 * c-lex.c (dump_one_header): Remove use of input_filename macro.
4343 (cb_def_pragma): Remove use of in_system_header macro.
4344 (lex_string): Likewise.
4345 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
4346
eb1ce453
KZ
43472013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
4348 Mike Stump <mikestump@comcast.net>
4349 Richard Sandiford <rdsandiford@googlemail.com>
4350
4351 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
4352 instead of TREE_INT_CST_LOW, in cases where there is a protecting
4353 tree_fits_shwi_p or tree_fits_uhwi_p.
4354 (dump_generic_ada_node): Likewise.
4355 * c-format.c (check_format_arg): Likewise.
4356 * c-pretty-print.c (pp_c_integer_constant): Likewise.
4357
6b3b8c27
KZ
43582013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
4359
4360 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
4361
49b0aa18
JC
43622013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
4363
4364 PR c/53001
4365 * c-common.c (unsafe_conversion_p): Make this function
4366 return an enumeration with more detail.
4367 (conversion_warning): Use the new return type of
4368 unsafe_conversion_p to separately warn either about conversions
4369 that lower floating point number precision or about the other
4370 kinds of conversions.
4371 * c-common.h (enum conversion_safety): New enumeration.
8e745a17
JJ
4372 (unsafe_conversion_p): switching return type to
4373 conversion_safety enumeration.
49b0aa18
JC
4374 * c.opt: Adding new warning -Wfloat-conversion and
4375 enabling it with -Wconversion.
4376
b826515a
BS
43772013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
4378
8e745a17
JJ
4379 * c-opts.c: Include plugin.h.
4380 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
b826515a 4381
b9a55b13
MP
43822013-11-19 Marek Polacek <polacek@redhat.com>
4383
4384 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
4385 call.
4386 (ubsan_instrument_shift): Likewise.
4387 (ubsan_instrument_vla): Likewise.
4388
7d362f6c
RS
43892013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4390
4391 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
4392 cast to unsigned type.
4393
386b1f1f
RS
43942013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4395
4396 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
4397 tree_low_cst.
4398 (complete_array_type): Update comment to refer to tree_to_[su]hwi
4399 rather than tree_low_cst.
4400
ae7e9ddd
RS
44012013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4402
4403 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
4404 tree_to_uhwi throughout.
4405
9439e9a1
RS
44062013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4407
4408 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
4409 tree_low_cst (..., 0) with tree_to_shwi throughout.
4410
cc269bb6
RS
44112013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4412
4413 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
4414 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
4415
9541ffee
RS
44162013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4417
4418 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
4419 host_integerp (..., 0) with tree_fits_shwi_p throughout.
4420
c02065fc
AH
44212013-11-15 Aldy Hernandez <aldyh@redhat.com>
4422
4423 * c-cilkplus.c: New file.
4424 * c-common.c (readonly_error): Add location argument.
4425 * c-common.h (readonly_error): Same.
4426 (c_finish_cilk_clauses): Protoize.
4427 (c_check_cilk_loop): Same.
4428 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
4429 Do not fail on error_mark_node.
4430 Abstract increment canonicalization to here...
4431 (c_omp_for_incr_canonicalize_ptr): New.
4432 c-pragma.c (init_pragma): Register "simd" pragma.
4433 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
4434 (enum pragma_cilk_clause): New.
4435
9cc65f15
RS
44362013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
4437
4438 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
4439 wchar_type and host_integerp checks.
4440
18f429e2
AM
44412013-11-14 Andrew MacLeod <amacleod@redhat.com>
4442
4443 * c-common.c: Likewise.
4444 * c-gimplify.c: Likewise.
4445 * cilk.c: Likewise.
4446
d8a2d370
DN
44472013-11-14 Diego Novillo <dnovillo@google.com>
4448
4449 * c-common.c: Include fold-const.h.
4450 Include stor-layout.h.
4451 Include calls.h.
4452 Include stringpool.h.
4453 Include attribs.h.
4454 Include varasm.h.
4455 Include trans-mem.h.
4456 * c-cppbuiltin.c: Include stor-layout.h.
4457 Include stringpool.h.
4458 * c-format.c: Include stringpool.h.
4459 * c-lex.c: Include stringpool.h.
4460 Include stor-layout.h.
4461 * c-pragma.c: Include stringpool.h.
4462 Include attribs.h.
4463 Include varasm.h.
4464 Include gcc-symtab.h.
4465 * c-pretty-print.c: Include stor-layout.h.
4466 Include attribs.h.
4467 * cilk.c: Include stringpool.h.
4468 Include calls.h.
4469
38b7bc7f
JM
44702013-11-13 Joseph Myers <joseph@codesourcery.com>
4471
4472 * c-common.h (enum rid): Add RID_AUTO_TYPE.
4473 * c-common.c (c_common_reswords): Add __auto_type.
4474 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
4475
45b0be94
AM
44762013-11-12 Andrew MacLeod <amacleod@redhat.com>
4477
18f429e2
AM
4478 * c-common.c: Include gimplify.h.
4479 * c-gimplify.c: Likewise.
4480 * cilk.c: Likewise.
4481 * c-omp.c: Include gimple-expr.h instead of gimple.h.
4482 * c-ubsan.c: Don't include gimple.h.
45b0be94 4483
582d9b50
JM
44842013-11-12 Joseph Myers <joseph@codesourcery.com>
4485
4486 * c-common.c (c_common_reswords): Add _Thread_local.
4487
6b28e197
JM
44882013-11-09 Joseph Myers <joseph@codesourcery.com>
4489
4490 * c-common.c (atomic_size_supported_p): New function.
4491 (resolve_overloaded_atomic_exchange)
4492 (resolve_overloaded_atomic_compare_exchange)
4493 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
4494 Use it instead of comparing size with a local list of sizes.
4495
267bac10
JM
44962013-11-07 Andrew MacLeod <amacleod@redhat.com>
4497 Joseph Myers <joseph@codesourcery.com>
4498
4499 * c-common.h (enum rid): Add RID_ATOMIC.
4500 * c-common.c (c_common_reswords): Add _Atomic.
4501 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
4502 (keyword_is_type_qualifier): Accept RID_ATOMIC.
4503 * c-format.c (check_format_types): Check for extra _Atomic
4504 qualifiers in format argument.
4505 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
4506 (pp_c_type_qualifier_list): Mention _Atomic in comment.
4507
5157b91e
TB
45082013-11-06 Tobias Burnus <burnus@net-b.de>
4509
4510 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
4511
6dbe0958
JM
45122013-11-06 Joseph Myers <joseph@codesourcery.com>
4513
4514 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
4515 standards modes.
4516 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
4517 to mean lack of IEEE 754 support.
4518
e8ff5196
TB
45192013-11-05 Tobias Burnus <burnus@net-b.de>
4520
4521 * c.opt (-Wdate-time): New option
4522 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
4523
254a0760
JM
45242013-11-05 Joseph Myers <joseph@codesourcery.com>
4525
4526 * c-cppbuiltin.c (cpp_iec_559_value): Test
4527 flag_excess_precision_cmdline not flag_excess_precision.
4528
6d7f7e0a
TB
45292013-11-05 Tobias Burnus <burnus@net-b.de>
4530
4531 * c.opt (fopenmp-simd): New option.
4532 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
4533 (omp_pragmas): ... this new struct.
4534 (c_pp_lookup_pragma): Also walk omp_pragmas.
4535 (init_pragma): Init pragmas for -fopenmp-simd.
4536
55a7f02f
MP
45372013-11-04 Marek Polacek <polacek@redhat.com>
4538
4539 PR c++/58979
4540 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
4541
9193fb05
JM
45422013-11-04 Joseph Myers <joseph@codesourcery.com>
4543
4544 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
4545 New functions.
4546 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
4547
94159ecf
EB
45482013-11-04 Eric Botcazou <ebotcazou@adacore.com>
4549
4550 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
4551 (dump_ada_specs): Adjust prototype of second callback.
4552 * c-ada-spec.c (cpp_check): New global variable.
4553 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
4554 (print_generic_ada_decl): Likewise.
4555 (has_static_fields): Change return type to bool and add guard.
4556 (has_nontrivial_methods): New predicate.
4557 (is_tagged_type): Change return type to bool.
4558 (separate_class_package): Call has_nontrivial_methods.
4559 (pp_ada_tree_identifier): Minor tweaks.
4560 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
4561 (dump_ada_array_domains): Likewise.
4562 (dump_ada_array_type): Likewise.
4563 (dump_template_types): Remove cpp_check parameter and do not pass it to
4564 dump_generic_ada_node.
4565 (dump_ada_template): Likewise.
4566 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
4567 recursively.
4568 (print_ada_methods): Change return type to integer. Remove cpp_check
4569 parameter and do not pass it down.
4570 (dump_nested_types): Remove cpp_check parameter and do not pass it to
4571 dump_generic_ada_node.
4572 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
4573 accessing methods.
4574 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
4575 down. Use has_nontrivial_methods to recognize C++ classes. Use return
4576 value of print_ada_methods.
4577 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
4578 Set cpp_check to it before invoking dump_ada_nodes.
4579 (dump_ada_specs): Likewise.
4580
b906f4ca
MP
45812013-11-03 Marek Polacek <polacek@redhat.com>
4582
4583 * c-ubsan.c: Don't include hash-table.h.
4584 (ubsan_instrument_vla): New function.
4585 * c-ubsan.h: Declare it.
4586
5e20cdc9
DM
45872013-10-31 David Malcolm <dmalcolm@redhat.com>
4588
4589 Automated part of renaming of symtab_node_base to symtab_node.
4590
4591 Patch autogenerated by rename_symtab.py from
4592 https://github.com/davidmalcolm/gcc-refactoring-scripts
4593 revision 58bb219cc090b2f4516a9297d868c245495ee622
4594
4595 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
4596 symtab_node_base to symtab_node.
4597
7057e645
ESR
45982013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
4599
8e745a17 4600 Implement C++14 digit separators.
7057e645
ESR
4601 * c-lex.c (interpret_float): Remove digit separators from scratch string
4602 before building real literal.
4603
193ea7bc
JJ
46042013-10-30 Jakub Jelinek <jakub@redhat.com>
4605
4606 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
4607
939b37da
BI
46082013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
4609
4610 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
4611 fields.
4612 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
4613 enabled.
4614 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
4615 (insert_cilk_frame): New prototype.
4616 (cilk_init_builtins): Likewise.
4617 (gimplify_cilk_spawn): Likewise.
4618 (c_cilk_install_body_w_frame_cleanup): Likewise.
4619 (cilk_detect_spawn_and_unwrap): Likewise.
4620 (cilk_set_spawn_marker): Likewise.
4621 (build_cilk_sync): Likewise.
4622 (build_cilk_spawn): Likewise.
4623 * cilk.c: New file.
4624
67348ccc
DM
46252013-10-29 David Malcolm <dmalcolm@redhat.com>
4626
4627 Patch autogenerated by refactor_symtab.py from
4628 https://github.com/davidmalcolm/gcc-refactoring-scripts
4629 revision 58bb219cc090b2f4516a9297d868c245495ee622
4630
4631 * c-gimplify.c (c_genericize): Update for conversion of symtab types
4632 to a true class hierarchy.
4633 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
4634
d570872d
RS
46352013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
4636
4637 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
4638
98906124
JL
46392013-10-26 Jeff Law <law@redhat.com>
4640
adfac8df
JJ
4641 * c-common.c (c_define_builtins): Remove mudflap support.
4642 * c.opt: Ignore and warn for mudflap options.
98906124 4643
d73749df 46442013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
4645
4646 PR other/33426
4647 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
4648 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
4649
3f04b1bb
JM
46502013-10-23 Jason Merrill <jason@redhat.com>
4651
4652 * c-format.c (gcc_cxxdiag_char_table): Add %X.
4653
acf0174b
JJ
46542013-10-11 Jakub Jelinek <jakub@redhat.com>
4655
acd15a28
JJ
4656 * c-common.h (omp_clause_mask::operator !=): New method.
4657 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
4658 instead of if (mask & something) tests everywhere.
4659
acf0174b
JJ
4660 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
4661 201307 instead of 201107.
4662 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
4663 (c_common_attribute_table): Add "omp declare target" and
4664 "omp declare simd" attributes.
4665 (handle_omp_declare_target_attribute,
4666 handle_omp_declare_simd_attribute): New functions.
4667 * c-omp.c: Include c-pragma.h.
4668 (c_finish_omp_taskgroup): New function.
4669 (c_finish_omp_atomic): Add swapped argument, if true,
4670 build the operation first with rhs, lhs arguments and use NOP_EXPR
4671 build_modify_expr.
4672 (c_finish_omp_for): Add code argument, pass it down to make_code.
4673 (c_omp_split_clauses): New function.
4674 (c_split_parallel_clauses): Removed.
4675 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
4676 c_omp_declare_simd_clauses_to_decls): New functions.
4677 * c-common.h (omp_clause_mask): New type.
4678 (OMP_CLAUSE_MASK_1): Define.
4679 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
4680 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
4681 omp_clause_mask::operator |, omp_clause_mask::operator &,
4682 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
4683 omp_clause_mask::operator ==): New methods.
4684 (enum c_omp_clause_split): New.
4685 (c_finish_omp_taskgroup): New prototype.
4686 (c_finish_omp_atomic): Add swapped argument.
4687 (c_finish_omp_for): Add code argument.
4688 (c_omp_split_clauses): New prototype.
4689 (c_split_parallel_clauses): Removed.
4690 (c_omp_declare_simd_clauses_to_numbers,
4691 c_omp_declare_simd_clauses_to_decls): New prototypes.
4692 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
4693 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
4694 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
4695 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
4696 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
4697 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
4698 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
4699 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
4700 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
4701 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
4702 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
4703 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
4704 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
4705 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
4706 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
4707 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
4708 PRAGMA_OMP_CLAUSE_UNIFORM.
4709
826cacfe
MG
47102013-10-09 Marc Glisse <marc.glisse@inria.fr>
4711
4712 PR tree-optimization/20318
4713 * c-common.c (handle_returns_nonnull_attribute): New function.
4714 (c_common_attribute_table): Add returns_nonnull.
4715
2284b034
MG
47162013-10-03 Marc Glisse <marc.glisse@inria.fr>
4717
4718 PR c++/19476
4719 * c.opt (fcheck-new): Move to common.opt.
4720
b56e9788
MP
47212013-09-25 Marek Polacek <polacek@redhat.com>
4722 Jakub Jelinek <jakub@redhat.com>
4723
4724 PR sanitizer/58413
4725 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
4726 an expression if we can prove it is correct.
4727 (ubsan_instrument_division): Likewise. Remove unnecessary
4728 check.
4729
ce6923c5
MP
47302013-09-18 Marek Polacek <polacek@redhat.com>
4731
4732 PR sanitizer/58411
4733 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
4734 Declare it.
4735 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
4736
fb5610fb
IS
47372013-09-14 Iain Sandoe <iain@codesourcery.com>
4738
4739 PR target/48094
4740 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
4741 fobjc-gc, freplace-objc-classes): Accept for LTO.
4742
88b0e79e
JC
47432013-09-13 Jacek Caban <jacek@codeweavers.com>
4744
4745 * c-target.def: New hook
4746
c9b0866a
PC
47472013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
4748
4749 PR c++/43452
4750 * c.opt (Wdelete-incomplete): Add.
4751
0af94e6f
JR
47522013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
4753
4754 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
4755 (vector_types_compatible_elements_p): New function.
4756 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
4757 declaration.
4758 (vector_types_compatible_elements_p): Declare.
4759
7c26172c
GDR
47602013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
4761
4762 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
4763 a virtual member function.
4764 (pp_simple_type_specifier): Remove.
4765 (pp_c_type_specifier): Likewise.
4766 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
4767 Rename from pp_c_type_specifier. Adjust.
4768 (c_pretty_printer::c_pretty_printer): Do not assign to
4769 simple_type_specifier.
4770
20059c8b
GDR
47712013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
4772
4773 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
4774 member function.
4775 (c_pretty_printer::storage_class_specifier): Likewise.
4776 (c_pretty_printer::initializer): Likewise.
4777 (pp_declaration): Remove.
4778 (pp_declaration_specifiers): Likewise.
4779 (pp_abstract_declarator): Likewise.
4780 (pp_declarator): Likewise.
4781 (pp_type_id): Likewise.
4782 (pp_statement): Likewise.
4783 (pp_constant): Likewise.
4784 (pp_id_expression): Likewise.
4785 (pp_primary_expression): Likewise.
4786 (pp_unary_expression): Likewise.
4787 (pp_multiplicative_expression): Likewise.
4788 (pp_conditional_expression): Likewise.
4789 (pp_assignment_expression): Likewise.
4790 (pp_expression): Likewise.
4791 (pp_c_type_id): Likewise.
4792 (pp_c_storage_class_specifier): Likewise.
4793 * c-pretty-print.c (pp_c_type_cast): Tidy.
4794 (pp_c_pointer): Likewise.
4795 (pp_c_type_specifier): Likewise.
4796 (pp_c_parameter_type_list): Likewise.
4797 (pp_c_function_definition): Likewise.
4798 (pp_c_init_declarator): Likewise.
4799 (pp_c_initializer_list): Likewise.
4800 (pp_c_constructor_elts): Likewise.
4801 (c_pretty_printer::direct_abstract_declarator): Likewise.
4802 (c_pretty_printer::declaration_specifiers): Likewise.
4803 (c_pretty_printer::primary_expression): Likewise.
4804 (c_pretty_printer::postfix_expression): Likewise.
4805 (c_pretty_printer::type_id): Rename from pp_c_type_id.
4806 (c_pretty_printer::storage_class_specifier): Rename from
4807 pp_c_storage_class_specifier.
4808 (c_pretty_printer::initializer): Rename from pp_c_initializer.
4809 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
4810 storage_class_specifier, initializer, offset_list, flags.
4811
de5a5fa1
MP
48122013-08-30 Marek Polacek <polacek@redhat.com>
4813
4814 * c-ubsan.c: New file.
4815 * c-ubsan.h: New file.
4816
8f0e4d72
GDR
48172013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
4818
4819 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
4820 member function.
4821 (c_pretty_printer::declaration_specifiers): Likewise.
4822 (c_pretty_printer::declarator): Likewise.
4823 (c_pretty_printer::abstract_declarator): Likewise.
4824 (c_pretty_printer::direct_abstract_declarator): Likewise.
4825 (c_pretty_printer::direct_declarator): Likewise.
4826 (c_pretty_printer::function_specifier): Likewise.
4827 (pp_declaration): Adjust.
4828 (pp_declaration_specifiers): Likewise.
4829 (pp_abstract_declarator): Likewise.
4830 (pp_direct_declarator): Likewise.
4831 (pp_function_specifier): Likewise.
4832 (pp_direct_abstract_declarator): Remove as unused.
4833 (pp_c_declaration): Remove.
4834 (pp_c_declaration_specifiers): Likewise.
4835 (pp_c_declarator): Likewise.
4836 (pp_c_direct_declarator): Likewise.
4837 (pp_c_function_specifier): Likewise.
4838 (pp_c_direct_abstract_declarator): Likewise.
4839 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
4840 from pp_c_abstract_declarator. Adjust.
4841 (c_pretty_printer::direct_abstract_declarator): Rename from
4842 pp_c_direct_abstract_declarator. Adjust.
4843 (c_pretty_printer::function_specifier): Rename from
4844 pp_c_function_specifier. Adjust.
4845 (c_pretty_printer::declaration_specifiers): Rename from
4846 pp_c_declaration_specifiers. Adjust.
4847 (c_pretty_printer::direct_declarator): Rename from
4848 pp_c_direct_declarator. Adjust.
4849 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
4850 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
4851 (c_pretty_printer::c_pretty_printer): Do not assign to
4852 declaration, declaration_specifiers, declarator,
4853 direct_declarator, direct_abstract_declarator, function_specifier.
4854
00d34d3a
GDR
48552013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
4856
4857 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
4858 virtual member function.
4859 (c_pretty_printer::multiplicative_expression): Likewise.
4860 (c_pretty_printer::conditional_expression): Likewise.
4861 (c_pretty_printer::assignment_expression): Likewise.
4862 (c_pretty_printer::expression): Likewise.
4863 (pp_unary_expression): Adjust.
4864 (pp_multiplicative_expression): Likewise.
4865 (pp_assignment_expression): Likewise.
4866 (pp_conditional_expression): Likewise.
4867 (pp_expression): Likewise.
4868 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
4869 from pp_c_unary_expression. Adjust.
4870 (c_pretty_printer::multiplicative_expression): Rename from
4871 pp_c_multiplicative_expression. Adjust.
4872 (c_pretty_printer::conditional_expression): Rename from
4873 pp_c_conditional_expression. Adjust.
4874 (c_pretty_printer::assignment_expression): Rename from
4875 pp_c_assignment_expression. Adjust.
4876 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
4877 (c_pretty_printer::c_pretty_printer): Do not assign to
4878 unary_expression, multiplicative_expression,
4879 conditional_expression, expression.
4880
fb22178f
GDR
48812013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4882
4883 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
4884 virtual member function.
4885 (pp_postfix_expression): Adjust.
4886 (pp_c_postfix_expression): Remove.
4887 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
4888 from pp_c_postfix_expression. Adjust.
4889 (c_pretty_printer::c_pretty_printer): Do not assign to
4890 postfix_expression.
4891
7ecc2600
GDR
48922013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4893
4894 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
4895 virtua member function.
4896 (pp_primary_expression): Adjust.
4897 (pp_c_primary_expression): Remove.
4898 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
4899 from pp_c_primary_expression. Adjust.
4900 (pp_c_initializer_list): Use pp_primary_expression.
4901 (c_pretty_printer::c_pretty_printer): Do not assign to
4902 primary_expression.
4903
0691175f
GDR
49042013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4905
4906 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
4907 * c-pretty-print.c (M_): Remove.
4908 (c_pretty_printer::translate_string): Define.
4909 (pp_c_type_specifier): Use it.
4910 (pp_c_primary_expression): Likewise.
4911 (pp_c_expression): Likewise.
4912
66dfe4c4
GDR
49132013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
4914
4915 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
4916 virtual function.
4917 (pp_c_id_expression): Remove.
4918 (pp_id_expression): Adjust.
4919 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
4920 pp_c_id_expression. Adjust.
4921 (pp_c_postfix_expression): Use pp_id_expression.
4922 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
4923
ca43e9d5
GDR
49242013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
4925
4926 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
4927 member function.
4928 (pp_constant): Adjust.
4929 (pp_c_constant): Remove.
4930 * c-pretty-print.c (c_pretty_printer::constant): Rename from
4931 pp_c_constant. Adjust.
4932 (pp_c_constant)
4933 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
4934 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
4935
da6ca2b5
GDR
49362013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
4937
4938 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
4939 (c_pretty_printer::c_pretty_printer): Declare.
4940 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
4941 c_pretty_printer_init. Adjust.
4942 (print_c_tree): Do not call c_pretty_printer_init.
4943 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
4944
65a372f4
AC
49452013-08-09 Arnaud Charlet <charlet@adacore.com>
4946
4947 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
4948
fd9b0f32
PC
49492013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
4950
4951 PR c++/58080
4952 * c-common.c (pointer_int_sum): Add bool parameter.
4953 * c-common.h (pointer_int_sum): Adjust declaration.
4954
e0aec1e9
GDR
49552013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
4956
4957 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
4958 c_pretty_printer variable.
4959
b066401f
GDR
49602013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
4961
4962 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
4963 (pp_base): Remove.
4964 (pp_c_base): Likewise. Adjust users.
4965 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
4966 (pp_c_whitespace): Do not call pp_base.
4967 (pp_c_left_paren): Likewise.
4968 (pp_c_right_paren): Likewise.
4969 (pp_c_left_brace): Likewise.
4970 (pp_c_right_brace): Likewise.
4971 (pp_c_left_bracket): Likewise.
4972 (pp_c_right_bracket): Likewise.
4973 (pp_c_dot): Likewise.
4974 (pp_c_ampersand): Likewise.
4975 (pp_c_star): Likewise.
4976 (pp_c_arrow): Likewise.
4977 (pp_c_semicolon): Likewise.
4978 (pp_c_complement): Likewise.
4979 (pp_c_exclamation): Likewise.
4980 (pp_c_direct_declarator): Likewise.
4981 (pp_c_ws_string): Likewise.
4982 (pp_c_identifier): Likewise.
4983 (pp_c_statement): Likewise.
4984 (print_c_tree): Likewise.
4985
65e5a578
ESR
49862013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
4987
4988 PR c++/58072
4989 * c-common.c (c_parse_error): Catch user-defined literal tokens and
4990 provide useful error strings.
4991
137a1a27
GDR
49922013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
4993
4994 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
4995 printer functions instead of pp_string or operators and punctuators.
4996 (dump_generic_ada_node): Likewise.
4997 * c-pretty-print.c (pp_c_type_specifier): Likewise.
4998 (pp_c_relational_expression): Likewise.
4999 (pp_c_logical_or_expression): Likewise.
5000
07838b13
GDR
50012013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
5002
5003 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
5004 functions instead of pp_character.
5005 (pp_ada_tree_identifier): Likewise.
5006 (dump_ada_double_name): Likewise.
5007 (dump_ada_function_declaration): Likewise.
5008 (dump_ada_array_domains): Likewise.
5009 (dump_template_types): Likewise.
5010 (dump_generic_ada_node): Likewise.
5011 (print_ada_declaration): Likewise.
5012 (print_ada_struct_decl): Likewise.
5013 * c-pretty-print.c (pp_c_integer_constant): Likewise.
5014
433cc7b0
TT
50152013-07-23 Tom Tromey <tromey@redhat.com>
5016
5017 * c-common.h (enum rid) <RID_GENERIC>: New constant.
5018 * c-common.c (c_common_reswords): Add _Generic.
5019
688010ba
OB
50202013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
5021
5022 * c-common.c: Fix typos.
5023 * c-common.h: Likewise.
5024
2a99e5e6
LL
50252013-07-13 Lubos Lunak <l.lunak@suse.cz>
5026
5027 PR c++/55203
5028 * c-common.c (c_common_attribute_table): Add warn_unused.
5029 (handle_warn_unused_attribute): New.
5030
c26302d5
JJ
50312013-07-10 Jakub Jelinek <jakub@redhat.com>
5032
5033 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
5034 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
5035
dfeadaa0
PC
50362013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
5037
5038 PR c++/57869
5039 * c.opt: Add Wconditionally-supported.
5040
6a2fa4b2
GS
50412013-07-08 Graham Stott <graham.stott@btinternet.com>
5042
adfac8df 5043 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
5044 unused variables l_length and l_node.
5045
ecdbd01a 50462013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
5047
5048 PR c/57821
5049 * c-common.c (complete_array_type): Delay folding first index
5050 like other indices. When folding, check for index overflow.
5051
bedc293e
MG
50522013-06-27 Marc Glisse <marc.glisse@inria.fr>
5053
5054 PR c++/57509
5055 * c-common.h (c_build_vec_perm_expr): New complain argument.
5056 * c-common.c (c_build_vec_perm_expr): Likewise.
5057 Use save_expr also in C++.
5058
604b2bfc
GDR
50592013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
5060
5061 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
5062 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
5063 * c-opts.c (c_common_post_options): Likewise.
5064
dfeadaa0 50652013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
5066
5067 * array-notation-common.c (length_mismatch_in_expr): Changed the
5068 parameter type's from a dynamic array to a vec_tree. Also removed
5069 the size parameters.
5070 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
5071 the change above.
5072
2ce86d2e
BI
50732013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
5074
5075 * c-common.h (struct cilkplus_an_parts): New structure.
5076 (struct cilkplus_an_loop_parts): Likewise.
5077 (cilkplus_extract_an_triplets): New prototype.
5078 (fix_sec_implicit_args): Likewise.
5079 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
5080 (fix_sec_implicit_args): Likewise.
604b2bfc 5081
07a6825b
BI
50822013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
5083
5084 * array-notation-common.c (find_inv_trees): Removed an unwanted
5085 typecasting.
5086 * c-common.h (struct inv_list::additional_tcodes): Changed type from
5087 enum rid to enum tree_code.
5088
08346abd
JH
50892013-06-11 Jan Hubicka <jh@suse.cz>
5090
5091 * c-common.c (handle_alias_ifunc_attribute): Do not set
5092 DECL_EXTERNAL for weakref variables.
5093 * c-pragma.c (handle_pragma_weak): Make sure aliases
5094 are not declared as external.
5095
d60f1706
BI
50962013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
5097
5098 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
5099 function from c/c-array-notation.c.
5100 (is_cilkplus_reduce_builtin): Likewise.
5101 (find_rank): Likewise.
5102 (extract_array_notation_exprs): Likewise.
5103 (replace_array_notations): Likewise.
5104 (find_inv_trees): Likewise.
5105 (replace_inv_trees): Likewise.
5106 (contains_array_notation_expr): Likewise.
5107 (find_correct_array_notation_type): Likewise.
5108 * c-common.h (struct inv_list): Moved this struct from the file
5109 c/c-array-notation.c and added a new field called additional tcodes.
5110 (length_mismatch_in_expr_p): New prototype.
5111 (is_cilkplus_reduce_builtin): Likewise.
5112 (find_rank): Likewise.
5113 (extract_array_notation_exprs): Likewise.
5114 (replace_array_notation): Likewise.
5115 (find_inv_trees): Likewise.
5116 (replace_inv_trees): Likewise.
5117 (find_correct_array_notation_type): Likewise.
dfeadaa0 5118
36536d79
BI
51192013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
5120
5121 * c-common.c (c_define_builtins): When cilkplus is enabled, the
5122 function array_notation_init_builtins is called.
5123 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
5124 * c-common.def (ARRAY_NOTATION_REF): New tree.
5125 * c-common.h (build_array_notation_expr): New function declaration.
5126 (build_array_notation_ref): Likewise.
5127 (extract_sec_implicit_index_arg): New extern declaration.
5128 (is_sec_implicit_index_fn): Likewise.
5129 (ARRAY_NOTATION_CHECK): New define.
5130 (ARRAY_NOTATION_ARRAY): Likewise.
5131 (ARRAY_NOTATION_START): Likewise.
5132 (ARRAY_NOTATION_LENGTH): Likewise.
5133 (ARRAY_NOTATION_STRIDE): Likewise.
5134 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
5135 ARRAY_NOTATION_REF.
5136 (pp_c_expression): Likewise.
5137 * c.opt (flag_enable_cilkplus): New flag.
5138 * array-notation-common.c: New file.
5139
f7716d57
JJ
51402013-05-14 Jakub Jelinek <jakub@redhat.com>
5141
5142 PR c++/57274
5143 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
5144
a5e0cd1d
MG
51452013-05-10 Marc Glisse <marc.glisse@inria.fr>
5146
5147 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
5148 vectors.
5149
f6bc1c4a
HS
51502013-05-07 Han Shen <shenhan@google.com>
5151
5152 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
5153
3f12f6e9
SKS
51542013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5155
5156 * c-common.c (check_user_alignment): Emit error for negative values.
5157
61949153
PC
51582013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
5159
5160 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
5161
e93e18e9
PC
51622013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
5163
5164 * c-cppbuiltin.c (c_cpp_builtins): Do not define
5165 __GXX_EXPERIMENTAL_CXX1Y__.
5166
44d90fe1 51672013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
8e745a17 5168 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
44d90fe1
PC
5169
5170 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
5171 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
5172 to simply use OPT_Wpointer_arith.
5173 (c_sizeof_or_alignof_type): Likewise.
5174
13f39b2e
PC
51752013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
5176
5177 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
5178
4b84d650
JJ
51792013-04-12 Jakub Jelinek <jakub@redhat.com>
5180
5181 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
5182 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
5183 specifiers.
5184
fb037b5d
SB
51852013-04-07 Steven Bosscher <steven@gcc.gnu.org>
5186
5187 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
5188
4e856798
PC
51892013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
5190
5191 * c-common.c (pointer_int_sum): Remove dead code.
5192
4b1baac8
RS
51932013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
5194
5195 PR middle-end/56524
5196 * c-common.c (handle_optimize_attribute): Don't call
5197 save_optabs_if_changed.
5198
0b50e654
JJ
51992013-03-05 Jakub Jelinek <jakub@redhat.com>
5200
5201 PR middle-end/56461
5202 * c-pch.c (pch_init): Free target_validity at the end.
5203
48c41403
JJ
52042013-03-04 Jakub Jelinek <jakub@redhat.com>
5205
5206 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
5207
e664c61c
KS
52082013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
5209 Jakub Jelinek <jakub@redhat.com>
5210
5211 PR sanitizer/56454
5212 * c-common.c (handle_no_sanitize_address_attribute): New function.
5213 (c_common_attribute_table): Add no_sanitize_address attribute.
5214 (handle_no_address_safety_analysis_attribute): Add
5215 no_sanitize_address attribute, not no_address_safety_analysis
5216 attribute.
5217
a475fd3d 52182013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
5219
5220 PR target/52555
5221 * c-common.c (handle_optimize_attribute): Call
5222 save_optabs_if_changed.
5223
f6007d99
JJ
52242013-02-18 Jakub Jelinek <jakub@redhat.com>
5225 Steven Bosscher <steven@gcc.gnu.org>
5226
5227 PR pch/54117
5228 * c-opts.c (c_common_post_options): If debug info is enabled
5229 and non-dwarf*, refuse to load PCH files and when writing PCH
5230 file warn.
5231
cf35e2b1
JJ
52322013-02-05 Jakub Jelinek <jakub@redhat.com>
5233
5234 PR middle-end/56167
5235 * c-common.c (handle_error_attribute): Fix condition.
5236
32887460
JJ
52372013-01-30 Jakub Jelinek <jakub@redhat.com>
5238
5239 PR c++/55742
5240 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
5241
5af057d8
JM
52422013-01-18 Jason Merrill <jason@redhat.com>
5243
5244 PR target/54908
5245 * c.opt (-fextern-tls-init): New.
5246 * c-opts.c (c_common_post_options): Handle it.
5247
cc83c823
JJ
52482013-01-09 Jakub Jelinek <jakub@redhat.com>
5249
5250 PR c/48418
5251 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
5252 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
5253 and is either negative or bigger or equal to type precision
5254 of the first operand.
5255
a859517f
MP
52562012-12-03 Marek Polacek <polacek@redhat.com>
5257
5258 PR c/55570
5259 * c-common.c (check_user_alignment): Swap order of tests,
5260 check TREE_CODE first.
5261
2d7aa578
ESR
52622012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
5263
5264 PR c++/52654
5265 * c-common.h (overflow_type): New enum.
5266 (build_userdef_literal): Add overflow_type argument.
5267 (tree_userdef_literal): Add overflow_type.
5268 (USERDEF_LITERAL_OVERFLOW): New access macro.
5269 * c-common.c (build_userdef_literal): Add overflow_type
5270 argument.
5271 * c-lex.c (c_lex_with_flags): Add overflow_type to
5272 build_userdef_literal calls.
5273 (interpret_integer, interpret_float): Add overflow_type argument.
5274
cc3c4f62
RB
52752012-11-28 Richard Biener <rguenther@suse.de>
5276
5277 PR c/35634
5278 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
5279 here and use a type with proper overflow behavior for types that would
5280 need to be promoted for the arithmetic.
5281
77bc5132
JJ
52822012-11-23 Jakub Jelinek <jakub@redhat.com>
5283
5284 PR sanitizer/55435
5285 * c-common.c (handle_no_address_safety_analysis_attribute): New
5286 function.
5287 (c_common_attribute_table): Add no_address_safety_analysis.
5288
5dc99c46
SB
52892012-11-16 Simon Baldwin <simonb@google.com>
5290
5291 * c.opt: Add f[no-]canonical-system-headers.
5292 * c-opts.c (c_common_handle_option): Handle
5293 OPT_fcanonical_system_headers.
5294
a4a0016d
ESR
52952012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
5296
5297 PR c++/54413
5298 * c-opts.c (c_common_handle_option): Set new flags.
5299 * c.opt: Describe new flags.
5300
7dbb85a7
JM
53012012-11-09 Jason Merrill <jason@redhat.com>
5302
5303 * c.opt (Wabi-tag): New.
5304
ad7bac31
AK
53052012-11-09 Andi Kleen <ak@linux.intel.com>
5306
5307 PR 55139
5308 * c-common.c (get_atomic_generic_size): Mask with
8e745a17 5309 MEMMODEL_MASK
ad7bac31 5310
7332899a
MLI
53112012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
5312
5313 PR c/53063
5314 * c.opt (Wformat): Make it Alias Wformat=1.
5315 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
5316 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
5317 LangEnabledBy.
5318 (Wformat=): RejectNegative. Use LangEnabledBy.
5319 (Wnonnull): Use LangEnabledBy.
5320 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
5321 * c-format.c (set_Wformat): Delete.
5322 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
8e745a17
JJ
5323 (maybe_read_dollar_number): Likewise.
5324 (avoid_dollar_number): Likewise.
5325 (finish_dollar_format_checking): Likewise.
5326 (check_format_info): Likewise.
5327 (check_format_info_main): Likewise.
5328 (check_format_types): Likewise.
5329 (format_type_warning): Likewise.
5330 * c-common.c (int): Likewise.
5331 (check_function_sentinel): Likewise.
5332 * c-common.h (warn_format,set_Wformat): Do not declare here.
7332899a 5333
34a180a6
MLI
53342012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
5335
5336 PR c/53063
5337 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
5338 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
5339 Use LangEnabledBy.
5340 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
5341 common.opt.
5342 (Wvariadic-macros): Init(1).
5343 * c-opts.c (c_common_handle_option): Do not handle them
5344 explicitly.
5345 (c_common_post_options): Likewise.
5346 (sanitize_cpp_opts): warn_unused_macros is now
5347 cpp_warn_unused_macros.
5348 (push_command_line_include): Likewise.
5349 * c-common.c (warn_unknown_pragmas): Do not define.
5350 * c-common.h (warn_unknown_pragmas): Do not declare.
5351
3f46d6a5
MLI
53522012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
5353
5354 PR c/51294
5355 * c-common.c (conversion_warning): Handle conditional expressions.
5356
880661a4
JW
53572012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
5358
5359 PR c++/54930
5360 * c.opt (Wreturn_local_addr): Define new option.
5361
4514a96b
JM
53622012-10-25 Jason Merrill <jason@redhat.com>
5363
f14edc1a
JM
5364 * c.opt (Wvirtual-move-assign): New.
5365
4514a96b
JM
5366 * c.opt (Winherited-variadic-ctor): New.
5367
93100c6b
MG
53682012-10-25 Marc Glisse <marc.glisse@inria.fr>
5369
5370 PR c++/54427
5371 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
5372
1efcb8c6
JM
53732012-10-23 Joseph Myers <joseph@codesourcery.com>
5374
5375 * c-common.h (pch_cpp_save_state): Declare.
5376 * c-target.def (c_preinclude): New hook.
5377 * c-opts.c (done_preinclude): New.
5378 (push_command_line_include): Handle default preincluded header.
5379 (cb_file_change): Call pch_cpp_save_state when calling
5380 push_command_line_include.
5381 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
5382 (pch_cpp_save_state): New.
5383 (pch_init): Call pch_cpp_save_state conditionally, instead of
5384 calling cpp_save_state.
5385
4a0ae68e
MLI
53862012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5387
5388 PR c/53063
5389 PR c/40989
5390 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
5391 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
5392 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
5393 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
5394 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
5395 * c-opts.c (c_common_handle_option): Remove explicit handling from
5396 here.
5397 (c_common_post_options): Likewise.
5398
67e4210b
EB
53992012-10-18 Eric Botcazou <ebotcazou@adacore.com>
5400
5401 * c-ada-spec.c (LOCATION_COL): Delete.
5402 (compare_location): New function.
5403 (compare_node): Use it.
5404 (compare_comment): Likewise.
5405
65d4f2cd
MLI
54062012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
5407
5408 PR c/53063
5409 PR c/40989
5410 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
5411 * c-opts.c (c_common_handle_option): Do not set them here. Add
5412 comment.
5413 (c_common_post_options): Likewise.
5414
909881cb
EB
54152012-10-16 Eric Botcazou <ebotcazou@adacore.com>
5416
5417 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
5418 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
5419 Remove POINTER_TYPE handling, add large unsigned handling and use
5420 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
5421
3a785c97
JJ
54222012-10-12 Jakub Jelinek <jakub@redhat.com>
5423
5424 PR c/54381
5425 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
5426 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
5427 locs and array of 3 trees instead of just single loc and single
5428 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
5429 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
5430 For *cmp* builtins that take two sources strings report warnings
5431 about first and second source, not about destination and source.
5432
5e54f81d
MG
54332012-10-12 Marc Glisse <marc.glisse@inria.fr>
5434
5435 PR c++/53055
5436 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
5437
f5b02f1e
EB
54382012-10-11 Eric Botcazou <ebotcazou@adacore.com>
5439
5440 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
5441 declaring something coming from another file.
5442
b46dbc6c
AC
54432012-10-10 Arnaud Charlet <charlet@adacore.com>
5444
f5b02f1e 5445 PR ada/54845
b46dbc6c
AC
5446 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
5447
5d9de0d0
PC
54482012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
5449
5450 PR c++/54194
5451 * c-common.c (warn_about_parentheses): Add location_t parameter;
5452 use EXPR_LOC_OR_LOC.
5453 * c-common.h: Update declaration.
5454
a212e43f
MG
54552012-10-09 Marc Glisse <marc.glisse@inria.fr>
5456
5457 PR c++/54427
5458 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
5459 more operations. Make error messages optional.
5460 * c-common.h (enum stv_conv): Moved from c-typeck.c.
5461 (scalar_to_vector): Declare.
5462
b1db7f91
JM
54632012-10-08 Jason Merrill <jason@redhat.com>
5464
5465 * c-common.c (c_common_reswords): Add thread_local.
5466
e28d52cf
DS
54672012-10-08 Dodji Seketeli <dodji@redhat.com>
5468
5469 PR c++/53528 C++11 attribute support
5470 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
5471 new functions.
5472 * c-common.c (check_cxx_fundamental_alignment_constraints): New
5473 static function.
5474 (handle_aligned_attribute): In choose strictest alignment
5475 among many. Use new check_cxx_fundamental_alignment_constraints.
5476 (handle_transparent_union_attribute): In c++11 attribute syntax,
5477 don't look through typedefs.
5478
3b78de56
AC
54792012-10-04 Arnaud Charlet <charlet@adacore.com>
5480
5481 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
5482 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
5483 out of dumpfile.h.
5484
6040bb5f
DC
54852012-09-25 Dehao Chen <dehao@google.com>
5486
5487 PR middle-end/54645
3b78de56 5488 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
5489 map when read in the pch.
5490
3f8257db 54912012-09-18 Arnaud Charlet <charlet@adacore.com>
0b07a57e
AC
5492
5493 * c-ada-spec.c: Style fixes.
5494
3f8257db 54952012-09-18 Thomas Quinot <quinot@adacore.com>
da5182be
TQ
5496
5497 * c.opt (-fada-spec-parent): Define new command line switch.
5498 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
5499 is specified, generate binding spec as a child of the specified unit.
5500
0ccb505d
PC
55012012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
5502 Manuel López-Ibáñez <manu@gcc.gnu.org>
5503
5504 PR c++/53210
5505 * c.opt ([Winit-self]): Enabled by -Wall in C++.
5506
c583af79
AC
55072012-08-23 Arnaud Charlet <charlet@adacore.com>
5508
5509 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
5510 for pointers, and add missing Convention C pragma.
5511 (print_ada_struct_decl): Add missing aliased keyword.
5512 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
5513
1a4049e7
JJ
55142012-08-17 Jakub Jelinek <jakub@redhat.com>
5515
5516 * c-common.c (sizeof_pointer_memaccess_warning): New function.
5517 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
5518 * c-opts.c (c_common_handle_option): Enable it for -Wall.
5519 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
5520 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
5521
70b5e7dc
RG
55222012-08-10 Richard Guenther <rguenther@suse.de>
5523
5524 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
5525
f8923f7e
SB
55262012-08-07 Steven Bosscher <steven@gcc.gnu.org>
5527
5528 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
5529 instead of separate pp_newline and pp_flush.
5530 (print_c_tree): Likewise.
5531
e45abe1f
RH
55322012-07-26 Richard Henderson <rth@redhat.com>
5533
5534 * c-common.c (handle_hot_attribute): Allow labels.
5535 (handle_cold_attribute): Likewise.
5536
332f1d24
JJ
55372012-07-20 Jakub Jelinek <jakub@redhat.com>
5538
5539 PR c++/28656
5540 * c-common.c (check_function_nonnull): Handle multiple nonnull
5541 attributes properly.
5542
7ee2468b
SB
55432012-07-16 Steven Bosscher <steven@gcc.gnu.org>
5544
5545 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
5546 * c-ada-spec.c: Likewise.
5547 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
5548
ee7b28eb
SB
55492012-07-14 Steven Bosscher <steven@gcc.gnu.org>
5550
5551 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
5552 Remove code conditional on it.
5553
6bdf3519
SB
55542012-07-11 Steven Bosscher <steven@gcc.gnu.org>
5555
5556 * c-gimplify.c: Do not include basic-block.h.
5557 * c-common.c: Do not include linfuncs.h.
5558
532aafad
SB
55592012-07-08 Steven Bosscher <steven@gcc.gnu.org>
5560
5561 * c-common.h: Include tree.h.
5562
8d0d1915
JM
55632012-07-02 Jason Merrill <jason@redhat.com>
5564
5565 PR c++/53524
5566 * c-common.c (get_priority): Call default_conversion.
5567
fbc873ad
UB
55682012-07-01 Uros Bizjak <ubizjak@gmail.com>
5569
5570 * c-pch.c (c_common_write_pch): Remove unused variables.
5571
d4a10d0a
SB
55722012-06-29 Steven Bosscher <steven@gcc.gnu.org>
5573
5574 * cppspec.c: Moved from gcc/ to here.
5575
6f3a2e23
KT
55762012-06-27 Kai Tietz <ktietz@redhat.com>
5577
5578 PR preprocessor/37215
5579 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
5580
8ca92d04
SB
55812012-06-21 Steven Bosscher <steven@gcc.gnu.org>
5582
5583 * c-common.h (c_common_print_pch_checksum): Remove.
5584 * c-pch.c: Do not include output.h.
5585 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
5586 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
5587 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
5588 (struct c_pch_header): Remove.
5589 (get_ident): Update gpch version.
5590 (pch_init): Do not print executable_checksum to asm_out_file.
5591 Do not fail if there is no asm_out_file to read back from. Set
5592 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
5593 (c_common_write_pch): Verify that nothing was written to asm_out_file
5594 since pch_init was called. Do not write a c_pch_header, and do not
5595 copy from asm_out_file to the PCH.
5596 (c_common_read_pch): Do not read a c_pch_header, and do not restore
5597 the content of asm_out_file from the PCH.
5598 (c_common_print_pch_checksum): Remove.
5599 * c-opts.c (c_common_init): Print out executable_checksum directly.
5600
70f42967
SB
56012012-06-19 Steven Bosscher <steven@gcc.gnu.org>
5602
5603 * c-target.def (objc_declare_unresolved_class_reference,
5604 objc_declare_class_definition): Add new hooks.
5605
a8781821
SB
56062012-06-19 Steven Bosscher <steven@gcc.gnu.org>
5607
5608 * c-lex.c: Do not include output.h.
5609 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
5610 Remove uses of ASM_OUTPUT_IDENT.
5611
9e1a8dd1
RR
56122012-06-15 Marc Glisse <marc.glisse@inria.fr>
5613
5614 PR c++/51033
5615 * c-common.h (c_build_vec_perm_expr): Move decl here.
5616 * c-common.c (c_build_vec_perm_expr): Move definition
5617 here.
5618
6f07a821
SB
56192012-06-06 Steven Bosscher <steven@gcc.gnu.org>
5620
5621 * c.opt (fconserve-space): Turn into a no-op.
5622
9faeb493 56232012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
5624
5625 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
5626 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
5627 both the start and end of the function.
5628
a4b7d13c
SB
56292012-06-04 Steven Bosscher <steven@gcc.gnu.org>
5630
5631 * c-common.c: Do not include output.h.
5632 * c-pragma.c: Likewise.
5633
c265f413
SA
56342012-06-04 Steven Bosscher <steven@gcc.gnu.org>
5635
5636 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
5637 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
5638 (lang_decl_name): Handle namespace decls.
5639
be7a421e
SB
56402012-05-31 Steven Bosscher <steven@gcc.gnu.org>
5641
5642 * c-ada-spec.c: Do not include output.h.
5643 * c-semantics.c: Likewise.
5644
65de6659
JM
56452012-05-29 Joseph Myers <joseph@codesourcery.com>
5646
5647 * c-common.c: Fix typo.
5648
ca5f4331
MM
56492012-05-29 Michael Matz <matz@suse.de>
5650
5651 * c-common.h (c_expand_decl): Remove prototype.
5652
4f7f7aca
MLI
56532012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
5654
5655 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
5656 * c-opts.c (c_common_handle_option): Remove code handling
5657 warn_missing_braces.
5658
4a792f9b
PC
56592012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
5660
5661 PR c++/25137
5662 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
5663 -Wmissing_braces.
5664
650dc14a
DS
56652012-05-22 Dodji Seketeli <dodji@redhat.com>
5666
5667 PR c++/53322
5668 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
5669
9b095bf1
MLI
56702012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
5671
5672 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
5673 * c-opts.c (c_common_handle_option): Do not handle explicitly
5674 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
5675
0b2c4be5
DS
56762012-05-16 Dodji Seketeli <dodji@redhat.com>
5677
5678 PR preprocessor/7263
5679 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
5680 to cpp_classify_number. For diagnostics, use the precise location
5681 instead of the global input_location.
5682
a1bde5af
PC
56832012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
5684
d02924ef 5685 PR c++/11856
a1bde5af
PC
5686 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
5687
d1ede5f4
BS
56882012-05-14 Bernd Schmidt <bernds@codesourcery.com>
5689
a1bde5af 5690 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 5691
f2bc201f
MLI
56922012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
5693
5694 PR 53063
5695 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
5696 Wreorder): Use LangEnabledBy.
5697 * c-opts.c (c_common_handle_option): Do not enable them
5698 explicitly. Call lang-specific generated functions.
5699 (c_common_post_options): Do not set them here.
5700
95744782
MLI
57012012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
5702
5703 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
5704 Wmissing-field-initializers,Wmissing-parameter-type,
5705 Wold-style-declaration,Woverride-init): Use EnabledBy.
5706 * c-opts.c (c_common_post_options): Do not set here explicitly.
5707
7d5a5747
MLI
57082012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
5709
5710 PR 53063
5711 * c-opts.c (c_common_handle_option): Use handle_generated_option
5712 to enable sub-options.
5713
5a3c9cf2
PC
57142012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
5715
5716 PR c++/53158
5717 * c-common.c (warnings_for_convert_and_check): Use warning_at.
5718
3ac8781c
RG
57192012-05-10 Richard Guenther <rguenther@suse.de>
5720
5721 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
5722 adjust commentary about TYPE_IS_SIZETYPE types.
5723
1e537948
MLI
57242012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5725
5726 PR c++/53261
5727 * c-common.c (warn_logical_operator): Check that argument of
5728 integer_zerop is not NULL.
5729
f2c4a785
MLI
57302012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
5731
5732 PR c/43772
5733 * c-common.c (warn_logical_operator): Do not warn if either side
5734 is already true or false.
5735
50f305ca
MLI
57362012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
5737
5738 PR c/51712
5739 * c-common.c (expr_original_type): New.
5740 (shorten_compare): Do not warn for enumeration types.
5741
0c3641b0
MLI
57422012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
5743
5744 * c.opt (fpermissive): Add Var(flag_permissive).
5745
7edaa4d2
MG
57462012-04-30 Marc Glisse <marc.glisse@inria.fr>
5747
5748 PR c++/51033
5749 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
5750 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
5751
b9c8da34
DS
57522012-04-30 Dodji Seketeli <dodji@redhat.com>
5753
5754 Add -Wvarargs option
5755 * c.opt (Wvarargs): Define new option.
5756
e6c69da0
MLI
57572012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5758
5759 * c-common.c (check_function_arguments): Replace
5760 Wmissing-format-attribute with Wsuggest-attribute=format.
5761
90137d8f
MLI
57622012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5763
5764 * c.opt (Wsuggest-attribute=format): New. Alias of
5765 Wmissing-format-attribute.
5766 * c-format.c (decode_format_type): Replace
5767 Wmissing-format-attribute with Wsuggest-attribute=format.
5768 (check_function_format): Likewise.
5769
9faeb493 57702012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
5771
5772 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
5773 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
5774 * c.opt: Add Wliteral-suffix.
5775
c1771a20
MLI
57762012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
5777
5778 PR c/44774
5779 * c.opt (Wpedantic): New.
5780 (pedantic): Alias Wpedantic.
5781 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
5782 (c_common_post_options): Likewise.
5783 (sanitize_cpp_opts): Likewise.
5784 * c-lex.c (interpret_float): Likewise.
5785 * c-format.c (check_format_types): Likewise.
5786 * c-common.c (pointer_int_sum): Likewise.
5787 (c_sizeof_or_alignof_type): Likewise.
5788 (c_add_case_label): Likewise.
5789 (c_do_switch_warnings): Likewise.
5790 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
5791
04b391c1
JM
57922012-04-15 Jason Merrill <jason@redhat.com>
5793
5794 PR c++/52818
5795 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
5796 (C_STD_NAME): Distinguish between C++98 and C++11.
5797
ac868f29
EB
57982012-04-11 Eric Botcazou <ebotcazou@adacore.com>
5799
5800 PR target/52624
5801 * c-common.h (uint16_type_node): Rename into...
5802 (c_uint16_type_node): ...this.
5803 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
5804 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
5805
fd4116f4
MLI
58062012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
5807
5808 * c-common.c (warn_if_unused_value): Move definition to here.
5809 * c-common.h (warn_if_unused_value): Move declaration to here.
5810
573ac65e
WB
58112012-03-23 William Bader <williambader@hotmail.com>
5812
5813 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
5814
552b8185
JM
58152012-03-20 Jason Merrill <jason@redhat.com>
5816
5817 * c-common.h (enum cxx_dialect): Add cxx1y.
5818 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
5819 test.
5820 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
5821 * c-opts.c (c_common_post_options): Likewise.
5822 (set_std_cxx1y): New.
5823 (c_common_handle_option): Call it.
5824 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
5825
04398fa8
PC
58262012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
5827
5828 PR c++/14710
5829 * c.opt ([Wuseless-cast]): Add.
5830
d2a12ae7
RG
58312012-03-16 Richard Guenther <rguenther@suse.de>
5832
5833 * c-pretty-print.c (pp_c_initializer_list): Adjust.
5834
a12bf402
MLI
58352012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5836
5837 PR c++/44783
5838 * c.opt (ftemplate-backtrace-limit) Add.
5839
5c30094f
RO
58402012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5841
5842 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
5843 handling.
5844 * c-pragma.c (handle_pragma_extern_prefix): Remove.
5845 (init_pragma): Don't register extern_prefix.
5846
21fa2faf
RG
58472012-03-12 Richard Guenther <rguenther@suse.de>
5848
5849 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
5850 (builtin_type_for_size): Likewise.
5851
e3793c6f
JJ
58522012-02-13 Jakub Jelinek <jakub@redhat.com>
5853
5854 PR c++/52215
5855 * c-common.c (sync_resolve_params): Don't decide whether to convert
5856 or not based on TYPE_SIZE comparison, convert whenever arg_type
5857 is unsigned INTEGER_TYPE.
5858
93286335
PC
58592012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
5860
5861 PR c/52118
5862 * c.opt ([Wunused-local-typedefs]): Fix description.
5863
7a421706
MS
58642012-01-24 Mike Stump <mikestump@comcast.net>
5865
5866 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
5867 exactly.
5868
ba9b1f11
RG
58692012-01-18 Richard Guenther <rguenther@suse.de>
5870
5871 * c-opts.c (c_common_post_options): Reset LTO flags if
5872 we are about to generate a PCH.
5873
465406be
PC
58742012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
5875
5876 PR c++/51777
5877 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
5878 use pp_unsigned_wide_integer.
5879
aee15221
RG
58802012-01-10 Richard Guenther <rguenther@suse.de>
5881
5882 PR middle-end/51806
5883 * c-opts.c (c_common_handle_option): Move -Werror handling
5884 to language independent code.
5885
5720c0dc
RG
58862012-01-05 Richard Guenther <rguenther@suse.de>
5887
5888 PR middle-end/51764
5889 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
5890 from common.opt.
5891
73ac190a
PC
58922011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
5893
5894 PR c++/51316
5895 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
5896 of array types with an unknown bound.
5897
48b0b196
JM
58982011-12-20 Joseph Myers <joseph@codesourcery.com>
5899
5900 * c-common.c (flag_isoc99): Update comment to refer to C11.
5901 (flag_isoc1x): Change to flag_isoc11.
5902 * c-common.h (flag_isoc99): Update comment to refer to C11.
5903 (flag_isoc1x): Change to flag_isoc11.
5904 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
5905 C11.
5906 * c-opts.c (set_std_c1x): Change to set_std_c11.
5907 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
5908 Call set_std_c11.
5909 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
5910 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
5911 * c.opt (std=c1x): Change to std=c11. Document as non-draft
5912 standard.
5913 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
5914 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
5915 (std=gnu1x): Make alias of std=gnu11.
5916
d58d6eb5
JM
59172011-12-19 Jason Merrill <jason@redhat.com>
5918
5919 PR c++/51228
5920 * c-common.c (handle_transparent_union_attribute): Check the first
5921 field if the type is complete.
5922
b3908fcc
JW
59232011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
5924
5925 PR libstdc++/51365
5926 * c-common.c (RID_IS_FINAL): Add.
5927 * c-common.h (RID_IS_FINAL): Add.
5928
fea3ca91
IS
59292011-11-30 Iain Sandoe <iains@gcc.gnu.org>
5930
5931 * c.opt (fgnu-runtime): Provide full description.
5932 (fnext-runtime): Likewise.
5933 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
5934
62bad7cd
AM
59352011-11-28 Andrew MacLeod <amacleod@redhat.com>
5936
5937 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
5938 predefines in one place. Add LOCK_FREE predefines.
5939 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
5940 new func.
5941
c466c4ff
AM
59422011-11-24 Andrew MacLeod <amacleod@redhat.com>
5943
5944 PR c/51256
9faeb493 5945 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 5946 conditions
9faeb493
UB
5947 (resolve_overloaded_atomic_exchange,
5948 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
5949 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
5950 error_mark_node for error conditions.
9faeb493 5951
a5952633
RG
59522011-11-08 Richard Guenther <rguenther@suse.de>
5953
5954 PR middle-end/51010
5955 c-family/
5956
0a35513e
AH
59572011-11-07 Richard Henderson <rth@redhat.com>
5958 Aldy Hernandez <aldyh@redhat.com>
5959 Torvald Riegel <triegel@redhat.com>
5960
5961 Merged from transactional-memory.
5962
5963 * c-common.c (handle_tm_wrap_attribute,
5964 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
5965 (struct c_common_reswords): Added __transaction* keywords.
5966 (struct c_common_attribute_table): Added transaction* and tm_regparm
5967 attributes.
5968 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
5969 masks.
5970 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
5971 find_tm_attribute): Declare.
5972
6d87092d
JM
59732011-11-07 Jason Merrill <jason@redhat.com>
5974
5975 PR c++/35688
5976 * c-common.c, c-common.h: Revert yesterday's changes.
5977
8e7860a1
JM
59782011-11-06 Jason Merrill <jason@redhat.com>
5979
5980 PR c++/35688
5981 * c-common.c (decl_has_visibility_attr): Split out from...
5982 (c_determine_visibility): ...here.
5983 * c-common.h: Declare it.
5984
d19fa6b5
JM
59852011-11-06 Joseph Myers <joseph@codesourcery.com>
5986
5987 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
5988 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
5989 type.
5990 (check_user_alignment): New. Split out of
5991 handle_aligned_attribute. Disallow integer constants with
5992 noninteger types. Conditionally allow zero.
5993 (handle_aligned_attribute): Use check_user_alignment.
5994 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
5995
86951993
AM
59962011-11-06 Andrew MacLeod <amacleod@redhat.com>
5997 Richard Henderson <rth@redhat.com>
5998
5999 Merged from cxx-mem-model.
6000
6001 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 6002 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
6003 parameters that are the same type size.
6004 (get_atomic_generic_size): New. Find size of generic
6005 atomic function parameters and do typechecking.
6006 (add_atomic_size_parameter): New. Insert size into parameter list.
6007 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
6008 either __atomic_exchange_n or external library call.
9faeb493 6009 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 6010 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 6011 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
6012 __atomic_load_n or an external library call.
6013 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
6014 __atomic_store_n or an external library call.
6015 (resolve_overloaded_builtin): Handle new __atomic builtins.
6016
cf9e9959
EB
60172011-11-04 Eric Botcazou <ebotcazou@adacore.com>
6018
6019 PR c++/50608
6020 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
6021 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
6022 <INDIRECT_REF>: Return the argument.
6023 <ARRAY_REF>: Remove special code for negative offset.
6024 Call fold_build_pointer_plus instead of size_binop.
6025 (fold_offsetof): Remove STOP_REF argument and adjust.
6026 * c-common.h (fold_offsetof_1): Declare.
6027 (fold_offsetof): Remove STOP_REF argument.
6028
25339f10
JM
60292011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
6030
6031 PR c++/50810
6032 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
6033 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
6034 Wnarrowing for C++0x and C++98.
6035 * c.opt ([Wnarrowing]): Update.
6036
89401152
PC
60372011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
6038
6039 PR c++/44277
6040 * c.opt: Add Wzero-as-null-pointer-constant.
6041
97e3ad20
JM
60422011-10-31 Jason Merrill <jason@redhat.com>
6043
15694fdd
JM
6044 * c.opt (-fdeduce-init-list): Off by default.
6045
97e3ad20
JM
6046 PR c++/50920
6047 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
6048 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
6049 and -Wc++11-compat.
6050 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
6051
fb9120e3
RAV
60522011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
6053
6054 PR c++/30066
6055 * c.opt (fvisibility-inlines-hidden): Description change.
6056
3ce4f9e4
ESR
60572011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
6058
6059 Implement C++11 user-defined literals.
6060 * c-common.c (build_userdef_literal): New.
6061 * c-common.def: New tree code.
6062 * c-common.h (tree_userdef_literal): New tree struct and accessors.
6063 * c-lex.c (interpret_float): Add suffix parm.
6064 (c_lex_with_flags): Build literal tokens.
6065
5f53c243
PC
60662011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
6067
6068 PR c++/50841
6069 Revert:
6070 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
6071
6072 PR c++/50810
6073 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
6074 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
6075 Wnarrowing for C++0x and C++98.
6076 * c.opt ([Wnarrowing]): Update.
6077
263734e1
PC
60782011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
6079
6080 PR c++/50810
6081 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
6082 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
6083 Wnarrowing for C++0x and C++98.
6084 * c.opt ([Wnarrowing]): Update.
6085
d2e312d7
PC
60862011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
6087
6088 PR c++/45385
6089 * c-common.c (conversion_warning): Remove code looking for
6090 artificial operands.
6091
d17687f6
DS
60922011-10-18 Dodji Seketeli <dodji@redhat.com>
6093
6094 PR bootstrap/50760
6095 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 6096 !NO_IMPLICIT_EXTERN_C.
d17687f6 6097
fc8396e9
PC
60982011-10-17 Michael Spertus <mike_spertus@symantec.com>
6099
6100 * c-common.c (c_common_reswords): Add __bases,
6101 __direct_bases.
6102 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
6103
61042011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
6105
6106 PR c++/50757
6107 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
6108
847e697a
TT
61092011-10-15 Tom Tromey <tromey@redhat.com>
6110 Dodji Seketeli <dodji@redhat.com>
6111
6112 * c.opt (fdebug-cpp): New option.
6113 * c-opts.c (c_common_handle_option): Handle the option.
6114 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
6115 output stream in parameter. Factorized from ...
6116 (maybe_print_line): ... this. Dump location debug information when
6117 -fdebug-cpp is in effect.
6118 (print_line_1): New static function. Takes an output stream in
6119 parameter. Factorized from ...
6120 (print_line): ... here. Dump location information when -fdebug-cpp
6121 is in effect.
6122 (scan_translation_unit): Dump location information when
6123 -fdebug-cpp is in effect.
6124
92582b75
TT
61252011-10-15 Tom Tromey <tromey@redhat.com>
6126 Dodji Seketeli <dodji@redhat.com>
6127
6128 * c.opt (ftrack-macro-expansion): New option. Handle it with and
6129 without argument.
6130 * c-opts.c (c_common_handle_option)<case
6131 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
6132 cases. Handle -ftrack-macro-expansion with and without argument.
6133
46427374
TT
61342011-10-15 Tom Tromey <tromey@redhat.com>
6135 Dodji Seketeli <dodji@redhat.com>
6136
6137 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
6138 (print_line, cb_define, do_line_change): Adjust to avoid touching
6139 the internals of struct line_map. Use the public API instead.
6140 * c-pch.c (c_common_read_pch): Likewise.
6141 * c-lex.c (fe_file_change): Likewise.
6142
fc8396e9
PC
61432011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
6144
6145 PR c++/17212
6146 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
6147
61482011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
6149
6150 PR c++/33067
6151 * c-pretty-print.c (pp_c_floating_constant): Output
6152 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
6153
e79983f4
MM
61542011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
6155
6156 * c-common.c (def_builtin_1): Delete old interface with two
6157 parallel arrays to hold standard builtin declarations, and replace
6158 it with a function based interface that can support creating
6159 builtins on the fly in the future. Change all uses, and poison
6160 the old names. Make sure 0 is not a legitimate builtin index.
6161 * c-omp.c (c_finish_omp_barrier): Ditto.
6162 (c_finish_omp_taskwait): Ditto.
6163 (c_finish_omp_flush): Ditto.
6164
6637388f
TG
61652011-10-11 Tristan Gingold <gingold@adacore.com>
6166
6167 * c.opt: (fallow-parameterless-variadic-functions): New.
6168
3797cb21
DS
61692011-09-08 Dodji Seketeli <dodji@redhat.com>
6170
6171 PR c++/33255 - Support -Wunused-local-typedefs warning
6172 * c-common.h (struct c_language_function::local_typedefs): New
6173 field.
9faeb493
UB
6174 (record_locally_defined_typedef, maybe_record_typedef_use)
6175 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 6176 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
6177 (maybe_record_typedef_use)
6178 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
6179 * c.opt: Declare new -Wunused-local-typedefs flag.
6180
693ddb1b
EB
61812011-09-06 Eric Botcazou <ebotcazou@adacore.com>
6182
6183 PR middle-end/50266
6184 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
6185 computations.
6186
830c740f
RG
61872011-09-05 Richard Guenther <rguenther@suse.de>
6188
6189 * c-common.c (complete_array_type): Use ssize_int (-1) instead
6190 of integer_minus_one_node for empty array upper bounds.
6191
892a371f
DS
61922011-08-28 Dodji Seketeli <dodji@redhat.com>
6193
6194 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
6195 it's the first time it's being called on this main TU.
6196
0e3fdb48
RB
61972011-08-24 Richard Guenther <rguenther@suse.de>
6198
6199 PR c/49396
6200 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
6201
62022011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
6203
6204 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
6205 defined in cpp_init_builtins and c_cpp_builtins.
6206
d4a83c10
JM
62072011-08-19 Joseph Myers <joseph@codesourcery.com>
6208
6209 * c-common.c (c_common_reswords): Add __builtin_complex.
6210 * c-common.h (RID_BUILTIN_COMPLEX): New.
6211
bbceee64
JM
62122011-08-18 Joseph Myers <joseph@codesourcery.com>
6213
6214 * c-common.c (c_common_reswords): Add _Noreturn.
6215 (keyword_is_function_specifier): Handle RID_NORETURN.
6216 * c-common.h (RID_NORETURN): New.
6217
3f8257db 62182011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
0e3a99ae
AS
6219
6220 * c-common.c (unsafe_conversion_p): New function. Check if it is
6221 unsafe to convert an expression to the type.
6222 (conversion_warning): Adjust, use unsafe_conversion_p.
6223 * c-common.h (unsafe_conversion_p): New function declaration.
6224
20906c66
JJ
62252011-08-02 Jakub Jelinek <jakub@redhat.com>
6226
6227 * c-common.h (c_finish_omp_atomic): Adjust prototype.
6228 (c_finish_omp_taskyield): New prototype.
6229 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
6230 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
6231 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
6232 or RHS1 have side-effects, evaluate those too in the right spot,
6233 if it is a decl and LHS is also a decl, error out if they
6234 aren't the same.
6235 (c_finish_omp_taskyield): New function.
6236 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
6237 * c-pragma.c (omp_pragmas): Add taskyield.
6238 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
6239 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
6240 PRAGMA_OMP_CLAUSE_MERGEABLE.
6241
770e5a2e
DS
62422011-07-25 Dodji Seketeli <dodji@redhat.com>
6243
6244 * c-common.h (set_underlying_type): Remove parm name from
6245 declaration.
6246
1baae426
RG
62472011-07-25 Romain Geissler <romain.geissler@gmail.com>
6248
6249 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 6250
fcb21722
JM
62512011-07-22 Jason Merrill <jason@redhat.com>
6252
76f86d00
JM
6253 PR c++/49793
6254 * c.opt (Wnarrowing): New.
6255
3a636414
JM
6256 PR c++/30112
6257 * c-common.h: Declare c_linkage_bindings.
6258 * c-pragma.c (handle_pragma_redefine_extname): Use it.
6259
fcb21722
JM
6260 PR c++/49813
6261 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
6262 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
6263 as flag_isoc99 for 'restrict'.
6264 (pp_c_specifier_qualifier_list): Likewise for _Complex.
6265
02614448
ILT
62662011-07-21 Ian Lance Taylor <iant@google.com>
6267
6268 PR middle-end/49705
6269 * c-common.c (c_disable_warnings): New static function.
6270 (c_enable_warnings): New static function.
6271 (c_fully_fold_internal): Change local unused_p to bool. Call
6272 c_disable_warnings and c_enable_warnings rather than change
6273 c_inhibit_evaluation_warnings.
6274
34429675
JM
62752011-07-20 Jason Merrill <jason@redhat.com>
6276
6277 PR c++/6709 (DR 743)
6278 PR c++/42603 (DR 950)
6279 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
6280 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
6281 (CPP_DECLTYPE): New.
6282 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
6283
5d49b6a7
RG
62842011-07-19 Richard Guenther <rguenther@suse.de>
6285
6286 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
6287 * c-omp.c (c_finish_omp_for): Likewise.
6288
e84a58ff
EB
62892011-07-12 Eric Botcazou <ebotcazou@adacore.com>
6290
6291 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
6292 body on the next line.
6293
329af3c7
JM
62942011-07-08 Jason Merrill <jason@redhat.com>
6295
4063e61b
JM
6296 PR c++/45437
6297 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
6298
329af3c7
JM
6299 PR c++/49673
6300 * c-common.c (c_apply_type_quals_to_decl): Don't check
6301 TYPE_NEEDS_CONSTRUCTING.
6302
1a072294
RG
63032011-07-06 Richard Guenther <rguenther@suse.de>
6304
6305 * c-common.c (c_common_nodes_and_builtins):
6306 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
6307
fce5dddd
RG
63082011-07-05 Richard Guenther <rguenther@suse.de>
6309
6310 * c-common.c (c_common_nodes_and_builtins): Build all common
6311 tree nodes first.
6312
45d439ac
JJ
63132011-06-27 Jakub Jelinek <jakub@redhat.com>
6314
56300785
JJ
6315 * c-common.h (c_tree_chain_next): New static inline function.
6316
45d439ac
JJ
6317 * c-common.c (check_builtin_function_arguments): Handle
6318 BUILT_IN_ASSUME_ALIGNED.
6319
e0a8ecf2
AM
63202011-06-21 Andrew MacLeod <amacleod@redhat.com>
6321
6322 * c-common.c: Add sync_ or SYNC__ to builtin names.
6323 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
6324
63252011-06-20 Pierre Vittet <piervit@pvittet.com>
6326
6327 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
6328 handler.
6329 (gen_pragma_handler): New union.
6330 (internal_pragma_handler): New type.
6331 (c_register_pragma_with_data)
6332 (c_register_pragma_with_expansion_and_data): New functions.
6333
6334 * c-pragma.c (registered_pragmas, c_register_pragma_1)
6335 (c_register_pragma, c_register_pragma_with_expansion)
6336 (c_invoke_pragma_handler): Changed to work with
6337 internal_pragma_handler.
6338 (c_register_pragma_with_data)
6339 (c_register_pragma_with_expansion_and_data): New functions.
6340
677f3fa8
JM
63412011-06-14 Joseph Myers <joseph@codesourcery.com>
6342
6343 * c-common.c: Include common/common-target.h.
6344 (handle_section_attribute): Use
6345 targetm_common.have_named_sections.
6346 * c-cppbuiltin.c: Include common/common-target.h.
6347 (c_cpp_builtins): Use targetm_common.except_unwind_info.
6348
d7fc8c14
RG
63492011-06-10 Richard Guenther <rguenther@suse.de>
6350
6351 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
6352 to print a IDENTIFIER_NODE.
6353
10e48e39
RO
63542011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6355 Joseph Myers <joseph@codesourcery.com>
6356
6357 * c.opt (fbuilding-libgcc): New option.
6358 * c-cppbuiltin.c (c_cpp_builtins): Define
6359 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
6360
6976ae51
JM
63612011-06-07 Jason Merrill <jason@redhat.com>
6362
3ff60975
JM
6363 * c-common.c (max_tinst_depth): Lower default to 900.
6364
6976ae51
JM
6365 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
6366
009db074
RG
63672011-06-07 Richard Guenther <rguenther@suse.de>
6368
6369 * c-common.c (c_common_nodes_and_builtins): Do not set
6370 size_type_node or call set_sizetype.
6371
b4592b92
DS
63722011-06-07 Dodji Seketeli <dodji@redhat.com>
6373
6374 PR debug/49130
6375 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 6376 type when using pointer comparison to compare types.
b4592b92 6377
014ab419
JW
63782011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
6379
6380 * c.opt: Add -Wdelete-non-virtual-dtor.
6381 * c-opts.c (c_common_handle_option): Include it in -Wall.
6382
4f60111f
NF
63832011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
6384
6385 PR bootstrap/49190
6386
6387 Revert:
6388 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
6389
6390 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
6391 not tree_common.
6392
4cc4f2f4
JJ
63932011-05-27 Jakub Jelinek <jakub@redhat.com>
6394
6395 PR c++/49165
6396 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
6397 C++ don't call c_common_truthvalue_conversion on void type arms.
6398
38e01f9e
NF
63992011-05-27 Nathan Froyd <froydnj@codesourcery.com>
6400
6401 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
6402 (stmt_list_stack): Define.
6403 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
6404 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
6405
92e948a8
NF
64062011-05-26 Nathan Froyd <froydnj@codesourcery.com>
6407
6408 * c-common.c (warning_candidate_p): Check for BLOCKs.
6409
a2fc3e63
NF
64102011-05-26 Nathan Froyd <froydnj@codesourcery.com>
6411
6412 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
6413 not tree_common.
6414
0957c029
JJ
64152011-05-25 Jakub Jelinek <jakub@redhat.com>
6416
6417 * c-common.c (def_fn_type): Remove extra va_end.
6418
828fb3ba
JM
64192011-05-23 Jason Merrill <jason@redhat.com>
6420
6421 PR c++/48106
6422 * c-common.c (c_common_get_narrower): New.
6423 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
6424
dde05067
NF
64252011-05-23 Nathan Froyd <froydnj@codesourcery.com>
6426
6427 * c-common.h (check_function_arguments): Tweak prototype of
6428 check_function_arguments.
6429 * c-common.c (check_function_arguments): Likewise. Adjust
6430 calls to check_function_nonnull, check_function_format, and
6431 check_function_sentinel.
6432 (check_function_sentinel): Take a FUNCTION_TYPE rather than
6433 separate attributes and typelist arguments. Use
6434 FOREACH_FUNCTION_ARGS to iterate over argument types.
6435
3c0d13bf
PC
64362011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
6437
6438 * c-common.c (c_common_reswords): Reorder.
6439 * c-common.h (rid): Likewise.
6440
8242dd04
NF
64412011-05-10 Nathan Froyd <froydnj@codesourcery.com>
6442
6443 * c-common.c (def_fn_type): Don't call build_function_type, call
6444 build_function_type_array or build_varargs_function_type_array
6445 instead.
6446 (c_common_nodes_and_builtins): Likewise.
6447
3d528853
NF
64482011-05-05 Nathan Froyd <froydnj@codesourcery.com>
6449
6450 * c-common.c (c_add_case_label): Omit the loc argument to
6451 build_case_label.
6452 * c-common.h (build_case_label): Remove.
6453 * c-semantics.c (build_case_label): Remove.
6454
a04a722b
JM
64552011-05-05 Joseph Myers <joseph@codesourcery.com>
6456
6457 * c-objc.h (objc_start_method_definition): Update prototype.
6458 * stub-objc.c (objc_start_method_definition): Add extra parameter.
6459
e19a18d4
NF
64602011-05-04 Nathan Froyd <froydnj@codesourcery.com>
6461
6462 * c-common.c (check_main_parameter_types): Reindent. Don't use
6463 TYPE_ARG_TYPES directly.
6464 (handle_nonnull_attribute): Likewise.
6465 (sync_resolve_params): Likewise.
6466 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
6467 to check_format_string.
6468 (handle_format_attribute): Likewise.
6469 (check_format_string): Take a function type to examine instead of
6470 a type list. Use a function_arg_iterator to step through argument
6471 types.
6472
c62c040f
RG
64732011-05-04 Richard Guenther <rguenther@suse.de>
6474
6475 * c-common.c (fix_string_type): Use size_int for index type bounds.
6476 (start_fname_decls): Do not pass NULL to build_int_cst.
6477 (c_init_attributes): Likewise.
6478 * c-lex.c (c_lex_with_flags): Likewise.
6479
c12ff9d8
JM
64802011-04-27 Jason Merrill <jason@redhat.com>
6481
6482 * c-common.c (make_tree_vector_from_list): New.
6483 * c-common.h: Declare it.
6484
304dfbe3
RG
64852011-04-26 Richard Guenther <rguenther@suse.de>
6486
6487 PR preprocessor/48248
6488 * c-ppoutput.c (maybe_print_line): Always optimize newlines
6489 for output size with -P.
6490
3c0d13bf
PC
64912011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
6492
6493 * c-common.c (struct c_common_resword): Add __underlying_type.
6494 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
6495
04695783
JM
64962011-04-20 Jim Meyering <meyering@redhat.com>
6497
6498 * c-format.c (init_dollar_format_checking): Remove useless
6499 if-before-free.
6500
0dc33c3c
NP
65012011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
6502
6503 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 6504 (objc_detect_field_duplicates): New.
0dc33c3c 6505 * stub-objc.c: Likewise.
3c0d13bf 6506
c59633d9
NP
65072011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6508
6509 * stub-objc.c (objc_declare_protocols): Renamed to
6510 objc_declare_protocol.
6511 * c-objc.h: Likewise.
3c0d13bf 6512
32dabdaf
NP
65132011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6514
6515 * stub-objc.c (objc_declare_class): Updated argument name.
6516
81f653d6
NF
65172011-04-12 Nathan Froyd <froydnj@codesourcery.com>
6518
6519 * c-common.h (c_common_init_ts): Declare.
6520 * c-common.c (c_common_init_ts): Define.
6521
eb345401
NP
65222011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6523
6524 * c-objc.h (objc_build_message_expr): Updated prototype.
6525 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 6526
a358e188
MJ
65272011-04-12 Martin Jambor <mjambor@suse.cz>
6528
6529 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
6530 of cgraph_node.
6531
e6313a78
RG
65322011-04-11 Richard Guenther <rguenther@suse.de>
6533
6534 * c-common.c (complete_array_type): Build a range type of
6535 proper type.
6536
dcf0c47e
NF
65372011-04-08 Nathan Froyd <froydnj@codesourcery.com>
6538
6539 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
6540 (handle_type_generic_attribute): Likewise.
6541
1ee44b26
JM
65422011-04-07 Jason Merrill <jason@redhat.com>
6543
6544 PR c++/48450
6545 * c-common.c (c_common_truthvalue_conversion): Don't ignore
6546 conversion from C++0x scoped enum.
6547
acce4e77
JM
65482011-04-06 Joseph Myers <joseph@codesourcery.com>
6549
6550 * c-target-def.h: New file.
6551 * c-target.def: New file.
6552 * c-target.h: New file.
6553 * c-common.c (targetcm): Don't define here.
6554 * c-common.h (default_handle_c_option): Declare.
6555 * c-format.c: Include c-target.h instead of target.h.
6556 * c-opts.c: Include c-target.h instead of target.h. Explicitly
6557 include tm.h.
6558 (default_handle_c_option): Move from targhooks.c.
6559
e2eefb55
JJ
65602011-03-29 Jakub Jelinek <jakub@redhat.com>
6561
6562 PR preprocessor/48248
6563 * c-ppoutput.c (print): Add src_file field.
6564 (init_pp_output): Initialize it.
6565 (maybe_print_line): Don't optimize by adding up to 8 newlines
6566 if map->to_file and print.src_file are different file.
6567 (print_line): Update print.src_file.
6568
ba78087b
KT
65692011-03-25 Kai Tietz <ktietz@redhat.com>
6570
6571 * c-ada-spec.c (compare_comment): Use filename_cmp
6572 instead of strcmp for filename.
6573
0edf1bb2
JL
65742011-03-25 Jeff Law <law@redhat.com>
6575
adfac8df 6576 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 6577
c7dc8804
JM
65782011-03-25 Jason Merrill <jason@redhat.com>
6579
6580 * c.opt: Add -std=c++03.
6581
d1d879b1
EB
65822011-03-22 Eric Botcazou <ebotcazou@adacore.com>
6583
6584 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
6585
3f8257db 65862011-03-17 Kai Tietz <ktietz@redhat.com>
62d784f7
KT
6587
6588 PR target/12171
5050afdf
KT
6589 * c-pretty-print.c (pp_c_specifier_qualifier_list):
6590 Display allowed attributes for function pointer types.
6591 (pp_c_attributes_display): New function to display
6592 attributes having affects_type_identity flag set to true.
6593 * c-pretty-print.h (pp_c_attributes_display): New prototype.
6594
62d784f7
KT
6595 * c-common.c (c_common_attribute_table):
6596 Add new element.
6597 (c_common_format_attribute_table): Likewise.
6598
82d37118
JM
65992011-03-18 Jason Merrill <jason@redhat.com>
6600
49a000c3
JM
6601 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
6602 * c-common.h: Don't declare it here.
6603 * c-common.c: Or define it here.
6604 * c-opts.c (c_common_handle_option): Or set it here.
6605
82d37118
JM
6606 PR c++/35315
6607 * c-common.c (handle_transparent_union_attribute): Don't
6608 make a duplicate type in C++.
6609
17bc631c
JM
66102011-03-15 Jason Merrill <jason@redhat.com>
6611
6612 * c-common.c (max_constexpr_depth): New.
6613 * c-common.h: Declare it.
6614 * c-opts.c (c_common_handle_option): Set it.
6615 * c.opt (fconstexpr-depth): New option.
6616
1b9b91a6
JM
66172011-03-11 Jason Merrill <jason@redhat.com>
6618
f231b5ff
JM
6619 * c-common.c (attribute_takes_identifier_p): Add missing const.
6620
1b9b91a6
JM
6621 PR c++/46803
6622 * c-common.c (attribute_takes_identifier_p): Assume that an
6623 unknown attribute takes an identifier.
6624
a19e4d44
NF
66252011-03-07 Nathan Froyd <froydnj@codesourcery.com>
6626
6627 PR c/47786
6628 * c-common.c (c_type_hash): Call list_length instead of iterating
6629 through DECL_CHAIN. Rename 'i' to 'n_elements'.
6630
982d62f6
JJ
66312011-02-19 Jakub Jelinek <jakub@redhat.com>
6632
6633 PR c/47809
6634 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
6635
0a256240
NP
66362011-02-17 Iain Sandoe <iains@gcc.gnu.org>
6637
6638 * c.opt (fobjc-abi-version=) New.
6639 (fobjc-nilcheck): New.
6640
ba9e6dd5
NF
66412011-02-03 Nathan Froyd <froydnj@codesourcery.com>
6642
6643 PR c++/46890
6644 * c-common.h (keyword_is_decl_specifier): Declare.
6645 * c-common.c (keyword_is_decl_specifier): Define.
6646 (keyword_is_function_specifier): New function.
6647
7273813a
JJ
66482011-01-26 Jakub Jelinek <jakub@redhat.com>
6649
6650 PR c/47473
6651 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
6652 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
6653 REAL_TYPE.
6654
908ef79b
AC
66552011-01-26 Arnaud Charlet <charlet@adacore.com>
6656
6657 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
6658
237e9384
JJ
66592011-01-26 Jakub Jelinek <jakub@redhat.com>
6660
6661 PR pch/47430
6662 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
6663 after init_c_lex if pch_file is set.
6664
47ea1edf
DK
66652011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
6666
d4dba752 6667 PR c++/43601
47ea1edf
DK
6668 * c.opt (-fkeep-inline-dllexport): New switch.
6669
2aa9c6ae
RG
66702011-01-12 Richard Guenther <rguenther@suse.de>
6671
6672 PR middle-end/32511
6673 * c-common.c (handle_weak_attribute): Warn instead of error
6674 on declaring an inline function weak.
6675
7bd11157
TT
66762011-01-05 Tom Tromey <tromey@redhat.com>
6677
6678 * c-common.h (lvalue_error): Update.
6679 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
6680 not error.
6681
0e66e494 66822010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 6683
b4f588c4
NP
6684 PR objc/47075
6685 * c-objc.h (objc_finish_message_expr): Added argument to
6686 prototype.
6687
f4da8dce
NF
66882010-12-22 Nathan Froyd <froydnj@codesourcery.com>
6689
6690 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
6691 Use prototype_p.
6692
46270f14
NP
66932010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
6694
6695 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 6696 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 6697
4816c593
NF
66982010-12-10 Nathan Froyd <froydnj@codesourcery.com>
6699
6700 * c-common.h (readonly_error): Declare.
6701 * c-common.c (readonly_error): Define.
6702
7a6daeb0
NF
67032010-12-09 Nathan Froyd <froydnj@codesourcery.com>
6704
6705 * c-common.h (invalid_indirection_error): Declare.
6706 * c-common.c (invalid_indirection_error): Define.
6707
892f6119
RG
67082010-12-03 Richard Guenther <rguenther@suse.de>
6709
6710 PR c/46745
6711 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
6712 (pp_c_unary_expression): Likewise.
6713 (pp_c_expression): Likewise.
6714
6c39e757
NP
67152010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
6716
6717 * c-common.h (objc_finish_function): New.
6718 (objc_non_volatilized_type): Removed.
6719 (objc_type_quals_match): Removed.
6720 * stub-objc.c (objc_finish_function): New.
6721 (objc_non_volatilized_type): Removed.
6722 (objc_type_quals_match): Removed.
9faeb493 6723
7c475d11
JM
67242010-11-30 Joseph Myers <joseph@codesourcery.com>
6725
6726 * c-common.h (parse_optimize_options): Declare.
6727 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
6728 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
6729
71f3e391
JM
67302010-11-29 Joseph Myers <joseph@codesourcery.com>
6731
6732 * c-opts.c (check_deps_environment_vars): Use getenv instead of
6733 GET_ENVIRONMENT.
6734 * c-pch.c (O_BINARY): Don't define here.
6735 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
6736
d5fabb58
JM
67372010-11-25 Joseph Myers <joseph@codesourcery.com>
6738
6739 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
6740 targetm.except_unwind_info.
6741
299404a1
JM
67422010-11-23 Joseph Myers <joseph@codesourcery.com>
6743
6744 * c-opts.c (c_common_handle_option): Pass location to
6745 set_struct_debug_option.
6746
c98cd5bf
JM
67472010-11-23 Joseph Myers <joseph@codesourcery.com>
6748
6749 * c-common.c (visibility_options): Move from ../opts.c.
6750 * c-common.h (struct visibility_flags, visibility_options):
6751 Declare here.
6752 * c-opts.c (finish_options): Rename to c_finish_options.
6753 (c_common_init): Update call to finish_options.
6754
a9546771
NP
67552010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
6756
6757 PR objc/34033
6758 * c-lex.c (lex_string): Check that each string in an Objective-C
6759 string concat sequence starts with either one or zero '@', and
6760 that there are no spurious '@' signs at the end.
6761
24a57808
JM
67622010-11-20 Joseph Myers <joseph@codesourcery.com>
6763
6764 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
6765 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
6766 HANDLE_PRAGMA_VISIBILITY.
6767 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
6768 HANDLE_PRAGMA_VISIBILITY): Don't define.
6769 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
6770
a9aa2c3a
NF
67712010-11-20 Nathan Froyd <froydnj@codesourcery.com>
6772
6773 PR c++/16189
6774 PR c++/36888
6775 PR c++/45331
6776 * c-common.h (keyword_begins_type_specifier): Declare.
6777 (keyword_is_storage_class_specifier): Declare.
6778 (keyword_is_type_qualifier): Declare.
6779 * c-common.c (keyword_begins_type_specifier): New function.
6780 (keyword_is_storage_class_specifier): New function.
6781 (keyword_is_type_qualifier): Declare.
6782
5386338c
JM
67832010-11-19 Joseph Myers <joseph@codesourcery.com>
6784
6785 PR c/46547
6786 * c-common.c (in_late_binary_op): Define.
6787 (c_common_truthvalue_conversion): Check in_late_binary_op before
6788 calling c_save_expr.
6789 * c-common.h (in_late_binary_op): Declare.
6790
69ccdddb
JM
67912010-11-19 Joseph Myers <joseph@codesourcery.com>
6792
6793 * c-opts.c (c_common_handle_option): Update calls to
6794 set_struct_debug_option.
6795
6b192a09
NP
67962010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
6797
6798 * c-common.h (objc_declare_protocols): Added additional argument.
6799 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 6800
fb52b50a
NF
68012010-11-18 Nathan Froyd <froydnj@codesourcery.com>
6802
6803 PR c/33193
6804 * c-common.h (build_real_imag_expr): Declare.
6805 * c-semantics.c (build_real_imag_expr): Define.
6806
b37421c6
JM
68072010-11-17 Joseph Myers <joseph@codesourcery.com>
6808
6809 * c-opts.c (c_common_parse_file): Take no arguments.
6810 * c-common.h (c_common_parse_file): Update prototype.
6811
07078664
JJ
68122010-11-16 Jakub Jelinek <jakub@redhat.com>
6813
6814 PR c++/46401
6815 * c-common.c (warning_candidate_p): Don't track non-const calls
6816 or STRING_CSTs.
6817
c6a13190
ILT
68182010-11-15 Ian Lance Taylor <iant@google.com>
6819
6820 * c-lex.c (init_c_lex): Set macro debug callbacks if
6821 flag_dump_go_spec is set.
6822
925e8657
NP
68232010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
6824
6825 * c-common.h (objc_build_incr_expr_for_property_ref): New.
6826 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
6827
bb0a9581
NF
68282010-11-15 Nathan Froyd <froydnj@codesourcery.com>
6829
6830 PR preprocessor/45038
6831 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
6832 dialects.
6833
c5fa0890
JM
68342010-11-12 Joseph Myers <joseph@codesourcery.com>
6835
6836 * c-common.h (c_family_lang_mask): Declare.
6837 * c-opts.c (c_family_lang_mask): Make extern.
6838 * c-pragma.c (handle_pragma_diagnostic): Use
6839 control_warning_option.
6840
a4d8c676
JM
68412010-11-12 Joseph Myers <joseph@codesourcery.com>
6842
6843 * c-common.c (parse_optimize_options): Update call to
6844 decode_options.
6845 * c-common.h (c_common_handle_option): Update prototype.
6846 * c-opts.c (c_common_handle_option): Take location_t parameter and
6847 pass it to other functions.
6848
f954bd2c
JM
68492010-11-11 Joseph Myers <joseph@codesourcery.com>
6850
6851 * c-opts.c (warning_as_error_callback): Remove.
6852 (c_common_initialize_diagnostics): Don't call
6853 register_warning_as_error_callback.
6854 (c_common_handle_option): Handle -Werror=normalized= here.
6855
d8a07487
JM
68562010-11-10 Joseph Myers <joseph@codesourcery.com>
6857
6858 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
6859 in diagnostic.
6860 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
6861 letter.
6862 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
6863 Remove trailing '.' from diagnostics.
6864 * c.opt (Wwrite-strings_: Avoid '`' in help text.
6865
d5478783
JM
68662010-11-10 Joseph Myers <joseph@codesourcery.com>
6867
6868 * c-common.c (parse_optimize_options): Pass global_dc to
6869 decode_options.
6870 * c-opts.c (c_common_handle_option): Pass &global_options to
6871 set_Wstrict_aliasing.
6872 * c.opt (v): Don't mark Common or document here.
6873
91ebb981
IS
68742010-11-06 Iain Sandoe <iains@gcc.gnu.org>
6875
6876 PR target/44981
6877 * c-format.c (format_type): New type gcc_objc_string_format_type.
6878 (valid_stringptr_type_p): New.
6879 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 6880 (check_format_string): Pass expected type, use
91ebb981
IS
6881 valid_stringptr_type_p (), check that the format string types are
6882 consistent with the format specification.
6883 (decode_format_attr): Warn if NSString is used outside objective-c.
6884 (format_types_orig): Add NSString.
6885 (format_name): New.
6886 (format_flags): New.
6887 (check_format_arg): Handle format strings requiring an external parser.
6888 first_target_format_type: New variable.
6889 (handle_format_attribute): Set up first_target_format_type, pass the
6890 expected format arg string type to check_format_string().
6891 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
6892 * stub-objc.c (objc_string_ref_type_p): New.
6893 (objc_check_format_arg): New.
6894
bede2adc
NP
68952010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
6896
9faeb493 6897 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
6898 * c-common.h (objc_build_class_component_ref): New.
6899 * stub-objc.c (objc_build_class_component_ref): New.
6900
9a179d01
NP
69012010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
6902
6903 * c.opt (Wproperty-assign-default): New option.
6904
22d8d616
NP
69052010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
6906
6907 Implemented -fobjc-std=objc1 flag.
6908 * c.opt (fobjc-std=objc1): New option.
6909
2debdb4f
NP
69102010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
6911
6912 Implemented format and noreturn attributes for Objective-C methods.
6913 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
6914 attribute for Objective-C methods.
6915
ec52b111
JM
69162010-10-31 Jason Merrill <jason@redhat.com>
6917
6918 * c-common.c (conversion_warning, warn_for_collisions_1): Use
6919 EXPR_LOC_OR_HERE.
6920
46a88c12
NP
69212010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
6922
6923 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
6924 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
6925 (objc_add_property_declaration): Removed arguments for copies and
6926 ivar.
6927 (objc_build_getter_call): Renamed to
6928 objc_maybe_build_component_ref.
6929 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
6930 (objc_is_property_ref): New.
6931 * c-common.c (c_common_reswords): Removed copies and ivar.
6932 * stub-objc.c (objc_add_property_declaration): Removed arguments
6933 for copies and ivar.
6934 (objc_build_getter_call): Renamed to
6935 objc_maybe_build_component_ref.
6936 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
6937 (objc_is_property_ref): New.
9faeb493 6938
1e4bf85b
AC
69392010-10-29 Arnaud Charlet <charlet@adacore.com>
6940 Matthew Gingell <gingell@adacore.com>
6941
6942 * c-ada-spec.c (separate_class_package): New function.
6943 (pp_ada_tree_identifier): Prefix references to C++ classes with the
6944 name of their enclosing package.
6945 (print_ada_declaration): Use separate_class_package.
6946
81f0bab2
JM
69472010-10-27 Jason Merrill <jason@redhat.com>
6948
2b08f2c5
JM
6949 * c-common.c (c_common_reswords): Add __is_literal_type.
6950 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
6951
81f0bab2
JM
6952 * c-common.c (check_case_value): Remove special C++ code.
6953
200290f2
NP
69542010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
6955
6956 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
6957 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
6958 and RID_LAST_PATTR.
6959 (objc_add_property_declaration): Added additional arguments.
6960 (objc_property_attribute_kind): Removed.
6961 (objc_set_property_attr): Removed.
6962 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
6963 copy and nonatomic.
6964 * stub-objc.c (objc_add_property_declaration): Added additional
6965 arguments.
6966 (objc_set_property_attr): Removed.
9faeb493 6967
f614132b
NP
69682010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
6969
6970 * c-common.h (objc_add_property_variable): Renamed to
6971 objc_add_property_declaration. Added location argument.
6972 * stub-objc.c (objc_add_property_variable): Same change.
b1726d6c 6973
b8a18805
NP
69742010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
6975
6976 * c-common.h (objc_maybe_printable_name): New.
6977 * stub-objc.c (objc_maybe_printable_name): New.
6978
3f8257db
JJ
69792010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
6980 Andrew Pinski <pinskia@gmail.com>
30cd1c5d
AS
6981
6982 * c-common.h (c_common_mark_addressable_vec): Declare.
6983 * c-common.c (c_common_mark_addressable_vec): New function.
6984
249a82c4
NP
69852010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
6986
6987 * c-common.h (objc_set_method_type): Removed.
6988 (objc_add_method_declaration): Added boolean argument.
6989 (objc_start_method_definition): Same change.
6990 (objc_build_method_signature): Same change.
6991 * stub-objc.c (objc_set_method_type): Removed.
6992 (objc_add_method_declaration): Added boolean argument.
6993 (objc_start_method_definition): Same change.
6994 (objc_build_method_signature): Same change.
6995
977e30bc
NP
69962010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
6997
6998 * c-common.h (finish_file): Removed.
6999 (objc_write_global_declarations): New.
7000 * c-opts.c (c_common_parse_file): Do not call finish_file.
7001 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 7002
da57d1b9
NP
70032010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
7004
7005 Implemented parsing @synthesize and @dynamic for
7006 Objective-C/Objective-C++.
7007 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
7008 (objc_add_synthesize_declaration): New.
7009 (objc_add_dynamic_declaration): New.
7010 * c-common.c (c_common_reswords): Add synthesize and dynamic.
7011 * stub-objc.c (objc_add_synthesize_declaration): New.
7012 (objc_add_dynamic_declaration): New.
9faeb493 7013
0069111f
MM
70142010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
7015
7016 PR target/46041
7017 * c-cppbuiltin.c (mode_has_fma): Move function here from
7018 builtins.c. Don't use the fma optab, instead just use the
7019 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
7020 using -save-temps.
7021
e426b47b
NP
70222010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
7023
7024 Merge from 'apple/trunk' branch on FSF servers.
0069111f 7025
3f8257db 7026 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
e426b47b 7027
9faeb493 7028 Radar 4330422
e426b47b
NP
7029 * c-common.h (objc_non_volatilized_type): New declaration
7030 * stub-objc.c (objc_non_volatilized_type): New stub.
7031
90fbfdc3
NP
70322010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
7033
e426b47b 7034 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3 7035
3f8257db 7036 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
90fbfdc3 7037
9faeb493 7038 Radar 4133425
90fbfdc3 7039 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 7040 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 7041
c37d8c30
IS
70422010-10-17 Iain Sandoe <iains@gcc.gnu.org>
7043
7044 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
7045 * c-common.h (enum rid): Add RID_AT_PACKAGE.
7046 (objc_ivar_visibility_kind): New enum.
7047 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 7048 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
7049 visibility enum.
7050
1b1562a5
MM
70512010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
7052
7053 * c-cppbuiltin.c (builtin_define_float_constants): Emit
7054 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
7055 has the appropriate fma builtins.
7056 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
7057
668ea4b1
IS
70582010-10-14 Iain Sandoe <iains@gcc.gnu.org>
7059
1b1562a5 7060 merge from FSF apple 'trunk' branch.
3f8257db 7061 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 7062
668ea4b1
IS
7063 Radars 4436866, 4505126, 4506903, 4517826
7064 * c-common.c (c_common_resword): Define @property and its attributes.
7065 * c-common.h: Define property attribute enum entries.
7066 (OBJC_IS_PATTR_KEYWORD): New.
7067 (objc_property_attribute_kind): New enum.
7068 Declare objc_set_property_attr (), objc_add_property_variable (),
7069 objc_build_getter_call () and objc_build_setter_call ().
7070 * stub-objc.c (objc_set_property_attr): New stub.
7071 (objc_add_property_variable): Likewise.
7072 (objc_build_getter_call): Likewise.
7073 (objc_build_setter_call) Likewise.
1b1562a5 7074
a1178b30
IS
70752010-10-13 Iain Sandoe <iains@gcc.gnu.org>
7076
1b1562a5 7077 merge from FSF apple 'trunk' branch.
3f8257db 7078 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
a1178b30
IS
7079
7080 Radar 3803157 (method attributes)
7081 * c-common.c (handle_deprecated_attribute): Recognize
7082 objc methods as valid declarations.
7083 * c-common.h: Declare objc_method_decl ().
1b1562a5 7084 * stub-objc.c (objc_method_decl): New stub.
a1178b30 7085
a75bfaa6
JM
70862010-10-08 Joseph Myers <joseph@codesourcery.com>
7087
7088 * c-common.c (parse_optimize_options): Call
7089 decode_cmdline_options_to_array_default_mask before
7090 decode_options. Update arguments to decode_options.
7091 * c-common.h (c_common_init_options_struct): Declare.
7092 * c-opts.c (c_common_init_options_struct): New. Split out from
7093 c_common_init_options.
7094
f05b9d93
NP
70952010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
7096
7097 Implemented fast enumeration for Objective-C.
7098 * c-common.h (objc_finish_foreach_loop): New.
7099 * stub-objc.c (objc_finish_foreach_loop): New.
7100
1ebe4b4f
JM
71012010-10-05 Joseph Myers <joseph@codesourcery.com>
7102
7103 * c-common.h (struct diagnostic_context): Don't declare here.
7104 (c_common_initialize_diagnostics): Declare using
7105 diagnostic_context typedef.
7106 * c-opts.c (c_common_handle_option): Pass global_dc to
7107 handle_generated_option.
7108
d4d24ba4
JM
71092010-10-04 Joseph Myers <joseph@codesourcery.com>
7110
7111 * c-opts.c (c_common_handle_option): Pass &global_options_set to
7112 handle_generated_option.
7113
478a1c5b
ILT
71142010-10-03 Ian Lance Taylor <iant@google.com>
7115
7116 * c.opt (-fplan9-extensions): New option.
7117
82a1c2fe
FXC
71182010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7119
7120 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
7121 Remove.
7122 (c_cpp_builtins): Call functions from cppbuiltin.c instead
7123 of duplicating code.
7124
92902b1b
IS
71252010-09-30 Iain Sandoe <iains@gcc.gnu.org>
7126
7127 * c-common.c: Add two new entries for @optional
7128 and @required keywords.
7129
7130 merge from FSF 'apple/trunk' branch.
3f8257db 7131 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
92902b1b
IS
7132
7133 Radar 4386773
7134 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
7135 objective-c keywords.
7136 (objc_set_method_opt): New declaration.
7137 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 7138
46625112
JM
71392010-09-30 Joseph Myers <joseph@codesourcery.com>
7140
7141 * c-common.c (handle_optimize_attribute): Pass &global_options to
7142 cl_optimization_save and cl_optimization_restore.
7143 * c-opts.c (c_common_handle_option): Pass &global_options to
7144 handle_generated_option.
7145 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
7146 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
7147 &global_options to cl_optimization_restore.
7148
49b91f05
NP
71492010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
7150
7151 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
7152 Objective-C/Objective-C++ keywords.
7153
13ed556f 71542010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 7155
9faeb493
UB
7156 Merge from 'apple/trunk' branch on FSF servers.
7157
3f8257db 7158 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
a6341d57
NP
7159
7160 Radar 4281748
7161 * c-common.h (objc_check_global_decl): New declaration.
7162 * stub-objc.c (objc_check_global_decl): New stub.
7163
f0036cca
JM
71642010-09-29 Joseph Myers <joseph@codesourcery.com>
7165
7166 * c.opt: Don't use VarExists.
7167
e3339d0f
JM
71682010-09-29 Joseph Myers <joseph@codesourcery.com>
7169
7170 * c-common.c (c_cpp_error): Update names of diagnostic_context
7171 members.
7172 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
7173 cl_optimization members.
7174 * c-opts.c (warning_as_error_callback, c_common_handle_option,
7175 sanitize_cpp_opts, finish_options): Update names of cpp_options
7176 members.
7177
1973201f
NP
71782010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
7179
7180 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
7181 (objc_is_reserved_word): Removed.
7182 * c-common.c: Updated comments.
7183 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
7184 objc_is_reserved_word.
7185 * stub-objc.c (objc_is_reserved_word): Removed.
7186
f7e71da5
IS
71872010-09-28 Iain Sandoe <iains@gcc.gnu.org>
7188
9faeb493 7189 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
7190 include attributes.
7191 (objc_start_method_definition): Likewise.
7192 (objc_build_keyword_decl): Likewise.
7193 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
7194 (objc_start_method_definition): Likewise.
7195 (objc_build_keyword_decl): Likewise.
7196
c165dca7
IS
71972010-09-28 Iain Sandoe <iains@gcc.gnu.org>
7198
7199 * c-common.h (objc_start_class_interface): Adjust prototype.
7200 (objc_start_category_interface): Likewise.
7201 (objc_start_protocol): Likewise.
7202 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
7203 (objc_start_class_interface): Likewise.
7204 (objc_start_category_interface): Likewise.
7205
7458026b
ILT
72062010-09-27 Ian Lance Taylor <iant@google.com>
7207
7208 * c-common.c (c_common_attribute_table): Add no_split_stack.
7209 (handle_no_split_stack_attribute): New static function.
7210
b581b85b
NP
72112010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
7212
9faeb493 7213 Merge from 'apple/trunk' branch on FSF servers.
b581b85b 7214
3f8257db 7215 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
b581b85b 7216
9faeb493 7217 Radar 4229905
b581b85b
NP
7218 * c-common.h (objc_have_common_type): New declaration.
7219 * stub-objc.c (objc_have_common_type): New stub.
7220
7221 2005-06-22 Ziemowit Laski <zlaski@apple.com>
7222
7223 Radar 4154928
7224 * c-common.h (objc_common_type): New prototype.
9faeb493 7225 * stub-objc.c (objc_common_type): New stub.
b581b85b 7226
46a4da10
JH
72272010-09-24 Jan Hubicka <jh@suse.cz>
7228
7229 * c-common.c (handle_leaf_attribute): New function.
7230 (struct attribute_spec c_common_att): Add leaf.
7231
e200444e
JM
72322010-09-22 Joseph Myers <joseph@codesourcery.com>
7233
7234 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
7235 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
7236 -dump, -dump=, -imacros, -imacros=, -include, -include=,
7237 -include-barrier, -include-directory, -include-directory=,
7238 -include-directory-after, -include-directory-after=,
7239 -include-prefix, -include-prefix=, -include-with-prefix,
7240 -include-with-prefix=, -include-with-prefix-after,
7241 -include-with-prefix-after=, -include-with-prefix-before,
7242 -include-with-prefix-before=, -no-integrated-cpp,
7243 -no-line-commands, -no-standard-includes, -no-warnings, -output,
7244 -output=, -pedantic, -pedantic-errors, -preprocess,
7245 -print-missing-file-dependencies, -trace-includes, -traditional,
7246 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
7247 -user-dependencies, -verbose, -write-dependencies,
7248 -write-user-dependencies, no-integrated-cpp, traditional): New.
7249
29a80ea6
NP
72502010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
7251
7252 PR objc/23710
ac1fc2fc
NP
7253 * c-common.h (objc_start_method_definition): Return bool instead
7254 of void.
7255 * stub-objc.c (objc_start_method_definition): Return bool instead
7256 of void.
7257
72582010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
7259
7260 PR objc/25965
7261 * c-common.h (objc_get_interface_ivars): New declaration.
7262 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 7263
de621752
ILT
72642010-09-15 Ian Lance Taylor <iant@google.com>
7265
7266 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 7267 messages. Remove period at end of warning message.
de621752 7268
ba885ec5
NS
72692010-09-09 Nathan Sidwell <nathan@codesourcery.com>
7270
7271 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
7272 (handle_alias_attribute): ... here.
7273 (handle_ifunc_attribute): New.
7274
c5ee1358
MM
72752010-09-06 Mark Mitchell <mark@codesourcery.com>
7276
7277 * c-common.h (do_warn_double_promotion): Declare.
7278 * c-common.c (do_warn_double_promotion): Define.
7279
0a0b3574
MM
72802010-09-05 Mark Mitchell <mark@codesourcery.com>
7281
7282 * c.opt (Wdouble-promotion): New.
7283
d1779886
JM
72842010-09-02 Joseph Myers <joseph@codesourcery.com>
7285
7286 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
7287 fvtable-thunks, fxref): Mark no longer supported in help text.
7288
2d2bd949
JM
72892010-09-02 Joseph Myers <joseph@codesourcery.com>
7290
7291 * c.opt (Wimport, fall-virtual, falt-external-templates,
7292 fdefault-inline, fenum-int-equiv, fexternal-templates,
7293 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
7294 fname-mangling-version-, fnew-abi, fnonnull-objects,
7295 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
7296 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
7297 applicable.
7298 (fhandle-exceptions): Mark with Alias and Warn.
7299 * c-opts.c (c_common_handle_option): Don't handle options marked
7300 as ignored.
7301
5de8299c
JM
73022010-09-02 Joseph Myers <joseph@codesourcery.com>
7303
7304 * c.opt (Wcomments, Werror-implicit-function-declaration,
7305 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
7306 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
7307 aliases.
7308 * c-common.c (option_codes): Use OPT_Wcomment instead of
7309 OPT_Wcomments.
7310 * c-opts.c (warning_as_error_callback, c_common_handle_option):
7311 Don't handle options marked as aliases.
7312
0ceb0201
RG
73132010-08-25 Richard Guenther <rguenther@suse.de>
7314
7315 * c-common.c (c_common_get_alias_set): Remove special
7316 handling for pointers.
7317
ac47786e
NF
73182010-08-20 Nathan Froyd <froydnj@codesourcery.com>
7319
7320 * c-common.c: Use FOR_EACH_VEC_ELT.
7321 * c-gimplify.c: Likewise.
7322 * c-pragma.c: Likewise.
7323
c878765b
JM
73242010-08-16 Joseph Myers <joseph@codesourcery.com>
7325
7326 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
7327 RejectDriver.
7328 (MMDX): Change back to MMD. Mark NoDriverArg instead of
7329 RejectDriver.
7330 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
7331 instead of OPT_MDX and OPT_MMDX.
7332
603349bf
JM
73332010-08-16 Joseph Myers <joseph@codesourcery.com>
7334
7335 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
7336
644fa7ac
JM
73372010-08-12 Joseph Myers <joseph@codesourcery.com>
7338
7339 * c.opt (MD, MMD): Change to MDX and MMDX.
7340 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
7341
481e1176
JM
73422010-08-11 Joseph Myers <joseph@codesourcery.com>
7343
7344 * c-opts.c (c_common_handle_option): Call handle_generated_option
7345 instead of handle_option.
7346
ac8dc9f7
NF
73472010-08-08 Nathan Froyd <froydnj@codesourcery.com>
7348
7349 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
7350 (maybe_apply_renaming_pragma): Delete unneeded declarations.
7351
4f8c876d
NF
73522010-08-08 Nathan Froyd <froydnj@codesourcery.com>
7353
7354 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
7355 (pending_redefine_extname): Change type to a VEC.
7356 (add_to_renaming_pragma_list): Update for new type of
7357 pending_redefine_extname.
ac8dc9f7 7358 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 7359
3b0c690e
AC
73602010-08-04 Arnaud Charlet <charlet@adacore.com>
7361
7362 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
7363 visited.
7364 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
7365 decide whether a type has already been declared/seen.
7366 Do not go to the original type.
7367 (dump_nested_types): New parameter forward.
7368 Generate forward declaration if needed and mark type as visited.
7369 (print_ada_declaration): Call dump_nested_types if not already done.
7370 Mark types as visited.
7371
1890bccc
JM
73722010-08-03 Joseph Myers <joseph@codesourcery.com>
7373
7374 * c.opt (-print-pch-checksum): Remove option.
7375 * c-opts.c (c_common_handle_option): Don't handle
7376 OPT_print_pch_checksum.
7377
5f20c657
JM
73782010-07-27 Joseph Myers <joseph@codesourcery.com>
7379
7380 * c-common.h (c_common_handle_option): Update prototype and return
7381 value type.
7382 * c-opts.c (c_common_handle_option): Update prototype and return
7383 value type. Update calls to handle_option and
7384 enable_warning_as_error.
7385
f551f80c
JJ
73862010-07-27 Jakub Jelinek <jakub@redhat.com>
7387
7388 PR c/45079
7389 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
7390
61ff2bdc
JM
73912010-07-27 Joseph Myers <joseph@codesourcery.com>
7392
7393 * c-common.h (c_common_missing_argument): Remove.
7394 * c-opts.c (c_common_missing_argument): Remove.
7395 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
7396 idirafter, imacros, include, isysroot, isystem, iquote): Add
7397 MissingArgError.
7398 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
7399
7a9bf9a4
JM
74002010-07-27 Joseph Myers <joseph@codesourcery.com>
7401
7402 * c-common.h (c_common_option_lang_mask,
7403 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
7404 New.
7405 (c_common_init_options): Update prototype.
7406 * c-opts.c (c_common_option_lang_mask): New.
7407 (c_common_initialize_diagnostics): Split out of
7408 c_common_init_options.
7409 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
7410 New.
7411 (c_common_init_options): Update prototype. Use decoded options in
7412 search for -lang-asm.
7413
910ad8de
NF
74142010-07-15 Nathan Froyd <froydnj@codesourcery.com>
7415
7416 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
7417 * c-format.c: Likewise.
7418
718f9c0f
MLI
74192010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
7420
7421 * c-common.h: Include diagnostic-core.h. Error if already
7422 included.
7423 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
7424
4d451982
MLI
74252010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
7426
adfac8df 7427 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
7428 Do not include expr.h
7429 (vector_mode_valid_p): Move here.
7430
119fe915
SB
74312010-06-21 DJ Delorie <dj@redhat.com>
7432
7433 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
7434 allow these pragmas anywhere.
7435
74362010-06-14 Jakub Jelinek <jakub@redhat.com>
7437
7438 PR bootstrap/44509
7439 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
7440 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
7441 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
7442 ggc_strdup instead of xstrdup.
7443
74442010-06-10 Jakub Jelinek <jakub@redhat.com>
7445
7446 * c-cppbuiltin.c: Include cpp-id-data.h.
7447 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
7448 (lazy_hex_fp_value): New function.
7449 (builtin_define_with_hex_fp_value): Provide definitions lazily.
7450
6662d794
MLI
74512010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
7452
7453 * c-gimplify.c: Do not include tree-flow.h
7454
38f8b050
JR
74552010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
7456
7457 PR other/44034
7458 * c-common.c: Rename targetm member:
7459 targetm.enum_va_list -> targetm.enum_va_list_p
7460
9589f23e
AS
74612010-06-28 Anatoly Sokolov <aesok@post.ru>
7462
7463 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
7464
3b06d379
SB
74652010-06-28 Steven Bosscher <steven@gcc.gnu.org>
7466
7467 * c-cppbuiltin.c: Do not include except.h.
7468
d166d4c3
AK
74692010-06-24 Andi Kleen <ak@linux.intel.com>
7470
9faeb493
UB
7471 * c-common.c (warn_for_omitted_condop): New.
7472 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 7473
70cb8be6
JM
74742010-06-21 Joseph Myers <joseph@codesourcery.com>
7475
7476 * c.opt (lang-objc): Remove.
7477 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
7478
a4c97feb
JR
74792010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
7480
7481 * c-opts.c: Include "tm_p.h".
7482
6e2f1956
JM
74832010-06-20 Joseph Myers <joseph@codesourcery.com>
7484
7485 * c-common.c (parse_optimize_options): Update call to
7486 decode_options.
7487
bc87224e
NF
74882010-06-18 Nathan Froyd <froydnj@codesourcery.com>
7489
7490 * c-common.c (record_types_used_by_current_var_decl): Adjust for
7491 new type of types_used_by_cur_var_decl.
7492
b49cf425
JR
74932010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
7494
7495 PR bootstrap/44512
7496 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
7497 for C++ standard compliance.
7498
59f9c2ed
JM
74992010-06-16 Jason Merrill <jason@redhat.com>
7500
7501 * c.opt: Add -Wnoexcept.
7502
33766b66
RG
75032010-06-16 Richard Guenther <rguenther@suse.de>
7504
7505 PR c/44555
7506 * c-common.c (c_common_truthvalue_conversion): Remove
7507 premature and wrong optimization concering ADDR_EXPRs.
7508
eff7e30c
AC
75092010-06-15 Arnaud Charlet <charlet@adacore.com>
7510
7511 * c-ada-spec.c (dump_sloc): Remove column info.
7512 (is_simple_enum): New function.
7513 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
7514 enum types when relevant.
7515
6312e84d
MLI
75162010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
7517
9faeb493 7518 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
7519 location.
7520
1cb42611
JM
75212010-06-10 Joseph Myers <joseph@codesourcery.com>
7522
7523 * c-opts.c (c_common_handle_option): Don't handle
7524 OPT_fshow_column.
7525
a9429e29
LB
75262010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7527
7528 * c-pragma.c (push_alignment): Use typed GC allocation.
7529 (handle_pragma_push_options): Likewise.
7530
7531 * c-common.c (parse_optimize_options): Likewise.
7532
7533 * c-common.h (struct sorted_fields_type): Add variable_size GTY
7534 option.
7535
5498f011
JM
75362010-06-07 Joseph Myers <joseph@codesourcery.com>
7537
7538 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
7539 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
7540 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
7541 flag_signed_bitfields, warn_strict_null_sentinel,
7542 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
7543 flag_gen_declaration, flag_no_gnu_keywords,
7544 flag_implement_inlines, flag_implicit_templates,
7545 flag_implicit_inline_templates, flag_optional_diags,
7546 flag_elide_constructors, flag_default_inline, flag_rtti,
7547 flag_conserve_space, flag_access_control, flag_check_new,
7548 flag_new_for_scope, flag_weak, flag_working_directory,
7549 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
7550 flag_enforce_eh_specs, flag_threadsafe_statics,
7551 flag_pretty_templates): Remove.
7552 * c-common.h (flag_preprocess_only, flag_nil_receivers,
7553 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
7554 flag_replace_objc_classes, flag_undef, flag_no_builtin,
7555 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
7556 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
7557 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
7558 flag_no_gnu_keywords, flag_implement_inlines,
7559 flag_implicit_templates, flag_implicit_inline_templates,
7560 flag_optional_diags, flag_elide_constructors, flag_default_inline,
7561 flag_rtti, flag_conserve_space, flag_access_control,
7562 flag_check_new, flag_new_for_scope, flag_weak,
7563 flag_working_directory, flag_use_cxa_atexit,
7564 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
7565 flag_threadsafe_statics, flag_pretty_templates,
7566 warn_strict_null_sentinel): Remove.
7567 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
7568 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
7569 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
7570 fimplicit-inline-templates, fimplicit-templates,
7571 flax-vector-conversions, fms-extensions, fnil-receivers,
7572 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
7573 frtti, fshort-double, fshort-enums, fshort-wchar,
7574 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
7575 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
7576 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
7577 gen-decls, undef): Use Var.
7578 (fdefault-inline, foptional-diags): Document as doing nothing.
7579 * c-opts.c (c_common_handle_option): Remove cases for options now
7580 using Var. Mark ignored options as such.
7581
39dabefd
SB
75822010-06-05 Steven Bosscher <steven@gcc.gnu.org>
7583
9faeb493 7584 * c-common.c: Moved to here from parent directory.
39dabefd
SB
7585 * c-common.def: Likewise.
7586 * c-common.h: Likewise.
7587 * c-cppbuiltin.c: Likewise.
7588 * c-dump.c: Likewise.
7589 * c-format.c: Likewise.
7590 * c-format.h : Likewise.
7591 * c-gimplify.c: Likewise.
7592 * c-lex.c: Likewise.
7593 * c-omp.c: Likewise.
7594 * c.opt: Likewise.
7595 * c-opts.c: Likewise.
7596 * c-pch.c: Likewise.
7597 * c-ppoutput.c: Likewise.
7598 * c-pragma.c: Likewise.
7599 * c-pragma.h: Likewise.
7600 * c-pretty-print.c: Likewise.
7601 * c-pretty-print.h: Likewise.
7602 * c-semantics.c: Likewise.
7603 * stub-objc.c: Likewise.
7604
7605 * c-common.c: Include gt-c-family-c-common.h.
7606 * c-pragma.c: Include gt-c-family-c-pragma.h.
7607\f
cbe34bb5 7608Copyright (C) 2010-2017 Free Software Foundation, Inc.
39dabefd
SB
7609
7610Copying and distribution of this file, with or without modification,
7611are permitted in any medium without royalty provided the copyright
7612notice and this notice are preserved.
This page took 2.583106 seconds and 5 git commands to generate.