]> gcc.gnu.org Git - gcc.git/blame - gcc/c-family/ChangeLog
Fix bogus failure of uninit-19.c for avr
[gcc.git] / gcc / c-family / ChangeLog
CommitLineData
ec1c5694
JJ
12016-11-23 Jakub Jelinek <jakub@redhat.com>
2
3 PR target/78451
4 * c-pragma.c (handle_pragma_target): Don't replace
5 current_target_pragma, but chainon the new args to the current one.
6
730c9e75
NS
72016-11-22 Nathan Sidwell <nathan@acm.org>
8
9 * array-notation-common.c (cilkplus_extract_an_trplets): Fix
cacd29be 10 indentation and formatting.
730c9e75 11
89990732
MS
122016-11-21 Martin Sebor <msebor@redhat.com>
13
14 * c.opt (-fprintf-return-value): Enable by default.
15
48330c93
BE
162016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
17
18 PR c++/71973
19 * c.opt (-Wbuiltin-declaration-mismatch): New warning.
20 * c-common.c (c_common_nodes_and_builtins): Initialize
21 const_tm_ptr_type_node.
22
0d939c95
MP
232016-11-16 Marek Polacek <polacek@redhat.com>
24
25 PR c/78285
26 * c-common.c (c_add_case_label): Turn error_at calls into inform.
27
8e745a17
JJ
282016-11-14 Jakub Jelinek <jakub@redhat.com>
29
30 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_structured_bindings.
31
1ee62b92 322016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
8e745a17
JJ
33 Richard Biener <rguenther@suse.de>
34
35 * c-common.h (c_common_resword): Add RID_GIMPLE, RID_PHI types.
36 * c-common.h (enum rid): Add RID_GIMPLE, RID_PHI.
37 * c.opt (fgimple): New option.
1ee62b92 38
22b15758
UB
392016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
40
41 PR c/35503
42 * c-common.h (warn_for_restrict): Declare.
43 * c-warn.c: Include gcc-rich-location.h.
44 (warn_for_restrict): New function.
45 * c-format.c (gcc_tdiag_char_table): Add entry for "Z" specifier.
46 (gcc_cdiag_char_table): Likewise.
47 (gcc_cxxdiag_char_table): Likewise.
48 * c.opt (Wrestrict): New option.
49
4be719cd
EB
502016-11-13 Eric Botcazou <ebotcazou@adacore.com>
51
52 * c-ada-spec.c (print_ada_declaration): For typedef declarations, look
53 for nested types only if the type is a record or union and dump SLOC.
54
4a826ca6
JM
552016-11-09 Jason Merrill <jason@redhat.com>
56
57 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_template_auto.
58
2e955d50
JJ
592016-11-09 Jakub Jelinek <jakub@redhat.com>
60
61 * c-ubsan.c (ubsan_instrument_shift): Handle split
62 -fsanitize=shift-base and -fsanitize=shift-exponent.
63
51dc6603
JM
642016-11-07 Jason Merrill <jason@redhat.com>
65
66 * c.opt (Wc++1z-compat): New.
67 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_noexcept_function_type.
68
6dc4a604
ML
692016-11-07 Martin Liska <mliska@suse.cz>
70
71 * c-warn.c (warn_for_unused_label): Save all labels used
72 in goto or in &label.
73
b302001e
JM
742016-11-03 Jason Merrill <jason@redhat.com>
75
76 * c-cppbuiltin.c (c_cpp_builtins): Correct
77 __cpp_inheriting_constructors.
78
31f7f784
JM
792016-11-01 Jason Merrill <jason@redhat.com>
80
2bc78e3c
JM
81 * c-cppbuiltin.c (c_cpp_builtins): Update
82 __cpp_inheriting_constructors.
83
31f7f784
JM
84 * c.opt (-fnew-inheriting-ctors): New.
85 * c-opts.c: Default to on for ABI 11+.
86
dcb466ec
JJ
872016-10-31 Jakub Jelinek <jakub@redhat.com>
88
89 PR c++/77948
90 * c.opt (fext-numeric-literals): Add Var and Init.
91 * c-opts.c (c_common_handle_option): Don't clear
92 cpp_opts->ext_numeric_literals for -std=c++{11,14,1z}.
93 (c_common_post_options): Clear it here if not set
94 explicitly.
95
52e1b91e
AH
962016-10-28 Aldy Hernandez <aldyh@redhat.com>
97
98 PR debug/77773
99 * c-pretty-print.c (simple_type_specifier): Do not dereference `t'
100 if NULL.
101
e16f1cc7
JJ
1022016-10-25 Jakub Jelinek <jakub@redhat.com>
103
104 * c-common.h (enum rid): Add RID_BUILTIN_LAUNDER.
105 * c-common.c (c_common_reswords): Add __builtin_launder.
106
f8348061
BE
1072016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
108
109 * c-common.c (c_common_truthvalue_conversion): Warn for
110 multiplications in boolean context. Fix the quoting of '<<' and '<'
111 in the shift warning.
112
eff89e01
BE
1132016-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
114
115 * c-common.c (c_common_truthvalue_conversion): Fix the comment.
116
24bc7bf4
JM
1172016-10-20 Jason Merrill <jason@redhat.com>
118
119 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_concepts value.
120
4c712374
BE
1212016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
122
123 * c-common.c (c_common_truthvalue_conversion): Warn only for signed
124 integer shift ops in boolean context.
125
1262016-10-18 Aldy Hernandez <aldyh@redhat.com>
adc577c5
AH
127
128 * c.opt (Walloca): New.
129 (Walloca-larger-than=): New.
130 (Wvla-larger-than=): New.
131
8fa18c06
MP
1322016-10-17 Marek Polacek <polacek@redhat.com>
133
134 * c-warn.c (find_array_ref_with_const_idx_r): Remove parameter names.
135 Return immediately when finding a match.
136 (warn_tautological_cmp): Remove a boolean variable that is no longer
137 needed.
138
b12b1915
MP
1392016-10-17 Marek Polacek <polacek@redhat.com>
140
141 * c-attribs.c: New file.
142 * c-common.c: Move attributes handling to c-attribs.c.
143 (get_nonnull_operand): No longer static.
144 * c-common.h: Move the declarations from c-attribs.c to its own section.
145
2045acd9
JM
1462016-10-14 Jason Merrill <jason@redhat.com>
147
148 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_aggregate_bases
149 and __cpp_deduction_guides.
150
14a2c9aa
JM
1512016-10-13 Jason Merrill <jason@redhat.com>
152
153 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_inline_variables.
154
4d0cdd0c
TP
1552016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
156
157 * c-cppbuiltin.c: Include memmodel.h.
158 * c-opts.c: Likewise.
159 * c-pragma.c: Likewise.
160 * c-warn.c: Likewise.
161
70f6d5e1
JJ
1622016-10-12 Jakub Jelinek <jakub@redhat.com>
163
164 * c.opt (Wextra): Add as C/C++/ObjC/ObjC++ option.
165 (Wimplicit-fallthrough=): Enable for these languages by -Wextra.
166 * c-opts.c (sanitize_cpp_opts): Initialize
167 cpp_opts->cpp_warn_implicit_fallthrough.
168
78f61294
MP
1692016-10-11 Marek Polacek <polacek@redhat.com>
170
171 * c-common.c (warning_candidate_p): Change the return type to bool
172 and return true/false instead of 1/0.
173 (vector_mode_valid_p): Likewise.
174
038b5cc0
MP
1752016-10-11 Marek Polacek <polacek@redhat.com>
176
177 * c-common.c (fold_for_warn): No longer static.
178 (bool_promoted_to_int_p): Likewise.
179 (c_common_get_narrower): Likewise.
180 (constant_expression_warning): Move to c-warn.c.
181 (constant_expression_error): Likewise.
182 (overflow_warning): Likewise.
183 (warn_logical_operator): Likewise.
184 (find_array_ref_with_const_idx_r): Likewise.
185 (warn_tautological_cmp): Likewise.
186 (expr_has_boolean_operands_p): Likewise.
187 (warn_logical_not_parentheses): Likewise.
188 (warn_if_unused_value): Likewise.
189 (strict_aliasing_warning): Likewise.
190 (sizeof_pointer_memaccess_warning): Likewise.
191 (check_main_parameter_types): Likewise.
192 (conversion_warning): Likewise.
193 (warnings_for_convert_and_check): Likewise.
194 (match_case_to_enum_1): Likewise.
195 (match_case_to_enum): Likewise.
196 (c_do_switch_warnings): Likewise.
197 (warn_for_omitted_condop): Likewise.
198 (readonly_error): Likewise.
199 (lvalue_error): Likewise.
200 (invalid_indirection_error): Likewise.
201 (warn_array_subscript_with_type_char): Likewise.
202 (warn_about_parentheses): Likewise.
203 (warn_for_unused_label): Likewise.
204 (warn_for_div_by_zero): Likewise.
205 (warn_for_memset): Likewise.
206 (warn_for_sign_compare): Likewise.
207 (do_warn_double_promotion): Likewise.
208 (do_warn_unused_parameter): Likewise.
209 (record_locally_defined_typedef): Likewise.
210 (maybe_record_typedef_use): Likewise.
211 (maybe_warn_unused_local_typedefs): Likewise.
212 (maybe_warn_bool_compare): Likewise.
213 (maybe_warn_shift_overflow): Likewise.
214 (warn_duplicated_cond_add_or_warn): Likewise.
215 (diagnose_mismatched_attributes): Likewise.
216 * c-common.h: Move the declarations from c-warn.c to its own section.
217 * c-warn.c: New file.
218
627be19f
JM
2192016-10-08 Jason Merrill <jason@redhat.com>
220
221 * c-common.c (c_common_truthvalue_conversion): Don't distribute
222 into COND_EXPR in C++.
223
7bad794a
JJ
2242016-10-08 Jakub Jelinek <jakub@redhat.com>
225
226 * c-lex.c (c_lex_with_flags) <case CPP_COMMENT>: For CPP_COMMENT
227 token with PREV_FALLTHROUGH, skip all following CPP_PADDING and
228 CPP_COMMENT tokens and set add_flags to PREV_FALLTHROUGH afterwards.
229
be845b04
JJ
2302016-10-07 Jakub Jelinek <jakub@redhat.com>
231
232 Implement LWG2296 helper intrinsic
233 * c-common.h (enum rid): Add RID_ADDRESSOF.
234 * c-common.c (c_common_reswords): Add __builtin_addressof.
235
c09c4992
BE
2362016-10-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
237
238 PR c++/77700
239 * c-common.c (c_common_truthvalue_conversion): Warn also for
240 suspicious enum values in boolean context.
241
342cfb3e
JJ
2422016-10-06 Jakub Jelinek <jakub@redhat.com>
243
244 Implement P0258R2 - helper for C++17
245 std::has_unique_object_representations trait
246 * c-common.h (enum rid): Add RID_HAS_UNIQUE_OBJ_REPRESENTATIONS.
247 * c-common.c (c_common_reswords): Add
248 __has_unique_object_representations.
249
2e69f143
JJ
2502016-10-05 Jakub Jelinek <jakub@redhat.com>
251
252 PR sanitizer/66343
253 * c-ubsan.c (ubsan_instrument_return): Don't call
254 initialize_sanitizer_builtins here.
255
700fff34
BE
2562016-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
257
258 * c-common.c (c_common_truthvalue_conversion): Warn also for suspicious
259 conditional expression in boolean context when only one arm is
260 non-boolean.
261
9563bfcd
JJ
2622016-10-05 Jakub Jelinek <jakub@redhat.com>
263
04a32443
JJ
264 PR sanitizer/77823
265 * c-ubsan.c (ubsan_instrument_shift): Return NULL_TREE if type0
266 is not integral.
267
9563bfcd
JJ
268 * c-common.c (c_common_reswords): Update comment for C++11.
269
f1644724
JM
2702016-10-04 Jason Merrill <jason@redhat.com>
271
272 * c-common.c (make_tree_vector_from_ctor): New.
273 * c-common.h: Declare it.
274
5a79befb
JJ
2752016-10-04 Jakub Jelinek <jakub@redhat.com>
276
277 * c-cppbuiltin.c (c_cpp_builtins): Don't define
278 __LIBGCC_JCR_SECTION_NAME__.
279
1633d3b9
BE
2802016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
281
282 * c-common.c (c_common_truthvalue_conversion): Warn for suspicious
283 left shift in boolean context.
284
a2c6e7f2
JJ
2852016-09-29 Jakub Jelinek <jakub@redhat.com>
286
287 Implement P0001R1 - C++17 removal of register storage class specifier
288 * c.opt (Wregister): New warning.
289 * c-opts.c (c_common_post_options): Enable -Wregister by
290 default for C++17.
291
75304c87
JG
2922016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
293
294 * c-opts.c (c_common_post_options): Remove special case for
295 TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard
296 in C++.
297
bbfac6da
JJ
2982016-09-27 Jakub Jelinek <jakub@redhat.com>
299
6e39060a
JJ
300 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for
301 -std=c++1z.
302
bbfac6da
JJ
303 * c-ada-spec.c (print_ada_declaration): Remove break after return.
304
e73cf9a2
TP
3052016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
306
307 * c-common.c: Include memmodel.h.
308
c6147dc4
MP
3092016-09-26 Marek Polacek <polacek@redhat.com>
310
311 * c-lex.c (c_common_has_attribute): Handle attribute fallthrough.
312
81fea426
MP
3132016-09-26 Marek Polacek <polacek@redhat.com>
314
315 PR c/7652
316 * c-common.c (c_common_attribute_table): Add fallthrough attribute.
317 (handle_fallthrough_attribute): New function.
318 (attribute_fallthrough_p): New function.
319 * c-common.h (attribute_fallthrough_p): Declare.
320
9a2300e9
MP
3212016-09-24 Marek Polacek <polacek@redhat.com>
322
323 PR c/77490
324 * c.opt (Wbool-operation): New.
325
a09e9e35
BE
3262016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
327
328 * c-common.c (c_common_truthvalue_conversion): Inhibit
329 Wint-in-bool-context warning with from_macro_definition_at.
330 Mention the expression will always evaluate to true.
331
d43b4ccc
MS
3322016-09-21 Martin Sebor <msebor@redhat.com>
333
334 PR bootstrap/77676
335 * c.opt (fprintf-return-value): Temporarily initialize to zero
336 to unblock bootstrap failures.
337
2e1c20b1
JJ
3382016-09-21 Jakub Jelinek <jakub@redhat.com>
339
340 PR c++/77651
341 * c.opt (Waligned-new=): Add RejectNegative.
342 (faligned-new=): Likewise. Spelling fix - change
343 aligned_new_threshhold to aligned_new_threshold.
344 * c-cppbuiltin.c (c_cpp_builtins): Change aligned_new_threshhold
345 to aligned_new_threshold.
346
88d0c3f0
MS
3472016-09-20 Martin Sebor <msebor@redhat.com>
348
349 PR middle-end/49905
350 * c.opt: Add -Wformat-length and -fprintf-return-value.
351
144a96e4
BE
3522016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
353
354 PR c++/77434
355 * c.opt (Wint-in-bool-context): New warning.
356 * c-common.c (c_common_truthvalue_conversion): Warn on integer
357 constants in boolean context.
358
63012d9a
JM
3592016-09-19 Joseph Myers <joseph@codesourcery.com>
360
361 * c-common.c (max_align_t_align): Also consider alignment of
362 float128_type_node.
363
931388ce
JM
3642016-09-15 Jason Merrill <jason@redhat.com>
365
366 * c-common.c (check_cxx_fundamental_alignment_constraints): Check
367 DECL_EXTERNAL.
368
38711381
JM
3692016-09-14 Jason Merrill <jason@redhat.com>
370
371 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
372 limit FIELD_DECL, either.
373
e51fbec3
MP
3742016-09-14 Marek Polacek <polacek@redhat.com>
375
376 * c-common.c (c_common_truthvalue_conversion): Use false instead of 0.
377 * c-common.h (build_unary_op): Change nonconvert parameter type to bool.
378 * c-omp.c (c_finish_omp_atomic): Use false instead of 0.
379
254830ba
DM
3802016-09-13 David Malcolm <dmalcolm@redhat.com>
381
382 * c-common.c (warn_logical_not_parentheses): Replace
383 rich_location::add_fixit_insert calls with add_fixit_insert_before
384 and add_fixit_insert_after, eliminating the "next_loc" calculation.
385
42763690
JM
3862016-09-13 Jason Merrill <jason@redhat.com>
387 Tom de Vries <tom@codesourcery.com>
388
389 PR c++/77427
390 * c-common.c (set_underlying_type): Don't treat array as builtin type.
391
9453eee9
JM
3922016-09-13 Jason Merrill <jason@redhat.com>
393
394 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
395 limit types at all.
396
e96809e3
JM
3972016-09-12 Jason Merrill <jason@redhat.com>
398
399 * c-common.c (check_cxx_fundamental_alignment_constraints): Fix
400 bit/byte confusion, allow large alignment for types.
401
54dcdb88
BE
4022016-09-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
403
404 PR c++/77496
405 * c-common.c (warn_for_omitted_condop): Also warn for boolean data.
406
d1463eb9
DM
4072016-09-12 David Malcolm <dmalcolm@redhat.com>
408
409 PR c/72858
410 * c-format.c (argument_parser::check_argument_type): Add params
411 "type_start" and "conversion_char". Use the former to generate
412 offset_to_type_start and pass it and conversion_char to
413 check_format_types.
414 (check_format_info_main): Capture the start of the type
415 information as "type_start", and pass it an format_char
416 to arg_parser.check_argument_type.
417 (check_format_types): Provide an example in the leading comment.
418 Add params "offset_to_type_start" and "conversion_char"; pass
419 them to format_type_warning calls.
420 (test_get_modifier_for_format_len): Likewise.
421 (matching_type_p): New function.
422 (get_format_for_type): Add param "conversion_char" and move
423 implementation into...
424 (get_format_for_type_1): ...new function, called twice.
425 Use new function matching_type_p rather than checking for
426 TYPE_CANONICAL equality.
427 (get_corrected_substring): New function.
428 (format_type_warning): Provide an example in the leading comment.
429 Add params "offset_to_type_start" and "conversion_char". Replace
430 call to get_format_for_type with call to get_corrected_substring
431 and move rejection of hints for widths/precisions there.
432 (assert_format_for_type_streq): Add param "conversion_char".
433 (ASSERT_FORMAT_FOR_TYPE_STREQ): Add param CONVERSION_CHAR.
434 (test_get_format_for_type_printf): Add conversion chars to the
435 tests, adding coverage for various combinations of integer
436 vs double conversions, and for preserving octal and hexadecimal
437 conversions.
438 (test_get_format_for_type_scanf): Add conversion chars to the
439 tests.
440
5b28efbb
TV
4412016-09-10 Tom de Vries <tom@codesourcery.com>
442
443 PR C/71602
444 * c-common.c (build_va_arg): Handle more strict
445 targetm.canonical_va_list_type. Replace first argument type error with
446 assert.
447
3f0177e7
MS
4482016-09-09 Martin Sebor <msebor@redhat.com>
449
450 PR c/77520
451 PR c/77521
452 * c-format.c (argument_parser::find_format_char_info): Use %qc
453 format directive unconditionally.
454
af63ba4b
JM
4552016-09-09 Jason Merrill <jason@redhat.com>
456
457 Implement C++17 new of over-aligned types.
458 * c.opt: Add -faligned-new and -Waligned-new.
459 * c-common.c (max_align_t_align): Split out from...
460 (cxx_fundamental_alignment_p): ...here.
461 * c-common.h: Declare it.
462 * c-cppbuiltin.c (c_cpp_builtins): Handle aligned new.
463
c65248cb
JM
4642016-09-09 Joseph Myers <joseph@codesourcery.com>
465
466 * c-cppbuiltin.c (builtin_define_type_width): New function.
467 (builtin_define_stdint_macros, c_cpp_builtins): Define type width
468 macros.
469
e5106e27
DM
4702016-09-07 David Malcolm <dmalcolm@redhat.com>
471
472 * c-common.c (get_cpp_ttype_from_string_type): Handle being passed
473 a POINTER_TYPE.
474 (substring_loc::get_location): Move to substring-locations.c,
475 keeping implementation as...
476 (c_get_substring_location): New function, from the above, reworked
477 to use accessors rather than member lookup.
478 * c-common.h (class substring_loc): Move to substring-locations.h,
479 replacing with a forward decl.
480 (c_get_substring_location): New decl.
481 * c-format.c: Include "substring-locations.h".
482 (format_warning_va): Move to substring-locations.c.
483 (format_warning_at_substring): Likewise.
484
a42e7952
MS
4852016-09-06 Martin Sebor <msebor@redhat.com>
486
487 PR c/77336
488 * c-format.c (check_function_format): Avoid issuing warnings for
489 functions unless they call format functions with non-constant
490 format strings.
491
b772a565
RB
4922016-09-06 Richard Biener <rguenther@suse.de>
493
494 PR c/77450
495 * c-common.c (c_common_mark_addressable_vec): Handle
496 COMPOUND_LITERAL_EXPR.
497
25ff5dd3
MP
4982016-09-05 Marek Polacek <polacek@redhat.com>
499
500 PR c/77423
501 * c-common.c (bool_promoted_to_int_p): New function.
502 (expr_has_boolean_operands_p): New function.
503 (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p.
504 (maybe_warn_bool_compare): Use bool_promoted_to_int_p.
505
21234eb5
TV
5062016-09-04 Tom de Vries <tom@codesourcery.com>
507
508 revert:
509 2016-08-29 Tom de Vries <tom@codesourcery.com>
510
511 * c-common.c (build_va_arg): Replace first argument type error
512 with assert.
513
9dc5773f
JJ
5142016-09-02 Jakub Jelinek <jakub@redhat.com>
515
516 PR c/65467
517 * c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions.
518 (c_finish_omp_for): Reject _Atomic qualified iterators.
519
5202016-09-01 Martin Sebor <msebor@redhat.com>
3d7b83b6
MS
521
522 * c-ada-spec.c (dump_ada_function_declaration): Increase buffer
523 size to guarantee it fits the output of the formatted function
524 regardless of its arguments.
525
295844f6
MP
5262016-09-01 Marek Polacek <polacek@redhat.com>
527
528 PR c/7652
529 * c-common.c (resolve_overloaded_builtin): Fix formatting. Add
530 FALLTHRU comments.
531
3d06b6f2
MP
5322016-08-29 Marek Polacek <polacek@redhat.com>
533
534 PR c/77292
535 * c-common.c (warn_logical_not_parentheses): Don't warn for
536 a comparison or a logical operator.
537
34cedad5
TV
5382016-08-29 Tom de Vries <tom@codesourcery.com>
539
540 * c-common.c (build_va_arg): Fix type comparison assert.
541
f162d717
TV
5422016-08-29 Tom de Vries <tom@codesourcery.com>
543
544 * c-common.c (build_va_arg): Replace first argument type error
545 with assert.
546
ba9bbd6f
TV
5472016-08-29 Tom de Vries <tom@codesourcery.com>
548
549 PR c/77398
550 * c-common.c (build_va_arg): Add first argument error. Build va_arg
551 with error_mark_node as va_list instead of with illegal va_list.
552
ebef225f
MP
5532016-08-25 Marek Polacek <polacek@redhat.com>
554 David Malcolm <dmalcolm@redhat.com>
555
556 * c-common.c (warn_logical_not_parentheses): Print fixit hints.
557 * c-common.h (warn_logical_not_parentheses): Update declaration.
558
b00e6e75
MP
5592016-08-22 Marek Polacek <polacek@redhat.com>
560
561 PR c++/77321
562 * c-common.c (warn_for_memset): Check type for null.
563
6dc198e3
JM
5642016-08-22 Joseph Myers <joseph@codesourcery.com>
565
566 * c-family/c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and
567 _FloatNx types for suffixes for built-in functions.
568
c65699ef
JM
5692016-08-19 Joseph Myers <joseph@codesourcery.com>
570
571 PR c/32187
572 * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32)
573 (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X)
574 (RID_FLOAT128X): New enum rid values.
575 (CASE_RID_FLOATN_NX): New macro.
576 * c-common.c (c_common_reswords): Add _FloatN and _FloatNx
577 keywords.
578 (c_common_type_for_mode): Check for _FloatN and _FloatNx and
579 corresponding complex types.
580 (c_common_nodes_and_builtins): For non-C++, register _FloatN and
581 _FloatNx and corresponding complex types.
582 (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX.
583 * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN
584 and _FloatNx types for the widest type for determining
585 DECIMAL_DIG. Define __LDBL_DECIMAL_DIG__ as well as
586 __DECIMAL_DIG__ for long double. Handle FMA_SUFFIX being NULL.
587 (c_cpp_builtins): Call builtin_define_float_constants for _FloatN
588 and _FloatNx types.
589 * c-lex.c (interpret_float): Handle _FloatN and _FloatNx
590 constants.
591 * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and
592 _FloatNx types.
593
cc015f3a
DM
5942016-08-18 David Malcolm <dmalcolm@redhat.com>
595
596 * c-opts.c (c_diagnostic_finalizer): Update for change to
597 diagnostic_show_locus.
598
cb18fd07
DM
5992016-08-18 David Malcolm <dmalcolm@redhat.com>
600
601 * c-common.c: Include "spellcheck.h".
602 (cb_get_suggestion): New function.
603 * c-common.h (cb_get_suggestion): New decl.
604 * c-lex.c (init_c_lex): Initialize cb->get_suggestion to
605 cb_get_suggestion.
606
a76989dc
MP
6072016-08-18 Marek Polacek <polacek@redhat.com>
608
609 PR c/71514
610 * c-common.c (get_atomic_generic_size): Disallow pointer-to-function
611 and pointer-to-VLA.
612
65e736c0
DM
6132016-08-16 David Malcolm <dmalcolm@redhat.com>
614
615 PR c/72857
616 * c-common.c (substring_loc::get_range): Rename to...
617 (substring_loc::get_location): ...this, converting param from a
618 source_range * to a location_t *. Call
619 get_source_location_for_substring rather than
620 get_source_range_for_substring, and pass in m_caret_idx.
621 * c-common.h (substring_loc::substring_loc): Add param "caret_idx".
622 (substring_loc::get_range): Replace with...
623 (substring_loc::get_location): ...this.
624 (substring_loc::set_caret_index): New method.
625 (substring_loc): Add field m_caret_idx.
626 * c-format.c (format_warning_va): Update for above changes.
627 Rename local "substring_loc" to "fmt_substring_loc" to avoid
628 clashing with type name.
629 (format_warning_at_char): Add caret_idx param to substring_loc ctor.
630 (check_argument_type): Likewise.
631 (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc"
632 Use a copy when emitting warnings, setting the caret index from TYPE.
633
7e1dde14 6342016-08-16 Eric Botcazou <ebotcazou@adacore.com>
8e745a17 635 Arnaud Charlet <charlet@adacore.com>
7e1dde14
EB
636
637 * c-ada-spec.c (dump_number): New function.
638 (handle_escape_character): Likewise.
639 (print_ada_macros): Add handling of constant integers and strings.
640
191816a3
MP
6412016-08-12 Marek Polacek <polacek@redhat.com>
642
643 PR c/7652
644 * c-common.c (scalar_to_vector): Adjust fall through comment.
645 * c-opts.c (c_common_handle_option): Likewise.
646 * c-pragma.c (handle_pragma_pack): Add FALLTHRU.
647 * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust
648 fall through comment.
649 * cilk.c (extract_free_variables): Add FALLTHRU.
650
452df4a4
JM
6512016-08-10 Jason Merrill <jason@redhat.com>
652
653 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr.
654
f3365c12
JM
6552016-08-09 Jason Merrill <jason@redhat.com>
656
657 * c-common.c (c_common_attribute_table): vector_size affects type
658 identity.
659
f0bc3323
MP
6602016-08-09 Marek Polacek <polacek@redhat.com>
661
662 PR c/7652
663 * c-ada-spec.c (dump_generic_ada_node): Add return.
664
98e5a19a
JM
6652016-08-09 Jason Merrill <jason@redhat.com>
666
667 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for
668 C++17 constexpr lambdas.
669
895aa8e1
DM
6702016-08-08 David Malcolm <dmalcolm@redhat.com>
671
672 PR c/64955
673 * c-common.h (selftest::c_format_c_tests): New declaration.
674 (selftest::run_c_tests): New declaration.
675 * c-format.c: Include "selftest.h.
676 (format_warning_va): Add param "corrected_substring" and use
677 it to add a replacement fix-it hint.
678 (format_warning_at_substring): Likewise.
679 (format_warning_at_char): Update for new param of
680 format_warning_va.
681 (argument_parser::check_argument_type): Pass "fki" to
682 check_format_types.
683 (check_format_types): Add param "fki" and pass it to
684 format_type_warning.
685 (deref_n_times): New function.
686 (get_modifier_for_format_len): New function.
687 (selftest::test_get_modifier_for_format_len): New function.
688 (get_format_for_type): New function.
689 (format_type_warning): Add param "fki" and use it to attempt
690 to provide hints for argument types when calling
691 format_warning_at_substring.
692 (selftest::get_info): New function.
693 (selftest::assert_format_for_type_streq): New function.
694 (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro.
695 (selftest::test_get_format_for_type_printf): New function.
696 (selftest::test_get_format_for_type_scanf): New function.
697 (selftest::c_format_c_tests): New function.
698
e52ed3fe
DM
6992016-08-08 David Malcolm <dmalcolm@redhat.com>
700
701 PR c/52952
702 * c-format.c: Include "diagnostic.h".
703 (location_column_from_byte_offset): Delete.
704 (location_from_offset): Delete.
705 (format_warning_va): New function.
706 (format_warning_at_substring): New function.
707 (format_warning_at_char): New function.
708 (check_format_arg): Capture location of format_tree and pass to
709 check_format_info_main.
710 (argument_parser): Add fields "start_of_this_format" and
711 "format_string_cst".
712 (flag_chars_t::validate): Add param "format_string_cst". Convert
713 warning_at call using location_from_offset to call to
714 format_warning_at_char.
715 (argument_parser::argument_parser): Add param "format_string_cst_"
716 and use use it to initialize field "format_string_cst".
717 Initialize new field "start_of_this_format".
718 (argument_parser::read_format_flags): Convert warning_at call
719 using location_from_offset to a call to format_warning_at_char.
720 (argument_parser::read_any_format_left_precision): Likewise.
721 (argument_parser::read_any_format_precision): Likewise.
722 (argument_parser::read_any_other_modifier): Likewise.
723 (argument_parser::find_format_char_info): Likewise, in three places.
724 (argument_parser::parse_any_scan_set): Likewise, in one place.
725 (argument_parser::handle_conversions): Likewise, in two places.
726 (argument_parser::check_argument_type): Add param "fmt_param_loc"
727 and use it to make a substring_loc. Pass the latter to
728 check_format_types.
729 (check_format_info_main): Add params "fmt_param_loc" and
730 "format_string_cst". Convert warning_at calls using
731 location_from_offset to calls to format_warning_at_char. Pass the
732 new params to the arg_parser ctor. Pass "format_string_cst" to
733 flag_chars.validate. Pass "fmt_param_loc" to
734 arg_parser.check_argument_type.
735 (check_format_types): Convert first param from a location_t
736 to a const substring_loc & and rename to "fmt_loc". Attempt
737 to extract the range of the relevant parameter and pass it
738 to format_type_warning.
739 (format_type_warning): Convert first param from a location_t
740 to a const substring_loc & and rename to "fmt_loc". Add
741 params "param_range" and "type". Replace calls to warning_at
742 with calls to format_warning_at_substring.
743
1c4d457e
DM
7442016-08-08 David Malcolm <dmalcolm@redhat.com>
745
746 * c-format.c (class flag_chars_t): New class.
747 (struct length_modifier): New struct.
748 (class argument_parser): New class.
749 (flag_chars_t::flag_chars_t): New ctor.
750 (flag_chars_t::has_char_p): New method.
751 (flag_chars_t::add_char): New method.
752 (flag_chars_t::validate): New method.
753 (flag_chars_t::get_alloc_flag): New method.
754 (flag_chars_t::assignment_suppression_p): New method.
755 (argument_parser::argument_parser): New ctor.
756 (argument_parser::read_any_dollar): New method.
757 (argument_parser::read_format_flags): New method.
758 (argument_parser::read_any_format_width): New method.
759 (argument_parser::read_any_format_left_precision): New method.
760 (argument_parser::read_any_format_precision): New method.
761 (argument_parser::handle_alloc_chars): New method.
762 (argument_parser::read_any_length_modifier): New method.
763 (argument_parser::read_any_other_modifier): New method.
764 (argument_parser::find_format_char_info): New method.
765 (argument_parser::validate_flag_pairs): New method.
766 (argument_parser::give_y2k_warnings): New method.
767 (argument_parser::parse_any_scan_set): New method.
768 (argument_parser::handle_conversions): New method.
769 (argument_parser::check_argument_type): New method.
770 (check_format_info_main): Introduce classes argument_parser
771 and flag_chars_t, moving the code within the loop into methods
772 of these classes. Make various locals "const".
773
88fa5555
DM
7742016-08-05 David Malcolm <dmalcolm@redhat.com>
775
776 * c-common.c: Include "substring-locations.h".
777 (get_cpp_ttype_from_string_type): New function.
778 (g_string_concat_db): New global.
779 (substring_loc::get_range): New method.
780 * c-common.h (g_string_concat_db): New declaration.
781 (class substring_loc): New class.
782 * c-lex.c (lex_string): When concatenating strings, capture the
783 locations of all tokens using a new obstack, and record the
784 concatenation locations within g_string_concat_db.
785 * c-opts.c (c_common_init_options): Construct g_string_concat_db
786 on the ggc-heap.
787
78169471
MP
7882016-07-29 Marek Polacek <polacek@redhat.com>
789
638fc14f
MP
790 PR c/71926
791 * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the
792 parentheses warning.
793
78169471
MP
794 PR c/71574
795 * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL.
796
1225d6b1
ML
7972016-07-28 Martin Liska <mliska@suse.cz>
798
799 PR gcov-profile/68025
800 * c-common.c (handle_no_profile_instrument_function_attribute):
801
ec1e2a40
BE
8022016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
803
804 * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of
805 BITS_PER_UNIT_LOG.
806
5ec2cd9f
JM
8072016-07-25 Jason Merrill <jason@redhat.com>
808
809 PR c++/65970
810 * c.opt (fconstexpr-loop-limit): New.
811
9dc5773f 8122016-07-22 Martin Sebor <msebor@redhat.com>
2e6b45af
MS
813
814 PR c++/71675
815 * c-common.c (resolve_overloaded_builtin): Avoid converting
816 __atomic_compare_exchange_n return type to that of what its
817 first argument points to.
818
e3fe09c1
UB
8192016-07-22 Uros Bizjak <ubizjak@gmail.com>
820
821 * c-common.c: Use HOST_WIDE_INT_M1U instead of
822 ~(unsigned HOST_WIDE_INT) 0.
823
bc91c436
ML
8242016-07-22 Martin Liska <mliska@suse.cz>
825
826 PR gcov-profile/69028
827 PR gcov-profile/62047
828 * cilk.c (create_cilk_helper_decl): Set location of a new decl
829 to the current_function_decl.
830
451dcc66
JM
8312016-07-21 Jason Merrill <jason@redhat.com>
832
833 PR c++/65168
834 * c-common.c (c_common_truthvalue_conversion): Check
835 c_inhibit_evaluation_warnings for warning about address of
836 reference.
837
de6a69ee
DM
8382016-07-20 David Malcolm <dmalcolm@redhat.com>
839
840 * c-common.h (lookup_name_fuzzy): Convert return type from tree to
841 const char *.
842
d022c55a
JM
8432016-07-15 Jason Merrill <jason@redhat.com>
844
845 * c-opts.c (c_common_post_options): Update -fabi-version default to 11.
846
ddbbcb19
JJ
8472016-07-15 Jakub Jelinek <jakub@redhat.com>
848
849 PR c/71858
850 * c-common.h (enum lookup_name_fuzzy_kind): Add
851 FUZZY_LOOKUP_FUNCTION_NAME.
852
d0cf395a
JM
8532016-07-08 Jason Merrill <jason@redhat.com>
854
855 P0145: Refining Expression Order for C++.
856 * c.opts (-fargs-in-order): Rename to -fstrong-eval-order.
857 * c-opts.c: Adjust.
858
98d44e93
MT
8592016-07-05 Markus Trippelsdorf <markus@trippelsdorf.de>
860
861 PR c++/71214
862 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.
863
f9d8d994
TS
8642016-06-29 Thomas Schwinge <thomas@codesourcery.com>
865
866 * c-pragma.h (enum pragma_kind): Rename
867 PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE. Adjust all
868 users.
869
4aa83879
RB
8702016-06-29 Richard Biener <rguenther@suse.de>
871
872 PR middle-end/71002
873 * c-common.c (c_common_get_alias_set): Remove union type punning case.
874
a25bd9e6
JM
8752016-06-24 Jason Merrill <jason@redhat.com>
876
877 P0145R2: Refining Expression Order for C++.
878 * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of
879 MODIFY_EXPR.
880
a86451b9
JJ
8812016-06-24 Jakub Jelinek <jakub@redhat.com>
882
883 * c-common.c (check_builtin_function_arguments): Require last
884 argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type.
885 Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW
886 if the last argument is pointer to enumerated or boolean type.
887
1a4f11c8
DM
8882016-06-22 David Malcolm <dmalcolm@redhat.com>
889
890 PR c/70339
891 * c-common.h (enum lookup_name_fuzzy_kind): New enum.
892 (lookup_name_fuzzy): New prototype.
893
fe55692c
JDA
8942016-06-21 John David Anglin <danglin@gcc.gnu.org>
895
896 * c-common.c (get_source_date_epoch): Use int64_t instead of long long.
897
4eb24e01
JM
8982016-06-14 Jason Merrill <jason@redhat.com>
899
900 P0145R2: Refining Expression Order for C++.
901 * c.opt (fargs-in-order): New.
902 * c-opts.c (c_common_post_options): Adjust flag_args_in_order.
903
ef7cf206
JJ
9042016-06-13 Jakub Jelinek <jakub@redhat.com>
905
0dda258b
JJ
906 PR sanitizer/71498
907 * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
908 all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.
909
ef7cf206
JJ
910 PR preprocessor/71183
911 * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch
912 to cb_get_source_date_epoch.
913
50b15873
JJ
9142016-06-10 Jakub Jelinek <jakub@redhat.com>
915
916 PR c/68657
917 * c.opt (Wpsabi): Add Warning flag.
918
4d926e34
MS
9192016-06-10 Martin Sebor <msebor@redhat.com>
920
921 PR c/71392
922 * gcc/c-family/c-common.c (handle_nonnull_attribute): Accept
923 the nonnull attribute in type-generic builtins.
924
e01b4e16
MS
9252016-06-09 Martin Sebor <msebor@redhat.com>
926
927 PR c/70883
928 * c-common.c (builtin_function_validate_nargs): Make text of error
929 message consistent with others like it.
930
44a845ca
MS
9312016-06-08 Martin Sebor <msebor@redhat.com>
932 Jakub Jelinek <jakub@redhat.com>
933
934 PR c++/70507
935 PR c/68120
936 * c-common.c (check_builtin_function_arguments): Handle
937 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
938
a80a7051
RB
9392016-06-08 Richard Biener <rguenther@suse.de>
940
941 * c-common.c (parse_optimize_options): Improve diagnostic messages.
942
bfd67b47
RB
9432016-06-07 Richard Biener <rguenther@suse.de>
944
945 PR c/61564
946 * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION
947 options and warn about others.
948
15c98b2e
ES
9492016-06-01 Eduard Sanou <dhole@openmailbox.org>
950
951 * c-common.c (get_source_date_epoch): Rename to
952 cb_get_source_date_epoch.
953 * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
954 message when the parsing fails. Use error_at instead of fatal_error.
955 * c-common.h (get_source_date_epoch): Rename to
956 cb_get_source_date_epoch.
957 * c-common.h (cb_get_source_date_epoch): Prototype.
958 * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
959 * c-common.h (c_omp_region_type): Remove trailing comma.
960 * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
961 * c-lex.c (c_lex_with_flags): Remove initialization of
962 pfile->source_date_epoch.
963
00631022
JJ
9642016-05-30 Jakub Jelinek <jakub@redhat.com>
965
966 PR c++/71349
967 * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
968 C_OMP_CLAUSE_SPLIT_TARGET. Put OMP_CLAUSE_NOWAIT to
969 C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
970 instead of C_OMP_CLAUSE_SPLIT_FOR.
971
f17a223d
RB
9722016-05-24 Richard Biener <rguenther@suse.de>
973
974 PR middle-end/70434
975 PR c/69504
976 * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
977 (convert_vector_to_array_for_subscript): ... this.
978 * c-common.c (convert_vector_to_pointer_for_subscript): Use a
979 VIEW_CONVERT_EXPR to an array type. Rename to ...
980 (convert_vector_to_array_for_subscript): ... this.
981
4f2e1536
MP
9822016-05-12 Marek Polacek <polacek@redhat.com>
983
984 PR c/70756
985 * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
986 size_in_bytes and pass LOC to it.
987
d6e83a8d
MM
9882016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
989
990 PR c/43651
991 * c.opt (Wduplicate-decl-specifier): New option.
992
5c3a10fb
MP
9932016-05-11 Marek Polacek <polacek@redhat.com>
994
995 PR c++/71024
996 * c-common.c (diagnose_mismatched_attributes): New function.
997 * c-common.h (diagnose_mismatched_attributes): Declare.
998
deef7113
MP
9992016-05-04 Marek Polacek <polacek@redhat.com>
1000
1001 * c.opt (Wdangling-else): New option.
1002
79ce98bc
MP
10032016-05-03 Marek Polacek <polacek@redhat.com>
1004
1005 PR c/70859
1006 * c-common.c (builtin_function_validate_nargs): Add location
1007 parameter. Use it.
1008 (check_builtin_function_arguments): Add location and arguments
1009 parameters. Use them.
1010 * c-common.h (check_builtin_function_arguments): Update declaration.
1011
381cdae4
RB
10122016-05-03 Richard Biener <rguenther@suse.de>
1013
1014 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
1015 allow call args to gimplify to SSA names.
1016
1d793c34
MP
10172016-05-03 Marek Polacek <polacek@redhat.com>
1018
1019 * c-common.h (enum c_omp_region_type): Remove stray comma.
1020
77886428
CP
10212016-05-02 Cesar Philippidis <cesar@codesourcery.com>
1022
1023 * c-common.h (enum c_omp_region_type): Define.
1024
697e0b28
RS
10252016-05-02 Richard Sandiford <richard.sandiford@arm.com>
1026
1027 * c-common.c (shorten_compare): Use wi::to_wide.
1028
e7ff0319
CP
10292016-04-29 Cesar Philippidis <cesar@codesourcery.com>
1030
1031 PR middle-end/70626
1032 * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
1033 * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
1034 reduction clauses in acc parallel loops.
1035
2fff3db8
MP
10362016-04-29 Marek Polacek <polacek@redhat.com>
1037
1038 PR c/70852
1039 * c-common.c (warn_for_memset): Check domain before accessing it.
1040
509063eb
DV
10412016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
1042
1043 PR/69089
1044 * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
1045 "aligned" attribute.
1046
b632761d
JM
10472016-04-28 Jason Merrill <jason@redhat.com>
1048
1049 * c-lex.c (c_common_has_attribute): Handle nodiscard.
1050
174f6622
ES
10512016-04-28 Eduard Sanou <dhole@openmailbox.org>
1052 Matthias Klose <doko@debian.org>
1053
1054 * c-common.c (get_source_date_epoch): New function, gets the environment
1055 variable SOURCE_DATE_EPOCH and parses it as long long with error
1056 handling.
1057 * c-common.h (get_source_date_epoch): Prototype.
1058 * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
1059
6bc2bb18
RB
10602015-04-27 Ryan Burn <contact@rnburn.com>
1061
1062 PR c++/69024
1063 PR c++/68997
1064 * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
1065 (cilk_recognize_spawn): Renamed from recognize_spawn and change to
1066 external linkage.
1067 (cilk_detect_and_unwrap): Corresponding changes.
1068 (extract_free_variables): Don't extract free variables from
1069 AGGR_INIT_EXPR slot.
1070 * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
1071 (cilk_recognize_spawn): Likewise.
1072
c1e1f433
BS
10732016-04-27 Bernd Schmidt <bschmidt@redhat.com>
1074
1075 * c.opt (Wmemset-elt-size): New option.
1076 * c-common.c (warn_for_memset): New function.
1077 * c-common.h (warn_for_memset): Declare.
1078
d067e05f
JM
10792016-04-25 Jason Merrill <jason@redhat.com>
1080
1081 * c-common.c (handle_unused_attribute): Accept CONST_DECL.
1082 No longer static.
1083 * c-common.h: Declare it.
1084 * c-lex.c (c_common_has_attribute): Add maybe_unused.
1085
9aa36ae5
JM
10862016-04-22 Jason Merrill <jason@redhat.com>
1087
1088 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
1089
477d4906
IV
10902016-04-20 Ilya Verbin <ilya.verbin@intel.com>
1091
1092 PR c++/69363
1093 * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
1094 * c-common.h (c_finish_cilk_clauses): Remove declaration.
1095
fe37c7af
MM
10962016-04-18 Michael Matz <matz@suse.de>
1097
1098 * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
1099 and SET_DECL_ALIGN.
1100
23f2660f
EB
11012016-04-17 Eric Botcazou <ebotcazou@adacore.com>
1102
1103 * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
1104 (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
1105 to incomplete types.
1106 (dump_nested_type): Remove redundant tests and tidy up.
1107 (print_ada_declaration): Also set TREE_VISITED on the declaration of
1108 a type which is the typedef of an original type.
1109
1e77281b
MP
11102016-04-15 Marek Polacek <polacek@redhat.com>
1111
1112 PR c/70651
1113 * c-common.c (build_va_arg): Change two asserts into errors and return
1114 error_mark_node.
1115
b3a77f21
MP
11162016-04-13 Marek Polacek <polacek@redhat.com>
1117
1118 PR c++/70639
1119 * c-indentation.c (should_warn_for_misleading_indentation): Bail out
1120 for switch statements, too.
1121
322b8466
JM
11222016-03-28 Jason Merrill <jason@redhat.com>
1123
1124 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
1125
fbdb6baf
MP
11262016-03-23 Marek Polacek <polacek@redhat.com>
1127
1128 PR c++/69884
1129 * c.opt (Wignored-attributes): New option.
1130
5c240f4d
DM
11312016-03-22 David Malcolm <dmalcolm@redhat.com>
1132
1133 PR c/69993
1134 * c-indentation.c (warn_for_misleading_indentation): Rewrite the
1135 diagnostic text, reversing the order of the warning and note so
1136 that they appear in source order.
1137
14ba7b28
MP
11382016-03-17 Marek Polacek <polacek@redhat.com>
1139
1140 PR c/69407
1141 * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
1142 operations.
1143
08a1cadc
JM
11442016-03-14 Jason Merrill <jason@redhat.com>
1145
2aaeea19
JM
1146 * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
1147
08a1cadc
JM
1148 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
1149
c06d25bb
RB
11502016-03-09 Richard Biener <rguenther@suse.de>
1151
1152 PR c/70143
1153 * c-common.c (strict_aliasing_warning): Add back
1154 alias_sets_conflict_p check.
1155
80aac5c8
JM
11562016-03-08 Jason Merrill <jason@redhat.com>
1157
1158 * c-opts.c (set_std_cxx1z): Don't enable concepts.
1159
64b23c13
DM
11602016-03-04 David Malcolm <dmalcolm@redhat.com>
1161
1162 PR c/68187
1163 * c-indentation.c (get_visual_column): Move code to determine next
1164 tab stop to...
1165 (next_tab_stop): ...this new function.
1166 (line_contains_hash_if): Delete function.
1167 (detect_preprocessor_logic): Delete function.
1168 (get_first_nws_vis_column): New function.
1169 (detect_intervening_unindent): New function.
1170 (should_warn_for_misleading_indentation): Replace call to
1171 detect_preprocessor_logic with a call to
1172 detect_intervening_unindent.
1173
729526f5
DM
11742016-03-04 David Malcolm <dmalcolm@redhat.com>
1175
1176 PR c/68187
1177 * c-indentation.c (should_warn_for_misleading_indentation): When
1178 suppressing warnings about cases where the guard and body are on
1179 the same column, only use the first non-whitespace column in place
1180 of the guard token column when dealing with "else" clauses.
1181 When rejecting aligned BODY and NEXT, loosen the requirement
1182 from equality with the first non-whitespace of guard to simply
1183 that they not be indented relative to it.
1184
e9a35493
RB
11852016-03-04 Richard Biener <rguenther@suse.de>
1186
1187 PR c++/70054
1188 * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
1189 instead of alias_sets_conflict_p.
1190
1be56bc5
MP
11912016-03-01 Marek Polacek <polacek@redhat.com>
1192
1193 PR c++/69795
1194 * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
1195 any DECL.
1196
35886f0b
MS
11972016-02-22 Martin Sebor <msebor@redhat.com>
1198
1199 PR middle-end/69780
1200 * c-common.c (check_builtin_function_arguments): Validate and
1201 reject invalid arguments to __builtin_alloca_with_align.
1202
4246c8da
MW
12032016-02-20 Mark Wielaard <mjw@redhat.com>
1204
1205 PR c/28901
1206 * c.opt (Wunused-const-variable): Turn into Alias for...
1207 (Wunused-const-variable=): New option.
1208
268be88c
BE
12092016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
1210
1211 PR c++/69865
1212 * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
1213 here...
1214 (c_common_init_options): ...to here.
1215 (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
1216
871b3f47
JJ
12172016-02-19 Jakub Jelinek <jakub@redhat.com>
1218
1219 PR c++/69826
1220 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
1221 (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
1222 flag_preprocess_only.
1223
bf14eba2
JJ
12242016-02-16 Jakub Jelinek <jakub@redhat.com>
1225
1226 PR c/69835
1227 * c.opt (Wnonnull-compare): Enable for -Wall.
1228
ba6b3795
JJ
12292016-02-15 Jakub Jelinek <jakub@redhat.com>
1230
1231 PR c++/69797
1232 * c-common.c (sync_resolve_size): Diagnose too few arguments
1233 even when params is non-NULL empty vector.
1234
a011cd92
BS
12352016-02-08 Bernd Schmidt <bschmidt@redhat.com>
1236
1237 PR target/60410
1238 * c.opt (fshort-double): Remove.
1239
46cb9332
MS
12402016-02-05 Martin Sebor <msebor@redhat.com>
1241
1242 PR c++/69662
1243 * c.opt (Warning options): Update -Wplacement-new to take
1244 an optional argument.
1245
e1b81f2b
JJ
12462016-02-01 Jakub Jelinek <jakub@redhat.com>
1247
1248 PR preprocessor/69543
1249 PR c/69558
1250 * c-pragma.c (handle_pragma_diagnostic): Pass input_location
1251 instead of loc to control_warning_option.
1252
b6adbb9f
NS
12532016-02-01 Nathan Sidwell <nathan@codesourcery.com>
1254
1255 * c.opt (fopenacc-dim=): New option.
1256
5d70666e
RB
12572016-01-27 Ryan Burn <contact@rnburn.com>
1258
1259 PR cilkplus/69267
1260 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
1261 gimplify_arg. Removed superfluous post_p argument.
1262 * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
1263 superfluous post_p argument.
1264 * c-gimplify.c (c_gimplify_expr): Likewise.
1265
01e1dea3
DM
12662016-01-26 David Malcolm <dmalcolm@redhat.com>
1267
1268 PR other/69006
1269 * c-opts.c (c_diagnostic_finalizer): Replace invocation of
1270 pp_newline_and_flush with pp_flush.
1271
9f04a53e
MS
12722016-01-20 Martin Sebor <msebor@redhat.com>
1273
1274 PR c/69405
1275 * c-common.c (sync_resolve_size): Avoid printing diagnostic about
1276 an incompatible argument when the argument isn't a valid tree node.
1277
7f26f7df
JM
12782016-01-18 Jason Merrill <jason@redhat.com>
1279
1280 PR c++/68767
1281 * c-common.c (check_function_arguments_recurse): Fold the whole
1282 COND_EXPR, not just the condition.
1283
f62bf092
TV
12842016-01-18 Tom de Vries <tom@codesourcery.com>
1285
1286 * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
1287 classify as loop clause.
1288
e0a575ff
JJ
12892016-01-15 Jakub Jelinek <jakub@redhat.com>
1290
1291 PR bootstrap/68271
1292 * c-pragma.c (c_register_pragma_1): Adjust comment to note that
1293 C++ FE no longer has limit on number of pragmas.
1294
12952015-01-14 Ryan Burn <contact@rnburn.com>
b6e3db06
RB
1296
1297 PR c++/69048
1298 * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
c47eaca6 1299 to add missing cleanup point.
b6e3db06 1300
c7df95d8
DM
13012016-01-14 David Malcolm <dmalcolm@redhat.com>
1302
1303 PR c++/68819
1304 * c-indentation.c (get_visual_column): Add location_t param.
1305 Handle the column number being zero by effectively disabling the
1306 warning, with an "inform".
1307 (should_warn_for_misleading_indentation): Add location_t argument
1308 for all uses of get_visual_column.
1309
21efdd80
PP
13102016-01-10 Patrick Palka <ppalka@gcc.gnu.org>
1311
1312 PR c++/69029
1313 * c-indentation.c (should_warn_for_misleading_indentation):
1314 Don't warn about do-while statements.
1315
7a127fa7
MS
13162016-01-07 Martin Sebor <msebor@redhat.com>
1317
1318 PR c/68966
1319 * c-common.c (sync_resolve_size): Reject first argument when it's
1320 a pointer to _Bool.
1321
c589e975
DM
13222016-01-05 David Malcolm <dmalcolm@redhat.com>
1323
1324 PR c/69122
1325 * c-indentation.c (get_visual_column): Remove default argument.
1326 (should_warn_for_misleading_indentation): For the multiline case,
1327 update call to get_visual_column for next_stmt_exploc so that it
1328 captures the location of the first non-whitespace character in the
1329 relevant line. Don't issue warnings if there is non-whitespace
1330 before the next statement.
1331
818ab71a
JJ
13322016-01-04 Jakub Jelinek <jakub@redhat.com>
1333
1334 Update copyright years.
1335
745e411d
DM
13362015-12-21 David Malcolm <dmalcolm@redhat.com>
1337
1338 * c-common.c (binary_op_error): Convert first param from
1339 location_t to rich_location * and use it when emitting an error.
1340 * c-common.h (binary_op_error): Convert first param from
1341 location_t to rich_location *.
1342
de67c4c3
DM
13432015-12-16 David Malcolm <dmalcolm@redhat.com>
1344
1345 * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
1346 * c-lex.c (conflict_marker_get_final_tok_kind): New function.
1347
4a38b02b
IV
13482015-12-15 Ilya Verbin <ilya.verbin@intel.com>
1349
1350 * c-common.c (c_common_attribute_table): Handle "omp declare target
1351 link" attribute.
1352
54d62f51
JJ
13532015-12-14 Jakub Jelinek <jakub@redhat.com>
1354
1355 PR c/68833
1356 * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
1357
8d4227c8
TB
13582014-12-12 Tobias Burnus <burnus@net-b.de>
1359
1360 PR fortran/68815
1361 * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
1362 specifiers (%d, %i,%u and %c).
1363
f6069ccc
DM
13642015-12-10 David Malcolm <dmalcolm@redhat.com>
1365
1366 * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
1367
63bbf46d
JJ
13682015-12-08 Jakub Jelinek <jakub@redhat.com>
1369
1370 PR c/48088
1371 PR c/68657
1372 * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
1373 * c-pragma.c (handle_pragma_diagnostic): Adjust
1374 control_warning_option caller.
1375
f79520bb
DM
13762015-12-07 David Malcolm <dmalcolm@redhat.com>
1377
1378 * c-common.c (c_cpp_error): Update for change to
1379 rich_location::set_range.
1380
b3d5bc62
JJ
13812015-12-04 Paolo Bonzini <bonzini@gnu.org>
1382
1383 * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
1384 shifting 1 out of the sign bit.
1385
13862015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
1387
1388 * c-common.c (c_common_attribute_table[]): Update max arguments
1389 count for "simd" attribute.
1390 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
1391
6eb4a537
JJ
13922015-12-03 Jakub Jelinek <jakub@redhat.com>
1393
1394 PR preprocessor/57580
1395 * c-ppoutput.c (print): Change printed field to bool.
1396 Move src_file last for smaller padding.
1397 (init_pp_output): Set print.printed to false instead of 0.
1398 (scan_translation_unit): Fix up formatting. Set print.printed
1399 to true after printing something other than newline.
1400 (scan_translation_unit_trad): Set print.printed to true instead of 1.
1401 (maybe_print_line_1): Set print.printed to false instead of 0.
1402 (print_line_1): Likewise.
1403 (do_line_change): Set print.printed to true instead of 1.
1404 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
1405 dump_macro): Set print.printed to false after printing newline.
1406
4250754e
JM
14072015-12-02 Jason Merrill <jason@redhat.com>
1408
f479b43d
JM
1409 * c-common.c (fold_for_warn): New.
1410 (warn_logical_operator, warn_tautological_cmp)
1411 (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
1412
4250754e
JM
1413 * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
1414 (c_fully_fold_internal, decl_constant_value_for_optimization):
1415 Move to c/c-fold.c.
1416 * c-common.h: Don't declare decl_constant_value_for_optimization.
1417
e9e32ee6
JM
14182015-12-02 Joseph Myers <joseph@codesourcery.com>
1419
1420 PR c/68162
1421 * c-common.h (c_build_qualified_type): Add extra default
1422 arguments.
1423
37d5ad46
JB
14242015-12-01 Julian Brown <julian@codesourcery.com>
1425 Cesar Philippidis <cesar@codesourcery.com>
1426 James Norris <James_Norris@mentor.com>
1427
1428 * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
1429 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
1430 (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
1431
f07862c7
EB
14322015-11-30 Eric Botcazou <ebotcazou@adacore.com>
1433
1434 * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
1435 (decl_sloc_common): Delete and move bulk of processing to...
1436 (decl_sloc): ...here.
1437 (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
1438 (dump_ada_double_name): Remove S parameter and compute the suffix.
1439 (dump_ada_array_type): Add PARENT parameter. Simplify computation of
1440 element type and deal with an anonymous one.
1441 (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
1442 (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type
1443 and remove reference to QUAL_UNION_TYPE.
1444 (dump_nested_types): Make 2 passes on the fields and move bulk to...
1445 (dump_nested_type): ...here. New function extracted from above.
1446 Generate a full declaration for anonymous element type of arrays.
1447 (print_ada_declaration): Really skip anonymous declarations. Remove
1448 references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type.
1449 Clean up processing of declarations of array types and objects.
1450 (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
1451 Remove obsolete code and tidy up.
1452
75c8aac3
JH
14532015-11-29 Jan Hubicka <hubicka@ucw.cz>
1454
1455 PR c/67581
1456 * c-common.c (handle_transparent_union_attribute): Update
1457 also type variants.
1458
b58d3df2
ML
14592015-11-27 Martin Liska <mliska@suse.cz>
1460
1461 PR c++/68312
1462 * array-notation-common.c (cilkplus_extract_an_triplets):
1463 Release vector of vectors.
1464 * cilk.c (gimplify_cilk_spawn): Free allocated memory.
1465
89a01fcf
EB
14662015-11-26 Eric Botcazou <ebotcazou@adacore.com>
1467
1468 PR c++/68527
1469 * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
1470 (print_ada_struct_decl): Likewise.
1471
cc5c5226
IZ
14722015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
1473
1474 PR c++/68001
1475 * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
1476 * cilk.c (recognize_spawn): Determine location in a more precise
1477 way.
1478
269adb9d
JM
14792015-11-19 Jason Merrill <jason@redhat.com>
1480
1481 * c-common.c (shorten_compare): But look through macros from
1482 system headers.
1483
d0eccfcd
JM
14842015-11-18 Jason Merrill <jason@redhat.com>
1485
1486 * c-common.c (shorten_compare): Don't -Wtype-limits if the
1487 non-constant operand comes from a macro.
1488
3e44547c
JM
14892015-11-17 Jason Merrill <jason@redhat.com>
1490
1491 PR bootstrap/68346
1492 * c-common.c (warn_tautological_cmp): Fold before checking for
1493 constants.
1494
0f62c7a0
MP
14952015-11-16 Marek Polacek <polacek@redhat.com>
1496
1497 PR c++/68362
1498 * c-common.c (check_case_bounds): Fold low and high cases.
1499
a868811e
MP
15002015-11-16 Marek Polacek <polacek@redhat.com>
1501
1502 * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
1503 * c-common.c (c_common_get_alias_set): Likewise.
1504 (handle_visibility_attribute): Likewise.
1505
fff77217
KY
15062015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
1507
1508 * c-common.c (handle_simd_attribute): New.
1509 (struct attribute_spec): Add entry for "simd".
1510 (handle_simd_attribute): New.
1511
269e63b7
KT
15122015-11-13 Kai Tietz <ktietz70@googlemail.com>
1513
1514 * c-lex.c (interpret_float): Use fold_convert.
1515
ebedc9a3
DM
15162015-11-13 David Malcolm <dmalcolm@redhat.com>
1517
1518 * c-common.c (c_fully_fold_internal): Capture existing souce_range,
1519 and store it on the result.
1520 * c-opts.c (c_common_init_options): Set
1521 global_dc->colorize_source_p.
1522
6e232ba4
JN
15232015-11-12 James Norris <jnorris@codesourcery.com>
1524 Joseph Myers <joseph@codesourcery.com>
1525
1526 * c-pragma.c (oacc_pragmas): Add entry for declare directive.
1527 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
1528 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
1529 PRAGMA_OACC_CLAUSE_LINK.
1530
e78bede6
MP
15312015-11-11 Marek Polacek <polacek@redhat.com>
1532
1533 PR c/68107
1534 PR c++/68266
1535 * c-common.c (valid_array_size_p): New function.
1536 * c-common.h (valid_array_size_p): Declare.
1537
3f8257db 15382015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
4ac93c7c
DH
1539
1540 PR bootstrap/68271
1541 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
1542
69f293c9
AM
15432015-11-11 Andrew MacLeod <amacleod@redhat.com>
1544
1545 * array-notation-common.c: Remove unused header files.
1546 * c-ada-spec.c: Likewise.
1547 * c-cilkplus.c: Likewise.
1548 * c-common.c: Likewise.
1549 * c-cppbuiltin.c: Likewise.
1550 * c-dump.c: Likewise.
1551 * c-format.c: Likewise.
1552 * c-gimplify.c: Likewise.
1553 * c-indentation.c: Likewise.
1554 * c-lex.c: Likewise.
1555 * c-omp.c: Likewise.
1556 * c-opts.c: Likewise.
1557 * c-pch.c: Likewise.
1558 * c-ppoutput.c: Likewise.
1559 * c-pragma.c: Likewise.
1560 * c-pretty-print.c: Likewise.
1561 * c-semantics.c: Likewise.
1562 * c-ubsan.c: Likewise.
1563 * cilk.c: Likewise.
1564 * stub-objc.c: Likewise.
1565
3a40d81d
NS
15662015-11-09 Thomas Schwinge <thomas@codesourcery.com>
1567 Cesar Philippidis <cesar@codesourcery.com>
1568 James Norris <jnorris@codesourcery.com>
1569 Julian Brown <julian@codesourcery.com>
1570 Nathan Sidwell <nathan@codesourcery.com>
1571
1572 * c-pragma.c (oacc_pragmas): Add "routine".
1573 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
1574
ee45a32d
EB
15752015-11-08 Eric Botcazou <ebotcazou@adacore.com>
1576
1577 * c-common.c (c_common_attributes): Add scalar_storage_order.
1578 (handle_scalar_storage_order_attribute): New function.
1579 * c-pragma.c (global_sso): New variable.
1580 (maybe_apply_pragma_scalar_storage_order): New function.
1581 (handle_pragma_scalar_storage_order): Likewise.
1582 (init_pragma): Register scalar_storage_order.
1583 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
1584 * c.opt (Wscalar-storage-order): New warning.
1585 (fsso-struct=): New option.
1586
eb11eb15
MS
15872015-11-08 Martin Sebor <msebor@redhat.com>
1588
1589 * c.opt (Wplacement-new): Add a period to the end of a sentence.
1590
0aad0198
RS
15912015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1592
1593 * c-common.c: Don't undef DEF_BUILTIN.
1594
8a645150
DM
15952015-11-06 David Malcolm <dmalcolm@redhat.com>
1596
1597 * c-common.c (c_cpp_error): Convert parameter from location_t to
1598 rich_location *. Eliminate the "column_override" parameter and
1599 the call to diagnostic_override_column.
1600 Update the "done_lexing" clause to set range 0
1601 on the rich_location, rather than overwriting a location_t.
1602 * c-common.h (c_cpp_error): Convert parameter from location_t to
1603 rich_location *. Eliminate the "column_override" parameter.
1604
7a5e4956
CP
16052015-11-05 Cesar Philippidis <cesar@codesourcery.com>
1606 Thomas Schwinge <thomas@codesourcery.com>
1607 James Norris <jnorris@codesourcery.com>
1608
1609 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
1610 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
1611 clauses with parallel and kernels and loops.
1612 * c-pragma.h (enum pragma_omp_clause): Add entries for
1613 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
1614 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
1615 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
1616 INDEPENDENT,SEQ}.
1617 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
1618
e2f5cc96
MS
16192015-11-05 Martin Sebor <msebor@redhat.com>
1620
1621 PR c++/67942
1622 * c.opt (-Wplacement-new): New option.
1623
e01d41e5
JJ
16242015-11-05 Jakub Jelinek <jakub@redhat.com>
1625
1626 * c-common.h (c_finish_omp_atomic): Add TEST argument.
1627 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
1628 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
1629 save_expr or create_tmp_var* if TEST is true.
1630 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
1631 Don't call add_stmt here.
1632 (struct c_omp_check_loop_iv_data): New type.
1633 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
1634 c_omp_check_loop_iv_exprs): New functions.
1635 (c_omp_split_clauses): Adjust for lastprivate being allowed on
1636 distribute.
1637 (c_omp_declare_simd_clauses_to_numbers): Change
1638 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
1639 (c_omp_declare_simd_clauses_to_decls): Similarly change those
1640 from numbers to PARM_DECLs.
1641
595278be
MM
16422015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
1643
1644 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
1645 flag_checking.
1646
3f8257db 16472015-11-03 Bernd Schmidt <bschmidt@redhat.com>
c85158de
MS
1648
1649 PR c++-common/67882
b3d5bc62
JJ
1650 * c-common.h (fold_offsetof_1): Add argument.
1651 * c-common.c (fold_offsetof_1): Diagnose more invalid
c85158de
MS
1652 offsetof expressions that reference elements past the end of
1653 an array.
1654
4bf9e5a8
TS
16552015-11-03 Thomas Schwinge <thomas@codesourcery.com>
1656 Chung-Lin Tang <cltang@codesourcery.com>
1657
1658 * c-pragma.c (oacc_pragmas): Add "atomic".
1659 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
1660
3b1661a9
ES
16612015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
1662
1663 * c-common.c (handle_target_clones_attribute): New.
1664 (c_common_attribute_table): Add handle_target_clones_attribute.
1665 (handle_always_inline_attribute): Add check on target_clones attribute.
1666 (handle_target_attribute): Ditto.
1667
2adfab87
AM
16682015-10-29 Andrew MacLeod <amacleod@redhat.com>
1669
1670 * array-notation-common.c: Reorder #include's and remove duplicates.
1671 * c-ada-spec.c: Likewise.
1672 * c-cilkplus.c: Likewise.
1673 * c-common.c: Likewise.
1674 * c-cppbuiltin.c: Likewise.
1675 * c-dump.c: Likewise.
1676 * c-format.c: Likewise.
1677 * c-gimplify.c: Likewise.
1678 * c-indentation.c: Likewise.
1679 * c-lex.c: Likewise.
1680 * c-omp.c: Likewise.
1681 * c-opts.c: Likewise.
1682 * c-pch.c: Likewise.
1683 * c-ppoutput.c: Likewise.
1684 * c-pragma.c: Likewise.
1685 * c-pretty-print.c: Likewise.
1686 * c-semantics.c: Likewise.
1687 * c-ubsan.c: Likewise.
1688 * cilk.c: Likewise.
1689 * stub-objc.c: Likewise.
1690
d90ec4f2
JM
16912015-10-28 Jason Merrill <jason@redhat.com>
1692
1693 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
1694
88bae6f4
TS
16952015-10-27 Thomas Schwinge <thomas@codesourcery.com>
1696 James Norris <jnorris@codesourcery.com>
1697 Cesar Philippidis <cesar@codesourcery.com>
1698
1699 PR c/64765
1700 PR c/64880
1701 * c-common.h (c_oacc_split_loop_clauses): Declare function.
1702 * c-omp.c (c_oacc_split_loop_clauses): New function.
1703
b1726d6c
MS
17042015-10-21 Martin Sebor <msebor@redhat.com>
1705
1706 PR driver/68043
1707 * c.opt: End each sentence that describes an option with a period.
1708
fa60eeb9
MP
17092015-10-20 Marek Polacek <polacek@redhat.com>
1710
1711 * array-notation-common.c (is_cilkplus_vector_p): Define.
1712 * c-common.h (is_cilkplus_vector_p): Declare.
1713
95979049
MP
17142015-10-20 Marek Polacek <polacek@redhat.com>
1715
1716 * c.opt (std=gnu++11): Do not describe as experimental.
1717 (std=gnu++14): Likewise.
1718
2a9fb712
JM
17192015-10-19 Jason Merrill <jason@redhat.com>
1720
1721 * c-cppbuiltin.c (c_cpp_builtins): Define
1722 __cpp_nontype_template_args.
1723
13b380a3
JM
17242015-10-19 Jason Merrill <jason@redhat.com>
1725
1726 * c-cppbuiltin.c (c_cpp_builtins): Define
1727 __cpp_enumerator_attributes, __cpp_fold_expressions,
1728 __cpp_unicode_characters.
1729
d9a6bd32
JJ
17302015-10-13 Jakub Jelinek <jakub@redhat.com>
1731 Aldy Hernandez <aldyh@redhat.com>
1732
1733 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
1734 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
1735 (c_define_builtins): Likewise.
1736 * c-common.h (enum c_omp_clause_split): Add
1737 C_OMP_CLAUSE_SPLIT_TASKLOOP.
1738 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
1739 (c_finish_omp_for): Add ORIG_DECLV argument.
1740 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
1741 201511 instead of 201307.
1742 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
1743 OMP_CRITICAL_CLAUSES to it.
1744 (c_finish_omp_ordered): Add CLAUSES argument, set
1745 OMP_ORDERED_CLAUSES to it.
1746 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
1747 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
1748 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
1749 constructs and new OpenMP 4.5 clauses. Clear
1750 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
1751 verification code.
1752 * c-pragma.c (omp_pragmas_simd): Add taskloop.
1753 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
1754 (enum pragma_omp_clause): Add
1755 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
1756 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
1757
624d31fe
RS
17582015-10-05 Richard Sandiford <richard.sandiford@arm.com>
1759
1760 * c-lex.c (interpret_float): Use real_equal instead of
1761 REAL_VALUES_EQUAL.
1762
b8fd7909
JM
17632015-10-04 Jason Merrill <jason@redhat.com>
1764
1765 Implement N4514, C++ Extensions for Transactional Memory.
1766 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
1767 (c_common_attribute_table): Add transaction_safe_dynamic.
1768 transaction_safe now affects type identity.
1769 (handle_tm_attribute): Handle transaction_safe_dynamic.
1770 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
1771 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
1772 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
1773 (D_TRANSMEM): New.
1774 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
1775 * c-pretty-print.c (pp_c_attributes_display): Don't print
1776 transaction_safe in C++.
1777
12651878
MP
17782015-10-02 Marek Polacek <polacek@redhat.com>
1779
1780 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
1781
3e3b8d63
MP
17822015-10-02 Marek Polacek <polacek@redhat.com>
1783
1784 PR c/64249
1785 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
1786 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
1787 * c.opt (Wduplicated-cond): New option.
1788
0d1a8f75
JM
17892015-10-01 Joseph Myers <joseph@codesourcery.com>
1790
1791 * c.opt (std=c11): Do not describe as experimental.
1792 (std=gnu11): Likewise.
1793 (std=iso9899:2011): Likewise.
1794
3e32ee19
NS
17952015-09-28 Nathan Sidwell <nathan@codesourcery.com>
1796
1797 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
1798 (DEF_FUNCTION_TYPE_VAR_11): Delete.
1799
974348ee
MP
18002015-09-25 Marek Polacek <polacek@redhat.com>
1801
1802 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
1803 (ubsan_instrument_shift): Likewise.
1804
15dbc1a6
MP
18052015-09-25 Marek Polacek <polacek@redhat.com>
1806
1807 PR sanitizer/64906
1808 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
1809
6b95d7cc
PP
18102015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
1811
1812 * c-indentation.c (should_warn_for_misleading_indentation):
1813 Compare next_stmt_vis_column with guard_line_first_nws instead
1814 of with guard_line_vis_column.
1815
c1822f9c
MLI
18162015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
1817
1818 PR c/49654
1819 PR c/49655
1820 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
1821 options and options not valid for the current language.
1822
d5398058
PP
18232015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
1824
1825 * c-indentation.c (should_warn_for_misleading_indentation):
1826 Float out and consolidate the calls to get_visual_column that
1827 are passed guard_exploc as an argument. Compare
1828 next_stmt_vis_column with guard_line_first_nws instead of with
1829 body_line_first_nws.
1830
6b333269
NS
18312015-09-22 Nathan Sidwell <nathan@codesourcery.com>
1832
1833 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
1834 Wnamespaces): New C++ warnings.
1835
a75f1574
JM
18362015-09-22 Jason Merrill <jason@redhat.com>
1837
1838 * c-common.h (abi_compat_version_crosses): New.
1839 (warn_abi_version): Declare.
1840 * c-common.c: Define it.
1841 * c-opts.c (c_common_post_options): Handle it.
1842 flag_abi_compat_version defaults to 8.
1843
bdaaa8b7
VV
18442015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
1845
1846 Complete the implementation of N4230, Nested namespace definition.
1847 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
1848 __cpp_nested_namespace_definitions.
1849
eaa797e8
MLI
18502015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
1851
1852 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
1853
c4914de6
MLI
18542015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
1855
1856 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
1857 when warning.
1858 * c-pragma.h (pragma_lex): Add optional loc argument.
1859
fcb87c50
MM
18602015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
1861
1862 * c-format.c (check_format_arg): Adjust to use common block size in all
1863 object pools.
1864
31bdd08a
DM
18652015-09-15 David Malcolm <dmalcolm@redhat.com>
1866
1867 * c-format.c (location_from_offset): Update for change in
1868 signature of location_get_source_line.
1869 * c-indentation.c (get_visual_column): Likewise.
1870 (line_contains_hash_if): Likewise.
1871
aa9f4b4c
MP
18722015-09-14 Marek Polacek <polacek@redhat.com>
1873
1874 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
1875 setting various warnings.
1876
aa256c4a
MP
18772015-09-14 Marek Polacek <polacek@redhat.com>
1878
1879 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
1880 a negative value.
1881
0f876f22
MW
18822015-09-11 Mark Wielaard <mjw@redhat.com>
1883
1884 PR c/28901
1885 * c.opt (Wunused-variable): Option from common.opt.
1886 (Wunused-const-variable): New option.
1887
273aa49e
PC
18882015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
1889
1890 PR c++/53184
1891 * c.opt ([Wsubobject-linkage]): Add.
1892
1807ffc1
MS
18932015-09-03 Martin Sebor <msebor@redhat.com>
1894
1895 PR c/66516
1896 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
1897 functions.
1898 * c-common.c (reject_gcc_builtin): Define.
1899
38942840
BI
19002015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
1901
1902 PR middle-end/60586
1903 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
1904 prototype.
1905 * c-gimplify.c (c_gimplify_expr): Added a call to the function
1906 cilk_gimplify_call_params_in_spawned_fn.
1907 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
1908 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
1909 unwrapping.
1910
c316b5e4
MP
19112015-08-25 Marek Polacek <polacek@redhat.com>
1912
1913 PR middle-end/67330
1914 * c-common.c (handle_weak_attribute): Don't check whether the
1915 visibility can be changed here.
1916
584a7c46
MLI
19172015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1918
1919 * c-lex.c (c_lex_with_flags): Use explicit locations.
1920
a79683d5
TS
19212015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
1922
1923 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
1924 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
1925
61717a45
FXC
19262015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1927
1928 PR middle-end/36757
1929 * c-common.c (check_builtin_function_arguments): Add check
1930 for BUILT_IN_SIGNBIT argument.
1931
329524f5
PC
19322015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
1933
1934 PR c++/67160
1935 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
1936 in c++1z mode.
1937
4ee55665
MP
19382015-08-17 Marek Polacek <polacek@redhat.com>
1939
1940 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
1941 with whitespaces before qualifier names.
1942
b893e375
MP
19432015-08-12 Marek Polacek <polacek@redhat.com>
1944
1945 PR c++/55095
1946 * c-common.c (maybe_warn_shift_overflow): Properly handle
1947 left-shifting 1 into the sign bit.
1948
c2d89095
MLI
19492015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1950
1951 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
1952
971e17ff
AS
19532015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
1954 Braden Obrzut <admin@maniacsvault.net>
1955 Jason Merrill <jason@redhat.com>
1956
1957 Add C++ Concepts TS support.
1958 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
1959 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
1960 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
1961 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
1962 * c-opts.c (set_std_cxx1z): Set flag_concepts.
1963 * c.opt (fconcepts): New.
1964
b3d5bc62
JJ
19652015-08-02 Martin Sebor <msebor@redhat.com>
1966
1967 * c.opt (-Wframe-address): New warning option.
1968
8ebca419
PP
19692015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1970
1971 * c-indentation.c (should_warn_for_misleading_indentation):
1972 Improve heuristics.
1973
1a1e101f
PP
19742015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1975
1976 * c-indentation.c (get_visual_column): Add parameter first_nws,
1977 use it. Update comment documenting the function.
1978 (is_first_nonwhitespace_on_line): Remove.
1979 (should_warn_for_misleading_indentation): Replace usage of
1980 of is_first_nonwhitespace_on_line with get_visual_column.
1981
992118a1
PP
19822015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1983
1984 * c-indentation.h (struct token_indent_info): Define.
1985 (get_token_indent_info): Define.
1986 (warn_for_misleading_information): Declare.
1987 * c-common.h (warn_for_misleading_information): Remove.
1988 * c-identation.c (warn_for_misleading_indentation):
1989 Change declaration to take three token_indent_infos. Adjust
1990 accordingly.
1991 * c-identation.c (should_warn_for_misleading_indentation):
1992 Likewise. Bail out early if the body is a compound statement.
1993 (guard_tinfo_to_string): Define.
1994
e8fa3817
JM
19952015-07-30 Jason Merrill <jason@redhat.com>
1996
1997 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
1998 '*' for reference decay.
1999
173864e8
MP
20002015-07-30 Marek Polacek <polacek@redhat.com>
2001
2002 * c-common.c (warn_tautological_cmp): Bail for float types.
2003
f2afe6dd
MP
20042015-07-27 Marek Polacek <polacek@redhat.com>
2005
2006 PR bootstrap/67030
2007 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
2008
05b28fd6
MP
20092015-07-27 Marek Polacek <polacek@redhat.com>
2010
2011 PR c++/66555
2012 PR c/54979
2013 * c-common.c (find_array_ref_with_const_idx_r): New function.
2014 (warn_tautological_cmp): New function.
2015 * c-common.h (warn_tautological_cmp): Declare.
2016 * c.opt (Wtautological-compare): New option.
2017
5a5062b8
MP
20182015-07-23 Marek Polacek <polacek@redhat.com>
2019
2020 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
2021 (ubsan_instrument_shift): Likewise.
2022
dc891fe7
MP
20232015-07-23 Marek Polacek <polacek@redhat.com>
2024
2025 PR sanitizer/66908
2026 * c-ubsan.c: Include gimplify.h.
2027 (ubsan_instrument_division): Unshare OP0 and OP1.
2028 (ubsan_instrument_shift): Likewise.
2029
451b5e48
MP
20302015-07-20 Marek Polacek <polacek@redhat.com>
2031 Richard Sandiford <richard.sandiford@arm.com>
2032
2033 PR c++/55095
2034 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
2035 Use EXPR_LOC_OR_LOC.
2036 (maybe_warn_shift_overflow): New function.
2037 * c-common.h (maybe_warn_shift_overflow): Declare.
2038 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
2039 * c.opt (Wshift-overflow): New option.
2040
fb0b2914
ML
20412015-07-16 Martin Liska <mliska@suse.cz>
2042
2043 * c-format.c (static void check_format_info_main): Use
2044 object_allocator instead of pool_allocator.
2045 (check_format_arg): Likewise.
2046 (check_format_info_main): Likewise.
2047
903f5c23
AM
20482015-07-15 Andrew MacLeod <amacleod@redhat.com>
2049
2050 * c-opts.c: Remove multiline #include comment.
2051
026c3cfd
AH
20522015-07-12 Aldy Hernandez <aldyh@redhat.com>
2053
2054 * c-common.c: Fix double word typos.
2055
bb49ee66
EB
20562015-07-10 Eric Botcazou <ebotcazou@adacore.com>
2057
2058 * c-ada-spec.h (cpp_operation): Revert latest change.
2059 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
2060 constructors and destructors.
2061
1916bcb5
AM
20622015-07-09 Andrew MacLeod <amacleod@redhat.com>
2063
2064 * c-common.h: Adjust includes for flags.h changes.
2065 * stub-objc.c: Likewise.
026c3cfd 2066
a9dcd529
EB
20672015-07-08 Eric Botcazou <ebotcazou@adacore.com>
2068
2069 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
2070 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
2071
b03b462f
JJ
20722015-07-08 Jakub Jelinek <jakub@redhat.com>
2073
2074 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
2075 are to be removed, return NULL rather than original clauses list.
2076
c7131fb2
AM
20772015-07-07 Andrew MacLeod <amacleod@redhat.com>
2078
2079 * array-notation-common.c: Adjust includes.
2080 * c-ada-spec.c: Likewise.
2081 * c-cilkplus.c: Likewise.
2082 * c-common.h: Likewise.
2083 * c-cppbuiltin.c: Likewise.
2084 * c-dump.c: Likewise.
2085 * c-format.c: Likewise.
2086 * c-gimplify.c: Likewise.
2087 * c-indentation.c: Likewise.
2088 * c-lex.c: Likewise.
2089 * c-omp.c: Likewise.
2090 * c-opts.c: Likewise.
2091 * c-pch.c: Likewise.
2092 * c-ppoutput.c: Likewise.
2093 * c-pragma.c: Likewise.
2094 * c-pretty-print.c: Likewise.
2095 * c-semantics.c: Likewise.
2096 * c-ubsan.c: Likewise.
2097 * cilk.c: Likewise.
2098 * stub-objc.c: Likewise.
2099
2a7fb83f
EB
21002015-07-07 Eric Botcazou <ebotcazou@adacore.com>
2101
2102 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
2103 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
2104
a03c9bf1
JM
21052015-07-01 Jason Merrill <jason@redhat.com>
2106
36a85135
JM
2107 * c-common.h (D_CXX11): Rename from D_CXX0X.
2108 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
2109 * c-common.c: Adjust.
2110
e7fa68d5
JM
2111 * c-opts.c (c_common_post_options): Default to C++14.
2112
a03c9bf1
JM
2113 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
2114
fe95b036
ESR
21152015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
2116
2117 Implement N4197 - Adding u8 character literals
b3d5bc62 2118 * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
a64be36b 2119 CPP_CHAR.
b3d5bc62 2120 * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
a64be36b 2121 CPP_UTF8CHAR_USERDEF tokens.
b3d5bc62 2122 * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
a64be36b
EB
2123 and CPP_UTF8CHAR tokens.
2124 (lex_charconst): Treat CPP_UTF8CHAR token.
fe95b036 2125
da2e71c9
MLI
21262015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2127
2128 PR fortran/66605
2129 * c-common.c (do_warn_unused_parameter): Move here.
2130 * c-common.h (do_warn_unused_parameter): Declare.
2131
b155cfd9
MP
21322015-06-29 Marek Polacek <polacek@redhat.com>
2133
2134 PR c/66322
2135 * c-common.c (check_case_bounds): Add bool * parameter. Set
2136 OUTSIDE_RANGE_P.
2137 (c_add_case_label): Add bool * parameter. Pass it down to
2138 check_case_bounds.
2139 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
2140 warning here.
2141 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
2142 declarations.
2143
31521951
MP
21442015-06-27 Marek Polacek <polacek@redhat.com>
2145
2146 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
2147 or VECTOR_INTEGER_TYPE_P throughout.
2148 * c-gimplify.c: Likewise.
2149
22d03525
MP
21502015-06-26 Marek Polacek <polacek@redhat.com>
2151
2152 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
2153 * c-common.c (c_fully_fold_internal): Likewise.
2154 (c_alignof_expr): Likewise.
2155 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
2156 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
b1726d6c 2157 * cilk.c (create_parm_list): Likewise.
22d03525 2158
af05e6e5
MP
21592015-06-26 Marek Polacek <polacek@redhat.com>
2160
2161 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
2162
f0889939
AM
21632015-06-25 Andrew MacLeod <amacleod@redhat.com>
2164
2165 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
2166 * c-gimplify.c: Likewise.
2167 * c-pragma.c: Likewise.
2168 * c-ubsan.c: Likewise.
2169 * cilk.c: Likewise.
2170
ca752f39
RS
21712015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2172
2173 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
2174 ggc_hasher.
2175
16a16ec7
AM
21762015-06-25 Andrew MacLeod <amacleod@redhat.com>
2177
2178 * cilk.c: Move calls.h after tm.h in the include chain.
2179
0ae9bd27
MP
21802015-06-25 Marek Polacek <polacek@redhat.com>
2181
2182 * array-notation-common.c: Use VAR_P throughout.
2183 * c-ada-spec.c: Likewise.
2184 * c-common.c: Likewise.
2185 * c-format.c: Likewise.
2186 * c-gimplify.c: Likewise.
2187 * c-omp.c: Likewise.
2188 * c-pragma.c: Likewise.
2189 * c-pretty-print.c: Likewise.
2190 * cilk.c: Likewise.
2191
62f9079a
MP
21922015-06-25 Marek Polacek <polacek@redhat.com>
2193
2194 * cilk.c (extract_free_variables): Use is_global_var.
2195
0fa16060
RS
21962015-06-23 Richard Sandiford <richard.sandiford@arm.com>
2197
2198 * c-common.c: Don't include target-def.h.
2199
a68ae2e1
MP
22002015-06-23 Marek Polacek <polacek@redhat.com>
2201
2202 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
2203 when comparing INTEGER_CSTs.
2204
c6a2f2d9
PMR
22052015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
2206
2207 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
2208 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
2209 (dump_ada_template): Skip partially specialized types.
2210
6b4db501
MM
22112015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
2212
2213 * c-common.c (scalar_to_vector): Use std::swap instead of manually
2214 swapping.
2215
abb226c9
AM
22162015-06-17 Andrew MacLeod <amacleod@redhat.com>
2217
2218 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
2219 * c-ada-spec.c: Likewise.
2220 * c-cilkplus.c: Likewise.
2221 * c-common.c: Likewise.
2222 * c-common.h: Likewise.
2223 * c-cppbuiltin.c: Likewise.
2224 * c-dump.c: Likewise.
2225 * c-format.c: Likewise.
2226 * c-gimplify.c: Likewise.
2227 * c-indentation.c: Likewise.
2228 * c-lex.c: Likewise.
2229 * c-omp.c: Likewise.
2230 * c-opts.c: Likewise.
2231 * c-pch.c: Likewise.
2232 * c-ppoutput.c: Likewise.
2233 * c-pragma.c: Likewise.
2234 * c-pretty-print.c: Likewise.
2235 * c-semantics.c: Likewise.
2236 * c-ubsan.c: Likewise.
2237 * cilk.c: Likewise.
2238 * stub-objc.c: Likewise.
2239
076fecad
PP
22402015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
2241
2242 PR c++/65168
2243 * c-common.c (c_common_truthvalue_conversion): Warn when
2244 converting an address of a reference to a truth value.
2245
13fdf2e2
AM
22462015-06-08 Andrew MacLeod <amacleod@redhat.com>
2247
2248 * array-notation-common.c : Adjust include files.
2249 * c-ada-spec.c : Likewise.
2250 * c-cilkplus.c : Likewise.
2251 * c-common.c : Likewise.
2252 * c-common.h : Likewise.
2253 * c-cppbuiltin.c : Likewise.
2254 * c-dump.c : Likewise.
2255 * c-format.c : Likewise.
2256 * c-gimplify.c : Likewise.
2257 * c-indentation.c : Likewise.
2258 * c-lex.c : Likewise.
2259 * c-omp.c : Likewise.
2260 * c-opts.c : Likewise.
2261 * c-pch.c : Likewise.
2262 * c-ppoutput.c : Likewise.
2263 * c-pragma.c : Likewise.
2264 * c-pretty-print.c : Likewise.
2265 * c-semantics.c : Likewise.
2266 * c-ubsan.c : Likewise.
2267 * cilk.c : Likewise.
2268 * stub-objc.c : Likewise.
2269
a1661b90
MP
22702015-06-08 Marek Polacek <polacek@redhat.com>
2271
2272 PR c/66415
2273 * c-format.c (location_from_offset): Return LOC if LINE is null.
2274
d7438551
AH
22752015-06-05 Aldy Hernandez <aldyh@redhat.com>
2276
2277 * c-common.h (c_parse_final_cleanups): New prototype.
2278 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
2279
b3d5bc62
JJ
22802015-06-04 Sriraman Tallam <tmsriram@google.com>
2281
2282 * c-common.c (noplt): New attribute.
2283 (handle_noplt_attribute): New handler.
2284
ecb9f223
AM
22852015-06-04 Andrew MacLeod <amacleod@redhat.com>
2286
2287 * array-notation-common.c: Adjust includes for restructured coretypes.h.
2288 * c-ada-spec.c: Likewise.
2289 * c-cilkplus.c: Likewise.
2290 * c-common.c: Likewise.
2291 * c-common.h: Likewise.
2292 * c-cppbuiltin.c: Likewise.
2293 * c-dump.c: Likewise.
2294 * c-format.c: Likewise.
2295 * c-gimplify.c: Likewise.
2296 * c-indentation.c: Likewise.
2297 * c-lex.c: Likewise.
2298 * c-omp.c: Likewise.
2299 * c-opts.c: Likewise.
2300 * c-pch.c: Likewise.
2301 * c-ppoutput.c: Likewise.
2302 * c-pragma.c: Likewise.
2303 * c-pretty-print.c: Likewise.
2304 * c-semantics.c: Likewise.
2305 * c-ubsan.c: Likewise.
2306 * cilk.c: Likewise.
2307 * stub-objc.c: Likewise.
2308
6ac48155
DM
23092015-06-02 David Malcolm <dmalcolm@redhat.com>
2310
2311 PR c/66220:
2312 * c-indentation.c (should_warn_for_misleading_indentation): Use
2313 expand_location rather than expand_location_to_spelling_point.
2314 Don't warn if the guarding statement is more indented than the
2315 next/body stmts.
2316
773ce42e
DM
23172015-06-02 David Malcolm <dmalcolm@redhat.com>
2318
2319 * c-indentation.c (warn_for_misleading_indentation): Bail out
2320 immediately if -Wmisleading-indentation isn't enabled.
2321
4fef8379
ML
23222015-06-01 Martin Liska <mliska@suse.cz>
2323
2324 * c-format.c (check_format_arg):Use new type-based pool allocator.
2325 (check_format_info_main) Likewise.
2326
1edfb384
EB
23272015-05-31 Eric Botcazou <ebotcazou@adacore.com>
2328
2329 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
2330 (has_nontrivial_methods): Likewise.
2331
9677ef52
MP
23322015-05-25 Marek Polacek <polacek@redhat.com>
2333
2334 * c-ubsan.c (ubsan_instrument_shift): Use type0.
2335
fd5c817a
MP
23362015-05-22 Marek Polacek <polacek@redhat.com>
2337
2338 PR c/47043
2339 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
2340
a2f45fe6 23412015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
581edfa3
TS
2342
2343 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
2344 STACK_GROWS_DOWNWARD.
2345
a2f45fe6 23462015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
62f9f30b
TS
2347
2348 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
2349 STACK_GROWS_DOWNWARD rather than if it is defined.
2350
0fee2ac2 23512015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
b1726d6c 2352
0fee2ac2
MLI
2353 PR c/52952
2354 * c-format.c (location_column_from_byte_offset): New.
2355 (location_from_offset): New.
2356 (struct format_wanted_type): Add offset_loc field.
2357 (check_format_info): Move handling of location for extra arguments
2358 closer to the point of warning.
2359 (check_format_info_main): Pass the result of location_from_offset
2360 to warning_at.
2361 (format_type_warning): Pass the result of location_from_offset
2362 to warning_at.
2363
cf4ef6f7
MP
23642015-05-20 Marek Polacek <polacek@redhat.com>
2365
2366 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
2367
3a65ee74
MP
23682015-05-20 Marek Polacek <polacek@redhat.com>
2369
2370 * c-ada-spec.c (dump_sloc): Use DECL_P.
2371
21b634ae
MP
23722015-05-20 Marek Polacek <polacek@redhat.com>
2373
2374 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
2375 * c-common.c: Likewise.
2376
0e50b624
DM
23772015-05-19 David Malcolm <dmalcolm@redhat.com>
2378
2379 * c-common.h (fe_file_change): Strengthen param from
2380 const line_map * to const line_map_ordinary *.
2381 (pp_file_change): Likewise.
2382 * c-lex.c (fe_file_change): Likewise.
2383 (cb_define): Use linemap_check_ordinary when invoking
2384 SOURCE_LINE.
2385 (cb_undef): Likewise.
2386 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
2387 invoking cb_file_change.
2388 (c_finish_options): Likewise.
2389 (push_command_line_include): Likewise.
2390 (cb_file_change): Strengthen param "new_map" from
2391 const line_map * to const line_map_ordinary *.
2392 * c-ppoutput.c (cb_define): Likewise for local "map".
2393 (pp_file_change): Likewise for param "map" and local "from".
2394
fab27f52
MM
23952015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
2396
2397 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
2398
2fe1d762
TV
23992015-05-18 Tom de Vries <tom@codesourcery.com>
2400
2401 * c-common.c (build_va_arg_1): New function.
2402 (build_va_arg): Add address operator to va_list operand if necessary.
2403
7a37fa90
MM
24042015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
2405
2406 PR c/48956
2407 * c-common.c (int_safely_convertible_to_real_p): Define.
2408 (unsafe_conversion_p): Check conversions involving complex types.
2409 (conversion_warning): Add new warning message for conversions which
2410 discard imaginary component.
2411 * c-common.h: (enum conversion_safety): Add new enumerator for such
2412 conversions.
2413
3aa3c9fc
MP
24142015-05-14 Marek Polacek <polacek@redhat.com>
2415
2416 PR c/66066
2417 PR c/66127
2418 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
2419 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
2420 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
2421 use it. If FOR_INT_CONST, require that all evaluated operands be
2422 INTEGER_CSTs.
2423
c3388e62
DM
24242015-05-12 David Malcolm <dmalcolm@redhat.com>
2425
2426 * c-common.h (warn_for_misleading_indentation): New prototype.
2427 * c-indentation.c: New file.
2428 * c.opt (Wmisleading-indentation): New option.
2429
c7b38fd5
TV
24302015-05-12 Tom de Vries <tom@codesourcery.com>
2431
2432 PR tree-optimization/66010
2433 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
2434
381bf11e
JM
24352015-05-09 Jason Merrill <jason@redhat.com>
2436
edff0c06
JM
2437 * c-opts.c (c_common_post_options): Also clear
2438 cpp_opts->cpp_warn_cxx11_compat.
2439
129211bc
JM
2440 * c-common.h (enum cxx_dialect): Add cxx_unset.
2441 * c-common.c (cxx_dialect): Initialize to cxx_unset.
2442 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
2443
381bf11e
JM
2444 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
2445 (std=gnu++0x): Mark as Undocumented.
2446 (std=gnu++1y): Add deprecated message.
2447
fe191308
JM
24482015-05-08 Jason Merrill <jason@redhat.com>
2449
765189ff
JM
2450 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
2451 * c-opts.c: Adjust.
2452
fe191308
JM
2453 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
2454
755e528f
MP
24552015-05-08 Marek Polacek <polacek@redhat.com>
2456
2457 PR c/64918
2458 * c.opt (Woverride-init-side-effects): New option.
2459
0173bd2a
MP
24602015-05-07 Marek Polacek <polacek@redhat.com>
2461
2462 PR c/65179
2463 * c-common.c (c_fully_fold_internal): Warn when left shifting a
2464 negative value.
2465 * c.opt (Wshift-negative-value): New option.
2466 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
2467 when -Wextra and C99/C++11 mode.
2468
e0f0d3b9
MP
24692015-05-07 Marek Polacek <polacek@redhat.com>
2470 Martin Uecker <uecker@eecs.berkeley.edu>
2471
2472 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
2473 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
2474
8243e2a9
JM
24752015-05-05 Jason Merrill <jason@redhat.com>
2476
2477 * c.opt (Wterminate): New.
2478
577cd070
MP
24792015-04-30 Marek Polacek <polacek@redhat.com>
2480
2481 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
2482 require that the non-constant be of a boolean type.
2483
0373796b
JT
24842015-04-29 Josh Triplett <josh@joshtriplett.org>
2485
e0f0d3b9
MP
2486 * c-common.c (handle_section_attribute): Refactor to reduce
2487 nesting and distinguish between error cases.
0373796b 2488
716c0ba6
MP
24892015-04-29 Marek Polacek <polacek@redhat.com>
2490
2491 PR c/64610
2492 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
2493 with 0/1.
2494
8848828b
JJ
24952015-04-29 Jakub Jelinek <jakub@redhat.com>
2496
2497 * c-common.h (omp_clause_mask): Unconditionally define as a class.
2498 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
2499 HOST_BITS_PER_WIDE_INT.
2500
ecd0e562
TV
25012015-04-28 Tom de Vries <tom@codesourcery.com>
2502
2503 PR tree-optimization/65887
2504 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
2505
2a877204 25062015-04-28 Eric Botcazou <ebotcazou@adacore.com>
e0f0d3b9 2507 Pierre-Marie de Rodat <derodat@adacore.com>
2a877204
EB
2508
2509 * c-ada-spec.c (in_function): Delete.
2510 (dump_generic_ada_node): Do not change in_function and remove the
2511 redundant code dealing with it.
2512 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
2513 (print_ada_methods): Output the static member functions in a nested
2514 package after the regular methods as well as associated renamings.
2515
4853031e
MP
25162015-04-24 Marek Polacek <polacek@redhat.com>
2517
2518 PR c/65830
2519 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
2520 and OPT_Wshift_count_overflow.
2521
8c2b7f79
MP
2522 PR c/63357
2523 * c-common.c (warn_logical_operator): Warn if the operands have the
2524 same expressions.
2525
b8787813
MP
25262015-04-24 Marek Polacek <polacek@redhat.com>
2527
2528 PR c/61534
2529 * c-common.c (warn_logical_operator): Bail if either operand comes
2530 from a macro expansion.
2531
8fba1830
BRF
25322015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2533
2534 PR target/55143
2535 * c-common.c (c_default_pointer_mode): Add definition.
2536 * c-common.h (c_default_pointer_mode): Add declaration.
2537
17958621
JJ
25382015-03-11 Jakub Jelinek <jakub@redhat.com>
2539
2540 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
2541 on record_builtin_type argument.
2542
7ccb1a11
JJ
25432015-03-10 Jakub Jelinek <jakub@redhat.com>
2544
2545 PR c/65120
2546 * c-common.c (warn_logical_not_parentheses): Don't warn for
2547 !x == 0 or !x != 0.
2548
04fd785e
MP
25492015-03-07 Marek Polacek <polacek@redhat.com>
2550
2551 PR sanitizer/65280
2552 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
2553 before trying to figure out whether we have a flexible array member.
2554
a4e26206 25552015-03-06 Eric Botcazou <ebotcazou@adacore.com>
8e745a17 2556 Jonathan Wakely <jwakely.gcc@gmail.com>
a4e26206
EB
2557
2558 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
2559
0d2489f4
EB
25602015-03-05 Eric Botcazou <ebotcazou@adacore.com>
2561
2562 PR ada/65319
2563 * c-ada-spec.c (print_destructor): Remove obsolete code.
2564
83ed54d7
EB
25652015-03-01 Eric Botcazou <ebotcazou@adacore.com>
2566
2567 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
2568 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
2569 DECL_TEMPLATE_RESULT emulations.
2570 (dump_ada_template)): Add guard for TYPE_METHODS.
2571
7631f0e2
MP
25722015-02-27 Marek Polacek <polacek@redhat.com>
2573
2574 PR c/65040
2575 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
2576
d1783ae5
KT
25772015-02-27 Kai Tietz <ktietz@redhat.com>
2578
2579 PR c/35330
2580 * c-pragma.c (handle_pragma_weak): Do not try to create
2581 weak/alias of declarations not being function, or variable
2582 declarations.
2583
56a9f6bc
TS
25842015-02-24 Thomas Schwinge <thomas@codesourcery.com>
2585
2586 PR libgomp/64625
2587 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
2588 Remove macros.
2589 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
2590
3d5cb23d
MP
25912015-02-16 Marek Polacek <polacek@redhat.com>
2592
2593 PR c/65066
2594 * c-format.c (check_format_types): Handle null param.
2595
fa008882
MP
25962015-02-13 Marek Polacek <polacek@redhat.com>
2597
2598 PR c/65040
2599 * c-format.c (check_format_types): Don't warn about different
2600 signedness if the original value is in the range of WANTED_TYPE.
2601
785f21af
JM
26022015-02-12 Jason Merrill <jason@redhat.com>
2603
2604 PR c++/64956
2605 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
2606 to the current highest version.
2607 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
2608
4886ec8e
JJ
26092015-02-04 Jakub Jelinek <jakub@redhat.com>
2610
2611 PR c/64824
2612 PR c/64868
2613 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
2614 instead of RDIV_EXPR. Use build_binary_op instead of
2615 build2_loc.
2616
40fecdd6
JM
26172015-01-30 Joseph Myers <joseph@codesourcery.com>
2618
2619 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
2620 to pass input_location as first argument.
2621
a0c88d06
TV
26222015-01-23 Tom de Vries <tom@codesourcery.com>
2623
2624 PR libgomp/64672
2625 * c.opt (fopenacc): Mark as LTO option.
2626
1506ae0e
TV
26272015-01-23 Tom de Vries <tom@codesourcery.com>
2628
2629 PR libgomp/64707
2630 * c.opt (fopenmp): Mark as LTO option.
2631
31be63ab
JJ
26322015-01-21 Jakub Jelinek <jakub@redhat.com>
2633
2634 PR c/63307
b1726d6c 2635 * cilk.c (fill_decls_vec): Only put decls into vector v.
31be63ab
JJ
2636 (compare_decls): Fix up formatting.
2637
26382015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
2639
2640 PR c/63307
2641 * cilk.c: Include vec.h.
2642 (struct cilk_decls): New structure.
2643 (wrapper_parm_cb): Split this function to...
2644 (fill_decls_vec): ...this...
2645 (create_parm_list): ...and this.
2646 (compare_decls): New function.
2647 (for_local_cb): Remove.
2648 (wrapper_local_cb): Ditto.
2649 (build_wrapper_type): For now first traverse and fill vector of
2650 declarations then sort it and then deal with sorted vector.
2651 (cilk_outline): Ditto.
2652 (declare_one_free_variable): Ditto.
2653
6875457f
JM
26542015-01-21 Jason Merrill <jason@redhat.com>
2655
2656 PR c++/64629
2657 * c-format.c (check_format_arg): Call decl_constant_value.
2658
185c9e56
ML
26592015-01-19 Martin Liska <mliska@suse.cz>
2660
2661 * c-common.c (handle_noicf_attribute): New function.
2662
41dbbb37
TS
26632015-01-15 Thomas Schwinge <thomas@codesourcery.com>
2664 Bernd Schmidt <bernds@codesourcery.com>
2665 James Norris <jnorris@codesourcery.com>
2666 Cesar Philippidis <cesar@codesourcery.com>
2667 Ilmir Usmanov <i.usmanov@samsung.com>
2668 Jakub Jelinek <jakub@redhat.com>
2669
2670 * c.opt (fopenacc): New option.
2671 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
2672 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
2673 New macros.
2674 * c-common.h (c_finish_oacc_wait): New prototype.
2675 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
2676 (c_finish_oacc_wait): New function.
2677 * c-pragma.c (oacc_pragmas): New variable.
2678 (c_pp_lookup_pragma, init_pragma): Handle it.
2679 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
2680 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
2681 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
2682 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
2683 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
2684 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
2685 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
2686 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
2687 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
2688 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
2689 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
2690 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
2691 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
2692 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
2693 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
2694 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
2695 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
2696 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
2697 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
2698 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
2699 PRAGMA_OACC_CLAUSE_WORKER.
2700
3f8257db 27012015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
5434dc07
MD
2702
2703 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
2704 for the new option fstack-protector_explicit.
2705 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
2706 (handle_stack_protect_attribute): New function.
2707
3f8257db 27082015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
de1b5c17
MU
2709
2710 * c.opt: New option -Warray-bounds=.
2711
adfac8df
JJ
27122015-01-09 Michael Collison <michael.collison@linaro.org>
2713
2714 * array-notation-common.c: Include hash-set.h, machmode.h,
2715 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2716 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
2717 * c-ada-spec.c: Ditto.
2718 * c-cilkplus.c: Ditto.
2719 * c-common.c: Include input.h due to flattening of tree.h.
2720 Define macro GCC_C_COMMON_C.
2721 * c-common.h: Flatten tree.h header files into c-common.h.
2722 Remove include of tree-core.h.
2723 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
2724 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2725 fold-const.h, wide-int.h, and inchash.h due to
2726 flattening of tree.h.
2727 * c-dump.c: Ditto.
2728 * c-format.c: Flatten tree.h header files into c-common.h.
2729 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
2730 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2731 fold-const.h, wide-int.h, and inchash.h due to
2732 flattening of tree.h.
2733 * c-dump.c: Include hash-set.h, machmode.h,
2734 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2735 fold-const.h, wide-int.h, and inchash.h due to
2736 flattening of tree.h.
2737 * c-format.c: Include hash-set.h, machmode.h,
2738 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2739 fold-const.h, wide-int.h, inchash.h and real.h due to
2740 flattening of tree.h.
2741 * c-gimplify.c: Include hash-set.h, machmode.h,
2742 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2743 fold-const.h, wide-int.h, and inchash.h due to
2744 flattening of tree.h.
2745 * cilk.c: Ditto.
2746 * c-lex.c: Ditto.
2747 * c-omp.c: Ditto.
2748 * c-opts.c: Ditto.
2749 * c-pch.c: Ditto.
2750 * c-ppoutput.c: Ditto.
2751 * c-pragma.c: Ditto.
2752 * c-pretty-print.c: Ditto.
2753 * c-semantics.c: Ditto.
2754 * c-ubsan.c: Ditto.
2755 * stub-objc.c: Ditto.
2756
f5481fc4
JM
27572015-01-08 Jason Merrill <jason@redhat.com>
2758
2759 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
2760 do_ubsan_in_current_function.
2761 (ubsan_maybe_instrument_reference_or_call): Likewise.
2762 * c-ubsan.h: Declare it.
2763
de35aa66
MS
27642015-01-08 Mike Stump <mikestump@comcast.net>
2765
2766 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
2767
4a9a42ab
MP
27682015-01-07 Marek Polacek <polacek@redhat.com>
2769
2770 PR c/64440
2771 * c-common.c (c_fully_fold_internal): Warn for division and modulo
2772 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
2773
2f42e5de
TS
27742015-01-05 Trevor Saunders <tsaunders@mozilla.com>
2775
2776 PR c++/31397
2777 * c.opt (Wsuggest-override): New option.
2778
5624e564
JJ
27792015-01-05 Jakub Jelinek <jakub@redhat.com>
2780
2781 Update copyright years.
2782
5bd012f8
MP
27832015-01-05 Marek Polacek <polacek@redhat.com>
2784
2785 PR c/64423
2786 * c-common.c (warn_array_subscript_with_type_char): Add location_t
2787 parameter. Use it.
2788 * c-common.h (warn_array_subscript_with_type_char): Update
2789 declaration.
2790
a7fa8d18
ESR
27912014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
2792
2793 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
2794 Control macro with flag_sized_deallocation.
2795
3f8257db 27962014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
768952be
MU
2797
2798 * c.opt (Wdiscarded-array-qualifiers): New option.
2799
1f8d3e84
JJ
28002014-12-19 Jakub Jelinek <jakub@redhat.com>
2801
2802 PR preprocessor/63831
2803 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
2804 and __has_cpp_attribute here.
2805 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
2806 c_common_has_attribute.
2807 * c-common.h (c_common_has_attribute): New prototype.
2808 * c-lex.c (init_c_lex): Set cb->has_attribute to
2809 c_common_has_attribute instead of cb_has_attribute.
2810 (get_token_no_padding): New function.
2811 (cb_has_attribute): Renamed to ...
2812 (c_common_has_attribute): ... this. No longer static. Use
2813 get_token_no_padding, require ()s, don't build TREE_LIST
2814 unnecessarily, fix up formatting, adjust diagnostics, call
2815 init_attributes.
2816
20b06add
JM
28172014-12-15 Jason Merrill <jason@redhat.com>
2818
2819 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
2820 (-Wsized-deallocation): New.
2821 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
2822 to on in C++14 and up.
2823
94a073b2
JM
28242014-12-11 Jason Merrill <jason@redhat.com>
2825
acaa5911
JM
2826 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
2827
94a073b2
JM
2828 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
2829 we aren't complaining about VLAs.
2830
7fb66c15
MP
28312014-12-06 Marek Polacek <polacek@redhat.com>
2832
2833 PR tree-optimization/64183
2834 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
2835 shift-expression if it is integer_type_node. Use types_compatible_p.
2836
b731b390
JJ
28372014-11-29 Jakub Jelinek <jakub@redhat.com>
2838
2839 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
2840 last argument from create_tmp_var_raw and create_tmp_var calls.
2841 * cilk.c (gimplify_cilk_spawn): Likewise.
2842 * c-omp.c (c_finish_omp_atomic): Likewise.
2843
6a4da643
MP
28442014-11-28 Marek Polacek <polacek@redhat.com>
2845
2846 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
2847 instead of unsigned_type_node.
2848
541e35a6
MP
28492014-11-28 Marek Polacek <polacek@redhat.com>
2850
2851 PR c/63862
2852 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
2853 to op1_utype.
2854 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
2855 expression to unsigned_type_node.
2856
dcc97066
MW
28572014-11-20 Mark Wielaard <mjw@redhat.com>
2858
2859 PR debug/38757
2860 * c-opts.c (set_std_c89): Set lang_hooks.name.
2861 (set_std_c99): Likewise.
2862 (set_std_c11): Likewise.
2863 (set_std_cxx98): Likewise.
2864 (set_std_cxx11): Likewise.
2865 (set_std_cxx14): Likewise.
2866 (set_std_cxx1z): Likewise.
2867
aa7da51a
JJ
28682014-11-21 Jakub Jelinek <jakub@redhat.com>
2869
2870 PR target/63764
2871 * c-common.h (convert_vector_to_pointer_for_subscript): Change
2872 return type to bool.
009a3480 2873 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
2874 (convert_vector_to_pointer_for_subscript): Change return type to
2875 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
2876 and copy it into a TARGET_EXPR and use that instead of *vecp
2877 directly.
2878
538dd0b7
DM
28792014-11-19 David Malcolm <dmalcolm@redhat.com>
2880
2881 Merger of git branch "gimple-classes-v2-option-3".
2882 * ChangeLog.gimple-classes: New.
2883 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
2884 from being just a vec<gimple> to a vec<gbind *>.
2885
c39a5e99
JJ
28862014-11-18 Jakub Jelinek <jakub@redhat.com>
2887
2888 PR sanitizer/63813
2889 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
2890 argument to ptype, set type to TREE_TYPE (ptype). Don't call
2891 get_pointer_alignment for non-pointers. Use ptype, or if it is
2892 reference type, corresponding pointer type, as type of kind
2893 argument.
2894 (ubsan_maybe_instrument_reference,
2895 ubsan_maybe_instrument_member_call): Adjust callers.
2896
8537a4a9
MP
28972014-11-15 Marek Polacek <polacek@redhat.com>
2898
2899 PR middle-end/63884
2900 * array-notation-common.c (is_sec_implicit_index_fn): Return false
2901 for NULL fndecl.
2902 (extract_array_notation_exprs): Return for NULL node.
2903
2079956a
JM
29042014-11-12 Joseph Myers <joseph@codesourcery.com>
2905
2906 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
2907 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
2908
1304953e
JJ
29092014-11-12 Jakub Jelinek <jakub@redhat.com>
2910
2911 PR c/59708
2912 * c-common.c (check_builtin_function_arguments): Handle
2913 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
2914
e5e44252
AK
29152014-11-10 Andi Kleen <ak@linux.intel.com>
2916
2917 PR c/60804
2918 * c-common.h (check_no_cilk): Declare.
2919 * cilk.c (get_error_location): New function.
2920 (check_no_cilk): Dito.
2921
e64b984d
AK
29222014-11-10 Andi Kleen <ak@linux.intel.com>
2923
2924 * cilk.c (recognize_spawn): Use expression location
2925 for error message.
2926
13c21655
PC
29272014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
2928
2929 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
2930
42fd12b1
ESR
29312014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
2932
2933 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
2934 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
2935 (__cpp_range_based_for, __cpp_initializer_lists,
2936 __cpp_delegating_constructors, __cpp_nsdmi,
2937 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
2938 for C++11; (__cpp_attribute_deprecated): Remove in favor of
2939 __has_cpp_attribute.
2940 * c-lex.c (cb_has_attribute): New callback CPP function;
2941 (init_c_lex): Set has_attribute callback.
2942
6f450181
RB
29432014-11-04 Richard Biener <rguenther@suse.de>
2944
2945 * c-common.c (shorten_compare): Do not shorten mixed
2946 DFP and non-DFP compares.
2947
26f0e1d6
ESR
29482014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
2949
2950 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
2951 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
2952 Commentary and rearrangement of tests.
2953 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
2954 Commentary and rearrangement of tests.
2955 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
2956 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
2957
ef4bddc2
RS
29582014-10-29 Richard Sandiford <richard.sandiford@arm.com>
2959
2960 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
2961 enum from machine_mode.
2962
c582198b
AM
29632014-10-28 Andrew MacLeod <amacleod@redhat.com>
2964
adfac8df
JJ
2965 * c-common.c: Adjust include files.
2966 * c-gimplify.c: Ditto.
2967 * cilk.c: Ditto.
2968 * c-pragma.c: Ditto.
2969 * c-ubsan.c: Ditto.
c582198b 2970
60393bbc
AM
29712014-10-27 Andrew MacLeod <amacleod@redhat.com>
2972
2973 * c-gimplify.c: Adjust include files.
2974
d723bb7c
MLI
29752014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
2976
2977 PR c++/53061
2978 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
2979 c_common_initialize_diagnostics.
2980 * c-common.h: Likewise.
2981
90f3520e
MP
29822014-10-24 Marek Polacek <polacek@redhat.com>
2983
2984 PR c/56980
2985 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
2986 print "struct"/"union"/"enum" for typedefed names.
2987
59d7607a
MP
29882014-10-23 Marek Polacek <polacek@redhat.com>
2989
2990 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
2991 in unsigned type.
2992
d95a2703
JJ
29932014-10-22 Jakub Jelinek <jakub@redhat.com>
2994 Yury Gribov <y.gribov@samsung.com>
2995
2996 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2997 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
2998 instead of flag_sanitize_recover as bool flag.
2999
8e6ef852
KY
30002014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
3001
3002 * cilk.c: Revert previous change.
3003
948cf550
IZ
30042014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
3005
3006 PR c/63307
3007 * cilk.c: Include vec.h.
3008 (struct cilk_decls): New structure.
3009 (wrapper_parm_cb): Split this function to...
3010 (fill_decls_vec): ...this...
3011 (create_parm_list): ...and this.
3012 (compare_decls): New function.
3013 (for_local_cb): Remove.
3014 (wrapper_local_cb): Ditto.
3015 (build_wrapper_type): For now first traverse and fill vector of
3016 declarations then sort it and then deal with sorted vector.
3017 (cilk_outline): Ditto.
3018 (declare_one_free_variable): Ditto.
3019
92574c7c
MP
30202014-10-17 Marek Polacek <polacek@redhat.com>
3021
3022 * c-opts.c (c_common_post_options): Set warn_implicit_int.
3023 * c.opt (Wimplicit-int): Initialize to -1.
3024
83685514
AM
30252014-10-16 Andrew MacLeod <amacleod@redhat.com>
3026
3027 * c-pragma.c: Adjust include files.
3028 * c-semantics.c: Likewise.
3029
5b8300ea
DD
30302014-10-16 DJ Delorie <dj@redhat.com>
3031
3032 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
3033 multiples of bytes.
3034
5f83e90b
JM
30352014-10-14 Jason Merrill <jason@redhat.com>
3036
3037 PR c++/63455
3038 * c-common.h (CPP_PREPARSED_EXPR): New.
3039 (N_CP_TTYPES): Adjust.
3040
d73326ca
MP
30412014-10-15 Marek Polacek <polacek@redhat.com>
3042
3043 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
3044
78a7c317
DD
30452014-10-14 DJ Delorie <dj@redhat.com>
3046
3047 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
3048 types, not just __int128.
3049 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
3050 types, not just __int128.
3051 (cpp_atomic_builtins): Round pointer sizes up.
3052 (type_suffix): Use type precision, not specific types.
3053 * c-common.c (c_common_reswords): Remove __int128 special case.
3054 (c_common_type_for_size): Check for all __intN types, not just
3055 __int128.
3056 (c_common_type_for_mode): Likewise.
3057 (c_common_signed_or_unsigned_type): Likewise.
3058 (c_build_bitfield_integer_type): Likewise.
3059 (c_common_nodes_and_builtins): Likewise.
3060 (keyword_begins_type_specifier): Likewise.
3061 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
3062 __intN variants.
3063
2a22f99c
TS
30642014-10-12 Trevor Saunders <tsaunders@mozilla.com>
3065
3066 * c-common.c: Use hash_table instead of hashtab.
3067
2a8ef767
ESR
30682014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
3069
adfac8df 3070 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
3071 C++11 section.
3072
3c9aabbd
MG
30732014-10-03 Marc Glisse <marc.glisse@inria.fr>
3074
3075 PR c++/54427
3076 PR c++/57198
3077 PR c++/58845
3078 * c-common.c (warn_logical_operator): Punt for vectors.
3079
a15f7cb8
ESR
30802014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
3081
3082 Implement SD-6: SG10 Feature Test Recommendations
3083 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
3084 macros and the __has_header macro.
3085
8d0cf15e
JM
30862014-09-30 Jason Merrill <jason@redhat.com>
3087
dd5d5481
JM
3088 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
3089 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
3090 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
3091
b752325e
JM
3092 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
3093 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
3094
8d0cf15e
JM
3095 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
3096 * c-common.c (c_common_reswords): Remove __is_convertible_to.
3097
083e891e
MP
30982014-09-24 Marek Polacek <polacek@redhat.com>
3099
3100 PR c/61405
3101 PR c/53874
3102 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
3103
7861b648
AK
31042014-09-23 Andi Kleen <ak@linux.intel.com>
3105
3106 * c-common.c (handle_no_reorder_attribute): New function.
3107 (c_common_attribute_table): Add no_reorder attribute.
3108
9a79452d
JM
31092014-09-22 Joseph Myers <joseph@codesourcery.com>
3110
3111 * c-cppbuiltin.c (c_cpp_builtins): Define
3112 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
3113 modes.
3114
dd69f047
JM
31152014-09-18 Joseph Myers <joseph@codesourcery.com>
3116
3117 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
3118 for supported floating-point modes.
3119
737a4826
MLI
31202014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3121
3122 * c.opt (Wpsabi): Use LangEnabledBy.
3123 * c-opts.c (c_common_handle_option): Do not handle here.
3124
8cc4b7a2
JM
31252014-09-12 Joseph Myers <joseph@codesourcery.com>
3126
3127 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
3128 macros for floating-point modes.
3129
179b5a55
MG
31302014-09-11 Marc Glisse <marc.glisse@inria.fr>
3131
3132 PR target/58757
3133 * c-cppbuiltin.c (builtin_define_float_constants): Correct
3134 __*_DENORM_MIN__ without denormals.
3135
570a11fe
JJ
31362014-09-10 Jakub Jelinek <jakub@redhat.com>
3137
3138 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
3139 ubsan_instrument_vla, ubsan_instrument_return): Adjust
3140 ubsan_create_data callers.
3141 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
3142 index is constant or BIT_AND_EXPR with constant mask and is
3143 small enough for the bound.
3144 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
3145 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
3146
b559c810
MLI
31472014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3148
3149 * c.opt: Add CppReason to various flags.
3150 (Wdate-time): Re-sort.
3151 * c-common.c: Include c-common.h earlier.
3152 (struct reason_option_codes_t): Delete.
3153 (c_option_controlling_cpp_error): Prefix global type and struct
3154 with cpp_.
3155
1ef33fd4
MLI
31562014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3157
3158 * c.opt (Wnormalized): New.
3159 (Wnormalized=): Use Enum and Reject Negative.
3160 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
3161
66bb34c0
JM
31622014-09-08 Joseph Myers <joseph@codesourcery.com>
3163
3164 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
3165 digits of floating-point modes if -fbuilding-libgcc.
3166
53d68b9f
JM
31672014-09-05 Joseph Myers <joseph@codesourcery.com>
3168
3169 * c-cppbuiltin.c (c_cpp_builtins): Also define
3170 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
3171 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
3172 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
3173 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
3174 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
3175 __LIBGCC_STACK_GROWS_DOWNWARD__,
3176 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
3177 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
3178 __LIBGCC_DWARF_FRAME_REGISTERS__,
3179 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
3180 __LIBGCC_STACK_POINTER_REGNUM__ and
3181 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
3182 (builtin_define_with_value): Handle backslash-escaping in string
3183 macro values.
3184
f65586dc
RB
31852014-09-05 Richard Biener <rguenther@suse.de>
3186
3187 PR middle-end/63148
3188 * c-format.c (check_format_arg): Properly handle
3189 effectively signed POINTER_PLUS_EXPR offset.
3190
2b71f4a4
MLI
31912014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
3192
3193 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
3194 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
3195 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
3196 and Init.
3197 * c-opts.c (c_common_handle_option): Do not handle here.
3198 (sanitize_cpp_opts): Likewise.
3199 * c-common.c (struct reason_option_codes_t): Handle
3200 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
3201
d2e4feca
MP
32022014-09-03 Marek Polacek <polacek@redhat.com>
3203
3204 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
3205
9a771876
JJ
32062014-09-02 Jakub Jelinek <jakub@redhat.com>
3207 Balaji V. Iyer <balaji.v.iyer@intel.com>
3208 Igor Zamyatin <igor.zamyatin@intel.com>
3209
3210 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
3211 * c-common.c (c_common_reswords): Added _Cilk_for.
3212 * c-common.h (enum rid): Added RID_CILK_FOR.
3213 (cilk_for_number_of_iterations): Add declaration.
3214 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
3215 CILK_FOR.
3216 * c-pragma.c (init_pragma): Register "grainsize" pragma.
3217 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
3218
81b5d104
MLI
32192014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3220
3221 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
3222 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
3223 Wundef): Use CPP, Var and Init.
3224 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
3225
b753b37b
MLI
32262014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3227
3228 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
3229 * c-opts.c (c_common_handle_option): Do not handle here.
3230
028aee17
JM
32312014-08-25 Jason Merrill <jason@redhat.com>
3232
3233 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
3234 -std=c++14 and -std=gnu++14, rather than the reverse.
3235 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
3236 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
3237 * c-common.h (cxx_dialect): Remove cxx1y.
3238
e4276ba5
ESR
32392014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
3240
3241 * c-common.h (enum cxx_dialect): Add cxx14.
3242 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
3243 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
3244 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
3245
a545cacd
JM
32462014-08-22 Jason Merrill <jason@redhat.com>
3247
3248 * c.opt (std=gnu++17): Fix alias.
3249
59ea0364
MP
32502014-08-22 Marek Polacek <polacek@redhat.com>
3251
3252 PR c++/62199
3253 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
3254 check for vector types. Drop LHS argument.
3255 * c-common.h (warn_logical_not_parentheses): Adjust.
3256
596e808c
MLI
32572014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
3258
3259 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
3260 (Wmultichar): Likewise.
3261 (Wdate-time): Use C-family languages instead of Common. Use CPP
3262 and Var.
3263 * c-opts.c (c_common_handle_option): Do not handle the above
3264 options here.
3265 (sanitize_cpp_opts): Likewise.
3266
18767f65
MLI
32672014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
3268
3269 PR fortran/44054
3270 * c-opts.c: Include tree-diagnostics.h.
3271 (c_diagnostic_finalizer): New.
3272 (c_common_initialize_diagnostics): Use it.
3273
b4413594
MLI
32742014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3275
3276 PR preprocessor/51303
3277 * c-common.c (struct reason_option_codes_t option_codes):
3278 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
3279
43f9a13c
MLI
32802014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3281
3282 PR c/60975
3283 PR c/53063
3284 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
3285 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
3286 (c_common_post_options): Call init_global_opts_from_cpp.
3287 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
3288
04159acf
MP
32892014-08-19 Marek Polacek <polacek@redhat.com>
3290
3291 PR c++/62153
3292 * c-common.c (maybe_warn_bool_compare): New function.
3293 * c-common.h (maybe_warn_bool_compare): Declare.
3294 * c.opt (Wbool-compare): New option.
3295
35aff4fb
MP
32962014-08-19 Marek Polacek <polacek@redhat.com>
3297
3298 * c.opt (Wc99-c11-compat): New option.
3299
177cce46
MP
33002014-08-19 Marek Polacek <polacek@redhat.com>
3301
3302 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
3303 to warn_c90_c99_compat.
3304 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
3305 to -1.
3306
6ae9194f
MLI
33072014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
3308 Steven Bosscher <steven@gcc.gnu.org>
3309
3310 PR c/52952
3311 * c-format.c: Add extra_arg_loc and format_string_loc to struct
3312 format_check_results.
3313 (check_function_format): Use true and add comment for boolean
3314 argument.
3315 (finish_dollar_format_checking): Use explicit location when warning.
3316 (check_format_info): Likewise.
3317 (check_format_arg): Set extra_arg_loc and format_string_loc.
3318 (check_format_info_main): Use explicit location when warning.
3319 (check_format_types): Pass explicit location.
3320 (format_type_warning): Likewise.
3321
8e54f6d3
MLI
33222014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3323
3324 PR fortran/44054
3325 * c-format.c: Handle Fortran flags.
3326
cd4e76fc
IZ
33272014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
3328
3329 PR other/61962
3330 * array-notation-common.c (find_rank): Added handling for other
3331 types of references.
3332
f3bede71
MP
33332014-08-10 Marek Polacek <polacek@redhat.com>
3334
3335 PR c/51849
3336 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
3337 * c.opt (Wc90-c99-compat): Add option.
3338
9f25a338
TS
33392014-08-07 Trevor Saunders <tsaunders@mozilla.com>
3340
3341 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
3342
62e4eb35
MP
33432014-08-03 Marek Polacek <polacek@redhat.com>
3344
3345 * c-common.c (check_case_value): Add location_t parameter. Use it.
3346 (c_add_case_label): Pass loc to check_case_value.
3347
b787e7a2
TS
33482014-08-02 Trevor Saunders <tsaunders@mozilla.com>
3349
3350 * cilk.c: Use hash_map instead of pointer_map.
3351
6e2830c3
TS
33522014-08-02 Trevor Saunders <tsaunders@mozilla.com>
3353
3354 * c-gimplify.c: Use hash_set instead of pointer_set.
3355
a7ee52fb
IZ
33562014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
3357
3358 PR middle-end/61455
3359 * array-notation-common.c (extract_array_notation_exprs): Handling
3360 of DECL_EXPR added.
3361
944fa280
JJ
33622014-08-01 Jakub Jelinek <jakub@redhat.com>
3363
3364 * c-common.h (min_align_of_type): Removed prototype.
3365 * c-common.c (min_align_of_type): Removed.
3366 * c-ubsan.h (ubsan_maybe_instrument_reference,
3367 ubsan_maybe_instrument_member_call): New prototypes.
3368 * c-ubsan.c: Include stor-layout.h and builtins.h.
3369 (ubsan_maybe_instrument_reference_or_call,
3370 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
3371 functions.
3372
b4dfdc11
MG
33732014-07-31 Marc Glisse <marc.glisse@inria.fr>
3374
3375 PR c++/60517
3376 * c.opt (-Wreturn-local-addr): Move to common.opt.
3377
a41844e5
JM
33782014-07-30 Jason Merrill <jason@redhat.com>
3379
3380 PR c++/61659
3381 PR c++/61687
3382 Revert:
3383 * c.opt (-fuse-all-virtuals): New.
3384
976d5a22
TT
33852014-07-30 Tom Tromey <tromey@redhat.com>
3386
3387 PR c/59855
3388 * c.opt (Wdesignated-init): New option.
3389 * c-common.c (c_common_attribute_table): Add "designated_init".
3390 (handle_designated_init): New function.
3391
cdc94aca
MP
33922014-07-24 Marek Polacek <polacek@redhat.com>
3393
3394 PR c/57653
3395 * c-opts.c (c_finish_options): If -imacros is in effect, return.
3396
f41373b6
DS
33972014-07-16 Dodji Seketeli <dodji@redhat.com>
3398
3399 PR preprocessor/60723 - missing system-ness marks for macro tokens
3400 * c-ppoutput.c (struct print::prev_was_system_token): New data
3401 member.
3402 (init_pp_output): Initialize it.
3403 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
3404 (do_line_change): Return a flag saying if a line marker was
3405 emitted or not.
3406 (scan_translation_unit): Detect if the system-ness of the token we
3407 are about to emit is different from the one of the previously
3408 emitted token. If so, emit a line marker. Avoid emitting useless
3409 adjacent line markers. Avoid emitting line markers for tokens
3410 originating from the expansion of built-in macros.
3411 (scan_translation_unit_directives_only): Adjust.
3412
4d661eaa
MP
34132014-07-15 Marek Polacek <polacek@redhat.com>
3414
3415 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
3416 TYPE_MAX_VALUE is NULL.
3417
b108f48f
JJ
34182014-07-14 Jakub Jelinek <jakub@redhat.com>
3419
3420 PR middle-end/61294
3421 * c.opt (Wmemset-transposed-args): New warning.
3422
c0221884
JM
34232014-07-10 Jason Merrill <jason@redhat.com>
3424
3425 PR c++/61659
3426 PR c++/61687
3427 * c.opt (-fuse-all-virtuals): New.
3428
63dfbb95
RB
34292014-07-09 Richard Biener <rguenther@suse.de>
3430
3431 PR c-family/61741
3432 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
3433 using unsigned arithmetic if overflow does not wrap instead of
3434 if overflow is undefined.
3435
773ec47f
MP
34362014-07-06 Marek Polacek <polacek@redhat.com>
3437
3438 PR c/6940
3439 * c.opt (Wsizeof-array-argument): New option.
3440
00a7ba58
JJ
34412014-07-03 Jakub Jelinek <jakub@redhat.com>
3442
b1726d6c 3443 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
00a7ba58
JJ
3444 comments->count <= 1, as comments->entries might be NULL.
3445
52ec0ea3
MP
34462014-07-01 Marek Polacek <polacek@redhat.com>
3447
3448 * c.opt (Wint-conversion): New option.
3449
d5c3d343
MP
34502014-07-01 Marek Polacek <polacek@redhat.com>
3451
3452 PR c/58286
3453 * c.opt (Wincompatible-pointer-types): New option.
3454
6e7ceb17
PC
34552014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
3456
3457 PR c++/51400
3458 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
3459 Do not discard TYPE_QUALS of type.
3460
da73100b
JM
34612014-06-26 Jason Merrill <jason@redhat.com>
3462
3463 * c-common.h (enum cxx_dialect): Add cxx1z.
3464 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
3465 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
3466
08eedf75
TJ
34672014-06-26 Teresa Johnson <tejohnson@google.com>
3468
3469 * c-common.h (get_dump_info): Declare.
3470 * c-gimplify.c (c_genericize): Use saved dump files.
3471 * c-opts.c (c_common_parse_file): Begin and end dumps
3472 once around parsing invocation.
3473 (get_dump_info): New function.
3474
7b56b2f8
MP
34752014-06-23 Marek Polacek <polacek@redhat.com>
3476 Andrew MacLeod <amacleod@redhat.com>
3477
3478 PR c/61553
3479 * c-common.c (get_atomic_generic_size): Don't segfault if the
3480 type doesn't have a size.
3481
0e37a2f3
MP
34822014-06-20 Marek Polacek <polacek@redhat.com>
3483
3484 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
3485 (ubsan_walk_array_refs_r): New function.
3486 (c_genericize): Instrument array bounds.
3487 * c-ubsan.c: Include "internal-fn.h".
3488 (ubsan_instrument_division): Mark instrumented arrays as having
3489 side effects. Adjust ubsan_type_descriptor call.
3490 (ubsan_instrument_shift): Likewise.
3491 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
3492 (ubsan_instrument_bounds): New function.
3493 (ubsan_array_ref_instrumented_p): New function.
3494 (ubsan_maybe_instrument_array_ref): New function.
3495 * c-ubsan.h (ubsan_instrument_bounds): Declare.
3496 (ubsan_array_ref_instrumented_p): Declare.
3497 (ubsan_maybe_instrument_array_ref): Declare.
3498
34992014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
3500
3501 PR lto/61123
3502 * c.opt (fshort-enums): Add to LTO.
3503 * c.opt (fshort-wchar): Likewise.
3504
5c3d09f7
MP
35052014-06-16 Marek Polacek <polacek@redhat.com>
3506
3507 PR c/60439
3508 * c.opt (Wswitch-bool): Add Var.
3509
9cf32741
JJ
35102014-06-12 Jakub Jelinek <jakub@redhat.com>
3511
3512 PR middle-end/61486
3513 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
3514 #pragma omp target teams or
3515 #pragma omp {,target }teams distribute simd.
3516
62984918
JM
35172014-06-12 Jason Merrill <jason@redhat.com>
3518
3519 * c.opt (Wabi=, fabi-compat-version): New.
3520 * c-opts.c (c_common_handle_option): Handle -Wabi=.
3521 (c_common_post_options): Handle flag_abi_compat_version default.
3522 Disallow -fabi-compat-version=1.
3523 * c-common.h (abi_version_crosses): New.
3524
f961457f
JH
35252014-06-11 Jan Hubicka <hubicka@ucw.cz>
3526
adfac8df 3527 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
3528 section names that are no longer trees.
3529
92d28cbb
JJ
35302014-06-10 Jakub Jelinek <jakub@redhat.com>
3531
3532 PR fortran/60928
3533 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
3534 (omp_pragmas): ... back here.
3535
742938c9
MP
35362014-06-05 Marek Polacek <polacek@redhat.com>
3537
3538 PR c/49706
3539 * c-common.c (warn_logical_not_parentheses): New function.
3540 * c-common.h (warn_logical_not_parentheses): Declare.
3541 * c.opt (Wlogical-not-parentheses): New option.
3542
9d548dfb
MP
35432014-06-04 Marek Polacek <polacek@redhat.com>
3544
3545 PR c/30020
3546 * c-common.c (check_case_bounds): Add location parameter.
3547 Use it.
3548 (c_add_case_label): Pass loc to check_case_bounds.
3549
fedfecef
MP
35502014-06-03 Marek Polacek <polacek@redhat.com>
3551
3552 PR c/60439
3553 * c.opt (Wswitch-bool): New option.
3554
f6a7cffc
TS
35552014-05-22 Thomas Schwinge <thomas@codesourcery.com>
3556
040d18b6
TS
3557 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
3558 Remove prototypes.
3559 (record_types_used_by_current_var_decl): Move prototype to where
3560 it belongs.
3561
f6a7cffc
TS
3562 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
3563 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
3564 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
3565
632f2871
RS
35662014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
3567
3568 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
3569 * c-common.c (c_common_nodes_and_builtins): Don't initialize
3570 void_zero_node.
3571 * c-pretty-print.c (pp_c_void_constant): New function.
3572 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
3573 (c_pretty_printer::expression): Handle VOID_CST.
3574 * cilk.c (extract_free_variables): Likewise.
3575 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
3576 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
3577
766090c2
TS
35782014-05-17 Trevor Saunders <tsaunders@mozilla.com>
3579
3580 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
3581 * c-pragma.c (push_alignment): Adjust.
3582 (handle_pragma_push_options): Likewise.
3583
661a0813
MP
35842014-05-09 Marek Polacek <polacek@redhat.com>
3585
3586 PR c/50459
3587 * c-common.c (check_user_alignment): Return -1 if alignment is error
3588 node.
3589 (handle_aligned_attribute): Don't call default_conversion on
3590 FUNCTION_DECLs.
3591 (handle_vector_size_attribute): Likewise.
3592 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
3593 (handle_sentinel_attribute): Call default_conversion and allow even
3594 integral types as an argument.
3595
2793eeab
MP
35962014-05-08 Marek Polacek <polacek@redhat.com>
3597
3598 PR c/61053
3599 * c-common.c (min_align_of_type): New function factored out from...
3600 (c_sizeof_or_alignof_type): ...here.
3601 * c-common.h (min_align_of_type): Declare.
3602
f827930a
MP
36032014-05-08 Marek Polacek <polacek@redhat.com>
3604
3605 PR c/61077
3606 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
3607 parameter type of main.
3608
ca49b74e
DD
36092014-05-07 DJ Delorie <dj@redhat.com>
3610
3611 * c-cppbuiltin.c (print_bits_of_hex): New.
3612 (builtin_define_type_minmax): Print values using hex so as not to
3613 require a pre-computed list of string values.
3614
1d60af08
KZ
36152014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
3616 Mike Stump <mikestump@comcast.net>
3617 Richard Sandiford <rdsandiford@googlemail.com>
3618
3619 * c-ada-spec.c: Include wide-int.h.
3620 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
3621 (dump_generic_ada_node): Use wide-int interfaces.
3622 * c-common.c: Include wide-int-print.h.
3623 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
3624 (pointer_int_sum): Use wide-int interfaces.
3625 (c_common_nodes_and_builtins): Use make_int_cst.
3626 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
3627 (handle_alloc_size_attribute): Use wide-int interfaces.
3628 (get_nonnull_operand): Likewise.
3629 * c-format.c (get_constant): Use tree_fits_uhwi_p.
3630 * c-lex.c: Include wide-int.h.
3631 (narrowest_unsigned_type): Take a widest_int rather than two
3632 HOST_WIDE_INTs.
3633 (narrowest_signed_type): Likewise.
3634 (interpret_integer): Update accordingly. Use wide-int interfaces.
3635 (lex_charconst): Use wide-int interfaces.
3636 * c-pretty-print.c: Include wide-int.h.
3637 (pp_c_integer_constant): Use wide-int interfaces.
3638 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
3639 INT_CST_LT_UNSIGNED.
3640
b15458be
RB
36412014-05-06 Richard Biener <rguenther@suse.de>
3642
3643 * c-opts.c (c_common_post_options): For -freestanding,
3644 -fno-hosted and -fno-builtin disable pattern recognition
3645 if not enabled explicitely.
3646
6577374e
MP
36472014-05-02 Marek Polacek <polacek@redhat.com>
3648
3649 * c.opt (Wsizeof-pointer-memaccess): Describe option.
3650
d00887e8
MP
36512014-05-01 Marek Polacek <polacek@redhat.com>
3652
3653 PR c/43245
3654 * c.opt (Wdiscarded-qualifiers): Add.
3655
f8ed5150
MP
36562014-04-30 Marek Polacek <polacek@redhat.com>
3657
3658 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
3659 INT_MIN / -1 sanitization only for integer types.
3660
45484dcf
MP
36612014-04-25 Marek Polacek <polacek@redhat.com>
3662
3663 PR c/18079
3664 * c-common.c (handle_noinline_attribute): Warn if the attribute
3665 conflicts with always_inline attribute.
3666 (handle_always_inline_attribute): Warn if the attribute conflicts
3667 with noinline attribute.
3668
38e514c0
MP
36692014-04-25 Marek Polacek <polacek@redhat.com>
3670
3671 PR c/60156
3672 * c-common.c (check_main_parameter_types): Warn about variadic main.
3673
44875f92
MS
36742014-04-24 Mike Stump <mikestump@comcast.net>
3675
3676 * c.opt (Wshadow-ivar): Default to on.
3677
dcaaa5a0
DP
36782014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
3679
3680 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
3681
c07d7c02
MP
36822014-04-23 Marek Polacek <polacek@redhat.com>
3683
3684 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
3685
1c33c9b7
JJ
36862014-04-22 Jakub Jelinek <jakub@redhat.com>
3687
3688 PR sanitizer/60275
3689 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
3690 if flag_sanitize_undefined_trap_on_error.
3691 (ubsan_instrument_division, ubsan_instrument_shift,
3692 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
3693 if !flag_sanitize_recover.
3694
793c625f
MG
36952014-04-22 Marc Glisse <marc.glisse@inria.fr>
3696
3697 PR libstdc++/43622
3698 * c-common.c (registered_builtin_types): Make non-static.
3699 * c-common.h (registered_builtin_types): Declare.
3700
b0f1bf36
RB
37012014-04-14 Richard Biener <rguenther@suse.de>
3702 Marc Glisse <marc.glisse@inria.fr>
3703
3704 PR c/60819
3705 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
3706 apply may-alias the scalar pointer type when applicable.
3707
3b07fa4a
IZ
37082014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
3709
3710 PR middle-end/60467
3711 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
3712 as possible argument for Cilk_spawn.
3713
cbbd2b1c
TB
37142014-04-11 Tobias Burnus <burnus@net-b.de>
3715
3716 PR c/60194
3717 * c.opt (Wformat-signedness): Add
3718 * c-format.c(check_format_types): Use it.
3719
6415bd5d
JM
37202014-04-11 Jason Merrill <jason@redhat.com>
3721
3722 PR c++/57926
3723 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
3724 default_conversion for an array argument.
3725
6525783a
MP
37262014-04-08 Marek Polacek <polacek@redhat.com>
3727
3728 PR sanitizer/60745
3729 * c-ubsan.c: Include asan.h.
3730 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
3731
880a467b
NS
37322014-04-03 Nathan Sidwell <nathan@codesourcery.com>
3733
3734 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
3735
7b59ff2d
MP
37362014-04-02 Marek Polacek <polacek@redhat.com>
3737
3738 * c-common.h (c_expand_expr): Remove declaration.
3739
8edbfaa6
JJ
37402014-03-28 Jakub Jelinek <jakub@redhat.com>
3741
3742 PR c++/60689
3743 * c-common.c (add_atomic_size_parameter): When creating new
3744 params vector, push the size argument first.
3745
07d72e1d
JJ
37462014-03-26 Jakub Jelinek <jakub@redhat.com>
3747
3748 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
3749 ubsan_instrument_vla, ubsan_instrument_return): Adjust
3750 ubsan_create_data callers.
3751
b35e0fa0
JJ
37522014-03-22 Jakub Jelinek <jakub@redhat.com>
3753
3754 PR debug/60603
3755 * c-opts.c (c_finish_options): Restore cb_file_change call to
3756 <built-in>.
3757
39a1ebb3
JJ
37582014-03-13 Jakub Jelinek <jakub@redhat.com>
3759
3760 PR middle-end/36282
3761 * c-pragma.c (apply_pragma_weak): Only look at
3762 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
3763 DECL_ASSEMBLER_NAME_SET_P (decl).
3764 (maybe_apply_pending_pragma_weaks): Exit early if
3765 vec_safe_is_empty (pending_weaks) rather than only when
3766 !pending_weaks.
3767 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
3768 set assembler name back to NULL afterwards.
3769
a07f6ed2
JM
37702014-03-11 Jason Merrill <jason@redhat.com>
3771
3772 * c.opt: Add -std=gnu++14.
3773
75b107f5
IB
37742014-03-11 Ian Bolton <ian.bolton@arm.com>
3775
3776 * c-opts.c (c_common_post_options): Don't override
3777 -ffp-contract=fast if unsafe-math-optimizations is on.
3778
f42c637e
PM
37792014-03-08 Paulo Matos <paulo@matos-sorge.com>
3780
22b15758 3781 * c.opt: Enable LTO FE for fshort-double.
f42c637e 3782
70e24808
JM
37832014-03-07 Jason Merrill <jason@redhat.com>
3784
3785 * c.opt: Add -std=c++14.
3786
3af9c5e9
MP
37872014-03-06 Marek Polacek <polacek@redhat.com>
3788
3789 PR c/60197
3790 * cilk.c (contains_cilk_spawn_stmt): New function.
3791 (contains_cilk_spawn_stmt_walker): Likewise.
3792 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
3793 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
3794
b3bdf019
JJ
37952014-03-03 Jakub Jelinek <jakub@redhat.com>
3796
3797 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
3798 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
3799 even when flag_preprocess_only.
3800
ca7e759d
JM
38012014-02-26 Jason Merrill <jason@redhat.com>
3802
3803 PR c++/59231
3804 PR c++/11586
3805 * c-common.c (shorten_compare): Don't check
3806 c_inhibit_evaluation_warnings.
3807
28e41874
JJ
38082014-02-19 Jakub Jelinek <jakub@redhat.com>
3809
cca615af
JJ
3810 PR c/37743
3811 * c-common.c (c_common_nodes_and_builtins): When initializing
3812 c_uint{16,32,64}_type_node, also set corresponding
3813 uint{16,32,64}_type_node to the same value.
3814
28e41874
JJ
3815 PR c++/60267
3816 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
3817 for PRAGMA_IVDEP if flag_preprocess_only.
3818
c2bf53a1
JJ
38192014-02-12 Jakub Jelinek <jakub@redhat.com>
3820
3821 PR c/60101
3822 * c-common.c (merge_tlist): If copy is true, call new_tlist,
3823 if false, add ADD itself, rather than vice versa.
3824 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
3825 copy. For SAVE_EXPR, only call merge_tlist once.
3826
8fcbce72
JJ
38272014-02-08 Jakub Jelinek <jakub@redhat.com>
3828
3829 PR middle-end/60092
3830 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
3831 and tree_to_uhwi.
3832 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
3833 functions.
3834 (c_common_attribute_table): Add alloc_align and assume_aligned
3835 attributes.
3836
0a756a3f
MP
38372014-02-06 Marek Polacek <polacek@redhat.com>
3838
3839 PR c/60087
3840 * c-common.c (warn_for_sign_compare): Call warning_at with location
3841 instead of warning.
3842
7ec4847a
MP
38432014-02-05 Marek Polacek <polacek@redhat.com>
3844
3845 PR c/53123
3846 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
3847 statement.
3848
66f20604
MP
38492014-02-04 Marek Polacek <polacek@redhat.com>
3850
3851 PR c/60036
3852 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
3853 SAVE_EXPR.
3854
5d77fb19
MG
38552014-02-03 Marc Glisse <marc.glisse@inria.fr>
3856
3857 PR c++/53017
3858 PR c++/59211
3859 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
3860 handle_vector_size_attribute, handle_nonnull_attribute): Call
3861 default_conversion on the attribute argument.
3862 (handle_nonnull_attribute): Increment the argument number.
3863
81e5eca8
MP
38642014-01-31 Marek Polacek <polacek@redhat.com>
3865
3866 PR c/59963
3867 * c-common.c (add_atomic_size_parameter): Pass vNULL to
3868 build_function_call_vec.
3869 (resolve_overloaded_builtin): Likewise.
3870 * c-common.h (build_function_call_vec): Adjust declaration.
3871
68fca595
MP
38722014-01-30 Marek Polacek <polacek@redhat.com>
3873
3874 PR c/59940
3875 * c-common.h (unsafe_conversion_p): Adjust declaration.
3876 (warnings_for_convert_and_check): Likewise.
3877 (convert_and_check): Likewise.
3878 * c-common.c (unsafe_conversion_p): Add location parameter. Call
3879 expansion_point_location_if_in_system_header on it.
3880 (warnings_for_convert_and_check): Add location parameter. Call
3881 expansion_point_location_if_in_system_header on it. Use it.
3882 (convert_and_check): Add location parameter. Use it.
3883 (conversion_warning): Likewise.
3884 (c_add_case_label): Adjust convert_and_check calls.
3885 (scalar_to_vector): Adjust unsafe_conversion_p calls.
3886
b72271b9
BI
38872014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
3888
3889 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
3890 flag_cilkplus.
3891 * c-pragma.c (init_pragma): Likewise.
3892 * c.opt: Likewise.
3893
393e8e8b
MP
38942014-01-23 Marek Polacek <polacek@redhat.com>
3895
3896 PR c/59846
3897 * c-common.c (shorten_compare): Add location_t parameter.
3898 * c-common.h (shorten_binary_op): Adjust declaration.
3899
f04dda30
MP
39002014-01-23 Marek Polacek <polacek@redhat.com>
3901
3902 PR c/58346
3903 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
3904 * c-common.h: Declare it.
3905
621955cb
EB
39062014-01-20 Eric Botcazou <ebotcazou@adacore.com>
3907
3908 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
3909 * c-ada-spec.c (dump_ads): Likewise.
3910 (cpp_check): Likewise.
3911 (dump_ada_specs): Likewise.
3912
39132014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
3914
3915 PR c++/49718
3916 * c-common.c (handle_no_instrument_function_attribute): Allow
3917 no_instrument_function attribute in class member
3918 definition/declaration.
3919
241f845a
JJ
39202014-01-15 Jakub Jelinek <jakub@redhat.com>
3921
3922 PR c/58943
3923 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
3924 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
3925 being COMPOUND_EXPR.
3926 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
3927 operand a SAVE_EXPR and second MODIFY_EXPR.
3928
e83b8e2e
JJ
39292014-01-09 Jakub Jelinek <jakub@redhat.com>
3930
3931 PR target/58115
3932 * c-pch.c (c_common_write_pch): Call
3933 prepare_target_option_nodes_for_pch.
3934
23a5b65a
RS
39352014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3936
3937 Update copyright years
3938
f9030485
RS
39392014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3940
3941 * array-notation-common.c, c-cilkplus.c: Use the standard form for
3942 the copyright notice.
3943
f2aa696b
EB
39442013-12-28 Eric Botcazou <ebotcazou@adacore.com>
3945
3946 * c-ada-spec.c (print_constructor): New function.
3947 (print_destructor): Retrieve the origin of the destructor.
3948 (print_ada_declaration): Revamp handling of constructors/destructors.
3949
3f8257db 39502013-12-23 Stuart Hastings <stuart@apple.com>
1f26ac87
JM
3951 Bill Maddox <maddox@google.com>
3952 Jason Merrill <jason@redhat.com>
3953
3954 * c.opt: Add -fdeclone-ctor-dtor.
3955 * c-opts.c (c_common_post_options): Default to on iff -Os.
3956
41958c28
BI
39572013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
3958
3959 * c-common.c (c_common_attribute_table): Added "cilk simd function"
3960 attribute.
3961 * c-pragma.h (enum pragma_cilk_clause): Remove.
3962 (enum pragma_omp_clause): Added the following fields:
3963 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
3964 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
3965 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
3966 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
3967 PRAGMA_CILK_CLAUSE_UNIFORM.
3968
b1726d6c 3969
12893402
BI
39702013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
3971
3972 * cilk.c (cilk_outline): Made this function non-static.
3973 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
3974 (create_cilk_wrapper): Added a new parameter: a function pointer.
3975 (c_install_body_w_frame_cleanup): Remove
3976 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
3977 * c-common.h (cilk_outline): New prototype.
3978 (gimplify_cilk_spawn): Removed two parameters.
3979 (cilk_install_body_with_frame_cleanup): New prototype.
3980 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
3981 CILK_SPAWN_STMT case.
3982
085b42ed
BS
39832013-12-11 Bernd Schmidt <bernds@codesourcery.com>
3984
2ce064c3
BS
3985 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
3986
085b42ed
BS
3987 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
3988 (int_array_type_node): Remove.
3989 * c-common.c (c_common_nodes_and_builtins): Don't build it.
3990
9e36c9ed
MP
39912013-12-05 Marek Polacek <polacek@redhat.com>
3992
3993 PR c/52023
3994 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
3995 [ADJUST_FIELD_ALIGN].
3996
296674db
JM
39972013-12-04 Joseph Myers <joseph@codesourcery.com>
3998
3999 PR c/52023
4000 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
4001 and check field alignment if set.
4002 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
4003 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
4004
b1726d6c 40052013-12-04 Jakub Jelinek <jakub@redhat.com>
31e071ae
MP
4006 Marek Polacek <polacek@redhat.com>
4007
4008 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
4009 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
4010
d7947e19
L
40112013-11-29 H.J. Lu <hongjiu.lu@intel.com>
4012
4013 PR c/59309
4014 * cilk.c (gimplify_cilk_spawn): Properly handle function without
4015 arguments.
4016
fad7652e
JJ
40172013-11-29 Jakub Jelinek <jakub@redhat.com>
4018
4019 PR c/59280
4020 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
4021 goto invalid. If it is error_mark_node, don't issue further
4022 diagnostics.
4023
8b5e1202
SO
40242013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
4025
4026 * c.opt (Wopenmp-simd): New.
4027
0a508bb6
JJ
40282013-11-22 Jakub Jelinek <jakub@redhat.com>
4029
4030 * c-ubsan.h (ubsan_instrument_return): New prototype.
4031 * c-ubsan.c (ubsan_instrument_return): New function.
4032
2fb9a547
AM
40332013-11-22 Andrew MacLeod <amacleod@redhat.com>
4034
4035 * c-common.c: Add required include files from gimple.h.
4036 * c-gimplify.c: Likewise
4037 * cilk.c: Likewise
4038
8400e75e
DM
40392013-11-22 David Malcolm <dmalcolm@redhat.com>
4040
4041 * c-common.c (unsafe_conversion_p): Remove use of
4042 EXPR_LOC_OR_HERE macro.
4043 (conversion_warning): Likewise.
4044 (warnings_for_convert_and_check): Likewise.
4045 (warn_for_collisions_1): Likewise.
4046 (shorten_compare): Likewise, and remove use of in_system_header
4047 macro, using the location from the former.
4048 * c-lex.c (dump_one_header): Remove use of input_filename macro.
4049 (cb_def_pragma): Remove use of in_system_header macro.
4050 (lex_string): Likewise.
4051 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
4052
eb1ce453
KZ
40532013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
4054 Mike Stump <mikestump@comcast.net>
4055 Richard Sandiford <rdsandiford@googlemail.com>
4056
4057 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
4058 instead of TREE_INT_CST_LOW, in cases where there is a protecting
4059 tree_fits_shwi_p or tree_fits_uhwi_p.
4060 (dump_generic_ada_node): Likewise.
4061 * c-format.c (check_format_arg): Likewise.
4062 * c-pretty-print.c (pp_c_integer_constant): Likewise.
4063
6b3b8c27
KZ
40642013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
4065
4066 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
4067
49b0aa18
JC
40682013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
4069
4070 PR c/53001
4071 * c-common.c (unsafe_conversion_p): Make this function
4072 return an enumeration with more detail.
4073 (conversion_warning): Use the new return type of
4074 unsafe_conversion_p to separately warn either about conversions
4075 that lower floating point number precision or about the other
4076 kinds of conversions.
4077 * c-common.h (enum conversion_safety): New enumeration.
8e745a17
JJ
4078 (unsafe_conversion_p): switching return type to
4079 conversion_safety enumeration.
49b0aa18
JC
4080 * c.opt: Adding new warning -Wfloat-conversion and
4081 enabling it with -Wconversion.
4082
b826515a
BS
40832013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
4084
8e745a17
JJ
4085 * c-opts.c: Include plugin.h.
4086 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
b826515a 4087
b9a55b13
MP
40882013-11-19 Marek Polacek <polacek@redhat.com>
4089
4090 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
4091 call.
4092 (ubsan_instrument_shift): Likewise.
4093 (ubsan_instrument_vla): Likewise.
4094
7d362f6c
RS
40952013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4096
4097 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
4098 cast to unsigned type.
4099
386b1f1f
RS
41002013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4101
4102 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
4103 tree_low_cst.
4104 (complete_array_type): Update comment to refer to tree_to_[su]hwi
4105 rather than tree_low_cst.
4106
ae7e9ddd
RS
41072013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4108
4109 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
4110 tree_to_uhwi throughout.
4111
9439e9a1
RS
41122013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4113
4114 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
4115 tree_low_cst (..., 0) with tree_to_shwi throughout.
4116
cc269bb6
RS
41172013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4118
4119 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
4120 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
4121
9541ffee
RS
41222013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4123
4124 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
4125 host_integerp (..., 0) with tree_fits_shwi_p throughout.
4126
c02065fc
AH
41272013-11-15 Aldy Hernandez <aldyh@redhat.com>
4128
4129 * c-cilkplus.c: New file.
4130 * c-common.c (readonly_error): Add location argument.
4131 * c-common.h (readonly_error): Same.
4132 (c_finish_cilk_clauses): Protoize.
4133 (c_check_cilk_loop): Same.
4134 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
4135 Do not fail on error_mark_node.
4136 Abstract increment canonicalization to here...
4137 (c_omp_for_incr_canonicalize_ptr): New.
4138 c-pragma.c (init_pragma): Register "simd" pragma.
4139 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
4140 (enum pragma_cilk_clause): New.
4141
9cc65f15
RS
41422013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
4143
4144 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
4145 wchar_type and host_integerp checks.
4146
18f429e2
AM
41472013-11-14 Andrew MacLeod <amacleod@redhat.com>
4148
4149 * c-common.c: Likewise.
4150 * c-gimplify.c: Likewise.
4151 * cilk.c: Likewise.
4152
d8a2d370
DN
41532013-11-14 Diego Novillo <dnovillo@google.com>
4154
4155 * c-common.c: Include fold-const.h.
4156 Include stor-layout.h.
4157 Include calls.h.
4158 Include stringpool.h.
4159 Include attribs.h.
4160 Include varasm.h.
4161 Include trans-mem.h.
4162 * c-cppbuiltin.c: Include stor-layout.h.
4163 Include stringpool.h.
4164 * c-format.c: Include stringpool.h.
4165 * c-lex.c: Include stringpool.h.
4166 Include stor-layout.h.
4167 * c-pragma.c: Include stringpool.h.
4168 Include attribs.h.
4169 Include varasm.h.
4170 Include gcc-symtab.h.
4171 * c-pretty-print.c: Include stor-layout.h.
4172 Include attribs.h.
4173 * cilk.c: Include stringpool.h.
4174 Include calls.h.
4175
38b7bc7f
JM
41762013-11-13 Joseph Myers <joseph@codesourcery.com>
4177
4178 * c-common.h (enum rid): Add RID_AUTO_TYPE.
4179 * c-common.c (c_common_reswords): Add __auto_type.
4180 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
4181
45b0be94
AM
41822013-11-12 Andrew MacLeod <amacleod@redhat.com>
4183
18f429e2
AM
4184 * c-common.c: Include gimplify.h.
4185 * c-gimplify.c: Likewise.
4186 * cilk.c: Likewise.
4187 * c-omp.c: Include gimple-expr.h instead of gimple.h.
4188 * c-ubsan.c: Don't include gimple.h.
45b0be94 4189
582d9b50
JM
41902013-11-12 Joseph Myers <joseph@codesourcery.com>
4191
4192 * c-common.c (c_common_reswords): Add _Thread_local.
4193
6b28e197
JM
41942013-11-09 Joseph Myers <joseph@codesourcery.com>
4195
4196 * c-common.c (atomic_size_supported_p): New function.
4197 (resolve_overloaded_atomic_exchange)
4198 (resolve_overloaded_atomic_compare_exchange)
4199 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
4200 Use it instead of comparing size with a local list of sizes.
4201
267bac10
JM
42022013-11-07 Andrew MacLeod <amacleod@redhat.com>
4203 Joseph Myers <joseph@codesourcery.com>
4204
4205 * c-common.h (enum rid): Add RID_ATOMIC.
4206 * c-common.c (c_common_reswords): Add _Atomic.
4207 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
4208 (keyword_is_type_qualifier): Accept RID_ATOMIC.
4209 * c-format.c (check_format_types): Check for extra _Atomic
4210 qualifiers in format argument.
4211 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
4212 (pp_c_type_qualifier_list): Mention _Atomic in comment.
4213
5157b91e
TB
42142013-11-06 Tobias Burnus <burnus@net-b.de>
4215
4216 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
4217
6dbe0958
JM
42182013-11-06 Joseph Myers <joseph@codesourcery.com>
4219
4220 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
4221 standards modes.
4222 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
4223 to mean lack of IEEE 754 support.
4224
e8ff5196
TB
42252013-11-05 Tobias Burnus <burnus@net-b.de>
4226
4227 * c.opt (-Wdate-time): New option
4228 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
4229
254a0760
JM
42302013-11-05 Joseph Myers <joseph@codesourcery.com>
4231
4232 * c-cppbuiltin.c (cpp_iec_559_value): Test
4233 flag_excess_precision_cmdline not flag_excess_precision.
4234
6d7f7e0a
TB
42352013-11-05 Tobias Burnus <burnus@net-b.de>
4236
4237 * c.opt (fopenmp-simd): New option.
4238 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
4239 (omp_pragmas): ... this new struct.
4240 (c_pp_lookup_pragma): Also walk omp_pragmas.
4241 (init_pragma): Init pragmas for -fopenmp-simd.
4242
55a7f02f
MP
42432013-11-04 Marek Polacek <polacek@redhat.com>
4244
4245 PR c++/58979
4246 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
4247
9193fb05
JM
42482013-11-04 Joseph Myers <joseph@codesourcery.com>
4249
4250 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
4251 New functions.
4252 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
4253
94159ecf
EB
42542013-11-04 Eric Botcazou <ebotcazou@adacore.com>
4255
4256 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
4257 (dump_ada_specs): Adjust prototype of second callback.
4258 * c-ada-spec.c (cpp_check): New global variable.
4259 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
4260 (print_generic_ada_decl): Likewise.
4261 (has_static_fields): Change return type to bool and add guard.
4262 (has_nontrivial_methods): New predicate.
4263 (is_tagged_type): Change return type to bool.
4264 (separate_class_package): Call has_nontrivial_methods.
4265 (pp_ada_tree_identifier): Minor tweaks.
4266 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
4267 (dump_ada_array_domains): Likewise.
4268 (dump_ada_array_type): Likewise.
4269 (dump_template_types): Remove cpp_check parameter and do not pass it to
4270 dump_generic_ada_node.
4271 (dump_ada_template): Likewise.
4272 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
4273 recursively.
4274 (print_ada_methods): Change return type to integer. Remove cpp_check
4275 parameter and do not pass it down.
4276 (dump_nested_types): Remove cpp_check parameter and do not pass it to
4277 dump_generic_ada_node.
4278 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
4279 accessing methods.
4280 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
4281 down. Use has_nontrivial_methods to recognize C++ classes. Use return
4282 value of print_ada_methods.
4283 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
4284 Set cpp_check to it before invoking dump_ada_nodes.
4285 (dump_ada_specs): Likewise.
4286
b906f4ca
MP
42872013-11-03 Marek Polacek <polacek@redhat.com>
4288
4289 * c-ubsan.c: Don't include hash-table.h.
4290 (ubsan_instrument_vla): New function.
4291 * c-ubsan.h: Declare it.
4292
5e20cdc9
DM
42932013-10-31 David Malcolm <dmalcolm@redhat.com>
4294
4295 Automated part of renaming of symtab_node_base to symtab_node.
4296
4297 Patch autogenerated by rename_symtab.py from
4298 https://github.com/davidmalcolm/gcc-refactoring-scripts
4299 revision 58bb219cc090b2f4516a9297d868c245495ee622
4300
4301 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
4302 symtab_node_base to symtab_node.
4303
7057e645
ESR
43042013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
4305
8e745a17 4306 Implement C++14 digit separators.
7057e645
ESR
4307 * c-lex.c (interpret_float): Remove digit separators from scratch string
4308 before building real literal.
4309
193ea7bc
JJ
43102013-10-30 Jakub Jelinek <jakub@redhat.com>
4311
4312 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
4313
939b37da
BI
43142013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
4315
4316 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
4317 fields.
4318 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
4319 enabled.
4320 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
4321 (insert_cilk_frame): New prototype.
4322 (cilk_init_builtins): Likewise.
4323 (gimplify_cilk_spawn): Likewise.
4324 (c_cilk_install_body_w_frame_cleanup): Likewise.
4325 (cilk_detect_spawn_and_unwrap): Likewise.
4326 (cilk_set_spawn_marker): Likewise.
4327 (build_cilk_sync): Likewise.
4328 (build_cilk_spawn): Likewise.
4329 * cilk.c: New file.
4330
67348ccc
DM
43312013-10-29 David Malcolm <dmalcolm@redhat.com>
4332
4333 Patch autogenerated by refactor_symtab.py from
4334 https://github.com/davidmalcolm/gcc-refactoring-scripts
4335 revision 58bb219cc090b2f4516a9297d868c245495ee622
4336
4337 * c-gimplify.c (c_genericize): Update for conversion of symtab types
4338 to a true class hierarchy.
4339 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
4340
d570872d
RS
43412013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
4342
4343 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
4344
98906124
JL
43452013-10-26 Jeff Law <law@redhat.com>
4346
adfac8df
JJ
4347 * c-common.c (c_define_builtins): Remove mudflap support.
4348 * c.opt: Ignore and warn for mudflap options.
98906124 4349
d73749df 43502013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
4351
4352 PR other/33426
4353 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
4354 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
4355
3f04b1bb
JM
43562013-10-23 Jason Merrill <jason@redhat.com>
4357
4358 * c-format.c (gcc_cxxdiag_char_table): Add %X.
4359
acf0174b
JJ
43602013-10-11 Jakub Jelinek <jakub@redhat.com>
4361
acd15a28
JJ
4362 * c-common.h (omp_clause_mask::operator !=): New method.
4363 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
4364 instead of if (mask & something) tests everywhere.
4365
acf0174b
JJ
4366 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
4367 201307 instead of 201107.
4368 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
4369 (c_common_attribute_table): Add "omp declare target" and
4370 "omp declare simd" attributes.
4371 (handle_omp_declare_target_attribute,
4372 handle_omp_declare_simd_attribute): New functions.
4373 * c-omp.c: Include c-pragma.h.
4374 (c_finish_omp_taskgroup): New function.
4375 (c_finish_omp_atomic): Add swapped argument, if true,
4376 build the operation first with rhs, lhs arguments and use NOP_EXPR
4377 build_modify_expr.
4378 (c_finish_omp_for): Add code argument, pass it down to make_code.
4379 (c_omp_split_clauses): New function.
4380 (c_split_parallel_clauses): Removed.
4381 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
4382 c_omp_declare_simd_clauses_to_decls): New functions.
4383 * c-common.h (omp_clause_mask): New type.
4384 (OMP_CLAUSE_MASK_1): Define.
4385 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
4386 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
4387 omp_clause_mask::operator |, omp_clause_mask::operator &,
4388 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
4389 omp_clause_mask::operator ==): New methods.
4390 (enum c_omp_clause_split): New.
4391 (c_finish_omp_taskgroup): New prototype.
4392 (c_finish_omp_atomic): Add swapped argument.
4393 (c_finish_omp_for): Add code argument.
4394 (c_omp_split_clauses): New prototype.
4395 (c_split_parallel_clauses): Removed.
4396 (c_omp_declare_simd_clauses_to_numbers,
4397 c_omp_declare_simd_clauses_to_decls): New prototypes.
4398 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
4399 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
4400 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
4401 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
4402 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
4403 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
4404 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
4405 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
4406 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
4407 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
4408 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
4409 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
4410 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
4411 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
4412 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
4413 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
4414 PRAGMA_OMP_CLAUSE_UNIFORM.
4415
826cacfe
MG
44162013-10-09 Marc Glisse <marc.glisse@inria.fr>
4417
4418 PR tree-optimization/20318
4419 * c-common.c (handle_returns_nonnull_attribute): New function.
4420 (c_common_attribute_table): Add returns_nonnull.
4421
2284b034
MG
44222013-10-03 Marc Glisse <marc.glisse@inria.fr>
4423
4424 PR c++/19476
4425 * c.opt (fcheck-new): Move to common.opt.
4426
b56e9788
MP
44272013-09-25 Marek Polacek <polacek@redhat.com>
4428 Jakub Jelinek <jakub@redhat.com>
4429
4430 PR sanitizer/58413
4431 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
4432 an expression if we can prove it is correct.
4433 (ubsan_instrument_division): Likewise. Remove unnecessary
4434 check.
4435
ce6923c5
MP
44362013-09-18 Marek Polacek <polacek@redhat.com>
4437
4438 PR sanitizer/58411
4439 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
4440 Declare it.
4441 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
4442
fb5610fb
IS
44432013-09-14 Iain Sandoe <iain@codesourcery.com>
4444
4445 PR target/48094
4446 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
4447 fobjc-gc, freplace-objc-classes): Accept for LTO.
4448
88b0e79e
JC
44492013-09-13 Jacek Caban <jacek@codeweavers.com>
4450
4451 * c-target.def: New hook
4452
c9b0866a
PC
44532013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
4454
4455 PR c++/43452
4456 * c.opt (Wdelete-incomplete): Add.
4457
0af94e6f
JR
44582013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
4459
4460 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
4461 (vector_types_compatible_elements_p): New function.
4462 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
4463 declaration.
4464 (vector_types_compatible_elements_p): Declare.
4465
7c26172c
GDR
44662013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
4467
4468 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
4469 a virtual member function.
4470 (pp_simple_type_specifier): Remove.
4471 (pp_c_type_specifier): Likewise.
4472 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
4473 Rename from pp_c_type_specifier. Adjust.
4474 (c_pretty_printer::c_pretty_printer): Do not assign to
4475 simple_type_specifier.
4476
20059c8b
GDR
44772013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
4478
4479 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
4480 member function.
4481 (c_pretty_printer::storage_class_specifier): Likewise.
4482 (c_pretty_printer::initializer): Likewise.
4483 (pp_declaration): Remove.
4484 (pp_declaration_specifiers): Likewise.
4485 (pp_abstract_declarator): Likewise.
4486 (pp_declarator): Likewise.
4487 (pp_type_id): Likewise.
4488 (pp_statement): Likewise.
4489 (pp_constant): Likewise.
4490 (pp_id_expression): Likewise.
4491 (pp_primary_expression): Likewise.
4492 (pp_unary_expression): Likewise.
4493 (pp_multiplicative_expression): Likewise.
4494 (pp_conditional_expression): Likewise.
4495 (pp_assignment_expression): Likewise.
4496 (pp_expression): Likewise.
4497 (pp_c_type_id): Likewise.
4498 (pp_c_storage_class_specifier): Likewise.
4499 * c-pretty-print.c (pp_c_type_cast): Tidy.
4500 (pp_c_pointer): Likewise.
4501 (pp_c_type_specifier): Likewise.
4502 (pp_c_parameter_type_list): Likewise.
4503 (pp_c_function_definition): Likewise.
4504 (pp_c_init_declarator): Likewise.
4505 (pp_c_initializer_list): Likewise.
4506 (pp_c_constructor_elts): Likewise.
4507 (c_pretty_printer::direct_abstract_declarator): Likewise.
4508 (c_pretty_printer::declaration_specifiers): Likewise.
4509 (c_pretty_printer::primary_expression): Likewise.
4510 (c_pretty_printer::postfix_expression): Likewise.
4511 (c_pretty_printer::type_id): Rename from pp_c_type_id.
4512 (c_pretty_printer::storage_class_specifier): Rename from
4513 pp_c_storage_class_specifier.
4514 (c_pretty_printer::initializer): Rename from pp_c_initializer.
4515 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
4516 storage_class_specifier, initializer, offset_list, flags.
4517
de5a5fa1
MP
45182013-08-30 Marek Polacek <polacek@redhat.com>
4519
4520 * c-ubsan.c: New file.
4521 * c-ubsan.h: New file.
4522
8f0e4d72
GDR
45232013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
4524
4525 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
4526 member function.
4527 (c_pretty_printer::declaration_specifiers): Likewise.
4528 (c_pretty_printer::declarator): Likewise.
4529 (c_pretty_printer::abstract_declarator): Likewise.
4530 (c_pretty_printer::direct_abstract_declarator): Likewise.
4531 (c_pretty_printer::direct_declarator): Likewise.
4532 (c_pretty_printer::function_specifier): Likewise.
4533 (pp_declaration): Adjust.
4534 (pp_declaration_specifiers): Likewise.
4535 (pp_abstract_declarator): Likewise.
4536 (pp_direct_declarator): Likewise.
4537 (pp_function_specifier): Likewise.
4538 (pp_direct_abstract_declarator): Remove as unused.
4539 (pp_c_declaration): Remove.
4540 (pp_c_declaration_specifiers): Likewise.
4541 (pp_c_declarator): Likewise.
4542 (pp_c_direct_declarator): Likewise.
4543 (pp_c_function_specifier): Likewise.
4544 (pp_c_direct_abstract_declarator): Likewise.
4545 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
4546 from pp_c_abstract_declarator. Adjust.
4547 (c_pretty_printer::direct_abstract_declarator): Rename from
4548 pp_c_direct_abstract_declarator. Adjust.
4549 (c_pretty_printer::function_specifier): Rename from
4550 pp_c_function_specifier. Adjust.
4551 (c_pretty_printer::declaration_specifiers): Rename from
4552 pp_c_declaration_specifiers. Adjust.
4553 (c_pretty_printer::direct_declarator): Rename from
4554 pp_c_direct_declarator. Adjust.
4555 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
4556 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
4557 (c_pretty_printer::c_pretty_printer): Do not assign to
4558 declaration, declaration_specifiers, declarator,
4559 direct_declarator, direct_abstract_declarator, function_specifier.
4560
00d34d3a
GDR
45612013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
4562
4563 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
4564 virtual member function.
4565 (c_pretty_printer::multiplicative_expression): Likewise.
4566 (c_pretty_printer::conditional_expression): Likewise.
4567 (c_pretty_printer::assignment_expression): Likewise.
4568 (c_pretty_printer::expression): Likewise.
4569 (pp_unary_expression): Adjust.
4570 (pp_multiplicative_expression): Likewise.
4571 (pp_assignment_expression): Likewise.
4572 (pp_conditional_expression): Likewise.
4573 (pp_expression): Likewise.
4574 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
4575 from pp_c_unary_expression. Adjust.
4576 (c_pretty_printer::multiplicative_expression): Rename from
4577 pp_c_multiplicative_expression. Adjust.
4578 (c_pretty_printer::conditional_expression): Rename from
4579 pp_c_conditional_expression. Adjust.
4580 (c_pretty_printer::assignment_expression): Rename from
4581 pp_c_assignment_expression. Adjust.
4582 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
4583 (c_pretty_printer::c_pretty_printer): Do not assign to
4584 unary_expression, multiplicative_expression,
4585 conditional_expression, expression.
4586
fb22178f
GDR
45872013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4588
4589 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
4590 virtual member function.
4591 (pp_postfix_expression): Adjust.
4592 (pp_c_postfix_expression): Remove.
4593 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
4594 from pp_c_postfix_expression. Adjust.
4595 (c_pretty_printer::c_pretty_printer): Do not assign to
4596 postfix_expression.
4597
7ecc2600
GDR
45982013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4599
4600 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
4601 virtua member function.
4602 (pp_primary_expression): Adjust.
4603 (pp_c_primary_expression): Remove.
4604 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
4605 from pp_c_primary_expression. Adjust.
4606 (pp_c_initializer_list): Use pp_primary_expression.
4607 (c_pretty_printer::c_pretty_printer): Do not assign to
4608 primary_expression.
4609
0691175f
GDR
46102013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4611
4612 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
4613 * c-pretty-print.c (M_): Remove.
4614 (c_pretty_printer::translate_string): Define.
4615 (pp_c_type_specifier): Use it.
4616 (pp_c_primary_expression): Likewise.
4617 (pp_c_expression): Likewise.
4618
66dfe4c4
GDR
46192013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
4620
4621 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
4622 virtual function.
4623 (pp_c_id_expression): Remove.
4624 (pp_id_expression): Adjust.
4625 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
4626 pp_c_id_expression. Adjust.
4627 (pp_c_postfix_expression): Use pp_id_expression.
4628 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
4629
ca43e9d5
GDR
46302013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
4631
4632 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
4633 member function.
4634 (pp_constant): Adjust.
4635 (pp_c_constant): Remove.
4636 * c-pretty-print.c (c_pretty_printer::constant): Rename from
4637 pp_c_constant. Adjust.
4638 (pp_c_constant)
4639 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
4640 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
4641
da6ca2b5
GDR
46422013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
4643
4644 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
4645 (c_pretty_printer::c_pretty_printer): Declare.
4646 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
4647 c_pretty_printer_init. Adjust.
4648 (print_c_tree): Do not call c_pretty_printer_init.
4649 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
4650
65a372f4
AC
46512013-08-09 Arnaud Charlet <charlet@adacore.com>
4652
4653 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
4654
fd9b0f32
PC
46552013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
4656
4657 PR c++/58080
4658 * c-common.c (pointer_int_sum): Add bool parameter.
4659 * c-common.h (pointer_int_sum): Adjust declaration.
4660
e0aec1e9
GDR
46612013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
4662
4663 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
4664 c_pretty_printer variable.
4665
b066401f
GDR
46662013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
4667
4668 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
4669 (pp_base): Remove.
4670 (pp_c_base): Likewise. Adjust users.
4671 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
4672 (pp_c_whitespace): Do not call pp_base.
4673 (pp_c_left_paren): Likewise.
4674 (pp_c_right_paren): Likewise.
4675 (pp_c_left_brace): Likewise.
4676 (pp_c_right_brace): Likewise.
4677 (pp_c_left_bracket): Likewise.
4678 (pp_c_right_bracket): Likewise.
4679 (pp_c_dot): Likewise.
4680 (pp_c_ampersand): Likewise.
4681 (pp_c_star): Likewise.
4682 (pp_c_arrow): Likewise.
4683 (pp_c_semicolon): Likewise.
4684 (pp_c_complement): Likewise.
4685 (pp_c_exclamation): Likewise.
4686 (pp_c_direct_declarator): Likewise.
4687 (pp_c_ws_string): Likewise.
4688 (pp_c_identifier): Likewise.
4689 (pp_c_statement): Likewise.
4690 (print_c_tree): Likewise.
4691
65e5a578
ESR
46922013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
4693
4694 PR c++/58072
4695 * c-common.c (c_parse_error): Catch user-defined literal tokens and
4696 provide useful error strings.
4697
137a1a27
GDR
46982013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
4699
4700 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
4701 printer functions instead of pp_string or operators and punctuators.
4702 (dump_generic_ada_node): Likewise.
4703 * c-pretty-print.c (pp_c_type_specifier): Likewise.
4704 (pp_c_relational_expression): Likewise.
4705 (pp_c_logical_or_expression): Likewise.
4706
07838b13
GDR
47072013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
4708
4709 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
4710 functions instead of pp_character.
4711 (pp_ada_tree_identifier): Likewise.
4712 (dump_ada_double_name): Likewise.
4713 (dump_ada_function_declaration): Likewise.
4714 (dump_ada_array_domains): Likewise.
4715 (dump_template_types): Likewise.
4716 (dump_generic_ada_node): Likewise.
4717 (print_ada_declaration): Likewise.
4718 (print_ada_struct_decl): Likewise.
4719 * c-pretty-print.c (pp_c_integer_constant): Likewise.
4720
433cc7b0
TT
47212013-07-23 Tom Tromey <tromey@redhat.com>
4722
4723 * c-common.h (enum rid) <RID_GENERIC>: New constant.
4724 * c-common.c (c_common_reswords): Add _Generic.
4725
688010ba
OB
47262013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
4727
4728 * c-common.c: Fix typos.
4729 * c-common.h: Likewise.
4730
2a99e5e6
LL
47312013-07-13 Lubos Lunak <l.lunak@suse.cz>
4732
4733 PR c++/55203
4734 * c-common.c (c_common_attribute_table): Add warn_unused.
4735 (handle_warn_unused_attribute): New.
4736
c26302d5
JJ
47372013-07-10 Jakub Jelinek <jakub@redhat.com>
4738
4739 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
4740 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
4741
dfeadaa0
PC
47422013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
4743
4744 PR c++/57869
4745 * c.opt: Add Wconditionally-supported.
4746
6a2fa4b2
GS
47472013-07-08 Graham Stott <graham.stott@btinternet.com>
4748
adfac8df 4749 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
4750 unused variables l_length and l_node.
4751
ecdbd01a 47522013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
4753
4754 PR c/57821
4755 * c-common.c (complete_array_type): Delay folding first index
4756 like other indices. When folding, check for index overflow.
4757
bedc293e
MG
47582013-06-27 Marc Glisse <marc.glisse@inria.fr>
4759
4760 PR c++/57509
4761 * c-common.h (c_build_vec_perm_expr): New complain argument.
4762 * c-common.c (c_build_vec_perm_expr): Likewise.
4763 Use save_expr also in C++.
4764
604b2bfc
GDR
47652013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
4766
4767 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
4768 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
4769 * c-opts.c (c_common_post_options): Likewise.
4770
dfeadaa0 47712013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
4772
4773 * array-notation-common.c (length_mismatch_in_expr): Changed the
4774 parameter type's from a dynamic array to a vec_tree. Also removed
4775 the size parameters.
4776 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
4777 the change above.
4778
2ce86d2e
BI
47792013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
4780
4781 * c-common.h (struct cilkplus_an_parts): New structure.
4782 (struct cilkplus_an_loop_parts): Likewise.
4783 (cilkplus_extract_an_triplets): New prototype.
4784 (fix_sec_implicit_args): Likewise.
4785 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
4786 (fix_sec_implicit_args): Likewise.
604b2bfc 4787
07a6825b
BI
47882013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
4789
4790 * array-notation-common.c (find_inv_trees): Removed an unwanted
4791 typecasting.
4792 * c-common.h (struct inv_list::additional_tcodes): Changed type from
4793 enum rid to enum tree_code.
4794
08346abd
JH
47952013-06-11 Jan Hubicka <jh@suse.cz>
4796
4797 * c-common.c (handle_alias_ifunc_attribute): Do not set
4798 DECL_EXTERNAL for weakref variables.
4799 * c-pragma.c (handle_pragma_weak): Make sure aliases
4800 are not declared as external.
4801
d60f1706
BI
48022013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
4803
4804 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
4805 function from c/c-array-notation.c.
4806 (is_cilkplus_reduce_builtin): Likewise.
4807 (find_rank): Likewise.
4808 (extract_array_notation_exprs): Likewise.
4809 (replace_array_notations): Likewise.
4810 (find_inv_trees): Likewise.
4811 (replace_inv_trees): Likewise.
4812 (contains_array_notation_expr): Likewise.
4813 (find_correct_array_notation_type): Likewise.
4814 * c-common.h (struct inv_list): Moved this struct from the file
4815 c/c-array-notation.c and added a new field called additional tcodes.
4816 (length_mismatch_in_expr_p): New prototype.
4817 (is_cilkplus_reduce_builtin): Likewise.
4818 (find_rank): Likewise.
4819 (extract_array_notation_exprs): Likewise.
4820 (replace_array_notation): Likewise.
4821 (find_inv_trees): Likewise.
4822 (replace_inv_trees): Likewise.
4823 (find_correct_array_notation_type): Likewise.
dfeadaa0 4824
36536d79
BI
48252013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
4826
4827 * c-common.c (c_define_builtins): When cilkplus is enabled, the
4828 function array_notation_init_builtins is called.
4829 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
4830 * c-common.def (ARRAY_NOTATION_REF): New tree.
4831 * c-common.h (build_array_notation_expr): New function declaration.
4832 (build_array_notation_ref): Likewise.
4833 (extract_sec_implicit_index_arg): New extern declaration.
4834 (is_sec_implicit_index_fn): Likewise.
4835 (ARRAY_NOTATION_CHECK): New define.
4836 (ARRAY_NOTATION_ARRAY): Likewise.
4837 (ARRAY_NOTATION_START): Likewise.
4838 (ARRAY_NOTATION_LENGTH): Likewise.
4839 (ARRAY_NOTATION_STRIDE): Likewise.
4840 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
4841 ARRAY_NOTATION_REF.
4842 (pp_c_expression): Likewise.
4843 * c.opt (flag_enable_cilkplus): New flag.
4844 * array-notation-common.c: New file.
4845
f7716d57
JJ
48462013-05-14 Jakub Jelinek <jakub@redhat.com>
4847
4848 PR c++/57274
4849 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
4850
a5e0cd1d
MG
48512013-05-10 Marc Glisse <marc.glisse@inria.fr>
4852
4853 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
4854 vectors.
4855
f6bc1c4a
HS
48562013-05-07 Han Shen <shenhan@google.com>
4857
4858 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
4859
3f12f6e9
SKS
48602013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4861
4862 * c-common.c (check_user_alignment): Emit error for negative values.
4863
61949153
PC
48642013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4865
4866 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
4867
e93e18e9
PC
48682013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4869
4870 * c-cppbuiltin.c (c_cpp_builtins): Do not define
4871 __GXX_EXPERIMENTAL_CXX1Y__.
4872
44d90fe1 48732013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
8e745a17 4874 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
44d90fe1
PC
4875
4876 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
4877 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
4878 to simply use OPT_Wpointer_arith.
4879 (c_sizeof_or_alignof_type): Likewise.
4880
13f39b2e
PC
48812013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4882
4883 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
4884
4b84d650
JJ
48852013-04-12 Jakub Jelinek <jakub@redhat.com>
4886
4887 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
4888 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
4889 specifiers.
4890
fb037b5d
SB
48912013-04-07 Steven Bosscher <steven@gcc.gnu.org>
4892
4893 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
4894
4e856798
PC
48952013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
4896
4897 * c-common.c (pointer_int_sum): Remove dead code.
4898
4b1baac8
RS
48992013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
4900
4901 PR middle-end/56524
4902 * c-common.c (handle_optimize_attribute): Don't call
4903 save_optabs_if_changed.
4904
0b50e654
JJ
49052013-03-05 Jakub Jelinek <jakub@redhat.com>
4906
4907 PR middle-end/56461
4908 * c-pch.c (pch_init): Free target_validity at the end.
4909
48c41403
JJ
49102013-03-04 Jakub Jelinek <jakub@redhat.com>
4911
4912 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
4913
e664c61c
KS
49142013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
4915 Jakub Jelinek <jakub@redhat.com>
4916
4917 PR sanitizer/56454
4918 * c-common.c (handle_no_sanitize_address_attribute): New function.
4919 (c_common_attribute_table): Add no_sanitize_address attribute.
4920 (handle_no_address_safety_analysis_attribute): Add
4921 no_sanitize_address attribute, not no_address_safety_analysis
4922 attribute.
4923
a475fd3d 49242013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
4925
4926 PR target/52555
4927 * c-common.c (handle_optimize_attribute): Call
4928 save_optabs_if_changed.
4929
f6007d99
JJ
49302013-02-18 Jakub Jelinek <jakub@redhat.com>
4931 Steven Bosscher <steven@gcc.gnu.org>
4932
4933 PR pch/54117
4934 * c-opts.c (c_common_post_options): If debug info is enabled
4935 and non-dwarf*, refuse to load PCH files and when writing PCH
4936 file warn.
4937
cf35e2b1
JJ
49382013-02-05 Jakub Jelinek <jakub@redhat.com>
4939
4940 PR middle-end/56167
4941 * c-common.c (handle_error_attribute): Fix condition.
4942
32887460
JJ
49432013-01-30 Jakub Jelinek <jakub@redhat.com>
4944
4945 PR c++/55742
4946 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
4947
5af057d8
JM
49482013-01-18 Jason Merrill <jason@redhat.com>
4949
4950 PR target/54908
4951 * c.opt (-fextern-tls-init): New.
4952 * c-opts.c (c_common_post_options): Handle it.
4953
cc83c823
JJ
49542013-01-09 Jakub Jelinek <jakub@redhat.com>
4955
4956 PR c/48418
4957 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
4958 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
4959 and is either negative or bigger or equal to type precision
4960 of the first operand.
4961
a859517f
MP
49622012-12-03 Marek Polacek <polacek@redhat.com>
4963
4964 PR c/55570
4965 * c-common.c (check_user_alignment): Swap order of tests,
4966 check TREE_CODE first.
4967
2d7aa578
ESR
49682012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
4969
4970 PR c++/52654
4971 * c-common.h (overflow_type): New enum.
4972 (build_userdef_literal): Add overflow_type argument.
4973 (tree_userdef_literal): Add overflow_type.
4974 (USERDEF_LITERAL_OVERFLOW): New access macro.
4975 * c-common.c (build_userdef_literal): Add overflow_type
4976 argument.
4977 * c-lex.c (c_lex_with_flags): Add overflow_type to
4978 build_userdef_literal calls.
4979 (interpret_integer, interpret_float): Add overflow_type argument.
4980
cc3c4f62
RB
49812012-11-28 Richard Biener <rguenther@suse.de>
4982
4983 PR c/35634
4984 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
4985 here and use a type with proper overflow behavior for types that would
4986 need to be promoted for the arithmetic.
4987
77bc5132
JJ
49882012-11-23 Jakub Jelinek <jakub@redhat.com>
4989
4990 PR sanitizer/55435
4991 * c-common.c (handle_no_address_safety_analysis_attribute): New
4992 function.
4993 (c_common_attribute_table): Add no_address_safety_analysis.
4994
5dc99c46
SB
49952012-11-16 Simon Baldwin <simonb@google.com>
4996
4997 * c.opt: Add f[no-]canonical-system-headers.
4998 * c-opts.c (c_common_handle_option): Handle
4999 OPT_fcanonical_system_headers.
5000
a4a0016d
ESR
50012012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
5002
5003 PR c++/54413
5004 * c-opts.c (c_common_handle_option): Set new flags.
5005 * c.opt: Describe new flags.
5006
7dbb85a7
JM
50072012-11-09 Jason Merrill <jason@redhat.com>
5008
5009 * c.opt (Wabi-tag): New.
5010
ad7bac31
AK
50112012-11-09 Andi Kleen <ak@linux.intel.com>
5012
5013 PR 55139
5014 * c-common.c (get_atomic_generic_size): Mask with
8e745a17 5015 MEMMODEL_MASK
ad7bac31 5016
7332899a
MLI
50172012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
5018
5019 PR c/53063
5020 * c.opt (Wformat): Make it Alias Wformat=1.
5021 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
5022 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
5023 LangEnabledBy.
5024 (Wformat=): RejectNegative. Use LangEnabledBy.
5025 (Wnonnull): Use LangEnabledBy.
5026 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
5027 * c-format.c (set_Wformat): Delete.
5028 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
8e745a17
JJ
5029 (maybe_read_dollar_number): Likewise.
5030 (avoid_dollar_number): Likewise.
5031 (finish_dollar_format_checking): Likewise.
5032 (check_format_info): Likewise.
5033 (check_format_info_main): Likewise.
5034 (check_format_types): Likewise.
5035 (format_type_warning): Likewise.
5036 * c-common.c (int): Likewise.
5037 (check_function_sentinel): Likewise.
5038 * c-common.h (warn_format,set_Wformat): Do not declare here.
7332899a 5039
34a180a6
MLI
50402012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
5041
5042 PR c/53063
5043 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
5044 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
5045 Use LangEnabledBy.
5046 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
5047 common.opt.
5048 (Wvariadic-macros): Init(1).
5049 * c-opts.c (c_common_handle_option): Do not handle them
5050 explicitly.
5051 (c_common_post_options): Likewise.
5052 (sanitize_cpp_opts): warn_unused_macros is now
5053 cpp_warn_unused_macros.
5054 (push_command_line_include): Likewise.
5055 * c-common.c (warn_unknown_pragmas): Do not define.
5056 * c-common.h (warn_unknown_pragmas): Do not declare.
5057
3f46d6a5
MLI
50582012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
5059
5060 PR c/51294
5061 * c-common.c (conversion_warning): Handle conditional expressions.
5062
880661a4
JW
50632012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
5064
5065 PR c++/54930
5066 * c.opt (Wreturn_local_addr): Define new option.
5067
4514a96b
JM
50682012-10-25 Jason Merrill <jason@redhat.com>
5069
f14edc1a
JM
5070 * c.opt (Wvirtual-move-assign): New.
5071
4514a96b
JM
5072 * c.opt (Winherited-variadic-ctor): New.
5073
93100c6b
MG
50742012-10-25 Marc Glisse <marc.glisse@inria.fr>
5075
5076 PR c++/54427
5077 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
5078
1efcb8c6
JM
50792012-10-23 Joseph Myers <joseph@codesourcery.com>
5080
5081 * c-common.h (pch_cpp_save_state): Declare.
5082 * c-target.def (c_preinclude): New hook.
5083 * c-opts.c (done_preinclude): New.
5084 (push_command_line_include): Handle default preincluded header.
5085 (cb_file_change): Call pch_cpp_save_state when calling
5086 push_command_line_include.
5087 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
5088 (pch_cpp_save_state): New.
5089 (pch_init): Call pch_cpp_save_state conditionally, instead of
5090 calling cpp_save_state.
5091
4a0ae68e
MLI
50922012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5093
5094 PR c/53063
5095 PR c/40989
5096 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
5097 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
5098 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
5099 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
5100 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
5101 * c-opts.c (c_common_handle_option): Remove explicit handling from
5102 here.
5103 (c_common_post_options): Likewise.
5104
67e4210b
EB
51052012-10-18 Eric Botcazou <ebotcazou@adacore.com>
5106
5107 * c-ada-spec.c (LOCATION_COL): Delete.
5108 (compare_location): New function.
5109 (compare_node): Use it.
5110 (compare_comment): Likewise.
5111
65d4f2cd
MLI
51122012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
5113
5114 PR c/53063
5115 PR c/40989
5116 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
5117 * c-opts.c (c_common_handle_option): Do not set them here. Add
5118 comment.
5119 (c_common_post_options): Likewise.
5120
909881cb
EB
51212012-10-16 Eric Botcazou <ebotcazou@adacore.com>
5122
5123 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
5124 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
5125 Remove POINTER_TYPE handling, add large unsigned handling and use
5126 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
5127
3a785c97
JJ
51282012-10-12 Jakub Jelinek <jakub@redhat.com>
5129
5130 PR c/54381
5131 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
5132 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
5133 locs and array of 3 trees instead of just single loc and single
5134 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
5135 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
5136 For *cmp* builtins that take two sources strings report warnings
5137 about first and second source, not about destination and source.
5138
5e54f81d
MG
51392012-10-12 Marc Glisse <marc.glisse@inria.fr>
5140
5141 PR c++/53055
5142 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
5143
f5b02f1e
EB
51442012-10-11 Eric Botcazou <ebotcazou@adacore.com>
5145
5146 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
5147 declaring something coming from another file.
5148
b46dbc6c
AC
51492012-10-10 Arnaud Charlet <charlet@adacore.com>
5150
f5b02f1e 5151 PR ada/54845
b46dbc6c
AC
5152 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
5153
5d9de0d0
PC
51542012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
5155
5156 PR c++/54194
5157 * c-common.c (warn_about_parentheses): Add location_t parameter;
5158 use EXPR_LOC_OR_LOC.
5159 * c-common.h: Update declaration.
5160
a212e43f
MG
51612012-10-09 Marc Glisse <marc.glisse@inria.fr>
5162
5163 PR c++/54427
5164 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
5165 more operations. Make error messages optional.
5166 * c-common.h (enum stv_conv): Moved from c-typeck.c.
5167 (scalar_to_vector): Declare.
5168
b1db7f91
JM
51692012-10-08 Jason Merrill <jason@redhat.com>
5170
5171 * c-common.c (c_common_reswords): Add thread_local.
5172
e28d52cf
DS
51732012-10-08 Dodji Seketeli <dodji@redhat.com>
5174
5175 PR c++/53528 C++11 attribute support
5176 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
5177 new functions.
5178 * c-common.c (check_cxx_fundamental_alignment_constraints): New
5179 static function.
5180 (handle_aligned_attribute): In choose strictest alignment
5181 among many. Use new check_cxx_fundamental_alignment_constraints.
5182 (handle_transparent_union_attribute): In c++11 attribute syntax,
5183 don't look through typedefs.
5184
3b78de56
AC
51852012-10-04 Arnaud Charlet <charlet@adacore.com>
5186
5187 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
5188 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
5189 out of dumpfile.h.
5190
6040bb5f
DC
51912012-09-25 Dehao Chen <dehao@google.com>
5192
5193 PR middle-end/54645
3b78de56 5194 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
5195 map when read in the pch.
5196
3f8257db 51972012-09-18 Arnaud Charlet <charlet@adacore.com>
0b07a57e
AC
5198
5199 * c-ada-spec.c: Style fixes.
5200
3f8257db 52012012-09-18 Thomas Quinot <quinot@adacore.com>
da5182be
TQ
5202
5203 * c.opt (-fada-spec-parent): Define new command line switch.
5204 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
5205 is specified, generate binding spec as a child of the specified unit.
5206
0ccb505d
PC
52072012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
5208 Manuel López-Ibáñez <manu@gcc.gnu.org>
5209
5210 PR c++/53210
5211 * c.opt ([Winit-self]): Enabled by -Wall in C++.
5212
c583af79
AC
52132012-08-23 Arnaud Charlet <charlet@adacore.com>
5214
5215 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
5216 for pointers, and add missing Convention C pragma.
5217 (print_ada_struct_decl): Add missing aliased keyword.
5218 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
5219
1a4049e7
JJ
52202012-08-17 Jakub Jelinek <jakub@redhat.com>
5221
5222 * c-common.c (sizeof_pointer_memaccess_warning): New function.
5223 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
5224 * c-opts.c (c_common_handle_option): Enable it for -Wall.
5225 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
5226 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
5227
70b5e7dc
RG
52282012-08-10 Richard Guenther <rguenther@suse.de>
5229
5230 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
5231
f8923f7e
SB
52322012-08-07 Steven Bosscher <steven@gcc.gnu.org>
5233
5234 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
5235 instead of separate pp_newline and pp_flush.
5236 (print_c_tree): Likewise.
5237
e45abe1f
RH
52382012-07-26 Richard Henderson <rth@redhat.com>
5239
5240 * c-common.c (handle_hot_attribute): Allow labels.
5241 (handle_cold_attribute): Likewise.
5242
332f1d24
JJ
52432012-07-20 Jakub Jelinek <jakub@redhat.com>
5244
5245 PR c++/28656
5246 * c-common.c (check_function_nonnull): Handle multiple nonnull
5247 attributes properly.
5248
7ee2468b
SB
52492012-07-16 Steven Bosscher <steven@gcc.gnu.org>
5250
5251 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
5252 * c-ada-spec.c: Likewise.
5253 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
5254
ee7b28eb
SB
52552012-07-14 Steven Bosscher <steven@gcc.gnu.org>
5256
5257 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
5258 Remove code conditional on it.
5259
6bdf3519
SB
52602012-07-11 Steven Bosscher <steven@gcc.gnu.org>
5261
5262 * c-gimplify.c: Do not include basic-block.h.
5263 * c-common.c: Do not include linfuncs.h.
5264
532aafad
SB
52652012-07-08 Steven Bosscher <steven@gcc.gnu.org>
5266
5267 * c-common.h: Include tree.h.
5268
8d0d1915
JM
52692012-07-02 Jason Merrill <jason@redhat.com>
5270
5271 PR c++/53524
5272 * c-common.c (get_priority): Call default_conversion.
5273
fbc873ad
UB
52742012-07-01 Uros Bizjak <ubizjak@gmail.com>
5275
5276 * c-pch.c (c_common_write_pch): Remove unused variables.
5277
d4a10d0a
SB
52782012-06-29 Steven Bosscher <steven@gcc.gnu.org>
5279
5280 * cppspec.c: Moved from gcc/ to here.
5281
6f3a2e23
KT
52822012-06-27 Kai Tietz <ktietz@redhat.com>
5283
5284 PR preprocessor/37215
5285 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
5286
8ca92d04
SB
52872012-06-21 Steven Bosscher <steven@gcc.gnu.org>
5288
5289 * c-common.h (c_common_print_pch_checksum): Remove.
5290 * c-pch.c: Do not include output.h.
5291 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
5292 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
5293 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
5294 (struct c_pch_header): Remove.
5295 (get_ident): Update gpch version.
5296 (pch_init): Do not print executable_checksum to asm_out_file.
5297 Do not fail if there is no asm_out_file to read back from. Set
5298 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
5299 (c_common_write_pch): Verify that nothing was written to asm_out_file
5300 since pch_init was called. Do not write a c_pch_header, and do not
5301 copy from asm_out_file to the PCH.
5302 (c_common_read_pch): Do not read a c_pch_header, and do not restore
5303 the content of asm_out_file from the PCH.
5304 (c_common_print_pch_checksum): Remove.
5305 * c-opts.c (c_common_init): Print out executable_checksum directly.
5306
70f42967
SB
53072012-06-19 Steven Bosscher <steven@gcc.gnu.org>
5308
5309 * c-target.def (objc_declare_unresolved_class_reference,
5310 objc_declare_class_definition): Add new hooks.
5311
a8781821
SB
53122012-06-19 Steven Bosscher <steven@gcc.gnu.org>
5313
5314 * c-lex.c: Do not include output.h.
5315 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
5316 Remove uses of ASM_OUTPUT_IDENT.
5317
9e1a8dd1
RR
53182012-06-15 Marc Glisse <marc.glisse@inria.fr>
5319
5320 PR c++/51033
5321 * c-common.h (c_build_vec_perm_expr): Move decl here.
5322 * c-common.c (c_build_vec_perm_expr): Move definition
5323 here.
5324
6f07a821
SB
53252012-06-06 Steven Bosscher <steven@gcc.gnu.org>
5326
5327 * c.opt (fconserve-space): Turn into a no-op.
5328
9faeb493 53292012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
5330
5331 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
5332 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
5333 both the start and end of the function.
5334
a4b7d13c
SB
53352012-06-04 Steven Bosscher <steven@gcc.gnu.org>
5336
5337 * c-common.c: Do not include output.h.
5338 * c-pragma.c: Likewise.
5339
c265f413
SA
53402012-06-04 Steven Bosscher <steven@gcc.gnu.org>
5341
5342 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
5343 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
5344 (lang_decl_name): Handle namespace decls.
5345
be7a421e
SB
53462012-05-31 Steven Bosscher <steven@gcc.gnu.org>
5347
5348 * c-ada-spec.c: Do not include output.h.
5349 * c-semantics.c: Likewise.
5350
65de6659
JM
53512012-05-29 Joseph Myers <joseph@codesourcery.com>
5352
5353 * c-common.c: Fix typo.
5354
ca5f4331
MM
53552012-05-29 Michael Matz <matz@suse.de>
5356
5357 * c-common.h (c_expand_decl): Remove prototype.
5358
4f7f7aca
MLI
53592012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
5360
5361 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
5362 * c-opts.c (c_common_handle_option): Remove code handling
5363 warn_missing_braces.
5364
4a792f9b
PC
53652012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
5366
5367 PR c++/25137
5368 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
5369 -Wmissing_braces.
5370
650dc14a
DS
53712012-05-22 Dodji Seketeli <dodji@redhat.com>
5372
5373 PR c++/53322
5374 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
5375
9b095bf1
MLI
53762012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
5377
5378 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
5379 * c-opts.c (c_common_handle_option): Do not handle explicitly
5380 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
5381
0b2c4be5
DS
53822012-05-16 Dodji Seketeli <dodji@redhat.com>
5383
5384 PR preprocessor/7263
5385 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
5386 to cpp_classify_number. For diagnostics, use the precise location
5387 instead of the global input_location.
5388
a1bde5af
PC
53892012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
5390
d02924ef 5391 PR c++/11856
a1bde5af
PC
5392 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
5393
d1ede5f4
BS
53942012-05-14 Bernd Schmidt <bernds@codesourcery.com>
5395
a1bde5af 5396 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 5397
f2bc201f
MLI
53982012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
5399
5400 PR 53063
5401 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
5402 Wreorder): Use LangEnabledBy.
5403 * c-opts.c (c_common_handle_option): Do not enable them
5404 explicitly. Call lang-specific generated functions.
5405 (c_common_post_options): Do not set them here.
5406
95744782
MLI
54072012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
5408
5409 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
5410 Wmissing-field-initializers,Wmissing-parameter-type,
5411 Wold-style-declaration,Woverride-init): Use EnabledBy.
5412 * c-opts.c (c_common_post_options): Do not set here explicitly.
5413
7d5a5747
MLI
54142012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
5415
5416 PR 53063
5417 * c-opts.c (c_common_handle_option): Use handle_generated_option
5418 to enable sub-options.
5419
5a3c9cf2
PC
54202012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
5421
5422 PR c++/53158
5423 * c-common.c (warnings_for_convert_and_check): Use warning_at.
5424
3ac8781c
RG
54252012-05-10 Richard Guenther <rguenther@suse.de>
5426
5427 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
5428 adjust commentary about TYPE_IS_SIZETYPE types.
5429
1e537948
MLI
54302012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5431
5432 PR c++/53261
5433 * c-common.c (warn_logical_operator): Check that argument of
5434 integer_zerop is not NULL.
5435
f2c4a785
MLI
54362012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
5437
5438 PR c/43772
5439 * c-common.c (warn_logical_operator): Do not warn if either side
5440 is already true or false.
5441
50f305ca
MLI
54422012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
5443
5444 PR c/51712
5445 * c-common.c (expr_original_type): New.
5446 (shorten_compare): Do not warn for enumeration types.
5447
0c3641b0
MLI
54482012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
5449
5450 * c.opt (fpermissive): Add Var(flag_permissive).
5451
7edaa4d2
MG
54522012-04-30 Marc Glisse <marc.glisse@inria.fr>
5453
5454 PR c++/51033
5455 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
5456 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
5457
b9c8da34
DS
54582012-04-30 Dodji Seketeli <dodji@redhat.com>
5459
5460 Add -Wvarargs option
5461 * c.opt (Wvarargs): Define new option.
5462
e6c69da0
MLI
54632012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5464
5465 * c-common.c (check_function_arguments): Replace
5466 Wmissing-format-attribute with Wsuggest-attribute=format.
5467
90137d8f
MLI
54682012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5469
5470 * c.opt (Wsuggest-attribute=format): New. Alias of
5471 Wmissing-format-attribute.
5472 * c-format.c (decode_format_type): Replace
5473 Wmissing-format-attribute with Wsuggest-attribute=format.
5474 (check_function_format): Likewise.
5475
9faeb493 54762012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
5477
5478 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
5479 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
5480 * c.opt: Add Wliteral-suffix.
5481
c1771a20
MLI
54822012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
5483
5484 PR c/44774
5485 * c.opt (Wpedantic): New.
5486 (pedantic): Alias Wpedantic.
5487 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
5488 (c_common_post_options): Likewise.
5489 (sanitize_cpp_opts): Likewise.
5490 * c-lex.c (interpret_float): Likewise.
5491 * c-format.c (check_format_types): Likewise.
5492 * c-common.c (pointer_int_sum): Likewise.
5493 (c_sizeof_or_alignof_type): Likewise.
5494 (c_add_case_label): Likewise.
5495 (c_do_switch_warnings): Likewise.
5496 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
5497
04b391c1
JM
54982012-04-15 Jason Merrill <jason@redhat.com>
5499
5500 PR c++/52818
5501 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
5502 (C_STD_NAME): Distinguish between C++98 and C++11.
5503
ac868f29
EB
55042012-04-11 Eric Botcazou <ebotcazou@adacore.com>
5505
5506 PR target/52624
5507 * c-common.h (uint16_type_node): Rename into...
5508 (c_uint16_type_node): ...this.
5509 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
5510 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
5511
fd4116f4
MLI
55122012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
5513
5514 * c-common.c (warn_if_unused_value): Move definition to here.
5515 * c-common.h (warn_if_unused_value): Move declaration to here.
5516
573ac65e
WB
55172012-03-23 William Bader <williambader@hotmail.com>
5518
5519 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
5520
552b8185
JM
55212012-03-20 Jason Merrill <jason@redhat.com>
5522
5523 * c-common.h (enum cxx_dialect): Add cxx1y.
5524 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
5525 test.
5526 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
5527 * c-opts.c (c_common_post_options): Likewise.
5528 (set_std_cxx1y): New.
5529 (c_common_handle_option): Call it.
5530 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
5531
04398fa8
PC
55322012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
5533
5534 PR c++/14710
5535 * c.opt ([Wuseless-cast]): Add.
5536
d2a12ae7
RG
55372012-03-16 Richard Guenther <rguenther@suse.de>
5538
5539 * c-pretty-print.c (pp_c_initializer_list): Adjust.
5540
a12bf402
MLI
55412012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5542
5543 PR c++/44783
5544 * c.opt (ftemplate-backtrace-limit) Add.
5545
5c30094f
RO
55462012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5547
5548 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
5549 handling.
5550 * c-pragma.c (handle_pragma_extern_prefix): Remove.
5551 (init_pragma): Don't register extern_prefix.
5552
21fa2faf
RG
55532012-03-12 Richard Guenther <rguenther@suse.de>
5554
5555 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
5556 (builtin_type_for_size): Likewise.
5557
e3793c6f
JJ
55582012-02-13 Jakub Jelinek <jakub@redhat.com>
5559
5560 PR c++/52215
5561 * c-common.c (sync_resolve_params): Don't decide whether to convert
5562 or not based on TYPE_SIZE comparison, convert whenever arg_type
5563 is unsigned INTEGER_TYPE.
5564
93286335
PC
55652012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
5566
5567 PR c/52118
5568 * c.opt ([Wunused-local-typedefs]): Fix description.
5569
7a421706
MS
55702012-01-24 Mike Stump <mikestump@comcast.net>
5571
5572 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
5573 exactly.
5574
ba9b1f11
RG
55752012-01-18 Richard Guenther <rguenther@suse.de>
5576
5577 * c-opts.c (c_common_post_options): Reset LTO flags if
5578 we are about to generate a PCH.
5579
465406be
PC
55802012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
5581
5582 PR c++/51777
5583 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
5584 use pp_unsigned_wide_integer.
5585
aee15221
RG
55862012-01-10 Richard Guenther <rguenther@suse.de>
5587
5588 PR middle-end/51806
5589 * c-opts.c (c_common_handle_option): Move -Werror handling
5590 to language independent code.
5591
5720c0dc
RG
55922012-01-05 Richard Guenther <rguenther@suse.de>
5593
5594 PR middle-end/51764
5595 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
5596 from common.opt.
5597
73ac190a
PC
55982011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
5599
5600 PR c++/51316
5601 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
5602 of array types with an unknown bound.
5603
48b0b196
JM
56042011-12-20 Joseph Myers <joseph@codesourcery.com>
5605
5606 * c-common.c (flag_isoc99): Update comment to refer to C11.
5607 (flag_isoc1x): Change to flag_isoc11.
5608 * c-common.h (flag_isoc99): Update comment to refer to C11.
5609 (flag_isoc1x): Change to flag_isoc11.
5610 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
5611 C11.
5612 * c-opts.c (set_std_c1x): Change to set_std_c11.
5613 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
5614 Call set_std_c11.
5615 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
5616 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
5617 * c.opt (std=c1x): Change to std=c11. Document as non-draft
5618 standard.
5619 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
5620 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
5621 (std=gnu1x): Make alias of std=gnu11.
5622
d58d6eb5
JM
56232011-12-19 Jason Merrill <jason@redhat.com>
5624
5625 PR c++/51228
5626 * c-common.c (handle_transparent_union_attribute): Check the first
5627 field if the type is complete.
5628
b3908fcc
JW
56292011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
5630
5631 PR libstdc++/51365
5632 * c-common.c (RID_IS_FINAL): Add.
5633 * c-common.h (RID_IS_FINAL): Add.
5634
fea3ca91
IS
56352011-11-30 Iain Sandoe <iains@gcc.gnu.org>
5636
5637 * c.opt (fgnu-runtime): Provide full description.
5638 (fnext-runtime): Likewise.
5639 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
5640
62bad7cd
AM
56412011-11-28 Andrew MacLeod <amacleod@redhat.com>
5642
5643 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
5644 predefines in one place. Add LOCK_FREE predefines.
5645 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
5646 new func.
5647
c466c4ff
AM
56482011-11-24 Andrew MacLeod <amacleod@redhat.com>
5649
5650 PR c/51256
9faeb493 5651 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 5652 conditions
9faeb493
UB
5653 (resolve_overloaded_atomic_exchange,
5654 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
5655 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
5656 error_mark_node for error conditions.
9faeb493 5657
a5952633
RG
56582011-11-08 Richard Guenther <rguenther@suse.de>
5659
5660 PR middle-end/51010
5661 c-family/
5662
0a35513e
AH
56632011-11-07 Richard Henderson <rth@redhat.com>
5664 Aldy Hernandez <aldyh@redhat.com>
5665 Torvald Riegel <triegel@redhat.com>
5666
5667 Merged from transactional-memory.
5668
5669 * c-common.c (handle_tm_wrap_attribute,
5670 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
5671 (struct c_common_reswords): Added __transaction* keywords.
5672 (struct c_common_attribute_table): Added transaction* and tm_regparm
5673 attributes.
5674 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
5675 masks.
5676 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
5677 find_tm_attribute): Declare.
5678
6d87092d
JM
56792011-11-07 Jason Merrill <jason@redhat.com>
5680
5681 PR c++/35688
5682 * c-common.c, c-common.h: Revert yesterday's changes.
5683
8e7860a1
JM
56842011-11-06 Jason Merrill <jason@redhat.com>
5685
5686 PR c++/35688
5687 * c-common.c (decl_has_visibility_attr): Split out from...
5688 (c_determine_visibility): ...here.
5689 * c-common.h: Declare it.
5690
d19fa6b5
JM
56912011-11-06 Joseph Myers <joseph@codesourcery.com>
5692
5693 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
5694 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
5695 type.
5696 (check_user_alignment): New. Split out of
5697 handle_aligned_attribute. Disallow integer constants with
5698 noninteger types. Conditionally allow zero.
5699 (handle_aligned_attribute): Use check_user_alignment.
5700 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
5701
86951993
AM
57022011-11-06 Andrew MacLeod <amacleod@redhat.com>
5703 Richard Henderson <rth@redhat.com>
5704
5705 Merged from cxx-mem-model.
5706
5707 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 5708 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
5709 parameters that are the same type size.
5710 (get_atomic_generic_size): New. Find size of generic
5711 atomic function parameters and do typechecking.
5712 (add_atomic_size_parameter): New. Insert size into parameter list.
5713 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
5714 either __atomic_exchange_n or external library call.
9faeb493 5715 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 5716 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 5717 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
5718 __atomic_load_n or an external library call.
5719 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
5720 __atomic_store_n or an external library call.
5721 (resolve_overloaded_builtin): Handle new __atomic builtins.
5722
cf9e9959
EB
57232011-11-04 Eric Botcazou <ebotcazou@adacore.com>
5724
5725 PR c++/50608
5726 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
5727 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
5728 <INDIRECT_REF>: Return the argument.
5729 <ARRAY_REF>: Remove special code for negative offset.
5730 Call fold_build_pointer_plus instead of size_binop.
5731 (fold_offsetof): Remove STOP_REF argument and adjust.
5732 * c-common.h (fold_offsetof_1): Declare.
5733 (fold_offsetof): Remove STOP_REF argument.
5734
25339f10
JM
57352011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
5736
5737 PR c++/50810
5738 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
5739 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
5740 Wnarrowing for C++0x and C++98.
5741 * c.opt ([Wnarrowing]): Update.
5742
89401152
PC
57432011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
5744
5745 PR c++/44277
5746 * c.opt: Add Wzero-as-null-pointer-constant.
5747
97e3ad20
JM
57482011-10-31 Jason Merrill <jason@redhat.com>
5749
15694fdd
JM
5750 * c.opt (-fdeduce-init-list): Off by default.
5751
97e3ad20
JM
5752 PR c++/50920
5753 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
5754 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
5755 and -Wc++11-compat.
5756 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
5757
fb9120e3
RAV
57582011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
5759
5760 PR c++/30066
5761 * c.opt (fvisibility-inlines-hidden): Description change.
5762
3ce4f9e4
ESR
57632011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
5764
5765 Implement C++11 user-defined literals.
5766 * c-common.c (build_userdef_literal): New.
5767 * c-common.def: New tree code.
5768 * c-common.h (tree_userdef_literal): New tree struct and accessors.
5769 * c-lex.c (interpret_float): Add suffix parm.
5770 (c_lex_with_flags): Build literal tokens.
5771
5f53c243
PC
57722011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
5773
5774 PR c++/50841
5775 Revert:
5776 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
5777
5778 PR c++/50810
5779 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
5780 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
5781 Wnarrowing for C++0x and C++98.
5782 * c.opt ([Wnarrowing]): Update.
5783
263734e1
PC
57842011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
5785
5786 PR c++/50810
5787 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
5788 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
5789 Wnarrowing for C++0x and C++98.
5790 * c.opt ([Wnarrowing]): Update.
5791
d2e312d7
PC
57922011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
5793
5794 PR c++/45385
5795 * c-common.c (conversion_warning): Remove code looking for
5796 artificial operands.
5797
d17687f6
DS
57982011-10-18 Dodji Seketeli <dodji@redhat.com>
5799
5800 PR bootstrap/50760
5801 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 5802 !NO_IMPLICIT_EXTERN_C.
d17687f6 5803
fc8396e9
PC
58042011-10-17 Michael Spertus <mike_spertus@symantec.com>
5805
5806 * c-common.c (c_common_reswords): Add __bases,
5807 __direct_bases.
5808 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
5809
58102011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
5811
5812 PR c++/50757
5813 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
5814
847e697a
TT
58152011-10-15 Tom Tromey <tromey@redhat.com>
5816 Dodji Seketeli <dodji@redhat.com>
5817
5818 * c.opt (fdebug-cpp): New option.
5819 * c-opts.c (c_common_handle_option): Handle the option.
5820 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
5821 output stream in parameter. Factorized from ...
5822 (maybe_print_line): ... this. Dump location debug information when
5823 -fdebug-cpp is in effect.
5824 (print_line_1): New static function. Takes an output stream in
5825 parameter. Factorized from ...
5826 (print_line): ... here. Dump location information when -fdebug-cpp
5827 is in effect.
5828 (scan_translation_unit): Dump location information when
5829 -fdebug-cpp is in effect.
5830
92582b75
TT
58312011-10-15 Tom Tromey <tromey@redhat.com>
5832 Dodji Seketeli <dodji@redhat.com>
5833
5834 * c.opt (ftrack-macro-expansion): New option. Handle it with and
5835 without argument.
5836 * c-opts.c (c_common_handle_option)<case
5837 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
5838 cases. Handle -ftrack-macro-expansion with and without argument.
5839
46427374
TT
58402011-10-15 Tom Tromey <tromey@redhat.com>
5841 Dodji Seketeli <dodji@redhat.com>
5842
5843 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
5844 (print_line, cb_define, do_line_change): Adjust to avoid touching
5845 the internals of struct line_map. Use the public API instead.
5846 * c-pch.c (c_common_read_pch): Likewise.
5847 * c-lex.c (fe_file_change): Likewise.
5848
fc8396e9
PC
58492011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
5850
5851 PR c++/17212
5852 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
5853
58542011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
5855
5856 PR c++/33067
5857 * c-pretty-print.c (pp_c_floating_constant): Output
5858 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
5859
e79983f4
MM
58602011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
5861
5862 * c-common.c (def_builtin_1): Delete old interface with two
5863 parallel arrays to hold standard builtin declarations, and replace
5864 it with a function based interface that can support creating
5865 builtins on the fly in the future. Change all uses, and poison
5866 the old names. Make sure 0 is not a legitimate builtin index.
5867 * c-omp.c (c_finish_omp_barrier): Ditto.
5868 (c_finish_omp_taskwait): Ditto.
5869 (c_finish_omp_flush): Ditto.
5870
6637388f
TG
58712011-10-11 Tristan Gingold <gingold@adacore.com>
5872
5873 * c.opt: (fallow-parameterless-variadic-functions): New.
5874
3797cb21
DS
58752011-09-08 Dodji Seketeli <dodji@redhat.com>
5876
5877 PR c++/33255 - Support -Wunused-local-typedefs warning
5878 * c-common.h (struct c_language_function::local_typedefs): New
5879 field.
9faeb493
UB
5880 (record_locally_defined_typedef, maybe_record_typedef_use)
5881 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 5882 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
5883 (maybe_record_typedef_use)
5884 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
5885 * c.opt: Declare new -Wunused-local-typedefs flag.
5886
693ddb1b
EB
58872011-09-06 Eric Botcazou <ebotcazou@adacore.com>
5888
5889 PR middle-end/50266
5890 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
5891 computations.
5892
830c740f
RG
58932011-09-05 Richard Guenther <rguenther@suse.de>
5894
5895 * c-common.c (complete_array_type): Use ssize_int (-1) instead
5896 of integer_minus_one_node for empty array upper bounds.
5897
892a371f
DS
58982011-08-28 Dodji Seketeli <dodji@redhat.com>
5899
5900 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
5901 it's the first time it's being called on this main TU.
5902
0e3fdb48
RB
59032011-08-24 Richard Guenther <rguenther@suse.de>
5904
5905 PR c/49396
5906 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
5907
59082011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
5909
5910 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
5911 defined in cpp_init_builtins and c_cpp_builtins.
5912
d4a83c10
JM
59132011-08-19 Joseph Myers <joseph@codesourcery.com>
5914
5915 * c-common.c (c_common_reswords): Add __builtin_complex.
5916 * c-common.h (RID_BUILTIN_COMPLEX): New.
5917
bbceee64
JM
59182011-08-18 Joseph Myers <joseph@codesourcery.com>
5919
5920 * c-common.c (c_common_reswords): Add _Noreturn.
5921 (keyword_is_function_specifier): Handle RID_NORETURN.
5922 * c-common.h (RID_NORETURN): New.
5923
3f8257db 59242011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
0e3a99ae
AS
5925
5926 * c-common.c (unsafe_conversion_p): New function. Check if it is
5927 unsafe to convert an expression to the type.
5928 (conversion_warning): Adjust, use unsafe_conversion_p.
5929 * c-common.h (unsafe_conversion_p): New function declaration.
5930
20906c66
JJ
59312011-08-02 Jakub Jelinek <jakub@redhat.com>
5932
5933 * c-common.h (c_finish_omp_atomic): Adjust prototype.
5934 (c_finish_omp_taskyield): New prototype.
5935 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
5936 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
5937 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
5938 or RHS1 have side-effects, evaluate those too in the right spot,
5939 if it is a decl and LHS is also a decl, error out if they
5940 aren't the same.
5941 (c_finish_omp_taskyield): New function.
5942 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
5943 * c-pragma.c (omp_pragmas): Add taskyield.
5944 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
5945 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
5946 PRAGMA_OMP_CLAUSE_MERGEABLE.
5947
770e5a2e
DS
59482011-07-25 Dodji Seketeli <dodji@redhat.com>
5949
5950 * c-common.h (set_underlying_type): Remove parm name from
5951 declaration.
5952
1baae426
RG
59532011-07-25 Romain Geissler <romain.geissler@gmail.com>
5954
5955 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 5956
fcb21722
JM
59572011-07-22 Jason Merrill <jason@redhat.com>
5958
76f86d00
JM
5959 PR c++/49793
5960 * c.opt (Wnarrowing): New.
5961
3a636414
JM
5962 PR c++/30112
5963 * c-common.h: Declare c_linkage_bindings.
5964 * c-pragma.c (handle_pragma_redefine_extname): Use it.
5965
fcb21722
JM
5966 PR c++/49813
5967 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
5968 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
5969 as flag_isoc99 for 'restrict'.
5970 (pp_c_specifier_qualifier_list): Likewise for _Complex.
5971
02614448
ILT
59722011-07-21 Ian Lance Taylor <iant@google.com>
5973
5974 PR middle-end/49705
5975 * c-common.c (c_disable_warnings): New static function.
5976 (c_enable_warnings): New static function.
5977 (c_fully_fold_internal): Change local unused_p to bool. Call
5978 c_disable_warnings and c_enable_warnings rather than change
5979 c_inhibit_evaluation_warnings.
5980
34429675
JM
59812011-07-20 Jason Merrill <jason@redhat.com>
5982
5983 PR c++/6709 (DR 743)
5984 PR c++/42603 (DR 950)
5985 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
5986 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
5987 (CPP_DECLTYPE): New.
5988 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
5989
5d49b6a7
RG
59902011-07-19 Richard Guenther <rguenther@suse.de>
5991
5992 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
5993 * c-omp.c (c_finish_omp_for): Likewise.
5994
e84a58ff
EB
59952011-07-12 Eric Botcazou <ebotcazou@adacore.com>
5996
5997 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
5998 body on the next line.
5999
329af3c7
JM
60002011-07-08 Jason Merrill <jason@redhat.com>
6001
4063e61b
JM
6002 PR c++/45437
6003 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
6004
329af3c7
JM
6005 PR c++/49673
6006 * c-common.c (c_apply_type_quals_to_decl): Don't check
6007 TYPE_NEEDS_CONSTRUCTING.
6008
1a072294
RG
60092011-07-06 Richard Guenther <rguenther@suse.de>
6010
6011 * c-common.c (c_common_nodes_and_builtins):
6012 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
6013
fce5dddd
RG
60142011-07-05 Richard Guenther <rguenther@suse.de>
6015
6016 * c-common.c (c_common_nodes_and_builtins): Build all common
6017 tree nodes first.
6018
45d439ac
JJ
60192011-06-27 Jakub Jelinek <jakub@redhat.com>
6020
56300785
JJ
6021 * c-common.h (c_tree_chain_next): New static inline function.
6022
45d439ac
JJ
6023 * c-common.c (check_builtin_function_arguments): Handle
6024 BUILT_IN_ASSUME_ALIGNED.
6025
e0a8ecf2
AM
60262011-06-21 Andrew MacLeod <amacleod@redhat.com>
6027
6028 * c-common.c: Add sync_ or SYNC__ to builtin names.
6029 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
6030
60312011-06-20 Pierre Vittet <piervit@pvittet.com>
6032
6033 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
6034 handler.
6035 (gen_pragma_handler): New union.
6036 (internal_pragma_handler): New type.
6037 (c_register_pragma_with_data)
6038 (c_register_pragma_with_expansion_and_data): New functions.
6039
6040 * c-pragma.c (registered_pragmas, c_register_pragma_1)
6041 (c_register_pragma, c_register_pragma_with_expansion)
6042 (c_invoke_pragma_handler): Changed to work with
6043 internal_pragma_handler.
6044 (c_register_pragma_with_data)
6045 (c_register_pragma_with_expansion_and_data): New functions.
6046
677f3fa8
JM
60472011-06-14 Joseph Myers <joseph@codesourcery.com>
6048
6049 * c-common.c: Include common/common-target.h.
6050 (handle_section_attribute): Use
6051 targetm_common.have_named_sections.
6052 * c-cppbuiltin.c: Include common/common-target.h.
6053 (c_cpp_builtins): Use targetm_common.except_unwind_info.
6054
d7fc8c14
RG
60552011-06-10 Richard Guenther <rguenther@suse.de>
6056
6057 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
6058 to print a IDENTIFIER_NODE.
6059
10e48e39
RO
60602011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6061 Joseph Myers <joseph@codesourcery.com>
6062
6063 * c.opt (fbuilding-libgcc): New option.
6064 * c-cppbuiltin.c (c_cpp_builtins): Define
6065 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
6066
6976ae51
JM
60672011-06-07 Jason Merrill <jason@redhat.com>
6068
3ff60975
JM
6069 * c-common.c (max_tinst_depth): Lower default to 900.
6070
6976ae51
JM
6071 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
6072
009db074
RG
60732011-06-07 Richard Guenther <rguenther@suse.de>
6074
6075 * c-common.c (c_common_nodes_and_builtins): Do not set
6076 size_type_node or call set_sizetype.
6077
b4592b92
DS
60782011-06-07 Dodji Seketeli <dodji@redhat.com>
6079
6080 PR debug/49130
6081 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 6082 type when using pointer comparison to compare types.
b4592b92 6083
014ab419
JW
60842011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
6085
6086 * c.opt: Add -Wdelete-non-virtual-dtor.
6087 * c-opts.c (c_common_handle_option): Include it in -Wall.
6088
4f60111f
NF
60892011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
6090
6091 PR bootstrap/49190
6092
6093 Revert:
6094 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
6095
6096 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
6097 not tree_common.
6098
4cc4f2f4
JJ
60992011-05-27 Jakub Jelinek <jakub@redhat.com>
6100
6101 PR c++/49165
6102 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
6103 C++ don't call c_common_truthvalue_conversion on void type arms.
6104
38e01f9e
NF
61052011-05-27 Nathan Froyd <froydnj@codesourcery.com>
6106
6107 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
6108 (stmt_list_stack): Define.
6109 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
6110 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
6111
92e948a8
NF
61122011-05-26 Nathan Froyd <froydnj@codesourcery.com>
6113
6114 * c-common.c (warning_candidate_p): Check for BLOCKs.
6115
a2fc3e63
NF
61162011-05-26 Nathan Froyd <froydnj@codesourcery.com>
6117
6118 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
6119 not tree_common.
6120
0957c029
JJ
61212011-05-25 Jakub Jelinek <jakub@redhat.com>
6122
6123 * c-common.c (def_fn_type): Remove extra va_end.
6124
828fb3ba
JM
61252011-05-23 Jason Merrill <jason@redhat.com>
6126
6127 PR c++/48106
6128 * c-common.c (c_common_get_narrower): New.
6129 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
6130
dde05067
NF
61312011-05-23 Nathan Froyd <froydnj@codesourcery.com>
6132
6133 * c-common.h (check_function_arguments): Tweak prototype of
6134 check_function_arguments.
6135 * c-common.c (check_function_arguments): Likewise. Adjust
6136 calls to check_function_nonnull, check_function_format, and
6137 check_function_sentinel.
6138 (check_function_sentinel): Take a FUNCTION_TYPE rather than
6139 separate attributes and typelist arguments. Use
6140 FOREACH_FUNCTION_ARGS to iterate over argument types.
6141
3c0d13bf
PC
61422011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
6143
6144 * c-common.c (c_common_reswords): Reorder.
6145 * c-common.h (rid): Likewise.
6146
8242dd04
NF
61472011-05-10 Nathan Froyd <froydnj@codesourcery.com>
6148
6149 * c-common.c (def_fn_type): Don't call build_function_type, call
6150 build_function_type_array or build_varargs_function_type_array
6151 instead.
6152 (c_common_nodes_and_builtins): Likewise.
6153
3d528853
NF
61542011-05-05 Nathan Froyd <froydnj@codesourcery.com>
6155
6156 * c-common.c (c_add_case_label): Omit the loc argument to
6157 build_case_label.
6158 * c-common.h (build_case_label): Remove.
6159 * c-semantics.c (build_case_label): Remove.
6160
a04a722b
JM
61612011-05-05 Joseph Myers <joseph@codesourcery.com>
6162
6163 * c-objc.h (objc_start_method_definition): Update prototype.
6164 * stub-objc.c (objc_start_method_definition): Add extra parameter.
6165
e19a18d4
NF
61662011-05-04 Nathan Froyd <froydnj@codesourcery.com>
6167
6168 * c-common.c (check_main_parameter_types): Reindent. Don't use
6169 TYPE_ARG_TYPES directly.
6170 (handle_nonnull_attribute): Likewise.
6171 (sync_resolve_params): Likewise.
6172 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
6173 to check_format_string.
6174 (handle_format_attribute): Likewise.
6175 (check_format_string): Take a function type to examine instead of
6176 a type list. Use a function_arg_iterator to step through argument
6177 types.
6178
c62c040f
RG
61792011-05-04 Richard Guenther <rguenther@suse.de>
6180
6181 * c-common.c (fix_string_type): Use size_int for index type bounds.
6182 (start_fname_decls): Do not pass NULL to build_int_cst.
6183 (c_init_attributes): Likewise.
6184 * c-lex.c (c_lex_with_flags): Likewise.
6185
c12ff9d8
JM
61862011-04-27 Jason Merrill <jason@redhat.com>
6187
6188 * c-common.c (make_tree_vector_from_list): New.
6189 * c-common.h: Declare it.
6190
304dfbe3
RG
61912011-04-26 Richard Guenther <rguenther@suse.de>
6192
6193 PR preprocessor/48248
6194 * c-ppoutput.c (maybe_print_line): Always optimize newlines
6195 for output size with -P.
6196
3c0d13bf
PC
61972011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
6198
6199 * c-common.c (struct c_common_resword): Add __underlying_type.
6200 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
6201
04695783
JM
62022011-04-20 Jim Meyering <meyering@redhat.com>
6203
6204 * c-format.c (init_dollar_format_checking): Remove useless
6205 if-before-free.
6206
0dc33c3c
NP
62072011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
6208
6209 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 6210 (objc_detect_field_duplicates): New.
0dc33c3c 6211 * stub-objc.c: Likewise.
3c0d13bf 6212
c59633d9
NP
62132011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6214
6215 * stub-objc.c (objc_declare_protocols): Renamed to
6216 objc_declare_protocol.
6217 * c-objc.h: Likewise.
3c0d13bf 6218
32dabdaf
NP
62192011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6220
6221 * stub-objc.c (objc_declare_class): Updated argument name.
6222
81f653d6
NF
62232011-04-12 Nathan Froyd <froydnj@codesourcery.com>
6224
6225 * c-common.h (c_common_init_ts): Declare.
6226 * c-common.c (c_common_init_ts): Define.
6227
eb345401
NP
62282011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6229
6230 * c-objc.h (objc_build_message_expr): Updated prototype.
6231 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 6232
a358e188
MJ
62332011-04-12 Martin Jambor <mjambor@suse.cz>
6234
6235 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
6236 of cgraph_node.
6237
e6313a78
RG
62382011-04-11 Richard Guenther <rguenther@suse.de>
6239
6240 * c-common.c (complete_array_type): Build a range type of
6241 proper type.
6242
dcf0c47e
NF
62432011-04-08 Nathan Froyd <froydnj@codesourcery.com>
6244
6245 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
6246 (handle_type_generic_attribute): Likewise.
6247
1ee44b26
JM
62482011-04-07 Jason Merrill <jason@redhat.com>
6249
6250 PR c++/48450
6251 * c-common.c (c_common_truthvalue_conversion): Don't ignore
6252 conversion from C++0x scoped enum.
6253
acce4e77
JM
62542011-04-06 Joseph Myers <joseph@codesourcery.com>
6255
6256 * c-target-def.h: New file.
6257 * c-target.def: New file.
6258 * c-target.h: New file.
6259 * c-common.c (targetcm): Don't define here.
6260 * c-common.h (default_handle_c_option): Declare.
6261 * c-format.c: Include c-target.h instead of target.h.
6262 * c-opts.c: Include c-target.h instead of target.h. Explicitly
6263 include tm.h.
6264 (default_handle_c_option): Move from targhooks.c.
6265
e2eefb55
JJ
62662011-03-29 Jakub Jelinek <jakub@redhat.com>
6267
6268 PR preprocessor/48248
6269 * c-ppoutput.c (print): Add src_file field.
6270 (init_pp_output): Initialize it.
6271 (maybe_print_line): Don't optimize by adding up to 8 newlines
6272 if map->to_file and print.src_file are different file.
6273 (print_line): Update print.src_file.
6274
ba78087b
KT
62752011-03-25 Kai Tietz <ktietz@redhat.com>
6276
6277 * c-ada-spec.c (compare_comment): Use filename_cmp
6278 instead of strcmp for filename.
6279
0edf1bb2
JL
62802011-03-25 Jeff Law <law@redhat.com>
6281
adfac8df 6282 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 6283
c7dc8804
JM
62842011-03-25 Jason Merrill <jason@redhat.com>
6285
6286 * c.opt: Add -std=c++03.
6287
d1d879b1
EB
62882011-03-22 Eric Botcazou <ebotcazou@adacore.com>
6289
6290 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
6291
3f8257db 62922011-03-17 Kai Tietz <ktietz@redhat.com>
62d784f7
KT
6293
6294 PR target/12171
5050afdf
KT
6295 * c-pretty-print.c (pp_c_specifier_qualifier_list):
6296 Display allowed attributes for function pointer types.
6297 (pp_c_attributes_display): New function to display
6298 attributes having affects_type_identity flag set to true.
6299 * c-pretty-print.h (pp_c_attributes_display): New prototype.
6300
62d784f7
KT
6301 * c-common.c (c_common_attribute_table):
6302 Add new element.
6303 (c_common_format_attribute_table): Likewise.
6304
82d37118
JM
63052011-03-18 Jason Merrill <jason@redhat.com>
6306
49a000c3
JM
6307 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
6308 * c-common.h: Don't declare it here.
6309 * c-common.c: Or define it here.
6310 * c-opts.c (c_common_handle_option): Or set it here.
6311
82d37118
JM
6312 PR c++/35315
6313 * c-common.c (handle_transparent_union_attribute): Don't
6314 make a duplicate type in C++.
6315
17bc631c
JM
63162011-03-15 Jason Merrill <jason@redhat.com>
6317
6318 * c-common.c (max_constexpr_depth): New.
6319 * c-common.h: Declare it.
6320 * c-opts.c (c_common_handle_option): Set it.
6321 * c.opt (fconstexpr-depth): New option.
6322
1b9b91a6
JM
63232011-03-11 Jason Merrill <jason@redhat.com>
6324
f231b5ff
JM
6325 * c-common.c (attribute_takes_identifier_p): Add missing const.
6326
1b9b91a6
JM
6327 PR c++/46803
6328 * c-common.c (attribute_takes_identifier_p): Assume that an
6329 unknown attribute takes an identifier.
6330
a19e4d44
NF
63312011-03-07 Nathan Froyd <froydnj@codesourcery.com>
6332
6333 PR c/47786
6334 * c-common.c (c_type_hash): Call list_length instead of iterating
6335 through DECL_CHAIN. Rename 'i' to 'n_elements'.
6336
982d62f6
JJ
63372011-02-19 Jakub Jelinek <jakub@redhat.com>
6338
6339 PR c/47809
6340 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
6341
0a256240
NP
63422011-02-17 Iain Sandoe <iains@gcc.gnu.org>
6343
6344 * c.opt (fobjc-abi-version=) New.
6345 (fobjc-nilcheck): New.
6346
ba9e6dd5
NF
63472011-02-03 Nathan Froyd <froydnj@codesourcery.com>
6348
6349 PR c++/46890
6350 * c-common.h (keyword_is_decl_specifier): Declare.
6351 * c-common.c (keyword_is_decl_specifier): Define.
6352 (keyword_is_function_specifier): New function.
6353
7273813a
JJ
63542011-01-26 Jakub Jelinek <jakub@redhat.com>
6355
6356 PR c/47473
6357 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
6358 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
6359 REAL_TYPE.
6360
908ef79b
AC
63612011-01-26 Arnaud Charlet <charlet@adacore.com>
6362
6363 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
6364
237e9384
JJ
63652011-01-26 Jakub Jelinek <jakub@redhat.com>
6366
6367 PR pch/47430
6368 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
6369 after init_c_lex if pch_file is set.
6370
47ea1edf
DK
63712011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
6372
d4dba752 6373 PR c++/43601
47ea1edf
DK
6374 * c.opt (-fkeep-inline-dllexport): New switch.
6375
2aa9c6ae
RG
63762011-01-12 Richard Guenther <rguenther@suse.de>
6377
6378 PR middle-end/32511
6379 * c-common.c (handle_weak_attribute): Warn instead of error
6380 on declaring an inline function weak.
6381
7bd11157
TT
63822011-01-05 Tom Tromey <tromey@redhat.com>
6383
6384 * c-common.h (lvalue_error): Update.
6385 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
6386 not error.
6387
0e66e494 63882010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 6389
b4f588c4
NP
6390 PR objc/47075
6391 * c-objc.h (objc_finish_message_expr): Added argument to
6392 prototype.
6393
f4da8dce
NF
63942010-12-22 Nathan Froyd <froydnj@codesourcery.com>
6395
6396 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
6397 Use prototype_p.
6398
46270f14
NP
63992010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
6400
6401 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 6402 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 6403
4816c593
NF
64042010-12-10 Nathan Froyd <froydnj@codesourcery.com>
6405
6406 * c-common.h (readonly_error): Declare.
6407 * c-common.c (readonly_error): Define.
6408
7a6daeb0
NF
64092010-12-09 Nathan Froyd <froydnj@codesourcery.com>
6410
6411 * c-common.h (invalid_indirection_error): Declare.
6412 * c-common.c (invalid_indirection_error): Define.
6413
892f6119
RG
64142010-12-03 Richard Guenther <rguenther@suse.de>
6415
6416 PR c/46745
6417 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
6418 (pp_c_unary_expression): Likewise.
6419 (pp_c_expression): Likewise.
6420
6c39e757
NP
64212010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
6422
6423 * c-common.h (objc_finish_function): New.
6424 (objc_non_volatilized_type): Removed.
6425 (objc_type_quals_match): Removed.
6426 * stub-objc.c (objc_finish_function): New.
6427 (objc_non_volatilized_type): Removed.
6428 (objc_type_quals_match): Removed.
9faeb493 6429
7c475d11
JM
64302010-11-30 Joseph Myers <joseph@codesourcery.com>
6431
6432 * c-common.h (parse_optimize_options): Declare.
6433 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
6434 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
6435
71f3e391
JM
64362010-11-29 Joseph Myers <joseph@codesourcery.com>
6437
6438 * c-opts.c (check_deps_environment_vars): Use getenv instead of
6439 GET_ENVIRONMENT.
6440 * c-pch.c (O_BINARY): Don't define here.
6441 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
6442
d5fabb58
JM
64432010-11-25 Joseph Myers <joseph@codesourcery.com>
6444
6445 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
6446 targetm.except_unwind_info.
6447
299404a1
JM
64482010-11-23 Joseph Myers <joseph@codesourcery.com>
6449
6450 * c-opts.c (c_common_handle_option): Pass location to
6451 set_struct_debug_option.
6452
c98cd5bf
JM
64532010-11-23 Joseph Myers <joseph@codesourcery.com>
6454
6455 * c-common.c (visibility_options): Move from ../opts.c.
6456 * c-common.h (struct visibility_flags, visibility_options):
6457 Declare here.
6458 * c-opts.c (finish_options): Rename to c_finish_options.
6459 (c_common_init): Update call to finish_options.
6460
a9546771
NP
64612010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
6462
6463 PR objc/34033
6464 * c-lex.c (lex_string): Check that each string in an Objective-C
6465 string concat sequence starts with either one or zero '@', and
6466 that there are no spurious '@' signs at the end.
6467
24a57808
JM
64682010-11-20 Joseph Myers <joseph@codesourcery.com>
6469
6470 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
6471 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
6472 HANDLE_PRAGMA_VISIBILITY.
6473 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
6474 HANDLE_PRAGMA_VISIBILITY): Don't define.
6475 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
6476
a9aa2c3a
NF
64772010-11-20 Nathan Froyd <froydnj@codesourcery.com>
6478
6479 PR c++/16189
6480 PR c++/36888
6481 PR c++/45331
6482 * c-common.h (keyword_begins_type_specifier): Declare.
6483 (keyword_is_storage_class_specifier): Declare.
6484 (keyword_is_type_qualifier): Declare.
6485 * c-common.c (keyword_begins_type_specifier): New function.
6486 (keyword_is_storage_class_specifier): New function.
6487 (keyword_is_type_qualifier): Declare.
6488
5386338c
JM
64892010-11-19 Joseph Myers <joseph@codesourcery.com>
6490
6491 PR c/46547
6492 * c-common.c (in_late_binary_op): Define.
6493 (c_common_truthvalue_conversion): Check in_late_binary_op before
6494 calling c_save_expr.
6495 * c-common.h (in_late_binary_op): Declare.
6496
69ccdddb
JM
64972010-11-19 Joseph Myers <joseph@codesourcery.com>
6498
6499 * c-opts.c (c_common_handle_option): Update calls to
6500 set_struct_debug_option.
6501
6b192a09
NP
65022010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
6503
6504 * c-common.h (objc_declare_protocols): Added additional argument.
6505 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 6506
fb52b50a
NF
65072010-11-18 Nathan Froyd <froydnj@codesourcery.com>
6508
6509 PR c/33193
6510 * c-common.h (build_real_imag_expr): Declare.
6511 * c-semantics.c (build_real_imag_expr): Define.
6512
b37421c6
JM
65132010-11-17 Joseph Myers <joseph@codesourcery.com>
6514
6515 * c-opts.c (c_common_parse_file): Take no arguments.
6516 * c-common.h (c_common_parse_file): Update prototype.
6517
07078664
JJ
65182010-11-16 Jakub Jelinek <jakub@redhat.com>
6519
6520 PR c++/46401
6521 * c-common.c (warning_candidate_p): Don't track non-const calls
6522 or STRING_CSTs.
6523
c6a13190
ILT
65242010-11-15 Ian Lance Taylor <iant@google.com>
6525
6526 * c-lex.c (init_c_lex): Set macro debug callbacks if
6527 flag_dump_go_spec is set.
6528
925e8657
NP
65292010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
6530
6531 * c-common.h (objc_build_incr_expr_for_property_ref): New.
6532 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
6533
bb0a9581
NF
65342010-11-15 Nathan Froyd <froydnj@codesourcery.com>
6535
6536 PR preprocessor/45038
6537 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
6538 dialects.
6539
c5fa0890
JM
65402010-11-12 Joseph Myers <joseph@codesourcery.com>
6541
6542 * c-common.h (c_family_lang_mask): Declare.
6543 * c-opts.c (c_family_lang_mask): Make extern.
6544 * c-pragma.c (handle_pragma_diagnostic): Use
6545 control_warning_option.
6546
a4d8c676
JM
65472010-11-12 Joseph Myers <joseph@codesourcery.com>
6548
6549 * c-common.c (parse_optimize_options): Update call to
6550 decode_options.
6551 * c-common.h (c_common_handle_option): Update prototype.
6552 * c-opts.c (c_common_handle_option): Take location_t parameter and
6553 pass it to other functions.
6554
f954bd2c
JM
65552010-11-11 Joseph Myers <joseph@codesourcery.com>
6556
6557 * c-opts.c (warning_as_error_callback): Remove.
6558 (c_common_initialize_diagnostics): Don't call
6559 register_warning_as_error_callback.
6560 (c_common_handle_option): Handle -Werror=normalized= here.
6561
d8a07487
JM
65622010-11-10 Joseph Myers <joseph@codesourcery.com>
6563
6564 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
6565 in diagnostic.
6566 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
6567 letter.
6568 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
6569 Remove trailing '.' from diagnostics.
6570 * c.opt (Wwrite-strings_: Avoid '`' in help text.
6571
d5478783
JM
65722010-11-10 Joseph Myers <joseph@codesourcery.com>
6573
6574 * c-common.c (parse_optimize_options): Pass global_dc to
6575 decode_options.
6576 * c-opts.c (c_common_handle_option): Pass &global_options to
6577 set_Wstrict_aliasing.
6578 * c.opt (v): Don't mark Common or document here.
6579
91ebb981
IS
65802010-11-06 Iain Sandoe <iains@gcc.gnu.org>
6581
6582 PR target/44981
6583 * c-format.c (format_type): New type gcc_objc_string_format_type.
6584 (valid_stringptr_type_p): New.
6585 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 6586 (check_format_string): Pass expected type, use
91ebb981
IS
6587 valid_stringptr_type_p (), check that the format string types are
6588 consistent with the format specification.
6589 (decode_format_attr): Warn if NSString is used outside objective-c.
6590 (format_types_orig): Add NSString.
6591 (format_name): New.
6592 (format_flags): New.
6593 (check_format_arg): Handle format strings requiring an external parser.
6594 first_target_format_type: New variable.
6595 (handle_format_attribute): Set up first_target_format_type, pass the
6596 expected format arg string type to check_format_string().
6597 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
6598 * stub-objc.c (objc_string_ref_type_p): New.
6599 (objc_check_format_arg): New.
6600
bede2adc
NP
66012010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
6602
9faeb493 6603 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
6604 * c-common.h (objc_build_class_component_ref): New.
6605 * stub-objc.c (objc_build_class_component_ref): New.
6606
9a179d01
NP
66072010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
6608
6609 * c.opt (Wproperty-assign-default): New option.
6610
22d8d616
NP
66112010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
6612
6613 Implemented -fobjc-std=objc1 flag.
6614 * c.opt (fobjc-std=objc1): New option.
6615
2debdb4f
NP
66162010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
6617
6618 Implemented format and noreturn attributes for Objective-C methods.
6619 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
6620 attribute for Objective-C methods.
6621
ec52b111
JM
66222010-10-31 Jason Merrill <jason@redhat.com>
6623
6624 * c-common.c (conversion_warning, warn_for_collisions_1): Use
6625 EXPR_LOC_OR_HERE.
6626
46a88c12
NP
66272010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
6628
6629 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
6630 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
6631 (objc_add_property_declaration): Removed arguments for copies and
6632 ivar.
6633 (objc_build_getter_call): Renamed to
6634 objc_maybe_build_component_ref.
6635 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
6636 (objc_is_property_ref): New.
6637 * c-common.c (c_common_reswords): Removed copies and ivar.
6638 * stub-objc.c (objc_add_property_declaration): Removed arguments
6639 for copies and ivar.
6640 (objc_build_getter_call): Renamed to
6641 objc_maybe_build_component_ref.
6642 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
6643 (objc_is_property_ref): New.
9faeb493 6644
1e4bf85b
AC
66452010-10-29 Arnaud Charlet <charlet@adacore.com>
6646 Matthew Gingell <gingell@adacore.com>
6647
6648 * c-ada-spec.c (separate_class_package): New function.
6649 (pp_ada_tree_identifier): Prefix references to C++ classes with the
6650 name of their enclosing package.
6651 (print_ada_declaration): Use separate_class_package.
6652
81f0bab2
JM
66532010-10-27 Jason Merrill <jason@redhat.com>
6654
2b08f2c5
JM
6655 * c-common.c (c_common_reswords): Add __is_literal_type.
6656 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
6657
81f0bab2
JM
6658 * c-common.c (check_case_value): Remove special C++ code.
6659
200290f2
NP
66602010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
6661
6662 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
6663 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
6664 and RID_LAST_PATTR.
6665 (objc_add_property_declaration): Added additional arguments.
6666 (objc_property_attribute_kind): Removed.
6667 (objc_set_property_attr): Removed.
6668 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
6669 copy and nonatomic.
6670 * stub-objc.c (objc_add_property_declaration): Added additional
6671 arguments.
6672 (objc_set_property_attr): Removed.
9faeb493 6673
f614132b
NP
66742010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
6675
6676 * c-common.h (objc_add_property_variable): Renamed to
6677 objc_add_property_declaration. Added location argument.
6678 * stub-objc.c (objc_add_property_variable): Same change.
b1726d6c 6679
b8a18805
NP
66802010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
6681
6682 * c-common.h (objc_maybe_printable_name): New.
6683 * stub-objc.c (objc_maybe_printable_name): New.
6684
3f8257db
JJ
66852010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
6686 Andrew Pinski <pinskia@gmail.com>
30cd1c5d
AS
6687
6688 * c-common.h (c_common_mark_addressable_vec): Declare.
6689 * c-common.c (c_common_mark_addressable_vec): New function.
6690
249a82c4
NP
66912010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
6692
6693 * c-common.h (objc_set_method_type): Removed.
6694 (objc_add_method_declaration): Added boolean argument.
6695 (objc_start_method_definition): Same change.
6696 (objc_build_method_signature): Same change.
6697 * stub-objc.c (objc_set_method_type): Removed.
6698 (objc_add_method_declaration): Added boolean argument.
6699 (objc_start_method_definition): Same change.
6700 (objc_build_method_signature): Same change.
6701
977e30bc
NP
67022010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
6703
6704 * c-common.h (finish_file): Removed.
6705 (objc_write_global_declarations): New.
6706 * c-opts.c (c_common_parse_file): Do not call finish_file.
6707 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 6708
da57d1b9
NP
67092010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
6710
6711 Implemented parsing @synthesize and @dynamic for
6712 Objective-C/Objective-C++.
6713 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
6714 (objc_add_synthesize_declaration): New.
6715 (objc_add_dynamic_declaration): New.
6716 * c-common.c (c_common_reswords): Add synthesize and dynamic.
6717 * stub-objc.c (objc_add_synthesize_declaration): New.
6718 (objc_add_dynamic_declaration): New.
9faeb493 6719
0069111f
MM
67202010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
6721
6722 PR target/46041
6723 * c-cppbuiltin.c (mode_has_fma): Move function here from
6724 builtins.c. Don't use the fma optab, instead just use the
6725 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
6726 using -save-temps.
6727
e426b47b
NP
67282010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
6729
6730 Merge from 'apple/trunk' branch on FSF servers.
0069111f 6731
3f8257db 6732 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
e426b47b 6733
9faeb493 6734 Radar 4330422
e426b47b
NP
6735 * c-common.h (objc_non_volatilized_type): New declaration
6736 * stub-objc.c (objc_non_volatilized_type): New stub.
6737
90fbfdc3
NP
67382010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
6739
e426b47b 6740 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3 6741
3f8257db 6742 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
90fbfdc3 6743
9faeb493 6744 Radar 4133425
90fbfdc3 6745 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 6746 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 6747
c37d8c30
IS
67482010-10-17 Iain Sandoe <iains@gcc.gnu.org>
6749
6750 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
6751 * c-common.h (enum rid): Add RID_AT_PACKAGE.
6752 (objc_ivar_visibility_kind): New enum.
6753 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 6754 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
6755 visibility enum.
6756
1b1562a5
MM
67572010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
6758
6759 * c-cppbuiltin.c (builtin_define_float_constants): Emit
6760 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
6761 has the appropriate fma builtins.
6762 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
6763
668ea4b1
IS
67642010-10-14 Iain Sandoe <iains@gcc.gnu.org>
6765
1b1562a5 6766 merge from FSF apple 'trunk' branch.
3f8257db 6767 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 6768
668ea4b1
IS
6769 Radars 4436866, 4505126, 4506903, 4517826
6770 * c-common.c (c_common_resword): Define @property and its attributes.
6771 * c-common.h: Define property attribute enum entries.
6772 (OBJC_IS_PATTR_KEYWORD): New.
6773 (objc_property_attribute_kind): New enum.
6774 Declare objc_set_property_attr (), objc_add_property_variable (),
6775 objc_build_getter_call () and objc_build_setter_call ().
6776 * stub-objc.c (objc_set_property_attr): New stub.
6777 (objc_add_property_variable): Likewise.
6778 (objc_build_getter_call): Likewise.
6779 (objc_build_setter_call) Likewise.
1b1562a5 6780
a1178b30
IS
67812010-10-13 Iain Sandoe <iains@gcc.gnu.org>
6782
1b1562a5 6783 merge from FSF apple 'trunk' branch.
3f8257db 6784 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
a1178b30
IS
6785
6786 Radar 3803157 (method attributes)
6787 * c-common.c (handle_deprecated_attribute): Recognize
6788 objc methods as valid declarations.
6789 * c-common.h: Declare objc_method_decl ().
1b1562a5 6790 * stub-objc.c (objc_method_decl): New stub.
a1178b30 6791
a75bfaa6
JM
67922010-10-08 Joseph Myers <joseph@codesourcery.com>
6793
6794 * c-common.c (parse_optimize_options): Call
6795 decode_cmdline_options_to_array_default_mask before
6796 decode_options. Update arguments to decode_options.
6797 * c-common.h (c_common_init_options_struct): Declare.
6798 * c-opts.c (c_common_init_options_struct): New. Split out from
6799 c_common_init_options.
6800
f05b9d93
NP
68012010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
6802
6803 Implemented fast enumeration for Objective-C.
6804 * c-common.h (objc_finish_foreach_loop): New.
6805 * stub-objc.c (objc_finish_foreach_loop): New.
6806
1ebe4b4f
JM
68072010-10-05 Joseph Myers <joseph@codesourcery.com>
6808
6809 * c-common.h (struct diagnostic_context): Don't declare here.
6810 (c_common_initialize_diagnostics): Declare using
6811 diagnostic_context typedef.
6812 * c-opts.c (c_common_handle_option): Pass global_dc to
6813 handle_generated_option.
6814
d4d24ba4
JM
68152010-10-04 Joseph Myers <joseph@codesourcery.com>
6816
6817 * c-opts.c (c_common_handle_option): Pass &global_options_set to
6818 handle_generated_option.
6819
478a1c5b
ILT
68202010-10-03 Ian Lance Taylor <iant@google.com>
6821
6822 * c.opt (-fplan9-extensions): New option.
6823
82a1c2fe
FXC
68242010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6825
6826 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
6827 Remove.
6828 (c_cpp_builtins): Call functions from cppbuiltin.c instead
6829 of duplicating code.
6830
92902b1b
IS
68312010-09-30 Iain Sandoe <iains@gcc.gnu.org>
6832
6833 * c-common.c: Add two new entries for @optional
6834 and @required keywords.
6835
6836 merge from FSF 'apple/trunk' branch.
3f8257db 6837 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
92902b1b
IS
6838
6839 Radar 4386773
6840 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
6841 objective-c keywords.
6842 (objc_set_method_opt): New declaration.
6843 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 6844
46625112
JM
68452010-09-30 Joseph Myers <joseph@codesourcery.com>
6846
6847 * c-common.c (handle_optimize_attribute): Pass &global_options to
6848 cl_optimization_save and cl_optimization_restore.
6849 * c-opts.c (c_common_handle_option): Pass &global_options to
6850 handle_generated_option.
6851 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
6852 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
6853 &global_options to cl_optimization_restore.
6854
49b91f05
NP
68552010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
6856
6857 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
6858 Objective-C/Objective-C++ keywords.
6859
13ed556f 68602010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 6861
9faeb493
UB
6862 Merge from 'apple/trunk' branch on FSF servers.
6863
3f8257db 6864 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
a6341d57
NP
6865
6866 Radar 4281748
6867 * c-common.h (objc_check_global_decl): New declaration.
6868 * stub-objc.c (objc_check_global_decl): New stub.
6869
f0036cca
JM
68702010-09-29 Joseph Myers <joseph@codesourcery.com>
6871
6872 * c.opt: Don't use VarExists.
6873
e3339d0f
JM
68742010-09-29 Joseph Myers <joseph@codesourcery.com>
6875
6876 * c-common.c (c_cpp_error): Update names of diagnostic_context
6877 members.
6878 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
6879 cl_optimization members.
6880 * c-opts.c (warning_as_error_callback, c_common_handle_option,
6881 sanitize_cpp_opts, finish_options): Update names of cpp_options
6882 members.
6883
1973201f
NP
68842010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
6885
6886 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
6887 (objc_is_reserved_word): Removed.
6888 * c-common.c: Updated comments.
6889 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
6890 objc_is_reserved_word.
6891 * stub-objc.c (objc_is_reserved_word): Removed.
6892
f7e71da5
IS
68932010-09-28 Iain Sandoe <iains@gcc.gnu.org>
6894
9faeb493 6895 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
6896 include attributes.
6897 (objc_start_method_definition): Likewise.
6898 (objc_build_keyword_decl): Likewise.
6899 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
6900 (objc_start_method_definition): Likewise.
6901 (objc_build_keyword_decl): Likewise.
6902
c165dca7
IS
69032010-09-28 Iain Sandoe <iains@gcc.gnu.org>
6904
6905 * c-common.h (objc_start_class_interface): Adjust prototype.
6906 (objc_start_category_interface): Likewise.
6907 (objc_start_protocol): Likewise.
6908 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
6909 (objc_start_class_interface): Likewise.
6910 (objc_start_category_interface): Likewise.
6911
7458026b
ILT
69122010-09-27 Ian Lance Taylor <iant@google.com>
6913
6914 * c-common.c (c_common_attribute_table): Add no_split_stack.
6915 (handle_no_split_stack_attribute): New static function.
6916
b581b85b
NP
69172010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
6918
9faeb493 6919 Merge from 'apple/trunk' branch on FSF servers.
b581b85b 6920
3f8257db 6921 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
b581b85b 6922
9faeb493 6923 Radar 4229905
b581b85b
NP
6924 * c-common.h (objc_have_common_type): New declaration.
6925 * stub-objc.c (objc_have_common_type): New stub.
6926
6927 2005-06-22 Ziemowit Laski <zlaski@apple.com>
6928
6929 Radar 4154928
6930 * c-common.h (objc_common_type): New prototype.
9faeb493 6931 * stub-objc.c (objc_common_type): New stub.
b581b85b 6932
46a4da10
JH
69332010-09-24 Jan Hubicka <jh@suse.cz>
6934
6935 * c-common.c (handle_leaf_attribute): New function.
6936 (struct attribute_spec c_common_att): Add leaf.
6937
e200444e
JM
69382010-09-22 Joseph Myers <joseph@codesourcery.com>
6939
6940 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
6941 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
6942 -dump, -dump=, -imacros, -imacros=, -include, -include=,
6943 -include-barrier, -include-directory, -include-directory=,
6944 -include-directory-after, -include-directory-after=,
6945 -include-prefix, -include-prefix=, -include-with-prefix,
6946 -include-with-prefix=, -include-with-prefix-after,
6947 -include-with-prefix-after=, -include-with-prefix-before,
6948 -include-with-prefix-before=, -no-integrated-cpp,
6949 -no-line-commands, -no-standard-includes, -no-warnings, -output,
6950 -output=, -pedantic, -pedantic-errors, -preprocess,
6951 -print-missing-file-dependencies, -trace-includes, -traditional,
6952 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
6953 -user-dependencies, -verbose, -write-dependencies,
6954 -write-user-dependencies, no-integrated-cpp, traditional): New.
6955
29a80ea6
NP
69562010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
6957
6958 PR objc/23710
ac1fc2fc
NP
6959 * c-common.h (objc_start_method_definition): Return bool instead
6960 of void.
6961 * stub-objc.c (objc_start_method_definition): Return bool instead
6962 of void.
6963
69642010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
6965
6966 PR objc/25965
6967 * c-common.h (objc_get_interface_ivars): New declaration.
6968 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 6969
de621752
ILT
69702010-09-15 Ian Lance Taylor <iant@google.com>
6971
6972 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 6973 messages. Remove period at end of warning message.
de621752 6974
ba885ec5
NS
69752010-09-09 Nathan Sidwell <nathan@codesourcery.com>
6976
6977 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
6978 (handle_alias_attribute): ... here.
6979 (handle_ifunc_attribute): New.
6980
c5ee1358
MM
69812010-09-06 Mark Mitchell <mark@codesourcery.com>
6982
6983 * c-common.h (do_warn_double_promotion): Declare.
6984 * c-common.c (do_warn_double_promotion): Define.
6985
0a0b3574
MM
69862010-09-05 Mark Mitchell <mark@codesourcery.com>
6987
6988 * c.opt (Wdouble-promotion): New.
6989
d1779886
JM
69902010-09-02 Joseph Myers <joseph@codesourcery.com>
6991
6992 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
6993 fvtable-thunks, fxref): Mark no longer supported in help text.
6994
2d2bd949
JM
69952010-09-02 Joseph Myers <joseph@codesourcery.com>
6996
6997 * c.opt (Wimport, fall-virtual, falt-external-templates,
6998 fdefault-inline, fenum-int-equiv, fexternal-templates,
6999 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
7000 fname-mangling-version-, fnew-abi, fnonnull-objects,
7001 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
7002 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
7003 applicable.
7004 (fhandle-exceptions): Mark with Alias and Warn.
7005 * c-opts.c (c_common_handle_option): Don't handle options marked
7006 as ignored.
7007
5de8299c
JM
70082010-09-02 Joseph Myers <joseph@codesourcery.com>
7009
7010 * c.opt (Wcomments, Werror-implicit-function-declaration,
7011 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
7012 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
7013 aliases.
7014 * c-common.c (option_codes): Use OPT_Wcomment instead of
7015 OPT_Wcomments.
7016 * c-opts.c (warning_as_error_callback, c_common_handle_option):
7017 Don't handle options marked as aliases.
7018
0ceb0201
RG
70192010-08-25 Richard Guenther <rguenther@suse.de>
7020
7021 * c-common.c (c_common_get_alias_set): Remove special
7022 handling for pointers.
7023
ac47786e
NF
70242010-08-20 Nathan Froyd <froydnj@codesourcery.com>
7025
7026 * c-common.c: Use FOR_EACH_VEC_ELT.
7027 * c-gimplify.c: Likewise.
7028 * c-pragma.c: Likewise.
7029
c878765b
JM
70302010-08-16 Joseph Myers <joseph@codesourcery.com>
7031
7032 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
7033 RejectDriver.
7034 (MMDX): Change back to MMD. Mark NoDriverArg instead of
7035 RejectDriver.
7036 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
7037 instead of OPT_MDX and OPT_MMDX.
7038
603349bf
JM
70392010-08-16 Joseph Myers <joseph@codesourcery.com>
7040
7041 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
7042
644fa7ac
JM
70432010-08-12 Joseph Myers <joseph@codesourcery.com>
7044
7045 * c.opt (MD, MMD): Change to MDX and MMDX.
7046 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
7047
481e1176
JM
70482010-08-11 Joseph Myers <joseph@codesourcery.com>
7049
7050 * c-opts.c (c_common_handle_option): Call handle_generated_option
7051 instead of handle_option.
7052
ac8dc9f7
NF
70532010-08-08 Nathan Froyd <froydnj@codesourcery.com>
7054
7055 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
7056 (maybe_apply_renaming_pragma): Delete unneeded declarations.
7057
4f8c876d
NF
70582010-08-08 Nathan Froyd <froydnj@codesourcery.com>
7059
7060 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
7061 (pending_redefine_extname): Change type to a VEC.
7062 (add_to_renaming_pragma_list): Update for new type of
7063 pending_redefine_extname.
ac8dc9f7 7064 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 7065
3b0c690e
AC
70662010-08-04 Arnaud Charlet <charlet@adacore.com>
7067
7068 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
7069 visited.
7070 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
7071 decide whether a type has already been declared/seen.
7072 Do not go to the original type.
7073 (dump_nested_types): New parameter forward.
7074 Generate forward declaration if needed and mark type as visited.
7075 (print_ada_declaration): Call dump_nested_types if not already done.
7076 Mark types as visited.
7077
1890bccc
JM
70782010-08-03 Joseph Myers <joseph@codesourcery.com>
7079
7080 * c.opt (-print-pch-checksum): Remove option.
7081 * c-opts.c (c_common_handle_option): Don't handle
7082 OPT_print_pch_checksum.
7083
5f20c657
JM
70842010-07-27 Joseph Myers <joseph@codesourcery.com>
7085
7086 * c-common.h (c_common_handle_option): Update prototype and return
7087 value type.
7088 * c-opts.c (c_common_handle_option): Update prototype and return
7089 value type. Update calls to handle_option and
7090 enable_warning_as_error.
7091
f551f80c
JJ
70922010-07-27 Jakub Jelinek <jakub@redhat.com>
7093
7094 PR c/45079
7095 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
7096
61ff2bdc
JM
70972010-07-27 Joseph Myers <joseph@codesourcery.com>
7098
7099 * c-common.h (c_common_missing_argument): Remove.
7100 * c-opts.c (c_common_missing_argument): Remove.
7101 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
7102 idirafter, imacros, include, isysroot, isystem, iquote): Add
7103 MissingArgError.
7104 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
7105
7a9bf9a4
JM
71062010-07-27 Joseph Myers <joseph@codesourcery.com>
7107
7108 * c-common.h (c_common_option_lang_mask,
7109 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
7110 New.
7111 (c_common_init_options): Update prototype.
7112 * c-opts.c (c_common_option_lang_mask): New.
7113 (c_common_initialize_diagnostics): Split out of
7114 c_common_init_options.
7115 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
7116 New.
7117 (c_common_init_options): Update prototype. Use decoded options in
7118 search for -lang-asm.
7119
910ad8de
NF
71202010-07-15 Nathan Froyd <froydnj@codesourcery.com>
7121
7122 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
7123 * c-format.c: Likewise.
7124
718f9c0f
MLI
71252010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
7126
7127 * c-common.h: Include diagnostic-core.h. Error if already
7128 included.
7129 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
7130
4d451982
MLI
71312010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
7132
adfac8df 7133 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
7134 Do not include expr.h
7135 (vector_mode_valid_p): Move here.
7136
119fe915
SB
71372010-06-21 DJ Delorie <dj@redhat.com>
7138
7139 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
7140 allow these pragmas anywhere.
7141
71422010-06-14 Jakub Jelinek <jakub@redhat.com>
7143
7144 PR bootstrap/44509
7145 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
7146 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
7147 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
7148 ggc_strdup instead of xstrdup.
7149
71502010-06-10 Jakub Jelinek <jakub@redhat.com>
7151
7152 * c-cppbuiltin.c: Include cpp-id-data.h.
7153 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
7154 (lazy_hex_fp_value): New function.
7155 (builtin_define_with_hex_fp_value): Provide definitions lazily.
7156
6662d794
MLI
71572010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
7158
7159 * c-gimplify.c: Do not include tree-flow.h
7160
38f8b050
JR
71612010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
7162
7163 PR other/44034
7164 * c-common.c: Rename targetm member:
7165 targetm.enum_va_list -> targetm.enum_va_list_p
7166
9589f23e
AS
71672010-06-28 Anatoly Sokolov <aesok@post.ru>
7168
7169 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
7170
3b06d379
SB
71712010-06-28 Steven Bosscher <steven@gcc.gnu.org>
7172
7173 * c-cppbuiltin.c: Do not include except.h.
7174
d166d4c3
AK
71752010-06-24 Andi Kleen <ak@linux.intel.com>
7176
9faeb493
UB
7177 * c-common.c (warn_for_omitted_condop): New.
7178 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 7179
70cb8be6
JM
71802010-06-21 Joseph Myers <joseph@codesourcery.com>
7181
7182 * c.opt (lang-objc): Remove.
7183 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
7184
a4c97feb
JR
71852010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
7186
7187 * c-opts.c: Include "tm_p.h".
7188
6e2f1956
JM
71892010-06-20 Joseph Myers <joseph@codesourcery.com>
7190
7191 * c-common.c (parse_optimize_options): Update call to
7192 decode_options.
7193
bc87224e
NF
71942010-06-18 Nathan Froyd <froydnj@codesourcery.com>
7195
7196 * c-common.c (record_types_used_by_current_var_decl): Adjust for
7197 new type of types_used_by_cur_var_decl.
7198
b49cf425
JR
71992010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
7200
7201 PR bootstrap/44512
7202 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
7203 for C++ standard compliance.
7204
59f9c2ed
JM
72052010-06-16 Jason Merrill <jason@redhat.com>
7206
7207 * c.opt: Add -Wnoexcept.
7208
33766b66
RG
72092010-06-16 Richard Guenther <rguenther@suse.de>
7210
7211 PR c/44555
7212 * c-common.c (c_common_truthvalue_conversion): Remove
7213 premature and wrong optimization concering ADDR_EXPRs.
7214
eff7e30c
AC
72152010-06-15 Arnaud Charlet <charlet@adacore.com>
7216
7217 * c-ada-spec.c (dump_sloc): Remove column info.
7218 (is_simple_enum): New function.
7219 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
7220 enum types when relevant.
7221
6312e84d
MLI
72222010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
7223
9faeb493 7224 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
7225 location.
7226
1cb42611
JM
72272010-06-10 Joseph Myers <joseph@codesourcery.com>
7228
7229 * c-opts.c (c_common_handle_option): Don't handle
7230 OPT_fshow_column.
7231
a9429e29
LB
72322010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7233
7234 * c-pragma.c (push_alignment): Use typed GC allocation.
7235 (handle_pragma_push_options): Likewise.
7236
7237 * c-common.c (parse_optimize_options): Likewise.
7238
7239 * c-common.h (struct sorted_fields_type): Add variable_size GTY
7240 option.
7241
5498f011
JM
72422010-06-07 Joseph Myers <joseph@codesourcery.com>
7243
7244 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
7245 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
7246 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
7247 flag_signed_bitfields, warn_strict_null_sentinel,
7248 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
7249 flag_gen_declaration, flag_no_gnu_keywords,
7250 flag_implement_inlines, flag_implicit_templates,
7251 flag_implicit_inline_templates, flag_optional_diags,
7252 flag_elide_constructors, flag_default_inline, flag_rtti,
7253 flag_conserve_space, flag_access_control, flag_check_new,
7254 flag_new_for_scope, flag_weak, flag_working_directory,
7255 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
7256 flag_enforce_eh_specs, flag_threadsafe_statics,
7257 flag_pretty_templates): Remove.
7258 * c-common.h (flag_preprocess_only, flag_nil_receivers,
7259 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
7260 flag_replace_objc_classes, flag_undef, flag_no_builtin,
7261 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
7262 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
7263 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
7264 flag_no_gnu_keywords, flag_implement_inlines,
7265 flag_implicit_templates, flag_implicit_inline_templates,
7266 flag_optional_diags, flag_elide_constructors, flag_default_inline,
7267 flag_rtti, flag_conserve_space, flag_access_control,
7268 flag_check_new, flag_new_for_scope, flag_weak,
7269 flag_working_directory, flag_use_cxa_atexit,
7270 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
7271 flag_threadsafe_statics, flag_pretty_templates,
7272 warn_strict_null_sentinel): Remove.
7273 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
7274 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
7275 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
7276 fimplicit-inline-templates, fimplicit-templates,
7277 flax-vector-conversions, fms-extensions, fnil-receivers,
7278 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
7279 frtti, fshort-double, fshort-enums, fshort-wchar,
7280 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
7281 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
7282 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
7283 gen-decls, undef): Use Var.
7284 (fdefault-inline, foptional-diags): Document as doing nothing.
7285 * c-opts.c (c_common_handle_option): Remove cases for options now
7286 using Var. Mark ignored options as such.
7287
39dabefd
SB
72882010-06-05 Steven Bosscher <steven@gcc.gnu.org>
7289
9faeb493 7290 * c-common.c: Moved to here from parent directory.
39dabefd
SB
7291 * c-common.def: Likewise.
7292 * c-common.h: Likewise.
7293 * c-cppbuiltin.c: Likewise.
7294 * c-dump.c: Likewise.
7295 * c-format.c: Likewise.
7296 * c-format.h : Likewise.
7297 * c-gimplify.c: Likewise.
7298 * c-lex.c: Likewise.
7299 * c-omp.c: Likewise.
7300 * c.opt: Likewise.
7301 * c-opts.c: Likewise.
7302 * c-pch.c: Likewise.
7303 * c-ppoutput.c: Likewise.
7304 * c-pragma.c: Likewise.
7305 * c-pragma.h: Likewise.
7306 * c-pretty-print.c: Likewise.
7307 * c-pretty-print.h: Likewise.
7308 * c-semantics.c: Likewise.
7309 * stub-objc.c: Likewise.
7310
7311 * c-common.c: Include gt-c-family-c-common.h.
7312 * c-pragma.c: Include gt-c-family-c-pragma.h.
7313\f
818ab71a 7314Copyright (C) 2010-2016 Free Software Foundation, Inc.
39dabefd
SB
7315
7316Copying and distribution of this file, with or without modification,
7317are permitted in any medium without royalty provided the copyright
7318notice and this notice are preserved.
This page took 2.432064 seconds and 5 git commands to generate.