]> gcc.gnu.org Git - gcc.git/blame - gcc/c-family/ChangeLog
gimple-ssa-sprintf.c (try_substitute_return_value): Remove info.nowrite calls with...
[gcc.git] / gcc / c-family / ChangeLog
CommitLineData
bf5fbf46
MS
12017-01-11 Martin Sebor <msebor@redhat.com>
2
3 PR c/78768
4 * c.opt (-Walloca-larger-than, -Wformat-length, -Wformat-truncation):
5 Also enable for LTO.
6
e363df3f
JM
72017-01-10 Jason Merrill <jason@redhat.com>
8
9 Implement P0195R2, C++17 variadic using.
10 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_variadic_using.
11
bd2c6270
JJ
122017-01-09 Jakub Jelinek <jakub@redhat.com>
13
14 PR translation/79019
15 PR translation/79020
16 * c.opt (Wnormalized=): Fix typo in description.
17
efcc8d38
MS
182017-01-08 Martin Sebor <msebor@redhat.com>
19
20 PR middle-end/77708
21 * c.opt (-Wformat-truncation): New option.
22
435f3f7a
AO
232017-01-06 Alexandre Oliva <aoliva@redhat.com>
24
25 * c-pretty-print.c (pp_c_tree_decl_identifier): Convert 16-bit
26 value to unsigned short to fit in 4 hex digits without
27 warnings.
28
4e89adf9
EB
292017-01-05 Eric Botcazou <ebotcazou@adacore.com>
30
31 * c.opt (fsso-struct): Add 'native' value.
32
cd445b54
ML
332017-01-05 Martin Liska <mliska@suse.cz>
34
35 PR pch/78970
36 * c-opts.c (c_common_post_options): Reject '-' filename for a precompiled
37 header.
38
a9342885
MP
392017-01-04 Marek Polacek <polacek@redhat.com>
40
41 PR c++/64767
42 * c.opt (Wpointer-compare): New option.
43
fc73e60c
JJ
442017-01-04 Jakub Jelinek <jakub@redhat.com>
45
46 PR driver/78957
47 * c.opt (fsso-struct=): Add RejectNegative.
48
cbe34bb5
JJ
492017-01-01 Jakub Jelinek <jakub@redhat.com>
50
51 Update copyright years.
52
d4a6c0ea
ML
532016-12-29 Martin Liska <mliska@suse.cz>
54
55 PR c/78933
56 * c.opt (strong-eval-order): Add RejectNegative keyword.
57
67a5ad7c
JM
582016-12-22 Jason Merrill <jason@redhat.com>
59
60 Implement P0522R0, matching of template template arguments.
61 * c-cppbuiltin.c (c_cpp_builtins): Define
62 __cpp_template_template_args.
63
0dba7960
JJ
642016-12-21 Jakub Jelinek <jakub@redhat.com>
65
66 PR bootstrap/78817
67 * c-common.c (struct nonnull_arg_ctx): New type.
68 (check_function_nonnull): Return bool instead of void. Use
69 nonnull_arg_ctx as context rather than just location_t.
70 (check_nonnull_arg): Adjust for the new context type, set
71 warned_p to true if a warning has been diagnosed.
72 (check_function_arguments): Return bool instead of void.
73 * c-common.h (check_function_arguments): Adjust prototype.
74
31bfc9b9
JM
752016-12-21 Jason Merrill <jason@redhat.com>
76
77 * c.opt (-fnew-ttp-matching): New flag.
78 * c-opts.c (c_common_post_options): Default on if -std=c++1z.
79
629b3d75
MJ
802016-12-14 Martin Jambor <mjambor@suse.cz>
81
82 * c-omp.c: Include omp-general.h instead of omp-low.h.
83 (c_finish_oacc_wait): Adjusted call to find_omp_clause to use its new
84 name.
85
474da67e
MS
862016-12-14 Martin Sebor <msebor@redhat.com>
87
88 PR c/17308
89 * c-common.c (check_nonnull_arg): Disable when optimization
90 is enabled.
91
fe366b87
MP
922016-12-12 Marek Polacek <polacek@redhat.com>
93
94 PR c++/78647
95 * c-common.c (attribute_fallthrough_p): Return false for
96 error_mark_node.
97
8bd9f164
MS
982016-12-08 Martin Sebor <msebor@redhat.com>
99
100 PR c/78284
101 * c.opt (-Walloc-zero, -Walloc-size-larger-than): New options.
102
060162e0
MS
1032016-12-08 Martin Sebor <msebor@redhat.com>
104
105 PR c/78165
106 * c-pretty-print (pp_c_integer_constant): Avoid formatting type
107 suffix.
108gcc/testsuite/ChangeLog:
109
ee92e7ba
MS
1102016-12-07 Martin Sebor <msebor@redhat.com>
111
112 PR c/53562
113 PR middle-end/77784
114 PR middle-end/78149
115 PR middle-end/78138
116 * c.opt (-Wstringop-overflow): New option.
117
84b0769e
MO
1182016-12-02 Maxim Ostapenko <m.ostapenko@samsung.com>
119
120 * c-attribs.c (asan odr indicator): New attribute.
121 (handle_asan_odr_indicator_attribute): New function.
122
7fa6a965
PK
1232016-11-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
124
125 * c-common.c (c_common_nodes_and_builtins): Remove initialization of
126 ptrdiff_type_node;
127
56d8ffc1
JG
1282016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
129
130 * c-common.c (excess_precision_mode_join): New.
131 (c_ts18661_flt_eval_method): New.
132 (c_c11_flt_eval_method): Likewise.
133 (c_flt_eval_method): Likewise.
134 * c-common.h (excess_precision_mode_join): New.
135 (c_flt_eval_method): Likewise.
136 * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): New.
137 (cpp_iec_559_value): Call it.
138 (c_cpp_builtins): Modify logic for __LIBGCC_*_EXCESS_PRECISION__,
139 call c_flt_eval_method to set __FLT_EVAL_METHOD__ and
140 __FLT_EVAL_METHOD_TS_18661_3__.
141
04f0fcf7
JG
1422016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
143
144 * c-opts.c (c_common_post_options): Add logic to handle the default
145 case for -fpermitted-flt-eval-methods.
146
fb2675cb
PB
1472016-11-23 Paolo Bonzini <bonzini@gnu.org>
148
149 * c.opt (Wexpansion-to-defined): New.
150
ec1c5694
JJ
1512016-11-23 Jakub Jelinek <jakub@redhat.com>
152
153 PR target/78451
154 * c-pragma.c (handle_pragma_target): Don't replace
155 current_target_pragma, but chainon the new args to the current one.
156
730c9e75
NS
1572016-11-22 Nathan Sidwell <nathan@acm.org>
158
159 * array-notation-common.c (cilkplus_extract_an_trplets): Fix
cacd29be 160 indentation and formatting.
730c9e75 161
89990732
MS
1622016-11-21 Martin Sebor <msebor@redhat.com>
163
164 * c.opt (-fprintf-return-value): Enable by default.
165
48330c93
BE
1662016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
167
168 PR c++/71973
169 * c.opt (-Wbuiltin-declaration-mismatch): New warning.
170 * c-common.c (c_common_nodes_and_builtins): Initialize
171 const_tm_ptr_type_node.
172
0d939c95
MP
1732016-11-16 Marek Polacek <polacek@redhat.com>
174
175 PR c/78285
176 * c-common.c (c_add_case_label): Turn error_at calls into inform.
177
8e745a17
JJ
1782016-11-14 Jakub Jelinek <jakub@redhat.com>
179
180 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_structured_bindings.
181
1ee62b92 1822016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
8e745a17
JJ
183 Richard Biener <rguenther@suse.de>
184
185 * c-common.h (c_common_resword): Add RID_GIMPLE, RID_PHI types.
186 * c-common.h (enum rid): Add RID_GIMPLE, RID_PHI.
187 * c.opt (fgimple): New option.
1ee62b92 188
22b15758
UB
1892016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
190
191 PR c/35503
192 * c-common.h (warn_for_restrict): Declare.
193 * c-warn.c: Include gcc-rich-location.h.
194 (warn_for_restrict): New function.
195 * c-format.c (gcc_tdiag_char_table): Add entry for "Z" specifier.
196 (gcc_cdiag_char_table): Likewise.
197 (gcc_cxxdiag_char_table): Likewise.
198 * c.opt (Wrestrict): New option.
199
4be719cd
EB
2002016-11-13 Eric Botcazou <ebotcazou@adacore.com>
201
202 * c-ada-spec.c (print_ada_declaration): For typedef declarations, look
203 for nested types only if the type is a record or union and dump SLOC.
204
4a826ca6
JM
2052016-11-09 Jason Merrill <jason@redhat.com>
206
207 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_template_auto.
208
2e955d50
JJ
2092016-11-09 Jakub Jelinek <jakub@redhat.com>
210
211 * c-ubsan.c (ubsan_instrument_shift): Handle split
212 -fsanitize=shift-base and -fsanitize=shift-exponent.
213
51dc6603
JM
2142016-11-07 Jason Merrill <jason@redhat.com>
215
216 * c.opt (Wc++1z-compat): New.
217 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_noexcept_function_type.
218
6dc4a604
ML
2192016-11-07 Martin Liska <mliska@suse.cz>
220
221 * c-warn.c (warn_for_unused_label): Save all labels used
222 in goto or in &label.
223
b302001e
JM
2242016-11-03 Jason Merrill <jason@redhat.com>
225
226 * c-cppbuiltin.c (c_cpp_builtins): Correct
227 __cpp_inheriting_constructors.
228
31f7f784
JM
2292016-11-01 Jason Merrill <jason@redhat.com>
230
2bc78e3c
JM
231 * c-cppbuiltin.c (c_cpp_builtins): Update
232 __cpp_inheriting_constructors.
233
31f7f784
JM
234 * c.opt (-fnew-inheriting-ctors): New.
235 * c-opts.c: Default to on for ABI 11+.
236
dcb466ec
JJ
2372016-10-31 Jakub Jelinek <jakub@redhat.com>
238
239 PR c++/77948
240 * c.opt (fext-numeric-literals): Add Var and Init.
241 * c-opts.c (c_common_handle_option): Don't clear
242 cpp_opts->ext_numeric_literals for -std=c++{11,14,1z}.
243 (c_common_post_options): Clear it here if not set
244 explicitly.
245
52e1b91e
AH
2462016-10-28 Aldy Hernandez <aldyh@redhat.com>
247
248 PR debug/77773
249 * c-pretty-print.c (simple_type_specifier): Do not dereference `t'
250 if NULL.
251
e16f1cc7
JJ
2522016-10-25 Jakub Jelinek <jakub@redhat.com>
253
254 * c-common.h (enum rid): Add RID_BUILTIN_LAUNDER.
255 * c-common.c (c_common_reswords): Add __builtin_launder.
256
f8348061
BE
2572016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
258
259 * c-common.c (c_common_truthvalue_conversion): Warn for
260 multiplications in boolean context. Fix the quoting of '<<' and '<'
261 in the shift warning.
262
eff89e01
BE
2632016-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
264
265 * c-common.c (c_common_truthvalue_conversion): Fix the comment.
266
24bc7bf4
JM
2672016-10-20 Jason Merrill <jason@redhat.com>
268
269 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_concepts value.
270
4c712374
BE
2712016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
272
273 * c-common.c (c_common_truthvalue_conversion): Warn only for signed
274 integer shift ops in boolean context.
275
2762016-10-18 Aldy Hernandez <aldyh@redhat.com>
adc577c5
AH
277
278 * c.opt (Walloca): New.
279 (Walloca-larger-than=): New.
280 (Wvla-larger-than=): New.
281
8fa18c06
MP
2822016-10-17 Marek Polacek <polacek@redhat.com>
283
284 * c-warn.c (find_array_ref_with_const_idx_r): Remove parameter names.
285 Return immediately when finding a match.
286 (warn_tautological_cmp): Remove a boolean variable that is no longer
287 needed.
288
b12b1915
MP
2892016-10-17 Marek Polacek <polacek@redhat.com>
290
291 * c-attribs.c: New file.
292 * c-common.c: Move attributes handling to c-attribs.c.
293 (get_nonnull_operand): No longer static.
294 * c-common.h: Move the declarations from c-attribs.c to its own section.
295
2045acd9
JM
2962016-10-14 Jason Merrill <jason@redhat.com>
297
298 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_aggregate_bases
299 and __cpp_deduction_guides.
300
14a2c9aa
JM
3012016-10-13 Jason Merrill <jason@redhat.com>
302
303 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_inline_variables.
304
4d0cdd0c
TP
3052016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
306
307 * c-cppbuiltin.c: Include memmodel.h.
308 * c-opts.c: Likewise.
309 * c-pragma.c: Likewise.
310 * c-warn.c: Likewise.
311
70f6d5e1
JJ
3122016-10-12 Jakub Jelinek <jakub@redhat.com>
313
314 * c.opt (Wextra): Add as C/C++/ObjC/ObjC++ option.
315 (Wimplicit-fallthrough=): Enable for these languages by -Wextra.
316 * c-opts.c (sanitize_cpp_opts): Initialize
317 cpp_opts->cpp_warn_implicit_fallthrough.
318
78f61294
MP
3192016-10-11 Marek Polacek <polacek@redhat.com>
320
321 * c-common.c (warning_candidate_p): Change the return type to bool
322 and return true/false instead of 1/0.
323 (vector_mode_valid_p): Likewise.
324
038b5cc0
MP
3252016-10-11 Marek Polacek <polacek@redhat.com>
326
327 * c-common.c (fold_for_warn): No longer static.
328 (bool_promoted_to_int_p): Likewise.
329 (c_common_get_narrower): Likewise.
330 (constant_expression_warning): Move to c-warn.c.
331 (constant_expression_error): Likewise.
332 (overflow_warning): Likewise.
333 (warn_logical_operator): Likewise.
334 (find_array_ref_with_const_idx_r): Likewise.
335 (warn_tautological_cmp): Likewise.
336 (expr_has_boolean_operands_p): Likewise.
337 (warn_logical_not_parentheses): Likewise.
338 (warn_if_unused_value): Likewise.
339 (strict_aliasing_warning): Likewise.
340 (sizeof_pointer_memaccess_warning): Likewise.
341 (check_main_parameter_types): Likewise.
342 (conversion_warning): Likewise.
343 (warnings_for_convert_and_check): Likewise.
344 (match_case_to_enum_1): Likewise.
345 (match_case_to_enum): Likewise.
346 (c_do_switch_warnings): Likewise.
347 (warn_for_omitted_condop): Likewise.
348 (readonly_error): Likewise.
349 (lvalue_error): Likewise.
350 (invalid_indirection_error): Likewise.
351 (warn_array_subscript_with_type_char): Likewise.
352 (warn_about_parentheses): Likewise.
353 (warn_for_unused_label): Likewise.
354 (warn_for_div_by_zero): Likewise.
355 (warn_for_memset): Likewise.
356 (warn_for_sign_compare): Likewise.
357 (do_warn_double_promotion): Likewise.
358 (do_warn_unused_parameter): Likewise.
359 (record_locally_defined_typedef): Likewise.
360 (maybe_record_typedef_use): Likewise.
361 (maybe_warn_unused_local_typedefs): Likewise.
362 (maybe_warn_bool_compare): Likewise.
363 (maybe_warn_shift_overflow): Likewise.
364 (warn_duplicated_cond_add_or_warn): Likewise.
365 (diagnose_mismatched_attributes): Likewise.
366 * c-common.h: Move the declarations from c-warn.c to its own section.
367 * c-warn.c: New file.
368
627be19f
JM
3692016-10-08 Jason Merrill <jason@redhat.com>
370
371 * c-common.c (c_common_truthvalue_conversion): Don't distribute
372 into COND_EXPR in C++.
373
7bad794a
JJ
3742016-10-08 Jakub Jelinek <jakub@redhat.com>
375
376 * c-lex.c (c_lex_with_flags) <case CPP_COMMENT>: For CPP_COMMENT
377 token with PREV_FALLTHROUGH, skip all following CPP_PADDING and
378 CPP_COMMENT tokens and set add_flags to PREV_FALLTHROUGH afterwards.
379
be845b04
JJ
3802016-10-07 Jakub Jelinek <jakub@redhat.com>
381
382 Implement LWG2296 helper intrinsic
383 * c-common.h (enum rid): Add RID_ADDRESSOF.
384 * c-common.c (c_common_reswords): Add __builtin_addressof.
385
c09c4992
BE
3862016-10-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
387
388 PR c++/77700
389 * c-common.c (c_common_truthvalue_conversion): Warn also for
390 suspicious enum values in boolean context.
391
342cfb3e
JJ
3922016-10-06 Jakub Jelinek <jakub@redhat.com>
393
394 Implement P0258R2 - helper for C++17
395 std::has_unique_object_representations trait
396 * c-common.h (enum rid): Add RID_HAS_UNIQUE_OBJ_REPRESENTATIONS.
397 * c-common.c (c_common_reswords): Add
398 __has_unique_object_representations.
399
2e69f143
JJ
4002016-10-05 Jakub Jelinek <jakub@redhat.com>
401
402 PR sanitizer/66343
403 * c-ubsan.c (ubsan_instrument_return): Don't call
404 initialize_sanitizer_builtins here.
405
700fff34
BE
4062016-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
407
408 * c-common.c (c_common_truthvalue_conversion): Warn also for suspicious
409 conditional expression in boolean context when only one arm is
410 non-boolean.
411
9563bfcd
JJ
4122016-10-05 Jakub Jelinek <jakub@redhat.com>
413
04a32443
JJ
414 PR sanitizer/77823
415 * c-ubsan.c (ubsan_instrument_shift): Return NULL_TREE if type0
416 is not integral.
417
9563bfcd
JJ
418 * c-common.c (c_common_reswords): Update comment for C++11.
419
f1644724
JM
4202016-10-04 Jason Merrill <jason@redhat.com>
421
422 * c-common.c (make_tree_vector_from_ctor): New.
423 * c-common.h: Declare it.
424
5a79befb
JJ
4252016-10-04 Jakub Jelinek <jakub@redhat.com>
426
427 * c-cppbuiltin.c (c_cpp_builtins): Don't define
428 __LIBGCC_JCR_SECTION_NAME__.
429
1633d3b9
BE
4302016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
431
432 * c-common.c (c_common_truthvalue_conversion): Warn for suspicious
433 left shift in boolean context.
434
a2c6e7f2
JJ
4352016-09-29 Jakub Jelinek <jakub@redhat.com>
436
437 Implement P0001R1 - C++17 removal of register storage class specifier
438 * c.opt (Wregister): New warning.
439 * c-opts.c (c_common_post_options): Enable -Wregister by
440 default for C++17.
441
75304c87
JG
4422016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
443
444 * c-opts.c (c_common_post_options): Remove special case for
445 TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard
446 in C++.
447
bbfac6da
JJ
4482016-09-27 Jakub Jelinek <jakub@redhat.com>
449
6e39060a
JJ
450 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for
451 -std=c++1z.
452
bbfac6da
JJ
453 * c-ada-spec.c (print_ada_declaration): Remove break after return.
454
e73cf9a2
TP
4552016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
456
457 * c-common.c: Include memmodel.h.
458
c6147dc4
MP
4592016-09-26 Marek Polacek <polacek@redhat.com>
460
461 * c-lex.c (c_common_has_attribute): Handle attribute fallthrough.
462
81fea426
MP
4632016-09-26 Marek Polacek <polacek@redhat.com>
464
465 PR c/7652
466 * c-common.c (c_common_attribute_table): Add fallthrough attribute.
467 (handle_fallthrough_attribute): New function.
468 (attribute_fallthrough_p): New function.
469 * c-common.h (attribute_fallthrough_p): Declare.
470
9a2300e9
MP
4712016-09-24 Marek Polacek <polacek@redhat.com>
472
473 PR c/77490
474 * c.opt (Wbool-operation): New.
475
a09e9e35
BE
4762016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
477
478 * c-common.c (c_common_truthvalue_conversion): Inhibit
479 Wint-in-bool-context warning with from_macro_definition_at.
480 Mention the expression will always evaluate to true.
481
d43b4ccc
MS
4822016-09-21 Martin Sebor <msebor@redhat.com>
483
484 PR bootstrap/77676
485 * c.opt (fprintf-return-value): Temporarily initialize to zero
486 to unblock bootstrap failures.
487
2e1c20b1
JJ
4882016-09-21 Jakub Jelinek <jakub@redhat.com>
489
490 PR c++/77651
491 * c.opt (Waligned-new=): Add RejectNegative.
492 (faligned-new=): Likewise. Spelling fix - change
493 aligned_new_threshhold to aligned_new_threshold.
494 * c-cppbuiltin.c (c_cpp_builtins): Change aligned_new_threshhold
495 to aligned_new_threshold.
496
88d0c3f0
MS
4972016-09-20 Martin Sebor <msebor@redhat.com>
498
499 PR middle-end/49905
500 * c.opt: Add -Wformat-length and -fprintf-return-value.
501
144a96e4
BE
5022016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
503
504 PR c++/77434
505 * c.opt (Wint-in-bool-context): New warning.
506 * c-common.c (c_common_truthvalue_conversion): Warn on integer
507 constants in boolean context.
508
63012d9a
JM
5092016-09-19 Joseph Myers <joseph@codesourcery.com>
510
511 * c-common.c (max_align_t_align): Also consider alignment of
512 float128_type_node.
513
931388ce
JM
5142016-09-15 Jason Merrill <jason@redhat.com>
515
516 * c-common.c (check_cxx_fundamental_alignment_constraints): Check
517 DECL_EXTERNAL.
518
38711381
JM
5192016-09-14 Jason Merrill <jason@redhat.com>
520
521 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
522 limit FIELD_DECL, either.
523
e51fbec3
MP
5242016-09-14 Marek Polacek <polacek@redhat.com>
525
526 * c-common.c (c_common_truthvalue_conversion): Use false instead of 0.
527 * c-common.h (build_unary_op): Change nonconvert parameter type to bool.
528 * c-omp.c (c_finish_omp_atomic): Use false instead of 0.
529
254830ba
DM
5302016-09-13 David Malcolm <dmalcolm@redhat.com>
531
532 * c-common.c (warn_logical_not_parentheses): Replace
533 rich_location::add_fixit_insert calls with add_fixit_insert_before
534 and add_fixit_insert_after, eliminating the "next_loc" calculation.
535
42763690
JM
5362016-09-13 Jason Merrill <jason@redhat.com>
537 Tom de Vries <tom@codesourcery.com>
538
539 PR c++/77427
540 * c-common.c (set_underlying_type): Don't treat array as builtin type.
541
9453eee9
JM
5422016-09-13 Jason Merrill <jason@redhat.com>
543
544 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
545 limit types at all.
546
e96809e3
JM
5472016-09-12 Jason Merrill <jason@redhat.com>
548
549 * c-common.c (check_cxx_fundamental_alignment_constraints): Fix
550 bit/byte confusion, allow large alignment for types.
551
54dcdb88
BE
5522016-09-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
553
554 PR c++/77496
555 * c-common.c (warn_for_omitted_condop): Also warn for boolean data.
556
d1463eb9
DM
5572016-09-12 David Malcolm <dmalcolm@redhat.com>
558
559 PR c/72858
560 * c-format.c (argument_parser::check_argument_type): Add params
561 "type_start" and "conversion_char". Use the former to generate
562 offset_to_type_start and pass it and conversion_char to
563 check_format_types.
564 (check_format_info_main): Capture the start of the type
565 information as "type_start", and pass it an format_char
566 to arg_parser.check_argument_type.
567 (check_format_types): Provide an example in the leading comment.
568 Add params "offset_to_type_start" and "conversion_char"; pass
569 them to format_type_warning calls.
570 (test_get_modifier_for_format_len): Likewise.
571 (matching_type_p): New function.
572 (get_format_for_type): Add param "conversion_char" and move
573 implementation into...
574 (get_format_for_type_1): ...new function, called twice.
575 Use new function matching_type_p rather than checking for
576 TYPE_CANONICAL equality.
577 (get_corrected_substring): New function.
578 (format_type_warning): Provide an example in the leading comment.
579 Add params "offset_to_type_start" and "conversion_char". Replace
580 call to get_format_for_type with call to get_corrected_substring
581 and move rejection of hints for widths/precisions there.
582 (assert_format_for_type_streq): Add param "conversion_char".
583 (ASSERT_FORMAT_FOR_TYPE_STREQ): Add param CONVERSION_CHAR.
584 (test_get_format_for_type_printf): Add conversion chars to the
585 tests, adding coverage for various combinations of integer
586 vs double conversions, and for preserving octal and hexadecimal
587 conversions.
588 (test_get_format_for_type_scanf): Add conversion chars to the
589 tests.
590
5b28efbb
TV
5912016-09-10 Tom de Vries <tom@codesourcery.com>
592
593 PR C/71602
594 * c-common.c (build_va_arg): Handle more strict
595 targetm.canonical_va_list_type. Replace first argument type error with
596 assert.
597
3f0177e7
MS
5982016-09-09 Martin Sebor <msebor@redhat.com>
599
600 PR c/77520
601 PR c/77521
602 * c-format.c (argument_parser::find_format_char_info): Use %qc
603 format directive unconditionally.
604
af63ba4b
JM
6052016-09-09 Jason Merrill <jason@redhat.com>
606
607 Implement C++17 new of over-aligned types.
608 * c.opt: Add -faligned-new and -Waligned-new.
609 * c-common.c (max_align_t_align): Split out from...
610 (cxx_fundamental_alignment_p): ...here.
611 * c-common.h: Declare it.
612 * c-cppbuiltin.c (c_cpp_builtins): Handle aligned new.
613
c65248cb
JM
6142016-09-09 Joseph Myers <joseph@codesourcery.com>
615
616 * c-cppbuiltin.c (builtin_define_type_width): New function.
617 (builtin_define_stdint_macros, c_cpp_builtins): Define type width
618 macros.
619
e5106e27
DM
6202016-09-07 David Malcolm <dmalcolm@redhat.com>
621
622 * c-common.c (get_cpp_ttype_from_string_type): Handle being passed
623 a POINTER_TYPE.
624 (substring_loc::get_location): Move to substring-locations.c,
625 keeping implementation as...
626 (c_get_substring_location): New function, from the above, reworked
627 to use accessors rather than member lookup.
628 * c-common.h (class substring_loc): Move to substring-locations.h,
629 replacing with a forward decl.
630 (c_get_substring_location): New decl.
631 * c-format.c: Include "substring-locations.h".
632 (format_warning_va): Move to substring-locations.c.
633 (format_warning_at_substring): Likewise.
634
a42e7952
MS
6352016-09-06 Martin Sebor <msebor@redhat.com>
636
637 PR c/77336
638 * c-format.c (check_function_format): Avoid issuing warnings for
639 functions unless they call format functions with non-constant
640 format strings.
641
b772a565
RB
6422016-09-06 Richard Biener <rguenther@suse.de>
643
644 PR c/77450
645 * c-common.c (c_common_mark_addressable_vec): Handle
646 COMPOUND_LITERAL_EXPR.
647
25ff5dd3
MP
6482016-09-05 Marek Polacek <polacek@redhat.com>
649
650 PR c/77423
651 * c-common.c (bool_promoted_to_int_p): New function.
652 (expr_has_boolean_operands_p): New function.
653 (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p.
654 (maybe_warn_bool_compare): Use bool_promoted_to_int_p.
655
21234eb5
TV
6562016-09-04 Tom de Vries <tom@codesourcery.com>
657
658 revert:
659 2016-08-29 Tom de Vries <tom@codesourcery.com>
660
661 * c-common.c (build_va_arg): Replace first argument type error
662 with assert.
663
9dc5773f
JJ
6642016-09-02 Jakub Jelinek <jakub@redhat.com>
665
666 PR c/65467
667 * c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions.
668 (c_finish_omp_for): Reject _Atomic qualified iterators.
669
6702016-09-01 Martin Sebor <msebor@redhat.com>
3d7b83b6
MS
671
672 * c-ada-spec.c (dump_ada_function_declaration): Increase buffer
673 size to guarantee it fits the output of the formatted function
674 regardless of its arguments.
675
295844f6
MP
6762016-09-01 Marek Polacek <polacek@redhat.com>
677
678 PR c/7652
679 * c-common.c (resolve_overloaded_builtin): Fix formatting. Add
680 FALLTHRU comments.
681
3d06b6f2
MP
6822016-08-29 Marek Polacek <polacek@redhat.com>
683
684 PR c/77292
685 * c-common.c (warn_logical_not_parentheses): Don't warn for
686 a comparison or a logical operator.
687
34cedad5
TV
6882016-08-29 Tom de Vries <tom@codesourcery.com>
689
690 * c-common.c (build_va_arg): Fix type comparison assert.
691
f162d717
TV
6922016-08-29 Tom de Vries <tom@codesourcery.com>
693
694 * c-common.c (build_va_arg): Replace first argument type error
695 with assert.
696
ba9bbd6f
TV
6972016-08-29 Tom de Vries <tom@codesourcery.com>
698
699 PR c/77398
700 * c-common.c (build_va_arg): Add first argument error. Build va_arg
701 with error_mark_node as va_list instead of with illegal va_list.
702
ebef225f
MP
7032016-08-25 Marek Polacek <polacek@redhat.com>
704 David Malcolm <dmalcolm@redhat.com>
705
706 * c-common.c (warn_logical_not_parentheses): Print fixit hints.
707 * c-common.h (warn_logical_not_parentheses): Update declaration.
708
b00e6e75
MP
7092016-08-22 Marek Polacek <polacek@redhat.com>
710
711 PR c++/77321
712 * c-common.c (warn_for_memset): Check type for null.
713
6dc198e3
JM
7142016-08-22 Joseph Myers <joseph@codesourcery.com>
715
716 * c-family/c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and
717 _FloatNx types for suffixes for built-in functions.
718
c65699ef
JM
7192016-08-19 Joseph Myers <joseph@codesourcery.com>
720
721 PR c/32187
722 * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32)
723 (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X)
724 (RID_FLOAT128X): New enum rid values.
725 (CASE_RID_FLOATN_NX): New macro.
726 * c-common.c (c_common_reswords): Add _FloatN and _FloatNx
727 keywords.
728 (c_common_type_for_mode): Check for _FloatN and _FloatNx and
729 corresponding complex types.
730 (c_common_nodes_and_builtins): For non-C++, register _FloatN and
731 _FloatNx and corresponding complex types.
732 (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX.
733 * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN
734 and _FloatNx types for the widest type for determining
735 DECIMAL_DIG. Define __LDBL_DECIMAL_DIG__ as well as
736 __DECIMAL_DIG__ for long double. Handle FMA_SUFFIX being NULL.
737 (c_cpp_builtins): Call builtin_define_float_constants for _FloatN
738 and _FloatNx types.
739 * c-lex.c (interpret_float): Handle _FloatN and _FloatNx
740 constants.
741 * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and
742 _FloatNx types.
743
cc015f3a
DM
7442016-08-18 David Malcolm <dmalcolm@redhat.com>
745
746 * c-opts.c (c_diagnostic_finalizer): Update for change to
747 diagnostic_show_locus.
748
cb18fd07
DM
7492016-08-18 David Malcolm <dmalcolm@redhat.com>
750
751 * c-common.c: Include "spellcheck.h".
752 (cb_get_suggestion): New function.
753 * c-common.h (cb_get_suggestion): New decl.
754 * c-lex.c (init_c_lex): Initialize cb->get_suggestion to
755 cb_get_suggestion.
756
a76989dc
MP
7572016-08-18 Marek Polacek <polacek@redhat.com>
758
759 PR c/71514
760 * c-common.c (get_atomic_generic_size): Disallow pointer-to-function
761 and pointer-to-VLA.
762
65e736c0
DM
7632016-08-16 David Malcolm <dmalcolm@redhat.com>
764
765 PR c/72857
766 * c-common.c (substring_loc::get_range): Rename to...
767 (substring_loc::get_location): ...this, converting param from a
768 source_range * to a location_t *. Call
769 get_source_location_for_substring rather than
770 get_source_range_for_substring, and pass in m_caret_idx.
771 * c-common.h (substring_loc::substring_loc): Add param "caret_idx".
772 (substring_loc::get_range): Replace with...
773 (substring_loc::get_location): ...this.
774 (substring_loc::set_caret_index): New method.
775 (substring_loc): Add field m_caret_idx.
776 * c-format.c (format_warning_va): Update for above changes.
777 Rename local "substring_loc" to "fmt_substring_loc" to avoid
778 clashing with type name.
779 (format_warning_at_char): Add caret_idx param to substring_loc ctor.
780 (check_argument_type): Likewise.
781 (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc"
782 Use a copy when emitting warnings, setting the caret index from TYPE.
783
7e1dde14 7842016-08-16 Eric Botcazou <ebotcazou@adacore.com>
8e745a17 785 Arnaud Charlet <charlet@adacore.com>
7e1dde14
EB
786
787 * c-ada-spec.c (dump_number): New function.
788 (handle_escape_character): Likewise.
789 (print_ada_macros): Add handling of constant integers and strings.
790
191816a3
MP
7912016-08-12 Marek Polacek <polacek@redhat.com>
792
793 PR c/7652
794 * c-common.c (scalar_to_vector): Adjust fall through comment.
795 * c-opts.c (c_common_handle_option): Likewise.
796 * c-pragma.c (handle_pragma_pack): Add FALLTHRU.
797 * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust
798 fall through comment.
799 * cilk.c (extract_free_variables): Add FALLTHRU.
800
452df4a4
JM
8012016-08-10 Jason Merrill <jason@redhat.com>
802
803 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr.
804
f3365c12
JM
8052016-08-09 Jason Merrill <jason@redhat.com>
806
807 * c-common.c (c_common_attribute_table): vector_size affects type
808 identity.
809
f0bc3323
MP
8102016-08-09 Marek Polacek <polacek@redhat.com>
811
812 PR c/7652
813 * c-ada-spec.c (dump_generic_ada_node): Add return.
814
98e5a19a
JM
8152016-08-09 Jason Merrill <jason@redhat.com>
816
817 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for
818 C++17 constexpr lambdas.
819
895aa8e1
DM
8202016-08-08 David Malcolm <dmalcolm@redhat.com>
821
822 PR c/64955
823 * c-common.h (selftest::c_format_c_tests): New declaration.
824 (selftest::run_c_tests): New declaration.
825 * c-format.c: Include "selftest.h.
826 (format_warning_va): Add param "corrected_substring" and use
827 it to add a replacement fix-it hint.
828 (format_warning_at_substring): Likewise.
829 (format_warning_at_char): Update for new param of
830 format_warning_va.
831 (argument_parser::check_argument_type): Pass "fki" to
832 check_format_types.
833 (check_format_types): Add param "fki" and pass it to
834 format_type_warning.
835 (deref_n_times): New function.
836 (get_modifier_for_format_len): New function.
837 (selftest::test_get_modifier_for_format_len): New function.
838 (get_format_for_type): New function.
839 (format_type_warning): Add param "fki" and use it to attempt
840 to provide hints for argument types when calling
841 format_warning_at_substring.
842 (selftest::get_info): New function.
843 (selftest::assert_format_for_type_streq): New function.
844 (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro.
845 (selftest::test_get_format_for_type_printf): New function.
846 (selftest::test_get_format_for_type_scanf): New function.
847 (selftest::c_format_c_tests): New function.
848
e52ed3fe
DM
8492016-08-08 David Malcolm <dmalcolm@redhat.com>
850
851 PR c/52952
852 * c-format.c: Include "diagnostic.h".
853 (location_column_from_byte_offset): Delete.
854 (location_from_offset): Delete.
855 (format_warning_va): New function.
856 (format_warning_at_substring): New function.
857 (format_warning_at_char): New function.
858 (check_format_arg): Capture location of format_tree and pass to
859 check_format_info_main.
860 (argument_parser): Add fields "start_of_this_format" and
861 "format_string_cst".
862 (flag_chars_t::validate): Add param "format_string_cst". Convert
863 warning_at call using location_from_offset to call to
864 format_warning_at_char.
865 (argument_parser::argument_parser): Add param "format_string_cst_"
866 and use use it to initialize field "format_string_cst".
867 Initialize new field "start_of_this_format".
868 (argument_parser::read_format_flags): Convert warning_at call
869 using location_from_offset to a call to format_warning_at_char.
870 (argument_parser::read_any_format_left_precision): Likewise.
871 (argument_parser::read_any_format_precision): Likewise.
872 (argument_parser::read_any_other_modifier): Likewise.
873 (argument_parser::find_format_char_info): Likewise, in three places.
874 (argument_parser::parse_any_scan_set): Likewise, in one place.
875 (argument_parser::handle_conversions): Likewise, in two places.
876 (argument_parser::check_argument_type): Add param "fmt_param_loc"
877 and use it to make a substring_loc. Pass the latter to
878 check_format_types.
879 (check_format_info_main): Add params "fmt_param_loc" and
880 "format_string_cst". Convert warning_at calls using
881 location_from_offset to calls to format_warning_at_char. Pass the
882 new params to the arg_parser ctor. Pass "format_string_cst" to
883 flag_chars.validate. Pass "fmt_param_loc" to
884 arg_parser.check_argument_type.
885 (check_format_types): Convert first param from a location_t
886 to a const substring_loc & and rename to "fmt_loc". Attempt
887 to extract the range of the relevant parameter and pass it
888 to format_type_warning.
889 (format_type_warning): Convert first param from a location_t
890 to a const substring_loc & and rename to "fmt_loc". Add
891 params "param_range" and "type". Replace calls to warning_at
892 with calls to format_warning_at_substring.
893
1c4d457e
DM
8942016-08-08 David Malcolm <dmalcolm@redhat.com>
895
896 * c-format.c (class flag_chars_t): New class.
897 (struct length_modifier): New struct.
898 (class argument_parser): New class.
899 (flag_chars_t::flag_chars_t): New ctor.
900 (flag_chars_t::has_char_p): New method.
901 (flag_chars_t::add_char): New method.
902 (flag_chars_t::validate): New method.
903 (flag_chars_t::get_alloc_flag): New method.
904 (flag_chars_t::assignment_suppression_p): New method.
905 (argument_parser::argument_parser): New ctor.
906 (argument_parser::read_any_dollar): New method.
907 (argument_parser::read_format_flags): New method.
908 (argument_parser::read_any_format_width): New method.
909 (argument_parser::read_any_format_left_precision): New method.
910 (argument_parser::read_any_format_precision): New method.
911 (argument_parser::handle_alloc_chars): New method.
912 (argument_parser::read_any_length_modifier): New method.
913 (argument_parser::read_any_other_modifier): New method.
914 (argument_parser::find_format_char_info): New method.
915 (argument_parser::validate_flag_pairs): New method.
916 (argument_parser::give_y2k_warnings): New method.
917 (argument_parser::parse_any_scan_set): New method.
918 (argument_parser::handle_conversions): New method.
919 (argument_parser::check_argument_type): New method.
920 (check_format_info_main): Introduce classes argument_parser
921 and flag_chars_t, moving the code within the loop into methods
922 of these classes. Make various locals "const".
923
88fa5555
DM
9242016-08-05 David Malcolm <dmalcolm@redhat.com>
925
926 * c-common.c: Include "substring-locations.h".
927 (get_cpp_ttype_from_string_type): New function.
928 (g_string_concat_db): New global.
929 (substring_loc::get_range): New method.
930 * c-common.h (g_string_concat_db): New declaration.
931 (class substring_loc): New class.
932 * c-lex.c (lex_string): When concatenating strings, capture the
933 locations of all tokens using a new obstack, and record the
934 concatenation locations within g_string_concat_db.
935 * c-opts.c (c_common_init_options): Construct g_string_concat_db
936 on the ggc-heap.
937
78169471
MP
9382016-07-29 Marek Polacek <polacek@redhat.com>
939
638fc14f
MP
940 PR c/71926
941 * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the
942 parentheses warning.
943
78169471
MP
944 PR c/71574
945 * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL.
946
1225d6b1
ML
9472016-07-28 Martin Liska <mliska@suse.cz>
948
949 PR gcov-profile/68025
950 * c-common.c (handle_no_profile_instrument_function_attribute):
951
ec1e2a40
BE
9522016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
953
954 * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of
955 BITS_PER_UNIT_LOG.
956
5ec2cd9f
JM
9572016-07-25 Jason Merrill <jason@redhat.com>
958
959 PR c++/65970
960 * c.opt (fconstexpr-loop-limit): New.
961
9dc5773f 9622016-07-22 Martin Sebor <msebor@redhat.com>
2e6b45af
MS
963
964 PR c++/71675
965 * c-common.c (resolve_overloaded_builtin): Avoid converting
966 __atomic_compare_exchange_n return type to that of what its
967 first argument points to.
968
e3fe09c1
UB
9692016-07-22 Uros Bizjak <ubizjak@gmail.com>
970
971 * c-common.c: Use HOST_WIDE_INT_M1U instead of
972 ~(unsigned HOST_WIDE_INT) 0.
973
bc91c436
ML
9742016-07-22 Martin Liska <mliska@suse.cz>
975
976 PR gcov-profile/69028
977 PR gcov-profile/62047
978 * cilk.c (create_cilk_helper_decl): Set location of a new decl
979 to the current_function_decl.
980
451dcc66
JM
9812016-07-21 Jason Merrill <jason@redhat.com>
982
983 PR c++/65168
984 * c-common.c (c_common_truthvalue_conversion): Check
985 c_inhibit_evaluation_warnings for warning about address of
986 reference.
987
de6a69ee
DM
9882016-07-20 David Malcolm <dmalcolm@redhat.com>
989
990 * c-common.h (lookup_name_fuzzy): Convert return type from tree to
991 const char *.
992
d022c55a
JM
9932016-07-15 Jason Merrill <jason@redhat.com>
994
995 * c-opts.c (c_common_post_options): Update -fabi-version default to 11.
996
ddbbcb19
JJ
9972016-07-15 Jakub Jelinek <jakub@redhat.com>
998
999 PR c/71858
1000 * c-common.h (enum lookup_name_fuzzy_kind): Add
1001 FUZZY_LOOKUP_FUNCTION_NAME.
1002
d0cf395a
JM
10032016-07-08 Jason Merrill <jason@redhat.com>
1004
1005 P0145: Refining Expression Order for C++.
1006 * c.opts (-fargs-in-order): Rename to -fstrong-eval-order.
1007 * c-opts.c: Adjust.
1008
98d44e93
MT
10092016-07-05 Markus Trippelsdorf <markus@trippelsdorf.de>
1010
1011 PR c++/71214
1012 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.
1013
f9d8d994
TS
10142016-06-29 Thomas Schwinge <thomas@codesourcery.com>
1015
1016 * c-pragma.h (enum pragma_kind): Rename
1017 PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE. Adjust all
1018 users.
1019
4aa83879
RB
10202016-06-29 Richard Biener <rguenther@suse.de>
1021
1022 PR middle-end/71002
1023 * c-common.c (c_common_get_alias_set): Remove union type punning case.
1024
a25bd9e6
JM
10252016-06-24 Jason Merrill <jason@redhat.com>
1026
1027 P0145R2: Refining Expression Order for C++.
1028 * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of
1029 MODIFY_EXPR.
1030
a86451b9
JJ
10312016-06-24 Jakub Jelinek <jakub@redhat.com>
1032
1033 * c-common.c (check_builtin_function_arguments): Require last
1034 argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type.
1035 Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW
1036 if the last argument is pointer to enumerated or boolean type.
1037
1a4f11c8
DM
10382016-06-22 David Malcolm <dmalcolm@redhat.com>
1039
1040 PR c/70339
1041 * c-common.h (enum lookup_name_fuzzy_kind): New enum.
1042 (lookup_name_fuzzy): New prototype.
1043
fe55692c
JDA
10442016-06-21 John David Anglin <danglin@gcc.gnu.org>
1045
1046 * c-common.c (get_source_date_epoch): Use int64_t instead of long long.
1047
4eb24e01
JM
10482016-06-14 Jason Merrill <jason@redhat.com>
1049
1050 P0145R2: Refining Expression Order for C++.
1051 * c.opt (fargs-in-order): New.
1052 * c-opts.c (c_common_post_options): Adjust flag_args_in_order.
1053
ef7cf206
JJ
10542016-06-13 Jakub Jelinek <jakub@redhat.com>
1055
0dda258b
JJ
1056 PR sanitizer/71498
1057 * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
1058 all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.
1059
ef7cf206
JJ
1060 PR preprocessor/71183
1061 * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch
1062 to cb_get_source_date_epoch.
1063
50b15873
JJ
10642016-06-10 Jakub Jelinek <jakub@redhat.com>
1065
1066 PR c/68657
1067 * c.opt (Wpsabi): Add Warning flag.
1068
4d926e34
MS
10692016-06-10 Martin Sebor <msebor@redhat.com>
1070
1071 PR c/71392
1072 * gcc/c-family/c-common.c (handle_nonnull_attribute): Accept
1073 the nonnull attribute in type-generic builtins.
1074
e01b4e16
MS
10752016-06-09 Martin Sebor <msebor@redhat.com>
1076
1077 PR c/70883
1078 * c-common.c (builtin_function_validate_nargs): Make text of error
1079 message consistent with others like it.
1080
44a845ca
MS
10812016-06-08 Martin Sebor <msebor@redhat.com>
1082 Jakub Jelinek <jakub@redhat.com>
1083
1084 PR c++/70507
1085 PR c/68120
1086 * c-common.c (check_builtin_function_arguments): Handle
1087 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
1088
a80a7051
RB
10892016-06-08 Richard Biener <rguenther@suse.de>
1090
1091 * c-common.c (parse_optimize_options): Improve diagnostic messages.
1092
bfd67b47
RB
10932016-06-07 Richard Biener <rguenther@suse.de>
1094
1095 PR c/61564
1096 * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION
1097 options and warn about others.
1098
15c98b2e
ES
10992016-06-01 Eduard Sanou <dhole@openmailbox.org>
1100
1101 * c-common.c (get_source_date_epoch): Rename to
1102 cb_get_source_date_epoch.
1103 * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
1104 message when the parsing fails. Use error_at instead of fatal_error.
1105 * c-common.h (get_source_date_epoch): Rename to
1106 cb_get_source_date_epoch.
1107 * c-common.h (cb_get_source_date_epoch): Prototype.
1108 * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
1109 * c-common.h (c_omp_region_type): Remove trailing comma.
1110 * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
1111 * c-lex.c (c_lex_with_flags): Remove initialization of
1112 pfile->source_date_epoch.
1113
00631022
JJ
11142016-05-30 Jakub Jelinek <jakub@redhat.com>
1115
1116 PR c++/71349
1117 * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
1118 C_OMP_CLAUSE_SPLIT_TARGET. Put OMP_CLAUSE_NOWAIT to
1119 C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
1120 instead of C_OMP_CLAUSE_SPLIT_FOR.
1121
f17a223d
RB
11222016-05-24 Richard Biener <rguenther@suse.de>
1123
1124 PR middle-end/70434
1125 PR c/69504
1126 * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
1127 (convert_vector_to_array_for_subscript): ... this.
1128 * c-common.c (convert_vector_to_pointer_for_subscript): Use a
1129 VIEW_CONVERT_EXPR to an array type. Rename to ...
1130 (convert_vector_to_array_for_subscript): ... this.
1131
4f2e1536
MP
11322016-05-12 Marek Polacek <polacek@redhat.com>
1133
1134 PR c/70756
1135 * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
1136 size_in_bytes and pass LOC to it.
1137
d6e83a8d
MM
11382016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
1139
1140 PR c/43651
1141 * c.opt (Wduplicate-decl-specifier): New option.
1142
5c3a10fb
MP
11432016-05-11 Marek Polacek <polacek@redhat.com>
1144
1145 PR c++/71024
1146 * c-common.c (diagnose_mismatched_attributes): New function.
1147 * c-common.h (diagnose_mismatched_attributes): Declare.
1148
deef7113
MP
11492016-05-04 Marek Polacek <polacek@redhat.com>
1150
1151 * c.opt (Wdangling-else): New option.
1152
79ce98bc
MP
11532016-05-03 Marek Polacek <polacek@redhat.com>
1154
1155 PR c/70859
1156 * c-common.c (builtin_function_validate_nargs): Add location
1157 parameter. Use it.
1158 (check_builtin_function_arguments): Add location and arguments
1159 parameters. Use them.
1160 * c-common.h (check_builtin_function_arguments): Update declaration.
1161
381cdae4
RB
11622016-05-03 Richard Biener <rguenther@suse.de>
1163
1164 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
1165 allow call args to gimplify to SSA names.
1166
1d793c34
MP
11672016-05-03 Marek Polacek <polacek@redhat.com>
1168
1169 * c-common.h (enum c_omp_region_type): Remove stray comma.
1170
77886428
CP
11712016-05-02 Cesar Philippidis <cesar@codesourcery.com>
1172
1173 * c-common.h (enum c_omp_region_type): Define.
1174
697e0b28
RS
11752016-05-02 Richard Sandiford <richard.sandiford@arm.com>
1176
1177 * c-common.c (shorten_compare): Use wi::to_wide.
1178
e7ff0319
CP
11792016-04-29 Cesar Philippidis <cesar@codesourcery.com>
1180
1181 PR middle-end/70626
1182 * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
1183 * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
1184 reduction clauses in acc parallel loops.
1185
2fff3db8
MP
11862016-04-29 Marek Polacek <polacek@redhat.com>
1187
1188 PR c/70852
1189 * c-common.c (warn_for_memset): Check domain before accessing it.
1190
509063eb
DV
11912016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
1192
1193 PR/69089
1194 * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
1195 "aligned" attribute.
1196
b632761d
JM
11972016-04-28 Jason Merrill <jason@redhat.com>
1198
1199 * c-lex.c (c_common_has_attribute): Handle nodiscard.
1200
174f6622
ES
12012016-04-28 Eduard Sanou <dhole@openmailbox.org>
1202 Matthias Klose <doko@debian.org>
1203
1204 * c-common.c (get_source_date_epoch): New function, gets the environment
1205 variable SOURCE_DATE_EPOCH and parses it as long long with error
1206 handling.
1207 * c-common.h (get_source_date_epoch): Prototype.
1208 * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
1209
6bc2bb18
RB
12102015-04-27 Ryan Burn <contact@rnburn.com>
1211
1212 PR c++/69024
1213 PR c++/68997
1214 * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
1215 (cilk_recognize_spawn): Renamed from recognize_spawn and change to
1216 external linkage.
1217 (cilk_detect_and_unwrap): Corresponding changes.
1218 (extract_free_variables): Don't extract free variables from
1219 AGGR_INIT_EXPR slot.
1220 * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
1221 (cilk_recognize_spawn): Likewise.
1222
c1e1f433
BS
12232016-04-27 Bernd Schmidt <bschmidt@redhat.com>
1224
1225 * c.opt (Wmemset-elt-size): New option.
1226 * c-common.c (warn_for_memset): New function.
1227 * c-common.h (warn_for_memset): Declare.
1228
d067e05f
JM
12292016-04-25 Jason Merrill <jason@redhat.com>
1230
1231 * c-common.c (handle_unused_attribute): Accept CONST_DECL.
1232 No longer static.
1233 * c-common.h: Declare it.
1234 * c-lex.c (c_common_has_attribute): Add maybe_unused.
1235
9aa36ae5
JM
12362016-04-22 Jason Merrill <jason@redhat.com>
1237
1238 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
1239
477d4906
IV
12402016-04-20 Ilya Verbin <ilya.verbin@intel.com>
1241
1242 PR c++/69363
1243 * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
1244 * c-common.h (c_finish_cilk_clauses): Remove declaration.
1245
fe37c7af
MM
12462016-04-18 Michael Matz <matz@suse.de>
1247
1248 * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
1249 and SET_DECL_ALIGN.
1250
23f2660f
EB
12512016-04-17 Eric Botcazou <ebotcazou@adacore.com>
1252
1253 * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
1254 (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
1255 to incomplete types.
1256 (dump_nested_type): Remove redundant tests and tidy up.
1257 (print_ada_declaration): Also set TREE_VISITED on the declaration of
1258 a type which is the typedef of an original type.
1259
1e77281b
MP
12602016-04-15 Marek Polacek <polacek@redhat.com>
1261
1262 PR c/70651
1263 * c-common.c (build_va_arg): Change two asserts into errors and return
1264 error_mark_node.
1265
b3a77f21
MP
12662016-04-13 Marek Polacek <polacek@redhat.com>
1267
1268 PR c++/70639
1269 * c-indentation.c (should_warn_for_misleading_indentation): Bail out
1270 for switch statements, too.
1271
322b8466
JM
12722016-03-28 Jason Merrill <jason@redhat.com>
1273
1274 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
1275
fbdb6baf
MP
12762016-03-23 Marek Polacek <polacek@redhat.com>
1277
1278 PR c++/69884
1279 * c.opt (Wignored-attributes): New option.
1280
5c240f4d
DM
12812016-03-22 David Malcolm <dmalcolm@redhat.com>
1282
1283 PR c/69993
1284 * c-indentation.c (warn_for_misleading_indentation): Rewrite the
1285 diagnostic text, reversing the order of the warning and note so
1286 that they appear in source order.
1287
14ba7b28
MP
12882016-03-17 Marek Polacek <polacek@redhat.com>
1289
1290 PR c/69407
1291 * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
1292 operations.
1293
08a1cadc
JM
12942016-03-14 Jason Merrill <jason@redhat.com>
1295
2aaeea19
JM
1296 * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
1297
08a1cadc
JM
1298 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
1299
c06d25bb
RB
13002016-03-09 Richard Biener <rguenther@suse.de>
1301
1302 PR c/70143
1303 * c-common.c (strict_aliasing_warning): Add back
1304 alias_sets_conflict_p check.
1305
80aac5c8
JM
13062016-03-08 Jason Merrill <jason@redhat.com>
1307
1308 * c-opts.c (set_std_cxx1z): Don't enable concepts.
1309
64b23c13
DM
13102016-03-04 David Malcolm <dmalcolm@redhat.com>
1311
1312 PR c/68187
1313 * c-indentation.c (get_visual_column): Move code to determine next
1314 tab stop to...
1315 (next_tab_stop): ...this new function.
1316 (line_contains_hash_if): Delete function.
1317 (detect_preprocessor_logic): Delete function.
1318 (get_first_nws_vis_column): New function.
1319 (detect_intervening_unindent): New function.
1320 (should_warn_for_misleading_indentation): Replace call to
1321 detect_preprocessor_logic with a call to
1322 detect_intervening_unindent.
1323
729526f5
DM
13242016-03-04 David Malcolm <dmalcolm@redhat.com>
1325
1326 PR c/68187
1327 * c-indentation.c (should_warn_for_misleading_indentation): When
1328 suppressing warnings about cases where the guard and body are on
1329 the same column, only use the first non-whitespace column in place
1330 of the guard token column when dealing with "else" clauses.
1331 When rejecting aligned BODY and NEXT, loosen the requirement
1332 from equality with the first non-whitespace of guard to simply
1333 that they not be indented relative to it.
1334
e9a35493
RB
13352016-03-04 Richard Biener <rguenther@suse.de>
1336
1337 PR c++/70054
1338 * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
1339 instead of alias_sets_conflict_p.
1340
1be56bc5
MP
13412016-03-01 Marek Polacek <polacek@redhat.com>
1342
1343 PR c++/69795
1344 * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
1345 any DECL.
1346
35886f0b
MS
13472016-02-22 Martin Sebor <msebor@redhat.com>
1348
1349 PR middle-end/69780
1350 * c-common.c (check_builtin_function_arguments): Validate and
1351 reject invalid arguments to __builtin_alloca_with_align.
1352
4246c8da
MW
13532016-02-20 Mark Wielaard <mjw@redhat.com>
1354
1355 PR c/28901
1356 * c.opt (Wunused-const-variable): Turn into Alias for...
1357 (Wunused-const-variable=): New option.
1358
268be88c
BE
13592016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
1360
1361 PR c++/69865
1362 * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
1363 here...
1364 (c_common_init_options): ...to here.
1365 (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
1366
871b3f47
JJ
13672016-02-19 Jakub Jelinek <jakub@redhat.com>
1368
1369 PR c++/69826
1370 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
1371 (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
1372 flag_preprocess_only.
1373
bf14eba2
JJ
13742016-02-16 Jakub Jelinek <jakub@redhat.com>
1375
1376 PR c/69835
1377 * c.opt (Wnonnull-compare): Enable for -Wall.
1378
ba6b3795
JJ
13792016-02-15 Jakub Jelinek <jakub@redhat.com>
1380
1381 PR c++/69797
1382 * c-common.c (sync_resolve_size): Diagnose too few arguments
1383 even when params is non-NULL empty vector.
1384
a011cd92
BS
13852016-02-08 Bernd Schmidt <bschmidt@redhat.com>
1386
1387 PR target/60410
1388 * c.opt (fshort-double): Remove.
1389
46cb9332
MS
13902016-02-05 Martin Sebor <msebor@redhat.com>
1391
1392 PR c++/69662
1393 * c.opt (Warning options): Update -Wplacement-new to take
1394 an optional argument.
1395
e1b81f2b
JJ
13962016-02-01 Jakub Jelinek <jakub@redhat.com>
1397
1398 PR preprocessor/69543
1399 PR c/69558
1400 * c-pragma.c (handle_pragma_diagnostic): Pass input_location
1401 instead of loc to control_warning_option.
1402
b6adbb9f
NS
14032016-02-01 Nathan Sidwell <nathan@codesourcery.com>
1404
1405 * c.opt (fopenacc-dim=): New option.
1406
5d70666e
RB
14072016-01-27 Ryan Burn <contact@rnburn.com>
1408
1409 PR cilkplus/69267
1410 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
1411 gimplify_arg. Removed superfluous post_p argument.
1412 * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
1413 superfluous post_p argument.
1414 * c-gimplify.c (c_gimplify_expr): Likewise.
1415
01e1dea3
DM
14162016-01-26 David Malcolm <dmalcolm@redhat.com>
1417
1418 PR other/69006
1419 * c-opts.c (c_diagnostic_finalizer): Replace invocation of
1420 pp_newline_and_flush with pp_flush.
1421
9f04a53e
MS
14222016-01-20 Martin Sebor <msebor@redhat.com>
1423
1424 PR c/69405
1425 * c-common.c (sync_resolve_size): Avoid printing diagnostic about
1426 an incompatible argument when the argument isn't a valid tree node.
1427
7f26f7df
JM
14282016-01-18 Jason Merrill <jason@redhat.com>
1429
1430 PR c++/68767
1431 * c-common.c (check_function_arguments_recurse): Fold the whole
1432 COND_EXPR, not just the condition.
1433
f62bf092
TV
14342016-01-18 Tom de Vries <tom@codesourcery.com>
1435
1436 * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
1437 classify as loop clause.
1438
e0a575ff
JJ
14392016-01-15 Jakub Jelinek <jakub@redhat.com>
1440
1441 PR bootstrap/68271
1442 * c-pragma.c (c_register_pragma_1): Adjust comment to note that
1443 C++ FE no longer has limit on number of pragmas.
1444
14452015-01-14 Ryan Burn <contact@rnburn.com>
b6e3db06
RB
1446
1447 PR c++/69048
1448 * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
c47eaca6 1449 to add missing cleanup point.
b6e3db06 1450
c7df95d8
DM
14512016-01-14 David Malcolm <dmalcolm@redhat.com>
1452
1453 PR c++/68819
1454 * c-indentation.c (get_visual_column): Add location_t param.
1455 Handle the column number being zero by effectively disabling the
1456 warning, with an "inform".
1457 (should_warn_for_misleading_indentation): Add location_t argument
1458 for all uses of get_visual_column.
1459
21efdd80
PP
14602016-01-10 Patrick Palka <ppalka@gcc.gnu.org>
1461
1462 PR c++/69029
1463 * c-indentation.c (should_warn_for_misleading_indentation):
1464 Don't warn about do-while statements.
1465
7a127fa7
MS
14662016-01-07 Martin Sebor <msebor@redhat.com>
1467
1468 PR c/68966
1469 * c-common.c (sync_resolve_size): Reject first argument when it's
1470 a pointer to _Bool.
1471
c589e975
DM
14722016-01-05 David Malcolm <dmalcolm@redhat.com>
1473
1474 PR c/69122
1475 * c-indentation.c (get_visual_column): Remove default argument.
1476 (should_warn_for_misleading_indentation): For the multiline case,
1477 update call to get_visual_column for next_stmt_exploc so that it
1478 captures the location of the first non-whitespace character in the
1479 relevant line. Don't issue warnings if there is non-whitespace
1480 before the next statement.
1481
818ab71a
JJ
14822016-01-04 Jakub Jelinek <jakub@redhat.com>
1483
1484 Update copyright years.
1485
745e411d
DM
14862015-12-21 David Malcolm <dmalcolm@redhat.com>
1487
1488 * c-common.c (binary_op_error): Convert first param from
1489 location_t to rich_location * and use it when emitting an error.
1490 * c-common.h (binary_op_error): Convert first param from
1491 location_t to rich_location *.
1492
de67c4c3
DM
14932015-12-16 David Malcolm <dmalcolm@redhat.com>
1494
1495 * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
1496 * c-lex.c (conflict_marker_get_final_tok_kind): New function.
1497
4a38b02b
IV
14982015-12-15 Ilya Verbin <ilya.verbin@intel.com>
1499
1500 * c-common.c (c_common_attribute_table): Handle "omp declare target
1501 link" attribute.
1502
54d62f51
JJ
15032015-12-14 Jakub Jelinek <jakub@redhat.com>
1504
1505 PR c/68833
1506 * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
1507
8d4227c8
TB
15082014-12-12 Tobias Burnus <burnus@net-b.de>
1509
1510 PR fortran/68815
1511 * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
1512 specifiers (%d, %i,%u and %c).
1513
f6069ccc
DM
15142015-12-10 David Malcolm <dmalcolm@redhat.com>
1515
1516 * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
1517
63bbf46d
JJ
15182015-12-08 Jakub Jelinek <jakub@redhat.com>
1519
1520 PR c/48088
1521 PR c/68657
1522 * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
1523 * c-pragma.c (handle_pragma_diagnostic): Adjust
1524 control_warning_option caller.
1525
f79520bb
DM
15262015-12-07 David Malcolm <dmalcolm@redhat.com>
1527
1528 * c-common.c (c_cpp_error): Update for change to
1529 rich_location::set_range.
1530
b3d5bc62
JJ
15312015-12-04 Paolo Bonzini <bonzini@gnu.org>
1532
1533 * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
1534 shifting 1 out of the sign bit.
1535
15362015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
1537
1538 * c-common.c (c_common_attribute_table[]): Update max arguments
1539 count for "simd" attribute.
1540 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
1541
6eb4a537
JJ
15422015-12-03 Jakub Jelinek <jakub@redhat.com>
1543
1544 PR preprocessor/57580
1545 * c-ppoutput.c (print): Change printed field to bool.
1546 Move src_file last for smaller padding.
1547 (init_pp_output): Set print.printed to false instead of 0.
1548 (scan_translation_unit): Fix up formatting. Set print.printed
1549 to true after printing something other than newline.
1550 (scan_translation_unit_trad): Set print.printed to true instead of 1.
1551 (maybe_print_line_1): Set print.printed to false instead of 0.
1552 (print_line_1): Likewise.
1553 (do_line_change): Set print.printed to true instead of 1.
1554 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
1555 dump_macro): Set print.printed to false after printing newline.
1556
4250754e
JM
15572015-12-02 Jason Merrill <jason@redhat.com>
1558
f479b43d
JM
1559 * c-common.c (fold_for_warn): New.
1560 (warn_logical_operator, warn_tautological_cmp)
1561 (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
1562
4250754e
JM
1563 * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
1564 (c_fully_fold_internal, decl_constant_value_for_optimization):
1565 Move to c/c-fold.c.
1566 * c-common.h: Don't declare decl_constant_value_for_optimization.
1567
e9e32ee6
JM
15682015-12-02 Joseph Myers <joseph@codesourcery.com>
1569
1570 PR c/68162
1571 * c-common.h (c_build_qualified_type): Add extra default
1572 arguments.
1573
37d5ad46
JB
15742015-12-01 Julian Brown <julian@codesourcery.com>
1575 Cesar Philippidis <cesar@codesourcery.com>
1576 James Norris <James_Norris@mentor.com>
1577
1578 * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
1579 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
1580 (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
1581
f07862c7
EB
15822015-11-30 Eric Botcazou <ebotcazou@adacore.com>
1583
1584 * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
1585 (decl_sloc_common): Delete and move bulk of processing to...
1586 (decl_sloc): ...here.
1587 (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
1588 (dump_ada_double_name): Remove S parameter and compute the suffix.
1589 (dump_ada_array_type): Add PARENT parameter. Simplify computation of
1590 element type and deal with an anonymous one.
1591 (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
1592 (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type
1593 and remove reference to QUAL_UNION_TYPE.
1594 (dump_nested_types): Make 2 passes on the fields and move bulk to...
1595 (dump_nested_type): ...here. New function extracted from above.
1596 Generate a full declaration for anonymous element type of arrays.
1597 (print_ada_declaration): Really skip anonymous declarations. Remove
1598 references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type.
1599 Clean up processing of declarations of array types and objects.
1600 (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
1601 Remove obsolete code and tidy up.
1602
75c8aac3
JH
16032015-11-29 Jan Hubicka <hubicka@ucw.cz>
1604
1605 PR c/67581
1606 * c-common.c (handle_transparent_union_attribute): Update
1607 also type variants.
1608
b58d3df2
ML
16092015-11-27 Martin Liska <mliska@suse.cz>
1610
1611 PR c++/68312
1612 * array-notation-common.c (cilkplus_extract_an_triplets):
1613 Release vector of vectors.
1614 * cilk.c (gimplify_cilk_spawn): Free allocated memory.
1615
89a01fcf
EB
16162015-11-26 Eric Botcazou <ebotcazou@adacore.com>
1617
1618 PR c++/68527
1619 * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
1620 (print_ada_struct_decl): Likewise.
1621
cc5c5226
IZ
16222015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
1623
1624 PR c++/68001
1625 * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
1626 * cilk.c (recognize_spawn): Determine location in a more precise
1627 way.
1628
269adb9d
JM
16292015-11-19 Jason Merrill <jason@redhat.com>
1630
1631 * c-common.c (shorten_compare): But look through macros from
1632 system headers.
1633
d0eccfcd
JM
16342015-11-18 Jason Merrill <jason@redhat.com>
1635
1636 * c-common.c (shorten_compare): Don't -Wtype-limits if the
1637 non-constant operand comes from a macro.
1638
3e44547c
JM
16392015-11-17 Jason Merrill <jason@redhat.com>
1640
1641 PR bootstrap/68346
1642 * c-common.c (warn_tautological_cmp): Fold before checking for
1643 constants.
1644
0f62c7a0
MP
16452015-11-16 Marek Polacek <polacek@redhat.com>
1646
1647 PR c++/68362
1648 * c-common.c (check_case_bounds): Fold low and high cases.
1649
a868811e
MP
16502015-11-16 Marek Polacek <polacek@redhat.com>
1651
1652 * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
1653 * c-common.c (c_common_get_alias_set): Likewise.
1654 (handle_visibility_attribute): Likewise.
1655
fff77217
KY
16562015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
1657
1658 * c-common.c (handle_simd_attribute): New.
1659 (struct attribute_spec): Add entry for "simd".
1660 (handle_simd_attribute): New.
1661
269e63b7
KT
16622015-11-13 Kai Tietz <ktietz70@googlemail.com>
1663
1664 * c-lex.c (interpret_float): Use fold_convert.
1665
ebedc9a3
DM
16662015-11-13 David Malcolm <dmalcolm@redhat.com>
1667
1668 * c-common.c (c_fully_fold_internal): Capture existing souce_range,
1669 and store it on the result.
1670 * c-opts.c (c_common_init_options): Set
1671 global_dc->colorize_source_p.
1672
6e232ba4
JN
16732015-11-12 James Norris <jnorris@codesourcery.com>
1674 Joseph Myers <joseph@codesourcery.com>
1675
1676 * c-pragma.c (oacc_pragmas): Add entry for declare directive.
1677 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
1678 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
1679 PRAGMA_OACC_CLAUSE_LINK.
1680
e78bede6
MP
16812015-11-11 Marek Polacek <polacek@redhat.com>
1682
1683 PR c/68107
1684 PR c++/68266
1685 * c-common.c (valid_array_size_p): New function.
1686 * c-common.h (valid_array_size_p): Declare.
1687
3f8257db 16882015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
4ac93c7c
DH
1689
1690 PR bootstrap/68271
1691 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
1692
69f293c9
AM
16932015-11-11 Andrew MacLeod <amacleod@redhat.com>
1694
1695 * array-notation-common.c: Remove unused header files.
1696 * c-ada-spec.c: Likewise.
1697 * c-cilkplus.c: Likewise.
1698 * c-common.c: Likewise.
1699 * c-cppbuiltin.c: Likewise.
1700 * c-dump.c: Likewise.
1701 * c-format.c: Likewise.
1702 * c-gimplify.c: Likewise.
1703 * c-indentation.c: Likewise.
1704 * c-lex.c: Likewise.
1705 * c-omp.c: Likewise.
1706 * c-opts.c: Likewise.
1707 * c-pch.c: Likewise.
1708 * c-ppoutput.c: Likewise.
1709 * c-pragma.c: Likewise.
1710 * c-pretty-print.c: Likewise.
1711 * c-semantics.c: Likewise.
1712 * c-ubsan.c: Likewise.
1713 * cilk.c: Likewise.
1714 * stub-objc.c: Likewise.
1715
3a40d81d
NS
17162015-11-09 Thomas Schwinge <thomas@codesourcery.com>
1717 Cesar Philippidis <cesar@codesourcery.com>
1718 James Norris <jnorris@codesourcery.com>
1719 Julian Brown <julian@codesourcery.com>
1720 Nathan Sidwell <nathan@codesourcery.com>
1721
1722 * c-pragma.c (oacc_pragmas): Add "routine".
1723 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
1724
ee45a32d
EB
17252015-11-08 Eric Botcazou <ebotcazou@adacore.com>
1726
1727 * c-common.c (c_common_attributes): Add scalar_storage_order.
1728 (handle_scalar_storage_order_attribute): New function.
1729 * c-pragma.c (global_sso): New variable.
1730 (maybe_apply_pragma_scalar_storage_order): New function.
1731 (handle_pragma_scalar_storage_order): Likewise.
1732 (init_pragma): Register scalar_storage_order.
1733 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
1734 * c.opt (Wscalar-storage-order): New warning.
1735 (fsso-struct=): New option.
1736
eb11eb15
MS
17372015-11-08 Martin Sebor <msebor@redhat.com>
1738
1739 * c.opt (Wplacement-new): Add a period to the end of a sentence.
1740
0aad0198
RS
17412015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1742
1743 * c-common.c: Don't undef DEF_BUILTIN.
1744
8a645150
DM
17452015-11-06 David Malcolm <dmalcolm@redhat.com>
1746
1747 * c-common.c (c_cpp_error): Convert parameter from location_t to
1748 rich_location *. Eliminate the "column_override" parameter and
1749 the call to diagnostic_override_column.
1750 Update the "done_lexing" clause to set range 0
1751 on the rich_location, rather than overwriting a location_t.
1752 * c-common.h (c_cpp_error): Convert parameter from location_t to
1753 rich_location *. Eliminate the "column_override" parameter.
1754
7a5e4956
CP
17552015-11-05 Cesar Philippidis <cesar@codesourcery.com>
1756 Thomas Schwinge <thomas@codesourcery.com>
1757 James Norris <jnorris@codesourcery.com>
1758
1759 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
1760 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
1761 clauses with parallel and kernels and loops.
1762 * c-pragma.h (enum pragma_omp_clause): Add entries for
1763 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
1764 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
1765 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
1766 INDEPENDENT,SEQ}.
1767 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
1768
e2f5cc96
MS
17692015-11-05 Martin Sebor <msebor@redhat.com>
1770
1771 PR c++/67942
1772 * c.opt (-Wplacement-new): New option.
1773
e01d41e5
JJ
17742015-11-05 Jakub Jelinek <jakub@redhat.com>
1775
1776 * c-common.h (c_finish_omp_atomic): Add TEST argument.
1777 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
1778 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
1779 save_expr or create_tmp_var* if TEST is true.
1780 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
1781 Don't call add_stmt here.
1782 (struct c_omp_check_loop_iv_data): New type.
1783 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
1784 c_omp_check_loop_iv_exprs): New functions.
1785 (c_omp_split_clauses): Adjust for lastprivate being allowed on
1786 distribute.
1787 (c_omp_declare_simd_clauses_to_numbers): Change
1788 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
1789 (c_omp_declare_simd_clauses_to_decls): Similarly change those
1790 from numbers to PARM_DECLs.
1791
595278be
MM
17922015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
1793
1794 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
1795 flag_checking.
1796
3f8257db 17972015-11-03 Bernd Schmidt <bschmidt@redhat.com>
c85158de
MS
1798
1799 PR c++-common/67882
b3d5bc62
JJ
1800 * c-common.h (fold_offsetof_1): Add argument.
1801 * c-common.c (fold_offsetof_1): Diagnose more invalid
c85158de
MS
1802 offsetof expressions that reference elements past the end of
1803 an array.
1804
4bf9e5a8
TS
18052015-11-03 Thomas Schwinge <thomas@codesourcery.com>
1806 Chung-Lin Tang <cltang@codesourcery.com>
1807
1808 * c-pragma.c (oacc_pragmas): Add "atomic".
1809 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
1810
3b1661a9
ES
18112015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
1812
1813 * c-common.c (handle_target_clones_attribute): New.
1814 (c_common_attribute_table): Add handle_target_clones_attribute.
1815 (handle_always_inline_attribute): Add check on target_clones attribute.
1816 (handle_target_attribute): Ditto.
1817
2adfab87
AM
18182015-10-29 Andrew MacLeod <amacleod@redhat.com>
1819
1820 * array-notation-common.c: Reorder #include's and remove duplicates.
1821 * c-ada-spec.c: Likewise.
1822 * c-cilkplus.c: Likewise.
1823 * c-common.c: Likewise.
1824 * c-cppbuiltin.c: Likewise.
1825 * c-dump.c: Likewise.
1826 * c-format.c: Likewise.
1827 * c-gimplify.c: Likewise.
1828 * c-indentation.c: Likewise.
1829 * c-lex.c: Likewise.
1830 * c-omp.c: Likewise.
1831 * c-opts.c: Likewise.
1832 * c-pch.c: Likewise.
1833 * c-ppoutput.c: Likewise.
1834 * c-pragma.c: Likewise.
1835 * c-pretty-print.c: Likewise.
1836 * c-semantics.c: Likewise.
1837 * c-ubsan.c: Likewise.
1838 * cilk.c: Likewise.
1839 * stub-objc.c: Likewise.
1840
d90ec4f2
JM
18412015-10-28 Jason Merrill <jason@redhat.com>
1842
1843 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
1844
88bae6f4
TS
18452015-10-27 Thomas Schwinge <thomas@codesourcery.com>
1846 James Norris <jnorris@codesourcery.com>
1847 Cesar Philippidis <cesar@codesourcery.com>
1848
1849 PR c/64765
1850 PR c/64880
1851 * c-common.h (c_oacc_split_loop_clauses): Declare function.
1852 * c-omp.c (c_oacc_split_loop_clauses): New function.
1853
b1726d6c
MS
18542015-10-21 Martin Sebor <msebor@redhat.com>
1855
1856 PR driver/68043
1857 * c.opt: End each sentence that describes an option with a period.
1858
fa60eeb9
MP
18592015-10-20 Marek Polacek <polacek@redhat.com>
1860
1861 * array-notation-common.c (is_cilkplus_vector_p): Define.
1862 * c-common.h (is_cilkplus_vector_p): Declare.
1863
95979049
MP
18642015-10-20 Marek Polacek <polacek@redhat.com>
1865
1866 * c.opt (std=gnu++11): Do not describe as experimental.
1867 (std=gnu++14): Likewise.
1868
2a9fb712
JM
18692015-10-19 Jason Merrill <jason@redhat.com>
1870
1871 * c-cppbuiltin.c (c_cpp_builtins): Define
1872 __cpp_nontype_template_args.
1873
13b380a3
JM
18742015-10-19 Jason Merrill <jason@redhat.com>
1875
1876 * c-cppbuiltin.c (c_cpp_builtins): Define
1877 __cpp_enumerator_attributes, __cpp_fold_expressions,
1878 __cpp_unicode_characters.
1879
d9a6bd32
JJ
18802015-10-13 Jakub Jelinek <jakub@redhat.com>
1881 Aldy Hernandez <aldyh@redhat.com>
1882
1883 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
1884 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
1885 (c_define_builtins): Likewise.
1886 * c-common.h (enum c_omp_clause_split): Add
1887 C_OMP_CLAUSE_SPLIT_TASKLOOP.
1888 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
1889 (c_finish_omp_for): Add ORIG_DECLV argument.
1890 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
1891 201511 instead of 201307.
1892 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
1893 OMP_CRITICAL_CLAUSES to it.
1894 (c_finish_omp_ordered): Add CLAUSES argument, set
1895 OMP_ORDERED_CLAUSES to it.
1896 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
1897 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
1898 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
1899 constructs and new OpenMP 4.5 clauses. Clear
1900 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
1901 verification code.
1902 * c-pragma.c (omp_pragmas_simd): Add taskloop.
1903 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
1904 (enum pragma_omp_clause): Add
1905 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
1906 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
1907
624d31fe
RS
19082015-10-05 Richard Sandiford <richard.sandiford@arm.com>
1909
1910 * c-lex.c (interpret_float): Use real_equal instead of
1911 REAL_VALUES_EQUAL.
1912
b8fd7909
JM
19132015-10-04 Jason Merrill <jason@redhat.com>
1914
1915 Implement N4514, C++ Extensions for Transactional Memory.
1916 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
1917 (c_common_attribute_table): Add transaction_safe_dynamic.
1918 transaction_safe now affects type identity.
1919 (handle_tm_attribute): Handle transaction_safe_dynamic.
1920 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
1921 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
1922 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
1923 (D_TRANSMEM): New.
1924 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
1925 * c-pretty-print.c (pp_c_attributes_display): Don't print
1926 transaction_safe in C++.
1927
12651878
MP
19282015-10-02 Marek Polacek <polacek@redhat.com>
1929
1930 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
1931
3e3b8d63
MP
19322015-10-02 Marek Polacek <polacek@redhat.com>
1933
1934 PR c/64249
1935 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
1936 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
1937 * c.opt (Wduplicated-cond): New option.
1938
0d1a8f75
JM
19392015-10-01 Joseph Myers <joseph@codesourcery.com>
1940
1941 * c.opt (std=c11): Do not describe as experimental.
1942 (std=gnu11): Likewise.
1943 (std=iso9899:2011): Likewise.
1944
3e32ee19
NS
19452015-09-28 Nathan Sidwell <nathan@codesourcery.com>
1946
1947 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
1948 (DEF_FUNCTION_TYPE_VAR_11): Delete.
1949
974348ee
MP
19502015-09-25 Marek Polacek <polacek@redhat.com>
1951
1952 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
1953 (ubsan_instrument_shift): Likewise.
1954
15dbc1a6
MP
19552015-09-25 Marek Polacek <polacek@redhat.com>
1956
1957 PR sanitizer/64906
1958 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
1959
6b95d7cc
PP
19602015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
1961
1962 * c-indentation.c (should_warn_for_misleading_indentation):
1963 Compare next_stmt_vis_column with guard_line_first_nws instead
1964 of with guard_line_vis_column.
1965
c1822f9c
MLI
19662015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
1967
1968 PR c/49654
1969 PR c/49655
1970 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
1971 options and options not valid for the current language.
1972
d5398058
PP
19732015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
1974
1975 * c-indentation.c (should_warn_for_misleading_indentation):
1976 Float out and consolidate the calls to get_visual_column that
1977 are passed guard_exploc as an argument. Compare
1978 next_stmt_vis_column with guard_line_first_nws instead of with
1979 body_line_first_nws.
1980
6b333269
NS
19812015-09-22 Nathan Sidwell <nathan@codesourcery.com>
1982
1983 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
1984 Wnamespaces): New C++ warnings.
1985
a75f1574
JM
19862015-09-22 Jason Merrill <jason@redhat.com>
1987
1988 * c-common.h (abi_compat_version_crosses): New.
1989 (warn_abi_version): Declare.
1990 * c-common.c: Define it.
1991 * c-opts.c (c_common_post_options): Handle it.
1992 flag_abi_compat_version defaults to 8.
1993
bdaaa8b7
VV
19942015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
1995
1996 Complete the implementation of N4230, Nested namespace definition.
1997 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
1998 __cpp_nested_namespace_definitions.
1999
eaa797e8
MLI
20002015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
2001
2002 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
2003
c4914de6
MLI
20042015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
2005
2006 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
2007 when warning.
2008 * c-pragma.h (pragma_lex): Add optional loc argument.
2009
fcb87c50
MM
20102015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
2011
2012 * c-format.c (check_format_arg): Adjust to use common block size in all
2013 object pools.
2014
31bdd08a
DM
20152015-09-15 David Malcolm <dmalcolm@redhat.com>
2016
2017 * c-format.c (location_from_offset): Update for change in
2018 signature of location_get_source_line.
2019 * c-indentation.c (get_visual_column): Likewise.
2020 (line_contains_hash_if): Likewise.
2021
aa9f4b4c
MP
20222015-09-14 Marek Polacek <polacek@redhat.com>
2023
2024 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
2025 setting various warnings.
2026
aa256c4a
MP
20272015-09-14 Marek Polacek <polacek@redhat.com>
2028
2029 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
2030 a negative value.
2031
0f876f22
MW
20322015-09-11 Mark Wielaard <mjw@redhat.com>
2033
2034 PR c/28901
2035 * c.opt (Wunused-variable): Option from common.opt.
2036 (Wunused-const-variable): New option.
2037
273aa49e
PC
20382015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
2039
2040 PR c++/53184
2041 * c.opt ([Wsubobject-linkage]): Add.
2042
1807ffc1
MS
20432015-09-03 Martin Sebor <msebor@redhat.com>
2044
2045 PR c/66516
2046 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
2047 functions.
2048 * c-common.c (reject_gcc_builtin): Define.
2049
38942840
BI
20502015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
2051
2052 PR middle-end/60586
2053 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
2054 prototype.
2055 * c-gimplify.c (c_gimplify_expr): Added a call to the function
2056 cilk_gimplify_call_params_in_spawned_fn.
2057 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
2058 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
2059 unwrapping.
2060
c316b5e4
MP
20612015-08-25 Marek Polacek <polacek@redhat.com>
2062
2063 PR middle-end/67330
2064 * c-common.c (handle_weak_attribute): Don't check whether the
2065 visibility can be changed here.
2066
584a7c46
MLI
20672015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
2068
2069 * c-lex.c (c_lex_with_flags): Use explicit locations.
2070
a79683d5
TS
20712015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
2072
2073 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
2074 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
2075
61717a45
FXC
20762015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2077
2078 PR middle-end/36757
2079 * c-common.c (check_builtin_function_arguments): Add check
2080 for BUILT_IN_SIGNBIT argument.
2081
329524f5
PC
20822015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
2083
2084 PR c++/67160
2085 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
2086 in c++1z mode.
2087
4ee55665
MP
20882015-08-17 Marek Polacek <polacek@redhat.com>
2089
2090 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
2091 with whitespaces before qualifier names.
2092
b893e375
MP
20932015-08-12 Marek Polacek <polacek@redhat.com>
2094
2095 PR c++/55095
2096 * c-common.c (maybe_warn_shift_overflow): Properly handle
2097 left-shifting 1 into the sign bit.
2098
c2d89095
MLI
20992015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2100
2101 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
2102
971e17ff
AS
21032015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
2104 Braden Obrzut <admin@maniacsvault.net>
2105 Jason Merrill <jason@redhat.com>
2106
2107 Add C++ Concepts TS support.
2108 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
2109 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
2110 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
2111 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
2112 * c-opts.c (set_std_cxx1z): Set flag_concepts.
2113 * c.opt (fconcepts): New.
2114
b3d5bc62
JJ
21152015-08-02 Martin Sebor <msebor@redhat.com>
2116
2117 * c.opt (-Wframe-address): New warning option.
2118
8ebca419
PP
21192015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
2120
2121 * c-indentation.c (should_warn_for_misleading_indentation):
2122 Improve heuristics.
2123
1a1e101f
PP
21242015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
2125
2126 * c-indentation.c (get_visual_column): Add parameter first_nws,
2127 use it. Update comment documenting the function.
2128 (is_first_nonwhitespace_on_line): Remove.
2129 (should_warn_for_misleading_indentation): Replace usage of
2130 of is_first_nonwhitespace_on_line with get_visual_column.
2131
992118a1
PP
21322015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
2133
2134 * c-indentation.h (struct token_indent_info): Define.
2135 (get_token_indent_info): Define.
2136 (warn_for_misleading_information): Declare.
2137 * c-common.h (warn_for_misleading_information): Remove.
2138 * c-identation.c (warn_for_misleading_indentation):
2139 Change declaration to take three token_indent_infos. Adjust
2140 accordingly.
2141 * c-identation.c (should_warn_for_misleading_indentation):
2142 Likewise. Bail out early if the body is a compound statement.
2143 (guard_tinfo_to_string): Define.
2144
e8fa3817
JM
21452015-07-30 Jason Merrill <jason@redhat.com>
2146
2147 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
2148 '*' for reference decay.
2149
173864e8
MP
21502015-07-30 Marek Polacek <polacek@redhat.com>
2151
2152 * c-common.c (warn_tautological_cmp): Bail for float types.
2153
f2afe6dd
MP
21542015-07-27 Marek Polacek <polacek@redhat.com>
2155
2156 PR bootstrap/67030
2157 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
2158
05b28fd6
MP
21592015-07-27 Marek Polacek <polacek@redhat.com>
2160
2161 PR c++/66555
2162 PR c/54979
2163 * c-common.c (find_array_ref_with_const_idx_r): New function.
2164 (warn_tautological_cmp): New function.
2165 * c-common.h (warn_tautological_cmp): Declare.
2166 * c.opt (Wtautological-compare): New option.
2167
5a5062b8
MP
21682015-07-23 Marek Polacek <polacek@redhat.com>
2169
2170 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
2171 (ubsan_instrument_shift): Likewise.
2172
dc891fe7
MP
21732015-07-23 Marek Polacek <polacek@redhat.com>
2174
2175 PR sanitizer/66908
2176 * c-ubsan.c: Include gimplify.h.
2177 (ubsan_instrument_division): Unshare OP0 and OP1.
2178 (ubsan_instrument_shift): Likewise.
2179
451b5e48
MP
21802015-07-20 Marek Polacek <polacek@redhat.com>
2181 Richard Sandiford <richard.sandiford@arm.com>
2182
2183 PR c++/55095
2184 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
2185 Use EXPR_LOC_OR_LOC.
2186 (maybe_warn_shift_overflow): New function.
2187 * c-common.h (maybe_warn_shift_overflow): Declare.
2188 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
2189 * c.opt (Wshift-overflow): New option.
2190
fb0b2914
ML
21912015-07-16 Martin Liska <mliska@suse.cz>
2192
2193 * c-format.c (static void check_format_info_main): Use
2194 object_allocator instead of pool_allocator.
2195 (check_format_arg): Likewise.
2196 (check_format_info_main): Likewise.
2197
903f5c23
AM
21982015-07-15 Andrew MacLeod <amacleod@redhat.com>
2199
2200 * c-opts.c: Remove multiline #include comment.
2201
026c3cfd
AH
22022015-07-12 Aldy Hernandez <aldyh@redhat.com>
2203
2204 * c-common.c: Fix double word typos.
2205
bb49ee66
EB
22062015-07-10 Eric Botcazou <ebotcazou@adacore.com>
2207
2208 * c-ada-spec.h (cpp_operation): Revert latest change.
2209 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
2210 constructors and destructors.
2211
1916bcb5
AM
22122015-07-09 Andrew MacLeod <amacleod@redhat.com>
2213
2214 * c-common.h: Adjust includes for flags.h changes.
2215 * stub-objc.c: Likewise.
026c3cfd 2216
a9dcd529
EB
22172015-07-08 Eric Botcazou <ebotcazou@adacore.com>
2218
2219 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
2220 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
2221
b03b462f
JJ
22222015-07-08 Jakub Jelinek <jakub@redhat.com>
2223
2224 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
2225 are to be removed, return NULL rather than original clauses list.
2226
c7131fb2
AM
22272015-07-07 Andrew MacLeod <amacleod@redhat.com>
2228
2229 * array-notation-common.c: Adjust includes.
2230 * c-ada-spec.c: Likewise.
2231 * c-cilkplus.c: Likewise.
2232 * c-common.h: Likewise.
2233 * c-cppbuiltin.c: Likewise.
2234 * c-dump.c: Likewise.
2235 * c-format.c: Likewise.
2236 * c-gimplify.c: Likewise.
2237 * c-indentation.c: Likewise.
2238 * c-lex.c: Likewise.
2239 * c-omp.c: Likewise.
2240 * c-opts.c: Likewise.
2241 * c-pch.c: Likewise.
2242 * c-ppoutput.c: Likewise.
2243 * c-pragma.c: Likewise.
2244 * c-pretty-print.c: Likewise.
2245 * c-semantics.c: Likewise.
2246 * c-ubsan.c: Likewise.
2247 * cilk.c: Likewise.
2248 * stub-objc.c: Likewise.
2249
2a7fb83f
EB
22502015-07-07 Eric Botcazou <ebotcazou@adacore.com>
2251
2252 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
2253 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
2254
a03c9bf1
JM
22552015-07-01 Jason Merrill <jason@redhat.com>
2256
36a85135
JM
2257 * c-common.h (D_CXX11): Rename from D_CXX0X.
2258 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
2259 * c-common.c: Adjust.
2260
e7fa68d5
JM
2261 * c-opts.c (c_common_post_options): Default to C++14.
2262
a03c9bf1
JM
2263 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
2264
fe95b036
ESR
22652015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
2266
2267 Implement N4197 - Adding u8 character literals
b3d5bc62 2268 * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
a64be36b 2269 CPP_CHAR.
b3d5bc62 2270 * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
a64be36b 2271 CPP_UTF8CHAR_USERDEF tokens.
b3d5bc62 2272 * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
a64be36b
EB
2273 and CPP_UTF8CHAR tokens.
2274 (lex_charconst): Treat CPP_UTF8CHAR token.
fe95b036 2275
da2e71c9
MLI
22762015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2277
2278 PR fortran/66605
2279 * c-common.c (do_warn_unused_parameter): Move here.
2280 * c-common.h (do_warn_unused_parameter): Declare.
2281
b155cfd9
MP
22822015-06-29 Marek Polacek <polacek@redhat.com>
2283
2284 PR c/66322
2285 * c-common.c (check_case_bounds): Add bool * parameter. Set
2286 OUTSIDE_RANGE_P.
2287 (c_add_case_label): Add bool * parameter. Pass it down to
2288 check_case_bounds.
2289 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
2290 warning here.
2291 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
2292 declarations.
2293
31521951
MP
22942015-06-27 Marek Polacek <polacek@redhat.com>
2295
2296 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
2297 or VECTOR_INTEGER_TYPE_P throughout.
2298 * c-gimplify.c: Likewise.
2299
22d03525
MP
23002015-06-26 Marek Polacek <polacek@redhat.com>
2301
2302 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
2303 * c-common.c (c_fully_fold_internal): Likewise.
2304 (c_alignof_expr): Likewise.
2305 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
2306 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
b1726d6c 2307 * cilk.c (create_parm_list): Likewise.
22d03525 2308
af05e6e5
MP
23092015-06-26 Marek Polacek <polacek@redhat.com>
2310
2311 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
2312
f0889939
AM
23132015-06-25 Andrew MacLeod <amacleod@redhat.com>
2314
2315 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
2316 * c-gimplify.c: Likewise.
2317 * c-pragma.c: Likewise.
2318 * c-ubsan.c: Likewise.
2319 * cilk.c: Likewise.
2320
ca752f39
RS
23212015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2322
2323 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
2324 ggc_hasher.
2325
16a16ec7
AM
23262015-06-25 Andrew MacLeod <amacleod@redhat.com>
2327
2328 * cilk.c: Move calls.h after tm.h in the include chain.
2329
0ae9bd27
MP
23302015-06-25 Marek Polacek <polacek@redhat.com>
2331
2332 * array-notation-common.c: Use VAR_P throughout.
2333 * c-ada-spec.c: Likewise.
2334 * c-common.c: Likewise.
2335 * c-format.c: Likewise.
2336 * c-gimplify.c: Likewise.
2337 * c-omp.c: Likewise.
2338 * c-pragma.c: Likewise.
2339 * c-pretty-print.c: Likewise.
2340 * cilk.c: Likewise.
2341
62f9079a
MP
23422015-06-25 Marek Polacek <polacek@redhat.com>
2343
2344 * cilk.c (extract_free_variables): Use is_global_var.
2345
0fa16060
RS
23462015-06-23 Richard Sandiford <richard.sandiford@arm.com>
2347
2348 * c-common.c: Don't include target-def.h.
2349
a68ae2e1
MP
23502015-06-23 Marek Polacek <polacek@redhat.com>
2351
2352 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
2353 when comparing INTEGER_CSTs.
2354
c6a2f2d9
PMR
23552015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
2356
2357 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
2358 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
2359 (dump_ada_template): Skip partially specialized types.
2360
6b4db501
MM
23612015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
2362
2363 * c-common.c (scalar_to_vector): Use std::swap instead of manually
2364 swapping.
2365
abb226c9
AM
23662015-06-17 Andrew MacLeod <amacleod@redhat.com>
2367
2368 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
2369 * c-ada-spec.c: Likewise.
2370 * c-cilkplus.c: Likewise.
2371 * c-common.c: Likewise.
2372 * c-common.h: Likewise.
2373 * c-cppbuiltin.c: Likewise.
2374 * c-dump.c: Likewise.
2375 * c-format.c: Likewise.
2376 * c-gimplify.c: Likewise.
2377 * c-indentation.c: Likewise.
2378 * c-lex.c: Likewise.
2379 * c-omp.c: Likewise.
2380 * c-opts.c: Likewise.
2381 * c-pch.c: Likewise.
2382 * c-ppoutput.c: Likewise.
2383 * c-pragma.c: Likewise.
2384 * c-pretty-print.c: Likewise.
2385 * c-semantics.c: Likewise.
2386 * c-ubsan.c: Likewise.
2387 * cilk.c: Likewise.
2388 * stub-objc.c: Likewise.
2389
076fecad
PP
23902015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
2391
2392 PR c++/65168
2393 * c-common.c (c_common_truthvalue_conversion): Warn when
2394 converting an address of a reference to a truth value.
2395
13fdf2e2
AM
23962015-06-08 Andrew MacLeod <amacleod@redhat.com>
2397
2398 * array-notation-common.c : Adjust include files.
2399 * c-ada-spec.c : Likewise.
2400 * c-cilkplus.c : Likewise.
2401 * c-common.c : Likewise.
2402 * c-common.h : Likewise.
2403 * c-cppbuiltin.c : Likewise.
2404 * c-dump.c : Likewise.
2405 * c-format.c : Likewise.
2406 * c-gimplify.c : Likewise.
2407 * c-indentation.c : Likewise.
2408 * c-lex.c : Likewise.
2409 * c-omp.c : Likewise.
2410 * c-opts.c : Likewise.
2411 * c-pch.c : Likewise.
2412 * c-ppoutput.c : Likewise.
2413 * c-pragma.c : Likewise.
2414 * c-pretty-print.c : Likewise.
2415 * c-semantics.c : Likewise.
2416 * c-ubsan.c : Likewise.
2417 * cilk.c : Likewise.
2418 * stub-objc.c : Likewise.
2419
a1661b90
MP
24202015-06-08 Marek Polacek <polacek@redhat.com>
2421
2422 PR c/66415
2423 * c-format.c (location_from_offset): Return LOC if LINE is null.
2424
d7438551
AH
24252015-06-05 Aldy Hernandez <aldyh@redhat.com>
2426
2427 * c-common.h (c_parse_final_cleanups): New prototype.
2428 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
2429
b3d5bc62
JJ
24302015-06-04 Sriraman Tallam <tmsriram@google.com>
2431
2432 * c-common.c (noplt): New attribute.
2433 (handle_noplt_attribute): New handler.
2434
ecb9f223
AM
24352015-06-04 Andrew MacLeod <amacleod@redhat.com>
2436
2437 * array-notation-common.c: Adjust includes for restructured coretypes.h.
2438 * c-ada-spec.c: Likewise.
2439 * c-cilkplus.c: Likewise.
2440 * c-common.c: Likewise.
2441 * c-common.h: Likewise.
2442 * c-cppbuiltin.c: Likewise.
2443 * c-dump.c: Likewise.
2444 * c-format.c: Likewise.
2445 * c-gimplify.c: Likewise.
2446 * c-indentation.c: Likewise.
2447 * c-lex.c: Likewise.
2448 * c-omp.c: Likewise.
2449 * c-opts.c: Likewise.
2450 * c-pch.c: Likewise.
2451 * c-ppoutput.c: Likewise.
2452 * c-pragma.c: Likewise.
2453 * c-pretty-print.c: Likewise.
2454 * c-semantics.c: Likewise.
2455 * c-ubsan.c: Likewise.
2456 * cilk.c: Likewise.
2457 * stub-objc.c: Likewise.
2458
6ac48155
DM
24592015-06-02 David Malcolm <dmalcolm@redhat.com>
2460
2461 PR c/66220:
2462 * c-indentation.c (should_warn_for_misleading_indentation): Use
2463 expand_location rather than expand_location_to_spelling_point.
2464 Don't warn if the guarding statement is more indented than the
2465 next/body stmts.
2466
773ce42e
DM
24672015-06-02 David Malcolm <dmalcolm@redhat.com>
2468
2469 * c-indentation.c (warn_for_misleading_indentation): Bail out
2470 immediately if -Wmisleading-indentation isn't enabled.
2471
4fef8379
ML
24722015-06-01 Martin Liska <mliska@suse.cz>
2473
2474 * c-format.c (check_format_arg):Use new type-based pool allocator.
2475 (check_format_info_main) Likewise.
2476
1edfb384
EB
24772015-05-31 Eric Botcazou <ebotcazou@adacore.com>
2478
2479 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
2480 (has_nontrivial_methods): Likewise.
2481
9677ef52
MP
24822015-05-25 Marek Polacek <polacek@redhat.com>
2483
2484 * c-ubsan.c (ubsan_instrument_shift): Use type0.
2485
fd5c817a
MP
24862015-05-22 Marek Polacek <polacek@redhat.com>
2487
2488 PR c/47043
2489 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
2490
a2f45fe6 24912015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
581edfa3
TS
2492
2493 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
2494 STACK_GROWS_DOWNWARD.
2495
a2f45fe6 24962015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
62f9f30b
TS
2497
2498 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
2499 STACK_GROWS_DOWNWARD rather than if it is defined.
2500
0fee2ac2 25012015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
b1726d6c 2502
0fee2ac2
MLI
2503 PR c/52952
2504 * c-format.c (location_column_from_byte_offset): New.
2505 (location_from_offset): New.
2506 (struct format_wanted_type): Add offset_loc field.
2507 (check_format_info): Move handling of location for extra arguments
2508 closer to the point of warning.
2509 (check_format_info_main): Pass the result of location_from_offset
2510 to warning_at.
2511 (format_type_warning): Pass the result of location_from_offset
2512 to warning_at.
2513
cf4ef6f7
MP
25142015-05-20 Marek Polacek <polacek@redhat.com>
2515
2516 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
2517
3a65ee74
MP
25182015-05-20 Marek Polacek <polacek@redhat.com>
2519
2520 * c-ada-spec.c (dump_sloc): Use DECL_P.
2521
21b634ae
MP
25222015-05-20 Marek Polacek <polacek@redhat.com>
2523
2524 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
2525 * c-common.c: Likewise.
2526
0e50b624
DM
25272015-05-19 David Malcolm <dmalcolm@redhat.com>
2528
2529 * c-common.h (fe_file_change): Strengthen param from
2530 const line_map * to const line_map_ordinary *.
2531 (pp_file_change): Likewise.
2532 * c-lex.c (fe_file_change): Likewise.
2533 (cb_define): Use linemap_check_ordinary when invoking
2534 SOURCE_LINE.
2535 (cb_undef): Likewise.
2536 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
2537 invoking cb_file_change.
2538 (c_finish_options): Likewise.
2539 (push_command_line_include): Likewise.
2540 (cb_file_change): Strengthen param "new_map" from
2541 const line_map * to const line_map_ordinary *.
2542 * c-ppoutput.c (cb_define): Likewise for local "map".
2543 (pp_file_change): Likewise for param "map" and local "from".
2544
fab27f52
MM
25452015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
2546
2547 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
2548
2fe1d762
TV
25492015-05-18 Tom de Vries <tom@codesourcery.com>
2550
2551 * c-common.c (build_va_arg_1): New function.
2552 (build_va_arg): Add address operator to va_list operand if necessary.
2553
7a37fa90
MM
25542015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
2555
2556 PR c/48956
2557 * c-common.c (int_safely_convertible_to_real_p): Define.
2558 (unsafe_conversion_p): Check conversions involving complex types.
2559 (conversion_warning): Add new warning message for conversions which
2560 discard imaginary component.
2561 * c-common.h: (enum conversion_safety): Add new enumerator for such
2562 conversions.
2563
3aa3c9fc
MP
25642015-05-14 Marek Polacek <polacek@redhat.com>
2565
2566 PR c/66066
2567 PR c/66127
2568 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
2569 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
2570 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
2571 use it. If FOR_INT_CONST, require that all evaluated operands be
2572 INTEGER_CSTs.
2573
c3388e62
DM
25742015-05-12 David Malcolm <dmalcolm@redhat.com>
2575
2576 * c-common.h (warn_for_misleading_indentation): New prototype.
2577 * c-indentation.c: New file.
2578 * c.opt (Wmisleading-indentation): New option.
2579
c7b38fd5
TV
25802015-05-12 Tom de Vries <tom@codesourcery.com>
2581
2582 PR tree-optimization/66010
2583 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
2584
381bf11e
JM
25852015-05-09 Jason Merrill <jason@redhat.com>
2586
edff0c06
JM
2587 * c-opts.c (c_common_post_options): Also clear
2588 cpp_opts->cpp_warn_cxx11_compat.
2589
129211bc
JM
2590 * c-common.h (enum cxx_dialect): Add cxx_unset.
2591 * c-common.c (cxx_dialect): Initialize to cxx_unset.
2592 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
2593
381bf11e
JM
2594 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
2595 (std=gnu++0x): Mark as Undocumented.
2596 (std=gnu++1y): Add deprecated message.
2597
fe191308
JM
25982015-05-08 Jason Merrill <jason@redhat.com>
2599
765189ff
JM
2600 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
2601 * c-opts.c: Adjust.
2602
fe191308
JM
2603 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
2604
755e528f
MP
26052015-05-08 Marek Polacek <polacek@redhat.com>
2606
2607 PR c/64918
2608 * c.opt (Woverride-init-side-effects): New option.
2609
0173bd2a
MP
26102015-05-07 Marek Polacek <polacek@redhat.com>
2611
2612 PR c/65179
2613 * c-common.c (c_fully_fold_internal): Warn when left shifting a
2614 negative value.
2615 * c.opt (Wshift-negative-value): New option.
2616 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
2617 when -Wextra and C99/C++11 mode.
2618
e0f0d3b9
MP
26192015-05-07 Marek Polacek <polacek@redhat.com>
2620 Martin Uecker <uecker@eecs.berkeley.edu>
2621
2622 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
2623 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
2624
8243e2a9
JM
26252015-05-05 Jason Merrill <jason@redhat.com>
2626
2627 * c.opt (Wterminate): New.
2628
577cd070
MP
26292015-04-30 Marek Polacek <polacek@redhat.com>
2630
2631 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
2632 require that the non-constant be of a boolean type.
2633
0373796b
JT
26342015-04-29 Josh Triplett <josh@joshtriplett.org>
2635
e0f0d3b9
MP
2636 * c-common.c (handle_section_attribute): Refactor to reduce
2637 nesting and distinguish between error cases.
0373796b 2638
716c0ba6
MP
26392015-04-29 Marek Polacek <polacek@redhat.com>
2640
2641 PR c/64610
2642 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
2643 with 0/1.
2644
8848828b
JJ
26452015-04-29 Jakub Jelinek <jakub@redhat.com>
2646
2647 * c-common.h (omp_clause_mask): Unconditionally define as a class.
2648 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
2649 HOST_BITS_PER_WIDE_INT.
2650
ecd0e562
TV
26512015-04-28 Tom de Vries <tom@codesourcery.com>
2652
2653 PR tree-optimization/65887
2654 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
2655
2a877204 26562015-04-28 Eric Botcazou <ebotcazou@adacore.com>
e0f0d3b9 2657 Pierre-Marie de Rodat <derodat@adacore.com>
2a877204
EB
2658
2659 * c-ada-spec.c (in_function): Delete.
2660 (dump_generic_ada_node): Do not change in_function and remove the
2661 redundant code dealing with it.
2662 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
2663 (print_ada_methods): Output the static member functions in a nested
2664 package after the regular methods as well as associated renamings.
2665
4853031e
MP
26662015-04-24 Marek Polacek <polacek@redhat.com>
2667
2668 PR c/65830
2669 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
2670 and OPT_Wshift_count_overflow.
2671
8c2b7f79
MP
2672 PR c/63357
2673 * c-common.c (warn_logical_operator): Warn if the operands have the
2674 same expressions.
2675
b8787813
MP
26762015-04-24 Marek Polacek <polacek@redhat.com>
2677
2678 PR c/61534
2679 * c-common.c (warn_logical_operator): Bail if either operand comes
2680 from a macro expansion.
2681
8fba1830
BRF
26822015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2683
2684 PR target/55143
2685 * c-common.c (c_default_pointer_mode): Add definition.
2686 * c-common.h (c_default_pointer_mode): Add declaration.
2687
17958621
JJ
26882015-03-11 Jakub Jelinek <jakub@redhat.com>
2689
2690 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
2691 on record_builtin_type argument.
2692
7ccb1a11
JJ
26932015-03-10 Jakub Jelinek <jakub@redhat.com>
2694
2695 PR c/65120
2696 * c-common.c (warn_logical_not_parentheses): Don't warn for
2697 !x == 0 or !x != 0.
2698
04fd785e
MP
26992015-03-07 Marek Polacek <polacek@redhat.com>
2700
2701 PR sanitizer/65280
2702 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
2703 before trying to figure out whether we have a flexible array member.
2704
a4e26206 27052015-03-06 Eric Botcazou <ebotcazou@adacore.com>
8e745a17 2706 Jonathan Wakely <jwakely.gcc@gmail.com>
a4e26206
EB
2707
2708 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
2709
0d2489f4
EB
27102015-03-05 Eric Botcazou <ebotcazou@adacore.com>
2711
2712 PR ada/65319
2713 * c-ada-spec.c (print_destructor): Remove obsolete code.
2714
83ed54d7
EB
27152015-03-01 Eric Botcazou <ebotcazou@adacore.com>
2716
2717 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
2718 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
2719 DECL_TEMPLATE_RESULT emulations.
2720 (dump_ada_template)): Add guard for TYPE_METHODS.
2721
7631f0e2
MP
27222015-02-27 Marek Polacek <polacek@redhat.com>
2723
2724 PR c/65040
2725 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
2726
d1783ae5
KT
27272015-02-27 Kai Tietz <ktietz@redhat.com>
2728
2729 PR c/35330
2730 * c-pragma.c (handle_pragma_weak): Do not try to create
2731 weak/alias of declarations not being function, or variable
2732 declarations.
2733
56a9f6bc
TS
27342015-02-24 Thomas Schwinge <thomas@codesourcery.com>
2735
2736 PR libgomp/64625
2737 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
2738 Remove macros.
2739 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
2740
3d5cb23d
MP
27412015-02-16 Marek Polacek <polacek@redhat.com>
2742
2743 PR c/65066
2744 * c-format.c (check_format_types): Handle null param.
2745
fa008882
MP
27462015-02-13 Marek Polacek <polacek@redhat.com>
2747
2748 PR c/65040
2749 * c-format.c (check_format_types): Don't warn about different
2750 signedness if the original value is in the range of WANTED_TYPE.
2751
785f21af
JM
27522015-02-12 Jason Merrill <jason@redhat.com>
2753
2754 PR c++/64956
2755 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
2756 to the current highest version.
2757 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
2758
4886ec8e
JJ
27592015-02-04 Jakub Jelinek <jakub@redhat.com>
2760
2761 PR c/64824
2762 PR c/64868
2763 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
2764 instead of RDIV_EXPR. Use build_binary_op instead of
2765 build2_loc.
2766
40fecdd6
JM
27672015-01-30 Joseph Myers <joseph@codesourcery.com>
2768
2769 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
2770 to pass input_location as first argument.
2771
a0c88d06
TV
27722015-01-23 Tom de Vries <tom@codesourcery.com>
2773
2774 PR libgomp/64672
2775 * c.opt (fopenacc): Mark as LTO option.
2776
1506ae0e
TV
27772015-01-23 Tom de Vries <tom@codesourcery.com>
2778
2779 PR libgomp/64707
2780 * c.opt (fopenmp): Mark as LTO option.
2781
31be63ab
JJ
27822015-01-21 Jakub Jelinek <jakub@redhat.com>
2783
2784 PR c/63307
b1726d6c 2785 * cilk.c (fill_decls_vec): Only put decls into vector v.
31be63ab
JJ
2786 (compare_decls): Fix up formatting.
2787
27882015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
2789
2790 PR c/63307
2791 * cilk.c: Include vec.h.
2792 (struct cilk_decls): New structure.
2793 (wrapper_parm_cb): Split this function to...
2794 (fill_decls_vec): ...this...
2795 (create_parm_list): ...and this.
2796 (compare_decls): New function.
2797 (for_local_cb): Remove.
2798 (wrapper_local_cb): Ditto.
2799 (build_wrapper_type): For now first traverse and fill vector of
2800 declarations then sort it and then deal with sorted vector.
2801 (cilk_outline): Ditto.
2802 (declare_one_free_variable): Ditto.
2803
6875457f
JM
28042015-01-21 Jason Merrill <jason@redhat.com>
2805
2806 PR c++/64629
2807 * c-format.c (check_format_arg): Call decl_constant_value.
2808
185c9e56
ML
28092015-01-19 Martin Liska <mliska@suse.cz>
2810
2811 * c-common.c (handle_noicf_attribute): New function.
2812
41dbbb37
TS
28132015-01-15 Thomas Schwinge <thomas@codesourcery.com>
2814 Bernd Schmidt <bernds@codesourcery.com>
2815 James Norris <jnorris@codesourcery.com>
2816 Cesar Philippidis <cesar@codesourcery.com>
2817 Ilmir Usmanov <i.usmanov@samsung.com>
2818 Jakub Jelinek <jakub@redhat.com>
2819
2820 * c.opt (fopenacc): New option.
2821 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
2822 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
2823 New macros.
2824 * c-common.h (c_finish_oacc_wait): New prototype.
2825 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
2826 (c_finish_oacc_wait): New function.
2827 * c-pragma.c (oacc_pragmas): New variable.
2828 (c_pp_lookup_pragma, init_pragma): Handle it.
2829 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
2830 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
2831 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
2832 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
2833 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
2834 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
2835 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
2836 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
2837 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
2838 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
2839 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
2840 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
2841 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
2842 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
2843 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
2844 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
2845 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
2846 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
2847 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
2848 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
2849 PRAGMA_OACC_CLAUSE_WORKER.
2850
3f8257db 28512015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
5434dc07
MD
2852
2853 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
2854 for the new option fstack-protector_explicit.
2855 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
2856 (handle_stack_protect_attribute): New function.
2857
3f8257db 28582015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
de1b5c17
MU
2859
2860 * c.opt: New option -Warray-bounds=.
2861
adfac8df
JJ
28622015-01-09 Michael Collison <michael.collison@linaro.org>
2863
2864 * array-notation-common.c: Include hash-set.h, machmode.h,
2865 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2866 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
2867 * c-ada-spec.c: Ditto.
2868 * c-cilkplus.c: Ditto.
2869 * c-common.c: Include input.h due to flattening of tree.h.
2870 Define macro GCC_C_COMMON_C.
2871 * c-common.h: Flatten tree.h header files into c-common.h.
2872 Remove include of tree-core.h.
2873 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
2874 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2875 fold-const.h, wide-int.h, and inchash.h due to
2876 flattening of tree.h.
2877 * c-dump.c: Ditto.
2878 * c-format.c: Flatten tree.h header files into c-common.h.
2879 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
2880 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2881 fold-const.h, wide-int.h, and inchash.h due to
2882 flattening of tree.h.
2883 * c-dump.c: Include hash-set.h, machmode.h,
2884 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2885 fold-const.h, wide-int.h, and inchash.h due to
2886 flattening of tree.h.
2887 * c-format.c: Include hash-set.h, machmode.h,
2888 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2889 fold-const.h, wide-int.h, inchash.h and real.h due to
2890 flattening of tree.h.
2891 * c-gimplify.c: Include hash-set.h, machmode.h,
2892 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2893 fold-const.h, wide-int.h, and inchash.h due to
2894 flattening of tree.h.
2895 * cilk.c: Ditto.
2896 * c-lex.c: Ditto.
2897 * c-omp.c: Ditto.
2898 * c-opts.c: Ditto.
2899 * c-pch.c: Ditto.
2900 * c-ppoutput.c: Ditto.
2901 * c-pragma.c: Ditto.
2902 * c-pretty-print.c: Ditto.
2903 * c-semantics.c: Ditto.
2904 * c-ubsan.c: Ditto.
2905 * stub-objc.c: Ditto.
2906
f5481fc4
JM
29072015-01-08 Jason Merrill <jason@redhat.com>
2908
2909 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
2910 do_ubsan_in_current_function.
2911 (ubsan_maybe_instrument_reference_or_call): Likewise.
2912 * c-ubsan.h: Declare it.
2913
de35aa66
MS
29142015-01-08 Mike Stump <mikestump@comcast.net>
2915
2916 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
2917
4a9a42ab
MP
29182015-01-07 Marek Polacek <polacek@redhat.com>
2919
2920 PR c/64440
2921 * c-common.c (c_fully_fold_internal): Warn for division and modulo
2922 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
2923
2f42e5de
TS
29242015-01-05 Trevor Saunders <tsaunders@mozilla.com>
2925
2926 PR c++/31397
2927 * c.opt (Wsuggest-override): New option.
2928
5624e564
JJ
29292015-01-05 Jakub Jelinek <jakub@redhat.com>
2930
2931 Update copyright years.
2932
5bd012f8
MP
29332015-01-05 Marek Polacek <polacek@redhat.com>
2934
2935 PR c/64423
2936 * c-common.c (warn_array_subscript_with_type_char): Add location_t
2937 parameter. Use it.
2938 * c-common.h (warn_array_subscript_with_type_char): Update
2939 declaration.
2940
a7fa8d18
ESR
29412014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
2942
2943 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
2944 Control macro with flag_sized_deallocation.
2945
3f8257db 29462014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
768952be
MU
2947
2948 * c.opt (Wdiscarded-array-qualifiers): New option.
2949
1f8d3e84
JJ
29502014-12-19 Jakub Jelinek <jakub@redhat.com>
2951
2952 PR preprocessor/63831
2953 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
2954 and __has_cpp_attribute here.
2955 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
2956 c_common_has_attribute.
2957 * c-common.h (c_common_has_attribute): New prototype.
2958 * c-lex.c (init_c_lex): Set cb->has_attribute to
2959 c_common_has_attribute instead of cb_has_attribute.
2960 (get_token_no_padding): New function.
2961 (cb_has_attribute): Renamed to ...
2962 (c_common_has_attribute): ... this. No longer static. Use
2963 get_token_no_padding, require ()s, don't build TREE_LIST
2964 unnecessarily, fix up formatting, adjust diagnostics, call
2965 init_attributes.
2966
20b06add
JM
29672014-12-15 Jason Merrill <jason@redhat.com>
2968
2969 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
2970 (-Wsized-deallocation): New.
2971 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
2972 to on in C++14 and up.
2973
94a073b2
JM
29742014-12-11 Jason Merrill <jason@redhat.com>
2975
acaa5911
JM
2976 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
2977
94a073b2
JM
2978 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
2979 we aren't complaining about VLAs.
2980
7fb66c15
MP
29812014-12-06 Marek Polacek <polacek@redhat.com>
2982
2983 PR tree-optimization/64183
2984 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
2985 shift-expression if it is integer_type_node. Use types_compatible_p.
2986
b731b390
JJ
29872014-11-29 Jakub Jelinek <jakub@redhat.com>
2988
2989 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
2990 last argument from create_tmp_var_raw and create_tmp_var calls.
2991 * cilk.c (gimplify_cilk_spawn): Likewise.
2992 * c-omp.c (c_finish_omp_atomic): Likewise.
2993
6a4da643
MP
29942014-11-28 Marek Polacek <polacek@redhat.com>
2995
2996 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
2997 instead of unsigned_type_node.
2998
541e35a6
MP
29992014-11-28 Marek Polacek <polacek@redhat.com>
3000
3001 PR c/63862
3002 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
3003 to op1_utype.
3004 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
3005 expression to unsigned_type_node.
3006
dcc97066
MW
30072014-11-20 Mark Wielaard <mjw@redhat.com>
3008
3009 PR debug/38757
3010 * c-opts.c (set_std_c89): Set lang_hooks.name.
3011 (set_std_c99): Likewise.
3012 (set_std_c11): Likewise.
3013 (set_std_cxx98): Likewise.
3014 (set_std_cxx11): Likewise.
3015 (set_std_cxx14): Likewise.
3016 (set_std_cxx1z): Likewise.
3017
aa7da51a
JJ
30182014-11-21 Jakub Jelinek <jakub@redhat.com>
3019
3020 PR target/63764
3021 * c-common.h (convert_vector_to_pointer_for_subscript): Change
3022 return type to bool.
009a3480 3023 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
3024 (convert_vector_to_pointer_for_subscript): Change return type to
3025 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
3026 and copy it into a TARGET_EXPR and use that instead of *vecp
3027 directly.
3028
538dd0b7
DM
30292014-11-19 David Malcolm <dmalcolm@redhat.com>
3030
3031 Merger of git branch "gimple-classes-v2-option-3".
3032 * ChangeLog.gimple-classes: New.
3033 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
3034 from being just a vec<gimple> to a vec<gbind *>.
3035
c39a5e99
JJ
30362014-11-18 Jakub Jelinek <jakub@redhat.com>
3037
3038 PR sanitizer/63813
3039 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
3040 argument to ptype, set type to TREE_TYPE (ptype). Don't call
3041 get_pointer_alignment for non-pointers. Use ptype, or if it is
3042 reference type, corresponding pointer type, as type of kind
3043 argument.
3044 (ubsan_maybe_instrument_reference,
3045 ubsan_maybe_instrument_member_call): Adjust callers.
3046
8537a4a9
MP
30472014-11-15 Marek Polacek <polacek@redhat.com>
3048
3049 PR middle-end/63884
3050 * array-notation-common.c (is_sec_implicit_index_fn): Return false
3051 for NULL fndecl.
3052 (extract_array_notation_exprs): Return for NULL node.
3053
2079956a
JM
30542014-11-12 Joseph Myers <joseph@codesourcery.com>
3055
3056 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
3057 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
3058
1304953e
JJ
30592014-11-12 Jakub Jelinek <jakub@redhat.com>
3060
3061 PR c/59708
3062 * c-common.c (check_builtin_function_arguments): Handle
3063 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
3064
e5e44252
AK
30652014-11-10 Andi Kleen <ak@linux.intel.com>
3066
3067 PR c/60804
3068 * c-common.h (check_no_cilk): Declare.
3069 * cilk.c (get_error_location): New function.
3070 (check_no_cilk): Dito.
3071
e64b984d
AK
30722014-11-10 Andi Kleen <ak@linux.intel.com>
3073
3074 * cilk.c (recognize_spawn): Use expression location
3075 for error message.
3076
13c21655
PC
30772014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
3078
3079 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
3080
42fd12b1
ESR
30812014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
3082
3083 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
3084 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
3085 (__cpp_range_based_for, __cpp_initializer_lists,
3086 __cpp_delegating_constructors, __cpp_nsdmi,
3087 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
3088 for C++11; (__cpp_attribute_deprecated): Remove in favor of
3089 __has_cpp_attribute.
3090 * c-lex.c (cb_has_attribute): New callback CPP function;
3091 (init_c_lex): Set has_attribute callback.
3092
6f450181
RB
30932014-11-04 Richard Biener <rguenther@suse.de>
3094
3095 * c-common.c (shorten_compare): Do not shorten mixed
3096 DFP and non-DFP compares.
3097
26f0e1d6
ESR
30982014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
3099
3100 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
3101 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
3102 Commentary and rearrangement of tests.
3103 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
3104 Commentary and rearrangement of tests.
3105 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
3106 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
3107
ef4bddc2
RS
31082014-10-29 Richard Sandiford <richard.sandiford@arm.com>
3109
3110 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
3111 enum from machine_mode.
3112
c582198b
AM
31132014-10-28 Andrew MacLeod <amacleod@redhat.com>
3114
adfac8df
JJ
3115 * c-common.c: Adjust include files.
3116 * c-gimplify.c: Ditto.
3117 * cilk.c: Ditto.
3118 * c-pragma.c: Ditto.
3119 * c-ubsan.c: Ditto.
c582198b 3120
60393bbc
AM
31212014-10-27 Andrew MacLeod <amacleod@redhat.com>
3122
3123 * c-gimplify.c: Adjust include files.
3124
d723bb7c
MLI
31252014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
3126
3127 PR c++/53061
3128 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
3129 c_common_initialize_diagnostics.
3130 * c-common.h: Likewise.
3131
90f3520e
MP
31322014-10-24 Marek Polacek <polacek@redhat.com>
3133
3134 PR c/56980
3135 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
3136 print "struct"/"union"/"enum" for typedefed names.
3137
59d7607a
MP
31382014-10-23 Marek Polacek <polacek@redhat.com>
3139
3140 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
3141 in unsigned type.
3142
d95a2703
JJ
31432014-10-22 Jakub Jelinek <jakub@redhat.com>
3144 Yury Gribov <y.gribov@samsung.com>
3145
3146 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
3147 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
3148 instead of flag_sanitize_recover as bool flag.
3149
8e6ef852
KY
31502014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
3151
3152 * cilk.c: Revert previous change.
3153
948cf550
IZ
31542014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
3155
3156 PR c/63307
3157 * cilk.c: Include vec.h.
3158 (struct cilk_decls): New structure.
3159 (wrapper_parm_cb): Split this function to...
3160 (fill_decls_vec): ...this...
3161 (create_parm_list): ...and this.
3162 (compare_decls): New function.
3163 (for_local_cb): Remove.
3164 (wrapper_local_cb): Ditto.
3165 (build_wrapper_type): For now first traverse and fill vector of
3166 declarations then sort it and then deal with sorted vector.
3167 (cilk_outline): Ditto.
3168 (declare_one_free_variable): Ditto.
3169
92574c7c
MP
31702014-10-17 Marek Polacek <polacek@redhat.com>
3171
3172 * c-opts.c (c_common_post_options): Set warn_implicit_int.
3173 * c.opt (Wimplicit-int): Initialize to -1.
3174
83685514
AM
31752014-10-16 Andrew MacLeod <amacleod@redhat.com>
3176
3177 * c-pragma.c: Adjust include files.
3178 * c-semantics.c: Likewise.
3179
5b8300ea
DD
31802014-10-16 DJ Delorie <dj@redhat.com>
3181
3182 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
3183 multiples of bytes.
3184
5f83e90b
JM
31852014-10-14 Jason Merrill <jason@redhat.com>
3186
3187 PR c++/63455
3188 * c-common.h (CPP_PREPARSED_EXPR): New.
3189 (N_CP_TTYPES): Adjust.
3190
d73326ca
MP
31912014-10-15 Marek Polacek <polacek@redhat.com>
3192
3193 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
3194
78a7c317
DD
31952014-10-14 DJ Delorie <dj@redhat.com>
3196
3197 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
3198 types, not just __int128.
3199 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
3200 types, not just __int128.
3201 (cpp_atomic_builtins): Round pointer sizes up.
3202 (type_suffix): Use type precision, not specific types.
3203 * c-common.c (c_common_reswords): Remove __int128 special case.
3204 (c_common_type_for_size): Check for all __intN types, not just
3205 __int128.
3206 (c_common_type_for_mode): Likewise.
3207 (c_common_signed_or_unsigned_type): Likewise.
3208 (c_build_bitfield_integer_type): Likewise.
3209 (c_common_nodes_and_builtins): Likewise.
3210 (keyword_begins_type_specifier): Likewise.
3211 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
3212 __intN variants.
3213
2a22f99c
TS
32142014-10-12 Trevor Saunders <tsaunders@mozilla.com>
3215
3216 * c-common.c: Use hash_table instead of hashtab.
3217
2a8ef767
ESR
32182014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
3219
adfac8df 3220 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
3221 C++11 section.
3222
3c9aabbd
MG
32232014-10-03 Marc Glisse <marc.glisse@inria.fr>
3224
3225 PR c++/54427
3226 PR c++/57198
3227 PR c++/58845
3228 * c-common.c (warn_logical_operator): Punt for vectors.
3229
a15f7cb8
ESR
32302014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
3231
3232 Implement SD-6: SG10 Feature Test Recommendations
3233 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
3234 macros and the __has_header macro.
3235
8d0cf15e
JM
32362014-09-30 Jason Merrill <jason@redhat.com>
3237
dd5d5481
JM
3238 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
3239 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
3240 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
3241
b752325e
JM
3242 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
3243 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
3244
8d0cf15e
JM
3245 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
3246 * c-common.c (c_common_reswords): Remove __is_convertible_to.
3247
083e891e
MP
32482014-09-24 Marek Polacek <polacek@redhat.com>
3249
3250 PR c/61405
3251 PR c/53874
3252 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
3253
7861b648
AK
32542014-09-23 Andi Kleen <ak@linux.intel.com>
3255
3256 * c-common.c (handle_no_reorder_attribute): New function.
3257 (c_common_attribute_table): Add no_reorder attribute.
3258
9a79452d
JM
32592014-09-22 Joseph Myers <joseph@codesourcery.com>
3260
3261 * c-cppbuiltin.c (c_cpp_builtins): Define
3262 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
3263 modes.
3264
dd69f047
JM
32652014-09-18 Joseph Myers <joseph@codesourcery.com>
3266
3267 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
3268 for supported floating-point modes.
3269
737a4826
MLI
32702014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3271
3272 * c.opt (Wpsabi): Use LangEnabledBy.
3273 * c-opts.c (c_common_handle_option): Do not handle here.
3274
8cc4b7a2
JM
32752014-09-12 Joseph Myers <joseph@codesourcery.com>
3276
3277 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
3278 macros for floating-point modes.
3279
179b5a55
MG
32802014-09-11 Marc Glisse <marc.glisse@inria.fr>
3281
3282 PR target/58757
3283 * c-cppbuiltin.c (builtin_define_float_constants): Correct
3284 __*_DENORM_MIN__ without denormals.
3285
570a11fe
JJ
32862014-09-10 Jakub Jelinek <jakub@redhat.com>
3287
3288 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
3289 ubsan_instrument_vla, ubsan_instrument_return): Adjust
3290 ubsan_create_data callers.
3291 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
3292 index is constant or BIT_AND_EXPR with constant mask and is
3293 small enough for the bound.
3294 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
3295 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
3296
b559c810
MLI
32972014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3298
3299 * c.opt: Add CppReason to various flags.
3300 (Wdate-time): Re-sort.
3301 * c-common.c: Include c-common.h earlier.
3302 (struct reason_option_codes_t): Delete.
3303 (c_option_controlling_cpp_error): Prefix global type and struct
3304 with cpp_.
3305
1ef33fd4
MLI
33062014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3307
3308 * c.opt (Wnormalized): New.
3309 (Wnormalized=): Use Enum and Reject Negative.
3310 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
3311
66bb34c0
JM
33122014-09-08 Joseph Myers <joseph@codesourcery.com>
3313
3314 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
3315 digits of floating-point modes if -fbuilding-libgcc.
3316
53d68b9f
JM
33172014-09-05 Joseph Myers <joseph@codesourcery.com>
3318
3319 * c-cppbuiltin.c (c_cpp_builtins): Also define
3320 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
3321 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
3322 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
3323 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
3324 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
3325 __LIBGCC_STACK_GROWS_DOWNWARD__,
3326 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
3327 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
3328 __LIBGCC_DWARF_FRAME_REGISTERS__,
3329 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
3330 __LIBGCC_STACK_POINTER_REGNUM__ and
3331 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
3332 (builtin_define_with_value): Handle backslash-escaping in string
3333 macro values.
3334
f65586dc
RB
33352014-09-05 Richard Biener <rguenther@suse.de>
3336
3337 PR middle-end/63148
3338 * c-format.c (check_format_arg): Properly handle
3339 effectively signed POINTER_PLUS_EXPR offset.
3340
2b71f4a4
MLI
33412014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
3342
3343 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
3344 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
3345 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
3346 and Init.
3347 * c-opts.c (c_common_handle_option): Do not handle here.
3348 (sanitize_cpp_opts): Likewise.
3349 * c-common.c (struct reason_option_codes_t): Handle
3350 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
3351
d2e4feca
MP
33522014-09-03 Marek Polacek <polacek@redhat.com>
3353
3354 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
3355
9a771876
JJ
33562014-09-02 Jakub Jelinek <jakub@redhat.com>
3357 Balaji V. Iyer <balaji.v.iyer@intel.com>
3358 Igor Zamyatin <igor.zamyatin@intel.com>
3359
3360 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
3361 * c-common.c (c_common_reswords): Added _Cilk_for.
3362 * c-common.h (enum rid): Added RID_CILK_FOR.
3363 (cilk_for_number_of_iterations): Add declaration.
3364 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
3365 CILK_FOR.
3366 * c-pragma.c (init_pragma): Register "grainsize" pragma.
3367 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
3368
81b5d104
MLI
33692014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3370
3371 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
3372 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
3373 Wundef): Use CPP, Var and Init.
3374 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
3375
b753b37b
MLI
33762014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3377
3378 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
3379 * c-opts.c (c_common_handle_option): Do not handle here.
3380
028aee17
JM
33812014-08-25 Jason Merrill <jason@redhat.com>
3382
3383 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
3384 -std=c++14 and -std=gnu++14, rather than the reverse.
3385 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
3386 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
3387 * c-common.h (cxx_dialect): Remove cxx1y.
3388
e4276ba5
ESR
33892014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
3390
3391 * c-common.h (enum cxx_dialect): Add cxx14.
3392 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
3393 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
3394 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
3395
a545cacd
JM
33962014-08-22 Jason Merrill <jason@redhat.com>
3397
3398 * c.opt (std=gnu++17): Fix alias.
3399
59ea0364
MP
34002014-08-22 Marek Polacek <polacek@redhat.com>
3401
3402 PR c++/62199
3403 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
3404 check for vector types. Drop LHS argument.
3405 * c-common.h (warn_logical_not_parentheses): Adjust.
3406
596e808c
MLI
34072014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
3408
3409 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
3410 (Wmultichar): Likewise.
3411 (Wdate-time): Use C-family languages instead of Common. Use CPP
3412 and Var.
3413 * c-opts.c (c_common_handle_option): Do not handle the above
3414 options here.
3415 (sanitize_cpp_opts): Likewise.
3416
18767f65
MLI
34172014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
3418
3419 PR fortran/44054
3420 * c-opts.c: Include tree-diagnostics.h.
3421 (c_diagnostic_finalizer): New.
3422 (c_common_initialize_diagnostics): Use it.
3423
b4413594
MLI
34242014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3425
3426 PR preprocessor/51303
3427 * c-common.c (struct reason_option_codes_t option_codes):
3428 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
3429
43f9a13c
MLI
34302014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3431
3432 PR c/60975
3433 PR c/53063
3434 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
3435 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
3436 (c_common_post_options): Call init_global_opts_from_cpp.
3437 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
3438
04159acf
MP
34392014-08-19 Marek Polacek <polacek@redhat.com>
3440
3441 PR c++/62153
3442 * c-common.c (maybe_warn_bool_compare): New function.
3443 * c-common.h (maybe_warn_bool_compare): Declare.
3444 * c.opt (Wbool-compare): New option.
3445
35aff4fb
MP
34462014-08-19 Marek Polacek <polacek@redhat.com>
3447
3448 * c.opt (Wc99-c11-compat): New option.
3449
177cce46
MP
34502014-08-19 Marek Polacek <polacek@redhat.com>
3451
3452 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
3453 to warn_c90_c99_compat.
3454 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
3455 to -1.
3456
6ae9194f
MLI
34572014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
3458 Steven Bosscher <steven@gcc.gnu.org>
3459
3460 PR c/52952
3461 * c-format.c: Add extra_arg_loc and format_string_loc to struct
3462 format_check_results.
3463 (check_function_format): Use true and add comment for boolean
3464 argument.
3465 (finish_dollar_format_checking): Use explicit location when warning.
3466 (check_format_info): Likewise.
3467 (check_format_arg): Set extra_arg_loc and format_string_loc.
3468 (check_format_info_main): Use explicit location when warning.
3469 (check_format_types): Pass explicit location.
3470 (format_type_warning): Likewise.
3471
8e54f6d3
MLI
34722014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3473
3474 PR fortran/44054
3475 * c-format.c: Handle Fortran flags.
3476
cd4e76fc
IZ
34772014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
3478
3479 PR other/61962
3480 * array-notation-common.c (find_rank): Added handling for other
3481 types of references.
3482
f3bede71
MP
34832014-08-10 Marek Polacek <polacek@redhat.com>
3484
3485 PR c/51849
3486 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
3487 * c.opt (Wc90-c99-compat): Add option.
3488
9f25a338
TS
34892014-08-07 Trevor Saunders <tsaunders@mozilla.com>
3490
3491 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
3492
62e4eb35
MP
34932014-08-03 Marek Polacek <polacek@redhat.com>
3494
3495 * c-common.c (check_case_value): Add location_t parameter. Use it.
3496 (c_add_case_label): Pass loc to check_case_value.
3497
b787e7a2
TS
34982014-08-02 Trevor Saunders <tsaunders@mozilla.com>
3499
3500 * cilk.c: Use hash_map instead of pointer_map.
3501
6e2830c3
TS
35022014-08-02 Trevor Saunders <tsaunders@mozilla.com>
3503
3504 * c-gimplify.c: Use hash_set instead of pointer_set.
3505
a7ee52fb
IZ
35062014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
3507
3508 PR middle-end/61455
3509 * array-notation-common.c (extract_array_notation_exprs): Handling
3510 of DECL_EXPR added.
3511
944fa280
JJ
35122014-08-01 Jakub Jelinek <jakub@redhat.com>
3513
3514 * c-common.h (min_align_of_type): Removed prototype.
3515 * c-common.c (min_align_of_type): Removed.
3516 * c-ubsan.h (ubsan_maybe_instrument_reference,
3517 ubsan_maybe_instrument_member_call): New prototypes.
3518 * c-ubsan.c: Include stor-layout.h and builtins.h.
3519 (ubsan_maybe_instrument_reference_or_call,
3520 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
3521 functions.
3522
b4dfdc11
MG
35232014-07-31 Marc Glisse <marc.glisse@inria.fr>
3524
3525 PR c++/60517
3526 * c.opt (-Wreturn-local-addr): Move to common.opt.
3527
a41844e5
JM
35282014-07-30 Jason Merrill <jason@redhat.com>
3529
3530 PR c++/61659
3531 PR c++/61687
3532 Revert:
3533 * c.opt (-fuse-all-virtuals): New.
3534
976d5a22
TT
35352014-07-30 Tom Tromey <tromey@redhat.com>
3536
3537 PR c/59855
3538 * c.opt (Wdesignated-init): New option.
3539 * c-common.c (c_common_attribute_table): Add "designated_init".
3540 (handle_designated_init): New function.
3541
cdc94aca
MP
35422014-07-24 Marek Polacek <polacek@redhat.com>
3543
3544 PR c/57653
3545 * c-opts.c (c_finish_options): If -imacros is in effect, return.
3546
f41373b6
DS
35472014-07-16 Dodji Seketeli <dodji@redhat.com>
3548
3549 PR preprocessor/60723 - missing system-ness marks for macro tokens
3550 * c-ppoutput.c (struct print::prev_was_system_token): New data
3551 member.
3552 (init_pp_output): Initialize it.
3553 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
3554 (do_line_change): Return a flag saying if a line marker was
3555 emitted or not.
3556 (scan_translation_unit): Detect if the system-ness of the token we
3557 are about to emit is different from the one of the previously
3558 emitted token. If so, emit a line marker. Avoid emitting useless
3559 adjacent line markers. Avoid emitting line markers for tokens
3560 originating from the expansion of built-in macros.
3561 (scan_translation_unit_directives_only): Adjust.
3562
4d661eaa
MP
35632014-07-15 Marek Polacek <polacek@redhat.com>
3564
3565 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
3566 TYPE_MAX_VALUE is NULL.
3567
b108f48f
JJ
35682014-07-14 Jakub Jelinek <jakub@redhat.com>
3569
3570 PR middle-end/61294
3571 * c.opt (Wmemset-transposed-args): New warning.
3572
c0221884
JM
35732014-07-10 Jason Merrill <jason@redhat.com>
3574
3575 PR c++/61659
3576 PR c++/61687
3577 * c.opt (-fuse-all-virtuals): New.
3578
63dfbb95
RB
35792014-07-09 Richard Biener <rguenther@suse.de>
3580
3581 PR c-family/61741
3582 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
3583 using unsigned arithmetic if overflow does not wrap instead of
3584 if overflow is undefined.
3585
773ec47f
MP
35862014-07-06 Marek Polacek <polacek@redhat.com>
3587
3588 PR c/6940
3589 * c.opt (Wsizeof-array-argument): New option.
3590
00a7ba58
JJ
35912014-07-03 Jakub Jelinek <jakub@redhat.com>
3592
b1726d6c 3593 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
00a7ba58
JJ
3594 comments->count <= 1, as comments->entries might be NULL.
3595
52ec0ea3
MP
35962014-07-01 Marek Polacek <polacek@redhat.com>
3597
3598 * c.opt (Wint-conversion): New option.
3599
d5c3d343
MP
36002014-07-01 Marek Polacek <polacek@redhat.com>
3601
3602 PR c/58286
3603 * c.opt (Wincompatible-pointer-types): New option.
3604
6e7ceb17
PC
36052014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
3606
3607 PR c++/51400
3608 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
3609 Do not discard TYPE_QUALS of type.
3610
da73100b
JM
36112014-06-26 Jason Merrill <jason@redhat.com>
3612
3613 * c-common.h (enum cxx_dialect): Add cxx1z.
3614 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
3615 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
3616
08eedf75
TJ
36172014-06-26 Teresa Johnson <tejohnson@google.com>
3618
3619 * c-common.h (get_dump_info): Declare.
3620 * c-gimplify.c (c_genericize): Use saved dump files.
3621 * c-opts.c (c_common_parse_file): Begin and end dumps
3622 once around parsing invocation.
3623 (get_dump_info): New function.
3624
7b56b2f8
MP
36252014-06-23 Marek Polacek <polacek@redhat.com>
3626 Andrew MacLeod <amacleod@redhat.com>
3627
3628 PR c/61553
3629 * c-common.c (get_atomic_generic_size): Don't segfault if the
3630 type doesn't have a size.
3631
0e37a2f3
MP
36322014-06-20 Marek Polacek <polacek@redhat.com>
3633
3634 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
3635 (ubsan_walk_array_refs_r): New function.
3636 (c_genericize): Instrument array bounds.
3637 * c-ubsan.c: Include "internal-fn.h".
3638 (ubsan_instrument_division): Mark instrumented arrays as having
3639 side effects. Adjust ubsan_type_descriptor call.
3640 (ubsan_instrument_shift): Likewise.
3641 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
3642 (ubsan_instrument_bounds): New function.
3643 (ubsan_array_ref_instrumented_p): New function.
3644 (ubsan_maybe_instrument_array_ref): New function.
3645 * c-ubsan.h (ubsan_instrument_bounds): Declare.
3646 (ubsan_array_ref_instrumented_p): Declare.
3647 (ubsan_maybe_instrument_array_ref): Declare.
3648
36492014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
3650
3651 PR lto/61123
3652 * c.opt (fshort-enums): Add to LTO.
3653 * c.opt (fshort-wchar): Likewise.
3654
5c3d09f7
MP
36552014-06-16 Marek Polacek <polacek@redhat.com>
3656
3657 PR c/60439
3658 * c.opt (Wswitch-bool): Add Var.
3659
9cf32741
JJ
36602014-06-12 Jakub Jelinek <jakub@redhat.com>
3661
3662 PR middle-end/61486
3663 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
3664 #pragma omp target teams or
3665 #pragma omp {,target }teams distribute simd.
3666
62984918
JM
36672014-06-12 Jason Merrill <jason@redhat.com>
3668
3669 * c.opt (Wabi=, fabi-compat-version): New.
3670 * c-opts.c (c_common_handle_option): Handle -Wabi=.
3671 (c_common_post_options): Handle flag_abi_compat_version default.
3672 Disallow -fabi-compat-version=1.
3673 * c-common.h (abi_version_crosses): New.
3674
f961457f
JH
36752014-06-11 Jan Hubicka <hubicka@ucw.cz>
3676
adfac8df 3677 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
3678 section names that are no longer trees.
3679
92d28cbb
JJ
36802014-06-10 Jakub Jelinek <jakub@redhat.com>
3681
3682 PR fortran/60928
3683 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
3684 (omp_pragmas): ... back here.
3685
742938c9
MP
36862014-06-05 Marek Polacek <polacek@redhat.com>
3687
3688 PR c/49706
3689 * c-common.c (warn_logical_not_parentheses): New function.
3690 * c-common.h (warn_logical_not_parentheses): Declare.
3691 * c.opt (Wlogical-not-parentheses): New option.
3692
9d548dfb
MP
36932014-06-04 Marek Polacek <polacek@redhat.com>
3694
3695 PR c/30020
3696 * c-common.c (check_case_bounds): Add location parameter.
3697 Use it.
3698 (c_add_case_label): Pass loc to check_case_bounds.
3699
fedfecef
MP
37002014-06-03 Marek Polacek <polacek@redhat.com>
3701
3702 PR c/60439
3703 * c.opt (Wswitch-bool): New option.
3704
f6a7cffc
TS
37052014-05-22 Thomas Schwinge <thomas@codesourcery.com>
3706
040d18b6
TS
3707 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
3708 Remove prototypes.
3709 (record_types_used_by_current_var_decl): Move prototype to where
3710 it belongs.
3711
f6a7cffc
TS
3712 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
3713 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
3714 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
3715
632f2871
RS
37162014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
3717
3718 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
3719 * c-common.c (c_common_nodes_and_builtins): Don't initialize
3720 void_zero_node.
3721 * c-pretty-print.c (pp_c_void_constant): New function.
3722 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
3723 (c_pretty_printer::expression): Handle VOID_CST.
3724 * cilk.c (extract_free_variables): Likewise.
3725 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
3726 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
3727
766090c2
TS
37282014-05-17 Trevor Saunders <tsaunders@mozilla.com>
3729
3730 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
3731 * c-pragma.c (push_alignment): Adjust.
3732 (handle_pragma_push_options): Likewise.
3733
661a0813
MP
37342014-05-09 Marek Polacek <polacek@redhat.com>
3735
3736 PR c/50459
3737 * c-common.c (check_user_alignment): Return -1 if alignment is error
3738 node.
3739 (handle_aligned_attribute): Don't call default_conversion on
3740 FUNCTION_DECLs.
3741 (handle_vector_size_attribute): Likewise.
3742 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
3743 (handle_sentinel_attribute): Call default_conversion and allow even
3744 integral types as an argument.
3745
2793eeab
MP
37462014-05-08 Marek Polacek <polacek@redhat.com>
3747
3748 PR c/61053
3749 * c-common.c (min_align_of_type): New function factored out from...
3750 (c_sizeof_or_alignof_type): ...here.
3751 * c-common.h (min_align_of_type): Declare.
3752
f827930a
MP
37532014-05-08 Marek Polacek <polacek@redhat.com>
3754
3755 PR c/61077
3756 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
3757 parameter type of main.
3758
ca49b74e
DD
37592014-05-07 DJ Delorie <dj@redhat.com>
3760
3761 * c-cppbuiltin.c (print_bits_of_hex): New.
3762 (builtin_define_type_minmax): Print values using hex so as not to
3763 require a pre-computed list of string values.
3764
1d60af08
KZ
37652014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
3766 Mike Stump <mikestump@comcast.net>
3767 Richard Sandiford <rdsandiford@googlemail.com>
3768
3769 * c-ada-spec.c: Include wide-int.h.
3770 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
3771 (dump_generic_ada_node): Use wide-int interfaces.
3772 * c-common.c: Include wide-int-print.h.
3773 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
3774 (pointer_int_sum): Use wide-int interfaces.
3775 (c_common_nodes_and_builtins): Use make_int_cst.
3776 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
3777 (handle_alloc_size_attribute): Use wide-int interfaces.
3778 (get_nonnull_operand): Likewise.
3779 * c-format.c (get_constant): Use tree_fits_uhwi_p.
3780 * c-lex.c: Include wide-int.h.
3781 (narrowest_unsigned_type): Take a widest_int rather than two
3782 HOST_WIDE_INTs.
3783 (narrowest_signed_type): Likewise.
3784 (interpret_integer): Update accordingly. Use wide-int interfaces.
3785 (lex_charconst): Use wide-int interfaces.
3786 * c-pretty-print.c: Include wide-int.h.
3787 (pp_c_integer_constant): Use wide-int interfaces.
3788 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
3789 INT_CST_LT_UNSIGNED.
3790
b15458be
RB
37912014-05-06 Richard Biener <rguenther@suse.de>
3792
3793 * c-opts.c (c_common_post_options): For -freestanding,
3794 -fno-hosted and -fno-builtin disable pattern recognition
3795 if not enabled explicitely.
3796
6577374e
MP
37972014-05-02 Marek Polacek <polacek@redhat.com>
3798
3799 * c.opt (Wsizeof-pointer-memaccess): Describe option.
3800
d00887e8
MP
38012014-05-01 Marek Polacek <polacek@redhat.com>
3802
3803 PR c/43245
3804 * c.opt (Wdiscarded-qualifiers): Add.
3805
f8ed5150
MP
38062014-04-30 Marek Polacek <polacek@redhat.com>
3807
3808 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
3809 INT_MIN / -1 sanitization only for integer types.
3810
45484dcf
MP
38112014-04-25 Marek Polacek <polacek@redhat.com>
3812
3813 PR c/18079
3814 * c-common.c (handle_noinline_attribute): Warn if the attribute
3815 conflicts with always_inline attribute.
3816 (handle_always_inline_attribute): Warn if the attribute conflicts
3817 with noinline attribute.
3818
38e514c0
MP
38192014-04-25 Marek Polacek <polacek@redhat.com>
3820
3821 PR c/60156
3822 * c-common.c (check_main_parameter_types): Warn about variadic main.
3823
44875f92
MS
38242014-04-24 Mike Stump <mikestump@comcast.net>
3825
3826 * c.opt (Wshadow-ivar): Default to on.
3827
dcaaa5a0
DP
38282014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
3829
3830 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
3831
c07d7c02
MP
38322014-04-23 Marek Polacek <polacek@redhat.com>
3833
3834 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
3835
1c33c9b7
JJ
38362014-04-22 Jakub Jelinek <jakub@redhat.com>
3837
3838 PR sanitizer/60275
3839 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
3840 if flag_sanitize_undefined_trap_on_error.
3841 (ubsan_instrument_division, ubsan_instrument_shift,
3842 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
3843 if !flag_sanitize_recover.
3844
793c625f
MG
38452014-04-22 Marc Glisse <marc.glisse@inria.fr>
3846
3847 PR libstdc++/43622
3848 * c-common.c (registered_builtin_types): Make non-static.
3849 * c-common.h (registered_builtin_types): Declare.
3850
b0f1bf36
RB
38512014-04-14 Richard Biener <rguenther@suse.de>
3852 Marc Glisse <marc.glisse@inria.fr>
3853
3854 PR c/60819
3855 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
3856 apply may-alias the scalar pointer type when applicable.
3857
3b07fa4a
IZ
38582014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
3859
3860 PR middle-end/60467
3861 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
3862 as possible argument for Cilk_spawn.
3863
cbbd2b1c
TB
38642014-04-11 Tobias Burnus <burnus@net-b.de>
3865
3866 PR c/60194
3867 * c.opt (Wformat-signedness): Add
3868 * c-format.c(check_format_types): Use it.
3869
6415bd5d
JM
38702014-04-11 Jason Merrill <jason@redhat.com>
3871
3872 PR c++/57926
3873 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
3874 default_conversion for an array argument.
3875
6525783a
MP
38762014-04-08 Marek Polacek <polacek@redhat.com>
3877
3878 PR sanitizer/60745
3879 * c-ubsan.c: Include asan.h.
3880 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
3881
880a467b
NS
38822014-04-03 Nathan Sidwell <nathan@codesourcery.com>
3883
3884 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
3885
7b59ff2d
MP
38862014-04-02 Marek Polacek <polacek@redhat.com>
3887
3888 * c-common.h (c_expand_expr): Remove declaration.
3889
8edbfaa6
JJ
38902014-03-28 Jakub Jelinek <jakub@redhat.com>
3891
3892 PR c++/60689
3893 * c-common.c (add_atomic_size_parameter): When creating new
3894 params vector, push the size argument first.
3895
07d72e1d
JJ
38962014-03-26 Jakub Jelinek <jakub@redhat.com>
3897
3898 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
3899 ubsan_instrument_vla, ubsan_instrument_return): Adjust
3900 ubsan_create_data callers.
3901
b35e0fa0
JJ
39022014-03-22 Jakub Jelinek <jakub@redhat.com>
3903
3904 PR debug/60603
3905 * c-opts.c (c_finish_options): Restore cb_file_change call to
3906 <built-in>.
3907
39a1ebb3
JJ
39082014-03-13 Jakub Jelinek <jakub@redhat.com>
3909
3910 PR middle-end/36282
3911 * c-pragma.c (apply_pragma_weak): Only look at
3912 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
3913 DECL_ASSEMBLER_NAME_SET_P (decl).
3914 (maybe_apply_pending_pragma_weaks): Exit early if
3915 vec_safe_is_empty (pending_weaks) rather than only when
3916 !pending_weaks.
3917 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
3918 set assembler name back to NULL afterwards.
3919
a07f6ed2
JM
39202014-03-11 Jason Merrill <jason@redhat.com>
3921
3922 * c.opt: Add -std=gnu++14.
3923
75b107f5
IB
39242014-03-11 Ian Bolton <ian.bolton@arm.com>
3925
3926 * c-opts.c (c_common_post_options): Don't override
3927 -ffp-contract=fast if unsafe-math-optimizations is on.
3928
f42c637e
PM
39292014-03-08 Paulo Matos <paulo@matos-sorge.com>
3930
22b15758 3931 * c.opt: Enable LTO FE for fshort-double.
f42c637e 3932
70e24808
JM
39332014-03-07 Jason Merrill <jason@redhat.com>
3934
3935 * c.opt: Add -std=c++14.
3936
3af9c5e9
MP
39372014-03-06 Marek Polacek <polacek@redhat.com>
3938
3939 PR c/60197
3940 * cilk.c (contains_cilk_spawn_stmt): New function.
3941 (contains_cilk_spawn_stmt_walker): Likewise.
3942 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
3943 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
3944
b3bdf019
JJ
39452014-03-03 Jakub Jelinek <jakub@redhat.com>
3946
3947 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
3948 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
3949 even when flag_preprocess_only.
3950
ca7e759d
JM
39512014-02-26 Jason Merrill <jason@redhat.com>
3952
3953 PR c++/59231
3954 PR c++/11586
3955 * c-common.c (shorten_compare): Don't check
3956 c_inhibit_evaluation_warnings.
3957
28e41874
JJ
39582014-02-19 Jakub Jelinek <jakub@redhat.com>
3959
cca615af
JJ
3960 PR c/37743
3961 * c-common.c (c_common_nodes_and_builtins): When initializing
3962 c_uint{16,32,64}_type_node, also set corresponding
3963 uint{16,32,64}_type_node to the same value.
3964
28e41874
JJ
3965 PR c++/60267
3966 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
3967 for PRAGMA_IVDEP if flag_preprocess_only.
3968
c2bf53a1
JJ
39692014-02-12 Jakub Jelinek <jakub@redhat.com>
3970
3971 PR c/60101
3972 * c-common.c (merge_tlist): If copy is true, call new_tlist,
3973 if false, add ADD itself, rather than vice versa.
3974 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
3975 copy. For SAVE_EXPR, only call merge_tlist once.
3976
8fcbce72
JJ
39772014-02-08 Jakub Jelinek <jakub@redhat.com>
3978
3979 PR middle-end/60092
3980 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
3981 and tree_to_uhwi.
3982 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
3983 functions.
3984 (c_common_attribute_table): Add alloc_align and assume_aligned
3985 attributes.
3986
0a756a3f
MP
39872014-02-06 Marek Polacek <polacek@redhat.com>
3988
3989 PR c/60087
3990 * c-common.c (warn_for_sign_compare): Call warning_at with location
3991 instead of warning.
3992
7ec4847a
MP
39932014-02-05 Marek Polacek <polacek@redhat.com>
3994
3995 PR c/53123
3996 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
3997 statement.
3998
66f20604
MP
39992014-02-04 Marek Polacek <polacek@redhat.com>
4000
4001 PR c/60036
4002 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
4003 SAVE_EXPR.
4004
5d77fb19
MG
40052014-02-03 Marc Glisse <marc.glisse@inria.fr>
4006
4007 PR c++/53017
4008 PR c++/59211
4009 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
4010 handle_vector_size_attribute, handle_nonnull_attribute): Call
4011 default_conversion on the attribute argument.
4012 (handle_nonnull_attribute): Increment the argument number.
4013
81e5eca8
MP
40142014-01-31 Marek Polacek <polacek@redhat.com>
4015
4016 PR c/59963
4017 * c-common.c (add_atomic_size_parameter): Pass vNULL to
4018 build_function_call_vec.
4019 (resolve_overloaded_builtin): Likewise.
4020 * c-common.h (build_function_call_vec): Adjust declaration.
4021
68fca595
MP
40222014-01-30 Marek Polacek <polacek@redhat.com>
4023
4024 PR c/59940
4025 * c-common.h (unsafe_conversion_p): Adjust declaration.
4026 (warnings_for_convert_and_check): Likewise.
4027 (convert_and_check): Likewise.
4028 * c-common.c (unsafe_conversion_p): Add location parameter. Call
4029 expansion_point_location_if_in_system_header on it.
4030 (warnings_for_convert_and_check): Add location parameter. Call
4031 expansion_point_location_if_in_system_header on it. Use it.
4032 (convert_and_check): Add location parameter. Use it.
4033 (conversion_warning): Likewise.
4034 (c_add_case_label): Adjust convert_and_check calls.
4035 (scalar_to_vector): Adjust unsafe_conversion_p calls.
4036
b72271b9
BI
40372014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
4038
4039 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
4040 flag_cilkplus.
4041 * c-pragma.c (init_pragma): Likewise.
4042 * c.opt: Likewise.
4043
393e8e8b
MP
40442014-01-23 Marek Polacek <polacek@redhat.com>
4045
4046 PR c/59846
4047 * c-common.c (shorten_compare): Add location_t parameter.
4048 * c-common.h (shorten_binary_op): Adjust declaration.
4049
f04dda30
MP
40502014-01-23 Marek Polacek <polacek@redhat.com>
4051
4052 PR c/58346
4053 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
4054 * c-common.h: Declare it.
4055
621955cb
EB
40562014-01-20 Eric Botcazou <ebotcazou@adacore.com>
4057
4058 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
4059 * c-ada-spec.c (dump_ads): Likewise.
4060 (cpp_check): Likewise.
4061 (dump_ada_specs): Likewise.
4062
40632014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
4064
4065 PR c++/49718
4066 * c-common.c (handle_no_instrument_function_attribute): Allow
4067 no_instrument_function attribute in class member
4068 definition/declaration.
4069
241f845a
JJ
40702014-01-15 Jakub Jelinek <jakub@redhat.com>
4071
4072 PR c/58943
4073 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
4074 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
4075 being COMPOUND_EXPR.
4076 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
4077 operand a SAVE_EXPR and second MODIFY_EXPR.
4078
e83b8e2e
JJ
40792014-01-09 Jakub Jelinek <jakub@redhat.com>
4080
4081 PR target/58115
4082 * c-pch.c (c_common_write_pch): Call
4083 prepare_target_option_nodes_for_pch.
4084
23a5b65a
RS
40852014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
4086
4087 Update copyright years
4088
f9030485
RS
40892014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
4090
4091 * array-notation-common.c, c-cilkplus.c: Use the standard form for
4092 the copyright notice.
4093
f2aa696b
EB
40942013-12-28 Eric Botcazou <ebotcazou@adacore.com>
4095
4096 * c-ada-spec.c (print_constructor): New function.
4097 (print_destructor): Retrieve the origin of the destructor.
4098 (print_ada_declaration): Revamp handling of constructors/destructors.
4099
3f8257db 41002013-12-23 Stuart Hastings <stuart@apple.com>
1f26ac87
JM
4101 Bill Maddox <maddox@google.com>
4102 Jason Merrill <jason@redhat.com>
4103
4104 * c.opt: Add -fdeclone-ctor-dtor.
4105 * c-opts.c (c_common_post_options): Default to on iff -Os.
4106
41958c28
BI
41072013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
4108
4109 * c-common.c (c_common_attribute_table): Added "cilk simd function"
4110 attribute.
4111 * c-pragma.h (enum pragma_cilk_clause): Remove.
4112 (enum pragma_omp_clause): Added the following fields:
4113 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
4114 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
4115 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
4116 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
4117 PRAGMA_CILK_CLAUSE_UNIFORM.
4118
b1726d6c 4119
12893402
BI
41202013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
4121
4122 * cilk.c (cilk_outline): Made this function non-static.
4123 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
4124 (create_cilk_wrapper): Added a new parameter: a function pointer.
4125 (c_install_body_w_frame_cleanup): Remove
4126 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
4127 * c-common.h (cilk_outline): New prototype.
4128 (gimplify_cilk_spawn): Removed two parameters.
4129 (cilk_install_body_with_frame_cleanup): New prototype.
4130 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
4131 CILK_SPAWN_STMT case.
4132
085b42ed
BS
41332013-12-11 Bernd Schmidt <bernds@codesourcery.com>
4134
2ce064c3
BS
4135 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
4136
085b42ed
BS
4137 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
4138 (int_array_type_node): Remove.
4139 * c-common.c (c_common_nodes_and_builtins): Don't build it.
4140
9e36c9ed
MP
41412013-12-05 Marek Polacek <polacek@redhat.com>
4142
4143 PR c/52023
4144 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
4145 [ADJUST_FIELD_ALIGN].
4146
296674db
JM
41472013-12-04 Joseph Myers <joseph@codesourcery.com>
4148
4149 PR c/52023
4150 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
4151 and check field alignment if set.
4152 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
4153 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
4154
b1726d6c 41552013-12-04 Jakub Jelinek <jakub@redhat.com>
31e071ae
MP
4156 Marek Polacek <polacek@redhat.com>
4157
4158 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
4159 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
4160
d7947e19
L
41612013-11-29 H.J. Lu <hongjiu.lu@intel.com>
4162
4163 PR c/59309
4164 * cilk.c (gimplify_cilk_spawn): Properly handle function without
4165 arguments.
4166
fad7652e
JJ
41672013-11-29 Jakub Jelinek <jakub@redhat.com>
4168
4169 PR c/59280
4170 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
4171 goto invalid. If it is error_mark_node, don't issue further
4172 diagnostics.
4173
8b5e1202
SO
41742013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
4175
4176 * c.opt (Wopenmp-simd): New.
4177
0a508bb6
JJ
41782013-11-22 Jakub Jelinek <jakub@redhat.com>
4179
4180 * c-ubsan.h (ubsan_instrument_return): New prototype.
4181 * c-ubsan.c (ubsan_instrument_return): New function.
4182
2fb9a547
AM
41832013-11-22 Andrew MacLeod <amacleod@redhat.com>
4184
4185 * c-common.c: Add required include files from gimple.h.
4186 * c-gimplify.c: Likewise
4187 * cilk.c: Likewise
4188
8400e75e
DM
41892013-11-22 David Malcolm <dmalcolm@redhat.com>
4190
4191 * c-common.c (unsafe_conversion_p): Remove use of
4192 EXPR_LOC_OR_HERE macro.
4193 (conversion_warning): Likewise.
4194 (warnings_for_convert_and_check): Likewise.
4195 (warn_for_collisions_1): Likewise.
4196 (shorten_compare): Likewise, and remove use of in_system_header
4197 macro, using the location from the former.
4198 * c-lex.c (dump_one_header): Remove use of input_filename macro.
4199 (cb_def_pragma): Remove use of in_system_header macro.
4200 (lex_string): Likewise.
4201 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
4202
eb1ce453
KZ
42032013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
4204 Mike Stump <mikestump@comcast.net>
4205 Richard Sandiford <rdsandiford@googlemail.com>
4206
4207 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
4208 instead of TREE_INT_CST_LOW, in cases where there is a protecting
4209 tree_fits_shwi_p or tree_fits_uhwi_p.
4210 (dump_generic_ada_node): Likewise.
4211 * c-format.c (check_format_arg): Likewise.
4212 * c-pretty-print.c (pp_c_integer_constant): Likewise.
4213
6b3b8c27
KZ
42142013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
4215
4216 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
4217
49b0aa18
JC
42182013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
4219
4220 PR c/53001
4221 * c-common.c (unsafe_conversion_p): Make this function
4222 return an enumeration with more detail.
4223 (conversion_warning): Use the new return type of
4224 unsafe_conversion_p to separately warn either about conversions
4225 that lower floating point number precision or about the other
4226 kinds of conversions.
4227 * c-common.h (enum conversion_safety): New enumeration.
8e745a17
JJ
4228 (unsafe_conversion_p): switching return type to
4229 conversion_safety enumeration.
49b0aa18
JC
4230 * c.opt: Adding new warning -Wfloat-conversion and
4231 enabling it with -Wconversion.
4232
b826515a
BS
42332013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
4234
8e745a17
JJ
4235 * c-opts.c: Include plugin.h.
4236 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
b826515a 4237
b9a55b13
MP
42382013-11-19 Marek Polacek <polacek@redhat.com>
4239
4240 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
4241 call.
4242 (ubsan_instrument_shift): Likewise.
4243 (ubsan_instrument_vla): Likewise.
4244
7d362f6c
RS
42452013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4246
4247 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
4248 cast to unsigned type.
4249
386b1f1f
RS
42502013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4251
4252 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
4253 tree_low_cst.
4254 (complete_array_type): Update comment to refer to tree_to_[su]hwi
4255 rather than tree_low_cst.
4256
ae7e9ddd
RS
42572013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4258
4259 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
4260 tree_to_uhwi throughout.
4261
9439e9a1
RS
42622013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4263
4264 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
4265 tree_low_cst (..., 0) with tree_to_shwi throughout.
4266
cc269bb6
RS
42672013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4268
4269 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
4270 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
4271
9541ffee
RS
42722013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4273
4274 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
4275 host_integerp (..., 0) with tree_fits_shwi_p throughout.
4276
c02065fc
AH
42772013-11-15 Aldy Hernandez <aldyh@redhat.com>
4278
4279 * c-cilkplus.c: New file.
4280 * c-common.c (readonly_error): Add location argument.
4281 * c-common.h (readonly_error): Same.
4282 (c_finish_cilk_clauses): Protoize.
4283 (c_check_cilk_loop): Same.
4284 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
4285 Do not fail on error_mark_node.
4286 Abstract increment canonicalization to here...
4287 (c_omp_for_incr_canonicalize_ptr): New.
4288 c-pragma.c (init_pragma): Register "simd" pragma.
4289 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
4290 (enum pragma_cilk_clause): New.
4291
9cc65f15
RS
42922013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
4293
4294 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
4295 wchar_type and host_integerp checks.
4296
18f429e2
AM
42972013-11-14 Andrew MacLeod <amacleod@redhat.com>
4298
4299 * c-common.c: Likewise.
4300 * c-gimplify.c: Likewise.
4301 * cilk.c: Likewise.
4302
d8a2d370
DN
43032013-11-14 Diego Novillo <dnovillo@google.com>
4304
4305 * c-common.c: Include fold-const.h.
4306 Include stor-layout.h.
4307 Include calls.h.
4308 Include stringpool.h.
4309 Include attribs.h.
4310 Include varasm.h.
4311 Include trans-mem.h.
4312 * c-cppbuiltin.c: Include stor-layout.h.
4313 Include stringpool.h.
4314 * c-format.c: Include stringpool.h.
4315 * c-lex.c: Include stringpool.h.
4316 Include stor-layout.h.
4317 * c-pragma.c: Include stringpool.h.
4318 Include attribs.h.
4319 Include varasm.h.
4320 Include gcc-symtab.h.
4321 * c-pretty-print.c: Include stor-layout.h.
4322 Include attribs.h.
4323 * cilk.c: Include stringpool.h.
4324 Include calls.h.
4325
38b7bc7f
JM
43262013-11-13 Joseph Myers <joseph@codesourcery.com>
4327
4328 * c-common.h (enum rid): Add RID_AUTO_TYPE.
4329 * c-common.c (c_common_reswords): Add __auto_type.
4330 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
4331
45b0be94
AM
43322013-11-12 Andrew MacLeod <amacleod@redhat.com>
4333
18f429e2
AM
4334 * c-common.c: Include gimplify.h.
4335 * c-gimplify.c: Likewise.
4336 * cilk.c: Likewise.
4337 * c-omp.c: Include gimple-expr.h instead of gimple.h.
4338 * c-ubsan.c: Don't include gimple.h.
45b0be94 4339
582d9b50
JM
43402013-11-12 Joseph Myers <joseph@codesourcery.com>
4341
4342 * c-common.c (c_common_reswords): Add _Thread_local.
4343
6b28e197
JM
43442013-11-09 Joseph Myers <joseph@codesourcery.com>
4345
4346 * c-common.c (atomic_size_supported_p): New function.
4347 (resolve_overloaded_atomic_exchange)
4348 (resolve_overloaded_atomic_compare_exchange)
4349 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
4350 Use it instead of comparing size with a local list of sizes.
4351
267bac10
JM
43522013-11-07 Andrew MacLeod <amacleod@redhat.com>
4353 Joseph Myers <joseph@codesourcery.com>
4354
4355 * c-common.h (enum rid): Add RID_ATOMIC.
4356 * c-common.c (c_common_reswords): Add _Atomic.
4357 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
4358 (keyword_is_type_qualifier): Accept RID_ATOMIC.
4359 * c-format.c (check_format_types): Check for extra _Atomic
4360 qualifiers in format argument.
4361 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
4362 (pp_c_type_qualifier_list): Mention _Atomic in comment.
4363
5157b91e
TB
43642013-11-06 Tobias Burnus <burnus@net-b.de>
4365
4366 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
4367
6dbe0958
JM
43682013-11-06 Joseph Myers <joseph@codesourcery.com>
4369
4370 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
4371 standards modes.
4372 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
4373 to mean lack of IEEE 754 support.
4374
e8ff5196
TB
43752013-11-05 Tobias Burnus <burnus@net-b.de>
4376
4377 * c.opt (-Wdate-time): New option
4378 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
4379
254a0760
JM
43802013-11-05 Joseph Myers <joseph@codesourcery.com>
4381
4382 * c-cppbuiltin.c (cpp_iec_559_value): Test
4383 flag_excess_precision_cmdline not flag_excess_precision.
4384
6d7f7e0a
TB
43852013-11-05 Tobias Burnus <burnus@net-b.de>
4386
4387 * c.opt (fopenmp-simd): New option.
4388 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
4389 (omp_pragmas): ... this new struct.
4390 (c_pp_lookup_pragma): Also walk omp_pragmas.
4391 (init_pragma): Init pragmas for -fopenmp-simd.
4392
55a7f02f
MP
43932013-11-04 Marek Polacek <polacek@redhat.com>
4394
4395 PR c++/58979
4396 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
4397
9193fb05
JM
43982013-11-04 Joseph Myers <joseph@codesourcery.com>
4399
4400 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
4401 New functions.
4402 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
4403
94159ecf
EB
44042013-11-04 Eric Botcazou <ebotcazou@adacore.com>
4405
4406 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
4407 (dump_ada_specs): Adjust prototype of second callback.
4408 * c-ada-spec.c (cpp_check): New global variable.
4409 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
4410 (print_generic_ada_decl): Likewise.
4411 (has_static_fields): Change return type to bool and add guard.
4412 (has_nontrivial_methods): New predicate.
4413 (is_tagged_type): Change return type to bool.
4414 (separate_class_package): Call has_nontrivial_methods.
4415 (pp_ada_tree_identifier): Minor tweaks.
4416 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
4417 (dump_ada_array_domains): Likewise.
4418 (dump_ada_array_type): Likewise.
4419 (dump_template_types): Remove cpp_check parameter and do not pass it to
4420 dump_generic_ada_node.
4421 (dump_ada_template): Likewise.
4422 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
4423 recursively.
4424 (print_ada_methods): Change return type to integer. Remove cpp_check
4425 parameter and do not pass it down.
4426 (dump_nested_types): Remove cpp_check parameter and do not pass it to
4427 dump_generic_ada_node.
4428 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
4429 accessing methods.
4430 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
4431 down. Use has_nontrivial_methods to recognize C++ classes. Use return
4432 value of print_ada_methods.
4433 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
4434 Set cpp_check to it before invoking dump_ada_nodes.
4435 (dump_ada_specs): Likewise.
4436
b906f4ca
MP
44372013-11-03 Marek Polacek <polacek@redhat.com>
4438
4439 * c-ubsan.c: Don't include hash-table.h.
4440 (ubsan_instrument_vla): New function.
4441 * c-ubsan.h: Declare it.
4442
5e20cdc9
DM
44432013-10-31 David Malcolm <dmalcolm@redhat.com>
4444
4445 Automated part of renaming of symtab_node_base to symtab_node.
4446
4447 Patch autogenerated by rename_symtab.py from
4448 https://github.com/davidmalcolm/gcc-refactoring-scripts
4449 revision 58bb219cc090b2f4516a9297d868c245495ee622
4450
4451 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
4452 symtab_node_base to symtab_node.
4453
7057e645
ESR
44542013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
4455
8e745a17 4456 Implement C++14 digit separators.
7057e645
ESR
4457 * c-lex.c (interpret_float): Remove digit separators from scratch string
4458 before building real literal.
4459
193ea7bc
JJ
44602013-10-30 Jakub Jelinek <jakub@redhat.com>
4461
4462 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
4463
939b37da
BI
44642013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
4465
4466 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
4467 fields.
4468 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
4469 enabled.
4470 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
4471 (insert_cilk_frame): New prototype.
4472 (cilk_init_builtins): Likewise.
4473 (gimplify_cilk_spawn): Likewise.
4474 (c_cilk_install_body_w_frame_cleanup): Likewise.
4475 (cilk_detect_spawn_and_unwrap): Likewise.
4476 (cilk_set_spawn_marker): Likewise.
4477 (build_cilk_sync): Likewise.
4478 (build_cilk_spawn): Likewise.
4479 * cilk.c: New file.
4480
67348ccc
DM
44812013-10-29 David Malcolm <dmalcolm@redhat.com>
4482
4483 Patch autogenerated by refactor_symtab.py from
4484 https://github.com/davidmalcolm/gcc-refactoring-scripts
4485 revision 58bb219cc090b2f4516a9297d868c245495ee622
4486
4487 * c-gimplify.c (c_genericize): Update for conversion of symtab types
4488 to a true class hierarchy.
4489 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
4490
d570872d
RS
44912013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
4492
4493 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
4494
98906124
JL
44952013-10-26 Jeff Law <law@redhat.com>
4496
adfac8df
JJ
4497 * c-common.c (c_define_builtins): Remove mudflap support.
4498 * c.opt: Ignore and warn for mudflap options.
98906124 4499
d73749df 45002013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
4501
4502 PR other/33426
4503 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
4504 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
4505
3f04b1bb
JM
45062013-10-23 Jason Merrill <jason@redhat.com>
4507
4508 * c-format.c (gcc_cxxdiag_char_table): Add %X.
4509
acf0174b
JJ
45102013-10-11 Jakub Jelinek <jakub@redhat.com>
4511
acd15a28
JJ
4512 * c-common.h (omp_clause_mask::operator !=): New method.
4513 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
4514 instead of if (mask & something) tests everywhere.
4515
acf0174b
JJ
4516 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
4517 201307 instead of 201107.
4518 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
4519 (c_common_attribute_table): Add "omp declare target" and
4520 "omp declare simd" attributes.
4521 (handle_omp_declare_target_attribute,
4522 handle_omp_declare_simd_attribute): New functions.
4523 * c-omp.c: Include c-pragma.h.
4524 (c_finish_omp_taskgroup): New function.
4525 (c_finish_omp_atomic): Add swapped argument, if true,
4526 build the operation first with rhs, lhs arguments and use NOP_EXPR
4527 build_modify_expr.
4528 (c_finish_omp_for): Add code argument, pass it down to make_code.
4529 (c_omp_split_clauses): New function.
4530 (c_split_parallel_clauses): Removed.
4531 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
4532 c_omp_declare_simd_clauses_to_decls): New functions.
4533 * c-common.h (omp_clause_mask): New type.
4534 (OMP_CLAUSE_MASK_1): Define.
4535 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
4536 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
4537 omp_clause_mask::operator |, omp_clause_mask::operator &,
4538 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
4539 omp_clause_mask::operator ==): New methods.
4540 (enum c_omp_clause_split): New.
4541 (c_finish_omp_taskgroup): New prototype.
4542 (c_finish_omp_atomic): Add swapped argument.
4543 (c_finish_omp_for): Add code argument.
4544 (c_omp_split_clauses): New prototype.
4545 (c_split_parallel_clauses): Removed.
4546 (c_omp_declare_simd_clauses_to_numbers,
4547 c_omp_declare_simd_clauses_to_decls): New prototypes.
4548 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
4549 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
4550 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
4551 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
4552 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
4553 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
4554 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
4555 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
4556 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
4557 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
4558 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
4559 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
4560 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
4561 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
4562 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
4563 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
4564 PRAGMA_OMP_CLAUSE_UNIFORM.
4565
826cacfe
MG
45662013-10-09 Marc Glisse <marc.glisse@inria.fr>
4567
4568 PR tree-optimization/20318
4569 * c-common.c (handle_returns_nonnull_attribute): New function.
4570 (c_common_attribute_table): Add returns_nonnull.
4571
2284b034
MG
45722013-10-03 Marc Glisse <marc.glisse@inria.fr>
4573
4574 PR c++/19476
4575 * c.opt (fcheck-new): Move to common.opt.
4576
b56e9788
MP
45772013-09-25 Marek Polacek <polacek@redhat.com>
4578 Jakub Jelinek <jakub@redhat.com>
4579
4580 PR sanitizer/58413
4581 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
4582 an expression if we can prove it is correct.
4583 (ubsan_instrument_division): Likewise. Remove unnecessary
4584 check.
4585
ce6923c5
MP
45862013-09-18 Marek Polacek <polacek@redhat.com>
4587
4588 PR sanitizer/58411
4589 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
4590 Declare it.
4591 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
4592
fb5610fb
IS
45932013-09-14 Iain Sandoe <iain@codesourcery.com>
4594
4595 PR target/48094
4596 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
4597 fobjc-gc, freplace-objc-classes): Accept for LTO.
4598
88b0e79e
JC
45992013-09-13 Jacek Caban <jacek@codeweavers.com>
4600
4601 * c-target.def: New hook
4602
c9b0866a
PC
46032013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
4604
4605 PR c++/43452
4606 * c.opt (Wdelete-incomplete): Add.
4607
0af94e6f
JR
46082013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
4609
4610 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
4611 (vector_types_compatible_elements_p): New function.
4612 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
4613 declaration.
4614 (vector_types_compatible_elements_p): Declare.
4615
7c26172c
GDR
46162013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
4617
4618 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
4619 a virtual member function.
4620 (pp_simple_type_specifier): Remove.
4621 (pp_c_type_specifier): Likewise.
4622 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
4623 Rename from pp_c_type_specifier. Adjust.
4624 (c_pretty_printer::c_pretty_printer): Do not assign to
4625 simple_type_specifier.
4626
20059c8b
GDR
46272013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
4628
4629 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
4630 member function.
4631 (c_pretty_printer::storage_class_specifier): Likewise.
4632 (c_pretty_printer::initializer): Likewise.
4633 (pp_declaration): Remove.
4634 (pp_declaration_specifiers): Likewise.
4635 (pp_abstract_declarator): Likewise.
4636 (pp_declarator): Likewise.
4637 (pp_type_id): Likewise.
4638 (pp_statement): Likewise.
4639 (pp_constant): Likewise.
4640 (pp_id_expression): Likewise.
4641 (pp_primary_expression): Likewise.
4642 (pp_unary_expression): Likewise.
4643 (pp_multiplicative_expression): Likewise.
4644 (pp_conditional_expression): Likewise.
4645 (pp_assignment_expression): Likewise.
4646 (pp_expression): Likewise.
4647 (pp_c_type_id): Likewise.
4648 (pp_c_storage_class_specifier): Likewise.
4649 * c-pretty-print.c (pp_c_type_cast): Tidy.
4650 (pp_c_pointer): Likewise.
4651 (pp_c_type_specifier): Likewise.
4652 (pp_c_parameter_type_list): Likewise.
4653 (pp_c_function_definition): Likewise.
4654 (pp_c_init_declarator): Likewise.
4655 (pp_c_initializer_list): Likewise.
4656 (pp_c_constructor_elts): Likewise.
4657 (c_pretty_printer::direct_abstract_declarator): Likewise.
4658 (c_pretty_printer::declaration_specifiers): Likewise.
4659 (c_pretty_printer::primary_expression): Likewise.
4660 (c_pretty_printer::postfix_expression): Likewise.
4661 (c_pretty_printer::type_id): Rename from pp_c_type_id.
4662 (c_pretty_printer::storage_class_specifier): Rename from
4663 pp_c_storage_class_specifier.
4664 (c_pretty_printer::initializer): Rename from pp_c_initializer.
4665 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
4666 storage_class_specifier, initializer, offset_list, flags.
4667
de5a5fa1
MP
46682013-08-30 Marek Polacek <polacek@redhat.com>
4669
4670 * c-ubsan.c: New file.
4671 * c-ubsan.h: New file.
4672
8f0e4d72
GDR
46732013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
4674
4675 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
4676 member function.
4677 (c_pretty_printer::declaration_specifiers): Likewise.
4678 (c_pretty_printer::declarator): Likewise.
4679 (c_pretty_printer::abstract_declarator): Likewise.
4680 (c_pretty_printer::direct_abstract_declarator): Likewise.
4681 (c_pretty_printer::direct_declarator): Likewise.
4682 (c_pretty_printer::function_specifier): Likewise.
4683 (pp_declaration): Adjust.
4684 (pp_declaration_specifiers): Likewise.
4685 (pp_abstract_declarator): Likewise.
4686 (pp_direct_declarator): Likewise.
4687 (pp_function_specifier): Likewise.
4688 (pp_direct_abstract_declarator): Remove as unused.
4689 (pp_c_declaration): Remove.
4690 (pp_c_declaration_specifiers): Likewise.
4691 (pp_c_declarator): Likewise.
4692 (pp_c_direct_declarator): Likewise.
4693 (pp_c_function_specifier): Likewise.
4694 (pp_c_direct_abstract_declarator): Likewise.
4695 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
4696 from pp_c_abstract_declarator. Adjust.
4697 (c_pretty_printer::direct_abstract_declarator): Rename from
4698 pp_c_direct_abstract_declarator. Adjust.
4699 (c_pretty_printer::function_specifier): Rename from
4700 pp_c_function_specifier. Adjust.
4701 (c_pretty_printer::declaration_specifiers): Rename from
4702 pp_c_declaration_specifiers. Adjust.
4703 (c_pretty_printer::direct_declarator): Rename from
4704 pp_c_direct_declarator. Adjust.
4705 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
4706 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
4707 (c_pretty_printer::c_pretty_printer): Do not assign to
4708 declaration, declaration_specifiers, declarator,
4709 direct_declarator, direct_abstract_declarator, function_specifier.
4710
00d34d3a
GDR
47112013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
4712
4713 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
4714 virtual member function.
4715 (c_pretty_printer::multiplicative_expression): Likewise.
4716 (c_pretty_printer::conditional_expression): Likewise.
4717 (c_pretty_printer::assignment_expression): Likewise.
4718 (c_pretty_printer::expression): Likewise.
4719 (pp_unary_expression): Adjust.
4720 (pp_multiplicative_expression): Likewise.
4721 (pp_assignment_expression): Likewise.
4722 (pp_conditional_expression): Likewise.
4723 (pp_expression): Likewise.
4724 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
4725 from pp_c_unary_expression. Adjust.
4726 (c_pretty_printer::multiplicative_expression): Rename from
4727 pp_c_multiplicative_expression. Adjust.
4728 (c_pretty_printer::conditional_expression): Rename from
4729 pp_c_conditional_expression. Adjust.
4730 (c_pretty_printer::assignment_expression): Rename from
4731 pp_c_assignment_expression. Adjust.
4732 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
4733 (c_pretty_printer::c_pretty_printer): Do not assign to
4734 unary_expression, multiplicative_expression,
4735 conditional_expression, expression.
4736
fb22178f
GDR
47372013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4738
4739 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
4740 virtual member function.
4741 (pp_postfix_expression): Adjust.
4742 (pp_c_postfix_expression): Remove.
4743 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
4744 from pp_c_postfix_expression. Adjust.
4745 (c_pretty_printer::c_pretty_printer): Do not assign to
4746 postfix_expression.
4747
7ecc2600
GDR
47482013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4749
4750 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
4751 virtua member function.
4752 (pp_primary_expression): Adjust.
4753 (pp_c_primary_expression): Remove.
4754 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
4755 from pp_c_primary_expression. Adjust.
4756 (pp_c_initializer_list): Use pp_primary_expression.
4757 (c_pretty_printer::c_pretty_printer): Do not assign to
4758 primary_expression.
4759
0691175f
GDR
47602013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4761
4762 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
4763 * c-pretty-print.c (M_): Remove.
4764 (c_pretty_printer::translate_string): Define.
4765 (pp_c_type_specifier): Use it.
4766 (pp_c_primary_expression): Likewise.
4767 (pp_c_expression): Likewise.
4768
66dfe4c4
GDR
47692013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
4770
4771 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
4772 virtual function.
4773 (pp_c_id_expression): Remove.
4774 (pp_id_expression): Adjust.
4775 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
4776 pp_c_id_expression. Adjust.
4777 (pp_c_postfix_expression): Use pp_id_expression.
4778 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
4779
ca43e9d5
GDR
47802013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
4781
4782 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
4783 member function.
4784 (pp_constant): Adjust.
4785 (pp_c_constant): Remove.
4786 * c-pretty-print.c (c_pretty_printer::constant): Rename from
4787 pp_c_constant. Adjust.
4788 (pp_c_constant)
4789 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
4790 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
4791
da6ca2b5
GDR
47922013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
4793
4794 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
4795 (c_pretty_printer::c_pretty_printer): Declare.
4796 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
4797 c_pretty_printer_init. Adjust.
4798 (print_c_tree): Do not call c_pretty_printer_init.
4799 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
4800
65a372f4
AC
48012013-08-09 Arnaud Charlet <charlet@adacore.com>
4802
4803 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
4804
fd9b0f32
PC
48052013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
4806
4807 PR c++/58080
4808 * c-common.c (pointer_int_sum): Add bool parameter.
4809 * c-common.h (pointer_int_sum): Adjust declaration.
4810
e0aec1e9
GDR
48112013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
4812
4813 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
4814 c_pretty_printer variable.
4815
b066401f
GDR
48162013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
4817
4818 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
4819 (pp_base): Remove.
4820 (pp_c_base): Likewise. Adjust users.
4821 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
4822 (pp_c_whitespace): Do not call pp_base.
4823 (pp_c_left_paren): Likewise.
4824 (pp_c_right_paren): Likewise.
4825 (pp_c_left_brace): Likewise.
4826 (pp_c_right_brace): Likewise.
4827 (pp_c_left_bracket): Likewise.
4828 (pp_c_right_bracket): Likewise.
4829 (pp_c_dot): Likewise.
4830 (pp_c_ampersand): Likewise.
4831 (pp_c_star): Likewise.
4832 (pp_c_arrow): Likewise.
4833 (pp_c_semicolon): Likewise.
4834 (pp_c_complement): Likewise.
4835 (pp_c_exclamation): Likewise.
4836 (pp_c_direct_declarator): Likewise.
4837 (pp_c_ws_string): Likewise.
4838 (pp_c_identifier): Likewise.
4839 (pp_c_statement): Likewise.
4840 (print_c_tree): Likewise.
4841
65e5a578
ESR
48422013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
4843
4844 PR c++/58072
4845 * c-common.c (c_parse_error): Catch user-defined literal tokens and
4846 provide useful error strings.
4847
137a1a27
GDR
48482013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
4849
4850 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
4851 printer functions instead of pp_string or operators and punctuators.
4852 (dump_generic_ada_node): Likewise.
4853 * c-pretty-print.c (pp_c_type_specifier): Likewise.
4854 (pp_c_relational_expression): Likewise.
4855 (pp_c_logical_or_expression): Likewise.
4856
07838b13
GDR
48572013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
4858
4859 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
4860 functions instead of pp_character.
4861 (pp_ada_tree_identifier): Likewise.
4862 (dump_ada_double_name): Likewise.
4863 (dump_ada_function_declaration): Likewise.
4864 (dump_ada_array_domains): Likewise.
4865 (dump_template_types): Likewise.
4866 (dump_generic_ada_node): Likewise.
4867 (print_ada_declaration): Likewise.
4868 (print_ada_struct_decl): Likewise.
4869 * c-pretty-print.c (pp_c_integer_constant): Likewise.
4870
433cc7b0
TT
48712013-07-23 Tom Tromey <tromey@redhat.com>
4872
4873 * c-common.h (enum rid) <RID_GENERIC>: New constant.
4874 * c-common.c (c_common_reswords): Add _Generic.
4875
688010ba
OB
48762013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
4877
4878 * c-common.c: Fix typos.
4879 * c-common.h: Likewise.
4880
2a99e5e6
LL
48812013-07-13 Lubos Lunak <l.lunak@suse.cz>
4882
4883 PR c++/55203
4884 * c-common.c (c_common_attribute_table): Add warn_unused.
4885 (handle_warn_unused_attribute): New.
4886
c26302d5
JJ
48872013-07-10 Jakub Jelinek <jakub@redhat.com>
4888
4889 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
4890 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
4891
dfeadaa0
PC
48922013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
4893
4894 PR c++/57869
4895 * c.opt: Add Wconditionally-supported.
4896
6a2fa4b2
GS
48972013-07-08 Graham Stott <graham.stott@btinternet.com>
4898
adfac8df 4899 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
4900 unused variables l_length and l_node.
4901
ecdbd01a 49022013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
4903
4904 PR c/57821
4905 * c-common.c (complete_array_type): Delay folding first index
4906 like other indices. When folding, check for index overflow.
4907
bedc293e
MG
49082013-06-27 Marc Glisse <marc.glisse@inria.fr>
4909
4910 PR c++/57509
4911 * c-common.h (c_build_vec_perm_expr): New complain argument.
4912 * c-common.c (c_build_vec_perm_expr): Likewise.
4913 Use save_expr also in C++.
4914
604b2bfc
GDR
49152013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
4916
4917 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
4918 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
4919 * c-opts.c (c_common_post_options): Likewise.
4920
dfeadaa0 49212013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
4922
4923 * array-notation-common.c (length_mismatch_in_expr): Changed the
4924 parameter type's from a dynamic array to a vec_tree. Also removed
4925 the size parameters.
4926 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
4927 the change above.
4928
2ce86d2e
BI
49292013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
4930
4931 * c-common.h (struct cilkplus_an_parts): New structure.
4932 (struct cilkplus_an_loop_parts): Likewise.
4933 (cilkplus_extract_an_triplets): New prototype.
4934 (fix_sec_implicit_args): Likewise.
4935 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
4936 (fix_sec_implicit_args): Likewise.
604b2bfc 4937
07a6825b
BI
49382013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
4939
4940 * array-notation-common.c (find_inv_trees): Removed an unwanted
4941 typecasting.
4942 * c-common.h (struct inv_list::additional_tcodes): Changed type from
4943 enum rid to enum tree_code.
4944
08346abd
JH
49452013-06-11 Jan Hubicka <jh@suse.cz>
4946
4947 * c-common.c (handle_alias_ifunc_attribute): Do not set
4948 DECL_EXTERNAL for weakref variables.
4949 * c-pragma.c (handle_pragma_weak): Make sure aliases
4950 are not declared as external.
4951
d60f1706
BI
49522013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
4953
4954 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
4955 function from c/c-array-notation.c.
4956 (is_cilkplus_reduce_builtin): Likewise.
4957 (find_rank): Likewise.
4958 (extract_array_notation_exprs): Likewise.
4959 (replace_array_notations): Likewise.
4960 (find_inv_trees): Likewise.
4961 (replace_inv_trees): Likewise.
4962 (contains_array_notation_expr): Likewise.
4963 (find_correct_array_notation_type): Likewise.
4964 * c-common.h (struct inv_list): Moved this struct from the file
4965 c/c-array-notation.c and added a new field called additional tcodes.
4966 (length_mismatch_in_expr_p): New prototype.
4967 (is_cilkplus_reduce_builtin): Likewise.
4968 (find_rank): Likewise.
4969 (extract_array_notation_exprs): Likewise.
4970 (replace_array_notation): Likewise.
4971 (find_inv_trees): Likewise.
4972 (replace_inv_trees): Likewise.
4973 (find_correct_array_notation_type): Likewise.
dfeadaa0 4974
36536d79
BI
49752013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
4976
4977 * c-common.c (c_define_builtins): When cilkplus is enabled, the
4978 function array_notation_init_builtins is called.
4979 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
4980 * c-common.def (ARRAY_NOTATION_REF): New tree.
4981 * c-common.h (build_array_notation_expr): New function declaration.
4982 (build_array_notation_ref): Likewise.
4983 (extract_sec_implicit_index_arg): New extern declaration.
4984 (is_sec_implicit_index_fn): Likewise.
4985 (ARRAY_NOTATION_CHECK): New define.
4986 (ARRAY_NOTATION_ARRAY): Likewise.
4987 (ARRAY_NOTATION_START): Likewise.
4988 (ARRAY_NOTATION_LENGTH): Likewise.
4989 (ARRAY_NOTATION_STRIDE): Likewise.
4990 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
4991 ARRAY_NOTATION_REF.
4992 (pp_c_expression): Likewise.
4993 * c.opt (flag_enable_cilkplus): New flag.
4994 * array-notation-common.c: New file.
4995
f7716d57
JJ
49962013-05-14 Jakub Jelinek <jakub@redhat.com>
4997
4998 PR c++/57274
4999 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
5000
a5e0cd1d
MG
50012013-05-10 Marc Glisse <marc.glisse@inria.fr>
5002
5003 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
5004 vectors.
5005
f6bc1c4a
HS
50062013-05-07 Han Shen <shenhan@google.com>
5007
5008 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
5009
3f12f6e9
SKS
50102013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5011
5012 * c-common.c (check_user_alignment): Emit error for negative values.
5013
61949153
PC
50142013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
5015
5016 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
5017
e93e18e9
PC
50182013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
5019
5020 * c-cppbuiltin.c (c_cpp_builtins): Do not define
5021 __GXX_EXPERIMENTAL_CXX1Y__.
5022
44d90fe1 50232013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
8e745a17 5024 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
44d90fe1
PC
5025
5026 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
5027 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
5028 to simply use OPT_Wpointer_arith.
5029 (c_sizeof_or_alignof_type): Likewise.
5030
13f39b2e
PC
50312013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
5032
5033 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
5034
4b84d650
JJ
50352013-04-12 Jakub Jelinek <jakub@redhat.com>
5036
5037 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
5038 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
5039 specifiers.
5040
fb037b5d
SB
50412013-04-07 Steven Bosscher <steven@gcc.gnu.org>
5042
5043 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
5044
4e856798
PC
50452013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
5046
5047 * c-common.c (pointer_int_sum): Remove dead code.
5048
4b1baac8
RS
50492013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
5050
5051 PR middle-end/56524
5052 * c-common.c (handle_optimize_attribute): Don't call
5053 save_optabs_if_changed.
5054
0b50e654
JJ
50552013-03-05 Jakub Jelinek <jakub@redhat.com>
5056
5057 PR middle-end/56461
5058 * c-pch.c (pch_init): Free target_validity at the end.
5059
48c41403
JJ
50602013-03-04 Jakub Jelinek <jakub@redhat.com>
5061
5062 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
5063
e664c61c
KS
50642013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
5065 Jakub Jelinek <jakub@redhat.com>
5066
5067 PR sanitizer/56454
5068 * c-common.c (handle_no_sanitize_address_attribute): New function.
5069 (c_common_attribute_table): Add no_sanitize_address attribute.
5070 (handle_no_address_safety_analysis_attribute): Add
5071 no_sanitize_address attribute, not no_address_safety_analysis
5072 attribute.
5073
a475fd3d 50742013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
5075
5076 PR target/52555
5077 * c-common.c (handle_optimize_attribute): Call
5078 save_optabs_if_changed.
5079
f6007d99
JJ
50802013-02-18 Jakub Jelinek <jakub@redhat.com>
5081 Steven Bosscher <steven@gcc.gnu.org>
5082
5083 PR pch/54117
5084 * c-opts.c (c_common_post_options): If debug info is enabled
5085 and non-dwarf*, refuse to load PCH files and when writing PCH
5086 file warn.
5087
cf35e2b1
JJ
50882013-02-05 Jakub Jelinek <jakub@redhat.com>
5089
5090 PR middle-end/56167
5091 * c-common.c (handle_error_attribute): Fix condition.
5092
32887460
JJ
50932013-01-30 Jakub Jelinek <jakub@redhat.com>
5094
5095 PR c++/55742
5096 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
5097
5af057d8
JM
50982013-01-18 Jason Merrill <jason@redhat.com>
5099
5100 PR target/54908
5101 * c.opt (-fextern-tls-init): New.
5102 * c-opts.c (c_common_post_options): Handle it.
5103
cc83c823
JJ
51042013-01-09 Jakub Jelinek <jakub@redhat.com>
5105
5106 PR c/48418
5107 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
5108 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
5109 and is either negative or bigger or equal to type precision
5110 of the first operand.
5111
a859517f
MP
51122012-12-03 Marek Polacek <polacek@redhat.com>
5113
5114 PR c/55570
5115 * c-common.c (check_user_alignment): Swap order of tests,
5116 check TREE_CODE first.
5117
2d7aa578
ESR
51182012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
5119
5120 PR c++/52654
5121 * c-common.h (overflow_type): New enum.
5122 (build_userdef_literal): Add overflow_type argument.
5123 (tree_userdef_literal): Add overflow_type.
5124 (USERDEF_LITERAL_OVERFLOW): New access macro.
5125 * c-common.c (build_userdef_literal): Add overflow_type
5126 argument.
5127 * c-lex.c (c_lex_with_flags): Add overflow_type to
5128 build_userdef_literal calls.
5129 (interpret_integer, interpret_float): Add overflow_type argument.
5130
cc3c4f62
RB
51312012-11-28 Richard Biener <rguenther@suse.de>
5132
5133 PR c/35634
5134 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
5135 here and use a type with proper overflow behavior for types that would
5136 need to be promoted for the arithmetic.
5137
77bc5132
JJ
51382012-11-23 Jakub Jelinek <jakub@redhat.com>
5139
5140 PR sanitizer/55435
5141 * c-common.c (handle_no_address_safety_analysis_attribute): New
5142 function.
5143 (c_common_attribute_table): Add no_address_safety_analysis.
5144
5dc99c46
SB
51452012-11-16 Simon Baldwin <simonb@google.com>
5146
5147 * c.opt: Add f[no-]canonical-system-headers.
5148 * c-opts.c (c_common_handle_option): Handle
5149 OPT_fcanonical_system_headers.
5150
a4a0016d
ESR
51512012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
5152
5153 PR c++/54413
5154 * c-opts.c (c_common_handle_option): Set new flags.
5155 * c.opt: Describe new flags.
5156
7dbb85a7
JM
51572012-11-09 Jason Merrill <jason@redhat.com>
5158
5159 * c.opt (Wabi-tag): New.
5160
ad7bac31
AK
51612012-11-09 Andi Kleen <ak@linux.intel.com>
5162
5163 PR 55139
5164 * c-common.c (get_atomic_generic_size): Mask with
8e745a17 5165 MEMMODEL_MASK
ad7bac31 5166
7332899a
MLI
51672012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
5168
5169 PR c/53063
5170 * c.opt (Wformat): Make it Alias Wformat=1.
5171 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
5172 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
5173 LangEnabledBy.
5174 (Wformat=): RejectNegative. Use LangEnabledBy.
5175 (Wnonnull): Use LangEnabledBy.
5176 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
5177 * c-format.c (set_Wformat): Delete.
5178 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
8e745a17
JJ
5179 (maybe_read_dollar_number): Likewise.
5180 (avoid_dollar_number): Likewise.
5181 (finish_dollar_format_checking): Likewise.
5182 (check_format_info): Likewise.
5183 (check_format_info_main): Likewise.
5184 (check_format_types): Likewise.
5185 (format_type_warning): Likewise.
5186 * c-common.c (int): Likewise.
5187 (check_function_sentinel): Likewise.
5188 * c-common.h (warn_format,set_Wformat): Do not declare here.
7332899a 5189
34a180a6
MLI
51902012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
5191
5192 PR c/53063
5193 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
5194 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
5195 Use LangEnabledBy.
5196 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
5197 common.opt.
5198 (Wvariadic-macros): Init(1).
5199 * c-opts.c (c_common_handle_option): Do not handle them
5200 explicitly.
5201 (c_common_post_options): Likewise.
5202 (sanitize_cpp_opts): warn_unused_macros is now
5203 cpp_warn_unused_macros.
5204 (push_command_line_include): Likewise.
5205 * c-common.c (warn_unknown_pragmas): Do not define.
5206 * c-common.h (warn_unknown_pragmas): Do not declare.
5207
3f46d6a5
MLI
52082012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
5209
5210 PR c/51294
5211 * c-common.c (conversion_warning): Handle conditional expressions.
5212
880661a4
JW
52132012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
5214
5215 PR c++/54930
5216 * c.opt (Wreturn_local_addr): Define new option.
5217
4514a96b
JM
52182012-10-25 Jason Merrill <jason@redhat.com>
5219
f14edc1a
JM
5220 * c.opt (Wvirtual-move-assign): New.
5221
4514a96b
JM
5222 * c.opt (Winherited-variadic-ctor): New.
5223
93100c6b
MG
52242012-10-25 Marc Glisse <marc.glisse@inria.fr>
5225
5226 PR c++/54427
5227 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
5228
1efcb8c6
JM
52292012-10-23 Joseph Myers <joseph@codesourcery.com>
5230
5231 * c-common.h (pch_cpp_save_state): Declare.
5232 * c-target.def (c_preinclude): New hook.
5233 * c-opts.c (done_preinclude): New.
5234 (push_command_line_include): Handle default preincluded header.
5235 (cb_file_change): Call pch_cpp_save_state when calling
5236 push_command_line_include.
5237 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
5238 (pch_cpp_save_state): New.
5239 (pch_init): Call pch_cpp_save_state conditionally, instead of
5240 calling cpp_save_state.
5241
4a0ae68e
MLI
52422012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5243
5244 PR c/53063
5245 PR c/40989
5246 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
5247 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
5248 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
5249 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
5250 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
5251 * c-opts.c (c_common_handle_option): Remove explicit handling from
5252 here.
5253 (c_common_post_options): Likewise.
5254
67e4210b
EB
52552012-10-18 Eric Botcazou <ebotcazou@adacore.com>
5256
5257 * c-ada-spec.c (LOCATION_COL): Delete.
5258 (compare_location): New function.
5259 (compare_node): Use it.
5260 (compare_comment): Likewise.
5261
65d4f2cd
MLI
52622012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
5263
5264 PR c/53063
5265 PR c/40989
5266 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
5267 * c-opts.c (c_common_handle_option): Do not set them here. Add
5268 comment.
5269 (c_common_post_options): Likewise.
5270
909881cb
EB
52712012-10-16 Eric Botcazou <ebotcazou@adacore.com>
5272
5273 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
5274 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
5275 Remove POINTER_TYPE handling, add large unsigned handling and use
5276 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
5277
3a785c97
JJ
52782012-10-12 Jakub Jelinek <jakub@redhat.com>
5279
5280 PR c/54381
5281 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
5282 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
5283 locs and array of 3 trees instead of just single loc and single
5284 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
5285 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
5286 For *cmp* builtins that take two sources strings report warnings
5287 about first and second source, not about destination and source.
5288
5e54f81d
MG
52892012-10-12 Marc Glisse <marc.glisse@inria.fr>
5290
5291 PR c++/53055
5292 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
5293
f5b02f1e
EB
52942012-10-11 Eric Botcazou <ebotcazou@adacore.com>
5295
5296 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
5297 declaring something coming from another file.
5298
b46dbc6c
AC
52992012-10-10 Arnaud Charlet <charlet@adacore.com>
5300
f5b02f1e 5301 PR ada/54845
b46dbc6c
AC
5302 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
5303
5d9de0d0
PC
53042012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
5305
5306 PR c++/54194
5307 * c-common.c (warn_about_parentheses): Add location_t parameter;
5308 use EXPR_LOC_OR_LOC.
5309 * c-common.h: Update declaration.
5310
a212e43f
MG
53112012-10-09 Marc Glisse <marc.glisse@inria.fr>
5312
5313 PR c++/54427
5314 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
5315 more operations. Make error messages optional.
5316 * c-common.h (enum stv_conv): Moved from c-typeck.c.
5317 (scalar_to_vector): Declare.
5318
b1db7f91
JM
53192012-10-08 Jason Merrill <jason@redhat.com>
5320
5321 * c-common.c (c_common_reswords): Add thread_local.
5322
e28d52cf
DS
53232012-10-08 Dodji Seketeli <dodji@redhat.com>
5324
5325 PR c++/53528 C++11 attribute support
5326 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
5327 new functions.
5328 * c-common.c (check_cxx_fundamental_alignment_constraints): New
5329 static function.
5330 (handle_aligned_attribute): In choose strictest alignment
5331 among many. Use new check_cxx_fundamental_alignment_constraints.
5332 (handle_transparent_union_attribute): In c++11 attribute syntax,
5333 don't look through typedefs.
5334
3b78de56
AC
53352012-10-04 Arnaud Charlet <charlet@adacore.com>
5336
5337 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
5338 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
5339 out of dumpfile.h.
5340
6040bb5f
DC
53412012-09-25 Dehao Chen <dehao@google.com>
5342
5343 PR middle-end/54645
3b78de56 5344 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
5345 map when read in the pch.
5346
3f8257db 53472012-09-18 Arnaud Charlet <charlet@adacore.com>
0b07a57e
AC
5348
5349 * c-ada-spec.c: Style fixes.
5350
3f8257db 53512012-09-18 Thomas Quinot <quinot@adacore.com>
da5182be
TQ
5352
5353 * c.opt (-fada-spec-parent): Define new command line switch.
5354 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
5355 is specified, generate binding spec as a child of the specified unit.
5356
0ccb505d
PC
53572012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
5358 Manuel López-Ibáñez <manu@gcc.gnu.org>
5359
5360 PR c++/53210
5361 * c.opt ([Winit-self]): Enabled by -Wall in C++.
5362
c583af79
AC
53632012-08-23 Arnaud Charlet <charlet@adacore.com>
5364
5365 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
5366 for pointers, and add missing Convention C pragma.
5367 (print_ada_struct_decl): Add missing aliased keyword.
5368 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
5369
1a4049e7
JJ
53702012-08-17 Jakub Jelinek <jakub@redhat.com>
5371
5372 * c-common.c (sizeof_pointer_memaccess_warning): New function.
5373 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
5374 * c-opts.c (c_common_handle_option): Enable it for -Wall.
5375 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
5376 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
5377
70b5e7dc
RG
53782012-08-10 Richard Guenther <rguenther@suse.de>
5379
5380 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
5381
f8923f7e
SB
53822012-08-07 Steven Bosscher <steven@gcc.gnu.org>
5383
5384 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
5385 instead of separate pp_newline and pp_flush.
5386 (print_c_tree): Likewise.
5387
e45abe1f
RH
53882012-07-26 Richard Henderson <rth@redhat.com>
5389
5390 * c-common.c (handle_hot_attribute): Allow labels.
5391 (handle_cold_attribute): Likewise.
5392
332f1d24
JJ
53932012-07-20 Jakub Jelinek <jakub@redhat.com>
5394
5395 PR c++/28656
5396 * c-common.c (check_function_nonnull): Handle multiple nonnull
5397 attributes properly.
5398
7ee2468b
SB
53992012-07-16 Steven Bosscher <steven@gcc.gnu.org>
5400
5401 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
5402 * c-ada-spec.c: Likewise.
5403 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
5404
ee7b28eb
SB
54052012-07-14 Steven Bosscher <steven@gcc.gnu.org>
5406
5407 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
5408 Remove code conditional on it.
5409
6bdf3519
SB
54102012-07-11 Steven Bosscher <steven@gcc.gnu.org>
5411
5412 * c-gimplify.c: Do not include basic-block.h.
5413 * c-common.c: Do not include linfuncs.h.
5414
532aafad
SB
54152012-07-08 Steven Bosscher <steven@gcc.gnu.org>
5416
5417 * c-common.h: Include tree.h.
5418
8d0d1915
JM
54192012-07-02 Jason Merrill <jason@redhat.com>
5420
5421 PR c++/53524
5422 * c-common.c (get_priority): Call default_conversion.
5423
fbc873ad
UB
54242012-07-01 Uros Bizjak <ubizjak@gmail.com>
5425
5426 * c-pch.c (c_common_write_pch): Remove unused variables.
5427
d4a10d0a
SB
54282012-06-29 Steven Bosscher <steven@gcc.gnu.org>
5429
5430 * cppspec.c: Moved from gcc/ to here.
5431
6f3a2e23
KT
54322012-06-27 Kai Tietz <ktietz@redhat.com>
5433
5434 PR preprocessor/37215
5435 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
5436
8ca92d04
SB
54372012-06-21 Steven Bosscher <steven@gcc.gnu.org>
5438
5439 * c-common.h (c_common_print_pch_checksum): Remove.
5440 * c-pch.c: Do not include output.h.
5441 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
5442 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
5443 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
5444 (struct c_pch_header): Remove.
5445 (get_ident): Update gpch version.
5446 (pch_init): Do not print executable_checksum to asm_out_file.
5447 Do not fail if there is no asm_out_file to read back from. Set
5448 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
5449 (c_common_write_pch): Verify that nothing was written to asm_out_file
5450 since pch_init was called. Do not write a c_pch_header, and do not
5451 copy from asm_out_file to the PCH.
5452 (c_common_read_pch): Do not read a c_pch_header, and do not restore
5453 the content of asm_out_file from the PCH.
5454 (c_common_print_pch_checksum): Remove.
5455 * c-opts.c (c_common_init): Print out executable_checksum directly.
5456
70f42967
SB
54572012-06-19 Steven Bosscher <steven@gcc.gnu.org>
5458
5459 * c-target.def (objc_declare_unresolved_class_reference,
5460 objc_declare_class_definition): Add new hooks.
5461
a8781821
SB
54622012-06-19 Steven Bosscher <steven@gcc.gnu.org>
5463
5464 * c-lex.c: Do not include output.h.
5465 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
5466 Remove uses of ASM_OUTPUT_IDENT.
5467
9e1a8dd1
RR
54682012-06-15 Marc Glisse <marc.glisse@inria.fr>
5469
5470 PR c++/51033
5471 * c-common.h (c_build_vec_perm_expr): Move decl here.
5472 * c-common.c (c_build_vec_perm_expr): Move definition
5473 here.
5474
6f07a821
SB
54752012-06-06 Steven Bosscher <steven@gcc.gnu.org>
5476
5477 * c.opt (fconserve-space): Turn into a no-op.
5478
9faeb493 54792012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
5480
5481 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
5482 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
5483 both the start and end of the function.
5484
a4b7d13c
SB
54852012-06-04 Steven Bosscher <steven@gcc.gnu.org>
5486
5487 * c-common.c: Do not include output.h.
5488 * c-pragma.c: Likewise.
5489
c265f413
SA
54902012-06-04 Steven Bosscher <steven@gcc.gnu.org>
5491
5492 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
5493 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
5494 (lang_decl_name): Handle namespace decls.
5495
be7a421e
SB
54962012-05-31 Steven Bosscher <steven@gcc.gnu.org>
5497
5498 * c-ada-spec.c: Do not include output.h.
5499 * c-semantics.c: Likewise.
5500
65de6659
JM
55012012-05-29 Joseph Myers <joseph@codesourcery.com>
5502
5503 * c-common.c: Fix typo.
5504
ca5f4331
MM
55052012-05-29 Michael Matz <matz@suse.de>
5506
5507 * c-common.h (c_expand_decl): Remove prototype.
5508
4f7f7aca
MLI
55092012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
5510
5511 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
5512 * c-opts.c (c_common_handle_option): Remove code handling
5513 warn_missing_braces.
5514
4a792f9b
PC
55152012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
5516
5517 PR c++/25137
5518 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
5519 -Wmissing_braces.
5520
650dc14a
DS
55212012-05-22 Dodji Seketeli <dodji@redhat.com>
5522
5523 PR c++/53322
5524 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
5525
9b095bf1
MLI
55262012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
5527
5528 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
5529 * c-opts.c (c_common_handle_option): Do not handle explicitly
5530 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
5531
0b2c4be5
DS
55322012-05-16 Dodji Seketeli <dodji@redhat.com>
5533
5534 PR preprocessor/7263
5535 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
5536 to cpp_classify_number. For diagnostics, use the precise location
5537 instead of the global input_location.
5538
a1bde5af
PC
55392012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
5540
d02924ef 5541 PR c++/11856
a1bde5af
PC
5542 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
5543
d1ede5f4
BS
55442012-05-14 Bernd Schmidt <bernds@codesourcery.com>
5545
a1bde5af 5546 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 5547
f2bc201f
MLI
55482012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
5549
5550 PR 53063
5551 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
5552 Wreorder): Use LangEnabledBy.
5553 * c-opts.c (c_common_handle_option): Do not enable them
5554 explicitly. Call lang-specific generated functions.
5555 (c_common_post_options): Do not set them here.
5556
95744782
MLI
55572012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
5558
5559 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
5560 Wmissing-field-initializers,Wmissing-parameter-type,
5561 Wold-style-declaration,Woverride-init): Use EnabledBy.
5562 * c-opts.c (c_common_post_options): Do not set here explicitly.
5563
7d5a5747
MLI
55642012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
5565
5566 PR 53063
5567 * c-opts.c (c_common_handle_option): Use handle_generated_option
5568 to enable sub-options.
5569
5a3c9cf2
PC
55702012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
5571
5572 PR c++/53158
5573 * c-common.c (warnings_for_convert_and_check): Use warning_at.
5574
3ac8781c
RG
55752012-05-10 Richard Guenther <rguenther@suse.de>
5576
5577 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
5578 adjust commentary about TYPE_IS_SIZETYPE types.
5579
1e537948
MLI
55802012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5581
5582 PR c++/53261
5583 * c-common.c (warn_logical_operator): Check that argument of
5584 integer_zerop is not NULL.
5585
f2c4a785
MLI
55862012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
5587
5588 PR c/43772
5589 * c-common.c (warn_logical_operator): Do not warn if either side
5590 is already true or false.
5591
50f305ca
MLI
55922012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
5593
5594 PR c/51712
5595 * c-common.c (expr_original_type): New.
5596 (shorten_compare): Do not warn for enumeration types.
5597
0c3641b0
MLI
55982012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
5599
5600 * c.opt (fpermissive): Add Var(flag_permissive).
5601
7edaa4d2
MG
56022012-04-30 Marc Glisse <marc.glisse@inria.fr>
5603
5604 PR c++/51033
5605 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
5606 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
5607
b9c8da34
DS
56082012-04-30 Dodji Seketeli <dodji@redhat.com>
5609
5610 Add -Wvarargs option
5611 * c.opt (Wvarargs): Define new option.
5612
e6c69da0
MLI
56132012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5614
5615 * c-common.c (check_function_arguments): Replace
5616 Wmissing-format-attribute with Wsuggest-attribute=format.
5617
90137d8f
MLI
56182012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5619
5620 * c.opt (Wsuggest-attribute=format): New. Alias of
5621 Wmissing-format-attribute.
5622 * c-format.c (decode_format_type): Replace
5623 Wmissing-format-attribute with Wsuggest-attribute=format.
5624 (check_function_format): Likewise.
5625
9faeb493 56262012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
5627
5628 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
5629 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
5630 * c.opt: Add Wliteral-suffix.
5631
c1771a20
MLI
56322012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
5633
5634 PR c/44774
5635 * c.opt (Wpedantic): New.
5636 (pedantic): Alias Wpedantic.
5637 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
5638 (c_common_post_options): Likewise.
5639 (sanitize_cpp_opts): Likewise.
5640 * c-lex.c (interpret_float): Likewise.
5641 * c-format.c (check_format_types): Likewise.
5642 * c-common.c (pointer_int_sum): Likewise.
5643 (c_sizeof_or_alignof_type): Likewise.
5644 (c_add_case_label): Likewise.
5645 (c_do_switch_warnings): Likewise.
5646 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
5647
04b391c1
JM
56482012-04-15 Jason Merrill <jason@redhat.com>
5649
5650 PR c++/52818
5651 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
5652 (C_STD_NAME): Distinguish between C++98 and C++11.
5653
ac868f29
EB
56542012-04-11 Eric Botcazou <ebotcazou@adacore.com>
5655
5656 PR target/52624
5657 * c-common.h (uint16_type_node): Rename into...
5658 (c_uint16_type_node): ...this.
5659 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
5660 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
5661
fd4116f4
MLI
56622012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
5663
5664 * c-common.c (warn_if_unused_value): Move definition to here.
5665 * c-common.h (warn_if_unused_value): Move declaration to here.
5666
573ac65e
WB
56672012-03-23 William Bader <williambader@hotmail.com>
5668
5669 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
5670
552b8185
JM
56712012-03-20 Jason Merrill <jason@redhat.com>
5672
5673 * c-common.h (enum cxx_dialect): Add cxx1y.
5674 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
5675 test.
5676 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
5677 * c-opts.c (c_common_post_options): Likewise.
5678 (set_std_cxx1y): New.
5679 (c_common_handle_option): Call it.
5680 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
5681
04398fa8
PC
56822012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
5683
5684 PR c++/14710
5685 * c.opt ([Wuseless-cast]): Add.
5686
d2a12ae7
RG
56872012-03-16 Richard Guenther <rguenther@suse.de>
5688
5689 * c-pretty-print.c (pp_c_initializer_list): Adjust.
5690
a12bf402
MLI
56912012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5692
5693 PR c++/44783
5694 * c.opt (ftemplate-backtrace-limit) Add.
5695
5c30094f
RO
56962012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5697
5698 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
5699 handling.
5700 * c-pragma.c (handle_pragma_extern_prefix): Remove.
5701 (init_pragma): Don't register extern_prefix.
5702
21fa2faf
RG
57032012-03-12 Richard Guenther <rguenther@suse.de>
5704
5705 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
5706 (builtin_type_for_size): Likewise.
5707
e3793c6f
JJ
57082012-02-13 Jakub Jelinek <jakub@redhat.com>
5709
5710 PR c++/52215
5711 * c-common.c (sync_resolve_params): Don't decide whether to convert
5712 or not based on TYPE_SIZE comparison, convert whenever arg_type
5713 is unsigned INTEGER_TYPE.
5714
93286335
PC
57152012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
5716
5717 PR c/52118
5718 * c.opt ([Wunused-local-typedefs]): Fix description.
5719
7a421706
MS
57202012-01-24 Mike Stump <mikestump@comcast.net>
5721
5722 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
5723 exactly.
5724
ba9b1f11
RG
57252012-01-18 Richard Guenther <rguenther@suse.de>
5726
5727 * c-opts.c (c_common_post_options): Reset LTO flags if
5728 we are about to generate a PCH.
5729
465406be
PC
57302012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
5731
5732 PR c++/51777
5733 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
5734 use pp_unsigned_wide_integer.
5735
aee15221
RG
57362012-01-10 Richard Guenther <rguenther@suse.de>
5737
5738 PR middle-end/51806
5739 * c-opts.c (c_common_handle_option): Move -Werror handling
5740 to language independent code.
5741
5720c0dc
RG
57422012-01-05 Richard Guenther <rguenther@suse.de>
5743
5744 PR middle-end/51764
5745 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
5746 from common.opt.
5747
73ac190a
PC
57482011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
5749
5750 PR c++/51316
5751 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
5752 of array types with an unknown bound.
5753
48b0b196
JM
57542011-12-20 Joseph Myers <joseph@codesourcery.com>
5755
5756 * c-common.c (flag_isoc99): Update comment to refer to C11.
5757 (flag_isoc1x): Change to flag_isoc11.
5758 * c-common.h (flag_isoc99): Update comment to refer to C11.
5759 (flag_isoc1x): Change to flag_isoc11.
5760 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
5761 C11.
5762 * c-opts.c (set_std_c1x): Change to set_std_c11.
5763 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
5764 Call set_std_c11.
5765 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
5766 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
5767 * c.opt (std=c1x): Change to std=c11. Document as non-draft
5768 standard.
5769 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
5770 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
5771 (std=gnu1x): Make alias of std=gnu11.
5772
d58d6eb5
JM
57732011-12-19 Jason Merrill <jason@redhat.com>
5774
5775 PR c++/51228
5776 * c-common.c (handle_transparent_union_attribute): Check the first
5777 field if the type is complete.
5778
b3908fcc
JW
57792011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
5780
5781 PR libstdc++/51365
5782 * c-common.c (RID_IS_FINAL): Add.
5783 * c-common.h (RID_IS_FINAL): Add.
5784
fea3ca91
IS
57852011-11-30 Iain Sandoe <iains@gcc.gnu.org>
5786
5787 * c.opt (fgnu-runtime): Provide full description.
5788 (fnext-runtime): Likewise.
5789 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
5790
62bad7cd
AM
57912011-11-28 Andrew MacLeod <amacleod@redhat.com>
5792
5793 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
5794 predefines in one place. Add LOCK_FREE predefines.
5795 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
5796 new func.
5797
c466c4ff
AM
57982011-11-24 Andrew MacLeod <amacleod@redhat.com>
5799
5800 PR c/51256
9faeb493 5801 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 5802 conditions
9faeb493
UB
5803 (resolve_overloaded_atomic_exchange,
5804 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
5805 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
5806 error_mark_node for error conditions.
9faeb493 5807
a5952633
RG
58082011-11-08 Richard Guenther <rguenther@suse.de>
5809
5810 PR middle-end/51010
5811 c-family/
5812
0a35513e
AH
58132011-11-07 Richard Henderson <rth@redhat.com>
5814 Aldy Hernandez <aldyh@redhat.com>
5815 Torvald Riegel <triegel@redhat.com>
5816
5817 Merged from transactional-memory.
5818
5819 * c-common.c (handle_tm_wrap_attribute,
5820 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
5821 (struct c_common_reswords): Added __transaction* keywords.
5822 (struct c_common_attribute_table): Added transaction* and tm_regparm
5823 attributes.
5824 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
5825 masks.
5826 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
5827 find_tm_attribute): Declare.
5828
6d87092d
JM
58292011-11-07 Jason Merrill <jason@redhat.com>
5830
5831 PR c++/35688
5832 * c-common.c, c-common.h: Revert yesterday's changes.
5833
8e7860a1
JM
58342011-11-06 Jason Merrill <jason@redhat.com>
5835
5836 PR c++/35688
5837 * c-common.c (decl_has_visibility_attr): Split out from...
5838 (c_determine_visibility): ...here.
5839 * c-common.h: Declare it.
5840
d19fa6b5
JM
58412011-11-06 Joseph Myers <joseph@codesourcery.com>
5842
5843 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
5844 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
5845 type.
5846 (check_user_alignment): New. Split out of
5847 handle_aligned_attribute. Disallow integer constants with
5848 noninteger types. Conditionally allow zero.
5849 (handle_aligned_attribute): Use check_user_alignment.
5850 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
5851
86951993
AM
58522011-11-06 Andrew MacLeod <amacleod@redhat.com>
5853 Richard Henderson <rth@redhat.com>
5854
5855 Merged from cxx-mem-model.
5856
5857 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 5858 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
5859 parameters that are the same type size.
5860 (get_atomic_generic_size): New. Find size of generic
5861 atomic function parameters and do typechecking.
5862 (add_atomic_size_parameter): New. Insert size into parameter list.
5863 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
5864 either __atomic_exchange_n or external library call.
9faeb493 5865 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 5866 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 5867 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
5868 __atomic_load_n or an external library call.
5869 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
5870 __atomic_store_n or an external library call.
5871 (resolve_overloaded_builtin): Handle new __atomic builtins.
5872
cf9e9959
EB
58732011-11-04 Eric Botcazou <ebotcazou@adacore.com>
5874
5875 PR c++/50608
5876 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
5877 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
5878 <INDIRECT_REF>: Return the argument.
5879 <ARRAY_REF>: Remove special code for negative offset.
5880 Call fold_build_pointer_plus instead of size_binop.
5881 (fold_offsetof): Remove STOP_REF argument and adjust.
5882 * c-common.h (fold_offsetof_1): Declare.
5883 (fold_offsetof): Remove STOP_REF argument.
5884
25339f10
JM
58852011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
5886
5887 PR c++/50810
5888 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
5889 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
5890 Wnarrowing for C++0x and C++98.
5891 * c.opt ([Wnarrowing]): Update.
5892
89401152
PC
58932011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
5894
5895 PR c++/44277
5896 * c.opt: Add Wzero-as-null-pointer-constant.
5897
97e3ad20
JM
58982011-10-31 Jason Merrill <jason@redhat.com>
5899
15694fdd
JM
5900 * c.opt (-fdeduce-init-list): Off by default.
5901
97e3ad20
JM
5902 PR c++/50920
5903 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
5904 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
5905 and -Wc++11-compat.
5906 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
5907
fb9120e3
RAV
59082011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
5909
5910 PR c++/30066
5911 * c.opt (fvisibility-inlines-hidden): Description change.
5912
3ce4f9e4
ESR
59132011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
5914
5915 Implement C++11 user-defined literals.
5916 * c-common.c (build_userdef_literal): New.
5917 * c-common.def: New tree code.
5918 * c-common.h (tree_userdef_literal): New tree struct and accessors.
5919 * c-lex.c (interpret_float): Add suffix parm.
5920 (c_lex_with_flags): Build literal tokens.
5921
5f53c243
PC
59222011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
5923
5924 PR c++/50841
5925 Revert:
5926 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
5927
5928 PR c++/50810
5929 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
5930 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
5931 Wnarrowing for C++0x and C++98.
5932 * c.opt ([Wnarrowing]): Update.
5933
263734e1
PC
59342011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
5935
5936 PR c++/50810
5937 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
5938 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
5939 Wnarrowing for C++0x and C++98.
5940 * c.opt ([Wnarrowing]): Update.
5941
d2e312d7
PC
59422011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
5943
5944 PR c++/45385
5945 * c-common.c (conversion_warning): Remove code looking for
5946 artificial operands.
5947
d17687f6
DS
59482011-10-18 Dodji Seketeli <dodji@redhat.com>
5949
5950 PR bootstrap/50760
5951 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 5952 !NO_IMPLICIT_EXTERN_C.
d17687f6 5953
fc8396e9
PC
59542011-10-17 Michael Spertus <mike_spertus@symantec.com>
5955
5956 * c-common.c (c_common_reswords): Add __bases,
5957 __direct_bases.
5958 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
5959
59602011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
5961
5962 PR c++/50757
5963 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
5964
847e697a
TT
59652011-10-15 Tom Tromey <tromey@redhat.com>
5966 Dodji Seketeli <dodji@redhat.com>
5967
5968 * c.opt (fdebug-cpp): New option.
5969 * c-opts.c (c_common_handle_option): Handle the option.
5970 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
5971 output stream in parameter. Factorized from ...
5972 (maybe_print_line): ... this. Dump location debug information when
5973 -fdebug-cpp is in effect.
5974 (print_line_1): New static function. Takes an output stream in
5975 parameter. Factorized from ...
5976 (print_line): ... here. Dump location information when -fdebug-cpp
5977 is in effect.
5978 (scan_translation_unit): Dump location information when
5979 -fdebug-cpp is in effect.
5980
92582b75
TT
59812011-10-15 Tom Tromey <tromey@redhat.com>
5982 Dodji Seketeli <dodji@redhat.com>
5983
5984 * c.opt (ftrack-macro-expansion): New option. Handle it with and
5985 without argument.
5986 * c-opts.c (c_common_handle_option)<case
5987 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
5988 cases. Handle -ftrack-macro-expansion with and without argument.
5989
46427374
TT
59902011-10-15 Tom Tromey <tromey@redhat.com>
5991 Dodji Seketeli <dodji@redhat.com>
5992
5993 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
5994 (print_line, cb_define, do_line_change): Adjust to avoid touching
5995 the internals of struct line_map. Use the public API instead.
5996 * c-pch.c (c_common_read_pch): Likewise.
5997 * c-lex.c (fe_file_change): Likewise.
5998
fc8396e9
PC
59992011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
6000
6001 PR c++/17212
6002 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
6003
60042011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
6005
6006 PR c++/33067
6007 * c-pretty-print.c (pp_c_floating_constant): Output
6008 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
6009
e79983f4
MM
60102011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
6011
6012 * c-common.c (def_builtin_1): Delete old interface with two
6013 parallel arrays to hold standard builtin declarations, and replace
6014 it with a function based interface that can support creating
6015 builtins on the fly in the future. Change all uses, and poison
6016 the old names. Make sure 0 is not a legitimate builtin index.
6017 * c-omp.c (c_finish_omp_barrier): Ditto.
6018 (c_finish_omp_taskwait): Ditto.
6019 (c_finish_omp_flush): Ditto.
6020
6637388f
TG
60212011-10-11 Tristan Gingold <gingold@adacore.com>
6022
6023 * c.opt: (fallow-parameterless-variadic-functions): New.
6024
3797cb21
DS
60252011-09-08 Dodji Seketeli <dodji@redhat.com>
6026
6027 PR c++/33255 - Support -Wunused-local-typedefs warning
6028 * c-common.h (struct c_language_function::local_typedefs): New
6029 field.
9faeb493
UB
6030 (record_locally_defined_typedef, maybe_record_typedef_use)
6031 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 6032 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
6033 (maybe_record_typedef_use)
6034 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
6035 * c.opt: Declare new -Wunused-local-typedefs flag.
6036
693ddb1b
EB
60372011-09-06 Eric Botcazou <ebotcazou@adacore.com>
6038
6039 PR middle-end/50266
6040 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
6041 computations.
6042
830c740f
RG
60432011-09-05 Richard Guenther <rguenther@suse.de>
6044
6045 * c-common.c (complete_array_type): Use ssize_int (-1) instead
6046 of integer_minus_one_node for empty array upper bounds.
6047
892a371f
DS
60482011-08-28 Dodji Seketeli <dodji@redhat.com>
6049
6050 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
6051 it's the first time it's being called on this main TU.
6052
0e3fdb48
RB
60532011-08-24 Richard Guenther <rguenther@suse.de>
6054
6055 PR c/49396
6056 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
6057
60582011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
6059
6060 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
6061 defined in cpp_init_builtins and c_cpp_builtins.
6062
d4a83c10
JM
60632011-08-19 Joseph Myers <joseph@codesourcery.com>
6064
6065 * c-common.c (c_common_reswords): Add __builtin_complex.
6066 * c-common.h (RID_BUILTIN_COMPLEX): New.
6067
bbceee64
JM
60682011-08-18 Joseph Myers <joseph@codesourcery.com>
6069
6070 * c-common.c (c_common_reswords): Add _Noreturn.
6071 (keyword_is_function_specifier): Handle RID_NORETURN.
6072 * c-common.h (RID_NORETURN): New.
6073
3f8257db 60742011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
0e3a99ae
AS
6075
6076 * c-common.c (unsafe_conversion_p): New function. Check if it is
6077 unsafe to convert an expression to the type.
6078 (conversion_warning): Adjust, use unsafe_conversion_p.
6079 * c-common.h (unsafe_conversion_p): New function declaration.
6080
20906c66
JJ
60812011-08-02 Jakub Jelinek <jakub@redhat.com>
6082
6083 * c-common.h (c_finish_omp_atomic): Adjust prototype.
6084 (c_finish_omp_taskyield): New prototype.
6085 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
6086 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
6087 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
6088 or RHS1 have side-effects, evaluate those too in the right spot,
6089 if it is a decl and LHS is also a decl, error out if they
6090 aren't the same.
6091 (c_finish_omp_taskyield): New function.
6092 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
6093 * c-pragma.c (omp_pragmas): Add taskyield.
6094 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
6095 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
6096 PRAGMA_OMP_CLAUSE_MERGEABLE.
6097
770e5a2e
DS
60982011-07-25 Dodji Seketeli <dodji@redhat.com>
6099
6100 * c-common.h (set_underlying_type): Remove parm name from
6101 declaration.
6102
1baae426
RG
61032011-07-25 Romain Geissler <romain.geissler@gmail.com>
6104
6105 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 6106
fcb21722
JM
61072011-07-22 Jason Merrill <jason@redhat.com>
6108
76f86d00
JM
6109 PR c++/49793
6110 * c.opt (Wnarrowing): New.
6111
3a636414
JM
6112 PR c++/30112
6113 * c-common.h: Declare c_linkage_bindings.
6114 * c-pragma.c (handle_pragma_redefine_extname): Use it.
6115
fcb21722
JM
6116 PR c++/49813
6117 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
6118 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
6119 as flag_isoc99 for 'restrict'.
6120 (pp_c_specifier_qualifier_list): Likewise for _Complex.
6121
02614448
ILT
61222011-07-21 Ian Lance Taylor <iant@google.com>
6123
6124 PR middle-end/49705
6125 * c-common.c (c_disable_warnings): New static function.
6126 (c_enable_warnings): New static function.
6127 (c_fully_fold_internal): Change local unused_p to bool. Call
6128 c_disable_warnings and c_enable_warnings rather than change
6129 c_inhibit_evaluation_warnings.
6130
34429675
JM
61312011-07-20 Jason Merrill <jason@redhat.com>
6132
6133 PR c++/6709 (DR 743)
6134 PR c++/42603 (DR 950)
6135 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
6136 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
6137 (CPP_DECLTYPE): New.
6138 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
6139
5d49b6a7
RG
61402011-07-19 Richard Guenther <rguenther@suse.de>
6141
6142 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
6143 * c-omp.c (c_finish_omp_for): Likewise.
6144
e84a58ff
EB
61452011-07-12 Eric Botcazou <ebotcazou@adacore.com>
6146
6147 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
6148 body on the next line.
6149
329af3c7
JM
61502011-07-08 Jason Merrill <jason@redhat.com>
6151
4063e61b
JM
6152 PR c++/45437
6153 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
6154
329af3c7
JM
6155 PR c++/49673
6156 * c-common.c (c_apply_type_quals_to_decl): Don't check
6157 TYPE_NEEDS_CONSTRUCTING.
6158
1a072294
RG
61592011-07-06 Richard Guenther <rguenther@suse.de>
6160
6161 * c-common.c (c_common_nodes_and_builtins):
6162 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
6163
fce5dddd
RG
61642011-07-05 Richard Guenther <rguenther@suse.de>
6165
6166 * c-common.c (c_common_nodes_and_builtins): Build all common
6167 tree nodes first.
6168
45d439ac
JJ
61692011-06-27 Jakub Jelinek <jakub@redhat.com>
6170
56300785
JJ
6171 * c-common.h (c_tree_chain_next): New static inline function.
6172
45d439ac
JJ
6173 * c-common.c (check_builtin_function_arguments): Handle
6174 BUILT_IN_ASSUME_ALIGNED.
6175
e0a8ecf2
AM
61762011-06-21 Andrew MacLeod <amacleod@redhat.com>
6177
6178 * c-common.c: Add sync_ or SYNC__ to builtin names.
6179 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
6180
61812011-06-20 Pierre Vittet <piervit@pvittet.com>
6182
6183 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
6184 handler.
6185 (gen_pragma_handler): New union.
6186 (internal_pragma_handler): New type.
6187 (c_register_pragma_with_data)
6188 (c_register_pragma_with_expansion_and_data): New functions.
6189
6190 * c-pragma.c (registered_pragmas, c_register_pragma_1)
6191 (c_register_pragma, c_register_pragma_with_expansion)
6192 (c_invoke_pragma_handler): Changed to work with
6193 internal_pragma_handler.
6194 (c_register_pragma_with_data)
6195 (c_register_pragma_with_expansion_and_data): New functions.
6196
677f3fa8
JM
61972011-06-14 Joseph Myers <joseph@codesourcery.com>
6198
6199 * c-common.c: Include common/common-target.h.
6200 (handle_section_attribute): Use
6201 targetm_common.have_named_sections.
6202 * c-cppbuiltin.c: Include common/common-target.h.
6203 (c_cpp_builtins): Use targetm_common.except_unwind_info.
6204
d7fc8c14
RG
62052011-06-10 Richard Guenther <rguenther@suse.de>
6206
6207 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
6208 to print a IDENTIFIER_NODE.
6209
10e48e39
RO
62102011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6211 Joseph Myers <joseph@codesourcery.com>
6212
6213 * c.opt (fbuilding-libgcc): New option.
6214 * c-cppbuiltin.c (c_cpp_builtins): Define
6215 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
6216
6976ae51
JM
62172011-06-07 Jason Merrill <jason@redhat.com>
6218
3ff60975
JM
6219 * c-common.c (max_tinst_depth): Lower default to 900.
6220
6976ae51
JM
6221 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
6222
009db074
RG
62232011-06-07 Richard Guenther <rguenther@suse.de>
6224
6225 * c-common.c (c_common_nodes_and_builtins): Do not set
6226 size_type_node or call set_sizetype.
6227
b4592b92
DS
62282011-06-07 Dodji Seketeli <dodji@redhat.com>
6229
6230 PR debug/49130
6231 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 6232 type when using pointer comparison to compare types.
b4592b92 6233
014ab419
JW
62342011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
6235
6236 * c.opt: Add -Wdelete-non-virtual-dtor.
6237 * c-opts.c (c_common_handle_option): Include it in -Wall.
6238
4f60111f
NF
62392011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
6240
6241 PR bootstrap/49190
6242
6243 Revert:
6244 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
6245
6246 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
6247 not tree_common.
6248
4cc4f2f4
JJ
62492011-05-27 Jakub Jelinek <jakub@redhat.com>
6250
6251 PR c++/49165
6252 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
6253 C++ don't call c_common_truthvalue_conversion on void type arms.
6254
38e01f9e
NF
62552011-05-27 Nathan Froyd <froydnj@codesourcery.com>
6256
6257 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
6258 (stmt_list_stack): Define.
6259 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
6260 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
6261
92e948a8
NF
62622011-05-26 Nathan Froyd <froydnj@codesourcery.com>
6263
6264 * c-common.c (warning_candidate_p): Check for BLOCKs.
6265
a2fc3e63
NF
62662011-05-26 Nathan Froyd <froydnj@codesourcery.com>
6267
6268 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
6269 not tree_common.
6270
0957c029
JJ
62712011-05-25 Jakub Jelinek <jakub@redhat.com>
6272
6273 * c-common.c (def_fn_type): Remove extra va_end.
6274
828fb3ba
JM
62752011-05-23 Jason Merrill <jason@redhat.com>
6276
6277 PR c++/48106
6278 * c-common.c (c_common_get_narrower): New.
6279 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
6280
dde05067
NF
62812011-05-23 Nathan Froyd <froydnj@codesourcery.com>
6282
6283 * c-common.h (check_function_arguments): Tweak prototype of
6284 check_function_arguments.
6285 * c-common.c (check_function_arguments): Likewise. Adjust
6286 calls to check_function_nonnull, check_function_format, and
6287 check_function_sentinel.
6288 (check_function_sentinel): Take a FUNCTION_TYPE rather than
6289 separate attributes and typelist arguments. Use
6290 FOREACH_FUNCTION_ARGS to iterate over argument types.
6291
3c0d13bf
PC
62922011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
6293
6294 * c-common.c (c_common_reswords): Reorder.
6295 * c-common.h (rid): Likewise.
6296
8242dd04
NF
62972011-05-10 Nathan Froyd <froydnj@codesourcery.com>
6298
6299 * c-common.c (def_fn_type): Don't call build_function_type, call
6300 build_function_type_array or build_varargs_function_type_array
6301 instead.
6302 (c_common_nodes_and_builtins): Likewise.
6303
3d528853
NF
63042011-05-05 Nathan Froyd <froydnj@codesourcery.com>
6305
6306 * c-common.c (c_add_case_label): Omit the loc argument to
6307 build_case_label.
6308 * c-common.h (build_case_label): Remove.
6309 * c-semantics.c (build_case_label): Remove.
6310
a04a722b
JM
63112011-05-05 Joseph Myers <joseph@codesourcery.com>
6312
6313 * c-objc.h (objc_start_method_definition): Update prototype.
6314 * stub-objc.c (objc_start_method_definition): Add extra parameter.
6315
e19a18d4
NF
63162011-05-04 Nathan Froyd <froydnj@codesourcery.com>
6317
6318 * c-common.c (check_main_parameter_types): Reindent. Don't use
6319 TYPE_ARG_TYPES directly.
6320 (handle_nonnull_attribute): Likewise.
6321 (sync_resolve_params): Likewise.
6322 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
6323 to check_format_string.
6324 (handle_format_attribute): Likewise.
6325 (check_format_string): Take a function type to examine instead of
6326 a type list. Use a function_arg_iterator to step through argument
6327 types.
6328
c62c040f
RG
63292011-05-04 Richard Guenther <rguenther@suse.de>
6330
6331 * c-common.c (fix_string_type): Use size_int for index type bounds.
6332 (start_fname_decls): Do not pass NULL to build_int_cst.
6333 (c_init_attributes): Likewise.
6334 * c-lex.c (c_lex_with_flags): Likewise.
6335
c12ff9d8
JM
63362011-04-27 Jason Merrill <jason@redhat.com>
6337
6338 * c-common.c (make_tree_vector_from_list): New.
6339 * c-common.h: Declare it.
6340
304dfbe3
RG
63412011-04-26 Richard Guenther <rguenther@suse.de>
6342
6343 PR preprocessor/48248
6344 * c-ppoutput.c (maybe_print_line): Always optimize newlines
6345 for output size with -P.
6346
3c0d13bf
PC
63472011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
6348
6349 * c-common.c (struct c_common_resword): Add __underlying_type.
6350 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
6351
04695783
JM
63522011-04-20 Jim Meyering <meyering@redhat.com>
6353
6354 * c-format.c (init_dollar_format_checking): Remove useless
6355 if-before-free.
6356
0dc33c3c
NP
63572011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
6358
6359 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 6360 (objc_detect_field_duplicates): New.
0dc33c3c 6361 * stub-objc.c: Likewise.
3c0d13bf 6362
c59633d9
NP
63632011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6364
6365 * stub-objc.c (objc_declare_protocols): Renamed to
6366 objc_declare_protocol.
6367 * c-objc.h: Likewise.
3c0d13bf 6368
32dabdaf
NP
63692011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6370
6371 * stub-objc.c (objc_declare_class): Updated argument name.
6372
81f653d6
NF
63732011-04-12 Nathan Froyd <froydnj@codesourcery.com>
6374
6375 * c-common.h (c_common_init_ts): Declare.
6376 * c-common.c (c_common_init_ts): Define.
6377
eb345401
NP
63782011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6379
6380 * c-objc.h (objc_build_message_expr): Updated prototype.
6381 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 6382
a358e188
MJ
63832011-04-12 Martin Jambor <mjambor@suse.cz>
6384
6385 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
6386 of cgraph_node.
6387
e6313a78
RG
63882011-04-11 Richard Guenther <rguenther@suse.de>
6389
6390 * c-common.c (complete_array_type): Build a range type of
6391 proper type.
6392
dcf0c47e
NF
63932011-04-08 Nathan Froyd <froydnj@codesourcery.com>
6394
6395 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
6396 (handle_type_generic_attribute): Likewise.
6397
1ee44b26
JM
63982011-04-07 Jason Merrill <jason@redhat.com>
6399
6400 PR c++/48450
6401 * c-common.c (c_common_truthvalue_conversion): Don't ignore
6402 conversion from C++0x scoped enum.
6403
acce4e77
JM
64042011-04-06 Joseph Myers <joseph@codesourcery.com>
6405
6406 * c-target-def.h: New file.
6407 * c-target.def: New file.
6408 * c-target.h: New file.
6409 * c-common.c (targetcm): Don't define here.
6410 * c-common.h (default_handle_c_option): Declare.
6411 * c-format.c: Include c-target.h instead of target.h.
6412 * c-opts.c: Include c-target.h instead of target.h. Explicitly
6413 include tm.h.
6414 (default_handle_c_option): Move from targhooks.c.
6415
e2eefb55
JJ
64162011-03-29 Jakub Jelinek <jakub@redhat.com>
6417
6418 PR preprocessor/48248
6419 * c-ppoutput.c (print): Add src_file field.
6420 (init_pp_output): Initialize it.
6421 (maybe_print_line): Don't optimize by adding up to 8 newlines
6422 if map->to_file and print.src_file are different file.
6423 (print_line): Update print.src_file.
6424
ba78087b
KT
64252011-03-25 Kai Tietz <ktietz@redhat.com>
6426
6427 * c-ada-spec.c (compare_comment): Use filename_cmp
6428 instead of strcmp for filename.
6429
0edf1bb2
JL
64302011-03-25 Jeff Law <law@redhat.com>
6431
adfac8df 6432 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 6433
c7dc8804
JM
64342011-03-25 Jason Merrill <jason@redhat.com>
6435
6436 * c.opt: Add -std=c++03.
6437
d1d879b1
EB
64382011-03-22 Eric Botcazou <ebotcazou@adacore.com>
6439
6440 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
6441
3f8257db 64422011-03-17 Kai Tietz <ktietz@redhat.com>
62d784f7
KT
6443
6444 PR target/12171
5050afdf
KT
6445 * c-pretty-print.c (pp_c_specifier_qualifier_list):
6446 Display allowed attributes for function pointer types.
6447 (pp_c_attributes_display): New function to display
6448 attributes having affects_type_identity flag set to true.
6449 * c-pretty-print.h (pp_c_attributes_display): New prototype.
6450
62d784f7
KT
6451 * c-common.c (c_common_attribute_table):
6452 Add new element.
6453 (c_common_format_attribute_table): Likewise.
6454
82d37118
JM
64552011-03-18 Jason Merrill <jason@redhat.com>
6456
49a000c3
JM
6457 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
6458 * c-common.h: Don't declare it here.
6459 * c-common.c: Or define it here.
6460 * c-opts.c (c_common_handle_option): Or set it here.
6461
82d37118
JM
6462 PR c++/35315
6463 * c-common.c (handle_transparent_union_attribute): Don't
6464 make a duplicate type in C++.
6465
17bc631c
JM
64662011-03-15 Jason Merrill <jason@redhat.com>
6467
6468 * c-common.c (max_constexpr_depth): New.
6469 * c-common.h: Declare it.
6470 * c-opts.c (c_common_handle_option): Set it.
6471 * c.opt (fconstexpr-depth): New option.
6472
1b9b91a6
JM
64732011-03-11 Jason Merrill <jason@redhat.com>
6474
f231b5ff
JM
6475 * c-common.c (attribute_takes_identifier_p): Add missing const.
6476
1b9b91a6
JM
6477 PR c++/46803
6478 * c-common.c (attribute_takes_identifier_p): Assume that an
6479 unknown attribute takes an identifier.
6480
a19e4d44
NF
64812011-03-07 Nathan Froyd <froydnj@codesourcery.com>
6482
6483 PR c/47786
6484 * c-common.c (c_type_hash): Call list_length instead of iterating
6485 through DECL_CHAIN. Rename 'i' to 'n_elements'.
6486
982d62f6
JJ
64872011-02-19 Jakub Jelinek <jakub@redhat.com>
6488
6489 PR c/47809
6490 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
6491
0a256240
NP
64922011-02-17 Iain Sandoe <iains@gcc.gnu.org>
6493
6494 * c.opt (fobjc-abi-version=) New.
6495 (fobjc-nilcheck): New.
6496
ba9e6dd5
NF
64972011-02-03 Nathan Froyd <froydnj@codesourcery.com>
6498
6499 PR c++/46890
6500 * c-common.h (keyword_is_decl_specifier): Declare.
6501 * c-common.c (keyword_is_decl_specifier): Define.
6502 (keyword_is_function_specifier): New function.
6503
7273813a
JJ
65042011-01-26 Jakub Jelinek <jakub@redhat.com>
6505
6506 PR c/47473
6507 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
6508 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
6509 REAL_TYPE.
6510
908ef79b
AC
65112011-01-26 Arnaud Charlet <charlet@adacore.com>
6512
6513 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
6514
237e9384
JJ
65152011-01-26 Jakub Jelinek <jakub@redhat.com>
6516
6517 PR pch/47430
6518 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
6519 after init_c_lex if pch_file is set.
6520
47ea1edf
DK
65212011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
6522
d4dba752 6523 PR c++/43601
47ea1edf
DK
6524 * c.opt (-fkeep-inline-dllexport): New switch.
6525
2aa9c6ae
RG
65262011-01-12 Richard Guenther <rguenther@suse.de>
6527
6528 PR middle-end/32511
6529 * c-common.c (handle_weak_attribute): Warn instead of error
6530 on declaring an inline function weak.
6531
7bd11157
TT
65322011-01-05 Tom Tromey <tromey@redhat.com>
6533
6534 * c-common.h (lvalue_error): Update.
6535 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
6536 not error.
6537
0e66e494 65382010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 6539
b4f588c4
NP
6540 PR objc/47075
6541 * c-objc.h (objc_finish_message_expr): Added argument to
6542 prototype.
6543
f4da8dce
NF
65442010-12-22 Nathan Froyd <froydnj@codesourcery.com>
6545
6546 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
6547 Use prototype_p.
6548
46270f14
NP
65492010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
6550
6551 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 6552 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 6553
4816c593
NF
65542010-12-10 Nathan Froyd <froydnj@codesourcery.com>
6555
6556 * c-common.h (readonly_error): Declare.
6557 * c-common.c (readonly_error): Define.
6558
7a6daeb0
NF
65592010-12-09 Nathan Froyd <froydnj@codesourcery.com>
6560
6561 * c-common.h (invalid_indirection_error): Declare.
6562 * c-common.c (invalid_indirection_error): Define.
6563
892f6119
RG
65642010-12-03 Richard Guenther <rguenther@suse.de>
6565
6566 PR c/46745
6567 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
6568 (pp_c_unary_expression): Likewise.
6569 (pp_c_expression): Likewise.
6570
6c39e757
NP
65712010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
6572
6573 * c-common.h (objc_finish_function): New.
6574 (objc_non_volatilized_type): Removed.
6575 (objc_type_quals_match): Removed.
6576 * stub-objc.c (objc_finish_function): New.
6577 (objc_non_volatilized_type): Removed.
6578 (objc_type_quals_match): Removed.
9faeb493 6579
7c475d11
JM
65802010-11-30 Joseph Myers <joseph@codesourcery.com>
6581
6582 * c-common.h (parse_optimize_options): Declare.
6583 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
6584 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
6585
71f3e391
JM
65862010-11-29 Joseph Myers <joseph@codesourcery.com>
6587
6588 * c-opts.c (check_deps_environment_vars): Use getenv instead of
6589 GET_ENVIRONMENT.
6590 * c-pch.c (O_BINARY): Don't define here.
6591 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
6592
d5fabb58
JM
65932010-11-25 Joseph Myers <joseph@codesourcery.com>
6594
6595 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
6596 targetm.except_unwind_info.
6597
299404a1
JM
65982010-11-23 Joseph Myers <joseph@codesourcery.com>
6599
6600 * c-opts.c (c_common_handle_option): Pass location to
6601 set_struct_debug_option.
6602
c98cd5bf
JM
66032010-11-23 Joseph Myers <joseph@codesourcery.com>
6604
6605 * c-common.c (visibility_options): Move from ../opts.c.
6606 * c-common.h (struct visibility_flags, visibility_options):
6607 Declare here.
6608 * c-opts.c (finish_options): Rename to c_finish_options.
6609 (c_common_init): Update call to finish_options.
6610
a9546771
NP
66112010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
6612
6613 PR objc/34033
6614 * c-lex.c (lex_string): Check that each string in an Objective-C
6615 string concat sequence starts with either one or zero '@', and
6616 that there are no spurious '@' signs at the end.
6617
24a57808
JM
66182010-11-20 Joseph Myers <joseph@codesourcery.com>
6619
6620 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
6621 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
6622 HANDLE_PRAGMA_VISIBILITY.
6623 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
6624 HANDLE_PRAGMA_VISIBILITY): Don't define.
6625 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
6626
a9aa2c3a
NF
66272010-11-20 Nathan Froyd <froydnj@codesourcery.com>
6628
6629 PR c++/16189
6630 PR c++/36888
6631 PR c++/45331
6632 * c-common.h (keyword_begins_type_specifier): Declare.
6633 (keyword_is_storage_class_specifier): Declare.
6634 (keyword_is_type_qualifier): Declare.
6635 * c-common.c (keyword_begins_type_specifier): New function.
6636 (keyword_is_storage_class_specifier): New function.
6637 (keyword_is_type_qualifier): Declare.
6638
5386338c
JM
66392010-11-19 Joseph Myers <joseph@codesourcery.com>
6640
6641 PR c/46547
6642 * c-common.c (in_late_binary_op): Define.
6643 (c_common_truthvalue_conversion): Check in_late_binary_op before
6644 calling c_save_expr.
6645 * c-common.h (in_late_binary_op): Declare.
6646
69ccdddb
JM
66472010-11-19 Joseph Myers <joseph@codesourcery.com>
6648
6649 * c-opts.c (c_common_handle_option): Update calls to
6650 set_struct_debug_option.
6651
6b192a09
NP
66522010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
6653
6654 * c-common.h (objc_declare_protocols): Added additional argument.
6655 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 6656
fb52b50a
NF
66572010-11-18 Nathan Froyd <froydnj@codesourcery.com>
6658
6659 PR c/33193
6660 * c-common.h (build_real_imag_expr): Declare.
6661 * c-semantics.c (build_real_imag_expr): Define.
6662
b37421c6
JM
66632010-11-17 Joseph Myers <joseph@codesourcery.com>
6664
6665 * c-opts.c (c_common_parse_file): Take no arguments.
6666 * c-common.h (c_common_parse_file): Update prototype.
6667
07078664
JJ
66682010-11-16 Jakub Jelinek <jakub@redhat.com>
6669
6670 PR c++/46401
6671 * c-common.c (warning_candidate_p): Don't track non-const calls
6672 or STRING_CSTs.
6673
c6a13190
ILT
66742010-11-15 Ian Lance Taylor <iant@google.com>
6675
6676 * c-lex.c (init_c_lex): Set macro debug callbacks if
6677 flag_dump_go_spec is set.
6678
925e8657
NP
66792010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
6680
6681 * c-common.h (objc_build_incr_expr_for_property_ref): New.
6682 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
6683
bb0a9581
NF
66842010-11-15 Nathan Froyd <froydnj@codesourcery.com>
6685
6686 PR preprocessor/45038
6687 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
6688 dialects.
6689
c5fa0890
JM
66902010-11-12 Joseph Myers <joseph@codesourcery.com>
6691
6692 * c-common.h (c_family_lang_mask): Declare.
6693 * c-opts.c (c_family_lang_mask): Make extern.
6694 * c-pragma.c (handle_pragma_diagnostic): Use
6695 control_warning_option.
6696
a4d8c676
JM
66972010-11-12 Joseph Myers <joseph@codesourcery.com>
6698
6699 * c-common.c (parse_optimize_options): Update call to
6700 decode_options.
6701 * c-common.h (c_common_handle_option): Update prototype.
6702 * c-opts.c (c_common_handle_option): Take location_t parameter and
6703 pass it to other functions.
6704
f954bd2c
JM
67052010-11-11 Joseph Myers <joseph@codesourcery.com>
6706
6707 * c-opts.c (warning_as_error_callback): Remove.
6708 (c_common_initialize_diagnostics): Don't call
6709 register_warning_as_error_callback.
6710 (c_common_handle_option): Handle -Werror=normalized= here.
6711
d8a07487
JM
67122010-11-10 Joseph Myers <joseph@codesourcery.com>
6713
6714 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
6715 in diagnostic.
6716 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
6717 letter.
6718 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
6719 Remove trailing '.' from diagnostics.
6720 * c.opt (Wwrite-strings_: Avoid '`' in help text.
6721
d5478783
JM
67222010-11-10 Joseph Myers <joseph@codesourcery.com>
6723
6724 * c-common.c (parse_optimize_options): Pass global_dc to
6725 decode_options.
6726 * c-opts.c (c_common_handle_option): Pass &global_options to
6727 set_Wstrict_aliasing.
6728 * c.opt (v): Don't mark Common or document here.
6729
91ebb981
IS
67302010-11-06 Iain Sandoe <iains@gcc.gnu.org>
6731
6732 PR target/44981
6733 * c-format.c (format_type): New type gcc_objc_string_format_type.
6734 (valid_stringptr_type_p): New.
6735 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 6736 (check_format_string): Pass expected type, use
91ebb981
IS
6737 valid_stringptr_type_p (), check that the format string types are
6738 consistent with the format specification.
6739 (decode_format_attr): Warn if NSString is used outside objective-c.
6740 (format_types_orig): Add NSString.
6741 (format_name): New.
6742 (format_flags): New.
6743 (check_format_arg): Handle format strings requiring an external parser.
6744 first_target_format_type: New variable.
6745 (handle_format_attribute): Set up first_target_format_type, pass the
6746 expected format arg string type to check_format_string().
6747 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
6748 * stub-objc.c (objc_string_ref_type_p): New.
6749 (objc_check_format_arg): New.
6750
bede2adc
NP
67512010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
6752
9faeb493 6753 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
6754 * c-common.h (objc_build_class_component_ref): New.
6755 * stub-objc.c (objc_build_class_component_ref): New.
6756
9a179d01
NP
67572010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
6758
6759 * c.opt (Wproperty-assign-default): New option.
6760
22d8d616
NP
67612010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
6762
6763 Implemented -fobjc-std=objc1 flag.
6764 * c.opt (fobjc-std=objc1): New option.
6765
2debdb4f
NP
67662010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
6767
6768 Implemented format and noreturn attributes for Objective-C methods.
6769 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
6770 attribute for Objective-C methods.
6771
ec52b111
JM
67722010-10-31 Jason Merrill <jason@redhat.com>
6773
6774 * c-common.c (conversion_warning, warn_for_collisions_1): Use
6775 EXPR_LOC_OR_HERE.
6776
46a88c12
NP
67772010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
6778
6779 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
6780 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
6781 (objc_add_property_declaration): Removed arguments for copies and
6782 ivar.
6783 (objc_build_getter_call): Renamed to
6784 objc_maybe_build_component_ref.
6785 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
6786 (objc_is_property_ref): New.
6787 * c-common.c (c_common_reswords): Removed copies and ivar.
6788 * stub-objc.c (objc_add_property_declaration): Removed arguments
6789 for copies and ivar.
6790 (objc_build_getter_call): Renamed to
6791 objc_maybe_build_component_ref.
6792 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
6793 (objc_is_property_ref): New.
9faeb493 6794
1e4bf85b
AC
67952010-10-29 Arnaud Charlet <charlet@adacore.com>
6796 Matthew Gingell <gingell@adacore.com>
6797
6798 * c-ada-spec.c (separate_class_package): New function.
6799 (pp_ada_tree_identifier): Prefix references to C++ classes with the
6800 name of their enclosing package.
6801 (print_ada_declaration): Use separate_class_package.
6802
81f0bab2
JM
68032010-10-27 Jason Merrill <jason@redhat.com>
6804
2b08f2c5
JM
6805 * c-common.c (c_common_reswords): Add __is_literal_type.
6806 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
6807
81f0bab2
JM
6808 * c-common.c (check_case_value): Remove special C++ code.
6809
200290f2
NP
68102010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
6811
6812 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
6813 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
6814 and RID_LAST_PATTR.
6815 (objc_add_property_declaration): Added additional arguments.
6816 (objc_property_attribute_kind): Removed.
6817 (objc_set_property_attr): Removed.
6818 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
6819 copy and nonatomic.
6820 * stub-objc.c (objc_add_property_declaration): Added additional
6821 arguments.
6822 (objc_set_property_attr): Removed.
9faeb493 6823
f614132b
NP
68242010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
6825
6826 * c-common.h (objc_add_property_variable): Renamed to
6827 objc_add_property_declaration. Added location argument.
6828 * stub-objc.c (objc_add_property_variable): Same change.
b1726d6c 6829
b8a18805
NP
68302010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
6831
6832 * c-common.h (objc_maybe_printable_name): New.
6833 * stub-objc.c (objc_maybe_printable_name): New.
6834
3f8257db
JJ
68352010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
6836 Andrew Pinski <pinskia@gmail.com>
30cd1c5d
AS
6837
6838 * c-common.h (c_common_mark_addressable_vec): Declare.
6839 * c-common.c (c_common_mark_addressable_vec): New function.
6840
249a82c4
NP
68412010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
6842
6843 * c-common.h (objc_set_method_type): Removed.
6844 (objc_add_method_declaration): Added boolean argument.
6845 (objc_start_method_definition): Same change.
6846 (objc_build_method_signature): Same change.
6847 * stub-objc.c (objc_set_method_type): Removed.
6848 (objc_add_method_declaration): Added boolean argument.
6849 (objc_start_method_definition): Same change.
6850 (objc_build_method_signature): Same change.
6851
977e30bc
NP
68522010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
6853
6854 * c-common.h (finish_file): Removed.
6855 (objc_write_global_declarations): New.
6856 * c-opts.c (c_common_parse_file): Do not call finish_file.
6857 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 6858
da57d1b9
NP
68592010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
6860
6861 Implemented parsing @synthesize and @dynamic for
6862 Objective-C/Objective-C++.
6863 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
6864 (objc_add_synthesize_declaration): New.
6865 (objc_add_dynamic_declaration): New.
6866 * c-common.c (c_common_reswords): Add synthesize and dynamic.
6867 * stub-objc.c (objc_add_synthesize_declaration): New.
6868 (objc_add_dynamic_declaration): New.
9faeb493 6869
0069111f
MM
68702010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
6871
6872 PR target/46041
6873 * c-cppbuiltin.c (mode_has_fma): Move function here from
6874 builtins.c. Don't use the fma optab, instead just use the
6875 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
6876 using -save-temps.
6877
e426b47b
NP
68782010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
6879
6880 Merge from 'apple/trunk' branch on FSF servers.
0069111f 6881
3f8257db 6882 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
e426b47b 6883
9faeb493 6884 Radar 4330422
e426b47b
NP
6885 * c-common.h (objc_non_volatilized_type): New declaration
6886 * stub-objc.c (objc_non_volatilized_type): New stub.
6887
90fbfdc3
NP
68882010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
6889
e426b47b 6890 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3 6891
3f8257db 6892 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
90fbfdc3 6893
9faeb493 6894 Radar 4133425
90fbfdc3 6895 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 6896 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 6897
c37d8c30
IS
68982010-10-17 Iain Sandoe <iains@gcc.gnu.org>
6899
6900 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
6901 * c-common.h (enum rid): Add RID_AT_PACKAGE.
6902 (objc_ivar_visibility_kind): New enum.
6903 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 6904 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
6905 visibility enum.
6906
1b1562a5
MM
69072010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
6908
6909 * c-cppbuiltin.c (builtin_define_float_constants): Emit
6910 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
6911 has the appropriate fma builtins.
6912 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
6913
668ea4b1
IS
69142010-10-14 Iain Sandoe <iains@gcc.gnu.org>
6915
1b1562a5 6916 merge from FSF apple 'trunk' branch.
3f8257db 6917 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 6918
668ea4b1
IS
6919 Radars 4436866, 4505126, 4506903, 4517826
6920 * c-common.c (c_common_resword): Define @property and its attributes.
6921 * c-common.h: Define property attribute enum entries.
6922 (OBJC_IS_PATTR_KEYWORD): New.
6923 (objc_property_attribute_kind): New enum.
6924 Declare objc_set_property_attr (), objc_add_property_variable (),
6925 objc_build_getter_call () and objc_build_setter_call ().
6926 * stub-objc.c (objc_set_property_attr): New stub.
6927 (objc_add_property_variable): Likewise.
6928 (objc_build_getter_call): Likewise.
6929 (objc_build_setter_call) Likewise.
1b1562a5 6930
a1178b30
IS
69312010-10-13 Iain Sandoe <iains@gcc.gnu.org>
6932
1b1562a5 6933 merge from FSF apple 'trunk' branch.
3f8257db 6934 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
a1178b30
IS
6935
6936 Radar 3803157 (method attributes)
6937 * c-common.c (handle_deprecated_attribute): Recognize
6938 objc methods as valid declarations.
6939 * c-common.h: Declare objc_method_decl ().
1b1562a5 6940 * stub-objc.c (objc_method_decl): New stub.
a1178b30 6941
a75bfaa6
JM
69422010-10-08 Joseph Myers <joseph@codesourcery.com>
6943
6944 * c-common.c (parse_optimize_options): Call
6945 decode_cmdline_options_to_array_default_mask before
6946 decode_options. Update arguments to decode_options.
6947 * c-common.h (c_common_init_options_struct): Declare.
6948 * c-opts.c (c_common_init_options_struct): New. Split out from
6949 c_common_init_options.
6950
f05b9d93
NP
69512010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
6952
6953 Implemented fast enumeration for Objective-C.
6954 * c-common.h (objc_finish_foreach_loop): New.
6955 * stub-objc.c (objc_finish_foreach_loop): New.
6956
1ebe4b4f
JM
69572010-10-05 Joseph Myers <joseph@codesourcery.com>
6958
6959 * c-common.h (struct diagnostic_context): Don't declare here.
6960 (c_common_initialize_diagnostics): Declare using
6961 diagnostic_context typedef.
6962 * c-opts.c (c_common_handle_option): Pass global_dc to
6963 handle_generated_option.
6964
d4d24ba4
JM
69652010-10-04 Joseph Myers <joseph@codesourcery.com>
6966
6967 * c-opts.c (c_common_handle_option): Pass &global_options_set to
6968 handle_generated_option.
6969
478a1c5b
ILT
69702010-10-03 Ian Lance Taylor <iant@google.com>
6971
6972 * c.opt (-fplan9-extensions): New option.
6973
82a1c2fe
FXC
69742010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6975
6976 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
6977 Remove.
6978 (c_cpp_builtins): Call functions from cppbuiltin.c instead
6979 of duplicating code.
6980
92902b1b
IS
69812010-09-30 Iain Sandoe <iains@gcc.gnu.org>
6982
6983 * c-common.c: Add two new entries for @optional
6984 and @required keywords.
6985
6986 merge from FSF 'apple/trunk' branch.
3f8257db 6987 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
92902b1b
IS
6988
6989 Radar 4386773
6990 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
6991 objective-c keywords.
6992 (objc_set_method_opt): New declaration.
6993 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 6994
46625112
JM
69952010-09-30 Joseph Myers <joseph@codesourcery.com>
6996
6997 * c-common.c (handle_optimize_attribute): Pass &global_options to
6998 cl_optimization_save and cl_optimization_restore.
6999 * c-opts.c (c_common_handle_option): Pass &global_options to
7000 handle_generated_option.
7001 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
7002 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
7003 &global_options to cl_optimization_restore.
7004
49b91f05
NP
70052010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
7006
7007 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
7008 Objective-C/Objective-C++ keywords.
7009
13ed556f 70102010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 7011
9faeb493
UB
7012 Merge from 'apple/trunk' branch on FSF servers.
7013
3f8257db 7014 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
a6341d57
NP
7015
7016 Radar 4281748
7017 * c-common.h (objc_check_global_decl): New declaration.
7018 * stub-objc.c (objc_check_global_decl): New stub.
7019
f0036cca
JM
70202010-09-29 Joseph Myers <joseph@codesourcery.com>
7021
7022 * c.opt: Don't use VarExists.
7023
e3339d0f
JM
70242010-09-29 Joseph Myers <joseph@codesourcery.com>
7025
7026 * c-common.c (c_cpp_error): Update names of diagnostic_context
7027 members.
7028 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
7029 cl_optimization members.
7030 * c-opts.c (warning_as_error_callback, c_common_handle_option,
7031 sanitize_cpp_opts, finish_options): Update names of cpp_options
7032 members.
7033
1973201f
NP
70342010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
7035
7036 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
7037 (objc_is_reserved_word): Removed.
7038 * c-common.c: Updated comments.
7039 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
7040 objc_is_reserved_word.
7041 * stub-objc.c (objc_is_reserved_word): Removed.
7042
f7e71da5
IS
70432010-09-28 Iain Sandoe <iains@gcc.gnu.org>
7044
9faeb493 7045 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
7046 include attributes.
7047 (objc_start_method_definition): Likewise.
7048 (objc_build_keyword_decl): Likewise.
7049 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
7050 (objc_start_method_definition): Likewise.
7051 (objc_build_keyword_decl): Likewise.
7052
c165dca7
IS
70532010-09-28 Iain Sandoe <iains@gcc.gnu.org>
7054
7055 * c-common.h (objc_start_class_interface): Adjust prototype.
7056 (objc_start_category_interface): Likewise.
7057 (objc_start_protocol): Likewise.
7058 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
7059 (objc_start_class_interface): Likewise.
7060 (objc_start_category_interface): Likewise.
7061
7458026b
ILT
70622010-09-27 Ian Lance Taylor <iant@google.com>
7063
7064 * c-common.c (c_common_attribute_table): Add no_split_stack.
7065 (handle_no_split_stack_attribute): New static function.
7066
b581b85b
NP
70672010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
7068
9faeb493 7069 Merge from 'apple/trunk' branch on FSF servers.
b581b85b 7070
3f8257db 7071 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
b581b85b 7072
9faeb493 7073 Radar 4229905
b581b85b
NP
7074 * c-common.h (objc_have_common_type): New declaration.
7075 * stub-objc.c (objc_have_common_type): New stub.
7076
7077 2005-06-22 Ziemowit Laski <zlaski@apple.com>
7078
7079 Radar 4154928
7080 * c-common.h (objc_common_type): New prototype.
9faeb493 7081 * stub-objc.c (objc_common_type): New stub.
b581b85b 7082
46a4da10
JH
70832010-09-24 Jan Hubicka <jh@suse.cz>
7084
7085 * c-common.c (handle_leaf_attribute): New function.
7086 (struct attribute_spec c_common_att): Add leaf.
7087
e200444e
JM
70882010-09-22 Joseph Myers <joseph@codesourcery.com>
7089
7090 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
7091 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
7092 -dump, -dump=, -imacros, -imacros=, -include, -include=,
7093 -include-barrier, -include-directory, -include-directory=,
7094 -include-directory-after, -include-directory-after=,
7095 -include-prefix, -include-prefix=, -include-with-prefix,
7096 -include-with-prefix=, -include-with-prefix-after,
7097 -include-with-prefix-after=, -include-with-prefix-before,
7098 -include-with-prefix-before=, -no-integrated-cpp,
7099 -no-line-commands, -no-standard-includes, -no-warnings, -output,
7100 -output=, -pedantic, -pedantic-errors, -preprocess,
7101 -print-missing-file-dependencies, -trace-includes, -traditional,
7102 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
7103 -user-dependencies, -verbose, -write-dependencies,
7104 -write-user-dependencies, no-integrated-cpp, traditional): New.
7105
29a80ea6
NP
71062010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
7107
7108 PR objc/23710
ac1fc2fc
NP
7109 * c-common.h (objc_start_method_definition): Return bool instead
7110 of void.
7111 * stub-objc.c (objc_start_method_definition): Return bool instead
7112 of void.
7113
71142010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
7115
7116 PR objc/25965
7117 * c-common.h (objc_get_interface_ivars): New declaration.
7118 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 7119
de621752
ILT
71202010-09-15 Ian Lance Taylor <iant@google.com>
7121
7122 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 7123 messages. Remove period at end of warning message.
de621752 7124
ba885ec5
NS
71252010-09-09 Nathan Sidwell <nathan@codesourcery.com>
7126
7127 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
7128 (handle_alias_attribute): ... here.
7129 (handle_ifunc_attribute): New.
7130
c5ee1358
MM
71312010-09-06 Mark Mitchell <mark@codesourcery.com>
7132
7133 * c-common.h (do_warn_double_promotion): Declare.
7134 * c-common.c (do_warn_double_promotion): Define.
7135
0a0b3574
MM
71362010-09-05 Mark Mitchell <mark@codesourcery.com>
7137
7138 * c.opt (Wdouble-promotion): New.
7139
d1779886
JM
71402010-09-02 Joseph Myers <joseph@codesourcery.com>
7141
7142 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
7143 fvtable-thunks, fxref): Mark no longer supported in help text.
7144
2d2bd949
JM
71452010-09-02 Joseph Myers <joseph@codesourcery.com>
7146
7147 * c.opt (Wimport, fall-virtual, falt-external-templates,
7148 fdefault-inline, fenum-int-equiv, fexternal-templates,
7149 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
7150 fname-mangling-version-, fnew-abi, fnonnull-objects,
7151 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
7152 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
7153 applicable.
7154 (fhandle-exceptions): Mark with Alias and Warn.
7155 * c-opts.c (c_common_handle_option): Don't handle options marked
7156 as ignored.
7157
5de8299c
JM
71582010-09-02 Joseph Myers <joseph@codesourcery.com>
7159
7160 * c.opt (Wcomments, Werror-implicit-function-declaration,
7161 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
7162 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
7163 aliases.
7164 * c-common.c (option_codes): Use OPT_Wcomment instead of
7165 OPT_Wcomments.
7166 * c-opts.c (warning_as_error_callback, c_common_handle_option):
7167 Don't handle options marked as aliases.
7168
0ceb0201
RG
71692010-08-25 Richard Guenther <rguenther@suse.de>
7170
7171 * c-common.c (c_common_get_alias_set): Remove special
7172 handling for pointers.
7173
ac47786e
NF
71742010-08-20 Nathan Froyd <froydnj@codesourcery.com>
7175
7176 * c-common.c: Use FOR_EACH_VEC_ELT.
7177 * c-gimplify.c: Likewise.
7178 * c-pragma.c: Likewise.
7179
c878765b
JM
71802010-08-16 Joseph Myers <joseph@codesourcery.com>
7181
7182 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
7183 RejectDriver.
7184 (MMDX): Change back to MMD. Mark NoDriverArg instead of
7185 RejectDriver.
7186 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
7187 instead of OPT_MDX and OPT_MMDX.
7188
603349bf
JM
71892010-08-16 Joseph Myers <joseph@codesourcery.com>
7190
7191 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
7192
644fa7ac
JM
71932010-08-12 Joseph Myers <joseph@codesourcery.com>
7194
7195 * c.opt (MD, MMD): Change to MDX and MMDX.
7196 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
7197
481e1176
JM
71982010-08-11 Joseph Myers <joseph@codesourcery.com>
7199
7200 * c-opts.c (c_common_handle_option): Call handle_generated_option
7201 instead of handle_option.
7202
ac8dc9f7
NF
72032010-08-08 Nathan Froyd <froydnj@codesourcery.com>
7204
7205 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
7206 (maybe_apply_renaming_pragma): Delete unneeded declarations.
7207
4f8c876d
NF
72082010-08-08 Nathan Froyd <froydnj@codesourcery.com>
7209
7210 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
7211 (pending_redefine_extname): Change type to a VEC.
7212 (add_to_renaming_pragma_list): Update for new type of
7213 pending_redefine_extname.
ac8dc9f7 7214 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 7215
3b0c690e
AC
72162010-08-04 Arnaud Charlet <charlet@adacore.com>
7217
7218 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
7219 visited.
7220 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
7221 decide whether a type has already been declared/seen.
7222 Do not go to the original type.
7223 (dump_nested_types): New parameter forward.
7224 Generate forward declaration if needed and mark type as visited.
7225 (print_ada_declaration): Call dump_nested_types if not already done.
7226 Mark types as visited.
7227
1890bccc
JM
72282010-08-03 Joseph Myers <joseph@codesourcery.com>
7229
7230 * c.opt (-print-pch-checksum): Remove option.
7231 * c-opts.c (c_common_handle_option): Don't handle
7232 OPT_print_pch_checksum.
7233
5f20c657
JM
72342010-07-27 Joseph Myers <joseph@codesourcery.com>
7235
7236 * c-common.h (c_common_handle_option): Update prototype and return
7237 value type.
7238 * c-opts.c (c_common_handle_option): Update prototype and return
7239 value type. Update calls to handle_option and
7240 enable_warning_as_error.
7241
f551f80c
JJ
72422010-07-27 Jakub Jelinek <jakub@redhat.com>
7243
7244 PR c/45079
7245 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
7246
61ff2bdc
JM
72472010-07-27 Joseph Myers <joseph@codesourcery.com>
7248
7249 * c-common.h (c_common_missing_argument): Remove.
7250 * c-opts.c (c_common_missing_argument): Remove.
7251 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
7252 idirafter, imacros, include, isysroot, isystem, iquote): Add
7253 MissingArgError.
7254 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
7255
7a9bf9a4
JM
72562010-07-27 Joseph Myers <joseph@codesourcery.com>
7257
7258 * c-common.h (c_common_option_lang_mask,
7259 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
7260 New.
7261 (c_common_init_options): Update prototype.
7262 * c-opts.c (c_common_option_lang_mask): New.
7263 (c_common_initialize_diagnostics): Split out of
7264 c_common_init_options.
7265 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
7266 New.
7267 (c_common_init_options): Update prototype. Use decoded options in
7268 search for -lang-asm.
7269
910ad8de
NF
72702010-07-15 Nathan Froyd <froydnj@codesourcery.com>
7271
7272 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
7273 * c-format.c: Likewise.
7274
718f9c0f
MLI
72752010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
7276
7277 * c-common.h: Include diagnostic-core.h. Error if already
7278 included.
7279 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
7280
4d451982
MLI
72812010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
7282
adfac8df 7283 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
7284 Do not include expr.h
7285 (vector_mode_valid_p): Move here.
7286
119fe915
SB
72872010-06-21 DJ Delorie <dj@redhat.com>
7288
7289 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
7290 allow these pragmas anywhere.
7291
72922010-06-14 Jakub Jelinek <jakub@redhat.com>
7293
7294 PR bootstrap/44509
7295 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
7296 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
7297 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
7298 ggc_strdup instead of xstrdup.
7299
73002010-06-10 Jakub Jelinek <jakub@redhat.com>
7301
7302 * c-cppbuiltin.c: Include cpp-id-data.h.
7303 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
7304 (lazy_hex_fp_value): New function.
7305 (builtin_define_with_hex_fp_value): Provide definitions lazily.
7306
6662d794
MLI
73072010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
7308
7309 * c-gimplify.c: Do not include tree-flow.h
7310
38f8b050
JR
73112010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
7312
7313 PR other/44034
7314 * c-common.c: Rename targetm member:
7315 targetm.enum_va_list -> targetm.enum_va_list_p
7316
9589f23e
AS
73172010-06-28 Anatoly Sokolov <aesok@post.ru>
7318
7319 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
7320
3b06d379
SB
73212010-06-28 Steven Bosscher <steven@gcc.gnu.org>
7322
7323 * c-cppbuiltin.c: Do not include except.h.
7324
d166d4c3
AK
73252010-06-24 Andi Kleen <ak@linux.intel.com>
7326
9faeb493
UB
7327 * c-common.c (warn_for_omitted_condop): New.
7328 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 7329
70cb8be6
JM
73302010-06-21 Joseph Myers <joseph@codesourcery.com>
7331
7332 * c.opt (lang-objc): Remove.
7333 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
7334
a4c97feb
JR
73352010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
7336
7337 * c-opts.c: Include "tm_p.h".
7338
6e2f1956
JM
73392010-06-20 Joseph Myers <joseph@codesourcery.com>
7340
7341 * c-common.c (parse_optimize_options): Update call to
7342 decode_options.
7343
bc87224e
NF
73442010-06-18 Nathan Froyd <froydnj@codesourcery.com>
7345
7346 * c-common.c (record_types_used_by_current_var_decl): Adjust for
7347 new type of types_used_by_cur_var_decl.
7348
b49cf425
JR
73492010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
7350
7351 PR bootstrap/44512
7352 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
7353 for C++ standard compliance.
7354
59f9c2ed
JM
73552010-06-16 Jason Merrill <jason@redhat.com>
7356
7357 * c.opt: Add -Wnoexcept.
7358
33766b66
RG
73592010-06-16 Richard Guenther <rguenther@suse.de>
7360
7361 PR c/44555
7362 * c-common.c (c_common_truthvalue_conversion): Remove
7363 premature and wrong optimization concering ADDR_EXPRs.
7364
eff7e30c
AC
73652010-06-15 Arnaud Charlet <charlet@adacore.com>
7366
7367 * c-ada-spec.c (dump_sloc): Remove column info.
7368 (is_simple_enum): New function.
7369 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
7370 enum types when relevant.
7371
6312e84d
MLI
73722010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
7373
9faeb493 7374 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
7375 location.
7376
1cb42611
JM
73772010-06-10 Joseph Myers <joseph@codesourcery.com>
7378
7379 * c-opts.c (c_common_handle_option): Don't handle
7380 OPT_fshow_column.
7381
a9429e29
LB
73822010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7383
7384 * c-pragma.c (push_alignment): Use typed GC allocation.
7385 (handle_pragma_push_options): Likewise.
7386
7387 * c-common.c (parse_optimize_options): Likewise.
7388
7389 * c-common.h (struct sorted_fields_type): Add variable_size GTY
7390 option.
7391
5498f011
JM
73922010-06-07 Joseph Myers <joseph@codesourcery.com>
7393
7394 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
7395 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
7396 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
7397 flag_signed_bitfields, warn_strict_null_sentinel,
7398 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
7399 flag_gen_declaration, flag_no_gnu_keywords,
7400 flag_implement_inlines, flag_implicit_templates,
7401 flag_implicit_inline_templates, flag_optional_diags,
7402 flag_elide_constructors, flag_default_inline, flag_rtti,
7403 flag_conserve_space, flag_access_control, flag_check_new,
7404 flag_new_for_scope, flag_weak, flag_working_directory,
7405 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
7406 flag_enforce_eh_specs, flag_threadsafe_statics,
7407 flag_pretty_templates): Remove.
7408 * c-common.h (flag_preprocess_only, flag_nil_receivers,
7409 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
7410 flag_replace_objc_classes, flag_undef, flag_no_builtin,
7411 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
7412 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
7413 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
7414 flag_no_gnu_keywords, flag_implement_inlines,
7415 flag_implicit_templates, flag_implicit_inline_templates,
7416 flag_optional_diags, flag_elide_constructors, flag_default_inline,
7417 flag_rtti, flag_conserve_space, flag_access_control,
7418 flag_check_new, flag_new_for_scope, flag_weak,
7419 flag_working_directory, flag_use_cxa_atexit,
7420 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
7421 flag_threadsafe_statics, flag_pretty_templates,
7422 warn_strict_null_sentinel): Remove.
7423 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
7424 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
7425 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
7426 fimplicit-inline-templates, fimplicit-templates,
7427 flax-vector-conversions, fms-extensions, fnil-receivers,
7428 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
7429 frtti, fshort-double, fshort-enums, fshort-wchar,
7430 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
7431 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
7432 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
7433 gen-decls, undef): Use Var.
7434 (fdefault-inline, foptional-diags): Document as doing nothing.
7435 * c-opts.c (c_common_handle_option): Remove cases for options now
7436 using Var. Mark ignored options as such.
7437
39dabefd
SB
74382010-06-05 Steven Bosscher <steven@gcc.gnu.org>
7439
9faeb493 7440 * c-common.c: Moved to here from parent directory.
39dabefd
SB
7441 * c-common.def: Likewise.
7442 * c-common.h: Likewise.
7443 * c-cppbuiltin.c: Likewise.
7444 * c-dump.c: Likewise.
7445 * c-format.c: Likewise.
7446 * c-format.h : Likewise.
7447 * c-gimplify.c: Likewise.
7448 * c-lex.c: Likewise.
7449 * c-omp.c: Likewise.
7450 * c.opt: Likewise.
7451 * c-opts.c: Likewise.
7452 * c-pch.c: Likewise.
7453 * c-ppoutput.c: Likewise.
7454 * c-pragma.c: Likewise.
7455 * c-pragma.h: Likewise.
7456 * c-pretty-print.c: Likewise.
7457 * c-pretty-print.h: Likewise.
7458 * c-semantics.c: Likewise.
7459 * stub-objc.c: Likewise.
7460
7461 * c-common.c: Include gt-c-family-c-common.h.
7462 * c-pragma.c: Include gt-c-family-c-pragma.h.
7463\f
cbe34bb5 7464Copyright (C) 2010-2017 Free Software Foundation, Inc.
39dabefd
SB
7465
7466Copying and distribution of this file, with or without modification,
7467are permitted in any medium without royalty provided the copyright
7468notice and this notice are preserved.
This page took 2.587005 seconds and 5 git commands to generate.