]> gcc.gnu.org Git - gcc.git/blame - gcc/c-family/ChangeLog
[Patch 4/17] Implement TARGET_C_EXCESS_PRECISION for m68k
[gcc.git] / gcc / c-family / ChangeLog
CommitLineData
fb2675cb
PB
12016-11-23 Paolo Bonzini <bonzini@gnu.org>
2
3 * c.opt (Wexpansion-to-defined): New.
4
ec1c5694
JJ
52016-11-23 Jakub Jelinek <jakub@redhat.com>
6
7 PR target/78451
8 * c-pragma.c (handle_pragma_target): Don't replace
9 current_target_pragma, but chainon the new args to the current one.
10
730c9e75
NS
112016-11-22 Nathan Sidwell <nathan@acm.org>
12
13 * array-notation-common.c (cilkplus_extract_an_trplets): Fix
cacd29be 14 indentation and formatting.
730c9e75 15
89990732
MS
162016-11-21 Martin Sebor <msebor@redhat.com>
17
18 * c.opt (-fprintf-return-value): Enable by default.
19
48330c93
BE
202016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
21
22 PR c++/71973
23 * c.opt (-Wbuiltin-declaration-mismatch): New warning.
24 * c-common.c (c_common_nodes_and_builtins): Initialize
25 const_tm_ptr_type_node.
26
0d939c95
MP
272016-11-16 Marek Polacek <polacek@redhat.com>
28
29 PR c/78285
30 * c-common.c (c_add_case_label): Turn error_at calls into inform.
31
8e745a17
JJ
322016-11-14 Jakub Jelinek <jakub@redhat.com>
33
34 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_structured_bindings.
35
1ee62b92 362016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
8e745a17
JJ
37 Richard Biener <rguenther@suse.de>
38
39 * c-common.h (c_common_resword): Add RID_GIMPLE, RID_PHI types.
40 * c-common.h (enum rid): Add RID_GIMPLE, RID_PHI.
41 * c.opt (fgimple): New option.
1ee62b92 42
22b15758
UB
432016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
44
45 PR c/35503
46 * c-common.h (warn_for_restrict): Declare.
47 * c-warn.c: Include gcc-rich-location.h.
48 (warn_for_restrict): New function.
49 * c-format.c (gcc_tdiag_char_table): Add entry for "Z" specifier.
50 (gcc_cdiag_char_table): Likewise.
51 (gcc_cxxdiag_char_table): Likewise.
52 * c.opt (Wrestrict): New option.
53
4be719cd
EB
542016-11-13 Eric Botcazou <ebotcazou@adacore.com>
55
56 * c-ada-spec.c (print_ada_declaration): For typedef declarations, look
57 for nested types only if the type is a record or union and dump SLOC.
58
4a826ca6
JM
592016-11-09 Jason Merrill <jason@redhat.com>
60
61 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_template_auto.
62
2e955d50
JJ
632016-11-09 Jakub Jelinek <jakub@redhat.com>
64
65 * c-ubsan.c (ubsan_instrument_shift): Handle split
66 -fsanitize=shift-base and -fsanitize=shift-exponent.
67
51dc6603
JM
682016-11-07 Jason Merrill <jason@redhat.com>
69
70 * c.opt (Wc++1z-compat): New.
71 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_noexcept_function_type.
72
6dc4a604
ML
732016-11-07 Martin Liska <mliska@suse.cz>
74
75 * c-warn.c (warn_for_unused_label): Save all labels used
76 in goto or in &label.
77
b302001e
JM
782016-11-03 Jason Merrill <jason@redhat.com>
79
80 * c-cppbuiltin.c (c_cpp_builtins): Correct
81 __cpp_inheriting_constructors.
82
31f7f784
JM
832016-11-01 Jason Merrill <jason@redhat.com>
84
2bc78e3c
JM
85 * c-cppbuiltin.c (c_cpp_builtins): Update
86 __cpp_inheriting_constructors.
87
31f7f784
JM
88 * c.opt (-fnew-inheriting-ctors): New.
89 * c-opts.c: Default to on for ABI 11+.
90
dcb466ec
JJ
912016-10-31 Jakub Jelinek <jakub@redhat.com>
92
93 PR c++/77948
94 * c.opt (fext-numeric-literals): Add Var and Init.
95 * c-opts.c (c_common_handle_option): Don't clear
96 cpp_opts->ext_numeric_literals for -std=c++{11,14,1z}.
97 (c_common_post_options): Clear it here if not set
98 explicitly.
99
52e1b91e
AH
1002016-10-28 Aldy Hernandez <aldyh@redhat.com>
101
102 PR debug/77773
103 * c-pretty-print.c (simple_type_specifier): Do not dereference `t'
104 if NULL.
105
e16f1cc7
JJ
1062016-10-25 Jakub Jelinek <jakub@redhat.com>
107
108 * c-common.h (enum rid): Add RID_BUILTIN_LAUNDER.
109 * c-common.c (c_common_reswords): Add __builtin_launder.
110
f8348061
BE
1112016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
112
113 * c-common.c (c_common_truthvalue_conversion): Warn for
114 multiplications in boolean context. Fix the quoting of '<<' and '<'
115 in the shift warning.
116
eff89e01
BE
1172016-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
118
119 * c-common.c (c_common_truthvalue_conversion): Fix the comment.
120
24bc7bf4
JM
1212016-10-20 Jason Merrill <jason@redhat.com>
122
123 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_concepts value.
124
4c712374
BE
1252016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
126
127 * c-common.c (c_common_truthvalue_conversion): Warn only for signed
128 integer shift ops in boolean context.
129
1302016-10-18 Aldy Hernandez <aldyh@redhat.com>
adc577c5
AH
131
132 * c.opt (Walloca): New.
133 (Walloca-larger-than=): New.
134 (Wvla-larger-than=): New.
135
8fa18c06
MP
1362016-10-17 Marek Polacek <polacek@redhat.com>
137
138 * c-warn.c (find_array_ref_with_const_idx_r): Remove parameter names.
139 Return immediately when finding a match.
140 (warn_tautological_cmp): Remove a boolean variable that is no longer
141 needed.
142
b12b1915
MP
1432016-10-17 Marek Polacek <polacek@redhat.com>
144
145 * c-attribs.c: New file.
146 * c-common.c: Move attributes handling to c-attribs.c.
147 (get_nonnull_operand): No longer static.
148 * c-common.h: Move the declarations from c-attribs.c to its own section.
149
2045acd9
JM
1502016-10-14 Jason Merrill <jason@redhat.com>
151
152 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_aggregate_bases
153 and __cpp_deduction_guides.
154
14a2c9aa
JM
1552016-10-13 Jason Merrill <jason@redhat.com>
156
157 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_inline_variables.
158
4d0cdd0c
TP
1592016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
160
161 * c-cppbuiltin.c: Include memmodel.h.
162 * c-opts.c: Likewise.
163 * c-pragma.c: Likewise.
164 * c-warn.c: Likewise.
165
70f6d5e1
JJ
1662016-10-12 Jakub Jelinek <jakub@redhat.com>
167
168 * c.opt (Wextra): Add as C/C++/ObjC/ObjC++ option.
169 (Wimplicit-fallthrough=): Enable for these languages by -Wextra.
170 * c-opts.c (sanitize_cpp_opts): Initialize
171 cpp_opts->cpp_warn_implicit_fallthrough.
172
78f61294
MP
1732016-10-11 Marek Polacek <polacek@redhat.com>
174
175 * c-common.c (warning_candidate_p): Change the return type to bool
176 and return true/false instead of 1/0.
177 (vector_mode_valid_p): Likewise.
178
038b5cc0
MP
1792016-10-11 Marek Polacek <polacek@redhat.com>
180
181 * c-common.c (fold_for_warn): No longer static.
182 (bool_promoted_to_int_p): Likewise.
183 (c_common_get_narrower): Likewise.
184 (constant_expression_warning): Move to c-warn.c.
185 (constant_expression_error): Likewise.
186 (overflow_warning): Likewise.
187 (warn_logical_operator): Likewise.
188 (find_array_ref_with_const_idx_r): Likewise.
189 (warn_tautological_cmp): Likewise.
190 (expr_has_boolean_operands_p): Likewise.
191 (warn_logical_not_parentheses): Likewise.
192 (warn_if_unused_value): Likewise.
193 (strict_aliasing_warning): Likewise.
194 (sizeof_pointer_memaccess_warning): Likewise.
195 (check_main_parameter_types): Likewise.
196 (conversion_warning): Likewise.
197 (warnings_for_convert_and_check): Likewise.
198 (match_case_to_enum_1): Likewise.
199 (match_case_to_enum): Likewise.
200 (c_do_switch_warnings): Likewise.
201 (warn_for_omitted_condop): Likewise.
202 (readonly_error): Likewise.
203 (lvalue_error): Likewise.
204 (invalid_indirection_error): Likewise.
205 (warn_array_subscript_with_type_char): Likewise.
206 (warn_about_parentheses): Likewise.
207 (warn_for_unused_label): Likewise.
208 (warn_for_div_by_zero): Likewise.
209 (warn_for_memset): Likewise.
210 (warn_for_sign_compare): Likewise.
211 (do_warn_double_promotion): Likewise.
212 (do_warn_unused_parameter): Likewise.
213 (record_locally_defined_typedef): Likewise.
214 (maybe_record_typedef_use): Likewise.
215 (maybe_warn_unused_local_typedefs): Likewise.
216 (maybe_warn_bool_compare): Likewise.
217 (maybe_warn_shift_overflow): Likewise.
218 (warn_duplicated_cond_add_or_warn): Likewise.
219 (diagnose_mismatched_attributes): Likewise.
220 * c-common.h: Move the declarations from c-warn.c to its own section.
221 * c-warn.c: New file.
222
627be19f
JM
2232016-10-08 Jason Merrill <jason@redhat.com>
224
225 * c-common.c (c_common_truthvalue_conversion): Don't distribute
226 into COND_EXPR in C++.
227
7bad794a
JJ
2282016-10-08 Jakub Jelinek <jakub@redhat.com>
229
230 * c-lex.c (c_lex_with_flags) <case CPP_COMMENT>: For CPP_COMMENT
231 token with PREV_FALLTHROUGH, skip all following CPP_PADDING and
232 CPP_COMMENT tokens and set add_flags to PREV_FALLTHROUGH afterwards.
233
be845b04
JJ
2342016-10-07 Jakub Jelinek <jakub@redhat.com>
235
236 Implement LWG2296 helper intrinsic
237 * c-common.h (enum rid): Add RID_ADDRESSOF.
238 * c-common.c (c_common_reswords): Add __builtin_addressof.
239
c09c4992
BE
2402016-10-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
241
242 PR c++/77700
243 * c-common.c (c_common_truthvalue_conversion): Warn also for
244 suspicious enum values in boolean context.
245
342cfb3e
JJ
2462016-10-06 Jakub Jelinek <jakub@redhat.com>
247
248 Implement P0258R2 - helper for C++17
249 std::has_unique_object_representations trait
250 * c-common.h (enum rid): Add RID_HAS_UNIQUE_OBJ_REPRESENTATIONS.
251 * c-common.c (c_common_reswords): Add
252 __has_unique_object_representations.
253
2e69f143
JJ
2542016-10-05 Jakub Jelinek <jakub@redhat.com>
255
256 PR sanitizer/66343
257 * c-ubsan.c (ubsan_instrument_return): Don't call
258 initialize_sanitizer_builtins here.
259
700fff34
BE
2602016-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
261
262 * c-common.c (c_common_truthvalue_conversion): Warn also for suspicious
263 conditional expression in boolean context when only one arm is
264 non-boolean.
265
9563bfcd
JJ
2662016-10-05 Jakub Jelinek <jakub@redhat.com>
267
04a32443
JJ
268 PR sanitizer/77823
269 * c-ubsan.c (ubsan_instrument_shift): Return NULL_TREE if type0
270 is not integral.
271
9563bfcd
JJ
272 * c-common.c (c_common_reswords): Update comment for C++11.
273
f1644724
JM
2742016-10-04 Jason Merrill <jason@redhat.com>
275
276 * c-common.c (make_tree_vector_from_ctor): New.
277 * c-common.h: Declare it.
278
5a79befb
JJ
2792016-10-04 Jakub Jelinek <jakub@redhat.com>
280
281 * c-cppbuiltin.c (c_cpp_builtins): Don't define
282 __LIBGCC_JCR_SECTION_NAME__.
283
1633d3b9
BE
2842016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
285
286 * c-common.c (c_common_truthvalue_conversion): Warn for suspicious
287 left shift in boolean context.
288
a2c6e7f2
JJ
2892016-09-29 Jakub Jelinek <jakub@redhat.com>
290
291 Implement P0001R1 - C++17 removal of register storage class specifier
292 * c.opt (Wregister): New warning.
293 * c-opts.c (c_common_post_options): Enable -Wregister by
294 default for C++17.
295
75304c87
JG
2962016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
297
298 * c-opts.c (c_common_post_options): Remove special case for
299 TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard
300 in C++.
301
bbfac6da
JJ
3022016-09-27 Jakub Jelinek <jakub@redhat.com>
303
6e39060a
JJ
304 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for
305 -std=c++1z.
306
bbfac6da
JJ
307 * c-ada-spec.c (print_ada_declaration): Remove break after return.
308
e73cf9a2
TP
3092016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
310
311 * c-common.c: Include memmodel.h.
312
c6147dc4
MP
3132016-09-26 Marek Polacek <polacek@redhat.com>
314
315 * c-lex.c (c_common_has_attribute): Handle attribute fallthrough.
316
81fea426
MP
3172016-09-26 Marek Polacek <polacek@redhat.com>
318
319 PR c/7652
320 * c-common.c (c_common_attribute_table): Add fallthrough attribute.
321 (handle_fallthrough_attribute): New function.
322 (attribute_fallthrough_p): New function.
323 * c-common.h (attribute_fallthrough_p): Declare.
324
9a2300e9
MP
3252016-09-24 Marek Polacek <polacek@redhat.com>
326
327 PR c/77490
328 * c.opt (Wbool-operation): New.
329
a09e9e35
BE
3302016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
331
332 * c-common.c (c_common_truthvalue_conversion): Inhibit
333 Wint-in-bool-context warning with from_macro_definition_at.
334 Mention the expression will always evaluate to true.
335
d43b4ccc
MS
3362016-09-21 Martin Sebor <msebor@redhat.com>
337
338 PR bootstrap/77676
339 * c.opt (fprintf-return-value): Temporarily initialize to zero
340 to unblock bootstrap failures.
341
2e1c20b1
JJ
3422016-09-21 Jakub Jelinek <jakub@redhat.com>
343
344 PR c++/77651
345 * c.opt (Waligned-new=): Add RejectNegative.
346 (faligned-new=): Likewise. Spelling fix - change
347 aligned_new_threshhold to aligned_new_threshold.
348 * c-cppbuiltin.c (c_cpp_builtins): Change aligned_new_threshhold
349 to aligned_new_threshold.
350
88d0c3f0
MS
3512016-09-20 Martin Sebor <msebor@redhat.com>
352
353 PR middle-end/49905
354 * c.opt: Add -Wformat-length and -fprintf-return-value.
355
144a96e4
BE
3562016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
357
358 PR c++/77434
359 * c.opt (Wint-in-bool-context): New warning.
360 * c-common.c (c_common_truthvalue_conversion): Warn on integer
361 constants in boolean context.
362
63012d9a
JM
3632016-09-19 Joseph Myers <joseph@codesourcery.com>
364
365 * c-common.c (max_align_t_align): Also consider alignment of
366 float128_type_node.
367
931388ce
JM
3682016-09-15 Jason Merrill <jason@redhat.com>
369
370 * c-common.c (check_cxx_fundamental_alignment_constraints): Check
371 DECL_EXTERNAL.
372
38711381
JM
3732016-09-14 Jason Merrill <jason@redhat.com>
374
375 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
376 limit FIELD_DECL, either.
377
e51fbec3
MP
3782016-09-14 Marek Polacek <polacek@redhat.com>
379
380 * c-common.c (c_common_truthvalue_conversion): Use false instead of 0.
381 * c-common.h (build_unary_op): Change nonconvert parameter type to bool.
382 * c-omp.c (c_finish_omp_atomic): Use false instead of 0.
383
254830ba
DM
3842016-09-13 David Malcolm <dmalcolm@redhat.com>
385
386 * c-common.c (warn_logical_not_parentheses): Replace
387 rich_location::add_fixit_insert calls with add_fixit_insert_before
388 and add_fixit_insert_after, eliminating the "next_loc" calculation.
389
42763690
JM
3902016-09-13 Jason Merrill <jason@redhat.com>
391 Tom de Vries <tom@codesourcery.com>
392
393 PR c++/77427
394 * c-common.c (set_underlying_type): Don't treat array as builtin type.
395
9453eee9
JM
3962016-09-13 Jason Merrill <jason@redhat.com>
397
398 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
399 limit types at all.
400
e96809e3
JM
4012016-09-12 Jason Merrill <jason@redhat.com>
402
403 * c-common.c (check_cxx_fundamental_alignment_constraints): Fix
404 bit/byte confusion, allow large alignment for types.
405
54dcdb88
BE
4062016-09-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
407
408 PR c++/77496
409 * c-common.c (warn_for_omitted_condop): Also warn for boolean data.
410
d1463eb9
DM
4112016-09-12 David Malcolm <dmalcolm@redhat.com>
412
413 PR c/72858
414 * c-format.c (argument_parser::check_argument_type): Add params
415 "type_start" and "conversion_char". Use the former to generate
416 offset_to_type_start and pass it and conversion_char to
417 check_format_types.
418 (check_format_info_main): Capture the start of the type
419 information as "type_start", and pass it an format_char
420 to arg_parser.check_argument_type.
421 (check_format_types): Provide an example in the leading comment.
422 Add params "offset_to_type_start" and "conversion_char"; pass
423 them to format_type_warning calls.
424 (test_get_modifier_for_format_len): Likewise.
425 (matching_type_p): New function.
426 (get_format_for_type): Add param "conversion_char" and move
427 implementation into...
428 (get_format_for_type_1): ...new function, called twice.
429 Use new function matching_type_p rather than checking for
430 TYPE_CANONICAL equality.
431 (get_corrected_substring): New function.
432 (format_type_warning): Provide an example in the leading comment.
433 Add params "offset_to_type_start" and "conversion_char". Replace
434 call to get_format_for_type with call to get_corrected_substring
435 and move rejection of hints for widths/precisions there.
436 (assert_format_for_type_streq): Add param "conversion_char".
437 (ASSERT_FORMAT_FOR_TYPE_STREQ): Add param CONVERSION_CHAR.
438 (test_get_format_for_type_printf): Add conversion chars to the
439 tests, adding coverage for various combinations of integer
440 vs double conversions, and for preserving octal and hexadecimal
441 conversions.
442 (test_get_format_for_type_scanf): Add conversion chars to the
443 tests.
444
5b28efbb
TV
4452016-09-10 Tom de Vries <tom@codesourcery.com>
446
447 PR C/71602
448 * c-common.c (build_va_arg): Handle more strict
449 targetm.canonical_va_list_type. Replace first argument type error with
450 assert.
451
3f0177e7
MS
4522016-09-09 Martin Sebor <msebor@redhat.com>
453
454 PR c/77520
455 PR c/77521
456 * c-format.c (argument_parser::find_format_char_info): Use %qc
457 format directive unconditionally.
458
af63ba4b
JM
4592016-09-09 Jason Merrill <jason@redhat.com>
460
461 Implement C++17 new of over-aligned types.
462 * c.opt: Add -faligned-new and -Waligned-new.
463 * c-common.c (max_align_t_align): Split out from...
464 (cxx_fundamental_alignment_p): ...here.
465 * c-common.h: Declare it.
466 * c-cppbuiltin.c (c_cpp_builtins): Handle aligned new.
467
c65248cb
JM
4682016-09-09 Joseph Myers <joseph@codesourcery.com>
469
470 * c-cppbuiltin.c (builtin_define_type_width): New function.
471 (builtin_define_stdint_macros, c_cpp_builtins): Define type width
472 macros.
473
e5106e27
DM
4742016-09-07 David Malcolm <dmalcolm@redhat.com>
475
476 * c-common.c (get_cpp_ttype_from_string_type): Handle being passed
477 a POINTER_TYPE.
478 (substring_loc::get_location): Move to substring-locations.c,
479 keeping implementation as...
480 (c_get_substring_location): New function, from the above, reworked
481 to use accessors rather than member lookup.
482 * c-common.h (class substring_loc): Move to substring-locations.h,
483 replacing with a forward decl.
484 (c_get_substring_location): New decl.
485 * c-format.c: Include "substring-locations.h".
486 (format_warning_va): Move to substring-locations.c.
487 (format_warning_at_substring): Likewise.
488
a42e7952
MS
4892016-09-06 Martin Sebor <msebor@redhat.com>
490
491 PR c/77336
492 * c-format.c (check_function_format): Avoid issuing warnings for
493 functions unless they call format functions with non-constant
494 format strings.
495
b772a565
RB
4962016-09-06 Richard Biener <rguenther@suse.de>
497
498 PR c/77450
499 * c-common.c (c_common_mark_addressable_vec): Handle
500 COMPOUND_LITERAL_EXPR.
501
25ff5dd3
MP
5022016-09-05 Marek Polacek <polacek@redhat.com>
503
504 PR c/77423
505 * c-common.c (bool_promoted_to_int_p): New function.
506 (expr_has_boolean_operands_p): New function.
507 (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p.
508 (maybe_warn_bool_compare): Use bool_promoted_to_int_p.
509
21234eb5
TV
5102016-09-04 Tom de Vries <tom@codesourcery.com>
511
512 revert:
513 2016-08-29 Tom de Vries <tom@codesourcery.com>
514
515 * c-common.c (build_va_arg): Replace first argument type error
516 with assert.
517
9dc5773f
JJ
5182016-09-02 Jakub Jelinek <jakub@redhat.com>
519
520 PR c/65467
521 * c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions.
522 (c_finish_omp_for): Reject _Atomic qualified iterators.
523
5242016-09-01 Martin Sebor <msebor@redhat.com>
3d7b83b6
MS
525
526 * c-ada-spec.c (dump_ada_function_declaration): Increase buffer
527 size to guarantee it fits the output of the formatted function
528 regardless of its arguments.
529
295844f6
MP
5302016-09-01 Marek Polacek <polacek@redhat.com>
531
532 PR c/7652
533 * c-common.c (resolve_overloaded_builtin): Fix formatting. Add
534 FALLTHRU comments.
535
3d06b6f2
MP
5362016-08-29 Marek Polacek <polacek@redhat.com>
537
538 PR c/77292
539 * c-common.c (warn_logical_not_parentheses): Don't warn for
540 a comparison or a logical operator.
541
34cedad5
TV
5422016-08-29 Tom de Vries <tom@codesourcery.com>
543
544 * c-common.c (build_va_arg): Fix type comparison assert.
545
f162d717
TV
5462016-08-29 Tom de Vries <tom@codesourcery.com>
547
548 * c-common.c (build_va_arg): Replace first argument type error
549 with assert.
550
ba9bbd6f
TV
5512016-08-29 Tom de Vries <tom@codesourcery.com>
552
553 PR c/77398
554 * c-common.c (build_va_arg): Add first argument error. Build va_arg
555 with error_mark_node as va_list instead of with illegal va_list.
556
ebef225f
MP
5572016-08-25 Marek Polacek <polacek@redhat.com>
558 David Malcolm <dmalcolm@redhat.com>
559
560 * c-common.c (warn_logical_not_parentheses): Print fixit hints.
561 * c-common.h (warn_logical_not_parentheses): Update declaration.
562
b00e6e75
MP
5632016-08-22 Marek Polacek <polacek@redhat.com>
564
565 PR c++/77321
566 * c-common.c (warn_for_memset): Check type for null.
567
6dc198e3
JM
5682016-08-22 Joseph Myers <joseph@codesourcery.com>
569
570 * c-family/c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and
571 _FloatNx types for suffixes for built-in functions.
572
c65699ef
JM
5732016-08-19 Joseph Myers <joseph@codesourcery.com>
574
575 PR c/32187
576 * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32)
577 (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X)
578 (RID_FLOAT128X): New enum rid values.
579 (CASE_RID_FLOATN_NX): New macro.
580 * c-common.c (c_common_reswords): Add _FloatN and _FloatNx
581 keywords.
582 (c_common_type_for_mode): Check for _FloatN and _FloatNx and
583 corresponding complex types.
584 (c_common_nodes_and_builtins): For non-C++, register _FloatN and
585 _FloatNx and corresponding complex types.
586 (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX.
587 * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN
588 and _FloatNx types for the widest type for determining
589 DECIMAL_DIG. Define __LDBL_DECIMAL_DIG__ as well as
590 __DECIMAL_DIG__ for long double. Handle FMA_SUFFIX being NULL.
591 (c_cpp_builtins): Call builtin_define_float_constants for _FloatN
592 and _FloatNx types.
593 * c-lex.c (interpret_float): Handle _FloatN and _FloatNx
594 constants.
595 * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and
596 _FloatNx types.
597
cc015f3a
DM
5982016-08-18 David Malcolm <dmalcolm@redhat.com>
599
600 * c-opts.c (c_diagnostic_finalizer): Update for change to
601 diagnostic_show_locus.
602
cb18fd07
DM
6032016-08-18 David Malcolm <dmalcolm@redhat.com>
604
605 * c-common.c: Include "spellcheck.h".
606 (cb_get_suggestion): New function.
607 * c-common.h (cb_get_suggestion): New decl.
608 * c-lex.c (init_c_lex): Initialize cb->get_suggestion to
609 cb_get_suggestion.
610
a76989dc
MP
6112016-08-18 Marek Polacek <polacek@redhat.com>
612
613 PR c/71514
614 * c-common.c (get_atomic_generic_size): Disallow pointer-to-function
615 and pointer-to-VLA.
616
65e736c0
DM
6172016-08-16 David Malcolm <dmalcolm@redhat.com>
618
619 PR c/72857
620 * c-common.c (substring_loc::get_range): Rename to...
621 (substring_loc::get_location): ...this, converting param from a
622 source_range * to a location_t *. Call
623 get_source_location_for_substring rather than
624 get_source_range_for_substring, and pass in m_caret_idx.
625 * c-common.h (substring_loc::substring_loc): Add param "caret_idx".
626 (substring_loc::get_range): Replace with...
627 (substring_loc::get_location): ...this.
628 (substring_loc::set_caret_index): New method.
629 (substring_loc): Add field m_caret_idx.
630 * c-format.c (format_warning_va): Update for above changes.
631 Rename local "substring_loc" to "fmt_substring_loc" to avoid
632 clashing with type name.
633 (format_warning_at_char): Add caret_idx param to substring_loc ctor.
634 (check_argument_type): Likewise.
635 (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc"
636 Use a copy when emitting warnings, setting the caret index from TYPE.
637
7e1dde14 6382016-08-16 Eric Botcazou <ebotcazou@adacore.com>
8e745a17 639 Arnaud Charlet <charlet@adacore.com>
7e1dde14
EB
640
641 * c-ada-spec.c (dump_number): New function.
642 (handle_escape_character): Likewise.
643 (print_ada_macros): Add handling of constant integers and strings.
644
191816a3
MP
6452016-08-12 Marek Polacek <polacek@redhat.com>
646
647 PR c/7652
648 * c-common.c (scalar_to_vector): Adjust fall through comment.
649 * c-opts.c (c_common_handle_option): Likewise.
650 * c-pragma.c (handle_pragma_pack): Add FALLTHRU.
651 * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust
652 fall through comment.
653 * cilk.c (extract_free_variables): Add FALLTHRU.
654
452df4a4
JM
6552016-08-10 Jason Merrill <jason@redhat.com>
656
657 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr.
658
f3365c12
JM
6592016-08-09 Jason Merrill <jason@redhat.com>
660
661 * c-common.c (c_common_attribute_table): vector_size affects type
662 identity.
663
f0bc3323
MP
6642016-08-09 Marek Polacek <polacek@redhat.com>
665
666 PR c/7652
667 * c-ada-spec.c (dump_generic_ada_node): Add return.
668
98e5a19a
JM
6692016-08-09 Jason Merrill <jason@redhat.com>
670
671 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for
672 C++17 constexpr lambdas.
673
895aa8e1
DM
6742016-08-08 David Malcolm <dmalcolm@redhat.com>
675
676 PR c/64955
677 * c-common.h (selftest::c_format_c_tests): New declaration.
678 (selftest::run_c_tests): New declaration.
679 * c-format.c: Include "selftest.h.
680 (format_warning_va): Add param "corrected_substring" and use
681 it to add a replacement fix-it hint.
682 (format_warning_at_substring): Likewise.
683 (format_warning_at_char): Update for new param of
684 format_warning_va.
685 (argument_parser::check_argument_type): Pass "fki" to
686 check_format_types.
687 (check_format_types): Add param "fki" and pass it to
688 format_type_warning.
689 (deref_n_times): New function.
690 (get_modifier_for_format_len): New function.
691 (selftest::test_get_modifier_for_format_len): New function.
692 (get_format_for_type): New function.
693 (format_type_warning): Add param "fki" and use it to attempt
694 to provide hints for argument types when calling
695 format_warning_at_substring.
696 (selftest::get_info): New function.
697 (selftest::assert_format_for_type_streq): New function.
698 (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro.
699 (selftest::test_get_format_for_type_printf): New function.
700 (selftest::test_get_format_for_type_scanf): New function.
701 (selftest::c_format_c_tests): New function.
702
e52ed3fe
DM
7032016-08-08 David Malcolm <dmalcolm@redhat.com>
704
705 PR c/52952
706 * c-format.c: Include "diagnostic.h".
707 (location_column_from_byte_offset): Delete.
708 (location_from_offset): Delete.
709 (format_warning_va): New function.
710 (format_warning_at_substring): New function.
711 (format_warning_at_char): New function.
712 (check_format_arg): Capture location of format_tree and pass to
713 check_format_info_main.
714 (argument_parser): Add fields "start_of_this_format" and
715 "format_string_cst".
716 (flag_chars_t::validate): Add param "format_string_cst". Convert
717 warning_at call using location_from_offset to call to
718 format_warning_at_char.
719 (argument_parser::argument_parser): Add param "format_string_cst_"
720 and use use it to initialize field "format_string_cst".
721 Initialize new field "start_of_this_format".
722 (argument_parser::read_format_flags): Convert warning_at call
723 using location_from_offset to a call to format_warning_at_char.
724 (argument_parser::read_any_format_left_precision): Likewise.
725 (argument_parser::read_any_format_precision): Likewise.
726 (argument_parser::read_any_other_modifier): Likewise.
727 (argument_parser::find_format_char_info): Likewise, in three places.
728 (argument_parser::parse_any_scan_set): Likewise, in one place.
729 (argument_parser::handle_conversions): Likewise, in two places.
730 (argument_parser::check_argument_type): Add param "fmt_param_loc"
731 and use it to make a substring_loc. Pass the latter to
732 check_format_types.
733 (check_format_info_main): Add params "fmt_param_loc" and
734 "format_string_cst". Convert warning_at calls using
735 location_from_offset to calls to format_warning_at_char. Pass the
736 new params to the arg_parser ctor. Pass "format_string_cst" to
737 flag_chars.validate. Pass "fmt_param_loc" to
738 arg_parser.check_argument_type.
739 (check_format_types): Convert first param from a location_t
740 to a const substring_loc & and rename to "fmt_loc". Attempt
741 to extract the range of the relevant parameter and pass it
742 to format_type_warning.
743 (format_type_warning): Convert first param from a location_t
744 to a const substring_loc & and rename to "fmt_loc". Add
745 params "param_range" and "type". Replace calls to warning_at
746 with calls to format_warning_at_substring.
747
1c4d457e
DM
7482016-08-08 David Malcolm <dmalcolm@redhat.com>
749
750 * c-format.c (class flag_chars_t): New class.
751 (struct length_modifier): New struct.
752 (class argument_parser): New class.
753 (flag_chars_t::flag_chars_t): New ctor.
754 (flag_chars_t::has_char_p): New method.
755 (flag_chars_t::add_char): New method.
756 (flag_chars_t::validate): New method.
757 (flag_chars_t::get_alloc_flag): New method.
758 (flag_chars_t::assignment_suppression_p): New method.
759 (argument_parser::argument_parser): New ctor.
760 (argument_parser::read_any_dollar): New method.
761 (argument_parser::read_format_flags): New method.
762 (argument_parser::read_any_format_width): New method.
763 (argument_parser::read_any_format_left_precision): New method.
764 (argument_parser::read_any_format_precision): New method.
765 (argument_parser::handle_alloc_chars): New method.
766 (argument_parser::read_any_length_modifier): New method.
767 (argument_parser::read_any_other_modifier): New method.
768 (argument_parser::find_format_char_info): New method.
769 (argument_parser::validate_flag_pairs): New method.
770 (argument_parser::give_y2k_warnings): New method.
771 (argument_parser::parse_any_scan_set): New method.
772 (argument_parser::handle_conversions): New method.
773 (argument_parser::check_argument_type): New method.
774 (check_format_info_main): Introduce classes argument_parser
775 and flag_chars_t, moving the code within the loop into methods
776 of these classes. Make various locals "const".
777
88fa5555
DM
7782016-08-05 David Malcolm <dmalcolm@redhat.com>
779
780 * c-common.c: Include "substring-locations.h".
781 (get_cpp_ttype_from_string_type): New function.
782 (g_string_concat_db): New global.
783 (substring_loc::get_range): New method.
784 * c-common.h (g_string_concat_db): New declaration.
785 (class substring_loc): New class.
786 * c-lex.c (lex_string): When concatenating strings, capture the
787 locations of all tokens using a new obstack, and record the
788 concatenation locations within g_string_concat_db.
789 * c-opts.c (c_common_init_options): Construct g_string_concat_db
790 on the ggc-heap.
791
78169471
MP
7922016-07-29 Marek Polacek <polacek@redhat.com>
793
638fc14f
MP
794 PR c/71926
795 * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the
796 parentheses warning.
797
78169471
MP
798 PR c/71574
799 * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL.
800
1225d6b1
ML
8012016-07-28 Martin Liska <mliska@suse.cz>
802
803 PR gcov-profile/68025
804 * c-common.c (handle_no_profile_instrument_function_attribute):
805
ec1e2a40
BE
8062016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
807
808 * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of
809 BITS_PER_UNIT_LOG.
810
5ec2cd9f
JM
8112016-07-25 Jason Merrill <jason@redhat.com>
812
813 PR c++/65970
814 * c.opt (fconstexpr-loop-limit): New.
815
9dc5773f 8162016-07-22 Martin Sebor <msebor@redhat.com>
2e6b45af
MS
817
818 PR c++/71675
819 * c-common.c (resolve_overloaded_builtin): Avoid converting
820 __atomic_compare_exchange_n return type to that of what its
821 first argument points to.
822
e3fe09c1
UB
8232016-07-22 Uros Bizjak <ubizjak@gmail.com>
824
825 * c-common.c: Use HOST_WIDE_INT_M1U instead of
826 ~(unsigned HOST_WIDE_INT) 0.
827
bc91c436
ML
8282016-07-22 Martin Liska <mliska@suse.cz>
829
830 PR gcov-profile/69028
831 PR gcov-profile/62047
832 * cilk.c (create_cilk_helper_decl): Set location of a new decl
833 to the current_function_decl.
834
451dcc66
JM
8352016-07-21 Jason Merrill <jason@redhat.com>
836
837 PR c++/65168
838 * c-common.c (c_common_truthvalue_conversion): Check
839 c_inhibit_evaluation_warnings for warning about address of
840 reference.
841
de6a69ee
DM
8422016-07-20 David Malcolm <dmalcolm@redhat.com>
843
844 * c-common.h (lookup_name_fuzzy): Convert return type from tree to
845 const char *.
846
d022c55a
JM
8472016-07-15 Jason Merrill <jason@redhat.com>
848
849 * c-opts.c (c_common_post_options): Update -fabi-version default to 11.
850
ddbbcb19
JJ
8512016-07-15 Jakub Jelinek <jakub@redhat.com>
852
853 PR c/71858
854 * c-common.h (enum lookup_name_fuzzy_kind): Add
855 FUZZY_LOOKUP_FUNCTION_NAME.
856
d0cf395a
JM
8572016-07-08 Jason Merrill <jason@redhat.com>
858
859 P0145: Refining Expression Order for C++.
860 * c.opts (-fargs-in-order): Rename to -fstrong-eval-order.
861 * c-opts.c: Adjust.
862
98d44e93
MT
8632016-07-05 Markus Trippelsdorf <markus@trippelsdorf.de>
864
865 PR c++/71214
866 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.
867
f9d8d994
TS
8682016-06-29 Thomas Schwinge <thomas@codesourcery.com>
869
870 * c-pragma.h (enum pragma_kind): Rename
871 PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE. Adjust all
872 users.
873
4aa83879
RB
8742016-06-29 Richard Biener <rguenther@suse.de>
875
876 PR middle-end/71002
877 * c-common.c (c_common_get_alias_set): Remove union type punning case.
878
a25bd9e6
JM
8792016-06-24 Jason Merrill <jason@redhat.com>
880
881 P0145R2: Refining Expression Order for C++.
882 * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of
883 MODIFY_EXPR.
884
a86451b9
JJ
8852016-06-24 Jakub Jelinek <jakub@redhat.com>
886
887 * c-common.c (check_builtin_function_arguments): Require last
888 argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type.
889 Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW
890 if the last argument is pointer to enumerated or boolean type.
891
1a4f11c8
DM
8922016-06-22 David Malcolm <dmalcolm@redhat.com>
893
894 PR c/70339
895 * c-common.h (enum lookup_name_fuzzy_kind): New enum.
896 (lookup_name_fuzzy): New prototype.
897
fe55692c
JDA
8982016-06-21 John David Anglin <danglin@gcc.gnu.org>
899
900 * c-common.c (get_source_date_epoch): Use int64_t instead of long long.
901
4eb24e01
JM
9022016-06-14 Jason Merrill <jason@redhat.com>
903
904 P0145R2: Refining Expression Order for C++.
905 * c.opt (fargs-in-order): New.
906 * c-opts.c (c_common_post_options): Adjust flag_args_in_order.
907
ef7cf206
JJ
9082016-06-13 Jakub Jelinek <jakub@redhat.com>
909
0dda258b
JJ
910 PR sanitizer/71498
911 * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
912 all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.
913
ef7cf206
JJ
914 PR preprocessor/71183
915 * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch
916 to cb_get_source_date_epoch.
917
50b15873
JJ
9182016-06-10 Jakub Jelinek <jakub@redhat.com>
919
920 PR c/68657
921 * c.opt (Wpsabi): Add Warning flag.
922
4d926e34
MS
9232016-06-10 Martin Sebor <msebor@redhat.com>
924
925 PR c/71392
926 * gcc/c-family/c-common.c (handle_nonnull_attribute): Accept
927 the nonnull attribute in type-generic builtins.
928
e01b4e16
MS
9292016-06-09 Martin Sebor <msebor@redhat.com>
930
931 PR c/70883
932 * c-common.c (builtin_function_validate_nargs): Make text of error
933 message consistent with others like it.
934
44a845ca
MS
9352016-06-08 Martin Sebor <msebor@redhat.com>
936 Jakub Jelinek <jakub@redhat.com>
937
938 PR c++/70507
939 PR c/68120
940 * c-common.c (check_builtin_function_arguments): Handle
941 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
942
a80a7051
RB
9432016-06-08 Richard Biener <rguenther@suse.de>
944
945 * c-common.c (parse_optimize_options): Improve diagnostic messages.
946
bfd67b47
RB
9472016-06-07 Richard Biener <rguenther@suse.de>
948
949 PR c/61564
950 * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION
951 options and warn about others.
952
15c98b2e
ES
9532016-06-01 Eduard Sanou <dhole@openmailbox.org>
954
955 * c-common.c (get_source_date_epoch): Rename to
956 cb_get_source_date_epoch.
957 * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
958 message when the parsing fails. Use error_at instead of fatal_error.
959 * c-common.h (get_source_date_epoch): Rename to
960 cb_get_source_date_epoch.
961 * c-common.h (cb_get_source_date_epoch): Prototype.
962 * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
963 * c-common.h (c_omp_region_type): Remove trailing comma.
964 * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
965 * c-lex.c (c_lex_with_flags): Remove initialization of
966 pfile->source_date_epoch.
967
00631022
JJ
9682016-05-30 Jakub Jelinek <jakub@redhat.com>
969
970 PR c++/71349
971 * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
972 C_OMP_CLAUSE_SPLIT_TARGET. Put OMP_CLAUSE_NOWAIT to
973 C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
974 instead of C_OMP_CLAUSE_SPLIT_FOR.
975
f17a223d
RB
9762016-05-24 Richard Biener <rguenther@suse.de>
977
978 PR middle-end/70434
979 PR c/69504
980 * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
981 (convert_vector_to_array_for_subscript): ... this.
982 * c-common.c (convert_vector_to_pointer_for_subscript): Use a
983 VIEW_CONVERT_EXPR to an array type. Rename to ...
984 (convert_vector_to_array_for_subscript): ... this.
985
4f2e1536
MP
9862016-05-12 Marek Polacek <polacek@redhat.com>
987
988 PR c/70756
989 * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
990 size_in_bytes and pass LOC to it.
991
d6e83a8d
MM
9922016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
993
994 PR c/43651
995 * c.opt (Wduplicate-decl-specifier): New option.
996
5c3a10fb
MP
9972016-05-11 Marek Polacek <polacek@redhat.com>
998
999 PR c++/71024
1000 * c-common.c (diagnose_mismatched_attributes): New function.
1001 * c-common.h (diagnose_mismatched_attributes): Declare.
1002
deef7113
MP
10032016-05-04 Marek Polacek <polacek@redhat.com>
1004
1005 * c.opt (Wdangling-else): New option.
1006
79ce98bc
MP
10072016-05-03 Marek Polacek <polacek@redhat.com>
1008
1009 PR c/70859
1010 * c-common.c (builtin_function_validate_nargs): Add location
1011 parameter. Use it.
1012 (check_builtin_function_arguments): Add location and arguments
1013 parameters. Use them.
1014 * c-common.h (check_builtin_function_arguments): Update declaration.
1015
381cdae4
RB
10162016-05-03 Richard Biener <rguenther@suse.de>
1017
1018 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
1019 allow call args to gimplify to SSA names.
1020
1d793c34
MP
10212016-05-03 Marek Polacek <polacek@redhat.com>
1022
1023 * c-common.h (enum c_omp_region_type): Remove stray comma.
1024
77886428
CP
10252016-05-02 Cesar Philippidis <cesar@codesourcery.com>
1026
1027 * c-common.h (enum c_omp_region_type): Define.
1028
697e0b28
RS
10292016-05-02 Richard Sandiford <richard.sandiford@arm.com>
1030
1031 * c-common.c (shorten_compare): Use wi::to_wide.
1032
e7ff0319
CP
10332016-04-29 Cesar Philippidis <cesar@codesourcery.com>
1034
1035 PR middle-end/70626
1036 * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
1037 * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
1038 reduction clauses in acc parallel loops.
1039
2fff3db8
MP
10402016-04-29 Marek Polacek <polacek@redhat.com>
1041
1042 PR c/70852
1043 * c-common.c (warn_for_memset): Check domain before accessing it.
1044
509063eb
DV
10452016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
1046
1047 PR/69089
1048 * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
1049 "aligned" attribute.
1050
b632761d
JM
10512016-04-28 Jason Merrill <jason@redhat.com>
1052
1053 * c-lex.c (c_common_has_attribute): Handle nodiscard.
1054
174f6622
ES
10552016-04-28 Eduard Sanou <dhole@openmailbox.org>
1056 Matthias Klose <doko@debian.org>
1057
1058 * c-common.c (get_source_date_epoch): New function, gets the environment
1059 variable SOURCE_DATE_EPOCH and parses it as long long with error
1060 handling.
1061 * c-common.h (get_source_date_epoch): Prototype.
1062 * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
1063
6bc2bb18
RB
10642015-04-27 Ryan Burn <contact@rnburn.com>
1065
1066 PR c++/69024
1067 PR c++/68997
1068 * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
1069 (cilk_recognize_spawn): Renamed from recognize_spawn and change to
1070 external linkage.
1071 (cilk_detect_and_unwrap): Corresponding changes.
1072 (extract_free_variables): Don't extract free variables from
1073 AGGR_INIT_EXPR slot.
1074 * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
1075 (cilk_recognize_spawn): Likewise.
1076
c1e1f433
BS
10772016-04-27 Bernd Schmidt <bschmidt@redhat.com>
1078
1079 * c.opt (Wmemset-elt-size): New option.
1080 * c-common.c (warn_for_memset): New function.
1081 * c-common.h (warn_for_memset): Declare.
1082
d067e05f
JM
10832016-04-25 Jason Merrill <jason@redhat.com>
1084
1085 * c-common.c (handle_unused_attribute): Accept CONST_DECL.
1086 No longer static.
1087 * c-common.h: Declare it.
1088 * c-lex.c (c_common_has_attribute): Add maybe_unused.
1089
9aa36ae5
JM
10902016-04-22 Jason Merrill <jason@redhat.com>
1091
1092 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
1093
477d4906
IV
10942016-04-20 Ilya Verbin <ilya.verbin@intel.com>
1095
1096 PR c++/69363
1097 * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
1098 * c-common.h (c_finish_cilk_clauses): Remove declaration.
1099
fe37c7af
MM
11002016-04-18 Michael Matz <matz@suse.de>
1101
1102 * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
1103 and SET_DECL_ALIGN.
1104
23f2660f
EB
11052016-04-17 Eric Botcazou <ebotcazou@adacore.com>
1106
1107 * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
1108 (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
1109 to incomplete types.
1110 (dump_nested_type): Remove redundant tests and tidy up.
1111 (print_ada_declaration): Also set TREE_VISITED on the declaration of
1112 a type which is the typedef of an original type.
1113
1e77281b
MP
11142016-04-15 Marek Polacek <polacek@redhat.com>
1115
1116 PR c/70651
1117 * c-common.c (build_va_arg): Change two asserts into errors and return
1118 error_mark_node.
1119
b3a77f21
MP
11202016-04-13 Marek Polacek <polacek@redhat.com>
1121
1122 PR c++/70639
1123 * c-indentation.c (should_warn_for_misleading_indentation): Bail out
1124 for switch statements, too.
1125
322b8466
JM
11262016-03-28 Jason Merrill <jason@redhat.com>
1127
1128 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
1129
fbdb6baf
MP
11302016-03-23 Marek Polacek <polacek@redhat.com>
1131
1132 PR c++/69884
1133 * c.opt (Wignored-attributes): New option.
1134
5c240f4d
DM
11352016-03-22 David Malcolm <dmalcolm@redhat.com>
1136
1137 PR c/69993
1138 * c-indentation.c (warn_for_misleading_indentation): Rewrite the
1139 diagnostic text, reversing the order of the warning and note so
1140 that they appear in source order.
1141
14ba7b28
MP
11422016-03-17 Marek Polacek <polacek@redhat.com>
1143
1144 PR c/69407
1145 * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
1146 operations.
1147
08a1cadc
JM
11482016-03-14 Jason Merrill <jason@redhat.com>
1149
2aaeea19
JM
1150 * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
1151
08a1cadc
JM
1152 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
1153
c06d25bb
RB
11542016-03-09 Richard Biener <rguenther@suse.de>
1155
1156 PR c/70143
1157 * c-common.c (strict_aliasing_warning): Add back
1158 alias_sets_conflict_p check.
1159
80aac5c8
JM
11602016-03-08 Jason Merrill <jason@redhat.com>
1161
1162 * c-opts.c (set_std_cxx1z): Don't enable concepts.
1163
64b23c13
DM
11642016-03-04 David Malcolm <dmalcolm@redhat.com>
1165
1166 PR c/68187
1167 * c-indentation.c (get_visual_column): Move code to determine next
1168 tab stop to...
1169 (next_tab_stop): ...this new function.
1170 (line_contains_hash_if): Delete function.
1171 (detect_preprocessor_logic): Delete function.
1172 (get_first_nws_vis_column): New function.
1173 (detect_intervening_unindent): New function.
1174 (should_warn_for_misleading_indentation): Replace call to
1175 detect_preprocessor_logic with a call to
1176 detect_intervening_unindent.
1177
729526f5
DM
11782016-03-04 David Malcolm <dmalcolm@redhat.com>
1179
1180 PR c/68187
1181 * c-indentation.c (should_warn_for_misleading_indentation): When
1182 suppressing warnings about cases where the guard and body are on
1183 the same column, only use the first non-whitespace column in place
1184 of the guard token column when dealing with "else" clauses.
1185 When rejecting aligned BODY and NEXT, loosen the requirement
1186 from equality with the first non-whitespace of guard to simply
1187 that they not be indented relative to it.
1188
e9a35493
RB
11892016-03-04 Richard Biener <rguenther@suse.de>
1190
1191 PR c++/70054
1192 * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
1193 instead of alias_sets_conflict_p.
1194
1be56bc5
MP
11952016-03-01 Marek Polacek <polacek@redhat.com>
1196
1197 PR c++/69795
1198 * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
1199 any DECL.
1200
35886f0b
MS
12012016-02-22 Martin Sebor <msebor@redhat.com>
1202
1203 PR middle-end/69780
1204 * c-common.c (check_builtin_function_arguments): Validate and
1205 reject invalid arguments to __builtin_alloca_with_align.
1206
4246c8da
MW
12072016-02-20 Mark Wielaard <mjw@redhat.com>
1208
1209 PR c/28901
1210 * c.opt (Wunused-const-variable): Turn into Alias for...
1211 (Wunused-const-variable=): New option.
1212
268be88c
BE
12132016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
1214
1215 PR c++/69865
1216 * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
1217 here...
1218 (c_common_init_options): ...to here.
1219 (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
1220
871b3f47
JJ
12212016-02-19 Jakub Jelinek <jakub@redhat.com>
1222
1223 PR c++/69826
1224 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
1225 (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
1226 flag_preprocess_only.
1227
bf14eba2
JJ
12282016-02-16 Jakub Jelinek <jakub@redhat.com>
1229
1230 PR c/69835
1231 * c.opt (Wnonnull-compare): Enable for -Wall.
1232
ba6b3795
JJ
12332016-02-15 Jakub Jelinek <jakub@redhat.com>
1234
1235 PR c++/69797
1236 * c-common.c (sync_resolve_size): Diagnose too few arguments
1237 even when params is non-NULL empty vector.
1238
a011cd92
BS
12392016-02-08 Bernd Schmidt <bschmidt@redhat.com>
1240
1241 PR target/60410
1242 * c.opt (fshort-double): Remove.
1243
46cb9332
MS
12442016-02-05 Martin Sebor <msebor@redhat.com>
1245
1246 PR c++/69662
1247 * c.opt (Warning options): Update -Wplacement-new to take
1248 an optional argument.
1249
e1b81f2b
JJ
12502016-02-01 Jakub Jelinek <jakub@redhat.com>
1251
1252 PR preprocessor/69543
1253 PR c/69558
1254 * c-pragma.c (handle_pragma_diagnostic): Pass input_location
1255 instead of loc to control_warning_option.
1256
b6adbb9f
NS
12572016-02-01 Nathan Sidwell <nathan@codesourcery.com>
1258
1259 * c.opt (fopenacc-dim=): New option.
1260
5d70666e
RB
12612016-01-27 Ryan Burn <contact@rnburn.com>
1262
1263 PR cilkplus/69267
1264 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
1265 gimplify_arg. Removed superfluous post_p argument.
1266 * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
1267 superfluous post_p argument.
1268 * c-gimplify.c (c_gimplify_expr): Likewise.
1269
01e1dea3
DM
12702016-01-26 David Malcolm <dmalcolm@redhat.com>
1271
1272 PR other/69006
1273 * c-opts.c (c_diagnostic_finalizer): Replace invocation of
1274 pp_newline_and_flush with pp_flush.
1275
9f04a53e
MS
12762016-01-20 Martin Sebor <msebor@redhat.com>
1277
1278 PR c/69405
1279 * c-common.c (sync_resolve_size): Avoid printing diagnostic about
1280 an incompatible argument when the argument isn't a valid tree node.
1281
7f26f7df
JM
12822016-01-18 Jason Merrill <jason@redhat.com>
1283
1284 PR c++/68767
1285 * c-common.c (check_function_arguments_recurse): Fold the whole
1286 COND_EXPR, not just the condition.
1287
f62bf092
TV
12882016-01-18 Tom de Vries <tom@codesourcery.com>
1289
1290 * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
1291 classify as loop clause.
1292
e0a575ff
JJ
12932016-01-15 Jakub Jelinek <jakub@redhat.com>
1294
1295 PR bootstrap/68271
1296 * c-pragma.c (c_register_pragma_1): Adjust comment to note that
1297 C++ FE no longer has limit on number of pragmas.
1298
12992015-01-14 Ryan Burn <contact@rnburn.com>
b6e3db06
RB
1300
1301 PR c++/69048
1302 * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
c47eaca6 1303 to add missing cleanup point.
b6e3db06 1304
c7df95d8
DM
13052016-01-14 David Malcolm <dmalcolm@redhat.com>
1306
1307 PR c++/68819
1308 * c-indentation.c (get_visual_column): Add location_t param.
1309 Handle the column number being zero by effectively disabling the
1310 warning, with an "inform".
1311 (should_warn_for_misleading_indentation): Add location_t argument
1312 for all uses of get_visual_column.
1313
21efdd80
PP
13142016-01-10 Patrick Palka <ppalka@gcc.gnu.org>
1315
1316 PR c++/69029
1317 * c-indentation.c (should_warn_for_misleading_indentation):
1318 Don't warn about do-while statements.
1319
7a127fa7
MS
13202016-01-07 Martin Sebor <msebor@redhat.com>
1321
1322 PR c/68966
1323 * c-common.c (sync_resolve_size): Reject first argument when it's
1324 a pointer to _Bool.
1325
c589e975
DM
13262016-01-05 David Malcolm <dmalcolm@redhat.com>
1327
1328 PR c/69122
1329 * c-indentation.c (get_visual_column): Remove default argument.
1330 (should_warn_for_misleading_indentation): For the multiline case,
1331 update call to get_visual_column for next_stmt_exploc so that it
1332 captures the location of the first non-whitespace character in the
1333 relevant line. Don't issue warnings if there is non-whitespace
1334 before the next statement.
1335
818ab71a
JJ
13362016-01-04 Jakub Jelinek <jakub@redhat.com>
1337
1338 Update copyright years.
1339
745e411d
DM
13402015-12-21 David Malcolm <dmalcolm@redhat.com>
1341
1342 * c-common.c (binary_op_error): Convert first param from
1343 location_t to rich_location * and use it when emitting an error.
1344 * c-common.h (binary_op_error): Convert first param from
1345 location_t to rich_location *.
1346
de67c4c3
DM
13472015-12-16 David Malcolm <dmalcolm@redhat.com>
1348
1349 * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
1350 * c-lex.c (conflict_marker_get_final_tok_kind): New function.
1351
4a38b02b
IV
13522015-12-15 Ilya Verbin <ilya.verbin@intel.com>
1353
1354 * c-common.c (c_common_attribute_table): Handle "omp declare target
1355 link" attribute.
1356
54d62f51
JJ
13572015-12-14 Jakub Jelinek <jakub@redhat.com>
1358
1359 PR c/68833
1360 * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
1361
8d4227c8
TB
13622014-12-12 Tobias Burnus <burnus@net-b.de>
1363
1364 PR fortran/68815
1365 * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
1366 specifiers (%d, %i,%u and %c).
1367
f6069ccc
DM
13682015-12-10 David Malcolm <dmalcolm@redhat.com>
1369
1370 * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
1371
63bbf46d
JJ
13722015-12-08 Jakub Jelinek <jakub@redhat.com>
1373
1374 PR c/48088
1375 PR c/68657
1376 * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
1377 * c-pragma.c (handle_pragma_diagnostic): Adjust
1378 control_warning_option caller.
1379
f79520bb
DM
13802015-12-07 David Malcolm <dmalcolm@redhat.com>
1381
1382 * c-common.c (c_cpp_error): Update for change to
1383 rich_location::set_range.
1384
b3d5bc62
JJ
13852015-12-04 Paolo Bonzini <bonzini@gnu.org>
1386
1387 * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
1388 shifting 1 out of the sign bit.
1389
13902015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
1391
1392 * c-common.c (c_common_attribute_table[]): Update max arguments
1393 count for "simd" attribute.
1394 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
1395
6eb4a537
JJ
13962015-12-03 Jakub Jelinek <jakub@redhat.com>
1397
1398 PR preprocessor/57580
1399 * c-ppoutput.c (print): Change printed field to bool.
1400 Move src_file last for smaller padding.
1401 (init_pp_output): Set print.printed to false instead of 0.
1402 (scan_translation_unit): Fix up formatting. Set print.printed
1403 to true after printing something other than newline.
1404 (scan_translation_unit_trad): Set print.printed to true instead of 1.
1405 (maybe_print_line_1): Set print.printed to false instead of 0.
1406 (print_line_1): Likewise.
1407 (do_line_change): Set print.printed to true instead of 1.
1408 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
1409 dump_macro): Set print.printed to false after printing newline.
1410
4250754e
JM
14112015-12-02 Jason Merrill <jason@redhat.com>
1412
f479b43d
JM
1413 * c-common.c (fold_for_warn): New.
1414 (warn_logical_operator, warn_tautological_cmp)
1415 (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
1416
4250754e
JM
1417 * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
1418 (c_fully_fold_internal, decl_constant_value_for_optimization):
1419 Move to c/c-fold.c.
1420 * c-common.h: Don't declare decl_constant_value_for_optimization.
1421
e9e32ee6
JM
14222015-12-02 Joseph Myers <joseph@codesourcery.com>
1423
1424 PR c/68162
1425 * c-common.h (c_build_qualified_type): Add extra default
1426 arguments.
1427
37d5ad46
JB
14282015-12-01 Julian Brown <julian@codesourcery.com>
1429 Cesar Philippidis <cesar@codesourcery.com>
1430 James Norris <James_Norris@mentor.com>
1431
1432 * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
1433 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
1434 (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
1435
f07862c7
EB
14362015-11-30 Eric Botcazou <ebotcazou@adacore.com>
1437
1438 * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
1439 (decl_sloc_common): Delete and move bulk of processing to...
1440 (decl_sloc): ...here.
1441 (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
1442 (dump_ada_double_name): Remove S parameter and compute the suffix.
1443 (dump_ada_array_type): Add PARENT parameter. Simplify computation of
1444 element type and deal with an anonymous one.
1445 (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
1446 (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type
1447 and remove reference to QUAL_UNION_TYPE.
1448 (dump_nested_types): Make 2 passes on the fields and move bulk to...
1449 (dump_nested_type): ...here. New function extracted from above.
1450 Generate a full declaration for anonymous element type of arrays.
1451 (print_ada_declaration): Really skip anonymous declarations. Remove
1452 references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type.
1453 Clean up processing of declarations of array types and objects.
1454 (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
1455 Remove obsolete code and tidy up.
1456
75c8aac3
JH
14572015-11-29 Jan Hubicka <hubicka@ucw.cz>
1458
1459 PR c/67581
1460 * c-common.c (handle_transparent_union_attribute): Update
1461 also type variants.
1462
b58d3df2
ML
14632015-11-27 Martin Liska <mliska@suse.cz>
1464
1465 PR c++/68312
1466 * array-notation-common.c (cilkplus_extract_an_triplets):
1467 Release vector of vectors.
1468 * cilk.c (gimplify_cilk_spawn): Free allocated memory.
1469
89a01fcf
EB
14702015-11-26 Eric Botcazou <ebotcazou@adacore.com>
1471
1472 PR c++/68527
1473 * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
1474 (print_ada_struct_decl): Likewise.
1475
cc5c5226
IZ
14762015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
1477
1478 PR c++/68001
1479 * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
1480 * cilk.c (recognize_spawn): Determine location in a more precise
1481 way.
1482
269adb9d
JM
14832015-11-19 Jason Merrill <jason@redhat.com>
1484
1485 * c-common.c (shorten_compare): But look through macros from
1486 system headers.
1487
d0eccfcd
JM
14882015-11-18 Jason Merrill <jason@redhat.com>
1489
1490 * c-common.c (shorten_compare): Don't -Wtype-limits if the
1491 non-constant operand comes from a macro.
1492
3e44547c
JM
14932015-11-17 Jason Merrill <jason@redhat.com>
1494
1495 PR bootstrap/68346
1496 * c-common.c (warn_tautological_cmp): Fold before checking for
1497 constants.
1498
0f62c7a0
MP
14992015-11-16 Marek Polacek <polacek@redhat.com>
1500
1501 PR c++/68362
1502 * c-common.c (check_case_bounds): Fold low and high cases.
1503
a868811e
MP
15042015-11-16 Marek Polacek <polacek@redhat.com>
1505
1506 * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
1507 * c-common.c (c_common_get_alias_set): Likewise.
1508 (handle_visibility_attribute): Likewise.
1509
fff77217
KY
15102015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
1511
1512 * c-common.c (handle_simd_attribute): New.
1513 (struct attribute_spec): Add entry for "simd".
1514 (handle_simd_attribute): New.
1515
269e63b7
KT
15162015-11-13 Kai Tietz <ktietz70@googlemail.com>
1517
1518 * c-lex.c (interpret_float): Use fold_convert.
1519
ebedc9a3
DM
15202015-11-13 David Malcolm <dmalcolm@redhat.com>
1521
1522 * c-common.c (c_fully_fold_internal): Capture existing souce_range,
1523 and store it on the result.
1524 * c-opts.c (c_common_init_options): Set
1525 global_dc->colorize_source_p.
1526
6e232ba4
JN
15272015-11-12 James Norris <jnorris@codesourcery.com>
1528 Joseph Myers <joseph@codesourcery.com>
1529
1530 * c-pragma.c (oacc_pragmas): Add entry for declare directive.
1531 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
1532 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
1533 PRAGMA_OACC_CLAUSE_LINK.
1534
e78bede6
MP
15352015-11-11 Marek Polacek <polacek@redhat.com>
1536
1537 PR c/68107
1538 PR c++/68266
1539 * c-common.c (valid_array_size_p): New function.
1540 * c-common.h (valid_array_size_p): Declare.
1541
3f8257db 15422015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
4ac93c7c
DH
1543
1544 PR bootstrap/68271
1545 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
1546
69f293c9
AM
15472015-11-11 Andrew MacLeod <amacleod@redhat.com>
1548
1549 * array-notation-common.c: Remove unused header files.
1550 * c-ada-spec.c: Likewise.
1551 * c-cilkplus.c: Likewise.
1552 * c-common.c: Likewise.
1553 * c-cppbuiltin.c: Likewise.
1554 * c-dump.c: Likewise.
1555 * c-format.c: Likewise.
1556 * c-gimplify.c: Likewise.
1557 * c-indentation.c: Likewise.
1558 * c-lex.c: Likewise.
1559 * c-omp.c: Likewise.
1560 * c-opts.c: Likewise.
1561 * c-pch.c: Likewise.
1562 * c-ppoutput.c: Likewise.
1563 * c-pragma.c: Likewise.
1564 * c-pretty-print.c: Likewise.
1565 * c-semantics.c: Likewise.
1566 * c-ubsan.c: Likewise.
1567 * cilk.c: Likewise.
1568 * stub-objc.c: Likewise.
1569
3a40d81d
NS
15702015-11-09 Thomas Schwinge <thomas@codesourcery.com>
1571 Cesar Philippidis <cesar@codesourcery.com>
1572 James Norris <jnorris@codesourcery.com>
1573 Julian Brown <julian@codesourcery.com>
1574 Nathan Sidwell <nathan@codesourcery.com>
1575
1576 * c-pragma.c (oacc_pragmas): Add "routine".
1577 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
1578
ee45a32d
EB
15792015-11-08 Eric Botcazou <ebotcazou@adacore.com>
1580
1581 * c-common.c (c_common_attributes): Add scalar_storage_order.
1582 (handle_scalar_storage_order_attribute): New function.
1583 * c-pragma.c (global_sso): New variable.
1584 (maybe_apply_pragma_scalar_storage_order): New function.
1585 (handle_pragma_scalar_storage_order): Likewise.
1586 (init_pragma): Register scalar_storage_order.
1587 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
1588 * c.opt (Wscalar-storage-order): New warning.
1589 (fsso-struct=): New option.
1590
eb11eb15
MS
15912015-11-08 Martin Sebor <msebor@redhat.com>
1592
1593 * c.opt (Wplacement-new): Add a period to the end of a sentence.
1594
0aad0198
RS
15952015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1596
1597 * c-common.c: Don't undef DEF_BUILTIN.
1598
8a645150
DM
15992015-11-06 David Malcolm <dmalcolm@redhat.com>
1600
1601 * c-common.c (c_cpp_error): Convert parameter from location_t to
1602 rich_location *. Eliminate the "column_override" parameter and
1603 the call to diagnostic_override_column.
1604 Update the "done_lexing" clause to set range 0
1605 on the rich_location, rather than overwriting a location_t.
1606 * c-common.h (c_cpp_error): Convert parameter from location_t to
1607 rich_location *. Eliminate the "column_override" parameter.
1608
7a5e4956
CP
16092015-11-05 Cesar Philippidis <cesar@codesourcery.com>
1610 Thomas Schwinge <thomas@codesourcery.com>
1611 James Norris <jnorris@codesourcery.com>
1612
1613 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
1614 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
1615 clauses with parallel and kernels and loops.
1616 * c-pragma.h (enum pragma_omp_clause): Add entries for
1617 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
1618 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
1619 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
1620 INDEPENDENT,SEQ}.
1621 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
1622
e2f5cc96
MS
16232015-11-05 Martin Sebor <msebor@redhat.com>
1624
1625 PR c++/67942
1626 * c.opt (-Wplacement-new): New option.
1627
e01d41e5
JJ
16282015-11-05 Jakub Jelinek <jakub@redhat.com>
1629
1630 * c-common.h (c_finish_omp_atomic): Add TEST argument.
1631 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
1632 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
1633 save_expr or create_tmp_var* if TEST is true.
1634 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
1635 Don't call add_stmt here.
1636 (struct c_omp_check_loop_iv_data): New type.
1637 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
1638 c_omp_check_loop_iv_exprs): New functions.
1639 (c_omp_split_clauses): Adjust for lastprivate being allowed on
1640 distribute.
1641 (c_omp_declare_simd_clauses_to_numbers): Change
1642 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
1643 (c_omp_declare_simd_clauses_to_decls): Similarly change those
1644 from numbers to PARM_DECLs.
1645
595278be
MM
16462015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
1647
1648 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
1649 flag_checking.
1650
3f8257db 16512015-11-03 Bernd Schmidt <bschmidt@redhat.com>
c85158de
MS
1652
1653 PR c++-common/67882
b3d5bc62
JJ
1654 * c-common.h (fold_offsetof_1): Add argument.
1655 * c-common.c (fold_offsetof_1): Diagnose more invalid
c85158de
MS
1656 offsetof expressions that reference elements past the end of
1657 an array.
1658
4bf9e5a8
TS
16592015-11-03 Thomas Schwinge <thomas@codesourcery.com>
1660 Chung-Lin Tang <cltang@codesourcery.com>
1661
1662 * c-pragma.c (oacc_pragmas): Add "atomic".
1663 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
1664
3b1661a9
ES
16652015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
1666
1667 * c-common.c (handle_target_clones_attribute): New.
1668 (c_common_attribute_table): Add handle_target_clones_attribute.
1669 (handle_always_inline_attribute): Add check on target_clones attribute.
1670 (handle_target_attribute): Ditto.
1671
2adfab87
AM
16722015-10-29 Andrew MacLeod <amacleod@redhat.com>
1673
1674 * array-notation-common.c: Reorder #include's and remove duplicates.
1675 * c-ada-spec.c: Likewise.
1676 * c-cilkplus.c: Likewise.
1677 * c-common.c: Likewise.
1678 * c-cppbuiltin.c: Likewise.
1679 * c-dump.c: Likewise.
1680 * c-format.c: Likewise.
1681 * c-gimplify.c: Likewise.
1682 * c-indentation.c: Likewise.
1683 * c-lex.c: Likewise.
1684 * c-omp.c: Likewise.
1685 * c-opts.c: Likewise.
1686 * c-pch.c: Likewise.
1687 * c-ppoutput.c: Likewise.
1688 * c-pragma.c: Likewise.
1689 * c-pretty-print.c: Likewise.
1690 * c-semantics.c: Likewise.
1691 * c-ubsan.c: Likewise.
1692 * cilk.c: Likewise.
1693 * stub-objc.c: Likewise.
1694
d90ec4f2
JM
16952015-10-28 Jason Merrill <jason@redhat.com>
1696
1697 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
1698
88bae6f4
TS
16992015-10-27 Thomas Schwinge <thomas@codesourcery.com>
1700 James Norris <jnorris@codesourcery.com>
1701 Cesar Philippidis <cesar@codesourcery.com>
1702
1703 PR c/64765
1704 PR c/64880
1705 * c-common.h (c_oacc_split_loop_clauses): Declare function.
1706 * c-omp.c (c_oacc_split_loop_clauses): New function.
1707
b1726d6c
MS
17082015-10-21 Martin Sebor <msebor@redhat.com>
1709
1710 PR driver/68043
1711 * c.opt: End each sentence that describes an option with a period.
1712
fa60eeb9
MP
17132015-10-20 Marek Polacek <polacek@redhat.com>
1714
1715 * array-notation-common.c (is_cilkplus_vector_p): Define.
1716 * c-common.h (is_cilkplus_vector_p): Declare.
1717
95979049
MP
17182015-10-20 Marek Polacek <polacek@redhat.com>
1719
1720 * c.opt (std=gnu++11): Do not describe as experimental.
1721 (std=gnu++14): Likewise.
1722
2a9fb712
JM
17232015-10-19 Jason Merrill <jason@redhat.com>
1724
1725 * c-cppbuiltin.c (c_cpp_builtins): Define
1726 __cpp_nontype_template_args.
1727
13b380a3
JM
17282015-10-19 Jason Merrill <jason@redhat.com>
1729
1730 * c-cppbuiltin.c (c_cpp_builtins): Define
1731 __cpp_enumerator_attributes, __cpp_fold_expressions,
1732 __cpp_unicode_characters.
1733
d9a6bd32
JJ
17342015-10-13 Jakub Jelinek <jakub@redhat.com>
1735 Aldy Hernandez <aldyh@redhat.com>
1736
1737 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
1738 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
1739 (c_define_builtins): Likewise.
1740 * c-common.h (enum c_omp_clause_split): Add
1741 C_OMP_CLAUSE_SPLIT_TASKLOOP.
1742 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
1743 (c_finish_omp_for): Add ORIG_DECLV argument.
1744 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
1745 201511 instead of 201307.
1746 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
1747 OMP_CRITICAL_CLAUSES to it.
1748 (c_finish_omp_ordered): Add CLAUSES argument, set
1749 OMP_ORDERED_CLAUSES to it.
1750 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
1751 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
1752 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
1753 constructs and new OpenMP 4.5 clauses. Clear
1754 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
1755 verification code.
1756 * c-pragma.c (omp_pragmas_simd): Add taskloop.
1757 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
1758 (enum pragma_omp_clause): Add
1759 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
1760 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
1761
624d31fe
RS
17622015-10-05 Richard Sandiford <richard.sandiford@arm.com>
1763
1764 * c-lex.c (interpret_float): Use real_equal instead of
1765 REAL_VALUES_EQUAL.
1766
b8fd7909
JM
17672015-10-04 Jason Merrill <jason@redhat.com>
1768
1769 Implement N4514, C++ Extensions for Transactional Memory.
1770 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
1771 (c_common_attribute_table): Add transaction_safe_dynamic.
1772 transaction_safe now affects type identity.
1773 (handle_tm_attribute): Handle transaction_safe_dynamic.
1774 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
1775 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
1776 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
1777 (D_TRANSMEM): New.
1778 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
1779 * c-pretty-print.c (pp_c_attributes_display): Don't print
1780 transaction_safe in C++.
1781
12651878
MP
17822015-10-02 Marek Polacek <polacek@redhat.com>
1783
1784 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
1785
3e3b8d63
MP
17862015-10-02 Marek Polacek <polacek@redhat.com>
1787
1788 PR c/64249
1789 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
1790 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
1791 * c.opt (Wduplicated-cond): New option.
1792
0d1a8f75
JM
17932015-10-01 Joseph Myers <joseph@codesourcery.com>
1794
1795 * c.opt (std=c11): Do not describe as experimental.
1796 (std=gnu11): Likewise.
1797 (std=iso9899:2011): Likewise.
1798
3e32ee19
NS
17992015-09-28 Nathan Sidwell <nathan@codesourcery.com>
1800
1801 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
1802 (DEF_FUNCTION_TYPE_VAR_11): Delete.
1803
974348ee
MP
18042015-09-25 Marek Polacek <polacek@redhat.com>
1805
1806 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
1807 (ubsan_instrument_shift): Likewise.
1808
15dbc1a6
MP
18092015-09-25 Marek Polacek <polacek@redhat.com>
1810
1811 PR sanitizer/64906
1812 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
1813
6b95d7cc
PP
18142015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
1815
1816 * c-indentation.c (should_warn_for_misleading_indentation):
1817 Compare next_stmt_vis_column with guard_line_first_nws instead
1818 of with guard_line_vis_column.
1819
c1822f9c
MLI
18202015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
1821
1822 PR c/49654
1823 PR c/49655
1824 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
1825 options and options not valid for the current language.
1826
d5398058
PP
18272015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
1828
1829 * c-indentation.c (should_warn_for_misleading_indentation):
1830 Float out and consolidate the calls to get_visual_column that
1831 are passed guard_exploc as an argument. Compare
1832 next_stmt_vis_column with guard_line_first_nws instead of with
1833 body_line_first_nws.
1834
6b333269
NS
18352015-09-22 Nathan Sidwell <nathan@codesourcery.com>
1836
1837 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
1838 Wnamespaces): New C++ warnings.
1839
a75f1574
JM
18402015-09-22 Jason Merrill <jason@redhat.com>
1841
1842 * c-common.h (abi_compat_version_crosses): New.
1843 (warn_abi_version): Declare.
1844 * c-common.c: Define it.
1845 * c-opts.c (c_common_post_options): Handle it.
1846 flag_abi_compat_version defaults to 8.
1847
bdaaa8b7
VV
18482015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
1849
1850 Complete the implementation of N4230, Nested namespace definition.
1851 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
1852 __cpp_nested_namespace_definitions.
1853
eaa797e8
MLI
18542015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
1855
1856 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
1857
c4914de6
MLI
18582015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
1859
1860 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
1861 when warning.
1862 * c-pragma.h (pragma_lex): Add optional loc argument.
1863
fcb87c50
MM
18642015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
1865
1866 * c-format.c (check_format_arg): Adjust to use common block size in all
1867 object pools.
1868
31bdd08a
DM
18692015-09-15 David Malcolm <dmalcolm@redhat.com>
1870
1871 * c-format.c (location_from_offset): Update for change in
1872 signature of location_get_source_line.
1873 * c-indentation.c (get_visual_column): Likewise.
1874 (line_contains_hash_if): Likewise.
1875
aa9f4b4c
MP
18762015-09-14 Marek Polacek <polacek@redhat.com>
1877
1878 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
1879 setting various warnings.
1880
aa256c4a
MP
18812015-09-14 Marek Polacek <polacek@redhat.com>
1882
1883 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
1884 a negative value.
1885
0f876f22
MW
18862015-09-11 Mark Wielaard <mjw@redhat.com>
1887
1888 PR c/28901
1889 * c.opt (Wunused-variable): Option from common.opt.
1890 (Wunused-const-variable): New option.
1891
273aa49e
PC
18922015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
1893
1894 PR c++/53184
1895 * c.opt ([Wsubobject-linkage]): Add.
1896
1807ffc1
MS
18972015-09-03 Martin Sebor <msebor@redhat.com>
1898
1899 PR c/66516
1900 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
1901 functions.
1902 * c-common.c (reject_gcc_builtin): Define.
1903
38942840
BI
19042015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
1905
1906 PR middle-end/60586
1907 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
1908 prototype.
1909 * c-gimplify.c (c_gimplify_expr): Added a call to the function
1910 cilk_gimplify_call_params_in_spawned_fn.
1911 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
1912 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
1913 unwrapping.
1914
c316b5e4
MP
19152015-08-25 Marek Polacek <polacek@redhat.com>
1916
1917 PR middle-end/67330
1918 * c-common.c (handle_weak_attribute): Don't check whether the
1919 visibility can be changed here.
1920
584a7c46
MLI
19212015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1922
1923 * c-lex.c (c_lex_with_flags): Use explicit locations.
1924
a79683d5
TS
19252015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
1926
1927 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
1928 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
1929
61717a45
FXC
19302015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1931
1932 PR middle-end/36757
1933 * c-common.c (check_builtin_function_arguments): Add check
1934 for BUILT_IN_SIGNBIT argument.
1935
329524f5
PC
19362015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
1937
1938 PR c++/67160
1939 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
1940 in c++1z mode.
1941
4ee55665
MP
19422015-08-17 Marek Polacek <polacek@redhat.com>
1943
1944 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
1945 with whitespaces before qualifier names.
1946
b893e375
MP
19472015-08-12 Marek Polacek <polacek@redhat.com>
1948
1949 PR c++/55095
1950 * c-common.c (maybe_warn_shift_overflow): Properly handle
1951 left-shifting 1 into the sign bit.
1952
c2d89095
MLI
19532015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1954
1955 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
1956
971e17ff
AS
19572015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
1958 Braden Obrzut <admin@maniacsvault.net>
1959 Jason Merrill <jason@redhat.com>
1960
1961 Add C++ Concepts TS support.
1962 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
1963 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
1964 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
1965 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
1966 * c-opts.c (set_std_cxx1z): Set flag_concepts.
1967 * c.opt (fconcepts): New.
1968
b3d5bc62
JJ
19692015-08-02 Martin Sebor <msebor@redhat.com>
1970
1971 * c.opt (-Wframe-address): New warning option.
1972
8ebca419
PP
19732015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1974
1975 * c-indentation.c (should_warn_for_misleading_indentation):
1976 Improve heuristics.
1977
1a1e101f
PP
19782015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1979
1980 * c-indentation.c (get_visual_column): Add parameter first_nws,
1981 use it. Update comment documenting the function.
1982 (is_first_nonwhitespace_on_line): Remove.
1983 (should_warn_for_misleading_indentation): Replace usage of
1984 of is_first_nonwhitespace_on_line with get_visual_column.
1985
992118a1
PP
19862015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1987
1988 * c-indentation.h (struct token_indent_info): Define.
1989 (get_token_indent_info): Define.
1990 (warn_for_misleading_information): Declare.
1991 * c-common.h (warn_for_misleading_information): Remove.
1992 * c-identation.c (warn_for_misleading_indentation):
1993 Change declaration to take three token_indent_infos. Adjust
1994 accordingly.
1995 * c-identation.c (should_warn_for_misleading_indentation):
1996 Likewise. Bail out early if the body is a compound statement.
1997 (guard_tinfo_to_string): Define.
1998
e8fa3817
JM
19992015-07-30 Jason Merrill <jason@redhat.com>
2000
2001 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
2002 '*' for reference decay.
2003
173864e8
MP
20042015-07-30 Marek Polacek <polacek@redhat.com>
2005
2006 * c-common.c (warn_tautological_cmp): Bail for float types.
2007
f2afe6dd
MP
20082015-07-27 Marek Polacek <polacek@redhat.com>
2009
2010 PR bootstrap/67030
2011 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
2012
05b28fd6
MP
20132015-07-27 Marek Polacek <polacek@redhat.com>
2014
2015 PR c++/66555
2016 PR c/54979
2017 * c-common.c (find_array_ref_with_const_idx_r): New function.
2018 (warn_tautological_cmp): New function.
2019 * c-common.h (warn_tautological_cmp): Declare.
2020 * c.opt (Wtautological-compare): New option.
2021
5a5062b8
MP
20222015-07-23 Marek Polacek <polacek@redhat.com>
2023
2024 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
2025 (ubsan_instrument_shift): Likewise.
2026
dc891fe7
MP
20272015-07-23 Marek Polacek <polacek@redhat.com>
2028
2029 PR sanitizer/66908
2030 * c-ubsan.c: Include gimplify.h.
2031 (ubsan_instrument_division): Unshare OP0 and OP1.
2032 (ubsan_instrument_shift): Likewise.
2033
451b5e48
MP
20342015-07-20 Marek Polacek <polacek@redhat.com>
2035 Richard Sandiford <richard.sandiford@arm.com>
2036
2037 PR c++/55095
2038 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
2039 Use EXPR_LOC_OR_LOC.
2040 (maybe_warn_shift_overflow): New function.
2041 * c-common.h (maybe_warn_shift_overflow): Declare.
2042 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
2043 * c.opt (Wshift-overflow): New option.
2044
fb0b2914
ML
20452015-07-16 Martin Liska <mliska@suse.cz>
2046
2047 * c-format.c (static void check_format_info_main): Use
2048 object_allocator instead of pool_allocator.
2049 (check_format_arg): Likewise.
2050 (check_format_info_main): Likewise.
2051
903f5c23
AM
20522015-07-15 Andrew MacLeod <amacleod@redhat.com>
2053
2054 * c-opts.c: Remove multiline #include comment.
2055
026c3cfd
AH
20562015-07-12 Aldy Hernandez <aldyh@redhat.com>
2057
2058 * c-common.c: Fix double word typos.
2059
bb49ee66
EB
20602015-07-10 Eric Botcazou <ebotcazou@adacore.com>
2061
2062 * c-ada-spec.h (cpp_operation): Revert latest change.
2063 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
2064 constructors and destructors.
2065
1916bcb5
AM
20662015-07-09 Andrew MacLeod <amacleod@redhat.com>
2067
2068 * c-common.h: Adjust includes for flags.h changes.
2069 * stub-objc.c: Likewise.
026c3cfd 2070
a9dcd529
EB
20712015-07-08 Eric Botcazou <ebotcazou@adacore.com>
2072
2073 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
2074 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
2075
b03b462f
JJ
20762015-07-08 Jakub Jelinek <jakub@redhat.com>
2077
2078 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
2079 are to be removed, return NULL rather than original clauses list.
2080
c7131fb2
AM
20812015-07-07 Andrew MacLeod <amacleod@redhat.com>
2082
2083 * array-notation-common.c: Adjust includes.
2084 * c-ada-spec.c: Likewise.
2085 * c-cilkplus.c: Likewise.
2086 * c-common.h: Likewise.
2087 * c-cppbuiltin.c: Likewise.
2088 * c-dump.c: Likewise.
2089 * c-format.c: Likewise.
2090 * c-gimplify.c: Likewise.
2091 * c-indentation.c: Likewise.
2092 * c-lex.c: Likewise.
2093 * c-omp.c: Likewise.
2094 * c-opts.c: Likewise.
2095 * c-pch.c: Likewise.
2096 * c-ppoutput.c: Likewise.
2097 * c-pragma.c: Likewise.
2098 * c-pretty-print.c: Likewise.
2099 * c-semantics.c: Likewise.
2100 * c-ubsan.c: Likewise.
2101 * cilk.c: Likewise.
2102 * stub-objc.c: Likewise.
2103
2a7fb83f
EB
21042015-07-07 Eric Botcazou <ebotcazou@adacore.com>
2105
2106 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
2107 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
2108
a03c9bf1
JM
21092015-07-01 Jason Merrill <jason@redhat.com>
2110
36a85135
JM
2111 * c-common.h (D_CXX11): Rename from D_CXX0X.
2112 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
2113 * c-common.c: Adjust.
2114
e7fa68d5
JM
2115 * c-opts.c (c_common_post_options): Default to C++14.
2116
a03c9bf1
JM
2117 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
2118
fe95b036
ESR
21192015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
2120
2121 Implement N4197 - Adding u8 character literals
b3d5bc62 2122 * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
a64be36b 2123 CPP_CHAR.
b3d5bc62 2124 * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
a64be36b 2125 CPP_UTF8CHAR_USERDEF tokens.
b3d5bc62 2126 * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
a64be36b
EB
2127 and CPP_UTF8CHAR tokens.
2128 (lex_charconst): Treat CPP_UTF8CHAR token.
fe95b036 2129
da2e71c9
MLI
21302015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2131
2132 PR fortran/66605
2133 * c-common.c (do_warn_unused_parameter): Move here.
2134 * c-common.h (do_warn_unused_parameter): Declare.
2135
b155cfd9
MP
21362015-06-29 Marek Polacek <polacek@redhat.com>
2137
2138 PR c/66322
2139 * c-common.c (check_case_bounds): Add bool * parameter. Set
2140 OUTSIDE_RANGE_P.
2141 (c_add_case_label): Add bool * parameter. Pass it down to
2142 check_case_bounds.
2143 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
2144 warning here.
2145 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
2146 declarations.
2147
31521951
MP
21482015-06-27 Marek Polacek <polacek@redhat.com>
2149
2150 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
2151 or VECTOR_INTEGER_TYPE_P throughout.
2152 * c-gimplify.c: Likewise.
2153
22d03525
MP
21542015-06-26 Marek Polacek <polacek@redhat.com>
2155
2156 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
2157 * c-common.c (c_fully_fold_internal): Likewise.
2158 (c_alignof_expr): Likewise.
2159 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
2160 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
b1726d6c 2161 * cilk.c (create_parm_list): Likewise.
22d03525 2162
af05e6e5
MP
21632015-06-26 Marek Polacek <polacek@redhat.com>
2164
2165 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
2166
f0889939
AM
21672015-06-25 Andrew MacLeod <amacleod@redhat.com>
2168
2169 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
2170 * c-gimplify.c: Likewise.
2171 * c-pragma.c: Likewise.
2172 * c-ubsan.c: Likewise.
2173 * cilk.c: Likewise.
2174
ca752f39
RS
21752015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2176
2177 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
2178 ggc_hasher.
2179
16a16ec7
AM
21802015-06-25 Andrew MacLeod <amacleod@redhat.com>
2181
2182 * cilk.c: Move calls.h after tm.h in the include chain.
2183
0ae9bd27
MP
21842015-06-25 Marek Polacek <polacek@redhat.com>
2185
2186 * array-notation-common.c: Use VAR_P throughout.
2187 * c-ada-spec.c: Likewise.
2188 * c-common.c: Likewise.
2189 * c-format.c: Likewise.
2190 * c-gimplify.c: Likewise.
2191 * c-omp.c: Likewise.
2192 * c-pragma.c: Likewise.
2193 * c-pretty-print.c: Likewise.
2194 * cilk.c: Likewise.
2195
62f9079a
MP
21962015-06-25 Marek Polacek <polacek@redhat.com>
2197
2198 * cilk.c (extract_free_variables): Use is_global_var.
2199
0fa16060
RS
22002015-06-23 Richard Sandiford <richard.sandiford@arm.com>
2201
2202 * c-common.c: Don't include target-def.h.
2203
a68ae2e1
MP
22042015-06-23 Marek Polacek <polacek@redhat.com>
2205
2206 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
2207 when comparing INTEGER_CSTs.
2208
c6a2f2d9
PMR
22092015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
2210
2211 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
2212 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
2213 (dump_ada_template): Skip partially specialized types.
2214
6b4db501
MM
22152015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
2216
2217 * c-common.c (scalar_to_vector): Use std::swap instead of manually
2218 swapping.
2219
abb226c9
AM
22202015-06-17 Andrew MacLeod <amacleod@redhat.com>
2221
2222 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
2223 * c-ada-spec.c: Likewise.
2224 * c-cilkplus.c: Likewise.
2225 * c-common.c: Likewise.
2226 * c-common.h: Likewise.
2227 * c-cppbuiltin.c: Likewise.
2228 * c-dump.c: Likewise.
2229 * c-format.c: Likewise.
2230 * c-gimplify.c: Likewise.
2231 * c-indentation.c: Likewise.
2232 * c-lex.c: Likewise.
2233 * c-omp.c: Likewise.
2234 * c-opts.c: Likewise.
2235 * c-pch.c: Likewise.
2236 * c-ppoutput.c: Likewise.
2237 * c-pragma.c: Likewise.
2238 * c-pretty-print.c: Likewise.
2239 * c-semantics.c: Likewise.
2240 * c-ubsan.c: Likewise.
2241 * cilk.c: Likewise.
2242 * stub-objc.c: Likewise.
2243
076fecad
PP
22442015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
2245
2246 PR c++/65168
2247 * c-common.c (c_common_truthvalue_conversion): Warn when
2248 converting an address of a reference to a truth value.
2249
13fdf2e2
AM
22502015-06-08 Andrew MacLeod <amacleod@redhat.com>
2251
2252 * array-notation-common.c : Adjust include files.
2253 * c-ada-spec.c : Likewise.
2254 * c-cilkplus.c : Likewise.
2255 * c-common.c : Likewise.
2256 * c-common.h : Likewise.
2257 * c-cppbuiltin.c : Likewise.
2258 * c-dump.c : Likewise.
2259 * c-format.c : Likewise.
2260 * c-gimplify.c : Likewise.
2261 * c-indentation.c : Likewise.
2262 * c-lex.c : Likewise.
2263 * c-omp.c : Likewise.
2264 * c-opts.c : Likewise.
2265 * c-pch.c : Likewise.
2266 * c-ppoutput.c : Likewise.
2267 * c-pragma.c : Likewise.
2268 * c-pretty-print.c : Likewise.
2269 * c-semantics.c : Likewise.
2270 * c-ubsan.c : Likewise.
2271 * cilk.c : Likewise.
2272 * stub-objc.c : Likewise.
2273
a1661b90
MP
22742015-06-08 Marek Polacek <polacek@redhat.com>
2275
2276 PR c/66415
2277 * c-format.c (location_from_offset): Return LOC if LINE is null.
2278
d7438551
AH
22792015-06-05 Aldy Hernandez <aldyh@redhat.com>
2280
2281 * c-common.h (c_parse_final_cleanups): New prototype.
2282 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
2283
b3d5bc62
JJ
22842015-06-04 Sriraman Tallam <tmsriram@google.com>
2285
2286 * c-common.c (noplt): New attribute.
2287 (handle_noplt_attribute): New handler.
2288
ecb9f223
AM
22892015-06-04 Andrew MacLeod <amacleod@redhat.com>
2290
2291 * array-notation-common.c: Adjust includes for restructured coretypes.h.
2292 * c-ada-spec.c: Likewise.
2293 * c-cilkplus.c: Likewise.
2294 * c-common.c: Likewise.
2295 * c-common.h: Likewise.
2296 * c-cppbuiltin.c: Likewise.
2297 * c-dump.c: Likewise.
2298 * c-format.c: Likewise.
2299 * c-gimplify.c: Likewise.
2300 * c-indentation.c: Likewise.
2301 * c-lex.c: Likewise.
2302 * c-omp.c: Likewise.
2303 * c-opts.c: Likewise.
2304 * c-pch.c: Likewise.
2305 * c-ppoutput.c: Likewise.
2306 * c-pragma.c: Likewise.
2307 * c-pretty-print.c: Likewise.
2308 * c-semantics.c: Likewise.
2309 * c-ubsan.c: Likewise.
2310 * cilk.c: Likewise.
2311 * stub-objc.c: Likewise.
2312
6ac48155
DM
23132015-06-02 David Malcolm <dmalcolm@redhat.com>
2314
2315 PR c/66220:
2316 * c-indentation.c (should_warn_for_misleading_indentation): Use
2317 expand_location rather than expand_location_to_spelling_point.
2318 Don't warn if the guarding statement is more indented than the
2319 next/body stmts.
2320
773ce42e
DM
23212015-06-02 David Malcolm <dmalcolm@redhat.com>
2322
2323 * c-indentation.c (warn_for_misleading_indentation): Bail out
2324 immediately if -Wmisleading-indentation isn't enabled.
2325
4fef8379
ML
23262015-06-01 Martin Liska <mliska@suse.cz>
2327
2328 * c-format.c (check_format_arg):Use new type-based pool allocator.
2329 (check_format_info_main) Likewise.
2330
1edfb384
EB
23312015-05-31 Eric Botcazou <ebotcazou@adacore.com>
2332
2333 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
2334 (has_nontrivial_methods): Likewise.
2335
9677ef52
MP
23362015-05-25 Marek Polacek <polacek@redhat.com>
2337
2338 * c-ubsan.c (ubsan_instrument_shift): Use type0.
2339
fd5c817a
MP
23402015-05-22 Marek Polacek <polacek@redhat.com>
2341
2342 PR c/47043
2343 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
2344
a2f45fe6 23452015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
581edfa3
TS
2346
2347 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
2348 STACK_GROWS_DOWNWARD.
2349
a2f45fe6 23502015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
62f9f30b
TS
2351
2352 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
2353 STACK_GROWS_DOWNWARD rather than if it is defined.
2354
0fee2ac2 23552015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
b1726d6c 2356
0fee2ac2
MLI
2357 PR c/52952
2358 * c-format.c (location_column_from_byte_offset): New.
2359 (location_from_offset): New.
2360 (struct format_wanted_type): Add offset_loc field.
2361 (check_format_info): Move handling of location for extra arguments
2362 closer to the point of warning.
2363 (check_format_info_main): Pass the result of location_from_offset
2364 to warning_at.
2365 (format_type_warning): Pass the result of location_from_offset
2366 to warning_at.
2367
cf4ef6f7
MP
23682015-05-20 Marek Polacek <polacek@redhat.com>
2369
2370 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
2371
3a65ee74
MP
23722015-05-20 Marek Polacek <polacek@redhat.com>
2373
2374 * c-ada-spec.c (dump_sloc): Use DECL_P.
2375
21b634ae
MP
23762015-05-20 Marek Polacek <polacek@redhat.com>
2377
2378 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
2379 * c-common.c: Likewise.
2380
0e50b624
DM
23812015-05-19 David Malcolm <dmalcolm@redhat.com>
2382
2383 * c-common.h (fe_file_change): Strengthen param from
2384 const line_map * to const line_map_ordinary *.
2385 (pp_file_change): Likewise.
2386 * c-lex.c (fe_file_change): Likewise.
2387 (cb_define): Use linemap_check_ordinary when invoking
2388 SOURCE_LINE.
2389 (cb_undef): Likewise.
2390 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
2391 invoking cb_file_change.
2392 (c_finish_options): Likewise.
2393 (push_command_line_include): Likewise.
2394 (cb_file_change): Strengthen param "new_map" from
2395 const line_map * to const line_map_ordinary *.
2396 * c-ppoutput.c (cb_define): Likewise for local "map".
2397 (pp_file_change): Likewise for param "map" and local "from".
2398
fab27f52
MM
23992015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
2400
2401 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
2402
2fe1d762
TV
24032015-05-18 Tom de Vries <tom@codesourcery.com>
2404
2405 * c-common.c (build_va_arg_1): New function.
2406 (build_va_arg): Add address operator to va_list operand if necessary.
2407
7a37fa90
MM
24082015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
2409
2410 PR c/48956
2411 * c-common.c (int_safely_convertible_to_real_p): Define.
2412 (unsafe_conversion_p): Check conversions involving complex types.
2413 (conversion_warning): Add new warning message for conversions which
2414 discard imaginary component.
2415 * c-common.h: (enum conversion_safety): Add new enumerator for such
2416 conversions.
2417
3aa3c9fc
MP
24182015-05-14 Marek Polacek <polacek@redhat.com>
2419
2420 PR c/66066
2421 PR c/66127
2422 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
2423 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
2424 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
2425 use it. If FOR_INT_CONST, require that all evaluated operands be
2426 INTEGER_CSTs.
2427
c3388e62
DM
24282015-05-12 David Malcolm <dmalcolm@redhat.com>
2429
2430 * c-common.h (warn_for_misleading_indentation): New prototype.
2431 * c-indentation.c: New file.
2432 * c.opt (Wmisleading-indentation): New option.
2433
c7b38fd5
TV
24342015-05-12 Tom de Vries <tom@codesourcery.com>
2435
2436 PR tree-optimization/66010
2437 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
2438
381bf11e
JM
24392015-05-09 Jason Merrill <jason@redhat.com>
2440
edff0c06
JM
2441 * c-opts.c (c_common_post_options): Also clear
2442 cpp_opts->cpp_warn_cxx11_compat.
2443
129211bc
JM
2444 * c-common.h (enum cxx_dialect): Add cxx_unset.
2445 * c-common.c (cxx_dialect): Initialize to cxx_unset.
2446 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
2447
381bf11e
JM
2448 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
2449 (std=gnu++0x): Mark as Undocumented.
2450 (std=gnu++1y): Add deprecated message.
2451
fe191308
JM
24522015-05-08 Jason Merrill <jason@redhat.com>
2453
765189ff
JM
2454 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
2455 * c-opts.c: Adjust.
2456
fe191308
JM
2457 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
2458
755e528f
MP
24592015-05-08 Marek Polacek <polacek@redhat.com>
2460
2461 PR c/64918
2462 * c.opt (Woverride-init-side-effects): New option.
2463
0173bd2a
MP
24642015-05-07 Marek Polacek <polacek@redhat.com>
2465
2466 PR c/65179
2467 * c-common.c (c_fully_fold_internal): Warn when left shifting a
2468 negative value.
2469 * c.opt (Wshift-negative-value): New option.
2470 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
2471 when -Wextra and C99/C++11 mode.
2472
e0f0d3b9
MP
24732015-05-07 Marek Polacek <polacek@redhat.com>
2474 Martin Uecker <uecker@eecs.berkeley.edu>
2475
2476 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
2477 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
2478
8243e2a9
JM
24792015-05-05 Jason Merrill <jason@redhat.com>
2480
2481 * c.opt (Wterminate): New.
2482
577cd070
MP
24832015-04-30 Marek Polacek <polacek@redhat.com>
2484
2485 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
2486 require that the non-constant be of a boolean type.
2487
0373796b
JT
24882015-04-29 Josh Triplett <josh@joshtriplett.org>
2489
e0f0d3b9
MP
2490 * c-common.c (handle_section_attribute): Refactor to reduce
2491 nesting and distinguish between error cases.
0373796b 2492
716c0ba6
MP
24932015-04-29 Marek Polacek <polacek@redhat.com>
2494
2495 PR c/64610
2496 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
2497 with 0/1.
2498
8848828b
JJ
24992015-04-29 Jakub Jelinek <jakub@redhat.com>
2500
2501 * c-common.h (omp_clause_mask): Unconditionally define as a class.
2502 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
2503 HOST_BITS_PER_WIDE_INT.
2504
ecd0e562
TV
25052015-04-28 Tom de Vries <tom@codesourcery.com>
2506
2507 PR tree-optimization/65887
2508 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
2509
2a877204 25102015-04-28 Eric Botcazou <ebotcazou@adacore.com>
e0f0d3b9 2511 Pierre-Marie de Rodat <derodat@adacore.com>
2a877204
EB
2512
2513 * c-ada-spec.c (in_function): Delete.
2514 (dump_generic_ada_node): Do not change in_function and remove the
2515 redundant code dealing with it.
2516 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
2517 (print_ada_methods): Output the static member functions in a nested
2518 package after the regular methods as well as associated renamings.
2519
4853031e
MP
25202015-04-24 Marek Polacek <polacek@redhat.com>
2521
2522 PR c/65830
2523 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
2524 and OPT_Wshift_count_overflow.
2525
8c2b7f79
MP
2526 PR c/63357
2527 * c-common.c (warn_logical_operator): Warn if the operands have the
2528 same expressions.
2529
b8787813
MP
25302015-04-24 Marek Polacek <polacek@redhat.com>
2531
2532 PR c/61534
2533 * c-common.c (warn_logical_operator): Bail if either operand comes
2534 from a macro expansion.
2535
8fba1830
BRF
25362015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2537
2538 PR target/55143
2539 * c-common.c (c_default_pointer_mode): Add definition.
2540 * c-common.h (c_default_pointer_mode): Add declaration.
2541
17958621
JJ
25422015-03-11 Jakub Jelinek <jakub@redhat.com>
2543
2544 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
2545 on record_builtin_type argument.
2546
7ccb1a11
JJ
25472015-03-10 Jakub Jelinek <jakub@redhat.com>
2548
2549 PR c/65120
2550 * c-common.c (warn_logical_not_parentheses): Don't warn for
2551 !x == 0 or !x != 0.
2552
04fd785e
MP
25532015-03-07 Marek Polacek <polacek@redhat.com>
2554
2555 PR sanitizer/65280
2556 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
2557 before trying to figure out whether we have a flexible array member.
2558
a4e26206 25592015-03-06 Eric Botcazou <ebotcazou@adacore.com>
8e745a17 2560 Jonathan Wakely <jwakely.gcc@gmail.com>
a4e26206
EB
2561
2562 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
2563
0d2489f4
EB
25642015-03-05 Eric Botcazou <ebotcazou@adacore.com>
2565
2566 PR ada/65319
2567 * c-ada-spec.c (print_destructor): Remove obsolete code.
2568
83ed54d7
EB
25692015-03-01 Eric Botcazou <ebotcazou@adacore.com>
2570
2571 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
2572 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
2573 DECL_TEMPLATE_RESULT emulations.
2574 (dump_ada_template)): Add guard for TYPE_METHODS.
2575
7631f0e2
MP
25762015-02-27 Marek Polacek <polacek@redhat.com>
2577
2578 PR c/65040
2579 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
2580
d1783ae5
KT
25812015-02-27 Kai Tietz <ktietz@redhat.com>
2582
2583 PR c/35330
2584 * c-pragma.c (handle_pragma_weak): Do not try to create
2585 weak/alias of declarations not being function, or variable
2586 declarations.
2587
56a9f6bc
TS
25882015-02-24 Thomas Schwinge <thomas@codesourcery.com>
2589
2590 PR libgomp/64625
2591 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
2592 Remove macros.
2593 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
2594
3d5cb23d
MP
25952015-02-16 Marek Polacek <polacek@redhat.com>
2596
2597 PR c/65066
2598 * c-format.c (check_format_types): Handle null param.
2599
fa008882
MP
26002015-02-13 Marek Polacek <polacek@redhat.com>
2601
2602 PR c/65040
2603 * c-format.c (check_format_types): Don't warn about different
2604 signedness if the original value is in the range of WANTED_TYPE.
2605
785f21af
JM
26062015-02-12 Jason Merrill <jason@redhat.com>
2607
2608 PR c++/64956
2609 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
2610 to the current highest version.
2611 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
2612
4886ec8e
JJ
26132015-02-04 Jakub Jelinek <jakub@redhat.com>
2614
2615 PR c/64824
2616 PR c/64868
2617 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
2618 instead of RDIV_EXPR. Use build_binary_op instead of
2619 build2_loc.
2620
40fecdd6
JM
26212015-01-30 Joseph Myers <joseph@codesourcery.com>
2622
2623 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
2624 to pass input_location as first argument.
2625
a0c88d06
TV
26262015-01-23 Tom de Vries <tom@codesourcery.com>
2627
2628 PR libgomp/64672
2629 * c.opt (fopenacc): Mark as LTO option.
2630
1506ae0e
TV
26312015-01-23 Tom de Vries <tom@codesourcery.com>
2632
2633 PR libgomp/64707
2634 * c.opt (fopenmp): Mark as LTO option.
2635
31be63ab
JJ
26362015-01-21 Jakub Jelinek <jakub@redhat.com>
2637
2638 PR c/63307
b1726d6c 2639 * cilk.c (fill_decls_vec): Only put decls into vector v.
31be63ab
JJ
2640 (compare_decls): Fix up formatting.
2641
26422015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
2643
2644 PR c/63307
2645 * cilk.c: Include vec.h.
2646 (struct cilk_decls): New structure.
2647 (wrapper_parm_cb): Split this function to...
2648 (fill_decls_vec): ...this...
2649 (create_parm_list): ...and this.
2650 (compare_decls): New function.
2651 (for_local_cb): Remove.
2652 (wrapper_local_cb): Ditto.
2653 (build_wrapper_type): For now first traverse and fill vector of
2654 declarations then sort it and then deal with sorted vector.
2655 (cilk_outline): Ditto.
2656 (declare_one_free_variable): Ditto.
2657
6875457f
JM
26582015-01-21 Jason Merrill <jason@redhat.com>
2659
2660 PR c++/64629
2661 * c-format.c (check_format_arg): Call decl_constant_value.
2662
185c9e56
ML
26632015-01-19 Martin Liska <mliska@suse.cz>
2664
2665 * c-common.c (handle_noicf_attribute): New function.
2666
41dbbb37
TS
26672015-01-15 Thomas Schwinge <thomas@codesourcery.com>
2668 Bernd Schmidt <bernds@codesourcery.com>
2669 James Norris <jnorris@codesourcery.com>
2670 Cesar Philippidis <cesar@codesourcery.com>
2671 Ilmir Usmanov <i.usmanov@samsung.com>
2672 Jakub Jelinek <jakub@redhat.com>
2673
2674 * c.opt (fopenacc): New option.
2675 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
2676 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
2677 New macros.
2678 * c-common.h (c_finish_oacc_wait): New prototype.
2679 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
2680 (c_finish_oacc_wait): New function.
2681 * c-pragma.c (oacc_pragmas): New variable.
2682 (c_pp_lookup_pragma, init_pragma): Handle it.
2683 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
2684 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
2685 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
2686 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
2687 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
2688 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
2689 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
2690 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
2691 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
2692 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
2693 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
2694 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
2695 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
2696 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
2697 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
2698 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
2699 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
2700 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
2701 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
2702 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
2703 PRAGMA_OACC_CLAUSE_WORKER.
2704
3f8257db 27052015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
5434dc07
MD
2706
2707 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
2708 for the new option fstack-protector_explicit.
2709 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
2710 (handle_stack_protect_attribute): New function.
2711
3f8257db 27122015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
de1b5c17
MU
2713
2714 * c.opt: New option -Warray-bounds=.
2715
adfac8df
JJ
27162015-01-09 Michael Collison <michael.collison@linaro.org>
2717
2718 * array-notation-common.c: Include hash-set.h, machmode.h,
2719 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2720 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
2721 * c-ada-spec.c: Ditto.
2722 * c-cilkplus.c: Ditto.
2723 * c-common.c: Include input.h due to flattening of tree.h.
2724 Define macro GCC_C_COMMON_C.
2725 * c-common.h: Flatten tree.h header files into c-common.h.
2726 Remove include of tree-core.h.
2727 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
2728 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2729 fold-const.h, wide-int.h, and inchash.h due to
2730 flattening of tree.h.
2731 * c-dump.c: Ditto.
2732 * c-format.c: Flatten tree.h header files into c-common.h.
2733 * c-cppbuiltin.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-dump.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, and inchash.h due to
2740 flattening of tree.h.
2741 * c-format.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, inchash.h and real.h due to
2744 flattening of tree.h.
2745 * c-gimplify.c: Include hash-set.h, machmode.h,
2746 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2747 fold-const.h, wide-int.h, and inchash.h due to
2748 flattening of tree.h.
2749 * cilk.c: Ditto.
2750 * c-lex.c: Ditto.
2751 * c-omp.c: Ditto.
2752 * c-opts.c: Ditto.
2753 * c-pch.c: Ditto.
2754 * c-ppoutput.c: Ditto.
2755 * c-pragma.c: Ditto.
2756 * c-pretty-print.c: Ditto.
2757 * c-semantics.c: Ditto.
2758 * c-ubsan.c: Ditto.
2759 * stub-objc.c: Ditto.
2760
f5481fc4
JM
27612015-01-08 Jason Merrill <jason@redhat.com>
2762
2763 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
2764 do_ubsan_in_current_function.
2765 (ubsan_maybe_instrument_reference_or_call): Likewise.
2766 * c-ubsan.h: Declare it.
2767
de35aa66
MS
27682015-01-08 Mike Stump <mikestump@comcast.net>
2769
2770 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
2771
4a9a42ab
MP
27722015-01-07 Marek Polacek <polacek@redhat.com>
2773
2774 PR c/64440
2775 * c-common.c (c_fully_fold_internal): Warn for division and modulo
2776 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
2777
2f42e5de
TS
27782015-01-05 Trevor Saunders <tsaunders@mozilla.com>
2779
2780 PR c++/31397
2781 * c.opt (Wsuggest-override): New option.
2782
5624e564
JJ
27832015-01-05 Jakub Jelinek <jakub@redhat.com>
2784
2785 Update copyright years.
2786
5bd012f8
MP
27872015-01-05 Marek Polacek <polacek@redhat.com>
2788
2789 PR c/64423
2790 * c-common.c (warn_array_subscript_with_type_char): Add location_t
2791 parameter. Use it.
2792 * c-common.h (warn_array_subscript_with_type_char): Update
2793 declaration.
2794
a7fa8d18
ESR
27952014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
2796
2797 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
2798 Control macro with flag_sized_deallocation.
2799
3f8257db 28002014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
768952be
MU
2801
2802 * c.opt (Wdiscarded-array-qualifiers): New option.
2803
1f8d3e84
JJ
28042014-12-19 Jakub Jelinek <jakub@redhat.com>
2805
2806 PR preprocessor/63831
2807 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
2808 and __has_cpp_attribute here.
2809 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
2810 c_common_has_attribute.
2811 * c-common.h (c_common_has_attribute): New prototype.
2812 * c-lex.c (init_c_lex): Set cb->has_attribute to
2813 c_common_has_attribute instead of cb_has_attribute.
2814 (get_token_no_padding): New function.
2815 (cb_has_attribute): Renamed to ...
2816 (c_common_has_attribute): ... this. No longer static. Use
2817 get_token_no_padding, require ()s, don't build TREE_LIST
2818 unnecessarily, fix up formatting, adjust diagnostics, call
2819 init_attributes.
2820
20b06add
JM
28212014-12-15 Jason Merrill <jason@redhat.com>
2822
2823 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
2824 (-Wsized-deallocation): New.
2825 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
2826 to on in C++14 and up.
2827
94a073b2
JM
28282014-12-11 Jason Merrill <jason@redhat.com>
2829
acaa5911
JM
2830 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
2831
94a073b2
JM
2832 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
2833 we aren't complaining about VLAs.
2834
7fb66c15
MP
28352014-12-06 Marek Polacek <polacek@redhat.com>
2836
2837 PR tree-optimization/64183
2838 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
2839 shift-expression if it is integer_type_node. Use types_compatible_p.
2840
b731b390
JJ
28412014-11-29 Jakub Jelinek <jakub@redhat.com>
2842
2843 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
2844 last argument from create_tmp_var_raw and create_tmp_var calls.
2845 * cilk.c (gimplify_cilk_spawn): Likewise.
2846 * c-omp.c (c_finish_omp_atomic): Likewise.
2847
6a4da643
MP
28482014-11-28 Marek Polacek <polacek@redhat.com>
2849
2850 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
2851 instead of unsigned_type_node.
2852
541e35a6
MP
28532014-11-28 Marek Polacek <polacek@redhat.com>
2854
2855 PR c/63862
2856 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
2857 to op1_utype.
2858 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
2859 expression to unsigned_type_node.
2860
dcc97066
MW
28612014-11-20 Mark Wielaard <mjw@redhat.com>
2862
2863 PR debug/38757
2864 * c-opts.c (set_std_c89): Set lang_hooks.name.
2865 (set_std_c99): Likewise.
2866 (set_std_c11): Likewise.
2867 (set_std_cxx98): Likewise.
2868 (set_std_cxx11): Likewise.
2869 (set_std_cxx14): Likewise.
2870 (set_std_cxx1z): Likewise.
2871
aa7da51a
JJ
28722014-11-21 Jakub Jelinek <jakub@redhat.com>
2873
2874 PR target/63764
2875 * c-common.h (convert_vector_to_pointer_for_subscript): Change
2876 return type to bool.
009a3480 2877 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
2878 (convert_vector_to_pointer_for_subscript): Change return type to
2879 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
2880 and copy it into a TARGET_EXPR and use that instead of *vecp
2881 directly.
2882
538dd0b7
DM
28832014-11-19 David Malcolm <dmalcolm@redhat.com>
2884
2885 Merger of git branch "gimple-classes-v2-option-3".
2886 * ChangeLog.gimple-classes: New.
2887 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
2888 from being just a vec<gimple> to a vec<gbind *>.
2889
c39a5e99
JJ
28902014-11-18 Jakub Jelinek <jakub@redhat.com>
2891
2892 PR sanitizer/63813
2893 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
2894 argument to ptype, set type to TREE_TYPE (ptype). Don't call
2895 get_pointer_alignment for non-pointers. Use ptype, or if it is
2896 reference type, corresponding pointer type, as type of kind
2897 argument.
2898 (ubsan_maybe_instrument_reference,
2899 ubsan_maybe_instrument_member_call): Adjust callers.
2900
8537a4a9
MP
29012014-11-15 Marek Polacek <polacek@redhat.com>
2902
2903 PR middle-end/63884
2904 * array-notation-common.c (is_sec_implicit_index_fn): Return false
2905 for NULL fndecl.
2906 (extract_array_notation_exprs): Return for NULL node.
2907
2079956a
JM
29082014-11-12 Joseph Myers <joseph@codesourcery.com>
2909
2910 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
2911 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
2912
1304953e
JJ
29132014-11-12 Jakub Jelinek <jakub@redhat.com>
2914
2915 PR c/59708
2916 * c-common.c (check_builtin_function_arguments): Handle
2917 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
2918
e5e44252
AK
29192014-11-10 Andi Kleen <ak@linux.intel.com>
2920
2921 PR c/60804
2922 * c-common.h (check_no_cilk): Declare.
2923 * cilk.c (get_error_location): New function.
2924 (check_no_cilk): Dito.
2925
e64b984d
AK
29262014-11-10 Andi Kleen <ak@linux.intel.com>
2927
2928 * cilk.c (recognize_spawn): Use expression location
2929 for error message.
2930
13c21655
PC
29312014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
2932
2933 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
2934
42fd12b1
ESR
29352014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
2936
2937 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
2938 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
2939 (__cpp_range_based_for, __cpp_initializer_lists,
2940 __cpp_delegating_constructors, __cpp_nsdmi,
2941 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
2942 for C++11; (__cpp_attribute_deprecated): Remove in favor of
2943 __has_cpp_attribute.
2944 * c-lex.c (cb_has_attribute): New callback CPP function;
2945 (init_c_lex): Set has_attribute callback.
2946
6f450181
RB
29472014-11-04 Richard Biener <rguenther@suse.de>
2948
2949 * c-common.c (shorten_compare): Do not shorten mixed
2950 DFP and non-DFP compares.
2951
26f0e1d6
ESR
29522014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
2953
2954 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
2955 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
2956 Commentary and rearrangement of tests.
2957 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
2958 Commentary and rearrangement of tests.
2959 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
2960 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
2961
ef4bddc2
RS
29622014-10-29 Richard Sandiford <richard.sandiford@arm.com>
2963
2964 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
2965 enum from machine_mode.
2966
c582198b
AM
29672014-10-28 Andrew MacLeod <amacleod@redhat.com>
2968
adfac8df
JJ
2969 * c-common.c: Adjust include files.
2970 * c-gimplify.c: Ditto.
2971 * cilk.c: Ditto.
2972 * c-pragma.c: Ditto.
2973 * c-ubsan.c: Ditto.
c582198b 2974
60393bbc
AM
29752014-10-27 Andrew MacLeod <amacleod@redhat.com>
2976
2977 * c-gimplify.c: Adjust include files.
2978
d723bb7c
MLI
29792014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
2980
2981 PR c++/53061
2982 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
2983 c_common_initialize_diagnostics.
2984 * c-common.h: Likewise.
2985
90f3520e
MP
29862014-10-24 Marek Polacek <polacek@redhat.com>
2987
2988 PR c/56980
2989 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
2990 print "struct"/"union"/"enum" for typedefed names.
2991
59d7607a
MP
29922014-10-23 Marek Polacek <polacek@redhat.com>
2993
2994 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
2995 in unsigned type.
2996
d95a2703
JJ
29972014-10-22 Jakub Jelinek <jakub@redhat.com>
2998 Yury Gribov <y.gribov@samsung.com>
2999
3000 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
3001 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
3002 instead of flag_sanitize_recover as bool flag.
3003
8e6ef852
KY
30042014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
3005
3006 * cilk.c: Revert previous change.
3007
948cf550
IZ
30082014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
3009
3010 PR c/63307
3011 * cilk.c: Include vec.h.
3012 (struct cilk_decls): New structure.
3013 (wrapper_parm_cb): Split this function to...
3014 (fill_decls_vec): ...this...
3015 (create_parm_list): ...and this.
3016 (compare_decls): New function.
3017 (for_local_cb): Remove.
3018 (wrapper_local_cb): Ditto.
3019 (build_wrapper_type): For now first traverse and fill vector of
3020 declarations then sort it and then deal with sorted vector.
3021 (cilk_outline): Ditto.
3022 (declare_one_free_variable): Ditto.
3023
92574c7c
MP
30242014-10-17 Marek Polacek <polacek@redhat.com>
3025
3026 * c-opts.c (c_common_post_options): Set warn_implicit_int.
3027 * c.opt (Wimplicit-int): Initialize to -1.
3028
83685514
AM
30292014-10-16 Andrew MacLeod <amacleod@redhat.com>
3030
3031 * c-pragma.c: Adjust include files.
3032 * c-semantics.c: Likewise.
3033
5b8300ea
DD
30342014-10-16 DJ Delorie <dj@redhat.com>
3035
3036 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
3037 multiples of bytes.
3038
5f83e90b
JM
30392014-10-14 Jason Merrill <jason@redhat.com>
3040
3041 PR c++/63455
3042 * c-common.h (CPP_PREPARSED_EXPR): New.
3043 (N_CP_TTYPES): Adjust.
3044
d73326ca
MP
30452014-10-15 Marek Polacek <polacek@redhat.com>
3046
3047 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
3048
78a7c317
DD
30492014-10-14 DJ Delorie <dj@redhat.com>
3050
3051 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
3052 types, not just __int128.
3053 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
3054 types, not just __int128.
3055 (cpp_atomic_builtins): Round pointer sizes up.
3056 (type_suffix): Use type precision, not specific types.
3057 * c-common.c (c_common_reswords): Remove __int128 special case.
3058 (c_common_type_for_size): Check for all __intN types, not just
3059 __int128.
3060 (c_common_type_for_mode): Likewise.
3061 (c_common_signed_or_unsigned_type): Likewise.
3062 (c_build_bitfield_integer_type): Likewise.
3063 (c_common_nodes_and_builtins): Likewise.
3064 (keyword_begins_type_specifier): Likewise.
3065 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
3066 __intN variants.
3067
2a22f99c
TS
30682014-10-12 Trevor Saunders <tsaunders@mozilla.com>
3069
3070 * c-common.c: Use hash_table instead of hashtab.
3071
2a8ef767
ESR
30722014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
3073
adfac8df 3074 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
3075 C++11 section.
3076
3c9aabbd
MG
30772014-10-03 Marc Glisse <marc.glisse@inria.fr>
3078
3079 PR c++/54427
3080 PR c++/57198
3081 PR c++/58845
3082 * c-common.c (warn_logical_operator): Punt for vectors.
3083
a15f7cb8
ESR
30842014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
3085
3086 Implement SD-6: SG10 Feature Test Recommendations
3087 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
3088 macros and the __has_header macro.
3089
8d0cf15e
JM
30902014-09-30 Jason Merrill <jason@redhat.com>
3091
dd5d5481
JM
3092 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
3093 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
3094 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
3095
b752325e
JM
3096 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
3097 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
3098
8d0cf15e
JM
3099 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
3100 * c-common.c (c_common_reswords): Remove __is_convertible_to.
3101
083e891e
MP
31022014-09-24 Marek Polacek <polacek@redhat.com>
3103
3104 PR c/61405
3105 PR c/53874
3106 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
3107
7861b648
AK
31082014-09-23 Andi Kleen <ak@linux.intel.com>
3109
3110 * c-common.c (handle_no_reorder_attribute): New function.
3111 (c_common_attribute_table): Add no_reorder attribute.
3112
9a79452d
JM
31132014-09-22 Joseph Myers <joseph@codesourcery.com>
3114
3115 * c-cppbuiltin.c (c_cpp_builtins): Define
3116 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
3117 modes.
3118
dd69f047
JM
31192014-09-18 Joseph Myers <joseph@codesourcery.com>
3120
3121 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
3122 for supported floating-point modes.
3123
737a4826
MLI
31242014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3125
3126 * c.opt (Wpsabi): Use LangEnabledBy.
3127 * c-opts.c (c_common_handle_option): Do not handle here.
3128
8cc4b7a2
JM
31292014-09-12 Joseph Myers <joseph@codesourcery.com>
3130
3131 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
3132 macros for floating-point modes.
3133
179b5a55
MG
31342014-09-11 Marc Glisse <marc.glisse@inria.fr>
3135
3136 PR target/58757
3137 * c-cppbuiltin.c (builtin_define_float_constants): Correct
3138 __*_DENORM_MIN__ without denormals.
3139
570a11fe
JJ
31402014-09-10 Jakub Jelinek <jakub@redhat.com>
3141
3142 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
3143 ubsan_instrument_vla, ubsan_instrument_return): Adjust
3144 ubsan_create_data callers.
3145 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
3146 index is constant or BIT_AND_EXPR with constant mask and is
3147 small enough for the bound.
3148 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
3149 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
3150
b559c810
MLI
31512014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3152
3153 * c.opt: Add CppReason to various flags.
3154 (Wdate-time): Re-sort.
3155 * c-common.c: Include c-common.h earlier.
3156 (struct reason_option_codes_t): Delete.
3157 (c_option_controlling_cpp_error): Prefix global type and struct
3158 with cpp_.
3159
1ef33fd4
MLI
31602014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3161
3162 * c.opt (Wnormalized): New.
3163 (Wnormalized=): Use Enum and Reject Negative.
3164 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
3165
66bb34c0
JM
31662014-09-08 Joseph Myers <joseph@codesourcery.com>
3167
3168 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
3169 digits of floating-point modes if -fbuilding-libgcc.
3170
53d68b9f
JM
31712014-09-05 Joseph Myers <joseph@codesourcery.com>
3172
3173 * c-cppbuiltin.c (c_cpp_builtins): Also define
3174 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
3175 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
3176 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
3177 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
3178 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
3179 __LIBGCC_STACK_GROWS_DOWNWARD__,
3180 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
3181 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
3182 __LIBGCC_DWARF_FRAME_REGISTERS__,
3183 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
3184 __LIBGCC_STACK_POINTER_REGNUM__ and
3185 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
3186 (builtin_define_with_value): Handle backslash-escaping in string
3187 macro values.
3188
f65586dc
RB
31892014-09-05 Richard Biener <rguenther@suse.de>
3190
3191 PR middle-end/63148
3192 * c-format.c (check_format_arg): Properly handle
3193 effectively signed POINTER_PLUS_EXPR offset.
3194
2b71f4a4
MLI
31952014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
3196
3197 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
3198 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
3199 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
3200 and Init.
3201 * c-opts.c (c_common_handle_option): Do not handle here.
3202 (sanitize_cpp_opts): Likewise.
3203 * c-common.c (struct reason_option_codes_t): Handle
3204 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
3205
d2e4feca
MP
32062014-09-03 Marek Polacek <polacek@redhat.com>
3207
3208 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
3209
9a771876
JJ
32102014-09-02 Jakub Jelinek <jakub@redhat.com>
3211 Balaji V. Iyer <balaji.v.iyer@intel.com>
3212 Igor Zamyatin <igor.zamyatin@intel.com>
3213
3214 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
3215 * c-common.c (c_common_reswords): Added _Cilk_for.
3216 * c-common.h (enum rid): Added RID_CILK_FOR.
3217 (cilk_for_number_of_iterations): Add declaration.
3218 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
3219 CILK_FOR.
3220 * c-pragma.c (init_pragma): Register "grainsize" pragma.
3221 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
3222
81b5d104
MLI
32232014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3224
3225 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
3226 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
3227 Wundef): Use CPP, Var and Init.
3228 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
3229
b753b37b
MLI
32302014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3231
3232 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
3233 * c-opts.c (c_common_handle_option): Do not handle here.
3234
028aee17
JM
32352014-08-25 Jason Merrill <jason@redhat.com>
3236
3237 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
3238 -std=c++14 and -std=gnu++14, rather than the reverse.
3239 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
3240 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
3241 * c-common.h (cxx_dialect): Remove cxx1y.
3242
e4276ba5
ESR
32432014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
3244
3245 * c-common.h (enum cxx_dialect): Add cxx14.
3246 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
3247 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
3248 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
3249
a545cacd
JM
32502014-08-22 Jason Merrill <jason@redhat.com>
3251
3252 * c.opt (std=gnu++17): Fix alias.
3253
59ea0364
MP
32542014-08-22 Marek Polacek <polacek@redhat.com>
3255
3256 PR c++/62199
3257 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
3258 check for vector types. Drop LHS argument.
3259 * c-common.h (warn_logical_not_parentheses): Adjust.
3260
596e808c
MLI
32612014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
3262
3263 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
3264 (Wmultichar): Likewise.
3265 (Wdate-time): Use C-family languages instead of Common. Use CPP
3266 and Var.
3267 * c-opts.c (c_common_handle_option): Do not handle the above
3268 options here.
3269 (sanitize_cpp_opts): Likewise.
3270
18767f65
MLI
32712014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
3272
3273 PR fortran/44054
3274 * c-opts.c: Include tree-diagnostics.h.
3275 (c_diagnostic_finalizer): New.
3276 (c_common_initialize_diagnostics): Use it.
3277
b4413594
MLI
32782014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3279
3280 PR preprocessor/51303
3281 * c-common.c (struct reason_option_codes_t option_codes):
3282 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
3283
43f9a13c
MLI
32842014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3285
3286 PR c/60975
3287 PR c/53063
3288 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
3289 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
3290 (c_common_post_options): Call init_global_opts_from_cpp.
3291 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
3292
04159acf
MP
32932014-08-19 Marek Polacek <polacek@redhat.com>
3294
3295 PR c++/62153
3296 * c-common.c (maybe_warn_bool_compare): New function.
3297 * c-common.h (maybe_warn_bool_compare): Declare.
3298 * c.opt (Wbool-compare): New option.
3299
35aff4fb
MP
33002014-08-19 Marek Polacek <polacek@redhat.com>
3301
3302 * c.opt (Wc99-c11-compat): New option.
3303
177cce46
MP
33042014-08-19 Marek Polacek <polacek@redhat.com>
3305
3306 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
3307 to warn_c90_c99_compat.
3308 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
3309 to -1.
3310
6ae9194f
MLI
33112014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
3312 Steven Bosscher <steven@gcc.gnu.org>
3313
3314 PR c/52952
3315 * c-format.c: Add extra_arg_loc and format_string_loc to struct
3316 format_check_results.
3317 (check_function_format): Use true and add comment for boolean
3318 argument.
3319 (finish_dollar_format_checking): Use explicit location when warning.
3320 (check_format_info): Likewise.
3321 (check_format_arg): Set extra_arg_loc and format_string_loc.
3322 (check_format_info_main): Use explicit location when warning.
3323 (check_format_types): Pass explicit location.
3324 (format_type_warning): Likewise.
3325
8e54f6d3
MLI
33262014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3327
3328 PR fortran/44054
3329 * c-format.c: Handle Fortran flags.
3330
cd4e76fc
IZ
33312014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
3332
3333 PR other/61962
3334 * array-notation-common.c (find_rank): Added handling for other
3335 types of references.
3336
f3bede71
MP
33372014-08-10 Marek Polacek <polacek@redhat.com>
3338
3339 PR c/51849
3340 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
3341 * c.opt (Wc90-c99-compat): Add option.
3342
9f25a338
TS
33432014-08-07 Trevor Saunders <tsaunders@mozilla.com>
3344
3345 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
3346
62e4eb35
MP
33472014-08-03 Marek Polacek <polacek@redhat.com>
3348
3349 * c-common.c (check_case_value): Add location_t parameter. Use it.
3350 (c_add_case_label): Pass loc to check_case_value.
3351
b787e7a2
TS
33522014-08-02 Trevor Saunders <tsaunders@mozilla.com>
3353
3354 * cilk.c: Use hash_map instead of pointer_map.
3355
6e2830c3
TS
33562014-08-02 Trevor Saunders <tsaunders@mozilla.com>
3357
3358 * c-gimplify.c: Use hash_set instead of pointer_set.
3359
a7ee52fb
IZ
33602014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
3361
3362 PR middle-end/61455
3363 * array-notation-common.c (extract_array_notation_exprs): Handling
3364 of DECL_EXPR added.
3365
944fa280
JJ
33662014-08-01 Jakub Jelinek <jakub@redhat.com>
3367
3368 * c-common.h (min_align_of_type): Removed prototype.
3369 * c-common.c (min_align_of_type): Removed.
3370 * c-ubsan.h (ubsan_maybe_instrument_reference,
3371 ubsan_maybe_instrument_member_call): New prototypes.
3372 * c-ubsan.c: Include stor-layout.h and builtins.h.
3373 (ubsan_maybe_instrument_reference_or_call,
3374 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
3375 functions.
3376
b4dfdc11
MG
33772014-07-31 Marc Glisse <marc.glisse@inria.fr>
3378
3379 PR c++/60517
3380 * c.opt (-Wreturn-local-addr): Move to common.opt.
3381
a41844e5
JM
33822014-07-30 Jason Merrill <jason@redhat.com>
3383
3384 PR c++/61659
3385 PR c++/61687
3386 Revert:
3387 * c.opt (-fuse-all-virtuals): New.
3388
976d5a22
TT
33892014-07-30 Tom Tromey <tromey@redhat.com>
3390
3391 PR c/59855
3392 * c.opt (Wdesignated-init): New option.
3393 * c-common.c (c_common_attribute_table): Add "designated_init".
3394 (handle_designated_init): New function.
3395
cdc94aca
MP
33962014-07-24 Marek Polacek <polacek@redhat.com>
3397
3398 PR c/57653
3399 * c-opts.c (c_finish_options): If -imacros is in effect, return.
3400
f41373b6
DS
34012014-07-16 Dodji Seketeli <dodji@redhat.com>
3402
3403 PR preprocessor/60723 - missing system-ness marks for macro tokens
3404 * c-ppoutput.c (struct print::prev_was_system_token): New data
3405 member.
3406 (init_pp_output): Initialize it.
3407 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
3408 (do_line_change): Return a flag saying if a line marker was
3409 emitted or not.
3410 (scan_translation_unit): Detect if the system-ness of the token we
3411 are about to emit is different from the one of the previously
3412 emitted token. If so, emit a line marker. Avoid emitting useless
3413 adjacent line markers. Avoid emitting line markers for tokens
3414 originating from the expansion of built-in macros.
3415 (scan_translation_unit_directives_only): Adjust.
3416
4d661eaa
MP
34172014-07-15 Marek Polacek <polacek@redhat.com>
3418
3419 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
3420 TYPE_MAX_VALUE is NULL.
3421
b108f48f
JJ
34222014-07-14 Jakub Jelinek <jakub@redhat.com>
3423
3424 PR middle-end/61294
3425 * c.opt (Wmemset-transposed-args): New warning.
3426
c0221884
JM
34272014-07-10 Jason Merrill <jason@redhat.com>
3428
3429 PR c++/61659
3430 PR c++/61687
3431 * c.opt (-fuse-all-virtuals): New.
3432
63dfbb95
RB
34332014-07-09 Richard Biener <rguenther@suse.de>
3434
3435 PR c-family/61741
3436 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
3437 using unsigned arithmetic if overflow does not wrap instead of
3438 if overflow is undefined.
3439
773ec47f
MP
34402014-07-06 Marek Polacek <polacek@redhat.com>
3441
3442 PR c/6940
3443 * c.opt (Wsizeof-array-argument): New option.
3444
00a7ba58
JJ
34452014-07-03 Jakub Jelinek <jakub@redhat.com>
3446
b1726d6c 3447 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
00a7ba58
JJ
3448 comments->count <= 1, as comments->entries might be NULL.
3449
52ec0ea3
MP
34502014-07-01 Marek Polacek <polacek@redhat.com>
3451
3452 * c.opt (Wint-conversion): New option.
3453
d5c3d343
MP
34542014-07-01 Marek Polacek <polacek@redhat.com>
3455
3456 PR c/58286
3457 * c.opt (Wincompatible-pointer-types): New option.
3458
6e7ceb17
PC
34592014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
3460
3461 PR c++/51400
3462 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
3463 Do not discard TYPE_QUALS of type.
3464
da73100b
JM
34652014-06-26 Jason Merrill <jason@redhat.com>
3466
3467 * c-common.h (enum cxx_dialect): Add cxx1z.
3468 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
3469 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
3470
08eedf75
TJ
34712014-06-26 Teresa Johnson <tejohnson@google.com>
3472
3473 * c-common.h (get_dump_info): Declare.
3474 * c-gimplify.c (c_genericize): Use saved dump files.
3475 * c-opts.c (c_common_parse_file): Begin and end dumps
3476 once around parsing invocation.
3477 (get_dump_info): New function.
3478
7b56b2f8
MP
34792014-06-23 Marek Polacek <polacek@redhat.com>
3480 Andrew MacLeod <amacleod@redhat.com>
3481
3482 PR c/61553
3483 * c-common.c (get_atomic_generic_size): Don't segfault if the
3484 type doesn't have a size.
3485
0e37a2f3
MP
34862014-06-20 Marek Polacek <polacek@redhat.com>
3487
3488 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
3489 (ubsan_walk_array_refs_r): New function.
3490 (c_genericize): Instrument array bounds.
3491 * c-ubsan.c: Include "internal-fn.h".
3492 (ubsan_instrument_division): Mark instrumented arrays as having
3493 side effects. Adjust ubsan_type_descriptor call.
3494 (ubsan_instrument_shift): Likewise.
3495 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
3496 (ubsan_instrument_bounds): New function.
3497 (ubsan_array_ref_instrumented_p): New function.
3498 (ubsan_maybe_instrument_array_ref): New function.
3499 * c-ubsan.h (ubsan_instrument_bounds): Declare.
3500 (ubsan_array_ref_instrumented_p): Declare.
3501 (ubsan_maybe_instrument_array_ref): Declare.
3502
35032014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
3504
3505 PR lto/61123
3506 * c.opt (fshort-enums): Add to LTO.
3507 * c.opt (fshort-wchar): Likewise.
3508
5c3d09f7
MP
35092014-06-16 Marek Polacek <polacek@redhat.com>
3510
3511 PR c/60439
3512 * c.opt (Wswitch-bool): Add Var.
3513
9cf32741
JJ
35142014-06-12 Jakub Jelinek <jakub@redhat.com>
3515
3516 PR middle-end/61486
3517 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
3518 #pragma omp target teams or
3519 #pragma omp {,target }teams distribute simd.
3520
62984918
JM
35212014-06-12 Jason Merrill <jason@redhat.com>
3522
3523 * c.opt (Wabi=, fabi-compat-version): New.
3524 * c-opts.c (c_common_handle_option): Handle -Wabi=.
3525 (c_common_post_options): Handle flag_abi_compat_version default.
3526 Disallow -fabi-compat-version=1.
3527 * c-common.h (abi_version_crosses): New.
3528
f961457f
JH
35292014-06-11 Jan Hubicka <hubicka@ucw.cz>
3530
adfac8df 3531 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
3532 section names that are no longer trees.
3533
92d28cbb
JJ
35342014-06-10 Jakub Jelinek <jakub@redhat.com>
3535
3536 PR fortran/60928
3537 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
3538 (omp_pragmas): ... back here.
3539
742938c9
MP
35402014-06-05 Marek Polacek <polacek@redhat.com>
3541
3542 PR c/49706
3543 * c-common.c (warn_logical_not_parentheses): New function.
3544 * c-common.h (warn_logical_not_parentheses): Declare.
3545 * c.opt (Wlogical-not-parentheses): New option.
3546
9d548dfb
MP
35472014-06-04 Marek Polacek <polacek@redhat.com>
3548
3549 PR c/30020
3550 * c-common.c (check_case_bounds): Add location parameter.
3551 Use it.
3552 (c_add_case_label): Pass loc to check_case_bounds.
3553
fedfecef
MP
35542014-06-03 Marek Polacek <polacek@redhat.com>
3555
3556 PR c/60439
3557 * c.opt (Wswitch-bool): New option.
3558
f6a7cffc
TS
35592014-05-22 Thomas Schwinge <thomas@codesourcery.com>
3560
040d18b6
TS
3561 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
3562 Remove prototypes.
3563 (record_types_used_by_current_var_decl): Move prototype to where
3564 it belongs.
3565
f6a7cffc
TS
3566 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
3567 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
3568 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
3569
632f2871
RS
35702014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
3571
3572 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
3573 * c-common.c (c_common_nodes_and_builtins): Don't initialize
3574 void_zero_node.
3575 * c-pretty-print.c (pp_c_void_constant): New function.
3576 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
3577 (c_pretty_printer::expression): Handle VOID_CST.
3578 * cilk.c (extract_free_variables): Likewise.
3579 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
3580 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
3581
766090c2
TS
35822014-05-17 Trevor Saunders <tsaunders@mozilla.com>
3583
3584 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
3585 * c-pragma.c (push_alignment): Adjust.
3586 (handle_pragma_push_options): Likewise.
3587
661a0813
MP
35882014-05-09 Marek Polacek <polacek@redhat.com>
3589
3590 PR c/50459
3591 * c-common.c (check_user_alignment): Return -1 if alignment is error
3592 node.
3593 (handle_aligned_attribute): Don't call default_conversion on
3594 FUNCTION_DECLs.
3595 (handle_vector_size_attribute): Likewise.
3596 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
3597 (handle_sentinel_attribute): Call default_conversion and allow even
3598 integral types as an argument.
3599
2793eeab
MP
36002014-05-08 Marek Polacek <polacek@redhat.com>
3601
3602 PR c/61053
3603 * c-common.c (min_align_of_type): New function factored out from...
3604 (c_sizeof_or_alignof_type): ...here.
3605 * c-common.h (min_align_of_type): Declare.
3606
f827930a
MP
36072014-05-08 Marek Polacek <polacek@redhat.com>
3608
3609 PR c/61077
3610 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
3611 parameter type of main.
3612
ca49b74e
DD
36132014-05-07 DJ Delorie <dj@redhat.com>
3614
3615 * c-cppbuiltin.c (print_bits_of_hex): New.
3616 (builtin_define_type_minmax): Print values using hex so as not to
3617 require a pre-computed list of string values.
3618
1d60af08
KZ
36192014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
3620 Mike Stump <mikestump@comcast.net>
3621 Richard Sandiford <rdsandiford@googlemail.com>
3622
3623 * c-ada-spec.c: Include wide-int.h.
3624 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
3625 (dump_generic_ada_node): Use wide-int interfaces.
3626 * c-common.c: Include wide-int-print.h.
3627 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
3628 (pointer_int_sum): Use wide-int interfaces.
3629 (c_common_nodes_and_builtins): Use make_int_cst.
3630 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
3631 (handle_alloc_size_attribute): Use wide-int interfaces.
3632 (get_nonnull_operand): Likewise.
3633 * c-format.c (get_constant): Use tree_fits_uhwi_p.
3634 * c-lex.c: Include wide-int.h.
3635 (narrowest_unsigned_type): Take a widest_int rather than two
3636 HOST_WIDE_INTs.
3637 (narrowest_signed_type): Likewise.
3638 (interpret_integer): Update accordingly. Use wide-int interfaces.
3639 (lex_charconst): Use wide-int interfaces.
3640 * c-pretty-print.c: Include wide-int.h.
3641 (pp_c_integer_constant): Use wide-int interfaces.
3642 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
3643 INT_CST_LT_UNSIGNED.
3644
b15458be
RB
36452014-05-06 Richard Biener <rguenther@suse.de>
3646
3647 * c-opts.c (c_common_post_options): For -freestanding,
3648 -fno-hosted and -fno-builtin disable pattern recognition
3649 if not enabled explicitely.
3650
6577374e
MP
36512014-05-02 Marek Polacek <polacek@redhat.com>
3652
3653 * c.opt (Wsizeof-pointer-memaccess): Describe option.
3654
d00887e8
MP
36552014-05-01 Marek Polacek <polacek@redhat.com>
3656
3657 PR c/43245
3658 * c.opt (Wdiscarded-qualifiers): Add.
3659
f8ed5150
MP
36602014-04-30 Marek Polacek <polacek@redhat.com>
3661
3662 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
3663 INT_MIN / -1 sanitization only for integer types.
3664
45484dcf
MP
36652014-04-25 Marek Polacek <polacek@redhat.com>
3666
3667 PR c/18079
3668 * c-common.c (handle_noinline_attribute): Warn if the attribute
3669 conflicts with always_inline attribute.
3670 (handle_always_inline_attribute): Warn if the attribute conflicts
3671 with noinline attribute.
3672
38e514c0
MP
36732014-04-25 Marek Polacek <polacek@redhat.com>
3674
3675 PR c/60156
3676 * c-common.c (check_main_parameter_types): Warn about variadic main.
3677
44875f92
MS
36782014-04-24 Mike Stump <mikestump@comcast.net>
3679
3680 * c.opt (Wshadow-ivar): Default to on.
3681
dcaaa5a0
DP
36822014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
3683
3684 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
3685
c07d7c02
MP
36862014-04-23 Marek Polacek <polacek@redhat.com>
3687
3688 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
3689
1c33c9b7
JJ
36902014-04-22 Jakub Jelinek <jakub@redhat.com>
3691
3692 PR sanitizer/60275
3693 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
3694 if flag_sanitize_undefined_trap_on_error.
3695 (ubsan_instrument_division, ubsan_instrument_shift,
3696 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
3697 if !flag_sanitize_recover.
3698
793c625f
MG
36992014-04-22 Marc Glisse <marc.glisse@inria.fr>
3700
3701 PR libstdc++/43622
3702 * c-common.c (registered_builtin_types): Make non-static.
3703 * c-common.h (registered_builtin_types): Declare.
3704
b0f1bf36
RB
37052014-04-14 Richard Biener <rguenther@suse.de>
3706 Marc Glisse <marc.glisse@inria.fr>
3707
3708 PR c/60819
3709 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
3710 apply may-alias the scalar pointer type when applicable.
3711
3b07fa4a
IZ
37122014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
3713
3714 PR middle-end/60467
3715 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
3716 as possible argument for Cilk_spawn.
3717
cbbd2b1c
TB
37182014-04-11 Tobias Burnus <burnus@net-b.de>
3719
3720 PR c/60194
3721 * c.opt (Wformat-signedness): Add
3722 * c-format.c(check_format_types): Use it.
3723
6415bd5d
JM
37242014-04-11 Jason Merrill <jason@redhat.com>
3725
3726 PR c++/57926
3727 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
3728 default_conversion for an array argument.
3729
6525783a
MP
37302014-04-08 Marek Polacek <polacek@redhat.com>
3731
3732 PR sanitizer/60745
3733 * c-ubsan.c: Include asan.h.
3734 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
3735
880a467b
NS
37362014-04-03 Nathan Sidwell <nathan@codesourcery.com>
3737
3738 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
3739
7b59ff2d
MP
37402014-04-02 Marek Polacek <polacek@redhat.com>
3741
3742 * c-common.h (c_expand_expr): Remove declaration.
3743
8edbfaa6
JJ
37442014-03-28 Jakub Jelinek <jakub@redhat.com>
3745
3746 PR c++/60689
3747 * c-common.c (add_atomic_size_parameter): When creating new
3748 params vector, push the size argument first.
3749
07d72e1d
JJ
37502014-03-26 Jakub Jelinek <jakub@redhat.com>
3751
3752 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
3753 ubsan_instrument_vla, ubsan_instrument_return): Adjust
3754 ubsan_create_data callers.
3755
b35e0fa0
JJ
37562014-03-22 Jakub Jelinek <jakub@redhat.com>
3757
3758 PR debug/60603
3759 * c-opts.c (c_finish_options): Restore cb_file_change call to
3760 <built-in>.
3761
39a1ebb3
JJ
37622014-03-13 Jakub Jelinek <jakub@redhat.com>
3763
3764 PR middle-end/36282
3765 * c-pragma.c (apply_pragma_weak): Only look at
3766 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
3767 DECL_ASSEMBLER_NAME_SET_P (decl).
3768 (maybe_apply_pending_pragma_weaks): Exit early if
3769 vec_safe_is_empty (pending_weaks) rather than only when
3770 !pending_weaks.
3771 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
3772 set assembler name back to NULL afterwards.
3773
a07f6ed2
JM
37742014-03-11 Jason Merrill <jason@redhat.com>
3775
3776 * c.opt: Add -std=gnu++14.
3777
75b107f5
IB
37782014-03-11 Ian Bolton <ian.bolton@arm.com>
3779
3780 * c-opts.c (c_common_post_options): Don't override
3781 -ffp-contract=fast if unsafe-math-optimizations is on.
3782
f42c637e
PM
37832014-03-08 Paulo Matos <paulo@matos-sorge.com>
3784
22b15758 3785 * c.opt: Enable LTO FE for fshort-double.
f42c637e 3786
70e24808
JM
37872014-03-07 Jason Merrill <jason@redhat.com>
3788
3789 * c.opt: Add -std=c++14.
3790
3af9c5e9
MP
37912014-03-06 Marek Polacek <polacek@redhat.com>
3792
3793 PR c/60197
3794 * cilk.c (contains_cilk_spawn_stmt): New function.
3795 (contains_cilk_spawn_stmt_walker): Likewise.
3796 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
3797 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
3798
b3bdf019
JJ
37992014-03-03 Jakub Jelinek <jakub@redhat.com>
3800
3801 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
3802 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
3803 even when flag_preprocess_only.
3804
ca7e759d
JM
38052014-02-26 Jason Merrill <jason@redhat.com>
3806
3807 PR c++/59231
3808 PR c++/11586
3809 * c-common.c (shorten_compare): Don't check
3810 c_inhibit_evaluation_warnings.
3811
28e41874
JJ
38122014-02-19 Jakub Jelinek <jakub@redhat.com>
3813
cca615af
JJ
3814 PR c/37743
3815 * c-common.c (c_common_nodes_and_builtins): When initializing
3816 c_uint{16,32,64}_type_node, also set corresponding
3817 uint{16,32,64}_type_node to the same value.
3818
28e41874
JJ
3819 PR c++/60267
3820 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
3821 for PRAGMA_IVDEP if flag_preprocess_only.
3822
c2bf53a1
JJ
38232014-02-12 Jakub Jelinek <jakub@redhat.com>
3824
3825 PR c/60101
3826 * c-common.c (merge_tlist): If copy is true, call new_tlist,
3827 if false, add ADD itself, rather than vice versa.
3828 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
3829 copy. For SAVE_EXPR, only call merge_tlist once.
3830
8fcbce72
JJ
38312014-02-08 Jakub Jelinek <jakub@redhat.com>
3832
3833 PR middle-end/60092
3834 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
3835 and tree_to_uhwi.
3836 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
3837 functions.
3838 (c_common_attribute_table): Add alloc_align and assume_aligned
3839 attributes.
3840
0a756a3f
MP
38412014-02-06 Marek Polacek <polacek@redhat.com>
3842
3843 PR c/60087
3844 * c-common.c (warn_for_sign_compare): Call warning_at with location
3845 instead of warning.
3846
7ec4847a
MP
38472014-02-05 Marek Polacek <polacek@redhat.com>
3848
3849 PR c/53123
3850 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
3851 statement.
3852
66f20604
MP
38532014-02-04 Marek Polacek <polacek@redhat.com>
3854
3855 PR c/60036
3856 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
3857 SAVE_EXPR.
3858
5d77fb19
MG
38592014-02-03 Marc Glisse <marc.glisse@inria.fr>
3860
3861 PR c++/53017
3862 PR c++/59211
3863 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
3864 handle_vector_size_attribute, handle_nonnull_attribute): Call
3865 default_conversion on the attribute argument.
3866 (handle_nonnull_attribute): Increment the argument number.
3867
81e5eca8
MP
38682014-01-31 Marek Polacek <polacek@redhat.com>
3869
3870 PR c/59963
3871 * c-common.c (add_atomic_size_parameter): Pass vNULL to
3872 build_function_call_vec.
3873 (resolve_overloaded_builtin): Likewise.
3874 * c-common.h (build_function_call_vec): Adjust declaration.
3875
68fca595
MP
38762014-01-30 Marek Polacek <polacek@redhat.com>
3877
3878 PR c/59940
3879 * c-common.h (unsafe_conversion_p): Adjust declaration.
3880 (warnings_for_convert_and_check): Likewise.
3881 (convert_and_check): Likewise.
3882 * c-common.c (unsafe_conversion_p): Add location parameter. Call
3883 expansion_point_location_if_in_system_header on it.
3884 (warnings_for_convert_and_check): Add location parameter. Call
3885 expansion_point_location_if_in_system_header on it. Use it.
3886 (convert_and_check): Add location parameter. Use it.
3887 (conversion_warning): Likewise.
3888 (c_add_case_label): Adjust convert_and_check calls.
3889 (scalar_to_vector): Adjust unsafe_conversion_p calls.
3890
b72271b9
BI
38912014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
3892
3893 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
3894 flag_cilkplus.
3895 * c-pragma.c (init_pragma): Likewise.
3896 * c.opt: Likewise.
3897
393e8e8b
MP
38982014-01-23 Marek Polacek <polacek@redhat.com>
3899
3900 PR c/59846
3901 * c-common.c (shorten_compare): Add location_t parameter.
3902 * c-common.h (shorten_binary_op): Adjust declaration.
3903
f04dda30
MP
39042014-01-23 Marek Polacek <polacek@redhat.com>
3905
3906 PR c/58346
3907 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
3908 * c-common.h: Declare it.
3909
621955cb
EB
39102014-01-20 Eric Botcazou <ebotcazou@adacore.com>
3911
3912 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
3913 * c-ada-spec.c (dump_ads): Likewise.
3914 (cpp_check): Likewise.
3915 (dump_ada_specs): Likewise.
3916
39172014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
3918
3919 PR c++/49718
3920 * c-common.c (handle_no_instrument_function_attribute): Allow
3921 no_instrument_function attribute in class member
3922 definition/declaration.
3923
241f845a
JJ
39242014-01-15 Jakub Jelinek <jakub@redhat.com>
3925
3926 PR c/58943
3927 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
3928 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
3929 being COMPOUND_EXPR.
3930 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
3931 operand a SAVE_EXPR and second MODIFY_EXPR.
3932
e83b8e2e
JJ
39332014-01-09 Jakub Jelinek <jakub@redhat.com>
3934
3935 PR target/58115
3936 * c-pch.c (c_common_write_pch): Call
3937 prepare_target_option_nodes_for_pch.
3938
23a5b65a
RS
39392014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3940
3941 Update copyright years
3942
f9030485
RS
39432014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3944
3945 * array-notation-common.c, c-cilkplus.c: Use the standard form for
3946 the copyright notice.
3947
f2aa696b
EB
39482013-12-28 Eric Botcazou <ebotcazou@adacore.com>
3949
3950 * c-ada-spec.c (print_constructor): New function.
3951 (print_destructor): Retrieve the origin of the destructor.
3952 (print_ada_declaration): Revamp handling of constructors/destructors.
3953
3f8257db 39542013-12-23 Stuart Hastings <stuart@apple.com>
1f26ac87
JM
3955 Bill Maddox <maddox@google.com>
3956 Jason Merrill <jason@redhat.com>
3957
3958 * c.opt: Add -fdeclone-ctor-dtor.
3959 * c-opts.c (c_common_post_options): Default to on iff -Os.
3960
41958c28
BI
39612013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
3962
3963 * c-common.c (c_common_attribute_table): Added "cilk simd function"
3964 attribute.
3965 * c-pragma.h (enum pragma_cilk_clause): Remove.
3966 (enum pragma_omp_clause): Added the following fields:
3967 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
3968 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
3969 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
3970 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
3971 PRAGMA_CILK_CLAUSE_UNIFORM.
3972
b1726d6c 3973
12893402
BI
39742013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
3975
3976 * cilk.c (cilk_outline): Made this function non-static.
3977 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
3978 (create_cilk_wrapper): Added a new parameter: a function pointer.
3979 (c_install_body_w_frame_cleanup): Remove
3980 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
3981 * c-common.h (cilk_outline): New prototype.
3982 (gimplify_cilk_spawn): Removed two parameters.
3983 (cilk_install_body_with_frame_cleanup): New prototype.
3984 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
3985 CILK_SPAWN_STMT case.
3986
085b42ed
BS
39872013-12-11 Bernd Schmidt <bernds@codesourcery.com>
3988
2ce064c3
BS
3989 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
3990
085b42ed
BS
3991 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
3992 (int_array_type_node): Remove.
3993 * c-common.c (c_common_nodes_and_builtins): Don't build it.
3994
9e36c9ed
MP
39952013-12-05 Marek Polacek <polacek@redhat.com>
3996
3997 PR c/52023
3998 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
3999 [ADJUST_FIELD_ALIGN].
4000
296674db
JM
40012013-12-04 Joseph Myers <joseph@codesourcery.com>
4002
4003 PR c/52023
4004 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
4005 and check field alignment if set.
4006 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
4007 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
4008
b1726d6c 40092013-12-04 Jakub Jelinek <jakub@redhat.com>
31e071ae
MP
4010 Marek Polacek <polacek@redhat.com>
4011
4012 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
4013 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
4014
d7947e19
L
40152013-11-29 H.J. Lu <hongjiu.lu@intel.com>
4016
4017 PR c/59309
4018 * cilk.c (gimplify_cilk_spawn): Properly handle function without
4019 arguments.
4020
fad7652e
JJ
40212013-11-29 Jakub Jelinek <jakub@redhat.com>
4022
4023 PR c/59280
4024 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
4025 goto invalid. If it is error_mark_node, don't issue further
4026 diagnostics.
4027
8b5e1202
SO
40282013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
4029
4030 * c.opt (Wopenmp-simd): New.
4031
0a508bb6
JJ
40322013-11-22 Jakub Jelinek <jakub@redhat.com>
4033
4034 * c-ubsan.h (ubsan_instrument_return): New prototype.
4035 * c-ubsan.c (ubsan_instrument_return): New function.
4036
2fb9a547
AM
40372013-11-22 Andrew MacLeod <amacleod@redhat.com>
4038
4039 * c-common.c: Add required include files from gimple.h.
4040 * c-gimplify.c: Likewise
4041 * cilk.c: Likewise
4042
8400e75e
DM
40432013-11-22 David Malcolm <dmalcolm@redhat.com>
4044
4045 * c-common.c (unsafe_conversion_p): Remove use of
4046 EXPR_LOC_OR_HERE macro.
4047 (conversion_warning): Likewise.
4048 (warnings_for_convert_and_check): Likewise.
4049 (warn_for_collisions_1): Likewise.
4050 (shorten_compare): Likewise, and remove use of in_system_header
4051 macro, using the location from the former.
4052 * c-lex.c (dump_one_header): Remove use of input_filename macro.
4053 (cb_def_pragma): Remove use of in_system_header macro.
4054 (lex_string): Likewise.
4055 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
4056
eb1ce453
KZ
40572013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
4058 Mike Stump <mikestump@comcast.net>
4059 Richard Sandiford <rdsandiford@googlemail.com>
4060
4061 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
4062 instead of TREE_INT_CST_LOW, in cases where there is a protecting
4063 tree_fits_shwi_p or tree_fits_uhwi_p.
4064 (dump_generic_ada_node): Likewise.
4065 * c-format.c (check_format_arg): Likewise.
4066 * c-pretty-print.c (pp_c_integer_constant): Likewise.
4067
6b3b8c27
KZ
40682013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
4069
4070 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
4071
49b0aa18
JC
40722013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
4073
4074 PR c/53001
4075 * c-common.c (unsafe_conversion_p): Make this function
4076 return an enumeration with more detail.
4077 (conversion_warning): Use the new return type of
4078 unsafe_conversion_p to separately warn either about conversions
4079 that lower floating point number precision or about the other
4080 kinds of conversions.
4081 * c-common.h (enum conversion_safety): New enumeration.
8e745a17
JJ
4082 (unsafe_conversion_p): switching return type to
4083 conversion_safety enumeration.
49b0aa18
JC
4084 * c.opt: Adding new warning -Wfloat-conversion and
4085 enabling it with -Wconversion.
4086
b826515a
BS
40872013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
4088
8e745a17
JJ
4089 * c-opts.c: Include plugin.h.
4090 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
b826515a 4091
b9a55b13
MP
40922013-11-19 Marek Polacek <polacek@redhat.com>
4093
4094 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
4095 call.
4096 (ubsan_instrument_shift): Likewise.
4097 (ubsan_instrument_vla): Likewise.
4098
7d362f6c
RS
40992013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4100
4101 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
4102 cast to unsigned type.
4103
386b1f1f
RS
41042013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4105
4106 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
4107 tree_low_cst.
4108 (complete_array_type): Update comment to refer to tree_to_[su]hwi
4109 rather than tree_low_cst.
4110
ae7e9ddd
RS
41112013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4112
4113 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
4114 tree_to_uhwi throughout.
4115
9439e9a1
RS
41162013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4117
4118 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
4119 tree_low_cst (..., 0) with tree_to_shwi throughout.
4120
cc269bb6
RS
41212013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4122
4123 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
4124 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
4125
9541ffee
RS
41262013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4127
4128 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
4129 host_integerp (..., 0) with tree_fits_shwi_p throughout.
4130
c02065fc
AH
41312013-11-15 Aldy Hernandez <aldyh@redhat.com>
4132
4133 * c-cilkplus.c: New file.
4134 * c-common.c (readonly_error): Add location argument.
4135 * c-common.h (readonly_error): Same.
4136 (c_finish_cilk_clauses): Protoize.
4137 (c_check_cilk_loop): Same.
4138 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
4139 Do not fail on error_mark_node.
4140 Abstract increment canonicalization to here...
4141 (c_omp_for_incr_canonicalize_ptr): New.
4142 c-pragma.c (init_pragma): Register "simd" pragma.
4143 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
4144 (enum pragma_cilk_clause): New.
4145
9cc65f15
RS
41462013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
4147
4148 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
4149 wchar_type and host_integerp checks.
4150
18f429e2
AM
41512013-11-14 Andrew MacLeod <amacleod@redhat.com>
4152
4153 * c-common.c: Likewise.
4154 * c-gimplify.c: Likewise.
4155 * cilk.c: Likewise.
4156
d8a2d370
DN
41572013-11-14 Diego Novillo <dnovillo@google.com>
4158
4159 * c-common.c: Include fold-const.h.
4160 Include stor-layout.h.
4161 Include calls.h.
4162 Include stringpool.h.
4163 Include attribs.h.
4164 Include varasm.h.
4165 Include trans-mem.h.
4166 * c-cppbuiltin.c: Include stor-layout.h.
4167 Include stringpool.h.
4168 * c-format.c: Include stringpool.h.
4169 * c-lex.c: Include stringpool.h.
4170 Include stor-layout.h.
4171 * c-pragma.c: Include stringpool.h.
4172 Include attribs.h.
4173 Include varasm.h.
4174 Include gcc-symtab.h.
4175 * c-pretty-print.c: Include stor-layout.h.
4176 Include attribs.h.
4177 * cilk.c: Include stringpool.h.
4178 Include calls.h.
4179
38b7bc7f
JM
41802013-11-13 Joseph Myers <joseph@codesourcery.com>
4181
4182 * c-common.h (enum rid): Add RID_AUTO_TYPE.
4183 * c-common.c (c_common_reswords): Add __auto_type.
4184 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
4185
45b0be94
AM
41862013-11-12 Andrew MacLeod <amacleod@redhat.com>
4187
18f429e2
AM
4188 * c-common.c: Include gimplify.h.
4189 * c-gimplify.c: Likewise.
4190 * cilk.c: Likewise.
4191 * c-omp.c: Include gimple-expr.h instead of gimple.h.
4192 * c-ubsan.c: Don't include gimple.h.
45b0be94 4193
582d9b50
JM
41942013-11-12 Joseph Myers <joseph@codesourcery.com>
4195
4196 * c-common.c (c_common_reswords): Add _Thread_local.
4197
6b28e197
JM
41982013-11-09 Joseph Myers <joseph@codesourcery.com>
4199
4200 * c-common.c (atomic_size_supported_p): New function.
4201 (resolve_overloaded_atomic_exchange)
4202 (resolve_overloaded_atomic_compare_exchange)
4203 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
4204 Use it instead of comparing size with a local list of sizes.
4205
267bac10
JM
42062013-11-07 Andrew MacLeod <amacleod@redhat.com>
4207 Joseph Myers <joseph@codesourcery.com>
4208
4209 * c-common.h (enum rid): Add RID_ATOMIC.
4210 * c-common.c (c_common_reswords): Add _Atomic.
4211 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
4212 (keyword_is_type_qualifier): Accept RID_ATOMIC.
4213 * c-format.c (check_format_types): Check for extra _Atomic
4214 qualifiers in format argument.
4215 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
4216 (pp_c_type_qualifier_list): Mention _Atomic in comment.
4217
5157b91e
TB
42182013-11-06 Tobias Burnus <burnus@net-b.de>
4219
4220 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
4221
6dbe0958
JM
42222013-11-06 Joseph Myers <joseph@codesourcery.com>
4223
4224 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
4225 standards modes.
4226 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
4227 to mean lack of IEEE 754 support.
4228
e8ff5196
TB
42292013-11-05 Tobias Burnus <burnus@net-b.de>
4230
4231 * c.opt (-Wdate-time): New option
4232 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
4233
254a0760
JM
42342013-11-05 Joseph Myers <joseph@codesourcery.com>
4235
4236 * c-cppbuiltin.c (cpp_iec_559_value): Test
4237 flag_excess_precision_cmdline not flag_excess_precision.
4238
6d7f7e0a
TB
42392013-11-05 Tobias Burnus <burnus@net-b.de>
4240
4241 * c.opt (fopenmp-simd): New option.
4242 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
4243 (omp_pragmas): ... this new struct.
4244 (c_pp_lookup_pragma): Also walk omp_pragmas.
4245 (init_pragma): Init pragmas for -fopenmp-simd.
4246
55a7f02f
MP
42472013-11-04 Marek Polacek <polacek@redhat.com>
4248
4249 PR c++/58979
4250 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
4251
9193fb05
JM
42522013-11-04 Joseph Myers <joseph@codesourcery.com>
4253
4254 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
4255 New functions.
4256 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
4257
94159ecf
EB
42582013-11-04 Eric Botcazou <ebotcazou@adacore.com>
4259
4260 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
4261 (dump_ada_specs): Adjust prototype of second callback.
4262 * c-ada-spec.c (cpp_check): New global variable.
4263 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
4264 (print_generic_ada_decl): Likewise.
4265 (has_static_fields): Change return type to bool and add guard.
4266 (has_nontrivial_methods): New predicate.
4267 (is_tagged_type): Change return type to bool.
4268 (separate_class_package): Call has_nontrivial_methods.
4269 (pp_ada_tree_identifier): Minor tweaks.
4270 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
4271 (dump_ada_array_domains): Likewise.
4272 (dump_ada_array_type): Likewise.
4273 (dump_template_types): Remove cpp_check parameter and do not pass it to
4274 dump_generic_ada_node.
4275 (dump_ada_template): Likewise.
4276 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
4277 recursively.
4278 (print_ada_methods): Change return type to integer. Remove cpp_check
4279 parameter and do not pass it down.
4280 (dump_nested_types): Remove cpp_check parameter and do not pass it to
4281 dump_generic_ada_node.
4282 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
4283 accessing methods.
4284 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
4285 down. Use has_nontrivial_methods to recognize C++ classes. Use return
4286 value of print_ada_methods.
4287 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
4288 Set cpp_check to it before invoking dump_ada_nodes.
4289 (dump_ada_specs): Likewise.
4290
b906f4ca
MP
42912013-11-03 Marek Polacek <polacek@redhat.com>
4292
4293 * c-ubsan.c: Don't include hash-table.h.
4294 (ubsan_instrument_vla): New function.
4295 * c-ubsan.h: Declare it.
4296
5e20cdc9
DM
42972013-10-31 David Malcolm <dmalcolm@redhat.com>
4298
4299 Automated part of renaming of symtab_node_base to symtab_node.
4300
4301 Patch autogenerated by rename_symtab.py from
4302 https://github.com/davidmalcolm/gcc-refactoring-scripts
4303 revision 58bb219cc090b2f4516a9297d868c245495ee622
4304
4305 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
4306 symtab_node_base to symtab_node.
4307
7057e645
ESR
43082013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
4309
8e745a17 4310 Implement C++14 digit separators.
7057e645
ESR
4311 * c-lex.c (interpret_float): Remove digit separators from scratch string
4312 before building real literal.
4313
193ea7bc
JJ
43142013-10-30 Jakub Jelinek <jakub@redhat.com>
4315
4316 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
4317
939b37da
BI
43182013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
4319
4320 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
4321 fields.
4322 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
4323 enabled.
4324 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
4325 (insert_cilk_frame): New prototype.
4326 (cilk_init_builtins): Likewise.
4327 (gimplify_cilk_spawn): Likewise.
4328 (c_cilk_install_body_w_frame_cleanup): Likewise.
4329 (cilk_detect_spawn_and_unwrap): Likewise.
4330 (cilk_set_spawn_marker): Likewise.
4331 (build_cilk_sync): Likewise.
4332 (build_cilk_spawn): Likewise.
4333 * cilk.c: New file.
4334
67348ccc
DM
43352013-10-29 David Malcolm <dmalcolm@redhat.com>
4336
4337 Patch autogenerated by refactor_symtab.py from
4338 https://github.com/davidmalcolm/gcc-refactoring-scripts
4339 revision 58bb219cc090b2f4516a9297d868c245495ee622
4340
4341 * c-gimplify.c (c_genericize): Update for conversion of symtab types
4342 to a true class hierarchy.
4343 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
4344
d570872d
RS
43452013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
4346
4347 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
4348
98906124
JL
43492013-10-26 Jeff Law <law@redhat.com>
4350
adfac8df
JJ
4351 * c-common.c (c_define_builtins): Remove mudflap support.
4352 * c.opt: Ignore and warn for mudflap options.
98906124 4353
d73749df 43542013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
4355
4356 PR other/33426
4357 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
4358 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
4359
3f04b1bb
JM
43602013-10-23 Jason Merrill <jason@redhat.com>
4361
4362 * c-format.c (gcc_cxxdiag_char_table): Add %X.
4363
acf0174b
JJ
43642013-10-11 Jakub Jelinek <jakub@redhat.com>
4365
acd15a28
JJ
4366 * c-common.h (omp_clause_mask::operator !=): New method.
4367 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
4368 instead of if (mask & something) tests everywhere.
4369
acf0174b
JJ
4370 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
4371 201307 instead of 201107.
4372 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
4373 (c_common_attribute_table): Add "omp declare target" and
4374 "omp declare simd" attributes.
4375 (handle_omp_declare_target_attribute,
4376 handle_omp_declare_simd_attribute): New functions.
4377 * c-omp.c: Include c-pragma.h.
4378 (c_finish_omp_taskgroup): New function.
4379 (c_finish_omp_atomic): Add swapped argument, if true,
4380 build the operation first with rhs, lhs arguments and use NOP_EXPR
4381 build_modify_expr.
4382 (c_finish_omp_for): Add code argument, pass it down to make_code.
4383 (c_omp_split_clauses): New function.
4384 (c_split_parallel_clauses): Removed.
4385 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
4386 c_omp_declare_simd_clauses_to_decls): New functions.
4387 * c-common.h (omp_clause_mask): New type.
4388 (OMP_CLAUSE_MASK_1): Define.
4389 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
4390 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
4391 omp_clause_mask::operator |, omp_clause_mask::operator &,
4392 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
4393 omp_clause_mask::operator ==): New methods.
4394 (enum c_omp_clause_split): New.
4395 (c_finish_omp_taskgroup): New prototype.
4396 (c_finish_omp_atomic): Add swapped argument.
4397 (c_finish_omp_for): Add code argument.
4398 (c_omp_split_clauses): New prototype.
4399 (c_split_parallel_clauses): Removed.
4400 (c_omp_declare_simd_clauses_to_numbers,
4401 c_omp_declare_simd_clauses_to_decls): New prototypes.
4402 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
4403 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
4404 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
4405 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
4406 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
4407 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
4408 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
4409 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
4410 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
4411 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
4412 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
4413 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
4414 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
4415 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
4416 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
4417 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
4418 PRAGMA_OMP_CLAUSE_UNIFORM.
4419
826cacfe
MG
44202013-10-09 Marc Glisse <marc.glisse@inria.fr>
4421
4422 PR tree-optimization/20318
4423 * c-common.c (handle_returns_nonnull_attribute): New function.
4424 (c_common_attribute_table): Add returns_nonnull.
4425
2284b034
MG
44262013-10-03 Marc Glisse <marc.glisse@inria.fr>
4427
4428 PR c++/19476
4429 * c.opt (fcheck-new): Move to common.opt.
4430
b56e9788
MP
44312013-09-25 Marek Polacek <polacek@redhat.com>
4432 Jakub Jelinek <jakub@redhat.com>
4433
4434 PR sanitizer/58413
4435 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
4436 an expression if we can prove it is correct.
4437 (ubsan_instrument_division): Likewise. Remove unnecessary
4438 check.
4439
ce6923c5
MP
44402013-09-18 Marek Polacek <polacek@redhat.com>
4441
4442 PR sanitizer/58411
4443 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
4444 Declare it.
4445 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
4446
fb5610fb
IS
44472013-09-14 Iain Sandoe <iain@codesourcery.com>
4448
4449 PR target/48094
4450 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
4451 fobjc-gc, freplace-objc-classes): Accept for LTO.
4452
88b0e79e
JC
44532013-09-13 Jacek Caban <jacek@codeweavers.com>
4454
4455 * c-target.def: New hook
4456
c9b0866a
PC
44572013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
4458
4459 PR c++/43452
4460 * c.opt (Wdelete-incomplete): Add.
4461
0af94e6f
JR
44622013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
4463
4464 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
4465 (vector_types_compatible_elements_p): New function.
4466 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
4467 declaration.
4468 (vector_types_compatible_elements_p): Declare.
4469
7c26172c
GDR
44702013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
4471
4472 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
4473 a virtual member function.
4474 (pp_simple_type_specifier): Remove.
4475 (pp_c_type_specifier): Likewise.
4476 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
4477 Rename from pp_c_type_specifier. Adjust.
4478 (c_pretty_printer::c_pretty_printer): Do not assign to
4479 simple_type_specifier.
4480
20059c8b
GDR
44812013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
4482
4483 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
4484 member function.
4485 (c_pretty_printer::storage_class_specifier): Likewise.
4486 (c_pretty_printer::initializer): Likewise.
4487 (pp_declaration): Remove.
4488 (pp_declaration_specifiers): Likewise.
4489 (pp_abstract_declarator): Likewise.
4490 (pp_declarator): Likewise.
4491 (pp_type_id): Likewise.
4492 (pp_statement): Likewise.
4493 (pp_constant): Likewise.
4494 (pp_id_expression): Likewise.
4495 (pp_primary_expression): Likewise.
4496 (pp_unary_expression): Likewise.
4497 (pp_multiplicative_expression): Likewise.
4498 (pp_conditional_expression): Likewise.
4499 (pp_assignment_expression): Likewise.
4500 (pp_expression): Likewise.
4501 (pp_c_type_id): Likewise.
4502 (pp_c_storage_class_specifier): Likewise.
4503 * c-pretty-print.c (pp_c_type_cast): Tidy.
4504 (pp_c_pointer): Likewise.
4505 (pp_c_type_specifier): Likewise.
4506 (pp_c_parameter_type_list): Likewise.
4507 (pp_c_function_definition): Likewise.
4508 (pp_c_init_declarator): Likewise.
4509 (pp_c_initializer_list): Likewise.
4510 (pp_c_constructor_elts): Likewise.
4511 (c_pretty_printer::direct_abstract_declarator): Likewise.
4512 (c_pretty_printer::declaration_specifiers): Likewise.
4513 (c_pretty_printer::primary_expression): Likewise.
4514 (c_pretty_printer::postfix_expression): Likewise.
4515 (c_pretty_printer::type_id): Rename from pp_c_type_id.
4516 (c_pretty_printer::storage_class_specifier): Rename from
4517 pp_c_storage_class_specifier.
4518 (c_pretty_printer::initializer): Rename from pp_c_initializer.
4519 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
4520 storage_class_specifier, initializer, offset_list, flags.
4521
de5a5fa1
MP
45222013-08-30 Marek Polacek <polacek@redhat.com>
4523
4524 * c-ubsan.c: New file.
4525 * c-ubsan.h: New file.
4526
8f0e4d72
GDR
45272013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
4528
4529 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
4530 member function.
4531 (c_pretty_printer::declaration_specifiers): Likewise.
4532 (c_pretty_printer::declarator): Likewise.
4533 (c_pretty_printer::abstract_declarator): Likewise.
4534 (c_pretty_printer::direct_abstract_declarator): Likewise.
4535 (c_pretty_printer::direct_declarator): Likewise.
4536 (c_pretty_printer::function_specifier): Likewise.
4537 (pp_declaration): Adjust.
4538 (pp_declaration_specifiers): Likewise.
4539 (pp_abstract_declarator): Likewise.
4540 (pp_direct_declarator): Likewise.
4541 (pp_function_specifier): Likewise.
4542 (pp_direct_abstract_declarator): Remove as unused.
4543 (pp_c_declaration): Remove.
4544 (pp_c_declaration_specifiers): Likewise.
4545 (pp_c_declarator): Likewise.
4546 (pp_c_direct_declarator): Likewise.
4547 (pp_c_function_specifier): Likewise.
4548 (pp_c_direct_abstract_declarator): Likewise.
4549 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
4550 from pp_c_abstract_declarator. Adjust.
4551 (c_pretty_printer::direct_abstract_declarator): Rename from
4552 pp_c_direct_abstract_declarator. Adjust.
4553 (c_pretty_printer::function_specifier): Rename from
4554 pp_c_function_specifier. Adjust.
4555 (c_pretty_printer::declaration_specifiers): Rename from
4556 pp_c_declaration_specifiers. Adjust.
4557 (c_pretty_printer::direct_declarator): Rename from
4558 pp_c_direct_declarator. Adjust.
4559 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
4560 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
4561 (c_pretty_printer::c_pretty_printer): Do not assign to
4562 declaration, declaration_specifiers, declarator,
4563 direct_declarator, direct_abstract_declarator, function_specifier.
4564
00d34d3a
GDR
45652013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
4566
4567 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
4568 virtual member function.
4569 (c_pretty_printer::multiplicative_expression): Likewise.
4570 (c_pretty_printer::conditional_expression): Likewise.
4571 (c_pretty_printer::assignment_expression): Likewise.
4572 (c_pretty_printer::expression): Likewise.
4573 (pp_unary_expression): Adjust.
4574 (pp_multiplicative_expression): Likewise.
4575 (pp_assignment_expression): Likewise.
4576 (pp_conditional_expression): Likewise.
4577 (pp_expression): Likewise.
4578 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
4579 from pp_c_unary_expression. Adjust.
4580 (c_pretty_printer::multiplicative_expression): Rename from
4581 pp_c_multiplicative_expression. Adjust.
4582 (c_pretty_printer::conditional_expression): Rename from
4583 pp_c_conditional_expression. Adjust.
4584 (c_pretty_printer::assignment_expression): Rename from
4585 pp_c_assignment_expression. Adjust.
4586 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
4587 (c_pretty_printer::c_pretty_printer): Do not assign to
4588 unary_expression, multiplicative_expression,
4589 conditional_expression, expression.
4590
fb22178f
GDR
45912013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4592
4593 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
4594 virtual member function.
4595 (pp_postfix_expression): Adjust.
4596 (pp_c_postfix_expression): Remove.
4597 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
4598 from pp_c_postfix_expression. Adjust.
4599 (c_pretty_printer::c_pretty_printer): Do not assign to
4600 postfix_expression.
4601
7ecc2600
GDR
46022013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4603
4604 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
4605 virtua member function.
4606 (pp_primary_expression): Adjust.
4607 (pp_c_primary_expression): Remove.
4608 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
4609 from pp_c_primary_expression. Adjust.
4610 (pp_c_initializer_list): Use pp_primary_expression.
4611 (c_pretty_printer::c_pretty_printer): Do not assign to
4612 primary_expression.
4613
0691175f
GDR
46142013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4615
4616 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
4617 * c-pretty-print.c (M_): Remove.
4618 (c_pretty_printer::translate_string): Define.
4619 (pp_c_type_specifier): Use it.
4620 (pp_c_primary_expression): Likewise.
4621 (pp_c_expression): Likewise.
4622
66dfe4c4
GDR
46232013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
4624
4625 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
4626 virtual function.
4627 (pp_c_id_expression): Remove.
4628 (pp_id_expression): Adjust.
4629 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
4630 pp_c_id_expression. Adjust.
4631 (pp_c_postfix_expression): Use pp_id_expression.
4632 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
4633
ca43e9d5
GDR
46342013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
4635
4636 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
4637 member function.
4638 (pp_constant): Adjust.
4639 (pp_c_constant): Remove.
4640 * c-pretty-print.c (c_pretty_printer::constant): Rename from
4641 pp_c_constant. Adjust.
4642 (pp_c_constant)
4643 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
4644 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
4645
da6ca2b5
GDR
46462013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
4647
4648 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
4649 (c_pretty_printer::c_pretty_printer): Declare.
4650 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
4651 c_pretty_printer_init. Adjust.
4652 (print_c_tree): Do not call c_pretty_printer_init.
4653 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
4654
65a372f4
AC
46552013-08-09 Arnaud Charlet <charlet@adacore.com>
4656
4657 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
4658
fd9b0f32
PC
46592013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
4660
4661 PR c++/58080
4662 * c-common.c (pointer_int_sum): Add bool parameter.
4663 * c-common.h (pointer_int_sum): Adjust declaration.
4664
e0aec1e9
GDR
46652013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
4666
4667 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
4668 c_pretty_printer variable.
4669
b066401f
GDR
46702013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
4671
4672 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
4673 (pp_base): Remove.
4674 (pp_c_base): Likewise. Adjust users.
4675 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
4676 (pp_c_whitespace): Do not call pp_base.
4677 (pp_c_left_paren): Likewise.
4678 (pp_c_right_paren): Likewise.
4679 (pp_c_left_brace): Likewise.
4680 (pp_c_right_brace): Likewise.
4681 (pp_c_left_bracket): Likewise.
4682 (pp_c_right_bracket): Likewise.
4683 (pp_c_dot): Likewise.
4684 (pp_c_ampersand): Likewise.
4685 (pp_c_star): Likewise.
4686 (pp_c_arrow): Likewise.
4687 (pp_c_semicolon): Likewise.
4688 (pp_c_complement): Likewise.
4689 (pp_c_exclamation): Likewise.
4690 (pp_c_direct_declarator): Likewise.
4691 (pp_c_ws_string): Likewise.
4692 (pp_c_identifier): Likewise.
4693 (pp_c_statement): Likewise.
4694 (print_c_tree): Likewise.
4695
65e5a578
ESR
46962013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
4697
4698 PR c++/58072
4699 * c-common.c (c_parse_error): Catch user-defined literal tokens and
4700 provide useful error strings.
4701
137a1a27
GDR
47022013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
4703
4704 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
4705 printer functions instead of pp_string or operators and punctuators.
4706 (dump_generic_ada_node): Likewise.
4707 * c-pretty-print.c (pp_c_type_specifier): Likewise.
4708 (pp_c_relational_expression): Likewise.
4709 (pp_c_logical_or_expression): Likewise.
4710
07838b13
GDR
47112013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
4712
4713 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
4714 functions instead of pp_character.
4715 (pp_ada_tree_identifier): Likewise.
4716 (dump_ada_double_name): Likewise.
4717 (dump_ada_function_declaration): Likewise.
4718 (dump_ada_array_domains): Likewise.
4719 (dump_template_types): Likewise.
4720 (dump_generic_ada_node): Likewise.
4721 (print_ada_declaration): Likewise.
4722 (print_ada_struct_decl): Likewise.
4723 * c-pretty-print.c (pp_c_integer_constant): Likewise.
4724
433cc7b0
TT
47252013-07-23 Tom Tromey <tromey@redhat.com>
4726
4727 * c-common.h (enum rid) <RID_GENERIC>: New constant.
4728 * c-common.c (c_common_reswords): Add _Generic.
4729
688010ba
OB
47302013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
4731
4732 * c-common.c: Fix typos.
4733 * c-common.h: Likewise.
4734
2a99e5e6
LL
47352013-07-13 Lubos Lunak <l.lunak@suse.cz>
4736
4737 PR c++/55203
4738 * c-common.c (c_common_attribute_table): Add warn_unused.
4739 (handle_warn_unused_attribute): New.
4740
c26302d5
JJ
47412013-07-10 Jakub Jelinek <jakub@redhat.com>
4742
4743 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
4744 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
4745
dfeadaa0
PC
47462013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
4747
4748 PR c++/57869
4749 * c.opt: Add Wconditionally-supported.
4750
6a2fa4b2
GS
47512013-07-08 Graham Stott <graham.stott@btinternet.com>
4752
adfac8df 4753 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
4754 unused variables l_length and l_node.
4755
ecdbd01a 47562013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
4757
4758 PR c/57821
4759 * c-common.c (complete_array_type): Delay folding first index
4760 like other indices. When folding, check for index overflow.
4761
bedc293e
MG
47622013-06-27 Marc Glisse <marc.glisse@inria.fr>
4763
4764 PR c++/57509
4765 * c-common.h (c_build_vec_perm_expr): New complain argument.
4766 * c-common.c (c_build_vec_perm_expr): Likewise.
4767 Use save_expr also in C++.
4768
604b2bfc
GDR
47692013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
4770
4771 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
4772 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
4773 * c-opts.c (c_common_post_options): Likewise.
4774
dfeadaa0 47752013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
4776
4777 * array-notation-common.c (length_mismatch_in_expr): Changed the
4778 parameter type's from a dynamic array to a vec_tree. Also removed
4779 the size parameters.
4780 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
4781 the change above.
4782
2ce86d2e
BI
47832013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
4784
4785 * c-common.h (struct cilkplus_an_parts): New structure.
4786 (struct cilkplus_an_loop_parts): Likewise.
4787 (cilkplus_extract_an_triplets): New prototype.
4788 (fix_sec_implicit_args): Likewise.
4789 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
4790 (fix_sec_implicit_args): Likewise.
604b2bfc 4791
07a6825b
BI
47922013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
4793
4794 * array-notation-common.c (find_inv_trees): Removed an unwanted
4795 typecasting.
4796 * c-common.h (struct inv_list::additional_tcodes): Changed type from
4797 enum rid to enum tree_code.
4798
08346abd
JH
47992013-06-11 Jan Hubicka <jh@suse.cz>
4800
4801 * c-common.c (handle_alias_ifunc_attribute): Do not set
4802 DECL_EXTERNAL for weakref variables.
4803 * c-pragma.c (handle_pragma_weak): Make sure aliases
4804 are not declared as external.
4805
d60f1706
BI
48062013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
4807
4808 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
4809 function from c/c-array-notation.c.
4810 (is_cilkplus_reduce_builtin): Likewise.
4811 (find_rank): Likewise.
4812 (extract_array_notation_exprs): Likewise.
4813 (replace_array_notations): Likewise.
4814 (find_inv_trees): Likewise.
4815 (replace_inv_trees): Likewise.
4816 (contains_array_notation_expr): Likewise.
4817 (find_correct_array_notation_type): Likewise.
4818 * c-common.h (struct inv_list): Moved this struct from the file
4819 c/c-array-notation.c and added a new field called additional tcodes.
4820 (length_mismatch_in_expr_p): New prototype.
4821 (is_cilkplus_reduce_builtin): Likewise.
4822 (find_rank): Likewise.
4823 (extract_array_notation_exprs): Likewise.
4824 (replace_array_notation): Likewise.
4825 (find_inv_trees): Likewise.
4826 (replace_inv_trees): Likewise.
4827 (find_correct_array_notation_type): Likewise.
dfeadaa0 4828
36536d79
BI
48292013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
4830
4831 * c-common.c (c_define_builtins): When cilkplus is enabled, the
4832 function array_notation_init_builtins is called.
4833 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
4834 * c-common.def (ARRAY_NOTATION_REF): New tree.
4835 * c-common.h (build_array_notation_expr): New function declaration.
4836 (build_array_notation_ref): Likewise.
4837 (extract_sec_implicit_index_arg): New extern declaration.
4838 (is_sec_implicit_index_fn): Likewise.
4839 (ARRAY_NOTATION_CHECK): New define.
4840 (ARRAY_NOTATION_ARRAY): Likewise.
4841 (ARRAY_NOTATION_START): Likewise.
4842 (ARRAY_NOTATION_LENGTH): Likewise.
4843 (ARRAY_NOTATION_STRIDE): Likewise.
4844 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
4845 ARRAY_NOTATION_REF.
4846 (pp_c_expression): Likewise.
4847 * c.opt (flag_enable_cilkplus): New flag.
4848 * array-notation-common.c: New file.
4849
f7716d57
JJ
48502013-05-14 Jakub Jelinek <jakub@redhat.com>
4851
4852 PR c++/57274
4853 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
4854
a5e0cd1d
MG
48552013-05-10 Marc Glisse <marc.glisse@inria.fr>
4856
4857 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
4858 vectors.
4859
f6bc1c4a
HS
48602013-05-07 Han Shen <shenhan@google.com>
4861
4862 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
4863
3f12f6e9
SKS
48642013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4865
4866 * c-common.c (check_user_alignment): Emit error for negative values.
4867
61949153
PC
48682013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4869
4870 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
4871
e93e18e9
PC
48722013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4873
4874 * c-cppbuiltin.c (c_cpp_builtins): Do not define
4875 __GXX_EXPERIMENTAL_CXX1Y__.
4876
44d90fe1 48772013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
8e745a17 4878 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
44d90fe1
PC
4879
4880 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
4881 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
4882 to simply use OPT_Wpointer_arith.
4883 (c_sizeof_or_alignof_type): Likewise.
4884
13f39b2e
PC
48852013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4886
4887 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
4888
4b84d650
JJ
48892013-04-12 Jakub Jelinek <jakub@redhat.com>
4890
4891 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
4892 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
4893 specifiers.
4894
fb037b5d
SB
48952013-04-07 Steven Bosscher <steven@gcc.gnu.org>
4896
4897 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
4898
4e856798
PC
48992013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
4900
4901 * c-common.c (pointer_int_sum): Remove dead code.
4902
4b1baac8
RS
49032013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
4904
4905 PR middle-end/56524
4906 * c-common.c (handle_optimize_attribute): Don't call
4907 save_optabs_if_changed.
4908
0b50e654
JJ
49092013-03-05 Jakub Jelinek <jakub@redhat.com>
4910
4911 PR middle-end/56461
4912 * c-pch.c (pch_init): Free target_validity at the end.
4913
48c41403
JJ
49142013-03-04 Jakub Jelinek <jakub@redhat.com>
4915
4916 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
4917
e664c61c
KS
49182013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
4919 Jakub Jelinek <jakub@redhat.com>
4920
4921 PR sanitizer/56454
4922 * c-common.c (handle_no_sanitize_address_attribute): New function.
4923 (c_common_attribute_table): Add no_sanitize_address attribute.
4924 (handle_no_address_safety_analysis_attribute): Add
4925 no_sanitize_address attribute, not no_address_safety_analysis
4926 attribute.
4927
a475fd3d 49282013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
4929
4930 PR target/52555
4931 * c-common.c (handle_optimize_attribute): Call
4932 save_optabs_if_changed.
4933
f6007d99
JJ
49342013-02-18 Jakub Jelinek <jakub@redhat.com>
4935 Steven Bosscher <steven@gcc.gnu.org>
4936
4937 PR pch/54117
4938 * c-opts.c (c_common_post_options): If debug info is enabled
4939 and non-dwarf*, refuse to load PCH files and when writing PCH
4940 file warn.
4941
cf35e2b1
JJ
49422013-02-05 Jakub Jelinek <jakub@redhat.com>
4943
4944 PR middle-end/56167
4945 * c-common.c (handle_error_attribute): Fix condition.
4946
32887460
JJ
49472013-01-30 Jakub Jelinek <jakub@redhat.com>
4948
4949 PR c++/55742
4950 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
4951
5af057d8
JM
49522013-01-18 Jason Merrill <jason@redhat.com>
4953
4954 PR target/54908
4955 * c.opt (-fextern-tls-init): New.
4956 * c-opts.c (c_common_post_options): Handle it.
4957
cc83c823
JJ
49582013-01-09 Jakub Jelinek <jakub@redhat.com>
4959
4960 PR c/48418
4961 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
4962 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
4963 and is either negative or bigger or equal to type precision
4964 of the first operand.
4965
a859517f
MP
49662012-12-03 Marek Polacek <polacek@redhat.com>
4967
4968 PR c/55570
4969 * c-common.c (check_user_alignment): Swap order of tests,
4970 check TREE_CODE first.
4971
2d7aa578
ESR
49722012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
4973
4974 PR c++/52654
4975 * c-common.h (overflow_type): New enum.
4976 (build_userdef_literal): Add overflow_type argument.
4977 (tree_userdef_literal): Add overflow_type.
4978 (USERDEF_LITERAL_OVERFLOW): New access macro.
4979 * c-common.c (build_userdef_literal): Add overflow_type
4980 argument.
4981 * c-lex.c (c_lex_with_flags): Add overflow_type to
4982 build_userdef_literal calls.
4983 (interpret_integer, interpret_float): Add overflow_type argument.
4984
cc3c4f62
RB
49852012-11-28 Richard Biener <rguenther@suse.de>
4986
4987 PR c/35634
4988 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
4989 here and use a type with proper overflow behavior for types that would
4990 need to be promoted for the arithmetic.
4991
77bc5132
JJ
49922012-11-23 Jakub Jelinek <jakub@redhat.com>
4993
4994 PR sanitizer/55435
4995 * c-common.c (handle_no_address_safety_analysis_attribute): New
4996 function.
4997 (c_common_attribute_table): Add no_address_safety_analysis.
4998
5dc99c46
SB
49992012-11-16 Simon Baldwin <simonb@google.com>
5000
5001 * c.opt: Add f[no-]canonical-system-headers.
5002 * c-opts.c (c_common_handle_option): Handle
5003 OPT_fcanonical_system_headers.
5004
a4a0016d
ESR
50052012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
5006
5007 PR c++/54413
5008 * c-opts.c (c_common_handle_option): Set new flags.
5009 * c.opt: Describe new flags.
5010
7dbb85a7
JM
50112012-11-09 Jason Merrill <jason@redhat.com>
5012
5013 * c.opt (Wabi-tag): New.
5014
ad7bac31
AK
50152012-11-09 Andi Kleen <ak@linux.intel.com>
5016
5017 PR 55139
5018 * c-common.c (get_atomic_generic_size): Mask with
8e745a17 5019 MEMMODEL_MASK
ad7bac31 5020
7332899a
MLI
50212012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
5022
5023 PR c/53063
5024 * c.opt (Wformat): Make it Alias Wformat=1.
5025 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
5026 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
5027 LangEnabledBy.
5028 (Wformat=): RejectNegative. Use LangEnabledBy.
5029 (Wnonnull): Use LangEnabledBy.
5030 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
5031 * c-format.c (set_Wformat): Delete.
5032 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
8e745a17
JJ
5033 (maybe_read_dollar_number): Likewise.
5034 (avoid_dollar_number): Likewise.
5035 (finish_dollar_format_checking): Likewise.
5036 (check_format_info): Likewise.
5037 (check_format_info_main): Likewise.
5038 (check_format_types): Likewise.
5039 (format_type_warning): Likewise.
5040 * c-common.c (int): Likewise.
5041 (check_function_sentinel): Likewise.
5042 * c-common.h (warn_format,set_Wformat): Do not declare here.
7332899a 5043
34a180a6
MLI
50442012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
5045
5046 PR c/53063
5047 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
5048 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
5049 Use LangEnabledBy.
5050 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
5051 common.opt.
5052 (Wvariadic-macros): Init(1).
5053 * c-opts.c (c_common_handle_option): Do not handle them
5054 explicitly.
5055 (c_common_post_options): Likewise.
5056 (sanitize_cpp_opts): warn_unused_macros is now
5057 cpp_warn_unused_macros.
5058 (push_command_line_include): Likewise.
5059 * c-common.c (warn_unknown_pragmas): Do not define.
5060 * c-common.h (warn_unknown_pragmas): Do not declare.
5061
3f46d6a5
MLI
50622012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
5063
5064 PR c/51294
5065 * c-common.c (conversion_warning): Handle conditional expressions.
5066
880661a4
JW
50672012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
5068
5069 PR c++/54930
5070 * c.opt (Wreturn_local_addr): Define new option.
5071
4514a96b
JM
50722012-10-25 Jason Merrill <jason@redhat.com>
5073
f14edc1a
JM
5074 * c.opt (Wvirtual-move-assign): New.
5075
4514a96b
JM
5076 * c.opt (Winherited-variadic-ctor): New.
5077
93100c6b
MG
50782012-10-25 Marc Glisse <marc.glisse@inria.fr>
5079
5080 PR c++/54427
5081 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
5082
1efcb8c6
JM
50832012-10-23 Joseph Myers <joseph@codesourcery.com>
5084
5085 * c-common.h (pch_cpp_save_state): Declare.
5086 * c-target.def (c_preinclude): New hook.
5087 * c-opts.c (done_preinclude): New.
5088 (push_command_line_include): Handle default preincluded header.
5089 (cb_file_change): Call pch_cpp_save_state when calling
5090 push_command_line_include.
5091 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
5092 (pch_cpp_save_state): New.
5093 (pch_init): Call pch_cpp_save_state conditionally, instead of
5094 calling cpp_save_state.
5095
4a0ae68e
MLI
50962012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5097
5098 PR c/53063
5099 PR c/40989
5100 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
5101 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
5102 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
5103 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
5104 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
5105 * c-opts.c (c_common_handle_option): Remove explicit handling from
5106 here.
5107 (c_common_post_options): Likewise.
5108
67e4210b
EB
51092012-10-18 Eric Botcazou <ebotcazou@adacore.com>
5110
5111 * c-ada-spec.c (LOCATION_COL): Delete.
5112 (compare_location): New function.
5113 (compare_node): Use it.
5114 (compare_comment): Likewise.
5115
65d4f2cd
MLI
51162012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
5117
5118 PR c/53063
5119 PR c/40989
5120 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
5121 * c-opts.c (c_common_handle_option): Do not set them here. Add
5122 comment.
5123 (c_common_post_options): Likewise.
5124
909881cb
EB
51252012-10-16 Eric Botcazou <ebotcazou@adacore.com>
5126
5127 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
5128 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
5129 Remove POINTER_TYPE handling, add large unsigned handling and use
5130 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
5131
3a785c97
JJ
51322012-10-12 Jakub Jelinek <jakub@redhat.com>
5133
5134 PR c/54381
5135 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
5136 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
5137 locs and array of 3 trees instead of just single loc and single
5138 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
5139 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
5140 For *cmp* builtins that take two sources strings report warnings
5141 about first and second source, not about destination and source.
5142
5e54f81d
MG
51432012-10-12 Marc Glisse <marc.glisse@inria.fr>
5144
5145 PR c++/53055
5146 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
5147
f5b02f1e
EB
51482012-10-11 Eric Botcazou <ebotcazou@adacore.com>
5149
5150 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
5151 declaring something coming from another file.
5152
b46dbc6c
AC
51532012-10-10 Arnaud Charlet <charlet@adacore.com>
5154
f5b02f1e 5155 PR ada/54845
b46dbc6c
AC
5156 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
5157
5d9de0d0
PC
51582012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
5159
5160 PR c++/54194
5161 * c-common.c (warn_about_parentheses): Add location_t parameter;
5162 use EXPR_LOC_OR_LOC.
5163 * c-common.h: Update declaration.
5164
a212e43f
MG
51652012-10-09 Marc Glisse <marc.glisse@inria.fr>
5166
5167 PR c++/54427
5168 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
5169 more operations. Make error messages optional.
5170 * c-common.h (enum stv_conv): Moved from c-typeck.c.
5171 (scalar_to_vector): Declare.
5172
b1db7f91
JM
51732012-10-08 Jason Merrill <jason@redhat.com>
5174
5175 * c-common.c (c_common_reswords): Add thread_local.
5176
e28d52cf
DS
51772012-10-08 Dodji Seketeli <dodji@redhat.com>
5178
5179 PR c++/53528 C++11 attribute support
5180 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
5181 new functions.
5182 * c-common.c (check_cxx_fundamental_alignment_constraints): New
5183 static function.
5184 (handle_aligned_attribute): In choose strictest alignment
5185 among many. Use new check_cxx_fundamental_alignment_constraints.
5186 (handle_transparent_union_attribute): In c++11 attribute syntax,
5187 don't look through typedefs.
5188
3b78de56
AC
51892012-10-04 Arnaud Charlet <charlet@adacore.com>
5190
5191 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
5192 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
5193 out of dumpfile.h.
5194
6040bb5f
DC
51952012-09-25 Dehao Chen <dehao@google.com>
5196
5197 PR middle-end/54645
3b78de56 5198 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
5199 map when read in the pch.
5200
3f8257db 52012012-09-18 Arnaud Charlet <charlet@adacore.com>
0b07a57e
AC
5202
5203 * c-ada-spec.c: Style fixes.
5204
3f8257db 52052012-09-18 Thomas Quinot <quinot@adacore.com>
da5182be
TQ
5206
5207 * c.opt (-fada-spec-parent): Define new command line switch.
5208 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
5209 is specified, generate binding spec as a child of the specified unit.
5210
0ccb505d
PC
52112012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
5212 Manuel López-Ibáñez <manu@gcc.gnu.org>
5213
5214 PR c++/53210
5215 * c.opt ([Winit-self]): Enabled by -Wall in C++.
5216
c583af79
AC
52172012-08-23 Arnaud Charlet <charlet@adacore.com>
5218
5219 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
5220 for pointers, and add missing Convention C pragma.
5221 (print_ada_struct_decl): Add missing aliased keyword.
5222 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
5223
1a4049e7
JJ
52242012-08-17 Jakub Jelinek <jakub@redhat.com>
5225
5226 * c-common.c (sizeof_pointer_memaccess_warning): New function.
5227 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
5228 * c-opts.c (c_common_handle_option): Enable it for -Wall.
5229 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
5230 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
5231
70b5e7dc
RG
52322012-08-10 Richard Guenther <rguenther@suse.de>
5233
5234 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
5235
f8923f7e
SB
52362012-08-07 Steven Bosscher <steven@gcc.gnu.org>
5237
5238 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
5239 instead of separate pp_newline and pp_flush.
5240 (print_c_tree): Likewise.
5241
e45abe1f
RH
52422012-07-26 Richard Henderson <rth@redhat.com>
5243
5244 * c-common.c (handle_hot_attribute): Allow labels.
5245 (handle_cold_attribute): Likewise.
5246
332f1d24
JJ
52472012-07-20 Jakub Jelinek <jakub@redhat.com>
5248
5249 PR c++/28656
5250 * c-common.c (check_function_nonnull): Handle multiple nonnull
5251 attributes properly.
5252
7ee2468b
SB
52532012-07-16 Steven Bosscher <steven@gcc.gnu.org>
5254
5255 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
5256 * c-ada-spec.c: Likewise.
5257 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
5258
ee7b28eb
SB
52592012-07-14 Steven Bosscher <steven@gcc.gnu.org>
5260
5261 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
5262 Remove code conditional on it.
5263
6bdf3519
SB
52642012-07-11 Steven Bosscher <steven@gcc.gnu.org>
5265
5266 * c-gimplify.c: Do not include basic-block.h.
5267 * c-common.c: Do not include linfuncs.h.
5268
532aafad
SB
52692012-07-08 Steven Bosscher <steven@gcc.gnu.org>
5270
5271 * c-common.h: Include tree.h.
5272
8d0d1915
JM
52732012-07-02 Jason Merrill <jason@redhat.com>
5274
5275 PR c++/53524
5276 * c-common.c (get_priority): Call default_conversion.
5277
fbc873ad
UB
52782012-07-01 Uros Bizjak <ubizjak@gmail.com>
5279
5280 * c-pch.c (c_common_write_pch): Remove unused variables.
5281
d4a10d0a
SB
52822012-06-29 Steven Bosscher <steven@gcc.gnu.org>
5283
5284 * cppspec.c: Moved from gcc/ to here.
5285
6f3a2e23
KT
52862012-06-27 Kai Tietz <ktietz@redhat.com>
5287
5288 PR preprocessor/37215
5289 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
5290
8ca92d04
SB
52912012-06-21 Steven Bosscher <steven@gcc.gnu.org>
5292
5293 * c-common.h (c_common_print_pch_checksum): Remove.
5294 * c-pch.c: Do not include output.h.
5295 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
5296 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
5297 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
5298 (struct c_pch_header): Remove.
5299 (get_ident): Update gpch version.
5300 (pch_init): Do not print executable_checksum to asm_out_file.
5301 Do not fail if there is no asm_out_file to read back from. Set
5302 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
5303 (c_common_write_pch): Verify that nothing was written to asm_out_file
5304 since pch_init was called. Do not write a c_pch_header, and do not
5305 copy from asm_out_file to the PCH.
5306 (c_common_read_pch): Do not read a c_pch_header, and do not restore
5307 the content of asm_out_file from the PCH.
5308 (c_common_print_pch_checksum): Remove.
5309 * c-opts.c (c_common_init): Print out executable_checksum directly.
5310
70f42967
SB
53112012-06-19 Steven Bosscher <steven@gcc.gnu.org>
5312
5313 * c-target.def (objc_declare_unresolved_class_reference,
5314 objc_declare_class_definition): Add new hooks.
5315
a8781821
SB
53162012-06-19 Steven Bosscher <steven@gcc.gnu.org>
5317
5318 * c-lex.c: Do not include output.h.
5319 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
5320 Remove uses of ASM_OUTPUT_IDENT.
5321
9e1a8dd1
RR
53222012-06-15 Marc Glisse <marc.glisse@inria.fr>
5323
5324 PR c++/51033
5325 * c-common.h (c_build_vec_perm_expr): Move decl here.
5326 * c-common.c (c_build_vec_perm_expr): Move definition
5327 here.
5328
6f07a821
SB
53292012-06-06 Steven Bosscher <steven@gcc.gnu.org>
5330
5331 * c.opt (fconserve-space): Turn into a no-op.
5332
9faeb493 53332012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
5334
5335 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
5336 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
5337 both the start and end of the function.
5338
a4b7d13c
SB
53392012-06-04 Steven Bosscher <steven@gcc.gnu.org>
5340
5341 * c-common.c: Do not include output.h.
5342 * c-pragma.c: Likewise.
5343
c265f413
SA
53442012-06-04 Steven Bosscher <steven@gcc.gnu.org>
5345
5346 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
5347 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
5348 (lang_decl_name): Handle namespace decls.
5349
be7a421e
SB
53502012-05-31 Steven Bosscher <steven@gcc.gnu.org>
5351
5352 * c-ada-spec.c: Do not include output.h.
5353 * c-semantics.c: Likewise.
5354
65de6659
JM
53552012-05-29 Joseph Myers <joseph@codesourcery.com>
5356
5357 * c-common.c: Fix typo.
5358
ca5f4331
MM
53592012-05-29 Michael Matz <matz@suse.de>
5360
5361 * c-common.h (c_expand_decl): Remove prototype.
5362
4f7f7aca
MLI
53632012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
5364
5365 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
5366 * c-opts.c (c_common_handle_option): Remove code handling
5367 warn_missing_braces.
5368
4a792f9b
PC
53692012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
5370
5371 PR c++/25137
5372 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
5373 -Wmissing_braces.
5374
650dc14a
DS
53752012-05-22 Dodji Seketeli <dodji@redhat.com>
5376
5377 PR c++/53322
5378 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
5379
9b095bf1
MLI
53802012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
5381
5382 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
5383 * c-opts.c (c_common_handle_option): Do not handle explicitly
5384 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
5385
0b2c4be5
DS
53862012-05-16 Dodji Seketeli <dodji@redhat.com>
5387
5388 PR preprocessor/7263
5389 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
5390 to cpp_classify_number. For diagnostics, use the precise location
5391 instead of the global input_location.
5392
a1bde5af
PC
53932012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
5394
d02924ef 5395 PR c++/11856
a1bde5af
PC
5396 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
5397
d1ede5f4
BS
53982012-05-14 Bernd Schmidt <bernds@codesourcery.com>
5399
a1bde5af 5400 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 5401
f2bc201f
MLI
54022012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
5403
5404 PR 53063
5405 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
5406 Wreorder): Use LangEnabledBy.
5407 * c-opts.c (c_common_handle_option): Do not enable them
5408 explicitly. Call lang-specific generated functions.
5409 (c_common_post_options): Do not set them here.
5410
95744782
MLI
54112012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
5412
5413 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
5414 Wmissing-field-initializers,Wmissing-parameter-type,
5415 Wold-style-declaration,Woverride-init): Use EnabledBy.
5416 * c-opts.c (c_common_post_options): Do not set here explicitly.
5417
7d5a5747
MLI
54182012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
5419
5420 PR 53063
5421 * c-opts.c (c_common_handle_option): Use handle_generated_option
5422 to enable sub-options.
5423
5a3c9cf2
PC
54242012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
5425
5426 PR c++/53158
5427 * c-common.c (warnings_for_convert_and_check): Use warning_at.
5428
3ac8781c
RG
54292012-05-10 Richard Guenther <rguenther@suse.de>
5430
5431 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
5432 adjust commentary about TYPE_IS_SIZETYPE types.
5433
1e537948
MLI
54342012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5435
5436 PR c++/53261
5437 * c-common.c (warn_logical_operator): Check that argument of
5438 integer_zerop is not NULL.
5439
f2c4a785
MLI
54402012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
5441
5442 PR c/43772
5443 * c-common.c (warn_logical_operator): Do not warn if either side
5444 is already true or false.
5445
50f305ca
MLI
54462012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
5447
5448 PR c/51712
5449 * c-common.c (expr_original_type): New.
5450 (shorten_compare): Do not warn for enumeration types.
5451
0c3641b0
MLI
54522012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
5453
5454 * c.opt (fpermissive): Add Var(flag_permissive).
5455
7edaa4d2
MG
54562012-04-30 Marc Glisse <marc.glisse@inria.fr>
5457
5458 PR c++/51033
5459 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
5460 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
5461
b9c8da34
DS
54622012-04-30 Dodji Seketeli <dodji@redhat.com>
5463
5464 Add -Wvarargs option
5465 * c.opt (Wvarargs): Define new option.
5466
e6c69da0
MLI
54672012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5468
5469 * c-common.c (check_function_arguments): Replace
5470 Wmissing-format-attribute with Wsuggest-attribute=format.
5471
90137d8f
MLI
54722012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5473
5474 * c.opt (Wsuggest-attribute=format): New. Alias of
5475 Wmissing-format-attribute.
5476 * c-format.c (decode_format_type): Replace
5477 Wmissing-format-attribute with Wsuggest-attribute=format.
5478 (check_function_format): Likewise.
5479
9faeb493 54802012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
5481
5482 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
5483 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
5484 * c.opt: Add Wliteral-suffix.
5485
c1771a20
MLI
54862012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
5487
5488 PR c/44774
5489 * c.opt (Wpedantic): New.
5490 (pedantic): Alias Wpedantic.
5491 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
5492 (c_common_post_options): Likewise.
5493 (sanitize_cpp_opts): Likewise.
5494 * c-lex.c (interpret_float): Likewise.
5495 * c-format.c (check_format_types): Likewise.
5496 * c-common.c (pointer_int_sum): Likewise.
5497 (c_sizeof_or_alignof_type): Likewise.
5498 (c_add_case_label): Likewise.
5499 (c_do_switch_warnings): Likewise.
5500 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
5501
04b391c1
JM
55022012-04-15 Jason Merrill <jason@redhat.com>
5503
5504 PR c++/52818
5505 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
5506 (C_STD_NAME): Distinguish between C++98 and C++11.
5507
ac868f29
EB
55082012-04-11 Eric Botcazou <ebotcazou@adacore.com>
5509
5510 PR target/52624
5511 * c-common.h (uint16_type_node): Rename into...
5512 (c_uint16_type_node): ...this.
5513 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
5514 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
5515
fd4116f4
MLI
55162012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
5517
5518 * c-common.c (warn_if_unused_value): Move definition to here.
5519 * c-common.h (warn_if_unused_value): Move declaration to here.
5520
573ac65e
WB
55212012-03-23 William Bader <williambader@hotmail.com>
5522
5523 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
5524
552b8185
JM
55252012-03-20 Jason Merrill <jason@redhat.com>
5526
5527 * c-common.h (enum cxx_dialect): Add cxx1y.
5528 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
5529 test.
5530 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
5531 * c-opts.c (c_common_post_options): Likewise.
5532 (set_std_cxx1y): New.
5533 (c_common_handle_option): Call it.
5534 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
5535
04398fa8
PC
55362012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
5537
5538 PR c++/14710
5539 * c.opt ([Wuseless-cast]): Add.
5540
d2a12ae7
RG
55412012-03-16 Richard Guenther <rguenther@suse.de>
5542
5543 * c-pretty-print.c (pp_c_initializer_list): Adjust.
5544
a12bf402
MLI
55452012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5546
5547 PR c++/44783
5548 * c.opt (ftemplate-backtrace-limit) Add.
5549
5c30094f
RO
55502012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5551
5552 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
5553 handling.
5554 * c-pragma.c (handle_pragma_extern_prefix): Remove.
5555 (init_pragma): Don't register extern_prefix.
5556
21fa2faf
RG
55572012-03-12 Richard Guenther <rguenther@suse.de>
5558
5559 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
5560 (builtin_type_for_size): Likewise.
5561
e3793c6f
JJ
55622012-02-13 Jakub Jelinek <jakub@redhat.com>
5563
5564 PR c++/52215
5565 * c-common.c (sync_resolve_params): Don't decide whether to convert
5566 or not based on TYPE_SIZE comparison, convert whenever arg_type
5567 is unsigned INTEGER_TYPE.
5568
93286335
PC
55692012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
5570
5571 PR c/52118
5572 * c.opt ([Wunused-local-typedefs]): Fix description.
5573
7a421706
MS
55742012-01-24 Mike Stump <mikestump@comcast.net>
5575
5576 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
5577 exactly.
5578
ba9b1f11
RG
55792012-01-18 Richard Guenther <rguenther@suse.de>
5580
5581 * c-opts.c (c_common_post_options): Reset LTO flags if
5582 we are about to generate a PCH.
5583
465406be
PC
55842012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
5585
5586 PR c++/51777
5587 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
5588 use pp_unsigned_wide_integer.
5589
aee15221
RG
55902012-01-10 Richard Guenther <rguenther@suse.de>
5591
5592 PR middle-end/51806
5593 * c-opts.c (c_common_handle_option): Move -Werror handling
5594 to language independent code.
5595
5720c0dc
RG
55962012-01-05 Richard Guenther <rguenther@suse.de>
5597
5598 PR middle-end/51764
5599 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
5600 from common.opt.
5601
73ac190a
PC
56022011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
5603
5604 PR c++/51316
5605 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
5606 of array types with an unknown bound.
5607
48b0b196
JM
56082011-12-20 Joseph Myers <joseph@codesourcery.com>
5609
5610 * c-common.c (flag_isoc99): Update comment to refer to C11.
5611 (flag_isoc1x): Change to flag_isoc11.
5612 * c-common.h (flag_isoc99): Update comment to refer to C11.
5613 (flag_isoc1x): Change to flag_isoc11.
5614 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
5615 C11.
5616 * c-opts.c (set_std_c1x): Change to set_std_c11.
5617 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
5618 Call set_std_c11.
5619 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
5620 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
5621 * c.opt (std=c1x): Change to std=c11. Document as non-draft
5622 standard.
5623 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
5624 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
5625 (std=gnu1x): Make alias of std=gnu11.
5626
d58d6eb5
JM
56272011-12-19 Jason Merrill <jason@redhat.com>
5628
5629 PR c++/51228
5630 * c-common.c (handle_transparent_union_attribute): Check the first
5631 field if the type is complete.
5632
b3908fcc
JW
56332011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
5634
5635 PR libstdc++/51365
5636 * c-common.c (RID_IS_FINAL): Add.
5637 * c-common.h (RID_IS_FINAL): Add.
5638
fea3ca91
IS
56392011-11-30 Iain Sandoe <iains@gcc.gnu.org>
5640
5641 * c.opt (fgnu-runtime): Provide full description.
5642 (fnext-runtime): Likewise.
5643 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
5644
62bad7cd
AM
56452011-11-28 Andrew MacLeod <amacleod@redhat.com>
5646
5647 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
5648 predefines in one place. Add LOCK_FREE predefines.
5649 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
5650 new func.
5651
c466c4ff
AM
56522011-11-24 Andrew MacLeod <amacleod@redhat.com>
5653
5654 PR c/51256
9faeb493 5655 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 5656 conditions
9faeb493
UB
5657 (resolve_overloaded_atomic_exchange,
5658 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
5659 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
5660 error_mark_node for error conditions.
9faeb493 5661
a5952633
RG
56622011-11-08 Richard Guenther <rguenther@suse.de>
5663
5664 PR middle-end/51010
5665 c-family/
5666
0a35513e
AH
56672011-11-07 Richard Henderson <rth@redhat.com>
5668 Aldy Hernandez <aldyh@redhat.com>
5669 Torvald Riegel <triegel@redhat.com>
5670
5671 Merged from transactional-memory.
5672
5673 * c-common.c (handle_tm_wrap_attribute,
5674 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
5675 (struct c_common_reswords): Added __transaction* keywords.
5676 (struct c_common_attribute_table): Added transaction* and tm_regparm
5677 attributes.
5678 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
5679 masks.
5680 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
5681 find_tm_attribute): Declare.
5682
6d87092d
JM
56832011-11-07 Jason Merrill <jason@redhat.com>
5684
5685 PR c++/35688
5686 * c-common.c, c-common.h: Revert yesterday's changes.
5687
8e7860a1
JM
56882011-11-06 Jason Merrill <jason@redhat.com>
5689
5690 PR c++/35688
5691 * c-common.c (decl_has_visibility_attr): Split out from...
5692 (c_determine_visibility): ...here.
5693 * c-common.h: Declare it.
5694
d19fa6b5
JM
56952011-11-06 Joseph Myers <joseph@codesourcery.com>
5696
5697 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
5698 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
5699 type.
5700 (check_user_alignment): New. Split out of
5701 handle_aligned_attribute. Disallow integer constants with
5702 noninteger types. Conditionally allow zero.
5703 (handle_aligned_attribute): Use check_user_alignment.
5704 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
5705
86951993
AM
57062011-11-06 Andrew MacLeod <amacleod@redhat.com>
5707 Richard Henderson <rth@redhat.com>
5708
5709 Merged from cxx-mem-model.
5710
5711 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 5712 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
5713 parameters that are the same type size.
5714 (get_atomic_generic_size): New. Find size of generic
5715 atomic function parameters and do typechecking.
5716 (add_atomic_size_parameter): New. Insert size into parameter list.
5717 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
5718 either __atomic_exchange_n or external library call.
9faeb493 5719 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 5720 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 5721 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
5722 __atomic_load_n or an external library call.
5723 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
5724 __atomic_store_n or an external library call.
5725 (resolve_overloaded_builtin): Handle new __atomic builtins.
5726
cf9e9959
EB
57272011-11-04 Eric Botcazou <ebotcazou@adacore.com>
5728
5729 PR c++/50608
5730 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
5731 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
5732 <INDIRECT_REF>: Return the argument.
5733 <ARRAY_REF>: Remove special code for negative offset.
5734 Call fold_build_pointer_plus instead of size_binop.
5735 (fold_offsetof): Remove STOP_REF argument and adjust.
5736 * c-common.h (fold_offsetof_1): Declare.
5737 (fold_offsetof): Remove STOP_REF argument.
5738
25339f10
JM
57392011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
5740
5741 PR c++/50810
5742 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
5743 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
5744 Wnarrowing for C++0x and C++98.
5745 * c.opt ([Wnarrowing]): Update.
5746
89401152
PC
57472011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
5748
5749 PR c++/44277
5750 * c.opt: Add Wzero-as-null-pointer-constant.
5751
97e3ad20
JM
57522011-10-31 Jason Merrill <jason@redhat.com>
5753
15694fdd
JM
5754 * c.opt (-fdeduce-init-list): Off by default.
5755
97e3ad20
JM
5756 PR c++/50920
5757 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
5758 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
5759 and -Wc++11-compat.
5760 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
5761
fb9120e3
RAV
57622011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
5763
5764 PR c++/30066
5765 * c.opt (fvisibility-inlines-hidden): Description change.
5766
3ce4f9e4
ESR
57672011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
5768
5769 Implement C++11 user-defined literals.
5770 * c-common.c (build_userdef_literal): New.
5771 * c-common.def: New tree code.
5772 * c-common.h (tree_userdef_literal): New tree struct and accessors.
5773 * c-lex.c (interpret_float): Add suffix parm.
5774 (c_lex_with_flags): Build literal tokens.
5775
5f53c243
PC
57762011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
5777
5778 PR c++/50841
5779 Revert:
5780 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
5781
5782 PR c++/50810
5783 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
5784 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
5785 Wnarrowing for C++0x and C++98.
5786 * c.opt ([Wnarrowing]): Update.
5787
263734e1
PC
57882011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
5789
5790 PR c++/50810
5791 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
5792 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
5793 Wnarrowing for C++0x and C++98.
5794 * c.opt ([Wnarrowing]): Update.
5795
d2e312d7
PC
57962011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
5797
5798 PR c++/45385
5799 * c-common.c (conversion_warning): Remove code looking for
5800 artificial operands.
5801
d17687f6
DS
58022011-10-18 Dodji Seketeli <dodji@redhat.com>
5803
5804 PR bootstrap/50760
5805 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 5806 !NO_IMPLICIT_EXTERN_C.
d17687f6 5807
fc8396e9
PC
58082011-10-17 Michael Spertus <mike_spertus@symantec.com>
5809
5810 * c-common.c (c_common_reswords): Add __bases,
5811 __direct_bases.
5812 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
5813
58142011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
5815
5816 PR c++/50757
5817 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
5818
847e697a
TT
58192011-10-15 Tom Tromey <tromey@redhat.com>
5820 Dodji Seketeli <dodji@redhat.com>
5821
5822 * c.opt (fdebug-cpp): New option.
5823 * c-opts.c (c_common_handle_option): Handle the option.
5824 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
5825 output stream in parameter. Factorized from ...
5826 (maybe_print_line): ... this. Dump location debug information when
5827 -fdebug-cpp is in effect.
5828 (print_line_1): New static function. Takes an output stream in
5829 parameter. Factorized from ...
5830 (print_line): ... here. Dump location information when -fdebug-cpp
5831 is in effect.
5832 (scan_translation_unit): Dump location information when
5833 -fdebug-cpp is in effect.
5834
92582b75
TT
58352011-10-15 Tom Tromey <tromey@redhat.com>
5836 Dodji Seketeli <dodji@redhat.com>
5837
5838 * c.opt (ftrack-macro-expansion): New option. Handle it with and
5839 without argument.
5840 * c-opts.c (c_common_handle_option)<case
5841 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
5842 cases. Handle -ftrack-macro-expansion with and without argument.
5843
46427374
TT
58442011-10-15 Tom Tromey <tromey@redhat.com>
5845 Dodji Seketeli <dodji@redhat.com>
5846
5847 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
5848 (print_line, cb_define, do_line_change): Adjust to avoid touching
5849 the internals of struct line_map. Use the public API instead.
5850 * c-pch.c (c_common_read_pch): Likewise.
5851 * c-lex.c (fe_file_change): Likewise.
5852
fc8396e9
PC
58532011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
5854
5855 PR c++/17212
5856 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
5857
58582011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
5859
5860 PR c++/33067
5861 * c-pretty-print.c (pp_c_floating_constant): Output
5862 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
5863
e79983f4
MM
58642011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
5865
5866 * c-common.c (def_builtin_1): Delete old interface with two
5867 parallel arrays to hold standard builtin declarations, and replace
5868 it with a function based interface that can support creating
5869 builtins on the fly in the future. Change all uses, and poison
5870 the old names. Make sure 0 is not a legitimate builtin index.
5871 * c-omp.c (c_finish_omp_barrier): Ditto.
5872 (c_finish_omp_taskwait): Ditto.
5873 (c_finish_omp_flush): Ditto.
5874
6637388f
TG
58752011-10-11 Tristan Gingold <gingold@adacore.com>
5876
5877 * c.opt: (fallow-parameterless-variadic-functions): New.
5878
3797cb21
DS
58792011-09-08 Dodji Seketeli <dodji@redhat.com>
5880
5881 PR c++/33255 - Support -Wunused-local-typedefs warning
5882 * c-common.h (struct c_language_function::local_typedefs): New
5883 field.
9faeb493
UB
5884 (record_locally_defined_typedef, maybe_record_typedef_use)
5885 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 5886 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
5887 (maybe_record_typedef_use)
5888 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
5889 * c.opt: Declare new -Wunused-local-typedefs flag.
5890
693ddb1b
EB
58912011-09-06 Eric Botcazou <ebotcazou@adacore.com>
5892
5893 PR middle-end/50266
5894 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
5895 computations.
5896
830c740f
RG
58972011-09-05 Richard Guenther <rguenther@suse.de>
5898
5899 * c-common.c (complete_array_type): Use ssize_int (-1) instead
5900 of integer_minus_one_node for empty array upper bounds.
5901
892a371f
DS
59022011-08-28 Dodji Seketeli <dodji@redhat.com>
5903
5904 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
5905 it's the first time it's being called on this main TU.
5906
0e3fdb48
RB
59072011-08-24 Richard Guenther <rguenther@suse.de>
5908
5909 PR c/49396
5910 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
5911
59122011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
5913
5914 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
5915 defined in cpp_init_builtins and c_cpp_builtins.
5916
d4a83c10
JM
59172011-08-19 Joseph Myers <joseph@codesourcery.com>
5918
5919 * c-common.c (c_common_reswords): Add __builtin_complex.
5920 * c-common.h (RID_BUILTIN_COMPLEX): New.
5921
bbceee64
JM
59222011-08-18 Joseph Myers <joseph@codesourcery.com>
5923
5924 * c-common.c (c_common_reswords): Add _Noreturn.
5925 (keyword_is_function_specifier): Handle RID_NORETURN.
5926 * c-common.h (RID_NORETURN): New.
5927
3f8257db 59282011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
0e3a99ae
AS
5929
5930 * c-common.c (unsafe_conversion_p): New function. Check if it is
5931 unsafe to convert an expression to the type.
5932 (conversion_warning): Adjust, use unsafe_conversion_p.
5933 * c-common.h (unsafe_conversion_p): New function declaration.
5934
20906c66
JJ
59352011-08-02 Jakub Jelinek <jakub@redhat.com>
5936
5937 * c-common.h (c_finish_omp_atomic): Adjust prototype.
5938 (c_finish_omp_taskyield): New prototype.
5939 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
5940 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
5941 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
5942 or RHS1 have side-effects, evaluate those too in the right spot,
5943 if it is a decl and LHS is also a decl, error out if they
5944 aren't the same.
5945 (c_finish_omp_taskyield): New function.
5946 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
5947 * c-pragma.c (omp_pragmas): Add taskyield.
5948 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
5949 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
5950 PRAGMA_OMP_CLAUSE_MERGEABLE.
5951
770e5a2e
DS
59522011-07-25 Dodji Seketeli <dodji@redhat.com>
5953
5954 * c-common.h (set_underlying_type): Remove parm name from
5955 declaration.
5956
1baae426
RG
59572011-07-25 Romain Geissler <romain.geissler@gmail.com>
5958
5959 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 5960
fcb21722
JM
59612011-07-22 Jason Merrill <jason@redhat.com>
5962
76f86d00
JM
5963 PR c++/49793
5964 * c.opt (Wnarrowing): New.
5965
3a636414
JM
5966 PR c++/30112
5967 * c-common.h: Declare c_linkage_bindings.
5968 * c-pragma.c (handle_pragma_redefine_extname): Use it.
5969
fcb21722
JM
5970 PR c++/49813
5971 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
5972 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
5973 as flag_isoc99 for 'restrict'.
5974 (pp_c_specifier_qualifier_list): Likewise for _Complex.
5975
02614448
ILT
59762011-07-21 Ian Lance Taylor <iant@google.com>
5977
5978 PR middle-end/49705
5979 * c-common.c (c_disable_warnings): New static function.
5980 (c_enable_warnings): New static function.
5981 (c_fully_fold_internal): Change local unused_p to bool. Call
5982 c_disable_warnings and c_enable_warnings rather than change
5983 c_inhibit_evaluation_warnings.
5984
34429675
JM
59852011-07-20 Jason Merrill <jason@redhat.com>
5986
5987 PR c++/6709 (DR 743)
5988 PR c++/42603 (DR 950)
5989 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
5990 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
5991 (CPP_DECLTYPE): New.
5992 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
5993
5d49b6a7
RG
59942011-07-19 Richard Guenther <rguenther@suse.de>
5995
5996 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
5997 * c-omp.c (c_finish_omp_for): Likewise.
5998
e84a58ff
EB
59992011-07-12 Eric Botcazou <ebotcazou@adacore.com>
6000
6001 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
6002 body on the next line.
6003
329af3c7
JM
60042011-07-08 Jason Merrill <jason@redhat.com>
6005
4063e61b
JM
6006 PR c++/45437
6007 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
6008
329af3c7
JM
6009 PR c++/49673
6010 * c-common.c (c_apply_type_quals_to_decl): Don't check
6011 TYPE_NEEDS_CONSTRUCTING.
6012
1a072294
RG
60132011-07-06 Richard Guenther <rguenther@suse.de>
6014
6015 * c-common.c (c_common_nodes_and_builtins):
6016 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
6017
fce5dddd
RG
60182011-07-05 Richard Guenther <rguenther@suse.de>
6019
6020 * c-common.c (c_common_nodes_and_builtins): Build all common
6021 tree nodes first.
6022
45d439ac
JJ
60232011-06-27 Jakub Jelinek <jakub@redhat.com>
6024
56300785
JJ
6025 * c-common.h (c_tree_chain_next): New static inline function.
6026
45d439ac
JJ
6027 * c-common.c (check_builtin_function_arguments): Handle
6028 BUILT_IN_ASSUME_ALIGNED.
6029
e0a8ecf2
AM
60302011-06-21 Andrew MacLeod <amacleod@redhat.com>
6031
6032 * c-common.c: Add sync_ or SYNC__ to builtin names.
6033 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
6034
60352011-06-20 Pierre Vittet <piervit@pvittet.com>
6036
6037 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
6038 handler.
6039 (gen_pragma_handler): New union.
6040 (internal_pragma_handler): New type.
6041 (c_register_pragma_with_data)
6042 (c_register_pragma_with_expansion_and_data): New functions.
6043
6044 * c-pragma.c (registered_pragmas, c_register_pragma_1)
6045 (c_register_pragma, c_register_pragma_with_expansion)
6046 (c_invoke_pragma_handler): Changed to work with
6047 internal_pragma_handler.
6048 (c_register_pragma_with_data)
6049 (c_register_pragma_with_expansion_and_data): New functions.
6050
677f3fa8
JM
60512011-06-14 Joseph Myers <joseph@codesourcery.com>
6052
6053 * c-common.c: Include common/common-target.h.
6054 (handle_section_attribute): Use
6055 targetm_common.have_named_sections.
6056 * c-cppbuiltin.c: Include common/common-target.h.
6057 (c_cpp_builtins): Use targetm_common.except_unwind_info.
6058
d7fc8c14
RG
60592011-06-10 Richard Guenther <rguenther@suse.de>
6060
6061 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
6062 to print a IDENTIFIER_NODE.
6063
10e48e39
RO
60642011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6065 Joseph Myers <joseph@codesourcery.com>
6066
6067 * c.opt (fbuilding-libgcc): New option.
6068 * c-cppbuiltin.c (c_cpp_builtins): Define
6069 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
6070
6976ae51
JM
60712011-06-07 Jason Merrill <jason@redhat.com>
6072
3ff60975
JM
6073 * c-common.c (max_tinst_depth): Lower default to 900.
6074
6976ae51
JM
6075 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
6076
009db074
RG
60772011-06-07 Richard Guenther <rguenther@suse.de>
6078
6079 * c-common.c (c_common_nodes_and_builtins): Do not set
6080 size_type_node or call set_sizetype.
6081
b4592b92
DS
60822011-06-07 Dodji Seketeli <dodji@redhat.com>
6083
6084 PR debug/49130
6085 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 6086 type when using pointer comparison to compare types.
b4592b92 6087
014ab419
JW
60882011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
6089
6090 * c.opt: Add -Wdelete-non-virtual-dtor.
6091 * c-opts.c (c_common_handle_option): Include it in -Wall.
6092
4f60111f
NF
60932011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
6094
6095 PR bootstrap/49190
6096
6097 Revert:
6098 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
6099
6100 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
6101 not tree_common.
6102
4cc4f2f4
JJ
61032011-05-27 Jakub Jelinek <jakub@redhat.com>
6104
6105 PR c++/49165
6106 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
6107 C++ don't call c_common_truthvalue_conversion on void type arms.
6108
38e01f9e
NF
61092011-05-27 Nathan Froyd <froydnj@codesourcery.com>
6110
6111 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
6112 (stmt_list_stack): Define.
6113 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
6114 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
6115
92e948a8
NF
61162011-05-26 Nathan Froyd <froydnj@codesourcery.com>
6117
6118 * c-common.c (warning_candidate_p): Check for BLOCKs.
6119
a2fc3e63
NF
61202011-05-26 Nathan Froyd <froydnj@codesourcery.com>
6121
6122 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
6123 not tree_common.
6124
0957c029
JJ
61252011-05-25 Jakub Jelinek <jakub@redhat.com>
6126
6127 * c-common.c (def_fn_type): Remove extra va_end.
6128
828fb3ba
JM
61292011-05-23 Jason Merrill <jason@redhat.com>
6130
6131 PR c++/48106
6132 * c-common.c (c_common_get_narrower): New.
6133 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
6134
dde05067
NF
61352011-05-23 Nathan Froyd <froydnj@codesourcery.com>
6136
6137 * c-common.h (check_function_arguments): Tweak prototype of
6138 check_function_arguments.
6139 * c-common.c (check_function_arguments): Likewise. Adjust
6140 calls to check_function_nonnull, check_function_format, and
6141 check_function_sentinel.
6142 (check_function_sentinel): Take a FUNCTION_TYPE rather than
6143 separate attributes and typelist arguments. Use
6144 FOREACH_FUNCTION_ARGS to iterate over argument types.
6145
3c0d13bf
PC
61462011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
6147
6148 * c-common.c (c_common_reswords): Reorder.
6149 * c-common.h (rid): Likewise.
6150
8242dd04
NF
61512011-05-10 Nathan Froyd <froydnj@codesourcery.com>
6152
6153 * c-common.c (def_fn_type): Don't call build_function_type, call
6154 build_function_type_array or build_varargs_function_type_array
6155 instead.
6156 (c_common_nodes_and_builtins): Likewise.
6157
3d528853
NF
61582011-05-05 Nathan Froyd <froydnj@codesourcery.com>
6159
6160 * c-common.c (c_add_case_label): Omit the loc argument to
6161 build_case_label.
6162 * c-common.h (build_case_label): Remove.
6163 * c-semantics.c (build_case_label): Remove.
6164
a04a722b
JM
61652011-05-05 Joseph Myers <joseph@codesourcery.com>
6166
6167 * c-objc.h (objc_start_method_definition): Update prototype.
6168 * stub-objc.c (objc_start_method_definition): Add extra parameter.
6169
e19a18d4
NF
61702011-05-04 Nathan Froyd <froydnj@codesourcery.com>
6171
6172 * c-common.c (check_main_parameter_types): Reindent. Don't use
6173 TYPE_ARG_TYPES directly.
6174 (handle_nonnull_attribute): Likewise.
6175 (sync_resolve_params): Likewise.
6176 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
6177 to check_format_string.
6178 (handle_format_attribute): Likewise.
6179 (check_format_string): Take a function type to examine instead of
6180 a type list. Use a function_arg_iterator to step through argument
6181 types.
6182
c62c040f
RG
61832011-05-04 Richard Guenther <rguenther@suse.de>
6184
6185 * c-common.c (fix_string_type): Use size_int for index type bounds.
6186 (start_fname_decls): Do not pass NULL to build_int_cst.
6187 (c_init_attributes): Likewise.
6188 * c-lex.c (c_lex_with_flags): Likewise.
6189
c12ff9d8
JM
61902011-04-27 Jason Merrill <jason@redhat.com>
6191
6192 * c-common.c (make_tree_vector_from_list): New.
6193 * c-common.h: Declare it.
6194
304dfbe3
RG
61952011-04-26 Richard Guenther <rguenther@suse.de>
6196
6197 PR preprocessor/48248
6198 * c-ppoutput.c (maybe_print_line): Always optimize newlines
6199 for output size with -P.
6200
3c0d13bf
PC
62012011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
6202
6203 * c-common.c (struct c_common_resword): Add __underlying_type.
6204 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
6205
04695783
JM
62062011-04-20 Jim Meyering <meyering@redhat.com>
6207
6208 * c-format.c (init_dollar_format_checking): Remove useless
6209 if-before-free.
6210
0dc33c3c
NP
62112011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
6212
6213 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 6214 (objc_detect_field_duplicates): New.
0dc33c3c 6215 * stub-objc.c: Likewise.
3c0d13bf 6216
c59633d9
NP
62172011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6218
6219 * stub-objc.c (objc_declare_protocols): Renamed to
6220 objc_declare_protocol.
6221 * c-objc.h: Likewise.
3c0d13bf 6222
32dabdaf
NP
62232011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6224
6225 * stub-objc.c (objc_declare_class): Updated argument name.
6226
81f653d6
NF
62272011-04-12 Nathan Froyd <froydnj@codesourcery.com>
6228
6229 * c-common.h (c_common_init_ts): Declare.
6230 * c-common.c (c_common_init_ts): Define.
6231
eb345401
NP
62322011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6233
6234 * c-objc.h (objc_build_message_expr): Updated prototype.
6235 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 6236
a358e188
MJ
62372011-04-12 Martin Jambor <mjambor@suse.cz>
6238
6239 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
6240 of cgraph_node.
6241
e6313a78
RG
62422011-04-11 Richard Guenther <rguenther@suse.de>
6243
6244 * c-common.c (complete_array_type): Build a range type of
6245 proper type.
6246
dcf0c47e
NF
62472011-04-08 Nathan Froyd <froydnj@codesourcery.com>
6248
6249 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
6250 (handle_type_generic_attribute): Likewise.
6251
1ee44b26
JM
62522011-04-07 Jason Merrill <jason@redhat.com>
6253
6254 PR c++/48450
6255 * c-common.c (c_common_truthvalue_conversion): Don't ignore
6256 conversion from C++0x scoped enum.
6257
acce4e77
JM
62582011-04-06 Joseph Myers <joseph@codesourcery.com>
6259
6260 * c-target-def.h: New file.
6261 * c-target.def: New file.
6262 * c-target.h: New file.
6263 * c-common.c (targetcm): Don't define here.
6264 * c-common.h (default_handle_c_option): Declare.
6265 * c-format.c: Include c-target.h instead of target.h.
6266 * c-opts.c: Include c-target.h instead of target.h. Explicitly
6267 include tm.h.
6268 (default_handle_c_option): Move from targhooks.c.
6269
e2eefb55
JJ
62702011-03-29 Jakub Jelinek <jakub@redhat.com>
6271
6272 PR preprocessor/48248
6273 * c-ppoutput.c (print): Add src_file field.
6274 (init_pp_output): Initialize it.
6275 (maybe_print_line): Don't optimize by adding up to 8 newlines
6276 if map->to_file and print.src_file are different file.
6277 (print_line): Update print.src_file.
6278
ba78087b
KT
62792011-03-25 Kai Tietz <ktietz@redhat.com>
6280
6281 * c-ada-spec.c (compare_comment): Use filename_cmp
6282 instead of strcmp for filename.
6283
0edf1bb2
JL
62842011-03-25 Jeff Law <law@redhat.com>
6285
adfac8df 6286 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 6287
c7dc8804
JM
62882011-03-25 Jason Merrill <jason@redhat.com>
6289
6290 * c.opt: Add -std=c++03.
6291
d1d879b1
EB
62922011-03-22 Eric Botcazou <ebotcazou@adacore.com>
6293
6294 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
6295
3f8257db 62962011-03-17 Kai Tietz <ktietz@redhat.com>
62d784f7
KT
6297
6298 PR target/12171
5050afdf
KT
6299 * c-pretty-print.c (pp_c_specifier_qualifier_list):
6300 Display allowed attributes for function pointer types.
6301 (pp_c_attributes_display): New function to display
6302 attributes having affects_type_identity flag set to true.
6303 * c-pretty-print.h (pp_c_attributes_display): New prototype.
6304
62d784f7
KT
6305 * c-common.c (c_common_attribute_table):
6306 Add new element.
6307 (c_common_format_attribute_table): Likewise.
6308
82d37118
JM
63092011-03-18 Jason Merrill <jason@redhat.com>
6310
49a000c3
JM
6311 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
6312 * c-common.h: Don't declare it here.
6313 * c-common.c: Or define it here.
6314 * c-opts.c (c_common_handle_option): Or set it here.
6315
82d37118
JM
6316 PR c++/35315
6317 * c-common.c (handle_transparent_union_attribute): Don't
6318 make a duplicate type in C++.
6319
17bc631c
JM
63202011-03-15 Jason Merrill <jason@redhat.com>
6321
6322 * c-common.c (max_constexpr_depth): New.
6323 * c-common.h: Declare it.
6324 * c-opts.c (c_common_handle_option): Set it.
6325 * c.opt (fconstexpr-depth): New option.
6326
1b9b91a6
JM
63272011-03-11 Jason Merrill <jason@redhat.com>
6328
f231b5ff
JM
6329 * c-common.c (attribute_takes_identifier_p): Add missing const.
6330
1b9b91a6
JM
6331 PR c++/46803
6332 * c-common.c (attribute_takes_identifier_p): Assume that an
6333 unknown attribute takes an identifier.
6334
a19e4d44
NF
63352011-03-07 Nathan Froyd <froydnj@codesourcery.com>
6336
6337 PR c/47786
6338 * c-common.c (c_type_hash): Call list_length instead of iterating
6339 through DECL_CHAIN. Rename 'i' to 'n_elements'.
6340
982d62f6
JJ
63412011-02-19 Jakub Jelinek <jakub@redhat.com>
6342
6343 PR c/47809
6344 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
6345
0a256240
NP
63462011-02-17 Iain Sandoe <iains@gcc.gnu.org>
6347
6348 * c.opt (fobjc-abi-version=) New.
6349 (fobjc-nilcheck): New.
6350
ba9e6dd5
NF
63512011-02-03 Nathan Froyd <froydnj@codesourcery.com>
6352
6353 PR c++/46890
6354 * c-common.h (keyword_is_decl_specifier): Declare.
6355 * c-common.c (keyword_is_decl_specifier): Define.
6356 (keyword_is_function_specifier): New function.
6357
7273813a
JJ
63582011-01-26 Jakub Jelinek <jakub@redhat.com>
6359
6360 PR c/47473
6361 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
6362 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
6363 REAL_TYPE.
6364
908ef79b
AC
63652011-01-26 Arnaud Charlet <charlet@adacore.com>
6366
6367 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
6368
237e9384
JJ
63692011-01-26 Jakub Jelinek <jakub@redhat.com>
6370
6371 PR pch/47430
6372 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
6373 after init_c_lex if pch_file is set.
6374
47ea1edf
DK
63752011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
6376
d4dba752 6377 PR c++/43601
47ea1edf
DK
6378 * c.opt (-fkeep-inline-dllexport): New switch.
6379
2aa9c6ae
RG
63802011-01-12 Richard Guenther <rguenther@suse.de>
6381
6382 PR middle-end/32511
6383 * c-common.c (handle_weak_attribute): Warn instead of error
6384 on declaring an inline function weak.
6385
7bd11157
TT
63862011-01-05 Tom Tromey <tromey@redhat.com>
6387
6388 * c-common.h (lvalue_error): Update.
6389 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
6390 not error.
6391
0e66e494 63922010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 6393
b4f588c4
NP
6394 PR objc/47075
6395 * c-objc.h (objc_finish_message_expr): Added argument to
6396 prototype.
6397
f4da8dce
NF
63982010-12-22 Nathan Froyd <froydnj@codesourcery.com>
6399
6400 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
6401 Use prototype_p.
6402
46270f14
NP
64032010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
6404
6405 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 6406 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 6407
4816c593
NF
64082010-12-10 Nathan Froyd <froydnj@codesourcery.com>
6409
6410 * c-common.h (readonly_error): Declare.
6411 * c-common.c (readonly_error): Define.
6412
7a6daeb0
NF
64132010-12-09 Nathan Froyd <froydnj@codesourcery.com>
6414
6415 * c-common.h (invalid_indirection_error): Declare.
6416 * c-common.c (invalid_indirection_error): Define.
6417
892f6119
RG
64182010-12-03 Richard Guenther <rguenther@suse.de>
6419
6420 PR c/46745
6421 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
6422 (pp_c_unary_expression): Likewise.
6423 (pp_c_expression): Likewise.
6424
6c39e757
NP
64252010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
6426
6427 * c-common.h (objc_finish_function): New.
6428 (objc_non_volatilized_type): Removed.
6429 (objc_type_quals_match): Removed.
6430 * stub-objc.c (objc_finish_function): New.
6431 (objc_non_volatilized_type): Removed.
6432 (objc_type_quals_match): Removed.
9faeb493 6433
7c475d11
JM
64342010-11-30 Joseph Myers <joseph@codesourcery.com>
6435
6436 * c-common.h (parse_optimize_options): Declare.
6437 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
6438 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
6439
71f3e391
JM
64402010-11-29 Joseph Myers <joseph@codesourcery.com>
6441
6442 * c-opts.c (check_deps_environment_vars): Use getenv instead of
6443 GET_ENVIRONMENT.
6444 * c-pch.c (O_BINARY): Don't define here.
6445 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
6446
d5fabb58
JM
64472010-11-25 Joseph Myers <joseph@codesourcery.com>
6448
6449 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
6450 targetm.except_unwind_info.
6451
299404a1
JM
64522010-11-23 Joseph Myers <joseph@codesourcery.com>
6453
6454 * c-opts.c (c_common_handle_option): Pass location to
6455 set_struct_debug_option.
6456
c98cd5bf
JM
64572010-11-23 Joseph Myers <joseph@codesourcery.com>
6458
6459 * c-common.c (visibility_options): Move from ../opts.c.
6460 * c-common.h (struct visibility_flags, visibility_options):
6461 Declare here.
6462 * c-opts.c (finish_options): Rename to c_finish_options.
6463 (c_common_init): Update call to finish_options.
6464
a9546771
NP
64652010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
6466
6467 PR objc/34033
6468 * c-lex.c (lex_string): Check that each string in an Objective-C
6469 string concat sequence starts with either one or zero '@', and
6470 that there are no spurious '@' signs at the end.
6471
24a57808
JM
64722010-11-20 Joseph Myers <joseph@codesourcery.com>
6473
6474 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
6475 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
6476 HANDLE_PRAGMA_VISIBILITY.
6477 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
6478 HANDLE_PRAGMA_VISIBILITY): Don't define.
6479 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
6480
a9aa2c3a
NF
64812010-11-20 Nathan Froyd <froydnj@codesourcery.com>
6482
6483 PR c++/16189
6484 PR c++/36888
6485 PR c++/45331
6486 * c-common.h (keyword_begins_type_specifier): Declare.
6487 (keyword_is_storage_class_specifier): Declare.
6488 (keyword_is_type_qualifier): Declare.
6489 * c-common.c (keyword_begins_type_specifier): New function.
6490 (keyword_is_storage_class_specifier): New function.
6491 (keyword_is_type_qualifier): Declare.
6492
5386338c
JM
64932010-11-19 Joseph Myers <joseph@codesourcery.com>
6494
6495 PR c/46547
6496 * c-common.c (in_late_binary_op): Define.
6497 (c_common_truthvalue_conversion): Check in_late_binary_op before
6498 calling c_save_expr.
6499 * c-common.h (in_late_binary_op): Declare.
6500
69ccdddb
JM
65012010-11-19 Joseph Myers <joseph@codesourcery.com>
6502
6503 * c-opts.c (c_common_handle_option): Update calls to
6504 set_struct_debug_option.
6505
6b192a09
NP
65062010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
6507
6508 * c-common.h (objc_declare_protocols): Added additional argument.
6509 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 6510
fb52b50a
NF
65112010-11-18 Nathan Froyd <froydnj@codesourcery.com>
6512
6513 PR c/33193
6514 * c-common.h (build_real_imag_expr): Declare.
6515 * c-semantics.c (build_real_imag_expr): Define.
6516
b37421c6
JM
65172010-11-17 Joseph Myers <joseph@codesourcery.com>
6518
6519 * c-opts.c (c_common_parse_file): Take no arguments.
6520 * c-common.h (c_common_parse_file): Update prototype.
6521
07078664
JJ
65222010-11-16 Jakub Jelinek <jakub@redhat.com>
6523
6524 PR c++/46401
6525 * c-common.c (warning_candidate_p): Don't track non-const calls
6526 or STRING_CSTs.
6527
c6a13190
ILT
65282010-11-15 Ian Lance Taylor <iant@google.com>
6529
6530 * c-lex.c (init_c_lex): Set macro debug callbacks if
6531 flag_dump_go_spec is set.
6532
925e8657
NP
65332010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
6534
6535 * c-common.h (objc_build_incr_expr_for_property_ref): New.
6536 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
6537
bb0a9581
NF
65382010-11-15 Nathan Froyd <froydnj@codesourcery.com>
6539
6540 PR preprocessor/45038
6541 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
6542 dialects.
6543
c5fa0890
JM
65442010-11-12 Joseph Myers <joseph@codesourcery.com>
6545
6546 * c-common.h (c_family_lang_mask): Declare.
6547 * c-opts.c (c_family_lang_mask): Make extern.
6548 * c-pragma.c (handle_pragma_diagnostic): Use
6549 control_warning_option.
6550
a4d8c676
JM
65512010-11-12 Joseph Myers <joseph@codesourcery.com>
6552
6553 * c-common.c (parse_optimize_options): Update call to
6554 decode_options.
6555 * c-common.h (c_common_handle_option): Update prototype.
6556 * c-opts.c (c_common_handle_option): Take location_t parameter and
6557 pass it to other functions.
6558
f954bd2c
JM
65592010-11-11 Joseph Myers <joseph@codesourcery.com>
6560
6561 * c-opts.c (warning_as_error_callback): Remove.
6562 (c_common_initialize_diagnostics): Don't call
6563 register_warning_as_error_callback.
6564 (c_common_handle_option): Handle -Werror=normalized= here.
6565
d8a07487
JM
65662010-11-10 Joseph Myers <joseph@codesourcery.com>
6567
6568 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
6569 in diagnostic.
6570 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
6571 letter.
6572 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
6573 Remove trailing '.' from diagnostics.
6574 * c.opt (Wwrite-strings_: Avoid '`' in help text.
6575
d5478783
JM
65762010-11-10 Joseph Myers <joseph@codesourcery.com>
6577
6578 * c-common.c (parse_optimize_options): Pass global_dc to
6579 decode_options.
6580 * c-opts.c (c_common_handle_option): Pass &global_options to
6581 set_Wstrict_aliasing.
6582 * c.opt (v): Don't mark Common or document here.
6583
91ebb981
IS
65842010-11-06 Iain Sandoe <iains@gcc.gnu.org>
6585
6586 PR target/44981
6587 * c-format.c (format_type): New type gcc_objc_string_format_type.
6588 (valid_stringptr_type_p): New.
6589 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 6590 (check_format_string): Pass expected type, use
91ebb981
IS
6591 valid_stringptr_type_p (), check that the format string types are
6592 consistent with the format specification.
6593 (decode_format_attr): Warn if NSString is used outside objective-c.
6594 (format_types_orig): Add NSString.
6595 (format_name): New.
6596 (format_flags): New.
6597 (check_format_arg): Handle format strings requiring an external parser.
6598 first_target_format_type: New variable.
6599 (handle_format_attribute): Set up first_target_format_type, pass the
6600 expected format arg string type to check_format_string().
6601 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
6602 * stub-objc.c (objc_string_ref_type_p): New.
6603 (objc_check_format_arg): New.
6604
bede2adc
NP
66052010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
6606
9faeb493 6607 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
6608 * c-common.h (objc_build_class_component_ref): New.
6609 * stub-objc.c (objc_build_class_component_ref): New.
6610
9a179d01
NP
66112010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
6612
6613 * c.opt (Wproperty-assign-default): New option.
6614
22d8d616
NP
66152010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
6616
6617 Implemented -fobjc-std=objc1 flag.
6618 * c.opt (fobjc-std=objc1): New option.
6619
2debdb4f
NP
66202010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
6621
6622 Implemented format and noreturn attributes for Objective-C methods.
6623 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
6624 attribute for Objective-C methods.
6625
ec52b111
JM
66262010-10-31 Jason Merrill <jason@redhat.com>
6627
6628 * c-common.c (conversion_warning, warn_for_collisions_1): Use
6629 EXPR_LOC_OR_HERE.
6630
46a88c12
NP
66312010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
6632
6633 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
6634 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
6635 (objc_add_property_declaration): Removed arguments for copies and
6636 ivar.
6637 (objc_build_getter_call): Renamed to
6638 objc_maybe_build_component_ref.
6639 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
6640 (objc_is_property_ref): New.
6641 * c-common.c (c_common_reswords): Removed copies and ivar.
6642 * stub-objc.c (objc_add_property_declaration): Removed arguments
6643 for copies and ivar.
6644 (objc_build_getter_call): Renamed to
6645 objc_maybe_build_component_ref.
6646 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
6647 (objc_is_property_ref): New.
9faeb493 6648
1e4bf85b
AC
66492010-10-29 Arnaud Charlet <charlet@adacore.com>
6650 Matthew Gingell <gingell@adacore.com>
6651
6652 * c-ada-spec.c (separate_class_package): New function.
6653 (pp_ada_tree_identifier): Prefix references to C++ classes with the
6654 name of their enclosing package.
6655 (print_ada_declaration): Use separate_class_package.
6656
81f0bab2
JM
66572010-10-27 Jason Merrill <jason@redhat.com>
6658
2b08f2c5
JM
6659 * c-common.c (c_common_reswords): Add __is_literal_type.
6660 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
6661
81f0bab2
JM
6662 * c-common.c (check_case_value): Remove special C++ code.
6663
200290f2
NP
66642010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
6665
6666 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
6667 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
6668 and RID_LAST_PATTR.
6669 (objc_add_property_declaration): Added additional arguments.
6670 (objc_property_attribute_kind): Removed.
6671 (objc_set_property_attr): Removed.
6672 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
6673 copy and nonatomic.
6674 * stub-objc.c (objc_add_property_declaration): Added additional
6675 arguments.
6676 (objc_set_property_attr): Removed.
9faeb493 6677
f614132b
NP
66782010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
6679
6680 * c-common.h (objc_add_property_variable): Renamed to
6681 objc_add_property_declaration. Added location argument.
6682 * stub-objc.c (objc_add_property_variable): Same change.
b1726d6c 6683
b8a18805
NP
66842010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
6685
6686 * c-common.h (objc_maybe_printable_name): New.
6687 * stub-objc.c (objc_maybe_printable_name): New.
6688
3f8257db
JJ
66892010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
6690 Andrew Pinski <pinskia@gmail.com>
30cd1c5d
AS
6691
6692 * c-common.h (c_common_mark_addressable_vec): Declare.
6693 * c-common.c (c_common_mark_addressable_vec): New function.
6694
249a82c4
NP
66952010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
6696
6697 * c-common.h (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 * stub-objc.c (objc_set_method_type): Removed.
6702 (objc_add_method_declaration): Added boolean argument.
6703 (objc_start_method_definition): Same change.
6704 (objc_build_method_signature): Same change.
6705
977e30bc
NP
67062010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
6707
6708 * c-common.h (finish_file): Removed.
6709 (objc_write_global_declarations): New.
6710 * c-opts.c (c_common_parse_file): Do not call finish_file.
6711 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 6712
da57d1b9
NP
67132010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
6714
6715 Implemented parsing @synthesize and @dynamic for
6716 Objective-C/Objective-C++.
6717 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
6718 (objc_add_synthesize_declaration): New.
6719 (objc_add_dynamic_declaration): New.
6720 * c-common.c (c_common_reswords): Add synthesize and dynamic.
6721 * stub-objc.c (objc_add_synthesize_declaration): New.
6722 (objc_add_dynamic_declaration): New.
9faeb493 6723
0069111f
MM
67242010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
6725
6726 PR target/46041
6727 * c-cppbuiltin.c (mode_has_fma): Move function here from
6728 builtins.c. Don't use the fma optab, instead just use the
6729 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
6730 using -save-temps.
6731
e426b47b
NP
67322010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
6733
6734 Merge from 'apple/trunk' branch on FSF servers.
0069111f 6735
3f8257db 6736 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
e426b47b 6737
9faeb493 6738 Radar 4330422
e426b47b
NP
6739 * c-common.h (objc_non_volatilized_type): New declaration
6740 * stub-objc.c (objc_non_volatilized_type): New stub.
6741
90fbfdc3
NP
67422010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
6743
e426b47b 6744 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3 6745
3f8257db 6746 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
90fbfdc3 6747
9faeb493 6748 Radar 4133425
90fbfdc3 6749 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 6750 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 6751
c37d8c30
IS
67522010-10-17 Iain Sandoe <iains@gcc.gnu.org>
6753
6754 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
6755 * c-common.h (enum rid): Add RID_AT_PACKAGE.
6756 (objc_ivar_visibility_kind): New enum.
6757 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 6758 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
6759 visibility enum.
6760
1b1562a5
MM
67612010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
6762
6763 * c-cppbuiltin.c (builtin_define_float_constants): Emit
6764 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
6765 has the appropriate fma builtins.
6766 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
6767
668ea4b1
IS
67682010-10-14 Iain Sandoe <iains@gcc.gnu.org>
6769
1b1562a5 6770 merge from FSF apple 'trunk' branch.
3f8257db 6771 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 6772
668ea4b1
IS
6773 Radars 4436866, 4505126, 4506903, 4517826
6774 * c-common.c (c_common_resword): Define @property and its attributes.
6775 * c-common.h: Define property attribute enum entries.
6776 (OBJC_IS_PATTR_KEYWORD): New.
6777 (objc_property_attribute_kind): New enum.
6778 Declare objc_set_property_attr (), objc_add_property_variable (),
6779 objc_build_getter_call () and objc_build_setter_call ().
6780 * stub-objc.c (objc_set_property_attr): New stub.
6781 (objc_add_property_variable): Likewise.
6782 (objc_build_getter_call): Likewise.
6783 (objc_build_setter_call) Likewise.
1b1562a5 6784
a1178b30
IS
67852010-10-13 Iain Sandoe <iains@gcc.gnu.org>
6786
1b1562a5 6787 merge from FSF apple 'trunk' branch.
3f8257db 6788 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
a1178b30
IS
6789
6790 Radar 3803157 (method attributes)
6791 * c-common.c (handle_deprecated_attribute): Recognize
6792 objc methods as valid declarations.
6793 * c-common.h: Declare objc_method_decl ().
1b1562a5 6794 * stub-objc.c (objc_method_decl): New stub.
a1178b30 6795
a75bfaa6
JM
67962010-10-08 Joseph Myers <joseph@codesourcery.com>
6797
6798 * c-common.c (parse_optimize_options): Call
6799 decode_cmdline_options_to_array_default_mask before
6800 decode_options. Update arguments to decode_options.
6801 * c-common.h (c_common_init_options_struct): Declare.
6802 * c-opts.c (c_common_init_options_struct): New. Split out from
6803 c_common_init_options.
6804
f05b9d93
NP
68052010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
6806
6807 Implemented fast enumeration for Objective-C.
6808 * c-common.h (objc_finish_foreach_loop): New.
6809 * stub-objc.c (objc_finish_foreach_loop): New.
6810
1ebe4b4f
JM
68112010-10-05 Joseph Myers <joseph@codesourcery.com>
6812
6813 * c-common.h (struct diagnostic_context): Don't declare here.
6814 (c_common_initialize_diagnostics): Declare using
6815 diagnostic_context typedef.
6816 * c-opts.c (c_common_handle_option): Pass global_dc to
6817 handle_generated_option.
6818
d4d24ba4
JM
68192010-10-04 Joseph Myers <joseph@codesourcery.com>
6820
6821 * c-opts.c (c_common_handle_option): Pass &global_options_set to
6822 handle_generated_option.
6823
478a1c5b
ILT
68242010-10-03 Ian Lance Taylor <iant@google.com>
6825
6826 * c.opt (-fplan9-extensions): New option.
6827
82a1c2fe
FXC
68282010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6829
6830 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
6831 Remove.
6832 (c_cpp_builtins): Call functions from cppbuiltin.c instead
6833 of duplicating code.
6834
92902b1b
IS
68352010-09-30 Iain Sandoe <iains@gcc.gnu.org>
6836
6837 * c-common.c: Add two new entries for @optional
6838 and @required keywords.
6839
6840 merge from FSF 'apple/trunk' branch.
3f8257db 6841 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
92902b1b
IS
6842
6843 Radar 4386773
6844 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
6845 objective-c keywords.
6846 (objc_set_method_opt): New declaration.
6847 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 6848
46625112
JM
68492010-09-30 Joseph Myers <joseph@codesourcery.com>
6850
6851 * c-common.c (handle_optimize_attribute): Pass &global_options to
6852 cl_optimization_save and cl_optimization_restore.
6853 * c-opts.c (c_common_handle_option): Pass &global_options to
6854 handle_generated_option.
6855 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
6856 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
6857 &global_options to cl_optimization_restore.
6858
49b91f05
NP
68592010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
6860
6861 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
6862 Objective-C/Objective-C++ keywords.
6863
13ed556f 68642010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 6865
9faeb493
UB
6866 Merge from 'apple/trunk' branch on FSF servers.
6867
3f8257db 6868 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
a6341d57
NP
6869
6870 Radar 4281748
6871 * c-common.h (objc_check_global_decl): New declaration.
6872 * stub-objc.c (objc_check_global_decl): New stub.
6873
f0036cca
JM
68742010-09-29 Joseph Myers <joseph@codesourcery.com>
6875
6876 * c.opt: Don't use VarExists.
6877
e3339d0f
JM
68782010-09-29 Joseph Myers <joseph@codesourcery.com>
6879
6880 * c-common.c (c_cpp_error): Update names of diagnostic_context
6881 members.
6882 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
6883 cl_optimization members.
6884 * c-opts.c (warning_as_error_callback, c_common_handle_option,
6885 sanitize_cpp_opts, finish_options): Update names of cpp_options
6886 members.
6887
1973201f
NP
68882010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
6889
6890 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
6891 (objc_is_reserved_word): Removed.
6892 * c-common.c: Updated comments.
6893 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
6894 objc_is_reserved_word.
6895 * stub-objc.c (objc_is_reserved_word): Removed.
6896
f7e71da5
IS
68972010-09-28 Iain Sandoe <iains@gcc.gnu.org>
6898
9faeb493 6899 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
6900 include attributes.
6901 (objc_start_method_definition): Likewise.
6902 (objc_build_keyword_decl): Likewise.
6903 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
6904 (objc_start_method_definition): Likewise.
6905 (objc_build_keyword_decl): Likewise.
6906
c165dca7
IS
69072010-09-28 Iain Sandoe <iains@gcc.gnu.org>
6908
6909 * c-common.h (objc_start_class_interface): Adjust prototype.
6910 (objc_start_category_interface): Likewise.
6911 (objc_start_protocol): Likewise.
6912 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
6913 (objc_start_class_interface): Likewise.
6914 (objc_start_category_interface): Likewise.
6915
7458026b
ILT
69162010-09-27 Ian Lance Taylor <iant@google.com>
6917
6918 * c-common.c (c_common_attribute_table): Add no_split_stack.
6919 (handle_no_split_stack_attribute): New static function.
6920
b581b85b
NP
69212010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
6922
9faeb493 6923 Merge from 'apple/trunk' branch on FSF servers.
b581b85b 6924
3f8257db 6925 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
b581b85b 6926
9faeb493 6927 Radar 4229905
b581b85b
NP
6928 * c-common.h (objc_have_common_type): New declaration.
6929 * stub-objc.c (objc_have_common_type): New stub.
6930
6931 2005-06-22 Ziemowit Laski <zlaski@apple.com>
6932
6933 Radar 4154928
6934 * c-common.h (objc_common_type): New prototype.
9faeb493 6935 * stub-objc.c (objc_common_type): New stub.
b581b85b 6936
46a4da10
JH
69372010-09-24 Jan Hubicka <jh@suse.cz>
6938
6939 * c-common.c (handle_leaf_attribute): New function.
6940 (struct attribute_spec c_common_att): Add leaf.
6941
e200444e
JM
69422010-09-22 Joseph Myers <joseph@codesourcery.com>
6943
6944 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
6945 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
6946 -dump, -dump=, -imacros, -imacros=, -include, -include=,
6947 -include-barrier, -include-directory, -include-directory=,
6948 -include-directory-after, -include-directory-after=,
6949 -include-prefix, -include-prefix=, -include-with-prefix,
6950 -include-with-prefix=, -include-with-prefix-after,
6951 -include-with-prefix-after=, -include-with-prefix-before,
6952 -include-with-prefix-before=, -no-integrated-cpp,
6953 -no-line-commands, -no-standard-includes, -no-warnings, -output,
6954 -output=, -pedantic, -pedantic-errors, -preprocess,
6955 -print-missing-file-dependencies, -trace-includes, -traditional,
6956 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
6957 -user-dependencies, -verbose, -write-dependencies,
6958 -write-user-dependencies, no-integrated-cpp, traditional): New.
6959
29a80ea6
NP
69602010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
6961
6962 PR objc/23710
ac1fc2fc
NP
6963 * c-common.h (objc_start_method_definition): Return bool instead
6964 of void.
6965 * stub-objc.c (objc_start_method_definition): Return bool instead
6966 of void.
6967
69682010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
6969
6970 PR objc/25965
6971 * c-common.h (objc_get_interface_ivars): New declaration.
6972 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 6973
de621752
ILT
69742010-09-15 Ian Lance Taylor <iant@google.com>
6975
6976 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 6977 messages. Remove period at end of warning message.
de621752 6978
ba885ec5
NS
69792010-09-09 Nathan Sidwell <nathan@codesourcery.com>
6980
6981 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
6982 (handle_alias_attribute): ... here.
6983 (handle_ifunc_attribute): New.
6984
c5ee1358
MM
69852010-09-06 Mark Mitchell <mark@codesourcery.com>
6986
6987 * c-common.h (do_warn_double_promotion): Declare.
6988 * c-common.c (do_warn_double_promotion): Define.
6989
0a0b3574
MM
69902010-09-05 Mark Mitchell <mark@codesourcery.com>
6991
6992 * c.opt (Wdouble-promotion): New.
6993
d1779886
JM
69942010-09-02 Joseph Myers <joseph@codesourcery.com>
6995
6996 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
6997 fvtable-thunks, fxref): Mark no longer supported in help text.
6998
2d2bd949
JM
69992010-09-02 Joseph Myers <joseph@codesourcery.com>
7000
7001 * c.opt (Wimport, fall-virtual, falt-external-templates,
7002 fdefault-inline, fenum-int-equiv, fexternal-templates,
7003 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
7004 fname-mangling-version-, fnew-abi, fnonnull-objects,
7005 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
7006 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
7007 applicable.
7008 (fhandle-exceptions): Mark with Alias and Warn.
7009 * c-opts.c (c_common_handle_option): Don't handle options marked
7010 as ignored.
7011
5de8299c
JM
70122010-09-02 Joseph Myers <joseph@codesourcery.com>
7013
7014 * c.opt (Wcomments, Werror-implicit-function-declaration,
7015 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
7016 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
7017 aliases.
7018 * c-common.c (option_codes): Use OPT_Wcomment instead of
7019 OPT_Wcomments.
7020 * c-opts.c (warning_as_error_callback, c_common_handle_option):
7021 Don't handle options marked as aliases.
7022
0ceb0201
RG
70232010-08-25 Richard Guenther <rguenther@suse.de>
7024
7025 * c-common.c (c_common_get_alias_set): Remove special
7026 handling for pointers.
7027
ac47786e
NF
70282010-08-20 Nathan Froyd <froydnj@codesourcery.com>
7029
7030 * c-common.c: Use FOR_EACH_VEC_ELT.
7031 * c-gimplify.c: Likewise.
7032 * c-pragma.c: Likewise.
7033
c878765b
JM
70342010-08-16 Joseph Myers <joseph@codesourcery.com>
7035
7036 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
7037 RejectDriver.
7038 (MMDX): Change back to MMD. Mark NoDriverArg instead of
7039 RejectDriver.
7040 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
7041 instead of OPT_MDX and OPT_MMDX.
7042
603349bf
JM
70432010-08-16 Joseph Myers <joseph@codesourcery.com>
7044
7045 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
7046
644fa7ac
JM
70472010-08-12 Joseph Myers <joseph@codesourcery.com>
7048
7049 * c.opt (MD, MMD): Change to MDX and MMDX.
7050 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
7051
481e1176
JM
70522010-08-11 Joseph Myers <joseph@codesourcery.com>
7053
7054 * c-opts.c (c_common_handle_option): Call handle_generated_option
7055 instead of handle_option.
7056
ac8dc9f7
NF
70572010-08-08 Nathan Froyd <froydnj@codesourcery.com>
7058
7059 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
7060 (maybe_apply_renaming_pragma): Delete unneeded declarations.
7061
4f8c876d
NF
70622010-08-08 Nathan Froyd <froydnj@codesourcery.com>
7063
7064 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
7065 (pending_redefine_extname): Change type to a VEC.
7066 (add_to_renaming_pragma_list): Update for new type of
7067 pending_redefine_extname.
ac8dc9f7 7068 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 7069
3b0c690e
AC
70702010-08-04 Arnaud Charlet <charlet@adacore.com>
7071
7072 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
7073 visited.
7074 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
7075 decide whether a type has already been declared/seen.
7076 Do not go to the original type.
7077 (dump_nested_types): New parameter forward.
7078 Generate forward declaration if needed and mark type as visited.
7079 (print_ada_declaration): Call dump_nested_types if not already done.
7080 Mark types as visited.
7081
1890bccc
JM
70822010-08-03 Joseph Myers <joseph@codesourcery.com>
7083
7084 * c.opt (-print-pch-checksum): Remove option.
7085 * c-opts.c (c_common_handle_option): Don't handle
7086 OPT_print_pch_checksum.
7087
5f20c657
JM
70882010-07-27 Joseph Myers <joseph@codesourcery.com>
7089
7090 * c-common.h (c_common_handle_option): Update prototype and return
7091 value type.
7092 * c-opts.c (c_common_handle_option): Update prototype and return
7093 value type. Update calls to handle_option and
7094 enable_warning_as_error.
7095
f551f80c
JJ
70962010-07-27 Jakub Jelinek <jakub@redhat.com>
7097
7098 PR c/45079
7099 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
7100
61ff2bdc
JM
71012010-07-27 Joseph Myers <joseph@codesourcery.com>
7102
7103 * c-common.h (c_common_missing_argument): Remove.
7104 * c-opts.c (c_common_missing_argument): Remove.
7105 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
7106 idirafter, imacros, include, isysroot, isystem, iquote): Add
7107 MissingArgError.
7108 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
7109
7a9bf9a4
JM
71102010-07-27 Joseph Myers <joseph@codesourcery.com>
7111
7112 * c-common.h (c_common_option_lang_mask,
7113 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
7114 New.
7115 (c_common_init_options): Update prototype.
7116 * c-opts.c (c_common_option_lang_mask): New.
7117 (c_common_initialize_diagnostics): Split out of
7118 c_common_init_options.
7119 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
7120 New.
7121 (c_common_init_options): Update prototype. Use decoded options in
7122 search for -lang-asm.
7123
910ad8de
NF
71242010-07-15 Nathan Froyd <froydnj@codesourcery.com>
7125
7126 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
7127 * c-format.c: Likewise.
7128
718f9c0f
MLI
71292010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
7130
7131 * c-common.h: Include diagnostic-core.h. Error if already
7132 included.
7133 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
7134
4d451982
MLI
71352010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
7136
adfac8df 7137 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
7138 Do not include expr.h
7139 (vector_mode_valid_p): Move here.
7140
119fe915
SB
71412010-06-21 DJ Delorie <dj@redhat.com>
7142
7143 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
7144 allow these pragmas anywhere.
7145
71462010-06-14 Jakub Jelinek <jakub@redhat.com>
7147
7148 PR bootstrap/44509
7149 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
7150 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
7151 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
7152 ggc_strdup instead of xstrdup.
7153
71542010-06-10 Jakub Jelinek <jakub@redhat.com>
7155
7156 * c-cppbuiltin.c: Include cpp-id-data.h.
7157 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
7158 (lazy_hex_fp_value): New function.
7159 (builtin_define_with_hex_fp_value): Provide definitions lazily.
7160
6662d794
MLI
71612010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
7162
7163 * c-gimplify.c: Do not include tree-flow.h
7164
38f8b050
JR
71652010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
7166
7167 PR other/44034
7168 * c-common.c: Rename targetm member:
7169 targetm.enum_va_list -> targetm.enum_va_list_p
7170
9589f23e
AS
71712010-06-28 Anatoly Sokolov <aesok@post.ru>
7172
7173 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
7174
3b06d379
SB
71752010-06-28 Steven Bosscher <steven@gcc.gnu.org>
7176
7177 * c-cppbuiltin.c: Do not include except.h.
7178
d166d4c3
AK
71792010-06-24 Andi Kleen <ak@linux.intel.com>
7180
9faeb493
UB
7181 * c-common.c (warn_for_omitted_condop): New.
7182 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 7183
70cb8be6
JM
71842010-06-21 Joseph Myers <joseph@codesourcery.com>
7185
7186 * c.opt (lang-objc): Remove.
7187 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
7188
a4c97feb
JR
71892010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
7190
7191 * c-opts.c: Include "tm_p.h".
7192
6e2f1956
JM
71932010-06-20 Joseph Myers <joseph@codesourcery.com>
7194
7195 * c-common.c (parse_optimize_options): Update call to
7196 decode_options.
7197
bc87224e
NF
71982010-06-18 Nathan Froyd <froydnj@codesourcery.com>
7199
7200 * c-common.c (record_types_used_by_current_var_decl): Adjust for
7201 new type of types_used_by_cur_var_decl.
7202
b49cf425
JR
72032010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
7204
7205 PR bootstrap/44512
7206 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
7207 for C++ standard compliance.
7208
59f9c2ed
JM
72092010-06-16 Jason Merrill <jason@redhat.com>
7210
7211 * c.opt: Add -Wnoexcept.
7212
33766b66
RG
72132010-06-16 Richard Guenther <rguenther@suse.de>
7214
7215 PR c/44555
7216 * c-common.c (c_common_truthvalue_conversion): Remove
7217 premature and wrong optimization concering ADDR_EXPRs.
7218
eff7e30c
AC
72192010-06-15 Arnaud Charlet <charlet@adacore.com>
7220
7221 * c-ada-spec.c (dump_sloc): Remove column info.
7222 (is_simple_enum): New function.
7223 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
7224 enum types when relevant.
7225
6312e84d
MLI
72262010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
7227
9faeb493 7228 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
7229 location.
7230
1cb42611
JM
72312010-06-10 Joseph Myers <joseph@codesourcery.com>
7232
7233 * c-opts.c (c_common_handle_option): Don't handle
7234 OPT_fshow_column.
7235
a9429e29
LB
72362010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7237
7238 * c-pragma.c (push_alignment): Use typed GC allocation.
7239 (handle_pragma_push_options): Likewise.
7240
7241 * c-common.c (parse_optimize_options): Likewise.
7242
7243 * c-common.h (struct sorted_fields_type): Add variable_size GTY
7244 option.
7245
5498f011
JM
72462010-06-07 Joseph Myers <joseph@codesourcery.com>
7247
7248 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
7249 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
7250 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
7251 flag_signed_bitfields, warn_strict_null_sentinel,
7252 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
7253 flag_gen_declaration, flag_no_gnu_keywords,
7254 flag_implement_inlines, flag_implicit_templates,
7255 flag_implicit_inline_templates, flag_optional_diags,
7256 flag_elide_constructors, flag_default_inline, flag_rtti,
7257 flag_conserve_space, flag_access_control, flag_check_new,
7258 flag_new_for_scope, flag_weak, flag_working_directory,
7259 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
7260 flag_enforce_eh_specs, flag_threadsafe_statics,
7261 flag_pretty_templates): Remove.
7262 * c-common.h (flag_preprocess_only, flag_nil_receivers,
7263 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
7264 flag_replace_objc_classes, flag_undef, flag_no_builtin,
7265 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
7266 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
7267 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
7268 flag_no_gnu_keywords, flag_implement_inlines,
7269 flag_implicit_templates, flag_implicit_inline_templates,
7270 flag_optional_diags, flag_elide_constructors, flag_default_inline,
7271 flag_rtti, flag_conserve_space, flag_access_control,
7272 flag_check_new, flag_new_for_scope, flag_weak,
7273 flag_working_directory, flag_use_cxa_atexit,
7274 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
7275 flag_threadsafe_statics, flag_pretty_templates,
7276 warn_strict_null_sentinel): Remove.
7277 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
7278 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
7279 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
7280 fimplicit-inline-templates, fimplicit-templates,
7281 flax-vector-conversions, fms-extensions, fnil-receivers,
7282 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
7283 frtti, fshort-double, fshort-enums, fshort-wchar,
7284 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
7285 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
7286 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
7287 gen-decls, undef): Use Var.
7288 (fdefault-inline, foptional-diags): Document as doing nothing.
7289 * c-opts.c (c_common_handle_option): Remove cases for options now
7290 using Var. Mark ignored options as such.
7291
39dabefd
SB
72922010-06-05 Steven Bosscher <steven@gcc.gnu.org>
7293
9faeb493 7294 * c-common.c: Moved to here from parent directory.
39dabefd
SB
7295 * c-common.def: Likewise.
7296 * c-common.h: Likewise.
7297 * c-cppbuiltin.c: Likewise.
7298 * c-dump.c: Likewise.
7299 * c-format.c: Likewise.
7300 * c-format.h : Likewise.
7301 * c-gimplify.c: Likewise.
7302 * c-lex.c: Likewise.
7303 * c-omp.c: Likewise.
7304 * c.opt: Likewise.
7305 * c-opts.c: Likewise.
7306 * c-pch.c: Likewise.
7307 * c-ppoutput.c: Likewise.
7308 * c-pragma.c: Likewise.
7309 * c-pragma.h: Likewise.
7310 * c-pretty-print.c: Likewise.
7311 * c-pretty-print.h: Likewise.
7312 * c-semantics.c: Likewise.
7313 * stub-objc.c: Likewise.
7314
7315 * c-common.c: Include gt-c-family-c-common.h.
7316 * c-pragma.c: Include gt-c-family-c-pragma.h.
7317\f
818ab71a 7318Copyright (C) 2010-2016 Free Software Foundation, Inc.
39dabefd
SB
7319
7320Copying and distribution of this file, with or without modification,
7321are permitted in any medium without royalty provided the copyright
7322notice and this notice are preserved.
This page took 2.419352 seconds and 5 git commands to generate.