]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
Implement P0136R1, Rewording inheriting constructors.
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
31f7f784
JM
12016-11-01 Jason Merrill <jason@redhat.com>
2
3 * c.opt (-fnew-inheriting-ctors): New.
4 * c-opts.c: Default to on for ABI 11+.
5
dcb466ec
JJ
62016-10-31 Jakub Jelinek <jakub@redhat.com>
7
8 PR c++/77948
9 * c.opt (fext-numeric-literals): Add Var and Init.
10 * c-opts.c (c_common_handle_option): Don't clear
11 cpp_opts->ext_numeric_literals for -std=c++{11,14,1z}.
12 (c_common_post_options): Clear it here if not set
13 explicitly.
14
52e1b91e
AH
152016-10-28 Aldy Hernandez <aldyh@redhat.com>
16
17 PR debug/77773
18 * c-pretty-print.c (simple_type_specifier): Do not dereference `t'
19 if NULL.
20
e16f1cc7
JJ
212016-10-25 Jakub Jelinek <jakub@redhat.com>
22
23 * c-common.h (enum rid): Add RID_BUILTIN_LAUNDER.
24 * c-common.c (c_common_reswords): Add __builtin_launder.
25
f8348061
BE
262016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
27
28 * c-common.c (c_common_truthvalue_conversion): Warn for
29 multiplications in boolean context. Fix the quoting of '<<' and '<'
30 in the shift warning.
31
eff89e01
BE
322016-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
33
34 * c-common.c (c_common_truthvalue_conversion): Fix the comment.
35
24bc7bf4
JM
362016-10-20 Jason Merrill <jason@redhat.com>
37
38 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_concepts value.
39
4c712374
BE
402016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
41
42 * c-common.c (c_common_truthvalue_conversion): Warn only for signed
43 integer shift ops in boolean context.
44
452016-10-18 Aldy Hernandez <aldyh@redhat.com>
adc577c5
AH
46
47 * c.opt (Walloca): New.
48 (Walloca-larger-than=): New.
49 (Wvla-larger-than=): New.
50
8fa18c06
MP
512016-10-17 Marek Polacek <polacek@redhat.com>
52
53 * c-warn.c (find_array_ref_with_const_idx_r): Remove parameter names.
54 Return immediately when finding a match.
55 (warn_tautological_cmp): Remove a boolean variable that is no longer
56 needed.
57
b12b1915
MP
582016-10-17 Marek Polacek <polacek@redhat.com>
59
60 * c-attribs.c: New file.
61 * c-common.c: Move attributes handling to c-attribs.c.
62 (get_nonnull_operand): No longer static.
63 * c-common.h: Move the declarations from c-attribs.c to its own section.
64
2045acd9
JM
652016-10-14 Jason Merrill <jason@redhat.com>
66
67 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_aggregate_bases
68 and __cpp_deduction_guides.
69
14a2c9aa
JM
702016-10-13 Jason Merrill <jason@redhat.com>
71
72 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_inline_variables.
73
4d0cdd0c
TP
742016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
75
76 * c-cppbuiltin.c: Include memmodel.h.
77 * c-opts.c: Likewise.
78 * c-pragma.c: Likewise.
79 * c-warn.c: Likewise.
80
70f6d5e1
JJ
812016-10-12 Jakub Jelinek <jakub@redhat.com>
82
83 * c.opt (Wextra): Add as C/C++/ObjC/ObjC++ option.
84 (Wimplicit-fallthrough=): Enable for these languages by -Wextra.
85 * c-opts.c (sanitize_cpp_opts): Initialize
86 cpp_opts->cpp_warn_implicit_fallthrough.
87
78f61294
MP
882016-10-11 Marek Polacek <polacek@redhat.com>
89
90 * c-common.c (warning_candidate_p): Change the return type to bool
91 and return true/false instead of 1/0.
92 (vector_mode_valid_p): Likewise.
93
038b5cc0
MP
942016-10-11 Marek Polacek <polacek@redhat.com>
95
96 * c-common.c (fold_for_warn): No longer static.
97 (bool_promoted_to_int_p): Likewise.
98 (c_common_get_narrower): Likewise.
99 (constant_expression_warning): Move to c-warn.c.
100 (constant_expression_error): Likewise.
101 (overflow_warning): Likewise.
102 (warn_logical_operator): Likewise.
103 (find_array_ref_with_const_idx_r): Likewise.
104 (warn_tautological_cmp): Likewise.
105 (expr_has_boolean_operands_p): Likewise.
106 (warn_logical_not_parentheses): Likewise.
107 (warn_if_unused_value): Likewise.
108 (strict_aliasing_warning): Likewise.
109 (sizeof_pointer_memaccess_warning): Likewise.
110 (check_main_parameter_types): Likewise.
111 (conversion_warning): Likewise.
112 (warnings_for_convert_and_check): Likewise.
113 (match_case_to_enum_1): Likewise.
114 (match_case_to_enum): Likewise.
115 (c_do_switch_warnings): Likewise.
116 (warn_for_omitted_condop): Likewise.
117 (readonly_error): Likewise.
118 (lvalue_error): Likewise.
119 (invalid_indirection_error): Likewise.
120 (warn_array_subscript_with_type_char): Likewise.
121 (warn_about_parentheses): Likewise.
122 (warn_for_unused_label): Likewise.
123 (warn_for_div_by_zero): Likewise.
124 (warn_for_memset): Likewise.
125 (warn_for_sign_compare): Likewise.
126 (do_warn_double_promotion): Likewise.
127 (do_warn_unused_parameter): Likewise.
128 (record_locally_defined_typedef): Likewise.
129 (maybe_record_typedef_use): Likewise.
130 (maybe_warn_unused_local_typedefs): Likewise.
131 (maybe_warn_bool_compare): Likewise.
132 (maybe_warn_shift_overflow): Likewise.
133 (warn_duplicated_cond_add_or_warn): Likewise.
134 (diagnose_mismatched_attributes): Likewise.
135 * c-common.h: Move the declarations from c-warn.c to its own section.
136 * c-warn.c: New file.
137
627be19f
JM
1382016-10-08 Jason Merrill <jason@redhat.com>
139
140 * c-common.c (c_common_truthvalue_conversion): Don't distribute
141 into COND_EXPR in C++.
142
7bad794a
JJ
1432016-10-08 Jakub Jelinek <jakub@redhat.com>
144
145 * c-lex.c (c_lex_with_flags) <case CPP_COMMENT>: For CPP_COMMENT
146 token with PREV_FALLTHROUGH, skip all following CPP_PADDING and
147 CPP_COMMENT tokens and set add_flags to PREV_FALLTHROUGH afterwards.
148
be845b04
JJ
1492016-10-07 Jakub Jelinek <jakub@redhat.com>
150
151 Implement LWG2296 helper intrinsic
152 * c-common.h (enum rid): Add RID_ADDRESSOF.
153 * c-common.c (c_common_reswords): Add __builtin_addressof.
154
c09c4992
BE
1552016-10-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
156
157 PR c++/77700
158 * c-common.c (c_common_truthvalue_conversion): Warn also for
159 suspicious enum values in boolean context.
160
342cfb3e
JJ
1612016-10-06 Jakub Jelinek <jakub@redhat.com>
162
163 Implement P0258R2 - helper for C++17
164 std::has_unique_object_representations trait
165 * c-common.h (enum rid): Add RID_HAS_UNIQUE_OBJ_REPRESENTATIONS.
166 * c-common.c (c_common_reswords): Add
167 __has_unique_object_representations.
168
2e69f143
JJ
1692016-10-05 Jakub Jelinek <jakub@redhat.com>
170
171 PR sanitizer/66343
172 * c-ubsan.c (ubsan_instrument_return): Don't call
173 initialize_sanitizer_builtins here.
174
700fff34
BE
1752016-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
176
177 * c-common.c (c_common_truthvalue_conversion): Warn also for suspicious
178 conditional expression in boolean context when only one arm is
179 non-boolean.
180
9563bfcd
JJ
1812016-10-05 Jakub Jelinek <jakub@redhat.com>
182
04a32443
JJ
183 PR sanitizer/77823
184 * c-ubsan.c (ubsan_instrument_shift): Return NULL_TREE if type0
185 is not integral.
186
9563bfcd
JJ
187 * c-common.c (c_common_reswords): Update comment for C++11.
188
f1644724
JM
1892016-10-04 Jason Merrill <jason@redhat.com>
190
191 * c-common.c (make_tree_vector_from_ctor): New.
192 * c-common.h: Declare it.
193
5a79befb
JJ
1942016-10-04 Jakub Jelinek <jakub@redhat.com>
195
196 * c-cppbuiltin.c (c_cpp_builtins): Don't define
197 __LIBGCC_JCR_SECTION_NAME__.
198
1633d3b9
BE
1992016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
200
201 * c-common.c (c_common_truthvalue_conversion): Warn for suspicious
202 left shift in boolean context.
203
a2c6e7f2
JJ
2042016-09-29 Jakub Jelinek <jakub@redhat.com>
205
206 Implement P0001R1 - C++17 removal of register storage class specifier
207 * c.opt (Wregister): New warning.
208 * c-opts.c (c_common_post_options): Enable -Wregister by
209 default for C++17.
210
75304c87
JG
2112016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
212
213 * c-opts.c (c_common_post_options): Remove special case for
214 TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard
215 in C++.
216
bbfac6da
JJ
2172016-09-27 Jakub Jelinek <jakub@redhat.com>
218
6e39060a
JJ
219 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for
220 -std=c++1z.
221
bbfac6da
JJ
222 * c-ada-spec.c (print_ada_declaration): Remove break after return.
223
e73cf9a2
TP
2242016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
225
226 * c-common.c: Include memmodel.h.
227
c6147dc4
MP
2282016-09-26 Marek Polacek <polacek@redhat.com>
229
230 * c-lex.c (c_common_has_attribute): Handle attribute fallthrough.
231
81fea426
MP
2322016-09-26 Marek Polacek <polacek@redhat.com>
233
234 PR c/7652
235 * c-common.c (c_common_attribute_table): Add fallthrough attribute.
236 (handle_fallthrough_attribute): New function.
237 (attribute_fallthrough_p): New function.
238 * c-common.h (attribute_fallthrough_p): Declare.
239
9a2300e9
MP
2402016-09-24 Marek Polacek <polacek@redhat.com>
241
242 PR c/77490
243 * c.opt (Wbool-operation): New.
244
a09e9e35
BE
2452016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
246
247 * c-common.c (c_common_truthvalue_conversion): Inhibit
248 Wint-in-bool-context warning with from_macro_definition_at.
249 Mention the expression will always evaluate to true.
250
d43b4ccc
MS
2512016-09-21 Martin Sebor <msebor@redhat.com>
252
253 PR bootstrap/77676
254 * c.opt (fprintf-return-value): Temporarily initialize to zero
255 to unblock bootstrap failures.
256
2e1c20b1
JJ
2572016-09-21 Jakub Jelinek <jakub@redhat.com>
258
259 PR c++/77651
260 * c.opt (Waligned-new=): Add RejectNegative.
261 (faligned-new=): Likewise. Spelling fix - change
262 aligned_new_threshhold to aligned_new_threshold.
263 * c-cppbuiltin.c (c_cpp_builtins): Change aligned_new_threshhold
264 to aligned_new_threshold.
265
88d0c3f0
MS
2662016-09-20 Martin Sebor <msebor@redhat.com>
267
268 PR middle-end/49905
269 * c.opt: Add -Wformat-length and -fprintf-return-value.
270
144a96e4
BE
2712016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
272
273 PR c++/77434
274 * c.opt (Wint-in-bool-context): New warning.
275 * c-common.c (c_common_truthvalue_conversion): Warn on integer
276 constants in boolean context.
277
63012d9a
JM
2782016-09-19 Joseph Myers <joseph@codesourcery.com>
279
280 * c-common.c (max_align_t_align): Also consider alignment of
281 float128_type_node.
282
931388ce
JM
2832016-09-15 Jason Merrill <jason@redhat.com>
284
285 * c-common.c (check_cxx_fundamental_alignment_constraints): Check
286 DECL_EXTERNAL.
287
38711381
JM
2882016-09-14 Jason Merrill <jason@redhat.com>
289
290 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
291 limit FIELD_DECL, either.
292
e51fbec3
MP
2932016-09-14 Marek Polacek <polacek@redhat.com>
294
295 * c-common.c (c_common_truthvalue_conversion): Use false instead of 0.
296 * c-common.h (build_unary_op): Change nonconvert parameter type to bool.
297 * c-omp.c (c_finish_omp_atomic): Use false instead of 0.
298
254830ba
DM
2992016-09-13 David Malcolm <dmalcolm@redhat.com>
300
301 * c-common.c (warn_logical_not_parentheses): Replace
302 rich_location::add_fixit_insert calls with add_fixit_insert_before
303 and add_fixit_insert_after, eliminating the "next_loc" calculation.
304
42763690
JM
3052016-09-13 Jason Merrill <jason@redhat.com>
306 Tom de Vries <tom@codesourcery.com>
307
308 PR c++/77427
309 * c-common.c (set_underlying_type): Don't treat array as builtin type.
310
9453eee9
JM
3112016-09-13 Jason Merrill <jason@redhat.com>
312
313 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
314 limit types at all.
315
e96809e3
JM
3162016-09-12 Jason Merrill <jason@redhat.com>
317
318 * c-common.c (check_cxx_fundamental_alignment_constraints): Fix
319 bit/byte confusion, allow large alignment for types.
320
54dcdb88
BE
3212016-09-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
322
323 PR c++/77496
324 * c-common.c (warn_for_omitted_condop): Also warn for boolean data.
325
d1463eb9
DM
3262016-09-12 David Malcolm <dmalcolm@redhat.com>
327
328 PR c/72858
329 * c-format.c (argument_parser::check_argument_type): Add params
330 "type_start" and "conversion_char". Use the former to generate
331 offset_to_type_start and pass it and conversion_char to
332 check_format_types.
333 (check_format_info_main): Capture the start of the type
334 information as "type_start", and pass it an format_char
335 to arg_parser.check_argument_type.
336 (check_format_types): Provide an example in the leading comment.
337 Add params "offset_to_type_start" and "conversion_char"; pass
338 them to format_type_warning calls.
339 (test_get_modifier_for_format_len): Likewise.
340 (matching_type_p): New function.
341 (get_format_for_type): Add param "conversion_char" and move
342 implementation into...
343 (get_format_for_type_1): ...new function, called twice.
344 Use new function matching_type_p rather than checking for
345 TYPE_CANONICAL equality.
346 (get_corrected_substring): New function.
347 (format_type_warning): Provide an example in the leading comment.
348 Add params "offset_to_type_start" and "conversion_char". Replace
349 call to get_format_for_type with call to get_corrected_substring
350 and move rejection of hints for widths/precisions there.
351 (assert_format_for_type_streq): Add param "conversion_char".
352 (ASSERT_FORMAT_FOR_TYPE_STREQ): Add param CONVERSION_CHAR.
353 (test_get_format_for_type_printf): Add conversion chars to the
354 tests, adding coverage for various combinations of integer
355 vs double conversions, and for preserving octal and hexadecimal
356 conversions.
357 (test_get_format_for_type_scanf): Add conversion chars to the
358 tests.
359
5b28efbb
TV
3602016-09-10 Tom de Vries <tom@codesourcery.com>
361
362 PR C/71602
363 * c-common.c (build_va_arg): Handle more strict
364 targetm.canonical_va_list_type. Replace first argument type error with
365 assert.
366
3f0177e7
MS
3672016-09-09 Martin Sebor <msebor@redhat.com>
368
369 PR c/77520
370 PR c/77521
371 * c-format.c (argument_parser::find_format_char_info): Use %qc
372 format directive unconditionally.
373
af63ba4b
JM
3742016-09-09 Jason Merrill <jason@redhat.com>
375
376 Implement C++17 new of over-aligned types.
377 * c.opt: Add -faligned-new and -Waligned-new.
378 * c-common.c (max_align_t_align): Split out from...
379 (cxx_fundamental_alignment_p): ...here.
380 * c-common.h: Declare it.
381 * c-cppbuiltin.c (c_cpp_builtins): Handle aligned new.
382
c65248cb
JM
3832016-09-09 Joseph Myers <joseph@codesourcery.com>
384
385 * c-cppbuiltin.c (builtin_define_type_width): New function.
386 (builtin_define_stdint_macros, c_cpp_builtins): Define type width
387 macros.
388
e5106e27
DM
3892016-09-07 David Malcolm <dmalcolm@redhat.com>
390
391 * c-common.c (get_cpp_ttype_from_string_type): Handle being passed
392 a POINTER_TYPE.
393 (substring_loc::get_location): Move to substring-locations.c,
394 keeping implementation as...
395 (c_get_substring_location): New function, from the above, reworked
396 to use accessors rather than member lookup.
397 * c-common.h (class substring_loc): Move to substring-locations.h,
398 replacing with a forward decl.
399 (c_get_substring_location): New decl.
400 * c-format.c: Include "substring-locations.h".
401 (format_warning_va): Move to substring-locations.c.
402 (format_warning_at_substring): Likewise.
403
a42e7952
MS
4042016-09-06 Martin Sebor <msebor@redhat.com>
405
406 PR c/77336
407 * c-format.c (check_function_format): Avoid issuing warnings for
408 functions unless they call format functions with non-constant
409 format strings.
410
b772a565
RB
4112016-09-06 Richard Biener <rguenther@suse.de>
412
413 PR c/77450
414 * c-common.c (c_common_mark_addressable_vec): Handle
415 COMPOUND_LITERAL_EXPR.
416
25ff5dd3
MP
4172016-09-05 Marek Polacek <polacek@redhat.com>
418
419 PR c/77423
420 * c-common.c (bool_promoted_to_int_p): New function.
421 (expr_has_boolean_operands_p): New function.
422 (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p.
423 (maybe_warn_bool_compare): Use bool_promoted_to_int_p.
424
21234eb5
TV
4252016-09-04 Tom de Vries <tom@codesourcery.com>
426
427 revert:
428 2016-08-29 Tom de Vries <tom@codesourcery.com>
429
430 * c-common.c (build_va_arg): Replace first argument type error
431 with assert.
432
9dc5773f
JJ
4332016-09-02 Jakub Jelinek <jakub@redhat.com>
434
435 PR c/65467
436 * c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions.
437 (c_finish_omp_for): Reject _Atomic qualified iterators.
438
4392016-09-01 Martin Sebor <msebor@redhat.com>
3d7b83b6
MS
440
441 * c-ada-spec.c (dump_ada_function_declaration): Increase buffer
442 size to guarantee it fits the output of the formatted function
443 regardless of its arguments.
444
295844f6
MP
4452016-09-01 Marek Polacek <polacek@redhat.com>
446
447 PR c/7652
448 * c-common.c (resolve_overloaded_builtin): Fix formatting. Add
449 FALLTHRU comments.
450
3d06b6f2
MP
4512016-08-29 Marek Polacek <polacek@redhat.com>
452
453 PR c/77292
454 * c-common.c (warn_logical_not_parentheses): Don't warn for
455 a comparison or a logical operator.
456
34cedad5
TV
4572016-08-29 Tom de Vries <tom@codesourcery.com>
458
459 * c-common.c (build_va_arg): Fix type comparison assert.
460
f162d717
TV
4612016-08-29 Tom de Vries <tom@codesourcery.com>
462
463 * c-common.c (build_va_arg): Replace first argument type error
464 with assert.
465
ba9bbd6f
TV
4662016-08-29 Tom de Vries <tom@codesourcery.com>
467
468 PR c/77398
469 * c-common.c (build_va_arg): Add first argument error. Build va_arg
470 with error_mark_node as va_list instead of with illegal va_list.
471
ebef225f
MP
4722016-08-25 Marek Polacek <polacek@redhat.com>
473 David Malcolm <dmalcolm@redhat.com>
474
475 * c-common.c (warn_logical_not_parentheses): Print fixit hints.
476 * c-common.h (warn_logical_not_parentheses): Update declaration.
477
b00e6e75
MP
4782016-08-22 Marek Polacek <polacek@redhat.com>
479
480 PR c++/77321
481 * c-common.c (warn_for_memset): Check type for null.
482
6dc198e3
JM
4832016-08-22 Joseph Myers <joseph@codesourcery.com>
484
485 * c-family/c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and
486 _FloatNx types for suffixes for built-in functions.
487
c65699ef
JM
4882016-08-19 Joseph Myers <joseph@codesourcery.com>
489
490 PR c/32187
491 * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32)
492 (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X)
493 (RID_FLOAT128X): New enum rid values.
494 (CASE_RID_FLOATN_NX): New macro.
495 * c-common.c (c_common_reswords): Add _FloatN and _FloatNx
496 keywords.
497 (c_common_type_for_mode): Check for _FloatN and _FloatNx and
498 corresponding complex types.
499 (c_common_nodes_and_builtins): For non-C++, register _FloatN and
500 _FloatNx and corresponding complex types.
501 (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX.
502 * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN
503 and _FloatNx types for the widest type for determining
504 DECIMAL_DIG. Define __LDBL_DECIMAL_DIG__ as well as
505 __DECIMAL_DIG__ for long double. Handle FMA_SUFFIX being NULL.
506 (c_cpp_builtins): Call builtin_define_float_constants for _FloatN
507 and _FloatNx types.
508 * c-lex.c (interpret_float): Handle _FloatN and _FloatNx
509 constants.
510 * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and
511 _FloatNx types.
512
cc015f3a
DM
5132016-08-18 David Malcolm <dmalcolm@redhat.com>
514
515 * c-opts.c (c_diagnostic_finalizer): Update for change to
516 diagnostic_show_locus.
517
cb18fd07
DM
5182016-08-18 David Malcolm <dmalcolm@redhat.com>
519
520 * c-common.c: Include "spellcheck.h".
521 (cb_get_suggestion): New function.
522 * c-common.h (cb_get_suggestion): New decl.
523 * c-lex.c (init_c_lex): Initialize cb->get_suggestion to
524 cb_get_suggestion.
525
a76989dc
MP
5262016-08-18 Marek Polacek <polacek@redhat.com>
527
528 PR c/71514
529 * c-common.c (get_atomic_generic_size): Disallow pointer-to-function
530 and pointer-to-VLA.
531
65e736c0
DM
5322016-08-16 David Malcolm <dmalcolm@redhat.com>
533
534 PR c/72857
535 * c-common.c (substring_loc::get_range): Rename to...
536 (substring_loc::get_location): ...this, converting param from a
537 source_range * to a location_t *. Call
538 get_source_location_for_substring rather than
539 get_source_range_for_substring, and pass in m_caret_idx.
540 * c-common.h (substring_loc::substring_loc): Add param "caret_idx".
541 (substring_loc::get_range): Replace with...
542 (substring_loc::get_location): ...this.
543 (substring_loc::set_caret_index): New method.
544 (substring_loc): Add field m_caret_idx.
545 * c-format.c (format_warning_va): Update for above changes.
546 Rename local "substring_loc" to "fmt_substring_loc" to avoid
547 clashing with type name.
548 (format_warning_at_char): Add caret_idx param to substring_loc ctor.
549 (check_argument_type): Likewise.
550 (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc"
551 Use a copy when emitting warnings, setting the caret index from TYPE.
552
7e1dde14
EB
5532016-08-16 Eric Botcazou <ebotcazou@adacore.com>
554 Arnaud Charlet <charlet@adacore.com>
555
556 * c-ada-spec.c (dump_number): New function.
557 (handle_escape_character): Likewise.
558 (print_ada_macros): Add handling of constant integers and strings.
559
191816a3
MP
5602016-08-12 Marek Polacek <polacek@redhat.com>
561
562 PR c/7652
563 * c-common.c (scalar_to_vector): Adjust fall through comment.
564 * c-opts.c (c_common_handle_option): Likewise.
565 * c-pragma.c (handle_pragma_pack): Add FALLTHRU.
566 * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust
567 fall through comment.
568 * cilk.c (extract_free_variables): Add FALLTHRU.
569
452df4a4
JM
5702016-08-10 Jason Merrill <jason@redhat.com>
571
572 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr.
573
f3365c12
JM
5742016-08-09 Jason Merrill <jason@redhat.com>
575
576 * c-common.c (c_common_attribute_table): vector_size affects type
577 identity.
578
f0bc3323
MP
5792016-08-09 Marek Polacek <polacek@redhat.com>
580
581 PR c/7652
582 * c-ada-spec.c (dump_generic_ada_node): Add return.
583
98e5a19a
JM
5842016-08-09 Jason Merrill <jason@redhat.com>
585
586 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for
587 C++17 constexpr lambdas.
588
895aa8e1
DM
5892016-08-08 David Malcolm <dmalcolm@redhat.com>
590
591 PR c/64955
592 * c-common.h (selftest::c_format_c_tests): New declaration.
593 (selftest::run_c_tests): New declaration.
594 * c-format.c: Include "selftest.h.
595 (format_warning_va): Add param "corrected_substring" and use
596 it to add a replacement fix-it hint.
597 (format_warning_at_substring): Likewise.
598 (format_warning_at_char): Update for new param of
599 format_warning_va.
600 (argument_parser::check_argument_type): Pass "fki" to
601 check_format_types.
602 (check_format_types): Add param "fki" and pass it to
603 format_type_warning.
604 (deref_n_times): New function.
605 (get_modifier_for_format_len): New function.
606 (selftest::test_get_modifier_for_format_len): New function.
607 (get_format_for_type): New function.
608 (format_type_warning): Add param "fki" and use it to attempt
609 to provide hints for argument types when calling
610 format_warning_at_substring.
611 (selftest::get_info): New function.
612 (selftest::assert_format_for_type_streq): New function.
613 (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro.
614 (selftest::test_get_format_for_type_printf): New function.
615 (selftest::test_get_format_for_type_scanf): New function.
616 (selftest::c_format_c_tests): New function.
617
e52ed3fe
DM
6182016-08-08 David Malcolm <dmalcolm@redhat.com>
619
620 PR c/52952
621 * c-format.c: Include "diagnostic.h".
622 (location_column_from_byte_offset): Delete.
623 (location_from_offset): Delete.
624 (format_warning_va): New function.
625 (format_warning_at_substring): New function.
626 (format_warning_at_char): New function.
627 (check_format_arg): Capture location of format_tree and pass to
628 check_format_info_main.
629 (argument_parser): Add fields "start_of_this_format" and
630 "format_string_cst".
631 (flag_chars_t::validate): Add param "format_string_cst". Convert
632 warning_at call using location_from_offset to call to
633 format_warning_at_char.
634 (argument_parser::argument_parser): Add param "format_string_cst_"
635 and use use it to initialize field "format_string_cst".
636 Initialize new field "start_of_this_format".
637 (argument_parser::read_format_flags): Convert warning_at call
638 using location_from_offset to a call to format_warning_at_char.
639 (argument_parser::read_any_format_left_precision): Likewise.
640 (argument_parser::read_any_format_precision): Likewise.
641 (argument_parser::read_any_other_modifier): Likewise.
642 (argument_parser::find_format_char_info): Likewise, in three places.
643 (argument_parser::parse_any_scan_set): Likewise, in one place.
644 (argument_parser::handle_conversions): Likewise, in two places.
645 (argument_parser::check_argument_type): Add param "fmt_param_loc"
646 and use it to make a substring_loc. Pass the latter to
647 check_format_types.
648 (check_format_info_main): Add params "fmt_param_loc" and
649 "format_string_cst". Convert warning_at calls using
650 location_from_offset to calls to format_warning_at_char. Pass the
651 new params to the arg_parser ctor. Pass "format_string_cst" to
652 flag_chars.validate. Pass "fmt_param_loc" to
653 arg_parser.check_argument_type.
654 (check_format_types): Convert first param from a location_t
655 to a const substring_loc & and rename to "fmt_loc". Attempt
656 to extract the range of the relevant parameter and pass it
657 to format_type_warning.
658 (format_type_warning): Convert first param from a location_t
659 to a const substring_loc & and rename to "fmt_loc". Add
660 params "param_range" and "type". Replace calls to warning_at
661 with calls to format_warning_at_substring.
662
1c4d457e
DM
6632016-08-08 David Malcolm <dmalcolm@redhat.com>
664
665 * c-format.c (class flag_chars_t): New class.
666 (struct length_modifier): New struct.
667 (class argument_parser): New class.
668 (flag_chars_t::flag_chars_t): New ctor.
669 (flag_chars_t::has_char_p): New method.
670 (flag_chars_t::add_char): New method.
671 (flag_chars_t::validate): New method.
672 (flag_chars_t::get_alloc_flag): New method.
673 (flag_chars_t::assignment_suppression_p): New method.
674 (argument_parser::argument_parser): New ctor.
675 (argument_parser::read_any_dollar): New method.
676 (argument_parser::read_format_flags): New method.
677 (argument_parser::read_any_format_width): New method.
678 (argument_parser::read_any_format_left_precision): New method.
679 (argument_parser::read_any_format_precision): New method.
680 (argument_parser::handle_alloc_chars): New method.
681 (argument_parser::read_any_length_modifier): New method.
682 (argument_parser::read_any_other_modifier): New method.
683 (argument_parser::find_format_char_info): New method.
684 (argument_parser::validate_flag_pairs): New method.
685 (argument_parser::give_y2k_warnings): New method.
686 (argument_parser::parse_any_scan_set): New method.
687 (argument_parser::handle_conversions): New method.
688 (argument_parser::check_argument_type): New method.
689 (check_format_info_main): Introduce classes argument_parser
690 and flag_chars_t, moving the code within the loop into methods
691 of these classes. Make various locals "const".
692
88fa5555
DM
6932016-08-05 David Malcolm <dmalcolm@redhat.com>
694
695 * c-common.c: Include "substring-locations.h".
696 (get_cpp_ttype_from_string_type): New function.
697 (g_string_concat_db): New global.
698 (substring_loc::get_range): New method.
699 * c-common.h (g_string_concat_db): New declaration.
700 (class substring_loc): New class.
701 * c-lex.c (lex_string): When concatenating strings, capture the
702 locations of all tokens using a new obstack, and record the
703 concatenation locations within g_string_concat_db.
704 * c-opts.c (c_common_init_options): Construct g_string_concat_db
705 on the ggc-heap.
706
78169471
MP
7072016-07-29 Marek Polacek <polacek@redhat.com>
708
638fc14f
MP
709 PR c/71926
710 * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the
711 parentheses warning.
712
78169471
MP
713 PR c/71574
714 * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL.
715
1225d6b1
ML
7162016-07-28 Martin Liska <mliska@suse.cz>
717
718 PR gcov-profile/68025
719 * c-common.c (handle_no_profile_instrument_function_attribute):
720
ec1e2a40
BE
7212016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
722
723 * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of
724 BITS_PER_UNIT_LOG.
725
5ec2cd9f
JM
7262016-07-25 Jason Merrill <jason@redhat.com>
727
728 PR c++/65970
729 * c.opt (fconstexpr-loop-limit): New.
730
9dc5773f 7312016-07-22 Martin Sebor <msebor@redhat.com>
2e6b45af
MS
732
733 PR c++/71675
734 * c-common.c (resolve_overloaded_builtin): Avoid converting
735 __atomic_compare_exchange_n return type to that of what its
736 first argument points to.
737
e3fe09c1
UB
7382016-07-22 Uros Bizjak <ubizjak@gmail.com>
739
740 * c-common.c: Use HOST_WIDE_INT_M1U instead of
741 ~(unsigned HOST_WIDE_INT) 0.
742
bc91c436
ML
7432016-07-22 Martin Liska <mliska@suse.cz>
744
745 PR gcov-profile/69028
746 PR gcov-profile/62047
747 * cilk.c (create_cilk_helper_decl): Set location of a new decl
748 to the current_function_decl.
749
451dcc66
JM
7502016-07-21 Jason Merrill <jason@redhat.com>
751
752 PR c++/65168
753 * c-common.c (c_common_truthvalue_conversion): Check
754 c_inhibit_evaluation_warnings for warning about address of
755 reference.
756
de6a69ee
DM
7572016-07-20 David Malcolm <dmalcolm@redhat.com>
758
759 * c-common.h (lookup_name_fuzzy): Convert return type from tree to
760 const char *.
761
d022c55a
JM
7622016-07-15 Jason Merrill <jason@redhat.com>
763
764 * c-opts.c (c_common_post_options): Update -fabi-version default to 11.
765
ddbbcb19
JJ
7662016-07-15 Jakub Jelinek <jakub@redhat.com>
767
768 PR c/71858
769 * c-common.h (enum lookup_name_fuzzy_kind): Add
770 FUZZY_LOOKUP_FUNCTION_NAME.
771
d0cf395a
JM
7722016-07-08 Jason Merrill <jason@redhat.com>
773
774 P0145: Refining Expression Order for C++.
775 * c.opts (-fargs-in-order): Rename to -fstrong-eval-order.
776 * c-opts.c: Adjust.
777
98d44e93
MT
7782016-07-05 Markus Trippelsdorf <markus@trippelsdorf.de>
779
780 PR c++/71214
781 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.
782
f9d8d994
TS
7832016-06-29 Thomas Schwinge <thomas@codesourcery.com>
784
785 * c-pragma.h (enum pragma_kind): Rename
786 PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE. Adjust all
787 users.
788
4aa83879
RB
7892016-06-29 Richard Biener <rguenther@suse.de>
790
791 PR middle-end/71002
792 * c-common.c (c_common_get_alias_set): Remove union type punning case.
793
a25bd9e6
JM
7942016-06-24 Jason Merrill <jason@redhat.com>
795
796 P0145R2: Refining Expression Order for C++.
797 * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of
798 MODIFY_EXPR.
799
a86451b9
JJ
8002016-06-24 Jakub Jelinek <jakub@redhat.com>
801
802 * c-common.c (check_builtin_function_arguments): Require last
803 argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type.
804 Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW
805 if the last argument is pointer to enumerated or boolean type.
806
1a4f11c8
DM
8072016-06-22 David Malcolm <dmalcolm@redhat.com>
808
809 PR c/70339
810 * c-common.h (enum lookup_name_fuzzy_kind): New enum.
811 (lookup_name_fuzzy): New prototype.
812
fe55692c
JDA
8132016-06-21 John David Anglin <danglin@gcc.gnu.org>
814
815 * c-common.c (get_source_date_epoch): Use int64_t instead of long long.
816
4eb24e01
JM
8172016-06-14 Jason Merrill <jason@redhat.com>
818
819 P0145R2: Refining Expression Order for C++.
820 * c.opt (fargs-in-order): New.
821 * c-opts.c (c_common_post_options): Adjust flag_args_in_order.
822
ef7cf206
JJ
8232016-06-13 Jakub Jelinek <jakub@redhat.com>
824
0dda258b
JJ
825 PR sanitizer/71498
826 * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
827 all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.
828
ef7cf206
JJ
829 PR preprocessor/71183
830 * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch
831 to cb_get_source_date_epoch.
832
50b15873
JJ
8332016-06-10 Jakub Jelinek <jakub@redhat.com>
834
835 PR c/68657
836 * c.opt (Wpsabi): Add Warning flag.
837
4d926e34
MS
8382016-06-10 Martin Sebor <msebor@redhat.com>
839
840 PR c/71392
841 * gcc/c-family/c-common.c (handle_nonnull_attribute): Accept
842 the nonnull attribute in type-generic builtins.
843
e01b4e16
MS
8442016-06-09 Martin Sebor <msebor@redhat.com>
845
846 PR c/70883
847 * c-common.c (builtin_function_validate_nargs): Make text of error
848 message consistent with others like it.
849
44a845ca
MS
8502016-06-08 Martin Sebor <msebor@redhat.com>
851 Jakub Jelinek <jakub@redhat.com>
852
853 PR c++/70507
854 PR c/68120
855 * c-common.c (check_builtin_function_arguments): Handle
856 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
857
a80a7051
RB
8582016-06-08 Richard Biener <rguenther@suse.de>
859
860 * c-common.c (parse_optimize_options): Improve diagnostic messages.
861
bfd67b47
RB
8622016-06-07 Richard Biener <rguenther@suse.de>
863
864 PR c/61564
865 * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION
866 options and warn about others.
867
15c98b2e
ES
8682016-06-01 Eduard Sanou <dhole@openmailbox.org>
869
870 * c-common.c (get_source_date_epoch): Rename to
871 cb_get_source_date_epoch.
872 * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
873 message when the parsing fails. Use error_at instead of fatal_error.
874 * c-common.h (get_source_date_epoch): Rename to
875 cb_get_source_date_epoch.
876 * c-common.h (cb_get_source_date_epoch): Prototype.
877 * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
878 * c-common.h (c_omp_region_type): Remove trailing comma.
879 * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
880 * c-lex.c (c_lex_with_flags): Remove initialization of
881 pfile->source_date_epoch.
882
00631022
JJ
8832016-05-30 Jakub Jelinek <jakub@redhat.com>
884
885 PR c++/71349
886 * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
887 C_OMP_CLAUSE_SPLIT_TARGET. Put OMP_CLAUSE_NOWAIT to
888 C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
889 instead of C_OMP_CLAUSE_SPLIT_FOR.
890
f17a223d
RB
8912016-05-24 Richard Biener <rguenther@suse.de>
892
893 PR middle-end/70434
894 PR c/69504
895 * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
896 (convert_vector_to_array_for_subscript): ... this.
897 * c-common.c (convert_vector_to_pointer_for_subscript): Use a
898 VIEW_CONVERT_EXPR to an array type. Rename to ...
899 (convert_vector_to_array_for_subscript): ... this.
900
4f2e1536
MP
9012016-05-12 Marek Polacek <polacek@redhat.com>
902
903 PR c/70756
904 * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
905 size_in_bytes and pass LOC to it.
906
d6e83a8d
MM
9072016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
908
909 PR c/43651
910 * c.opt (Wduplicate-decl-specifier): New option.
911
5c3a10fb
MP
9122016-05-11 Marek Polacek <polacek@redhat.com>
913
914 PR c++/71024
915 * c-common.c (diagnose_mismatched_attributes): New function.
916 * c-common.h (diagnose_mismatched_attributes): Declare.
917
deef7113
MP
9182016-05-04 Marek Polacek <polacek@redhat.com>
919
920 * c.opt (Wdangling-else): New option.
921
79ce98bc
MP
9222016-05-03 Marek Polacek <polacek@redhat.com>
923
924 PR c/70859
925 * c-common.c (builtin_function_validate_nargs): Add location
926 parameter. Use it.
927 (check_builtin_function_arguments): Add location and arguments
928 parameters. Use them.
929 * c-common.h (check_builtin_function_arguments): Update declaration.
930
381cdae4
RB
9312016-05-03 Richard Biener <rguenther@suse.de>
932
933 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
934 allow call args to gimplify to SSA names.
935
1d793c34
MP
9362016-05-03 Marek Polacek <polacek@redhat.com>
937
938 * c-common.h (enum c_omp_region_type): Remove stray comma.
939
77886428
CP
9402016-05-02 Cesar Philippidis <cesar@codesourcery.com>
941
942 * c-common.h (enum c_omp_region_type): Define.
943
697e0b28
RS
9442016-05-02 Richard Sandiford <richard.sandiford@arm.com>
945
946 * c-common.c (shorten_compare): Use wi::to_wide.
947
e7ff0319
CP
9482016-04-29 Cesar Philippidis <cesar@codesourcery.com>
949
950 PR middle-end/70626
951 * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
952 * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
953 reduction clauses in acc parallel loops.
954
2fff3db8
MP
9552016-04-29 Marek Polacek <polacek@redhat.com>
956
957 PR c/70852
958 * c-common.c (warn_for_memset): Check domain before accessing it.
959
509063eb
DV
9602016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
961
962 PR/69089
963 * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
964 "aligned" attribute.
965
b632761d
JM
9662016-04-28 Jason Merrill <jason@redhat.com>
967
968 * c-lex.c (c_common_has_attribute): Handle nodiscard.
969
174f6622
ES
9702016-04-28 Eduard Sanou <dhole@openmailbox.org>
971 Matthias Klose <doko@debian.org>
972
973 * c-common.c (get_source_date_epoch): New function, gets the environment
974 variable SOURCE_DATE_EPOCH and parses it as long long with error
975 handling.
976 * c-common.h (get_source_date_epoch): Prototype.
977 * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
978
6bc2bb18
RB
9792015-04-27 Ryan Burn <contact@rnburn.com>
980
981 PR c++/69024
982 PR c++/68997
983 * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
984 (cilk_recognize_spawn): Renamed from recognize_spawn and change to
985 external linkage.
986 (cilk_detect_and_unwrap): Corresponding changes.
987 (extract_free_variables): Don't extract free variables from
988 AGGR_INIT_EXPR slot.
989 * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
990 (cilk_recognize_spawn): Likewise.
991
c1e1f433
BS
9922016-04-27 Bernd Schmidt <bschmidt@redhat.com>
993
994 * c.opt (Wmemset-elt-size): New option.
995 * c-common.c (warn_for_memset): New function.
996 * c-common.h (warn_for_memset): Declare.
997
d067e05f
JM
9982016-04-25 Jason Merrill <jason@redhat.com>
999
1000 * c-common.c (handle_unused_attribute): Accept CONST_DECL.
1001 No longer static.
1002 * c-common.h: Declare it.
1003 * c-lex.c (c_common_has_attribute): Add maybe_unused.
1004
9aa36ae5
JM
10052016-04-22 Jason Merrill <jason@redhat.com>
1006
1007 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
1008
477d4906
IV
10092016-04-20 Ilya Verbin <ilya.verbin@intel.com>
1010
1011 PR c++/69363
1012 * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
1013 * c-common.h (c_finish_cilk_clauses): Remove declaration.
1014
fe37c7af
MM
10152016-04-18 Michael Matz <matz@suse.de>
1016
1017 * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
1018 and SET_DECL_ALIGN.
1019
23f2660f
EB
10202016-04-17 Eric Botcazou <ebotcazou@adacore.com>
1021
1022 * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
1023 (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
1024 to incomplete types.
1025 (dump_nested_type): Remove redundant tests and tidy up.
1026 (print_ada_declaration): Also set TREE_VISITED on the declaration of
1027 a type which is the typedef of an original type.
1028
1e77281b
MP
10292016-04-15 Marek Polacek <polacek@redhat.com>
1030
1031 PR c/70651
1032 * c-common.c (build_va_arg): Change two asserts into errors and return
1033 error_mark_node.
1034
b3a77f21
MP
10352016-04-13 Marek Polacek <polacek@redhat.com>
1036
1037 PR c++/70639
1038 * c-indentation.c (should_warn_for_misleading_indentation): Bail out
1039 for switch statements, too.
1040
322b8466
JM
10412016-03-28 Jason Merrill <jason@redhat.com>
1042
1043 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
1044
fbdb6baf
MP
10452016-03-23 Marek Polacek <polacek@redhat.com>
1046
1047 PR c++/69884
1048 * c.opt (Wignored-attributes): New option.
1049
5c240f4d
DM
10502016-03-22 David Malcolm <dmalcolm@redhat.com>
1051
1052 PR c/69993
1053 * c-indentation.c (warn_for_misleading_indentation): Rewrite the
1054 diagnostic text, reversing the order of the warning and note so
1055 that they appear in source order.
1056
14ba7b28
MP
10572016-03-17 Marek Polacek <polacek@redhat.com>
1058
1059 PR c/69407
1060 * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
1061 operations.
1062
08a1cadc
JM
10632016-03-14 Jason Merrill <jason@redhat.com>
1064
2aaeea19
JM
1065 * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
1066
08a1cadc
JM
1067 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
1068
c06d25bb
RB
10692016-03-09 Richard Biener <rguenther@suse.de>
1070
1071 PR c/70143
1072 * c-common.c (strict_aliasing_warning): Add back
1073 alias_sets_conflict_p check.
1074
80aac5c8
JM
10752016-03-08 Jason Merrill <jason@redhat.com>
1076
1077 * c-opts.c (set_std_cxx1z): Don't enable concepts.
1078
64b23c13
DM
10792016-03-04 David Malcolm <dmalcolm@redhat.com>
1080
1081 PR c/68187
1082 * c-indentation.c (get_visual_column): Move code to determine next
1083 tab stop to...
1084 (next_tab_stop): ...this new function.
1085 (line_contains_hash_if): Delete function.
1086 (detect_preprocessor_logic): Delete function.
1087 (get_first_nws_vis_column): New function.
1088 (detect_intervening_unindent): New function.
1089 (should_warn_for_misleading_indentation): Replace call to
1090 detect_preprocessor_logic with a call to
1091 detect_intervening_unindent.
1092
729526f5
DM
10932016-03-04 David Malcolm <dmalcolm@redhat.com>
1094
1095 PR c/68187
1096 * c-indentation.c (should_warn_for_misleading_indentation): When
1097 suppressing warnings about cases where the guard and body are on
1098 the same column, only use the first non-whitespace column in place
1099 of the guard token column when dealing with "else" clauses.
1100 When rejecting aligned BODY and NEXT, loosen the requirement
1101 from equality with the first non-whitespace of guard to simply
1102 that they not be indented relative to it.
1103
e9a35493
RB
11042016-03-04 Richard Biener <rguenther@suse.de>
1105
1106 PR c++/70054
1107 * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
1108 instead of alias_sets_conflict_p.
1109
1be56bc5
MP
11102016-03-01 Marek Polacek <polacek@redhat.com>
1111
1112 PR c++/69795
1113 * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
1114 any DECL.
1115
35886f0b
MS
11162016-02-22 Martin Sebor <msebor@redhat.com>
1117
1118 PR middle-end/69780
1119 * c-common.c (check_builtin_function_arguments): Validate and
1120 reject invalid arguments to __builtin_alloca_with_align.
1121
4246c8da
MW
11222016-02-20 Mark Wielaard <mjw@redhat.com>
1123
1124 PR c/28901
1125 * c.opt (Wunused-const-variable): Turn into Alias for...
1126 (Wunused-const-variable=): New option.
1127
268be88c
BE
11282016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
1129
1130 PR c++/69865
1131 * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
1132 here...
1133 (c_common_init_options): ...to here.
1134 (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
1135
871b3f47
JJ
11362016-02-19 Jakub Jelinek <jakub@redhat.com>
1137
1138 PR c++/69826
1139 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
1140 (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
1141 flag_preprocess_only.
1142
bf14eba2
JJ
11432016-02-16 Jakub Jelinek <jakub@redhat.com>
1144
1145 PR c/69835
1146 * c.opt (Wnonnull-compare): Enable for -Wall.
1147
ba6b3795
JJ
11482016-02-15 Jakub Jelinek <jakub@redhat.com>
1149
1150 PR c++/69797
1151 * c-common.c (sync_resolve_size): Diagnose too few arguments
1152 even when params is non-NULL empty vector.
1153
a011cd92
BS
11542016-02-08 Bernd Schmidt <bschmidt@redhat.com>
1155
1156 PR target/60410
1157 * c.opt (fshort-double): Remove.
1158
46cb9332
MS
11592016-02-05 Martin Sebor <msebor@redhat.com>
1160
1161 PR c++/69662
1162 * c.opt (Warning options): Update -Wplacement-new to take
1163 an optional argument.
1164
e1b81f2b
JJ
11652016-02-01 Jakub Jelinek <jakub@redhat.com>
1166
1167 PR preprocessor/69543
1168 PR c/69558
1169 * c-pragma.c (handle_pragma_diagnostic): Pass input_location
1170 instead of loc to control_warning_option.
1171
b6adbb9f
NS
11722016-02-01 Nathan Sidwell <nathan@codesourcery.com>
1173
1174 * c.opt (fopenacc-dim=): New option.
1175
5d70666e
RB
11762016-01-27 Ryan Burn <contact@rnburn.com>
1177
1178 PR cilkplus/69267
1179 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
1180 gimplify_arg. Removed superfluous post_p argument.
1181 * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
1182 superfluous post_p argument.
1183 * c-gimplify.c (c_gimplify_expr): Likewise.
1184
01e1dea3
DM
11852016-01-26 David Malcolm <dmalcolm@redhat.com>
1186
1187 PR other/69006
1188 * c-opts.c (c_diagnostic_finalizer): Replace invocation of
1189 pp_newline_and_flush with pp_flush.
1190
9f04a53e
MS
11912016-01-20 Martin Sebor <msebor@redhat.com>
1192
1193 PR c/69405
1194 * c-common.c (sync_resolve_size): Avoid printing diagnostic about
1195 an incompatible argument when the argument isn't a valid tree node.
1196
7f26f7df
JM
11972016-01-18 Jason Merrill <jason@redhat.com>
1198
1199 PR c++/68767
1200 * c-common.c (check_function_arguments_recurse): Fold the whole
1201 COND_EXPR, not just the condition.
1202
f62bf092
TV
12032016-01-18 Tom de Vries <tom@codesourcery.com>
1204
1205 * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
1206 classify as loop clause.
1207
e0a575ff
JJ
12082016-01-15 Jakub Jelinek <jakub@redhat.com>
1209
1210 PR bootstrap/68271
1211 * c-pragma.c (c_register_pragma_1): Adjust comment to note that
1212 C++ FE no longer has limit on number of pragmas.
1213
12142015-01-14 Ryan Burn <contact@rnburn.com>
b6e3db06
RB
1215
1216 PR c++/69048
1217 * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
c47eaca6 1218 to add missing cleanup point.
b6e3db06 1219
c7df95d8
DM
12202016-01-14 David Malcolm <dmalcolm@redhat.com>
1221
1222 PR c++/68819
1223 * c-indentation.c (get_visual_column): Add location_t param.
1224 Handle the column number being zero by effectively disabling the
1225 warning, with an "inform".
1226 (should_warn_for_misleading_indentation): Add location_t argument
1227 for all uses of get_visual_column.
1228
21efdd80
PP
12292016-01-10 Patrick Palka <ppalka@gcc.gnu.org>
1230
1231 PR c++/69029
1232 * c-indentation.c (should_warn_for_misleading_indentation):
1233 Don't warn about do-while statements.
1234
7a127fa7
MS
12352016-01-07 Martin Sebor <msebor@redhat.com>
1236
1237 PR c/68966
1238 * c-common.c (sync_resolve_size): Reject first argument when it's
1239 a pointer to _Bool.
1240
c589e975
DM
12412016-01-05 David Malcolm <dmalcolm@redhat.com>
1242
1243 PR c/69122
1244 * c-indentation.c (get_visual_column): Remove default argument.
1245 (should_warn_for_misleading_indentation): For the multiline case,
1246 update call to get_visual_column for next_stmt_exploc so that it
1247 captures the location of the first non-whitespace character in the
1248 relevant line. Don't issue warnings if there is non-whitespace
1249 before the next statement.
1250
818ab71a
JJ
12512016-01-04 Jakub Jelinek <jakub@redhat.com>
1252
1253 Update copyright years.
1254
745e411d
DM
12552015-12-21 David Malcolm <dmalcolm@redhat.com>
1256
1257 * c-common.c (binary_op_error): Convert first param from
1258 location_t to rich_location * and use it when emitting an error.
1259 * c-common.h (binary_op_error): Convert first param from
1260 location_t to rich_location *.
1261
de67c4c3
DM
12622015-12-16 David Malcolm <dmalcolm@redhat.com>
1263
1264 * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
1265 * c-lex.c (conflict_marker_get_final_tok_kind): New function.
1266
4a38b02b
IV
12672015-12-15 Ilya Verbin <ilya.verbin@intel.com>
1268
1269 * c-common.c (c_common_attribute_table): Handle "omp declare target
1270 link" attribute.
1271
54d62f51
JJ
12722015-12-14 Jakub Jelinek <jakub@redhat.com>
1273
1274 PR c/68833
1275 * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
1276
8d4227c8
TB
12772014-12-12 Tobias Burnus <burnus@net-b.de>
1278
1279 PR fortran/68815
1280 * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
1281 specifiers (%d, %i,%u and %c).
1282
f6069ccc
DM
12832015-12-10 David Malcolm <dmalcolm@redhat.com>
1284
1285 * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
1286
63bbf46d
JJ
12872015-12-08 Jakub Jelinek <jakub@redhat.com>
1288
1289 PR c/48088
1290 PR c/68657
1291 * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
1292 * c-pragma.c (handle_pragma_diagnostic): Adjust
1293 control_warning_option caller.
1294
f79520bb
DM
12952015-12-07 David Malcolm <dmalcolm@redhat.com>
1296
1297 * c-common.c (c_cpp_error): Update for change to
1298 rich_location::set_range.
1299
b3d5bc62
JJ
13002015-12-04 Paolo Bonzini <bonzini@gnu.org>
1301
1302 * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
1303 shifting 1 out of the sign bit.
1304
13052015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
1306
1307 * c-common.c (c_common_attribute_table[]): Update max arguments
1308 count for "simd" attribute.
1309 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
1310
6eb4a537
JJ
13112015-12-03 Jakub Jelinek <jakub@redhat.com>
1312
1313 PR preprocessor/57580
1314 * c-ppoutput.c (print): Change printed field to bool.
1315 Move src_file last for smaller padding.
1316 (init_pp_output): Set print.printed to false instead of 0.
1317 (scan_translation_unit): Fix up formatting. Set print.printed
1318 to true after printing something other than newline.
1319 (scan_translation_unit_trad): Set print.printed to true instead of 1.
1320 (maybe_print_line_1): Set print.printed to false instead of 0.
1321 (print_line_1): Likewise.
1322 (do_line_change): Set print.printed to true instead of 1.
1323 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
1324 dump_macro): Set print.printed to false after printing newline.
1325
4250754e
JM
13262015-12-02 Jason Merrill <jason@redhat.com>
1327
f479b43d
JM
1328 * c-common.c (fold_for_warn): New.
1329 (warn_logical_operator, warn_tautological_cmp)
1330 (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
1331
4250754e
JM
1332 * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
1333 (c_fully_fold_internal, decl_constant_value_for_optimization):
1334 Move to c/c-fold.c.
1335 * c-common.h: Don't declare decl_constant_value_for_optimization.
1336
e9e32ee6
JM
13372015-12-02 Joseph Myers <joseph@codesourcery.com>
1338
1339 PR c/68162
1340 * c-common.h (c_build_qualified_type): Add extra default
1341 arguments.
1342
37d5ad46
JB
13432015-12-01 Julian Brown <julian@codesourcery.com>
1344 Cesar Philippidis <cesar@codesourcery.com>
1345 James Norris <James_Norris@mentor.com>
1346
1347 * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
1348 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
1349 (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
1350
f07862c7
EB
13512015-11-30 Eric Botcazou <ebotcazou@adacore.com>
1352
1353 * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
1354 (decl_sloc_common): Delete and move bulk of processing to...
1355 (decl_sloc): ...here.
1356 (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
1357 (dump_ada_double_name): Remove S parameter and compute the suffix.
1358 (dump_ada_array_type): Add PARENT parameter. Simplify computation of
1359 element type and deal with an anonymous one.
1360 (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
1361 (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type
1362 and remove reference to QUAL_UNION_TYPE.
1363 (dump_nested_types): Make 2 passes on the fields and move bulk to...
1364 (dump_nested_type): ...here. New function extracted from above.
1365 Generate a full declaration for anonymous element type of arrays.
1366 (print_ada_declaration): Really skip anonymous declarations. Remove
1367 references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type.
1368 Clean up processing of declarations of array types and objects.
1369 (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
1370 Remove obsolete code and tidy up.
1371
75c8aac3
JH
13722015-11-29 Jan Hubicka <hubicka@ucw.cz>
1373
1374 PR c/67581
1375 * c-common.c (handle_transparent_union_attribute): Update
1376 also type variants.
1377
b58d3df2
ML
13782015-11-27 Martin Liska <mliska@suse.cz>
1379
1380 PR c++/68312
1381 * array-notation-common.c (cilkplus_extract_an_triplets):
1382 Release vector of vectors.
1383 * cilk.c (gimplify_cilk_spawn): Free allocated memory.
1384
89a01fcf
EB
13852015-11-26 Eric Botcazou <ebotcazou@adacore.com>
1386
1387 PR c++/68527
1388 * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
1389 (print_ada_struct_decl): Likewise.
1390
cc5c5226
IZ
13912015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
1392
1393 PR c++/68001
1394 * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
1395 * cilk.c (recognize_spawn): Determine location in a more precise
1396 way.
1397
269adb9d
JM
13982015-11-19 Jason Merrill <jason@redhat.com>
1399
1400 * c-common.c (shorten_compare): But look through macros from
1401 system headers.
1402
d0eccfcd
JM
14032015-11-18 Jason Merrill <jason@redhat.com>
1404
1405 * c-common.c (shorten_compare): Don't -Wtype-limits if the
1406 non-constant operand comes from a macro.
1407
3e44547c
JM
14082015-11-17 Jason Merrill <jason@redhat.com>
1409
1410 PR bootstrap/68346
1411 * c-common.c (warn_tautological_cmp): Fold before checking for
1412 constants.
1413
0f62c7a0
MP
14142015-11-16 Marek Polacek <polacek@redhat.com>
1415
1416 PR c++/68362
1417 * c-common.c (check_case_bounds): Fold low and high cases.
1418
a868811e
MP
14192015-11-16 Marek Polacek <polacek@redhat.com>
1420
1421 * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
1422 * c-common.c (c_common_get_alias_set): Likewise.
1423 (handle_visibility_attribute): Likewise.
1424
fff77217
KY
14252015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
1426
1427 * c-common.c (handle_simd_attribute): New.
1428 (struct attribute_spec): Add entry for "simd".
1429 (handle_simd_attribute): New.
1430
269e63b7
KT
14312015-11-13 Kai Tietz <ktietz70@googlemail.com>
1432
1433 * c-lex.c (interpret_float): Use fold_convert.
1434
ebedc9a3
DM
14352015-11-13 David Malcolm <dmalcolm@redhat.com>
1436
1437 * c-common.c (c_fully_fold_internal): Capture existing souce_range,
1438 and store it on the result.
1439 * c-opts.c (c_common_init_options): Set
1440 global_dc->colorize_source_p.
1441
6e232ba4
JN
14422015-11-12 James Norris <jnorris@codesourcery.com>
1443 Joseph Myers <joseph@codesourcery.com>
1444
1445 * c-pragma.c (oacc_pragmas): Add entry for declare directive.
1446 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
1447 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
1448 PRAGMA_OACC_CLAUSE_LINK.
1449
e78bede6
MP
14502015-11-11 Marek Polacek <polacek@redhat.com>
1451
1452 PR c/68107
1453 PR c++/68266
1454 * c-common.c (valid_array_size_p): New function.
1455 * c-common.h (valid_array_size_p): Declare.
1456
3f8257db 14572015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
4ac93c7c
DH
1458
1459 PR bootstrap/68271
1460 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
1461
69f293c9
AM
14622015-11-11 Andrew MacLeod <amacleod@redhat.com>
1463
1464 * array-notation-common.c: Remove unused header files.
1465 * c-ada-spec.c: Likewise.
1466 * c-cilkplus.c: Likewise.
1467 * c-common.c: Likewise.
1468 * c-cppbuiltin.c: Likewise.
1469 * c-dump.c: Likewise.
1470 * c-format.c: Likewise.
1471 * c-gimplify.c: Likewise.
1472 * c-indentation.c: Likewise.
1473 * c-lex.c: Likewise.
1474 * c-omp.c: Likewise.
1475 * c-opts.c: Likewise.
1476 * c-pch.c: Likewise.
1477 * c-ppoutput.c: Likewise.
1478 * c-pragma.c: Likewise.
1479 * c-pretty-print.c: Likewise.
1480 * c-semantics.c: Likewise.
1481 * c-ubsan.c: Likewise.
1482 * cilk.c: Likewise.
1483 * stub-objc.c: Likewise.
1484
3a40d81d
NS
14852015-11-09 Thomas Schwinge <thomas@codesourcery.com>
1486 Cesar Philippidis <cesar@codesourcery.com>
1487 James Norris <jnorris@codesourcery.com>
1488 Julian Brown <julian@codesourcery.com>
1489 Nathan Sidwell <nathan@codesourcery.com>
1490
1491 * c-pragma.c (oacc_pragmas): Add "routine".
1492 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
1493
ee45a32d
EB
14942015-11-08 Eric Botcazou <ebotcazou@adacore.com>
1495
1496 * c-common.c (c_common_attributes): Add scalar_storage_order.
1497 (handle_scalar_storage_order_attribute): New function.
1498 * c-pragma.c (global_sso): New variable.
1499 (maybe_apply_pragma_scalar_storage_order): New function.
1500 (handle_pragma_scalar_storage_order): Likewise.
1501 (init_pragma): Register scalar_storage_order.
1502 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
1503 * c.opt (Wscalar-storage-order): New warning.
1504 (fsso-struct=): New option.
1505
eb11eb15
MS
15062015-11-08 Martin Sebor <msebor@redhat.com>
1507
1508 * c.opt (Wplacement-new): Add a period to the end of a sentence.
1509
0aad0198
RS
15102015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1511
1512 * c-common.c: Don't undef DEF_BUILTIN.
1513
8a645150
DM
15142015-11-06 David Malcolm <dmalcolm@redhat.com>
1515
1516 * c-common.c (c_cpp_error): Convert parameter from location_t to
1517 rich_location *. Eliminate the "column_override" parameter and
1518 the call to diagnostic_override_column.
1519 Update the "done_lexing" clause to set range 0
1520 on the rich_location, rather than overwriting a location_t.
1521 * c-common.h (c_cpp_error): Convert parameter from location_t to
1522 rich_location *. Eliminate the "column_override" parameter.
1523
7a5e4956
CP
15242015-11-05 Cesar Philippidis <cesar@codesourcery.com>
1525 Thomas Schwinge <thomas@codesourcery.com>
1526 James Norris <jnorris@codesourcery.com>
1527
1528 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
1529 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
1530 clauses with parallel and kernels and loops.
1531 * c-pragma.h (enum pragma_omp_clause): Add entries for
1532 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
1533 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
1534 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
1535 INDEPENDENT,SEQ}.
1536 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
1537
e2f5cc96
MS
15382015-11-05 Martin Sebor <msebor@redhat.com>
1539
1540 PR c++/67942
1541 * c.opt (-Wplacement-new): New option.
1542
e01d41e5
JJ
15432015-11-05 Jakub Jelinek <jakub@redhat.com>
1544
1545 * c-common.h (c_finish_omp_atomic): Add TEST argument.
1546 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
1547 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
1548 save_expr or create_tmp_var* if TEST is true.
1549 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
1550 Don't call add_stmt here.
1551 (struct c_omp_check_loop_iv_data): New type.
1552 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
1553 c_omp_check_loop_iv_exprs): New functions.
1554 (c_omp_split_clauses): Adjust for lastprivate being allowed on
1555 distribute.
1556 (c_omp_declare_simd_clauses_to_numbers): Change
1557 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
1558 (c_omp_declare_simd_clauses_to_decls): Similarly change those
1559 from numbers to PARM_DECLs.
1560
595278be
MM
15612015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
1562
1563 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
1564 flag_checking.
1565
3f8257db 15662015-11-03 Bernd Schmidt <bschmidt@redhat.com>
c85158de
MS
1567
1568 PR c++-common/67882
b3d5bc62
JJ
1569 * c-common.h (fold_offsetof_1): Add argument.
1570 * c-common.c (fold_offsetof_1): Diagnose more invalid
c85158de
MS
1571 offsetof expressions that reference elements past the end of
1572 an array.
1573
4bf9e5a8
TS
15742015-11-03 Thomas Schwinge <thomas@codesourcery.com>
1575 Chung-Lin Tang <cltang@codesourcery.com>
1576
1577 * c-pragma.c (oacc_pragmas): Add "atomic".
1578 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
1579
3b1661a9
ES
15802015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
1581
1582 * c-common.c (handle_target_clones_attribute): New.
1583 (c_common_attribute_table): Add handle_target_clones_attribute.
1584 (handle_always_inline_attribute): Add check on target_clones attribute.
1585 (handle_target_attribute): Ditto.
1586
2adfab87
AM
15872015-10-29 Andrew MacLeod <amacleod@redhat.com>
1588
1589 * array-notation-common.c: Reorder #include's and remove duplicates.
1590 * c-ada-spec.c: Likewise.
1591 * c-cilkplus.c: Likewise.
1592 * c-common.c: Likewise.
1593 * c-cppbuiltin.c: Likewise.
1594 * c-dump.c: Likewise.
1595 * c-format.c: Likewise.
1596 * c-gimplify.c: Likewise.
1597 * c-indentation.c: Likewise.
1598 * c-lex.c: Likewise.
1599 * c-omp.c: Likewise.
1600 * c-opts.c: Likewise.
1601 * c-pch.c: Likewise.
1602 * c-ppoutput.c: Likewise.
1603 * c-pragma.c: Likewise.
1604 * c-pretty-print.c: Likewise.
1605 * c-semantics.c: Likewise.
1606 * c-ubsan.c: Likewise.
1607 * cilk.c: Likewise.
1608 * stub-objc.c: Likewise.
1609
d90ec4f2
JM
16102015-10-28 Jason Merrill <jason@redhat.com>
1611
1612 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
1613
88bae6f4
TS
16142015-10-27 Thomas Schwinge <thomas@codesourcery.com>
1615 James Norris <jnorris@codesourcery.com>
1616 Cesar Philippidis <cesar@codesourcery.com>
1617
1618 PR c/64765
1619 PR c/64880
1620 * c-common.h (c_oacc_split_loop_clauses): Declare function.
1621 * c-omp.c (c_oacc_split_loop_clauses): New function.
1622
b1726d6c
MS
16232015-10-21 Martin Sebor <msebor@redhat.com>
1624
1625 PR driver/68043
1626 * c.opt: End each sentence that describes an option with a period.
1627
fa60eeb9
MP
16282015-10-20 Marek Polacek <polacek@redhat.com>
1629
1630 * array-notation-common.c (is_cilkplus_vector_p): Define.
1631 * c-common.h (is_cilkplus_vector_p): Declare.
1632
95979049
MP
16332015-10-20 Marek Polacek <polacek@redhat.com>
1634
1635 * c.opt (std=gnu++11): Do not describe as experimental.
1636 (std=gnu++14): Likewise.
1637
2a9fb712
JM
16382015-10-19 Jason Merrill <jason@redhat.com>
1639
1640 * c-cppbuiltin.c (c_cpp_builtins): Define
1641 __cpp_nontype_template_args.
1642
13b380a3
JM
16432015-10-19 Jason Merrill <jason@redhat.com>
1644
1645 * c-cppbuiltin.c (c_cpp_builtins): Define
1646 __cpp_enumerator_attributes, __cpp_fold_expressions,
1647 __cpp_unicode_characters.
1648
d9a6bd32
JJ
16492015-10-13 Jakub Jelinek <jakub@redhat.com>
1650 Aldy Hernandez <aldyh@redhat.com>
1651
1652 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
1653 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
1654 (c_define_builtins): Likewise.
1655 * c-common.h (enum c_omp_clause_split): Add
1656 C_OMP_CLAUSE_SPLIT_TASKLOOP.
1657 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
1658 (c_finish_omp_for): Add ORIG_DECLV argument.
1659 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
1660 201511 instead of 201307.
1661 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
1662 OMP_CRITICAL_CLAUSES to it.
1663 (c_finish_omp_ordered): Add CLAUSES argument, set
1664 OMP_ORDERED_CLAUSES to it.
1665 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
1666 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
1667 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
1668 constructs and new OpenMP 4.5 clauses. Clear
1669 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
1670 verification code.
1671 * c-pragma.c (omp_pragmas_simd): Add taskloop.
1672 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
1673 (enum pragma_omp_clause): Add
1674 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
1675 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
1676
624d31fe
RS
16772015-10-05 Richard Sandiford <richard.sandiford@arm.com>
1678
1679 * c-lex.c (interpret_float): Use real_equal instead of
1680 REAL_VALUES_EQUAL.
1681
b8fd7909
JM
16822015-10-04 Jason Merrill <jason@redhat.com>
1683
1684 Implement N4514, C++ Extensions for Transactional Memory.
1685 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
1686 (c_common_attribute_table): Add transaction_safe_dynamic.
1687 transaction_safe now affects type identity.
1688 (handle_tm_attribute): Handle transaction_safe_dynamic.
1689 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
1690 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
1691 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
1692 (D_TRANSMEM): New.
1693 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
1694 * c-pretty-print.c (pp_c_attributes_display): Don't print
1695 transaction_safe in C++.
1696
12651878
MP
16972015-10-02 Marek Polacek <polacek@redhat.com>
1698
1699 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
1700
3e3b8d63
MP
17012015-10-02 Marek Polacek <polacek@redhat.com>
1702
1703 PR c/64249
1704 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
1705 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
1706 * c.opt (Wduplicated-cond): New option.
1707
0d1a8f75
JM
17082015-10-01 Joseph Myers <joseph@codesourcery.com>
1709
1710 * c.opt (std=c11): Do not describe as experimental.
1711 (std=gnu11): Likewise.
1712 (std=iso9899:2011): Likewise.
1713
3e32ee19
NS
17142015-09-28 Nathan Sidwell <nathan@codesourcery.com>
1715
1716 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
1717 (DEF_FUNCTION_TYPE_VAR_11): Delete.
1718
974348ee
MP
17192015-09-25 Marek Polacek <polacek@redhat.com>
1720
1721 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
1722 (ubsan_instrument_shift): Likewise.
1723
15dbc1a6
MP
17242015-09-25 Marek Polacek <polacek@redhat.com>
1725
1726 PR sanitizer/64906
1727 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
1728
6b95d7cc
PP
17292015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
1730
1731 * c-indentation.c (should_warn_for_misleading_indentation):
1732 Compare next_stmt_vis_column with guard_line_first_nws instead
1733 of with guard_line_vis_column.
1734
c1822f9c
MLI
17352015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
1736
1737 PR c/49654
1738 PR c/49655
1739 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
1740 options and options not valid for the current language.
1741
d5398058
PP
17422015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
1743
1744 * c-indentation.c (should_warn_for_misleading_indentation):
1745 Float out and consolidate the calls to get_visual_column that
1746 are passed guard_exploc as an argument. Compare
1747 next_stmt_vis_column with guard_line_first_nws instead of with
1748 body_line_first_nws.
1749
6b333269
NS
17502015-09-22 Nathan Sidwell <nathan@codesourcery.com>
1751
1752 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
1753 Wnamespaces): New C++ warnings.
1754
a75f1574
JM
17552015-09-22 Jason Merrill <jason@redhat.com>
1756
1757 * c-common.h (abi_compat_version_crosses): New.
1758 (warn_abi_version): Declare.
1759 * c-common.c: Define it.
1760 * c-opts.c (c_common_post_options): Handle it.
1761 flag_abi_compat_version defaults to 8.
1762
bdaaa8b7
VV
17632015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
1764
1765 Complete the implementation of N4230, Nested namespace definition.
1766 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
1767 __cpp_nested_namespace_definitions.
1768
eaa797e8
MLI
17692015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
1770
1771 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
1772
c4914de6
MLI
17732015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
1774
1775 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
1776 when warning.
1777 * c-pragma.h (pragma_lex): Add optional loc argument.
1778
fcb87c50
MM
17792015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
1780
1781 * c-format.c (check_format_arg): Adjust to use common block size in all
1782 object pools.
1783
31bdd08a
DM
17842015-09-15 David Malcolm <dmalcolm@redhat.com>
1785
1786 * c-format.c (location_from_offset): Update for change in
1787 signature of location_get_source_line.
1788 * c-indentation.c (get_visual_column): Likewise.
1789 (line_contains_hash_if): Likewise.
1790
aa9f4b4c
MP
17912015-09-14 Marek Polacek <polacek@redhat.com>
1792
1793 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
1794 setting various warnings.
1795
aa256c4a
MP
17962015-09-14 Marek Polacek <polacek@redhat.com>
1797
1798 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
1799 a negative value.
1800
0f876f22
MW
18012015-09-11 Mark Wielaard <mjw@redhat.com>
1802
1803 PR c/28901
1804 * c.opt (Wunused-variable): Option from common.opt.
1805 (Wunused-const-variable): New option.
1806
273aa49e
PC
18072015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
1808
1809 PR c++/53184
1810 * c.opt ([Wsubobject-linkage]): Add.
1811
1807ffc1
MS
18122015-09-03 Martin Sebor <msebor@redhat.com>
1813
1814 PR c/66516
1815 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
1816 functions.
1817 * c-common.c (reject_gcc_builtin): Define.
1818
38942840
BI
18192015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
1820
1821 PR middle-end/60586
1822 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
1823 prototype.
1824 * c-gimplify.c (c_gimplify_expr): Added a call to the function
1825 cilk_gimplify_call_params_in_spawned_fn.
1826 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
1827 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
1828 unwrapping.
1829
c316b5e4
MP
18302015-08-25 Marek Polacek <polacek@redhat.com>
1831
1832 PR middle-end/67330
1833 * c-common.c (handle_weak_attribute): Don't check whether the
1834 visibility can be changed here.
1835
584a7c46
MLI
18362015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1837
1838 * c-lex.c (c_lex_with_flags): Use explicit locations.
1839
a79683d5
TS
18402015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
1841
1842 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
1843 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
1844
61717a45
FXC
18452015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1846
1847 PR middle-end/36757
1848 * c-common.c (check_builtin_function_arguments): Add check
1849 for BUILT_IN_SIGNBIT argument.
1850
329524f5
PC
18512015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
1852
1853 PR c++/67160
1854 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
1855 in c++1z mode.
1856
4ee55665
MP
18572015-08-17 Marek Polacek <polacek@redhat.com>
1858
1859 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
1860 with whitespaces before qualifier names.
1861
b893e375
MP
18622015-08-12 Marek Polacek <polacek@redhat.com>
1863
1864 PR c++/55095
1865 * c-common.c (maybe_warn_shift_overflow): Properly handle
1866 left-shifting 1 into the sign bit.
1867
c2d89095
MLI
18682015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1869
1870 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
1871
971e17ff
AS
18722015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
1873 Braden Obrzut <admin@maniacsvault.net>
1874 Jason Merrill <jason@redhat.com>
1875
1876 Add C++ Concepts TS support.
1877 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
1878 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
1879 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
1880 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
1881 * c-opts.c (set_std_cxx1z): Set flag_concepts.
1882 * c.opt (fconcepts): New.
1883
b3d5bc62
JJ
18842015-08-02 Martin Sebor <msebor@redhat.com>
1885
1886 * c.opt (-Wframe-address): New warning option.
1887
8ebca419
PP
18882015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1889
1890 * c-indentation.c (should_warn_for_misleading_indentation):
1891 Improve heuristics.
1892
1a1e101f
PP
18932015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1894
1895 * c-indentation.c (get_visual_column): Add parameter first_nws,
1896 use it. Update comment documenting the function.
1897 (is_first_nonwhitespace_on_line): Remove.
1898 (should_warn_for_misleading_indentation): Replace usage of
1899 of is_first_nonwhitespace_on_line with get_visual_column.
1900
992118a1
PP
19012015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1902
1903 * c-indentation.h (struct token_indent_info): Define.
1904 (get_token_indent_info): Define.
1905 (warn_for_misleading_information): Declare.
1906 * c-common.h (warn_for_misleading_information): Remove.
1907 * c-identation.c (warn_for_misleading_indentation):
1908 Change declaration to take three token_indent_infos. Adjust
1909 accordingly.
1910 * c-identation.c (should_warn_for_misleading_indentation):
1911 Likewise. Bail out early if the body is a compound statement.
1912 (guard_tinfo_to_string): Define.
1913
e8fa3817
JM
19142015-07-30 Jason Merrill <jason@redhat.com>
1915
1916 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
1917 '*' for reference decay.
1918
173864e8
MP
19192015-07-30 Marek Polacek <polacek@redhat.com>
1920
1921 * c-common.c (warn_tautological_cmp): Bail for float types.
1922
f2afe6dd
MP
19232015-07-27 Marek Polacek <polacek@redhat.com>
1924
1925 PR bootstrap/67030
1926 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
1927
05b28fd6
MP
19282015-07-27 Marek Polacek <polacek@redhat.com>
1929
1930 PR c++/66555
1931 PR c/54979
1932 * c-common.c (find_array_ref_with_const_idx_r): New function.
1933 (warn_tautological_cmp): New function.
1934 * c-common.h (warn_tautological_cmp): Declare.
1935 * c.opt (Wtautological-compare): New option.
1936
5a5062b8
MP
19372015-07-23 Marek Polacek <polacek@redhat.com>
1938
1939 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
1940 (ubsan_instrument_shift): Likewise.
1941
dc891fe7
MP
19422015-07-23 Marek Polacek <polacek@redhat.com>
1943
1944 PR sanitizer/66908
1945 * c-ubsan.c: Include gimplify.h.
1946 (ubsan_instrument_division): Unshare OP0 and OP1.
1947 (ubsan_instrument_shift): Likewise.
1948
451b5e48
MP
19492015-07-20 Marek Polacek <polacek@redhat.com>
1950 Richard Sandiford <richard.sandiford@arm.com>
1951
1952 PR c++/55095
1953 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
1954 Use EXPR_LOC_OR_LOC.
1955 (maybe_warn_shift_overflow): New function.
1956 * c-common.h (maybe_warn_shift_overflow): Declare.
1957 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
1958 * c.opt (Wshift-overflow): New option.
1959
fb0b2914
ML
19602015-07-16 Martin Liska <mliska@suse.cz>
1961
1962 * c-format.c (static void check_format_info_main): Use
1963 object_allocator instead of pool_allocator.
1964 (check_format_arg): Likewise.
1965 (check_format_info_main): Likewise.
1966
903f5c23
AM
19672015-07-15 Andrew MacLeod <amacleod@redhat.com>
1968
1969 * c-opts.c: Remove multiline #include comment.
1970
026c3cfd
AH
19712015-07-12 Aldy Hernandez <aldyh@redhat.com>
1972
1973 * c-common.c: Fix double word typos.
1974
bb49ee66
EB
19752015-07-10 Eric Botcazou <ebotcazou@adacore.com>
1976
1977 * c-ada-spec.h (cpp_operation): Revert latest change.
1978 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
1979 constructors and destructors.
1980
1916bcb5
AM
19812015-07-09 Andrew MacLeod <amacleod@redhat.com>
1982
1983 * c-common.h: Adjust includes for flags.h changes.
1984 * stub-objc.c: Likewise.
026c3cfd 1985
a9dcd529
EB
19862015-07-08 Eric Botcazou <ebotcazou@adacore.com>
1987
1988 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
1989 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
1990
b03b462f
JJ
19912015-07-08 Jakub Jelinek <jakub@redhat.com>
1992
1993 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
1994 are to be removed, return NULL rather than original clauses list.
1995
c7131fb2
AM
19962015-07-07 Andrew MacLeod <amacleod@redhat.com>
1997
1998 * array-notation-common.c: Adjust includes.
1999 * c-ada-spec.c: Likewise.
2000 * c-cilkplus.c: Likewise.
2001 * c-common.h: Likewise.
2002 * c-cppbuiltin.c: Likewise.
2003 * c-dump.c: Likewise.
2004 * c-format.c: Likewise.
2005 * c-gimplify.c: Likewise.
2006 * c-indentation.c: Likewise.
2007 * c-lex.c: Likewise.
2008 * c-omp.c: Likewise.
2009 * c-opts.c: Likewise.
2010 * c-pch.c: Likewise.
2011 * c-ppoutput.c: Likewise.
2012 * c-pragma.c: Likewise.
2013 * c-pretty-print.c: Likewise.
2014 * c-semantics.c: Likewise.
2015 * c-ubsan.c: Likewise.
2016 * cilk.c: Likewise.
2017 * stub-objc.c: Likewise.
2018
2a7fb83f
EB
20192015-07-07 Eric Botcazou <ebotcazou@adacore.com>
2020
2021 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
2022 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
2023
a03c9bf1
JM
20242015-07-01 Jason Merrill <jason@redhat.com>
2025
36a85135
JM
2026 * c-common.h (D_CXX11): Rename from D_CXX0X.
2027 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
2028 * c-common.c: Adjust.
2029
e7fa68d5
JM
2030 * c-opts.c (c_common_post_options): Default to C++14.
2031
a03c9bf1
JM
2032 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
2033
fe95b036
ESR
20342015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
2035
2036 Implement N4197 - Adding u8 character literals
b3d5bc62 2037 * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
a64be36b 2038 CPP_CHAR.
b3d5bc62 2039 * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
a64be36b 2040 CPP_UTF8CHAR_USERDEF tokens.
b3d5bc62 2041 * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
a64be36b
EB
2042 and CPP_UTF8CHAR tokens.
2043 (lex_charconst): Treat CPP_UTF8CHAR token.
fe95b036 2044
da2e71c9
MLI
20452015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2046
2047 PR fortran/66605
2048 * c-common.c (do_warn_unused_parameter): Move here.
2049 * c-common.h (do_warn_unused_parameter): Declare.
2050
b155cfd9
MP
20512015-06-29 Marek Polacek <polacek@redhat.com>
2052
2053 PR c/66322
2054 * c-common.c (check_case_bounds): Add bool * parameter. Set
2055 OUTSIDE_RANGE_P.
2056 (c_add_case_label): Add bool * parameter. Pass it down to
2057 check_case_bounds.
2058 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
2059 warning here.
2060 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
2061 declarations.
2062
31521951
MP
20632015-06-27 Marek Polacek <polacek@redhat.com>
2064
2065 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
2066 or VECTOR_INTEGER_TYPE_P throughout.
2067 * c-gimplify.c: Likewise.
2068
22d03525
MP
20692015-06-26 Marek Polacek <polacek@redhat.com>
2070
2071 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
2072 * c-common.c (c_fully_fold_internal): Likewise.
2073 (c_alignof_expr): Likewise.
2074 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
2075 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
b1726d6c 2076 * cilk.c (create_parm_list): Likewise.
22d03525 2077
af05e6e5
MP
20782015-06-26 Marek Polacek <polacek@redhat.com>
2079
2080 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
2081
f0889939
AM
20822015-06-25 Andrew MacLeod <amacleod@redhat.com>
2083
2084 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
2085 * c-gimplify.c: Likewise.
2086 * c-pragma.c: Likewise.
2087 * c-ubsan.c: Likewise.
2088 * cilk.c: Likewise.
2089
ca752f39
RS
20902015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2091
2092 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
2093 ggc_hasher.
2094
16a16ec7
AM
20952015-06-25 Andrew MacLeod <amacleod@redhat.com>
2096
2097 * cilk.c: Move calls.h after tm.h in the include chain.
2098
0ae9bd27
MP
20992015-06-25 Marek Polacek <polacek@redhat.com>
2100
2101 * array-notation-common.c: Use VAR_P throughout.
2102 * c-ada-spec.c: Likewise.
2103 * c-common.c: Likewise.
2104 * c-format.c: Likewise.
2105 * c-gimplify.c: Likewise.
2106 * c-omp.c: Likewise.
2107 * c-pragma.c: Likewise.
2108 * c-pretty-print.c: Likewise.
2109 * cilk.c: Likewise.
2110
62f9079a
MP
21112015-06-25 Marek Polacek <polacek@redhat.com>
2112
2113 * cilk.c (extract_free_variables): Use is_global_var.
2114
0fa16060
RS
21152015-06-23 Richard Sandiford <richard.sandiford@arm.com>
2116
2117 * c-common.c: Don't include target-def.h.
2118
a68ae2e1
MP
21192015-06-23 Marek Polacek <polacek@redhat.com>
2120
2121 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
2122 when comparing INTEGER_CSTs.
2123
c6a2f2d9
PMR
21242015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
2125
2126 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
2127 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
2128 (dump_ada_template): Skip partially specialized types.
2129
6b4db501
MM
21302015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
2131
2132 * c-common.c (scalar_to_vector): Use std::swap instead of manually
2133 swapping.
2134
abb226c9
AM
21352015-06-17 Andrew MacLeod <amacleod@redhat.com>
2136
2137 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
2138 * c-ada-spec.c: Likewise.
2139 * c-cilkplus.c: Likewise.
2140 * c-common.c: Likewise.
2141 * c-common.h: Likewise.
2142 * c-cppbuiltin.c: Likewise.
2143 * c-dump.c: Likewise.
2144 * c-format.c: Likewise.
2145 * c-gimplify.c: Likewise.
2146 * c-indentation.c: Likewise.
2147 * c-lex.c: Likewise.
2148 * c-omp.c: Likewise.
2149 * c-opts.c: Likewise.
2150 * c-pch.c: Likewise.
2151 * c-ppoutput.c: Likewise.
2152 * c-pragma.c: Likewise.
2153 * c-pretty-print.c: Likewise.
2154 * c-semantics.c: Likewise.
2155 * c-ubsan.c: Likewise.
2156 * cilk.c: Likewise.
2157 * stub-objc.c: Likewise.
2158
076fecad
PP
21592015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
2160
2161 PR c++/65168
2162 * c-common.c (c_common_truthvalue_conversion): Warn when
2163 converting an address of a reference to a truth value.
2164
13fdf2e2
AM
21652015-06-08 Andrew MacLeod <amacleod@redhat.com>
2166
2167 * array-notation-common.c : Adjust include files.
2168 * c-ada-spec.c : Likewise.
2169 * c-cilkplus.c : Likewise.
2170 * c-common.c : Likewise.
2171 * c-common.h : Likewise.
2172 * c-cppbuiltin.c : Likewise.
2173 * c-dump.c : Likewise.
2174 * c-format.c : Likewise.
2175 * c-gimplify.c : Likewise.
2176 * c-indentation.c : Likewise.
2177 * c-lex.c : Likewise.
2178 * c-omp.c : Likewise.
2179 * c-opts.c : Likewise.
2180 * c-pch.c : Likewise.
2181 * c-ppoutput.c : Likewise.
2182 * c-pragma.c : Likewise.
2183 * c-pretty-print.c : Likewise.
2184 * c-semantics.c : Likewise.
2185 * c-ubsan.c : Likewise.
2186 * cilk.c : Likewise.
2187 * stub-objc.c : Likewise.
2188
a1661b90
MP
21892015-06-08 Marek Polacek <polacek@redhat.com>
2190
2191 PR c/66415
2192 * c-format.c (location_from_offset): Return LOC if LINE is null.
2193
d7438551
AH
21942015-06-05 Aldy Hernandez <aldyh@redhat.com>
2195
2196 * c-common.h (c_parse_final_cleanups): New prototype.
2197 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
2198
b3d5bc62
JJ
21992015-06-04 Sriraman Tallam <tmsriram@google.com>
2200
2201 * c-common.c (noplt): New attribute.
2202 (handle_noplt_attribute): New handler.
2203
ecb9f223
AM
22042015-06-04 Andrew MacLeod <amacleod@redhat.com>
2205
2206 * array-notation-common.c: Adjust includes for restructured coretypes.h.
2207 * c-ada-spec.c: Likewise.
2208 * c-cilkplus.c: Likewise.
2209 * c-common.c: Likewise.
2210 * c-common.h: Likewise.
2211 * c-cppbuiltin.c: Likewise.
2212 * c-dump.c: Likewise.
2213 * c-format.c: Likewise.
2214 * c-gimplify.c: Likewise.
2215 * c-indentation.c: Likewise.
2216 * c-lex.c: Likewise.
2217 * c-omp.c: Likewise.
2218 * c-opts.c: Likewise.
2219 * c-pch.c: Likewise.
2220 * c-ppoutput.c: Likewise.
2221 * c-pragma.c: Likewise.
2222 * c-pretty-print.c: Likewise.
2223 * c-semantics.c: Likewise.
2224 * c-ubsan.c: Likewise.
2225 * cilk.c: Likewise.
2226 * stub-objc.c: Likewise.
2227
6ac48155
DM
22282015-06-02 David Malcolm <dmalcolm@redhat.com>
2229
2230 PR c/66220:
2231 * c-indentation.c (should_warn_for_misleading_indentation): Use
2232 expand_location rather than expand_location_to_spelling_point.
2233 Don't warn if the guarding statement is more indented than the
2234 next/body stmts.
2235
773ce42e
DM
22362015-06-02 David Malcolm <dmalcolm@redhat.com>
2237
2238 * c-indentation.c (warn_for_misleading_indentation): Bail out
2239 immediately if -Wmisleading-indentation isn't enabled.
2240
4fef8379
ML
22412015-06-01 Martin Liska <mliska@suse.cz>
2242
2243 * c-format.c (check_format_arg):Use new type-based pool allocator.
2244 (check_format_info_main) Likewise.
2245
1edfb384
EB
22462015-05-31 Eric Botcazou <ebotcazou@adacore.com>
2247
2248 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
2249 (has_nontrivial_methods): Likewise.
2250
9677ef52
MP
22512015-05-25 Marek Polacek <polacek@redhat.com>
2252
2253 * c-ubsan.c (ubsan_instrument_shift): Use type0.
2254
fd5c817a
MP
22552015-05-22 Marek Polacek <polacek@redhat.com>
2256
2257 PR c/47043
2258 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
2259
a2f45fe6 22602015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
581edfa3
TS
2261
2262 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
2263 STACK_GROWS_DOWNWARD.
2264
a2f45fe6 22652015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
62f9f30b
TS
2266
2267 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
2268 STACK_GROWS_DOWNWARD rather than if it is defined.
2269
0fee2ac2 22702015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
b1726d6c 2271
0fee2ac2
MLI
2272 PR c/52952
2273 * c-format.c (location_column_from_byte_offset): New.
2274 (location_from_offset): New.
2275 (struct format_wanted_type): Add offset_loc field.
2276 (check_format_info): Move handling of location for extra arguments
2277 closer to the point of warning.
2278 (check_format_info_main): Pass the result of location_from_offset
2279 to warning_at.
2280 (format_type_warning): Pass the result of location_from_offset
2281 to warning_at.
2282
cf4ef6f7
MP
22832015-05-20 Marek Polacek <polacek@redhat.com>
2284
2285 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
2286
3a65ee74
MP
22872015-05-20 Marek Polacek <polacek@redhat.com>
2288
2289 * c-ada-spec.c (dump_sloc): Use DECL_P.
2290
21b634ae
MP
22912015-05-20 Marek Polacek <polacek@redhat.com>
2292
2293 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
2294 * c-common.c: Likewise.
2295
0e50b624
DM
22962015-05-19 David Malcolm <dmalcolm@redhat.com>
2297
2298 * c-common.h (fe_file_change): Strengthen param from
2299 const line_map * to const line_map_ordinary *.
2300 (pp_file_change): Likewise.
2301 * c-lex.c (fe_file_change): Likewise.
2302 (cb_define): Use linemap_check_ordinary when invoking
2303 SOURCE_LINE.
2304 (cb_undef): Likewise.
2305 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
2306 invoking cb_file_change.
2307 (c_finish_options): Likewise.
2308 (push_command_line_include): Likewise.
2309 (cb_file_change): Strengthen param "new_map" from
2310 const line_map * to const line_map_ordinary *.
2311 * c-ppoutput.c (cb_define): Likewise for local "map".
2312 (pp_file_change): Likewise for param "map" and local "from".
2313
fab27f52
MM
23142015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
2315
2316 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
2317
2fe1d762
TV
23182015-05-18 Tom de Vries <tom@codesourcery.com>
2319
2320 * c-common.c (build_va_arg_1): New function.
2321 (build_va_arg): Add address operator to va_list operand if necessary.
2322
7a37fa90
MM
23232015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
2324
2325 PR c/48956
2326 * c-common.c (int_safely_convertible_to_real_p): Define.
2327 (unsafe_conversion_p): Check conversions involving complex types.
2328 (conversion_warning): Add new warning message for conversions which
2329 discard imaginary component.
2330 * c-common.h: (enum conversion_safety): Add new enumerator for such
2331 conversions.
2332
3aa3c9fc
MP
23332015-05-14 Marek Polacek <polacek@redhat.com>
2334
2335 PR c/66066
2336 PR c/66127
2337 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
2338 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
2339 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
2340 use it. If FOR_INT_CONST, require that all evaluated operands be
2341 INTEGER_CSTs.
2342
c3388e62
DM
23432015-05-12 David Malcolm <dmalcolm@redhat.com>
2344
2345 * c-common.h (warn_for_misleading_indentation): New prototype.
2346 * c-indentation.c: New file.
2347 * c.opt (Wmisleading-indentation): New option.
2348
c7b38fd5
TV
23492015-05-12 Tom de Vries <tom@codesourcery.com>
2350
2351 PR tree-optimization/66010
2352 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
2353
381bf11e
JM
23542015-05-09 Jason Merrill <jason@redhat.com>
2355
edff0c06
JM
2356 * c-opts.c (c_common_post_options): Also clear
2357 cpp_opts->cpp_warn_cxx11_compat.
2358
129211bc
JM
2359 * c-common.h (enum cxx_dialect): Add cxx_unset.
2360 * c-common.c (cxx_dialect): Initialize to cxx_unset.
2361 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
2362
381bf11e
JM
2363 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
2364 (std=gnu++0x): Mark as Undocumented.
2365 (std=gnu++1y): Add deprecated message.
2366
fe191308
JM
23672015-05-08 Jason Merrill <jason@redhat.com>
2368
765189ff
JM
2369 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
2370 * c-opts.c: Adjust.
2371
fe191308
JM
2372 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
2373
755e528f
MP
23742015-05-08 Marek Polacek <polacek@redhat.com>
2375
2376 PR c/64918
2377 * c.opt (Woverride-init-side-effects): New option.
2378
0173bd2a
MP
23792015-05-07 Marek Polacek <polacek@redhat.com>
2380
2381 PR c/65179
2382 * c-common.c (c_fully_fold_internal): Warn when left shifting a
2383 negative value.
2384 * c.opt (Wshift-negative-value): New option.
2385 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
2386 when -Wextra and C99/C++11 mode.
2387
e0f0d3b9
MP
23882015-05-07 Marek Polacek <polacek@redhat.com>
2389 Martin Uecker <uecker@eecs.berkeley.edu>
2390
2391 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
2392 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
2393
8243e2a9
JM
23942015-05-05 Jason Merrill <jason@redhat.com>
2395
2396 * c.opt (Wterminate): New.
2397
577cd070
MP
23982015-04-30 Marek Polacek <polacek@redhat.com>
2399
2400 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
2401 require that the non-constant be of a boolean type.
2402
0373796b
JT
24032015-04-29 Josh Triplett <josh@joshtriplett.org>
2404
e0f0d3b9
MP
2405 * c-common.c (handle_section_attribute): Refactor to reduce
2406 nesting and distinguish between error cases.
0373796b 2407
716c0ba6
MP
24082015-04-29 Marek Polacek <polacek@redhat.com>
2409
2410 PR c/64610
2411 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
2412 with 0/1.
2413
8848828b
JJ
24142015-04-29 Jakub Jelinek <jakub@redhat.com>
2415
2416 * c-common.h (omp_clause_mask): Unconditionally define as a class.
2417 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
2418 HOST_BITS_PER_WIDE_INT.
2419
ecd0e562
TV
24202015-04-28 Tom de Vries <tom@codesourcery.com>
2421
2422 PR tree-optimization/65887
2423 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
2424
2a877204 24252015-04-28 Eric Botcazou <ebotcazou@adacore.com>
e0f0d3b9 2426 Pierre-Marie de Rodat <derodat@adacore.com>
2a877204
EB
2427
2428 * c-ada-spec.c (in_function): Delete.
2429 (dump_generic_ada_node): Do not change in_function and remove the
2430 redundant code dealing with it.
2431 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
2432 (print_ada_methods): Output the static member functions in a nested
2433 package after the regular methods as well as associated renamings.
2434
4853031e
MP
24352015-04-24 Marek Polacek <polacek@redhat.com>
2436
2437 PR c/65830
2438 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
2439 and OPT_Wshift_count_overflow.
2440
8c2b7f79
MP
2441 PR c/63357
2442 * c-common.c (warn_logical_operator): Warn if the operands have the
2443 same expressions.
2444
b8787813
MP
24452015-04-24 Marek Polacek <polacek@redhat.com>
2446
2447 PR c/61534
2448 * c-common.c (warn_logical_operator): Bail if either operand comes
2449 from a macro expansion.
2450
8fba1830
BRF
24512015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2452
2453 PR target/55143
2454 * c-common.c (c_default_pointer_mode): Add definition.
2455 * c-common.h (c_default_pointer_mode): Add declaration.
2456
17958621
JJ
24572015-03-11 Jakub Jelinek <jakub@redhat.com>
2458
2459 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
2460 on record_builtin_type argument.
2461
7ccb1a11
JJ
24622015-03-10 Jakub Jelinek <jakub@redhat.com>
2463
2464 PR c/65120
2465 * c-common.c (warn_logical_not_parentheses): Don't warn for
2466 !x == 0 or !x != 0.
2467
04fd785e
MP
24682015-03-07 Marek Polacek <polacek@redhat.com>
2469
2470 PR sanitizer/65280
2471 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
2472 before trying to figure out whether we have a flexible array member.
2473
a4e26206
EB
24742015-03-06 Eric Botcazou <ebotcazou@adacore.com>
2475 Jonathan Wakely <jwakely.gcc@gmail.com>
2476
2477 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
2478
0d2489f4
EB
24792015-03-05 Eric Botcazou <ebotcazou@adacore.com>
2480
2481 PR ada/65319
2482 * c-ada-spec.c (print_destructor): Remove obsolete code.
2483
83ed54d7
EB
24842015-03-01 Eric Botcazou <ebotcazou@adacore.com>
2485
2486 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
2487 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
2488 DECL_TEMPLATE_RESULT emulations.
2489 (dump_ada_template)): Add guard for TYPE_METHODS.
2490
7631f0e2
MP
24912015-02-27 Marek Polacek <polacek@redhat.com>
2492
2493 PR c/65040
2494 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
2495
d1783ae5
KT
24962015-02-27 Kai Tietz <ktietz@redhat.com>
2497
2498 PR c/35330
2499 * c-pragma.c (handle_pragma_weak): Do not try to create
2500 weak/alias of declarations not being function, or variable
2501 declarations.
2502
56a9f6bc
TS
25032015-02-24 Thomas Schwinge <thomas@codesourcery.com>
2504
2505 PR libgomp/64625
2506 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
2507 Remove macros.
2508 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
2509
3d5cb23d
MP
25102015-02-16 Marek Polacek <polacek@redhat.com>
2511
2512 PR c/65066
2513 * c-format.c (check_format_types): Handle null param.
2514
fa008882
MP
25152015-02-13 Marek Polacek <polacek@redhat.com>
2516
2517 PR c/65040
2518 * c-format.c (check_format_types): Don't warn about different
2519 signedness if the original value is in the range of WANTED_TYPE.
2520
785f21af
JM
25212015-02-12 Jason Merrill <jason@redhat.com>
2522
2523 PR c++/64956
2524 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
2525 to the current highest version.
2526 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
2527
4886ec8e
JJ
25282015-02-04 Jakub Jelinek <jakub@redhat.com>
2529
2530 PR c/64824
2531 PR c/64868
2532 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
2533 instead of RDIV_EXPR. Use build_binary_op instead of
2534 build2_loc.
2535
40fecdd6
JM
25362015-01-30 Joseph Myers <joseph@codesourcery.com>
2537
2538 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
2539 to pass input_location as first argument.
2540
a0c88d06
TV
25412015-01-23 Tom de Vries <tom@codesourcery.com>
2542
2543 PR libgomp/64672
2544 * c.opt (fopenacc): Mark as LTO option.
2545
1506ae0e
TV
25462015-01-23 Tom de Vries <tom@codesourcery.com>
2547
2548 PR libgomp/64707
2549 * c.opt (fopenmp): Mark as LTO option.
2550
31be63ab
JJ
25512015-01-21 Jakub Jelinek <jakub@redhat.com>
2552
2553 PR c/63307
b1726d6c 2554 * cilk.c (fill_decls_vec): Only put decls into vector v.
31be63ab
JJ
2555 (compare_decls): Fix up formatting.
2556
25572015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
2558
2559 PR c/63307
2560 * cilk.c: Include vec.h.
2561 (struct cilk_decls): New structure.
2562 (wrapper_parm_cb): Split this function to...
2563 (fill_decls_vec): ...this...
2564 (create_parm_list): ...and this.
2565 (compare_decls): New function.
2566 (for_local_cb): Remove.
2567 (wrapper_local_cb): Ditto.
2568 (build_wrapper_type): For now first traverse and fill vector of
2569 declarations then sort it and then deal with sorted vector.
2570 (cilk_outline): Ditto.
2571 (declare_one_free_variable): Ditto.
2572
6875457f
JM
25732015-01-21 Jason Merrill <jason@redhat.com>
2574
2575 PR c++/64629
2576 * c-format.c (check_format_arg): Call decl_constant_value.
2577
185c9e56
ML
25782015-01-19 Martin Liska <mliska@suse.cz>
2579
2580 * c-common.c (handle_noicf_attribute): New function.
2581
41dbbb37
TS
25822015-01-15 Thomas Schwinge <thomas@codesourcery.com>
2583 Bernd Schmidt <bernds@codesourcery.com>
2584 James Norris <jnorris@codesourcery.com>
2585 Cesar Philippidis <cesar@codesourcery.com>
2586 Ilmir Usmanov <i.usmanov@samsung.com>
2587 Jakub Jelinek <jakub@redhat.com>
2588
2589 * c.opt (fopenacc): New option.
2590 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
2591 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
2592 New macros.
2593 * c-common.h (c_finish_oacc_wait): New prototype.
2594 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
2595 (c_finish_oacc_wait): New function.
2596 * c-pragma.c (oacc_pragmas): New variable.
2597 (c_pp_lookup_pragma, init_pragma): Handle it.
2598 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
2599 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
2600 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
2601 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
2602 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
2603 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
2604 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
2605 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
2606 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
2607 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
2608 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
2609 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
2610 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
2611 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
2612 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
2613 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
2614 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
2615 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
2616 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
2617 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
2618 PRAGMA_OACC_CLAUSE_WORKER.
2619
3f8257db 26202015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
5434dc07
MD
2621
2622 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
2623 for the new option fstack-protector_explicit.
2624 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
2625 (handle_stack_protect_attribute): New function.
2626
3f8257db 26272015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
de1b5c17
MU
2628
2629 * c.opt: New option -Warray-bounds=.
2630
adfac8df
JJ
26312015-01-09 Michael Collison <michael.collison@linaro.org>
2632
2633 * array-notation-common.c: Include hash-set.h, machmode.h,
2634 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2635 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
2636 * c-ada-spec.c: Ditto.
2637 * c-cilkplus.c: Ditto.
2638 * c-common.c: Include input.h due to flattening of tree.h.
2639 Define macro GCC_C_COMMON_C.
2640 * c-common.h: Flatten tree.h header files into c-common.h.
2641 Remove include of tree-core.h.
2642 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
2643 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2644 fold-const.h, wide-int.h, and inchash.h due to
2645 flattening of tree.h.
2646 * c-dump.c: Ditto.
2647 * c-format.c: Flatten tree.h header files into c-common.h.
2648 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
2649 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2650 fold-const.h, wide-int.h, and inchash.h due to
2651 flattening of tree.h.
2652 * c-dump.c: Include hash-set.h, machmode.h,
2653 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2654 fold-const.h, wide-int.h, and inchash.h due to
2655 flattening of tree.h.
2656 * c-format.c: Include hash-set.h, machmode.h,
2657 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2658 fold-const.h, wide-int.h, inchash.h and real.h due to
2659 flattening of tree.h.
2660 * c-gimplify.c: Include hash-set.h, machmode.h,
2661 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2662 fold-const.h, wide-int.h, and inchash.h due to
2663 flattening of tree.h.
2664 * cilk.c: Ditto.
2665 * c-lex.c: Ditto.
2666 * c-omp.c: Ditto.
2667 * c-opts.c: Ditto.
2668 * c-pch.c: Ditto.
2669 * c-ppoutput.c: Ditto.
2670 * c-pragma.c: Ditto.
2671 * c-pretty-print.c: Ditto.
2672 * c-semantics.c: Ditto.
2673 * c-ubsan.c: Ditto.
2674 * stub-objc.c: Ditto.
2675
f5481fc4
JM
26762015-01-08 Jason Merrill <jason@redhat.com>
2677
2678 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
2679 do_ubsan_in_current_function.
2680 (ubsan_maybe_instrument_reference_or_call): Likewise.
2681 * c-ubsan.h: Declare it.
2682
de35aa66
MS
26832015-01-08 Mike Stump <mikestump@comcast.net>
2684
2685 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
2686
4a9a42ab
MP
26872015-01-07 Marek Polacek <polacek@redhat.com>
2688
2689 PR c/64440
2690 * c-common.c (c_fully_fold_internal): Warn for division and modulo
2691 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
2692
2f42e5de
TS
26932015-01-05 Trevor Saunders <tsaunders@mozilla.com>
2694
2695 PR c++/31397
2696 * c.opt (Wsuggest-override): New option.
2697
5624e564
JJ
26982015-01-05 Jakub Jelinek <jakub@redhat.com>
2699
2700 Update copyright years.
2701
5bd012f8
MP
27022015-01-05 Marek Polacek <polacek@redhat.com>
2703
2704 PR c/64423
2705 * c-common.c (warn_array_subscript_with_type_char): Add location_t
2706 parameter. Use it.
2707 * c-common.h (warn_array_subscript_with_type_char): Update
2708 declaration.
2709
a7fa8d18
ESR
27102014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
2711
2712 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
2713 Control macro with flag_sized_deallocation.
2714
3f8257db 27152014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
768952be
MU
2716
2717 * c.opt (Wdiscarded-array-qualifiers): New option.
2718
1f8d3e84
JJ
27192014-12-19 Jakub Jelinek <jakub@redhat.com>
2720
2721 PR preprocessor/63831
2722 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
2723 and __has_cpp_attribute here.
2724 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
2725 c_common_has_attribute.
2726 * c-common.h (c_common_has_attribute): New prototype.
2727 * c-lex.c (init_c_lex): Set cb->has_attribute to
2728 c_common_has_attribute instead of cb_has_attribute.
2729 (get_token_no_padding): New function.
2730 (cb_has_attribute): Renamed to ...
2731 (c_common_has_attribute): ... this. No longer static. Use
2732 get_token_no_padding, require ()s, don't build TREE_LIST
2733 unnecessarily, fix up formatting, adjust diagnostics, call
2734 init_attributes.
2735
20b06add
JM
27362014-12-15 Jason Merrill <jason@redhat.com>
2737
2738 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
2739 (-Wsized-deallocation): New.
2740 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
2741 to on in C++14 and up.
2742
94a073b2
JM
27432014-12-11 Jason Merrill <jason@redhat.com>
2744
acaa5911
JM
2745 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
2746
94a073b2
JM
2747 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
2748 we aren't complaining about VLAs.
2749
7fb66c15
MP
27502014-12-06 Marek Polacek <polacek@redhat.com>
2751
2752 PR tree-optimization/64183
2753 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
2754 shift-expression if it is integer_type_node. Use types_compatible_p.
2755
b731b390
JJ
27562014-11-29 Jakub Jelinek <jakub@redhat.com>
2757
2758 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
2759 last argument from create_tmp_var_raw and create_tmp_var calls.
2760 * cilk.c (gimplify_cilk_spawn): Likewise.
2761 * c-omp.c (c_finish_omp_atomic): Likewise.
2762
6a4da643
MP
27632014-11-28 Marek Polacek <polacek@redhat.com>
2764
2765 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
2766 instead of unsigned_type_node.
2767
541e35a6
MP
27682014-11-28 Marek Polacek <polacek@redhat.com>
2769
2770 PR c/63862
2771 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
2772 to op1_utype.
2773 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
2774 expression to unsigned_type_node.
2775
dcc97066
MW
27762014-11-20 Mark Wielaard <mjw@redhat.com>
2777
2778 PR debug/38757
2779 * c-opts.c (set_std_c89): Set lang_hooks.name.
2780 (set_std_c99): Likewise.
2781 (set_std_c11): Likewise.
2782 (set_std_cxx98): Likewise.
2783 (set_std_cxx11): Likewise.
2784 (set_std_cxx14): Likewise.
2785 (set_std_cxx1z): Likewise.
2786
aa7da51a
JJ
27872014-11-21 Jakub Jelinek <jakub@redhat.com>
2788
2789 PR target/63764
2790 * c-common.h (convert_vector_to_pointer_for_subscript): Change
2791 return type to bool.
009a3480 2792 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
2793 (convert_vector_to_pointer_for_subscript): Change return type to
2794 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
2795 and copy it into a TARGET_EXPR and use that instead of *vecp
2796 directly.
2797
538dd0b7
DM
27982014-11-19 David Malcolm <dmalcolm@redhat.com>
2799
2800 Merger of git branch "gimple-classes-v2-option-3".
2801 * ChangeLog.gimple-classes: New.
2802 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
2803 from being just a vec<gimple> to a vec<gbind *>.
2804
c39a5e99
JJ
28052014-11-18 Jakub Jelinek <jakub@redhat.com>
2806
2807 PR sanitizer/63813
2808 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
2809 argument to ptype, set type to TREE_TYPE (ptype). Don't call
2810 get_pointer_alignment for non-pointers. Use ptype, or if it is
2811 reference type, corresponding pointer type, as type of kind
2812 argument.
2813 (ubsan_maybe_instrument_reference,
2814 ubsan_maybe_instrument_member_call): Adjust callers.
2815
8537a4a9
MP
28162014-11-15 Marek Polacek <polacek@redhat.com>
2817
2818 PR middle-end/63884
2819 * array-notation-common.c (is_sec_implicit_index_fn): Return false
2820 for NULL fndecl.
2821 (extract_array_notation_exprs): Return for NULL node.
2822
2079956a
JM
28232014-11-12 Joseph Myers <joseph@codesourcery.com>
2824
2825 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
2826 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
2827
1304953e
JJ
28282014-11-12 Jakub Jelinek <jakub@redhat.com>
2829
2830 PR c/59708
2831 * c-common.c (check_builtin_function_arguments): Handle
2832 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
2833
e5e44252
AK
28342014-11-10 Andi Kleen <ak@linux.intel.com>
2835
2836 PR c/60804
2837 * c-common.h (check_no_cilk): Declare.
2838 * cilk.c (get_error_location): New function.
2839 (check_no_cilk): Dito.
2840
e64b984d
AK
28412014-11-10 Andi Kleen <ak@linux.intel.com>
2842
2843 * cilk.c (recognize_spawn): Use expression location
2844 for error message.
2845
13c21655
PC
28462014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
2847
2848 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
2849
42fd12b1
ESR
28502014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
2851
2852 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
2853 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
2854 (__cpp_range_based_for, __cpp_initializer_lists,
2855 __cpp_delegating_constructors, __cpp_nsdmi,
2856 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
2857 for C++11; (__cpp_attribute_deprecated): Remove in favor of
2858 __has_cpp_attribute.
2859 * c-lex.c (cb_has_attribute): New callback CPP function;
2860 (init_c_lex): Set has_attribute callback.
2861
6f450181
RB
28622014-11-04 Richard Biener <rguenther@suse.de>
2863
2864 * c-common.c (shorten_compare): Do not shorten mixed
2865 DFP and non-DFP compares.
2866
26f0e1d6
ESR
28672014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
2868
2869 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
2870 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
2871 Commentary and rearrangement of tests.
2872 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
2873 Commentary and rearrangement of tests.
2874 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
2875 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
2876
ef4bddc2
RS
28772014-10-29 Richard Sandiford <richard.sandiford@arm.com>
2878
2879 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
2880 enum from machine_mode.
2881
c582198b
AM
28822014-10-28 Andrew MacLeod <amacleod@redhat.com>
2883
adfac8df
JJ
2884 * c-common.c: Adjust include files.
2885 * c-gimplify.c: Ditto.
2886 * cilk.c: Ditto.
2887 * c-pragma.c: Ditto.
2888 * c-ubsan.c: Ditto.
c582198b 2889
60393bbc
AM
28902014-10-27 Andrew MacLeod <amacleod@redhat.com>
2891
2892 * c-gimplify.c: Adjust include files.
2893
d723bb7c
MLI
28942014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
2895
2896 PR c++/53061
2897 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
2898 c_common_initialize_diagnostics.
2899 * c-common.h: Likewise.
2900
90f3520e
MP
29012014-10-24 Marek Polacek <polacek@redhat.com>
2902
2903 PR c/56980
2904 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
2905 print "struct"/"union"/"enum" for typedefed names.
2906
59d7607a
MP
29072014-10-23 Marek Polacek <polacek@redhat.com>
2908
2909 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
2910 in unsigned type.
2911
d95a2703
JJ
29122014-10-22 Jakub Jelinek <jakub@redhat.com>
2913 Yury Gribov <y.gribov@samsung.com>
2914
2915 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2916 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
2917 instead of flag_sanitize_recover as bool flag.
2918
8e6ef852
KY
29192014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
2920
2921 * cilk.c: Revert previous change.
2922
948cf550
IZ
29232014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
2924
2925 PR c/63307
2926 * cilk.c: Include vec.h.
2927 (struct cilk_decls): New structure.
2928 (wrapper_parm_cb): Split this function to...
2929 (fill_decls_vec): ...this...
2930 (create_parm_list): ...and this.
2931 (compare_decls): New function.
2932 (for_local_cb): Remove.
2933 (wrapper_local_cb): Ditto.
2934 (build_wrapper_type): For now first traverse and fill vector of
2935 declarations then sort it and then deal with sorted vector.
2936 (cilk_outline): Ditto.
2937 (declare_one_free_variable): Ditto.
2938
92574c7c
MP
29392014-10-17 Marek Polacek <polacek@redhat.com>
2940
2941 * c-opts.c (c_common_post_options): Set warn_implicit_int.
2942 * c.opt (Wimplicit-int): Initialize to -1.
2943
83685514
AM
29442014-10-16 Andrew MacLeod <amacleod@redhat.com>
2945
2946 * c-pragma.c: Adjust include files.
2947 * c-semantics.c: Likewise.
2948
5b8300ea
DD
29492014-10-16 DJ Delorie <dj@redhat.com>
2950
2951 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
2952 multiples of bytes.
2953
5f83e90b
JM
29542014-10-14 Jason Merrill <jason@redhat.com>
2955
2956 PR c++/63455
2957 * c-common.h (CPP_PREPARSED_EXPR): New.
2958 (N_CP_TTYPES): Adjust.
2959
d73326ca
MP
29602014-10-15 Marek Polacek <polacek@redhat.com>
2961
2962 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
2963
78a7c317
DD
29642014-10-14 DJ Delorie <dj@redhat.com>
2965
2966 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
2967 types, not just __int128.
2968 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
2969 types, not just __int128.
2970 (cpp_atomic_builtins): Round pointer sizes up.
2971 (type_suffix): Use type precision, not specific types.
2972 * c-common.c (c_common_reswords): Remove __int128 special case.
2973 (c_common_type_for_size): Check for all __intN types, not just
2974 __int128.
2975 (c_common_type_for_mode): Likewise.
2976 (c_common_signed_or_unsigned_type): Likewise.
2977 (c_build_bitfield_integer_type): Likewise.
2978 (c_common_nodes_and_builtins): Likewise.
2979 (keyword_begins_type_specifier): Likewise.
2980 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
2981 __intN variants.
2982
2a22f99c
TS
29832014-10-12 Trevor Saunders <tsaunders@mozilla.com>
2984
2985 * c-common.c: Use hash_table instead of hashtab.
2986
2a8ef767
ESR
29872014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
2988
adfac8df 2989 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
2990 C++11 section.
2991
3c9aabbd
MG
29922014-10-03 Marc Glisse <marc.glisse@inria.fr>
2993
2994 PR c++/54427
2995 PR c++/57198
2996 PR c++/58845
2997 * c-common.c (warn_logical_operator): Punt for vectors.
2998
a15f7cb8
ESR
29992014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
3000
3001 Implement SD-6: SG10 Feature Test Recommendations
3002 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
3003 macros and the __has_header macro.
3004
8d0cf15e
JM
30052014-09-30 Jason Merrill <jason@redhat.com>
3006
dd5d5481
JM
3007 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
3008 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
3009 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
3010
b752325e
JM
3011 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
3012 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
3013
8d0cf15e
JM
3014 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
3015 * c-common.c (c_common_reswords): Remove __is_convertible_to.
3016
083e891e
MP
30172014-09-24 Marek Polacek <polacek@redhat.com>
3018
3019 PR c/61405
3020 PR c/53874
3021 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
3022
7861b648
AK
30232014-09-23 Andi Kleen <ak@linux.intel.com>
3024
3025 * c-common.c (handle_no_reorder_attribute): New function.
3026 (c_common_attribute_table): Add no_reorder attribute.
3027
9a79452d
JM
30282014-09-22 Joseph Myers <joseph@codesourcery.com>
3029
3030 * c-cppbuiltin.c (c_cpp_builtins): Define
3031 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
3032 modes.
3033
dd69f047
JM
30342014-09-18 Joseph Myers <joseph@codesourcery.com>
3035
3036 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
3037 for supported floating-point modes.
3038
737a4826
MLI
30392014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3040
3041 * c.opt (Wpsabi): Use LangEnabledBy.
3042 * c-opts.c (c_common_handle_option): Do not handle here.
3043
8cc4b7a2
JM
30442014-09-12 Joseph Myers <joseph@codesourcery.com>
3045
3046 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
3047 macros for floating-point modes.
3048
179b5a55
MG
30492014-09-11 Marc Glisse <marc.glisse@inria.fr>
3050
3051 PR target/58757
3052 * c-cppbuiltin.c (builtin_define_float_constants): Correct
3053 __*_DENORM_MIN__ without denormals.
3054
570a11fe
JJ
30552014-09-10 Jakub Jelinek <jakub@redhat.com>
3056
3057 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
3058 ubsan_instrument_vla, ubsan_instrument_return): Adjust
3059 ubsan_create_data callers.
3060 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
3061 index is constant or BIT_AND_EXPR with constant mask and is
3062 small enough for the bound.
3063 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
3064 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
3065
b559c810
MLI
30662014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3067
3068 * c.opt: Add CppReason to various flags.
3069 (Wdate-time): Re-sort.
3070 * c-common.c: Include c-common.h earlier.
3071 (struct reason_option_codes_t): Delete.
3072 (c_option_controlling_cpp_error): Prefix global type and struct
3073 with cpp_.
3074
1ef33fd4
MLI
30752014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3076
3077 * c.opt (Wnormalized): New.
3078 (Wnormalized=): Use Enum and Reject Negative.
3079 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
3080
66bb34c0
JM
30812014-09-08 Joseph Myers <joseph@codesourcery.com>
3082
3083 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
3084 digits of floating-point modes if -fbuilding-libgcc.
3085
53d68b9f
JM
30862014-09-05 Joseph Myers <joseph@codesourcery.com>
3087
3088 * c-cppbuiltin.c (c_cpp_builtins): Also define
3089 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
3090 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
3091 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
3092 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
3093 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
3094 __LIBGCC_STACK_GROWS_DOWNWARD__,
3095 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
3096 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
3097 __LIBGCC_DWARF_FRAME_REGISTERS__,
3098 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
3099 __LIBGCC_STACK_POINTER_REGNUM__ and
3100 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
3101 (builtin_define_with_value): Handle backslash-escaping in string
3102 macro values.
3103
f65586dc
RB
31042014-09-05 Richard Biener <rguenther@suse.de>
3105
3106 PR middle-end/63148
3107 * c-format.c (check_format_arg): Properly handle
3108 effectively signed POINTER_PLUS_EXPR offset.
3109
2b71f4a4
MLI
31102014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
3111
3112 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
3113 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
3114 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
3115 and Init.
3116 * c-opts.c (c_common_handle_option): Do not handle here.
3117 (sanitize_cpp_opts): Likewise.
3118 * c-common.c (struct reason_option_codes_t): Handle
3119 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
3120
d2e4feca
MP
31212014-09-03 Marek Polacek <polacek@redhat.com>
3122
3123 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
3124
9a771876
JJ
31252014-09-02 Jakub Jelinek <jakub@redhat.com>
3126 Balaji V. Iyer <balaji.v.iyer@intel.com>
3127 Igor Zamyatin <igor.zamyatin@intel.com>
3128
3129 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
3130 * c-common.c (c_common_reswords): Added _Cilk_for.
3131 * c-common.h (enum rid): Added RID_CILK_FOR.
3132 (cilk_for_number_of_iterations): Add declaration.
3133 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
3134 CILK_FOR.
3135 * c-pragma.c (init_pragma): Register "grainsize" pragma.
3136 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
3137
81b5d104
MLI
31382014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3139
3140 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
3141 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
3142 Wundef): Use CPP, Var and Init.
3143 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
3144
b753b37b
MLI
31452014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3146
3147 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
3148 * c-opts.c (c_common_handle_option): Do not handle here.
3149
028aee17
JM
31502014-08-25 Jason Merrill <jason@redhat.com>
3151
3152 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
3153 -std=c++14 and -std=gnu++14, rather than the reverse.
3154 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
3155 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
3156 * c-common.h (cxx_dialect): Remove cxx1y.
3157
e4276ba5
ESR
31582014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
3159
3160 * c-common.h (enum cxx_dialect): Add cxx14.
3161 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
3162 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
3163 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
3164
a545cacd
JM
31652014-08-22 Jason Merrill <jason@redhat.com>
3166
3167 * c.opt (std=gnu++17): Fix alias.
3168
59ea0364
MP
31692014-08-22 Marek Polacek <polacek@redhat.com>
3170
3171 PR c++/62199
3172 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
3173 check for vector types. Drop LHS argument.
3174 * c-common.h (warn_logical_not_parentheses): Adjust.
3175
596e808c
MLI
31762014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
3177
3178 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
3179 (Wmultichar): Likewise.
3180 (Wdate-time): Use C-family languages instead of Common. Use CPP
3181 and Var.
3182 * c-opts.c (c_common_handle_option): Do not handle the above
3183 options here.
3184 (sanitize_cpp_opts): Likewise.
3185
18767f65
MLI
31862014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
3187
3188 PR fortran/44054
3189 * c-opts.c: Include tree-diagnostics.h.
3190 (c_diagnostic_finalizer): New.
3191 (c_common_initialize_diagnostics): Use it.
3192
b4413594
MLI
31932014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3194
3195 PR preprocessor/51303
3196 * c-common.c (struct reason_option_codes_t option_codes):
3197 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
3198
43f9a13c
MLI
31992014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3200
3201 PR c/60975
3202 PR c/53063
3203 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
3204 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
3205 (c_common_post_options): Call init_global_opts_from_cpp.
3206 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
3207
04159acf
MP
32082014-08-19 Marek Polacek <polacek@redhat.com>
3209
3210 PR c++/62153
3211 * c-common.c (maybe_warn_bool_compare): New function.
3212 * c-common.h (maybe_warn_bool_compare): Declare.
3213 * c.opt (Wbool-compare): New option.
3214
35aff4fb
MP
32152014-08-19 Marek Polacek <polacek@redhat.com>
3216
3217 * c.opt (Wc99-c11-compat): New option.
3218
177cce46
MP
32192014-08-19 Marek Polacek <polacek@redhat.com>
3220
3221 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
3222 to warn_c90_c99_compat.
3223 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
3224 to -1.
3225
6ae9194f
MLI
32262014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
3227 Steven Bosscher <steven@gcc.gnu.org>
3228
3229 PR c/52952
3230 * c-format.c: Add extra_arg_loc and format_string_loc to struct
3231 format_check_results.
3232 (check_function_format): Use true and add comment for boolean
3233 argument.
3234 (finish_dollar_format_checking): Use explicit location when warning.
3235 (check_format_info): Likewise.
3236 (check_format_arg): Set extra_arg_loc and format_string_loc.
3237 (check_format_info_main): Use explicit location when warning.
3238 (check_format_types): Pass explicit location.
3239 (format_type_warning): Likewise.
3240
8e54f6d3
MLI
32412014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3242
3243 PR fortran/44054
3244 * c-format.c: Handle Fortran flags.
3245
cd4e76fc
IZ
32462014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
3247
3248 PR other/61962
3249 * array-notation-common.c (find_rank): Added handling for other
3250 types of references.
3251
f3bede71
MP
32522014-08-10 Marek Polacek <polacek@redhat.com>
3253
3254 PR c/51849
3255 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
3256 * c.opt (Wc90-c99-compat): Add option.
3257
9f25a338
TS
32582014-08-07 Trevor Saunders <tsaunders@mozilla.com>
3259
3260 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
3261
62e4eb35
MP
32622014-08-03 Marek Polacek <polacek@redhat.com>
3263
3264 * c-common.c (check_case_value): Add location_t parameter. Use it.
3265 (c_add_case_label): Pass loc to check_case_value.
3266
b787e7a2
TS
32672014-08-02 Trevor Saunders <tsaunders@mozilla.com>
3268
3269 * cilk.c: Use hash_map instead of pointer_map.
3270
6e2830c3
TS
32712014-08-02 Trevor Saunders <tsaunders@mozilla.com>
3272
3273 * c-gimplify.c: Use hash_set instead of pointer_set.
3274
a7ee52fb
IZ
32752014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
3276
3277 PR middle-end/61455
3278 * array-notation-common.c (extract_array_notation_exprs): Handling
3279 of DECL_EXPR added.
3280
944fa280
JJ
32812014-08-01 Jakub Jelinek <jakub@redhat.com>
3282
3283 * c-common.h (min_align_of_type): Removed prototype.
3284 * c-common.c (min_align_of_type): Removed.
3285 * c-ubsan.h (ubsan_maybe_instrument_reference,
3286 ubsan_maybe_instrument_member_call): New prototypes.
3287 * c-ubsan.c: Include stor-layout.h and builtins.h.
3288 (ubsan_maybe_instrument_reference_or_call,
3289 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
3290 functions.
3291
b4dfdc11
MG
32922014-07-31 Marc Glisse <marc.glisse@inria.fr>
3293
3294 PR c++/60517
3295 * c.opt (-Wreturn-local-addr): Move to common.opt.
3296
a41844e5
JM
32972014-07-30 Jason Merrill <jason@redhat.com>
3298
3299 PR c++/61659
3300 PR c++/61687
3301 Revert:
3302 * c.opt (-fuse-all-virtuals): New.
3303
976d5a22
TT
33042014-07-30 Tom Tromey <tromey@redhat.com>
3305
3306 PR c/59855
3307 * c.opt (Wdesignated-init): New option.
3308 * c-common.c (c_common_attribute_table): Add "designated_init".
3309 (handle_designated_init): New function.
3310
cdc94aca
MP
33112014-07-24 Marek Polacek <polacek@redhat.com>
3312
3313 PR c/57653
3314 * c-opts.c (c_finish_options): If -imacros is in effect, return.
3315
f41373b6
DS
33162014-07-16 Dodji Seketeli <dodji@redhat.com>
3317
3318 PR preprocessor/60723 - missing system-ness marks for macro tokens
3319 * c-ppoutput.c (struct print::prev_was_system_token): New data
3320 member.
3321 (init_pp_output): Initialize it.
3322 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
3323 (do_line_change): Return a flag saying if a line marker was
3324 emitted or not.
3325 (scan_translation_unit): Detect if the system-ness of the token we
3326 are about to emit is different from the one of the previously
3327 emitted token. If so, emit a line marker. Avoid emitting useless
3328 adjacent line markers. Avoid emitting line markers for tokens
3329 originating from the expansion of built-in macros.
3330 (scan_translation_unit_directives_only): Adjust.
3331
4d661eaa
MP
33322014-07-15 Marek Polacek <polacek@redhat.com>
3333
3334 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
3335 TYPE_MAX_VALUE is NULL.
3336
b108f48f
JJ
33372014-07-14 Jakub Jelinek <jakub@redhat.com>
3338
3339 PR middle-end/61294
3340 * c.opt (Wmemset-transposed-args): New warning.
3341
c0221884
JM
33422014-07-10 Jason Merrill <jason@redhat.com>
3343
3344 PR c++/61659
3345 PR c++/61687
3346 * c.opt (-fuse-all-virtuals): New.
3347
63dfbb95
RB
33482014-07-09 Richard Biener <rguenther@suse.de>
3349
3350 PR c-family/61741
3351 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
3352 using unsigned arithmetic if overflow does not wrap instead of
3353 if overflow is undefined.
3354
773ec47f
MP
33552014-07-06 Marek Polacek <polacek@redhat.com>
3356
3357 PR c/6940
3358 * c.opt (Wsizeof-array-argument): New option.
3359
00a7ba58
JJ
33602014-07-03 Jakub Jelinek <jakub@redhat.com>
3361
b1726d6c 3362 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
00a7ba58
JJ
3363 comments->count <= 1, as comments->entries might be NULL.
3364
52ec0ea3
MP
33652014-07-01 Marek Polacek <polacek@redhat.com>
3366
3367 * c.opt (Wint-conversion): New option.
3368
d5c3d343
MP
33692014-07-01 Marek Polacek <polacek@redhat.com>
3370
3371 PR c/58286
3372 * c.opt (Wincompatible-pointer-types): New option.
3373
6e7ceb17
PC
33742014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
3375
3376 PR c++/51400
3377 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
3378 Do not discard TYPE_QUALS of type.
3379
da73100b
JM
33802014-06-26 Jason Merrill <jason@redhat.com>
3381
3382 * c-common.h (enum cxx_dialect): Add cxx1z.
3383 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
3384 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
3385
08eedf75
TJ
33862014-06-26 Teresa Johnson <tejohnson@google.com>
3387
3388 * c-common.h (get_dump_info): Declare.
3389 * c-gimplify.c (c_genericize): Use saved dump files.
3390 * c-opts.c (c_common_parse_file): Begin and end dumps
3391 once around parsing invocation.
3392 (get_dump_info): New function.
3393
7b56b2f8
MP
33942014-06-23 Marek Polacek <polacek@redhat.com>
3395 Andrew MacLeod <amacleod@redhat.com>
3396
3397 PR c/61553
3398 * c-common.c (get_atomic_generic_size): Don't segfault if the
3399 type doesn't have a size.
3400
0e37a2f3
MP
34012014-06-20 Marek Polacek <polacek@redhat.com>
3402
3403 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
3404 (ubsan_walk_array_refs_r): New function.
3405 (c_genericize): Instrument array bounds.
3406 * c-ubsan.c: Include "internal-fn.h".
3407 (ubsan_instrument_division): Mark instrumented arrays as having
3408 side effects. Adjust ubsan_type_descriptor call.
3409 (ubsan_instrument_shift): Likewise.
3410 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
3411 (ubsan_instrument_bounds): New function.
3412 (ubsan_array_ref_instrumented_p): New function.
3413 (ubsan_maybe_instrument_array_ref): New function.
3414 * c-ubsan.h (ubsan_instrument_bounds): Declare.
3415 (ubsan_array_ref_instrumented_p): Declare.
3416 (ubsan_maybe_instrument_array_ref): Declare.
3417
34182014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
3419
3420 PR lto/61123
3421 * c.opt (fshort-enums): Add to LTO.
3422 * c.opt (fshort-wchar): Likewise.
3423
5c3d09f7
MP
34242014-06-16 Marek Polacek <polacek@redhat.com>
3425
3426 PR c/60439
3427 * c.opt (Wswitch-bool): Add Var.
3428
9cf32741
JJ
34292014-06-12 Jakub Jelinek <jakub@redhat.com>
3430
3431 PR middle-end/61486
3432 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
3433 #pragma omp target teams or
3434 #pragma omp {,target }teams distribute simd.
3435
62984918
JM
34362014-06-12 Jason Merrill <jason@redhat.com>
3437
3438 * c.opt (Wabi=, fabi-compat-version): New.
3439 * c-opts.c (c_common_handle_option): Handle -Wabi=.
3440 (c_common_post_options): Handle flag_abi_compat_version default.
3441 Disallow -fabi-compat-version=1.
3442 * c-common.h (abi_version_crosses): New.
3443
f961457f
JH
34442014-06-11 Jan Hubicka <hubicka@ucw.cz>
3445
adfac8df 3446 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
3447 section names that are no longer trees.
3448
92d28cbb
JJ
34492014-06-10 Jakub Jelinek <jakub@redhat.com>
3450
3451 PR fortran/60928
3452 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
3453 (omp_pragmas): ... back here.
3454
742938c9
MP
34552014-06-05 Marek Polacek <polacek@redhat.com>
3456
3457 PR c/49706
3458 * c-common.c (warn_logical_not_parentheses): New function.
3459 * c-common.h (warn_logical_not_parentheses): Declare.
3460 * c.opt (Wlogical-not-parentheses): New option.
3461
9d548dfb
MP
34622014-06-04 Marek Polacek <polacek@redhat.com>
3463
3464 PR c/30020
3465 * c-common.c (check_case_bounds): Add location parameter.
3466 Use it.
3467 (c_add_case_label): Pass loc to check_case_bounds.
3468
fedfecef
MP
34692014-06-03 Marek Polacek <polacek@redhat.com>
3470
3471 PR c/60439
3472 * c.opt (Wswitch-bool): New option.
3473
f6a7cffc
TS
34742014-05-22 Thomas Schwinge <thomas@codesourcery.com>
3475
040d18b6
TS
3476 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
3477 Remove prototypes.
3478 (record_types_used_by_current_var_decl): Move prototype to where
3479 it belongs.
3480
f6a7cffc
TS
3481 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
3482 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
3483 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
3484
632f2871
RS
34852014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
3486
3487 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
3488 * c-common.c (c_common_nodes_and_builtins): Don't initialize
3489 void_zero_node.
3490 * c-pretty-print.c (pp_c_void_constant): New function.
3491 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
3492 (c_pretty_printer::expression): Handle VOID_CST.
3493 * cilk.c (extract_free_variables): Likewise.
3494 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
3495 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
3496
766090c2
TS
34972014-05-17 Trevor Saunders <tsaunders@mozilla.com>
3498
3499 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
3500 * c-pragma.c (push_alignment): Adjust.
3501 (handle_pragma_push_options): Likewise.
3502
661a0813
MP
35032014-05-09 Marek Polacek <polacek@redhat.com>
3504
3505 PR c/50459
3506 * c-common.c (check_user_alignment): Return -1 if alignment is error
3507 node.
3508 (handle_aligned_attribute): Don't call default_conversion on
3509 FUNCTION_DECLs.
3510 (handle_vector_size_attribute): Likewise.
3511 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
3512 (handle_sentinel_attribute): Call default_conversion and allow even
3513 integral types as an argument.
3514
2793eeab
MP
35152014-05-08 Marek Polacek <polacek@redhat.com>
3516
3517 PR c/61053
3518 * c-common.c (min_align_of_type): New function factored out from...
3519 (c_sizeof_or_alignof_type): ...here.
3520 * c-common.h (min_align_of_type): Declare.
3521
f827930a
MP
35222014-05-08 Marek Polacek <polacek@redhat.com>
3523
3524 PR c/61077
3525 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
3526 parameter type of main.
3527
ca49b74e
DD
35282014-05-07 DJ Delorie <dj@redhat.com>
3529
3530 * c-cppbuiltin.c (print_bits_of_hex): New.
3531 (builtin_define_type_minmax): Print values using hex so as not to
3532 require a pre-computed list of string values.
3533
1d60af08
KZ
35342014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
3535 Mike Stump <mikestump@comcast.net>
3536 Richard Sandiford <rdsandiford@googlemail.com>
3537
3538 * c-ada-spec.c: Include wide-int.h.
3539 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
3540 (dump_generic_ada_node): Use wide-int interfaces.
3541 * c-common.c: Include wide-int-print.h.
3542 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
3543 (pointer_int_sum): Use wide-int interfaces.
3544 (c_common_nodes_and_builtins): Use make_int_cst.
3545 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
3546 (handle_alloc_size_attribute): Use wide-int interfaces.
3547 (get_nonnull_operand): Likewise.
3548 * c-format.c (get_constant): Use tree_fits_uhwi_p.
3549 * c-lex.c: Include wide-int.h.
3550 (narrowest_unsigned_type): Take a widest_int rather than two
3551 HOST_WIDE_INTs.
3552 (narrowest_signed_type): Likewise.
3553 (interpret_integer): Update accordingly. Use wide-int interfaces.
3554 (lex_charconst): Use wide-int interfaces.
3555 * c-pretty-print.c: Include wide-int.h.
3556 (pp_c_integer_constant): Use wide-int interfaces.
3557 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
3558 INT_CST_LT_UNSIGNED.
3559
b15458be
RB
35602014-05-06 Richard Biener <rguenther@suse.de>
3561
3562 * c-opts.c (c_common_post_options): For -freestanding,
3563 -fno-hosted and -fno-builtin disable pattern recognition
3564 if not enabled explicitely.
3565
6577374e
MP
35662014-05-02 Marek Polacek <polacek@redhat.com>
3567
3568 * c.opt (Wsizeof-pointer-memaccess): Describe option.
3569
d00887e8
MP
35702014-05-01 Marek Polacek <polacek@redhat.com>
3571
3572 PR c/43245
3573 * c.opt (Wdiscarded-qualifiers): Add.
3574
f8ed5150
MP
35752014-04-30 Marek Polacek <polacek@redhat.com>
3576
3577 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
3578 INT_MIN / -1 sanitization only for integer types.
3579
45484dcf
MP
35802014-04-25 Marek Polacek <polacek@redhat.com>
3581
3582 PR c/18079
3583 * c-common.c (handle_noinline_attribute): Warn if the attribute
3584 conflicts with always_inline attribute.
3585 (handle_always_inline_attribute): Warn if the attribute conflicts
3586 with noinline attribute.
3587
38e514c0
MP
35882014-04-25 Marek Polacek <polacek@redhat.com>
3589
3590 PR c/60156
3591 * c-common.c (check_main_parameter_types): Warn about variadic main.
3592
44875f92
MS
35932014-04-24 Mike Stump <mikestump@comcast.net>
3594
3595 * c.opt (Wshadow-ivar): Default to on.
3596
dcaaa5a0
DP
35972014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
3598
3599 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
3600
c07d7c02
MP
36012014-04-23 Marek Polacek <polacek@redhat.com>
3602
3603 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
3604
1c33c9b7
JJ
36052014-04-22 Jakub Jelinek <jakub@redhat.com>
3606
3607 PR sanitizer/60275
3608 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
3609 if flag_sanitize_undefined_trap_on_error.
3610 (ubsan_instrument_division, ubsan_instrument_shift,
3611 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
3612 if !flag_sanitize_recover.
3613
793c625f
MG
36142014-04-22 Marc Glisse <marc.glisse@inria.fr>
3615
3616 PR libstdc++/43622
3617 * c-common.c (registered_builtin_types): Make non-static.
3618 * c-common.h (registered_builtin_types): Declare.
3619
b0f1bf36
RB
36202014-04-14 Richard Biener <rguenther@suse.de>
3621 Marc Glisse <marc.glisse@inria.fr>
3622
3623 PR c/60819
3624 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
3625 apply may-alias the scalar pointer type when applicable.
3626
3b07fa4a
IZ
36272014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
3628
3629 PR middle-end/60467
3630 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
3631 as possible argument for Cilk_spawn.
3632
cbbd2b1c
TB
36332014-04-11 Tobias Burnus <burnus@net-b.de>
3634
3635 PR c/60194
3636 * c.opt (Wformat-signedness): Add
3637 * c-format.c(check_format_types): Use it.
3638
6415bd5d
JM
36392014-04-11 Jason Merrill <jason@redhat.com>
3640
3641 PR c++/57926
3642 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
3643 default_conversion for an array argument.
3644
6525783a
MP
36452014-04-08 Marek Polacek <polacek@redhat.com>
3646
3647 PR sanitizer/60745
3648 * c-ubsan.c: Include asan.h.
3649 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
3650
880a467b
NS
36512014-04-03 Nathan Sidwell <nathan@codesourcery.com>
3652
3653 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
3654
7b59ff2d
MP
36552014-04-02 Marek Polacek <polacek@redhat.com>
3656
3657 * c-common.h (c_expand_expr): Remove declaration.
3658
8edbfaa6
JJ
36592014-03-28 Jakub Jelinek <jakub@redhat.com>
3660
3661 PR c++/60689
3662 * c-common.c (add_atomic_size_parameter): When creating new
3663 params vector, push the size argument first.
3664
07d72e1d
JJ
36652014-03-26 Jakub Jelinek <jakub@redhat.com>
3666
3667 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
3668 ubsan_instrument_vla, ubsan_instrument_return): Adjust
3669 ubsan_create_data callers.
3670
b35e0fa0
JJ
36712014-03-22 Jakub Jelinek <jakub@redhat.com>
3672
3673 PR debug/60603
3674 * c-opts.c (c_finish_options): Restore cb_file_change call to
3675 <built-in>.
3676
39a1ebb3
JJ
36772014-03-13 Jakub Jelinek <jakub@redhat.com>
3678
3679 PR middle-end/36282
3680 * c-pragma.c (apply_pragma_weak): Only look at
3681 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
3682 DECL_ASSEMBLER_NAME_SET_P (decl).
3683 (maybe_apply_pending_pragma_weaks): Exit early if
3684 vec_safe_is_empty (pending_weaks) rather than only when
3685 !pending_weaks.
3686 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
3687 set assembler name back to NULL afterwards.
3688
a07f6ed2
JM
36892014-03-11 Jason Merrill <jason@redhat.com>
3690
3691 * c.opt: Add -std=gnu++14.
3692
75b107f5
IB
36932014-03-11 Ian Bolton <ian.bolton@arm.com>
3694
3695 * c-opts.c (c_common_post_options): Don't override
3696 -ffp-contract=fast if unsafe-math-optimizations is on.
3697
f42c637e
PM
36982014-03-08 Paulo Matos <paulo@matos-sorge.com>
3699
3700 * c.opt: Enable LTO FE for fshort-double.
3701
70e24808
JM
37022014-03-07 Jason Merrill <jason@redhat.com>
3703
3704 * c.opt: Add -std=c++14.
3705
3af9c5e9
MP
37062014-03-06 Marek Polacek <polacek@redhat.com>
3707
3708 PR c/60197
3709 * cilk.c (contains_cilk_spawn_stmt): New function.
3710 (contains_cilk_spawn_stmt_walker): Likewise.
3711 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
3712 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
3713
b3bdf019
JJ
37142014-03-03 Jakub Jelinek <jakub@redhat.com>
3715
3716 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
3717 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
3718 even when flag_preprocess_only.
3719
ca7e759d
JM
37202014-02-26 Jason Merrill <jason@redhat.com>
3721
3722 PR c++/59231
3723 PR c++/11586
3724 * c-common.c (shorten_compare): Don't check
3725 c_inhibit_evaluation_warnings.
3726
28e41874
JJ
37272014-02-19 Jakub Jelinek <jakub@redhat.com>
3728
cca615af
JJ
3729 PR c/37743
3730 * c-common.c (c_common_nodes_and_builtins): When initializing
3731 c_uint{16,32,64}_type_node, also set corresponding
3732 uint{16,32,64}_type_node to the same value.
3733
28e41874
JJ
3734 PR c++/60267
3735 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
3736 for PRAGMA_IVDEP if flag_preprocess_only.
3737
c2bf53a1
JJ
37382014-02-12 Jakub Jelinek <jakub@redhat.com>
3739
3740 PR c/60101
3741 * c-common.c (merge_tlist): If copy is true, call new_tlist,
3742 if false, add ADD itself, rather than vice versa.
3743 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
3744 copy. For SAVE_EXPR, only call merge_tlist once.
3745
8fcbce72
JJ
37462014-02-08 Jakub Jelinek <jakub@redhat.com>
3747
3748 PR middle-end/60092
3749 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
3750 and tree_to_uhwi.
3751 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
3752 functions.
3753 (c_common_attribute_table): Add alloc_align and assume_aligned
3754 attributes.
3755
0a756a3f
MP
37562014-02-06 Marek Polacek <polacek@redhat.com>
3757
3758 PR c/60087
3759 * c-common.c (warn_for_sign_compare): Call warning_at with location
3760 instead of warning.
3761
7ec4847a
MP
37622014-02-05 Marek Polacek <polacek@redhat.com>
3763
3764 PR c/53123
3765 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
3766 statement.
3767
66f20604
MP
37682014-02-04 Marek Polacek <polacek@redhat.com>
3769
3770 PR c/60036
3771 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
3772 SAVE_EXPR.
3773
5d77fb19
MG
37742014-02-03 Marc Glisse <marc.glisse@inria.fr>
3775
3776 PR c++/53017
3777 PR c++/59211
3778 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
3779 handle_vector_size_attribute, handle_nonnull_attribute): Call
3780 default_conversion on the attribute argument.
3781 (handle_nonnull_attribute): Increment the argument number.
3782
81e5eca8
MP
37832014-01-31 Marek Polacek <polacek@redhat.com>
3784
3785 PR c/59963
3786 * c-common.c (add_atomic_size_parameter): Pass vNULL to
3787 build_function_call_vec.
3788 (resolve_overloaded_builtin): Likewise.
3789 * c-common.h (build_function_call_vec): Adjust declaration.
3790
68fca595
MP
37912014-01-30 Marek Polacek <polacek@redhat.com>
3792
3793 PR c/59940
3794 * c-common.h (unsafe_conversion_p): Adjust declaration.
3795 (warnings_for_convert_and_check): Likewise.
3796 (convert_and_check): Likewise.
3797 * c-common.c (unsafe_conversion_p): Add location parameter. Call
3798 expansion_point_location_if_in_system_header on it.
3799 (warnings_for_convert_and_check): Add location parameter. Call
3800 expansion_point_location_if_in_system_header on it. Use it.
3801 (convert_and_check): Add location parameter. Use it.
3802 (conversion_warning): Likewise.
3803 (c_add_case_label): Adjust convert_and_check calls.
3804 (scalar_to_vector): Adjust unsafe_conversion_p calls.
3805
b72271b9
BI
38062014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
3807
3808 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
3809 flag_cilkplus.
3810 * c-pragma.c (init_pragma): Likewise.
3811 * c.opt: Likewise.
3812
393e8e8b
MP
38132014-01-23 Marek Polacek <polacek@redhat.com>
3814
3815 PR c/59846
3816 * c-common.c (shorten_compare): Add location_t parameter.
3817 * c-common.h (shorten_binary_op): Adjust declaration.
3818
f04dda30
MP
38192014-01-23 Marek Polacek <polacek@redhat.com>
3820
3821 PR c/58346
3822 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
3823 * c-common.h: Declare it.
3824
621955cb
EB
38252014-01-20 Eric Botcazou <ebotcazou@adacore.com>
3826
3827 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
3828 * c-ada-spec.c (dump_ads): Likewise.
3829 (cpp_check): Likewise.
3830 (dump_ada_specs): Likewise.
3831
38322014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
3833
3834 PR c++/49718
3835 * c-common.c (handle_no_instrument_function_attribute): Allow
3836 no_instrument_function attribute in class member
3837 definition/declaration.
3838
241f845a
JJ
38392014-01-15 Jakub Jelinek <jakub@redhat.com>
3840
3841 PR c/58943
3842 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
3843 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
3844 being COMPOUND_EXPR.
3845 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
3846 operand a SAVE_EXPR and second MODIFY_EXPR.
3847
e83b8e2e
JJ
38482014-01-09 Jakub Jelinek <jakub@redhat.com>
3849
3850 PR target/58115
3851 * c-pch.c (c_common_write_pch): Call
3852 prepare_target_option_nodes_for_pch.
3853
23a5b65a
RS
38542014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3855
3856 Update copyright years
3857
f9030485
RS
38582014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3859
3860 * array-notation-common.c, c-cilkplus.c: Use the standard form for
3861 the copyright notice.
3862
f2aa696b
EB
38632013-12-28 Eric Botcazou <ebotcazou@adacore.com>
3864
3865 * c-ada-spec.c (print_constructor): New function.
3866 (print_destructor): Retrieve the origin of the destructor.
3867 (print_ada_declaration): Revamp handling of constructors/destructors.
3868
3f8257db 38692013-12-23 Stuart Hastings <stuart@apple.com>
1f26ac87
JM
3870 Bill Maddox <maddox@google.com>
3871 Jason Merrill <jason@redhat.com>
3872
3873 * c.opt: Add -fdeclone-ctor-dtor.
3874 * c-opts.c (c_common_post_options): Default to on iff -Os.
3875
41958c28
BI
38762013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
3877
3878 * c-common.c (c_common_attribute_table): Added "cilk simd function"
3879 attribute.
3880 * c-pragma.h (enum pragma_cilk_clause): Remove.
3881 (enum pragma_omp_clause): Added the following fields:
3882 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
3883 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
3884 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
3885 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
3886 PRAGMA_CILK_CLAUSE_UNIFORM.
3887
b1726d6c 3888
12893402
BI
38892013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
3890
3891 * cilk.c (cilk_outline): Made this function non-static.
3892 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
3893 (create_cilk_wrapper): Added a new parameter: a function pointer.
3894 (c_install_body_w_frame_cleanup): Remove
3895 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
3896 * c-common.h (cilk_outline): New prototype.
3897 (gimplify_cilk_spawn): Removed two parameters.
3898 (cilk_install_body_with_frame_cleanup): New prototype.
3899 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
3900 CILK_SPAWN_STMT case.
3901
085b42ed
BS
39022013-12-11 Bernd Schmidt <bernds@codesourcery.com>
3903
2ce064c3
BS
3904 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
3905
085b42ed
BS
3906 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
3907 (int_array_type_node): Remove.
3908 * c-common.c (c_common_nodes_and_builtins): Don't build it.
3909
9e36c9ed
MP
39102013-12-05 Marek Polacek <polacek@redhat.com>
3911
3912 PR c/52023
3913 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
3914 [ADJUST_FIELD_ALIGN].
3915
296674db
JM
39162013-12-04 Joseph Myers <joseph@codesourcery.com>
3917
3918 PR c/52023
3919 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
3920 and check field alignment if set.
3921 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
3922 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
3923
b1726d6c 39242013-12-04 Jakub Jelinek <jakub@redhat.com>
31e071ae
MP
3925 Marek Polacek <polacek@redhat.com>
3926
3927 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
3928 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
3929
d7947e19
L
39302013-11-29 H.J. Lu <hongjiu.lu@intel.com>
3931
3932 PR c/59309
3933 * cilk.c (gimplify_cilk_spawn): Properly handle function without
3934 arguments.
3935
fad7652e
JJ
39362013-11-29 Jakub Jelinek <jakub@redhat.com>
3937
3938 PR c/59280
3939 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
3940 goto invalid. If it is error_mark_node, don't issue further
3941 diagnostics.
3942
8b5e1202
SO
39432013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
3944
3945 * c.opt (Wopenmp-simd): New.
3946
0a508bb6
JJ
39472013-11-22 Jakub Jelinek <jakub@redhat.com>
3948
3949 * c-ubsan.h (ubsan_instrument_return): New prototype.
3950 * c-ubsan.c (ubsan_instrument_return): New function.
3951
2fb9a547
AM
39522013-11-22 Andrew MacLeod <amacleod@redhat.com>
3953
3954 * c-common.c: Add required include files from gimple.h.
3955 * c-gimplify.c: Likewise
3956 * cilk.c: Likewise
3957
8400e75e
DM
39582013-11-22 David Malcolm <dmalcolm@redhat.com>
3959
3960 * c-common.c (unsafe_conversion_p): Remove use of
3961 EXPR_LOC_OR_HERE macro.
3962 (conversion_warning): Likewise.
3963 (warnings_for_convert_and_check): Likewise.
3964 (warn_for_collisions_1): Likewise.
3965 (shorten_compare): Likewise, and remove use of in_system_header
3966 macro, using the location from the former.
3967 * c-lex.c (dump_one_header): Remove use of input_filename macro.
3968 (cb_def_pragma): Remove use of in_system_header macro.
3969 (lex_string): Likewise.
3970 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
3971
eb1ce453
KZ
39722013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
3973 Mike Stump <mikestump@comcast.net>
3974 Richard Sandiford <rdsandiford@googlemail.com>
3975
3976 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
3977 instead of TREE_INT_CST_LOW, in cases where there is a protecting
3978 tree_fits_shwi_p or tree_fits_uhwi_p.
3979 (dump_generic_ada_node): Likewise.
3980 * c-format.c (check_format_arg): Likewise.
3981 * c-pretty-print.c (pp_c_integer_constant): Likewise.
3982
6b3b8c27
KZ
39832013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
3984
3985 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
3986
49b0aa18
JC
39872013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
3988
3989 PR c/53001
3990 * c-common.c (unsafe_conversion_p): Make this function
3991 return an enumeration with more detail.
3992 (conversion_warning): Use the new return type of
3993 unsafe_conversion_p to separately warn either about conversions
3994 that lower floating point number precision or about the other
3995 kinds of conversions.
3996 * c-common.h (enum conversion_safety): New enumeration.
3997 (unsafe_conversion_p): switching return type to
3998 conversion_safety enumeration.
3999 * c.opt: Adding new warning -Wfloat-conversion and
4000 enabling it with -Wconversion.
4001
b826515a
BS
40022013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
4003
4004 * c-opts.c: Include plugin.h.
4005 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
4006
b9a55b13
MP
40072013-11-19 Marek Polacek <polacek@redhat.com>
4008
4009 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
4010 call.
4011 (ubsan_instrument_shift): Likewise.
4012 (ubsan_instrument_vla): Likewise.
4013
7d362f6c
RS
40142013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4015
4016 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
4017 cast to unsigned type.
4018
386b1f1f
RS
40192013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4020
4021 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
4022 tree_low_cst.
4023 (complete_array_type): Update comment to refer to tree_to_[su]hwi
4024 rather than tree_low_cst.
4025
ae7e9ddd
RS
40262013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4027
4028 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
4029 tree_to_uhwi throughout.
4030
9439e9a1
RS
40312013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4032
4033 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
4034 tree_low_cst (..., 0) with tree_to_shwi throughout.
4035
cc269bb6
RS
40362013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4037
4038 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
4039 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
4040
9541ffee
RS
40412013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4042
4043 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
4044 host_integerp (..., 0) with tree_fits_shwi_p throughout.
4045
c02065fc
AH
40462013-11-15 Aldy Hernandez <aldyh@redhat.com>
4047
4048 * c-cilkplus.c: New file.
4049 * c-common.c (readonly_error): Add location argument.
4050 * c-common.h (readonly_error): Same.
4051 (c_finish_cilk_clauses): Protoize.
4052 (c_check_cilk_loop): Same.
4053 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
4054 Do not fail on error_mark_node.
4055 Abstract increment canonicalization to here...
4056 (c_omp_for_incr_canonicalize_ptr): New.
4057 c-pragma.c (init_pragma): Register "simd" pragma.
4058 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
4059 (enum pragma_cilk_clause): New.
4060
9cc65f15
RS
40612013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
4062
4063 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
4064 wchar_type and host_integerp checks.
4065
18f429e2
AM
40662013-11-14 Andrew MacLeod <amacleod@redhat.com>
4067
4068 * c-common.c: Likewise.
4069 * c-gimplify.c: Likewise.
4070 * cilk.c: Likewise.
4071
d8a2d370
DN
40722013-11-14 Diego Novillo <dnovillo@google.com>
4073
4074 * c-common.c: Include fold-const.h.
4075 Include stor-layout.h.
4076 Include calls.h.
4077 Include stringpool.h.
4078 Include attribs.h.
4079 Include varasm.h.
4080 Include trans-mem.h.
4081 * c-cppbuiltin.c: Include stor-layout.h.
4082 Include stringpool.h.
4083 * c-format.c: Include stringpool.h.
4084 * c-lex.c: Include stringpool.h.
4085 Include stor-layout.h.
4086 * c-pragma.c: Include stringpool.h.
4087 Include attribs.h.
4088 Include varasm.h.
4089 Include gcc-symtab.h.
4090 * c-pretty-print.c: Include stor-layout.h.
4091 Include attribs.h.
4092 * cilk.c: Include stringpool.h.
4093 Include calls.h.
4094
38b7bc7f
JM
40952013-11-13 Joseph Myers <joseph@codesourcery.com>
4096
4097 * c-common.h (enum rid): Add RID_AUTO_TYPE.
4098 * c-common.c (c_common_reswords): Add __auto_type.
4099 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
4100
45b0be94
AM
41012013-11-12 Andrew MacLeod <amacleod@redhat.com>
4102
18f429e2
AM
4103 * c-common.c: Include gimplify.h.
4104 * c-gimplify.c: Likewise.
4105 * cilk.c: Likewise.
4106 * c-omp.c: Include gimple-expr.h instead of gimple.h.
4107 * c-ubsan.c: Don't include gimple.h.
45b0be94 4108
582d9b50
JM
41092013-11-12 Joseph Myers <joseph@codesourcery.com>
4110
4111 * c-common.c (c_common_reswords): Add _Thread_local.
4112
6b28e197
JM
41132013-11-09 Joseph Myers <joseph@codesourcery.com>
4114
4115 * c-common.c (atomic_size_supported_p): New function.
4116 (resolve_overloaded_atomic_exchange)
4117 (resolve_overloaded_atomic_compare_exchange)
4118 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
4119 Use it instead of comparing size with a local list of sizes.
4120
267bac10
JM
41212013-11-07 Andrew MacLeod <amacleod@redhat.com>
4122 Joseph Myers <joseph@codesourcery.com>
4123
4124 * c-common.h (enum rid): Add RID_ATOMIC.
4125 * c-common.c (c_common_reswords): Add _Atomic.
4126 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
4127 (keyword_is_type_qualifier): Accept RID_ATOMIC.
4128 * c-format.c (check_format_types): Check for extra _Atomic
4129 qualifiers in format argument.
4130 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
4131 (pp_c_type_qualifier_list): Mention _Atomic in comment.
4132
5157b91e
TB
41332013-11-06 Tobias Burnus <burnus@net-b.de>
4134
4135 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
4136
6dbe0958
JM
41372013-11-06 Joseph Myers <joseph@codesourcery.com>
4138
4139 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
4140 standards modes.
4141 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
4142 to mean lack of IEEE 754 support.
4143
e8ff5196
TB
41442013-11-05 Tobias Burnus <burnus@net-b.de>
4145
4146 * c.opt (-Wdate-time): New option
4147 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
4148
254a0760
JM
41492013-11-05 Joseph Myers <joseph@codesourcery.com>
4150
4151 * c-cppbuiltin.c (cpp_iec_559_value): Test
4152 flag_excess_precision_cmdline not flag_excess_precision.
4153
6d7f7e0a
TB
41542013-11-05 Tobias Burnus <burnus@net-b.de>
4155
4156 * c.opt (fopenmp-simd): New option.
4157 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
4158 (omp_pragmas): ... this new struct.
4159 (c_pp_lookup_pragma): Also walk omp_pragmas.
4160 (init_pragma): Init pragmas for -fopenmp-simd.
4161
55a7f02f
MP
41622013-11-04 Marek Polacek <polacek@redhat.com>
4163
4164 PR c++/58979
4165 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
4166
9193fb05
JM
41672013-11-04 Joseph Myers <joseph@codesourcery.com>
4168
4169 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
4170 New functions.
4171 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
4172
94159ecf
EB
41732013-11-04 Eric Botcazou <ebotcazou@adacore.com>
4174
4175 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
4176 (dump_ada_specs): Adjust prototype of second callback.
4177 * c-ada-spec.c (cpp_check): New global variable.
4178 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
4179 (print_generic_ada_decl): Likewise.
4180 (has_static_fields): Change return type to bool and add guard.
4181 (has_nontrivial_methods): New predicate.
4182 (is_tagged_type): Change return type to bool.
4183 (separate_class_package): Call has_nontrivial_methods.
4184 (pp_ada_tree_identifier): Minor tweaks.
4185 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
4186 (dump_ada_array_domains): Likewise.
4187 (dump_ada_array_type): Likewise.
4188 (dump_template_types): Remove cpp_check parameter and do not pass it to
4189 dump_generic_ada_node.
4190 (dump_ada_template): Likewise.
4191 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
4192 recursively.
4193 (print_ada_methods): Change return type to integer. Remove cpp_check
4194 parameter and do not pass it down.
4195 (dump_nested_types): Remove cpp_check parameter and do not pass it to
4196 dump_generic_ada_node.
4197 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
4198 accessing methods.
4199 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
4200 down. Use has_nontrivial_methods to recognize C++ classes. Use return
4201 value of print_ada_methods.
4202 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
4203 Set cpp_check to it before invoking dump_ada_nodes.
4204 (dump_ada_specs): Likewise.
4205
b906f4ca
MP
42062013-11-03 Marek Polacek <polacek@redhat.com>
4207
4208 * c-ubsan.c: Don't include hash-table.h.
4209 (ubsan_instrument_vla): New function.
4210 * c-ubsan.h: Declare it.
4211
5e20cdc9
DM
42122013-10-31 David Malcolm <dmalcolm@redhat.com>
4213
4214 Automated part of renaming of symtab_node_base to symtab_node.
4215
4216 Patch autogenerated by rename_symtab.py from
4217 https://github.com/davidmalcolm/gcc-refactoring-scripts
4218 revision 58bb219cc090b2f4516a9297d868c245495ee622
4219
4220 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
4221 symtab_node_base to symtab_node.
4222
7057e645
ESR
42232013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
4224
4225 Implement C++14 digit separators.
4226 * c-lex.c (interpret_float): Remove digit separators from scratch string
4227 before building real literal.
4228
193ea7bc
JJ
42292013-10-30 Jakub Jelinek <jakub@redhat.com>
4230
4231 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
4232
939b37da
BI
42332013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
4234
4235 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
4236 fields.
4237 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
4238 enabled.
4239 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
4240 (insert_cilk_frame): New prototype.
4241 (cilk_init_builtins): Likewise.
4242 (gimplify_cilk_spawn): Likewise.
4243 (c_cilk_install_body_w_frame_cleanup): Likewise.
4244 (cilk_detect_spawn_and_unwrap): Likewise.
4245 (cilk_set_spawn_marker): Likewise.
4246 (build_cilk_sync): Likewise.
4247 (build_cilk_spawn): Likewise.
4248 * cilk.c: New file.
4249
67348ccc
DM
42502013-10-29 David Malcolm <dmalcolm@redhat.com>
4251
4252 Patch autogenerated by refactor_symtab.py from
4253 https://github.com/davidmalcolm/gcc-refactoring-scripts
4254 revision 58bb219cc090b2f4516a9297d868c245495ee622
4255
4256 * c-gimplify.c (c_genericize): Update for conversion of symtab types
4257 to a true class hierarchy.
4258 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
4259
d570872d
RS
42602013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
4261
4262 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
4263
98906124
JL
42642013-10-26 Jeff Law <law@redhat.com>
4265
adfac8df
JJ
4266 * c-common.c (c_define_builtins): Remove mudflap support.
4267 * c.opt: Ignore and warn for mudflap options.
98906124 4268
d73749df 42692013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
4270
4271 PR other/33426
4272 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
4273 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
4274
3f04b1bb
JM
42752013-10-23 Jason Merrill <jason@redhat.com>
4276
4277 * c-format.c (gcc_cxxdiag_char_table): Add %X.
4278
acf0174b
JJ
42792013-10-11 Jakub Jelinek <jakub@redhat.com>
4280
acd15a28
JJ
4281 * c-common.h (omp_clause_mask::operator !=): New method.
4282 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
4283 instead of if (mask & something) tests everywhere.
4284
acf0174b
JJ
4285 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
4286 201307 instead of 201107.
4287 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
4288 (c_common_attribute_table): Add "omp declare target" and
4289 "omp declare simd" attributes.
4290 (handle_omp_declare_target_attribute,
4291 handle_omp_declare_simd_attribute): New functions.
4292 * c-omp.c: Include c-pragma.h.
4293 (c_finish_omp_taskgroup): New function.
4294 (c_finish_omp_atomic): Add swapped argument, if true,
4295 build the operation first with rhs, lhs arguments and use NOP_EXPR
4296 build_modify_expr.
4297 (c_finish_omp_for): Add code argument, pass it down to make_code.
4298 (c_omp_split_clauses): New function.
4299 (c_split_parallel_clauses): Removed.
4300 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
4301 c_omp_declare_simd_clauses_to_decls): New functions.
4302 * c-common.h (omp_clause_mask): New type.
4303 (OMP_CLAUSE_MASK_1): Define.
4304 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
4305 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
4306 omp_clause_mask::operator |, omp_clause_mask::operator &,
4307 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
4308 omp_clause_mask::operator ==): New methods.
4309 (enum c_omp_clause_split): New.
4310 (c_finish_omp_taskgroup): New prototype.
4311 (c_finish_omp_atomic): Add swapped argument.
4312 (c_finish_omp_for): Add code argument.
4313 (c_omp_split_clauses): New prototype.
4314 (c_split_parallel_clauses): Removed.
4315 (c_omp_declare_simd_clauses_to_numbers,
4316 c_omp_declare_simd_clauses_to_decls): New prototypes.
4317 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
4318 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
4319 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
4320 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
4321 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
4322 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
4323 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
4324 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
4325 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
4326 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
4327 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
4328 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
4329 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
4330 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
4331 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
4332 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
4333 PRAGMA_OMP_CLAUSE_UNIFORM.
4334
826cacfe
MG
43352013-10-09 Marc Glisse <marc.glisse@inria.fr>
4336
4337 PR tree-optimization/20318
4338 * c-common.c (handle_returns_nonnull_attribute): New function.
4339 (c_common_attribute_table): Add returns_nonnull.
4340
2284b034
MG
43412013-10-03 Marc Glisse <marc.glisse@inria.fr>
4342
4343 PR c++/19476
4344 * c.opt (fcheck-new): Move to common.opt.
4345
b56e9788
MP
43462013-09-25 Marek Polacek <polacek@redhat.com>
4347 Jakub Jelinek <jakub@redhat.com>
4348
4349 PR sanitizer/58413
4350 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
4351 an expression if we can prove it is correct.
4352 (ubsan_instrument_division): Likewise. Remove unnecessary
4353 check.
4354
ce6923c5
MP
43552013-09-18 Marek Polacek <polacek@redhat.com>
4356
4357 PR sanitizer/58411
4358 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
4359 Declare it.
4360 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
4361
fb5610fb
IS
43622013-09-14 Iain Sandoe <iain@codesourcery.com>
4363
4364 PR target/48094
4365 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
4366 fobjc-gc, freplace-objc-classes): Accept for LTO.
4367
88b0e79e
JC
43682013-09-13 Jacek Caban <jacek@codeweavers.com>
4369
4370 * c-target.def: New hook
4371
c9b0866a
PC
43722013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
4373
4374 PR c++/43452
4375 * c.opt (Wdelete-incomplete): Add.
4376
0af94e6f
JR
43772013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
4378
4379 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
4380 (vector_types_compatible_elements_p): New function.
4381 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
4382 declaration.
4383 (vector_types_compatible_elements_p): Declare.
4384
7c26172c
GDR
43852013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
4386
4387 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
4388 a virtual member function.
4389 (pp_simple_type_specifier): Remove.
4390 (pp_c_type_specifier): Likewise.
4391 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
4392 Rename from pp_c_type_specifier. Adjust.
4393 (c_pretty_printer::c_pretty_printer): Do not assign to
4394 simple_type_specifier.
4395
20059c8b
GDR
43962013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
4397
4398 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
4399 member function.
4400 (c_pretty_printer::storage_class_specifier): Likewise.
4401 (c_pretty_printer::initializer): Likewise.
4402 (pp_declaration): Remove.
4403 (pp_declaration_specifiers): Likewise.
4404 (pp_abstract_declarator): Likewise.
4405 (pp_declarator): Likewise.
4406 (pp_type_id): Likewise.
4407 (pp_statement): Likewise.
4408 (pp_constant): Likewise.
4409 (pp_id_expression): Likewise.
4410 (pp_primary_expression): Likewise.
4411 (pp_unary_expression): Likewise.
4412 (pp_multiplicative_expression): Likewise.
4413 (pp_conditional_expression): Likewise.
4414 (pp_assignment_expression): Likewise.
4415 (pp_expression): Likewise.
4416 (pp_c_type_id): Likewise.
4417 (pp_c_storage_class_specifier): Likewise.
4418 * c-pretty-print.c (pp_c_type_cast): Tidy.
4419 (pp_c_pointer): Likewise.
4420 (pp_c_type_specifier): Likewise.
4421 (pp_c_parameter_type_list): Likewise.
4422 (pp_c_function_definition): Likewise.
4423 (pp_c_init_declarator): Likewise.
4424 (pp_c_initializer_list): Likewise.
4425 (pp_c_constructor_elts): Likewise.
4426 (c_pretty_printer::direct_abstract_declarator): Likewise.
4427 (c_pretty_printer::declaration_specifiers): Likewise.
4428 (c_pretty_printer::primary_expression): Likewise.
4429 (c_pretty_printer::postfix_expression): Likewise.
4430 (c_pretty_printer::type_id): Rename from pp_c_type_id.
4431 (c_pretty_printer::storage_class_specifier): Rename from
4432 pp_c_storage_class_specifier.
4433 (c_pretty_printer::initializer): Rename from pp_c_initializer.
4434 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
4435 storage_class_specifier, initializer, offset_list, flags.
4436
de5a5fa1
MP
44372013-08-30 Marek Polacek <polacek@redhat.com>
4438
4439 * c-ubsan.c: New file.
4440 * c-ubsan.h: New file.
4441
8f0e4d72
GDR
44422013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
4443
4444 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
4445 member function.
4446 (c_pretty_printer::declaration_specifiers): Likewise.
4447 (c_pretty_printer::declarator): Likewise.
4448 (c_pretty_printer::abstract_declarator): Likewise.
4449 (c_pretty_printer::direct_abstract_declarator): Likewise.
4450 (c_pretty_printer::direct_declarator): Likewise.
4451 (c_pretty_printer::function_specifier): Likewise.
4452 (pp_declaration): Adjust.
4453 (pp_declaration_specifiers): Likewise.
4454 (pp_abstract_declarator): Likewise.
4455 (pp_direct_declarator): Likewise.
4456 (pp_function_specifier): Likewise.
4457 (pp_direct_abstract_declarator): Remove as unused.
4458 (pp_c_declaration): Remove.
4459 (pp_c_declaration_specifiers): Likewise.
4460 (pp_c_declarator): Likewise.
4461 (pp_c_direct_declarator): Likewise.
4462 (pp_c_function_specifier): Likewise.
4463 (pp_c_direct_abstract_declarator): Likewise.
4464 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
4465 from pp_c_abstract_declarator. Adjust.
4466 (c_pretty_printer::direct_abstract_declarator): Rename from
4467 pp_c_direct_abstract_declarator. Adjust.
4468 (c_pretty_printer::function_specifier): Rename from
4469 pp_c_function_specifier. Adjust.
4470 (c_pretty_printer::declaration_specifiers): Rename from
4471 pp_c_declaration_specifiers. Adjust.
4472 (c_pretty_printer::direct_declarator): Rename from
4473 pp_c_direct_declarator. Adjust.
4474 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
4475 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
4476 (c_pretty_printer::c_pretty_printer): Do not assign to
4477 declaration, declaration_specifiers, declarator,
4478 direct_declarator, direct_abstract_declarator, function_specifier.
4479
00d34d3a
GDR
44802013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
4481
4482 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
4483 virtual member function.
4484 (c_pretty_printer::multiplicative_expression): Likewise.
4485 (c_pretty_printer::conditional_expression): Likewise.
4486 (c_pretty_printer::assignment_expression): Likewise.
4487 (c_pretty_printer::expression): Likewise.
4488 (pp_unary_expression): Adjust.
4489 (pp_multiplicative_expression): Likewise.
4490 (pp_assignment_expression): Likewise.
4491 (pp_conditional_expression): Likewise.
4492 (pp_expression): Likewise.
4493 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
4494 from pp_c_unary_expression. Adjust.
4495 (c_pretty_printer::multiplicative_expression): Rename from
4496 pp_c_multiplicative_expression. Adjust.
4497 (c_pretty_printer::conditional_expression): Rename from
4498 pp_c_conditional_expression. Adjust.
4499 (c_pretty_printer::assignment_expression): Rename from
4500 pp_c_assignment_expression. Adjust.
4501 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
4502 (c_pretty_printer::c_pretty_printer): Do not assign to
4503 unary_expression, multiplicative_expression,
4504 conditional_expression, expression.
4505
fb22178f
GDR
45062013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4507
4508 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
4509 virtual member function.
4510 (pp_postfix_expression): Adjust.
4511 (pp_c_postfix_expression): Remove.
4512 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
4513 from pp_c_postfix_expression. Adjust.
4514 (c_pretty_printer::c_pretty_printer): Do not assign to
4515 postfix_expression.
4516
7ecc2600
GDR
45172013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4518
4519 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
4520 virtua member function.
4521 (pp_primary_expression): Adjust.
4522 (pp_c_primary_expression): Remove.
4523 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
4524 from pp_c_primary_expression. Adjust.
4525 (pp_c_initializer_list): Use pp_primary_expression.
4526 (c_pretty_printer::c_pretty_printer): Do not assign to
4527 primary_expression.
4528
0691175f
GDR
45292013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4530
4531 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
4532 * c-pretty-print.c (M_): Remove.
4533 (c_pretty_printer::translate_string): Define.
4534 (pp_c_type_specifier): Use it.
4535 (pp_c_primary_expression): Likewise.
4536 (pp_c_expression): Likewise.
4537
66dfe4c4
GDR
45382013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
4539
4540 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
4541 virtual function.
4542 (pp_c_id_expression): Remove.
4543 (pp_id_expression): Adjust.
4544 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
4545 pp_c_id_expression. Adjust.
4546 (pp_c_postfix_expression): Use pp_id_expression.
4547 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
4548
ca43e9d5
GDR
45492013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
4550
4551 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
4552 member function.
4553 (pp_constant): Adjust.
4554 (pp_c_constant): Remove.
4555 * c-pretty-print.c (c_pretty_printer::constant): Rename from
4556 pp_c_constant. Adjust.
4557 (pp_c_constant)
4558 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
4559 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
4560
da6ca2b5
GDR
45612013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
4562
4563 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
4564 (c_pretty_printer::c_pretty_printer): Declare.
4565 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
4566 c_pretty_printer_init. Adjust.
4567 (print_c_tree): Do not call c_pretty_printer_init.
4568 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
4569
65a372f4
AC
45702013-08-09 Arnaud Charlet <charlet@adacore.com>
4571
4572 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
4573
fd9b0f32
PC
45742013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
4575
4576 PR c++/58080
4577 * c-common.c (pointer_int_sum): Add bool parameter.
4578 * c-common.h (pointer_int_sum): Adjust declaration.
4579
e0aec1e9
GDR
45802013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
4581
4582 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
4583 c_pretty_printer variable.
4584
b066401f
GDR
45852013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
4586
4587 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
4588 (pp_base): Remove.
4589 (pp_c_base): Likewise. Adjust users.
4590 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
4591 (pp_c_whitespace): Do not call pp_base.
4592 (pp_c_left_paren): Likewise.
4593 (pp_c_right_paren): Likewise.
4594 (pp_c_left_brace): Likewise.
4595 (pp_c_right_brace): Likewise.
4596 (pp_c_left_bracket): Likewise.
4597 (pp_c_right_bracket): Likewise.
4598 (pp_c_dot): Likewise.
4599 (pp_c_ampersand): Likewise.
4600 (pp_c_star): Likewise.
4601 (pp_c_arrow): Likewise.
4602 (pp_c_semicolon): Likewise.
4603 (pp_c_complement): Likewise.
4604 (pp_c_exclamation): Likewise.
4605 (pp_c_direct_declarator): Likewise.
4606 (pp_c_ws_string): Likewise.
4607 (pp_c_identifier): Likewise.
4608 (pp_c_statement): Likewise.
4609 (print_c_tree): Likewise.
4610
65e5a578
ESR
46112013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
4612
4613 PR c++/58072
4614 * c-common.c (c_parse_error): Catch user-defined literal tokens and
4615 provide useful error strings.
4616
137a1a27
GDR
46172013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
4618
4619 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
4620 printer functions instead of pp_string or operators and punctuators.
4621 (dump_generic_ada_node): Likewise.
4622 * c-pretty-print.c (pp_c_type_specifier): Likewise.
4623 (pp_c_relational_expression): Likewise.
4624 (pp_c_logical_or_expression): Likewise.
4625
07838b13
GDR
46262013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
4627
4628 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
4629 functions instead of pp_character.
4630 (pp_ada_tree_identifier): Likewise.
4631 (dump_ada_double_name): Likewise.
4632 (dump_ada_function_declaration): Likewise.
4633 (dump_ada_array_domains): Likewise.
4634 (dump_template_types): Likewise.
4635 (dump_generic_ada_node): Likewise.
4636 (print_ada_declaration): Likewise.
4637 (print_ada_struct_decl): Likewise.
4638 * c-pretty-print.c (pp_c_integer_constant): Likewise.
4639
433cc7b0
TT
46402013-07-23 Tom Tromey <tromey@redhat.com>
4641
4642 * c-common.h (enum rid) <RID_GENERIC>: New constant.
4643 * c-common.c (c_common_reswords): Add _Generic.
4644
688010ba
OB
46452013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
4646
4647 * c-common.c: Fix typos.
4648 * c-common.h: Likewise.
4649
2a99e5e6
LL
46502013-07-13 Lubos Lunak <l.lunak@suse.cz>
4651
4652 PR c++/55203
4653 * c-common.c (c_common_attribute_table): Add warn_unused.
4654 (handle_warn_unused_attribute): New.
4655
c26302d5
JJ
46562013-07-10 Jakub Jelinek <jakub@redhat.com>
4657
4658 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
4659 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
4660
dfeadaa0
PC
46612013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
4662
4663 PR c++/57869
4664 * c.opt: Add Wconditionally-supported.
4665
6a2fa4b2
GS
46662013-07-08 Graham Stott <graham.stott@btinternet.com>
4667
adfac8df 4668 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
4669 unused variables l_length and l_node.
4670
ecdbd01a 46712013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
4672
4673 PR c/57821
4674 * c-common.c (complete_array_type): Delay folding first index
4675 like other indices. When folding, check for index overflow.
4676
bedc293e
MG
46772013-06-27 Marc Glisse <marc.glisse@inria.fr>
4678
4679 PR c++/57509
4680 * c-common.h (c_build_vec_perm_expr): New complain argument.
4681 * c-common.c (c_build_vec_perm_expr): Likewise.
4682 Use save_expr also in C++.
4683
604b2bfc
GDR
46842013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
4685
4686 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
4687 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
4688 * c-opts.c (c_common_post_options): Likewise.
4689
dfeadaa0 46902013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
4691
4692 * array-notation-common.c (length_mismatch_in_expr): Changed the
4693 parameter type's from a dynamic array to a vec_tree. Also removed
4694 the size parameters.
4695 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
4696 the change above.
4697
2ce86d2e
BI
46982013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
4699
4700 * c-common.h (struct cilkplus_an_parts): New structure.
4701 (struct cilkplus_an_loop_parts): Likewise.
4702 (cilkplus_extract_an_triplets): New prototype.
4703 (fix_sec_implicit_args): Likewise.
4704 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
4705 (fix_sec_implicit_args): Likewise.
604b2bfc 4706
07a6825b
BI
47072013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
4708
4709 * array-notation-common.c (find_inv_trees): Removed an unwanted
4710 typecasting.
4711 * c-common.h (struct inv_list::additional_tcodes): Changed type from
4712 enum rid to enum tree_code.
4713
08346abd
JH
47142013-06-11 Jan Hubicka <jh@suse.cz>
4715
4716 * c-common.c (handle_alias_ifunc_attribute): Do not set
4717 DECL_EXTERNAL for weakref variables.
4718 * c-pragma.c (handle_pragma_weak): Make sure aliases
4719 are not declared as external.
4720
d60f1706
BI
47212013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
4722
4723 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
4724 function from c/c-array-notation.c.
4725 (is_cilkplus_reduce_builtin): Likewise.
4726 (find_rank): Likewise.
4727 (extract_array_notation_exprs): Likewise.
4728 (replace_array_notations): Likewise.
4729 (find_inv_trees): Likewise.
4730 (replace_inv_trees): Likewise.
4731 (contains_array_notation_expr): Likewise.
4732 (find_correct_array_notation_type): Likewise.
4733 * c-common.h (struct inv_list): Moved this struct from the file
4734 c/c-array-notation.c and added a new field called additional tcodes.
4735 (length_mismatch_in_expr_p): New prototype.
4736 (is_cilkplus_reduce_builtin): Likewise.
4737 (find_rank): Likewise.
4738 (extract_array_notation_exprs): Likewise.
4739 (replace_array_notation): Likewise.
4740 (find_inv_trees): Likewise.
4741 (replace_inv_trees): Likewise.
4742 (find_correct_array_notation_type): Likewise.
dfeadaa0 4743
36536d79
BI
47442013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
4745
4746 * c-common.c (c_define_builtins): When cilkplus is enabled, the
4747 function array_notation_init_builtins is called.
4748 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
4749 * c-common.def (ARRAY_NOTATION_REF): New tree.
4750 * c-common.h (build_array_notation_expr): New function declaration.
4751 (build_array_notation_ref): Likewise.
4752 (extract_sec_implicit_index_arg): New extern declaration.
4753 (is_sec_implicit_index_fn): Likewise.
4754 (ARRAY_NOTATION_CHECK): New define.
4755 (ARRAY_NOTATION_ARRAY): Likewise.
4756 (ARRAY_NOTATION_START): Likewise.
4757 (ARRAY_NOTATION_LENGTH): Likewise.
4758 (ARRAY_NOTATION_STRIDE): Likewise.
4759 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
4760 ARRAY_NOTATION_REF.
4761 (pp_c_expression): Likewise.
4762 * c.opt (flag_enable_cilkplus): New flag.
4763 * array-notation-common.c: New file.
4764
f7716d57
JJ
47652013-05-14 Jakub Jelinek <jakub@redhat.com>
4766
4767 PR c++/57274
4768 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
4769
a5e0cd1d
MG
47702013-05-10 Marc Glisse <marc.glisse@inria.fr>
4771
4772 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
4773 vectors.
4774
f6bc1c4a
HS
47752013-05-07 Han Shen <shenhan@google.com>
4776
4777 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
4778
3f12f6e9
SKS
47792013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4780
4781 * c-common.c (check_user_alignment): Emit error for negative values.
4782
61949153
PC
47832013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4784
4785 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
4786
e93e18e9
PC
47872013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4788
4789 * c-cppbuiltin.c (c_cpp_builtins): Do not define
4790 __GXX_EXPERIMENTAL_CXX1Y__.
4791
44d90fe1
PC
47922013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4793 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4794
4795 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
4796 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
4797 to simply use OPT_Wpointer_arith.
4798 (c_sizeof_or_alignof_type): Likewise.
4799
13f39b2e
PC
48002013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4801
4802 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
4803
4b84d650
JJ
48042013-04-12 Jakub Jelinek <jakub@redhat.com>
4805
4806 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
4807 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
4808 specifiers.
4809
fb037b5d
SB
48102013-04-07 Steven Bosscher <steven@gcc.gnu.org>
4811
4812 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
4813
4e856798
PC
48142013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
4815
4816 * c-common.c (pointer_int_sum): Remove dead code.
4817
4b1baac8
RS
48182013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
4819
4820 PR middle-end/56524
4821 * c-common.c (handle_optimize_attribute): Don't call
4822 save_optabs_if_changed.
4823
0b50e654
JJ
48242013-03-05 Jakub Jelinek <jakub@redhat.com>
4825
4826 PR middle-end/56461
4827 * c-pch.c (pch_init): Free target_validity at the end.
4828
48c41403
JJ
48292013-03-04 Jakub Jelinek <jakub@redhat.com>
4830
4831 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
4832
e664c61c
KS
48332013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
4834 Jakub Jelinek <jakub@redhat.com>
4835
4836 PR sanitizer/56454
4837 * c-common.c (handle_no_sanitize_address_attribute): New function.
4838 (c_common_attribute_table): Add no_sanitize_address attribute.
4839 (handle_no_address_safety_analysis_attribute): Add
4840 no_sanitize_address attribute, not no_address_safety_analysis
4841 attribute.
4842
a475fd3d 48432013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
4844
4845 PR target/52555
4846 * c-common.c (handle_optimize_attribute): Call
4847 save_optabs_if_changed.
4848
f6007d99
JJ
48492013-02-18 Jakub Jelinek <jakub@redhat.com>
4850 Steven Bosscher <steven@gcc.gnu.org>
4851
4852 PR pch/54117
4853 * c-opts.c (c_common_post_options): If debug info is enabled
4854 and non-dwarf*, refuse to load PCH files and when writing PCH
4855 file warn.
4856
cf35e2b1
JJ
48572013-02-05 Jakub Jelinek <jakub@redhat.com>
4858
4859 PR middle-end/56167
4860 * c-common.c (handle_error_attribute): Fix condition.
4861
32887460
JJ
48622013-01-30 Jakub Jelinek <jakub@redhat.com>
4863
4864 PR c++/55742
4865 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
4866
5af057d8
JM
48672013-01-18 Jason Merrill <jason@redhat.com>
4868
4869 PR target/54908
4870 * c.opt (-fextern-tls-init): New.
4871 * c-opts.c (c_common_post_options): Handle it.
4872
cc83c823
JJ
48732013-01-09 Jakub Jelinek <jakub@redhat.com>
4874
4875 PR c/48418
4876 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
4877 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
4878 and is either negative or bigger or equal to type precision
4879 of the first operand.
4880
a859517f
MP
48812012-12-03 Marek Polacek <polacek@redhat.com>
4882
4883 PR c/55570
4884 * c-common.c (check_user_alignment): Swap order of tests,
4885 check TREE_CODE first.
4886
2d7aa578
ESR
48872012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
4888
4889 PR c++/52654
4890 * c-common.h (overflow_type): New enum.
4891 (build_userdef_literal): Add overflow_type argument.
4892 (tree_userdef_literal): Add overflow_type.
4893 (USERDEF_LITERAL_OVERFLOW): New access macro.
4894 * c-common.c (build_userdef_literal): Add overflow_type
4895 argument.
4896 * c-lex.c (c_lex_with_flags): Add overflow_type to
4897 build_userdef_literal calls.
4898 (interpret_integer, interpret_float): Add overflow_type argument.
4899
cc3c4f62
RB
49002012-11-28 Richard Biener <rguenther@suse.de>
4901
4902 PR c/35634
4903 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
4904 here and use a type with proper overflow behavior for types that would
4905 need to be promoted for the arithmetic.
4906
77bc5132
JJ
49072012-11-23 Jakub Jelinek <jakub@redhat.com>
4908
4909 PR sanitizer/55435
4910 * c-common.c (handle_no_address_safety_analysis_attribute): New
4911 function.
4912 (c_common_attribute_table): Add no_address_safety_analysis.
4913
5dc99c46
SB
49142012-11-16 Simon Baldwin <simonb@google.com>
4915
4916 * c.opt: Add f[no-]canonical-system-headers.
4917 * c-opts.c (c_common_handle_option): Handle
4918 OPT_fcanonical_system_headers.
4919
a4a0016d
ESR
49202012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
4921
4922 PR c++/54413
4923 * c-opts.c (c_common_handle_option): Set new flags.
4924 * c.opt: Describe new flags.
4925
7dbb85a7
JM
49262012-11-09 Jason Merrill <jason@redhat.com>
4927
4928 * c.opt (Wabi-tag): New.
4929
ad7bac31
AK
49302012-11-09 Andi Kleen <ak@linux.intel.com>
4931
4932 PR 55139
4933 * c-common.c (get_atomic_generic_size): Mask with
4934 MEMMODEL_MASK
4935
7332899a
MLI
49362012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4937
4938 PR c/53063
4939 * c.opt (Wformat): Make it Alias Wformat=1.
4940 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
4941 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
4942 LangEnabledBy.
4943 (Wformat=): RejectNegative. Use LangEnabledBy.
4944 (Wnonnull): Use LangEnabledBy.
4945 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
4946 * c-format.c (set_Wformat): Delete.
4947 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
4948 (maybe_read_dollar_number): Likewise.
4949 (avoid_dollar_number): Likewise.
4950 (finish_dollar_format_checking): Likewise.
4951 (check_format_info): Likewise.
4952 (check_format_info_main): Likewise.
4953 (check_format_types): Likewise.
4954 (format_type_warning): Likewise.
4955 * c-common.c (int): Likewise.
4956 (check_function_sentinel): Likewise.
4957 * c-common.h (warn_format,set_Wformat): Do not declare here.
4958
34a180a6
MLI
49592012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4960
4961 PR c/53063
4962 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
4963 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
4964 Use LangEnabledBy.
4965 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
4966 common.opt.
4967 (Wvariadic-macros): Init(1).
4968 * c-opts.c (c_common_handle_option): Do not handle them
4969 explicitly.
4970 (c_common_post_options): Likewise.
4971 (sanitize_cpp_opts): warn_unused_macros is now
4972 cpp_warn_unused_macros.
4973 (push_command_line_include): Likewise.
4974 * c-common.c (warn_unknown_pragmas): Do not define.
4975 * c-common.h (warn_unknown_pragmas): Do not declare.
4976
3f46d6a5
MLI
49772012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4978
4979 PR c/51294
4980 * c-common.c (conversion_warning): Handle conditional expressions.
4981
880661a4
JW
49822012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
4983
4984 PR c++/54930
4985 * c.opt (Wreturn_local_addr): Define new option.
4986
4514a96b
JM
49872012-10-25 Jason Merrill <jason@redhat.com>
4988
f14edc1a
JM
4989 * c.opt (Wvirtual-move-assign): New.
4990
4514a96b
JM
4991 * c.opt (Winherited-variadic-ctor): New.
4992
93100c6b
MG
49932012-10-25 Marc Glisse <marc.glisse@inria.fr>
4994
4995 PR c++/54427
4996 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
4997
1efcb8c6
JM
49982012-10-23 Joseph Myers <joseph@codesourcery.com>
4999
5000 * c-common.h (pch_cpp_save_state): Declare.
5001 * c-target.def (c_preinclude): New hook.
5002 * c-opts.c (done_preinclude): New.
5003 (push_command_line_include): Handle default preincluded header.
5004 (cb_file_change): Call pch_cpp_save_state when calling
5005 push_command_line_include.
5006 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
5007 (pch_cpp_save_state): New.
5008 (pch_init): Call pch_cpp_save_state conditionally, instead of
5009 calling cpp_save_state.
5010
4a0ae68e
MLI
50112012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5012
5013 PR c/53063
5014 PR c/40989
5015 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
5016 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
5017 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
5018 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
5019 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
5020 * c-opts.c (c_common_handle_option): Remove explicit handling from
5021 here.
5022 (c_common_post_options): Likewise.
5023
67e4210b
EB
50242012-10-18 Eric Botcazou <ebotcazou@adacore.com>
5025
5026 * c-ada-spec.c (LOCATION_COL): Delete.
5027 (compare_location): New function.
5028 (compare_node): Use it.
5029 (compare_comment): Likewise.
5030
65d4f2cd
MLI
50312012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
5032
5033 PR c/53063
5034 PR c/40989
5035 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
5036 * c-opts.c (c_common_handle_option): Do not set them here. Add
5037 comment.
5038 (c_common_post_options): Likewise.
5039
909881cb
EB
50402012-10-16 Eric Botcazou <ebotcazou@adacore.com>
5041
5042 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
5043 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
5044 Remove POINTER_TYPE handling, add large unsigned handling and use
5045 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
5046
3a785c97
JJ
50472012-10-12 Jakub Jelinek <jakub@redhat.com>
5048
5049 PR c/54381
5050 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
5051 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
5052 locs and array of 3 trees instead of just single loc and single
5053 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
5054 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
5055 For *cmp* builtins that take two sources strings report warnings
5056 about first and second source, not about destination and source.
5057
5e54f81d
MG
50582012-10-12 Marc Glisse <marc.glisse@inria.fr>
5059
5060 PR c++/53055
5061 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
5062
f5b02f1e
EB
50632012-10-11 Eric Botcazou <ebotcazou@adacore.com>
5064
5065 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
5066 declaring something coming from another file.
5067
b46dbc6c
AC
50682012-10-10 Arnaud Charlet <charlet@adacore.com>
5069
f5b02f1e 5070 PR ada/54845
b46dbc6c
AC
5071 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
5072
5d9de0d0
PC
50732012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
5074
5075 PR c++/54194
5076 * c-common.c (warn_about_parentheses): Add location_t parameter;
5077 use EXPR_LOC_OR_LOC.
5078 * c-common.h: Update declaration.
5079
a212e43f
MG
50802012-10-09 Marc Glisse <marc.glisse@inria.fr>
5081
5082 PR c++/54427
5083 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
5084 more operations. Make error messages optional.
5085 * c-common.h (enum stv_conv): Moved from c-typeck.c.
5086 (scalar_to_vector): Declare.
5087
b1db7f91
JM
50882012-10-08 Jason Merrill <jason@redhat.com>
5089
5090 * c-common.c (c_common_reswords): Add thread_local.
5091
e28d52cf
DS
50922012-10-08 Dodji Seketeli <dodji@redhat.com>
5093
5094 PR c++/53528 C++11 attribute support
5095 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
5096 new functions.
5097 * c-common.c (check_cxx_fundamental_alignment_constraints): New
5098 static function.
5099 (handle_aligned_attribute): In choose strictest alignment
5100 among many. Use new check_cxx_fundamental_alignment_constraints.
5101 (handle_transparent_union_attribute): In c++11 attribute syntax,
5102 don't look through typedefs.
5103
3b78de56
AC
51042012-10-04 Arnaud Charlet <charlet@adacore.com>
5105
5106 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
5107 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
5108 out of dumpfile.h.
5109
6040bb5f
DC
51102012-09-25 Dehao Chen <dehao@google.com>
5111
5112 PR middle-end/54645
3b78de56 5113 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
5114 map when read in the pch.
5115
3f8257db 51162012-09-18 Arnaud Charlet <charlet@adacore.com>
0b07a57e
AC
5117
5118 * c-ada-spec.c: Style fixes.
5119
3f8257db 51202012-09-18 Thomas Quinot <quinot@adacore.com>
da5182be
TQ
5121
5122 * c.opt (-fada-spec-parent): Define new command line switch.
5123 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
5124 is specified, generate binding spec as a child of the specified unit.
5125
0ccb505d
PC
51262012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
5127 Manuel López-Ibáñez <manu@gcc.gnu.org>
5128
5129 PR c++/53210
5130 * c.opt ([Winit-self]): Enabled by -Wall in C++.
5131
c583af79
AC
51322012-08-23 Arnaud Charlet <charlet@adacore.com>
5133
5134 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
5135 for pointers, and add missing Convention C pragma.
5136 (print_ada_struct_decl): Add missing aliased keyword.
5137 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
5138
1a4049e7
JJ
51392012-08-17 Jakub Jelinek <jakub@redhat.com>
5140
5141 * c-common.c (sizeof_pointer_memaccess_warning): New function.
5142 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
5143 * c-opts.c (c_common_handle_option): Enable it for -Wall.
5144 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
5145 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
5146
70b5e7dc
RG
51472012-08-10 Richard Guenther <rguenther@suse.de>
5148
5149 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
5150
f8923f7e
SB
51512012-08-07 Steven Bosscher <steven@gcc.gnu.org>
5152
5153 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
5154 instead of separate pp_newline and pp_flush.
5155 (print_c_tree): Likewise.
5156
e45abe1f
RH
51572012-07-26 Richard Henderson <rth@redhat.com>
5158
5159 * c-common.c (handle_hot_attribute): Allow labels.
5160 (handle_cold_attribute): Likewise.
5161
332f1d24
JJ
51622012-07-20 Jakub Jelinek <jakub@redhat.com>
5163
5164 PR c++/28656
5165 * c-common.c (check_function_nonnull): Handle multiple nonnull
5166 attributes properly.
5167
7ee2468b
SB
51682012-07-16 Steven Bosscher <steven@gcc.gnu.org>
5169
5170 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
5171 * c-ada-spec.c: Likewise.
5172 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
5173
ee7b28eb
SB
51742012-07-14 Steven Bosscher <steven@gcc.gnu.org>
5175
5176 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
5177 Remove code conditional on it.
5178
6bdf3519
SB
51792012-07-11 Steven Bosscher <steven@gcc.gnu.org>
5180
5181 * c-gimplify.c: Do not include basic-block.h.
5182 * c-common.c: Do not include linfuncs.h.
5183
532aafad
SB
51842012-07-08 Steven Bosscher <steven@gcc.gnu.org>
5185
5186 * c-common.h: Include tree.h.
5187
8d0d1915
JM
51882012-07-02 Jason Merrill <jason@redhat.com>
5189
5190 PR c++/53524
5191 * c-common.c (get_priority): Call default_conversion.
5192
fbc873ad
UB
51932012-07-01 Uros Bizjak <ubizjak@gmail.com>
5194
5195 * c-pch.c (c_common_write_pch): Remove unused variables.
5196
d4a10d0a
SB
51972012-06-29 Steven Bosscher <steven@gcc.gnu.org>
5198
5199 * cppspec.c: Moved from gcc/ to here.
5200
6f3a2e23
KT
52012012-06-27 Kai Tietz <ktietz@redhat.com>
5202
5203 PR preprocessor/37215
5204 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
5205
8ca92d04
SB
52062012-06-21 Steven Bosscher <steven@gcc.gnu.org>
5207
5208 * c-common.h (c_common_print_pch_checksum): Remove.
5209 * c-pch.c: Do not include output.h.
5210 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
5211 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
5212 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
5213 (struct c_pch_header): Remove.
5214 (get_ident): Update gpch version.
5215 (pch_init): Do not print executable_checksum to asm_out_file.
5216 Do not fail if there is no asm_out_file to read back from. Set
5217 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
5218 (c_common_write_pch): Verify that nothing was written to asm_out_file
5219 since pch_init was called. Do not write a c_pch_header, and do not
5220 copy from asm_out_file to the PCH.
5221 (c_common_read_pch): Do not read a c_pch_header, and do not restore
5222 the content of asm_out_file from the PCH.
5223 (c_common_print_pch_checksum): Remove.
5224 * c-opts.c (c_common_init): Print out executable_checksum directly.
5225
70f42967
SB
52262012-06-19 Steven Bosscher <steven@gcc.gnu.org>
5227
5228 * c-target.def (objc_declare_unresolved_class_reference,
5229 objc_declare_class_definition): Add new hooks.
5230
a8781821
SB
52312012-06-19 Steven Bosscher <steven@gcc.gnu.org>
5232
5233 * c-lex.c: Do not include output.h.
5234 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
5235 Remove uses of ASM_OUTPUT_IDENT.
5236
9e1a8dd1
RR
52372012-06-15 Marc Glisse <marc.glisse@inria.fr>
5238
5239 PR c++/51033
5240 * c-common.h (c_build_vec_perm_expr): Move decl here.
5241 * c-common.c (c_build_vec_perm_expr): Move definition
5242 here.
5243
6f07a821
SB
52442012-06-06 Steven Bosscher <steven@gcc.gnu.org>
5245
5246 * c.opt (fconserve-space): Turn into a no-op.
5247
9faeb493 52482012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
5249
5250 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
5251 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
5252 both the start and end of the function.
5253
a4b7d13c
SB
52542012-06-04 Steven Bosscher <steven@gcc.gnu.org>
5255
5256 * c-common.c: Do not include output.h.
5257 * c-pragma.c: Likewise.
5258
c265f413
SA
52592012-06-04 Steven Bosscher <steven@gcc.gnu.org>
5260
5261 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
5262 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
5263 (lang_decl_name): Handle namespace decls.
5264
be7a421e
SB
52652012-05-31 Steven Bosscher <steven@gcc.gnu.org>
5266
5267 * c-ada-spec.c: Do not include output.h.
5268 * c-semantics.c: Likewise.
5269
65de6659
JM
52702012-05-29 Joseph Myers <joseph@codesourcery.com>
5271
5272 * c-common.c: Fix typo.
5273
ca5f4331
MM
52742012-05-29 Michael Matz <matz@suse.de>
5275
5276 * c-common.h (c_expand_decl): Remove prototype.
5277
4f7f7aca
MLI
52782012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
5279
5280 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
5281 * c-opts.c (c_common_handle_option): Remove code handling
5282 warn_missing_braces.
5283
4a792f9b
PC
52842012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
5285
5286 PR c++/25137
5287 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
5288 -Wmissing_braces.
5289
650dc14a
DS
52902012-05-22 Dodji Seketeli <dodji@redhat.com>
5291
5292 PR c++/53322
5293 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
5294
9b095bf1
MLI
52952012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
5296
5297 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
5298 * c-opts.c (c_common_handle_option): Do not handle explicitly
5299 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
5300
0b2c4be5
DS
53012012-05-16 Dodji Seketeli <dodji@redhat.com>
5302
5303 PR preprocessor/7263
5304 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
5305 to cpp_classify_number. For diagnostics, use the precise location
5306 instead of the global input_location.
5307
a1bde5af
PC
53082012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
5309
d02924ef 5310 PR c++/11856
a1bde5af
PC
5311 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
5312
d1ede5f4
BS
53132012-05-14 Bernd Schmidt <bernds@codesourcery.com>
5314
a1bde5af 5315 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 5316
f2bc201f
MLI
53172012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
5318
5319 PR 53063
5320 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
5321 Wreorder): Use LangEnabledBy.
5322 * c-opts.c (c_common_handle_option): Do not enable them
5323 explicitly. Call lang-specific generated functions.
5324 (c_common_post_options): Do not set them here.
5325
95744782
MLI
53262012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
5327
5328 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
5329 Wmissing-field-initializers,Wmissing-parameter-type,
5330 Wold-style-declaration,Woverride-init): Use EnabledBy.
5331 * c-opts.c (c_common_post_options): Do not set here explicitly.
5332
7d5a5747
MLI
53332012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
5334
5335 PR 53063
5336 * c-opts.c (c_common_handle_option): Use handle_generated_option
5337 to enable sub-options.
5338
5a3c9cf2
PC
53392012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
5340
5341 PR c++/53158
5342 * c-common.c (warnings_for_convert_and_check): Use warning_at.
5343
3ac8781c
RG
53442012-05-10 Richard Guenther <rguenther@suse.de>
5345
5346 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
5347 adjust commentary about TYPE_IS_SIZETYPE types.
5348
1e537948
MLI
53492012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5350
5351 PR c++/53261
5352 * c-common.c (warn_logical_operator): Check that argument of
5353 integer_zerop is not NULL.
5354
f2c4a785
MLI
53552012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
5356
5357 PR c/43772
5358 * c-common.c (warn_logical_operator): Do not warn if either side
5359 is already true or false.
5360
50f305ca
MLI
53612012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
5362
5363 PR c/51712
5364 * c-common.c (expr_original_type): New.
5365 (shorten_compare): Do not warn for enumeration types.
5366
0c3641b0
MLI
53672012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
5368
5369 * c.opt (fpermissive): Add Var(flag_permissive).
5370
7edaa4d2
MG
53712012-04-30 Marc Glisse <marc.glisse@inria.fr>
5372
5373 PR c++/51033
5374 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
5375 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
5376
b9c8da34
DS
53772012-04-30 Dodji Seketeli <dodji@redhat.com>
5378
5379 Add -Wvarargs option
5380 * c.opt (Wvarargs): Define new option.
5381
e6c69da0
MLI
53822012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5383
5384 * c-common.c (check_function_arguments): Replace
5385 Wmissing-format-attribute with Wsuggest-attribute=format.
5386
90137d8f
MLI
53872012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5388
5389 * c.opt (Wsuggest-attribute=format): New. Alias of
5390 Wmissing-format-attribute.
5391 * c-format.c (decode_format_type): Replace
5392 Wmissing-format-attribute with Wsuggest-attribute=format.
5393 (check_function_format): Likewise.
5394
9faeb493 53952012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
5396
5397 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
5398 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
5399 * c.opt: Add Wliteral-suffix.
5400
c1771a20
MLI
54012012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
5402
5403 PR c/44774
5404 * c.opt (Wpedantic): New.
5405 (pedantic): Alias Wpedantic.
5406 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
5407 (c_common_post_options): Likewise.
5408 (sanitize_cpp_opts): Likewise.
5409 * c-lex.c (interpret_float): Likewise.
5410 * c-format.c (check_format_types): Likewise.
5411 * c-common.c (pointer_int_sum): Likewise.
5412 (c_sizeof_or_alignof_type): Likewise.
5413 (c_add_case_label): Likewise.
5414 (c_do_switch_warnings): Likewise.
5415 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
5416
04b391c1
JM
54172012-04-15 Jason Merrill <jason@redhat.com>
5418
5419 PR c++/52818
5420 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
5421 (C_STD_NAME): Distinguish between C++98 and C++11.
5422
ac868f29
EB
54232012-04-11 Eric Botcazou <ebotcazou@adacore.com>
5424
5425 PR target/52624
5426 * c-common.h (uint16_type_node): Rename into...
5427 (c_uint16_type_node): ...this.
5428 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
5429 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
5430
fd4116f4
MLI
54312012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
5432
5433 * c-common.c (warn_if_unused_value): Move definition to here.
5434 * c-common.h (warn_if_unused_value): Move declaration to here.
5435
573ac65e
WB
54362012-03-23 William Bader <williambader@hotmail.com>
5437
5438 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
5439
552b8185
JM
54402012-03-20 Jason Merrill <jason@redhat.com>
5441
5442 * c-common.h (enum cxx_dialect): Add cxx1y.
5443 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
5444 test.
5445 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
5446 * c-opts.c (c_common_post_options): Likewise.
5447 (set_std_cxx1y): New.
5448 (c_common_handle_option): Call it.
5449 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
5450
04398fa8
PC
54512012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
5452
5453 PR c++/14710
5454 * c.opt ([Wuseless-cast]): Add.
5455
d2a12ae7
RG
54562012-03-16 Richard Guenther <rguenther@suse.de>
5457
5458 * c-pretty-print.c (pp_c_initializer_list): Adjust.
5459
a12bf402
MLI
54602012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5461
5462 PR c++/44783
5463 * c.opt (ftemplate-backtrace-limit) Add.
5464
5c30094f
RO
54652012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5466
5467 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
5468 handling.
5469 * c-pragma.c (handle_pragma_extern_prefix): Remove.
5470 (init_pragma): Don't register extern_prefix.
5471
21fa2faf
RG
54722012-03-12 Richard Guenther <rguenther@suse.de>
5473
5474 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
5475 (builtin_type_for_size): Likewise.
5476
e3793c6f
JJ
54772012-02-13 Jakub Jelinek <jakub@redhat.com>
5478
5479 PR c++/52215
5480 * c-common.c (sync_resolve_params): Don't decide whether to convert
5481 or not based on TYPE_SIZE comparison, convert whenever arg_type
5482 is unsigned INTEGER_TYPE.
5483
93286335
PC
54842012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
5485
5486 PR c/52118
5487 * c.opt ([Wunused-local-typedefs]): Fix description.
5488
7a421706
MS
54892012-01-24 Mike Stump <mikestump@comcast.net>
5490
5491 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
5492 exactly.
5493
ba9b1f11
RG
54942012-01-18 Richard Guenther <rguenther@suse.de>
5495
5496 * c-opts.c (c_common_post_options): Reset LTO flags if
5497 we are about to generate a PCH.
5498
465406be
PC
54992012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
5500
5501 PR c++/51777
5502 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
5503 use pp_unsigned_wide_integer.
5504
aee15221
RG
55052012-01-10 Richard Guenther <rguenther@suse.de>
5506
5507 PR middle-end/51806
5508 * c-opts.c (c_common_handle_option): Move -Werror handling
5509 to language independent code.
5510
5720c0dc
RG
55112012-01-05 Richard Guenther <rguenther@suse.de>
5512
5513 PR middle-end/51764
5514 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
5515 from common.opt.
5516
73ac190a
PC
55172011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
5518
5519 PR c++/51316
5520 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
5521 of array types with an unknown bound.
5522
48b0b196
JM
55232011-12-20 Joseph Myers <joseph@codesourcery.com>
5524
5525 * c-common.c (flag_isoc99): Update comment to refer to C11.
5526 (flag_isoc1x): Change to flag_isoc11.
5527 * c-common.h (flag_isoc99): Update comment to refer to C11.
5528 (flag_isoc1x): Change to flag_isoc11.
5529 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
5530 C11.
5531 * c-opts.c (set_std_c1x): Change to set_std_c11.
5532 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
5533 Call set_std_c11.
5534 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
5535 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
5536 * c.opt (std=c1x): Change to std=c11. Document as non-draft
5537 standard.
5538 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
5539 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
5540 (std=gnu1x): Make alias of std=gnu11.
5541
d58d6eb5
JM
55422011-12-19 Jason Merrill <jason@redhat.com>
5543
5544 PR c++/51228
5545 * c-common.c (handle_transparent_union_attribute): Check the first
5546 field if the type is complete.
5547
b3908fcc
JW
55482011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
5549
5550 PR libstdc++/51365
5551 * c-common.c (RID_IS_FINAL): Add.
5552 * c-common.h (RID_IS_FINAL): Add.
5553
fea3ca91
IS
55542011-11-30 Iain Sandoe <iains@gcc.gnu.org>
5555
5556 * c.opt (fgnu-runtime): Provide full description.
5557 (fnext-runtime): Likewise.
5558 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
5559
62bad7cd
AM
55602011-11-28 Andrew MacLeod <amacleod@redhat.com>
5561
5562 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
5563 predefines in one place. Add LOCK_FREE predefines.
5564 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
5565 new func.
5566
c466c4ff
AM
55672011-11-24 Andrew MacLeod <amacleod@redhat.com>
5568
5569 PR c/51256
9faeb493 5570 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 5571 conditions
9faeb493
UB
5572 (resolve_overloaded_atomic_exchange,
5573 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
5574 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
5575 error_mark_node for error conditions.
9faeb493 5576
a5952633
RG
55772011-11-08 Richard Guenther <rguenther@suse.de>
5578
5579 PR middle-end/51010
5580 c-family/
5581
0a35513e
AH
55822011-11-07 Richard Henderson <rth@redhat.com>
5583 Aldy Hernandez <aldyh@redhat.com>
5584 Torvald Riegel <triegel@redhat.com>
5585
5586 Merged from transactional-memory.
5587
5588 * c-common.c (handle_tm_wrap_attribute,
5589 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
5590 (struct c_common_reswords): Added __transaction* keywords.
5591 (struct c_common_attribute_table): Added transaction* and tm_regparm
5592 attributes.
5593 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
5594 masks.
5595 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
5596 find_tm_attribute): Declare.
5597
6d87092d
JM
55982011-11-07 Jason Merrill <jason@redhat.com>
5599
5600 PR c++/35688
5601 * c-common.c, c-common.h: Revert yesterday's changes.
5602
8e7860a1
JM
56032011-11-06 Jason Merrill <jason@redhat.com>
5604
5605 PR c++/35688
5606 * c-common.c (decl_has_visibility_attr): Split out from...
5607 (c_determine_visibility): ...here.
5608 * c-common.h: Declare it.
5609
d19fa6b5
JM
56102011-11-06 Joseph Myers <joseph@codesourcery.com>
5611
5612 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
5613 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
5614 type.
5615 (check_user_alignment): New. Split out of
5616 handle_aligned_attribute. Disallow integer constants with
5617 noninteger types. Conditionally allow zero.
5618 (handle_aligned_attribute): Use check_user_alignment.
5619 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
5620
86951993
AM
56212011-11-06 Andrew MacLeod <amacleod@redhat.com>
5622 Richard Henderson <rth@redhat.com>
5623
5624 Merged from cxx-mem-model.
5625
5626 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 5627 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
5628 parameters that are the same type size.
5629 (get_atomic_generic_size): New. Find size of generic
5630 atomic function parameters and do typechecking.
5631 (add_atomic_size_parameter): New. Insert size into parameter list.
5632 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
5633 either __atomic_exchange_n or external library call.
9faeb493 5634 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 5635 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 5636 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
5637 __atomic_load_n or an external library call.
5638 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
5639 __atomic_store_n or an external library call.
5640 (resolve_overloaded_builtin): Handle new __atomic builtins.
5641
cf9e9959
EB
56422011-11-04 Eric Botcazou <ebotcazou@adacore.com>
5643
5644 PR c++/50608
5645 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
5646 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
5647 <INDIRECT_REF>: Return the argument.
5648 <ARRAY_REF>: Remove special code for negative offset.
5649 Call fold_build_pointer_plus instead of size_binop.
5650 (fold_offsetof): Remove STOP_REF argument and adjust.
5651 * c-common.h (fold_offsetof_1): Declare.
5652 (fold_offsetof): Remove STOP_REF argument.
5653
25339f10
JM
56542011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
5655
5656 PR c++/50810
5657 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
5658 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
5659 Wnarrowing for C++0x and C++98.
5660 * c.opt ([Wnarrowing]): Update.
5661
89401152
PC
56622011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
5663
5664 PR c++/44277
5665 * c.opt: Add Wzero-as-null-pointer-constant.
5666
97e3ad20
JM
56672011-10-31 Jason Merrill <jason@redhat.com>
5668
15694fdd
JM
5669 * c.opt (-fdeduce-init-list): Off by default.
5670
97e3ad20
JM
5671 PR c++/50920
5672 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
5673 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
5674 and -Wc++11-compat.
5675 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
5676
fb9120e3
RAV
56772011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
5678
5679 PR c++/30066
5680 * c.opt (fvisibility-inlines-hidden): Description change.
5681
3ce4f9e4
ESR
56822011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
5683
5684 Implement C++11 user-defined literals.
5685 * c-common.c (build_userdef_literal): New.
5686 * c-common.def: New tree code.
5687 * c-common.h (tree_userdef_literal): New tree struct and accessors.
5688 * c-lex.c (interpret_float): Add suffix parm.
5689 (c_lex_with_flags): Build literal tokens.
5690
5f53c243
PC
56912011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
5692
5693 PR c++/50841
5694 Revert:
5695 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
5696
5697 PR c++/50810
5698 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
5699 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
5700 Wnarrowing for C++0x and C++98.
5701 * c.opt ([Wnarrowing]): Update.
5702
263734e1
PC
57032011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
5704
5705 PR c++/50810
5706 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
5707 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
5708 Wnarrowing for C++0x and C++98.
5709 * c.opt ([Wnarrowing]): Update.
5710
d2e312d7
PC
57112011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
5712
5713 PR c++/45385
5714 * c-common.c (conversion_warning): Remove code looking for
5715 artificial operands.
5716
d17687f6
DS
57172011-10-18 Dodji Seketeli <dodji@redhat.com>
5718
5719 PR bootstrap/50760
5720 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 5721 !NO_IMPLICIT_EXTERN_C.
d17687f6 5722
fc8396e9
PC
57232011-10-17 Michael Spertus <mike_spertus@symantec.com>
5724
5725 * c-common.c (c_common_reswords): Add __bases,
5726 __direct_bases.
5727 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
5728
57292011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
5730
5731 PR c++/50757
5732 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
5733
847e697a
TT
57342011-10-15 Tom Tromey <tromey@redhat.com>
5735 Dodji Seketeli <dodji@redhat.com>
5736
5737 * c.opt (fdebug-cpp): New option.
5738 * c-opts.c (c_common_handle_option): Handle the option.
5739 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
5740 output stream in parameter. Factorized from ...
5741 (maybe_print_line): ... this. Dump location debug information when
5742 -fdebug-cpp is in effect.
5743 (print_line_1): New static function. Takes an output stream in
5744 parameter. Factorized from ...
5745 (print_line): ... here. Dump location information when -fdebug-cpp
5746 is in effect.
5747 (scan_translation_unit): Dump location information when
5748 -fdebug-cpp is in effect.
5749
92582b75
TT
57502011-10-15 Tom Tromey <tromey@redhat.com>
5751 Dodji Seketeli <dodji@redhat.com>
5752
5753 * c.opt (ftrack-macro-expansion): New option. Handle it with and
5754 without argument.
5755 * c-opts.c (c_common_handle_option)<case
5756 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
5757 cases. Handle -ftrack-macro-expansion with and without argument.
5758
46427374
TT
57592011-10-15 Tom Tromey <tromey@redhat.com>
5760 Dodji Seketeli <dodji@redhat.com>
5761
5762 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
5763 (print_line, cb_define, do_line_change): Adjust to avoid touching
5764 the internals of struct line_map. Use the public API instead.
5765 * c-pch.c (c_common_read_pch): Likewise.
5766 * c-lex.c (fe_file_change): Likewise.
5767
fc8396e9
PC
57682011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
5769
5770 PR c++/17212
5771 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
5772
57732011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
5774
5775 PR c++/33067
5776 * c-pretty-print.c (pp_c_floating_constant): Output
5777 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
5778
e79983f4
MM
57792011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
5780
5781 * c-common.c (def_builtin_1): Delete old interface with two
5782 parallel arrays to hold standard builtin declarations, and replace
5783 it with a function based interface that can support creating
5784 builtins on the fly in the future. Change all uses, and poison
5785 the old names. Make sure 0 is not a legitimate builtin index.
5786 * c-omp.c (c_finish_omp_barrier): Ditto.
5787 (c_finish_omp_taskwait): Ditto.
5788 (c_finish_omp_flush): Ditto.
5789
6637388f
TG
57902011-10-11 Tristan Gingold <gingold@adacore.com>
5791
5792 * c.opt: (fallow-parameterless-variadic-functions): New.
5793
3797cb21
DS
57942011-09-08 Dodji Seketeli <dodji@redhat.com>
5795
5796 PR c++/33255 - Support -Wunused-local-typedefs warning
5797 * c-common.h (struct c_language_function::local_typedefs): New
5798 field.
9faeb493
UB
5799 (record_locally_defined_typedef, maybe_record_typedef_use)
5800 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 5801 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
5802 (maybe_record_typedef_use)
5803 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
5804 * c.opt: Declare new -Wunused-local-typedefs flag.
5805
693ddb1b
EB
58062011-09-06 Eric Botcazou <ebotcazou@adacore.com>
5807
5808 PR middle-end/50266
5809 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
5810 computations.
5811
830c740f
RG
58122011-09-05 Richard Guenther <rguenther@suse.de>
5813
5814 * c-common.c (complete_array_type): Use ssize_int (-1) instead
5815 of integer_minus_one_node for empty array upper bounds.
5816
892a371f
DS
58172011-08-28 Dodji Seketeli <dodji@redhat.com>
5818
5819 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
5820 it's the first time it's being called on this main TU.
5821
0e3fdb48
RB
58222011-08-24 Richard Guenther <rguenther@suse.de>
5823
5824 PR c/49396
5825 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
5826
58272011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
5828
5829 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
5830 defined in cpp_init_builtins and c_cpp_builtins.
5831
d4a83c10
JM
58322011-08-19 Joseph Myers <joseph@codesourcery.com>
5833
5834 * c-common.c (c_common_reswords): Add __builtin_complex.
5835 * c-common.h (RID_BUILTIN_COMPLEX): New.
5836
bbceee64
JM
58372011-08-18 Joseph Myers <joseph@codesourcery.com>
5838
5839 * c-common.c (c_common_reswords): Add _Noreturn.
5840 (keyword_is_function_specifier): Handle RID_NORETURN.
5841 * c-common.h (RID_NORETURN): New.
5842
3f8257db 58432011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
0e3a99ae
AS
5844
5845 * c-common.c (unsafe_conversion_p): New function. Check if it is
5846 unsafe to convert an expression to the type.
5847 (conversion_warning): Adjust, use unsafe_conversion_p.
5848 * c-common.h (unsafe_conversion_p): New function declaration.
5849
20906c66
JJ
58502011-08-02 Jakub Jelinek <jakub@redhat.com>
5851
5852 * c-common.h (c_finish_omp_atomic): Adjust prototype.
5853 (c_finish_omp_taskyield): New prototype.
5854 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
5855 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
5856 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
5857 or RHS1 have side-effects, evaluate those too in the right spot,
5858 if it is a decl and LHS is also a decl, error out if they
5859 aren't the same.
5860 (c_finish_omp_taskyield): New function.
5861 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
5862 * c-pragma.c (omp_pragmas): Add taskyield.
5863 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
5864 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
5865 PRAGMA_OMP_CLAUSE_MERGEABLE.
5866
770e5a2e
DS
58672011-07-25 Dodji Seketeli <dodji@redhat.com>
5868
5869 * c-common.h (set_underlying_type): Remove parm name from
5870 declaration.
5871
1baae426
RG
58722011-07-25 Romain Geissler <romain.geissler@gmail.com>
5873
5874 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 5875
fcb21722
JM
58762011-07-22 Jason Merrill <jason@redhat.com>
5877
76f86d00
JM
5878 PR c++/49793
5879 * c.opt (Wnarrowing): New.
5880
3a636414
JM
5881 PR c++/30112
5882 * c-common.h: Declare c_linkage_bindings.
5883 * c-pragma.c (handle_pragma_redefine_extname): Use it.
5884
fcb21722
JM
5885 PR c++/49813
5886 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
5887 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
5888 as flag_isoc99 for 'restrict'.
5889 (pp_c_specifier_qualifier_list): Likewise for _Complex.
5890
02614448
ILT
58912011-07-21 Ian Lance Taylor <iant@google.com>
5892
5893 PR middle-end/49705
5894 * c-common.c (c_disable_warnings): New static function.
5895 (c_enable_warnings): New static function.
5896 (c_fully_fold_internal): Change local unused_p to bool. Call
5897 c_disable_warnings and c_enable_warnings rather than change
5898 c_inhibit_evaluation_warnings.
5899
34429675
JM
59002011-07-20 Jason Merrill <jason@redhat.com>
5901
5902 PR c++/6709 (DR 743)
5903 PR c++/42603 (DR 950)
5904 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
5905 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
5906 (CPP_DECLTYPE): New.
5907 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
5908
5d49b6a7
RG
59092011-07-19 Richard Guenther <rguenther@suse.de>
5910
5911 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
5912 * c-omp.c (c_finish_omp_for): Likewise.
5913
e84a58ff
EB
59142011-07-12 Eric Botcazou <ebotcazou@adacore.com>
5915
5916 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
5917 body on the next line.
5918
329af3c7
JM
59192011-07-08 Jason Merrill <jason@redhat.com>
5920
4063e61b
JM
5921 PR c++/45437
5922 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
5923
329af3c7
JM
5924 PR c++/49673
5925 * c-common.c (c_apply_type_quals_to_decl): Don't check
5926 TYPE_NEEDS_CONSTRUCTING.
5927
1a072294
RG
59282011-07-06 Richard Guenther <rguenther@suse.de>
5929
5930 * c-common.c (c_common_nodes_and_builtins):
5931 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
5932
fce5dddd
RG
59332011-07-05 Richard Guenther <rguenther@suse.de>
5934
5935 * c-common.c (c_common_nodes_and_builtins): Build all common
5936 tree nodes first.
5937
45d439ac
JJ
59382011-06-27 Jakub Jelinek <jakub@redhat.com>
5939
56300785
JJ
5940 * c-common.h (c_tree_chain_next): New static inline function.
5941
45d439ac
JJ
5942 * c-common.c (check_builtin_function_arguments): Handle
5943 BUILT_IN_ASSUME_ALIGNED.
5944
e0a8ecf2
AM
59452011-06-21 Andrew MacLeod <amacleod@redhat.com>
5946
5947 * c-common.c: Add sync_ or SYNC__ to builtin names.
5948 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
5949
59502011-06-20 Pierre Vittet <piervit@pvittet.com>
5951
5952 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
5953 handler.
5954 (gen_pragma_handler): New union.
5955 (internal_pragma_handler): New type.
5956 (c_register_pragma_with_data)
5957 (c_register_pragma_with_expansion_and_data): New functions.
5958
5959 * c-pragma.c (registered_pragmas, c_register_pragma_1)
5960 (c_register_pragma, c_register_pragma_with_expansion)
5961 (c_invoke_pragma_handler): Changed to work with
5962 internal_pragma_handler.
5963 (c_register_pragma_with_data)
5964 (c_register_pragma_with_expansion_and_data): New functions.
5965
677f3fa8
JM
59662011-06-14 Joseph Myers <joseph@codesourcery.com>
5967
5968 * c-common.c: Include common/common-target.h.
5969 (handle_section_attribute): Use
5970 targetm_common.have_named_sections.
5971 * c-cppbuiltin.c: Include common/common-target.h.
5972 (c_cpp_builtins): Use targetm_common.except_unwind_info.
5973
d7fc8c14
RG
59742011-06-10 Richard Guenther <rguenther@suse.de>
5975
5976 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
5977 to print a IDENTIFIER_NODE.
5978
10e48e39
RO
59792011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5980 Joseph Myers <joseph@codesourcery.com>
5981
5982 * c.opt (fbuilding-libgcc): New option.
5983 * c-cppbuiltin.c (c_cpp_builtins): Define
5984 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
5985
6976ae51
JM
59862011-06-07 Jason Merrill <jason@redhat.com>
5987
3ff60975
JM
5988 * c-common.c (max_tinst_depth): Lower default to 900.
5989
6976ae51
JM
5990 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
5991
009db074
RG
59922011-06-07 Richard Guenther <rguenther@suse.de>
5993
5994 * c-common.c (c_common_nodes_and_builtins): Do not set
5995 size_type_node or call set_sizetype.
5996
b4592b92
DS
59972011-06-07 Dodji Seketeli <dodji@redhat.com>
5998
5999 PR debug/49130
6000 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 6001 type when using pointer comparison to compare types.
b4592b92 6002
014ab419
JW
60032011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
6004
6005 * c.opt: Add -Wdelete-non-virtual-dtor.
6006 * c-opts.c (c_common_handle_option): Include it in -Wall.
6007
4f60111f
NF
60082011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
6009
6010 PR bootstrap/49190
6011
6012 Revert:
6013 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
6014
6015 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
6016 not tree_common.
6017
4cc4f2f4
JJ
60182011-05-27 Jakub Jelinek <jakub@redhat.com>
6019
6020 PR c++/49165
6021 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
6022 C++ don't call c_common_truthvalue_conversion on void type arms.
6023
38e01f9e
NF
60242011-05-27 Nathan Froyd <froydnj@codesourcery.com>
6025
6026 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
6027 (stmt_list_stack): Define.
6028 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
6029 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
6030
92e948a8
NF
60312011-05-26 Nathan Froyd <froydnj@codesourcery.com>
6032
6033 * c-common.c (warning_candidate_p): Check for BLOCKs.
6034
a2fc3e63
NF
60352011-05-26 Nathan Froyd <froydnj@codesourcery.com>
6036
6037 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
6038 not tree_common.
6039
0957c029
JJ
60402011-05-25 Jakub Jelinek <jakub@redhat.com>
6041
6042 * c-common.c (def_fn_type): Remove extra va_end.
6043
828fb3ba
JM
60442011-05-23 Jason Merrill <jason@redhat.com>
6045
6046 PR c++/48106
6047 * c-common.c (c_common_get_narrower): New.
6048 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
6049
dde05067
NF
60502011-05-23 Nathan Froyd <froydnj@codesourcery.com>
6051
6052 * c-common.h (check_function_arguments): Tweak prototype of
6053 check_function_arguments.
6054 * c-common.c (check_function_arguments): Likewise. Adjust
6055 calls to check_function_nonnull, check_function_format, and
6056 check_function_sentinel.
6057 (check_function_sentinel): Take a FUNCTION_TYPE rather than
6058 separate attributes and typelist arguments. Use
6059 FOREACH_FUNCTION_ARGS to iterate over argument types.
6060
3c0d13bf
PC
60612011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
6062
6063 * c-common.c (c_common_reswords): Reorder.
6064 * c-common.h (rid): Likewise.
6065
8242dd04
NF
60662011-05-10 Nathan Froyd <froydnj@codesourcery.com>
6067
6068 * c-common.c (def_fn_type): Don't call build_function_type, call
6069 build_function_type_array or build_varargs_function_type_array
6070 instead.
6071 (c_common_nodes_and_builtins): Likewise.
6072
3d528853
NF
60732011-05-05 Nathan Froyd <froydnj@codesourcery.com>
6074
6075 * c-common.c (c_add_case_label): Omit the loc argument to
6076 build_case_label.
6077 * c-common.h (build_case_label): Remove.
6078 * c-semantics.c (build_case_label): Remove.
6079
a04a722b
JM
60802011-05-05 Joseph Myers <joseph@codesourcery.com>
6081
6082 * c-objc.h (objc_start_method_definition): Update prototype.
6083 * stub-objc.c (objc_start_method_definition): Add extra parameter.
6084
e19a18d4
NF
60852011-05-04 Nathan Froyd <froydnj@codesourcery.com>
6086
6087 * c-common.c (check_main_parameter_types): Reindent. Don't use
6088 TYPE_ARG_TYPES directly.
6089 (handle_nonnull_attribute): Likewise.
6090 (sync_resolve_params): Likewise.
6091 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
6092 to check_format_string.
6093 (handle_format_attribute): Likewise.
6094 (check_format_string): Take a function type to examine instead of
6095 a type list. Use a function_arg_iterator to step through argument
6096 types.
6097
c62c040f
RG
60982011-05-04 Richard Guenther <rguenther@suse.de>
6099
6100 * c-common.c (fix_string_type): Use size_int for index type bounds.
6101 (start_fname_decls): Do not pass NULL to build_int_cst.
6102 (c_init_attributes): Likewise.
6103 * c-lex.c (c_lex_with_flags): Likewise.
6104
c12ff9d8
JM
61052011-04-27 Jason Merrill <jason@redhat.com>
6106
6107 * c-common.c (make_tree_vector_from_list): New.
6108 * c-common.h: Declare it.
6109
304dfbe3
RG
61102011-04-26 Richard Guenther <rguenther@suse.de>
6111
6112 PR preprocessor/48248
6113 * c-ppoutput.c (maybe_print_line): Always optimize newlines
6114 for output size with -P.
6115
3c0d13bf
PC
61162011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
6117
6118 * c-common.c (struct c_common_resword): Add __underlying_type.
6119 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
6120
04695783
JM
61212011-04-20 Jim Meyering <meyering@redhat.com>
6122
6123 * c-format.c (init_dollar_format_checking): Remove useless
6124 if-before-free.
6125
0dc33c3c
NP
61262011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
6127
6128 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 6129 (objc_detect_field_duplicates): New.
0dc33c3c 6130 * stub-objc.c: Likewise.
3c0d13bf 6131
c59633d9
NP
61322011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6133
6134 * stub-objc.c (objc_declare_protocols): Renamed to
6135 objc_declare_protocol.
6136 * c-objc.h: Likewise.
3c0d13bf 6137
32dabdaf
NP
61382011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6139
6140 * stub-objc.c (objc_declare_class): Updated argument name.
6141
81f653d6
NF
61422011-04-12 Nathan Froyd <froydnj@codesourcery.com>
6143
6144 * c-common.h (c_common_init_ts): Declare.
6145 * c-common.c (c_common_init_ts): Define.
6146
eb345401
NP
61472011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6148
6149 * c-objc.h (objc_build_message_expr): Updated prototype.
6150 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 6151
a358e188
MJ
61522011-04-12 Martin Jambor <mjambor@suse.cz>
6153
6154 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
6155 of cgraph_node.
6156
e6313a78
RG
61572011-04-11 Richard Guenther <rguenther@suse.de>
6158
6159 * c-common.c (complete_array_type): Build a range type of
6160 proper type.
6161
dcf0c47e
NF
61622011-04-08 Nathan Froyd <froydnj@codesourcery.com>
6163
6164 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
6165 (handle_type_generic_attribute): Likewise.
6166
1ee44b26
JM
61672011-04-07 Jason Merrill <jason@redhat.com>
6168
6169 PR c++/48450
6170 * c-common.c (c_common_truthvalue_conversion): Don't ignore
6171 conversion from C++0x scoped enum.
6172
acce4e77
JM
61732011-04-06 Joseph Myers <joseph@codesourcery.com>
6174
6175 * c-target-def.h: New file.
6176 * c-target.def: New file.
6177 * c-target.h: New file.
6178 * c-common.c (targetcm): Don't define here.
6179 * c-common.h (default_handle_c_option): Declare.
6180 * c-format.c: Include c-target.h instead of target.h.
6181 * c-opts.c: Include c-target.h instead of target.h. Explicitly
6182 include tm.h.
6183 (default_handle_c_option): Move from targhooks.c.
6184
e2eefb55
JJ
61852011-03-29 Jakub Jelinek <jakub@redhat.com>
6186
6187 PR preprocessor/48248
6188 * c-ppoutput.c (print): Add src_file field.
6189 (init_pp_output): Initialize it.
6190 (maybe_print_line): Don't optimize by adding up to 8 newlines
6191 if map->to_file and print.src_file are different file.
6192 (print_line): Update print.src_file.
6193
ba78087b
KT
61942011-03-25 Kai Tietz <ktietz@redhat.com>
6195
6196 * c-ada-spec.c (compare_comment): Use filename_cmp
6197 instead of strcmp for filename.
6198
0edf1bb2
JL
61992011-03-25 Jeff Law <law@redhat.com>
6200
adfac8df 6201 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 6202
c7dc8804
JM
62032011-03-25 Jason Merrill <jason@redhat.com>
6204
6205 * c.opt: Add -std=c++03.
6206
d1d879b1
EB
62072011-03-22 Eric Botcazou <ebotcazou@adacore.com>
6208
6209 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
6210
3f8257db 62112011-03-17 Kai Tietz <ktietz@redhat.com>
62d784f7
KT
6212
6213 PR target/12171
5050afdf
KT
6214 * c-pretty-print.c (pp_c_specifier_qualifier_list):
6215 Display allowed attributes for function pointer types.
6216 (pp_c_attributes_display): New function to display
6217 attributes having affects_type_identity flag set to true.
6218 * c-pretty-print.h (pp_c_attributes_display): New prototype.
6219
62d784f7
KT
6220 * c-common.c (c_common_attribute_table):
6221 Add new element.
6222 (c_common_format_attribute_table): Likewise.
6223
82d37118
JM
62242011-03-18 Jason Merrill <jason@redhat.com>
6225
49a000c3
JM
6226 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
6227 * c-common.h: Don't declare it here.
6228 * c-common.c: Or define it here.
6229 * c-opts.c (c_common_handle_option): Or set it here.
6230
82d37118
JM
6231 PR c++/35315
6232 * c-common.c (handle_transparent_union_attribute): Don't
6233 make a duplicate type in C++.
6234
17bc631c
JM
62352011-03-15 Jason Merrill <jason@redhat.com>
6236
6237 * c-common.c (max_constexpr_depth): New.
6238 * c-common.h: Declare it.
6239 * c-opts.c (c_common_handle_option): Set it.
6240 * c.opt (fconstexpr-depth): New option.
6241
1b9b91a6
JM
62422011-03-11 Jason Merrill <jason@redhat.com>
6243
f231b5ff
JM
6244 * c-common.c (attribute_takes_identifier_p): Add missing const.
6245
1b9b91a6
JM
6246 PR c++/46803
6247 * c-common.c (attribute_takes_identifier_p): Assume that an
6248 unknown attribute takes an identifier.
6249
a19e4d44
NF
62502011-03-07 Nathan Froyd <froydnj@codesourcery.com>
6251
6252 PR c/47786
6253 * c-common.c (c_type_hash): Call list_length instead of iterating
6254 through DECL_CHAIN. Rename 'i' to 'n_elements'.
6255
982d62f6
JJ
62562011-02-19 Jakub Jelinek <jakub@redhat.com>
6257
6258 PR c/47809
6259 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
6260
0a256240
NP
62612011-02-17 Iain Sandoe <iains@gcc.gnu.org>
6262
6263 * c.opt (fobjc-abi-version=) New.
6264 (fobjc-nilcheck): New.
6265
ba9e6dd5
NF
62662011-02-03 Nathan Froyd <froydnj@codesourcery.com>
6267
6268 PR c++/46890
6269 * c-common.h (keyword_is_decl_specifier): Declare.
6270 * c-common.c (keyword_is_decl_specifier): Define.
6271 (keyword_is_function_specifier): New function.
6272
7273813a
JJ
62732011-01-26 Jakub Jelinek <jakub@redhat.com>
6274
6275 PR c/47473
6276 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
6277 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
6278 REAL_TYPE.
6279
908ef79b
AC
62802011-01-26 Arnaud Charlet <charlet@adacore.com>
6281
6282 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
6283
237e9384
JJ
62842011-01-26 Jakub Jelinek <jakub@redhat.com>
6285
6286 PR pch/47430
6287 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
6288 after init_c_lex if pch_file is set.
6289
47ea1edf
DK
62902011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
6291
d4dba752 6292 PR c++/43601
47ea1edf
DK
6293 * c.opt (-fkeep-inline-dllexport): New switch.
6294
2aa9c6ae
RG
62952011-01-12 Richard Guenther <rguenther@suse.de>
6296
6297 PR middle-end/32511
6298 * c-common.c (handle_weak_attribute): Warn instead of error
6299 on declaring an inline function weak.
6300
7bd11157
TT
63012011-01-05 Tom Tromey <tromey@redhat.com>
6302
6303 * c-common.h (lvalue_error): Update.
6304 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
6305 not error.
6306
0e66e494 63072010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 6308
b4f588c4
NP
6309 PR objc/47075
6310 * c-objc.h (objc_finish_message_expr): Added argument to
6311 prototype.
6312
f4da8dce
NF
63132010-12-22 Nathan Froyd <froydnj@codesourcery.com>
6314
6315 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
6316 Use prototype_p.
6317
46270f14
NP
63182010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
6319
6320 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 6321 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 6322
4816c593
NF
63232010-12-10 Nathan Froyd <froydnj@codesourcery.com>
6324
6325 * c-common.h (readonly_error): Declare.
6326 * c-common.c (readonly_error): Define.
6327
7a6daeb0
NF
63282010-12-09 Nathan Froyd <froydnj@codesourcery.com>
6329
6330 * c-common.h (invalid_indirection_error): Declare.
6331 * c-common.c (invalid_indirection_error): Define.
6332
892f6119
RG
63332010-12-03 Richard Guenther <rguenther@suse.de>
6334
6335 PR c/46745
6336 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
6337 (pp_c_unary_expression): Likewise.
6338 (pp_c_expression): Likewise.
6339
6c39e757
NP
63402010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
6341
6342 * c-common.h (objc_finish_function): New.
6343 (objc_non_volatilized_type): Removed.
6344 (objc_type_quals_match): Removed.
6345 * stub-objc.c (objc_finish_function): New.
6346 (objc_non_volatilized_type): Removed.
6347 (objc_type_quals_match): Removed.
9faeb493 6348
7c475d11
JM
63492010-11-30 Joseph Myers <joseph@codesourcery.com>
6350
6351 * c-common.h (parse_optimize_options): Declare.
6352 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
6353 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
6354
71f3e391
JM
63552010-11-29 Joseph Myers <joseph@codesourcery.com>
6356
6357 * c-opts.c (check_deps_environment_vars): Use getenv instead of
6358 GET_ENVIRONMENT.
6359 * c-pch.c (O_BINARY): Don't define here.
6360 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
6361
d5fabb58
JM
63622010-11-25 Joseph Myers <joseph@codesourcery.com>
6363
6364 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
6365 targetm.except_unwind_info.
6366
299404a1
JM
63672010-11-23 Joseph Myers <joseph@codesourcery.com>
6368
6369 * c-opts.c (c_common_handle_option): Pass location to
6370 set_struct_debug_option.
6371
c98cd5bf
JM
63722010-11-23 Joseph Myers <joseph@codesourcery.com>
6373
6374 * c-common.c (visibility_options): Move from ../opts.c.
6375 * c-common.h (struct visibility_flags, visibility_options):
6376 Declare here.
6377 * c-opts.c (finish_options): Rename to c_finish_options.
6378 (c_common_init): Update call to finish_options.
6379
a9546771
NP
63802010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
6381
6382 PR objc/34033
6383 * c-lex.c (lex_string): Check that each string in an Objective-C
6384 string concat sequence starts with either one or zero '@', and
6385 that there are no spurious '@' signs at the end.
6386
24a57808
JM
63872010-11-20 Joseph Myers <joseph@codesourcery.com>
6388
6389 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
6390 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
6391 HANDLE_PRAGMA_VISIBILITY.
6392 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
6393 HANDLE_PRAGMA_VISIBILITY): Don't define.
6394 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
6395
a9aa2c3a
NF
63962010-11-20 Nathan Froyd <froydnj@codesourcery.com>
6397
6398 PR c++/16189
6399 PR c++/36888
6400 PR c++/45331
6401 * c-common.h (keyword_begins_type_specifier): Declare.
6402 (keyword_is_storage_class_specifier): Declare.
6403 (keyword_is_type_qualifier): Declare.
6404 * c-common.c (keyword_begins_type_specifier): New function.
6405 (keyword_is_storage_class_specifier): New function.
6406 (keyword_is_type_qualifier): Declare.
6407
5386338c
JM
64082010-11-19 Joseph Myers <joseph@codesourcery.com>
6409
6410 PR c/46547
6411 * c-common.c (in_late_binary_op): Define.
6412 (c_common_truthvalue_conversion): Check in_late_binary_op before
6413 calling c_save_expr.
6414 * c-common.h (in_late_binary_op): Declare.
6415
69ccdddb
JM
64162010-11-19 Joseph Myers <joseph@codesourcery.com>
6417
6418 * c-opts.c (c_common_handle_option): Update calls to
6419 set_struct_debug_option.
6420
6b192a09
NP
64212010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
6422
6423 * c-common.h (objc_declare_protocols): Added additional argument.
6424 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 6425
fb52b50a
NF
64262010-11-18 Nathan Froyd <froydnj@codesourcery.com>
6427
6428 PR c/33193
6429 * c-common.h (build_real_imag_expr): Declare.
6430 * c-semantics.c (build_real_imag_expr): Define.
6431
b37421c6
JM
64322010-11-17 Joseph Myers <joseph@codesourcery.com>
6433
6434 * c-opts.c (c_common_parse_file): Take no arguments.
6435 * c-common.h (c_common_parse_file): Update prototype.
6436
07078664
JJ
64372010-11-16 Jakub Jelinek <jakub@redhat.com>
6438
6439 PR c++/46401
6440 * c-common.c (warning_candidate_p): Don't track non-const calls
6441 or STRING_CSTs.
6442
c6a13190
ILT
64432010-11-15 Ian Lance Taylor <iant@google.com>
6444
6445 * c-lex.c (init_c_lex): Set macro debug callbacks if
6446 flag_dump_go_spec is set.
6447
925e8657
NP
64482010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
6449
6450 * c-common.h (objc_build_incr_expr_for_property_ref): New.
6451 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
6452
bb0a9581
NF
64532010-11-15 Nathan Froyd <froydnj@codesourcery.com>
6454
6455 PR preprocessor/45038
6456 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
6457 dialects.
6458
c5fa0890
JM
64592010-11-12 Joseph Myers <joseph@codesourcery.com>
6460
6461 * c-common.h (c_family_lang_mask): Declare.
6462 * c-opts.c (c_family_lang_mask): Make extern.
6463 * c-pragma.c (handle_pragma_diagnostic): Use
6464 control_warning_option.
6465
a4d8c676
JM
64662010-11-12 Joseph Myers <joseph@codesourcery.com>
6467
6468 * c-common.c (parse_optimize_options): Update call to
6469 decode_options.
6470 * c-common.h (c_common_handle_option): Update prototype.
6471 * c-opts.c (c_common_handle_option): Take location_t parameter and
6472 pass it to other functions.
6473
f954bd2c
JM
64742010-11-11 Joseph Myers <joseph@codesourcery.com>
6475
6476 * c-opts.c (warning_as_error_callback): Remove.
6477 (c_common_initialize_diagnostics): Don't call
6478 register_warning_as_error_callback.
6479 (c_common_handle_option): Handle -Werror=normalized= here.
6480
d8a07487
JM
64812010-11-10 Joseph Myers <joseph@codesourcery.com>
6482
6483 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
6484 in diagnostic.
6485 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
6486 letter.
6487 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
6488 Remove trailing '.' from diagnostics.
6489 * c.opt (Wwrite-strings_: Avoid '`' in help text.
6490
d5478783
JM
64912010-11-10 Joseph Myers <joseph@codesourcery.com>
6492
6493 * c-common.c (parse_optimize_options): Pass global_dc to
6494 decode_options.
6495 * c-opts.c (c_common_handle_option): Pass &global_options to
6496 set_Wstrict_aliasing.
6497 * c.opt (v): Don't mark Common or document here.
6498
91ebb981
IS
64992010-11-06 Iain Sandoe <iains@gcc.gnu.org>
6500
6501 PR target/44981
6502 * c-format.c (format_type): New type gcc_objc_string_format_type.
6503 (valid_stringptr_type_p): New.
6504 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 6505 (check_format_string): Pass expected type, use
91ebb981
IS
6506 valid_stringptr_type_p (), check that the format string types are
6507 consistent with the format specification.
6508 (decode_format_attr): Warn if NSString is used outside objective-c.
6509 (format_types_orig): Add NSString.
6510 (format_name): New.
6511 (format_flags): New.
6512 (check_format_arg): Handle format strings requiring an external parser.
6513 first_target_format_type: New variable.
6514 (handle_format_attribute): Set up first_target_format_type, pass the
6515 expected format arg string type to check_format_string().
6516 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
6517 * stub-objc.c (objc_string_ref_type_p): New.
6518 (objc_check_format_arg): New.
6519
bede2adc
NP
65202010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
6521
9faeb493 6522 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
6523 * c-common.h (objc_build_class_component_ref): New.
6524 * stub-objc.c (objc_build_class_component_ref): New.
6525
9a179d01
NP
65262010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
6527
6528 * c.opt (Wproperty-assign-default): New option.
6529
22d8d616
NP
65302010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
6531
6532 Implemented -fobjc-std=objc1 flag.
6533 * c.opt (fobjc-std=objc1): New option.
6534
2debdb4f
NP
65352010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
6536
6537 Implemented format and noreturn attributes for Objective-C methods.
6538 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
6539 attribute for Objective-C methods.
6540
ec52b111
JM
65412010-10-31 Jason Merrill <jason@redhat.com>
6542
6543 * c-common.c (conversion_warning, warn_for_collisions_1): Use
6544 EXPR_LOC_OR_HERE.
6545
46a88c12
NP
65462010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
6547
6548 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
6549 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
6550 (objc_add_property_declaration): Removed arguments for copies and
6551 ivar.
6552 (objc_build_getter_call): Renamed to
6553 objc_maybe_build_component_ref.
6554 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
6555 (objc_is_property_ref): New.
6556 * c-common.c (c_common_reswords): Removed copies and ivar.
6557 * stub-objc.c (objc_add_property_declaration): Removed arguments
6558 for copies and ivar.
6559 (objc_build_getter_call): Renamed to
6560 objc_maybe_build_component_ref.
6561 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
6562 (objc_is_property_ref): New.
9faeb493 6563
1e4bf85b
AC
65642010-10-29 Arnaud Charlet <charlet@adacore.com>
6565 Matthew Gingell <gingell@adacore.com>
6566
6567 * c-ada-spec.c (separate_class_package): New function.
6568 (pp_ada_tree_identifier): Prefix references to C++ classes with the
6569 name of their enclosing package.
6570 (print_ada_declaration): Use separate_class_package.
6571
81f0bab2
JM
65722010-10-27 Jason Merrill <jason@redhat.com>
6573
2b08f2c5
JM
6574 * c-common.c (c_common_reswords): Add __is_literal_type.
6575 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
6576
81f0bab2
JM
6577 * c-common.c (check_case_value): Remove special C++ code.
6578
200290f2
NP
65792010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
6580
6581 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
6582 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
6583 and RID_LAST_PATTR.
6584 (objc_add_property_declaration): Added additional arguments.
6585 (objc_property_attribute_kind): Removed.
6586 (objc_set_property_attr): Removed.
6587 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
6588 copy and nonatomic.
6589 * stub-objc.c (objc_add_property_declaration): Added additional
6590 arguments.
6591 (objc_set_property_attr): Removed.
9faeb493 6592
f614132b
NP
65932010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
6594
6595 * c-common.h (objc_add_property_variable): Renamed to
6596 objc_add_property_declaration. Added location argument.
6597 * stub-objc.c (objc_add_property_variable): Same change.
b1726d6c 6598
b8a18805
NP
65992010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
6600
6601 * c-common.h (objc_maybe_printable_name): New.
6602 * stub-objc.c (objc_maybe_printable_name): New.
6603
3f8257db
JJ
66042010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
6605 Andrew Pinski <pinskia@gmail.com>
30cd1c5d
AS
6606
6607 * c-common.h (c_common_mark_addressable_vec): Declare.
6608 * c-common.c (c_common_mark_addressable_vec): New function.
6609
249a82c4
NP
66102010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
6611
6612 * c-common.h (objc_set_method_type): Removed.
6613 (objc_add_method_declaration): Added boolean argument.
6614 (objc_start_method_definition): Same change.
6615 (objc_build_method_signature): Same change.
6616 * stub-objc.c (objc_set_method_type): Removed.
6617 (objc_add_method_declaration): Added boolean argument.
6618 (objc_start_method_definition): Same change.
6619 (objc_build_method_signature): Same change.
6620
977e30bc
NP
66212010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
6622
6623 * c-common.h (finish_file): Removed.
6624 (objc_write_global_declarations): New.
6625 * c-opts.c (c_common_parse_file): Do not call finish_file.
6626 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 6627
da57d1b9
NP
66282010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
6629
6630 Implemented parsing @synthesize and @dynamic for
6631 Objective-C/Objective-C++.
6632 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
6633 (objc_add_synthesize_declaration): New.
6634 (objc_add_dynamic_declaration): New.
6635 * c-common.c (c_common_reswords): Add synthesize and dynamic.
6636 * stub-objc.c (objc_add_synthesize_declaration): New.
6637 (objc_add_dynamic_declaration): New.
9faeb493 6638
0069111f
MM
66392010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
6640
6641 PR target/46041
6642 * c-cppbuiltin.c (mode_has_fma): Move function here from
6643 builtins.c. Don't use the fma optab, instead just use the
6644 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
6645 using -save-temps.
6646
e426b47b
NP
66472010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
6648
6649 Merge from 'apple/trunk' branch on FSF servers.
0069111f 6650
3f8257db 6651 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
e426b47b 6652
9faeb493 6653 Radar 4330422
e426b47b
NP
6654 * c-common.h (objc_non_volatilized_type): New declaration
6655 * stub-objc.c (objc_non_volatilized_type): New stub.
6656
90fbfdc3
NP
66572010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
6658
e426b47b 6659 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3 6660
3f8257db 6661 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
90fbfdc3 6662
9faeb493 6663 Radar 4133425
90fbfdc3 6664 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 6665 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 6666
c37d8c30
IS
66672010-10-17 Iain Sandoe <iains@gcc.gnu.org>
6668
6669 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
6670 * c-common.h (enum rid): Add RID_AT_PACKAGE.
6671 (objc_ivar_visibility_kind): New enum.
6672 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 6673 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
6674 visibility enum.
6675
1b1562a5
MM
66762010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
6677
6678 * c-cppbuiltin.c (builtin_define_float_constants): Emit
6679 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
6680 has the appropriate fma builtins.
6681 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
6682
668ea4b1
IS
66832010-10-14 Iain Sandoe <iains@gcc.gnu.org>
6684
1b1562a5 6685 merge from FSF apple 'trunk' branch.
3f8257db 6686 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 6687
668ea4b1
IS
6688 Radars 4436866, 4505126, 4506903, 4517826
6689 * c-common.c (c_common_resword): Define @property and its attributes.
6690 * c-common.h: Define property attribute enum entries.
6691 (OBJC_IS_PATTR_KEYWORD): New.
6692 (objc_property_attribute_kind): New enum.
6693 Declare objc_set_property_attr (), objc_add_property_variable (),
6694 objc_build_getter_call () and objc_build_setter_call ().
6695 * stub-objc.c (objc_set_property_attr): New stub.
6696 (objc_add_property_variable): Likewise.
6697 (objc_build_getter_call): Likewise.
6698 (objc_build_setter_call) Likewise.
1b1562a5 6699
a1178b30
IS
67002010-10-13 Iain Sandoe <iains@gcc.gnu.org>
6701
1b1562a5 6702 merge from FSF apple 'trunk' branch.
3f8257db 6703 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
a1178b30
IS
6704
6705 Radar 3803157 (method attributes)
6706 * c-common.c (handle_deprecated_attribute): Recognize
6707 objc methods as valid declarations.
6708 * c-common.h: Declare objc_method_decl ().
1b1562a5 6709 * stub-objc.c (objc_method_decl): New stub.
a1178b30 6710
a75bfaa6
JM
67112010-10-08 Joseph Myers <joseph@codesourcery.com>
6712
6713 * c-common.c (parse_optimize_options): Call
6714 decode_cmdline_options_to_array_default_mask before
6715 decode_options. Update arguments to decode_options.
6716 * c-common.h (c_common_init_options_struct): Declare.
6717 * c-opts.c (c_common_init_options_struct): New. Split out from
6718 c_common_init_options.
6719
f05b9d93
NP
67202010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
6721
6722 Implemented fast enumeration for Objective-C.
6723 * c-common.h (objc_finish_foreach_loop): New.
6724 * stub-objc.c (objc_finish_foreach_loop): New.
6725
1ebe4b4f
JM
67262010-10-05 Joseph Myers <joseph@codesourcery.com>
6727
6728 * c-common.h (struct diagnostic_context): Don't declare here.
6729 (c_common_initialize_diagnostics): Declare using
6730 diagnostic_context typedef.
6731 * c-opts.c (c_common_handle_option): Pass global_dc to
6732 handle_generated_option.
6733
d4d24ba4
JM
67342010-10-04 Joseph Myers <joseph@codesourcery.com>
6735
6736 * c-opts.c (c_common_handle_option): Pass &global_options_set to
6737 handle_generated_option.
6738
478a1c5b
ILT
67392010-10-03 Ian Lance Taylor <iant@google.com>
6740
6741 * c.opt (-fplan9-extensions): New option.
6742
82a1c2fe
FXC
67432010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6744
6745 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
6746 Remove.
6747 (c_cpp_builtins): Call functions from cppbuiltin.c instead
6748 of duplicating code.
6749
92902b1b
IS
67502010-09-30 Iain Sandoe <iains@gcc.gnu.org>
6751
6752 * c-common.c: Add two new entries for @optional
6753 and @required keywords.
6754
6755 merge from FSF 'apple/trunk' branch.
3f8257db 6756 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
92902b1b
IS
6757
6758 Radar 4386773
6759 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
6760 objective-c keywords.
6761 (objc_set_method_opt): New declaration.
6762 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 6763
46625112
JM
67642010-09-30 Joseph Myers <joseph@codesourcery.com>
6765
6766 * c-common.c (handle_optimize_attribute): Pass &global_options to
6767 cl_optimization_save and cl_optimization_restore.
6768 * c-opts.c (c_common_handle_option): Pass &global_options to
6769 handle_generated_option.
6770 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
6771 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
6772 &global_options to cl_optimization_restore.
6773
49b91f05
NP
67742010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
6775
6776 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
6777 Objective-C/Objective-C++ keywords.
6778
13ed556f 67792010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 6780
9faeb493
UB
6781 Merge from 'apple/trunk' branch on FSF servers.
6782
3f8257db 6783 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
a6341d57
NP
6784
6785 Radar 4281748
6786 * c-common.h (objc_check_global_decl): New declaration.
6787 * stub-objc.c (objc_check_global_decl): New stub.
6788
f0036cca
JM
67892010-09-29 Joseph Myers <joseph@codesourcery.com>
6790
6791 * c.opt: Don't use VarExists.
6792
e3339d0f
JM
67932010-09-29 Joseph Myers <joseph@codesourcery.com>
6794
6795 * c-common.c (c_cpp_error): Update names of diagnostic_context
6796 members.
6797 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
6798 cl_optimization members.
6799 * c-opts.c (warning_as_error_callback, c_common_handle_option,
6800 sanitize_cpp_opts, finish_options): Update names of cpp_options
6801 members.
6802
1973201f
NP
68032010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
6804
6805 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
6806 (objc_is_reserved_word): Removed.
6807 * c-common.c: Updated comments.
6808 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
6809 objc_is_reserved_word.
6810 * stub-objc.c (objc_is_reserved_word): Removed.
6811
f7e71da5
IS
68122010-09-28 Iain Sandoe <iains@gcc.gnu.org>
6813
9faeb493 6814 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
6815 include attributes.
6816 (objc_start_method_definition): Likewise.
6817 (objc_build_keyword_decl): Likewise.
6818 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
6819 (objc_start_method_definition): Likewise.
6820 (objc_build_keyword_decl): Likewise.
6821
c165dca7
IS
68222010-09-28 Iain Sandoe <iains@gcc.gnu.org>
6823
6824 * c-common.h (objc_start_class_interface): Adjust prototype.
6825 (objc_start_category_interface): Likewise.
6826 (objc_start_protocol): Likewise.
6827 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
6828 (objc_start_class_interface): Likewise.
6829 (objc_start_category_interface): Likewise.
6830
7458026b
ILT
68312010-09-27 Ian Lance Taylor <iant@google.com>
6832
6833 * c-common.c (c_common_attribute_table): Add no_split_stack.
6834 (handle_no_split_stack_attribute): New static function.
6835
b581b85b
NP
68362010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
6837
9faeb493 6838 Merge from 'apple/trunk' branch on FSF servers.
b581b85b 6839
3f8257db 6840 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
b581b85b 6841
9faeb493 6842 Radar 4229905
b581b85b
NP
6843 * c-common.h (objc_have_common_type): New declaration.
6844 * stub-objc.c (objc_have_common_type): New stub.
6845
6846 2005-06-22 Ziemowit Laski <zlaski@apple.com>
6847
6848 Radar 4154928
6849 * c-common.h (objc_common_type): New prototype.
9faeb493 6850 * stub-objc.c (objc_common_type): New stub.
b581b85b 6851
46a4da10
JH
68522010-09-24 Jan Hubicka <jh@suse.cz>
6853
6854 * c-common.c (handle_leaf_attribute): New function.
6855 (struct attribute_spec c_common_att): Add leaf.
6856
e200444e
JM
68572010-09-22 Joseph Myers <joseph@codesourcery.com>
6858
6859 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
6860 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
6861 -dump, -dump=, -imacros, -imacros=, -include, -include=,
6862 -include-barrier, -include-directory, -include-directory=,
6863 -include-directory-after, -include-directory-after=,
6864 -include-prefix, -include-prefix=, -include-with-prefix,
6865 -include-with-prefix=, -include-with-prefix-after,
6866 -include-with-prefix-after=, -include-with-prefix-before,
6867 -include-with-prefix-before=, -no-integrated-cpp,
6868 -no-line-commands, -no-standard-includes, -no-warnings, -output,
6869 -output=, -pedantic, -pedantic-errors, -preprocess,
6870 -print-missing-file-dependencies, -trace-includes, -traditional,
6871 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
6872 -user-dependencies, -verbose, -write-dependencies,
6873 -write-user-dependencies, no-integrated-cpp, traditional): New.
6874
29a80ea6
NP
68752010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
6876
6877 PR objc/23710
ac1fc2fc
NP
6878 * c-common.h (objc_start_method_definition): Return bool instead
6879 of void.
6880 * stub-objc.c (objc_start_method_definition): Return bool instead
6881 of void.
6882
68832010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
6884
6885 PR objc/25965
6886 * c-common.h (objc_get_interface_ivars): New declaration.
6887 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 6888
de621752
ILT
68892010-09-15 Ian Lance Taylor <iant@google.com>
6890
6891 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 6892 messages. Remove period at end of warning message.
de621752 6893
ba885ec5
NS
68942010-09-09 Nathan Sidwell <nathan@codesourcery.com>
6895
6896 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
6897 (handle_alias_attribute): ... here.
6898 (handle_ifunc_attribute): New.
6899
c5ee1358
MM
69002010-09-06 Mark Mitchell <mark@codesourcery.com>
6901
6902 * c-common.h (do_warn_double_promotion): Declare.
6903 * c-common.c (do_warn_double_promotion): Define.
6904
0a0b3574
MM
69052010-09-05 Mark Mitchell <mark@codesourcery.com>
6906
6907 * c.opt (Wdouble-promotion): New.
6908
d1779886
JM
69092010-09-02 Joseph Myers <joseph@codesourcery.com>
6910
6911 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
6912 fvtable-thunks, fxref): Mark no longer supported in help text.
6913
2d2bd949
JM
69142010-09-02 Joseph Myers <joseph@codesourcery.com>
6915
6916 * c.opt (Wimport, fall-virtual, falt-external-templates,
6917 fdefault-inline, fenum-int-equiv, fexternal-templates,
6918 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
6919 fname-mangling-version-, fnew-abi, fnonnull-objects,
6920 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
6921 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
6922 applicable.
6923 (fhandle-exceptions): Mark with Alias and Warn.
6924 * c-opts.c (c_common_handle_option): Don't handle options marked
6925 as ignored.
6926
5de8299c
JM
69272010-09-02 Joseph Myers <joseph@codesourcery.com>
6928
6929 * c.opt (Wcomments, Werror-implicit-function-declaration,
6930 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
6931 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
6932 aliases.
6933 * c-common.c (option_codes): Use OPT_Wcomment instead of
6934 OPT_Wcomments.
6935 * c-opts.c (warning_as_error_callback, c_common_handle_option):
6936 Don't handle options marked as aliases.
6937
0ceb0201
RG
69382010-08-25 Richard Guenther <rguenther@suse.de>
6939
6940 * c-common.c (c_common_get_alias_set): Remove special
6941 handling for pointers.
6942
ac47786e
NF
69432010-08-20 Nathan Froyd <froydnj@codesourcery.com>
6944
6945 * c-common.c: Use FOR_EACH_VEC_ELT.
6946 * c-gimplify.c: Likewise.
6947 * c-pragma.c: Likewise.
6948
c878765b
JM
69492010-08-16 Joseph Myers <joseph@codesourcery.com>
6950
6951 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
6952 RejectDriver.
6953 (MMDX): Change back to MMD. Mark NoDriverArg instead of
6954 RejectDriver.
6955 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
6956 instead of OPT_MDX and OPT_MMDX.
6957
603349bf
JM
69582010-08-16 Joseph Myers <joseph@codesourcery.com>
6959
6960 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
6961
644fa7ac
JM
69622010-08-12 Joseph Myers <joseph@codesourcery.com>
6963
6964 * c.opt (MD, MMD): Change to MDX and MMDX.
6965 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
6966
481e1176
JM
69672010-08-11 Joseph Myers <joseph@codesourcery.com>
6968
6969 * c-opts.c (c_common_handle_option): Call handle_generated_option
6970 instead of handle_option.
6971
ac8dc9f7
NF
69722010-08-08 Nathan Froyd <froydnj@codesourcery.com>
6973
6974 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
6975 (maybe_apply_renaming_pragma): Delete unneeded declarations.
6976
4f8c876d
NF
69772010-08-08 Nathan Froyd <froydnj@codesourcery.com>
6978
6979 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
6980 (pending_redefine_extname): Change type to a VEC.
6981 (add_to_renaming_pragma_list): Update for new type of
6982 pending_redefine_extname.
ac8dc9f7 6983 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 6984
3b0c690e
AC
69852010-08-04 Arnaud Charlet <charlet@adacore.com>
6986
6987 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
6988 visited.
6989 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
6990 decide whether a type has already been declared/seen.
6991 Do not go to the original type.
6992 (dump_nested_types): New parameter forward.
6993 Generate forward declaration if needed and mark type as visited.
6994 (print_ada_declaration): Call dump_nested_types if not already done.
6995 Mark types as visited.
6996
1890bccc
JM
69972010-08-03 Joseph Myers <joseph@codesourcery.com>
6998
6999 * c.opt (-print-pch-checksum): Remove option.
7000 * c-opts.c (c_common_handle_option): Don't handle
7001 OPT_print_pch_checksum.
7002
5f20c657
JM
70032010-07-27 Joseph Myers <joseph@codesourcery.com>
7004
7005 * c-common.h (c_common_handle_option): Update prototype and return
7006 value type.
7007 * c-opts.c (c_common_handle_option): Update prototype and return
7008 value type. Update calls to handle_option and
7009 enable_warning_as_error.
7010
f551f80c
JJ
70112010-07-27 Jakub Jelinek <jakub@redhat.com>
7012
7013 PR c/45079
7014 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
7015
61ff2bdc
JM
70162010-07-27 Joseph Myers <joseph@codesourcery.com>
7017
7018 * c-common.h (c_common_missing_argument): Remove.
7019 * c-opts.c (c_common_missing_argument): Remove.
7020 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
7021 idirafter, imacros, include, isysroot, isystem, iquote): Add
7022 MissingArgError.
7023 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
7024
7a9bf9a4
JM
70252010-07-27 Joseph Myers <joseph@codesourcery.com>
7026
7027 * c-common.h (c_common_option_lang_mask,
7028 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
7029 New.
7030 (c_common_init_options): Update prototype.
7031 * c-opts.c (c_common_option_lang_mask): New.
7032 (c_common_initialize_diagnostics): Split out of
7033 c_common_init_options.
7034 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
7035 New.
7036 (c_common_init_options): Update prototype. Use decoded options in
7037 search for -lang-asm.
7038
910ad8de
NF
70392010-07-15 Nathan Froyd <froydnj@codesourcery.com>
7040
7041 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
7042 * c-format.c: Likewise.
7043
718f9c0f
MLI
70442010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
7045
7046 * c-common.h: Include diagnostic-core.h. Error if already
7047 included.
7048 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
7049
4d451982
MLI
70502010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
7051
adfac8df 7052 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
7053 Do not include expr.h
7054 (vector_mode_valid_p): Move here.
7055
119fe915
SB
70562010-06-21 DJ Delorie <dj@redhat.com>
7057
7058 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
7059 allow these pragmas anywhere.
7060
70612010-06-14 Jakub Jelinek <jakub@redhat.com>
7062
7063 PR bootstrap/44509
7064 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
7065 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
7066 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
7067 ggc_strdup instead of xstrdup.
7068
70692010-06-10 Jakub Jelinek <jakub@redhat.com>
7070
7071 * c-cppbuiltin.c: Include cpp-id-data.h.
7072 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
7073 (lazy_hex_fp_value): New function.
7074 (builtin_define_with_hex_fp_value): Provide definitions lazily.
7075
6662d794
MLI
70762010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
7077
7078 * c-gimplify.c: Do not include tree-flow.h
7079
38f8b050
JR
70802010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
7081
7082 PR other/44034
7083 * c-common.c: Rename targetm member:
7084 targetm.enum_va_list -> targetm.enum_va_list_p
7085
9589f23e
AS
70862010-06-28 Anatoly Sokolov <aesok@post.ru>
7087
7088 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
7089
3b06d379
SB
70902010-06-28 Steven Bosscher <steven@gcc.gnu.org>
7091
7092 * c-cppbuiltin.c: Do not include except.h.
7093
d166d4c3
AK
70942010-06-24 Andi Kleen <ak@linux.intel.com>
7095
9faeb493
UB
7096 * c-common.c (warn_for_omitted_condop): New.
7097 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 7098
70cb8be6
JM
70992010-06-21 Joseph Myers <joseph@codesourcery.com>
7100
7101 * c.opt (lang-objc): Remove.
7102 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
7103
a4c97feb
JR
71042010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
7105
7106 * c-opts.c: Include "tm_p.h".
7107
6e2f1956
JM
71082010-06-20 Joseph Myers <joseph@codesourcery.com>
7109
7110 * c-common.c (parse_optimize_options): Update call to
7111 decode_options.
7112
bc87224e
NF
71132010-06-18 Nathan Froyd <froydnj@codesourcery.com>
7114
7115 * c-common.c (record_types_used_by_current_var_decl): Adjust for
7116 new type of types_used_by_cur_var_decl.
7117
b49cf425
JR
71182010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
7119
7120 PR bootstrap/44512
7121 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
7122 for C++ standard compliance.
7123
59f9c2ed
JM
71242010-06-16 Jason Merrill <jason@redhat.com>
7125
7126 * c.opt: Add -Wnoexcept.
7127
33766b66
RG
71282010-06-16 Richard Guenther <rguenther@suse.de>
7129
7130 PR c/44555
7131 * c-common.c (c_common_truthvalue_conversion): Remove
7132 premature and wrong optimization concering ADDR_EXPRs.
7133
eff7e30c
AC
71342010-06-15 Arnaud Charlet <charlet@adacore.com>
7135
7136 * c-ada-spec.c (dump_sloc): Remove column info.
7137 (is_simple_enum): New function.
7138 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
7139 enum types when relevant.
7140
6312e84d
MLI
71412010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
7142
9faeb493 7143 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
7144 location.
7145
1cb42611
JM
71462010-06-10 Joseph Myers <joseph@codesourcery.com>
7147
7148 * c-opts.c (c_common_handle_option): Don't handle
7149 OPT_fshow_column.
7150
a9429e29
LB
71512010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7152
7153 * c-pragma.c (push_alignment): Use typed GC allocation.
7154 (handle_pragma_push_options): Likewise.
7155
7156 * c-common.c (parse_optimize_options): Likewise.
7157
7158 * c-common.h (struct sorted_fields_type): Add variable_size GTY
7159 option.
7160
5498f011
JM
71612010-06-07 Joseph Myers <joseph@codesourcery.com>
7162
7163 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
7164 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
7165 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
7166 flag_signed_bitfields, warn_strict_null_sentinel,
7167 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
7168 flag_gen_declaration, flag_no_gnu_keywords,
7169 flag_implement_inlines, flag_implicit_templates,
7170 flag_implicit_inline_templates, flag_optional_diags,
7171 flag_elide_constructors, flag_default_inline, flag_rtti,
7172 flag_conserve_space, flag_access_control, flag_check_new,
7173 flag_new_for_scope, flag_weak, flag_working_directory,
7174 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
7175 flag_enforce_eh_specs, flag_threadsafe_statics,
7176 flag_pretty_templates): Remove.
7177 * c-common.h (flag_preprocess_only, flag_nil_receivers,
7178 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
7179 flag_replace_objc_classes, flag_undef, flag_no_builtin,
7180 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
7181 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
7182 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
7183 flag_no_gnu_keywords, flag_implement_inlines,
7184 flag_implicit_templates, flag_implicit_inline_templates,
7185 flag_optional_diags, flag_elide_constructors, flag_default_inline,
7186 flag_rtti, flag_conserve_space, flag_access_control,
7187 flag_check_new, flag_new_for_scope, flag_weak,
7188 flag_working_directory, flag_use_cxa_atexit,
7189 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
7190 flag_threadsafe_statics, flag_pretty_templates,
7191 warn_strict_null_sentinel): Remove.
7192 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
7193 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
7194 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
7195 fimplicit-inline-templates, fimplicit-templates,
7196 flax-vector-conversions, fms-extensions, fnil-receivers,
7197 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
7198 frtti, fshort-double, fshort-enums, fshort-wchar,
7199 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
7200 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
7201 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
7202 gen-decls, undef): Use Var.
7203 (fdefault-inline, foptional-diags): Document as doing nothing.
7204 * c-opts.c (c_common_handle_option): Remove cases for options now
7205 using Var. Mark ignored options as such.
7206
39dabefd
SB
72072010-06-05 Steven Bosscher <steven@gcc.gnu.org>
7208
9faeb493 7209 * c-common.c: Moved to here from parent directory.
39dabefd
SB
7210 * c-common.def: Likewise.
7211 * c-common.h: Likewise.
7212 * c-cppbuiltin.c: Likewise.
7213 * c-dump.c: Likewise.
7214 * c-format.c: Likewise.
7215 * c-format.h : Likewise.
7216 * c-gimplify.c: Likewise.
7217 * c-lex.c: Likewise.
7218 * c-omp.c: Likewise.
7219 * c.opt: Likewise.
7220 * c-opts.c: Likewise.
7221 * c-pch.c: Likewise.
7222 * c-ppoutput.c: Likewise.
7223 * c-pragma.c: Likewise.
7224 * c-pragma.h: Likewise.
7225 * c-pretty-print.c: Likewise.
7226 * c-pretty-print.h: Likewise.
7227 * c-semantics.c: Likewise.
7228 * stub-objc.c: Likewise.
7229
7230 * c-common.c: Include gt-c-family-c-common.h.
7231 * c-pragma.c: Include gt-c-family-c-pragma.h.
7232\f
818ab71a 7233Copyright (C) 2010-2016 Free Software Foundation, Inc.
39dabefd
SB
7234
7235Copying and distribution of this file, with or without modification,
7236are permitted in any medium without royalty provided the copyright
7237notice and this notice are preserved.